@nizza/core 0.4.4 → 0.4.5-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,7 +1,6 @@
1
- "use strict";var mr=Object.defineProperty;var hr=(e,t,i)=>t in e?mr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var C=(e,t,i)=>(hr(e,typeof t!="symbol"?t+"":t,i),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),vr=require("react/jsx-runtime");function pr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const q=pr(M);let gr=0;function kr(e,t){const i=`atom${++gr}`,n={toString:()=>i};return typeof e=="function"?n.read=e:(n.init=e,n.read=a=>a(n),n.write=(a,r,o)=>r(n,typeof o=="function"?o(a(n)):o)),t&&(n.write=t),n}const Qt=e=>"init"in e,Wt=e=>!!e.write,bt=new WeakMap,yr=(e,t)=>{bt.set(e,t),e.catch(()=>{}).finally(()=>bt.delete(e))},In=(e,t)=>{const i=bt.get(e);i&&(bt.delete(e),i(t))},Vn=(e,t)=>{e.status="fulfilled",e.value=t},jn=(e,t)=>{e.status="rejected",e.reason=t},pt=(e,t)=>"v"in e&&"v"in t&&Object.is(e.v,t.v),Un=(e,t)=>"e"in e&&"e"in t&&Object.is(e.e,t.e),qt=e=>"v"in e&&e.v instanceof Promise,gt=e=>{if("e"in e)throw e.e;return e.v},bi=()=>{const e=new WeakMap,t=new WeakMap,i=new Map;let n,a;({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&(n=new Set,a=new Set);const r=f=>e.get(f),o=(f,h)=>{({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&Object.freeze(h);const k=e.get(f);if(e.set(f,h),i.has(f)||i.set(f,k),k&&qt(k)){const b="v"in h?h.v instanceof Promise?h.v:Promise.resolve(h.v):Promise.reject(h.e);In(k.v,b)}},s=(f,h,k)=>{const b=new Map;let E=!1;k.forEach((w,R)=>{!w&&R===f&&(w=h),w?(b.set(R,w),h.d.get(R)!==w&&(E=!0)):({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] atom state not found")}),(E||h.d.size!==b.size)&&(h.d=b)},u=(f,h,k)=>{const b=r(f),E={d:(b==null?void 0:b.d)||new Map,v:h};return k&&s(f,E,k),b&&pt(b,E)&&b.d===E.d?b:(o(f,E),E)},l=(f,h,k,b)=>{if(h instanceof Promise){let E;const w=new Promise((R,re)=>{let P=!1;h.then(V=>{if(!P){P=!0;const I=r(f),K=u(f,w,k);Vn(w,V),R(V),(I==null?void 0:I.d)!==K.d&&T(f,K,I==null?void 0:I.d)}},V=>{if(!P){P=!0;const I=r(f),K=u(f,w,k);jn(w,V),re(V),(I==null?void 0:I.d)!==K.d&&T(f,K,I==null?void 0:I.d)}}),E=V=>{P||(P=!0,V.then(I=>Vn(w,I),I=>jn(w,I)),R(V))}});return w.status="pending",yr(w,R=>{R&&E(R),b==null||b()}),u(f,w,k)}return u(f,h,k)},d=(f,h,k)=>{const b=r(f),E={d:(b==null?void 0:b.d)||new Map,e:h};return k&&s(f,E,k),b&&Un(b,E)&&b.d===E.d?b:(o(f,E),E)},c=f=>{const h=r(f);if(h&&(h.d.forEach((P,V)=>{V!==f&&!t.has(V)&&c(V)}),Array.from(h.d).every(([P,V])=>P===f||r(P)===V)))return h;const k=new Map;let b=!0;const E=P=>{if(P===f){const I=r(P);if(I)return k.set(P,I),gt(I);if(Qt(P))return k.set(P,void 0),P.init;throw new Error("no atom init")}const V=c(P);return k.set(P,V),gt(V)};let w,R;const re={get signal(){return w||(w=new AbortController),w.signal},get setSelf(){return({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!Wt(f)&&console.warn("setSelf function cannot be used with read-only atom"),!R&&Wt(f)&&(R=(...P)=>{if(({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&b&&console.warn("setSelf function cannot be called in sync"),!b)return N(f,...P)}),R}};try{const P=f.read(E,re);return l(f,P,k,()=>w==null?void 0:w.abort())}catch(P){return d(f,P,k)}finally{b=!1}},p=f=>gt(c(f)),g=f=>{let h=t.get(f);return h||(h=A(f)),h},S=(f,h)=>!h.l.size&&(!h.t.size||h.t.size===1&&h.t.has(f)),v=f=>{const h=t.get(f);h&&S(f,h)&&O(f)},m=f=>{const h=t.get(f);h==null||h.t.forEach(k=>{if(k!==f){const b=r(k),E=c(k);(!b||!pt(b,E))&&m(k)}})},y=(f,...h)=>{let k=!0;const b=R=>gt(c(R)),E=(R,...re)=>{let P;if(R===f){if(!Qt(R))throw new Error("atom not writable");const V=r(R),I=l(R,re[0]);(!V||!pt(V,I))&&m(R)}else P=y(R,...re);return k||L(),P},w=f.write(b,E,...h);return k=!1,w},N=(f,...h)=>{const k=y(f,...h);return L(),k},A=(f,h)=>{const k={t:new Set(h&&[h]),l:new Set};if(t.set(f,k),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&a.add(f),c(f).d.forEach((b,E)=>{const w=t.get(E);w?w.t.add(f):E!==f&&A(E,f)}),c(f),Wt(f)&&f.onMount){const b=f.onMount((...E)=>N(f,...E));b&&(k.u=b)}return k},O=f=>{var h;const k=(h=t.get(f))==null?void 0:h.u;k&&k(),t.delete(f),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&a.delete(f);const b=r(f);b?(qt(b)&&In(b.v),b.d.forEach((E,w)=>{if(w!==f){const R=t.get(w);R&&(R.t.delete(f),S(w,R)&&O(w))}})):({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] could not find atom state to unmount",f)},T=(f,h,k)=>{const b=new Set(h.d.keys());k==null||k.forEach((E,w)=>{if(b.has(w)){b.delete(w);return}const R=t.get(w);R&&(R.t.delete(f),S(w,R)&&O(w))}),b.forEach(E=>{const w=t.get(E);w?w.t.add(f):t.has(f)&&A(E,f)})},L=()=>{for(;i.size;){const f=Array.from(i);i.clear(),f.forEach(([h,k])=>{const b=r(h);if(b){b.d!==(k==null?void 0:k.d)&&T(h,b,k==null?void 0:k.d);const E=t.get(h);E&&!(k&&!qt(k)&&(pt(k,b)||Un(k,b)))&&E.l.forEach(w=>w())}else({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[Bug] no atom state to flush")})}({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(f=>f("state"))},z=(f,h)=>{const k=g(f);L();const b=k.l;return b.add(h),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(E=>E("sub")),()=>{b.delete(h),v(f),({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&n.forEach(E=>E("unsub"))}};return({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"?{get:p,set:N,sub:z,dev_subscribe_store:f=>(n.add(f),()=>{n.delete(f)}),dev_get_mounted_atoms:()=>a.values(),dev_get_atom_state:f=>e.get(f),dev_get_mounted:f=>t.get(f),dev_restore_atoms:f=>{for(const[h,k]of f)Qt(h)&&(l(h,k),m(h));L()}}:{get:p,set:N,sub:z}};let Jt;const _r=()=>(Jt||(Jt=bi()),Jt),Sr=M.createContext(void 0),Ni=e=>{const t=M.useContext(Sr);return(e==null?void 0:e.store)||t||_r()},br=e=>e instanceof Promise,Nr=M.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)});function Or(e,t){const i=Ni(t),[[n,a,r],o]=M.useReducer(l=>{const d=i.get(e);return Object.is(l[0],d)&&l[1]===i&&l[2]===e?l:[d,i,e]},void 0,()=>[i.get(e),i,e]);let s=n;(a!==i||r!==e)&&(o(),s=i.get(e));const u=t==null?void 0:t.delay;return M.useEffect(()=>{const l=i.sub(e,()=>{if(typeof u=="number"){setTimeout(o,u);return}o()});return o(),l},[i,e,u]),M.useDebugValue(s),br(s)?Nr(s):s}function Er(e,t){const i=Ni(t);return M.useCallback((...a)=>{if(({NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");return i.set(e,...a)},[i,e])}function wr(e,t){return[Or(e,t),Er(e,t)]}const xt=kr(null);xt.debugLabel="accountAtom";const{NZ_AWS_REGION:Ar,NZ_BACKOFFICE_BACK_URL:Fr,NZ_CORE_SERVICES_GRAPHQL_URL:Cr,NZ_CORE_SERVICES_REST_URL:Rr}={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Tr={AWS:{region:Ar,cognito:{userPoolId:"us-east-1_EZ7wuZ4ig",userPoolWebClientId:"2jok7cst8ebf6ppscrhji57gvr"}},apiUrls:{restV1:Fr||"https://b133h34s56.execute-api.us-east-1.amazonaws.com",restV2:Rr||"https://core-services-prod.nizza.com/api",graphql:Cr||"https://core-services-prod.nizza.com/graphql",corsProxy:"https://3hvqfl2xcg.execute-api.us-east-1.amazonaws.com"},publicUrls:{platformSite:"https://platform.nizza.com",nizzaCdn:"https://cdn.nizza.com",bundleSite:"https://bundle.nizza.com",wssIVSChat:"wss://edge.ivschat.us-east-1.amazonaws.com"}};async function mn(e){const{url:t,method:i="GET",body:n,raw:a=!1,contentTypeJson:r=!0,timeout:o,...s}=e,u=r&&!e.headers?new Headers({"content-type":"application/json"}):e.headers;try{const l=new AbortController,{signal:d}=l;let c;const p=fetch(t,{method:i,headers:u,body:n,signal:d,...s});o&&(c=setTimeout(()=>{l.abort()},o));const g=await p;if(a)return g;const S=await g.json();if(clearTimeout(c),!g.ok){const v=S?JSON.stringify(S):g.statusText;throw new Error(v)}return S}catch(l){throw console.error("[CustomFetch] ",l),l}}const Dr=e=>mn({...e,contentTypeJson:!1,raw:!1});function xr(e,t,i){fetch(t).then(n=>n.blob()).then(n=>Oi(n,`${e}.${i}`))}const Oi=(e,t,i)=>{const n=[e],a=new Blob(n,{type:i!=null?i:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(a,t);const r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),o=document.createElement("a");return o.style.display="none",o.href=r,o.setAttribute("download",t),typeof o.download=="undefined"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(()=>{document.body.removeChild(o),window.URL.revokeObjectURL(r)},200)};var Ei=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ai={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.prefix=i(t)})(Ei,function(t){var i=function(d){for(var c=1,p=arguments.length,g;c<p;c++)for(g in arguments[c])Object.prototype.hasOwnProperty.call(arguments[c],g)&&(d[g]=arguments[c][g]);return d},n={template:"[%t] %l:",levelFormatter:function(d){return d.toUpperCase()},nameFormatter:function(d){return d||"root"},timestampFormatter:function(d){return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},a,r={},o=function(d){if(!d||!d.getLogger)throw new TypeError("Argument is not a root logger");a=d},s=function(d,c){if(!d||!d.setLevel)throw new TypeError("Argument is not a logger");var p=d.methodFactory,g=d.name||"",S=r[g]||r[""]||n;function v(m,y,N){var A=p(m,y,N),O=r[N]||r[""],T=O.template.indexOf("%t")!==-1,L=O.template.indexOf("%l")!==-1,z=O.template.indexOf("%n")!==-1;return function(){for(var f="",h=arguments.length,k=Array(h),b=0;b<h;b++)k[b]=arguments[b];if(g||!r[N]){var E=O.timestampFormatter(new Date),w=O.levelFormatter(m),R=O.nameFormatter(N);O.format?f+=O.format(w,R,E):(f+=O.template,T&&(f=f.replace(/%t/,E)),L&&(f=f.replace(/%l/,w)),z&&(f=f.replace(/%n/,R))),k.length&&typeof k[0]=="string"?k[0]=f+" "+k[0]:k.unshift(f)}A.apply(void 0,k)}}return r[g]||(d.methodFactory=v),c=c||{},c.template&&(c.format=void 0),r[g]=i({},S,c),d.setLevel(d.getLevel()),a||d.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),d},u={reg:o,apply:s},l;return t&&(l=t.prefix,u.noConflict=function(){return t.prefix===u&&(t.prefix=l),u}),u})})(Ai);var Pr=Ai.exports;const Fi=wi(Pr);var Ci={exports:{}};(function(e){(function(t,i){e.exports?e.exports=i():t.log=i()})(Ei,function(){var t=function(){},i="undefined",n=typeof window!==i&&typeof window.navigator!==i&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function r(v,m){var y=v[m];if(typeof y.bind=="function")return y.bind(v);try{return Function.prototype.bind.call(y,v)}catch{return function(){return Function.prototype.apply.apply(y,[v,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(v){return v==="debug"&&(v="log"),typeof console===i?!1:v==="trace"&&n?o:console[v]!==void 0?r(console,v):console.log!==void 0?r(console,"log"):t}function u(v,m){for(var y=0;y<a.length;y++){var N=a[y];this[N]=y<v?t:this.methodFactory(N,v,m)}this.log=this.debug}function l(v,m,y){return function(){typeof console!==i&&(u.call(this,m,y),this[v].apply(this,arguments))}}function d(v,m,y){return s(v)||l.apply(this,arguments)}function c(v,m,y){var N=this,A;m=m==null?"WARN":m;var O="loglevel";typeof v=="string"?O+=":"+v:typeof v=="symbol"&&(O=void 0);function T(h){var k=(a[h]||"silent").toUpperCase();if(!(typeof window===i||!O)){try{window.localStorage[O]=k;return}catch{}try{window.document.cookie=encodeURIComponent(O)+"="+k+";"}catch{}}}function L(){var h;if(!(typeof window===i||!O)){try{h=window.localStorage[O]}catch{}if(typeof h===i)try{var k=window.document.cookie,b=k.indexOf(encodeURIComponent(O)+"=");b!==-1&&(h=/^([^;]+)/.exec(k.slice(b))[1])}catch{}return N.levels[h]===void 0&&(h=void 0),h}}function z(){if(!(typeof window===i||!O)){try{window.localStorage.removeItem(O);return}catch{}try{window.document.cookie=encodeURIComponent(O)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}N.name=v,N.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},N.methodFactory=y||d,N.getLevel=function(){return A},N.setLevel=function(h,k){if(typeof h=="string"&&N.levels[h.toUpperCase()]!==void 0&&(h=N.levels[h.toUpperCase()]),typeof h=="number"&&h>=0&&h<=N.levels.SILENT){if(A=h,k!==!1&&T(h),u.call(N,h,v),typeof console===i&&h<N.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+h},N.setDefaultLevel=function(h){m=h,L()||N.setLevel(h,!1)},N.resetLevel=function(){N.setLevel(m,!1),z()},N.enableAll=function(h){N.setLevel(N.levels.TRACE,h)},N.disableAll=function(h){N.setLevel(N.levels.SILENT,h)};var f=L();f==null&&(f=m),N.setLevel(f,!1)}var p=new c,g={};p.getLogger=function(m){if(typeof m!="symbol"&&typeof m!="string"||m==="")throw new TypeError("You must supply a name when creating a logger.");var y=g[m];return y||(y=g[m]=new c(m,p.getLevel(),p.methodFactory)),y};var S=typeof window!==i?window.log:void 0;return p.noConflict=function(){return typeof window!==i&&window.log===p&&(window.log=S),p},p.getLoggers=function(){return g},p.default=p,p})})(Ci);var Lr=Ci.exports;const Ir=wi(Lr);function x(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var Vr={};function Ri(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Vr}var Ti=Object.assign,Nt=Object.getOwnPropertyDescriptor,ee=Object.defineProperty,Pt=Object.prototype,an=[];Object.freeze(an);var hn={};Object.freeze(hn);var jr=typeof Proxy!="undefined",Ur=Object.toString();function Di(){jr||x("Proxy not available")}function xi(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Ae=function(){};function X(e){return typeof e=="function"}function ye(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Lt(e){return e!==null&&typeof e=="object"}function de(e){if(!Lt(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var i=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i.toString()===Ur}function Pi(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function nt(e,t,i){ee(e,t,{enumerable:!1,writable:!0,configurable:!0,value:i})}function Li(e,t,i){ee(e,t,{enumerable:!1,writable:!1,configurable:!0,value:i})}function be(e,t){var i="isMobX"+e;return t.prototype[i]=!0,function(n){return Lt(n)&&n[i]===!0}}function je(e){return e instanceof Map}function it(e){return e instanceof Set}var Ii=typeof Object.getOwnPropertySymbols!="undefined";function Mr(e){var t=Object.keys(e);if(!Ii)return t;var i=Object.getOwnPropertySymbols(e);return i.length?[].concat(t,i.filter(function(n){return Pt.propertyIsEnumerable.call(e,n)})):t}var Te=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Ii?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Vi(e){return e===null?null:typeof e=="object"?""+e:e}function le(e,t){return Pt.hasOwnProperty.call(e,t)}var Br=Object.getOwnPropertyDescriptors||function(t){var i={};return Te(t).forEach(function(n){i[n]=Nt(t,n)}),i};function Mn(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$r(n.key),n)}}function vn(e,t,i){return t&&Mn(e.prototype,t),i&&Mn(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},De.apply(this,arguments)}function ji(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,rn(e,t)}function rn(e,t){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},rn(e,t)}function Ht(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zr(e,t){if(e){if(typeof e=="string")return Bn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(e);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Bn(e,t)}}function Bn(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Fe(e,t){var i=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=zr(e))||t&&e&&typeof e.length=="number"){i&&(e=i);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}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 Gr(e,t){if(typeof e!="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $r(e){var t=Gr(e,"string");return typeof t=="symbol"?t:String(t)}var Y=Symbol("mobx-stored-annotations");function te(e){function t(i,n){at(i,n,e)}return Object.assign(t,e)}function at(e,t,i){le(e,Y)||nt(e,Y,De({},e[Y])),Yr(i)||(e[Y][t]=i)}function Kr(e){return le(e,Y)||nt(e,Y,De({},e[Y])),e[Y]}var F=Symbol("mobx administration"),rt=function(){function e(i){i===void 0&&(i="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=D.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=i}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return aa(this)},t.reportChanged=function(){G(),ra(this),_.stateVersion=_.stateVersion<Number.MAX_SAFE_INTEGER?_.stateVersion+1:Number.MIN_SAFE_INTEGER,$()},t.toString=function(){return this.name_},e}(),pn=be("Atom",rt);function Ui(e,t,i){t===void 0&&(t=Ae),i===void 0&&(i=Ae);var n=new rt(e);return t!==Ae&&Xo(n,t),i!==Ae&&ma(n,i),n}function Qr(e,t){return e===t}function Wr(e,t){return Nn(e,t)}function qr(e,t){return Nn(e,t,1)}function Jr(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var xe={identity:Qr,structural:Wr,default:Jr,shallow:qr};function Pe(e,t,i){return lt(e)?e:Array.isArray(e)?B.array(e,{name:i}):de(e)?B.object(e,void 0,{name:i}):je(e)?B.map(e,{name:i}):it(e)?B.set(e,{name:i}):typeof e=="function"&&!yn(e)&&!Ft(e)?Pi(e)?Xe(e):Ze(i,e):e}function Hr(e,t,i){if(e==null||Ye(e)||Ut(e)||Ne(e)||Me(e))return e;if(Array.isArray(e))return B.array(e,{name:i,deep:!1});if(de(e))return B.object(e,void 0,{name:i,deep:!1});if(je(e))return B.map(e,{name:i,deep:!1});if(it(e))return B.set(e,{name:i,deep:!1})}function It(e){return e}function Zr(e,t){return Nn(e,t)?t:e}var Xr="override";function Yr(e){return e.annotationType_===Xr}function ot(e,t){return{annotationType_:e,options_:t,make_:eo,extend_:to}}function eo(e,t,i,n){var a;if((a=this.options_)!=null&&a.bound)return this.extend_(e,t,i,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if(yn(i.value))return 1;var r=Mi(e,this,t,i,!1);return ee(n,t,r),2}function to(e,t,i,n){var a=Mi(e,this,t,i);return e.defineProperty_(t,a,n)}function no(e,t,i,n){t.annotationType_,n.value}function Mi(e,t,i,n,a){var r,o,s,u,l,d,c;a===void 0&&(a=_.safeDescriptors),no(e,t,i,n);var p=n.value;if((r=t.options_)!=null&&r.bound){var g;p=p.bind((g=e.proxy_)!=null?g:e.target_)}return{value:Le((o=(s=t.options_)==null?void 0:s.name)!=null?o:i.toString(),p,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(d=t.options_)!=null&&d.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:a?e.isPlainObject_:!0,enumerable:!1,writable:!a}}function Bi(e,t){return{annotationType_:e,options_:t,make_:io,extend_:ao}}function io(e,t,i,n){var a;if(n===e.target_)return this.extend_(e,t,i,!1)===null?0:2;if((a=this.options_)!=null&&a.bound&&(!le(e.target_,t)||!Ft(e.target_[t]))&&this.extend_(e,t,i,!1)===null)return 0;if(Ft(i.value))return 1;var r=zi(e,this,t,i,!1,!1);return ee(n,t,r),2}function ao(e,t,i,n){var a,r=zi(e,this,t,i,(a=this.options_)==null?void 0:a.bound);return e.defineProperty_(t,r,n)}function ro(e,t,i,n){t.annotationType_,n.value}function zi(e,t,i,n,a,r){r===void 0&&(r=_.safeDescriptors),ro(e,t,i,n);var o=n.value;if(Ft(o)||(o=Xe(o)),a){var s;o=o.bind((s=e.proxy_)!=null?s:e.target_),o.isMobXFlow=!0}return{value:o,configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function gn(e,t){return{annotationType_:e,options_:t,make_:oo,extend_:so}}function oo(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function so(e,t,i,n){return uo(e,this,t,i),e.defineComputedProperty_(t,De({},this.options_,{get:i.get,set:i.set}),n)}function uo(e,t,i,n){t.annotationType_,n.get}function Vt(e,t){return{annotationType_:e,options_:t,make_:lo,extend_:co}}function lo(e,t,i){return this.extend_(e,t,i,!1)===null?0:1}function co(e,t,i,n){var a,r;return fo(e,this),e.defineObservableProperty_(t,i.value,(a=(r=this.options_)==null?void 0:r.enhancer)!=null?a:Pe,n)}function fo(e,t,i,n){t.annotationType_}var mo="true",ho=Gi();function Gi(e){return{annotationType_:mo,options_:e,make_:vo,extend_:po}}function vo(e,t,i,n){var a,r;if(i.get)return fe.make_(e,t,i,n);if(i.set){var o=Le(t.toString(),i.set);return n===e.target_?e.defineProperty_(t,{configurable:_.safeDescriptors?e.isPlainObject_:!0,set:o})===null?0:2:(ee(n,t,{configurable:!0,set:o}),2)}if(n!==e.target_&&typeof i.value=="function"){var s;if(Pi(i.value)){var u,l=(u=this.options_)!=null&&u.autoBind?Xe.bound:Xe;return l.make_(e,t,i,n)}var d=(s=this.options_)!=null&&s.autoBind?Ze.bound:Ze;return d.make_(e,t,i,n)}var c=((a=this.options_)==null?void 0:a.deep)===!1?B.ref:B;if(typeof i.value=="function"&&(r=this.options_)!=null&&r.autoBind){var p;i.value=i.value.bind((p=e.proxy_)!=null?p:e.target_)}return c.make_(e,t,i,n)}function po(e,t,i,n){var a,r;if(i.get)return fe.extend_(e,t,i,n);if(i.set)return e.defineProperty_(t,{configurable:_.safeDescriptors?e.isPlainObject_:!0,set:Le(t.toString(),i.set)},n);if(typeof i.value=="function"&&(a=this.options_)!=null&&a.autoBind){var o;i.value=i.value.bind((o=e.proxy_)!=null?o:e.target_)}var s=((r=this.options_)==null?void 0:r.deep)===!1?B.ref:B;return s.extend_(e,t,i,n)}var go="observable",ko="observable.ref",yo="observable.shallow",_o="observable.struct",$i={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze($i);function kt(e){return e||$i}var Ki=Vt(go),So=Vt(ko,{enhancer:It}),bo=Vt(yo,{enhancer:Hr}),No=Vt(_o,{enhancer:Zr}),Qi=te(Ki);function yt(e){return e.deep===!0?Pe:e.deep===!1?It:Eo(e.defaultDecorator)}function Oo(e){var t;return e?(t=e.defaultDecorator)!=null?t:Gi(e):void 0}function Eo(e){var t,i;return e&&(t=(i=e.options_)==null?void 0:i.enhancer)!=null?t:Pe}function Wi(e,t,i){if(ye(t)){at(e,t,Ki);return}return lt(e)?e:de(e)?B.object(e,t,i):Array.isArray(e)?B.array(e,t):je(e)?B.map(e,t):it(e)?B.set(e,t):typeof e=="object"&&e!==null?e:B.box(e,t)}Ti(Wi,Qi);var wo={box:function(t,i){var n=kt(i);return new Re(t,yt(n),n.name,!0,n.equals)},array:function(t,i){var n=kt(i);return(_.useProxies===!1||n.proxy===!1?ys:ds)(t,yt(n),n.name)},map:function(t,i){var n=kt(i);return new _a(t,yt(n),n.name)},set:function(t,i){var n=kt(i);return new Na(t,yt(n),n.name)},object:function(t,i,n){return va(_.useProxies===!1||(n==null?void 0:n.proxy)===!1?ft({},n):rs({},n),t,i)},ref:te(So),shallow:te(bo),deep:Qi,struct:te(No)},B=Ti(Wi,wo),qi="computed",Ao="computed.struct",Ji=gn(qi),Fo=gn(Ao,{equals:xe.structural}),fe=function(t,i){if(ye(i))return at(t,i,Ji);if(de(t))return te(gn(qi,t));var n=de(i)?i:{};return n.get=t,n.name||(n.name=t.name||""),new He(n)};Object.assign(fe,Ji);fe.struct=te(Fo);var zn,Gn,Ot=0,Co=1,Ro=(zn=(Gn=Nt(function(){},"name"))==null?void 0:Gn.configurable)!=null?zn:!1,$n={value:"action",configurable:!0,writable:!1,enumerable:!1};function Le(e,t,i,n){i===void 0&&(i=!1);function a(){return To(e,i,t,n||this,arguments)}return a.isMobxAction=!0,Ro&&($n.value=e,ee(a,"name",$n)),a}function To(e,t,i,n,a){var r=Do(e,t);try{return i.apply(n,a)}catch(o){throw r.error_=o,o}finally{xo(r)}}function Do(e,t,i,n){var a=!1,r=0,o=_.trackingDerivation,s=!t||!o;G();var u=_.allowStateChanges;s&&(Ue(),u=st(!0));var l=kn(!0),d={runAsAction_:s,prevDerivation_:o,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:a,startTime_:r,actionId_:Co++,parentActionId_:Ot};return Ot=d.actionId_,d}function xo(e){Ot!==e.actionId_&&x(30),Ot=e.parentActionId_,e.error_!==void 0&&(_.suppressReactionErrors=!0),ut(e.prevAllowStateChanges_),We(e.prevAllowStateReads_),$(),e.runAsAction_&&ve(e.prevDerivation_),_.suppressReactionErrors=!1}function Hi(e,t){var i=st(e);try{return t()}finally{ut(i)}}function st(e){var t=_.allowStateChanges;return _.allowStateChanges=e,t}function ut(e){_.allowStateChanges=e}var Zi;Zi=Symbol.toPrimitive;var Re=function(e){ji(t,e);function t(n,a,r,o,s){var u;return r===void 0&&(r="ObservableValue"),s===void 0&&(s=xe.default),u=e.call(this,r)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=a,u.name_=r,u.equals=s,u.value_=a(n,void 0,r),u}var i=t.prototype;return i.dehanceValue=function(a){return this.dehancer!==void 0?this.dehancer(a):a},i.set=function(a){this.value_,a=this.prepareNewValue_(a),a!==_.UNCHANGED&&this.setNewValue_(a)},i.prepareNewValue_=function(a){if(Q(this)){var r=W(this,{object:this,type:ne,newValue:a});if(!r)return _.UNCHANGED;a=r.newValue}return a=this.enhancer(a,this.value_,this.name_),this.equals(this.value_,a)?_.UNCHANGED:a},i.setNewValue_=function(a){var r=this.value_;this.value_=a,this.reportChanged(),J(this)&&H(this,{type:ne,object:this,newValue:a,oldValue:r})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},i.intercept_=function(a){return dt(this,a)},i.observe_=function(a,r){return r&&a({observableKind:"value",debugObjectName:this.name_,object:this,type:ne,newValue:this.value_,oldValue:void 0}),ct(this,a)},i.raw=function(){return this.value_},i.toJSON=function(){return this.get()},i.toString=function(){return this.name_+"["+this.value_+"]"},i.valueOf=function(){return Vi(this.get())},i[Zi]=function(){return this.valueOf()},t}(rt),Xi;Xi=Symbol.toPrimitive;var He=function(){function e(i){this.dependenciesState_=D.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_=D.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Et(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_=ke.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,i.get||x(31),this.derivation=i.get,this.name_=i.name||"ComputedValue",i.set&&(this.setter_=Le("ComputedValue-setter",i.set)),this.equals_=i.equals||(i.compareStructural||i.struct?xe.structural:xe.default),this.scope_=i.context,this.requiresReaction_=i.requiresReaction,this.keepAlive_=!!i.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Vo(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing_&&x(32,this.name_,this.derivation),_.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)on(this)&&(this.warnAboutUntrackedRead_(),G(),this.value_=this.computeValue_(!1),$());else if(aa(this),on(this)){var n=_.trackingContext;this.keepAlive_&&!n&&(_.trackingContext=this),this.trackAndCompute()&&Io(this),_.trackingContext=n}var a=this.value_;if(St(a))throw a.cause;return a},t.set=function(n){if(this.setter_){this.isRunningSetter_&&x(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter_=!1}}else x(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,a=this.dependenciesState_===D.NOT_TRACKING_,r=this.computeValue_(!0),o=a||St(n)||St(r)||!this.equals_(n,r);return o&&(this.value_=r),o},t.computeValue_=function(n){this.isComputing_=!0;var a=st(!1),r;if(n)r=Yi(this,this.derivation,this.scope_);else if(_.disableErrorBoundaries===!0)r=this.derivation.call(this.scope_);else try{r=this.derivation.call(this.scope_)}catch(o){r=new Et(o)}return ut(a),this.isComputing_=!1,r},t.suspend_=function(){this.keepAlive_||(sn(this),this.value_=void 0)},t.observe_=function(n,a){var r=this,o=!0,s=void 0;return _n(function(){var u=r.get();if(!o||a){var l=Ue();n({observableKind:"computed",debugObjectName:r.name_,type:ne,object:r,newValue:u,oldValue:s}),ve(l)}o=!1,s=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Vi(this.get())},t[Xi]=function(){return this.valueOf()},e}(),jt=be("ComputedValue",He),D;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(D||(D={}));var ke;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(ke||(ke={}));var Et=function(t){this.cause=void 0,this.cause=t};function St(e){return e instanceof Et}function on(e){switch(e.dependenciesState_){case D.UP_TO_DATE_:return!1;case D.NOT_TRACKING_:case D.STALE_:return!0;case D.POSSIBLY_STALE_:{for(var t=kn(!0),i=Ue(),n=e.observing_,a=n.length,r=0;r<a;r++){var o=n[r];if(jt(o)){if(_.disableErrorBoundaries)o.get();else try{o.get()}catch{return ve(i),We(t),!0}if(e.dependenciesState_===D.STALE_)return ve(i),We(t),!0}}return ta(e),ve(i),We(t),!1}}}function Yi(e,t,i){var n=kn(!0);ta(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++_.runId;var a=_.trackingDerivation;_.trackingDerivation=e,_.inBatch++;var r;if(_.disableErrorBoundaries===!0)r=t.call(i);else try{r=t.call(i)}catch(o){r=new Et(o)}return _.inBatch--,_.trackingDerivation=a,Po(e),We(n),r}function Po(e){for(var t=e.observing_,i=e.observing_=e.newObserving_,n=D.UP_TO_DATE_,a=0,r=e.unboundDepsCount_,o=0;o<r;o++){var s=i[o];s.diffValue_===0&&(s.diffValue_=1,a!==o&&(i[a]=s),a++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(i.length=a,e.newObserving_=null,r=t.length;r--;){var u=t[r];u.diffValue_===0&&na(u,e),u.diffValue_=0}for(;a--;){var l=i[a];l.diffValue_===1&&(l.diffValue_=0,Lo(l,e))}n!==D.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function sn(e){var t=e.observing_;e.observing_=[];for(var i=t.length;i--;)na(t[i],e);e.dependenciesState_=D.NOT_TRACKING_}function ea(e){var t=Ue();try{return e()}finally{ve(t)}}function Ue(){var e=_.trackingDerivation;return _.trackingDerivation=null,e}function ve(e){_.trackingDerivation=e}function kn(e){var t=_.allowStateReads;return _.allowStateReads=e,t}function We(e){_.allowStateReads=e}function ta(e){if(e.dependenciesState_!==D.UP_TO_DATE_){e.dependenciesState_=D.UP_TO_DATE_;for(var t=e.observing_,i=t.length;i--;)t[i].lowestObserverState_=D.UP_TO_DATE_}}var Zt=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,this.stateVersion=Number.MIN_SAFE_INTEGER},Xt=!0,_=function(){var e=Ri();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Xt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Zt().version&&(Xt=!1),Xt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Zt):(setTimeout(function(){x(35)},1),new Zt)}();function Lo(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function na(e,t){e.observers_.delete(t),e.observers_.size===0&&ia(e)}function ia(e){e.isPendingUnobservation_===!1&&(e.isPendingUnobservation_=!0,_.pendingUnobservations.push(e))}function G(){_.inBatch++}function $(){if(--_.inBatch===0){oa();for(var e=_.pendingUnobservations,t=0;t<e.length;t++){var i=e[t];i.isPendingUnobservation_=!1,i.observers_.size===0&&(i.isBeingObserved_&&(i.isBeingObserved_=!1,i.onBUO()),i instanceof He&&i.suspend_())}_.pendingUnobservations=[]}}function aa(e){var t=_.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&_.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),e.isBeingObserved_):(e.observers_.size===0&&_.inBatch>0&&ia(e),!1)}function ra(e){e.lowestObserverState_!==D.STALE_&&(e.lowestObserverState_=D.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=D.STALE_}))}function Io(e){e.lowestObserverState_!==D.STALE_&&(e.lowestObserverState_=D.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.POSSIBLY_STALE_?t.dependenciesState_=D.STALE_:t.dependenciesState_===D.UP_TO_DATE_&&(e.lowestObserverState_=D.UP_TO_DATE_)}))}function Vo(e){e.lowestObserverState_===D.UP_TO_DATE_&&(e.lowestObserverState_=D.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.UP_TO_DATE_&&(t.dependenciesState_=D.POSSIBLY_STALE_,t.onBecomeStale_())}))}var wt=function(){function e(i,n,a,r){i===void 0&&(i="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=D.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_=ke.NONE,this.name_=i,this.onInvalidate_=n,this.errorHandler_=a,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,_.pendingReactions.push(this),oa())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){G(),this.isScheduled_=!1;var n=_.trackingContext;if(_.trackingContext=this,on(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(a){this.reportExceptionInDerivation_(a)}}_.trackingContext=n,$()}},t.track=function(n){if(!this.isDisposed_){G(),this.isRunning_=!0;var a=_.trackingContext;_.trackingContext=this;var r=Yi(this,n,void 0);_.trackingContext=a,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&sn(this),St(r)&&this.reportExceptionInDerivation_(r.cause),$()}},t.reportExceptionInDerivation_=function(n){var a=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(_.disableErrorBoundaries)throw n;var r="[mobx] uncaught error in '"+this+"'";_.suppressReactionErrors||console.error(r,n),_.globalReactionErrorHandlers.forEach(function(o){return o(n,a)})},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(G(),sn(this),$()))},t.getDisposer_=function(){var n=this.dispose.bind(this);return n[F]=this,n},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){n===void 0&&(n=!1),ns(this,n)},e}(),jo=100,Uo=function(t){return t()};function oa(){_.inBatch>0||_.isRunningReactions||Uo(Mo)}function Mo(){_.isRunningReactions=!0;for(var e=_.pendingReactions,t=0;e.length>0;){++t===jo&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var i=e.splice(0),n=0,a=i.length;n<a;n++)i[n].runReaction_()}_.isRunningReactions=!1}var At=be("Reaction",wt);function qe(){return!1}function Bo(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var sa="action",zo="action.bound",ua="autoAction",Go="autoAction.bound",$o="<unnamed action>",la=ot(sa),Ko=ot(zo,{bound:!0}),da=ot(ua,{autoAction:!0}),Qo=ot(Go,{autoAction:!0,bound:!0});function ca(e){var t=function(n,a){if(X(n))return Le(n.name||$o,n,e);if(X(a))return Le(n,a,e);if(ye(a))return at(n,a,e?da:la);if(ye(n))return te(ot(e?ua:sa,{name:n,autoAction:e}))};return t}var me=ca(!1);Object.assign(me,la);var Ze=ca(!0);Object.assign(Ze,da);me.bound=te(Ko);Ze.bound=te(Qo);function yn(e){return X(e)&&e.isMobxAction===!0}function _n(e,t){var i,n;t===void 0&&(t=hn);var a=(i=(n=t)==null?void 0:n.name)!=null?i:"Autorun",r=!t.scheduler&&!t.delay,o;if(r)o=new wt(a,function(){this.track(l)},t.onError,t.requiresObservable);else{var s=fa(t),u=!1;o=new wt(a,function(){u||(u=!0,s(function(){u=!1,o.isDisposed_||o.track(l)}))},t.onError,t.requiresObservable)}function l(){e(o)}return o.schedule_(),o.getDisposer_()}var Wo=function(t){return t()};function fa(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Wo}function qo(e,t,i){var n;i===void 0&&(i=hn);var a=(n=i.name)!=null?n:"Reaction",r=me(a,i.onError?Jo(i.onError,t):t),o=!i.scheduler&&!i.delay,s=fa(i),u=!0,l=!1,d,c,p=i.compareStructural?xe.structural:i.equals||xe.default,g=new wt(a,function(){u||o?S():l||(l=!0,s(S))},i.onError,i.requiresObservable);function S(){if(l=!1,!g.isDisposed_){var v=!1;g.track(function(){var m=Hi(!1,function(){return e(g)});v=u||!p(d,m),c=d,d=m}),(u&&i.fireImmediately||!u&&v)&&r(d,c,g),u=!1}}return g.schedule_(),g.getDisposer_()}function Jo(e,t){return function(){try{return t.apply(this,arguments)}catch(i){e.call(this,i)}}}var Ho="onBO",Zo="onBUO";function Xo(e,t,i){return ha(Ho,e,t,i)}function ma(e,t,i){return ha(Zo,e,t,i)}function ha(e,t,i,n){var a=typeof n=="function"?_e(t,i):_e(t),r=X(n)?n:i,o=e+"L";return a[o]?a[o].add(r):a[o]=new Set([r]),function(){var s=a[o];s&&(s.delete(r),s.size===0&&delete a[o])}}function va(e,t,i,n){var a=Br(t),r=ft(e,n)[F];G();try{Te(a).forEach(function(o){r.extend_(o,a[o],i&&o in i?i[o]:!0)})}finally{$()}return e}var Yo=0;function pa(){this.message="FLOW_CANCELLED"}pa.prototype=Object.create(Error.prototype);var Kn=Bi("flow"),es=Bi("flow.bound",{bound:!0}),Xe=Object.assign(function(t,i){if(ye(i))return at(t,i,Kn);var n=t,a=n.name||"<unnamed flow>",r=function(){var s=this,u=arguments,l=++Yo,d=me(a+" - runid: "+l+" - init",n).apply(s,u),c,p=void 0,g=new Promise(function(S,v){var m=0;c=v;function y(O){p=void 0;var T;try{T=me(a+" - runid: "+l+" - yield "+m++,d.next).call(d,O)}catch(L){return v(L)}A(T)}function N(O){p=void 0;var T;try{T=me(a+" - runid: "+l+" - yield "+m++,d.throw).call(d,O)}catch(L){return v(L)}A(T)}function A(O){if(X(O==null?void 0:O.then)){O.then(A,v);return}return O.done?S(O.value):(p=Promise.resolve(O.value),p.then(y,N))}y(void 0)});return g.cancel=me(a+" - runid: "+l+" - cancel",function(){try{p&&Qn(p);var S=d.return(void 0),v=Promise.resolve(S.value);v.then(Ae,Ae),Qn(v),c(new pa)}catch(m){c(m)}}),g};return r.isMobXFlow=!0,r},Kn);Xe.bound=te(es);function Qn(e){X(e.cancel)&&e.cancel()}function Ft(e){return(e==null?void 0:e.isMobXFlow)===!0}function ts(e,t){return e?t!==void 0?Ye(e)?e[F].values_.has(t):!1:Ye(e)||!!e[F]||pn(e)||At(e)||jt(e):!1}function lt(e){return ts(e)}function ns(){x("trace() is not available in production builds");for(var e=!1,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];typeof i[i.length-1]=="boolean"&&(e=i.pop());var a=is(i);if(!a)return x("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");a.isTracing_===ke.NONE&&console.log("[mobx.trace] '"+a.name_+"' tracing enabled"),a.isTracing_=e?ke.BREAK:ke.LOG}function is(e){switch(e.length){case 0:return _.trackingDerivation;case 1:return _e(e[0]);case 2:return _e(e[0],e[1])}}function se(e,t){t===void 0&&(t=void 0),G();try{return e.apply(t)}finally{$()}}function Ee(e){return e[F]}var as={has:function(t,i){return Ee(t).has_(i)},get:function(t,i){return Ee(t).get_(i)},set:function(t,i,n){var a;return ye(i)?(a=Ee(t).set_(i,n,!0))!=null?a:!0:!1},deleteProperty:function(t,i){var n;return ye(i)?(n=Ee(t).delete_(i,!0))!=null?n:!0:!1},defineProperty:function(t,i,n){var a;return(a=Ee(t).defineProperty_(i,n))!=null?a:!0},ownKeys:function(t){return Ee(t).ownKeys_()},preventExtensions:function(t){x(13)}};function rs(e,t){var i,n;return Di(),e=ft(e,t),(n=(i=e[F]).proxy_)!=null?n:i.proxy_=new Proxy(e,as)}function Q(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function dt(e,t){var i=e.interceptors_||(e.interceptors_=[]);return i.push(t),xi(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function W(e,t){var i=Ue();try{for(var n=[].concat(e.interceptors_||[]),a=0,r=n.length;a<r&&(t=n[a](t),t&&!t.type&&x(14),!!t);a++);return t}finally{ve(i)}}function J(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function ct(e,t){var i=e.changeListeners_||(e.changeListeners_=[]);return i.push(t),xi(function(){var n=i.indexOf(t);n!==-1&&i.splice(n,1)})}function H(e,t){var i=Ue(),n=e.changeListeners_;if(n){n=n.slice();for(var a=0,r=n.length;a<r;a++)n[a](t);ve(i)}}function os(e,t,i){var n=ft(e,i)[F];G();try{var a;(a=t)!=null||(t=Kr(e)),Te(t).forEach(function(r){return n.make_(r,t[r])})}finally{$()}return e}var Yt=Symbol("mobx-keys");function ss(e,t,i){if(de(e))return va(e,e,t,i);var n=ft(e,i)[F];if(!e[Yt]){var a=Object.getPrototypeOf(e),r=new Set([].concat(Te(e),Te(a)));r.delete("constructor"),r.delete(F),nt(a,Yt,r)}G();try{e[Yt].forEach(function(o){return n.make_(o,t&&o in t?t[o]:!0)})}finally{$()}return e}var Wn="splice",ne="update",us=1e4,ls={get:function(t,i){var n=t[F];return i===F?n:i==="length"?n.getArrayLength_():typeof i=="string"&&!isNaN(i)?n.get_(parseInt(i)):le(Ct,i)?Ct[i]:t[i]},set:function(t,i,n){var a=t[F];return i==="length"&&a.setArrayLength_(n),typeof i=="symbol"||isNaN(i)?t[i]=n:a.set_(parseInt(i),n),!0},preventExtensions:function(){x(15)}},Sn=function(){function e(i,n,a,r){i===void 0&&(i="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=a,this.legacyMode_=r,this.atom_=new rt(i),this.enhancer_=function(o,s){return n(o,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return dt(this,n)},t.observe_=function(n,a){return a===void 0&&(a=!1),a&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ct(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&x("Out of range: "+n);var a=this.values_.length;if(n!==a)if(n>a){for(var r=new Array(n-a),o=0;o<n-a;o++)r[o]=void 0;this.spliceWithArray_(a,0,r)}else this.spliceWithArray_(n,a-n)},t.updateArrayLength_=function(n,a){n!==this.lastKnownLength_&&x(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&Aa(n+a+1)},t.spliceWithArray_=function(n,a,r){var o=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?a=s-n:a==null?a=0:a=Math.max(0,Math.min(a,s-n)),r===void 0&&(r=an),Q(this)){var u=W(this,{object:this.proxy_,type:Wn,index:n,removedCount:a,added:r});if(!u)return an;a=u.removedCount,r=u.added}if(r=r.length===0?r:r.map(function(c){return o.enhancer_(c,void 0)}),this.legacyMode_){var l=r.length-a;this.updateArrayLength_(s,l)}var d=this.spliceItemsIntoValues_(n,a,r);return(a!==0||r.length!==0)&&this.notifyArraySplice_(n,r,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(n,a,r){if(r.length<us){var o;return(o=this.values_).splice.apply(o,[n,a].concat(r))}else{var s=this.values_.slice(n,n+a),u=this.values_.slice(n+a);this.values_.length+=r.length-a;for(var l=0;l<r.length;l++)this.values_[n+l]=r[l];for(var d=0;d<u.length;d++)this.values_[n+r.length+d]=u[d];return s}},t.notifyArrayChildUpdate_=function(n,a,r){var o=!this.owned_&&qe(),s=J(this),u=s||o?{observableKind:"array",object:this.proxy_,type:ne,debugObjectName:this.atom_.name_,index:n,newValue:a,oldValue:r}:null;this.atom_.reportChanged(),s&&H(this,u)},t.notifyArraySplice_=function(n,a,r){var o=!this.owned_&&qe(),s=J(this),u=s||o?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Wn,index:n,removed:r,added:a,removedCount:r.length,addedCount:a.length}:null;this.atom_.reportChanged(),s&&H(this,u)},t.get_=function(n){if(this.legacyMode_&&n>=this.values_.length){console.warn("[mobx] Out of bounds read: "+n);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,a){var r=this.values_;if(this.legacyMode_&&n>r.length&&x(17,n,r.length),n<r.length){this.atom_;var o=r[n];if(Q(this)){var s=W(this,{type:ne,object:this.proxy_,index:n,newValue:a});if(!s)return;a=s.newValue}a=this.enhancer_(a,o);var u=a!==o;u&&(r[n]=a,this.notifyArrayChildUpdate_(n,a,o))}else{for(var l=new Array(n+1-r.length),d=0;d<l.length-1;d++)l[d]=void 0;l[l.length-1]=a,this.spliceWithArray_(r.length,0,l)}},e}();function ds(e,t,i,n){i===void 0&&(i="ObservableArray"),n===void 0&&(n=!1),Di();var a=new Sn(i,t,n,!1);Li(a.values_,F,a);var r=new Proxy(a.values_,ls);if(a.proxy_=r,e&&e.length){var o=st(!0);a.spliceWithArray_(0,0,e),ut(o)}return r}var Ct={clear:function(){return this.splice(0)},replace:function(t){var i=this[F];return i.spliceWithArray_(0,i.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,i){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];var o=this[F];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(t);case 2:return o.spliceWithArray_(t,i)}return o.spliceWithArray_(t,i,a)},spliceWithArray:function(t,i,n){return this[F].spliceWithArray_(t,i,n)},push:function(){for(var t=this[F],i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[F].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[F],i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return _.trackingDerivation&&x(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){_.trackingDerivation&&x(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var i=this[F],n=i.dehanceValues_(i.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};U("concat",ce);U("flat",ce);U("includes",ce);U("indexOf",ce);U("join",ce);U("lastIndexOf",ce);U("slice",ce);U("toString",ce);U("toLocaleString",ce);U("every",ge);U("filter",ge);U("find",ge);U("findIndex",ge);U("flatMap",ge);U("forEach",ge);U("map",ge);U("some",ge);U("reduce",ga);U("reduceRight",ga);function U(e,t){typeof Array.prototype[e]=="function"&&(Ct[e]=t(e))}function ce(e){return function(){var t=this[F];t.atom_.reportObserved();var i=t.dehanceValues_(t.values_);return i[e].apply(i,arguments)}}function ge(e){return function(t,i){var n=this,a=this[F];a.atom_.reportObserved();var r=a.dehanceValues_(a.values_);return r[e](function(o,s){return t.call(i,o,s,n)})}}function ga(e){return function(){var t=this,i=this[F];i.atom_.reportObserved();var n=i.dehanceValues_(i.values_),a=arguments[0];return arguments[0]=function(r,o,s){return a(r,o,s,t)},n[e].apply(n,arguments)}}var cs=be("ObservableArrayAdministration",Sn);function Ut(e){return Lt(e)&&cs(e[F])}var ka,ya,fs={},he="add",Rt="delete";ka=Symbol.iterator;ya=Symbol.toStringTag;var _a=function(){function e(i,n,a){var r=this;n===void 0&&(n=Pe),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[F]=fs,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_=n,this.name_=a,X(Map)||x(18),this.keysAtom_=Ui("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Hi(!0,function(){r.merge(i)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var a=this;if(!_.trackingDerivation)return this.has_(n);var r=this.hasMap_.get(n);if(!r){var o=r=new Re(this.has_(n),It,"ObservableMap.key?",!1);this.hasMap_.set(n,o),ma(o,function(){return a.hasMap_.delete(n)})}return r.get()},t.set=function(n,a){var r=this.has_(n);if(Q(this)){var o=W(this,{type:r?ne:he,object:this,newValue:a,name:n});if(!o)return this;a=o.newValue}return r?this.updateValue_(n,a):this.addValue_(n,a),this},t.delete=function(n){var a=this;if(this.keysAtom_,Q(this)){var r=W(this,{type:Rt,object:this,name:n});if(!r)return!1}if(this.has_(n)){var o=qe(),s=J(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:Rt,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return se(function(){var l;a.keysAtom_.reportChanged(),(l=a.hasMap_.get(n))==null||l.setNewValue_(!1);var d=a.data_.get(n);d.setNewValue_(void 0),a.data_.delete(n)}),s&&H(this,u),!0}return!1},t.updateValue_=function(n,a){var r=this.data_.get(n);if(a=r.prepareNewValue_(a),a!==_.UNCHANGED){var o=qe(),s=J(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:ne,object:this,oldValue:r.value_,name:n,newValue:a}:null;r.setNewValue_(a),s&&H(this,u)}},t.addValue_=function(n,a){var r=this;this.keysAtom_,se(function(){var l,d=new Re(a,r.enhancer_,"ObservableMap.key",!1);r.data_.set(n,d),a=d.value_,(l=r.hasMap_.get(n))==null||l.setNewValue_(!0),r.keysAtom_.reportChanged()});var o=qe(),s=J(this),u=s||o?{observableKind:"map",debugObjectName:this.name_,type:he,object:this,name:n,newValue:a}:null;s&&H(this,u)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,a=this.keys();return et({next:function(){var o=a.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:n.get(u)}}})},t.entries=function(){var n=this,a=this.keys();return et({next:function(){var o=a.next(),s=o.done,u=o.value;return{done:s,value:s?void 0:[u,n.get(u)]}}})},t[ka]=function(){return this.entries()},t.forEach=function(n,a){for(var r=Fe(this),o;!(o=r()).done;){var s=o.value,u=s[0],l=s[1];n.call(a,l,u,this)}},t.merge=function(n){var a=this;return Ne(n)&&(n=new Map(n)),se(function(){de(n)?Mr(n).forEach(function(r){return a.set(r,n[r])}):Array.isArray(n)?n.forEach(function(r){var o=r[0],s=r[1];return a.set(o,s)}):je(n)?(n.constructor!==Map&&x(19,n),n.forEach(function(r,o){return a.set(o,r)})):n!=null&&x(20,n)}),this},t.clear=function(){var n=this;se(function(){ea(function(){for(var a=Fe(n.keys()),r;!(r=a()).done;){var o=r.value;n.delete(o)}})})},t.replace=function(n){var a=this;return se(function(){for(var r=ms(n),o=new Map,s=!1,u=Fe(a.data_.keys()),l;!(l=u()).done;){var d=l.value;if(!r.has(d)){var c=a.delete(d);if(c)s=!0;else{var p=a.data_.get(d);o.set(d,p)}}}for(var g=Fe(r.entries()),S;!(S=g()).done;){var v=S.value,m=v[0],y=v[1],N=a.data_.has(m);if(a.set(m,y),a.data_.has(m)){var A=a.data_.get(m);o.set(m,A),N||(s=!0)}}if(!s)if(a.data_.size!==o.size)a.keysAtom_.reportChanged();else for(var O=a.data_.keys(),T=o.keys(),L=O.next(),z=T.next();!L.done;){if(L.value!==z.value){a.keysAtom_.reportChanged();break}L=O.next(),z=T.next()}a.data_=o}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,a){return ct(this,n)},t.intercept_=function(n){return dt(this,n)},vn(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:ya,get:function(){return"Map"}}]),e}(),Ne=be("ObservableMap",_a);function ms(e){if(je(e)||Ne(e))return e;if(Array.isArray(e))return new Map(e);if(de(e)){var t=new Map;for(var i in e)t.set(i,e[i]);return t}else return x(21,e)}var Sa,ba,hs={};Sa=Symbol.iterator;ba=Symbol.toStringTag;var Na=function(){function e(i,n,a){n===void 0&&(n=Pe),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[F]=hs,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=a,X(Set)||x(22),this.atom_=Ui(this.name_),this.enhancer_=function(r,o){return n(r,o,a)},i&&this.replace(i)}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;se(function(){ea(function(){for(var a=Fe(n.data_.values()),r;!(r=a()).done;){var o=r.value;n.delete(o)}})})},t.forEach=function(n,a){for(var r=Fe(this),o;!(o=r()).done;){var s=o.value;n.call(a,s,s,this)}},t.add=function(n){var a=this;if(this.atom_,Q(this)){var r=W(this,{type:he,object:this,newValue:n});if(!r)return this}if(!this.has(n)){se(function(){a.data_.add(a.enhancer_(n,void 0)),a.atom_.reportChanged()});var o=!1,s=J(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:he,object:this,newValue:n}:null;s&&H(this,u)}return this},t.delete=function(n){var a=this;if(Q(this)){var r=W(this,{type:Rt,object:this,oldValue:n});if(!r)return!1}if(this.has(n)){var o=!1,s=J(this),u=s||o?{observableKind:"set",debugObjectName:this.name_,type:Rt,object:this,oldValue:n}:null;return se(function(){a.atom_.reportChanged(),a.data_.delete(n)}),s&&H(this,u),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=0,a=Array.from(this.keys()),r=Array.from(this.values());return et({next:function(){var s=n;return n+=1,s<r.length?{value:[a[s],r[s]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,a=0,r=Array.from(this.data_.values());return et({next:function(){return a<r.length?{value:n.dehanceValue_(r[a++]),done:!1}:{done:!0}}})},t.replace=function(n){var a=this;return Me(n)&&(n=new Set(n)),se(function(){Array.isArray(n)?(a.clear(),n.forEach(function(r){return a.add(r)})):it(n)?(a.clear(),n.forEach(function(r){return a.add(r)})):n!=null&&x("Cannot initialize set from "+n)}),this},t.observe_=function(n,a){return ct(this,n)},t.intercept_=function(n){return dt(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Sa]=function(){return this.values()},vn(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:ba,get:function(){return"Set"}}]),e}(),Me=be("ObservableSet",Na),qn=Object.create(null),Jn="remove",Oa=function(){function e(i,n,a,r){n===void 0&&(n=new Map),r===void 0&&(r=ho),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_=i,this.values_=n,this.name_=a,this.defaultAnnotation_=r,this.keysAtom_=new rt("ObservableObject.keys"),this.isPlainObject_=de(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,a){var r=this.values_.get(n);if(r instanceof He)return r.set(a),!0;if(Q(this)){var o=W(this,{type:ne,object:this.proxy_||this.target_,name:n,newValue:a});if(!o)return null;a=o.newValue}if(a=r.prepareNewValue_(a),a!==_.UNCHANGED){var s=J(this),u=!1,l=s||u?{type:ne,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:r.value_,name:n,newValue:a}:null;r.setNewValue_(a),s&&H(this,l)}return!0},t.get_=function(n){return _.trackingDerivation&&!le(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,a,r){return r===void 0&&(r=!1),le(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,a):r?Reflect.set(this.target_,n,a):(this.target_[n]=a,!0):this.extend_(n,{value:a,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},t.has_=function(n){if(!_.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var a=this.pendingKeys_.get(n);return a||(a=new Re(n in this.target_,It,"ObservableObject.key?",!1),this.pendingKeys_.set(n,a)),a.get()},t.make_=function(n,a){if(a===!0&&(a=this.defaultAnnotation_),a!==!1){if(!(n in this.target_)){var r;if((r=this.target_[Y])!=null&&r[n])return;x(1,a.annotationType_,this.name_+"."+n.toString())}for(var o=this.target_;o&&o!==Pt;){var s=Nt(o,n);if(s){var u=a.make_(this,n,s,o);if(u===0)return;if(u===1)break}o=Object.getPrototypeOf(o)}Zn(this,a,n)}},t.extend_=function(n,a,r,o){if(o===void 0&&(o=!1),r===!0&&(r=this.defaultAnnotation_),r===!1)return this.defineProperty_(n,a,o);var s=r.extend_(this,n,a,o);return s&&Zn(this,r,n),s},t.defineProperty_=function(n,a,r){r===void 0&&(r=!1);try{G();var o=this.delete_(n);if(!o)return o;if(Q(this)){var s=W(this,{object:this.proxy_||this.target_,name:n,type:he,newValue:a.value});if(!s)return null;var u=s.newValue;a.value!==u&&(a=De({},a,{value:u}))}if(r){if(!Reflect.defineProperty(this.target_,n,a))return!1}else ee(this.target_,n,a);this.notifyPropertyAddition_(n,a.value)}finally{$()}return!0},t.defineObservableProperty_=function(n,a,r,o){o===void 0&&(o=!1);try{G();var s=this.delete_(n);if(!s)return s;if(Q(this)){var u=W(this,{object:this.proxy_||this.target_,name:n,type:he,newValue:a});if(!u)return null;a=u.newValue}var l=Hn(n),d={configurable:_.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(o){if(!Reflect.defineProperty(this.target_,n,d))return!1}else ee(this.target_,n,d);var c=new Re(a,r,"ObservableObject.key",!1);this.values_.set(n,c),this.notifyPropertyAddition_(n,c.value_)}finally{$()}return!0},t.defineComputedProperty_=function(n,a,r){r===void 0&&(r=!1);try{G();var o=this.delete_(n);if(!o)return o;if(Q(this)){var s=W(this,{object:this.proxy_||this.target_,name:n,type:he,newValue:void 0});if(!s)return null}a.name||(a.name="ObservableObject.key"),a.context=this.proxy_||this.target_;var u=Hn(n),l={configurable:_.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(r){if(!Reflect.defineProperty(this.target_,n,l))return!1}else ee(this.target_,n,l);this.values_.set(n,new He(a)),this.notifyPropertyAddition_(n,void 0)}finally{$()}return!0},t.delete_=function(n,a){if(a===void 0&&(a=!1),!le(this.target_,n))return!0;if(Q(this)){var r=W(this,{object:this.proxy_||this.target_,name:n,type:Jn});if(!r)return null}try{var o,s;G();var u=J(this),l=!1,d=this.values_.get(n),c=void 0;if(!d&&(u||l)){var p;c=(p=Nt(this.target_,n))==null?void 0:p.value}if(a){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(d&&(this.values_.delete(n),d instanceof Re&&(c=d.value_),ra(d)),this.keysAtom_.reportChanged(),(o=this.pendingKeys_)==null||(s=o.get(n))==null||s.set(n in this.target_),u||l){var g={type:Jn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:n};u&&H(this,g)}}finally{$()}return!0},t.observe_=function(n,a){return ct(this,n)},t.intercept_=function(n){return dt(this,n)},t.notifyPropertyAddition_=function(n,a){var r,o,s=J(this),u=!1;if(s||u){var l=s||u?{type:he,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:a}:null;s&&H(this,l)}(r=this.pendingKeys_)==null||(o=r.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Te(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function ft(e,t){var i;if(le(e,F))return e;var n=(i=t==null?void 0:t.name)!=null?i:"ObservableObject",a=new Oa(e,new Map,String(n),Oo(t));return nt(e,F,a),e}var vs=be("ObservableObjectAdministration",Oa);function Hn(e){return qn[e]||(qn[e]={get:function(){return this[F].getObservablePropValue_(e)},set:function(i){return this[F].setObservablePropValue_(e,i)}})}function Ye(e){return Lt(e)?vs(e[F]):!1}function Zn(e,t,i){var n;(n=e.target_[Y])==null||delete n[i]}var ps=wa(0),en=0,Ea=function(){};function gs(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}gs(Ea,Array.prototype);var bn=function(e,t,i){ji(n,e);function n(r,o,s,u){var l;s===void 0&&(s="ObservableArray"),u===void 0&&(u=!1),l=e.call(this)||this;var d=new Sn(s,o,u,!0);if(d.proxy_=Ht(l),Li(Ht(l),F,d),r&&r.length){var c=st(!0);l.spliceWithArray(0,0,r),ut(c)}return Object.defineProperty(Ht(l),"0",ps),l}var a=n.prototype;return a.concat=function(){this[F].atom_.reportObserved();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return Array.prototype.concat.apply(this.slice(),s.map(function(l){return Ut(l)?l.slice():l}))},a[i]=function(){var r=this,o=0;return et({next:function(){return o<r.length?{value:r[o++],done:!1}:{done:!0,value:void 0}}})},vn(n,[{key:"length",get:function(){return this[F].getArrayLength_()},set:function(o){this[F].setArrayLength_(o)}},{key:t,get:function(){return"Array"}}]),n}(Ea,Symbol.toStringTag,Symbol.iterator);Object.entries(Ct).forEach(function(e){var t=e[0],i=e[1];t!=="concat"&&nt(bn.prototype,t,i)});function wa(e){return{enumerable:!1,configurable:!0,get:function(){return this[F].get_(e)},set:function(i){this[F].set_(e,i)}}}function ks(e){ee(bn.prototype,""+e,wa(e))}function Aa(e){if(e>en){for(var t=en;t<e+100;t++)ks(t);en=e}}Aa(1e3);function ys(e,t,i){return new bn(e,t,i)}function _e(e,t){if(typeof e=="object"&&e!==null){if(Ut(e))return t!==void 0&&x(23),e[F].atom_;if(Me(e))return e.atom_;if(Ne(e)){if(t===void 0)return e.keysAtom_;var i=e.data_.get(t)||e.hasMap_.get(t);return i||x(25,t,un(e)),i}if(Ye(e)){if(!t)return x(26);var n=e[F].values_.get(t);return n||x(27,t,un(e)),n}if(pn(e)||jt(e)||At(e))return e}else if(X(e)&&At(e[F]))return e[F];x(28)}function Fa(e,t){if(e||x(29),t!==void 0)return Fa(_e(e,t));if(pn(e)||jt(e)||At(e)||Ne(e)||Me(e))return e;if(e[F])return e[F];x(24,e)}function un(e,t){var i;if(t!==void 0)i=_e(e,t);else{if(yn(e))return e.name;Ye(e)||Ne(e)||Me(e)?i=Fa(e):i=_e(e)}return i.name_}var Xn=Pt.toString;function Nn(e,t,i){return i===void 0&&(i=-1),ln(e,t,i)}function ln(e,t,i,n,a){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var r=typeof e;if(r!=="function"&&r!=="object"&&typeof t!="object")return!1;var o=Xn.call(e);if(o!==Xn.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":i>=0&&i++;break}e=Yn(e),t=Yn(t);var s=o==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(X(u)&&u instanceof u&&X(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(i===0)return!1;i<0&&(i=-1),n=n||[],a=a||[];for(var d=n.length;d--;)if(n[d]===e)return a[d]===t;if(n.push(e),a.push(t),s){if(d=e.length,d!==t.length)return!1;for(;d--;)if(!ln(e[d],t[d],i-1,n,a))return!1}else{var c=Object.keys(e),p;if(d=c.length,Object.keys(t).length!==d)return!1;for(;d--;)if(p=c[d],!(le(t,p)&&ln(e[p],t[p],i-1,n,a)))return!1}return n.pop(),a.pop(),!0}function Yn(e){return Ut(e)?e.slice():je(e)||Ne(e)||it(e)||Me(e)?Array.from(e.entries()):e}function et(e){return e[Symbol.iterator]=_s,e}function _s(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Ri();typeof t[e]=="undefined"&&x("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Bo,extras:{getDebugName:un},$mobx:F});let Ss=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,i)=>(i&=63,i<36?t+=i.toString(36):i<62?t+=(i-26).toString(36).toUpperCase():i>62?t+="-":t+="_",t),"");const Ca=(e=8)=>Ss(e),bs=e=>{const t=Object.entries(e).reduce((i,[n,a])=>a!==void 0?`${i}${i?"&":""}${n}=${a}`:i,"");return t?`?${t}`:""};function Ns(){const e=new Error().stack.split(`
3
- `);return e.length<3?"":e[2].trim().substring(3)}class mt extends Error{constructor(t,i,n){super(i),this.value=n,this.name=t}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class Ra extends mt{constructor(t){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${t}' not found.`,t)}}class Ta extends mt{constructor(t){var i;super("APP_UNEXPECTED_ERROR",(i=t.message)!=null?i:"An unexpected error occurred.",t)}}class Os extends mt{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Da extends mt{constructor(t){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
4
- Configuration property invalid: "${t}".
1
+ "use strict";var sr=Object.defineProperty;var or=(t,e,n)=>e in t?sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var T=(t,e,n)=>(or(t,typeof e!="symbol"?e+"":e,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react"),lr=require("react/jsx-runtime");function ur(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const q=ur($);let dr=0;function cr(t,e){const n=`atom${++dr}`,i={toString:()=>n};return typeof t=="function"?i.read=t:(i.init=t,i.read=function(a){return a(this)},i.write=function(a,r,s){return r(this,typeof s=="function"?s(a(this)):s)}),e&&(i.write=e),i}const An=t=>"init"in t,wn=t=>!!t.write,ht=new WeakMap,fr=(t,e)=>{ht.set(t,e),t.catch(()=>{}).finally(()=>ht.delete(t))},Fn=(t,e)=>{const n=ht.get(t);n&&(ht.delete(t),n(e))},Cn=(t,e)=>{t.status="fulfilled",t.value=e},Rn=(t,e)=>{t.status="rejected",t.reason=e},mr=t=>typeof(t==null?void 0:t.then)=="function",Ie=(t,e)=>!!t&&"v"in t&&"v"in e&&Object.is(t.v,e.v),Tn=(t,e)=>!!t&&"e"in t&&"e"in e&&Object.is(t.e,e.e),ye=t=>!!t&&"v"in t&&t.v instanceof Promise,hr=(t,e)=>"v"in t&&"v"in e&&t.v.orig&&t.v.orig===e.v.orig,ut=t=>{if("e"in t)throw t.e;return t.v},vi=()=>{const t=new WeakMap,e=new WeakMap,n=new Map;let i,a;const r=m=>t.get(m),s=(m,h)=>{const k=t.get(m);if(t.set(m,h),n.has(m)||n.set(m,k),ye(k)){const y="v"in h?h.v instanceof Promise?h.v:Promise.resolve(h.v):Promise.reject(h.e);k.v!==y&&Fn(k.v,y)}},o=(m,h,k)=>{const y=new Map;let E=!1;k.forEach((w,N)=>{!w&&N===m&&(w=h),w&&(y.set(N,w),h.d.get(N)!==w&&(E=!0))}),(E||h.d.size!==y.size)&&(h.d=y)},l=(m,h,k)=>{const y=r(m),E={d:(y==null?void 0:y.d)||new Map,v:h};if(k&&o(m,E,k),Ie(y,E)&&y.d===E.d)return y;if(ye(y)&&ye(E)&&hr(y,E)){if(y.d===E.d)return y;E.v=y.v}return s(m,E),E},u=(m,h,k,y)=>{if(mr(h)){let E;const w=()=>{const F=r(m);if(!ye(F)||F.v!==N)return;const U=l(m,N,k);e.has(m)&&F.d!==U.d&&x(m,U,F.d)},N=new Promise((F,U)=>{let C=!1;h.then(I=>{C||(C=!0,Cn(N,I),F(I),w())},I=>{C||(C=!0,Rn(N,I),U(I),w())}),E=I=>{C||(C=!0,I.then(M=>Cn(N,M),M=>Rn(N,M)),F(I))}});return N.orig=h,N.status="pending",fr(N,F=>{F&&E(F),y==null||y()}),l(m,N,k)}return l(m,h,k)},d=(m,h,k)=>{const y=r(m),E={d:(y==null?void 0:y.d)||new Map,e:h};return k&&o(m,E,k),Tn(y,E)&&y.d===E.d?y:(s(m,E),E)},f=(m,h)=>{const k=r(m);if(!h&&k&&(e.has(m)||Array.from(k.d).every(([C,I])=>{if(C===m)return!0;const M=f(C);return M===I||Ie(M,I)})))return k;const y=new Map;let E=!0;const w=C=>{if(C===m){const M=r(C);if(M)return y.set(C,M),ut(M);if(An(C))return y.set(C,void 0),C.init;throw new Error("no atom init")}const I=f(C);return y.set(C,I),ut(I)};let N,F;const U={get signal(){return N||(N=new AbortController),N.signal},get setSelf(){return!F&&wn(m)&&(F=(...C)=>{if(!E)return O(m,...C)}),F}};try{const C=m.read(w,U);return u(m,C,y,()=>N==null?void 0:N.abort())}catch(C){return d(m,C,y)}finally{E=!1}},c=m=>ut(f(m)),S=m=>{let h=e.get(m);return h||(h=D(m)),h},b=(m,h)=>!h.l.size&&(!h.t.size||h.t.size===1&&h.t.has(m)),v=m=>{const h=e.get(m);h&&b(m,h)&&_(m)},p=m=>{const h=new Map,k=new WeakMap,y=N=>{var F;const U=new Set((F=e.get(N))==null?void 0:F.t);return n.forEach((C,I)=>{var M;(M=r(I))!=null&&M.d.has(N)&&U.add(I)}),U},E=N=>{y(N).forEach(F=>{F!==N&&(h.set(F,(h.get(F)||new Set).add(N)),k.set(F,(k.get(F)||0)+1),E(F))})};E(m);const w=N=>{y(N).forEach(F=>{var U;if(F!==N){let C=k.get(F);if(C&&k.set(F,--C),!C){let I=!!((U=h.get(F))!=null&&U.size);if(I){const M=r(F),lt=f(F,!0);I=!Ie(M,lt)}I||h.forEach(M=>M.delete(F))}w(F)}})};w(m)},A=(m,...h)=>{let k=!0;const y=N=>ut(f(N)),E=(N,...F)=>{let U;if(N===m){if(!An(N))throw new Error("atom not writable");const C=r(N),I=u(N,F[0]);Ie(C,I)||p(N)}else U=A(N,...F);if(!k){const C=L()}return U},w=m.write(y,E,...h);return k=!1,w},O=(m,...h)=>{const k=A(m,...h),y=L();return k},D=(m,h,k)=>{var y;const E=k||[];(y=r(m))==null||y.d.forEach((N,F)=>{const U=e.get(F);U?U.t.add(m):F!==m&&D(F,m,E)}),f(m);const w={t:new Set(h&&[h]),l:new Set};if(e.set(m,w),wn(m)&&m.onMount){const{onMount:N}=m;E.push(()=>{const F=N((...U)=>O(m,...U));F&&(w.u=F)})}return k||E.forEach(N=>N()),w},_=m=>{var h;const k=(h=e.get(m))==null?void 0:h.u;k&&k(),e.delete(m);const y=r(m);y&&(ye(y)&&Fn(y.v),y.d.forEach((E,w)=>{if(w!==m){const N=e.get(w);N&&(N.t.delete(m),b(w,N)&&_(w))}}))},x=(m,h,k)=>{const y=new Set(h.d.keys());k==null||k.forEach((E,w)=>{if(y.has(w)){y.delete(w);return}const N=e.get(w);N&&(N.t.delete(m),b(w,N)&&_(w))}),y.forEach(E=>{const w=e.get(E);w?w.t.add(m):e.has(m)&&D(E,m)})},L=()=>{let m;for(;n.size;){const h=Array.from(n);n.clear(),h.forEach(([k,y])=>{const E=r(k);if(E){const w=e.get(k);w&&E.d!==(y==null?void 0:y.d)&&x(k,E,y==null?void 0:y.d),w&&!(!ye(y)&&(Ie(y,E)||Tn(y,E)))&&w.l.forEach(N=>N())}})}};return{get:c,set:O,sub:(m,h)=>{const k=S(m),y=L(),E=k.l;return E.add(h),()=>{E.delete(h),v(m)}}}};let $t;const pr=()=>($t||($t=vi()),$t),gr=$.createContext(void 0),ki=t=>{const e=$.useContext(gr);return(t==null?void 0:t.store)||e||pr()},vr=t=>typeof(t==null?void 0:t.then)=="function",kr=$.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 yr(t,e){const n=ki(e),[[i,a,r],s]=$.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;(a!==n||r!==t)&&(s(),o=n.get(t));const l=e==null?void 0:e.delay;return $.useEffect(()=>{const u=n.sub(t,()=>{if(typeof l=="number"){setTimeout(s,l);return}s()});return s(),u},[n,t,l]),$.useDebugValue(o),vr(o)?kr(o):o}function Sr(t,e){const n=ki(e);return $.useCallback((...a)=>n.set(t,...a),[n,t])}function br(t,e){return[yr(t,e),Sr(t,e)]}const Tt=cr(null);Tt.debugLabel="accountAtom";const{NZ_AWS_REGION:_r,NZ_BACKOFFICE_BACK_URL:Nr,NZ_CORE_SERVICES_GRAPHQL_URL:Or,NZ_CORE_SERVICES_REST_URL:Er}={NZ_AWS_REGION:"us-east-1",NZ_VTEX_PROJECT:"/Users/jbermudez/TODO/PROJECTS/live-shopping",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Ar={AWS:{region:_r,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:Nr||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Er||"https://core-services-dev.nizza.com/api",graphql:Or||"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"}};async function sn(t){const{url:e,method:n="GET",body:i,raw:a=!1,contentTypeJson:r=!0,timeout:s,...o}=t,l=r&&!t.headers?new Headers({"content-type":"application/json"}):t.headers;try{const u=new AbortController,{signal:d}=u;let f;const c=fetch(e,{method:n,headers:l,body:i,signal:d,...o});s&&(f=setTimeout(()=>{u.abort()},s));const S=await c;if(a)return S;const b=await S.json();if(clearTimeout(f),!S.ok){const v=b?JSON.stringify(b):S.statusText;throw new Error(v)}return b}catch(u){throw console.error("[CustomFetch] ",u),u}}const wr=t=>sn({...t,contentTypeJson:!1,raw:!1});function Fr(t,e,n){fetch(e).then(i=>i.blob()).then(i=>yi(i,`${t}.${n}`))}const yi=(t,e,n)=>{const i=[t],a=new Blob(i,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(a,e);const r=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),s=document.createElement("a");return s.style.display="none",s.href=r,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(r)},200)};var Si=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function bi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _i={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.prefix=n(e)})(Si,function(e){var n=function(d){for(var f=1,c=arguments.length,S;f<c;f++)for(S in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],S)&&(d[S]=arguments[f][S]);return d},i={template:"[%t] %l:",levelFormatter:function(d){return d.toUpperCase()},nameFormatter:function(d){return d||"root"},timestampFormatter:function(d){return d.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},a,r={},s=function(d){if(!d||!d.getLogger)throw new TypeError("Argument is not a root logger");a=d},o=function(d,f){if(!d||!d.setLevel)throw new TypeError("Argument is not a logger");var c=d.methodFactory,S=d.name||"",b=r[S]||r[""]||i;function v(p,A,O){var D=c(p,A,O),_=r[O]||r[""],x=_.template.indexOf("%t")!==-1,L=_.template.indexOf("%l")!==-1,j=_.template.indexOf("%n")!==-1;return function(){for(var m="",h=arguments.length,k=Array(h),y=0;y<h;y++)k[y]=arguments[y];if(S||!r[O]){var E=_.timestampFormatter(new Date),w=_.levelFormatter(p),N=_.nameFormatter(O);_.format?m+=_.format(w,N,E):(m+=_.template,x&&(m=m.replace(/%t/,E)),L&&(m=m.replace(/%l/,w)),j&&(m=m.replace(/%n/,N))),k.length&&typeof k[0]=="string"?k[0]=m+" "+k[0]:k.unshift(m)}D.apply(void 0,k)}}return r[S]||(d.methodFactory=v),f=f||{},f.template&&(f.format=void 0),r[S]=n({},b,f),d.setLevel(d.getLevel()),a||d.warn("It is necessary to call the function reg() of loglevel-plugin-prefix before calling apply. From the next release, it will throw an error. See more: https://github.com/kutuluk/loglevel-plugin-prefix/blob/master/README.md"),d},l={reg:s,apply:o},u;return e&&(u=e.prefix,l.noConflict=function(){return e.prefix===l&&(e.prefix=u),l}),l})})(_i);var Cr=_i.exports;const Ni=bi(Cr);function V(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 Rr={};function Oi(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Rr}var Ei=Object.assign,pt=Object.getOwnPropertyDescriptor,ne=Object.defineProperty,Dt=Object.prototype,Zt=[];Object.freeze(Zt);var on={};Object.freeze(on);var Tr=typeof Proxy!="undefined",Dr=Object.toString();function Ai(){Tr||V("Proxy not available")}function wi(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var Ne=function(){};function X(t){return typeof t=="function"}function pe(t){var e=typeof t;switch(e){case"string":case"symbol":case"number":return!0}return!1}function xt(t){return t!==null&&typeof t=="object"}function le(t){if(!xt(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()===Dr}function Fi(t){var e=t==null?void 0:t.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function He(t,e,n){ne(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Ci(t,e,n){ne(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function ge(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(i){return xt(i)&&i[n]===!0}}function Pe(t){return t instanceof Map}function Xe(t){return t instanceof Set}var Ri=typeof Object.getOwnPropertySymbols!="undefined";function xr(t){var e=Object.keys(t);if(!Ri)return e;var n=Object.getOwnPropertySymbols(t);return n.length?[].concat(e,n.filter(function(i){return Dt.propertyIsEnumerable.call(t,i)})):e}var Fe=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Ri?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames;function Ti(t){return t===null?null:typeof t=="object"?""+t:t}function se(t,e){return Dt.hasOwnProperty.call(t,e)}var Pr=Object.getOwnPropertyDescriptors||function(e){var n={};return Fe(e).forEach(function(i){n[i]=pt(e,i)}),n};function Dn(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,Vr(i.key),i)}}function ln(t,e,n){return e&&Dn(t.prototype,e),n&&Dn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ce(){return Ce=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},Ce.apply(this,arguments)}function Di(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ht(t,e)}function Ht(t,e){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},Ht(t,e)}function zt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Lr(t,e){if(t){if(typeof t=="string")return xn(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 xn(t,e)}}function xn(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 Oe(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=Lr(t))||e&&t&&typeof t.length=="number"){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 Ir(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||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vr(t){var e=Ir(t,"string");return typeof e=="symbol"?e:String(e)}var ee=Symbol("mobx-stored-annotations");function ie(t){function e(n,i){Ye(n,i,t)}return Object.assign(e,t)}function Ye(t,e,n){se(t,ee)||He(t,ee,Ce({},t[ee])),Jr(n)||(t[ee][e]=n)}function jr(t){return se(t,ee)||He(t,ee,Ce({},t[ee])),t[ee]}var R=Symbol("mobx administration"),et=function(){function t(n){n===void 0&&(n="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.batchId_=void 0,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=P.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n,this.batchId_=g.inBatch?g.batchId:NaN}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 Hi(this)},e.reportChanged=function(){(!g.inBatch||this.batchId_!==g.batchId)&&(g.stateVersion=g.stateVersion<Number.MAX_SAFE_INTEGER?g.stateVersion+1:Number.MIN_SAFE_INTEGER,this.batchId_=NaN),Q(),Xi(this),W()},e.toString=function(){return this.name_},t}(),un=ge("Atom",et);function xi(t,e,n){e===void 0&&(e=Ne),n===void 0&&(n=Ne);var i=new et(t);return e!==Ne&&Ks(i,e),n!==Ne&&sa(i,n),i}function Ur(t,e){return t===e}function Mr(t,e){return gn(t,e)}function Br(t,e){return gn(t,e,1)}function $r(t,e){return Object.is?Object.is(t,e):t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Re={identity:Ur,structural:Mr,default:$r,shallow:Br};function Te(t,e,n){return nt(t)?t:Array.isArray(t)?z.array(t,{name:n}):le(t)?z.object(t,void 0,{name:n}):Pe(t)?z.map(t,{name:n}):Xe(t)?z.set(t,{name:n}):typeof t=="function"&&!fn(t)&&!bt(t)?Fi(t)?Ke(t):Ge(n,t):t}function zr(t,e,n){if(t==null||Je(t)||Ut(t)||ke(t)||Le(t))return t;if(Array.isArray(t))return z.array(t,{name:n,deep:!1});if(le(t))return z.object(t,void 0,{name:n,deep:!1});if(Pe(t))return z.map(t,{name:n,deep:!1});if(Xe(t))return z.set(t,{name:n,deep:!1})}function Pt(t){return t}function Gr(t,e){return gn(t,e)?e:t}var Kr="override";function Jr(t){return t.annotationType_===Kr}function tt(t,e){return{annotationType_:t,options_:e,make_:Qr,extend_:Wr}}function Qr(t,e,n,i){var a;if((a=this.options_)!=null&&a.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 r=Pi(t,this,e,n,!1);return ne(i,e,r),2}function Wr(t,e,n,i){var a=Pi(t,this,e,n);return t.defineProperty_(e,a,i)}function qr(t,e,n,i){e.annotationType_,i.value}function Pi(t,e,n,i,a){var r,s,o,l,u,d,f;a===void 0&&(a=g.safeDescriptors),qr(t,e,n,i);var c=i.value;if((r=e.options_)!=null&&r.bound){var S;c=c.bind((S=t.proxy_)!=null?S:t.target_)}return{value:De((s=(o=e.options_)==null?void 0:o.name)!=null?s:n.toString(),c,(l=(u=e.options_)==null?void 0:u.autoAction)!=null?l:!1,(d=e.options_)!=null&&d.bound?(f=t.proxy_)!=null?f:t.target_:void 0),configurable:a?t.isPlainObject_:!0,enumerable:!1,writable:!a}}function Li(t,e){return{annotationType_:t,options_:e,make_:Zr,extend_:Hr}}function Zr(t,e,n,i){var a;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if((a=this.options_)!=null&&a.bound&&(!se(t.target_,e)||!bt(t.target_[e]))&&this.extend_(t,e,n,!1)===null)return 0;if(bt(n.value))return 1;var r=Ii(t,this,e,n,!1,!1);return ne(i,e,r),2}function Hr(t,e,n,i){var a,r=Ii(t,this,e,n,(a=this.options_)==null?void 0:a.bound);return t.defineProperty_(e,r,i)}function Xr(t,e,n,i){e.annotationType_,i.value}function Ii(t,e,n,i,a,r){r===void 0&&(r=g.safeDescriptors),Xr(t,e,n,i);var s=i.value;if(bt(s)||(s=Ke(s)),a){var o;s=s.bind((o=t.proxy_)!=null?o:t.target_),s.isMobXFlow=!0}return{value:s,configurable:r?t.isPlainObject_:!0,enumerable:!1,writable:!r}}function dn(t,e){return{annotationType_:t,options_:e,make_:Yr,extend_:es}}function Yr(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function es(t,e,n,i){return ts(t,this,e,n),t.defineComputedProperty_(e,Ce({},this.options_,{get:n.get,set:n.set}),i)}function ts(t,e,n,i){e.annotationType_,i.get}function Lt(t,e){return{annotationType_:t,options_:e,make_:ns,extend_:is}}function ns(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function is(t,e,n,i){var a,r;return as(t,this),t.defineObservableProperty_(e,n.value,(a=(r=this.options_)==null?void 0:r.enhancer)!=null?a:Te,i)}function as(t,e,n,i){e.annotationType_}var rs="true",ss=Vi();function Vi(t){return{annotationType_:rs,options_:t,make_:os,extend_:ls}}function os(t,e,n,i){var a,r;if(n.get)return de.make_(t,e,n,i);if(n.set){var s=De(e.toString(),n.set);return i===t.target_?t.defineProperty_(e,{configurable:g.safeDescriptors?t.isPlainObject_:!0,set:s})===null?0:2:(ne(i,e,{configurable:!0,set:s}),2)}if(i!==t.target_&&typeof n.value=="function"){var o;if(Fi(n.value)){var l,u=(l=this.options_)!=null&&l.autoBind?Ke.bound:Ke;return u.make_(t,e,n,i)}var d=(o=this.options_)!=null&&o.autoBind?Ge.bound:Ge;return d.make_(t,e,n,i)}var f=((a=this.options_)==null?void 0:a.deep)===!1?z.ref:z;if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var c;n.value=n.value.bind((c=t.proxy_)!=null?c:t.target_)}return f.make_(t,e,n,i)}function ls(t,e,n,i){var a,r;if(n.get)return de.extend_(t,e,n,i);if(n.set)return t.defineProperty_(e,{configurable:g.safeDescriptors?t.isPlainObject_:!0,set:De(e.toString(),n.set)},i);if(typeof n.value=="function"&&(a=this.options_)!=null&&a.autoBind){var s;n.value=n.value.bind((s=t.proxy_)!=null?s:t.target_)}var o=((r=this.options_)==null?void 0:r.deep)===!1?z.ref:z;return o.extend_(t,e,n,i)}var us="observable",ds="observable.ref",cs="observable.shallow",fs="observable.struct",ji={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(ji);function dt(t){return t||ji}var Ui=Lt(us),ms=Lt(ds,{enhancer:Pt}),hs=Lt(cs,{enhancer:zr}),ps=Lt(fs,{enhancer:Gr}),Mi=ie(Ui);function ct(t){return t.deep===!0?Te:t.deep===!1?Pt:vs(t.defaultDecorator)}function gs(t){var e;return t?(e=t.defaultDecorator)!=null?e:Vi(t):void 0}function vs(t){var e,n;return t&&(e=(n=t.options_)==null?void 0:n.enhancer)!=null?e:Te}function Bi(t,e,n){if(pe(e)){Ye(t,e,Ui);return}return nt(t)?t:le(t)?z.object(t,e,n):Array.isArray(t)?z.array(t,e):Pe(t)?z.map(t,e):Xe(t)?z.set(t,e):typeof t=="object"&&t!==null?t:z.box(t,e)}Ei(Bi,Mi);var ks={box:function(e,n){var i=dt(n);return new we(e,ct(i),i.name,!0,i.equals)},array:function(e,n){var i=dt(n);return(g.useProxies===!1||i.proxy===!1?fo:to)(e,ct(i),i.name)},map:function(e,n){var i=dt(n);return new ma(e,ct(i),i.name)},set:function(e,n){var i=dt(n);return new ga(e,ct(i),i.name)},object:function(e,n,i){return he(function(){return la(g.useProxies===!1||(i==null?void 0:i.proxy)===!1?rt({},i):Zs({},i),e,n)})},ref:ie(ms),shallow:ie(hs),deep:Mi,struct:ie(ps)},z=Ei(Bi,ks),$i="computed",ys="computed.struct",zi=dn($i),Ss=dn(ys,{equals:Re.structural}),de=function(e,n){if(pe(n))return Ye(e,n,zi);if(le(e))return ie(dn($i,e));var i=le(n)?n:{};return i.get=e,i.name||(i.name=e.name||""),new ze(i)};Object.assign(de,zi);de.struct=ie(Ss);var Pn,Ln,gt=0,bs=1,_s=(Pn=(Ln=pt(function(){},"name"))==null?void 0:Ln.configurable)!=null?Pn:!1,In={value:"action",configurable:!0,writable:!1,enumerable:!1};function De(t,e,n,i){n===void 0&&(n=!1);function a(){return Ns(t,n,e,i||this,arguments)}return a.isMobxAction=!0,_s&&(In.value=t,ne(a,"name",In)),a}function Ns(t,e,n,i,a){var r=Os(t,e);try{return n.apply(i,a)}catch(s){throw r.error_=s,s}finally{Es(r)}}function Os(t,e,n,i){var a=!1,r=0,s=g.trackingDerivation,o=!e||!s;Q();var l=g.allowStateChanges;o&&(ve(),l=It(!0));var u=cn(!0),d={runAsAction_:o,prevDerivation_:s,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:a,startTime_:r,actionId_:bs++,parentActionId_:gt};return gt=d.actionId_,d}function Es(t){gt!==t.actionId_&&V(30),gt=t.parentActionId_,t.error_!==void 0&&(g.suppressReactionErrors=!0),Vt(t.prevAllowStateChanges_),Be(t.prevAllowStateReads_),W(),t.runAsAction_&&oe(t.prevDerivation_),g.suppressReactionErrors=!1}function As(t,e){var n=It(t);try{return e()}finally{Vt(n)}}function It(t){var e=g.allowStateChanges;return g.allowStateChanges=t,e}function Vt(t){g.allowStateChanges=t}var Gi;Gi=Symbol.toPrimitive;var we=function(t){Di(e,t);function e(i,a,r,s,o){var l;return r===void 0&&(r="ObservableValue"),o===void 0&&(o=Re.default),l=t.call(this,r)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=a,l.name_=r,l.equals=o,l.value_=a(i,void 0,r),l}var n=e.prototype;return n.dehanceValue=function(a){return this.dehancer!==void 0?this.dehancer(a):a},n.set=function(a){this.value_,a=this.prepareNewValue_(a),a!==g.UNCHANGED&&this.setNewValue_(a)},n.prepareNewValue_=function(a){if(K(this)){var r=J(this,{object:this,type:ae,newValue:a});if(!r)return g.UNCHANGED;a=r.newValue}return a=this.enhancer(a,this.value_,this.name_),this.equals(this.value_,a)?g.UNCHANGED:a},n.setNewValue_=function(a){var r=this.value_;this.value_=a,this.reportChanged(),Z(this)&&H(this,{type:ae,object:this,newValue:a,oldValue:r})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(a){return it(this,a)},n.observe_=function(a,r){return r&&a({observableKind:"value",debugObjectName:this.name_,object:this,type:ae,newValue:this.value_,oldValue:void 0}),at(this,a)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Ti(this.get())},n[Gi]=function(){return this.valueOf()},e}(et),Ki;Ki=Symbol.toPrimitive;var ze=function(){function t(n){this.dependenciesState_=P.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_=P.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new kt(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_=vt.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||V(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=De("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Re.structural:Re.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var e=t.prototype;return e.onBecomeStale_=function(){Rs(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_&&V(32,this.name_,this.derivation),g.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Xt(this)&&(this.warnAboutUntrackedRead_(),Q(),this.value_=this.computeValue_(!1),W());else if(Hi(this),Xt(this)){var i=g.trackingContext;this.keepAlive_&&!i&&(g.trackingContext=this),this.trackAndCompute()&&Cs(this),g.trackingContext=i}var a=this.value_;if(mt(a))throw a.cause;return a},e.set=function(i){if(this.setter_){this.isRunningSetter_&&V(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter_=!1}}else V(34,this.name_)},e.trackAndCompute=function(){var i=this.value_,a=this.dependenciesState_===P.NOT_TRACKING_,r=this.computeValue_(!0),s=a||mt(i)||mt(r)||!this.equals_(i,r);return s&&(this.value_=r),s},e.computeValue_=function(i){this.isComputing_=!0;var a=It(!1),r;if(i)r=Ji(this,this.derivation,this.scope_);else if(g.disableErrorBoundaries===!0)r=this.derivation.call(this.scope_);else try{r=this.derivation.call(this.scope_)}catch(s){r=new kt(s)}return Vt(a),this.isComputing_=!1,r},e.suspend_=function(){this.keepAlive_||(Yt(this),this.value_=void 0)},e.observe_=function(i,a){var r=this,s=!0,o=void 0;return mn(function(){var l=r.get();if(!s||a){var u=ve();i({observableKind:"computed",debugObjectName:r.name_,type:ae,object:r,newValue:l,oldValue:o}),oe(u)}s=!1,o=l})},e.warnAboutUntrackedRead_=function(){},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return Ti(this.get())},e[Ki]=function(){return this.valueOf()},t}(),jt=ge("ComputedValue",ze),P;(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_"})(P||(P={}));var vt;(function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"})(vt||(vt={}));var kt=function(e){this.cause=void 0,this.cause=e};function mt(t){return t instanceof kt}function Xt(t){switch(t.dependenciesState_){case P.UP_TO_DATE_:return!1;case P.NOT_TRACKING_:case P.STALE_:return!0;case P.POSSIBLY_STALE_:{for(var e=cn(!0),n=ve(),i=t.observing_,a=i.length,r=0;r<a;r++){var s=i[r];if(jt(s)){if(g.disableErrorBoundaries)s.get();else try{s.get()}catch{return oe(n),Be(e),!0}if(t.dependenciesState_===P.STALE_)return oe(n),Be(e),!0}}return Wi(t),oe(n),Be(e),!1}}}function Ji(t,e,n){var i=cn(!0);Wi(t),t.newObserving_=new Array(t.observing_.length+100),t.unboundDepsCount_=0,t.runId_=++g.runId;var a=g.trackingDerivation;g.trackingDerivation=t,g.inBatch++;var r;if(g.disableErrorBoundaries===!0)r=e.call(n);else try{r=e.call(n)}catch(s){r=new kt(s)}return g.inBatch--,g.trackingDerivation=a,ws(t),Be(i),r}function ws(t){for(var e=t.observing_,n=t.observing_=t.newObserving_,i=P.UP_TO_DATE_,a=0,r=t.unboundDepsCount_,s=0;s<r;s++){var o=n[s];o.diffValue_===0&&(o.diffValue_=1,a!==s&&(n[a]=o),a++),o.dependenciesState_>i&&(i=o.dependenciesState_)}for(n.length=a,t.newObserving_=null,r=e.length;r--;){var l=e[r];l.diffValue_===0&&qi(l,t),l.diffValue_=0}for(;a--;){var u=n[a];u.diffValue_===1&&(u.diffValue_=0,Fs(u,t))}i!==P.UP_TO_DATE_&&(t.dependenciesState_=i,t.onBecomeStale_())}function Yt(t){var e=t.observing_;t.observing_=[];for(var n=e.length;n--;)qi(e[n],t);t.dependenciesState_=P.NOT_TRACKING_}function Qi(t){var e=ve();try{return t()}finally{oe(e)}}function ve(){var t=g.trackingDerivation;return g.trackingDerivation=null,t}function oe(t){g.trackingDerivation=t}function cn(t){var e=g.allowStateReads;return g.allowStateReads=t,e}function Be(t){g.allowStateReads=t}function Wi(t){if(t.dependenciesState_!==P.UP_TO_DATE_){t.dependenciesState_=P.UP_TO_DATE_;for(var e=t.observing_,n=e.length;n--;)e[n].lowestObserverState_=P.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.batchId=Number.MIN_SAFE_INTEGER,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,this.stateVersion=Number.MIN_SAFE_INTEGER},Kt=!0,g=function(){var t=Oi();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(){V(35)},1),new Gt)}();function Fs(t,e){t.observers_.add(e),t.lowestObserverState_>e.dependenciesState_&&(t.lowestObserverState_=e.dependenciesState_)}function qi(t,e){t.observers_.delete(e),t.observers_.size===0&&Zi(t)}function Zi(t){t.isPendingUnobservation_===!1&&(t.isPendingUnobservation_=!0,g.pendingUnobservations.push(t))}function Q(){g.inBatch===0&&(g.batchId=g.batchId<Number.MAX_SAFE_INTEGER?g.batchId+1:Number.MIN_SAFE_INTEGER),g.inBatch++}function W(){if(--g.inBatch===0){Yi();for(var t=g.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 ze&&n.suspend_())}g.pendingUnobservations=[]}}function Hi(t){var e=g.trackingDerivation;return e!==null?(e.runId_!==t.lastAccessedBy_&&(t.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=t,!t.isBeingObserved_&&g.trackingContext&&(t.isBeingObserved_=!0,t.onBO())),t.isBeingObserved_):(t.observers_.size===0&&g.inBatch>0&&Zi(t),!1)}function Xi(t){t.lowestObserverState_!==P.STALE_&&(t.lowestObserverState_=P.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===P.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=P.STALE_}))}function Cs(t){t.lowestObserverState_!==P.STALE_&&(t.lowestObserverState_=P.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===P.POSSIBLY_STALE_?e.dependenciesState_=P.STALE_:e.dependenciesState_===P.UP_TO_DATE_&&(t.lowestObserverState_=P.UP_TO_DATE_)}))}function Rs(t){t.lowestObserverState_===P.UP_TO_DATE_&&(t.lowestObserverState_=P.POSSIBLY_STALE_,t.observers_.forEach(function(e){e.dependenciesState_===P.UP_TO_DATE_&&(e.dependenciesState_=P.POSSIBLY_STALE_,e.onBecomeStale_())}))}var yt=function(){function t(n,i,a,r){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=P.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_=vt.NONE,this.name_=n,this.onInvalidate_=i,this.errorHandler_=a,this.requiresObservable_=r}var e=t.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,g.pendingReactions.push(this),Yi())},e.isScheduled=function(){return this.isScheduled_},e.runReaction_=function(){if(!this.isDisposed_){Q(),this.isScheduled_=!1;var i=g.trackingContext;if(g.trackingContext=this,Xt(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(a){this.reportExceptionInDerivation_(a)}}g.trackingContext=i,W()}},e.track=function(i){if(!this.isDisposed_){Q(),this.isRunning_=!0;var a=g.trackingContext;g.trackingContext=this;var r=Ji(this,i,void 0);g.trackingContext=a,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Yt(this),mt(r)&&this.reportExceptionInDerivation_(r.cause),W()}},e.reportExceptionInDerivation_=function(i){var a=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(g.disableErrorBoundaries)throw i;var r="[mobx] uncaught error in '"+this+"'";g.suppressReactionErrors||console.error(r,i),g.globalReactionErrorHandlers.forEach(function(s){return s(i,a)})},e.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Q(),Yt(this),W()))},e.getDisposer_=function(i){var a=this,r=function s(){a.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",s)};return i==null||i.addEventListener==null||i.addEventListener("abort",r),r[R]=this,r},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(i){},t}(),Ts=100,Ds=function(e){return e()};function Yi(){g.inBatch>0||g.isRunningReactions||Ds(xs)}function xs(){g.isRunningReactions=!0;for(var t=g.pendingReactions,e=0;t.length>0;){++e===Ts&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var n=t.splice(0),i=0,a=n.length;i<a;i++)n[i].runReaction_()}g.isRunningReactions=!1}var St=ge("Reaction",yt);function $e(){return!1}function Ps(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var ea="action",Ls="action.bound",ta="autoAction",Is="autoAction.bound",Vs="<unnamed action>",na=tt(ea),js=tt(Ls,{bound:!0}),ia=tt(ta,{autoAction:!0}),Us=tt(Is,{autoAction:!0,bound:!0});function aa(t){var e=function(i,a){if(X(i))return De(i.name||Vs,i,t);if(X(a))return De(i,a,t);if(pe(a))return Ye(i,a,t?ia:na);if(pe(i))return ie(tt(t?ta:ea,{name:i,autoAction:t}))};return e}var ce=aa(!1);Object.assign(ce,na);var Ge=aa(!0);Object.assign(Ge,ia);ce.bound=ie(js);Ge.bound=ie(Us);function fn(t){return X(t)&&t.isMobxAction===!0}function mn(t,e){var n,i,a,r,s;e===void 0&&(e=on);var o=(n=(i=e)==null?void 0:i.name)!=null?n:"Autorun",l=!e.scheduler&&!e.delay,u;if(l)u=new yt(o,function(){this.track(c)},e.onError,e.requiresObservable);else{var d=ra(e),f=!1;u=new yt(o,function(){f||(f=!0,d(function(){f=!1,u.isDisposed_||u.track(c)}))},e.onError,e.requiresObservable)}function c(){t(u)}return(a=e)!=null&&(r=a.signal)!=null&&r.aborted||u.schedule_(),u.getDisposer_((s=e)==null?void 0:s.signal)}var Ms=function(e){return e()};function ra(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:Ms}function Bs(t,e,n){var i,a,r,s;n===void 0&&(n=on);var o=(i=n.name)!=null?i:"Reaction",l=ce(o,n.onError?$s(n.onError,e):e),u=!n.scheduler&&!n.delay,d=ra(n),f=!0,c=!1,S,b,v=n.compareStructural?Re.structural:n.equals||Re.default,p=new yt(o,function(){f||u?A():c||(c=!0,d(A))},n.onError,n.requiresObservable);function A(){if(c=!1,!p.isDisposed_){var O=!1;p.track(function(){var D=As(!1,function(){return t(p)});O=f||!v(S,D),b=S,S=D}),(f&&n.fireImmediately||!f&&O)&&l(S,b,p),f=!1}}return(a=n)!=null&&(r=a.signal)!=null&&r.aborted||p.schedule_(),p.getDisposer_((s=n)==null?void 0:s.signal)}function $s(t,e){return function(){try{return e.apply(this,arguments)}catch(n){t.call(this,n)}}}var zs="onBO",Gs="onBUO";function Ks(t,e,n){return oa(zs,t,e,n)}function sa(t,e,n){return oa(Gs,t,e,n)}function oa(t,e,n,i){var a=typeof i=="function"?Qe(e,n):Qe(e),r=X(i)?i:n,s=t+"L";return a[s]?a[s].add(r):a[s]=new Set([r]),function(){var o=a[s];o&&(o.delete(r),o.size===0&&delete a[s])}}function la(t,e,n,i){var a=Pr(e);return he(function(){var r=rt(t,i)[R];Fe(a).forEach(function(s){r.extend_(s,a[s],n&&s in n?n[s]:!0)})}),t}var Js=0;function ua(){this.message="FLOW_CANCELLED"}ua.prototype=Object.create(Error.prototype);var Vn=Li("flow"),Qs=Li("flow.bound",{bound:!0}),Ke=Object.assign(function(e,n){if(pe(n))return Ye(e,n,Vn);var i=e,a=i.name||"<unnamed flow>",r=function(){var o=this,l=arguments,u=++Js,d=ce(a+" - runid: "+u+" - init",i).apply(o,l),f,c=void 0,S=new Promise(function(b,v){var p=0;f=v;function A(_){c=void 0;var x;try{x=ce(a+" - runid: "+u+" - yield "+p++,d.next).call(d,_)}catch(L){return v(L)}D(x)}function O(_){c=void 0;var x;try{x=ce(a+" - runid: "+u+" - yield "+p++,d.throw).call(d,_)}catch(L){return v(L)}D(x)}function D(_){if(X(_==null?void 0:_.then)){_.then(D,v);return}return _.done?b(_.value):(c=Promise.resolve(_.value),c.then(A,O))}A(void 0)});return S.cancel=ce(a+" - runid: "+u+" - cancel",function(){try{c&&jn(c);var b=d.return(void 0),v=Promise.resolve(b.value);v.then(Ne,Ne),jn(v),f(new ua)}catch(p){f(p)}}),S};return r.isMobXFlow=!0,r},Vn);Ke.bound=ie(Qs);function jn(t){X(t.cancel)&&t.cancel()}function bt(t){return(t==null?void 0:t.isMobXFlow)===!0}function Ws(t,e){return t?e!==void 0?Je(t)?t[R].values_.has(e):!1:Je(t)||!!t[R]||un(t)||St(t)||jt(t):!1}function nt(t){return Ws(t)}function re(t,e){e===void 0&&(e=void 0),Q();try{return t.apply(e)}finally{W()}}function Se(t){return t[R]}var qs={has:function(e,n){return Se(e).has_(n)},get:function(e,n){return Se(e).get_(n)},set:function(e,n,i){var a;return pe(n)?(a=Se(e).set_(n,i,!0))!=null?a:!0:!1},deleteProperty:function(e,n){var i;return pe(n)?(i=Se(e).delete_(n,!0))!=null?i:!0:!1},defineProperty:function(e,n,i){var a;return(a=Se(e).defineProperty_(n,i))!=null?a:!0},ownKeys:function(e){return Se(e).ownKeys_()},preventExtensions:function(e){V(13)}};function Zs(t,e){var n,i;return Ai(),t=rt(t,e),(i=(n=t[R]).proxy_)!=null?i:n.proxy_=new Proxy(t,qs)}function K(t){return t.interceptors_!==void 0&&t.interceptors_.length>0}function it(t,e){var n=t.interceptors_||(t.interceptors_=[]);return n.push(e),wi(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function J(t,e){var n=ve();try{for(var i=[].concat(t.interceptors_||[]),a=0,r=i.length;a<r&&(e=i[a](e),e&&!e.type&&V(14),!!e);a++);return e}finally{oe(n)}}function Z(t){return t.changeListeners_!==void 0&&t.changeListeners_.length>0}function at(t,e){var n=t.changeListeners_||(t.changeListeners_=[]);return n.push(e),wi(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function H(t,e){var n=ve(),i=t.changeListeners_;if(i){i=i.slice();for(var a=0,r=i.length;a<r;a++)i[a](e);oe(n)}}function Hs(t,e,n){return he(function(){var i,a=rt(t,n)[R];(i=e)!=null||(e=jr(t)),Fe(e).forEach(function(r){return a.make_(r,e[r])})}),t}var Jt=Symbol("mobx-keys");function Xs(t,e,n){return le(t)?la(t,t,e,n):(he(function(){var i=rt(t,n)[R];if(!t[Jt]){var a=Object.getPrototypeOf(t),r=new Set([].concat(Fe(t),Fe(a)));r.delete("constructor"),r.delete(R),He(a,Jt,r)}t[Jt].forEach(function(s){return i.make_(s,e&&s in e?e[s]:!0)})}),t)}var Un="splice",ae="update",Ys=1e4,eo={get:function(e,n){var i=e[R];return n===R?i:n==="length"?i.getArrayLength_():typeof n=="string"&&!isNaN(n)?i.get_(parseInt(n)):se(_t,n)?_t[n]:e[n]},set:function(e,n,i){var a=e[R];return n==="length"&&a.setArrayLength_(i),typeof n=="symbol"||isNaN(n)?e[n]=i:a.set_(parseInt(n),i),!0},preventExtensions:function(){V(15)}},hn=function(){function t(n,i,a,r){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=a,this.legacyMode_=r,this.atom_=new et(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 it(this,i)},e.observe_=function(i,a){return a===void 0&&(a=!1),a&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),at(this,i)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&V("Out of range: "+i);var a=this.values_.length;if(i!==a)if(i>a){for(var r=new Array(i-a),s=0;s<i-a;s++)r[s]=void 0;this.spliceWithArray_(a,0,r)}else this.spliceWithArray_(i,a-i)},e.updateArrayLength_=function(i,a){i!==this.lastKnownLength_&&V(16),this.lastKnownLength_+=a,this.legacyMode_&&a>0&&Sa(i+a+1)},e.spliceWithArray_=function(i,a,r){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?a=o-i:a==null?a=0:a=Math.max(0,Math.min(a,o-i)),r===void 0&&(r=Zt),K(this)){var l=J(this,{object:this.proxy_,type:Un,index:i,removedCount:a,added:r});if(!l)return Zt;a=l.removedCount,r=l.added}if(r=r.length===0?r:r.map(function(f){return s.enhancer_(f,void 0)}),this.legacyMode_){var u=r.length-a;this.updateArrayLength_(o,u)}var d=this.spliceItemsIntoValues_(i,a,r);return(a!==0||r.length!==0)&&this.notifyArraySplice_(i,r,d),this.dehanceValues_(d)},e.spliceItemsIntoValues_=function(i,a,r){if(r.length<Ys){var s;return(s=this.values_).splice.apply(s,[i,a].concat(r))}else{var o=this.values_.slice(i,i+a),l=this.values_.slice(i+a);this.values_.length+=r.length-a;for(var u=0;u<r.length;u++)this.values_[i+u]=r[u];for(var d=0;d<l.length;d++)this.values_[i+r.length+d]=l[d];return o}},e.notifyArrayChildUpdate_=function(i,a,r){var s=!this.owned_&&$e(),o=Z(this),l=o||s?{observableKind:"array",object:this.proxy_,type:ae,debugObjectName:this.atom_.name_,index:i,newValue:a,oldValue:r}:null;this.atom_.reportChanged(),o&&H(this,l)},e.notifyArraySplice_=function(i,a,r){var s=!this.owned_&&$e(),o=Z(this),l=o||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Un,index:i,removed:r,added:a,removedCount:r.length,addedCount:a.length}:null;this.atom_.reportChanged(),o&&H(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,a){var r=this.values_;if(this.legacyMode_&&i>r.length&&V(17,i,r.length),i<r.length){this.atom_;var s=r[i];if(K(this)){var o=J(this,{type:ae,object:this.proxy_,index:i,newValue:a});if(!o)return;a=o.newValue}a=this.enhancer_(a,s);var l=a!==s;l&&(r[i]=a,this.notifyArrayChildUpdate_(i,a,s))}else{for(var u=new Array(i+1-r.length),d=0;d<u.length-1;d++)u[d]=void 0;u[u.length-1]=a,this.spliceWithArray_(r.length,0,u)}},t}();function to(t,e,n,i){return n===void 0&&(n="ObservableArray"),i===void 0&&(i=!1),Ai(),he(function(){var a=new hn(n,e,i,!1);Ci(a.values_,R,a);var r=new Proxy(a.values_,eo);return a.proxy_=r,t&&t.length&&a.spliceWithArray_(0,0,t),r})}var _t={clear:function(){return this.splice(0)},replace:function(e){var n=this[R];return n.spliceWithArray_(0,n.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,n){for(var i=arguments.length,a=new Array(i>2?i-2:0),r=2;r<i;r++)a[r-2]=arguments[r];var s=this[R];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(e);case 2:return s.spliceWithArray_(e,n)}return s.spliceWithArray_(e,n,a)},spliceWithArray:function(e,n,i){return this[R].spliceWithArray_(e,n,i)},push:function(){for(var e=this[R],n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return e.spliceWithArray_(e.values_.length,0,i),e.values_.length},pop:function(){return this.splice(Math.max(this[R].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[R],n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return e.spliceWithArray_(0,0,i),e.values_.length},reverse:function(){return g.trackingDerivation&&V(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){g.trackingDerivation&&V(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var n=this[R],i=n.dehanceValues_(n.values_).indexOf(e);return i>-1?(this.splice(i,1),!0):!1}};B("concat",ue);B("flat",ue);B("includes",ue);B("indexOf",ue);B("join",ue);B("lastIndexOf",ue);B("slice",ue);B("toString",ue);B("toLocaleString",ue);B("every",me);B("filter",me);B("find",me);B("findIndex",me);B("flatMap",me);B("forEach",me);B("map",me);B("some",me);B("reduce",da);B("reduceRight",da);function B(t,e){typeof Array.prototype[t]=="function"&&(_t[t]=e(t))}function ue(t){return function(){var e=this[R];e.atom_.reportObserved();var n=e.dehanceValues_(e.values_);return n[t].apply(n,arguments)}}function me(t){return function(e,n){var i=this,a=this[R];a.atom_.reportObserved();var r=a.dehanceValues_(a.values_);return r[t](function(s,o){return e.call(n,s,o,i)})}}function da(t){return function(){var e=this,n=this[R];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_),a=arguments[0];return arguments[0]=function(r,s,o){return a(r,s,o,e)},i[t].apply(i,arguments)}}var no=ge("ObservableArrayAdministration",hn);function Ut(t){return xt(t)&&no(t[R])}var ca,fa,io={},fe="add",Nt="delete";ca=Symbol.iterator;fa=Symbol.toStringTag;var ma=function(){function t(n,i,a){var r=this;i===void 0&&(i=Te),a===void 0&&(a="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[R]=io,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=a,X(Map)||V(18),he(function(){r.keysAtom_=xi("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,n&&r.merge(n)})}var e=t.prototype;return e.has_=function(i){return this.data_.has(i)},e.has=function(i){var a=this;if(!g.trackingDerivation)return this.has_(i);var r=this.hasMap_.get(i);if(!r){var s=r=new we(this.has_(i),Pt,"ObservableMap.key?",!1);this.hasMap_.set(i,s),sa(s,function(){return a.hasMap_.delete(i)})}return r.get()},e.set=function(i,a){var r=this.has_(i);if(K(this)){var s=J(this,{type:r?ae:fe,object:this,newValue:a,name:i});if(!s)return this;a=s.newValue}return r?this.updateValue_(i,a):this.addValue_(i,a),this},e.delete=function(i){var a=this;if(this.keysAtom_,K(this)){var r=J(this,{type:Nt,object:this,name:i});if(!r)return!1}if(this.has_(i)){var s=$e(),o=Z(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:Nt,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return re(function(){var u;a.keysAtom_.reportChanged(),(u=a.hasMap_.get(i))==null||u.setNewValue_(!1);var d=a.data_.get(i);d.setNewValue_(void 0),a.data_.delete(i)}),o&&H(this,l),!0}return!1},e.updateValue_=function(i,a){var r=this.data_.get(i);if(a=r.prepareNewValue_(a),a!==g.UNCHANGED){var s=$e(),o=Z(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:ae,object:this,oldValue:r.value_,name:i,newValue:a}:null;r.setNewValue_(a),o&&H(this,l)}},e.addValue_=function(i,a){var r=this;this.keysAtom_,re(function(){var u,d=new we(a,r.enhancer_,"ObservableMap.key",!1);r.data_.set(i,d),a=d.value_,(u=r.hasMap_.get(i))==null||u.setNewValue_(!0),r.keysAtom_.reportChanged()});var s=$e(),o=Z(this),l=o||s?{observableKind:"map",debugObjectName:this.name_,type:fe,object:this,name:i,newValue:a}:null;o&&H(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,a=this.keys();return We({next:function(){var s=a.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:i.get(l)}}})},e.entries=function(){var i=this,a=this.keys();return We({next:function(){var s=a.next(),o=s.done,l=s.value;return{done:o,value:o?void 0:[l,i.get(l)]}}})},e[ca]=function(){return this.entries()},e.forEach=function(i,a){for(var r=Oe(this),s;!(s=r()).done;){var o=s.value,l=o[0],u=o[1];i.call(a,u,l,this)}},e.merge=function(i){var a=this;return ke(i)&&(i=new Map(i)),re(function(){le(i)?xr(i).forEach(function(r){return a.set(r,i[r])}):Array.isArray(i)?i.forEach(function(r){var s=r[0],o=r[1];return a.set(s,o)}):Pe(i)?(i.constructor!==Map&&V(19,i),i.forEach(function(r,s){return a.set(s,r)})):i!=null&&V(20,i)}),this},e.clear=function(){var i=this;re(function(){Qi(function(){for(var a=Oe(i.keys()),r;!(r=a()).done;){var s=r.value;i.delete(s)}})})},e.replace=function(i){var a=this;return re(function(){for(var r=ao(i),s=new Map,o=!1,l=Oe(a.data_.keys()),u;!(u=l()).done;){var d=u.value;if(!r.has(d)){var f=a.delete(d);if(f)o=!0;else{var c=a.data_.get(d);s.set(d,c)}}}for(var S=Oe(r.entries()),b;!(b=S()).done;){var v=b.value,p=v[0],A=v[1],O=a.data_.has(p);if(a.set(p,A),a.data_.has(p)){var D=a.data_.get(p);s.set(p,D),O||(o=!0)}}if(!o)if(a.data_.size!==s.size)a.keysAtom_.reportChanged();else for(var _=a.data_.keys(),x=s.keys(),L=_.next(),j=x.next();!L.done;){if(L.value!==j.value){a.keysAtom_.reportChanged();break}L=_.next(),j=x.next()}a.data_=s}),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(i,a){return at(this,i)},e.intercept_=function(i){return it(this,i)},ln(t,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:fa,get:function(){return"Map"}}]),t}(),ke=ge("ObservableMap",ma);function ao(t){if(Pe(t)||ke(t))return t;if(Array.isArray(t))return new Map(t);if(le(t)){var e=new Map;for(var n in t)e.set(n,t[n]);return e}else return V(21,t)}var ha,pa,ro={};ha=Symbol.iterator;pa=Symbol.toStringTag;var ga=function(){function t(n,i,a){var r=this;i===void 0&&(i=Te),a===void 0&&(a="ObservableSet"),this.name_=void 0,this[R]=ro,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=a,X(Set)||V(22),this.enhancer_=function(s,o){return i(s,o,a)},he(function(){r.atom_=xi(r.name_),n&&r.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;re(function(){Qi(function(){for(var a=Oe(i.data_.values()),r;!(r=a()).done;){var s=r.value;i.delete(s)}})})},e.forEach=function(i,a){for(var r=Oe(this),s;!(s=r()).done;){var o=s.value;i.call(a,o,o,this)}},e.add=function(i){var a=this;if(this.atom_,K(this)){var r=J(this,{type:fe,object:this,newValue:i});if(!r)return this}if(!this.has(i)){re(function(){a.data_.add(a.enhancer_(i,void 0)),a.atom_.reportChanged()});var s=!1,o=Z(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:fe,object:this,newValue:i}:null;o&&H(this,l)}return this},e.delete=function(i){var a=this;if(K(this)){var r=J(this,{type:Nt,object:this,oldValue:i});if(!r)return!1}if(this.has(i)){var s=!1,o=Z(this),l=o||s?{observableKind:"set",debugObjectName:this.name_,type:Nt,object:this,oldValue:i}:null;return re(function(){a.atom_.reportChanged(),a.data_.delete(i)}),o&&H(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,a=Array.from(this.keys()),r=Array.from(this.values());return We({next:function(){var o=i;return i+=1,o<r.length?{value:[a[o],r[o]],done:!1}:{done:!0}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var i=this,a=0,r=Array.from(this.data_.values());return We({next:function(){return a<r.length?{value:i.dehanceValue_(r[a++]),done:!1}:{done:!0}}})},e.replace=function(i){var a=this;return Le(i)&&(i=new Set(i)),re(function(){Array.isArray(i)?(a.clear(),i.forEach(function(r){return a.add(r)})):Xe(i)?(a.clear(),i.forEach(function(r){return a.add(r)})):i!=null&&V("Cannot initialize set from "+i)}),this},e.observe_=function(i,a){return at(this,i)},e.intercept_=function(i){return it(this,i)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[ha]=function(){return this.values()},ln(t,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:pa,get:function(){return"Set"}}]),t}(),Le=ge("ObservableSet",ga),Mn=Object.create(null),Bn="remove",va=function(){function t(n,i,a,r){i===void 0&&(i=new Map),r===void 0&&(r=ss),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=i,this.name_=a,this.defaultAnnotation_=r,this.keysAtom_=new et("ObservableObject.keys"),this.isPlainObject_=le(this.target_)}var e=t.prototype;return e.getObservablePropValue_=function(i){return this.values_.get(i).get()},e.setObservablePropValue_=function(i,a){var r=this.values_.get(i);if(r instanceof ze)return r.set(a),!0;if(K(this)){var s=J(this,{type:ae,object:this.proxy_||this.target_,name:i,newValue:a});if(!s)return null;a=s.newValue}if(a=r.prepareNewValue_(a),a!==g.UNCHANGED){var o=Z(this),l=!1,u=o||l?{type:ae,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:r.value_,name:i,newValue:a}:null;r.setNewValue_(a),o&&H(this,u)}return!0},e.get_=function(i){return g.trackingDerivation&&!se(this.target_,i)&&this.has_(i),this.target_[i]},e.set_=function(i,a,r){return r===void 0&&(r=!1),se(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,a):r?Reflect.set(this.target_,i,a):(this.target_[i]=a,!0):this.extend_(i,{value:a,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},e.has_=function(i){if(!g.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var a=this.pendingKeys_.get(i);return a||(a=new we(i in this.target_,Pt,"ObservableObject.key?",!1),this.pendingKeys_.set(i,a)),a.get()},e.make_=function(i,a){if(a===!0&&(a=this.defaultAnnotation_),a!==!1){if(!(i in this.target_)){var r;if((r=this.target_[ee])!=null&&r[i])return;V(1,a.annotationType_,this.name_+"."+i.toString())}for(var s=this.target_;s&&s!==Dt;){var o=pt(s,i);if(o){var l=a.make_(this,i,o,s);if(l===0)return;if(l===1)break}s=Object.getPrototypeOf(s)}zn(this,a,i)}},e.extend_=function(i,a,r,s){if(s===void 0&&(s=!1),r===!0&&(r=this.defaultAnnotation_),r===!1)return this.defineProperty_(i,a,s);var o=r.extend_(this,i,a,s);return o&&zn(this,r,i),o},e.defineProperty_=function(i,a,r){r===void 0&&(r=!1),this.keysAtom_;try{Q();var s=this.delete_(i);if(!s)return s;if(K(this)){var o=J(this,{object:this.proxy_||this.target_,name:i,type:fe,newValue:a.value});if(!o)return null;var l=o.newValue;a.value!==l&&(a=Ce({},a,{value:l}))}if(r){if(!Reflect.defineProperty(this.target_,i,a))return!1}else ne(this.target_,i,a);this.notifyPropertyAddition_(i,a.value)}finally{W()}return!0},e.defineObservableProperty_=function(i,a,r,s){s===void 0&&(s=!1),this.keysAtom_;try{Q();var o=this.delete_(i);if(!o)return o;if(K(this)){var l=J(this,{object:this.proxy_||this.target_,name:i,type:fe,newValue:a});if(!l)return null;a=l.newValue}var u=$n(i),d={configurable:g.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(s){if(!Reflect.defineProperty(this.target_,i,d))return!1}else ne(this.target_,i,d);var f=new we(a,r,"ObservableObject.key",!1);this.values_.set(i,f),this.notifyPropertyAddition_(i,f.value_)}finally{W()}return!0},e.defineComputedProperty_=function(i,a,r){r===void 0&&(r=!1),this.keysAtom_;try{Q();var s=this.delete_(i);if(!s)return s;if(K(this)){var o=J(this,{object:this.proxy_||this.target_,name:i,type:fe,newValue:void 0});if(!o)return null}a.name||(a.name="ObservableObject.key"),a.context=this.proxy_||this.target_;var l=$n(i),u={configurable:g.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(r){if(!Reflect.defineProperty(this.target_,i,u))return!1}else ne(this.target_,i,u);this.values_.set(i,new ze(a)),this.notifyPropertyAddition_(i,void 0)}finally{W()}return!0},e.delete_=function(i,a){if(a===void 0&&(a=!1),this.keysAtom_,!se(this.target_,i))return!0;if(K(this)){var r=J(this,{object:this.proxy_||this.target_,name:i,type:Bn});if(!r)return null}try{var s,o;Q();var l=Z(this),u=!1,d=this.values_.get(i),f=void 0;if(!d&&(l||u)){var c;f=(c=pt(this.target_,i))==null?void 0:c.value}if(a){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(d&&(this.values_.delete(i),d instanceof we&&(f=d.value_),Xi(d)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(o=s.get(i))==null||o.set(i in this.target_),l||u){var S={type:Bn,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:i};l&&H(this,S)}}finally{W()}return!0},e.observe_=function(i,a){return at(this,i)},e.intercept_=function(i){return it(this,i)},e.notifyPropertyAddition_=function(i,a){var r,s,o=Z(this),l=!1;if(o||l){var u=o||l?{type:fe,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:a}:null;o&&H(this,u)}(r=this.pendingKeys_)==null||(s=r.get(i))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),Fe(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},t}();function rt(t,e){var n;if(se(t,R))return t;var i=(n=e==null?void 0:e.name)!=null?n:"ObservableObject",a=new va(t,new Map,String(i),gs(e));return He(t,R,a),t}var so=ge("ObservableObjectAdministration",va);function $n(t){return Mn[t]||(Mn[t]={get:function(){return this[R].getObservablePropValue_(t)},set:function(n){return this[R].setObservablePropValue_(t,n)}})}function Je(t){return xt(t)?so(t[R]):!1}function zn(t,e,n){var i;(i=t.target_[ee])==null||delete i[n]}var oo=ya(0),lo=function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,t===!1}(),Qt=0,ka=function(){};function uo(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,e):t.prototype.__proto__!==void 0?t.prototype.__proto__=e:t.prototype=e}uo(ka,Array.prototype);var pn=function(t,e,n){Di(i,t);function i(r,s,o,l){var u;return o===void 0&&(o="ObservableArray"),l===void 0&&(l=!1),u=t.call(this)||this,he(function(){var d=new hn(o,s,l,!0);d.proxy_=zt(u),Ci(zt(u),R,d),r&&r.length&&u.spliceWithArray(0,0,r),lo&&Object.defineProperty(zt(u),"0",oo)}),u}var a=i.prototype;return a.concat=function(){this[R].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 Ut(u)?u.slice():u}))},a[n]=function(){var r=this,s=0;return We({next:function(){return s<r.length?{value:r[s++],done:!1}:{done:!0,value:void 0}}})},ln(i,[{key:"length",get:function(){return this[R].getArrayLength_()},set:function(s){this[R].setArrayLength_(s)}},{key:e,get:function(){return"Array"}}]),i}(ka,Symbol.toStringTag,Symbol.iterator);Object.entries(_t).forEach(function(t){var e=t[0],n=t[1];e!=="concat"&&He(pn.prototype,e,n)});function ya(t){return{enumerable:!1,configurable:!0,get:function(){return this[R].get_(t)},set:function(n){this[R].set_(t,n)}}}function co(t){ne(pn.prototype,""+t,ya(t))}function Sa(t){if(t>Qt){for(var e=Qt;e<t+100;e++)co(e);Qt=t}}Sa(1e3);function fo(t,e,n){return new pn(t,e,n)}function Qe(t,e){if(typeof t=="object"&&t!==null){if(Ut(t))return e!==void 0&&V(23),t[R].atom_;if(Le(t))return t.atom_;if(ke(t)){if(e===void 0)return t.keysAtom_;var n=t.data_.get(e)||t.hasMap_.get(e);return n||V(25,e,en(t)),n}if(Je(t)){if(!e)return V(26);var i=t[R].values_.get(e);return i||V(27,e,en(t)),i}if(un(t)||jt(t)||St(t))return t}else if(X(t)&&St(t[R]))return t[R];V(28)}function ba(t,e){if(t||V(29),e!==void 0)return ba(Qe(t,e));if(un(t)||jt(t)||St(t)||ke(t)||Le(t))return t;if(t[R])return t[R];V(24,t)}function en(t,e){var n;if(e!==void 0)n=Qe(t,e);else{if(fn(t))return t.name;Je(t)||ke(t)||Le(t)?n=ba(t):n=Qe(t)}return n.name_}function he(t){var e=ve(),n=It(!0);Q();try{return t()}finally{W(),Vt(n),oe(e)}}var Gn=Dt.toString;function gn(t,e,n){return n===void 0&&(n=-1),tn(t,e,n)}function tn(t,e,n,i,a){if(t===e)return t!==0||1/t===1/e;if(t==null||e==null)return!1;if(t!==t)return e!==e;var r=typeof t;if(r!=="function"&&r!=="object"&&typeof e!="object")return!1;var s=Gn.call(t);if(s!==Gn.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=Kn(t),e=Kn(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&&!(X(l)&&l instanceof l&&X(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}if(n===0)return!1;n<0&&(n=-1),i=i||[],a=a||[];for(var d=i.length;d--;)if(i[d]===t)return a[d]===e;if(i.push(t),a.push(e),o){if(d=t.length,d!==e.length)return!1;for(;d--;)if(!tn(t[d],e[d],n-1,i,a))return!1}else{var f=Object.keys(t),c;if(d=f.length,Object.keys(e).length!==d)return!1;for(;d--;)if(c=f[d],!(se(e,c)&&tn(t[c],e[c],n-1,i,a)))return!1}return i.pop(),a.pop(),!0}function Kn(t){return Ut(t)?t.slice():Pe(t)||ke(t)||Xe(t)||Le(t)?Array.from(t.entries()):t}function We(t){return t[Symbol.iterator]=mo,t}function mo(){return this}["Symbol","Map","Set"].forEach(function(t){var e=Oi();typeof e[t]=="undefined"&&V("MobX requires global '"+t+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ps,extras:{getDebugName:en},$mobx:R});class st 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 _a extends st{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class Na extends st{constructor(e){var n;super("APP_UNEXPECTED_ERROR",(n=e.message)!=null?n:"An unexpected error occurred.",e)}}class ho extends st{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Oa extends st{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
3
+ Configuration property invalid: "${e}".
5
4
 
6
5
  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".
7
6
 
@@ -20,7 +19,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
20
19
  account: env.account,
21
20
  ...
22
21
  });
23
- `)}}const Es=["account"];function Ke(){Es.forEach(e=>{if(e===void 0)throw new Da(e)})}class ws{constructor(){C(this,"_config",null);C(this,"_account");ss(this,{},{name:"NizzaConfigManager",autoBind:!0})}async configure(t){var i;if(this._config=t,((i=this.account)==null?void 0:i.account)!==t.account){const n=await Xa(t.account);this.setAccount(n)}}get config(){return Ke(),this._config}get account(){return Ke(),this._account}get ok(){var t;return Ke(),!!((t=this._account)!=null&&t.account)}get accountName(){var t;return Ke(),(t=this._account)==null?void 0:t.account}setAccount(t){this._account=t}}class As{constructor(){C(this,"channel");C(this,"listeners",new Map);C(this,"eventQueue",new Map);try{this.channel=new BroadcastChannel("nizza"),this.channel.onmessage=t=>this.handleMessage(t),this.channel.onmessageerror=t=>Ce.error("NizzaBroadcastChannel:",t)}catch(t){throw Ce.error("Failed to create NizzaBroadcastChannel:",t),t}}on(t,i){return this.subscribeToEvent(t,i),{off:()=>this.unsubscribeFromEvent(t,i)}}emit(t,i,n={}){this.emitEvent(t,i,n)}handleMessage(t){const i=t.data,{name:n}=i;for(const[a,r]of this.listeners.entries())this.matchWildcard(a,n)&&r.forEach(o=>o({...i,wildcard:a}))}subscribeToEvent(t,i){if(typeof t!="string"||typeof i!="function"){const n=new Error("Invalid arguments");throw Ce.error(n),n}for(const[n,a]of this.listeners.entries())if(this.matchWildcard(n,t)){a.add(i);const r=this.eventQueue.get(n);r&&(r.forEach(o=>{i({...o,wildcard:n})}),this.eventQueue.delete(n));return}this.listeners.set(t,new Set([i]))}emitEvent(t,i,n){if(typeof t!="string"){const o=new Error("Invalid arguments");throw Ce.error(o),o}const a={name:t,data:i,attrs:n},r=Array.from(this.getMatchingListeners(t));if(r.length)for(const[o,s]of r)s({...a,wildcard:o});else this.eventQueue.has(t)||this.eventQueue.set(t,[]),this.eventQueue.get(t).push(a);this.channel.postMessage(a)}*getMatchingListeners(t){for(const[i,n]of this.listeners.entries())if(this.matchWildcard(i,t))for(const a of n)yield[i,a]}unsubscribeFromEvent(t,i){if(this.listeners.has(t)){const n=this.listeners.get(t);n.delete(i),n.size===0&&this.listeners.delete(t)}}matchWildcard(t,i){const n=t.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*");return new RegExp(`^${n}$`).test(i)}}const oe=class{constructor(){C(this,"_productDataSource",null);C(this,"_configManager",new ws);C(this,"_eventBus",new As);C(this,"instanceId",Ca());C(this,"log",Ir);os(this,{config:fe,account:fe,ok:fe,accountName:fe,configure:me},{name:"NizzaStore",autoBind:!0})}static instance(){return oe._instance||(oe._instance=new oe),window!=null&&window.nizza?oe._instance=window==null?void 0:window.nizza:(window.nizza=oe._instance,window.nz=oe._instance),oe._instance}async configure(t){return await this._configManager.configure(t),this}get config(){return this._configManager.config}get account(){return this._configManager.account}get ok(){return this._configManager.ok}get accountName(){return this._configManager.accountName}get productDataSource(){return Ke(),this._productDataSource}get eventBus(){return this._eventBus}setProductDataSource(t){this._productDataSource=t}};let Je=oe;C(Je,"_instance");const On=Je.instance(),ht=On.log,xa=ht.levels.INFO;ht.setDefaultLevel(xa);Fi.reg(ht);Fi.apply(ht,{template:"[%t] %l (%n)",nameFormatter:e=>{var t;return(t=e==null?void 0:e.toLowerCase())!=null?t:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)});const Pa={},Fs=En("main"),Ce=En("core");function La(e){const t=ht.getLogger(e);return t.setLevel(xa),t}function Ia(e,t){Pa[e]=t}function Va(e){return Pa[e]}function En(e){const t=La(e);return Ia(e,t),Va(e)}function Cs(){var n,a,r;let e=null,t=null,i=null;try{e=(r=(a=(n=Intl.DateTimeFormat())==null?void 0:n.resolvedOptions())==null?void 0:a.timeZone)!=null?r:null;const o=-new Date().getTimezoneOffset();i=o;const s=o>=0?"+":"-",u=String(Math.floor(Math.abs(o)/60)).padStart(2,"0"),l=String(Math.abs(o)%60).padStart(2,"0");t=`${s}${u}:${l}`}catch{Ce.error("Error obtaining time zone or offset")}return{offset:t,offsetValue:i,value:e,country:null,included:null,label:null}}class ja{constructor(t){C(this,"aggregate");C(this,"_numSetPropsApplied",0);this.aggregate=t}setProps(t){for(const[i,n]of Object.entries(t))i in this.aggregate&&(this.aggregate[i]=n);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function Ua(e){return new ja(e)}class Rs{}class Ts{constructor(t){C(this,"_value");t!==void 0&&(this._value=t)}get value(){return this._value}}var wn=(e=>(e.VTEX="VTEX",e.VTEX_IO="VTEX-IO",e.VTEX_CMS="PORTAL-VTEX",e.PLATFORM="PLATFORM",e.UNKNOWN="UNKNOWN",e))(wn||{}),Ma=(e=>(e.PLATFORM="platform_module",e.ADENDA="subscription_module",e.APP_STORE="app_store",e))(Ma||{}),An=(e=>(e.ACTIVE="active_contract",e.INACTIVE="inactive_contract",e))(An||{}),Ba=(e=>(e.LITE="lite",e.STANDARD="standard",e.PRO="pro",e))(Ba||{}),za=(e=>(e.LITE="PLAN_LITE",e.STANDARD="PLAN_ESTANDAR",e.PRO="PLAN_PRO",e.NONE="NO_PLAN",e))(za||{}),Ga=(e=>(e.PAST="past",e.LIVE="live",e.FUTURE="future",e))(Ga||{});class Mt{constructor(t){C(this,"root",Ua(this));C(this,"id");C(this,"account");C(this,"accountType",wn.UNKNOWN);C(this,"username");C(this,"currencyConfig");C(this,"contractType");C(this,"nextDateMetricRecord");C(this,"spendedMinutes",0);C(this,"unlimitedService",!1);C(this,"hoursAvailable",0);C(this,"contractStatus",An.ACTIVE);C(this,"createdAt");C(this,"installationDateApp");C(this,"cxAccount");C(this,"freeService",!1);C(this,"subscriptionType",null);C(this,"minutesAvailable",0);C(this,"globalPage");C(this,"stripe");C(this,"descriptionPlan");C(this,"planType");C(this,"selectFreeTrial");C(this,"exceededFeatures");C(this,"host",null);this.root.setProps(t)}static toDomain(t){const{createdAt:i,username:n,...a}=t,r={...a,username:n!=null?n:a.account,createdAt:new Date(Number(i))};return new Mt(r)}toPrimitives(){const{root:t,createdAt:i,...n}=this;return{...n,created:i.toISOString()}}}const Ds=`${Tr.apiUrls.restV1}/accounts/v2`;class $a{async get(t){const i=`${Ds}/${t}`,{data:n}=await mn({url:i});return n?Mt.toDomain(n):null}}class Ka{constructor(t){this.accountRepository=t}async get(t){try{const i=await this.accountRepository.get(t);if(!i)throw new Ra(t);return i}catch(i){throw new Ta(i)}}}const xs=new $a,Fn=new Ka(xs);class Cn{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(i=>i!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Tt=typeof window=="undefined"||"Deno"in window;function Ps(){}function ei(e){return typeof e=="number"&&e>=0&&e!==1/0}function Ls(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Is(e,t,i){return Vs(e)?typeof t=="function"?{...i,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Qa(e,t){if(e===t)return e;const i=ni(e)&&ni(t);if(i||ii(e)&&ii(t)){const n=i?e.length:Object.keys(e).length,a=i?t:Object.keys(t),r=a.length,o=i?[]:{};let s=0;for(let u=0;u<r;u++){const l=i?u:a[u];o[l]=Qa(e[l],t[l]),o[l]===e[l]&&s++}return n===r&&s===n?e:o}return t}function ti(e,t){if(e&&!t||t&&!e)return!1;for(const i in e)if(e[i]!==t[i])return!1;return!0}function ni(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ii(e){if(!ai(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const i=t.prototype;return!(!ai(i)||!i.hasOwnProperty("isPrototypeOf"))}function ai(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vs(e){return Array.isArray(e)}function js(e){return new Promise(t=>{setTimeout(t,e)})}function ri(e){js(0).then(e)}function oi(e,t,i){return i.isDataEqual!=null&&i.isDataEqual(e,t)?e:typeof i.structuralSharing=="function"?i.structuralSharing(e,t):i.structuralSharing!==!1?Qa(e,t):t}class Us extends Cn{constructor(){super(),this.setup=t=>{if(!Tt&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),window.addEventListener("focus",i,!1),()=>{window.removeEventListener("visibilitychange",i),window.removeEventListener("focus",i)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var i;this.setup=t,(i=this.cleanup)==null||i.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Ms=new Us;class Bs extends Cn{constructor(){super(),this.setup=t=>{if(!Tt&&window.addEventListener){const i=()=>t();return window.addEventListener("online",i,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",i)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var i;this.setup=t,(i=this.cleanup)==null||i.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const zs=new Bs;function Gs(e){return(e!=null?e:"online")==="online"?zs.isOnline():!0}class $s{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ks(e){return e instanceof $s}function Qs(){let e=[],t=0,i=d=>{d()},n=d=>{d()};const a=d=>{let c;t++;try{c=d()}finally{t--,t||s()}return c},r=d=>{t?e.push(d):ri(()=>{i(d)})},o=d=>(...c)=>{r(()=>{d(...c)})},s=()=>{const d=e;e=[],d.length&&ri(()=>{n(()=>{d.forEach(c=>{i(c)})})})};return{batch:a,batchCalls:o,schedule:r,setNotifyFunction:d=>{i=d},setBatchNotifyFunction:d=>{n=d}}}const Qe=Qs();class Ws extends Cn{constructor(t,i){super(),this.client=t,this.options=i,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(i)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),si(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return dn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return dn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,i){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),ti(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const r=this.hasListeners();r&&ui(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(i),r&&(this.currentQuery!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();r&&(this.currentQuery!==a||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const i=this.client.getQueryCache().build(this.client,t);return this.createResult(i,t)}getCurrentResult(){return this.currentResult}trackResult(t){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),i}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...i}={}){return this.fetch({...i,meta:{refetchPage:t}})}fetchOptimistic(t){const i=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,i);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,i))}fetch(t){var i;return this.executeFetch({...t,cancelRefetch:(i=t.cancelRefetch)!=null?i:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let i=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(i=i.catch(Ps)),i}updateStaleTimeout(){if(this.clearStaleTimeout(),Tt||this.currentResult.isStale||!ei(this.options.staleTime))return;const i=Ls(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},i)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Tt||this.options.enabled===!1||!ei(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ms.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,i){const n=this.currentQuery,a=this.options,r=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,u=t!==n,l=u?t.state:this.currentQueryInitialState,d=u?this.currentResult:this.previousQueryResult,{state:c}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:S,fetchStatus:v,status:m}=c,y=!1,N=!1,A;if(i._optimisticResults){const f=this.hasListeners(),h=!f&&si(t,i),k=f&&ui(t,n,i,a);(h||k)&&(v=Gs(t.options.networkMode)?"fetching":"paused",p||(m="loading")),i._optimisticResults==="isRestoring"&&(v="idle")}if(i.keepPreviousData&&!c.dataUpdatedAt&&d!=null&&d.isSuccess&&m!=="error")A=d.data,p=d.dataUpdatedAt,m=d.status,y=!0;else if(i.select&&typeof c.data!="undefined")if(r&&c.data===(o==null?void 0:o.data)&&i.select===this.selectFn)A=this.selectResult;else try{this.selectFn=i.select,A=i.select(c.data),A=oi(r==null?void 0:r.data,A,i),this.selectResult=A,this.selectError=null}catch(f){this.selectError=f}else A=c.data;if(typeof i.placeholderData!="undefined"&&typeof A=="undefined"&&m==="loading"){let f;if(r!=null&&r.isPlaceholderData&&i.placeholderData===(s==null?void 0:s.placeholderData))f=r.data;else if(f=typeof i.placeholderData=="function"?i.placeholderData():i.placeholderData,i.select&&typeof f!="undefined")try{f=i.select(f),this.selectError=null}catch(h){this.selectError=h}typeof f!="undefined"&&(m="success",A=oi(r==null?void 0:r.data,f,i),N=!0)}this.selectError&&(g=this.selectError,A=this.selectResult,S=Date.now(),m="error");const O=v==="fetching",T=m==="loading",L=m==="error";return{status:m,fetchStatus:v,isLoading:T,isSuccess:m==="success",isError:L,isInitialLoading:T&&O,data:A,dataUpdatedAt:p,error:g,errorUpdatedAt:S,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:O,isRefetching:O&&!T,isLoadingError:L&&c.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:N,isPreviousData:y,isRefetchError:L&&c.dataUpdatedAt!==0,isStale:Rn(t,i),refetch:this.refetch,remove:this.remove}}updateResult(t){const i=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,ti(n,i))return;this.currentResult=n;const a={cache:!0},r=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options;if(o==="all"||!o&&!this.trackedProps.size)return!0;const s=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(u=>{const l=u;return this.currentResult[l]!==i[l]&&s.has(l)})};(t==null?void 0:t.listeners)!==!1&&r()&&(a.listeners=!0),this.notify({...a,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const i=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(i==null||i.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const i={};t.type==="success"?i.onSuccess=!t.manual:t.type==="error"&&!Ks(t.error)&&(i.onError=!0),this.updateResult(i),this.hasListeners()&&this.updateTimers()}notify(t){Qe.batch(()=>{if(t.onSuccess){var i,n,a,r;(i=(n=this.options).onSuccess)==null||i.call(n,this.currentResult.data),(a=(r=this.options).onSettled)==null||a.call(r,this.currentResult.data,null)}else if(t.onError){var o,s,u,l;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(u=(l=this.options).onSettled)==null||u.call(l,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(d=>{d(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function qs(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function si(e,t){return qs(e,t)||e.state.dataUpdatedAt>0&&dn(e,t,t.refetchOnMount)}function dn(e,t,i){if(t.enabled!==!1){const n=typeof i=="function"?i(e):i;return n==="always"||n!==!1&&Rn(e,t)}return!1}function ui(e,t,i,n){return i.enabled!==!1&&(e!==t||n.enabled===!1)&&(!i.suspense||e.state.status!=="error")&&Rn(e,i)}function Rn(e,t){return e.isStaleByTime(t.staleTime)}var Wa={exports:{}},qa={};/**
22
+ `)}}const po=["account"];function Ee(){po.forEach(t=>{if(t===void 0)throw new Oa(t)})}class Ea{constructor(){T(this,"_config",null);T(this,"_account");Xs(this,{},{name:"NizzaConfigManager",autoBind:!0})}async configure(e){var n;if(this._config=e,((n=this.account)==null?void 0:n.account)!==e.account){const i=await Wa(e.account);this.setAccount(i)}}get config(){return Ee(),this._config}get account(){return Ee(),this._account}get ok(){var e;return Ee(),!!((e=this._account)!=null&&e.account)}get accountName(){var e;return Ee(),(e=this._account)==null?void 0:e.account}setAccount(e){this._account=e}}var Aa={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Si,function(){var e=function(){},n="undefined",i=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function r(v,p){var A=v[p];if(typeof A.bind=="function")return A.bind(v);try{return Function.prototype.bind.call(A,v)}catch{return function(){return Function.prototype.apply.apply(A,[v,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(v){return v==="debug"&&(v="log"),typeof console===n?!1:v==="trace"&&i?s:console[v]!==void 0?r(console,v):console.log!==void 0?r(console,"log"):e}function l(v,p){for(var A=0;A<a.length;A++){var O=a[A];this[O]=A<v?e:this.methodFactory(O,v,p)}this.log=this.debug}function u(v,p,A){return function(){typeof console!==n&&(l.call(this,p,A),this[v].apply(this,arguments))}}function d(v,p,A){return o(v)||u.apply(this,arguments)}function f(v,p,A){var O=this,D;p=p==null?"WARN":p;var _="loglevel";typeof v=="string"?_+=":"+v:typeof v=="symbol"&&(_=void 0);function x(h){var k=(a[h]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=k;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+k+";"}catch{}}}function L(){var h;if(!(typeof window===n||!_)){try{h=window.localStorage[_]}catch{}if(typeof h===n)try{var k=window.document.cookie,y=k.indexOf(encodeURIComponent(_)+"=");y!==-1&&(h=/^([^;]+)/.exec(k.slice(y))[1])}catch{}return O.levels[h]===void 0&&(h=void 0),h}}function j(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_);return}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}O.name=v,O.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},O.methodFactory=A||d,O.getLevel=function(){return D},O.setLevel=function(h,k){if(typeof h=="string"&&O.levels[h.toUpperCase()]!==void 0&&(h=O.levels[h.toUpperCase()]),typeof h=="number"&&h>=0&&h<=O.levels.SILENT){if(D=h,k!==!1&&x(h),l.call(O,h,v),typeof console===n&&h<O.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+h},O.setDefaultLevel=function(h){p=h,L()||O.setLevel(h,!1)},O.resetLevel=function(){O.setLevel(p,!1),j()},O.enableAll=function(h){O.setLevel(O.levels.TRACE,h)},O.disableAll=function(h){O.setLevel(O.levels.SILENT,h)};var m=L();m==null&&(m=p),O.setLevel(m,!1)}var c=new f,S={};c.getLogger=function(p){if(typeof p!="symbol"&&typeof p!="string"||p==="")throw new TypeError("You must supply a name when creating a logger.");var A=S[p];return A||(A=S[p]=new f(p,c.getLevel(),c.methodFactory)),A};var b=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=b),c},c.getLoggers=function(){return S},c.default=c,c})})(Aa);var go=Aa.exports;const vo=bi(go);let ko=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const wa=(t=8)=>ko(t),yo=t=>{const e=Object.entries(t).reduce((n,[i,a])=>a!==void 0?`${n}${n?"&":""}${i}=${a}`:n,"");return e?`?${e}`:""};function So(){const t=new Error().stack.split(`
23
+ `);return t.length<3?"":t[2].trim().substring(3)}class Fa{constructor(){T(this,"channel");T(this,"listeners",new Map);T(this,"eventQueue",new Map);try{this.channel=new BroadcastChannel("nizza"),this.channel.onmessage=e=>this.handleMessage(e),this.channel.onmessageerror=e=>Ae.error("NizzaBroadcastChannel:",e)}catch(e){throw Ae.error("Failed to create NizzaBroadcastChannel:",e),e}}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[a,r]of this.listeners.entries())this.matchWildcard(a,i)&&r.forEach(s=>s({...n,wildcard:a}))}subscribeToEvent(e,n){if(typeof e!="string"||typeof n!="function"){const i=new Error("Invalid arguments");throw Ae.error(i),i}for(const[i,a]of this.listeners.entries())if(this.matchWildcard(i,e)){a.add(n);const r=this.eventQueue.get(i);r&&(r.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 Ae.error(s),s}const a={name:e,data:n,attrs:i},r=Array.from(this.getMatchingListeners(e));if(r.length)for(const[s,o]of r)o({...a,wildcard:s});else this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(a);this.channel.postMessage(a)}*getMatchingListeners(e){for(const[n,i]of this.listeners.entries())if(this.matchWildcard(n,e))for(const a of i)yield[n,a]}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 Y=class Y{constructor(){T(this,"_productDataSource",null);T(this,"_configManager",new Ea);T(this,"_eventBus",new Fa);T(this,"instanceId",wa());T(this,"log",vo);Hs(this,{config:de,account:de,ok:de,accountName:de,configure:ce},{name:"NizzaStore",autoBind:!0})}static instance(){return Y._instance||(Y._instance=new Y),window!=null&&window.nizza?Y._instance=window==null?void 0:window.nizza:(window.nizza=Y._instance,window.nz=Y._instance),Y._instance}async configure(e){return await this._configManager.configure(e),this}get config(){return this._configManager.config}get account(){return this._configManager.account}get ok(){return this._configManager.ok}get accountName(){return this._configManager.accountName}get productDataSource(){return Ee(),this._productDataSource}get eventBus(){return this._eventBus}setProductDataSource(e){this._productDataSource=e}};T(Y,"_instance");let Ot=Y;const vn=Ot.instance(),ot=vn.log,Ca=ot.levels.INFO;ot.setDefaultLevel(Ca);Ni.reg(ot);Ni.apply(ot,{template:"[%t] %l (%n)",nameFormatter:t=>{var e;return(e=t==null?void 0:t.toLowerCase())!=null?e:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)});const Ra={},bo=kn("main"),Ae=kn("core");function Ta(t){const e=ot.getLogger(t);return e.setLevel(Ca),e}function Da(t,e){Ra[t]=e}function xa(t){return Ra[t]}function kn(t){const e=Ta(t);return Da(t,e),xa(t)}function _o(){var i,a,r;let t=null,e=null,n=null;try{t=(r=(a=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:a.timeZone)!=null?r: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{Ae.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:n,value:t,country:null,included:null,label:null}}class Pa{constructor(e){T(this,"aggregate");T(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 La(t){return new Pa(t)}class No{}class Oo{constructor(e){T(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var yn=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))(yn||{}),Ia=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(Ia||{}),Sn=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(Sn||{}),Va=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(Va||{}),ja=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(ja||{}),Ua=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))(Ua||{});class Mt{constructor(e){T(this,"root",La(this));T(this,"id");T(this,"account");T(this,"accountType",yn.UNKNOWN);T(this,"username");T(this,"currencyConfig");T(this,"contractType");T(this,"nextDateMetricRecord");T(this,"spendedMinutes",0);T(this,"unlimitedService",!1);T(this,"hoursAvailable",0);T(this,"contractStatus",Sn.ACTIVE);T(this,"createdAt");T(this,"installationDateApp");T(this,"cxAccount");T(this,"freeService",!1);T(this,"subscriptionType",null);T(this,"minutesAvailable",0);T(this,"globalPage");T(this,"stripe");T(this,"descriptionPlan");T(this,"planType");T(this,"selectFreeTrial");T(this,"exceededFeatures");T(this,"host",null);this.root.setProps(e)}static toDomain(e){const{createdAt:n,username:i,...a}=e,r={...a,username:i!=null?i:a.account,createdAt:new Date(Number(n))};return new Mt(r)}toPrimitives(){const{root:e,createdAt:n,...i}=this;return{...i,created:n.toISOString()}}}const Eo=`${Ar.apiUrls.restV1}/accounts/v2`;class Ma{async get(e){const n=`${Eo}/${e}`,{data:i}=await sn({url:n});return i?Mt.toDomain(i):null}}class Ba{constructor(e){this.accountRepository=e}async get(e){try{const n=await this.accountRepository.get(e);if(!n)throw new _a(e);return n}catch(n){throw new Na(n)}}}const Ao=new Ma,bn=new Ba(Ao);class _n{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const n={listener:e};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Et=typeof window=="undefined"||"Deno"in window;function wo(){}function Jn(t){return typeof t=="number"&&t>=0&&t!==1/0}function Fo(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Co(t,e,n){return Ro(t)?typeof e=="function"?{...n,queryKey:t,queryFn:e}:{...e,queryKey:t}:t}function $a(t,e){if(t===e)return t;const n=Qn(t)&&Qn(e);if(n||Wn(t)&&Wn(e)){const i=n?t.length:Object.keys(t).length,a=n?e:Object.keys(e),r=a.length,s=n?[]:{};let o=0;for(let l=0;l<r;l++){const u=n?l:a[l];s[u]=$a(t[u],e[u]),s[u]===t[u]&&o++}return i===r&&o===i?t:s}return e}function nn(t,e){if(t&&!e||e&&!t)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function Qn(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Wn(t){if(!qn(t))return!1;const e=t.constructor;if(typeof e=="undefined")return!0;const n=e.prototype;return!(!qn(n)||!n.hasOwnProperty("isPrototypeOf"))}function qn(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ro(t){return Array.isArray(t)}function To(t){return new Promise(e=>{setTimeout(e,t)})}function Zn(t){To(0).then(t)}function Hn(t,e,n){return n.isDataEqual!=null&&n.isDataEqual(t,e)?t:typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?$a(t,e):e}class Do extends _n{constructor(){super(),this.setup=e=>{if(!Et&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,(n=this.cleanup)==null||n.call(this),this.cleanup=e(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const xo=new Do,Xn=["online","offline"];class Po extends _n{constructor(){super(),this.setup=e=>{if(!Et&&window.addEventListener){const n=()=>e();return Xn.forEach(i=>{window.addEventListener(i,n,!1)}),()=>{Xn.forEach(i=>{window.removeEventListener(i,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;(e=this.cleanup)==null||e.call(this),this.cleanup=void 0}}setEventListener(e){var n;this.setup=e,(n=this.cleanup)==null||n.call(this),this.cleanup=e(i=>{typeof i=="boolean"?this.setOnline(i):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const Lo=new Po;function Io(t){return(t!=null?t:"online")==="online"?Lo.isOnline():!0}class Vo{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function jo(t){return t instanceof Vo}function Uo(){let t=[],e=0,n=d=>{d()},i=d=>{d()};const a=d=>{let f;e++;try{f=d()}finally{e--,e||o()}return f},r=d=>{e?t.push(d):Zn(()=>{n(d)})},s=d=>(...f)=>{r(()=>{d(...f)})},o=()=>{const d=t;t=[],d.length&&Zn(()=>{i(()=>{d.forEach(f=>{n(f)})})})};return{batch:a,batchCalls:s,schedule:r,setNotifyFunction:d=>{n=d},setBatchNotifyFunction:d=>{i=d}}}const Me=Uo();class Mo extends _n{constructor(e,n){super(),this.client=e,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Yn(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return an(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return an(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,n){const i=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),nn(i,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=i.queryKey),this.updateQuery();const r=this.hasListeners();r&&ei(this.currentQuery,a,this.options,i)&&this.executeFetch(),this.updateResult(n),r&&(this.currentQuery!==a||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();r&&(this.currentQuery!==a||this.options.enabled!==i.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(e){const n=this.client.getQueryCache().build(this.client,e),i=this.createResult(n,e);return $o(this,i,e)&&(this.currentResult=i,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),i}getCurrentResult(){return this.currentResult}trackResult(e){const n={};return Object.keys(e).forEach(i=>{Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(i),e[i])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...n}={}){return this.fetch({...n,meta:{refetchPage:e}})}fetchOptimistic(e){const n=this.client.defaultQueryOptions(e),i=this.client.getQueryCache().build(this.client,n);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,n))}fetch(e){var n;return this.executeFetch({...e,cancelRefetch:(n=e.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let n=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(n=n.catch(wo)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Et||this.currentResult.isStale||!Jn(this.options.staleTime))return;const n=Fo(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(Et||this.options.enabled===!1||!Jn(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||xo.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,n){const i=this.currentQuery,a=this.options,r=this.currentResult,s=this.currentResultState,o=this.currentResultOptions,l=e!==i,u=l?e.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,{state:f}=e;let{dataUpdatedAt:c,error:S,errorUpdatedAt:b,fetchStatus:v,status:p}=f,A=!1,O=!1,D;if(n._optimisticResults){const m=this.hasListeners(),h=!m&&Yn(e,n),k=m&&ei(e,i,n,a);(h||k)&&(v=Io(e.options.networkMode)?"fetching":"paused",c||(p="loading")),n._optimisticResults==="isRestoring"&&(v="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&d!=null&&d.isSuccess&&p!=="error")D=d.data,c=d.dataUpdatedAt,p=d.status,A=!0;else if(n.select&&typeof f.data!="undefined")if(r&&f.data===(s==null?void 0:s.data)&&n.select===this.selectFn)D=this.selectResult;else try{this.selectFn=n.select,D=n.select(f.data),D=Hn(r==null?void 0:r.data,D,n),this.selectResult=D,this.selectError=null}catch(m){this.selectError=m}else D=f.data;if(typeof n.placeholderData!="undefined"&&typeof D=="undefined"&&p==="loading"){let m;if(r!=null&&r.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))m=r.data;else if(m=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof m!="undefined")try{m=n.select(m),this.selectError=null}catch(h){this.selectError=h}typeof m!="undefined"&&(p="success",D=Hn(r==null?void 0:r.data,m,n),O=!0)}this.selectError&&(S=this.selectError,D=this.selectResult,b=Date.now(),p="error");const _=v==="fetching",x=p==="loading",L=p==="error";return{status:p,fetchStatus:v,isLoading:x,isSuccess:p==="success",isError:L,isInitialLoading:x&&_,data:D,dataUpdatedAt:c,error:S,errorUpdatedAt:b,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:_,isRefetching:_&&!x,isLoadingError:L&&f.dataUpdatedAt===0,isPaused:v==="paused",isPlaceholderData:O,isPreviousData:A,isRefetchError:L&&f.dataUpdatedAt!==0,isStale:Nn(e,n),refetch:this.refetch,remove:this.remove}}updateResult(e){const n=this.currentResult,i=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,nn(i,n))return;this.currentResult=i;const a={cache:!0},r=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.trackedProps.size)return!0;const l=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const d=u;return this.currentResult[d]!==n[d]&&l.has(d)})};(e==null?void 0:e.listeners)!==!1&&r()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const n={};e.type==="success"?n.onSuccess=!e.manual:e.type==="error"&&!jo(e.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(e){Me.batch(()=>{if(e.onSuccess){var n,i,a,r;(n=(i=this.options).onSuccess)==null||n.call(i,this.currentResult.data),(a=(r=this.options).onSettled)==null||a.call(r,this.currentResult.data,null)}else if(e.onError){var s,o,l,u;(s=(o=this.options).onError)==null||s.call(o,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:d})=>{d(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Bo(t,e){return e.enabled!==!1&&!t.state.dataUpdatedAt&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Yn(t,e){return Bo(t,e)||t.state.dataUpdatedAt>0&&an(t,e,e.refetchOnMount)}function an(t,e,n){if(e.enabled!==!1){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&Nn(t,e)}return!1}function ei(t,e,n,i){return n.enabled!==!1&&(t!==e||i.enabled===!1)&&(!n.suspense||t.state.status!=="error")&&Nn(t,n)}function Nn(t,e){return t.isStaleByTime(e.staleTime)}function $o(t,e,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?e.isPlaceholderData:!nn(t.getCurrentResult(),e)}var za={exports:{}},Ga={};/**
24
24
  * @license React
25
25
  * use-sync-external-store-shim.production.min.js
26
26
  *
@@ -28,4 +28,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var Ie=M;function Js(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hs=typeof Object.is=="function"?Object.is:Js,Zs=Ie.useState,Xs=Ie.useEffect,Ys=Ie.useLayoutEffect,eu=Ie.useDebugValue;function tu(e,t){var i=t(),n=Zs({inst:{value:i,getSnapshot:t}}),a=n[0].inst,r=n[1];return Ys(function(){a.value=i,a.getSnapshot=t,tn(a)&&r({inst:a})},[e,i,t]),Xs(function(){return tn(a)&&r({inst:a}),e(function(){tn(a)&&r({inst:a})})},[e]),eu(i),i}function tn(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Hs(e,i)}catch{return!0}}function nu(e,t){return t()}var iu=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?nu:tu;qa.useSyncExternalStore=Ie.useSyncExternalStore!==void 0?Ie.useSyncExternalStore:iu;Wa.exports=qa;var au=Wa.exports;const ru=au.useSyncExternalStore,li=q.createContext(void 0),ou=q.createContext(!1);function su(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=li),window.ReactQueryClientContext):li)}const uu=({context:e}={})=>{const t=q.useContext(su(e,q.useContext(ou)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ja=q.createContext(!1),lu=()=>q.useContext(Ja);Ja.Provider;function du(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const cu=q.createContext(du()),fu=()=>q.useContext(cu);function mu(e,t){return typeof e=="function"?e(...t):!!e}const hu=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},vu=e=>{q.useEffect(()=>{e.clearReset()},[e])},pu=({result:e,errorResetBoundary:t,useErrorBoundary:i,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&mu(i,[e.error,n]),gu=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},ku=(e,t)=>e.isLoading&&e.isFetching&&!t,yu=(e,t,i)=>(e==null?void 0:e.suspense)&&ku(t,i),_u=(e,t,i)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{i.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function Su(e,t){const i=uu({context:e.context}),n=lu(),a=fu(),r=i.defaultQueryOptions(e);r._optimisticResults=n?"isRestoring":"optimistic",r.onError&&(r.onError=Qe.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=Qe.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=Qe.batchCalls(r.onSettled)),gu(r),hu(r,a),vu(a);const[o]=q.useState(()=>new t(i,r)),s=o.getOptimisticResult(r);if(ru(q.useCallback(u=>n?()=>{}:o.subscribe(Qe.batchCalls(u)),[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),q.useEffect(()=>{o.setOptions(r,{listeners:!1})},[r,o]),yu(r,s,n))throw _u(r,o,a);if(pu({result:s,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return r.notifyOnChangeProps?s:o.trackResult(s)}function bu(e,t,i){const n=Is(e,t,i);return Su(n,Ws)}let Tn=new Map;const cn=M.createContext(Tn),Nu=({children:e,stores:t})=>{const i=M.useContext(cn),n=M.useMemo(()=>{const a=new Map;return t.forEach(r=>a.set(r.class,r.value)),Tn=new Map([...i,...a])},[]);return vr.jsx(cn.Provider,{value:n,children:e})};function Ou(e){return M.useContext(cn).get(e)}function Eu(e){return Tn.get(e)}function wu(e,t=[]){if(Array.isArray(t)&&t.some(i=>lt(i)))throw new Error("useEffect dependencies must not contain observables, ...");M.useEffect(()=>_n(e),t)}function Ha(e,t=[]){if(Array.isArray(t)&&t.some(a=>lt(a)))throw new Error("useEffect dependencies must not contain observables, ...");const[i,n]=M.useState();return M.useEffect(()=>_n(()=>{const a=e();n(a)}),t),i}function Au(e,t,i=[]){if(Array.isArray(i)&&i.some(n=>lt(n)))throw new Error("useEffect dependencies must not contain observables, ...");M.useEffect(()=>qo(e,t),i)}const Fu=()=>["account"],Cu=()=>{const e=Ha(()=>{var a;return(a=On.config)==null?void 0:a.account}),[t,i]=wr(xt),n=bu(Fu(),()=>Fn.get(e),{enabled:!!e&&!t,refetchOnWindowFocus:!1,refetchOnMount:!1});return M.useEffect(()=>{const a=n.data;!n.isSuccess||!a||i(a)},[n.status]),{findQuery:n,account:t}},Za=bi();async function Xa(e){const t=await Fn.get(e);return Za.set(xt,t),t}var Ya=(e=>(e.CREATED="CREATED",e.STARTING="STARTING",e.LIVE="LIVE",e.FINALIZED="FINALIZED",e))(Ya||{});const Ru={ALL:"*",CORE:"core:**",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:**"},Tu={EVENT_STATUS_CHANGED:"event:statusChanged"};var er=(e=>(e.English="en",e.Spanish="es",e.Portuguese="pt",e))(er||{}),tr=(e=>(e.COMBO="Combo",e))(tr||{}),nr=(e=>(e.VTEX="VTEX",e.PLATFORM="platform",e.CACE="CACE",e.GLOBAL_PAGE="globalPage",e.DEV_LOCAL="dev:local",e.CUSTOMIZATION="customization",e))(nr||{});function Z(e){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z(e)}function Du(e,t){if(Z(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(Z(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ir(e){var t=Du(e,"string");return Z(t)==="symbol"?t:String(t)}function xu(e,t,i){return t=ir(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function j(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(i);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(i).filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),n.forEach(function(a){xu(e,a,i[a])})}return e}function ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function di(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ir(n.key),n)}}function ae(e,t,i){return t&&di(e.prototype,t),i&&di(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tt(e,t){if(t&&(Z(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Se(e)}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},Ve(e)}function fn(e,t){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},fn(e,t)}function Bt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fn(e,t)}var Pu={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,i){console&&console[t]&&console[t].apply(console,i)}},Lu=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,e),this.init(t,i)}return ae(e,[{key:"init",value:function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=i||Pu,this.options=n,this.debug=n.debug}},{key:"setDebug",value:function(i){this.debug=i}},{key:"log",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"log","",!0)}},{key:"warn",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"warn","",!0)}},{key:"error",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"error","")}},{key:"deprecate",value:function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(i,n,a,r){return r&&!this.debug?null:(typeof i[0]=="string"&&(i[0]="".concat(a).concat(this.prefix," ").concat(i[0])),this.logger[n](i))}},{key:"create",value:function(i){return new e(this.logger,j({},{prefix:"".concat(this.prefix,":").concat(i,":")},this.options))}}]),e}(),ue=new Lu,pe=function(){function e(){ie(this,e),this.observers={}}return ae(e,[{key:"on",value:function(i,n){var a=this;return i.split(" ").forEach(function(r){a.observers[r]=a.observers[r]||[],a.observers[r].push(n)}),this}},{key:"off",value:function(i,n){if(this.observers[i]){if(!n){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(function(a){return a!==n})}}},{key:"emit",value:function(i){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];if(this.observers[i]){var o=[].concat(this.observers[i]);o.forEach(function(u){u.apply(void 0,a)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(u){u.apply(u,[i].concat(a))})}}}]),e}();function ze(){var e,t,i=new Promise(function(n,a){e=n,t=a});return i.resolve=e,i.reject=t,i}function ci(e){return e==null?"":""+e}function Iu(e,t,i){e.forEach(function(n){t[n]&&(i[n]=t[n])})}function Dn(e,t,i){function n(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function a(){return!e||typeof e=="string"}for(var r=typeof t!="string"?[].concat(t):t.split(".");r.length>1;){if(a())return{};var o=n(r.shift());!e[o]&&i&&(e[o]=new i),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return a()?{}:{obj:e,k:n(r.shift())}}function fi(e,t,i){var n=Dn(e,t,Object),a=n.obj,r=n.k;a[r]=i}function Vu(e,t,i,n){var a=Dn(e,t,Object),r=a.obj,o=a.k;r[o]=r[o]||[],n&&(r[o]=r[o].concat(i)),n||r[o].push(i)}function Dt(e,t){var i=Dn(e,t),n=i.obj,a=i.k;if(n)return n[a]}function mi(e,t,i){var n=Dt(e,i);return n!==void 0?n:Dt(t,i)}function ar(e,t,i){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?i&&(e[n]=t[n]):ar(e[n],t[n],i):e[n]=t[n]);return e}function we(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var ju={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Uu(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return ju[t]}):e}var zt=typeof window!="undefined"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function rr(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(i),a=e,r=0;r<n.length;++r){if(typeof a[n[r]]=="string"&&r+1<n.length)return;if(a[n[r]]===void 0){for(var o=2,s=n.slice(r,r+o).join(i),u=a[s];u===void 0&&n.length>r+o;)o++,s=n.slice(r,r+o).join(i),u=a[s];if(u===void 0)return;if(typeof u=="string")return u;if(s&&typeof u[s]=="string")return u[s];var l=n.slice(r+o).join(i);return l?rr(u,l,i):void 0}a=a[n[r]]}return a}}var Mu=function(e){Bt(t,e);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ie(this,t),n=tt(this,Ve(t).call(this)),zt&&pe.call(Se(n)),n.data=i||{},n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return ae(t,[{key:"addNamespaces",value:function(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}},{key:"removeNamespaces",value:function(n){var a=this.options.ns.indexOf(n);a>-1&&this.options.ns.splice(a,1)}},{key:"getResource",value:function(n,a,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure,l=[n,a];r&&typeof r!="string"&&(l=l.concat(r)),r&&typeof r=="string"&&(l=l.concat(s?r.split(s):r)),n.indexOf(".")>-1&&(l=n.split("."));var d=Dt(this.data,l);return d||!u||typeof r!="string"?d:rr(this.data&&this.data[n]&&this.data[n][a],r,s)}},{key:"addResource",value:function(n,a,r,o){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var l=[n,a];r&&(l=l.concat(u?r.split(u):r)),n.indexOf(".")>-1&&(l=n.split("."),o=a,a=l[1]),this.addNamespaces(a),fi(this.data,l,o),s.silent||this.emit("added",n,a,r,o)}},{key:"addResources",value:function(n,a,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(n,a,s,r[s],{silent:!0});o.silent||this.emit("added",n,a,r)}},{key:"addResourceBundle",value:function(n,a,r,o,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[n,a];n.indexOf(".")>-1&&(l=n.split("."),o=r,r=a,a=l[1]),this.addNamespaces(a);var d=Dt(this.data,l)||{};o?ar(d,r,s):d=j({},d,r),fi(this.data,l,d),u.silent||this.emit("added",n,a,r)}},{key:"removeResourceBundle",value:function(n,a){this.hasResourceBundle(n,a)&&delete this.data[n][a],this.removeNamespaces(a),this.emit("removed",n,a)}},{key:"hasResourceBundle",value:function(n,a){return this.getResource(n,a)!==void 0}},{key:"getResourceBundle",value:function(n,a){return a||(a=this.options.defaultNS),this.options.compatibilityAPI==="v1"?j({},{},this.getResource(n,a)):this.getResource(n,a)}},{key:"getDataByLanguage",value:function(n){return this.data[n]}},{key:"toJSON",value:function(){return this.data}}]),t}(pe),or={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,i,n,a,r){var o=this;return t.forEach(function(s){o.processors[s]&&(i=o.processors[s].process(i,n,a,r))}),i}},hi={},vi=function(e){Bt(t,e);function t(i){var n,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ie(this,t),n=tt(this,Ve(t).call(this)),zt&&pe.call(Se(n)),Iu(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,Se(n)),n.options=a,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=ue.create("translator"),n}return ae(t,[{key:"changeLanguage",value:function(n){n&&(this.language=n)}},{key:"exists",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=this.resolve(n,a);return r&&r.res!==void 0}},{key:"extractFromKey",value:function(n,a){var r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");var o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ns||this.options.defaultNS;if(r&&n.indexOf(r)>-1){var u=n.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:n,namespaces:s};var l=n.split(r);(r!==o||r===o&&this.options.ns.indexOf(l[0])>-1)&&(s=l.shift()),n=l.join(o)}return typeof s=="string"&&(s=[s]),{key:n,namespaces:s}}},{key:"translate",value:function(n,a,r){var o=this;if(Z(a)!=="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),a||(a={}),n==null)return"";Array.isArray(n)||(n=[String(n)]);var s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=this.extractFromKey(n[n.length-1],a),l=u.key,d=u.namespaces,c=d[d.length-1],p=a.lng||this.language,g=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){var S=a.nsSeparator||this.options.nsSeparator;return c+S+l}return l}var v=this.resolve(n,a),m=v&&v.res,y=v&&v.usedKey||l,N=v&&v.exactUsedKey||l,A=Object.prototype.toString.apply(m),O=["[object Number]","[object Function]","[object RegExp]"],T=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,z=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(L&&m&&z&&O.indexOf(A)<0&&!(typeof T=="string"&&A==="[object Array]")){if(!a.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,m,j({},a,{ns:d})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");if(s){var f=A==="[object Array]",h=f?[]:{},k=f?N:y;for(var b in m)if(Object.prototype.hasOwnProperty.call(m,b)){var E="".concat(k).concat(s).concat(b);h[b]=this.translate(E,j({},a,{joinArrays:!1,ns:d})),h[b]===E&&(h[b]=m[b])}m=h}}else if(L&&typeof T=="string"&&A==="[object Array]")m=m.join(T),m&&(m=this.extendTranslation(m,n,a,r));else{var w=!1,R=!1,re=a.count!==void 0&&typeof a.count!="string",P=t.hasDefaultValue(a),V=re?this.pluralResolver.getSuffix(p,a.count):"",I=a["defaultValue".concat(V)]||a.defaultValue;!this.isValidLookup(m)&&P&&(w=!0,m=I),this.isValidLookup(m)||(R=!0,m=l);var K=P&&I!==m&&this.options.updateMissing;if(R||w||K){if(this.logger.log(K?"updateKey":"missingKey",p,c,l,K?I:m),s){var xn=this.resolve(l,j({},a,{keySeparator:!1}));xn&&xn.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var Be=[],vt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&vt&&vt[0])for(var Gt=0;Gt<vt.length;Gt++)Be.push(vt[Gt]);else this.options.saveMissingTo==="all"?Be=this.languageUtils.toResolveHierarchy(a.lng||this.language):Be.push(a.lng||this.language);var Pn=function(Oe,Kt,Ln){o.options.missingKeyHandler?o.options.missingKeyHandler(Oe,c,Kt,K?Ln:m,K,a):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(Oe,c,Kt,K?Ln:m,K,a),o.emit("missingKey",Oe,c,Kt,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Be.forEach(function($t){o.pluralResolver.getSuffixes($t).forEach(function(Oe){Pn([$t],l+Oe,a["defaultValue".concat(Oe)]||I)})}):Pn(Be,l,I))}m=this.extendTranslation(m,n,a,v,r),R&&m===l&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(l)),R&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(n,a,r,o,s){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)n=this.i18nFormat.parse(n,r,o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(j({},r,{interpolation:j({},this.options.interpolation,r.interpolation)}));var l=r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,d;if(l){var c=n.match(this.interpolator.nestingRegexp);d=c&&c.length}var p=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(p=j({},this.options.interpolation.defaultVariables,p)),n=this.interpolator.interpolate(n,p,r.lng||this.language,r),l){var g=n.match(this.interpolator.nestingRegexp),S=g&&g.length;d<S&&(r.nest=!1)}r.nest!==!1&&(n=this.interpolator.nest(n,function(){for(var y=arguments.length,N=new Array(y),A=0;A<y;A++)N[A]=arguments[A];return s&&s[0]===N[0]&&!r.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(N[0]," in key: ").concat(a[0])),null):u.translate.apply(u,N.concat([a]))},r)),r.interpolation&&this.interpolator.reset()}var v=r.postProcess||this.options.postProcess,m=typeof v=="string"?[v]:v;return n!=null&&m&&m.length&&r.applyPostProcessor!==!1&&(n=or.handle(m,n,a,this.options&&this.options.postProcessPassResolved?j({i18nResolved:o},r):r,this)),n}},{key:"resolve",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,s,u,l,d;return typeof n=="string"&&(n=[n]),n.forEach(function(c){if(!a.isValidLookup(o)){var p=a.extractFromKey(c,r),g=p.key;s=g;var S=p.namespaces;a.options.fallbackNS&&(S=S.concat(a.options.fallbackNS));var v=r.count!==void 0&&typeof r.count!="string",m=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:a.languageUtils.toResolveHierarchy(r.lng||a.language,r.fallbackLng);S.forEach(function(N){a.isValidLookup(o)||(d=N,!hi["".concat(y[0],"-").concat(N)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(d)&&(hi["".concat(y[0],"-").concat(N)]=!0,a.logger.warn('key "'.concat(s,'" for languages "').concat(y.join(", "),`" won't get resolved as namespace "`).concat(d,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(function(A){if(!a.isValidLookup(o)){l=A;var O=g,T=[O];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(T,g,A,N,r);else{var L;v&&(L=a.pluralResolver.getSuffix(A,r.count)),v&&m&&T.push(O+L),m&&T.push(O+="".concat(a.options.contextSeparator).concat(r.context)),v&&T.push(O+=L)}for(var z;z=T.pop();)a.isValidLookup(o)||(u=z,o=a.getResource(A,N,z,r))}}))})}}),{res:o,usedKey:s,exactUsedKey:u,usedLng:l,usedNS:d}}},{key:"isValidLookup",value:function(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}},{key:"getResource",value:function(n,a,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(n,a,r,o):this.resourceStore.getResource(n,a,r,o)}}],[{key:"hasDefaultValue",value:function(n){var a="defaultValue";for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&a===r.substring(0,a.length)&&n[r]!==void 0)return!0;return!1}}]),t}(pe);function nn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Bu=function(){function e(t){ie(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ue.create("languageUtils")}return ae(e,[{key:"getScriptPartFromCode",value:function(i){if(!i||i.indexOf("-")<0)return null;var n=i.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}},{key:"getLanguagePartFromCode",value:function(i){if(!i||i.indexOf("-")<0)return i;var n=i.split("-");return this.formatLanguageCode(n[0])}},{key:"formatLanguageCode",value:function(i){if(typeof i=="string"&&i.indexOf("-")>-1){var n=["hans","hant","latn","cyrl","cans","mong","arab"],a=i.split("-");return this.options.lowerCaseLng?a=a.map(function(r){return r.toLowerCase()}):a.length===2?(a[0]=a[0].toLowerCase(),a[1]=a[1].toUpperCase(),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=nn(a[1].toLowerCase()))):a.length===3&&(a[0]=a[0].toLowerCase(),a[1].length===2&&(a[1]=a[1].toUpperCase()),a[0]!=="sgn"&&a[2].length===2&&(a[2]=a[2].toUpperCase()),n.indexOf(a[1].toLowerCase())>-1&&(a[1]=nn(a[1].toLowerCase())),n.indexOf(a[2].toLowerCase())>-1&&(a[2]=nn(a[2].toLowerCase()))),a.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}},{key:"isWhitelisted",value:function(i){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(i)}},{key:"isSupportedCode",value:function(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}},{key:"getBestMatchFromCodes",value:function(i){var n=this;if(!i)return null;var a;return i.forEach(function(r){if(!a){var o=n.formatLanguageCode(r);(!n.options.supportedLngs||n.isSupportedCode(o))&&(a=o)}}),!a&&this.options.supportedLngs&&i.forEach(function(r){if(!a){var o=n.getLanguagePartFromCode(r);if(n.isSupportedCode(o))return a=o;a=n.options.supportedLngs.find(function(s){if(s.indexOf(o)===0)return s})}}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}},{key:"getFallbackCodes",value:function(i,n){if(!i)return[];if(typeof i=="function"&&(i=i(n)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!n)return i.default||[];var a=i[n];return a||(a=i[this.getScriptPartFromCode(n)]),a||(a=i[this.formatLanguageCode(n)]),a||(a=i[this.getLanguagePartFromCode(n)]),a||(a=i.default),a||[]}},{key:"toResolveHierarchy",value:function(i,n){var a=this,r=this.getFallbackCodes(n||this.options.fallbackLng||[],i),o=[],s=function(l){l&&(a.isSupportedCode(l)?o.push(l):a.logger.warn("rejecting language code not found in supportedLngs: ".concat(l)))};return typeof i=="string"&&i.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(i))):typeof i=="string"&&s(this.formatLanguageCode(i)),r.forEach(function(u){o.indexOf(u)<0&&s(a.formatLanguageCode(u))}),o}}]),e}(),zu=[{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}],Gu={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}};function $u(){var e={};return zu.forEach(function(t){t.lngs.forEach(function(i){e[i]={numbers:t.nr,plurals:Gu[t.fc]}})}),e}var Ku=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,e),this.languageUtils=t,this.options=i,this.logger=ue.create("pluralResolver"),this.rules=$u()}return ae(e,[{key:"addRule",value:function(i,n){this.rules[i]=n}},{key:"getRule",value:function(i){return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}},{key:"needsPlural",value:function(i){var n=this.getRule(i);return n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(i,n){return this.getSuffixes(i).map(function(a){return n+a})}},{key:"getSuffixes",value:function(i){var n=this,a=this.getRule(i);return a?a.numbers.map(function(r){return n.getSuffix(i,r)}):[]}},{key:"getSuffix",value:function(i,n){var a=this,r=this.getRule(i);if(r){var o=r.noAbs?r.plurals(n):r.plurals(Math.abs(n)),s=r.numbers[o];this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var u=function(){return a.options.prepend&&s.toString()?a.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&r.numbers.length===2&&r.numbers[0]===1?u():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(i)),""}}]),e}(),Qu=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie(this,e),this.logger=ue.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(i){return i},this.init(t)}return ae(e,[{key:"init",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});var n=i.interpolation;this.escape=n.escape!==void 0?n.escape:Uu,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?we(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?we(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?we(n.nestingPrefix):n.nestingPrefixEscaped||we("$t("),this.nestingSuffix=n.nestingSuffix?we(n.nestingSuffix):n.nestingSuffixEscaped||we(")"),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()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var i="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(i,"g");var n="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(n,"g");var a="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(a,"g")}},{key:"interpolate",value:function(i,n,a,r){var o=this,s,u,l,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(m){return m.replace(/\$/g,"$$$$")}var p=function(y){if(y.indexOf(o.formatSeparator)<0){var N=mi(n,d,y);return o.alwaysFormat?o.format(N,void 0,a,j({},r,n,{interpolationkey:y})):N}var A=y.split(o.formatSeparator),O=A.shift().trim(),T=A.join(o.formatSeparator).trim();return o.format(mi(n,d,O),T,a,j({},r,n,{interpolationkey:O}))};this.resetRegExp();var g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,S=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(y){return c(y)}},{regex:this.regexp,safeValue:function(y){return o.escapeValue?c(o.escape(y)):c(y)}}];return v.forEach(function(m){for(l=0;s=m.regex.exec(i);){if(u=p(s[1].trim()),u===void 0)if(typeof g=="function"){var y=g(i,s,r);u=typeof y=="string"?y:""}else if(S){u=s[0];continue}else o.logger.warn("missed to pass in variable ".concat(s[1]," for interpolating ").concat(i)),u="";else typeof u!="string"&&!o.useRawValueToEscape&&(u=ci(u));var N=m.safeValue(u);if(i=i.replace(s[0],N),S?(m.regex.lastIndex+=N.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,l++,l>=o.maxReplaces)break}}),i}},{key:"nest",value:function(i,n){var a=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,u=j({},r);u.applyPostProcessor=!1,delete u.defaultValue;function l(g,S){var v=this.nestingOptionsSeparator;if(g.indexOf(v)<0)return g;var m=g.split(new RegExp("".concat(v,"[ ]*{"))),y="{".concat(m[1]);g=m[0],y=this.interpolate(y,u),y=y.replace(/'/g,'"');try{u=JSON.parse(y),S&&(u=j({},S,u))}catch(N){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),N),"".concat(g).concat(v).concat(y)}return delete u.defaultValue,g}for(;o=this.nestingRegexp.exec(i);){var d=[],c=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){var p=o[1].split(this.formatSeparator).map(function(g){return g.trim()});o[1]=p.shift(),d=p,c=!0}if(s=n(l.call(this,o[1].trim(),u),u),s&&o[0]===i&&typeof s!="string")return s;typeof s!="string"&&(s=ci(s)),s||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(i)),s=""),c&&(s=d.reduce(function(g,S){return a.format(g,S,r.lng,j({},r,{interpolationkey:o[1].trim()}))},s.trim())),i=i.replace(o[0],s),this.regexp.lastIndex=0}return i}}]),e}();function Wu(e,t){for(var i=e.indexOf(t);i!==-1;)e.splice(i,1),i=e.indexOf(t)}var qu=function(e){Bt(t,e);function t(i,n,a){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ie(this,t),r=tt(this,Ve(t).call(this)),zt&&pe.call(Se(r)),r.backend=i,r.store=n,r.services=a,r.languageUtils=a.languageUtils,r.options=o,r.logger=ue.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(a,o.backend,o),r}return ae(t,[{key:"queueLoad",value:function(n,a,r,o){var s=this,u=[],l=[],d=[],c=[];return n.forEach(function(p){var g=!0;a.forEach(function(S){var v="".concat(p,"|").concat(S);!r.reload&&s.store.hasResourceBundle(p,S)?s.state[v]=2:s.state[v]<0||(s.state[v]===1?l.indexOf(v)<0&&l.push(v):(s.state[v]=1,g=!1,l.indexOf(v)<0&&l.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(S)<0&&c.push(S)))}),g||d.push(p)}),(u.length||l.length)&&this.queue.push({pending:l,loaded:{},errors:[],callback:o}),{toLoad:u,pending:l,toLoadLanguages:d,toLoadNamespaces:c}}},{key:"loaded",value:function(n,a,r){var o=n.split("|"),s=o[0],u=o[1];a&&this.emit("failedLoading",s,u,a),r&&this.store.addResourceBundle(s,u,r),this.state[n]=a?-1:2;var l={};this.queue.forEach(function(d){Vu(d.loaded,[s],u),Wu(d.pending,n),a&&d.errors.push(a),d.pending.length===0&&!d.done&&(Object.keys(d.loaded).forEach(function(c){l[c]||(l[c]=[]),d.loaded[c].length&&d.loaded[c].forEach(function(p){l[c].indexOf(p)<0&&l[c].push(p)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(d){return!d.done})}},{key:"read",value:function(n,a,r){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,l=arguments.length>5?arguments[5]:void 0;return n.length?this.backend[r](n,a,function(d,c){if(d&&c&&s<5){setTimeout(function(){o.read.call(o,n,a,r,s+1,u*2,l)},u);return}l(d,c)}):l(null,{})}},{key:"prepareLoading",value:function(n,a){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();typeof n=="string"&&(n=this.languageUtils.toResolveHierarchy(n)),typeof a=="string"&&(a=[a]);var u=this.queueLoad(n,a,o,s);if(!u.toLoad.length)return u.pending.length||s(),null;u.toLoad.forEach(function(l){r.loadOne(l)})}},{key:"load",value:function(n,a,r){this.prepareLoading(n,a,{},r)}},{key:"reload",value:function(n,a,r){this.prepareLoading(n,a,{reload:!0},r)}},{key:"loadOne",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=n.split("|"),s=o[0],u=o[1];this.read(s,u,"read",void 0,void 0,function(l,d){l&&a.logger.warn("".concat(r,"loading namespace ").concat(u," for language ").concat(s," failed"),l),!l&&d&&a.logger.log("".concat(r,"loaded namespace ").concat(u," for language ").concat(s),d),a.loaded(n,l,d)})}},{key:"saveMissing",value:function(n,a,r,o,s){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(a)){this.logger.warn('did not save key "'.concat(r,'" as the namespace "').concat(a,'" 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}r==null||r===""||(this.backend&&this.backend.create&&this.backend.create(n,a,r,o,null,j({},u,{isUpdate:s})),!(!n||!n[0])&&this.store.addResource(n[0],a,r,o))}}]),t}(pe);function Ju(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var i={};if(Z(t[1])==="object"&&(i=t[1]),typeof t[1]=="string"&&(i.defaultValue=t[1]),typeof t[2]=="string"&&(i.tDescription=t[2]),Z(t[2])==="object"||Z(t[3])==="object"){var n=t[3]||t[2];Object.keys(n).forEach(function(a){i[a]=n[a]})}return i},interpolation:{escapeValue:!0,format:function(t,i,n,a){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function pi(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function _t(){}var Hu=function(e){Bt(t,e);function t(){var i,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;if(ie(this,t),i=tt(this,Ve(t).call(this)),zt&&pe.call(Se(i)),i.options=pi(n),i.services={},i.logger=ue,i.modules={external:[]},a&&!i.isInitialized&&!n.isClone){if(!i.options.initImmediate)return i.init(n,a),tt(i,Se(i));setTimeout(function(){i.init(n,a)},0)}return i}return ae(t,[{key:"init",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof a=="function"&&(r=a,a={}),a.whitelist&&!a.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),a.nonExplicitWhitelist&&!a.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=j({},Ju(),this.options,pi(a)),this.format=this.options.interpolation.format,r||(r=_t);function o(S){return S?typeof S=="function"?new S:S:null}if(!this.options.isClone){this.modules.logger?ue.init(o(this.modules.logger),this.options):ue.init(null,this.options);var s=new Bu(this.options);this.store=new Mu(this.options.resources,this.options);var u=this.services;u.logger=ue,u.resourceStore=this.store,u.languageUtils=s,u.pluralResolver=new Ku(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new Qu(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new qu(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(S){for(var v=arguments.length,m=new Array(v>1?v-1:0),y=1;y<v;y++)m[y-1]=arguments[y];n.emit.apply(n,[S].concat(m))}),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new vi(this.services,this.options),this.translator.on("*",function(S){for(var v=arguments.length,m=new Array(v>1?v-1:0),y=1;y<v;y++)m[y-1]=arguments[y];n.emit.apply(n,[S].concat(m))}),this.modules.external.forEach(function(S){S.init&&S.init(n)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var d=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];d.forEach(function(S){n[S]=function(){var v;return(v=n.store)[S].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(S){n[S]=function(){var v;return(v=n.store)[S].apply(v,arguments),n}});var p=ze(),g=function(){var v=function(y,N){n.isInitialized&&n.logger.warn("init: i18next is already initialized. You should call init just once!"),n.isInitialized=!0,n.options.isClone||n.logger.log("initialized",n.options),n.emit("initialized",n.options),p.resolve(N),r(y,N)};if(n.languages&&n.options.compatibilityAPI!=="v1"&&!n.isInitialized)return v(null,n.t.bind(n));n.changeLanguage(n.options.lng,v)};return this.options.resources||!this.options.initImmediate?g():setTimeout(g,0),p}},{key:"loadResources",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t,o=r,s=typeof n=="string"?n:this.language;if(typeof n=="function"&&(o=n),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode")return o();var u=[],l=function(p){if(p){var g=a.services.languageUtils.toResolveHierarchy(p);g.forEach(function(S){u.indexOf(S)<0&&u.push(S)})}};if(s)l(s);else{var d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.forEach(function(c){return l(c)})}this.options.preload&&this.options.preload.forEach(function(c){return l(c)}),this.services.backendConnector.load(u,this.options.ns,o)}else o(null)}},{key:"reloadResources",value:function(n,a,r){var o=ze();return n||(n=this.languages),a||(a=this.options.ns),r||(r=_t),this.services.backendConnector.reload(n,a,function(s){o.resolve(),r(s)}),o}},{key:"use",value:function(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&or.addPostProcessor(n),n.type==="3rdParty"&&this.modules.external.push(n),this}},{key:"changeLanguage",value:function(n,a){var r=this;this.isLanguageChangingTo=n;var o=ze();this.emit("languageChanging",n);var s=function(d,c){c?(r.language=c,r.languages=r.services.languageUtils.toResolveHierarchy(c),r.translator.changeLanguage(c),r.isLanguageChangingTo=void 0,r.emit("languageChanged",c),r.logger.log("languageChanged",c)):r.isLanguageChangingTo=void 0,o.resolve(function(){return r.t.apply(r,arguments)}),a&&a(d,function(){return r.t.apply(r,arguments)})},u=function(d){!n&&!d&&r.services.languageDetector&&(d=[]);var c=typeof d=="string"?d:r.services.languageUtils.getBestMatchFromCodes(d);c&&(r.language||(r.language=c,r.languages=r.services.languageUtils.toResolveHierarchy(c)),r.translator.language||r.translator.changeLanguage(c),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(c)),r.loadResources(c,function(p){s(p,c)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(u):u(n),o}},{key:"getFixedT",value:function(n,a){var r=this,o=function s(u,l){var d;if(Z(l)!=="object"){for(var c=arguments.length,p=new Array(c>2?c-2:0),g=2;g<c;g++)p[g-2]=arguments[g];d=r.options.overloadTranslationOptionHandler([u,l].concat(p))}else d=j({},l);return d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns,r.t(u,d)};return typeof n=="string"?o.lng=n:o.lngs=n,o.ns=a,o}},{key:"t",value:function(){var n;return this.translator&&(n=this.translator).translate.apply(n,arguments)}},{key:"exists",value:function(){var n;return this.translator&&(n=this.translator).exists.apply(n,arguments)}},{key:"setDefaultNamespace",value:function(n){this.options.defaultNS=n}},{key:"hasLoadedNamespace",value:function(n){var a=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.languages[0],s=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;var l=function(p,g){var S=a.services.backendConnector.state["".concat(p,"|").concat(g)];return S===-1||S===2};if(r.precheck){var d=r.precheck(this,l);if(d!==void 0)return d}return!!(this.hasResourceBundle(o,n)||!this.services.backendConnector.backend||l(o,n)&&(!s||l(u,n)))}},{key:"loadNamespaces",value:function(n,a){var r=this,o=ze();return this.options.ns?(typeof n=="string"&&(n=[n]),n.forEach(function(s){r.options.ns.indexOf(s)<0&&r.options.ns.push(s)}),this.loadResources(function(s){o.resolve(),a&&a(s)}),o):(a&&a(),Promise.resolve())}},{key:"loadLanguages",value:function(n,a){var r=ze();typeof n=="string"&&(n=[n]);var o=this.options.preload||[],s=n.filter(function(u){return o.indexOf(u)<0});return s.length?(this.options.preload=o.concat(s),this.loadResources(function(u){r.resolve(),a&&a(u)}),r):(a&&a(),Promise.resolve())}},{key:"dir",value:function(n){if(n||(n=this.languages&&this.languages.length>0?this.languages[0]:this.language),!n)return"rtl";var a=["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"];return a.indexOf(this.services.languageUtils.getLanguagePartFromCode(n))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;return new t(n,a)}},{key:"cloneInstance",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_t,o=j({},this.options,a,{isClone:!0}),s=new t(o),u=["store","services","language"];return u.forEach(function(l){s[l]=n[l]}),s.services=j({},this.services),s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s.translator=new vi(s.services,s.options),s.translator.on("*",function(l){for(var d=arguments.length,c=new Array(d>1?d-1:0),p=1;p<d;p++)c[p-1]=arguments[p];s.emit.apply(s,[l].concat(c))}),s.init(o,r),s.translator.options=s.options,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(pe),sr=new Hu;function Zu(e){const t=Object.values(e);return Object.assign({},...t)}function Xu(e){return Object.entries(e).reduce((t,[i,n])=>{const a=Zu(n);return{...t,[i]:a}},{})}function Yu(e){const t=Xu(e);Object.entries(t).forEach(([i,n])=>{sr.addResourceBundle(i,"translation",n,!0)})}var ur=[],el=ur.forEach,tl=ur.slice;function nl(e){return el.call(tl.call(arguments,1),function(t){if(t)for(var i in t)e[i]===void 0&&(e[i]=t[i])}),e}var gi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,il=function(t,i,n){var a=n||{};a.path=a.path||"/";var r=encodeURIComponent(i),o="".concat(t,"=").concat(r);if(a.maxAge>0){var s=a.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");o+="; Max-Age=".concat(Math.floor(s))}if(a.domain){if(!gi.test(a.domain))throw new TypeError("option domain is invalid");o+="; Domain=".concat(a.domain)}if(a.path){if(!gi.test(a.path))throw new TypeError("option path is invalid");o+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(o+="; HttpOnly"),a.secure&&(o+="; Secure"),a.sameSite){var u=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(u){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return o},ki={create:function(t,i,n,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+n*60*1e3)),a&&(r.domain=a),document.cookie=il(t,encodeURIComponent(i),r)},read:function(t){for(var i="".concat(t,"="),n=document.cookie.split(";"),a=0;a<n.length;a++){for(var r=n[a];r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(i)===0)return r.substring(i.length,r.length)}return null},remove:function(t){this.create(t,"",-1)}},al={name:"cookie",lookup:function(t){var i;if(t.lookupCookie&&typeof document!="undefined"){var n=ki.read(t.lookupCookie);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupCookie&&typeof document!="undefined"&&ki.create(i.lookupCookie,t,i.cookieMinutes,i.cookieDomain,i.cookieOptions)}},rl={name:"querystring",lookup:function(t){var i;if(typeof window!="undefined"){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var a=n.substring(1),r=a.split("&"),o=0;o<r.length;o++){var s=r[o].indexOf("=");if(s>0){var u=r[o].substring(0,s);u===t.lookupQuerystring&&(i=r[o].substring(s+1))}}}return i}},Ge=null,yi=function(){if(Ge!==null)return Ge;try{Ge=window!=="undefined"&&window.localStorage!==null;var t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{Ge=!1}return Ge},ol={name:"localStorage",lookup:function(t){var i;if(t.lookupLocalStorage&&yi()){var n=window.localStorage.getItem(t.lookupLocalStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupLocalStorage&&yi()&&window.localStorage.setItem(i.lookupLocalStorage,t)}},$e=null,_i=function(){if($e!==null)return $e;try{$e=window!=="undefined"&&window.sessionStorage!==null;var t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{$e=!1}return $e},sl={name:"sessionStorage",lookup:function(t){var i;if(t.lookupSessionStorage&&_i()){var n=window.sessionStorage.getItem(t.lookupSessionStorage);n&&(i=n)}return i},cacheUserLanguage:function(t,i){i.lookupSessionStorage&&_i()&&window.sessionStorage.setItem(i.lookupSessionStorage,t)}},ul={name:"navigator",lookup:function(t){var i=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)i.push(navigator.languages[n]);navigator.userLanguage&&i.push(navigator.userLanguage),navigator.language&&i.push(navigator.language)}return i.length>0?i:void 0}},ll={name:"htmlTag",lookup:function(t){var i,n=t.htmlTag||(typeof document!="undefined"?document.documentElement:null);return n&&typeof n.getAttribute=="function"&&(i=n.getAttribute("lang")),i}},dl={name:"path",lookup:function(t){var i;if(typeof window!="undefined"){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if(typeof t.lookupFromPathIndex=="number"){if(typeof n[t.lookupFromPathIndex]!="string")return;i=n[t.lookupFromPathIndex].replace("/","")}else i=n[0].replace("/","")}return i}},cl={name:"subdomain",lookup:function(t){var i=typeof t.lookupFromSubdomainIndex=="number"?t.lookupFromSubdomainIndex+1:1,n=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(n)return n[i]}};function fl(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(t){return t}}}var lr=function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ie(this,e),this.type="languageDetector",this.detectors={},this.init(t,i)}return ae(e,[{key:"init",value:function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i||{languageUtils:{}},this.options=nl(n,this.options||{},fl()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(r){return r.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(al),this.addDetector(rl),this.addDetector(ol),this.addDetector(sl),this.addDetector(ul),this.addDetector(ll),this.addDetector(dl),this.addDetector(cl)}},{key:"addDetector",value:function(i){this.detectors[i.name]=i}},{key:"detect",value:function(i){var n=this;i||(i=this.options.order);var a=[];return i.forEach(function(r){if(n.detectors[r]){var o=n.detectors[r].lookup(n.options);o&&typeof o=="string"&&(o=[o]),o&&(a=a.concat(o))}}),a=a.map(function(r){return n.options.convertDetectedLanguage(r)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(i,n){var a=this;n||(n=this.options.caches),n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||n.forEach(function(r){a.detectors[r]&&a.detectors[r].cacheUserLanguage(i,a.options)}))}}]),e}();lr.type="languageDetector";const ml=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,hl={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},vl=e=>hl[e],pl=e=>e.replace(ml,vl);let Si={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pl};function gl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Si={...Si,...e}}const kl={type:"3rdParty",init(e){gl(e.options.react)}},yl=sr.use(kl).use(lr).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(e,t,i)=>{if(t){const[n,...a]=t.split(",").map(r=>r.trim());if(n==="number")return new Intl.NumberFormat(i).format(e);if(n==="date")return new Intl.DateTimeFormat(i).format(e);if(n==="currency")return new Intl.NumberFormat(i,{style:"currency",currency:a[0]||"USD",currencyDisplay:"narrowSymbol"}).format(e).replace("$","").trim()}return e}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}});var dr=(e=>(e.Created="CREATED",e.Finalized="FINALIZED",e.Live="LIVE",e.Starting="STARTING",e))(dr||{}),cr=(e=>(e.Add="add",e.Remove="remove",e))(cr||{}),fr=(e=>(e.Active="active",e.Inactive="inactive",e))(fr||{});const _l={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"}}]}}]}}]}}]},Sl={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"}}]}}]}}]}}]},bl={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"}}]}}]}}]}}]},Nl={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"}}]}}]}}]}}]},Ol={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"}}]}}]}}]}}]},El={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"}}]}}]}}]}}]},wl={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:"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"}}]}}]}}]}}]},Al={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"}}]}}]}}]}}]},Fl={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"}}]}}]}}]}}]},Cl={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"}}]}}]}}]}}]},Rl={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"}}]}}]}}]}}]},Tl={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"}}]}}]}}]}}]},Dl={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"}}]}}]}}]}}]},xl={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"}}]}}]}}]}}]},Pl={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"}}]}}]}}]}}]},Ll={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"}}]}}]}}]}}]},Il={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"}}]}}]}}]}}]},Vl={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"}}]}}]}}]}}]},jl={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"}}]}}]}}]}}]},Ul={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"}}]}}]}}]}}]},Ml={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"}}]}}]}}]}}]},Bl={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"}}]}}]}}]}}]},zl={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"}}]}}]}}]}}]},Gl={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"}}]}}]}}]}}]},$l={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"}}]}}]}}]}}]}}]},Kl={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"}}]}}]}}]}}]},Ql={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"}}]}}]}}]}}]},Wl=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:Cl,AppendProductsToSnackVideoDocument:jl,BlockUserDocument:Nl,ChangeAccountUsernameDocument:Ol,CreateSnackVideoBatchDocument:Ul,DeleteAllCustomizationDocument:_l,DeleteChatMessageDocument:El,DeleteCollectionDocument:Rl,DeleteRelationshipWithSnackVideoDocument:Ml,DeleteSnackVideoDocument:Bl,EventStatus:dr,FindByProductSnackVideoDocument:Ql,FindCollectionDocument:Tl,FindManySnackVideosDocument:zl,FindMinimalEventDocument:Il,GetAllChatMessageDocument:wl,GetAllCollectionsDocument:Dl,GetAllCustomizationDocument:Sl,GetAllSnackVideosDocument:Gl,GetChatRoomTokenDocument:Al,GetSnackVideoRelationshipsDocument:$l,ManageCollectionProductDocument:xl,Methods:cr,PinChatMessageDocument:Fl,SearchCollectionsDocument:Pl,SearchMinimalEventsDocument:Vl,SearchSnackVideosDocument:Kl,Status:fr,UpdateCollectionDocument:Ll,UpdateCustomizationDocument:bl},Symbol.toStringTag,{value:"Module"}));function ql(e){return{class:e,_value:null,get value(){return this._value||(this._value=new e,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=An;exports.AccountContractTypes=Ma;exports.AccountInvalidError=Os;exports.AccountPlanDescriptionTypes=za;exports.AccountRestRepository=$a;exports.AccountService=Ka;exports.AccountSubscriptionTypes=Ba;exports.AccountTypes=wn;exports.AggregateRoot=ja;exports.ApiGraphqlTypes=Wl;exports.BaseMobxStore=Rs;exports.DomainError=mt;exports.EventBusWildcards=Ru;exports.EventNames=Tu;exports.GlobalPageSectionTypes=Ga;exports.InvalidNizzaGlobalObjectError=Da;exports.LanguageTypes=er;exports.NizzaAccount=Mt;exports.NizzaEventStatus=Ya;exports.NizzaProductRequestOriginTypes=nr;exports.NizzaStore=Je;exports.NizzaVariationTypes=tr;exports.ResourceNotFoundError=Ra;exports.StoreProvider=Nu;exports.UnexpectedError=Ta;exports.ValueObject=Ts;exports.accountAtom=xt;exports.accountService=Fn;exports.apiCall=Dr;exports.coreLogger=Ce;exports.createAggregateRoot=Ua;exports.createLogger=La;exports.createStore=ql;exports.customFetch=mn;exports.downloadFile=xr;exports.fileOrigin=Ns;exports.getAccount=Xa;exports.getClientTimeZone=Cs;exports.getLogger=Va;exports.getStore=Eu;exports.globalAtomStore=Za;exports.i18n=yl;exports.initializeLogger=En;exports.jsDownload=Oi;exports.logger=Fs;exports.nizza=On;exports.registerLogger=Ia;exports.registerTranslations=Yu;exports.searchParams=bs;exports.shortId=Ca;exports.useAccount=Cu;exports.useAutorun=wu;exports.useReaction=Au;exports.useSelect=Ha;exports.useStore=Ou;
31
+ */var xe=$;function zo(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Go=typeof Object.is=="function"?Object.is:zo,Ko=xe.useState,Jo=xe.useEffect,Qo=xe.useLayoutEffect,Wo=xe.useDebugValue;function qo(t,e){var n=e(),i=Ko({inst:{value:n,getSnapshot:e}}),a=i[0].inst,r=i[1];return Qo(function(){a.value=n,a.getSnapshot=e,Wt(a)&&r({inst:a})},[t,n,e]),Jo(function(){return Wt(a)&&r({inst:a}),t(function(){Wt(a)&&r({inst:a})})},[t]),Wo(n),n}function Wt(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Go(t,n)}catch{return!0}}function Zo(t,e){return e()}var Ho=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?Zo:qo;Ga.useSyncExternalStore=xe.useSyncExternalStore!==void 0?xe.useSyncExternalStore:Ho;za.exports=Ga;var Xo=za.exports;const Yo=Xo.useSyncExternalStore,ti=q.createContext(void 0),el=q.createContext(!1);function tl(t,e){return t||(e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=ti),window.ReactQueryClientContext):ti)}const nl=({context:t}={})=>{const e=q.useContext(tl(t,q.useContext(el)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Ka=q.createContext(!1),il=()=>q.useContext(Ka);Ka.Provider;function al(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}const rl=q.createContext(al()),sl=()=>q.useContext(rl);function ol(t,e){return typeof t=="function"?t(...e):!!t}const ll=(t,e)=>{(t.suspense||t.useErrorBoundary)&&(e.isReset()||(t.retryOnMount=!1))},ul=t=>{q.useEffect(()=>{t.clearReset()},[t])},dl=({result:t,errorResetBoundary:e,useErrorBoundary:n,query:i})=>t.isError&&!e.isReset()&&!t.isFetching&&ol(n,[t.error,i]),cl=t=>{t.suspense&&typeof t.staleTime!="number"&&(t.staleTime=1e3)},fl=(t,e)=>t.isLoading&&t.isFetching&&!e,ml=(t,e,n)=>(t==null?void 0:t.suspense)&&fl(e,n),hl=(t,e,n)=>e.fetchOptimistic(t).then(({data:i})=>{t.onSuccess==null||t.onSuccess(i),t.onSettled==null||t.onSettled(i,null)}).catch(i=>{n.clearReset(),t.onError==null||t.onError(i),t.onSettled==null||t.onSettled(void 0,i)});function pl(t,e){const n=nl({context:t.context}),i=il(),a=sl(),r=n.defaultQueryOptions(t);r._optimisticResults=i?"isRestoring":"optimistic",r.onError&&(r.onError=Me.batchCalls(r.onError)),r.onSuccess&&(r.onSuccess=Me.batchCalls(r.onSuccess)),r.onSettled&&(r.onSettled=Me.batchCalls(r.onSettled)),cl(r),ll(r,a),ul(a);const[s]=q.useState(()=>new e(n,r)),o=s.getOptimisticResult(r);if(Yo(q.useCallback(l=>{const u=i?()=>{}:s.subscribe(Me.batchCalls(l));return s.updateResult(),u},[s,i]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),q.useEffect(()=>{s.setOptions(r,{listeners:!1})},[r,s]),ml(r,o,i))throw hl(r,s,a);if(dl({result:o,errorResetBoundary:a,useErrorBoundary:r.useErrorBoundary,query:s.getCurrentQuery()}))throw o.error;return r.notifyOnChangeProps?o:s.trackResult(o)}function gl(t,e,n){const i=Co(t,e,n);return pl(i,Mo)}let On=new Map;const rn=$.createContext(On),vl=({children:t,stores:e})=>{const n=$.useContext(rn),i=$.useMemo(()=>{const a=new Map;return e.forEach(r=>a.set(r.class,r.value)),On=new Map([...n,...a])},[]);return lr.jsx(rn.Provider,{value:i,children:t})};function kl(t){return $.useContext(rn).get(t)}function yl(t){return On.get(t)}function Sl(t,e=[]){if(Array.isArray(e)&&e.some(n=>nt(n)))throw new Error("useEffect dependencies must not contain observables, ...");$.useEffect(()=>mn(t),e)}function Ja(t,e=[]){if(Array.isArray(e)&&e.some(a=>nt(a)))throw new Error("useEffect dependencies must not contain observables, ...");const[n,i]=$.useState();return $.useEffect(()=>mn(()=>{const a=t();i(a)}),e),n}function bl(t,e,n=[]){if(Array.isArray(n)&&n.some(i=>nt(i)))throw new Error("useEffect dependencies must not contain observables, ...");$.useEffect(()=>Bs(t,e),n)}const _l=()=>["account"],Nl=()=>{const t=Ja(()=>{var a;return(a=vn.config)==null?void 0:a.account}),[e,n]=br(Tt),i=gl(_l(),()=>bn.get(t),{enabled:!!t&&!e,refetchOnWindowFocus:!1,refetchOnMount:!1});return $.useEffect(()=>{const a=i.data;!i.isSuccess||!a||n(a)},[i.status]),{findQuery:i,account:e}},Qa=vi();async function Wa(t){const e=await bn.get(t);return Qa.set(Tt,e),e}var qa=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(qa||{});const Ol={ALL:"*",CORE:"core:**",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:**"},El={EVENT_STATUS_CHANGED:"event:statusChanged"};var Za=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(Za||{}),Ha=(t=>(t.COMBO="Combo",t))(Ha||{}),Xa=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.DEV_LOCAL="dev:local",t.CUSTOMIZATION="customization",t))(Xa||{});const Al={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 At{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||Al,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,a){return a&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new At(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new At(this.logger,e)}}var te=new At;class Bt{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(i=>{this.observers[i]=this.observers[i]||[],this.observers[i].push(n)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(i=>i!==n)}}emit(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];this.observers[e]&&[].concat(this.observers[e]).forEach(s=>{s(...i)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(s=>{s.apply(s,[e,...i])})}}function Ve(){let t,e;const n=new Promise((i,a)=>{t=i,e=a});return n.resolve=t,n.reject=e,n}function ni(t){return t==null?"":""+t}function wl(t,e,n){t.forEach(i=>{e[i]&&(n[i]=e[i])})}function En(t,e,n){function i(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function a(){return!t||typeof t=="string"}const r=typeof e!="string"?[].concat(e):e.split(".");for(;r.length>1;){if(a())return{};const s=i(r.shift());!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={}}return a()?{}:{obj:t,k:i(r.shift())}}function ii(t,e,n){const{obj:i,k:a}=En(t,e,Object);i[a]=n}function Fl(t,e,n,i){const{obj:a,k:r}=En(t,e,Object);a[r]=a[r]||[],i&&(a[r]=a[r].concat(n)),i||a[r].push(n)}function wt(t,e){const{obj:n,k:i}=En(t,e);if(n)return n[i]}function Cl(t,e,n){const i=wt(t,n);return i!==void 0?i:wt(e,n)}function Ya(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]):Ya(t[i],e[i],n):t[i]=e[i]);return t}function be(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Rl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Tl(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>Rl[e]):t}const Dl=[" ",",","?","!",";"];function xl(t,e,n){e=e||"",n=n||"";const i=Dl.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;const a=new RegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`);let r=!a.test(t);if(!r){const s=t.indexOf(n);s>0&&!a.test(t.substring(0,s))&&(r=!0)}return r}function Ft(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 a=t;for(let r=0;r<i.length;++r){if(!a||typeof a[i[r]]=="string"&&r+1<i.length)return;if(a[i[r]]===void 0){let s=2,o=i.slice(r,r+s).join(n),l=a[o];for(;l===void 0&&i.length>r+s;)s++,o=i.slice(r,r+s).join(n),l=a[o];if(l===void 0)return;if(l===null)return null;if(e.endsWith(o)){if(typeof l=="string")return l;if(o&&typeof l[o]=="string")return l[o]}const u=i.slice(r+s).join(n);return u?Ft(l,u,n):void 0}a=a[i[r]]}return a}function Ct(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class ai extends Bt{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 a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const r=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let o=[e,n];i&&typeof i!="string"&&(o=o.concat(i)),i&&typeof i=="string"&&(o=o.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(o=e.split("."));const l=wt(this.data,o);return l||!s||typeof i!="string"?l:Ft(this.data&&this.data[e]&&this.data[e][n],i,r)}addResource(e,n,i,a){let r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=[e,n];i&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."),a=n,n=o[1]),this.addNamespaces(n),ii(this.data,o,a),r.silent||this.emit("added",e,n,i,a)}addResources(e,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const r in i)(typeof i[r]=="string"||Object.prototype.toString.apply(i[r])==="[object Array]")&&this.addResource(e,n,r,i[r],{silent:!0});a.silent||this.emit("added",e,n,i)}addResourceBundle(e,n,i,a,r){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,n];e.indexOf(".")>-1&&(o=e.split("."),a=i,i=n,n=o[1]),this.addNamespaces(n);let l=wt(this.data,o)||{};a?Ya(l,i,r):l={...l,...i},ii(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(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var er={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,a){return t.forEach(r=>{this.processors[r]&&(e=this.processors[r].process(e,n,i,a))}),e}};const ri={};class Rt extends Bt{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),wl(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=te.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 a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const s=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!xl(e,i,a);if(s&&!o){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:r};const u=e.split(i);(i!==a||i===a&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),e=u.join(a)}return typeof r=="string"&&(r=[r]),{key:e,namespaces:r}}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 a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,r=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 _=n.nsSeparator||this.options.nsSeparator;return a?{res:`${l}${_}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${_}${s}`}return a?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const f=this.resolve(e,n);let c=f&&f.res;const S=f&&f.usedKey||s,b=f&&f.exactUsedKey||s,v=Object.prototype.toString.apply(c),p=["[object Number]","[object Function]","[object RegExp]"],A=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&p.indexOf(v)<0&&!(typeof A=="string"&&v==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,c,{...n,ns:o}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(f.res=_,f.usedParams=this.getUsedParamsDetails(n),f):_}if(r){const _=v==="[object Array]",x=_?[]:{},L=_?b:S;for(const j in c)if(Object.prototype.hasOwnProperty.call(c,j)){const m=`${L}${r}${j}`;x[j]=this.translate(m,{...n,joinArrays:!1,ns:o}),x[j]===m&&(x[j]=c[j])}c=x}}else if(O&&typeof A=="string"&&v==="[object Array]")c=c.join(A),c&&(c=this.extendTranslation(c,e,n,i));else{let _=!1,x=!1;const L=n.count!==void 0&&typeof n.count!="string",j=Rt.hasDefaultValue(n),m=L?this.pluralResolver.getSuffix(u,n.count,n):"",h=n.ordinal&&L?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",k=n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(c)&&j&&(_=!0,c=k),this.isValidLookup(c)||(x=!0,c=s);const E=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:c,w=j&&k!==c&&this.options.updateMissing;if(x||_||w){if(this.logger.log(w?"updateKey":"missingKey",u,l,s,w?k:c),r){const C=this.resolve(s,{...n,keySeparator:!1});C&&C.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 N=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let C=0;C<F.length;C++)N.push(F[C]);else this.options.saveMissingTo==="all"?N=this.languageUtils.toResolveHierarchy(n.lng||this.language):N.push(n.lng||this.language);const U=(C,I,M)=>{const lt=j&&M!==c?M:E;this.options.missingKeyHandler?this.options.missingKeyHandler(C,l,I,lt,w,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(C,l,I,lt,w,n),this.emit("missingKey",C,l,I,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?N.forEach(C=>{this.pluralResolver.getSuffixes(C,n).forEach(I=>{U([C],s+I,n[`defaultValue${I}`]||k)})}):U(N,s,k))}c=this.extendTranslation(c,e,n,f,i),x&&c===s&&this.options.appendNamespaceToMissingKey&&(c=`${l}:${s}`),(x||_)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,_?c:void 0):c=this.options.parseMissingKeyHandler(c))}return a?(f.res=c,f.usedParams=this.getUsedParamsDetails(n),f):c}extendTranslation(e,n,i,a,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const u=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const c=e.match(this.interpolator.nestingRegexp);d=c&&c.length}let f=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),e=this.interpolator.interpolate(e,f,i.lng||this.language,i),u){const c=e.match(this.interpolator.nestingRegexp),S=c&&c.length;d<S&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&a&&a.res&&(i.lng=a.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var c=arguments.length,S=new Array(c),b=0;b<c;b++)S[b]=arguments[b];return r&&r[0]===S[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):s.translate(...S,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=er.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:a,...i}:i,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,a,r,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;a=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=n.count!==void 0&&typeof n.count!="string",S=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",v=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(p=>{this.isValidLookup(i)||(o=p,!ri[`${v[0]}-${p}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ri[`${v[0]}-${p}`]=!0,this.logger.warn(`key "${a}" for languages "${v.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!!!")),v.forEach(A=>{if(this.isValidLookup(i))return;s=A;const O=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(O,d,A,p,n);else{let _;c&&(_=this.pluralResolver.getSuffix(A,n.count,n));const x=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(O.push(d+_),n.ordinal&&_.indexOf(L)===0&&O.push(d+_.replace(L,this.options.pluralSeparator)),S&&O.push(d+x)),b){const j=`${d}${this.options.contextSeparator}${n.context}`;O.push(j),c&&(O.push(j+_),n.ordinal&&_.indexOf(L)===0&&O.push(j+_.replace(L,this.options.pluralSeparator)),S&&O.push(j+x))}}let D;for(;D=O.pop();)this.isValidLookup(i)||(r=D,i=this.getResource(A,p,D,n))}))})}),{res:i,usedKey:a,exactUsedKey:r,usedLng:s,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,i,a):this.resourceStore.getResource(e,n,i,a)}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 a=i?e.replace:e;if(i&&typeof e.count!="undefined"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!i){a={...a};for(const r of n)delete a[r]}return a}static hasDefaultValue(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 qt(t){return t.charAt(0).toUpperCase()+t.slice(1)}class si{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=te.create("languageUtils")}getScriptPartFromCode(e){if(e=Ct(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=Ct(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(a=>a.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=qt(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]=qt(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=qt(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 a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.forEach(i=>{if(n)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(r=>{if(r===a)return r;if(!(r.indexOf("-")<0&&a.indexOf("-")<0)&&r.indexOf(a)===0)return r})}),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),a=[],r=s=>{s&&(this.isSupportedCode(s)?a.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"&&r(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(e))):typeof e=="string"&&r(this.formatLanguageCode(e)),i.forEach(s=>{a.indexOf(s)<0&&r(this.formatLanguageCode(s))}),a}}let Pl=[{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}],Ll={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 Il=["v1","v2","v3"],Vl=["v4"],oi={zero:0,one:1,two:2,few:3,many:4,other:5};function jl(){const t={};return Pl.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:Ll[e.fc]}})}),t}class Ul{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=te.create("pluralResolver"),(!this.options.compatibilityJSON||Vl.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=jl()}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(Ct(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(a=>`${n}${a}`)}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((a,r)=>oi[a]-oi[r]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):i.numbers.map(a=>this.getSuffix(e,a,n)):[]}getSuffix(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,i);return a?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:this.getSuffixRetroCompatible(a,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const i=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let a=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const r=()=>this.options.prepend&&a.toString()?this.options.prepend+a.toString():a.toString();return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?`_plural_${a.toString()}`:r():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Il.includes(this.options.compatibilityJSON)}}function li(t,e,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,r=Cl(t,e,n);return!r&&a&&typeof n=="string"&&(r=Ft(t,n,i),r===void 0&&(r=Ft(e,n,i))),r}class Ml{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=te.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:Tl,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=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const i=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(i,"g")}interpolate(e,n,i,a){let r,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(b){return b.replace(/\$/g,"$$$$")}const d=b=>{if(b.indexOf(this.formatSeparator)<0){const O=li(n,l,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(O,void 0,i,{...a,...n,interpolationkey:b}):O}const v=b.split(this.formatSeparator),p=v.shift().trim(),A=v.join(this.formatSeparator).trim();return this.format(li(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure),A,i,{...a,...n,interpolationkey:p})};this.resetRegExp();const f=a&&a.missingInterpolationHandler||this.options.missingInterpolationHandler,c=a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>u(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?u(this.escape(b)):u(b)}].forEach(b=>{for(o=0;r=b.regex.exec(e);){const v=r[1].trim();if(s=d(v),s===void 0)if(typeof f=="function"){const A=f(e,r,a);s=typeof A=="string"?A:""}else if(a&&Object.prototype.hasOwnProperty.call(a,v))s="";else if(c){s=r[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=ni(s));const p=b.safeValue(s);if(e=e.replace(r[0],p),c?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=r[0].length):b.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,r,s;function o(l,u){const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const f=l.split(new RegExp(`${d}[ ]*{`));let c=`{${f[1]}`;l=f[0],c=this.interpolate(c,s);const S=c.match(/'/g),b=c.match(/"/g);(S&&S.length%2===0&&!b||b.length%2!==0)&&(c=c.replace(/'/g,'"'));try{s=JSON.parse(c),u&&(s={...u,...s})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,v),`${l}${d}${c}`}return delete s.defaultValue,l}for(;a=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(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const d=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=d.shift(),l=d,u=!0}if(r=n(o.call(this,a[1].trim(),s),s),r&&a[0]===e&&typeof r!="string")return r;typeof r!="string"&&(r=ni(r)),r||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),r=""),u&&(r=l.reduce((d,f)=>this.format(d,f,i.lng,{...i,interpolationkey:a[1].trim()}),r.trim())),e=e.replace(a[0],r),this.regexp.lastIndex=0}return e}}function Bl(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.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 _e(t){const e={};return function(i,a,r){const s=a+JSON.stringify(r);let o=e[s];return o||(o=t(Ct(a),r),e[s]=o),o(i)}}class $l{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=te.create("formatter"),this.options=e,this.formats={number:_e((n,i)=>{const a=new Intl.NumberFormat(n,{...i});return r=>a.format(r)}),currency:_e((n,i)=>{const a=new Intl.NumberFormat(n,{...i,style:"currency"});return r=>a.format(r)}),datetime:_e((n,i)=>{const a=new Intl.DateTimeFormat(n,{...i});return r=>a.format(r)}),relativetime:_e((n,i)=>{const a=new Intl.RelativeTimeFormat(n,{...i});return r=>a.format(r,i.range||"day")}),list:_e((n,i)=>{const a=new Intl.ListFormat(n,{...i});return r=>a.format(r)})},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()]=_e(n)}format(e,n,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((o,l)=>{const{formatName:u,formatOptions:d}=Bl(l);if(this.formats[u]){let f=o;try{const c=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},S=c.locale||c.lng||a.locale||a.lng||i;f=this.formats[u](o,S,{...d,...a,...c})}catch(c){this.logger.warn(c)}return f}else this.logger.warn(`there was no format function for ${u}`);return o},e)}}function zl(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class Gl extends Bt{constructor(e,n,i){let a=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=a,this.logger=te.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,a.backend,a)}queueLoad(e,n,i,a){const r={},s={},o={},l={};return e.forEach(u=>{let d=!0;n.forEach(f=>{const c=`${u}|${f}`;!i.reload&&this.store.hasResourceBundle(u,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?s[c]===void 0&&(s[c]=!0):(this.state[c]=1,d=!1,s[c]===void 0&&(s[c]=!0),r[c]===void 0&&(r[c]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(o[u]=!0)}),(Object.keys(r).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(r),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(e,n,i){const a=e.split("|"),r=a[0],s=a[1];n&&this.emit("failedLoading",r,s,n),i&&this.store.addResourceBundle(r,s,i),this.state[e]=n?-1:2;const o={};this.queue.forEach(l=>{Fl(l.loaded,[r],s),zl(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(f=>{o[u][f]===void 0&&(o[u][f]=!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 a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=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:a,wait:r,callback:s});return}this.readingCalls++;const o=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,i,a+1,r*2,s)},r);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]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const r=this.queueLoad(e,n,i,a);if(!r.toLoad.length)return r.pending.length||a(),null;r.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("|"),a=i[0],r=i[1];this.read(a,r,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${r} for language ${a} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${r} for language ${a}`,o),this.loaded(e,s,o)})}saveMissing(e,n,i,a,r){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:r},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(e,n,i,a,l):d=u(e,n,i,a),d&&typeof d.then=="function"?d.then(f=>o(null,f)).catch(o):o(null,d)}catch(d){o(d)}else u(e,n,i,a,o,l)}!e||!e[0]||this.store.addResource(e[0],n,i,a)}}}function ui(){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(a=>{n[a]=i[a]})}return n},interpolation:{escapeValue:!0,format:(t,e,n,i)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function di(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 ft(){}function Kl(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class qe extends Bt{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=di(e),this.services={},this.logger=te,this.modules={external:[]},Kl(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;typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=ui();this.options={...a,...this.options,...di(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function r(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?te.init(r(this.modules.logger),this.options):te.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl!="undefined"&&(d=$l);const f=new si(this.options);this.store=new ai(this.options.resources,this.options);const c=this.services;c.logger=te,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Ul(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=r(d),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Ml(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new Gl(r(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(S){for(var b=arguments.length,v=new Array(b>1?b-1:0),p=1;p<b;p++)v[p-1]=arguments[p];e.emit(S,...v)}),this.modules.languageDetector&&(c.languageDetector=r(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=r(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Rt(this.services,this.options),this.translator.on("*",function(S){for(var b=arguments.length,v=new Array(b>1?b-1:0),p=1;p<b;p++)v[p-1]=arguments[p];e.emit(S,...v)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,i||(i=ft),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=Ve(),u=()=>{const d=(f,c)=>{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(c),i(f,c)};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]:ft;const a=typeof e=="string"?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const r=[],s=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(u=>{u!=="cimode"&&r.indexOf(u)<0&&r.push(u)})};a?s(a):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(r,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,n,i){const a=Ve();return e||(e=this.languages),n||(n=this.options.ns),i||(i=ft),this.services.backendConnector.reload(e,n,r=>{a.resolve(),i(r)}),a}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"&&er.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 a=Ve();this.emit("languageChanging",e);const r=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,u)=>{u?(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),n&&n(l,function(){return i.t(...arguments)})},o=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||r(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{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),a}getFixedT(e,n,i){var a=this;const r=function(s,o){let l;if(typeof o!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];l=a.options.overloadTranslationOptionHandler([s,o].concat(d))}else l={...o};l.lng=l.lng||r.lng,l.lngs=l.lngs||r.lngs,l.ns=l.ns||r.ns,l.keyPrefix=l.keyPrefix||i||r.keyPrefix;const c=a.options.keySeparator||".";let S;return l.keyPrefix&&Array.isArray(s)?S=s.map(b=>`${l.keyPrefix}${c}${b}`):S=l.keyPrefix?`${l.keyPrefix}${c}${s}`:s,a.t(S,l)};return typeof e=="string"?r.lng=e:r.lngs=e,r.ns=n,r.keyPrefix=i,r}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],a=this.options?this.options.fallbackLng:!1,r=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)&&(!a||s(r,e)))}loadNamespaces(e,n){const i=Ve();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}loadLanguages(e,n){const i=Ve();typeof e=="string"&&(e=[e]);const a=this.options.preload||[],r=e.filter(s=>a.indexOf(s)<0);return r.length?(this.options.preload=a.concat(r),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 si(ui());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 qe(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ft;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},r=new qe(a);return(e.debug!==void 0||e.prefix!==void 0)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(o=>{r[o]=this[o]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},i&&(r.store=new ai(this.store.data,a),r.services.resourceStore=r.store),r.translator=new Rt(r.services,a),r.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];r.emit(o,...u)}),r.init(a,n),r.translator.options=a,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const G=qe.createInstance();G.createInstance=qe.createInstance;G.createInstance;G.dir;G.init;G.loadResources;G.reloadResources;G.use;G.changeLanguage;G.getFixedT;G.t;G.exists;G.setDefaultNamespace;G.hasLoadedNamespace;G.loadNamespaces;G.loadLanguages;function Jl(t){const e=Object.values(t);return Object.assign({},...e)}function Ql(t){return Object.entries(t).reduce((e,[n,i])=>{const a=Jl(i);return{...e,[n]:a}},{})}function Wl(t){const e=Ql(t);Object.entries(e).forEach(([n,i])=>{G.addResourceBundle(n,"translation",i,!0)})}function ql(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ze(t){"@babel/helpers - typeof";return Ze=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},Ze(t)}function Zl(t,e){if(Ze(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e||"default");if(Ze(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hl(t){var e=Zl(t,"string");return Ze(e)==="symbol"?e:String(e)}function ci(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,Hl(i.key),i)}}function Xl(t,e,n){return e&&ci(t.prototype,e),n&&ci(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var tr=[],Yl=tr.forEach,eu=tr.slice;function tu(t){return Yl.call(eu.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var fi=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,nu=function(e,n,i){var a=i||{};a.path=a.path||"/";var r=encodeURIComponent(n),s="".concat(e,"=").concat(r);if(a.maxAge>0){var o=a.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+="; Max-Age=".concat(Math.floor(o))}if(a.domain){if(!fi.test(a.domain))throw new TypeError("option domain is invalid");s+="; Domain=".concat(a.domain)}if(a.path){if(!fi.test(a.path))throw new TypeError("option path is invalid");s+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(s+="; HttpOnly"),a.secure&&(s+="; Secure"),a.sameSite){var l=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.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},mi={create:function(e,n,i,a){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(r.expires=new Date,r.expires.setTime(r.expires.getTime()+i*60*1e3)),a&&(r.domain=a),document.cookie=nu(e,encodeURIComponent(n),r)},read:function(e){for(var n="".concat(e,"="),i=document.cookie.split(";"),a=0;a<i.length;a++){for(var r=i[a];r.charAt(0)===" ";)r=r.substring(1,r.length);if(r.indexOf(n)===0)return r.substring(n.length,r.length)}return null},remove:function(e){this.create(e,"",-1)}},iu={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document!="undefined"){var i=mi.read(e.lookupCookie);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document!="undefined"&&mi.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},au={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 a=i.substring(1),r=a.split("&"),s=0;s<r.length;s++){var o=r[s].indexOf("=");if(o>0){var l=r[s].substring(0,o);l===e.lookupQuerystring&&(n=r[s].substring(o+1))}}}return n}},je=null,hi=function(){if(je!==null)return je;try{je=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{je=!1}return je},ru={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&hi()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&hi()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},Ue=null,pi=function(){if(Ue!==null)return Ue;try{Ue=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Ue=!1}return Ue},su={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&pi()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(n=i)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&pi()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},ou={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}},lu={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}},uu={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}},du={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 cu(){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 nr=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ql(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return Xl(t,[{key:"init",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=tu(i,this.options||{},cu()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(r){return r.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(iu),this.addDetector(au),this.addDetector(ru),this.addDetector(su),this.addDetector(ou),this.addDetector(lu),this.addDetector(uu),this.addDetector(du)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var i=this;n||(n=this.options.order);var a=[];return n.forEach(function(r){if(i.detectors[r]){var s=i.detectors[r].lookup(i.options);s&&typeof s=="string"&&(s=[s]),s&&(a=a.concat(s))}}),a=a.map(function(r){return i.options.convertDetectedLanguage(r)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(n,i){var a=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||i.forEach(function(r){a.detectors[r]&&a.detectors[r].cacheUserLanguage(n,a.options)}))}}]),t}();nr.type="languageDetector";const fu=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mu={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},hu=t=>mu[t],pu=t=>t.replace(fu,hu);let gi={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pu};function gu(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};gi={...gi,...t}}const vu={type:"3rdParty",init(t){gu(t.options.react)}},ku=G.use(vu).use(nr).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(t,e,n)=>{if(e){const[i,...a]=e.split(",").map(r=>r.trim());if(i==="number")return new Intl.NumberFormat(n).format(t);if(i==="date")return new Intl.DateTimeFormat(n).format(t);if(i==="currency")return new Intl.NumberFormat(n,{style:"currency",currency:a[0]||"USD",currencyDisplay:"narrowSymbol"}).format(t).replace("$","").trim()}return t}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}});var ir=(t=>(t.Created="CREATED",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(ir||{}),ar=(t=>(t.Add="add",t.Remove="remove",t))(ar||{}),rr=(t=>(t.Active="active",t.Inactive="inactive",t))(rr||{});const yu={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"}}]}}]}}]}}]},Su={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"}}]}}]}}]}}]},bu={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"}}]}}]}}]}}]},_u={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"}}]}}]}}]}}]},Nu={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"}}]}}]}}]}}]},Ou={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"}}]}}]}}]}}]},Eu={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"}}]}}]}}]}}]},Au={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"}}]}}]}}]}}]},wu={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"}}]}}]}}]}}]},Fu={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"}}]}}]}}]}}]},Cu={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"}}]}}]}}]}}]},Ru={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"}}]}}]}}]}}]},Tu={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:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Du={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"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"}}]}}]}}]}}]},xu={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"}}]}}]}}]}}]},Pu={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"}}]}}]}}]}}]},Lu={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"}}]}}]}}]}}]},Iu={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"}}]}}]}}]}}]},Vu={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"}}]}}]}}]}}]},ju={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"}}]}}]}}]}}]},Uu={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"}}]}}]}}]}}]},Mu={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"}}]}}]}}]}}]},Bu={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"}}]}}]}}]}}]},$u={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"}}]}}]}}]}}]},zu={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"}}]}}]}}]}}]},Gu={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"}}]}}]}}]}}]}}]},Ku={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"}}]}}]}}]}}]},Ju={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"}}]}}]}}]}}]},Qu=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:yu,AppendProductsToSnackVideoDocument:ju,BlockUserDocument:Fu,ChangeAccountUsernameDocument:Cu,CreateSnackVideoBatchDocument:Uu,DeleteAllCustomizationDocument:Pu,DeleteChatMessageDocument:Ru,DeleteCollectionDocument:Su,DeleteRelationshipWithSnackVideoDocument:Mu,DeleteSnackVideoDocument:Bu,EventStatus:ir,FindByProductSnackVideoDocument:Ju,FindCollectionDocument:bu,FindManySnackVideosDocument:$u,FindMinimalEventDocument:Au,GetAllChatMessageDocument:Tu,GetAllCollectionsDocument:_u,GetAllCustomizationDocument:Lu,GetAllSnackVideosDocument:zu,GetChatRoomTokenDocument:Du,GetSnackVideoRelationshipsDocument:Gu,GetTimeLineDocument:Vu,ManageCollectionProductDocument:Nu,Methods:ar,PinChatMessageDocument:xu,SearchCollectionsDocument:Ou,SearchMinimalEventsDocument:wu,SearchSnackVideosDocument:Ku,Status:rr,UpdateCollectionDocument:Eu,UpdateCustomizationDocument:Iu},Symbol.toStringTag,{value:"Module"}));function Wu(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=Sn;exports.AccountContractTypes=Ia;exports.AccountInvalidError=ho;exports.AccountPlanDescriptionTypes=ja;exports.AccountRestRepository=Ma;exports.AccountService=Ba;exports.AccountSubscriptionTypes=Va;exports.AccountTypes=yn;exports.AggregateRoot=Pa;exports.ApiGraphqlTypes=Qu;exports.BaseMobxStore=No;exports.BroadcastChannelEventBus=Fa;exports.ConfigManager=Ea;exports.DomainError=st;exports.EventBusWildcards=Ol;exports.EventNames=El;exports.GlobalPageSectionTypes=Ua;exports.InvalidNizzaGlobalObjectError=Oa;exports.LanguageTypes=Za;exports.NizzaAccount=Mt;exports.NizzaEventStatus=qa;exports.NizzaProductRequestOriginTypes=Xa;exports.NizzaStore=Ot;exports.NizzaVariationTypes=Ha;exports.ResourceNotFoundError=_a;exports.StoreProvider=vl;exports.UnexpectedError=Na;exports.ValueObject=Oo;exports.accountAtom=Tt;exports.accountService=bn;exports.apiCall=wr;exports.coreLogger=Ae;exports.createAggregateRoot=La;exports.createLogger=Ta;exports.createStore=Wu;exports.customFetch=sn;exports.downloadFile=Fr;exports.fileOrigin=So;exports.getAccount=Wa;exports.getClientTimeZone=_o;exports.getLogger=xa;exports.getStore=yl;exports.globalAtomStore=Qa;exports.i18n=ku;exports.initializeLogger=kn;exports.jsDownload=yi;exports.logger=bo;exports.nizza=vn;exports.registerLogger=Da;exports.registerTranslations=Wl;exports.searchParams=yo;exports.shortId=wa;exports.useAccount=Nl;exports.useAutorun=Sl;exports.useReaction=bl;exports.useSelect=Ja;exports.useStore=kl;exports.validateRequiredProps=Ee;
32
+ //# sourceMappingURL=index.cjs.map