@nizza/core 0.6.7 → 0.6.9
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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/lib/utils/customFetch.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
`)}}function Bu(t,e){e.forEach(n=>{if(Uu(ju(n.split("."),t)))throw new Fa(n)})}function B(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];throw new Error(typeof t=="number"?"[MobX] minified error nr: "+t+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}var Hu={};function Da(){return typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:Hu}var Ia=Object.assign,Cn=Object.getOwnPropertyDescriptor,Oe=Object.defineProperty,Jn=Object.prototype,tr=[];Object.freeze(tr);var Fr={};Object.freeze(Fr);var zu=typeof Proxy!="undefined",qu=Object.toString();function Pa(){zu||B("Proxy not available")}function La(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var vt=function(){};function ye(t){return typeof t=="function"}function Ze(t){var e=typeof t;switch(e){case"string":case"symbol":case"number":return!0}return!1}function Yn(t){return t!==null&&typeof t=="object"}function He(t){if(!Yn(t))return!1;var e=Object.getPrototypeOf(t);if(e==null)return!0;var n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n.toString()===qu}function $a(t){var e=t==null?void 0:t.constructor;return e?e.name==="GeneratorFunction"||e.displayName==="GeneratorFunction":!1}function Qn(t,e,n){Oe(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function Ma(t,e,n){Oe(t,e,{enumerable:!1,writable:!1,configurable:!0,value:n})}function st(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(i){return Yn(i)&&i[n]===!0}}function At(t){return t!=null&&Object.prototype.toString.call(t)==="[object Map]"}function Gu(t){var e=Object.getPrototypeOf(t),n=Object.getPrototypeOf(e),i=Object.getPrototypeOf(n);return i===null}function Ce(t){return t!=null&&Object.prototype.toString.call(t)==="[object Set]"}var Ua=typeof Object.getOwnPropertySymbols!="undefined";function Ku(t){var e=Object.keys(t);if(!Ua)return e;var n=Object.getOwnPropertySymbols(t);return n.length?[].concat(e,n.filter(function(i){return Jn.propertyIsEnumerable.call(t,i)})):e}var Xn=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Ua?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames;function Va(t){return t===null?null:typeof t=="object"?""+t:t}function Re(t,e){return Jn.hasOwnProperty.call(t,e)}var Wu=Object.getOwnPropertyDescriptors||function(e){var n={};return Xn(e).forEach(function(i){n[i]=Cn(e,i)}),n};function ae(t,e){return!!(t&e)}function oe(t,e,n){return n?t|=e:t&=~e,t}function ls(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function Ju(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Qu(i.key),i)}}function Ot(t,e,n){return e&&Ju(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function kt(t,e){var n=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Xu(t))||e){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
25
25
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ze(){return ze=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ze.apply(null,arguments)}function ja(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,nr(t,e)}function nr(t,e){return nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nr(t,e)}function Yu(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function Qu(t){var e=Yu(t,"string");return typeof e=="symbol"?e:e+""}function Xu(t,e){if(t){if(typeof t=="string")return ls(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ls(t,e):void 0}}var Ee=Symbol("mobx-stored-annotations");function we(t){function e(n,i){if(sn(i))return t.decorate_20223_(n,i);wt(n,i,t)}return Object.assign(e,t)}function wt(t,e,n){Re(t,Ee)||Qn(t,Ee,ze({},t[Ee])),oc(n)||(t[Ee][e]=n)}function Zu(t){return Re(t,Ee)||Qn(t,Ee,ze({},t[Ee])),t[Ee]}function sn(t){return typeof t=="object"&&typeof t.kind=="string"}var P=Symbol("mobx administration"),Ge=function(){function t(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=j.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var e=t.prototype;return e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.reportObserved=function(){return io(this)},e.reportChanged=function(){he(),ro(this),pe()},e.toString=function(){return this.name_},Ot(t,[{key:"isBeingObserved",get:function(){return ae(this.flags_,t.isBeingObservedMask_)},set:function(i){this.flags_=oe(this.flags_,t.isBeingObservedMask_,i)}},{key:"isPendingUnobservation",get:function(){return ae(this.flags_,t.isPendingUnobservationMask_)},set:function(i){this.flags_=oe(this.flags_,t.isPendingUnobservationMask_,i)}},{key:"diffValue",get:function(){return ae(this.flags_,t.diffValueMask_)?1:0},set:function(i){this.flags_=oe(this.flags_,t.diffValueMask_,i===1)}}])}();Ge.isBeingObservedMask_=1;Ge.isPendingUnobservationMask_=2;Ge.diffValueMask_=4;var Dr=st("Atom",Ge);function Ba(t,e,n){e===void 0&&(e=vt),n===void 0&&(n=vt);var i=new Ge(t);return e!==vt&&cd(i,e),n!==vt&&co(i,n),i}function ec(t,e){return t===e}function tc(t,e){return Mr(t,e)}function nc(t,e){return Mr(t,e,1)}function ic(t,e){return Object.is?Object.is(t,e):t===e?t!==0||1/t===1/e:t!==t&&e!==e}var _t={identity:ec,structural:tc,default:ic,shallow:nc};function et(t,e,n){return po(t)?t:Array.isArray(t)?W.array(t,{name:n}):He(t)?W.object(t,void 0,{name:n}):At(t)?W.map(t,{name:n}):Ce(t)?W.set(t,{name:n}):typeof t=="function"&&!ri(t)&&!Jt(t)?$a(t)?bt(t):Wt(n,t):t}function rc(t,e,n){if(t==null||oi(t)||ai(t)||ot(t)||Tt(t))return t;if(Array.isArray(t))return W.array(t,{name:n,deep:!1});if(He(t))return W.object(t,void 0,{name:n,deep:!1});if(At(t))return W.map(t,{name:n,deep:!1});if(Ce(t))return W.set(t,{name:n,deep:!1})}function Zn(t){return t}function sc(t,e){return Mr(t,e)?e:t}var ac="override";function oc(t){return t.annotationType_===ac}function an(t,e){return{annotationType_:t,options_:e,make_:lc,extend_:uc,decorate_20223_:cc}}function lc(t,e,n,i){var r;if((r=this.options_)!=null&&r.bound)return this.extend_(t,e,n,!1)===null?0:1;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if(ri(n.value))return 1;var s=Ha(t,this,e,n,!1);return Oe(i,e,s),2}function uc(t,e,n,i){var r=Ha(t,this,e,n);return t.defineProperty_(e,r,i)}function cc(t,e){var n=e.kind,i=e.name,r=e.addInitializer,s=this,a=function(u){var c,d,f,v;return qe((c=(d=s.options_)==null?void 0:d.name)!=null?c:i.toString(),u,(f=(v=s.options_)==null?void 0:v.autoAction)!=null?f:!1)};if(n=="field"){r(function(){wt(this,i,s)});return}if(n=="method"){var o;return ri(t)||(t=a(t)),(o=this.options_)!=null&&o.bound&&r(function(){var l=this,u=l[i].bind(l);u.isMobxAction=!0,l[i]=u}),t}B("Cannot apply '"+s.annotationType_+"' to '"+String(i)+"' (kind: "+n+"):"+(`
|
|
26
26
|
'`+s.annotationType_+"' can only be used on properties with a function value."))}function dc(t,e,n,i){e.annotationType_,i.value}function Ha(t,e,n,i,r){var s,a,o,l,u,c,d;r===void 0&&(r=w.safeDescriptors),dc(t,e,n,i);var f=i.value;if((s=e.options_)!=null&&s.bound){var v;f=f.bind((v=t.proxy_)!=null?v:t.target_)}return{value:qe((a=(o=e.options_)==null?void 0:o.name)!=null?a:n.toString(),f,(l=(u=e.options_)==null?void 0:u.autoAction)!=null?l:!1,(c=e.options_)!=null&&c.bound?(d=t.proxy_)!=null?d:t.target_:void 0),configurable:r?t.isPlainObject_:!0,enumerable:!1,writable:!r}}function za(t,e){return{annotationType_:t,options_:e,make_:fc,extend_:hc,decorate_20223_:pc}}function fc(t,e,n,i){var r;if(i===t.target_)return this.extend_(t,e,n,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!Re(t.target_,e)||!Jt(t.target_[e]))&&this.extend_(t,e,n,!1)===null)return 0;if(Jt(n.value))return 1;var s=qa(t,this,e,n,!1,!1);return Oe(i,e,s),2}function hc(t,e,n,i){var r,s=qa(t,this,e,n,(r=this.options_)==null?void 0:r.bound);return t.defineProperty_(e,s,i)}function pc(t,e){var n,i=e.name,r=e.addInitializer;return Jt(t)||(t=bt(t)),(n=this.options_)!=null&&n.bound&&r(function(){var s=this,a=s[i].bind(s);a.isMobXFlow=!0,s[i]=a}),t}function mc(t,e,n,i){e.annotationType_,i.value}function qa(t,e,n,i,r,s){s===void 0&&(s=w.safeDescriptors),mc(t,e,n,i);var a=i.value;if(Jt(a)||(a=bt(a)),r){var o;a=a.bind((o=t.proxy_)!=null?o:t.target_),a.isMobXFlow=!0}return{value:a,configurable:s?t.isPlainObject_:!0,enumerable:!1,writable:!s}}function Ir(t,e){return{annotationType_:t,options_:e,make_:gc,extend_:vc,decorate_20223_:kc}}function gc(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function vc(t,e,n,i){return yc(t,this,e,n),t.defineComputedProperty_(e,ze({},this.options_,{get:n.get,set:n.set}),i)}function kc(t,e){var n=this,i=e.name,r=e.addInitializer;return r(function(){var s=Ct(this)[P],a=ze({},n.options_,{get:t,context:this});a.name||(a.name="ObservableObject."+i.toString()),s.values_.set(i,new _e(a))}),function(){return this[P].getObservablePropValue_(i)}}function yc(t,e,n,i){e.annotationType_,i.get}function ei(t,e){return{annotationType_:t,options_:e,make_:_c,extend_:bc,decorate_20223_:Sc}}function _c(t,e,n){return this.extend_(t,e,n,!1)===null?0:1}function bc(t,e,n,i){var r,s;return Nc(t,this),t.defineObservableProperty_(e,n.value,(r=(s=this.options_)==null?void 0:s.enhancer)!=null?r:et,i)}function Sc(t,e){var n=this,i=e.kind,r=e.name,s=new WeakSet;function a(o,l){var u,c,d=Ct(o)[P],f=new Qe(l,(u=(c=n.options_)==null?void 0:c.enhancer)!=null?u:et,"ObservableObject."+r.toString(),!1);d.values_.set(r,f),s.add(o)}if(i=="accessor")return{get:function(){return s.has(this)||a(this,t.get.call(this)),this[P].getObservablePropValue_(r)},set:function(l){return s.has(this)||a(this,l),this[P].setObservablePropValue_(r,l)},init:function(l){return s.has(this)||a(this,l),l}}}function Nc(t,e,n,i){e.annotationType_}var Ec="true",Ac=Ga();function Ga(t){return{annotationType_:Ec,options_:t,make_:Oc,extend_:wc,decorate_20223_:Tc}}function Oc(t,e,n,i){var r,s;if(n.get)return Ue.make_(t,e,n,i);if(n.set){var a=qe(e.toString(),n.set);return i===t.target_?t.defineProperty_(e,{configurable:w.safeDescriptors?t.isPlainObject_:!0,set:a})===null?0:2:(Oe(i,e,{configurable:!0,set:a}),2)}if(i!==t.target_&&typeof n.value=="function"){var o;if($a(n.value)){var l,u=(l=this.options_)!=null&&l.autoBind?bt.bound:bt;return u.make_(t,e,n,i)}var c=(o=this.options_)!=null&&o.autoBind?Wt.bound:Wt;return c.make_(t,e,n,i)}var d=((r=this.options_)==null?void 0:r.deep)===!1?W.ref:W;if(typeof n.value=="function"&&(s=this.options_)!=null&&s.autoBind){var f;n.value=n.value.bind((f=t.proxy_)!=null?f:t.target_)}return d.make_(t,e,n,i)}function wc(t,e,n,i){var r,s;if(n.get)return Ue.extend_(t,e,n,i);if(n.set)return t.defineProperty_(e,{configurable:w.safeDescriptors?t.isPlainObject_:!0,set:qe(e.toString(),n.set)},i);if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var a;n.value=n.value.bind((a=t.proxy_)!=null?a:t.target_)}var o=((s=this.options_)==null?void 0:s.deep)===!1?W.ref:W;return o.extend_(t,e,n,i)}function Tc(t,e){B("'"+this.annotationType_+"' cannot be used as a decorator")}var Cc="observable",xc="observable.ref",Rc="observable.shallow",Fc="observable.struct",Ka={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Ka);function pn(t){return t||Ka}var ir=ei(Cc),Dc=ei(xc,{enhancer:Zn}),Ic=ei(Rc,{enhancer:rc}),Pc=ei(Fc,{enhancer:sc}),Wa=we(ir);function mn(t){return t.deep===!0?et:t.deep===!1?Zn:$c(t.defaultDecorator)}function Lc(t){var e;return t?(e=t.defaultDecorator)!=null?e:Ga(t):void 0}function $c(t){var e,n;return t&&(e=(n=t.options_)==null?void 0:n.enhancer)!=null?e:et}function Ja(t,e,n){if(sn(e))return ir.decorate_20223_(t,e);if(Ze(e)){wt(t,e,ir);return}return po(t)?t:He(t)?W.object(t,e,n):Array.isArray(t)?W.array(t,e):At(t)?W.map(t,e):Ce(t)?W.set(t,e):typeof t=="object"&&t!==null?t:W.box(t,e)}Ia(Ja,Wa);var Mc={box:function(e,n){var i=pn(n);return new Qe(e,mn(i),i.name,!0,i.equals)},array:function(e,n){var i=pn(n);return(w.useProxies===!1||i.proxy===!1?Fd:Sd)(e,mn(i),i.name)},map:function(e,n){var i=pn(n);return new vo(e,mn(i),i.name)},set:function(e,n){var i=pn(n);return new ko(e,mn(i),i.name)},object:function(e,n,i){return lt(function(){return dd(w.useProxies===!1||(i==null?void 0:i.proxy)===!1?Ct({},i):kd({},i),e,n)})},ref:we(Dc),shallow:we(Ic),deep:Wa,struct:we(Pc)},W=Ia(Ja,Mc),Ya="computed",Uc="computed.struct",rr=Ir(Ya),Vc=Ir(Uc,{equals:_t.structural}),Ue=function(e,n){if(sn(n))return rr.decorate_20223_(e,n);if(Ze(n))return wt(e,n,rr);if(He(e))return we(Ir(Ya,e));var i=He(n)?n:{};return i.get=e,i.name||(i.name=e.name||""),new _e(i)};Object.assign(Ue,rr);Ue.struct=we(Vc);var us,cs,xn=0,jc=1,Bc=(us=(cs=Cn(function(){},"name"))==null?void 0:cs.configurable)!=null?us:!1,ds={value:"action",configurable:!0,writable:!1,enumerable:!1};function qe(t,e,n,i){n===void 0&&(n=!1);function r(){return Hc(t,n,e,i||this,arguments)}return r.isMobxAction=!0,r.toString=function(){return e.toString()},Bc&&(ds.value=t,Oe(r,"name",ds)),r}function Hc(t,e,n,i,r){var s=zc(t,e);try{return n.apply(i,r)}catch(a){throw s.error_=a,a}finally{qc(s)}}function zc(t,e,n,i){var r=!1,s=0,a=w.trackingDerivation,o=!e||!a;he();var l=w.allowStateChanges;o&&(at(),l=ti(!0));var u=Pr(!0),c={runAsAction_:o,prevDerivation_:a,prevAllowStateChanges_:l,prevAllowStateReads_:u,notifySpy_:r,startTime_:s,actionId_:jc++,parentActionId_:xn};return xn=c.actionId_,c}function qc(t){xn!==t.actionId_&&B(30),xn=t.parentActionId_,t.error_!==void 0&&(w.suppressReactionErrors=!0),ni(t.prevAllowStateChanges_),Vt(t.prevAllowStateReads_),pe(),t.runAsAction_&&Fe(t.prevDerivation_),w.suppressReactionErrors=!1}function Qa(t,e){var n=ti(t);try{return e()}finally{ni(n)}}function ti(t){var e=w.allowStateChanges;return w.allowStateChanges=t,e}function ni(t){w.allowStateChanges=t}var Qe=function(t){function e(i,r,s,a,o){var l;return s===void 0&&(s="ObservableValue"),o===void 0&&(o=_t.default),l=t.call(this,s)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=r,l.name_=s,l.equals=o,l.value_=r(i,void 0,s),l}ja(e,t);var n=e.prototype;return n.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},n.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==w.UNCHANGED&&this.setNewValue_(r)},n.prepareNewValue_=function(r){if(de(this)){var s=fe(this,{object:this,type:Te,newValue:r});if(!s)return w.UNCHANGED;r=s.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?w.UNCHANGED:r},n.setNewValue_=function(r){var s=this.value_;this.value_=r,this.reportChanged(),ve(this)&&ke(this,{type:Te,object:this,newValue:r,oldValue:s})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(r){return on(this,r)},n.observe_=function(r,s){return s&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:Te,newValue:this.value_,oldValue:void 0}),ln(this,r)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Va(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},e}(Ge),_e=function(){function t(n){this.dependenciesState_=j.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=j.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Fn(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Rn.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||B(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=qe("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?_t.structural:_t.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var e=t.prototype;return e.onBecomeStale_=function(){Jc(this)},e.onBO=function(){this.onBOL&&this.onBOL.forEach(function(i){return i()})},e.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(i){return i()})},e.get=function(){if(this.isComputing&&B(32,this.name_,this.derivation),w.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)sr(this)&&(this.warnAboutUntrackedRead_(),he(),this.value_=this.computeValue_(!1),pe());else if(io(this),sr(this)){var i=w.trackingContext;this.keepAlive_&&!i&&(w.trackingContext=this),this.trackAndCompute()&&Wc(this),w.trackingContext=i}var r=this.value_;if(bn(r))throw r.cause;return r},e.set=function(i){if(this.setter_){this.isRunningSetter&&B(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,i)}finally{this.isRunningSetter=!1}}else B(34,this.name_)},e.trackAndCompute=function(){var i=this.value_,r=this.dependenciesState_===j.NOT_TRACKING_,s=this.computeValue_(!0),a=r||bn(i)||bn(s)||!this.equals_(i,s);return a&&(this.value_=s),a},e.computeValue_=function(i){this.isComputing=!0;var r=ti(!1),s;if(i)s=Xa(this,this.derivation,this.scope_);else if(w.disableErrorBoundaries===!0)s=this.derivation.call(this.scope_);else try{s=this.derivation.call(this.scope_)}catch(a){s=new Fn(a)}return ni(r),this.isComputing=!1,s},e.suspend_=function(){this.keepAlive_||(ar(this),this.value_=void 0)},e.observe_=function(i,r){var s=this,a=!0,o=void 0;return si(function(){var l=s.get();if(!a||r){var u=at();i({observableKind:"computed",debugObjectName:s.name_,type:Te,object:s,newValue:l,oldValue:o}),Fe(u)}a=!1,o=l})},e.warnAboutUntrackedRead_=function(){},e.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},e.valueOf=function(){return Va(this.get())},e[Symbol.toPrimitive]=function(){return this.valueOf()},Ot(t,[{key:"isComputing",get:function(){return ae(this.flags_,t.isComputingMask_)},set:function(i){this.flags_=oe(this.flags_,t.isComputingMask_,i)}},{key:"isRunningSetter",get:function(){return ae(this.flags_,t.isRunningSetterMask_)},set:function(i){this.flags_=oe(this.flags_,t.isRunningSetterMask_,i)}},{key:"isBeingObserved",get:function(){return ae(this.flags_,t.isBeingObservedMask_)},set:function(i){this.flags_=oe(this.flags_,t.isBeingObservedMask_,i)}},{key:"isPendingUnobservation",get:function(){return ae(this.flags_,t.isPendingUnobservationMask_)},set:function(i){this.flags_=oe(this.flags_,t.isPendingUnobservationMask_,i)}},{key:"diffValue",get:function(){return ae(this.flags_,t.diffValueMask_)?1:0},set:function(i){this.flags_=oe(this.flags_,t.diffValueMask_,i===1)}}])}();_e.isComputingMask_=1;_e.isRunningSetterMask_=2;_e.isBeingObservedMask_=4;_e.isPendingUnobservationMask_=8;_e.diffValueMask_=16;var ii=st("ComputedValue",_e),j;(function(t){t[t.NOT_TRACKING_=-1]="NOT_TRACKING_",t[t.UP_TO_DATE_=0]="UP_TO_DATE_",t[t.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",t[t.STALE_=2]="STALE_"})(j||(j={}));var Rn;(function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"})(Rn||(Rn={}));var Fn=function(e){this.cause=void 0,this.cause=e};function bn(t){return t instanceof Fn}function sr(t){switch(t.dependenciesState_){case j.UP_TO_DATE_:return!1;case j.NOT_TRACKING_:case j.STALE_:return!0;case j.POSSIBLY_STALE_:{for(var e=Pr(!0),n=at(),i=t.observing_,r=i.length,s=0;s<r;s++){var a=i[s];if(ii(a)){if(w.disableErrorBoundaries)a.get();else try{a.get()}catch{return Fe(n),Vt(e),!0}if(t.dependenciesState_===j.STALE_)return Fe(n),Vt(e),!0}}return eo(t),Fe(n),Vt(e),!1}}}function Xa(t,e,n){var i=Pr(!0);eo(t),t.newObserving_=new Array(t.runId_===0?100:t.observing_.length),t.unboundDepsCount_=0,t.runId_=++w.runId;var r=w.trackingDerivation;w.trackingDerivation=t,w.inBatch++;var s;if(w.disableErrorBoundaries===!0)s=e.call(n);else try{s=e.call(n)}catch(a){s=new Fn(a)}return w.inBatch--,w.trackingDerivation=r,Gc(t),Vt(i),s}function Gc(t){for(var e=t.observing_,n=t.observing_=t.newObserving_,i=j.UP_TO_DATE_,r=0,s=t.unboundDepsCount_,a=0;a<s;a++){var o=n[a];o.diffValue===0&&(o.diffValue=1,r!==a&&(n[r]=o),r++),o.dependenciesState_>i&&(i=o.dependenciesState_)}for(n.length=r,t.newObserving_=null,s=e.length;s--;){var l=e[s];l.diffValue===0&&to(l,t),l.diffValue=0}for(;r--;){var u=n[r];u.diffValue===1&&(u.diffValue=0,Kc(u,t))}i!==j.UP_TO_DATE_&&(t.dependenciesState_=i,t.onBecomeStale_())}function ar(t){var e=t.observing_;t.observing_=[];for(var n=e.length;n--;)to(e[n],t);t.dependenciesState_=j.NOT_TRACKING_}function Za(t){var e=at();try{return t()}finally{Fe(e)}}function at(){var t=w.trackingDerivation;return w.trackingDerivation=null,t}function Fe(t){w.trackingDerivation=t}function Pr(t){var e=w.allowStateReads;return w.allowStateReads=t,e}function Vt(t){w.allowStateReads=t}function eo(t){if(t.dependenciesState_!==j.UP_TO_DATE_){t.dependenciesState_=j.UP_TO_DATE_;for(var e=t.observing_,n=e.length;n--;)e[n].lowestObserverState_=j.UP_TO_DATE_}}var xi=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Ri=!0,w=function(){var t=Da();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ri=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new xi().version&&(Ri=!1),Ri?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new xi):(setTimeout(function(){B(35)},1),new xi)}();function Kc(t,e){t.observers_.add(e),t.lowestObserverState_>e.dependenciesState_&&(t.lowestObserverState_=e.dependenciesState_)}function to(t,e){t.observers_.delete(e),t.observers_.size===0&&no(t)}function no(t){t.isPendingUnobservation===!1&&(t.isPendingUnobservation=!0,w.pendingUnobservations.push(t))}function he(){w.inBatch++}function pe(){if(--w.inBatch===0){so();for(var t=w.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof _e&&n.suspend_())}w.pendingUnobservations=[]}}function io(t){var e=w.trackingDerivation;return e!==null?(e.runId_!==t.lastAccessedBy_&&(t.lastAccessedBy_=e.runId_,e.newObserving_[e.unboundDepsCount_++]=t,!t.isBeingObserved&&w.trackingContext&&(t.isBeingObserved=!0,t.onBO())),t.isBeingObserved):(t.observers_.size===0&&w.inBatch>0&&no(t),!1)}function ro(t){t.lowestObserverState_!==j.STALE_&&(t.lowestObserverState_=j.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===j.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=j.STALE_}))}function Wc(t){t.lowestObserverState_!==j.STALE_&&(t.lowestObserverState_=j.STALE_,t.observers_.forEach(function(e){e.dependenciesState_===j.POSSIBLY_STALE_?e.dependenciesState_=j.STALE_:e.dependenciesState_===j.UP_TO_DATE_&&(t.lowestObserverState_=j.UP_TO_DATE_)}))}function Jc(t){t.lowestObserverState_===j.UP_TO_DATE_&&(t.lowestObserverState_=j.POSSIBLY_STALE_,t.observers_.forEach(function(e){e.dependenciesState_===j.UP_TO_DATE_&&(e.dependenciesState_=j.POSSIBLY_STALE_,e.onBecomeStale_())}))}var De=function(){function t(n,i,r,s){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=j.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Rn.NONE,this.name_=n,this.onInvalidate_=i,this.errorHandler_=r,this.requiresObservable_=s}var e=t.prototype;return e.onBecomeStale_=function(){this.schedule_()},e.schedule_=function(){this.isScheduled||(this.isScheduled=!0,w.pendingReactions.push(this),so())},e.runReaction_=function(){if(!this.isDisposed){he(),this.isScheduled=!1;var i=w.trackingContext;if(w.trackingContext=this,sr(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}w.trackingContext=i,pe()}},e.track=function(i){if(!this.isDisposed){he(),this.isRunning=!0;var r=w.trackingContext;w.trackingContext=this;var s=Xa(this,i,void 0);w.trackingContext=r,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ar(this),bn(s)&&this.reportExceptionInDerivation_(s.cause),pe()}},e.reportExceptionInDerivation_=function(i){var r=this;if(this.errorHandler_){this.errorHandler_(i,this);return}if(w.disableErrorBoundaries)throw i;var s="[mobx] uncaught error in '"+this+"'";w.suppressReactionErrors||console.error(s,i),w.globalReactionErrorHandlers.forEach(function(a){return a(i,r)})},e.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(he(),ar(this),pe()))},e.getDisposer_=function(i){var r=this,s=function a(){r.dispose(),i==null||i.removeEventListener==null||i.removeEventListener("abort",a)};return i==null||i.addEventListener==null||i.addEventListener("abort",s),s[P]=this,s},e.toString=function(){return"Reaction["+this.name_+"]"},e.trace=function(i){},Ot(t,[{key:"isDisposed",get:function(){return ae(this.flags_,t.isDisposedMask_)},set:function(i){this.flags_=oe(this.flags_,t.isDisposedMask_,i)}},{key:"isScheduled",get:function(){return ae(this.flags_,t.isScheduledMask_)},set:function(i){this.flags_=oe(this.flags_,t.isScheduledMask_,i)}},{key:"isTrackPending",get:function(){return ae(this.flags_,t.isTrackPendingMask_)},set:function(i){this.flags_=oe(this.flags_,t.isTrackPendingMask_,i)}},{key:"isRunning",get:function(){return ae(this.flags_,t.isRunningMask_)},set:function(i){this.flags_=oe(this.flags_,t.isRunningMask_,i)}},{key:"diffValue",get:function(){return ae(this.flags_,t.diffValueMask_)?1:0},set:function(i){this.flags_=oe(this.flags_,t.diffValueMask_,i===1)}}])}();De.isDisposedMask_=1;De.isScheduledMask_=2;De.isTrackPendingMask_=4;De.isRunningMask_=8;De.diffValueMask_=16;var Yc=100,Qc=function(e){return e()};function so(){w.inBatch>0||w.isRunningReactions||Qc(Xc)}function Xc(){w.isRunningReactions=!0;for(var t=w.pendingReactions,e=0;t.length>0;){++e===Yc&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var n=t.splice(0),i=0,r=n.length;i<r;i++)n[i].runReaction_()}w.isRunningReactions=!1}var Dn=st("Reaction",De);function jt(){return!1}function Zc(t){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var ao="action",ed="action.bound",oo="autoAction",td="autoAction.bound",nd="<unnamed action>",or=an(ao),id=an(ed,{bound:!0}),lr=an(oo,{autoAction:!0}),rd=an(td,{autoAction:!0,bound:!0});function lo(t){var e=function(i,r){if(ye(i))return qe(i.name||nd,i,t);if(ye(r))return qe(i,r,t);if(sn(r))return(t?lr:or).decorate_20223_(i,r);if(Ze(r))return wt(i,r,t?lr:or);if(Ze(i))return we(an(t?oo:ao,{name:i,autoAction:t}))};return e}var se=lo(!1);Object.assign(se,or);var Wt=lo(!0);Object.assign(Wt,lr);se.bound=we(id);Wt.bound=we(rd);function ri(t){return ye(t)&&t.isMobxAction===!0}function si(t,e){var n,i,r,s;e===void 0&&(e=Fr);var a=(n=(i=e)==null?void 0:i.name)!=null?n:"Autorun",o=!e.scheduler&&!e.delay,l;if(o)l=new De(a,function(){this.track(d)},e.onError,e.requiresObservable);else{var u=uo(e),c=!1;l=new De(a,function(){c||(c=!0,u(function(){c=!1,l.isDisposed||l.track(d)}))},e.onError,e.requiresObservable)}function d(){t(l)}return(r=e)!=null&&(r=r.signal)!=null&&r.aborted||l.schedule_(),l.getDisposer_((s=e)==null?void 0:s.signal)}var sd=function(e){return e()};function uo(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:sd}function ad(t,e,n){var i,r,s;n===void 0&&(n=Fr);var a=(i=n.name)!=null?i:"Reaction",o=se(a,n.onError?od(n.onError,e):e),l=!n.scheduler&&!n.delay,u=uo(n),c=!0,d=!1,f,v=n.compareStructural?_t.structural:n.equals||_t.default,g=new De(a,function(){c||l?m():d||(d=!0,u(m))},n.onError,n.requiresObservable);function m(){if(d=!1,!g.isDisposed){var p=!1,h=f;g.track(function(){var _=Qa(!1,function(){return t(g)});p=c||!v(f,_),f=_}),(c&&n.fireImmediately||!c&&p)&&o(f,h,g),c=!1}}return(r=n)!=null&&(r=r.signal)!=null&&r.aborted||g.schedule_(),g.getDisposer_((s=n)==null?void 0:s.signal)}function od(t,e){return function(){try{return e.apply(this,arguments)}catch(n){t.call(this,n)}}}var ld="onBO",ud="onBUO";function cd(t,e,n){return fo(ld,t,e,n)}function co(t,e,n){return fo(ud,t,e,n)}function fo(t,e,n,i){var r=ur(e),s=ye(i)?i:n,a=t+"L";return r[a]?r[a].add(s):r[a]=new Set([s]),function(){var o=r[a];o&&(o.delete(s),o.size===0&&delete r[a])}}function dd(t,e,n,i){var r=Wu(e);return lt(function(){var s=Ct(t,i)[P];Xn(r).forEach(function(a){s.extend_(a,r[a],n&&a in n?n[a]:!0)})}),t}var fd=0;function ho(){this.message="FLOW_CANCELLED"}ho.prototype=Object.create(Error.prototype);var Fi=za("flow"),hd=za("flow.bound",{bound:!0}),bt=Object.assign(function(e,n){if(sn(n))return Fi.decorate_20223_(e,n);if(Ze(n))return wt(e,n,Fi);var i=e,r=i.name||"<unnamed flow>",s=function(){var o=this,l=arguments,u=++fd,c=se(r+" - runid: "+u+" - init",i).apply(o,l),d,f=void 0,v=new Promise(function(g,m){var p=0;d=m;function h(b){f=void 0;var E;try{E=se(r+" - runid: "+u+" - yield "+p++,c.next).call(c,b)}catch(O){return m(O)}N(E)}function _(b){f=void 0;var E;try{E=se(r+" - runid: "+u+" - yield "+p++,c.throw).call(c,b)}catch(O){return m(O)}N(E)}function N(b){if(ye(b==null?void 0:b.then)){b.then(N,m);return}return b.done?g(b.value):(f=Promise.resolve(b.value),f.then(h,_))}h(void 0)});return v.cancel=se(r+" - runid: "+u+" - cancel",function(){try{f&&fs(f);var g=c.return(void 0),m=Promise.resolve(g.value);m.then(vt,vt),fs(m),d(new ho)}catch(p){d(p)}}),v};return s.isMobXFlow=!0,s},Fi);bt.bound=we(hd);function fs(t){ye(t.cancel)&&t.cancel()}function Jt(t){return(t==null?void 0:t.isMobXFlow)===!0}function pd(t,e){return t?oi(t)||!!t[P]||Dr(t)||Dn(t)||ii(t):!1}function po(t){return pd(t)}function xe(t,e){e===void 0&&(e=void 0),he();try{return t.apply(e)}finally{pe()}}function md(t,e,n){return arguments.length===1||e&&typeof e=="object"?gd(t,e):mo(t,e,{})}function mo(t,e,n){var i;if(typeof n.timeout=="number"){var r=new Error("WHEN_TIMEOUT");i=setTimeout(function(){if(!a[P].isDisposed)if(a(),n.onError)n.onError(r);else throw r},n.timeout)}n.name="When";var s=qe("When-effect",e),a=si(function(o){var l=Qa(!1,t);l&&(o.dispose(),i&&clearTimeout(i),s())},n);return a}function gd(t,e){var n;if(e!=null&&(n=e.signal)!=null&&n.aborted)return Object.assign(Promise.reject(new Error("WHEN_ABORTED")),{cancel:function(){return null}});var i,r,s=new Promise(function(a,o){var l,u=mo(t,a,ze({},e,{onError:o}));i=function(){u(),o(new Error("WHEN_CANCELLED"))},r=function(){u(),o(new Error("WHEN_ABORTED"))},e==null||(l=e.signal)==null||l.addEventListener==null||l.addEventListener("abort",r)}).finally(function(){var a;return e==null||(a=e.signal)==null||a.removeEventListener==null?void 0:a.removeEventListener("abort",r)});return s.cancel=i,s}function dt(t){return t[P]}var vd={has:function(e,n){return dt(e).has_(n)},get:function(e,n){return dt(e).get_(n)},set:function(e,n,i){var r;return Ze(n)?(r=dt(e).set_(n,i,!0))!=null?r:!0:!1},deleteProperty:function(e,n){var i;return Ze(n)?(i=dt(e).delete_(n,!0))!=null?i:!0:!1},defineProperty:function(e,n,i){var r;return(r=dt(e).defineProperty_(n,i))!=null?r:!0},ownKeys:function(e){return dt(e).ownKeys_()},preventExtensions:function(e){B(13)}};function kd(t,e){var n,i;return Pa(),t=Ct(t,e),(i=(n=t[P]).proxy_)!=null?i:n.proxy_=new Proxy(t,vd)}function de(t){return t.interceptors_!==void 0&&t.interceptors_.length>0}function on(t,e){var n=t.interceptors_||(t.interceptors_=[]);return n.push(e),La(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function fe(t,e){var n=at();try{for(var i=[].concat(t.interceptors_||[]),r=0,s=i.length;r<s&&(e=i[r](e),e&&!e.type&&B(14),!!e);r++);return e}finally{Fe(n)}}function ve(t){return t.changeListeners_!==void 0&&t.changeListeners_.length>0}function ln(t,e){var n=t.changeListeners_||(t.changeListeners_=[]);return n.push(e),La(function(){var i=n.indexOf(e);i!==-1&&n.splice(i,1)})}function ke(t,e){var n=at(),i=t.changeListeners_;if(i){i=i.slice();for(var r=0,s=i.length;r<s;r++)i[r](e);Fe(n)}}function yd(t,e,n){return lt(function(){var i,r=Ct(t,n)[P];(i=e)!=null||(e=Zu(t)),Xn(e).forEach(function(s){return r.make_(s,e[s])})}),t}var hs="splice",Te="update",_d=1e4,bd={get:function(e,n){var i=e[P];return n===P?i:n==="length"?i.getArrayLength_():typeof n=="string"&&!isNaN(n)?i.get_(parseInt(n)):Re(In,n)?In[n]:e[n]},set:function(e,n,i){var r=e[P];return n==="length"&&r.setArrayLength_(i),typeof n=="symbol"||isNaN(n)?e[n]=i:r.set_(parseInt(n),i),!0},preventExtensions:function(){B(15)}},Lr=function(){function t(n,i,r,s){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=r,this.legacyMode_=s,this.atom_=new Ge(n),this.enhancer_=function(a,o){return i(a,o,"ObservableArray[..]")}}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.dehanceValues_=function(i){return this.dehancer!==void 0&&i.length>0?i.map(this.dehancer):i},e.intercept_=function(i){return on(this,i)},e.observe_=function(i,r){return r===void 0&&(r=!1),r&&i({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),ln(this,i)},e.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},e.setArrayLength_=function(i){(typeof i!="number"||isNaN(i)||i<0)&&B("Out of range: "+i);var r=this.values_.length;if(i!==r)if(i>r){for(var s=new Array(i-r),a=0;a<i-r;a++)s[a]=void 0;this.spliceWithArray_(r,0,s)}else this.spliceWithArray_(i,r-i)},e.updateArrayLength_=function(i,r){i!==this.lastKnownLength_&&B(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&So(i+r+1)},e.spliceWithArray_=function(i,r,s){var a=this;this.atom_;var o=this.values_.length;if(i===void 0?i=0:i>o?i=o:i<0&&(i=Math.max(0,o+i)),arguments.length===1?r=o-i:r==null?r=0:r=Math.max(0,Math.min(r,o-i)),s===void 0&&(s=tr),de(this)){var l=fe(this,{object:this.proxy_,type:hs,index:i,removedCount:r,added:s});if(!l)return tr;r=l.removedCount,s=l.added}if(s=s.length===0?s:s.map(function(d){return a.enhancer_(d,void 0)}),this.legacyMode_){var u=s.length-r;this.updateArrayLength_(o,u)}var c=this.spliceItemsIntoValues_(i,r,s);return(r!==0||s.length!==0)&&this.notifyArraySplice_(i,s,c),this.dehanceValues_(c)},e.spliceItemsIntoValues_=function(i,r,s){if(s.length<_d){var a;return(a=this.values_).splice.apply(a,[i,r].concat(s))}else{var o=this.values_.slice(i,i+r),l=this.values_.slice(i+r);this.values_.length+=s.length-r;for(var u=0;u<s.length;u++)this.values_[i+u]=s[u];for(var c=0;c<l.length;c++)this.values_[i+s.length+c]=l[c];return o}},e.notifyArrayChildUpdate_=function(i,r,s){var a=!this.owned_&&jt(),o=ve(this),l=o||a?{observableKind:"array",object:this.proxy_,type:Te,debugObjectName:this.atom_.name_,index:i,newValue:r,oldValue:s}:null;this.atom_.reportChanged(),o&&ke(this,l)},e.notifyArraySplice_=function(i,r,s){var a=!this.owned_&&jt(),o=ve(this),l=o||a?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:hs,index:i,removed:s,added:r,removedCount:s.length,addedCount:r.length}:null;this.atom_.reportChanged(),o&&ke(this,l)},e.get_=function(i){if(this.legacyMode_&&i>=this.values_.length){console.warn("[mobx] Out of bounds read: "+i);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[i])},e.set_=function(i,r){var s=this.values_;if(this.legacyMode_&&i>s.length&&B(17,i,s.length),i<s.length){this.atom_;var a=s[i];if(de(this)){var o=fe(this,{type:Te,object:this.proxy_,index:i,newValue:r});if(!o)return;r=o.newValue}r=this.enhancer_(r,a);var l=r!==a;l&&(s[i]=r,this.notifyArrayChildUpdate_(i,r,a))}else{for(var u=new Array(i+1-s.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=r,this.spliceWithArray_(s.length,0,u)}},t}();function Sd(t,e,n,i){return n===void 0&&(n="ObservableArray"),i===void 0&&(i=!1),Pa(),lt(function(){var r=new Lr(n,e,i,!1);Ma(r.values_,P,r);var s=new Proxy(r.values_,bd);return r.proxy_=s,t&&t.length&&r.spliceWithArray_(0,0,t),s})}var In={clear:function(){return this.splice(0)},replace:function(e){var n=this[P];return n.spliceWithArray_(0,n.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),s=2;s<i;s++)r[s-2]=arguments[s];var a=this[P];switch(arguments.length){case 0:return[];case 1:return a.spliceWithArray_(e);case 2:return a.spliceWithArray_(e,n)}return a.spliceWithArray_(e,n,r)},spliceWithArray:function(e,n,i){return this[P].spliceWithArray_(e,n,i)},push:function(){for(var e=this[P],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,i),e.values_.length},pop:function(){return this.splice(Math.max(this[P].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[P],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.spliceWithArray_(0,0,i),e.values_.length},reverse:function(){return w.trackingDerivation&&B(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){w.trackingDerivation&&B(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var n=this[P],i=n.dehanceValues_(n.values_).indexOf(e);return i>-1?(this.splice(i,1),!0):!1}};G("at",ue);G("concat",ue);G("flat",ue);G("includes",ue);G("indexOf",ue);G("join",ue);G("lastIndexOf",ue);G("slice",ue);G("toString",ue);G("toLocaleString",ue);G("toSorted",ue);G("toSpliced",ue);G("with",ue);G("every",be);G("filter",be);G("find",be);G("findIndex",be);G("findLast",be);G("findLastIndex",be);G("flatMap",be);G("forEach",be);G("map",be);G("some",be);G("toReversed",be);G("reduce",go);G("reduceRight",go);function G(t,e){typeof Array.prototype[t]=="function"&&(In[t]=e(t))}function ue(t){return function(){var e=this[P];e.atom_.reportObserved();var n=e.dehanceValues_(e.values_);return n[t].apply(n,arguments)}}function be(t){return function(e,n){var i=this,r=this[P];r.atom_.reportObserved();var s=r.dehanceValues_(r.values_);return s[t](function(a,o){return e.call(n,a,o,i)})}}function go(t){return function(){var e=this,n=this[P];n.atom_.reportObserved();var i=n.dehanceValues_(n.values_),r=arguments[0];return arguments[0]=function(s,a,o){return r(s,a,o,e)},i[t].apply(i,arguments)}}var Nd=st("ObservableArrayAdministration",Lr);function ai(t){return Yn(t)&&Nd(t[P])}var Ed={},Ve="add",Pn="delete",vo=function(){function t(n,i,r){var s=this;i===void 0&&(i=et),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[P]=Ed,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=i,this.name_=r,ye(Map)||B(18),lt(function(){s.keysAtom_=Ba("ObservableMap.keys()"),s.data_=new Map,s.hasMap_=new Map,n&&s.merge(n)})}var e=t.prototype;return e.has_=function(i){return this.data_.has(i)},e.has=function(i){var r=this;if(!w.trackingDerivation)return this.has_(i);var s=this.hasMap_.get(i);if(!s){var a=s=new Qe(this.has_(i),Zn,"ObservableMap.key?",!1);this.hasMap_.set(i,a),co(a,function(){return r.hasMap_.delete(i)})}return s.get()},e.set=function(i,r){var s=this.has_(i);if(de(this)){var a=fe(this,{type:s?Te:Ve,object:this,newValue:r,name:i});if(!a)return this;r=a.newValue}return s?this.updateValue_(i,r):this.addValue_(i,r),this},e.delete=function(i){var r=this;if(this.keysAtom_,de(this)){var s=fe(this,{type:Pn,object:this,name:i});if(!s)return!1}if(this.has_(i)){var a=jt(),o=ve(this),l=o||a?{observableKind:"map",debugObjectName:this.name_,type:Pn,object:this,oldValue:this.data_.get(i).value_,name:i}:null;return xe(function(){var u;r.keysAtom_.reportChanged(),(u=r.hasMap_.get(i))==null||u.setNewValue_(!1);var c=r.data_.get(i);c.setNewValue_(void 0),r.data_.delete(i)}),o&&ke(this,l),!0}return!1},e.updateValue_=function(i,r){var s=this.data_.get(i);if(r=s.prepareNewValue_(r),r!==w.UNCHANGED){var a=jt(),o=ve(this),l=o||a?{observableKind:"map",debugObjectName:this.name_,type:Te,object:this,oldValue:s.value_,name:i,newValue:r}:null;s.setNewValue_(r),o&&ke(this,l)}},e.addValue_=function(i,r){var s=this;this.keysAtom_,xe(function(){var u,c=new Qe(r,s.enhancer_,"ObservableMap.key",!1);s.data_.set(i,c),r=c.value_,(u=s.hasMap_.get(i))==null||u.setNewValue_(!0),s.keysAtom_.reportChanged()});var a=jt(),o=ve(this),l=o||a?{observableKind:"map",debugObjectName:this.name_,type:Ve,object:this,name:i,newValue:r}:null;o&&ke(this,l)},e.get=function(i){return this.has(i)?this.dehanceValue_(this.data_.get(i).get()):this.dehanceValue_(void 0)},e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},e.values=function(){var i=this,r=this.keys();return Yt({next:function(){var a=r.next(),o=a.done,l=a.value;return{done:o,value:o?void 0:i.get(l)}}})},e.entries=function(){var i=this,r=this.keys();return Yt({next:function(){var a=r.next(),o=a.done,l=a.value;return{done:o,value:o?void 0:[l,i.get(l)]}}})},e[Symbol.iterator]=function(){return this.entries()},e.forEach=function(i,r){for(var s=kt(this),a;!(a=s()).done;){var o=a.value,l=o[0],u=o[1];i.call(r,u,l,this)}},e.merge=function(i){var r=this;return ot(i)&&(i=new Map(i)),xe(function(){He(i)?Ku(i).forEach(function(s){return r.set(s,i[s])}):Array.isArray(i)?i.forEach(function(s){var a=s[0],o=s[1];return r.set(a,o)}):At(i)?(Gu(i)||B(19,i),i.forEach(function(s,a){return r.set(a,s)})):i!=null&&B(20,i)}),this},e.clear=function(){var i=this;xe(function(){Za(function(){for(var r=kt(i.keys()),s;!(s=r()).done;){var a=s.value;i.delete(a)}})})},e.replace=function(i){var r=this;return xe(function(){for(var s=Ad(i),a=new Map,o=!1,l=kt(r.data_.keys()),u;!(u=l()).done;){var c=u.value;if(!s.has(c)){var d=r.delete(c);if(d)o=!0;else{var f=r.data_.get(c);a.set(c,f)}}}for(var v=kt(s.entries()),g;!(g=v()).done;){var m=g.value,p=m[0],h=m[1],_=r.data_.has(p);if(r.set(p,h),r.data_.has(p)){var N=r.data_.get(p);a.set(p,N),_||(o=!0)}}if(!o)if(r.data_.size!==a.size)r.keysAtom_.reportChanged();else for(var b=r.data_.keys(),E=a.keys(),O=b.next(),x=E.next();!O.done;){if(O.value!==x.value){r.keysAtom_.reportChanged();break}O=b.next(),x=E.next()}r.data_=a}),this},e.toString=function(){return"[object ObservableMap]"},e.toJSON=function(){return Array.from(this)},e.observe_=function(i,r){return ln(this,i)},e.intercept_=function(i){return on(this,i)},Ot(t,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),ot=st("ObservableMap",vo);function Ad(t){if(At(t)||ot(t))return t;if(Array.isArray(t))return new Map(t);if(He(t)){var e=new Map;for(var n in t)e.set(n,t[n]);return e}else return B(21,t)}var Od={},ko=function(){function t(n,i,r){var s=this;i===void 0&&(i=et),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[P]=Od,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=r,ye(Set)||B(22),this.enhancer_=function(a,o){return i(a,o,r)},lt(function(){s.atom_=Ba(s.name_),n&&s.replace(n)})}var e=t.prototype;return e.dehanceValue_=function(i){return this.dehancer!==void 0?this.dehancer(i):i},e.clear=function(){var i=this;xe(function(){Za(function(){for(var r=kt(i.data_.values()),s;!(s=r()).done;){var a=s.value;i.delete(a)}})})},e.forEach=function(i,r){for(var s=kt(this),a;!(a=s()).done;){var o=a.value;i.call(r,o,o,this)}},e.add=function(i){var r=this;if(this.atom_,de(this)){var s=fe(this,{type:Ve,object:this,newValue:i});if(!s)return this}if(!this.has(i)){xe(function(){r.data_.add(r.enhancer_(i,void 0)),r.atom_.reportChanged()});var a=!1,o=ve(this),l=o||a?{observableKind:"set",debugObjectName:this.name_,type:Ve,object:this,newValue:i}:null;o&&ke(this,l)}return this},e.delete=function(i){var r=this;if(de(this)){var s=fe(this,{type:Pn,object:this,oldValue:i});if(!s)return!1}if(this.has(i)){var a=!1,o=ve(this),l=o||a?{observableKind:"set",debugObjectName:this.name_,type:Pn,object:this,oldValue:i}:null;return xe(function(){r.atom_.reportChanged(),r.data_.delete(i)}),o&&ke(this,l),!0}return!1},e.has=function(i){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(i))},e.entries=function(){var i=0,r=Array.from(this.keys()),s=Array.from(this.values());return Yt({next:function(){var o=i;return i+=1,o<s.length?{value:[r[o],s[o]],done:!1}:{done:!0}}})},e.keys=function(){return this.values()},e.values=function(){this.atom_.reportObserved();var i=this,r=0,s=Array.from(this.data_.values());return Yt({next:function(){return r<s.length?{value:i.dehanceValue_(s[r++]),done:!1}:{done:!0}}})},e.intersection=function(i){if(Ce(i))return i.intersection(this);var r=new Set(this);return r.intersection(i)},e.union=function(i){if(Ce(i))return i.union(this);var r=new Set(this);return r.union(i)},e.difference=function(i){return new Set(this).difference(i)},e.symmetricDifference=function(i){if(Ce(i))return i.symmetricDifference(this);var r=new Set(this);return r.symmetricDifference(i)},e.isSubsetOf=function(i){return new Set(this).isSubsetOf(i)},e.isSupersetOf=function(i){return new Set(this).isSupersetOf(i)},e.isDisjointFrom=function(i){if(Ce(i))return i.isDisjointFrom(this);var r=new Set(this);return r.isDisjointFrom(i)},e.replace=function(i){var r=this;return Tt(i)&&(i=new Set(i)),xe(function(){Array.isArray(i)?(r.clear(),i.forEach(function(s){return r.add(s)})):Ce(i)?(r.clear(),i.forEach(function(s){return r.add(s)})):i!=null&&B("Cannot initialize set from "+i)}),this},e.observe_=function(i,r){return ln(this,i)},e.intercept_=function(i){return on(this,i)},e.toJSON=function(){return Array.from(this)},e.toString=function(){return"[object ObservableSet]"},e[Symbol.iterator]=function(){return this.values()},Ot(t,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Tt=st("ObservableSet",ko),ps=Object.create(null),ms="remove",yo=function(){function t(n,i,r,s){i===void 0&&(i=new Map),s===void 0&&(s=Ac),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=i,this.name_=r,this.defaultAnnotation_=s,this.keysAtom_=new Ge("ObservableObject.keys"),this.isPlainObject_=He(this.target_)}var e=t.prototype;return e.getObservablePropValue_=function(i){return this.values_.get(i).get()},e.setObservablePropValue_=function(i,r){var s=this.values_.get(i);if(s instanceof _e)return s.set(r),!0;if(de(this)){var a=fe(this,{type:Te,object:this.proxy_||this.target_,name:i,newValue:r});if(!a)return null;r=a.newValue}if(r=s.prepareNewValue_(r),r!==w.UNCHANGED){var o=ve(this),l=!1,u=o||l?{type:Te,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:s.value_,name:i,newValue:r}:null;s.setNewValue_(r),o&&ke(this,u)}return!0},e.get_=function(i){return w.trackingDerivation&&!Re(this.target_,i)&&this.has_(i),this.target_[i]},e.set_=function(i,r,s){return s===void 0&&(s=!1),Re(this.target_,i)?this.values_.has(i)?this.setObservablePropValue_(i,r):s?Reflect.set(this.target_,i,r):(this.target_[i]=r,!0):this.extend_(i,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,s)},e.has_=function(i){if(!w.trackingDerivation)return i in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(i);return r||(r=new Qe(i in this.target_,Zn,"ObservableObject.key?",!1),this.pendingKeys_.set(i,r)),r.get()},e.make_=function(i,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(i in this.target_)){var s;if((s=this.target_[Ee])!=null&&s[i])return;B(1,r.annotationType_,this.name_+"."+i.toString())}for(var a=this.target_;a&&a!==Jn;){var o=Cn(a,i);if(o){var l=r.make_(this,i,o,a);if(l===0)return;if(l===1)break}a=Object.getPrototypeOf(a)}vs(this,r,i)}},e.extend_=function(i,r,s,a){if(a===void 0&&(a=!1),s===!0&&(s=this.defaultAnnotation_),s===!1)return this.defineProperty_(i,r,a);var o=s.extend_(this,i,r,a);return o&&vs(this,s,i),o},e.defineProperty_=function(i,r,s){s===void 0&&(s=!1),this.keysAtom_;try{he();var a=this.delete_(i);if(!a)return a;if(de(this)){var o=fe(this,{object:this.proxy_||this.target_,name:i,type:Ve,newValue:r.value});if(!o)return null;var l=o.newValue;r.value!==l&&(r=ze({},r,{value:l}))}if(s){if(!Reflect.defineProperty(this.target_,i,r))return!1}else Oe(this.target_,i,r);this.notifyPropertyAddition_(i,r.value)}finally{pe()}return!0},e.defineObservableProperty_=function(i,r,s,a){a===void 0&&(a=!1),this.keysAtom_;try{he();var o=this.delete_(i);if(!o)return o;if(de(this)){var l=fe(this,{object:this.proxy_||this.target_,name:i,type:Ve,newValue:r});if(!l)return null;r=l.newValue}var u=gs(i),c={configurable:w.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(a){if(!Reflect.defineProperty(this.target_,i,c))return!1}else Oe(this.target_,i,c);var d=new Qe(r,s,"ObservableObject.key",!1);this.values_.set(i,d),this.notifyPropertyAddition_(i,d.value_)}finally{pe()}return!0},e.defineComputedProperty_=function(i,r,s){s===void 0&&(s=!1),this.keysAtom_;try{he();var a=this.delete_(i);if(!a)return a;if(de(this)){var o=fe(this,{object:this.proxy_||this.target_,name:i,type:Ve,newValue:void 0});if(!o)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var l=gs(i),u={configurable:w.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(s){if(!Reflect.defineProperty(this.target_,i,u))return!1}else Oe(this.target_,i,u);this.values_.set(i,new _e(r)),this.notifyPropertyAddition_(i,void 0)}finally{pe()}return!0},e.delete_=function(i,r){if(r===void 0&&(r=!1),this.keysAtom_,!Re(this.target_,i))return!0;if(de(this)){var s=fe(this,{object:this.proxy_||this.target_,name:i,type:ms});if(!s)return null}try{var a;he();var o=ve(this),l=!1,u=this.values_.get(i),c=void 0;if(!u&&(o||l)){var d;c=(d=Cn(this.target_,i))==null?void 0:d.value}if(r){if(!Reflect.deleteProperty(this.target_,i))return!1}else delete this.target_[i];if(u&&(this.values_.delete(i),u instanceof Qe&&(c=u.value_),ro(u)),this.keysAtom_.reportChanged(),(a=this.pendingKeys_)==null||(a=a.get(i))==null||a.set(i in this.target_),o||l){var f={type:ms,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:i};o&&ke(this,f)}}finally{pe()}return!0},e.observe_=function(i,r){return ln(this,i)},e.intercept_=function(i){return on(this,i)},e.notifyPropertyAddition_=function(i,r){var s,a=ve(this),o=!1;if(a||o){var l=a||o?{type:Ve,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:i,newValue:r}:null;a&&ke(this,l)}(s=this.pendingKeys_)==null||(s=s.get(i))==null||s.set(!0),this.keysAtom_.reportChanged()},e.ownKeys_=function(){return this.keysAtom_.reportObserved(),Xn(this.target_)},e.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},t}();function Ct(t,e){var n;if(Re(t,P))return t;var i=(n=e==null?void 0:e.name)!=null?n:"ObservableObject",r=new yo(t,new Map,String(i),Lc(e));return Qn(t,P,r),t}var wd=st("ObservableObjectAdministration",yo);function gs(t){return ps[t]||(ps[t]={get:function(){return this[P].getObservablePropValue_(t)},set:function(n){return this[P].setObservablePropValue_(t,n)}})}function oi(t){return Yn(t)?wd(t[P]):!1}function vs(t,e,n){var i;(i=t.target_[Ee])==null||delete i[n]}var Td=bo(0),Cd=function(){var t=!1,e={};return Object.defineProperty(e,"0",{set:function(){t=!0}}),Object.create(e)[0]=1,t===!1}(),Di=0,_o=function(){};function xd(t,e){Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,e):t.prototype.__proto__!==void 0?t.prototype.__proto__=e:t.prototype=e}xd(_o,Array.prototype);var $r=function(t){function e(i,r,s,a){var o;return s===void 0&&(s="ObservableArray"),a===void 0&&(a=!1),o=t.call(this)||this,lt(function(){var l=new Lr(s,r,a,!0);l.proxy_=o,Ma(o,P,l),i&&i.length&&o.spliceWithArray(0,0,i),Cd&&Object.defineProperty(o,"0",Td)}),o}ja(e,t);var n=e.prototype;return n.concat=function(){this[P].atom_.reportObserved();for(var r=arguments.length,s=new Array(r),a=0;a<r;a++)s[a]=arguments[a];return Array.prototype.concat.apply(this.slice(),s.map(function(o){return ai(o)?o.slice():o}))},n[Symbol.iterator]=function(){var i=this,r=0;return Yt({next:function(){return r<i.length?{value:i[r++],done:!1}:{done:!0,value:void 0}}})},Ot(e,[{key:"length",get:function(){return this[P].getArrayLength_()},set:function(r){this[P].setArrayLength_(r)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(_o);Object.entries(In).forEach(function(t){var e=t[0],n=t[1];e!=="concat"&&Qn($r.prototype,e,n)});function bo(t){return{enumerable:!1,configurable:!0,get:function(){return this[P].get_(t)},set:function(n){this[P].set_(t,n)}}}function Rd(t){Oe($r.prototype,""+t,bo(t))}function So(t){if(t>Di){for(var e=Di;e<t+100;e++)Rd(e);Di=t}}So(1e3);function Fd(t,e,n){return new $r(t,e,n)}function ur(t,e){if(typeof t=="object"&&t!==null){if(ai(t))return e!==void 0&&B(23),t[P].atom_;if(Tt(t))return t.atom_;if(ot(t)){if(e===void 0)return t.keysAtom_;var n=t.data_.get(e)||t.hasMap_.get(e);return n||B(25,e,cr(t)),n}if(oi(t)){if(!e)return B(26);var i=t[P].values_.get(e);return i||B(27,e,cr(t)),i}if(Dr(t)||ii(t)||Dn(t))return t}else if(ye(t)&&Dn(t[P]))return t[P];B(28)}function Dd(t,e){if(t||B(29),Dr(t)||ii(t)||Dn(t)||ot(t)||Tt(t))return t;if(t[P])return t[P];B(24,t)}function cr(t,e){var n;if(e!==void 0)n=ur(t,e);else{if(ri(t))return t.name;oi(t)||ot(t)||Tt(t)?n=Dd(t):n=ur(t)}return n.name_}function lt(t){var e=at(),n=ti(!0);he();try{return t()}finally{pe(),ni(n),Fe(e)}}var ks=Jn.toString;function Mr(t,e,n){return n===void 0&&(n=-1),dr(t,e,n)}function dr(t,e,n,i,r){if(t===e)return t!==0||1/t===1/e;if(t==null||e==null)return!1;if(t!==t)return e!==e;var s=typeof t;if(s!=="function"&&s!=="object"&&typeof e!="object")return!1;var a=ks.call(t);if(a!==ks.call(e))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:+t==0?1/+t===1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(t)===Symbol.valueOf.call(e);case"[object Map]":case"[object Set]":n>=0&&n++;break}t=ys(t),e=ys(e);var o=a==="[object Array]";if(!o){if(typeof t!="object"||typeof e!="object")return!1;var l=t.constructor,u=e.constructor;if(l!==u&&!(ye(l)&&l instanceof l&&ye(u)&&u instanceof u)&&"constructor"in t&&"constructor"in e)return!1}if(n===0)return!1;n<0&&(n=-1),i=i||[],r=r||[];for(var c=i.length;c--;)if(i[c]===t)return r[c]===e;if(i.push(t),r.push(e),o){if(c=t.length,c!==e.length)return!1;for(;c--;)if(!dr(t[c],e[c],n-1,i,r))return!1}else{var d=Object.keys(t),f;if(c=d.length,Object.keys(e).length!==c)return!1;for(;c--;)if(f=d[c],!(Re(e,f)&&dr(t[f],e[f],n-1,i,r)))return!1}return i.pop(),r.pop(),!0}function ys(t){return ai(t)?t.slice():At(t)||ot(t)||Ce(t)||Tt(t)?Array.from(t.entries()):t}function Yt(t){return t[Symbol.iterator]=Id,t}function Id(){return this}["Symbol","Map","Set"].forEach(function(t){var e=Da();typeof e[t]=="undefined"&&B("MobX requires global '"+t+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Zc,extras:{getDebugName:cr},$mobx:P});function Pd(t,e=[]){M.useEffect(()=>{const n=si(t);return()=>n()},e)}function No(t,e={}){const{defaultValue:n,deps:i=[]}=e,r=M.useMemo(()=>t,i),[s,a]=M.useState(()=>r()||n);return M.useEffect(()=>{const o=si(()=>a(r()));return()=>o()},[r,...i]),s}function Ld(t,e,n=[]){const i=M.useMemo(()=>t,n),r=M.useMemo(()=>e,n);M.useEffect(()=>{const s=ad(i,r);return()=>s()},[i,r])}let Ur=new Map;const fr=M.createContext(Ur),$d=({children:t,stores:e})=>{const n=M.useContext(fr),i=M.useMemo(()=>{const r=new Map;return e.forEach(s=>r.set(s.class,s.value)),Ur=new Map([...n,...r])},[]);return hu.jsx(fr.Provider,{value:i,children:t})};function Md(t){return M.useContext(fr).get(t)}function Ud(t){return Ur.get(t)}class Eo{constructor(e,n){F(this,"logger");F(this,"channel");F(this,"listeners",new Map);F(this,"eventQueue",new Map);this.logger=Ie.withPrefix(n,"EventBus");try{this.logger.debug(`Creating BroadcastChannel with name "${e}"`),this.channel=new BroadcastChannel(e),this.channel.onmessage=i=>this.handleMessage(i),this.channel.onmessageerror=i=>this.logger.error("NizzaBroadcastChannel error:",i)}catch(i){throw this.logger.error("Failed to create NizzaBroadcastChannel:",i),i}}on(e,n){return this.logger.debug(`Subscribing to pattern "${e}"`),this.subscribeToEvent(e,n),{off:()=>this.unsubscribeFromEvent(e,n)}}emit(e,n,i={}){this.logger.debug(`Emitting event "${e}" with data`,n),this.emitEvent(e,n,i)}handleMessage(e){const n=e.data,{name:i}=n;this.logger.debug(`Received message "${i}" with data`,n);for(const[r,s]of this.listeners.entries())this.matchWildcard(r,i)&&(this.logger.debug(`Matching pattern "${r}" for event "${i}"`),s.forEach(a=>a({...n,wildcard:r})))}subscribeToEvent(e,n){if(typeof e!="string"||typeof n!="function"){const r=new Error("Invalid arguments");throw this.logger.error(r),r}this.listeners.has(e)||(this.logger.debug(`Adding new pattern "${e}"`),this.listeners.set(e,new Set));const i=Array.from(this.eventQueue).filter(([r])=>{const s=this.matchWildcard(e,r);return s&&(this.eventQueue.delete(r),this.logger.debug(`Dequeued pending events for "${r}".`)),s}).flatMap(([,r])=>r);for(const[r,s]of this.listeners.entries())this.matchWildcard(r,e)&&(this.logger.debug(`Adding listener to pattern "${r}"`),s.add(n),i.length&&(this.logger.debug(`Delivering pending events for "${e}".`),i.forEach(a=>{n({...a,wildcard:r})})))}emitEvent(e,n,i){if(typeof e!="string"){const a=new Error("Invalid arguments");throw this.logger.error(a),a}const r={name:e,data:n,attrs:i},s=Array.from(this.getMatchingListeners(e));if(s.length){this.logger.debug(`Delivering event "${e}" to listeners`);for(const[a,o]of s)o({...r,wildcard:a})}else this.logger.debug(`No listeners for event "${e}", enqueuing`),this.eventQueue.has(e)||this.eventQueue.set(e,[]),this.eventQueue.get(e).push(r);this.logger.debug("Posting message to channel",r),this.channel.postMessage(r)}*getMatchingListeners(e){this.logger.debug(`Getting matching listeners for event "${e}"`);for(const[n,i]of this.listeners.entries())if(this.matchWildcard(n,e))for(const r of i)yield[n,r]}unsubscribeFromEvent(e,n){if(this.listeners.has(e)){this.logger.debug(`Unsubscribing from event "${e}"`);const i=this.listeners.get(e);i.delete(n),i.size===0&&(this.logger.debug(`No more listeners for event "${e}", deleting`),this.listeners.delete(e))}}matchWildcard(e,n){const i=e.replace(/\*/g,"[^:]*").replace(/\*\*/g,".*"),s=new RegExp(`^${i}$`).test(n);return this.logger.debug(`Wildcard "${e}" matches with pattern "${n}": ${s}`),s}}const Vd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let jd=(t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=Vd[n[t]&63];return e};const Ln=(t=8)=>jd(t),Ao=(t,e=!1)=>{const n=Object.entries(t).reduce((i,[r,s])=>s!==void 0&&(!e||s!==null)?`${i}${i?"&":""}${r}=${s}`:i,"");return n?`?${n}`:""},Oo=t=>{const e=document.getElementById(t);return e?new URL(e.src).searchParams:new URLSearchParams};function Bd(){const t=new Error().stack.split(`
|
|
27
|
-
`);return t.length<3?"":t[2].trim().substring(3)}function Hd(t){return new Promise(e=>setTimeout(e,t))}var Vr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wo={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Vr,function(){var e=function(){},n="undefined",i=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],s={},a=null;function o(m,p){var h=m[p];if(typeof h.bind=="function")return h.bind(m);try{return Function.prototype.bind.call(h,m)}catch{return function(){return Function.prototype.apply.apply(h,[m,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&i?l:console[m]!==void 0?o(console,m):console.log!==void 0?o(console,"log"):e}function c(){for(var m=this.getLevel(),p=0;p<r.length;p++){var h=r[p];this[h]=p<m?e:this.methodFactory(h,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function d(m){return function(){typeof console!==n&&(c.call(this),this[m].apply(this,arguments))}}function f(m,p,h){return u(m)||d.apply(this,arguments)}function v(m,p){var h=this,_,N,b,E="loglevel";typeof m=="string"?E+=":"+m:typeof m=="symbol"&&(E=void 0);function O(C){var q=(r[C]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=q;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+q+";"}catch{}}}function x(){var C;if(!(typeof window===n||!E)){try{C=window.localStorage[E]}catch{}if(typeof C===n)try{var q=window.document.cookie,re=encodeURIComponent(E),k=q.indexOf(re+"=");k!==-1&&(C=/^([^;]+)/.exec(q.slice(k+re.length+1))[1])}catch{}return h.levels[C]===void 0&&(C=void 0),C}}function R(){if(!(typeof window===n||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function D(C){var q=C;if(typeof q=="string"&&h.levels[q.toUpperCase()]!==void 0&&(q=h.levels[q.toUpperCase()]),typeof q=="number"&&q>=0&&q<=h.levels.SILENT)return q;throw new TypeError("log.setLevel() called with invalid level: "+C)}h.name=m,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=p||f,h.getLevel=function(){return b!=null?b:N!=null?N:_},h.setLevel=function(C,q){return b=D(C),q!==!1&&O(b),c.call(h)},h.setDefaultLevel=function(C){N=D(C),x()||h.setLevel(C,!1)},h.resetLevel=function(){b=null,R(),c.call(h)},h.enableAll=function(C){h.setLevel(h.levels.TRACE,C)},h.disableAll=function(C){h.setLevel(h.levels.SILENT,C)},h.rebuild=function(){if(a!==h&&(_=D(a.getLevel())),c.call(h),a===h)for(var C in s)s[C].rebuild()},_=D(a?a.getLevel():"WARN");var z=x();z!=null&&(b=D(z)),c.call(h)}a=new v,a.getLogger=function(p){if(typeof p!="symbol"&&typeof p!="string"||p==="")throw new TypeError("You must supply a name when creating a logger.");var h=s[p];return h||(h=s[p]=new v(p,a.methodFactory)),h};var g=typeof window!==n?window.log:void 0;return a.noConflict=function(){return typeof window!==n&&window.log===a&&(window.log=g),a},a.getLoggers=function(){return s},a.default=a,a})})(wo);var hr=wo.exports;const Ii=jr(hr);var To={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.prefix=n(e)})(Vr,function(e){var n=function(c){for(var d=1,f=arguments.length,v;d<f;d++)for(v in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],v)&&(c[v]=arguments[d][v]);return c},i={template:"[%t] %l:",levelFormatter:function(c){return c.toUpperCase()},nameFormatter:function(c){return c||"root"},timestampFormatter:function(c){return c.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},r,s={},a=function(c){if(!c||!c.getLogger)throw new TypeError("Argument is not a root logger");r=c},o=function(c,d){if(!c||!c.setLevel)throw new TypeError("Argument is not a logger");var f=c.methodFactory,v=c.name||"",g=s[v]||s[""]||i;function m(p,h,_){var N=f(p,h,_),b=s[_]||s[""],E=b.template.indexOf("%t")!==-1,O=b.template.indexOf("%l")!==-1,x=b.template.indexOf("%n")!==-1;return function(){for(var R="",D=arguments.length,z=Array(D),C=0;C<D;C++)z[C]=arguments[C];if(v||!s[_]){var q=b.timestampFormatter(new Date),re=b.levelFormatter(p),k=b.nameFormatter(_);b.format?R+=b.format(re,k,q):(R+=b.template,E&&(R=R.replace(/%t/,q)),O&&(R=R.replace(/%l/,re)),x&&(R=R.replace(/%n/,k))),z.length&&typeof z[0]=="string"?z[0]=R+" "+z[0]:z.unshift(R)}N.apply(void 0,z)}}return s[v]||(c.methodFactory=m),d=d||{},d.template&&(d.format=void 0),s[v]=n({},g,d),c.setLevel(c.getLevel()),r||c.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"),c},l={reg:a,apply:o},u;return e&&(u=e.prefix,l.noConflict=function(){return e.prefix===l&&(e.prefix=u),l}),l})})(To);var zd=To.exports;const _s=jr(zd);var je;let Ie=(je=class{constructor(e=""){F(this,"provider",Ii);F(this,"defaultLevel",this.getDefaultLevel());this.namePrefix=e,this.namePrefix=e?`${e}-`:"",this.provider.setDefaultLevel(this.defaultLevel),_s.reg(Ii),_s.apply(Ii,{template:"%l [%n]",nameFormatter:n=>{var i;return(i=n==null?void 0:n.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(e){const n=`${this.namePrefix}${e.toLowerCase()}`,i=this.provider.getLogger(n),r=localStorage.getItem(`loglevel:${n}`);return i.setLevel(r||this.defaultLevel),i}static withPrefix(e,n){const i=/\(\w+\)/,r={get(s,a){const o=s[a];return typeof o=="function"&&je.LOG_METHODS.includes(a)?(...l)=>(typeof l[0]=="string"&&!i.test(l[0])&&(l[0]=`(${n}) ${l[0]}`),o.apply(s,l)):o}};return new Proxy(e,r)}getDefaultLevel(){var i;const e=localStorage.getItem("loglevel");return(i=je.LOG_METHODS.reduce((r,s)=>{const a=s.toUpperCase();return r[a]=hr.levels[a],r},{})[e==null?void 0:e.toUpperCase()])!=null?i:hr.levels.INFO}},F(je,"LOG_METHODS",["trace","debug","info","warn","error","log"]),je);const ce=class ce{constructor(){F(this,"instanceId",Ln());F(this,"log",new Ie("nz"));F(this,"coreLogger",this.log.createLogger("core"));F(this,"_config",null);F(this,"_account");F(this,"_accountStatus","idle");F(this,"_productDataSource");F(this,"_eventBus",new Eo("nizza",this.coreLogger));F(this,"activeAccountFetchId",null);this.coreLogger=Ie.withPrefix(this.coreLogger,`NizzaStore:${this.instanceId}`),yd(this,{_config:W,_account:W,_productDataSource:W,_accountStatus:W,config:Ue,account:Ue,accountName:Ue,accountStatus:Ue,setAccount:se,configure:se,refetchAccount:se,setProductDataSource:se,setAddToCartConfig:se,setProductId:se},{name:"NizzaStore",autoBind:!0}),this.refetchAccount=this.refetchAccount.bind(this)}static instance(){var n;if(!!((n=window==null?void 0:window.nizza)!=null&&n.store))ce._instance=window.nizza.store;else{const i=new ce;ce._instance=i,ce._instance.coreLogger.debug("Created new NizzaStore instance")}return window.nizza||(window.nizza={},window.nz={},ce._instance.coreLogger.debug("Initialized nizza window object")),window.nizza.store=ce._instance,window.nz=window.nizza,ce._instance}async configure(e){try{this.coreLogger.debug("Running configure with config:",e),await this.updateConfig(e)}catch(n){this.setAccountStatus("error"),this.coreLogger.error("Error running configure",n)}}async updateConfig(e={}){var r,s;const{account:n,authToken:i}=(r=this._config)!=null?r:{};this._config={...this._config,...e},(s=this._config)!=null&&s.account&&(n!==this._config.account||i!==this._config.authToken)?(this.coreLogger.debug(`Fetching account data for account: ${this._config.account}, authToken provided: ${!!this._config.authToken}`),await this.fetchAccount(this._config.account,this._config.authToken)):this.coreLogger.debug("Skipped fetching account data as the account or authToken did not change"),e.getProductDataSource&&this.setProductDataSource(await e.getProductDataSource())}async fetchAccount(e,n){this.setAccountStatus("loading");const i=Ln();this.activeAccountFetchId=i;try{const r=await zo(e,n);if(this.activeAccountFetchId!==i){this.coreLogger.debug("Fetch account request was superseded by a newer request");return}this.setAccount(r),this.setAccountStatus("success"),this.coreLogger.debug("Account fetched and set successfully:",r)}catch(r){this.activeAccountFetchId===i&&(this.setAccountStatus("error"),this.coreLogger.debug("Error fetching account:",r))}}setAccount(e){this._account=e}setAccountStatus(e){this._accountStatus=e}setProductDataSource(e){this._productDataSource=e}setProductId(e){this._config&&(this._config.productId=e)}setOrderFormId(e){this._config&&(this._config.orderFormId=e)}setAddToCartConfig(e){if(!this._config){const n="You cannot set addToCartConfig before running configure()";throw this.coreLogger.error(n),new Error(n)}this._config.addToCartConfig=e}setAuthToken(e){this.updateConfig({authToken:e})}async refetchAccount(){var e;(e=this._config)!=null&&e.account&&await this.fetchAccount(this._config.account,this._config.authToken)}get version(){return ce.version}get config(){return this._config}get account(){return this._account}get accountStatus(){return this._accountStatus}get accountName(){var e;return(e=this._config)==null?void 0:e.account}isPvtAccount(e){var n;return!!(e&&((n=this._config)!=null&&n.authToken))}isPubAccount(e){var n;return!!(e&&!((n=this._config)!=null&&n.authToken))}get productDataSource(){return this._productDataSource}get eventBus(){return this._eventBus}};F(ce,"version","7"),F(ce,"_instance");let $n=ce;const ut=t=>{const e=$n.instance();return md(()=>!!e.account,()=>t==null?void 0:t(e)),e};function Co(){return M.useMemo(()=>ut(),[])}function xo(t,e){const n=Co();return No(()=>t(n),e)}const{coreLogger:qd}=ut(),Gd=Ie.withPrefix(qd,"CustomFetch");async function St(t){const{url:e,method:n="GET",body:i,raw:r=!1,contentTypeJson:s=!0,timeout:a,...o}=t,l=new Headers({...s?{"content-type":"application/json"}:{},...t.headers});try{const u=new AbortController,{signal:c}=u;let d;const f=fetch(e,{method:n,headers:l,body:i,signal:c,...o});a&&(d=setTimeout(()=>{u.abort()},a));const v=await f;if(r)return v;const g=await v.json();if(clearTimeout(d),!v.ok){const m=g?JSON.stringify(g):v.statusText;throw new Error(m)}return g}catch(u){throw Gd.debug(u),u}}const Kd=t=>St({...t,contentTypeJson:!1,raw:!1});function Wd(t,e,n){fetch(e).then(i=>i.blob()).then(i=>Ro(i,`${t}.${n}`))}const Ro=(t,e,n)=>{const i=[t],r=new Blob(i,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(r,e);const s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),a=document.createElement("a");return a.style.display="none",a.href=s,a.setAttribute("download",e),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(s)},200)},{coreLogger:Jd}=ut(),Yd=Ie.withPrefix(Jd,"getClientTimeZone");function Qd(){var i,r,s;let t=null,e=null,n=null;try{t=(s=(r=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:r.timeZone)!=null?s:null;const a=-new Date().getTimezoneOffset();n=a;const o=a>=0?"+":"-",l=String(Math.floor(Math.abs(a)/60)).padStart(2,"0"),u=String(Math.abs(a)%60).padStart(2,"0");e=`${o}${l}:${u}`}catch{Yd.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:n,value:t,country:null,included:null,label:null}}var Fo=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))(Fo||{}),Do=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(Do||{}),Io=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(Io||{}),Po=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(Po||{}),Lo=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(Lo||{}),$o=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))($o||{});class Mo extends rt{constructor(e){super("CREATE_PLAN_ERROR",`Error creating plan: ${e.plan}`,e)}}const bs=`${rn.apiUrls.restV1}/plans`;class Uo{async get(e){const i=`/info${Ao({planType:e})}`,r=bs+i,{data:s}=await St({url:r});return s}async create(e){const n=`${bs}/create`,{success:i}=await St({url:n,method:"POST",body:JSON.stringify(e)});if(!i)throw new Mo(e)}}function Xd(t){const{host:e,account:n,username:i,createdAt:r,subscriptionType:s,installationDateApp:a,...o}=t;return{...o,account:n,host:e!=null?e:null,username:i!=null?i:n,createdAt:new Date(r),subscriptionType:s!=null?s:null,installationDateApp:new Date(a)}}function Zd(t){const{host:e,...n}=t;return{...n,host:e!=null?e:null,plan:{}}}const ef=`${rn.apiUrls.restV1}/accounts/v2`;class Vo{async get(e){const n=`${ef}/${e}`,{data:i}=await St({url:n});return i?Zd(i):null}}const tf=`${rn.apiUrls.restV1}/accounts/v2/pvt`;class nf{async get(e,n){const i=`${tf}/${e}`,{data:r}=await St({url:i,headers:{authorization:`Bearer ${n}`}});return r?Xd(r):null}}class jo{constructor(e,n,i){this.publicAccountRepo=e,this.privateAccountRepo=n,this.accountPlanRepo=i}async get(e,n){try{const i=n?await this.privateAccountRepo.get(e,n):await this.publicAccountRepo.get(e);if(!i)throw new er(e);const r=await this.accountPlanRepo.get(i.descriptionPlan);if(!r)throw new er(i.descriptionPlan);return{...i,plan:r}}catch(i){throw new Rr(i)}}}const rf=new Vo,sf=new nf,af=new Uo,Bo=new jo(rf,sf,af),Ho=()=>{const{account:t,accountName:e,accountStatus:n,refetchAccount:i,isPvtAccount:r,isPubAccount:s}=xo(u=>({account:u.account,accountName:u.accountName,accountStatus:u.accountStatus,refetchAccount:u.refetchAccount,isPvtAccount:u.isPvtAccount,isPubAccount:u.isPubAccount})),a=["idle","loading"].includes(n);return{account:t,accountName:e,isLoading:a,isError:n==="error",isSuccess:n==="success",accountStatus:n,refetchAccount:i,isPvtAccount:r,isPubAccount:s}};async function zo(t,e){return Bo.get(t,e)}var qo=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(qo||{});const of={ALL:"*",CORE:"core:**",ADD_TO_CART_HOOKS:"core:addToCartHooks:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},Go={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var Ko=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(Ko||{}),Wo=(t=>(t.COMBO="Combo",t.BADGE="Badged",t))(Wo||{}),Jo=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.CUSTOMIZATION="customization",t.FAST_STORE="faststore",t.UNKNOWN="unknown",t))(Jo||{});const lf=4;var Yo=(t=>(t.Created="CREATED",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(Yo||{}),Qo=(t=>(t.Add="add",t.Remove="remove",t))(Qo||{}),Xo=(t=>(t.Active="active",t.Inactive="inactive",t))(Xo||{});const uf={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"}}]}}]}}]}}]},cf={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"}}]}}]}}]}}]},df={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"}}]}}]}}]}}]},ff={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"}}]}}]}}]}}]},hf={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"}}]}}]}}]}}]},pf={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"}}]}}]}}]}}]},mf={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"}}]}}]}}]}}]},gf={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"}}]}}]}}]}}]},vf={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"}}]}}]}}]}}]},kf={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"}}]}}]}}]}}]},yf={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"}}]}}]}}]}}]},_f={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"}}]}}]}}]}}]},bf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Zo={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"}}]}}]}}]}}]},Sf={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"}}]}}]}}]}}]},Nf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"highlightProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highlightProduct"},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:"HighlightProductSuccess"}},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"}}]}}]}}]}}]},Ef={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"}}]}}]}}]}}]},Af={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"}}]}}]}}]}}]},Of={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"}}]}}]}}]}}]},wf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"sendAddToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddToCartInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendAddToCart"},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:"AddToCartSuccess"}},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"}}]}}]}}]}}]},Tf={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"}}]}}]}}]}}]},Cf={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"}}]}}]}}]}}]},xf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Rf={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"}}]}}]}}]}}]},Ff={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"}}]}}]}}]}}]},Df={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"}}]}}]}}]}}]},If={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"}}]}}]}}]}}]},Pf={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"}}]}}]}}]}}]},Lf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},$f={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"}}]}}]}}]}}]}}]},Mf={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"}}]}}]}}]}}]},Uf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Vf={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"}}]}}]}}]}}]},jf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"productName"}},{kind:"Field",name:{kind:"Name",value:"productImageUrl"}}]}}]}}]}},{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"}}]}}]}}]}}]},Bf=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:uf,AppendProductsToSnackVideoDocument:Cf,BlockUserDocument:kf,ChangeAccountUsernameDocument:yf,CreatePlayListDocument:xf,CreateSnackVideoBatchDocument:Rf,DeleteAllCustomizationDocument:Ef,DeleteChatMessageDocument:_f,DeleteCollectionDocument:cf,DeleteRelationshipWithSnackVideoDocument:Ff,DeleteSnackVideoDocument:Df,EventStatus:Yo,FindByProductSnackVideoDocument:Vf,FindCollectionDocument:df,FindManySnackVideosDocument:If,FindMinimalEventDocument:gf,GetAllChatMessageDocument:bf,GetAllCollectionsDocument:ff,GetAllCustomizationDocument:Af,GetAllSnackVideosDocument:Pf,GetChatRoomTokenDocument:Zo,GetPlayListDocument:jf,GetPlayListsDocument:Lf,GetSnackVideoRelationshipsDocument:$f,GetTimeLineDocument:Tf,HighlightProductDocument:Nf,ManageCollectionProductDocument:hf,Methods:Qo,PinChatMessageDocument:Sf,SearchCollectionsDocument:pf,SearchMinimalEventsDocument:vf,SearchSnackVideosDocument:Mf,SendAddToCartDocument:wf,Status:Xo,UpdateCollectionDocument:mf,UpdateCustomizationDocument:Of,UpdatePlayListDocument:Uf},Symbol.toStringTag,{value:"Module"}));var li=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(li||{});function Hf(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}var Pe=(t=>(t.Local="local",t.VtexLegacy="vtexlegacy",t.VtexIO="vtexio",t.VtexFastStore="faststore",t.Platform="platform",t.External="external",t))(Pe||{}),Br=(t=>(t.PROD="prod",t.DEV="dev",t.LOCAL="local",t))(Br||{});const{coreLogger:zf}=ut(),pr=Ie.withPrefix(zf,"addToCartHooks"),Pi="addToCartHooks.notification.error",mr={errorAddingToCart:Pi,errorOpeningVariationSelector:Pi,errorOpeningNewTab:Pi,successAddingToCart:"addToCartHooks.notification.success"};async function qf(t){const e={...t,action:{type:li.ADD_TO_CART,exec:()=>pr.error("action no implemented in validate hook")}};try{const n=await Gf(e),i=await Kf(n);await Wf(i)}catch(n){pr.error("error unhandled",n)}}async function Gf(t){var s,a;const{context:e,userAddToCartConfig:n}=t,i=(s=n==null?void 0:n.hooks)==null?void 0:s.transform;let r=t.product;if(i)try{r=await i({product:{...r},data:(a=e.data)!=null?a:{}})}catch(o){Mn("transform",o)}return{...t,product:r}}async function Kf(t){var l,u;const{context:e,hookStrategy:n,userAddToCartConfig:i,product:r}=t,s=el(t),a=(l=i==null?void 0:i.hooks)==null?void 0:l.validate;let o=n.validate({...t,actionFactory:s});if(a)try{o=await a({product:{...r},defaultAction:{...o},action:s,data:(u=e.data)!=null?u:{}})}catch(c){Mn("validate",c)}return{...t,action:o,actionFactory:s}}async function Wf(t){var p;const{eventBus:e}=ut(),{product:n,userAddToCartConfig:i,notifyFactory:r,action:s,actionFactory:a}=t,{isVariationSelectorOpen:o,data:l={}}=t.context,u=(p=i==null?void 0:i.hooks)==null?void 0:p.end,c=s.type===li.ADD_TO_CART;let d=null,f=!1;const v=()=>{!c||!o||a.openVariationSelector(!1).exec()},g=()=>{!c||f||(d?r.error(mr.errorAddingToCart):r.success(mr.successAddingToCart))},m=()=>{const h={product:n,actionType:s.type,success:!d,error:d};e.emit(Go.ATCH_ACTION_EXECUTED,h)};try{if(!s.type||!s.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await s.exec()}catch(h){Mn("end",h),d=h}if(u)try{f=!!await u({data:l,error:d,notify:r,actionExecuted:s})}catch(h){Mn("end",h)}v(),g(),m()}function el(t){const{actionFactory:e,userAddToCartConfig:n}=t,i=r=>Object.entries(r!=null?r:{}).reduce((s,[a,o])=>({...s,[a]:l=>({type:a,exec:()=>o(l)})}),{});return{...i(e),...i(n==null?void 0:n.actionFactory)}}function Mn(t,e){pr.error(`addToCartHooks error running ${t}: `,e)}class tl{constructor(e){F(this,"aggregate");F(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[n,i]of Object.entries(e))n in this.aggregate&&(this.aggregate[n]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function nl(t){return new tl(t)}class Jf{constructor(e){F(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var ee=(t=>(t.GENERAL_ERROR="GENERAL_ERROR",t.AXIOS_ERROR="AXIOS_ERROR",t.NETWORK_ERROR="NETWORK_ERROR",t.CONFIG_ERROR="CONFIG_ERROR",t.TIMEOUT_ERROR="TIMEOUT_ERROR",t.AUTH_ERROR="AUTH_ERROR",t.NOT_FOUND="NOT_FOUND",t.VALIDATION_ERROR="VALIDATION_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.BAD_REQUEST="BAD_REQUEST",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.CONFLICT="CONFLICT",t.GONE="GONE",t.UNSUPPORTED_MEDIA_TYPE="UNSUPPORTED_MEDIA_TYPE",t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",t.SERVICE_UNAVAILABLE="SERVICE_UNAVAILABLE",t))(ee||{});function il(t,e){return function(){return t.apply(e,arguments)}}const{toString:Yf}=Object.prototype,{getPrototypeOf:Hr}=Object,ui=(t=>e=>{const n=Yf.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Se=t=>(t=t.toLowerCase(),e=>ui(e)===t),ci=t=>e=>typeof e===t,{isArray:xt}=Array,Qt=ci("undefined");function Qf(t){return t!==null&&!Qt(t)&&t.constructor!==null&&!Qt(t.constructor)&&le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const rl=Se("ArrayBuffer");function Xf(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&rl(t.buffer),e}const Zf=ci("string"),le=ci("function"),sl=ci("number"),di=t=>t!==null&&typeof t=="object",eh=t=>t===!0||t===!1,Sn=t=>{if(ui(t)!=="object")return!1;const e=Hr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},th=Se("Date"),nh=Se("File"),ih=Se("Blob"),rh=Se("FileList"),sh=t=>di(t)&&le(t.pipe),ah=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||le(t.append)&&((e=ui(t))==="formdata"||e==="object"&&le(t.toString)&&t.toString()==="[object FormData]"))},oh=Se("URLSearchParams"),[lh,uh,ch,dh]=["ReadableStream","Request","Response","Headers"].map(Se),fh=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function un(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let i,r;if(typeof t!="object"&&(t=[t]),xt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(i=0;i<a;i++)o=s[i],e.call(null,t[o],o,t)}}function al(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Je=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,ol=t=>!Qt(t)&&t!==Je;function gr(){const{caseless:t}=ol(this)&&this||{},e={},n=(i,r)=>{const s=t&&al(e,r)||r;Sn(e[s])&&Sn(i)?e[s]=gr(e[s],i):Sn(i)?e[s]=gr({},i):xt(i)?e[s]=i.slice():e[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&un(arguments[i],n);return e}const hh=(t,e,n,{allOwnKeys:i}={})=>(un(e,(r,s)=>{n&&le(r)?t[s]=il(r,n):t[s]=r},{allOwnKeys:i}),t),ph=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),mh=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},gh=(t,e,n,i)=>{let r,s,a;const o={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)a=r[s],(!i||i(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&Hr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},vh=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},kh=t=>{if(!t)return null;if(xt(t))return t;let e=t.length;if(!sl(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},yh=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Hr(Uint8Array)),_h=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},bh=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Sh=Se("HTMLFormElement"),Nh=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),Ss=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Eh=Se("RegExp"),ll=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};un(n,(r,s)=>{let a;(a=e(r,s,t))!==!1&&(i[s]=a||r)}),Object.defineProperties(t,i)},Ah=t=>{ll(t,(e,n)=>{if(le(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(le(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Oh=(t,e)=>{const n={},i=r=>{r.forEach(s=>{n[s]=!0})};return xt(t)?i(t):i(String(t).split(e)),n},wh=()=>{},Th=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Li="abcdefghijklmnopqrstuvwxyz",Ns="0123456789",ul={DIGIT:Ns,ALPHA:Li,ALPHA_DIGIT:Li+Li.toUpperCase()+Ns},Ch=(t=16,e=ul.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function xh(t){return!!(t&&le(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Rh=t=>{const e=new Array(10),n=(i,r)=>{if(di(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const s=xt(i)?[]:{};return un(i,(a,o)=>{const l=n(a,r+1);!Qt(l)&&(s[o]=l)}),e[r]=void 0,s}}return i};return n(t,0)},Fh=Se("AsyncFunction"),Dh=t=>t&&(di(t)||le(t))&&le(t.then)&&le(t.catch),cl=((t,e)=>t?setImmediate:e?((n,i)=>(Je.addEventListener("message",({source:r,data:s})=>{r===Je&&s===n&&i.length&&i.shift()()},!1),r=>{i.push(r),Je.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",le(Je.postMessage)),Ih=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Je):typeof process!="undefined"&&process.nextTick||cl,y={isArray:xt,isArrayBuffer:rl,isBuffer:Qf,isFormData:ah,isArrayBufferView:Xf,isString:Zf,isNumber:sl,isBoolean:eh,isObject:di,isPlainObject:Sn,isReadableStream:lh,isRequest:uh,isResponse:ch,isHeaders:dh,isUndefined:Qt,isDate:th,isFile:nh,isBlob:ih,isRegExp:Eh,isFunction:le,isStream:sh,isURLSearchParams:oh,isTypedArray:yh,isFileList:rh,forEach:un,merge:gr,extend:hh,trim:fh,stripBOM:ph,inherits:mh,toFlatObject:gh,kindOf:ui,kindOfTest:Se,endsWith:vh,toArray:kh,forEachEntry:_h,matchAll:bh,isHTMLForm:Sh,hasOwnProperty:Ss,hasOwnProp:Ss,reduceDescriptors:ll,freezeMethods:Ah,toObjectSet:Oh,toCamelCase:Nh,noop:wh,toFiniteNumber:Th,findKey:al,global:Je,isContextDefined:ol,ALPHABET:ul,generateString:Ch,isSpecCompliantForm:xh,toJSONObject:Rh,isAsyncFn:Fh,isThenable:Dh,setImmediate:cl,asap:Ih};function $(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}y.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.status}}});const dl=$.prototype,fl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{fl[t]={value:t}});Object.defineProperties($,fl);Object.defineProperty(dl,"isAxiosError",{value:!0});$.from=(t,e,n,i,r,s)=>{const a=Object.create(dl);return y.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),$.call(a,t.message,e,n,i,r),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const Ph=null;function vr(t){return y.isPlainObject(t)||y.isArray(t)}function hl(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function Es(t,e,n){return t?t.concat(e).map(function(r,s){return r=hl(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function Lh(t){return y.isArray(t)&&!t.some(vr)}const $h=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function fi(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!y.isUndefined(p[m])});const i=n.metaTokens,r=n.visitor||c,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(y.isDate(g))return g.toISOString();if(!l&&y.isBlob(g))throw new $("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(g)||y.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,m,p){let h=g;if(g&&!p&&typeof g=="object"){if(y.endsWith(m,"{}"))m=i?m:m.slice(0,-2),g=JSON.stringify(g);else if(y.isArray(g)&&Lh(g)||(y.isFileList(g)||y.endsWith(m,"[]"))&&(h=y.toArray(g)))return m=hl(m),h.forEach(function(N,b){!(y.isUndefined(N)||N===null)&&e.append(a===!0?Es([m],b,s):a===null?m:m+"[]",u(N))}),!1}return vr(g)?!0:(e.append(Es(p,m,s),u(g)),!1)}const d=[],f=Object.assign($h,{defaultVisitor:c,convertValue:u,isVisitable:vr});function v(g,m){if(!y.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),y.forEach(g,function(h,_){(!(y.isUndefined(h)||h===null)&&r.call(e,h,y.isString(_)?_.trim():_,m,f))===!0&&v(h,m?m.concat(_):[_])}),d.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return v(t),e}function As(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function zr(t,e){this._pairs=[],t&&fi(t,this,e)}const pl=zr.prototype;pl.append=function(e,n){this._pairs.push([e,n])};pl.toString=function(e){const n=e?function(i){return e.call(this,i,As)}:As;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Mh(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ml(t,e,n){if(!e)return t;const i=n&&n.encode||Mh,r=n&&n.serialize;let s;if(r?s=r(e,n):s=y.isURLSearchParams(e)?e.toString():new zr(e,n).toString(i),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Os{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(i){i!==null&&e(i)})}}const gl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uh=typeof URLSearchParams!="undefined"?URLSearchParams:zr,Vh=typeof FormData!="undefined"?FormData:null,jh=typeof Blob!="undefined"?Blob:null,Bh={isBrowser:!0,classes:{URLSearchParams:Uh,FormData:Vh,Blob:jh},protocols:["http","https","file","blob","url","data"]},qr=typeof window!="undefined"&&typeof document!="undefined",kr=typeof navigator=="object"&&navigator||void 0,Hh=qr&&(!kr||["ReactNative","NativeScript","NS"].indexOf(kr.product)<0),zh=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qh=qr&&window.location.href||"http://localhost",Gh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qr,hasStandardBrowserEnv:Hh,hasStandardBrowserWebWorkerEnv:zh,navigator:kr,origin:qh},Symbol.toStringTag,{value:"Module"})),ne={...Gh,...Bh};function Kh(t,e){return fi(t,new ne.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,s){return ne.isNode&&y.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Wh(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Jh(t){const e={},n=Object.keys(t);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],e[s]=t[s];return e}function vl(t){function e(n,i,r,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&y.isArray(r)?r.length:a,l?(y.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i,!o):((!r[a]||!y.isObject(r[a]))&&(r[a]=[]),e(n,i,r[a],s)&&y.isArray(r[a])&&(r[a]=Jh(r[a])),!o)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(i,r)=>{e(Wh(i),r,n,0)}),n}return null}function Yh(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const cn={transitional:gl,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,s=y.isObject(e);if(s&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return r?JSON.stringify(vl(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)||y.isReadableStream(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Kh(e,this.formSerializer).toString();if((o=y.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fi(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),Yh(e)):e}],transformResponse:[function(e){const n=this.transitional||cn.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(y.isResponse(e)||y.isReadableStream(e))return e;if(e&&y.isString(e)&&(i&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?$.from(o,$.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ne.classes.FormData,Blob:ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{cn.headers[t]={}});const Qh=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xh=t=>{const e={};let n,i,r;return t&&t.split(`
|
|
27
|
+
`);return t.length<3?"":t[2].trim().substring(3)}function Hd(t){return new Promise(e=>setTimeout(e,t))}var Vr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function jr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wo={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(Vr,function(){var e=function(){},n="undefined",i=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"],s={},a=null;function o(m,p){var h=m[p];if(typeof h.bind=="function")return h.bind(m);try{return Function.prototype.bind.call(h,m)}catch{return function(){return Function.prototype.apply.apply(h,[m,arguments])}}}function l(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(m){return m==="debug"&&(m="log"),typeof console===n?!1:m==="trace"&&i?l:console[m]!==void 0?o(console,m):console.log!==void 0?o(console,"log"):e}function c(){for(var m=this.getLevel(),p=0;p<r.length;p++){var h=r[p];this[h]=p<m?e:this.methodFactory(h,m,this.name)}if(this.log=this.debug,typeof console===n&&m<this.levels.SILENT)return"No console available for logging"}function d(m){return function(){typeof console!==n&&(c.call(this),this[m].apply(this,arguments))}}function f(m,p,h){return u(m)||d.apply(this,arguments)}function v(m,p){var h=this,_,N,b,E="loglevel";typeof m=="string"?E+=":"+m:typeof m=="symbol"&&(E=void 0);function O(C){var q=(r[C]||"silent").toUpperCase();if(!(typeof window===n||!E)){try{window.localStorage[E]=q;return}catch{}try{window.document.cookie=encodeURIComponent(E)+"="+q+";"}catch{}}}function x(){var C;if(!(typeof window===n||!E)){try{C=window.localStorage[E]}catch{}if(typeof C===n)try{var q=window.document.cookie,re=encodeURIComponent(E),k=q.indexOf(re+"=");k!==-1&&(C=/^([^;]+)/.exec(q.slice(k+re.length+1))[1])}catch{}return h.levels[C]===void 0&&(C=void 0),C}}function R(){if(!(typeof window===n||!E)){try{window.localStorage.removeItem(E)}catch{}try{window.document.cookie=encodeURIComponent(E)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function D(C){var q=C;if(typeof q=="string"&&h.levels[q.toUpperCase()]!==void 0&&(q=h.levels[q.toUpperCase()]),typeof q=="number"&&q>=0&&q<=h.levels.SILENT)return q;throw new TypeError("log.setLevel() called with invalid level: "+C)}h.name=m,h.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},h.methodFactory=p||f,h.getLevel=function(){return b!=null?b:N!=null?N:_},h.setLevel=function(C,q){return b=D(C),q!==!1&&O(b),c.call(h)},h.setDefaultLevel=function(C){N=D(C),x()||h.setLevel(C,!1)},h.resetLevel=function(){b=null,R(),c.call(h)},h.enableAll=function(C){h.setLevel(h.levels.TRACE,C)},h.disableAll=function(C){h.setLevel(h.levels.SILENT,C)},h.rebuild=function(){if(a!==h&&(_=D(a.getLevel())),c.call(h),a===h)for(var C in s)s[C].rebuild()},_=D(a?a.getLevel():"WARN");var z=x();z!=null&&(b=D(z)),c.call(h)}a=new v,a.getLogger=function(p){if(typeof p!="symbol"&&typeof p!="string"||p==="")throw new TypeError("You must supply a name when creating a logger.");var h=s[p];return h||(h=s[p]=new v(p,a.methodFactory)),h};var g=typeof window!==n?window.log:void 0;return a.noConflict=function(){return typeof window!==n&&window.log===a&&(window.log=g),a},a.getLoggers=function(){return s},a.default=a,a})})(wo);var hr=wo.exports;const Ii=jr(hr);var To={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.prefix=n(e)})(Vr,function(e){var n=function(c){for(var d=1,f=arguments.length,v;d<f;d++)for(v in arguments[d])Object.prototype.hasOwnProperty.call(arguments[d],v)&&(c[v]=arguments[d][v]);return c},i={template:"[%t] %l:",levelFormatter:function(c){return c.toUpperCase()},nameFormatter:function(c){return c||"root"},timestampFormatter:function(c){return c.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1")},format:void 0},r,s={},a=function(c){if(!c||!c.getLogger)throw new TypeError("Argument is not a root logger");r=c},o=function(c,d){if(!c||!c.setLevel)throw new TypeError("Argument is not a logger");var f=c.methodFactory,v=c.name||"",g=s[v]||s[""]||i;function m(p,h,_){var N=f(p,h,_),b=s[_]||s[""],E=b.template.indexOf("%t")!==-1,O=b.template.indexOf("%l")!==-1,x=b.template.indexOf("%n")!==-1;return function(){for(var R="",D=arguments.length,z=Array(D),C=0;C<D;C++)z[C]=arguments[C];if(v||!s[_]){var q=b.timestampFormatter(new Date),re=b.levelFormatter(p),k=b.nameFormatter(_);b.format?R+=b.format(re,k,q):(R+=b.template,E&&(R=R.replace(/%t/,q)),O&&(R=R.replace(/%l/,re)),x&&(R=R.replace(/%n/,k))),z.length&&typeof z[0]=="string"?z[0]=R+" "+z[0]:z.unshift(R)}N.apply(void 0,z)}}return s[v]||(c.methodFactory=m),d=d||{},d.template&&(d.format=void 0),s[v]=n({},g,d),c.setLevel(c.getLevel()),r||c.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"),c},l={reg:a,apply:o},u;return e&&(u=e.prefix,l.noConflict=function(){return e.prefix===l&&(e.prefix=u),l}),l})})(To);var zd=To.exports;const _s=jr(zd);var je;let Ie=(je=class{constructor(e=""){F(this,"provider",Ii);F(this,"defaultLevel",this.getDefaultLevel());this.namePrefix=e,this.namePrefix=e?`${e}-`:"",this.provider.setDefaultLevel(this.defaultLevel),_s.reg(Ii),_s.apply(Ii,{template:"%l [%n]",nameFormatter:n=>{var i;return(i=n==null?void 0:n.toLowerCase())!=null?i:""},timestampFormatter:()=>new Date().toTimeString().slice(0,8)})}createLogger(e){const n=`${this.namePrefix}${e.toLowerCase()}`,i=this.provider.getLogger(n),r=localStorage.getItem(`loglevel:${n}`);return i.setLevel(r||this.defaultLevel),i}static withPrefix(e,n){const i=/\(\w+\)/,r={get(s,a){const o=s[a];return typeof o=="function"&&je.LOG_METHODS.includes(a)?(...l)=>(typeof l[0]=="string"&&!i.test(l[0])&&(l[0]=`(${n}) ${l[0]}`),o.apply(s,l)):o}};return new Proxy(e,r)}getDefaultLevel(){var i;const e=localStorage.getItem("loglevel");return(i=je.LOG_METHODS.reduce((r,s)=>{const a=s.toUpperCase();return r[a]=hr.levels[a],r},{})[e==null?void 0:e.toUpperCase()])!=null?i:hr.levels.INFO}},F(je,"LOG_METHODS",["trace","debug","info","warn","error","log"]),je);const ce=class ce{constructor(){F(this,"instanceId",Ln());F(this,"log",new Ie("nz"));F(this,"coreLogger",this.log.createLogger("core"));F(this,"_config",null);F(this,"_account");F(this,"_accountStatus","idle");F(this,"_productDataSource");F(this,"_eventBus",new Eo("nizza",this.coreLogger));F(this,"activeAccountFetchId",null);this.coreLogger=Ie.withPrefix(this.coreLogger,`NizzaStore:${this.instanceId}`),yd(this,{_config:W,_account:W,_productDataSource:W,_accountStatus:W,config:Ue,account:Ue,accountName:Ue,accountStatus:Ue,setAccount:se,configure:se,refetchAccount:se,setProductDataSource:se,setAddToCartConfig:se,setProductId:se},{name:"NizzaStore",autoBind:!0}),this.refetchAccount=this.refetchAccount.bind(this)}static instance(){var n;if(!!((n=window==null?void 0:window.nizza)!=null&&n.store))ce._instance=window.nizza.store;else{const i=new ce;ce._instance=i,ce._instance.coreLogger.debug("Created new NizzaStore instance")}return window.nizza||(window.nizza={},window.nz={},ce._instance.coreLogger.debug("Initialized nizza window object")),window.nizza.store=ce._instance,window.nz=window.nizza,ce._instance}async configure(e){try{this.coreLogger.debug("Running configure with config:",e),await this.updateConfig(e)}catch(n){this.setAccountStatus("error"),this.coreLogger.error("Error running configure",n)}}async updateConfig(e={}){var r,s;const{account:n,authToken:i}=(r=this._config)!=null?r:{};this._config={...this._config,...e},(s=this._config)!=null&&s.account&&(n!==this._config.account||i!==this._config.authToken)?(this.coreLogger.debug(`Fetching account data for account: ${this._config.account}, authToken provided: ${!!this._config.authToken}`),await this.fetchAccount(this._config.account,this._config.authToken)):this.coreLogger.debug("Skipped fetching account data as the account or authToken did not change"),e.getProductDataSource&&this.setProductDataSource(await e.getProductDataSource())}async fetchAccount(e,n){this.setAccountStatus("loading");const i=Ln();this.activeAccountFetchId=i;try{const r=await zo(e,n);if(this.activeAccountFetchId!==i){this.coreLogger.debug("Fetch account request was superseded by a newer request");return}this.setAccount(r),this.setAccountStatus("success"),this.coreLogger.debug("Account fetched and set successfully:",r)}catch{this.activeAccountFetchId===i&&this.setAccountStatus("error")}}setAccount(e){this._account=e}setAccountStatus(e){this._accountStatus=e}setProductDataSource(e){this._productDataSource=e}setProductId(e){this._config&&(this._config.productId=e)}setOrderFormId(e){this._config&&(this._config.orderFormId=e)}setAddToCartConfig(e){if(!this._config){const n="You cannot set addToCartConfig before running configure()";throw this.coreLogger.error(n),new Error(n)}this._config.addToCartConfig=e}setAuthToken(e){this.updateConfig({authToken:e})}async refetchAccount(){var e;(e=this._config)!=null&&e.account&&await this.fetchAccount(this._config.account,this._config.authToken)}get version(){return ce.version}get config(){return this._config}get account(){return this._account}get accountStatus(){return this._accountStatus}get accountName(){var e;return(e=this._config)==null?void 0:e.account}isPvtAccount(e){var n;return!!(e&&((n=this._config)!=null&&n.authToken))}isPubAccount(e){var n;return!!(e&&!((n=this._config)!=null&&n.authToken))}get productDataSource(){return this._productDataSource}get eventBus(){return this._eventBus}};F(ce,"version","7"),F(ce,"_instance");let $n=ce;const ut=t=>{const e=$n.instance();return md(()=>!!e.account,()=>t==null?void 0:t(e)),e};function Co(){return M.useMemo(()=>ut(),[])}function xo(t,e){const n=Co();return No(()=>t(n),e)}const{coreLogger:qd}=ut(),Gd=Ie.withPrefix(qd,"CustomFetch");async function St(t){const{url:e,method:n="GET",body:i,raw:r=!1,contentTypeJson:s=!0,timeout:a,...o}=t,l=new Headers({...s?{"content-type":"application/json"}:{},...t.headers});try{const u=new AbortController,{signal:c}=u;let d;const f=fetch(e,{method:n,headers:l,body:i,signal:c,...o});a&&(d=setTimeout(()=>{u.abort()},a));const v=await f;if(r)return v;const g=await v.json();if(clearTimeout(d),!v.ok){const m=g?JSON.stringify(g):v.statusText;throw new Error(m)}return g}catch(u){throw typeof e=="string"&&!e.includes("accounts/v2")&&Gd.debug(u),u}}const Kd=t=>St({...t,contentTypeJson:!1,raw:!1});function Wd(t,e,n){fetch(e).then(i=>i.blob()).then(i=>Ro(i,`${t}.${n}`))}const Ro=(t,e,n)=>{const i=[t],r=new Blob(i,{type:n!=null?n:"application/octet-stream"});if(typeof window.navigator.msSaveBlob!="undefined")return window.navigator.msSaveBlob(r,e);const s=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(r):window.webkitURL.createObjectURL(r),a=document.createElement("a");return a.style.display="none",a.href=s,a.setAttribute("download",e),typeof a.download=="undefined"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout(()=>{document.body.removeChild(a),window.URL.revokeObjectURL(s)},200)},{coreLogger:Jd}=ut(),Yd=Ie.withPrefix(Jd,"getClientTimeZone");function Qd(){var i,r,s;let t=null,e=null,n=null;try{t=(s=(r=(i=Intl.DateTimeFormat())==null?void 0:i.resolvedOptions())==null?void 0:r.timeZone)!=null?s:null;const a=-new Date().getTimezoneOffset();n=a;const o=a>=0?"+":"-",l=String(Math.floor(Math.abs(a)/60)).padStart(2,"0"),u=String(Math.abs(a)%60).padStart(2,"0");e=`${o}${l}:${u}`}catch{Yd.error("Error obtaining time zone or offset")}return{offset:e,offsetValue:n,value:t,country:null,included:null,label:null}}var Fo=(t=>(t.VTEX="VTEX",t.VTEX_IO="VTEX-IO",t.VTEX_CMS="PORTAL-VTEX",t.PLATFORM="PLATFORM",t.UNKNOWN="UNKNOWN",t))(Fo||{}),Do=(t=>(t.PLATFORM="platform_module",t.ADENDA="subscription_module",t.APP_STORE="app_store",t))(Do||{}),Io=(t=>(t.ACTIVE="active_contract",t.INACTIVE="inactive_contract",t))(Io||{}),Po=(t=>(t.LITE="lite",t.STANDARD="standard",t.PRO="pro",t))(Po||{}),Lo=(t=>(t.LITE="PLAN_LITE",t.STANDARD="PLAN_ESTANDAR",t.PRO="PLAN_PRO",t.NONE="NO_PLAN",t))(Lo||{}),$o=(t=>(t.PAST="past",t.LIVE="live",t.FUTURE="future",t))($o||{});class Mo extends rt{constructor(e){super("CREATE_PLAN_ERROR",`Error creating plan: ${e.plan}`,e)}}const bs=`${rn.apiUrls.restV1}/plans`;class Uo{async get(e){const i=`/info${Ao({planType:e})}`,r=bs+i,{data:s}=await St({url:r});return s}async create(e){const n=`${bs}/create`,{success:i}=await St({url:n,method:"POST",body:JSON.stringify(e)});if(!i)throw new Mo(e)}}function Xd(t){const{host:e,account:n,username:i,createdAt:r,subscriptionType:s,installationDateApp:a,...o}=t;return{...o,account:n,host:e!=null?e:null,username:i!=null?i:n,createdAt:new Date(r),subscriptionType:s!=null?s:null,installationDateApp:new Date(a)}}function Zd(t){const{host:e,...n}=t;return{...n,host:e!=null?e:null,plan:{}}}const ef=`${rn.apiUrls.restV1}/accounts/v2`;class Vo{async get(e){const n=`${ef}/${e}`,{data:i}=await St({url:n});return i?Zd(i):null}}const tf=`${rn.apiUrls.restV1}/accounts/v2/pvt`;class nf{async get(e,n){const i=`${tf}/${e}`,{data:r}=await St({url:i,headers:{authorization:`Bearer ${n}`}});return r?Xd(r):null}}class jo{constructor(e,n,i){this.publicAccountRepo=e,this.privateAccountRepo=n,this.accountPlanRepo=i}async get(e,n){try{const i=n?await this.privateAccountRepo.get(e,n):await this.publicAccountRepo.get(e);if(!i)throw new er(e);const r=await this.accountPlanRepo.get(i.descriptionPlan);if(!r)throw new er(i.descriptionPlan);return{...i,plan:r}}catch(i){throw new Rr(i)}}}const rf=new Vo,sf=new nf,af=new Uo,Bo=new jo(rf,sf,af),Ho=()=>{const{account:t,accountName:e,accountStatus:n,refetchAccount:i,isPvtAccount:r,isPubAccount:s}=xo(u=>({account:u.account,accountName:u.accountName,accountStatus:u.accountStatus,refetchAccount:u.refetchAccount,isPvtAccount:u.isPvtAccount,isPubAccount:u.isPubAccount})),a=["idle","loading"].includes(n);return{account:t,accountName:e,isLoading:a,isError:n==="error",isSuccess:n==="success",accountStatus:n,refetchAccount:i,isPvtAccount:r,isPubAccount:s}};async function zo(t,e){return Bo.get(t,e)}var qo=(t=>(t.CREATED="CREATED",t.STARTING="STARTING",t.LIVE="LIVE",t.FINALIZED="FINALIZED",t))(qo||{});const of={ALL:"*",CORE:"core:**",ADD_TO_CART_HOOKS:"core:addToCartHooks:**",LIVE_STREAMING_EVENT:"event:**",EVENT_CHAT:"event:chat:**",EVENT_PRODUCTS:"event:products:**",CUSTOMIZE_LIVE:"customize-live:**",PLAYER:"player:**",SNACK_SIZE_VIDEO:"ssv:**",SNACK_SIZE_VIDEO_ADMIN:"ssv-admin:**",UI:"ui:**",UTILS:"utils:**"},Go={EVENT_STATUS_CHANGED:"event:statusChanged",ATCH_ACTION_EXECUTED:"core:addToCartHooks:actionExecuted"};var Ko=(t=>(t.English="en",t.Spanish="es",t.Portuguese="pt",t))(Ko||{}),Wo=(t=>(t.COMBO="Combo",t.BADGE="Badged",t))(Wo||{}),Jo=(t=>(t.VTEX="VTEX",t.PLATFORM="platform",t.CACE="CACE",t.GLOBAL_PAGE="globalPage",t.CUSTOMIZATION="customization",t.FAST_STORE="faststore",t.UNKNOWN="unknown",t))(Jo||{});const lf=4;var Yo=(t=>(t.Created="CREATED",t.Finalized="FINALIZED",t.Live="LIVE",t.Starting="STARTING",t))(Yo||{}),Qo=(t=>(t.Add="add",t.Remove="remove",t))(Qo||{}),Xo=(t=>(t.Active="active",t.Inactive="inactive",t))(Xo||{});const uf={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"}}]}}]}}]}}]},cf={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"}}]}}]}}]}}]},df={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"}}]}}]}}]}}]},ff={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"}}]}}]}}]}}]},hf={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"}}]}}]}}]}}]},pf={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"}}]}}]}}]}}]},mf={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"}}]}}]}}]}}]},gf={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"}}]}}]}}]}}]},vf={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"}}]}}]}}]}}]},kf={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"}}]}}]}}]}}]},yf={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"}}]}}]}}]}}]},_f={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"}}]}}]}}]}}]},bf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetAllChatMessage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetAllChatMessageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getAllChatMessage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ChatMessageArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"}},{kind:"Field",name:{kind:"Name",value:"connectionId"}},{kind:"Field",name:{kind:"Name",value:"data"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"idEvent"}},{kind:"Field",name:{kind:"Name",value:"sendDate"}},{kind:"Field",name:{kind:"Name",value:"sessionId"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"username"}},{kind:"Field",name:{kind:"Name",value:"isAdmin"}},{kind:"Field",name:{kind:"Name",value:"urlGif"}},{kind:"Field",name:{kind:"Name",value:"second"}},{kind:"Field",name:{kind:"Name",value:"ip"}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},Zo={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"}}]}}]}}]}}]},Sf={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"}}]}}]}}]}}]},Nf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"highlightProduct"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"HighlightProductInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"highlightProduct"},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:"HighlightProductSuccess"}},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"}}]}}]}}]}}]},Ef={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"}}]}}]}}]}}]},Af={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"}}]}}]}}]}}]},Of={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"}}]}}]}}]}}]},wf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"sendAddToCart"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"AddToCartInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sendAddToCart"},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:"AddToCartSuccess"}},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"}}]}}]}}]}}]},Tf={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"}}]}}]}}]}}]},Cf={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"}}]}}]}}]}}]},xf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CreatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Rf={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"}}]}}]}}]}}]},Ff={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"}}]}}]}}]}}]},Df={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"}}]}}]}}]}}]},If={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"}}]}}]}}]}}]},Pf={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"}}]}}]}}]}}]},Lf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayLists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayLists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListArray"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"created"}},{kind:"Field",name:{kind:"Name",value:"videoAmount"}},{kind:"Field",name:{kind:"Name",value:"productAmount"}},{kind:"Field",name:{kind:"Name",value:"updated"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"statusCode"}},{kind:"Field",name:{kind:"Name",value:"timestamp"}}]}}]}}]}}]},$f={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"}}]}}]}}]}}]}}]},Mf={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"}}]}}]}}]}}]},Uf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updatePlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"UpdatePlayListSuccess"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ErrorGeneral"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}}]}}]},Vf={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"}}]}}]}}]}}]},jf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetPlayList"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetPlayListQueryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getPlayList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PlayListData"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"videos"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"productId"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"thumbnailUrl"}},{kind:"Field",name:{kind:"Name",value:"duration"}},{kind:"Field",name:{kind:"Name",value:"transmitionType"}},{kind:"Field",name:{kind:"Name",value:"order"}},{kind:"Field",name:{kind:"Name",value:"productName"}},{kind:"Field",name:{kind:"Name",value:"productImageUrl"}}]}}]}}]}},{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"}}]}}]}}]}}]},Bf=Object.freeze(Object.defineProperty({__proto__:null,AddCollectionDocument:uf,AppendProductsToSnackVideoDocument:Cf,BlockUserDocument:kf,ChangeAccountUsernameDocument:yf,CreatePlayListDocument:xf,CreateSnackVideoBatchDocument:Rf,DeleteAllCustomizationDocument:Ef,DeleteChatMessageDocument:_f,DeleteCollectionDocument:cf,DeleteRelationshipWithSnackVideoDocument:Ff,DeleteSnackVideoDocument:Df,EventStatus:Yo,FindByProductSnackVideoDocument:Vf,FindCollectionDocument:df,FindManySnackVideosDocument:If,FindMinimalEventDocument:gf,GetAllChatMessageDocument:bf,GetAllCollectionsDocument:ff,GetAllCustomizationDocument:Af,GetAllSnackVideosDocument:Pf,GetChatRoomTokenDocument:Zo,GetPlayListDocument:jf,GetPlayListsDocument:Lf,GetSnackVideoRelationshipsDocument:$f,GetTimeLineDocument:Tf,HighlightProductDocument:Nf,ManageCollectionProductDocument:hf,Methods:Qo,PinChatMessageDocument:Sf,SearchCollectionsDocument:pf,SearchMinimalEventsDocument:vf,SearchSnackVideosDocument:Mf,SendAddToCartDocument:wf,Status:Xo,UpdateCollectionDocument:mf,UpdateCustomizationDocument:Of,UpdatePlayListDocument:Uf},Symbol.toStringTag,{value:"Module"}));var li=(t=>(t.OPEN_TAB="openTab",t.OPEN_VARIATION_SELECTOR="openVariationSelector",t.ADD_TO_CART="addToCart",t))(li||{});function Hf(t){return{class:t,_value:null,get value(){return this._value||(this._value=new t,Object.freeze(this)),this._value}}}var Pe=(t=>(t.Local="local",t.VtexLegacy="vtexlegacy",t.VtexIO="vtexio",t.VtexFastStore="faststore",t.Platform="platform",t.External="external",t))(Pe||{}),Br=(t=>(t.PROD="prod",t.DEV="dev",t.LOCAL="local",t))(Br||{});const{coreLogger:zf}=ut(),pr=Ie.withPrefix(zf,"addToCartHooks"),Pi="addToCartHooks.notification.error",mr={errorAddingToCart:Pi,errorOpeningVariationSelector:Pi,errorOpeningNewTab:Pi,successAddingToCart:"addToCartHooks.notification.success"};async function qf(t){const e={...t,action:{type:li.ADD_TO_CART,exec:()=>pr.error("action no implemented in validate hook")}};try{const n=await Gf(e),i=await Kf(n);await Wf(i)}catch(n){pr.error("error unhandled",n)}}async function Gf(t){var s,a;const{context:e,userAddToCartConfig:n}=t,i=(s=n==null?void 0:n.hooks)==null?void 0:s.transform;let r=t.product;if(i)try{r=await i({product:{...r},data:(a=e.data)!=null?a:{}})}catch(o){Mn("transform",o)}return{...t,product:r}}async function Kf(t){var l,u;const{context:e,hookStrategy:n,userAddToCartConfig:i,product:r}=t,s=el(t),a=(l=i==null?void 0:i.hooks)==null?void 0:l.validate;let o=n.validate({...t,actionFactory:s});if(a)try{o=await a({product:{...r},defaultAction:{...o},action:s,data:(u=e.data)!=null?u:{}})}catch(c){Mn("validate",c)}return{...t,action:o,actionFactory:s}}async function Wf(t){var p;const{eventBus:e}=ut(),{product:n,userAddToCartConfig:i,notifyFactory:r,action:s,actionFactory:a}=t,{isVariationSelectorOpen:o,data:l={}}=t.context,u=(p=i==null?void 0:i.hooks)==null?void 0:p.end,c=s.type===li.ADD_TO_CART;let d=null,f=!1;const v=()=>{!c||!o||a.openVariationSelector(!1).exec()},g=()=>{!c||f||(d?r.error(mr.errorAddingToCart):r.success(mr.successAddingToCart))},m=()=>{const h={product:n,actionType:s.type,success:!d,error:d};e.emit(Go.ATCH_ACTION_EXECUTED,h)};try{if(!s.type||!s.exec)throw new Error("Invalid action object, missing keys 'type' or 'exec'");await s.exec()}catch(h){Mn("end",h),d=h}if(u)try{f=!!await u({data:l,error:d,notify:r,actionExecuted:s})}catch(h){Mn("end",h)}v(),g(),m()}function el(t){const{actionFactory:e,userAddToCartConfig:n}=t,i=r=>Object.entries(r!=null?r:{}).reduce((s,[a,o])=>({...s,[a]:l=>({type:a,exec:()=>o(l)})}),{});return{...i(e),...i(n==null?void 0:n.actionFactory)}}function Mn(t,e){pr.error(`addToCartHooks error running ${t}: `,e)}class tl{constructor(e){F(this,"aggregate");F(this,"_numSetPropsApplied",0);this.aggregate=e}setProps(e){for(const[n,i]of Object.entries(e))n in this.aggregate&&(this.aggregate[n]=i);this._numSetPropsApplied++}get isFirstSetProps(){return this._numSetPropsApplied===1}}function nl(t){return new tl(t)}class Jf{constructor(e){F(this,"_value");e!==void 0&&(this._value=e)}get value(){return this._value}}var ee=(t=>(t.GENERAL_ERROR="GENERAL_ERROR",t.AXIOS_ERROR="AXIOS_ERROR",t.NETWORK_ERROR="NETWORK_ERROR",t.CONFIG_ERROR="CONFIG_ERROR",t.TIMEOUT_ERROR="TIMEOUT_ERROR",t.AUTH_ERROR="AUTH_ERROR",t.NOT_FOUND="NOT_FOUND",t.VALIDATION_ERROR="VALIDATION_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.BAD_REQUEST="BAD_REQUEST",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.CONFLICT="CONFLICT",t.GONE="GONE",t.UNSUPPORTED_MEDIA_TYPE="UNSUPPORTED_MEDIA_TYPE",t.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",t.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",t.SERVICE_UNAVAILABLE="SERVICE_UNAVAILABLE",t))(ee||{});function il(t,e){return function(){return t.apply(e,arguments)}}const{toString:Yf}=Object.prototype,{getPrototypeOf:Hr}=Object,ui=(t=>e=>{const n=Yf.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Se=t=>(t=t.toLowerCase(),e=>ui(e)===t),ci=t=>e=>typeof e===t,{isArray:xt}=Array,Qt=ci("undefined");function Qf(t){return t!==null&&!Qt(t)&&t.constructor!==null&&!Qt(t.constructor)&&le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const rl=Se("ArrayBuffer");function Xf(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&rl(t.buffer),e}const Zf=ci("string"),le=ci("function"),sl=ci("number"),di=t=>t!==null&&typeof t=="object",eh=t=>t===!0||t===!1,Sn=t=>{if(ui(t)!=="object")return!1;const e=Hr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},th=Se("Date"),nh=Se("File"),ih=Se("Blob"),rh=Se("FileList"),sh=t=>di(t)&&le(t.pipe),ah=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||le(t.append)&&((e=ui(t))==="formdata"||e==="object"&&le(t.toString)&&t.toString()==="[object FormData]"))},oh=Se("URLSearchParams"),[lh,uh,ch,dh]=["ReadableStream","Request","Response","Headers"].map(Se),fh=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function un(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t=="undefined")return;let i,r;if(typeof t!="object"&&(t=[t]),xt(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let o;for(i=0;i<a;i++)o=s[i],e.call(null,t[o],o,t)}}function al(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const Je=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,ol=t=>!Qt(t)&&t!==Je;function gr(){const{caseless:t}=ol(this)&&this||{},e={},n=(i,r)=>{const s=t&&al(e,r)||r;Sn(e[s])&&Sn(i)?e[s]=gr(e[s],i):Sn(i)?e[s]=gr({},i):xt(i)?e[s]=i.slice():e[s]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&un(arguments[i],n);return e}const hh=(t,e,n,{allOwnKeys:i}={})=>(un(e,(r,s)=>{n&&le(r)?t[s]=il(r,n):t[s]=r},{allOwnKeys:i}),t),ph=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),mh=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},gh=(t,e,n,i)=>{let r,s,a;const o={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),s=r.length;s-- >0;)a=r[s],(!i||i(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=n!==!1&&Hr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},vh=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},kh=t=>{if(!t)return null;if(xt(t))return t;let e=t.length;if(!sl(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},yh=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Hr(Uint8Array)),_h=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const s=r.value;e.call(t,s[0],s[1])}},bh=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Sh=Se("HTMLFormElement"),Nh=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),Ss=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Eh=Se("RegExp"),ll=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};un(n,(r,s)=>{let a;(a=e(r,s,t))!==!1&&(i[s]=a||r)}),Object.defineProperties(t,i)},Ah=t=>{ll(t,(e,n)=>{if(le(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(le(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Oh=(t,e)=>{const n={},i=r=>{r.forEach(s=>{n[s]=!0})};return xt(t)?i(t):i(String(t).split(e)),n},wh=()=>{},Th=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Li="abcdefghijklmnopqrstuvwxyz",Ns="0123456789",ul={DIGIT:Ns,ALPHA:Li,ALPHA_DIGIT:Li+Li.toUpperCase()+Ns},Ch=(t=16,e=ul.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function xh(t){return!!(t&&le(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Rh=t=>{const e=new Array(10),n=(i,r)=>{if(di(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const s=xt(i)?[]:{};return un(i,(a,o)=>{const l=n(a,r+1);!Qt(l)&&(s[o]=l)}),e[r]=void 0,s}}return i};return n(t,0)},Fh=Se("AsyncFunction"),Dh=t=>t&&(di(t)||le(t))&&le(t.then)&&le(t.catch),cl=((t,e)=>t?setImmediate:e?((n,i)=>(Je.addEventListener("message",({source:r,data:s})=>{r===Je&&s===n&&i.length&&i.shift()()},!1),r=>{i.push(r),Je.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",le(Je.postMessage)),Ih=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Je):typeof process!="undefined"&&process.nextTick||cl,y={isArray:xt,isArrayBuffer:rl,isBuffer:Qf,isFormData:ah,isArrayBufferView:Xf,isString:Zf,isNumber:sl,isBoolean:eh,isObject:di,isPlainObject:Sn,isReadableStream:lh,isRequest:uh,isResponse:ch,isHeaders:dh,isUndefined:Qt,isDate:th,isFile:nh,isBlob:ih,isRegExp:Eh,isFunction:le,isStream:sh,isURLSearchParams:oh,isTypedArray:yh,isFileList:rh,forEach:un,merge:gr,extend:hh,trim:fh,stripBOM:ph,inherits:mh,toFlatObject:gh,kindOf:ui,kindOfTest:Se,endsWith:vh,toArray:kh,forEachEntry:_h,matchAll:bh,isHTMLForm:Sh,hasOwnProperty:Ss,hasOwnProp:Ss,reduceDescriptors:ll,freezeMethods:Ah,toObjectSet:Oh,toCamelCase:Nh,noop:wh,toFiniteNumber:Th,findKey:al,global:Je,isContextDefined:ol,ALPHABET:ul,generateString:Ch,isSpecCompliantForm:xh,toJSONObject:Rh,isAsyncFn:Fh,isThenable:Dh,setImmediate:cl,asap:Ih};function $(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status?r.status:null)}y.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.status}}});const dl=$.prototype,fl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{fl[t]={value:t}});Object.defineProperties($,fl);Object.defineProperty(dl,"isAxiosError",{value:!0});$.from=(t,e,n,i,r,s)=>{const a=Object.create(dl);return y.toFlatObject(t,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),$.call(a,t.message,e,n,i,r),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const Ph=null;function vr(t){return y.isPlainObject(t)||y.isArray(t)}function hl(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function Es(t,e,n){return t?t.concat(e).map(function(r,s){return r=hl(r),!n&&s?"["+r+"]":r}).join(n?".":""):e}function Lh(t){return y.isArray(t)&&!t.some(vr)}const $h=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function fi(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,p){return!y.isUndefined(p[m])});const i=n.metaTokens,r=n.visitor||c,s=n.dots,a=n.indexes,l=(n.Blob||typeof Blob!="undefined"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(y.isDate(g))return g.toISOString();if(!l&&y.isBlob(g))throw new $("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(g)||y.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,m,p){let h=g;if(g&&!p&&typeof g=="object"){if(y.endsWith(m,"{}"))m=i?m:m.slice(0,-2),g=JSON.stringify(g);else if(y.isArray(g)&&Lh(g)||(y.isFileList(g)||y.endsWith(m,"[]"))&&(h=y.toArray(g)))return m=hl(m),h.forEach(function(N,b){!(y.isUndefined(N)||N===null)&&e.append(a===!0?Es([m],b,s):a===null?m:m+"[]",u(N))}),!1}return vr(g)?!0:(e.append(Es(p,m,s),u(g)),!1)}const d=[],f=Object.assign($h,{defaultVisitor:c,convertValue:u,isVisitable:vr});function v(g,m){if(!y.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(g),y.forEach(g,function(h,_){(!(y.isUndefined(h)||h===null)&&r.call(e,h,y.isString(_)?_.trim():_,m,f))===!0&&v(h,m?m.concat(_):[_])}),d.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return v(t),e}function As(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function zr(t,e){this._pairs=[],t&&fi(t,this,e)}const pl=zr.prototype;pl.append=function(e,n){this._pairs.push([e,n])};pl.toString=function(e){const n=e?function(i){return e.call(this,i,As)}:As;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Mh(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ml(t,e,n){if(!e)return t;const i=n&&n.encode||Mh,r=n&&n.serialize;let s;if(r?s=r(e,n):s=y.isURLSearchParams(e)?e.toString():new zr(e,n).toString(i),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Os{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){y.forEach(this.handlers,function(i){i!==null&&e(i)})}}const gl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Uh=typeof URLSearchParams!="undefined"?URLSearchParams:zr,Vh=typeof FormData!="undefined"?FormData:null,jh=typeof Blob!="undefined"?Blob:null,Bh={isBrowser:!0,classes:{URLSearchParams:Uh,FormData:Vh,Blob:jh},protocols:["http","https","file","blob","url","data"]},qr=typeof window!="undefined"&&typeof document!="undefined",kr=typeof navigator=="object"&&navigator||void 0,Hh=qr&&(!kr||["ReactNative","NativeScript","NS"].indexOf(kr.product)<0),zh=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qh=qr&&window.location.href||"http://localhost",Gh=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qr,hasStandardBrowserEnv:Hh,hasStandardBrowserWebWorkerEnv:zh,navigator:kr,origin:qh},Symbol.toStringTag,{value:"Module"})),ne={...Gh,...Bh};function Kh(t,e){return fi(t,new ne.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,s){return ne.isNode&&y.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Wh(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Jh(t){const e={},n=Object.keys(t);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],e[s]=t[s];return e}function vl(t){function e(n,i,r,s){let a=n[s++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=s>=n.length;return a=!a&&y.isArray(r)?r.length:a,l?(y.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i,!o):((!r[a]||!y.isObject(r[a]))&&(r[a]=[]),e(n,i,r[a],s)&&y.isArray(r[a])&&(r[a]=Jh(r[a])),!o)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(i,r)=>{e(Wh(i),r,n,0)}),n}return null}function Yh(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const cn={transitional:gl,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,s=y.isObject(e);if(s&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return r?JSON.stringify(vl(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)||y.isReadableStream(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Kh(e,this.formSerializer).toString();if((o=y.isFileList(e))||i.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fi(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||r?(n.setContentType("application/json",!1),Yh(e)):e}],transformResponse:[function(e){const n=this.transitional||cn.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(y.isResponse(e)||y.isReadableStream(e))return e;if(e&&y.isString(e)&&(i&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?$.from(o,$.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ne.classes.FormData,Blob:ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{cn.headers[t]={}});const Qh=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xh=t=>{const e={};let n,i,r;return t&&t.split(`
|
|
28
28
|
`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),i=a.substring(r+1).trim(),!(!n||e[n]&&Qh[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},ws=Symbol("internals");function It(t){return t&&String(t).trim().toLowerCase()}function Nn(t){return t===!1||t==null?t:y.isArray(t)?t.map(Nn):String(t)}function Zh(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const ep=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function $i(t,e,n,i,r){if(y.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!y.isString(e)){if(y.isString(i))return e.indexOf(i)!==-1;if(y.isRegExp(i))return i.test(e)}}function tp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function np(t,e){const n=y.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,s,a){return this[i].call(this,e,r,s,a)},configurable:!0})})}class ie{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function s(o,l,u){const c=It(l);if(!c)throw new Error("header name must be a non-empty string");const d=y.findKey(r,c);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||l]=Nn(o))}const a=(o,l)=>y.forEach(o,(u,c)=>s(u,c,l));if(y.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(y.isString(e)&&(e=e.trim())&&!ep(e))a(Xh(e),n);else if(y.isHeaders(e))for(const[o,l]of e.entries())s(l,o,i);else e!=null&&s(n,e,i);return this}get(e,n){if(e=It(e),e){const i=y.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return Zh(r);if(y.isFunction(n))return n.call(this,r,i);if(y.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=It(e),e){const i=y.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||$i(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function s(a){if(a=It(a),a){const o=y.findKey(i,a);o&&(!n||$i(i,i[o],o,n))&&(delete i[o],r=!0)}}return y.isArray(e)?e.forEach(s):s(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const s=n[i];(!e||$i(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){const n=this,i={};return y.forEach(this,(r,s)=>{const a=y.findKey(i,s);if(a){n[a]=Nn(r),delete n[s];return}const o=e?tp(s):String(s).trim();o!==s&&delete n[s],n[o]=Nn(r),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return y.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&y.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
29
29
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[ws]=this[ws]={accessors:{}}).accessors,r=this.prototype;function s(a){const o=It(a);i[o]||(np(r,a),i[o]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}}ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ie.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});y.freezeMethods(ie);function Mi(t,e){const n=this||cn,i=e||n,r=ie.from(i.headers);let s=i.data;return y.forEach(t,function(o){s=o.call(n,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function kl(t){return!!(t&&t.__CANCEL__)}function Rt(t,e,n){$.call(this,t==null?"canceled":t,$.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Rt,$,{__CANCEL__:!0});function yl(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ip(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function rp(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,s=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[s];a||(a=u),n[r]=l,i[r]=u;let d=s,f=0;for(;d!==r;)f+=n[d++],d=d%t;if(r=(r+1)%t,r===s&&(s=(s+1)%t),u-a<e)return;const v=c&&u-c;return v?Math.round(f*1e3/v):void 0}}function sp(t,e){let n=0,i=1e3/e,r,s;const a=(u,c=Date.now())=>{n=c,r=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const c=Date.now(),d=c-n;d>=i?a(u,c):(r=u,s||(s=setTimeout(()=>{s=null,a(r)},i-d)))},()=>r&&a(r)]}const Un=(t,e,n=3)=>{let i=0;const r=rp(50,250);return sp(s=>{const a=s.loaded,o=s.lengthComputable?s.total:void 0,l=a-i,u=r(l),c=a<=o;i=a;const d={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:s,lengthComputable:o!=null,[e?"download":"upload"]:!0};t(d)},n)},Ts=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},Cs=t=>(...e)=>y.asap(()=>t(...e)),ap=ne.hasStandardBrowserEnv?function(){const e=ne.navigator&&/(msie|trident)/i.test(ne.navigator.userAgent),n=document.createElement("a");let i;function r(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(a){const o=y.isString(a)?r(a):a;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}(),op=ne.hasStandardBrowserEnv?{write(t,e,n,i,r,s){const a=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),y.isString(i)&&a.push("path="+i),y.isString(r)&&a.push("domain="+r),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function up(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function _l(t,e){return t&&!lp(e)?up(t,e):e}const xs=t=>t instanceof ie?{...t}:t;function tt(t,e){e=e||{};const n={};function i(u,c,d){return y.isPlainObject(u)&&y.isPlainObject(c)?y.merge.call({caseless:d},u,c):y.isPlainObject(c)?y.merge({},c):y.isArray(c)?c.slice():c}function r(u,c,d){if(y.isUndefined(c)){if(!y.isUndefined(u))return i(void 0,u,d)}else return i(u,c,d)}function s(u,c){if(!y.isUndefined(c))return i(void 0,c)}function a(u,c){if(y.isUndefined(c)){if(!y.isUndefined(u))return i(void 0,u)}else return i(void 0,c)}function o(u,c,d){if(d in e)return i(u,c);if(d in t)return i(void 0,u)}const l={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c)=>r(xs(u),xs(c),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=l[c]||r,f=d(t[c],e[c],c);y.isUndefined(f)&&d!==o||(n[c]=f)}),n}const bl=t=>{const e=tt({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:o}=e;e.headers=a=ie.from(a),e.url=ml(_l(e.baseURL,e.url),t.params,t.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(y.isFormData(n)){if(ne.hasStandardBrowserEnv||ne.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(ne.hasStandardBrowserEnv&&(i&&y.isFunction(i)&&(i=i(e)),i||i!==!1&&ap(e.url))){const u=r&&s&&op.read(s);u&&a.set(r,u)}return e},cp=typeof XMLHttpRequest!="undefined",dp=cp&&function(t){return new Promise(function(n,i){const r=bl(t);let s=r.data;const a=ie.from(r.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=r,c,d,f,v,g;function m(){v&&v(),g&&g(),r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let p=new XMLHttpRequest;p.open(r.method.toUpperCase(),r.url,!0),p.timeout=r.timeout;function h(){if(!p)return;const N=ie.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:N,config:t,request:p};yl(function(x){n(x),m()},function(x){i(x),m()},E),p=null}"onloadend"in p?p.onloadend=h:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(h)},p.onabort=function(){p&&(i(new $("Request aborted",$.ECONNABORTED,t,p)),p=null)},p.onerror=function(){i(new $("Network Error",$.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let b=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const E=r.transitional||gl;r.timeoutErrorMessage&&(b=r.timeoutErrorMessage),i(new $(b,E.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,p)),p=null},s===void 0&&a.setContentType(null),"setRequestHeader"in p&&y.forEach(a.toJSON(),function(b,E){p.setRequestHeader(E,b)}),y.isUndefined(r.withCredentials)||(p.withCredentials=!!r.withCredentials),o&&o!=="json"&&(p.responseType=r.responseType),u&&([f,g]=Un(u,!0),p.addEventListener("progress",f)),l&&p.upload&&([d,v]=Un(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",v)),(r.cancelToken||r.signal)&&(c=N=>{p&&(i(!N||N.type?new Rt(null,t,p):N),p.abort(),p=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const _=ip(r.url);if(_&&ne.protocols.indexOf(_)===-1){i(new $("Unsupported protocol "+_+":",$.ERR_BAD_REQUEST,t));return}p.send(s||null)})},fp=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,r;const s=function(u){if(!r){r=!0,o();const c=u instanceof Error?u:this.reason;i.abort(c instanceof $?c:new Rt(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,s(new $(`timeout ${e} of ms exceeded`,$.ETIMEDOUT))},e);const o=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),t=null)};t.forEach(u=>u.addEventListener("abort",s));const{signal:l}=i;return l.unsubscribe=()=>y.asap(o),l}},hp=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let i=0,r;for(;i<n;)r=i+e,yield t.slice(i,r),i=r},pp=async function*(t,e){for await(const n of mp(t))yield*hp(n,e)},mp=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},Rs=(t,e,n,i)=>{const r=pp(t,e);let s=0,a,o=l=>{a||(a=!0,i&&i(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await r.next();if(u){o(),l.close();return}let d=c.byteLength;if(n){let f=s+=d;n(f)}l.enqueue(new Uint8Array(c))}catch(u){throw o(u),u}},cancel(l){return o(l),r.return()}},{highWaterMark:2})},hi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Sl=hi&&typeof ReadableStream=="function",gp=hi&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Nl=(t,...e)=>{try{return!!t(...e)}catch{return!1}},vp=Sl&&Nl(()=>{let t=!1;const e=new Request(ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Fs=64*1024,yr=Sl&&Nl(()=>y.isReadableStream(new Response("").body)),Vn={stream:yr&&(t=>t.body)};hi&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Vn[e]&&(Vn[e]=y.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,i)})})})(new Response);const kp=async t=>{if(t==null)return 0;if(y.isBlob(t))return t.size;if(y.isSpecCompliantForm(t))return(await new Request(ne.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(y.isArrayBufferView(t)||y.isArrayBuffer(t))return t.byteLength;if(y.isURLSearchParams(t)&&(t=t+""),y.isString(t))return(await gp(t)).byteLength},yp=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n==null?kp(e):n},_p=hi&&(async t=>{let{url:e,method:n,data:i,signal:r,cancelToken:s,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=bl(t);u=u?(u+"").toLowerCase():"text";let v=fp([r,s&&s.toAbortSignal()],a),g;const m=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let p;try{if(l&&vp&&n!=="get"&&n!=="head"&&(p=await yp(c,i))!==0){let E=new Request(e,{method:"POST",body:i,duplex:"half"}),O;if(y.isFormData(i)&&(O=E.headers.get("content-type"))&&c.setContentType(O),E.body){const[x,R]=Ts(p,Un(Cs(l)));i=Rs(E.body,Fs,x,R)}}y.isString(d)||(d=d?"include":"omit");const h="credentials"in Request.prototype;g=new Request(e,{...f,signal:v,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:i,duplex:"half",credentials:h?d:void 0});let _=await fetch(g);const N=yr&&(u==="stream"||u==="response");if(yr&&(o||N&&m)){const E={};["status","statusText","headers"].forEach(D=>{E[D]=_[D]});const O=y.toFiniteNumber(_.headers.get("content-length")),[x,R]=o&&Ts(O,Un(Cs(o),!0))||[];_=new Response(Rs(_.body,Fs,x,()=>{R&&R(),m&&m()}),E)}u=u||"text";let b=await Vn[y.findKey(Vn,u)||"text"](_,t);return!N&&m&&m(),await new Promise((E,O)=>{yl(E,O,{data:b,headers:ie.from(_.headers),status:_.status,statusText:_.statusText,config:t,request:g})})}catch(h){throw m&&m(),h&&h.name==="TypeError"&&/fetch/i.test(h.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,t,g),{cause:h.cause||h}):$.from(h,h&&h.code,t,g)}}),_r={http:Ph,xhr:dp,fetch:_p};y.forEach(_r,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ds=t=>`- ${t}`,bp=t=>y.isFunction(t)||t===null||t===!1,El={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let s=0;s<e;s++){n=t[s];let a;if(i=n,!bp(n)&&(i=_r[(a=String(n)).toLowerCase()],i===void 0))throw new $(`Unknown adapter '${a}'`);if(i)break;r[a||"#"+s]=i}if(!i){const s=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
|
|
30
30
|
`+s.map(Ds).join(`
|