@nizza/core 0.4.5-alpha.0 → 0.4.5-alpha.2

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 ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";var Sn=Object.defineProperty;var yn=(n,e,t)=>e in n?Sn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var D=(n,e,t)=>(yn(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),Nn=require("react/jsx-runtime");function bn(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const j=bn(_);let Fn=0;function En(n,e){const t=`atom${++Fn}`,i={toString:()=>t};return typeof n=="function"?i.read=n:(i.init=n,i.read=function(a){return a(this)},i.write=function(a,s,r){return s(this,typeof r=="function"?r(a(this)):r)}),e&&(i.write=e),i}const Be=n=>"init"in n,Ge=n=>!!n.write,ce=new WeakMap,On=(n,e)=>{ce.set(n,e),n.catch(()=>{}).finally(()=>ce.delete(n))},Je=(n,e)=>{const t=ce.get(n);t&&(ce.delete(n),t(e))},Qe=(n,e)=>{n.status="fulfilled",n.value=e},We=(n,e)=>{n.status="rejected",n.reason=e},wn=n=>typeof(n==null?void 0:n.then)=="function",Z=(n,e)=>!!n&&"v"in n&&"v"in e&&Object.is(n.v,e.v),Ke=(n,e)=>!!n&&"e"in n&&"e"in e&&Object.is(n.e,e.e),B=n=>!!n&&"v"in n&&n.v instanceof Promise,Rn=(n,e)=>"v"in n&&"v"in e&&n.v.orig&&n.v.orig===e.v.orig,oe=n=>{if("e"in n)throw n.e;return n.v},Ot=()=>{const n=new WeakMap,e=new WeakMap,t=new Map;let i,a;const s=p=>n.get(p),r=(p,m)=>{const g=n.get(p);if(n.set(p,m),t.has(p)||t.set(p,g),B(g)){const h="v"in m?m.v instanceof Promise?m.v:Promise.resolve(m.v):Promise.reject(m.e);g.v!==h&&Je(g.v,h)}},o=(p,m,g)=>{const h=new Map;let N=!1;g.forEach((O,b)=>{!O&&b===p&&(O=m),O&&(h.set(b,O),m.d.get(b)!==O&&(N=!0))}),(N||m.d.size!==h.size)&&(m.d=h)},d=(p,m,g)=>{const h=s(p),N={d:(h==null?void 0:h.d)||new Map,v:m};if(g&&o(p,N,g),Z(h,N)&&h.d===N.d)return h;if(B(h)&&B(N)&&Rn(h,N)){if(h.d===N.d)return h;N.v=h.v}return r(p,N),N},l=(p,m,g,h)=>{if(wn(m)){let N;const O=()=>{const R=s(p);if(!B(R)||R.v!==b)return;const T=d(p,b,g);e.has(p)&&R.d!==T.d&&x(p,T,R.d)},b=new Promise((R,T)=>{let C=!1;m.then(A=>{C||(C=!0,Qe(b,A),R(A),O())},A=>{C||(C=!0,We(b,A),T(A),O())}),N=A=>{C||(C=!0,A.then(V=>Qe(b,V),V=>We(b,V)),R(A))}});return b.orig=m,b.status="pending",On(b,R=>{R&&N(R),h==null||h()}),d(p,b,g)}return d(p,m,g)},u=(p,m,g)=>{const h=s(p),N={d:(h==null?void 0:h.d)||new Map,e:m};return g&&o(p,N,g),Ke(h,N)&&h.d===N.d?h:(r(p,N),N)},f=(p,m)=>{const g=s(p);if(!m&&g&&(e.has(p)||Array.from(g.d).every(([C,A])=>{if(C===p)return!0;const V=f(C);return V===A||Z(V,A)})))return g;const h=new Map;let N=!0;const O=C=>{if(C===p){const V=s(C);if(V)return h.set(C,V),oe(V);if(Be(C))return h.set(C,void 0),C.init;throw new Error("no atom init")}const A=f(C);return h.set(C,A),oe(A)};let b,R;const T={get signal(){return b||(b=new AbortController),b.signal},get setSelf(){return!R&&Ge(p)&&(R=(...C)=>{if(!N)return E(p,...C)}),R}};try{const C=p.read(O,T);return l(p,C,h,()=>b==null?void 0:b.abort())}catch(C){return u(p,C,h)}finally{N=!1}},c=p=>oe(f(p)),y=p=>{let m=e.get(p);return m||(m=L(p)),m},v=(p,m)=>!m.l.size&&(!m.t.size||m.t.size===1&&m.t.has(p)),k=p=>{const m=e.get(p);m&&v(p,m)&&w(p)},S=p=>{const m=new Map,g=new WeakMap,h=b=>{var R;const T=new Set((R=e.get(b))==null?void 0:R.t);return t.forEach((C,A)=>{var V;(V=s(A))!=null&&V.d.has(b)&&T.add(A)}),T},N=b=>{h(b).forEach(R=>{R!==b&&(m.set(R,(m.get(R)||new Set).add(b)),g.set(R,(g.get(R)||0)+1),N(R))})};N(p);const O=b=>{h(b).forEach(R=>{var T;if(R!==b){let C=g.get(R);if(C&&g.set(R,--C),!C){let A=!!((T=m.get(R))!=null&&T.size);if(A){const V=s(R),re=f(R,!0);A=!Z(V,re)}A||m.forEach(V=>V.delete(R))}O(R)}})};O(p)},F=(p,...m)=>{let g=!0;const h=b=>oe(f(b)),N=(b,...R)=>{let T;if(b===p){if(!Be(b))throw new Error("atom not writable");const C=s(b),A=l(b,R[0]);Z(C,A)||S(b)}else T=F(b,...R);if(!g){const C=I()}return T},O=p.write(h,N,...m);return g=!1,O},E=(p,...m)=>{const g=F(p,...m),h=I();return g},L=(p,m,g)=>{var h;const N=g||[];(h=s(p))==null||h.d.forEach((b,R)=>{const T=e.get(R);T?T.t.add(p):R!==p&&L(R,p,N)}),f(p);const O={t:new Set(m&&[m]),l:new Set};if(e.set(p,O),Ge(p)&&p.onMount){const{onMount:b}=p;N.push(()=>{const R=b((...T)=>E(p,...T));R&&(O.u=R)})}return g||N.forEach(b=>b()),O},w=p=>{var m;const g=(m=e.get(p))==null?void 0:m.u;g&&g(),e.delete(p);const h=s(p);h&&(B(h)&&Je(h.v),h.d.forEach((N,O)=>{if(O!==p){const b=e.get(O);b&&(b.t.delete(p),v(O,b)&&w(O))}}))},x=(p,m,g)=>{const h=new Set(m.d.keys());g==null||g.forEach((N,O)=>{if(h.has(O)){h.delete(O);return}const b=e.get(O);b&&(b.t.delete(p),v(O,b)&&w(O))}),h.forEach(N=>{const O=e.get(N);O?O.t.add(p):e.has(p)&&L(N,p)})},I=()=>{let p;for(;t.size;){const m=Array.from(t);t.clear(),m.forEach(([g,h])=>{const N=s(g);if(N){const O=e.get(g);O&&N.d!==(h==null?void 0:h.d)&&x(g,N,h==null?void 0:h.d),O&&!(!B(h)&&(Z(h,N)||Ke(h,N)))&&O.l.forEach(b=>b())}})}};return{get:c,set:E,sub:(p,m)=>{const g=y(p),h=I(),N=g.l;return N.add(m),()=>{N.delete(m),k(p)}}}};let Ne;const Cn=()=>(Ne||(Ne=Ot()),Ne),Tn=_.createContext(void 0),wt=n=>{const e=_.useContext(Tn);return(n==null?void 0:n.store)||e||Cn()},Dn=n=>typeof(n==null?void 0:n.then)=="function",An=_.use||(n=>{if(n.status==="pending")throw n;if(n.status==="fulfilled")return n.value;throw n.status==="rejected"?n.reason:(n.status="pending",n.then(e=>{n.status="fulfilled",n.value=e},e=>{n.status="rejected",n.reason=e}),n)});function Ln(n,e){const t=wt(e),[[i,a,s],r]=_.useReducer(l=>{const u=t.get(n);return Object.is(l[0],u)&&l[1]===t&&l[2]===n?l:[u,t,n]},void 0,()=>[t.get(n),t,n]);let o=i;(a!==t||s!==n)&&(r(),o=t.get(n));const d=e==null?void 0:e.delay;return _.useEffect(()=>{const l=t.sub(n,()=>{if(typeof d=="number"){setTimeout(r,d);return}r()});return r(),l},[t,n,d]),_.useDebugValue(o),Dn(o)?An(o):o}function xn(n,e){const t=wt(e);return _.useCallback((...a)=>t.set(n,...a),[t,n])}function Pn(n,e){return[Ln(n,e),xn(n,e)]}const ve=En(null);ve.debugLabel="accountAtom";const{NZ_AWS_REGION:In,NZ_BACKOFFICE_BACK_URL:Vn,NZ_CORE_SERVICES_GRAPHQL_URL:_n,NZ_CORE_SERVICES_REST_URL:Un}={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},jn={AWS:{region:In,cognito:{userPoolId:"us-east-1_knSlGEmJ0",userPoolWebClientId:"3hmbfhf7nl3kq20qr9i5lihf1p"}},apiUrls:{restV1:Vn||"https://pabprg32bj.execute-api.us-east-1.amazonaws.com",restV2:Un||"https://core-services-dev.nizza.com/api",graphql:_n||"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 De(n){const{url:e,method:t="GET",body:i,raw:a=!1,contentTypeJson:s=!0,timeout:r,...o}=n,d=s&&!n.headers?new Headers({"content-type":"application/json"}):n.headers;try{const l=new AbortController,{signal:u}=l;let f;const c=fetch(e,{method:t,headers:d,body:i,signal:u,...o});r&&(f=setTimeout(()=>{l.abort()},r));const y=await c;if(a)return y;const v=await y.json();if(clearTimeout(f),!y.ok){const k=v?JSON.stringify(v):y.statusText;throw new Error(k)}return v}catch(l){throw console.error("[CustomFetch] ",l),l}}const Mn=n=>De({...n,contentTypeJson:!1,raw:!1});function $n(n,e,t){fetch(e).then(i=>i.blob()).then(i=>Rt(i,`${n}.${t}`))}const Rt=(n,e,t)=>{const i=[n],a=new Blob(i,{type:t!=null?t:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(a,e);const s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(a):window.webkitURL.createObjectURL(a),r=document.createElement("a");return r.style.display="none",r.href=s,r.setAttribute("download",e),typeof r.download=="undefined"&&r.setAttribute("target","_blank"),document.body.appendChild(r),r.click(),setTimeout(()=>{document.body.removeChild(r),window.URL.revokeObjectURL(s)},200)};var Ct=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ae(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Tt={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.prefix=t(e)})(Ct,function(e){var t=function(u){for(var f=1,c=arguments.length,y;f<c;f++)for(y in arguments[f])Object.prototype.hasOwnProperty.call(arguments[f],y)&&(u[y]=arguments[f][y]);return u},i={template:"[%t] %l:",levelFormatter:function(u){return u.toUpperCase()},nameFormatter:function(u){return u||"root"},timestampFormatter:function(u){return u.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},a,s={},r=function(u){if(!u||!u.getLogger)throw new TypeError("Argument is not a root logger");a=u},o=function(u,f){if(!u||!u.setLevel)throw new TypeError("Argument is not a logger");var c=u.methodFactory,y=u.name||"",v=s[y]||s[""]||i;function k(S,F,E){var L=c(S,F,E),w=s[E]||s[""],x=w.template.indexOf("%t")!==-1,I=w.template.indexOf("%l")!==-1,P=w.template.indexOf("%n")!==-1;return function(){for(var p="",m=arguments.length,g=Array(m),h=0;h<m;h++)g[h]=arguments[h];if(y||!s[E]){var N=w.timestampFormatter(new Date),O=w.levelFormatter(S),b=w.nameFormatter(E);w.format?p+=w.format(O,b,N):(p+=w.template,x&&(p=p.replace(/%t/,N)),I&&(p=p.replace(/%l/,O)),P&&(p=p.replace(/%n/,b))),g.length&&typeof g[0]=="string"?g[0]=p+" "+g[0]:g.unshift(p)}L.apply(void 0,g)}}return s[y]||(u.methodFactory=k),f=f||{},f.template&&(f.format=void 0),s[y]=t({},v,f),u.setLevel(u.getLevel()),a||u.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"),u},d={reg:r,apply:o},l;return e&&(l=e.prefix,d.noConflict=function(){return e.prefix===d&&(e.prefix=l),d}),d})})(Tt);var zn=Tt.exports;const Dt=Ae(zn);var At={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.log=t()})(Ct,function(){var e=function(){},t="undefined",i=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),a=["trace","debug","info","warn","error"];function s(k,S){var F=k[S];if(typeof F.bind=="function")return F.bind(k);try{return Function.prototype.bind.call(F,k)}catch{return function(){return Function.prototype.apply.apply(F,[k,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(k){return k==="debug"&&(k="log"),typeof console===t?!1:k==="trace"&&i?r:console[k]!==void 0?s(console,k):console.log!==void 0?s(console,"log"):e}function d(k,S){for(var F=0;F<a.length;F++){var E=a[F];this[E]=F<k?e:this.methodFactory(E,k,S)}this.log=this.debug}function l(k,S,F){return function(){typeof console!==t&&(d.call(this,S,F),this[k].apply(this,arguments))}}function u(k,S,F){return o(k)||l.apply(this,arguments)}function f(k,S,F){var E=this,L;S=S==null?"WARN":S;var w="loglevel";typeof k=="string"?w+=":"+k:typeof k=="symbol"&&(w=void 0);function x(m){var g=(a[m]||"silent").toUpperCase();if(!(typeof window===t||!w)){try{window.localStorage[w]=g;return}catch{}try{window.document.cookie=encodeURIComponent(w)+"="+g+";"}catch{}}}function I(){var m;if(!(typeof window===t||!w)){try{m=window.localStorage[w]}catch{}if(typeof m===t)try{var g=window.document.cookie,h=g.indexOf(encodeURIComponent(w)+"=");h!==-1&&(m=/^([^;]+)/.exec(g.slice(h))[1])}catch{}return E.levels[m]===void 0&&(m=void 0),m}}function P(){if(!(typeof window===t||!w)){try{window.localStorage.removeItem(w);return}catch{}try{window.document.cookie=encodeURIComponent(w)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}E.name=k,E.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},E.methodFactory=F||u,E.getLevel=function(){return L},E.setLevel=function(m,g){if(typeof m=="string"&&E.levels[m.toUpperCase()]!==void 0&&(m=E.levels[m.toUpperCase()]),typeof m=="number"&&m>=0&&m<=E.levels.SILENT){if(L=m,g!==!1&&x(m),d.call(E,m,k),typeof console===t&&m<E.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+m},E.setDefaultLevel=function(m){S=m,I()||E.setLevel(m,!1)},E.resetLevel=function(){E.setLevel(S,!1),P()},E.enableAll=function(m){E.setLevel(E.levels.TRACE,m)},E.disableAll=function(m){E.setLevel(E.levels.SILENT,m)};var p=I();p==null&&(p=S),E.setLevel(p,!1)}var c=new f,y={};c.getLogger=function(S){if(typeof S!="symbol"&&typeof S!="string"||S==="")throw new TypeError("You must supply a name when creating a logger.");var F=y[S];return F||(F=y[S]=new f(S,c.getLevel(),c.methodFactory)),F};var v=typeof window!==t?window.log:void 0;return c.noConflict=function(){return typeof window!==t&&window.log===c&&(window.log=v),c},c.getLoggers=function(){return y},c.default=c,c})})(At);var Bn=At.exports;const Gn=Ae(Bn),Jn=Symbol(),Le=Symbol(),q="a",de="w";let Qn=(n,e)=>new Proxy(n,e);const Oe=Object.getPrototypeOf,we=new WeakMap,Lt=n=>n&&(we.has(n)?we.get(n):Oe(n)===Object.prototype||Oe(n)===Array.prototype),Ze=n=>typeof n=="object"&&n!==null,Wn=n=>{if(Array.isArray(n))return Array.from(n);const e=Object.getOwnPropertyDescriptors(n);return Object.values(e).forEach(t=>{t.configurable=!0}),Object.create(Oe(n),e)},xt=n=>n[Le]||n,Pt=(n,e,t,i)=>{if(!Lt(n))return n;let a=i&&i.get(n);if(!a){const d=xt(n);a=(l=>Object.values(Object.getOwnPropertyDescriptors(l)).some(u=>!u.configurable&&!u.writable))(d)?[d,Wn(d)]:[d],i==null||i.set(n,a)}const[s,r]=a;let o=t&&t.get(s);return o&&o[1].f===!!r||(o=((d,l)=>{const u={f:l};let f=!1;const c=(v,k)=>{if(!f){let S=u[q].get(d);if(S||(S={},u[q].set(d,S)),v===de)S[de]=!0;else{let F=S[v];F||(F=new Set,S[v]=F),F.add(k)}}},y={get:(v,k)=>k===Le?d:(c("k",k),Pt(Reflect.get(v,k),u[q],u.c,u.t)),has:(v,k)=>k===Jn?(f=!0,u[q].delete(d),!0):(c("h",k),Reflect.has(v,k)),getOwnPropertyDescriptor:(v,k)=>(c("o",k),Reflect.getOwnPropertyDescriptor(v,k)),ownKeys:v=>(c(de),Reflect.ownKeys(v))};return l&&(y.set=y.deleteProperty=()=>!1),[y,u]})(s,!!r),o[1].p=Qn(r||s,o[0]),t&&t.set(s,o)),o[1][q]=e,o[1].c=t,o[1].t=i,o[1].p},It=(n,e,t,i)=>{if(Object.is(n,e))return!1;if(!Ze(n)||!Ze(e))return!0;const a=t.get(xt(n));if(!a)return!0;if(i){const r=i.get(n);if(r&&r.n===e)return r.g;i.set(n,{n:e,g:!1})}let s=null;try{for(const r of a.h||[])if(s=Reflect.has(n,r)!==Reflect.has(e,r),s)return s;if(a[de]===!0){if(s=((r,o)=>{const d=Reflect.ownKeys(r),l=Reflect.ownKeys(o);return d.length!==l.length||d.some((u,f)=>u!==l[f])})(n,e),s)return s}else for(const r of a.o||[])if(s=!!Reflect.getOwnPropertyDescriptor(n,r)!=!!Reflect.getOwnPropertyDescriptor(e,r),s)return s;for(const r of a.k||[])if(s=It(n[r],e[r],t,i),s)return s;return s===null&&(s=!0),s}finally{i&&i.set(n,{n:e,g:s})}},Kn=n=>Lt(n)&&n[Le]||null,qe=(n,e=!0)=>{we.set(n,e)};const be=n=>typeof n=="object"&&n!==null,$=new WeakMap,ee=new WeakSet,Zn=(n=Object.is,e=(l,u)=>new Proxy(l,u),t=l=>be(l)&&!ee.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),i=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},a=new WeakMap,s=(l,u,f=i)=>{const c=a.get(l);if((c==null?void 0:c[0])===u)return c[1];const y=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return qe(y,!0),a.set(l,[u,y]),Reflect.ownKeys(l).forEach(v=>{if(Object.getOwnPropertyDescriptor(y,v))return;const k=Reflect.get(l,v),{enumerable:S}=Reflect.getOwnPropertyDescriptor(l,v),F={value:k,enumerable:S,configurable:!0};if(ee.has(k))qe(k,!1);else if(k instanceof Promise)delete F.value,F.get=()=>f(k);else if($.has(k)){const[E,L]=$.get(k);F.value=s(E,L(),f)}Object.defineProperty(y,v,F)}),Object.preventExtensions(y)},r=new WeakMap,o=[1,1],d=l=>{if(!be(l))throw new Error("object required");const u=r.get(l);if(u)return u;let f=o[0];const c=new Set,y=(m,g=++o[0])=>{f!==g&&(f=g,c.forEach(h=>h(m,g)))};let v=o[1];const k=(m=++o[1])=>(v!==m&&!c.size&&(v=m,F.forEach(([g])=>{const h=g[1](m);h>f&&(f=h)})),f),S=m=>(g,h)=>{const N=[...g];N[1]=[m,...N[1]],y(N,h)},F=new Map,E=(m,g)=>{if(c.size){const h=g[3](S(m));F.set(m,[g,h])}else F.set(m,[g])},L=m=>{var g;const h=F.get(m);h&&(F.delete(m),(g=h[1])==null||g.call(h))},w=m=>(c.add(m),c.size===1&&F.forEach(([h,N],O)=>{const b=h[3](S(O));F.set(O,[h,b])}),()=>{c.delete(m),c.size===0&&F.forEach(([h,N],O)=>{N&&(N(),F.set(O,[h]))})}),x=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),P=e(x,{deleteProperty(m,g){const h=Reflect.get(m,g);L(g);const N=Reflect.deleteProperty(m,g);return N&&y(["delete",[g],h]),N},set(m,g,h,N){const O=Reflect.has(m,g),b=Reflect.get(m,g,N);if(O&&(n(b,h)||r.has(h)&&n(b,r.get(h))))return!0;L(g),be(h)&&(h=Kn(h)||h);let R=h;if(h instanceof Promise)h.then(T=>{h.status="fulfilled",h.value=T,y(["resolve",[g],T])}).catch(T=>{h.status="rejected",h.reason=T,y(["reject",[g],T])});else{!$.has(h)&&t(h)&&(R=d(h));const T=!ee.has(R)&&$.get(R);T&&E(g,T)}return Reflect.set(m,g,R,N),y(["set",[g],h,b]),!0}});r.set(l,P);const p=[x,k,s,w];return $.set(P,p),Reflect.ownKeys(l).forEach(m=>{const g=Object.getOwnPropertyDescriptor(l,m);"value"in g&&(P[m]=l[m],delete g.value,delete g.writable),Object.defineProperty(x,m,g)}),P})=>[d,$,ee,n,e,t,i,a,s,r,o],[qn]=Zn();function Xn(n={}){return qn(n)}function Hn(n,e,t){const i=$.get(n);let a;const s=[],r=i[3];let o=!1;const l=r(u=>{if(s.push(u),t){e(s.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(s.splice(0))}))});return o=!0,()=>{o=!1,l()}}function Xe(n,e){const t=$.get(n),[i,a,s]=t;return s(i,a(),e)}function Vt(n){return ee.add(n),n}var _t={exports:{}},Ut={};/**
2
+ * @license React
3
+ * use-sync-external-store-shim.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var K=_;function Yn(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var ei=typeof Object.is=="function"?Object.is:Yn,ti=K.useState,ni=K.useEffect,ii=K.useLayoutEffect,ai=K.useDebugValue;function si(n,e){var t=e(),i=ti({inst:{value:t,getSnapshot:e}}),a=i[0].inst,s=i[1];return ii(function(){a.value=t,a.getSnapshot=e,Fe(a)&&s({inst:a})},[n,t,e]),ni(function(){return Fe(a)&&s({inst:a}),n(function(){Fe(a)&&s({inst:a})})},[n]),ai(t),t}function Fe(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!ei(n,t)}catch{return!0}}function ri(n,e){return e()}var oi=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?ri:si;Ut.useSyncExternalStore=K.useSyncExternalStore!==void 0?K.useSyncExternalStore:oi;_t.exports=Ut;var jt=_t.exports;const li=Ae(jt),{use:He}=_,{useSyncExternalStore:di}=li;const ui=new WeakMap;function ci(n,e){const t=e==null?void 0:e.sync,i=_.useRef(),a=_.useRef();let s=!0;const r=di(_.useCallback(l=>{const u=Hn(n,l,t);return l(),u},[n,t]),()=>{const l=Xe(n,He);try{if(!s&&i.current&&a.current&&!It(i.current,l,a.current,new WeakMap))return i.current}catch{}return l},()=>Xe(n,He));s=!1;const o=new WeakMap;_.useEffect(()=>{i.current=r,a.current=o});const d=_.useMemo(()=>new WeakMap,[]);return Pt(r,o,d,ui)}class mi{constructor(){D(this,"channel");D(this,"listeners",new Map);D(this,"eventQueue",new Map);try{this.channel=new BroadcastChannel("nizza"),this.channel.onmessage=e=>this.handleMessage(e),this.channel.onmessageerror=e=>W.error("NizzaBroadcastChannel:",e)}catch(e){throw W.error("Failed to create NizzaBroadcastChannel:",e),e}}on(e,t){return this.subscribeToEvent(e,t),{off:()=>this.unsubscribeFromEvent(e,t)}}emit(e,t,i={}){this.emitEvent(e,t,i)}handleMessage(e){const t=e.data,{name:i}=t;for(const[a,s]of this.listeners.entries())this.matchWildcard(a,i)&&s.forEach(r=>r({...t,wildcard:a}))}subscribeToEvent(e,t){if(typeof e!="string"||typeof t!="function"){const i=new Error("Invalid arguments");throw W.error(i),i}for(const[i,a]of this.listeners.entries())if(this.matchWildcard(i,e)){a.add(t);const s=this.eventQueue.get(i);s&&(s.forEach(r=>{t({...r,wildcard:i})}),this.eventQueue.delete(i));return}this.listeners.set(e,new Set([t]))}emitEvent(e,t,i){if(typeof e!="string"){const r=new Error("Invalid arguments");throw W.error(r),r}const a={name:e,data:t,attrs:i},s=Array.from(this.getMatchingListeners(e));if(s.length)for(const[r,o]of s)o({...a,wildcard:r});else this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(a);this.channel.postMessage(a)}*getMatchingListeners(e){for(const[t,i]of this.listeners.entries())if(this.matchWildcard(t,e))for(const a of i)yield[t,a]}unsubscribeFromEvent(e,t){if(this.listeners.has(e)){const i=this.listeners.get(e);i.delete(t),i.size===0&&this.listeners.delete(e)}}matchWildcard(e,t){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*");return new RegExp(`^${i}$`).test(t)}}let fi=(n=21)=>crypto.getRandomValues(new Uint8Array(n)).reduce((e,t)=>(t&=63,t<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"");const Mt=(n=8)=>fi(n),pi=n=>{const e=Object.entries(n).reduce((t,[i,a])=>a!==void 0?`${t}${t?"&":""}${i}=${a}`:t,"");return e?`?${e}`:""};function hi(){const n=new Error().stack.split(`
10
+ `);return n.length<3?"":n[2].trim().substring(3)}const z=Xn({config:null,get accountName(){var n;return(n=this.config)==null?void 0:n.account},get ok(){return!!this.account}}),gi=async n=>{var e;try{if(z.config=n,((e=z.account)==null?void 0:e.account)!==n.account){const t=await on(n.account);z.account=t}if(n.getProductDataSource){const t=await n.getProductDataSource();z.productDataSource=Vt(t)}}catch(t){console.error("Error configuring NizzaStore:",t)}},ki=n=>{z.productDataSource=Vt(n)},Ye=()=>({log:Gn,state:z,configure:gi,setProductDataSource:ki,instanceId:Mt(),eventBus:new mi,get account(){return z.account},get productDataSource(){return z.productDataSource}}),vi=()=>{if(typeof window!="undefined"){if(!window.nizza){const n=Ye();window.nizza=n,window.nz=n}return window.nizza}return Ye()},xe=vi();function Q(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function ue(n){return function e(t){return arguments.length===0||Q(t)?e:n.apply(this,arguments)}}function Pe(n){return function e(t,i){switch(arguments.length){case 0:return e;case 1:return Q(t)?e:ue(function(a){return n(t,a)});default:return Q(t)&&Q(i)?e:Q(t)?ue(function(a){return n(a,i)}):Q(i)?ue(function(a){return n(t,a)}):n(t,i)}}}const Si=Number.isInteger||function(e){return e<<0===e};function yi(n){return Object.prototype.toString.call(n)==="[object String]"}var Ni=Pe(function(e,t){var i=e<0?t.length+e:e;return yi(t)?t.charAt(i):t[i]});const bi=Ni;var Fi=ue(function(e){return e==null});const Ei=Fi;var Oi=Pe(function(e,t){return e.map(function(i){for(var a=t,s=0,r;s<i.length;){if(a==null)return;r=i[s],a=Si(r)?bi(r,a):a[r],s+=1}return a})});const wi=Oi;var Ri=Pe(function(e,t){return wi([e],t)[0]});const Ci=Ri;class ae extends Error{constructor(e,t,i){super(t),this.value=i,this.name=e}toDTO(){return{name:this.name,message:this.message,...this.value&&{value:this.value}}}}class $t extends ae{constructor(e){super("RESOURCE_NOT_FOUND_ERROR",`Resource with id '${e}' not found.`,e)}}class zt extends ae{constructor(e){var t;super("APP_UNEXPECTED_ERROR",(t=e.message)!=null?t:"An unexpected error occurred.",e)}}class Ti extends ae{constructor(){super("APP_ACCOUNT_INVALID_ERROR","Account not defined")}}class Bt extends ae{constructor(e){super("INVALID_NIZZA_GLOBAL_OBJECT_ERROR",`
11
+ Configuration property invalid: "${e}".
12
+
13
+ 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".
14
+
15
+ * If you are using the @nizza/core library:
16
+
17
+ import { nizza } from '@nizza/core';
18
+
19
+ nizza.configure({
20
+ account: env.account,
21
+ ...
22
+ });
23
+
24
+ * If you are using the window:
25
+
26
+ window.nizza.configure({
27
+ account: env.account,
28
+ ...
29
+ });
30
+ `)}}function Di(n,e){e.forEach(t=>{if(Ei(Ci(t.split("."),n)))throw new Bt(t)})}const se=xe.log,Gt=se.levels.INFO;se.setDefaultLevel(Gt);Dt.reg(se);Dt.apply(se,{template:"[%t] %l (%n)",nameFormatter:n=>{var e;return(e=n==null?void 0:n.toLowerCase())!=null?e:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)});const Jt={},Ai=Ie("main"),W=Ie("core");function Qt(n){const e=se.getLogger(n);return e.setLevel(Gt),e}function Wt(n,e){Jt[n]=e}function Kt(n){return Jt[n]}function Ie(n){const e=Qt(n);return Wt(n,e),Kt(n)}function Li(){var i,a,s;let n=null,e=null,t=null;try{n=(s=(a=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:a.timeZone)!=null?s:null;const r=-new Date().getTimezoneOffset();t=r;const o=r>=0?"+":"-",d=String(Math.floor(Math.abs(r)/60)).padStart(2,"0"),l=String(Math.abs(r)%60).padStart(2,"0");e=`${o}${d}:${l}`}catch{W.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:t,value:n,country:null,included:null,label:null}}class Zt{constructor(e){D(this,"aggregate");D(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[t,i]of Object.entries(e))t in this.aggregate&&(this.aggregate[t]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function qt(n){return new Zt(n)}class xi{}class Pi{constructor(e){D(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var Ve=(n=>(n.VTEX="VTEX",n.VTEX_IO="VTEX-IO",n.VTEX_CMS="PORTAL-VTEX",n.PLATFORM="PLATFORM",n.UNKNOWN="UNKNOWN",n))(Ve||{}),Xt=(n=>(n.PLATFORM="platform_module",n.ADENDA="subscription_module",n.APP_STORE="app_store",n))(Xt||{}),_e=(n=>(n.ACTIVE="active_contract",n.INACTIVE="inactive_contract",n))(_e||{}),Ht=(n=>(n.LITE="lite",n.STANDARD="standard",n.PRO="pro",n))(Ht||{}),Yt=(n=>(n.LITE="PLAN_LITE",n.STANDARD="PLAN_ESTANDAR",n.PRO="PLAN_PRO",n.NONE="NO_PLAN",n))(Yt||{}),en=(n=>(n.PAST="past",n.LIVE="live",n.FUTURE="future",n))(en||{});class Se{constructor(e){D(this,"root",qt(this));D(this,"id");D(this,"account");D(this,"accountType",Ve.UNKNOWN);D(this,"username");D(this,"currencyConfig");D(this,"contractType");D(this,"nextDateMetricRecord");D(this,"spendedMinutes",0);D(this,"unlimitedService",!1);D(this,"hoursAvailable",0);D(this,"contractStatus",_e.ACTIVE);D(this,"createdAt");D(this,"installationDateApp");D(this,"cxAccount");D(this,"freeService",!1);D(this,"subscriptionType",null);D(this,"minutesAvailable",0);D(this,"globalPage");D(this,"stripe");D(this,"descriptionPlan");D(this,"planType");D(this,"selectFreeTrial");D(this,"exceededFeatures");D(this,"host",null);this.root.setProps(e)}static toDomain(e){const{createdAt:t,username:i,...a}=e,s={...a,username:i!=null?i:a.account,createdAt:new Date(Number(t))};return new Se(s)}toPrimitives(){const{root:e,createdAt:t,...i}=this;return{...i,created:t.toISOString()}}}const Ii=`${jn.apiUrls.restV1}/accounts/v2`;class tn{async get(e){const t=`${Ii}/${e}`,{data:i}=await De({url:t});return i?Se.toDomain(i):null}}class nn{constructor(e){this.accountRepository=e}async get(e){try{const t=await this.accountRepository.get(e);if(!t)throw new $t(e);return t}catch(t){throw new zt(t)}}}const Vi=new tn,Ue=new nn(Vi);class je{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const me=typeof window=="undefined"||"Deno"in window;function _i(){}function et(n){return typeof n=="number"&&n>=0&&n!==1/0}function Ui(n,e){return Math.max(n+(e||0)-Date.now(),0)}function ji(n,e,t){return Mi(n)?typeof e=="function"?{...t,queryKey:n,queryFn:e}:{...e,queryKey:n}:n}function an(n,e){if(n===e)return n;const t=tt(n)&&tt(e);if(t||nt(n)&&nt(e)){const i=t?n.length:Object.keys(n).length,a=t?e:Object.keys(e),s=a.length,r=t?[]:{};let o=0;for(let d=0;d<s;d++){const l=t?d:a[d];r[l]=an(n[l],e[l]),r[l]===n[l]&&o++}return i===s&&o===i?n:r}return e}function Re(n,e){if(n&&!e||e&&!n)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function tt(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function nt(n){if(!it(n))return!1;const e=n.constructor;if(typeof e=="undefined")return!0;const t=e.prototype;return!(!it(t)||!t.hasOwnProperty("isPrototypeOf"))}function it(n){return Object.prototype.toString.call(n)==="[object Object]"}function Mi(n){return Array.isArray(n)}function $i(n){return new Promise(e=>{setTimeout(e,n)})}function at(n){$i(0).then(n)}function st(n,e,t){return t.isDataEqual!=null&&t.isDataEqual(n,e)?n:typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?an(n,e):e}class zi extends je{constructor(){super(),this.setup=e=>{if(!me&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}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 t;this.setup=e,(t=this.cleanup)==null||t.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 Bi=new zi,rt=["online","offline"];class Gi extends je{constructor(){super(),this.setup=e=>{if(!me&&window.addEventListener){const t=()=>e();return rt.forEach(i=>{window.addEventListener(i,t,!1)}),()=>{rt.forEach(i=>{window.removeEventListener(i,t)})}}}}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 t;this.setup=e,(t=this.cleanup)==null||t.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 Ji=new Gi;function Qi(n){return(n!=null?n:"online")==="online"?Ji.isOnline():!0}class Wi{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}}function Ki(n){return n instanceof Wi}function Zi(){let n=[],e=0,t=u=>{u()},i=u=>{u()};const a=u=>{let f;e++;try{f=u()}finally{e--,e||o()}return f},s=u=>{e?n.push(u):at(()=>{t(u)})},r=u=>(...f)=>{s(()=>{u(...f)})},o=()=>{const u=n;n=[],u.length&&at(()=>{i(()=>{u.forEach(f=>{t(f)})})})};return{batch:a,batchCalls:r,schedule:s,setNotifyFunction:u=>{t=u},setBatchNotifyFunction:u=>{i=u}}}const te=Zi();class qi extends je{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ot(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ce(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ce(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const i=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),Re(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 s=this.hasListeners();s&&lt(this.currentQuery,a,this.options,i)&&this.executeFetch(),this.updateResult(t),s&&(this.currentQuery!==a||this.options.enabled!==i.enabled||this.options.staleTime!==i.staleTime)&&this.updateStaleTimeout();const r=this.computeRefetchInterval();s&&(this.currentQuery!==a||this.options.enabled!==i.enabled||r!==this.currentRefetchInterval)&&this.updateRefetchInterval(r)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),i=this.createResult(t,e);return Hi(this,i,e)&&(this.currentResult=i,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),i}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(i=>{Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(i),e[i])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),i=this.client.getQueryCache().build(this.client,t);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(_i)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),me||this.currentResult.isStale||!et(this.options.staleTime))return;const t=Ui(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}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,!(me||this.options.enabled===!1||!et(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Bi.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,t){const i=this.currentQuery,a=this.options,s=this.currentResult,r=this.currentResultState,o=this.currentResultOptions,d=e!==i,l=d?e.state:this.currentQueryInitialState,u=d?this.currentResult:this.previousQueryResult,{state:f}=e;let{dataUpdatedAt:c,error:y,errorUpdatedAt:v,fetchStatus:k,status:S}=f,F=!1,E=!1,L;if(t._optimisticResults){const p=this.hasListeners(),m=!p&&ot(e,t),g=p&&lt(e,i,t,a);(m||g)&&(k=Qi(e.options.networkMode)?"fetching":"paused",c||(S="loading")),t._optimisticResults==="isRestoring"&&(k="idle")}if(t.keepPreviousData&&!f.dataUpdatedAt&&u!=null&&u.isSuccess&&S!=="error")L=u.data,c=u.dataUpdatedAt,S=u.status,F=!0;else if(t.select&&typeof f.data!="undefined")if(s&&f.data===(r==null?void 0:r.data)&&t.select===this.selectFn)L=this.selectResult;else try{this.selectFn=t.select,L=t.select(f.data),L=st(s==null?void 0:s.data,L,t),this.selectResult=L,this.selectError=null}catch(p){this.selectError=p}else L=f.data;if(typeof t.placeholderData!="undefined"&&typeof L=="undefined"&&S==="loading"){let p;if(s!=null&&s.isPlaceholderData&&t.placeholderData===(o==null?void 0:o.placeholderData))p=s.data;else if(p=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof p!="undefined")try{p=t.select(p),this.selectError=null}catch(m){this.selectError=m}typeof p!="undefined"&&(S="success",L=st(s==null?void 0:s.data,p,t),E=!0)}this.selectError&&(y=this.selectError,L=this.selectResult,v=Date.now(),S="error");const w=k==="fetching",x=S==="loading",I=S==="error";return{status:S,fetchStatus:k,isLoading:x,isSuccess:S==="success",isError:I,isInitialLoading:x&&w,data:L,dataUpdatedAt:c,error:y,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:I&&f.dataUpdatedAt===0,isPaused:k==="paused",isPlaceholderData:E,isPreviousData:F,isRefetchError:I&&f.dataUpdatedAt!==0,isStale:Me(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,i=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Re(i,t))return;this.currentResult=i;const a={cache:!0},s=()=>{if(!t)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.trackedProps.size)return!0;const d=new Set(o!=null?o:this.trackedProps);return this.options.useErrorBoundary&&d.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==t[u]&&d.has(u)})};(e==null?void 0:e.listeners)!==!1&&s()&&(a.listeners=!0),this.notify({...a,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!Ki(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){te.batch(()=>{if(e.onSuccess){var t,i,a,s;(t=(i=this.options).onSuccess)==null||t.call(i,this.currentResult.data),(a=(s=this.options).onSettled)==null||a.call(s,this.currentResult.data,null)}else if(e.onError){var r,o,d,l;(r=(o=this.options).onError)==null||r.call(o,this.currentResult.error),(d=(l=this.options).onSettled)==null||d.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:u})=>{u(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Xi(n,e){return e.enabled!==!1&&!n.state.dataUpdatedAt&&!(n.state.status==="error"&&e.retryOnMount===!1)}function ot(n,e){return Xi(n,e)||n.state.dataUpdatedAt>0&&Ce(n,e,e.refetchOnMount)}function Ce(n,e,t){if(e.enabled!==!1){const i=typeof t=="function"?t(n):t;return i==="always"||i!==!1&&Me(n,e)}return!1}function lt(n,e,t,i){return t.enabled!==!1&&(n!==e||i.enabled===!1)&&(!t.suspense||n.state.status!=="error")&&Me(n,t)}function Me(n,e){return n.isStaleByTime(e.staleTime)}function Hi(n,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!Re(n.getCurrentResult(),e)}const Yi=jt.useSyncExternalStore,dt=j.createContext(void 0),ea=j.createContext(!1);function ta(n,e){return n||(e&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=dt),window.ReactQueryClientContext):dt)}const na=({context:n}={})=>{const e=j.useContext(ta(n,j.useContext(ea)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},sn=j.createContext(!1),ia=()=>j.useContext(sn);sn.Provider;function aa(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}const sa=j.createContext(aa()),ra=()=>j.useContext(sa);function oa(n,e){return typeof n=="function"?n(...e):!!n}const la=(n,e)=>{(n.suspense||n.useErrorBoundary)&&(e.isReset()||(n.retryOnMount=!1))},da=n=>{j.useEffect(()=>{n.clearReset()},[n])},ua=({result:n,errorResetBoundary:e,useErrorBoundary:t,query:i})=>n.isError&&!e.isReset()&&!n.isFetching&&oa(t,[n.error,i]),ca=n=>{n.suspense&&typeof n.staleTime!="number"&&(n.staleTime=1e3)},ma=(n,e)=>n.isLoading&&n.isFetching&&!e,fa=(n,e,t)=>(n==null?void 0:n.suspense)&&ma(e,t),pa=(n,e,t)=>e.fetchOptimistic(n).then(({data:i})=>{n.onSuccess==null||n.onSuccess(i),n.onSettled==null||n.onSettled(i,null)}).catch(i=>{t.clearReset(),n.onError==null||n.onError(i),n.onSettled==null||n.onSettled(void 0,i)});function ha(n,e){const t=na({context:n.context}),i=ia(),a=ra(),s=t.defaultQueryOptions(n);s._optimisticResults=i?"isRestoring":"optimistic",s.onError&&(s.onError=te.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=te.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=te.batchCalls(s.onSettled)),ca(s),la(s,a),da(a);const[r]=j.useState(()=>new e(t,s)),o=r.getOptimisticResult(s);if(Yi(j.useCallback(d=>{const l=i?()=>{}:r.subscribe(te.batchCalls(d));return r.updateResult(),l},[r,i]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),j.useEffect(()=>{r.setOptions(s,{listeners:!1})},[s,r]),fa(s,o,i))throw pa(s,r,a);if(ua({result:o,errorResetBoundary:a,useErrorBoundary:s.useErrorBoundary,query:r.getCurrentQuery()}))throw o.error;return s.notifyOnChangeProps?o:r.trackResult(o)}function ga(n,e,t){const i=ji(n,e,t);return ha(i,qi)}const ka=()=>["account"],va=()=>{const{accountName:n}=ci(xe.state),[e,t]=Pn(ve),i=ga(ka(),()=>Ue.get(n),{enabled:!!n&&!e,refetchOnWindowFocus:!1,refetchOnMount:!1});return _.useEffect(()=>{const a=i.data;!i.isSuccess||!a||t(a)},[i.status]),{findQuery:i,account:e}},rn=Ot();async function on(n){const e=await Ue.get(n);return rn.set(ve,e),e}var ln=(n=>(n.CREATED="CREATED",n.STARTING="STARTING",n.LIVE="LIVE",n.FINALIZED="FINALIZED",n))(ln||{});const Sa={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:**"},ya={EVENT_STATUS_CHANGED:"event:statusChanged"};var dn=(n=>(n.English="en",n.Spanish="es",n.Portuguese="pt",n))(dn||{}),un=(n=>(n.COMBO="Combo",n))(un||{}),cn=(n=>(n.VTEX="VTEX",n.PLATFORM="platform",n.CACE="CACE",n.GLOBAL_PAGE="globalPage",n.DEV_LOCAL="dev:local",n.CUSTOMIZATION="customization",n))(cn||{});const Na={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console&&console[n]&&console[n].apply(console,e)}};class fe{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Na,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,a){return a&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new fe(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new fe(this.logger,e)}}var M=new fe;class ye{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(i=>{this.observers[i]=this.observers[i]||[],this.observers[i].push(t)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(i=>i!==t)}}emit(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),a=1;a<t;a++)i[a-1]=arguments[a];this.observers[e]&&[].concat(this.observers[e]).forEach(r=>{r(...i)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(r=>{r.apply(r,[e,...i])})}}function X(){let n,e;const t=new Promise((i,a)=>{n=i,e=a});return t.resolve=n,t.reject=e,t}function ut(n){return n==null?"":""+n}function ba(n,e,t){n.forEach(i=>{e[i]&&(t[i]=e[i])})}function $e(n,e,t){function i(r){return r&&r.indexOf("###")>-1?r.replace(/###/g,"."):r}function a(){return!n||typeof n=="string"}const s=typeof e!="string"?[].concat(e):e.split(".");for(;s.length>1;){if(a())return{};const r=i(s.shift());!n[r]&&t&&(n[r]=new t),Object.prototype.hasOwnProperty.call(n,r)?n=n[r]:n={}}return a()?{}:{obj:n,k:i(s.shift())}}function ct(n,e,t){const{obj:i,k:a}=$e(n,e,Object);i[a]=t}function Fa(n,e,t,i){const{obj:a,k:s}=$e(n,e,Object);a[s]=a[s]||[],i&&(a[s]=a[s].concat(t)),i||a[s].push(t)}function pe(n,e){const{obj:t,k:i}=$e(n,e);if(t)return t[i]}function Ea(n,e,t){const i=pe(n,t);return i!==void 0?i:pe(e,t)}function mn(n,e,t){for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in n?typeof n[i]=="string"||n[i]instanceof String||typeof e[i]=="string"||e[i]instanceof String?t&&(n[i]=e[i]):mn(n[i],e[i],t):n[i]=e[i]);return n}function G(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Oa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function wa(n){return typeof n=="string"?n.replace(/[&<>"'\/]/g,e=>Oa[e]):n}const Ra=[" ",",","?","!",";"];function Ca(n,e,t){e=e||"",t=t||"";const i=Ra.filter(r=>e.indexOf(r)<0&&t.indexOf(r)<0);if(i.length===0)return!0;const a=new RegExp(`(${i.map(r=>r==="?"?"\\?":r).join("|")})`);let s=!a.test(n);if(!s){const r=n.indexOf(t);r>0&&!a.test(n.substring(0,r))&&(s=!0)}return s}function he(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return n[e];const i=e.split(t);let a=n;for(let s=0;s<i.length;++s){if(!a||typeof a[i[s]]=="string"&&s+1<i.length)return;if(a[i[s]]===void 0){let r=2,o=i.slice(s,s+r).join(t),d=a[o];for(;d===void 0&&i.length>s+r;)r++,o=i.slice(s,s+r).join(t),d=a[o];if(d===void 0)return;if(d===null)return null;if(e.endsWith(o)){if(typeof d=="string")return d;if(o&&typeof d[o]=="string")return d[o]}const l=i.slice(s+r).join(t);return l?he(d,l,t):void 0}a=a[i[s]]}return a}function ge(n){return n&&n.indexOf("_")>0?n.replace("_","-"):n}class mt extends ye{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,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 t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,r=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let o=[e,t];i&&typeof i!="string"&&(o=o.concat(i)),i&&typeof i=="string"&&(o=o.concat(s?i.split(s):i)),e.indexOf(".")>-1&&(o=e.split("."));const d=pe(this.data,o);return d||!r||typeof i!="string"?d:he(this.data&&this.data[e]&&this.data[e][t],i,s)}addResource(e,t,i,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const r=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let o=[e,t];i&&(o=o.concat(r?i.split(r):i)),e.indexOf(".")>-1&&(o=e.split("."),a=t,t=o[1]),this.addNamespaces(t),ct(this.data,o,a),s.silent||this.emit("added",e,t,i,a)}addResources(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in i)(typeof i[s]=="string"||Object.prototype.toString.apply(i[s])==="[object Array]")&&this.addResource(e,t,s,i[s],{silent:!0});a.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,a,s){let r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),a=i,i=t,t=o[1]),this.addNamespaces(t);let d=pe(this.data,o)||{};a?mn(d,i,s):d={...d,...i},ct(this.data,o,d),r.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(a=>t[a]&&Object.keys(t[a]).length>0)}toJSON(){return this.data}}var fn={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,i,a){return n.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,t,i,a))}),e}};const ft={};class ke extends ye{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),ba(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=M.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const i=this.resolve(e,t);return i&&i.res!==void 0}extractFromKey(e,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const r=i&&e.indexOf(i)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Ca(e,i,a);if(r&&!o){const d=e.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:e,namespaces:s};const l=e.split(i);(i!==a||i===a&&this.options.ns.indexOf(l[0])>-1)&&(s=l.shift()),e=l.join(a)}return typeof s=="string"&&(s=[s]),{key:e,namespaces:s}}translate(e,t,i){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:r,namespaces:o}=this.extractFromKey(e[e.length-1],t),d=o[o.length-1],l=t.lng||this.language,u=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(u){const w=t.nsSeparator||this.options.nsSeparator;return a?{res:`${d}${w}${r}`,usedKey:r,exactUsedKey:r,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:`${d}${w}${r}`}return a?{res:r,usedKey:r,exactUsedKey:r,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:r}const f=this.resolve(e,t);let c=f&&f.res;const y=f&&f.usedKey||r,v=f&&f.exactUsedKey||r,k=Object.prototype.toString.apply(c),S=["[object Number]","[object Function]","[object RegExp]"],F=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject;if(E&&c&&(typeof c!="string"&&typeof c!="boolean"&&typeof c!="number")&&S.indexOf(k)<0&&!(typeof F=="string"&&k==="[object Array]")){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,c,{...t,ns:o}):`key '${r} (${this.language})' returned an object instead of string.`;return a?(f.res=w,f.usedParams=this.getUsedParamsDetails(t),f):w}if(s){const w=k==="[object Array]",x=w?[]:{},I=w?v:y;for(const P in c)if(Object.prototype.hasOwnProperty.call(c,P)){const p=`${I}${s}${P}`;x[P]=this.translate(p,{...t,joinArrays:!1,ns:o}),x[P]===p&&(x[P]=c[P])}c=x}}else if(E&&typeof F=="string"&&k==="[object Array]")c=c.join(F),c&&(c=this.extendTranslation(c,e,t,i));else{let w=!1,x=!1;const I=t.count!==void 0&&typeof t.count!="string",P=ke.hasDefaultValue(t),p=I?this.pluralResolver.getSuffix(l,t.count,t):"",m=t.ordinal&&I?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=t[`defaultValue${p}`]||t[`defaultValue${m}`]||t.defaultValue;!this.isValidLookup(c)&&P&&(w=!0,c=g),this.isValidLookup(c)||(x=!0,c=r);const N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:c,O=P&&g!==c&&this.options.updateMissing;if(x||w||O){if(this.logger.log(O?"updateKey":"missingKey",l,d,r,O?g:c),s){const C=this.resolve(r,{...t,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 b=[];const R=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&R&&R[0])for(let C=0;C<R.length;C++)b.push(R[C]);else this.options.saveMissingTo==="all"?b=this.languageUtils.toResolveHierarchy(t.lng||this.language):b.push(t.lng||this.language);const T=(C,A,V)=>{const re=P&&V!==c?V:N;this.options.missingKeyHandler?this.options.missingKeyHandler(C,d,A,re,O,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(C,d,A,re,O,t),this.emit("missingKey",C,d,A,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?b.forEach(C=>{this.pluralResolver.getSuffixes(C,t).forEach(A=>{T([C],r+A,t[`defaultValue${A}`]||g)})}):T(b,r,g))}c=this.extendTranslation(c,e,t,f,i),x&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${d}:${r}`),(x||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${r}`:r,w?c:void 0):c=this.options.parseMissingKeyHandler(c))}return a?(f.res=c,f.usedParams=this.getUsedParamsDetails(t),f):c}extendTranslation(e,t,i,a,s){var r=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 l=typeof e=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const c=e.match(this.interpolator.nestingRegexp);u=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),l){const c=e.match(this.interpolator.nestingRegexp),y=c&&c.length;u<y&&(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,y=new Array(c),v=0;v<c;v++)y[v]=arguments[v];return s&&s[0]===y[0]&&!i.context?(r.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${t[0]}`),null):r.translate(...y,t)},i)),i.interpolation&&this.interpolator.reset()}const o=i.postProcess||this.options.postProcess,d=typeof o=="string"?[o]:o;return e!=null&&d&&d.length&&i.applyPostProcessor!==!1&&(e=fn.handle(d,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:a,...i}:i,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,a,s,r,o;return typeof e=="string"&&(e=[e]),e.forEach(d=>{if(this.isValidLookup(i))return;const l=this.extractFromKey(d,t),u=l.key;a=u;let f=l.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=t.count!==void 0&&typeof t.count!="string",y=c&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),v=t.context!==void 0&&(typeof t.context=="string"||typeof t.context=="number")&&t.context!=="",k=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);f.forEach(S=>{this.isValidLookup(i)||(o=S,!ft[`${k[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(ft[`${k[0]}-${S}`]=!0,this.logger.warn(`key "${a}" for languages "${k.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!!!")),k.forEach(F=>{if(this.isValidLookup(i))return;r=F;const E=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(E,u,F,S,t);else{let w;c&&(w=this.pluralResolver.getSuffix(F,t.count,t));const x=`${this.options.pluralSeparator}zero`,I=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(E.push(u+w),t.ordinal&&w.indexOf(I)===0&&E.push(u+w.replace(I,this.options.pluralSeparator)),y&&E.push(u+x)),v){const P=`${u}${this.options.contextSeparator}${t.context}`;E.push(P),c&&(E.push(P+w),t.ordinal&&w.indexOf(I)===0&&E.push(P+w.replace(I,this.options.pluralSeparator)),y&&E.push(P+x))}}let L;for(;L=E.pop();)this.isValidLookup(i)||(s=L,i=this.getResource(F,S,L,t))}))})}),{res:i,usedKey:a,exactUsedKey:s,usedLng:r,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,i,a):this.resourceStore.getResource(e,t,i,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["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 s of t)delete a[s]}return a}static hasDefaultValue(e){const t="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}}function Ee(n){return n.charAt(0).toUpperCase()+n.slice(1)}class pt{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M.create("languageUtils")}getScriptPartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const t=["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(),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=Ee(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()),t.indexOf(i[1].toLowerCase())>-1&&(i[1]=Ee(i[1].toLowerCase())),t.indexOf(i[2].toLowerCase())>-1&&(i[2]=Ee(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 t;return e.forEach(i=>{if(t)return;const a=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(a))&&(t=a)}),!t&&this.options.supportedLngs&&e.forEach(i=>{if(t)return;const a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return t=a;t=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!t)return e.default||[];let i=e[t];return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){const i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),a=[],s=r=>{r&&(this.isSupportedCode(r)?a.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),i.forEach(r=>{a.indexOf(r)<0&&s(this.formatLanguageCode(r))}),a}}let Ta=[{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}],Da={1:function(n){return+(n>1)},2:function(n){return+(n!=1)},3:function(n){return 0},4:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},5:function(n){return n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},6:function(n){return n==1?0:n>=2&&n<=4?1:2},7:function(n){return n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2},8:function(n){return n==1?0:n==2?1:n!=8&&n!=11?2:3},9:function(n){return+(n>=2)},10:function(n){return n==1?0:n==2?1:n<7?2:n<11?3:4},11:function(n){return n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3},12:function(n){return+(n%10!=1||n%100==11)},13:function(n){return+(n!==0)},14:function(n){return n==1?0:n==2?1:n==3?2:3},15:function(n){return n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2},16:function(n){return n%10==1&&n%100!=11?0:n!==0?1:2},17:function(n){return n==1||n%10==1&&n%100!=11?0:1},18:function(n){return n==0?0:n==1?1:2},19:function(n){return n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3},20:function(n){return n==1?0:n==0||n%100>0&&n%100<20?1:2},21:function(n){return n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0},22:function(n){return n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3}};const Aa=["v1","v2","v3"],La=["v4"],ht={zero:0,one:1,two:2,few:3,many:4,other:5};function xa(){const n={};return Ta.forEach(e=>{e.lngs.forEach(t=>{n[t]={numbers:e.nr,plurals:Da[e.fc]}})}),n}class Pa{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=M.create("pluralResolver"),(!this.options.compatibilityJSON||La.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=xa()}addRule(e,t){this.rules[e]=t}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(ge(e),{type:t.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,i).map(a=>`${t}${a}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=this.getRule(e,t);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((a,s)=>ht[a]-ht[s]).map(a=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${a}`):i.numbers.map(a=>this.getSuffix(e,a,t)):[]}getSuffix(e,t){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(t)}`:this.getSuffixRetroCompatible(a,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let a=e.numbers[i];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));const s=()=>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()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!Aa.includes(this.options.compatibilityJSON)}}function gt(n,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=Ea(n,e,t);return!s&&a&&typeof t=="string"&&(s=he(n,t,i),s===void 0&&(s=he(e,t,i))),s}class Ia{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=M.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const t=e.interpolation;this.escape=t.escape!==void 0?t.escape:wa,this.escapeValue=t.escapeValue!==void 0?t.escapeValue:!0,this.useRawValueToEscape=t.useRawValueToEscape!==void 0?t.useRawValueToEscape:!1,this.prefix=t.prefix?G(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?G(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?G(t.nestingPrefix):t.nestingPrefixEscaped||G("$t("),this.nestingSuffix=t.nestingSuffix?G(t.nestingSuffix):t.nestingSuffixEscaped||G(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=t.alwaysFormat!==void 0?t.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 t=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(t,"g");const i=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(i,"g")}interpolate(e,t,i,a){let s,r,o;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(v){return v.replace(/\$/g,"$$$$")}const u=v=>{if(v.indexOf(this.formatSeparator)<0){const E=gt(t,d,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,i,{...a,...t,interpolationkey:v}):E}const k=v.split(this.formatSeparator),S=k.shift().trim(),F=k.join(this.formatSeparator).trim();return this.format(gt(t,d,S,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...a,...t,interpolationkey:S})};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:v=>l(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?l(this.escape(v)):l(v)}].forEach(v=>{for(o=0;s=v.regex.exec(e);){const k=s[1].trim();if(r=u(k),r===void 0)if(typeof f=="function"){const F=f(e,s,a);r=typeof F=="string"?F:""}else if(a&&Object.prototype.hasOwnProperty.call(a,k))r="";else if(c){r=s[0];continue}else this.logger.warn(`missed to pass in variable ${k} for interpolating ${e}`),r="";else typeof r!="string"&&!this.useRawValueToEscape&&(r=ut(r));const S=v.safeValue(r);if(e=e.replace(s[0],S),c?(v.regex.lastIndex+=r.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,r;function o(d,l){const u=this.nestingOptionsSeparator;if(d.indexOf(u)<0)return d;const f=d.split(new RegExp(`${u}[ ]*{`));let c=`{${f[1]}`;d=f[0],c=this.interpolate(c,r);const y=c.match(/'/g),v=c.match(/"/g);(y&&y.length%2===0&&!v||v.length%2!==0)&&(c=c.replace(/'/g,'"'));try{r=JSON.parse(c),l&&(r={...l,...r})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,k),`${d}${u}${c}`}return delete r.defaultValue,d}for(;a=this.nestingRegexp.exec(e);){let d=[];r={...i},r=r.replace&&typeof r.replace!="string"?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let l=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const u=a[1].split(this.formatSeparator).map(f=>f.trim());a[1]=u.shift(),d=u,l=!0}if(s=t(o.call(this,a[1].trim(),r),r),s&&a[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=ut(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),s=""),l&&(s=d.reduce((u,f)=>this.format(u,f,i.lng,{...i,interpolationkey:a[1].trim()}),s.trim())),e=e.replace(a[0],s),this.regexp.lastIndex=0}return e}}function Va(n){let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const i=n.split("(");e=i[0].toLowerCase().trim();const a=i[1].substring(0,i[1].length-1);e==="currency"&&a.indexOf(":")<0?t.currency||(t.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?t.range||(t.range=a.trim()):a.split(";").forEach(r=>{if(!r)return;const[o,...d]=r.split(":"),l=d.join(":").trim().replace(/^'+|'+$/g,"");t[o.trim()]||(t[o.trim()]=l),l==="false"&&(t[o.trim()]=!1),l==="true"&&(t[o.trim()]=!0),isNaN(l)||(t[o.trim()]=parseInt(l,10))})}return{formatName:e,formatOptions:t}}function J(n){const e={};return function(i,a,s){const r=a+JSON.stringify(s);let o=e[r];return o||(o=n(ge(a),s),e[r]=o),o(i)}}class _a{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=M.create("formatter"),this.options=e,this.formats={number:J((t,i)=>{const a=new Intl.NumberFormat(t,{...i});return s=>a.format(s)}),currency:J((t,i)=>{const a=new Intl.NumberFormat(t,{...i,style:"currency"});return s=>a.format(s)}),datetime:J((t,i)=>{const a=new Intl.DateTimeFormat(t,{...i});return s=>a.format(s)}),relativetime:J((t,i)=>{const a=new Intl.RelativeTimeFormat(t,{...i});return s=>a.format(s,i.range||"day")}),list:J((t,i)=>{const a=new Intl.ListFormat(t,{...i});return s=>a.format(s)})},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,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=J(t)}format(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return t.split(this.formatSeparator).reduce((o,d)=>{const{formatName:l,formatOptions:u}=Va(d);if(this.formats[l]){let f=o;try{const c=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},y=c.locale||c.lng||a.locale||a.lng||i;f=this.formats[l](o,y,{...u,...a,...c})}catch(c){this.logger.warn(c)}return f}else this.logger.warn(`there was no format function for ${l}`);return o},e)}}function Ua(n,e){n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)}class ja extends ye{constructor(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=a,this.logger=M.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,t,i,a){const s={},r={},o={},d={};return e.forEach(l=>{let u=!0;t.forEach(f=>{const c=`${l}|${f}`;!i.reload&&this.store.hasResourceBundle(l,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?r[c]===void 0&&(r[c]=!0):(this.state[c]=1,u=!1,r[c]===void 0&&(r[c]=!0),s[c]===void 0&&(s[c]=!0),d[f]===void 0&&(d[f]=!0)))}),u||(o[l]=!0)}),(Object.keys(s).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(r),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(d)}}loaded(e,t,i){const a=e.split("|"),s=a[0],r=a[1];t&&this.emit("failedLoading",s,r,t),i&&this.store.addResourceBundle(s,r,i),this.state[e]=t?-1:2;const o={};this.queue.forEach(d=>{Fa(d.loaded,[s],r),Ua(d,e),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(l=>{o[l]||(o[l]={});const u=d.loaded[l];u.length&&u.forEach(f=>{o[l][f]===void 0&&(o[l][f]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(d=>!d.done)}read(e,t,i){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:a,wait:s,callback:r});return}this.readingCalls++;const o=(l,u)=>{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(l&&u&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,a+1,s*2,r)},s);return}r(l,u)},d=this.backend[i].bind(this.backend);if(d.length===2){try{const l=d(e,t);l&&typeof l.then=="function"?l.then(u=>o(null,u)).catch(o):o(null,l)}catch(l){o(l)}return}return d(e,t,o)}prepareLoading(e,t){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 t=="string"&&(t=[t]);const s=this.queueLoad(e,t,i,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(r=>{this.loadOne(r)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const i=e.split("|"),a=i[0],s=i[1];this.read(a,s,"read",void 0,void 0,(r,o)=>{r&&this.logger.warn(`${t}loading namespace ${s} for language ${a} failed`,r),!r&&o&&this.logger.log(`${t}loaded namespace ${s} for language ${a}`,o),this.loaded(e,r,o)})}saveMissing(e,t,i,a,s){let r=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(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" 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 d={...r,isUpdate:s},l=this.backend.create.bind(this.backend);if(l.length<6)try{let u;l.length===5?u=l(e,t,i,a,d):u=l(e,t,i,a),u&&typeof u.then=="function"?u.then(f=>o(null,f)).catch(o):o(null,u)}catch(u){o(u)}else l(e,t,i,a,o,d)}!e||!e[0]||this.store.addResource(e[0],t,i,a)}}}function kt(){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 t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];Object.keys(i).forEach(a=>{t[a]=i[a]})}return t},interpolation:{escapeValue:!0,format:(n,e,t,i)=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function vt(n){return typeof n.ns=="string"&&(n.ns=[n.ns]),typeof n.fallbackLng=="string"&&(n.fallbackLng=[n.fallbackLng]),typeof n.fallbackNS=="string"&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n}function le(){}function Ma(n){Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})}class ne extends ye{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vt(e),this.services={},this.logger=M,this.modules={external:[]},Ma(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;typeof t=="function"&&(i=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(typeof t.ns=="string"?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=kt();this.options={...a,...this.options,...vt(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...a.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);function s(u){return u?typeof u=="function"?new u:u:null}if(!this.options.isClone){this.modules.logger?M.init(s(this.modules.logger),this.options):M.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl!="undefined"&&(u=_a);const f=new pt(this.options);this.store=new mt(this.options.resources,this.options);const c=this.services;c.logger=M,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Pa(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(c.formatter=s(u),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Ia(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new ja(s(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(y){for(var v=arguments.length,k=new Array(v>1?v-1:0),S=1;S<v;S++)k[S-1]=arguments[S];e.emit(y,...k)}),this.modules.languageDetector&&(c.languageDetector=s(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=s(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new ke(this.services,this.options),this.translator.on("*",function(y){for(var v=arguments.length,k=new Array(v>1?v-1:0),S=1;S<v;S++)k[S-1]=arguments[S];e.emit(y,...k)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,i||(i=le),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const d=X(),l=()=>{const u=(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),d.resolve(c),i(f,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),d}loadResources(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le;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 s=[],r=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(l=>{l!=="cimode"&&s.indexOf(l)<0&&s.push(l)})};a?r(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>r(d)),this.options.preload&&this.options.preload.forEach(o=>r(o)),this.services.backendConnector.load(s,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(o)})}else i(null)}reloadResources(e,t,i){const a=X();return e||(e=this.languages),t||(t=this.options.ns),i||(i=le),this.services.backendConnector.reload(e,t,s=>{a.resolve(),i(s)}),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"&&fn.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 t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(e,t){var i=this;this.isLanguageChangingTo=e;const a=X();this.emit("languageChanging",e);const s=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},r=(d,l)=>{l?(s(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,a.resolve(function(){return i.t(...arguments)}),t&&t(d,function(){return i.t(...arguments)})},o=d=>{!e&&!d&&this.services.languageDetector&&(d=[]);const l=typeof d=="string"?d:this.services.languageUtils.getBestMatchFromCodes(d);l&&(this.language||s(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,u=>{r(u,l)})};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,t,i){var a=this;const s=function(r,o){let d;if(typeof o!="object"){for(var l=arguments.length,u=new Array(l>2?l-2:0),f=2;f<l;f++)u[f-2]=arguments[f];d=a.options.overloadTranslationOptionHandler([r,o].concat(u))}else d={...o};d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs,d.ns=d.ns||s.ns,d.keyPrefix=d.keyPrefix||i||s.keyPrefix;const c=a.options.keySeparator||".";let y;return d.keyPrefix&&Array.isArray(r)?y=r.map(v=>`${d.keyPrefix}${c}${v}`):y=d.keyPrefix?`${d.keyPrefix}${c}${r}`:r,a.t(y,d)};return typeof e=="string"?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=i,s}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 t=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=t.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const r=(o,d)=>{const l=this.services.backendConnector.state[`${o}|${d}`];return l===-1||l===2};if(t.precheck){const o=t.precheck(this,r);if(o!==void 0)return o}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,e)&&(!a||r(s,e)))}loadNamespaces(e,t){const i=X();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(),t&&t(a)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){const i=X();typeof e=="string"&&(e=[e]);const a=this.options.preload||[],s=e.filter(r=>a.indexOf(r)<0);return s.length?(this.options.preload=a.concat(s),this.loadResources(r=>{i.resolve(),t&&t(r)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["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 pt(kt());return t.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]:{},t=arguments.length>1?arguments[1]:void 0;return new ne(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:le;const i=e.forkResourceStore;i&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},s=new ne(a);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(o=>{s[o]=this[o]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},i&&(s.store=new mt(this.store.data,a),s.services.resourceStore=s.store),s.translator=new ke(s.services,a),s.translator.on("*",function(o){for(var d=arguments.length,l=new Array(d>1?d-1:0),u=1;u<d;u++)l[u-1]=arguments[u];s.emit(o,...l)}),s.init(a,t),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const U=ne.createInstance();U.createInstance=ne.createInstance;U.createInstance;U.dir;U.init;U.loadResources;U.reloadResources;U.use;U.changeLanguage;U.getFixedT;U.t;U.exists;U.setDefaultNamespace;U.hasLoadedNamespace;U.loadNamespaces;U.loadLanguages;function $a(n){const e=Object.values(n);return Object.assign({},...e)}function za(n){return Object.entries(n).reduce((e,[t,i])=>{const a=$a(i);return{...e,[t]:a}},{})}function Ba(n){const e=za(n);Object.entries(e).forEach(([t,i])=>{U.addResourceBundle(t,"translation",i,!0)})}function Ga(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ie(n){"@babel/helpers - typeof";return ie=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},ie(n)}function Ja(n,e){if(ie(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e||"default");if(ie(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Qa(n){var e=Ja(n,"string");return ie(e)==="symbol"?e:String(e)}function St(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,Qa(i.key),i)}}function Wa(n,e,t){return e&&St(n.prototype,e),t&&St(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}var pn=[],Ka=pn.forEach,Za=pn.slice;function qa(n){return Ka.call(Za.call(arguments,1),function(e){if(e)for(var t in e)n[t]===void 0&&(n[t]=e[t])}),n}var yt=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Xa=function(e,t,i){var a=i||{};a.path=a.path||"/";var s=encodeURIComponent(t),r="".concat(e,"=").concat(s);if(a.maxAge>0){var o=a.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");r+="; Max-Age=".concat(Math.floor(o))}if(a.domain){if(!yt.test(a.domain))throw new TypeError("option domain is invalid");r+="; Domain=".concat(a.domain)}if(a.path){if(!yt.test(a.path))throw new TypeError("option path is invalid");r+="; Path=".concat(a.path)}if(a.expires){if(typeof a.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+="; Expires=".concat(a.expires.toUTCString())}if(a.httpOnly&&(r+="; HttpOnly"),a.secure&&(r+="; Secure"),a.sameSite){var d=typeof a.sameSite=="string"?a.sameSite.toLowerCase():a.sameSite;switch(d){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return r},Nt={create:function(e,t,i,a){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+i*60*1e3)),a&&(s.domain=a),document.cookie=Xa(e,encodeURIComponent(t),s)},read:function(e){for(var t="".concat(e,"="),i=document.cookie.split(";"),a=0;a<i.length;a++){for(var s=i[a];s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(t)===0)return s.substring(t.length,s.length)}return null},remove:function(e){this.create(e,"",-1)}},Ha={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&typeof document!="undefined"){var i=Nt.read(e.lookupCookie);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&typeof document!="undefined"&&Nt.create(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},Ya={name:"querystring",lookup:function(e){var t;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),s=a.split("&"),r=0;r<s.length;r++){var o=s[r].indexOf("=");if(o>0){var d=s[r].substring(0,o);d===e.lookupQuerystring&&(t=s[r].substring(o+1))}}}return t}},H=null,bt=function(){if(H!==null)return H;try{H=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{H=!1}return H},es={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&bt()){var i=window.localStorage.getItem(e.lookupLocalStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&bt()&&window.localStorage.setItem(t.lookupLocalStorage,e)}},Y=null,Ft=function(){if(Y!==null)return Y;try{Y=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Y=!1}return Y},ts={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&Ft()){var i=window.sessionStorage.getItem(e.lookupSessionStorage);i&&(t=i)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&Ft()&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},ns={name:"navigator",lookup:function(e){var t=[];if(typeof navigator!="undefined"){if(navigator.languages)for(var i=0;i<navigator.languages.length;i++)t.push(navigator.languages[i]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},is={name:"htmlTag",lookup:function(e){var t,i=e.htmlTag||(typeof document!="undefined"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(t=i.getAttribute("lang")),t}},as={name:"path",lookup:function(e){var t;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;t=i[e.lookupFromPathIndex].replace("/","")}else t=i[0].replace("/","")}return t}},ss={name:"subdomain",lookup:function(e){var t=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[t]}};function rs(){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 hn=function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ga(this,n),this.type="languageDetector",this.detectors={},this.init(e,t)}return Wa(n,[{key:"init",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t||{languageUtils:{}},this.options=qa(i,this.options||{},rs()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=a,this.addDetector(Ha),this.addDetector(Ya),this.addDetector(es),this.addDetector(ts),this.addDetector(ns),this.addDetector(is),this.addDetector(as),this.addDetector(ss)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var i=this;t||(t=this.options.order);var a=[];return t.forEach(function(s){if(i.detectors[s]){var r=i.detectors[s].lookup(i.options);r&&typeof r=="string"&&(r=[r]),r&&(a=a.concat(r))}}),a=a.map(function(s){return i.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}},{key:"cacheUserLanguage",value:function(t,i){var a=this;i||(i=this.options.caches),i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||i.forEach(function(s){a.detectors[s]&&a.detectors[s].cacheUserLanguage(t,a.options)}))}}]),n}();hn.type="languageDetector";const os=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ls={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},ds=n=>ls[n],us=n=>n.replace(os,ds);let Et={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:us};function cs(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Et={...Et,...n}}const ms={type:"3rdParty",init(n){cs(n.options.react)}},fs=U.use(ms).use(hn).init({resources:{},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1,format:(n,e,t)=>{if(e){const[i,...a]=e.split(",").map(s=>s.trim());if(i==="number")return new Intl.NumberFormat(t).format(n);if(i==="date")return new Intl.DateTimeFormat(t).format(n);if(i==="currency")return new Intl.NumberFormat(t,{style:"currency",currency:a[0]||"USD",currencyDisplay:"narrowSymbol"}).format(n).replace("$","").trim()}return n}},detection:{order:["navigator","cookie","localStorage","sessionStorage","querystring","htmlTag","path","subdomain"]}});let ze=new Map;const Te=_.createContext(ze),ps=({children:n,stores:e})=>{const t=_.useContext(Te),i=_.useMemo(()=>{const a=new Map;return e.forEach(s=>a.set(s.class,s.value)),ze=new Map([...t,...a])},[]);return Nn.jsx(Te.Provider,{value:i,children:n})};function hs(n){return _.useContext(Te).get(n)}function gs(n){return ze.get(n)}var gn=(n=>(n.Created="CREATED",n.Finalized="FINALIZED",n.Live="LIVE",n.Starting="STARTING",n))(gn||{}),kn=(n=>(n.Add="add",n.Remove="remove",n))(kn||{}),vn=(n=>(n.Active="active",n.Inactive="inactive",n))(vn||{});const ks={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"}}]}}]}}]}}]},vs={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"}}]}}]}}]}}]},Ss={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"}}]}}]}}]}}]},ys={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"}}]}}]}}]}}]},Ns={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"}}]}}]}}]}}]},bs={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"}}]}}]}}]}}]},Fs={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"}}]}}]}}]}}]},Es={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"}}]}}]}}]}}]},Os={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"}}]}}]}}]}}]},ws={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"}}]}}]}}]}}]},Rs={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"}}]}}]}}]}}]},Cs={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"}}]}}]}}]}}]},Ts={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"}}]}}]}}]}}]},Ds={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"}}]}}]}}]}}]},As={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"}}]}}]}}]}}]},Ls={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"}}]}}]}}]}}]},xs={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"}}]}}]}}]}}]},Ps={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"}}]}}]}}]}}]},Is={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"}}]}}]}}]}}]},Vs={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"}}]}}]}}]}}]},_s={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"}}]}}]}}]}}]},Us={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"}}]}}]}}]}}]},js={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"}}]}}]}}]}}]},Ms={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"}}]}}]}}]}}]},$s={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"}}]}}]}}]}}]},zs={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"}}]}}]}}]}}]}}]},Bs={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"}}]}}]}}]}}]},Gs={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"}}]}}]}}]}}]},Js=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:ks,AppendProductsToSnackVideoDocument:Vs,BlockUserDocument:ws,ChangeAccountUsernameDocument:Rs,CreateSnackVideoBatchDocument:_s,DeleteAllCustomizationDocument:Ls,DeleteChatMessageDocument:Cs,DeleteCollectionDocument:vs,DeleteRelationshipWithSnackVideoDocument:Us,DeleteSnackVideoDocument:js,EventStatus:gn,FindByProductSnackVideoDocument:Gs,FindCollectionDocument:Ss,FindManySnackVideosDocument:Ms,FindMinimalEventDocument:Es,GetAllChatMessageDocument:Ts,GetAllCollectionsDocument:ys,GetAllCustomizationDocument:xs,GetAllSnackVideosDocument:$s,GetChatRoomTokenDocument:Ds,GetSnackVideoRelationshipsDocument:zs,GetTimeLineDocument:Is,ManageCollectionProductDocument:Ns,Methods:kn,PinChatMessageDocument:As,SearchCollectionsDocument:bs,SearchMinimalEventsDocument:Os,SearchSnackVideosDocument:Bs,Status:vn,UpdateCollectionDocument:Fs,UpdateCustomizationDocument:Ps},Symbol.toStringTag,{value:"Module"}));function Qs(n){return{class:n,_value:null,get value(){return this._value||(this._value=new n,Object.freeze(this)),this._value}}}exports.AccountContractStatusTypes=_e;exports.AccountContractTypes=Xt;exports.AccountInvalidError=Ti;exports.AccountPlanDescriptionTypes=Yt;exports.AccountRestRepository=tn;exports.AccountService=nn;exports.AccountSubscriptionTypes=Ht;exports.AccountTypes=Ve;exports.AggregateRoot=Zt;exports.ApiGraphqlTypes=Js;exports.BaseMobxStore=xi;exports.DomainError=ae;exports.EventBusWildcards=Sa;exports.EventNames=ya;exports.GlobalPageSectionTypes=en;exports.InvalidNizzaGlobalObjectError=Bt;exports.LanguageTypes=dn;exports.NizzaAccount=Se;exports.NizzaEventStatus=ln;exports.NizzaProductRequestOriginTypes=cn;exports.NizzaVariationTypes=un;exports.ResourceNotFoundError=$t;exports.StoreProvider=ps;exports.UnexpectedError=zt;exports.ValueObject=Pi;exports.accountAtom=ve;exports.accountService=Ue;exports.apiCall=Mn;exports.coreLogger=W;exports.createAggregateRoot=qt;exports.createLogger=Qt;exports.createStore=Qs;exports.customFetch=De;exports.downloadFile=$n;exports.fileOrigin=hi;exports.getAccount=on;exports.getClientTimeZone=Li;exports.getLogger=Kt;exports.getStore=gs;exports.globalAtomStore=rn;exports.i18n=fs;exports.initializeLogger=Ie;exports.jsDownload=Rt;exports.logger=Ai;exports.nizza=xe;exports.registerLogger=Wt;exports.registerTranslations=Ba;exports.searchParams=pi;exports.shortId=Mt;exports.useAccount=va;exports.useStore=hs;exports.validateRequiredProps=Di;
31
+ //# sourceMappingURL=index.cjs.map