var rd=Object.defineProperty;var nd=(t,e,r)=>e in t?rd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var sr=(t,e,r)=>nd(t,typeof e!="symbol"?e+"":e,r);import{e6 as id,e7 as Cc,bv as Dc,cE as sd,e8 as ad,e9 as Ic,ea as od,eb as ud,ec as cd,bt as jc,bu as Ds,bw as ld,ed as fd,cI as Jt,ee as dd,by as hd,ef as pd,eg as qc,eh as vd,ei as yd,dg as Mc,ej as Is,a3 as De,ek as Ta,el as md,em as gd,en as ve,j as bd,c as wd,eo as Re,ep as O,eq as _e,er as qe,es as Me,et as Ve,eu as Od,ev as _d,ew as Sd,C as Ed,ex as Rd,cz as Lc,ey as Td,Y as Nc,b3 as Vc,H as kd,A as _r,ez as xd,eA as Ad,eB as Fd,eC as Pd,eD as Cd,eE as Dd,B as js,_ as Id,X as Dr,eF as jd,bS as Ir,r as Uc,b0 as qd,Z as Md,eG as Bc,dc as Ld,eH as qs,eI as Nd,eJ as jr,eK as Vd,eL as $c,df as Qc,aH as Ud,eM as Bd,de as $d,eN as Qd,bJ as zd}from"./setup-BuwH6Opq.js";var Yr,ka;function zc(){if(ka)return Yr;ka=1;var t=id(),e=Cc();function r(n,i,s){(s!==void 0&&!e(n[i],s)||s===void 0&&!(i in n))&&t(n,i,s)}return Yr=r,Yr}var Zr,xa;function Wd(){if(xa)return Zr;xa=1;function t(e){return function(r,n,i){for(var s=-1,a=Object(r),o=i(r),u=o.length;u--;){var c=o[e?u:++s];if(n(a[c],c,a)===!1)break}return r}}return Zr=t,Zr}var en,Aa;function Hd(){if(Aa)return en;Aa=1;var t=Wd(),e=t();return en=e,en}var tn,Fa;function Gd(){if(Fa)return tn;Fa=1;var t=Dc(),e=sd();function r(n){return e(n)&&t(n)}return tn=r,tn}var rn,Pa;function Wc(){if(Pa)return rn;Pa=1;function t(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}return rn=t,rn}var nn,Ca;function Kd(){if(Ca)return nn;Ca=1;var t=ad(),e=Ic();function r(n){return t(n,e(n))}return nn=r,nn}var sn,Da;function Jd(){if(Da)return sn;Da=1;var t=zc(),e=od(),r=ud(),n=pd(),i=cd(),s=jc(),a=Ds(),o=Gd(),u=ld(),c=fd(),l=Jt(),f=dd(),d=hd(),h=Wc(),p=Kd();function v(y,m,w,b,_,S,T){var R=h(y,w),g=h(m,w),x=T.get(g);if(x){t(y,w,x);return}var k=S?S(R,g,w+"",y,m,T):void 0,V=k===void 0;if(V){var C=a(g),P=!C&&u(g),j=!C&&!P&&d(g);k=g,C||P||j?a(R)?k=R:o(R)?k=n(R):P?(V=!1,k=e(g,!0)):j?(V=!1,k=r(g,!0)):k=[]:f(g)||s(g)?(k=R,s(R)?k=p(R):(!l(R)||c(R))&&(k=i(g))):V=!1}V&&(T.set(g,k),_(k,g,b,S,T),T.delete(g)),t(y,w,k)}return sn=v,sn}var an,Ia;function Xd(){if(Ia)return an;Ia=1;var t=qc(),e=zc(),r=Hd(),n=Jd(),i=Jt(),s=Ic(),a=Wc();function o(u,c,l,f,d){u!==c&&r(c,function(h,p){if(d||(d=new t),i(h))n(u,c,p,l,o,f,d);else{var v=f?f(a(u,p),h,p+"",u,c,d):void 0;v===void 0&&(v=h),e(u,p,v)}},s)}return an=o,an}var on,ja;function Yd(){if(ja)return on;ja=1;var t=Mc(),e=yd(),r=vd();function n(i,s){return r(e(i,s,t),i+"")}return on=n,on}var un,qa;function Zd(){if(qa)return un;qa=1;var t=Cc(),e=Dc(),r=Is(),n=Jt();function i(s,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?e(o)&&r(a,o.length):u=="string"&&a in o)?t(o[a],s):!1}return un=i,un}var cn,Ma;function eh(){if(Ma)return cn;Ma=1;var t=Yd(),e=Zd();function r(n){return t(function(i,s){var a=-1,o=s.length,u=o>1?s[o-1]:void 0,c=o>2?s[2]:void 0;for(u=n.length>3&&typeof u=="function"?(o--,u):void 0,c&&e(s[0],s[1],c)&&(u=o<3?void 0:u,o=1),i=Object(i);++a2&&arguments[2]!==void 0?arguments[2]:ih,n=void 0,i=Array.isArray(t),s=[t],a=-1,o=[],u=void 0,c=void 0,l=void 0,f=[],d=[],h=t;do{a++;var p=a===s.length,v=p&&o.length!==0;if(p){if(c=d.length===0?void 0:f[f.length-1],u=l,l=d.pop(),v){if(i)u=u.slice();else{for(var y={},m=0,w=Object.keys(u);mah&&(u=o+Z(`( `,dr(A(i,` `)),` )`)),A([u,A(s," "),a]," ")},Argument:function(e){var r=e.name,n=e.value;return r+": "+n},FragmentSpread:function(e){var r=e.name,n=e.directives;return"..."+r+Z(" ",A(n," "))},InlineFragment:function(e){var r=e.typeCondition,n=e.directives,i=e.selectionSet;return A(["...",Z("on ",r),A(n," "),i]," ")},FragmentDefinition:function(e){var r=e.name,n=e.typeCondition,i=e.variableDefinitions,s=e.directives,a=e.selectionSet;return"fragment ".concat(r).concat(Z("(",A(i,", "),")")," ")+"on ".concat(n," ").concat(Z("",A(s," ")," "))+a},IntValue:function(e){var r=e.value;return r},FloatValue:function(e){var r=e.value;return r},StringValue:function(e,r){var n=e.value,i=e.block;return i?gd(n,r==="description"?"":" "):JSON.stringify(n)},BooleanValue:function(e){var r=e.value;return r?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var r=e.value;return r},ListValue:function(e){var r=e.values;return"["+A(r,", ")+"]"},ObjectValue:function(e){var r=e.fields;return"{"+A(r,", ")+"}"},ObjectField:function(e){var r=e.name,n=e.value;return r+": "+n},Directive:function(e){var r=e.name,n=e.arguments;return"@"+r+Z("(",A(n,", "),")")},NamedType:function(e){var r=e.name;return r},ListType:function(e){var r=e.type;return"["+r+"]"},NonNullType:function(e){var r=e.type;return r+"!"},SchemaDefinition:Te(function(t){var e=t.directives,r=t.operationTypes;return A(["schema",A(e," "),ke(r)]," ")}),OperationTypeDefinition:function(e){var r=e.operation,n=e.type;return r+": "+n},ScalarTypeDefinition:Te(function(t){var e=t.name,r=t.directives;return A(["scalar",e,A(r," ")]," ")}),ObjectTypeDefinition:Te(function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return A(["type",e,Z("implements ",A(r," & ")),A(n," "),ke(i)]," ")}),FieldDefinition:Te(function(t){var e=t.name,r=t.arguments,n=t.type,i=t.directives;return e+(Na(r)?Z(`( `,dr(A(r,` `)),` )`):Z("(",A(r,", "),")"))+": "+n+Z(" ",A(i," "))}),InputValueDefinition:Te(function(t){var e=t.name,r=t.type,n=t.defaultValue,i=t.directives;return A([e+": "+r,Z("= ",n),A(i," ")]," ")}),InterfaceTypeDefinition:Te(function(t){var e=t.name,r=t.interfaces,n=t.directives,i=t.fields;return A(["interface",e,Z("implements ",A(r," & ")),A(n," "),ke(i)]," ")}),UnionTypeDefinition:Te(function(t){var e=t.name,r=t.directives,n=t.types;return A(["union",e,A(r," "),n&&n.length!==0?"= "+A(n," | "):""]," ")}),EnumTypeDefinition:Te(function(t){var e=t.name,r=t.directives,n=t.values;return A(["enum",e,A(r," "),ke(n)]," ")}),EnumValueDefinition:Te(function(t){var e=t.name,r=t.directives;return A([e,A(r," ")]," ")}),InputObjectTypeDefinition:Te(function(t){var e=t.name,r=t.directives,n=t.fields;return A(["input",e,A(r," "),ke(n)]," ")}),DirectiveDefinition:Te(function(t){var e=t.name,r=t.arguments,n=t.repeatable,i=t.locations;return"directive @"+e+(Na(r)?Z(`( `,dr(A(r,` `)),` )`):Z("(",A(r,", "),")"))+(n?" repeatable":"")+" on "+A(i," | ")}),SchemaExtension:function(e){var r=e.directives,n=e.operationTypes;return A(["extend schema",A(r," "),ke(n)]," ")},ScalarTypeExtension:function(e){var r=e.name,n=e.directives;return A(["extend scalar",r,A(n," ")]," ")},ObjectTypeExtension:function(e){var r=e.name,n=e.interfaces,i=e.directives,s=e.fields;return A(["extend type",r,Z("implements ",A(n," & ")),A(i," "),ke(s)]," ")},InterfaceTypeExtension:function(e){var r=e.name,n=e.interfaces,i=e.directives,s=e.fields;return A(["extend interface",r,Z("implements ",A(n," & ")),A(i," "),ke(s)]," ")},UnionTypeExtension:function(e){var r=e.name,n=e.directives,i=e.types;return A(["extend union",r,A(n," "),i&&i.length!==0?"= "+A(i," | "):""]," ")},EnumTypeExtension:function(e){var r=e.name,n=e.directives,i=e.values;return A(["extend enum",r,A(n," "),ke(i)]," ")},InputObjectTypeExtension:function(e){var r=e.name,n=e.directives,i=e.fields;return A(["extend input",r,A(n," "),ke(i)]," ")}};function Te(t){return function(e){return A([e.description,t(e)],` `)}}function A(t){var e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(e=t==null?void 0:t.filter(function(n){return n}).join(r))!==null&&e!==void 0?e:""}function ke(t){return Z(`{ `,dr(A(t,` `)),` }`)}function Z(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return e!=null&&e!==""?t+e+r:""}function dr(t){return Z(" ",t.replace(/\n/g,` `))}function uh(t){return t.indexOf(` `)!==-1}function Na(t){return t!=null&&t.some(uh)}function Va(t){return t.kind===ve.FIELD||t.kind===ve.FRAGMENT_SPREAD||t.kind===ve.INLINE_FRAGMENT}const Hc=bd({});function r0(t,e){Hc.value[t]=e}function ch(t){return!!Hc.value[t]}function n0(t){return wd(()=>ch(t))}function lh(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,s,a,o=[],u=!0,c=!1;try{if(s=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=s.call(r)).done)&&(o.push(n.value),o.length!==e);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return o}}function Ua(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function dt(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ot(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hh(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ot(t)}function Kc(t){var e=dh();return function(){var n=de(t),i;if(e){var s=de(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return hh(this,i)}}function ph(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=de(t),t!==null););return t}function pe(){return typeof Reflect<"u"&&Reflect.get?pe=Reflect.get.bind():pe=function(e,r,n){var i=ph(e,r);if(i){var s=Object.getOwnPropertyDescriptor(i,r);return s.get?s.get.call(arguments.length<3?e:n):s.value}},pe.apply(this,arguments)}function Ba(t,e){return mh(t)||lh(t,e)||Jc(t,e)||wh()}function vh(t){return yh(t)||gh(t)||Jc(t)||bh()}function yh(t){if(Array.isArray(t))return Zi(t)}function mh(t){if(Array.isArray(t))return t}function gh(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jc(t,e){if(t){if(typeof t=="string")return Zi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zi(t,e)}}function Zi(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt?o?(d=Date.now(),s||(l=setTimeout(c?T:S,t))):S():s!==!0&&(l=setTimeout(c?T:S,c===void 0?t-_:t))}return v.cancel=p,v}function _h(t,e,r){var n=r||{},i=n.atBegin,s=i===void 0?!1:i;return Yc(t,e,{debounceMode:s!==!1})}var Zc=Object.freeze({__proto__:null,debounce:_h,throttle:Yc});function el(t){return function(e,r){return t(r,e)}}var $a=el(Zc.throttle),Qa=el(Zc.debounce),es=function(e,r){for(;typeof e=="function";)e=e.call(r);return e},ts=function(e,r){return Object.entries(e).filter(function(n){var i=Ba(n,1),s=i[0];return!r.includes(s)}).reduce(function(n,i){var s=Ba(i,2),a=s[0],o=s[1];return n[a]=o,n},{})},za=function(e){e.graphQLErrors&&e.graphQLErrors.length&&(e.gqlError=e.graphQLErrors[0])},Fe=typeof window>"u",Sh={query:"_skipAllQueries",subscription:"_skipAllSubscriptions"},tl=function(){function t(e,r,n){Xt(this,t),Ne(this,"type",null),Ne(this,"vueApolloSpecialKeys",[]),this.vm=e,this.key=r,this.initialOptions=n,this.options=Object.assign({},n),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null}return Yt(t,[{key:"autostart",value:function(){var r=this;typeof this.options.skip=="function"?this._skipWatcher=this.vm.$watch(function(){return r.options.skip.call(r.vm,r.vm,r.key)},this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):!this.options.skip&&!this.allSkip?this.start():this._skip=!0,typeof this.options.pollInterval=="function"&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(r,n){r!==n&&(this.pollInterval=r,r==null?this.stopPolling():this.startPolling(r))}},{key:"skipChanged",value:function(r,n){r!==n&&(this.skip=r)}},{key:"pollInterval",get:function(){return this._pollInterval},set:function(r){this._pollInterval=r}},{key:"skip",get:function(){return this._skip},set:function(r){r||this.allSkip?this.stop():this.start(),this._skip=r}},{key:"allSkip",get:function(){return this.vm.$apollo[Sh[this.type]]}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var r=this;this.starting=!0;for(var n=function(){var u=s[i];if(typeof r.initialOptions[u]=="function"){var c=r.initialOptions[u].bind(r.vm);r.options[u]=c();var l=function(d){r._destroyed||(r.options[u]=d,r.refresh())};Fe||(l=r.options.throttle?$a(l,r.options.throttle):l,l=r.options.debounce?Qa(l,r.options.debounce):l),r._watchers.push(r.vm.$watch(c,l,{deep:r.options.deep}))}},i=0,s=["query","document","context"];i1?i-1:0),a=1;a3&&arguments[3]!==void 0?arguments[3]:!0;return Xt(this,r),n.$data.$apolloData&&!n.$data.$apolloData.queries[i]&&(n.$data.$apolloData.queries[i]={loading:!1}),a=e.call(this,n,i,s),Ne(ot(a),"type","query"),Ne(ot(a),"vueApolloSpecialKeys",Eh),Ne(ot(a),"_loading",!1),Ne(ot(a),"_linkedSubscriptions",[]),Fe&&(a.firstRun=new Promise(function(u,c){a._firstRunResolve=u,a._firstRunReject=c})),Fe&&(a.options.fetchPolicy="network-only"),s.manual||(a.hasDataField=Object.prototype.hasOwnProperty.call(a.vm.$data,i),a.hasDataField?Object.defineProperty(a.vm.$data.$apolloData.data,i,{get:function(){return a.vm.$data[i]},enumerable:!0,configurable:!0}):Object.defineProperty(a.vm.$data,i,{get:function(){return a.vm.$data.$apolloData.data[i]},enumerable:!0,configurable:!0})),o&&a.autostart(),a}return Yt(r,[{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(i){this._loading!==i&&(this._loading=i,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=i,this.vm.$data.$apolloData.loading+=i?1:-1))}},{key:"stop",value:function(){pe(de(r.prototype),"stop",this).call(this),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"generateApolloOptions",value:function(i){var s=pe(de(r.prototype),"generateApolloOptions",this).call(this,i);return this.vm.$isServer&&delete s.pollInterval,s}},{key:"executeApollo",value:function(i){if(!this._destroyed){var s=JSON.stringify(i);if(this.sub){if(s===this.previousVariablesJson)return;this.sub.unsubscribe();for(var a=0,o=this._linkedSubscriptions;a0&&arguments[0]!==void 0?arguments[0]:!1,s=this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult();return(i||s.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),s}},{key:"nextResult",value:function(i){pe(de(r.prototype),"nextResult",this).call(this,i);var s=i.data,a=i.loading,o=i.error,u=i.errors,c=u&&u.length;if((o||c)&&this.firstRunReject(o),a||this.loadingDone(),!o&&c){var l=new Error("GraphQL error: ".concat(u.map(function(d){return d.message}).join(" | ")));Object.assign(l,{graphQLErrors:u,networkError:null}),pe(de(r.prototype),"catchError",this).call(this,l)}if(!(this.observer.options.errorPolicy==="none"&&(o||c))){var f=typeof this.options.result=="function";s==null||(this.options.manual?f||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):typeof this.options.update=="function"?this.setData(this.options.update.call(this.vm,s)):typeof s[this.key]>"u"&&Object.keys(s).length?console.error("Missing ".concat(this.key," attribute on result"),s):this.setData(s[this.key])),f&&this.options.result.call(this.vm,i,this.key)}}},{key:"setData",value:function(i){var s=this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data;s[this.key]=i}},{key:"catchError",value:function(i){pe(de(r.prototype),"catchError",this).call(this,i),this.firstRunReject(i),this.loadingDone(i),this.nextResult(this.observer.getCurrentResult?this.observer.getCurrentResult():this.observer.currentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var i=this.observer.getLastError(),s=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:i,lastResult:s})}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}},{key:"watchLoading",value:function(){for(var i=arguments.length,s=new Array(i),a=0;a0&&arguments[0]!==void 0?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,i||this.firstRunResolve()}},{key:"fetchMore",value:function(){var i=this;if(this.observer){var s;return this.retrieveCurrentResult(!0),(s=this.observer).fetchMore.apply(s,arguments).then(function(a){return a.loading||i.loadingDone(),a})}}},{key:"subscribeToMore",value:function(){if(this.observer){var i;return{unsubscribe:(i=this.observer).subscribeToMore.apply(i,arguments)}}}},{key:"refetch",value:function(i){var s=this;if(i&&(this.options.variables=i),this.observer){var a=this.observer.refetch(i).then(function(o){return o.loading||s.loadingDone(),o});return this.retrieveCurrentResult(),a}}},{key:"setVariables",value:function(i,s){if(this.options.variables=i,this.observer){var a=this.observer.setVariables(i,s);return this.retrieveCurrentResult(),a}}},{key:"setOptions",value:function(i){if(Object.assign(this.options,i),this.observer){var s=this.observer.setOptions(i);return this.retrieveCurrentResult(),s}}},{key:"startPolling",value:function(){if(this.observer){var i;return(i=this.observer).startPolling.apply(i,arguments)}}},{key:"stopPolling",value:function(){if(this.observer){var i;return(i=this.observer).stopPolling.apply(i,arguments)}}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(i){this._firstRunReject&&(this._firstRunReject(i),this._firstRunReject=null)}},{key:"destroy",value:function(){pe(de(r.prototype),"destroy",this).call(this),this.loading&&this.watchLoading(!1,-1),this.loading=!1}}]),r}(tl),Th=5,kh=500,xh=function(t){Gc(r,t);var e=Kc(r);function r(n,i,s){var a,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return Xt(this,r),a=e.call(this,n,i,s),Ne(ot(a),"type","subscription"),Ne(ot(a),"vueApolloSpecialKeys",["variables","result","error","throttle","debounce","linkedQuery"]),a.attempts=0,o&&a.autostart(),a}return Yt(r,[{key:"generateApolloOptions",value:function(i){var s=pe(de(r.prototype),"generateApolloOptions",this).call(this,i);return s.onError=this.catchError.bind(this),s}},{key:"executeApollo",value:function(i){if(!this._destroyed){var s=JSON.stringify(i);if(this.sub){if(s===this.previousVariablesJson)return;this.sub.unsubscribe()}this.previousVariablesJson=s;var a=this.generateApolloOptions(i);if(typeof a.updateQuery=="function"&&(a.updateQuery=a.updateQuery.bind(this.vm)),this.options.linkedQuery){if(typeof this.options.result=="function"){var o=this.options.result.bind(this.vm),u=a.updateQuery&&a.updateQuery.bind(this.vm);a.updateQuery=function(){return o.apply(void 0,arguments),u&&u.apply(void 0,arguments)}}this.sub=this.options.linkedQuery.subscribeToMore(a)}else this.observer=this.vm.$apollo.subscribe(a),this.sub=this.observer.subscribe({next:this.nextResult.bind(this),error:this.catchError.bind(this)});pe(de(r.prototype),"executeApollo",this).call(this,i)}}},{key:"nextResult",value:function(i){pe(de(r.prototype),"nextResult",this).call(this,i),this.attempts=0,typeof this.options.result=="function"&&this.options.result.call(this.vm,i,this.key)}},{key:"catchError",value:function(i){pe(de(r.prototype),"catchError",this).call(this,i),!(this.skip||this.attempts>=Th)&&(this.stop(),this.retryTimeout=setTimeout(this.start.bind(this),Math.pow(2,this.attempts)*kh),this.attempts++)}},{key:"stop",value:function(){pe(de(r.prototype),"stop",this).call(this),clearTimeout(this.retryTimeout)}}]),r}(tl),Ah=function(){function t(e,r){Xt(this,t),this._apolloSubscriptions=[],this._watchers=[],this.vm=e,this.provider=r,this.queries={},this.subscriptions={},this.client=void 0,this.loadingKey=void 0,this.error=void 0}return Yt(t,[{key:"getClient",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!r||!r.client){if(Xi(this.client)==="object")return this.client;if(this.client)if(this.provider.clients){var n=this.provider.clients[this.client];if(!n)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return n}else throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'");return this.provider.defaultClient}var i=this.provider.clients[r.client];if(!i)throw new Error("[vue-apollo] Missing client '".concat(r.client,"' in 'apolloProvider'"));return i}},{key:"query",value:function(r){return this.getClient(r).query(r)}},{key:"watchQuery",value:function(r){var n=this,i=this.getClient(r).watchQuery(r),s=i.subscribe.bind(i);return i.subscribe=function(a){var o=s(a);return n._apolloSubscriptions.push(o),o},i}},{key:"mutate",value:function(r){return this.getClient(r).mutate(r)}},{key:"subscribe",value:function(r){var n=this;if(!Fe){var i=this.getClient(r).subscribe(r),s=i.subscribe.bind(i);return i.subscribe=function(a){var o=s(a);return n._apolloSubscriptions.push(o),o},i}}},{key:"loading",get:function(){return this.vm.$data.$apolloData.loading!==0}},{key:"data",get:function(){return this.vm.$data.$apolloData.data}},{key:"addSmartQuery",value:function(r,n){var i=this,s=es(n,this.vm);if(!s.query){var a=s;s={query:a}}var o=this.vm.$options.apollo,u=this.provider.defaultOptions,c;if(u&&u.$query&&(c=u.$query),o&&o.$query&&(c=dt(dt({},c||{}),o.$query)),c)for(var l in c)typeof s[l]>"u"&&(s[l]=c[l]);var f=this.queries[r]=new Rh(this.vm,r,s,!1);if((!Fe||s.prefetch!==!1)&&f.autostart(),!Fe){var d=s.subscribeToMore;d&&(Array.isArray(d)?d.forEach(function(h,p){i.addSmartSubscription("".concat(r).concat(p),dt(dt({},h),{},{linkedQuery:f}))}):this.addSmartSubscription(r,dt(dt({},d),{},{linkedQuery:f})))}return f}},{key:"addSmartSubscription",value:function(r,n){if(!Fe){n=es(n,this.vm);var i=this.subscriptions[r]=new xh(this.vm,r,n,!1);if(i.autostart(),n.linkedQuery){var s=n.linkedQuery._linkedSubscriptions.findIndex(function(a){return a.key===r});s!==-1?n.linkedQuery._linkedSubscriptions[s]=i:n.linkedQuery._linkedSubscriptions.push(i)}return i}}},{key:"defineReactiveSetter",value:function(r,n,i){var s=this;this._watchers.push(this.vm.$watch(n,function(a){s[r]=a},{immediate:!0,deep:i}))}},{key:"skipAllQueries",set:function(r){this._skipAllQueries=r;for(var n in this.queries)this.queries[n].skip=r}},{key:"skipAllSubscriptions",set:function(r){this._skipAllSubscriptions=r;for(var n in this.subscriptions)this.subscriptions[n].skip=r}},{key:"skipAll",set:function(r){this.skipAllQueries=r,this.skipAllSubscriptions=r}},{key:"destroy",value:function(){for(var r=0,n=this._watchers;r `subscribe` option is deprecated. Use the `$subscribe` option instead."),r.$subscribe)for(var a in r.$subscribe)this.$apollo.addSmartSubscription(a,r.$subscribe[a])}}}function rt(t,e,r,n){typeof r<"u"&&(typeof r=="function"?t.defineReactiveSetter(e,r,n):t[e]=r)}function ar(){this.$apollo&&(this.$apollo.destroy(),this.$apollo=null)}function Ph(t,e){t.mixin({data:function(){var n={$apolloData:{queries:{},loading:0,data:{}}},i=this.$options.apollo;if(i){for(var s in i)if(s.charAt(0)!=="$"){var a=i[s];!a.manual&&!fn(this.$options.props,s)&&!fn(this.$options.computed,s)&&!fn(this.$options.methods,s)&&(n[s]=null)}}return n},beforeCreate:function(){var n=this;if(this.$apollo=new Ah(this,e),Fe){var i=this.$options.ssrRender;this.$options.ssrRender=function(s){var a=i.call(n,s);return ar.call(n),a}}},serverPrefetch:function(){var n=this;if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises).then(function(){var i={vm:n,provider:n.$apollo.provider,loading:!1,queries:{},subscriptions:{}};ar.call(n),n.$apollo=i}).catch(function(i){return ar.call(n),Promise.reject(i)})},created:Fh,unmounted:ar})}var or=["$subscribe"],Ch=function(){function t(e){if(Xt(this,t),!e)throw new Error("Options argument required");this.clients=e.clients||{},e.defaultClient&&(this.clients.defaultClient=this.defaultClient=e.defaultClient),this.defaultOptions=e.defaultOptions,this.watchLoading=e.watchLoading,this.errorHandler=e.errorHandler,this.prefetch=e.prefetch}return Yt(t,[{key:"install",value:function(r){r.config.optionMergeStrategies.apollo=function(n,i,s){if(!n)return i;if(!i)return n;for(var a=Object.assign({},ts(n,or),n.data),o=Object.assign({},ts(i,or),i.data),u={},c=0;c=rs){var e=console[t]||console.log;return e.apply(console,arguments)}}}(function(t){t.debug=ur("debug"),t.log=ur("log"),t.warn=ur("warn"),t.error=ur("error")})(st||(st={}));function nl(t){var e=Sr[rs];return rs=Math.max(0,Sr.indexOf(t)),e}var Ns="3.10.1";function xe(t){try{return t()}catch{}}const ns=xe(function(){return globalThis})||xe(function(){return window})||xe(function(){return self})||xe(function(){return global})||xe(function(){return xe.constructor("return this")()});var Ga=new Map;function is(t){var e=Ga.get(t)||1;return Ga.set(t,e+1),"".concat(t,":").concat(e,":").concat(Math.random().toString(36).slice(2))}function il(t,e){e===void 0&&(e=0);var r=is("stringifyForDisplay");return JSON.stringify(t,function(n,i){return i===void 0?r:i},e).split(JSON.stringify(r)).join("")}function cr(t){return function(e){for(var r=[],n=1;nObject.create(null),{forEach:Nh,slice:Ja}=Array.prototype,{hasOwnProperty:Vh}=Object.prototype;let kt=class al{constructor(e=!0,r=Lh){this.weakness=e,this.makeData=r}lookup(){return this.lookupArray(arguments)}lookupArray(e){let r=this;return Nh.call(e,n=>r=r.getChildTrie(n)),Vh.call(r,"data")?r.data:r.data=this.makeData(Ja.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&n=0});function ee(t){return t!==null&&typeof t=="object"}function Bh(t,e){var r=e,n=[];t.definitions.forEach(function(s){if(s.kind==="OperationDefinition")throw ye(71,s.operation,s.name?" named '".concat(s.name.value,"'"):"");s.kind==="FragmentDefinition"&&n.push(s)}),typeof r>"u"&&(I(n.length===1,72,n.length),r=n[0].name.value);var i=O(O({},t),{definitions:_e([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions,!0)});return i}function Mr(t){t===void 0&&(t=[]);var e={};return t.forEach(function(r){e[r.name.value]=r}),e}function Lr(t,e){switch(t.kind){case"InlineFragment":return t;case"FragmentSpread":{var r=t.name.value;if(typeof e=="function")return e(r);var n=e&&e[r];return I(n,73,r),n||null}default:return null}}function $h(){}class ss{constructor(e=1/0,r=$h){this.max=e,this.dispose=r,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}get size(){return this.map.size}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const r=this.map.get(e);return r?(r===this.newest&&(this.newest=r.older),r===this.oldest&&(this.oldest=r.newer),r.newer&&(r.newer.older=r.older),r.older&&(r.older.newer=r.newer),this.map.delete(e),this.dispose(r.value,e),!0):!1}}function as(){}const Qh=as,zh=typeof WeakRef<"u"?WeakRef:function(t){return{deref:()=>t}},Wh=typeof WeakMap<"u"?WeakMap:Map,Hh=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:as,unregister:as}},Gh=10024;class Er{constructor(e=1/0,r=Qh){this.max=e,this.dispose=r,this.map=new Wh,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const n=this.unfinalizedNodes.values();for(let i=0;i0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new Hh(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const r=this.getNode(e);return r&&r.value}getNode(e){const r=this.map.get(e);if(r&&r!==this.newest){const{older:n,newer:i}=r;i&&(i.older=n),n&&(n.newer=i),r.older=this.newest,r.older.newer=r,r.newer=null,this.newest=r,r===this.oldest&&(this.oldest=i)}return r}set(e,r){let n=this.getNode(e);return n?n.value=r:(n={key:e,value:r,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.scheduleFinalization(n),this.map.set(e,n),this.size++,n.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const r=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,r),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),r&&this.map.delete(r)}delete(e){const r=this.map.get(e);return r?(this.deleteNode(r),!0):!1}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var hn=new WeakSet;function cl(t){t.size<=(t.max||-1)||hn.has(t)||(hn.add(t),setTimeout(function(){t.clean(),hn.delete(t)},100))}var ll=function(t,e){var r=new Er(t,e);return r.set=function(n,i){var s=Er.prototype.set.call(this,n,i);return cl(this),s},r},Kh=function(t,e){var r=new ss(t,e);return r.set=function(n,i){var s=ss.prototype.set.call(this,n,i);return cl(this),s},r},Jh=Symbol.for("apollo.cacheSize"),Be=O({},ns[Jh]),nt={};function fl(t,e){nt[t]=e}var Xh=globalThis.__DEV__!==!1?tp:void 0,Yh=globalThis.__DEV__!==!1?rp:void 0,Zh=globalThis.__DEV__!==!1?dl:void 0;function ep(){var t={parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4};return Object.fromEntries(Object.entries(t).map(function(e){var r=e[0],n=e[1];return[r,Be[r]||n]}))}function tp(){var t,e,r,n,i;if(globalThis.__DEV__===!1)throw new Error("only supported in development mode");return{limits:ep(),sizes:O({print:(t=nt.print)===null||t===void 0?void 0:t.call(nt),parser:(e=nt.parser)===null||e===void 0?void 0:e.call(nt),canonicalStringify:(r=nt.canonicalStringify)===null||r===void 0?void 0:r.call(nt),links:us(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:pl(this.queryManager.documentTransform)}},(i=(n=this.cache).getMemoryInternals)===null||i===void 0?void 0:i.call(n))}}function dl(){return{cache:{fragmentQueryDocuments:Ge(this.getFragmentDoc)}}}function rp(){var t=this.config.fragments;return O(O({},dl.apply(this)),{addTypenameDocumentTransform:pl(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Ge(this.storeReader.executeSelectionSet),executeSubSelectedArray:Ge(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Ge(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Ge(t==null?void 0:t.findFragmentSpreads),lookup:Ge(t==null?void 0:t.lookup),transform:Ge(t==null?void 0:t.transform)}})}function np(t){return!!t&&"dirtyKey"in t}function Ge(t){return np(t)?t.size:void 0}function hl(t){return t!=null}function pl(t){return os(t).map(function(e){return{cache:e}})}function os(t){return t?_e(_e([Ge(t==null?void 0:t.performWork)],os(t==null?void 0:t.left),!0),os(t==null?void 0:t.right),!0).filter(hl):[]}function us(t){var e;return t?_e(_e([(e=t==null?void 0:t.getMemoryInternals)===null||e===void 0?void 0:e.call(t)],us(t==null?void 0:t.left),!0),us(t==null?void 0:t.right),!0).filter(hl):[]}var Ke=Object.assign(function(e){return JSON.stringify(e,ip)},{reset:function(){mt=new Kh(Be.canonicalStringify||1e3)}});globalThis.__DEV__!==!1&&fl("canonicalStringify",function(){return mt.size});var mt;Ke.reset();function ip(t,e){if(e&&typeof e=="object"){var r=Object.getPrototypeOf(e);if(r===Object.prototype||r===null){var n=Object.keys(e);if(n.every(sp))return e;var i=JSON.stringify(n),s=mt.get(i);if(!s){n.sort();var a=JSON.stringify(n);s=mt.get(a)||n,mt.set(i,s),mt.set(a,s)}var o=Object.create(r);return s.forEach(function(u){o[u]=e[u]}),o}}return e}function sp(t,e,r){return e===0||r[e-1]<=t}function lt(t){return{__ref:String(t)}}function B(t){return!!(t&&typeof t=="object"&&typeof t.__ref=="string")}function ap(t){return ee(t)&&t.kind==="Document"&&Array.isArray(t.definitions)}function op(t){return t.kind==="StringValue"}function up(t){return t.kind==="BooleanValue"}function cp(t){return t.kind==="IntValue"}function lp(t){return t.kind==="FloatValue"}function fp(t){return t.kind==="Variable"}function dp(t){return t.kind==="ObjectValue"}function hp(t){return t.kind==="ListValue"}function pp(t){return t.kind==="EnumValue"}function vp(t){return t.kind==="NullValue"}function _t(t,e,r,n){if(cp(r)||lp(r))t[e.value]=Number(r.value);else if(up(r)||op(r))t[e.value]=r.value;else if(dp(r)){var i={};r.fields.map(function(a){return _t(i,a.name,a.value,n)}),t[e.value]=i}else if(fp(r)){var s=(n||{})[r.name.value];t[e.value]=s}else if(hp(r))t[e.value]=r.values.map(function(a){var o={};return _t(o,e,a,n),o[e.value]});else if(pp(r))t[e.value]=r.value;else if(vp(r))t[e.value]=null;else throw ye(82,e.value,r.kind)}function yp(t,e){var r=null;t.directives&&(r={},t.directives.forEach(function(i){r[i.name.value]={},i.arguments&&i.arguments.forEach(function(s){var a=s.name,o=s.value;return _t(r[i.name.value],a,o,e)})}));var n=null;return t.arguments&&t.arguments.length&&(n={},t.arguments.forEach(function(i){var s=i.name,a=i.value;return _t(n,s,a,e)})),vl(t.name.value,n,r)}var mp=["connection","include","skip","client","rest","export","nonreactive"],Ct=Ke,vl=Object.assign(function(t,e,r){if(e&&r&&r.connection&&r.connection.key)if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(o){i[o]=e[o]}),"".concat(r.connection.key,"(").concat(Ct(i),")")}else return r.connection.key;var s=t;if(e){var a=Ct(e);s+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(o){mp.indexOf(o)===-1&&(r[o]&&Object.keys(r[o]).length?s+="@".concat(o,"(").concat(Ct(r[o]),")"):s+="@".concat(o))}),s},{setStringify:function(t){var e=Ct;return Ct=t,e}});function Nr(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach(function(n){var i=n.name,s=n.value;return _t(r,i,s,e)}),r}return null}function Je(t){return t.alias?t.alias.value:t.name.value}function cs(t,e,r){for(var n,i=0,s=e.selections;iObject.create(null),{forEach:Op,slice:_p}=Array.prototype,{hasOwnProperty:Sp}=Object.prototype;class $s{constructor(e=!0,r=wp){this.weakness=e,this.makeData=r}lookup(...e){return this.lookupArray(e)}lookupArray(e){let r=this;return Op.call(e,n=>r=r.getChildTrie(n)),Sp.call(r,"data")?r.data:r.data=this.makeData(_p.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let r=this;for(let n=0,i=e.length;r&&nclass{constructor(){this.id=["slot",Ep++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=le;e;e=e.parent)if(this.id in e.slots){const r=e.slots[this.id];if(r===Ya)break;return e!==le&&(le.slots[this.id]=r),!0}return le&&(le.slots[this.id]=Ya),!1}getValue(){if(this.hasValue())return le.slots[this.id]}withValue(e,r,n,i){const s={__proto__:null,[this.id]:e},a=le;le={parent:a,slots:s};try{return r.apply(i,n)}finally{le=a}}static bind(e){const r=le;return function(){const n=le;try{return le=r,e.apply(this,arguments)}finally{le=n}}}static noContext(e,r,n){if(le){const i=le;try{return le=null,e.apply(n,r)}finally{le=i}}else return e.apply(n,r)}};function Za(t){try{return t()}catch{}}const pn="@wry/context:Slot",Tp=Za(()=>globalThis)||Za(()=>global)||Object.create(null),eo=Tp,Qs=eo[pn]||Array[pn]||function(t){try{Object.defineProperty(eo,pn,{value:t,enumerable:!1,writable:!1,configurable:!0})}finally{return t}}(Rp()),{bind:s0,noContext:a0}=Qs,Ur=new Qs,{hasOwnProperty:kp}=Object.prototype,zs=Array.from||function(t){const e=[];return t.forEach(r=>e.push(r)),e};function Ws(t){const{unsubscribe:e}=t;typeof e=="function"&&(t.unsubscribe=void 0,e())}const Qt=[],xp=100;function St(t,e){if(!t)throw new Error(e||"assertion failure")}function ml(t,e){const r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}function gl(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}function bl(t){return t.slice(0)}class Br{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Br.count}peek(){if(this.value.length===1&&!Ye(this))return to(this),this.value[0]}recompute(e){return St(!this.recomputing,"already recomputing"),to(this),Ye(this)?Ap(this,e):gl(this.value)}setDirty(){this.dirty||(this.dirty=!0,wl(this),Ws(this))}dispose(){this.setDirty(),Rl(this),Hs(this,(e,r)=>{e.setDirty(),Tl(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=Qt.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(zs(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),Qt.push(this.deps),this.deps=null)}}Br.count=0;function to(t){const e=Ur.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),Ye(t)?_l(e,t):Sl(e,t),e}function Ap(t,e){return Rl(t),Ur.withValue(t,Fp,[t,e]),Cp(t,e)&&Pp(t),gl(t.value)}function Fp(t,e){t.recomputing=!0;const{normalizeResult:r}=t;let n;r&&t.value.length===1&&(n=bl(t.value)),t.value.length=0;try{if(t.value[0]=t.fn.apply(null,e),r&&n&&!ml(n,t.value))try{t.value[0]=r(t.value[0],n[0])}catch{}}catch(i){t.value[1]=i}t.recomputing=!1}function Ye(t){return t.dirty||!!(t.dirtyChildren&&t.dirtyChildren.size)}function Pp(t){t.dirty=!1,!Ye(t)&&Ol(t)}function wl(t){Hs(t,_l)}function Ol(t){Hs(t,Sl)}function Hs(t,e){const r=t.parents.size;if(r){const n=zs(t.parents);for(let i=0;i0&&t.childValues.forEach((e,r)=>{Tl(t,r)}),t.forgetDeps(),St(t.dirtyChildren===null)}function Tl(t,e){e.parents.delete(t),t.childValues.delete(e),El(t,e)}function Cp(t,e){if(typeof t.subscribe=="function")try{Ws(t),t.unsubscribe=t.subscribe.apply(null,e)}catch{return t.setDirty(),!1}return!0}const Dp={setDirty:!0,dispose:!0,forget:!0};function kl(t){const e=new Map;function r(n){const i=Ur.getValue();if(i){let s=e.get(n);s||e.set(n,s=new Set),i.dependOn(s)}}return r.dirty=function(i,s){const a=e.get(i);if(a){const o=s&&kp.call(Dp,s)?s:"setDirty";zs(a).forEach(u=>u[o]()),e.delete(i),Ws(a)}},r}let ro;function Ip(...t){return(ro||(ro=new $s(typeof WeakMap=="function"))).lookupArray(t)}const vn=new Set;function zt(t,{max:e=Math.pow(2,16),keyArgs:r,makeCacheKey:n=Ip,normalizeResult:i,subscribe:s,cache:a=ss}=Object.create(null)){const o=typeof a=="function"?new a(e,d=>d.dispose()):a,u=function(){const d=n.apply(null,r?r.apply(null,arguments):arguments);if(d===void 0)return t.apply(null,arguments);let h=o.get(d);h||(o.set(d,h=new Br(t)),h.normalizeResult=i,h.subscribe=s,h.forget=()=>o.delete(d));const p=h.recompute(Array.prototype.slice.call(arguments));return o.set(d,h),vn.add(o),Ur.hasValue()||(vn.forEach(v=>v.clean()),vn.clear()),p};Object.defineProperty(u,"size",{get:()=>o.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:e,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:s,cache:o});function c(d){const h=d&&o.get(d);h&&h.setDirty()}u.dirtyKey=c,u.dirty=function(){c(n.apply(null,arguments))};function l(d){const h=d&&o.get(d);if(h)return h.peek()}u.peekKey=l,u.peek=function(){return l(n.apply(null,arguments))};function f(d){return d?o.delete(d):!1}return u.forgetKey=f,u.forget=function(){return f(n.apply(null,arguments))},u.makeCacheKey=n,u.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(u)}function jp(t){return t}var Gs=function(){function t(e,r){r===void 0&&(r=Object.create(null)),this.resultCache=ol?new WeakSet:new Set,this.transform=e,r.getCacheKey&&(this.getCacheKey=r.getCacheKey),this.cached=r.cache!==!1,this.resetCache()}return t.prototype.getCacheKey=function(e){return[e]},t.identity=function(){return new t(jp,{cache:!1})},t.split=function(e,r,n){return n===void 0&&(n=t.identity()),Object.assign(new t(function(i){var s=e(i)?r:n;return s.transformDocument(i)},{cache:!1}),{left:r,right:n})},t.prototype.resetCache=function(){var e=this;if(this.cached){var r=new kt(xt);this.performWork=zt(t.prototype.performWork.bind(this),{makeCacheKey:function(n){var i=e.getCacheKey(n);if(i)return I(Array.isArray(i),66),r.lookupArray(i)},max:Be["documentTransform.cache"],cache:Er})}},t.prototype.performWork=function(e){return er(e),this.transform(e)},t.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var r=this.performWork(e);return this.resultCache.add(r),r},t.prototype.concat=function(e){var r=this;return Object.assign(new t(function(n){return e.transformDocument(r.transformDocument(n))},{cache:!1}),{left:this,right:e})},t}(),Nt,$r=Object.assign(function(t){var e=Nt.get(t);return e||(e=Ls(t),Nt.set(t,e)),e},{reset:function(){Nt=new ll(Be.print||2e3)}});$r.reset();globalThis.__DEV__!==!1&&fl("print",function(){return Nt?Nt.size:0});var te=Array.isArray;function Ce(t){return Array.isArray(t)&&t.length>0}var no={kind:ve.FIELD,name:{kind:ve.NAME,value:"__typename"}};function xl(t,e){return!t||t.selectionSet.selections.every(function(r){return r.kind===ve.FRAGMENT_SPREAD&&xl(e[r.name.value],e)})}function qp(t){return xl(tr(t)||bp(t),Mr(Vr(t)))?null:t}function Mp(t){var e=new Map,r=new Map;return t.forEach(function(n){n&&(n.name?e.set(n.name,n):n.test&&r.set(n.test,n))}),function(n){var i=e.get(n.name.value);return!i&&r.size&&r.forEach(function(s,a){a(n)&&(i=s)}),i}}function io(t){var e=new Map;return function(n){n===void 0&&(n=t);var i=e.get(n);return i||e.set(n,i={variables:new Set,fragmentSpreads:new Set}),i}}function Al(t,e){er(e);for(var r=io(""),n=io(""),i=function(m){for(var w=0,b=void 0;w=0;--a)e.definitions[a].kind===ve.OPERATION_DEFINITION&&++s;var o=Mp(t),u=function(m){return Ce(m)&&m.map(o).some(function(w){return w&&w.remove})},c=new Map,l=!1,f={enter:function(m){if(u(m.directives))return l=!0,null}},d=Ue(e,{Field:f,InlineFragment:f,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(m,w,b,_,S){var T=i(S);T&&T.variables.add(m.name.value)}},FragmentSpread:{enter:function(m,w,b,_,S){if(u(m.directives))return l=!0,null;var T=i(S);T&&T.fragmentSpreads.add(m.name.value)}},FragmentDefinition:{enter:function(m,w,b,_){c.set(JSON.stringify(_),m)},leave:function(m,w,b,_){var S=c.get(JSON.stringify(_));if(m===S)return m;if(s>0&&m.selectionSet.selections.every(function(T){return T.kind===ve.FIELD&&T.name.value==="__typename"}))return n(m.name.value).removed=!0,l=!0,null}},Directive:{leave:function(m){if(o(m))return l=!0,null}}});if(!l)return e;var h=function(m){return m.transitiveVars||(m.transitiveVars=new Set(m.variables),m.removed||m.fragmentSpreads.forEach(function(w){h(n(w)).transitiveVars.forEach(function(b){m.transitiveVars.add(b)})})),m},p=new Set;d.definitions.forEach(function(m){m.kind===ve.OPERATION_DEFINITION?h(r(m.name&&m.name.value)).fragmentSpreads.forEach(function(w){p.add(w)}):m.kind===ve.FRAGMENT_DEFINITION&&s===0&&!n(m.name.value).removed&&p.add(m.name.value)}),p.forEach(function(m){h(n(m)).fragmentSpreads.forEach(function(w){p.add(w)})});var v=function(m){return!!(!p.has(m)||n(m).removed)},y={enter:function(m){if(v(m.name.value))return null}};return qp(Ue(d,{FragmentSpread:y,FragmentDefinition:y,OperationDefinition:{leave:function(m){if(m.variableDefinitions){var w=h(r(m.name&&m.name.value)).transitiveVars;if(w.size1)for(var n=new Ze,i=1;i=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bp(t,e){if(t){if(typeof t=="string")return ao(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ao(t,e)}}function ao(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1,o=!1,u=arguments[1],c=u;return new s(function(l){return i.subscribe({next:function(f){var d=!o;if(o=!0,!d||a)try{c=n(c,f)}catch(h){return l.error(h)}else c=f},error:function(f){l.error(f)},complete:function(){if(!o&&!a)return l.error(new TypeError("Cannot reduce an empty sequence"));l.next(c),l.complete()}})})},e.concat=function(){for(var n=this,i=arguments.length,s=new Array(i),a=0;a=0&&o.splice(d,1),c()}});o.push(f)},error:function(l){a.error(l)},complete:function(){c()}});function c(){u.closed&&o.length===0&&a.complete()}return function(){o.forEach(function(l){return l.unsubscribe()}),u.unsubscribe()}})},e[fs]=function(){return this},t.from=function(n){var i=typeof this=="function"?this:t;if(n==null)throw new TypeError(n+" is not an object");var s=Rr(n,fs);if(s){var a=s.call(n);if(Object(a)!==a)throw new TypeError(a+" is not an object");return Qp(a)&&a.constructor===i?a:new i(function(o){return a.subscribe(o)})}if(Ys("iterator")&&(s=Rr(n,$p),s))return new i(function(o){hr(function(){if(!o.closed){for(var u=Up(s.call(n)),c;!(c=u()).done;){var l=c.value;if(o.next(l),o.closed)return}o.complete()}})});if(Array.isArray(n))return new i(function(o){hr(function(){if(!o.closed){for(var u=0;u=0;--o){var u=a[o],c=!isNaN(+u),l=c?[]:{};l[u]=s,s=l}r=n.merge(r,s)}),r}function pr(t){var e=vs(t);return Ce(e)}function vs(t){var e=Ce(t.errors)?t.errors.slice(0):[];return wt(t)&&Ce(t.incremental)&&t.incremental.forEach(function(r){r.errors&&e.push.apply(e,r.errors)}),e}function Rt(){for(var t=[],e=0;e-1;){if(y=void 0,R=[o.slice(0,v),o.slice(v+a.length)],y=R[0],o=R[1],m=y.indexOf(`\r \r `),w=_v(y.slice(0,m)),b=w["content-type"],b&&b.toLowerCase().indexOf("application/json")===-1)throw new Error("Unsupported patch content type: application/json is required.");if(_=y.slice(m),_){if(S=Vl(t,_),Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S||"payload"in S)if(ev(S)){if(T={},"payload"in S){if(Object.keys(S).length===1&&S.payload===null)return[2];T=O({},S.payload)}"errors"in S&&(T=O(O({},T),{extensions:O(O({},"extensions"in T?T.extensions:null),(g={},g[ta]=S.errors,g))})),e(T)}else e(S);else if(Object.keys(S).length===1&&"hasNext"in S&&!S.hasNext)return[2]}v=o.indexOf(a)}return[3,1];case 3:return[2]}})})}function _v(t){var e={};return t.split(` `).forEach(function(r){var n=r.indexOf(":");if(n>-1){var i=r.slice(0,n).trim().toLowerCase(),s=r.slice(n+1).trim();e[i]=s}}),e}function Vl(t,e){if(t.status>=300){var r=function(){try{return JSON.parse(e)}catch{return e}};ea(t,r(),"Response not successful: Received status code ".concat(t.status))}try{return JSON.parse(e)}catch(i){var n=i;throw n.name="ServerParseError",n.response=t,n.statusCode=t.status,n.bodyText=e,n}}function Sv(t,e){t.result&&t.result.errors&&t.result.data&&e.next(t.result),e.error(t)}function ra(t){return function(e){return e.text().then(function(r){return Vl(e,r)}).then(function(r){return!Array.isArray(r)&&!po.call(r,"data")&&!po.call(r,"errors")&&ea(e,r,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(n){return n.operationName}):t.operationName,"'.")),r})}}var Wt=function(t,e){var r;try{r=JSON.stringify(t)}catch(i){var n=ye(39,e,i.message);throw n.parseError=i,n}return r},Ev={includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},Rv={accept:"*/*","content-type":"application/json"},Tv={method:"POST"},na={http:Ev,headers:Rv,options:Tv},zr=function(t,e){return e(t)};function Ul(t,e){for(var r=[],n=2;n"u")throw ye(37)},Bl=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var t=new AbortController,e=t.signal;return{controller:t,signal:e}},sa=function(t,e){var r=t.getContext(),n=r.uri;return n||(typeof e=="function"?e(t):e||"/graphql")};function aa(t,e){var r=[],n=function(f,d){r.push("".concat(f,"=").concat(encodeURIComponent(d)))};if("query"in e&&n("query",e.query),e.operationName&&n("operationName",e.operationName),e.variables){var i=void 0;try{i=Wt(e.variables,"Variables map")}catch(f){return{parseError:f}}n("variables",i)}if(e.extensions){var s=void 0;try{s=Wt(e.extensions,"Extensions map")}catch(f){return{parseError:f}}n("extensions",s)}var a="",o=t,u=t.indexOf("#");u!==-1&&(a=t.substr(u),o=t.substr(0,u));var c=o.indexOf("?")===-1?"?":"&",l=o+c+r.join("&")+a;return{newURI:l}}var vo=xe(function(){return fetch}),oa=function(t){t===void 0&&(t={});var e=t.uri,r=e===void 0?"/graphql":e,n=t.fetch,i=t.print,s=i===void 0?zr:i,a=t.includeExtensions,o=t.preserveHeaderCase,u=t.useGETForQueries,c=t.includeUnusedVariables,l=c===void 0?!1:c,f=Ve(t,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);globalThis.__DEV__!==!1&&ia(n||vo);var d={http:{includeExtensions:a,preserveHeaderCase:o},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new he(function(h){var p=sa(h,r),v=h.getContext(),y={};if(v.clientAwareness){var m=v.clientAwareness,w=m.name,b=m.version;w&&(y["apollographql-client-name"]=w),b&&(y["apollographql-client-version"]=b)}var _=O(O({},y),v.headers),S={http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:_};if($t(["client"],h.query)){var T=Fl(h.query);if(!T)return yr(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));h.query=T}var R=Wr(h,s,na,d,S),g=R.options,x=R.body;x.variables&&!l&&(x.variables=av(x.variables,h.query));var k;!g.signal&&typeof AbortController<"u"&&(k=new AbortController,g.signal=k.signal);var V=function(q){return q.kind==="OperationDefinition"&&q.operation==="mutation"},C=function(q){return q.kind==="OperationDefinition"&&q.operation==="subscription"},P=C(At(h.query)),j=$t(["defer"],h.query);if(u&&!h.query.definitions.some(V)&&(g.method="GET"),j||P){g.headers=g.headers||{};var ae="multipart/mixed;";P&&j&&globalThis.__DEV__!==!1&&I.warn(38),P?ae+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(ae+="deferSpec=20220824,application/json"),g.headers.accept=ae}if(g.method==="GET"){var oe=aa(p,x),ne=oe.newURI,ie=oe.parseError;if(ie)return yr(ie);p=ne}else try{g.body=Wt(x,"Payload")}catch(q){return yr(q)}return new L(function(q){var we=n||xe(function(){return fetch})||vo,X=q.next.bind(q);return we(p,g).then(function(re){var Y;h.setContext({response:re});var ge=(Y=re.headers)===null||Y===void 0?void 0:Y.get("content-type");return ge!==null&&/^multipart\/mixed/i.test(ge)?Ov(re,X):ra(h)(re).then(X)}).then(function(){k=void 0,q.complete()}).catch(function(re){k=void 0,Sv(re,q)}),function(){k&&k.abort()}})})},ua=function(t){Re(e,t);function e(r){r===void 0&&(r={});var n=t.call(this,oa(r).request)||this;return n.options=r,n}return e}(he);const xv=Object.freeze(Object.defineProperty({__proto__:null,HttpLink:ua,checkFetcher:ia,createHttpLink:oa,createSignalIfSupported:Bl,defaultPrinter:zr,fallbackHttpConfig:na,parseAndCheckHttpResponse:ra,rewriteURIForGET:aa,selectHttpOptionsAndBody:Ul,selectHttpOptionsAndBodyInternal:Wr,selectURI:sa,serializeFetchParameter:Wt},Symbol.toStringTag,{value:"Module"})),{toString:yo,hasOwnProperty:Av}=Object.prototype,mo=Function.prototype.toString,ys=new Map;function J(t,e){try{return ms(t,e)}finally{ys.clear()}}function ms(t,e){if(t===e)return!0;const r=yo.call(t),n=yo.call(e);if(r!==n)return!1;switch(r){case"[object Array]":if(t.length!==e.length)return!1;case"[object Object]":{if(bo(t,e))return!0;const i=go(t),s=go(e),a=i.length;if(a!==s.length)return!1;for(let o=0;o=0&&t.indexOf(e,r)===r}function bo(t,e){let r=ys.get(t);if(r){if(r.has(e))return!0}else ys.set(t,r=new Set);return r.add(e),!1}var ca=function(){function t(){this.assumeImmutableResults=!1,this.getFragmentDoc=zt(Bh,{max:Be["cache.fragmentQueryDocuments"]||1e3,cache:Er})}return t.prototype.batch=function(e){var r=this,n=typeof e.optimistic=="string"?e.optimistic:e.optimistic===!1?null:void 0,i;return this.performTransaction(function(){return i=e.update(r)},n),i},t.prototype.recordOptimisticTransaction=function(e,r){this.performTransaction(e,r)},t.prototype.transformDocument=function(e){return e},t.prototype.transformForLink=function(e){return e},t.prototype.identify=function(e){},t.prototype.gc=function(){return[]},t.prototype.modify=function(e){return!1},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(O(O({},e),{rootId:e.id||"ROOT_QUERY",optimistic:r}))},t.prototype.watchFragment=function(e){var r=this,n=e.fragment,i=e.fragmentName,s=e.from,a=e.optimistic,o=a===void 0?!0:a,u={returnPartialData:!0,id:typeof s=="string"?s:this.identify(s),query:this.getFragmentDoc(n,i),optimistic:o},c;return new L(function(l){return r.watch(O(O({},u),{immediate:!0,query:r.getFragmentDoc(n,i),callback:function(f){if(!J(f,c)){var d={data:f.result,complete:!!f.complete};f.missing&&(d.missing=Qr(f.missing.map(function(h){return h.missing}))),c=f,l.next(d)}}}))})},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!!e.optimistic),this.read(O(O({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:r}))},t.prototype.writeQuery=function(e){var r=e.id,n=e.data,i=Ve(e,["id","data"]);return this.write(Object.assign(i,{dataId:r||"ROOT_QUERY",result:n}))},t.prototype.writeFragment=function(e){var r=e.id,n=e.data,i=e.fragment,s=e.fragmentName,a=Ve(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,s),dataId:r,result:n}))},t.prototype.updateQuery=function(e,r){return this.batch({update:function(n){var i=n.readQuery(e),s=r(i);return s==null?i:(n.writeQuery(O(O({},e),{data:s})),s)}})},t.prototype.updateFragment=function(e,r){return this.batch({update:function(n){var i=n.readFragment(e),s=r(i);return s==null?i:(n.writeFragment(O(O({},e),{data:s})),s)}})},t}();globalThis.__DEV__!==!1&&(ca.prototype.getMemoryInternals=Zh);var gs;gs||(gs={});var la=function(t){Re(e,t);function e(r,n,i,s){var a,o=t.call(this,r)||this;if(o.message=r,o.path=n,o.query=i,o.variables=s,Array.isArray(o.path)){o.missing=o.message;for(var u=o.path.length-1;u>=0;--u)o.missing=(a={},a[o.path[u]]=o.missing,a)}else o.missing=o.path;return o.__proto__=e.prototype,o}return e}(Error),ce=Object.prototype.hasOwnProperty;function jt(t){return t==null}function fa(t,e){var r=t.__typename,n=t.id,i=t._id;if(typeof r=="string"&&(e&&(e.keyObject=jt(n)?jt(i)?void 0:{_id:i}:{id:n}),jt(n)&&!jt(i)&&(n=i),!jt(n)))return"".concat(r,":").concat(typeof n=="number"||typeof n=="string"?n:JSON.stringify(n))}var $l={dataIdFromObject:fa,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Dv(t){return Rt($l,t)}function Ql(t){var e=t.canonizeResults;return e===void 0?$l.canonizeResults:e}function Iv(t,e){return B(e)?t.get(e.__ref,"__typename"):e&&e.__typename}var zl=/^[_a-z][_0-9a-z]*/i;function et(t){var e=t.match(zl);return e?e[0]:t}function bs(t,e,r){return ee(e)?te(e)?e.every(function(n){return bs(t,n,r)}):t.selections.every(function(n){if(Xe(n)&&Zt(n,r)){var i=Je(n);return ce.call(e,i)&&(!n.selectionSet||bs(n.selectionSet,e[i],r))}return!0}):!1}function gt(t){return ee(t)&&!B(t)&&!te(t)}function jv(){return new Ze}function Wl(t,e){var r=Mr(Vr(t));return{fragmentMap:r,lookupFragment:function(n){var i=r[n];return!i&&e&&(i=e.lookup(n)),i||null}}}var mr=Object.create(null),gn=function(){return mr},wo=Object.create(null),Ht=function(){function t(e,r){var n=this;this.policies=e,this.group=r,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(i,s){return ps(B(i)?n.get(i.__ref,s):i&&i[s])},this.canRead=function(i){return B(i)?n.has(i.__ref):typeof i=="object"},this.toReference=function(i,s){if(typeof i=="string")return lt(i);if(B(i))return i;var a=n.policies.identify(i)[0];if(a){var o=lt(a);return s&&n.merge(a,i),o}}}return t.prototype.toObject=function(){return O({},this.data)},t.prototype.has=function(e){return this.lookup(e,!0)!==void 0},t.prototype.get=function(e,r){if(this.group.depend(e,r),ce.call(this.data,e)){var n=this.data[e];if(n&&ce.call(n,r))return n[r]}if(r==="__typename"&&ce.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof He)return this.parent.get(e,r)},t.prototype.lookup=function(e,r){if(r&&this.group.depend(e,"__exists"),ce.call(this.data,e))return this.data[e];if(this instanceof He)return this.parent.lookup(e,r);if(this.policies.rootTypenamesById[e])return Object.create(null)},t.prototype.merge=function(e,r){var n=this,i;B(e)&&(e=e.__ref),B(r)&&(r=r.__ref);var s=typeof e=="string"?this.lookup(i=e):e,a=typeof r=="string"?this.lookup(i=r):r;if(a){I(typeof i=="string",1);var o=new Ze(Mv).merge(s,a);if(this.data[i]=o,o!==s&&(delete this.refs[i],this.group.caching)){var u=Object.create(null);s||(u.__exists=1),Object.keys(a).forEach(function(c){if(!s||s[c]!==o[c]){u[c]=1;var l=et(c);l!==c&&!n.policies.hasKeyArgs(o.__typename,l)&&(u[l]=1),o[c]===void 0&&!(n instanceof He)&&delete o[c]}}),u.__typename&&!(s&&s.__typename)&&this.policies.rootTypenamesById[i]===o.__typename&&delete u.__typename,Object.keys(u).forEach(function(c){return n.group.dirty(i,c)})}}},t.prototype.modify=function(e,r){var n=this,i=this.lookup(e);if(i){var s=Object.create(null),a=!1,o=!0,u={DELETE:mr,INVALIDATE:wo,isReference:B,toReference:this.toReference,canRead:this.canRead,readField:function(c,l){return n.policies.readField(typeof c=="string"?{fieldName:c,from:l||lt(e)}:c,{store:n})}};if(Object.keys(i).forEach(function(c){var l=et(c),f=i[c];if(f!==void 0){var d=typeof r=="function"?r:r[c]||r[l];if(d){var h=d===gn?mr:d(ps(f),O(O({},u),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(h===wo)n.group.dirty(e,c);else if(h===mr&&(h=void 0),h!==f&&(s[c]=h,a=!0,f=h,globalThis.__DEV__!==!1)){var p=function(S){if(n.lookup(S.__ref)===void 0)return globalThis.__DEV__!==!1&&I.warn(2,S),!0};if(B(h))p(h);else if(Array.isArray(h))for(var v=!1,y=void 0,m=0,w=h;m0){var r=--this.rootIds[e];return r||delete this.rootIds[e],r}return 0},t.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof He?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},t.prototype.gc=function(){var e=this,r=this.getRootIdSet(),n=this.toObject();r.forEach(function(a){ce.call(n,a)&&(Object.keys(e.findChildRefIds(a)).forEach(r.add,r),delete n[a])});var i=Object.keys(n);if(i.length){for(var s=this;s instanceof He;)s=s.parent;i.forEach(function(a){return s.delete(a)})}return i},t.prototype.findChildRefIds=function(e){if(!ce.call(this.refs,e)){var r=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return r;var i=new Set([n]);i.forEach(function(s){B(s)&&(r[s.__ref]=!0),ee(s)&&Object.keys(s).forEach(function(a){var o=s[a];ee(o)&&i.add(o)})})}return this.refs[e]},t.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},t}(),Hl=function(){function t(e,r){r===void 0&&(r=null),this.caching=e,this.parent=r,this.d=null,this.resetCaching()}return t.prototype.resetCaching=function(){this.d=this.caching?kl():null,this.keyMaker=new kt(xt)},t.prototype.depend=function(e,r){if(this.d){this.d(bn(e,r));var n=et(r);n!==r&&this.d(bn(e,n)),this.parent&&this.parent.depend(e,r)}},t.prototype.dirty=function(e,r){this.d&&this.d.dirty(bn(e,r),r==="__exists"?"forget":"setDirty")},t}();function bn(t,e){return e+"#"+t}function Oo(t,e){Ut(t)&&t.group.depend(e,"__exists")}(function(t){var e=function(r){Re(n,r);function n(i){var s=i.policies,a=i.resultCaching,o=a===void 0?!0:a,u=i.seed,c=r.call(this,s,new Hl(o))||this;return c.stump=new qv(c),c.storageTrie=new kt(xt),u&&c.replace(u),c}return n.prototype.addLayer=function(i,s){return this.stump.addLayer(i,s)},n.prototype.removeLayer=function(){return this},n.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},n}(t);t.Root=e})(Ht||(Ht={}));var He=function(t){Re(e,t);function e(r,n,i,s){var a=t.call(this,n.policies,s)||this;return a.id=r,a.parent=n,a.replay=i,a.group=s,i(a),a}return e.prototype.addLayer=function(r,n){return new e(r,this,n,this.group)},e.prototype.removeLayer=function(r){var n=this,i=this.parent.removeLayer(r);return r===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(s){var a=n.data[s],o=i.lookup(s);o?a?a!==o&&Object.keys(a).forEach(function(u){J(a[u],o[u])||n.group.dirty(s,u)}):(n.group.dirty(s,"__exists"),Object.keys(o).forEach(function(u){n.group.dirty(s,u)})):n.delete(s)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return O(O({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(r){var n=this.parent.findChildRefIds(r);return ce.call(this.data,r)?O(O({},n),t.prototype.findChildRefIds.call(this,r)):n},e.prototype.getStorage=function(){for(var r=this.parent;r.parent;)r=r.parent;return r.getStorage.apply(r,arguments)},e}(Ht),qv=function(t){Re(e,t);function e(r){return t.call(this,"EntityStore.Stump",r,function(){},new Hl(r.group.caching,r.group))||this}return e.prototype.removeLayer=function(){return this},e.prototype.merge=function(r,n){return this.parent.merge(r,n)},e}(He);function Mv(t,e,r){var n=t[r],i=e[r];return J(n,i)?n:i}function Ut(t){return!!(t instanceof Ht&&t.group.caching)}function Lv(t){return ee(t)?te(t)?t.slice(0):O({__proto__:Object.getPrototypeOf(t)},t):t}var _o=function(){function t(){this.known=new(ol?WeakSet:Set),this.pool=new kt(xt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return t.prototype.isKnown=function(e){return ee(e)&&this.known.has(e)},t.prototype.pass=function(e){if(ee(e)){var r=Lv(e);return this.passes.set(r,e),r}return e},t.prototype.admit=function(e){var r=this;if(ee(e)){var n=this.passes.get(e);if(n)return n;var i=Object.getPrototypeOf(e);switch(i){case Array.prototype:{if(this.known.has(e))return e;var s=e.map(this.admit,this),a=this.pool.lookupArray(s);return a.array||(this.known.add(a.array=s),globalThis.__DEV__!==!1&&Object.freeze(s)),a.array}case null:case Object.prototype:{if(this.known.has(e))return e;var o=Object.getPrototypeOf(e),u=[o],c=this.sortedKeys(e);u.push(c.json);var l=u.length;c.sorted.forEach(function(h){u.push(r.admit(e[h]))});var a=this.pool.lookupArray(u);if(!a.object){var f=a.object=Object.create(o);this.known.add(f),c.sorted.forEach(function(h,p){f[h]=u[l+p]}),globalThis.__DEV__!==!1&&Object.freeze(f)}return a.object}}}return e},t.prototype.sortedKeys=function(e){var r=Object.keys(e),n=this.pool.lookupArray(r);if(!n.keys){r.sort();var i=JSON.stringify(r);(n.keys=this.keysByJSON.get(i))||this.keysByJSON.set(i,n.keys={sorted:r,json:i})}return n.keys},t}();function So(t){return[t.selectionSet,t.objectOrReference,t.context,t.context.canonizeResults]}var Nv=function(){function t(e){var r=this;this.knownResults=new(xt?WeakMap:Map),this.config=Rt(e,{addTypename:e.addTypename!==!1,canonizeResults:Ql(e)}),this.canon=e.canon||new _o,this.executeSelectionSet=zt(function(n){var i,s=n.context.canonizeResults,a=So(n);a[3]=!s;var o=(i=r.executeSelectionSet).peek.apply(i,a);return o?s?O(O({},o),{result:r.canon.admit(o.result)}):o:(Oo(n.context.store,n.enclosingRef.__ref),r.execSelectionSetImpl(n))},{max:this.config.resultCacheMaxSize||Be["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:So,makeCacheKey:function(n,i,s,a){if(Ut(s.store))return s.store.makeCacheKey(n,B(i)?i.__ref:i,s.varString,a)}}),this.executeSubSelectedArray=zt(function(n){return Oo(n.context.store,n.enclosingRef.__ref),r.execSubSelectedArrayImpl(n)},{max:this.config.resultCacheMaxSize||Be["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(n){var i=n.field,s=n.array,a=n.context;if(Ut(a.store))return a.store.makeCacheKey(i,s,a.varString)}})}return t.prototype.resetCanon=function(){this.canon=new _o},t.prototype.diffQueryAgainstStore=function(e){var r=e.store,n=e.query,i=e.rootId,s=i===void 0?"ROOT_QUERY":i,a=e.variables,o=e.returnPartialData,u=o===void 0?!0:o,c=e.canonizeResults,l=c===void 0?this.config.canonizeResults:c,f=this.config.cache.policies;a=O(O({},Bs(yl(n))),a);var d=lt(s),h=this.executeSelectionSet({selectionSet:At(n).selectionSet,objectOrReference:d,enclosingRef:d,context:O({store:r,query:n,policies:f,variables:a,varString:Ke(a),canonizeResults:l},Wl(n,this.config.fragments))}),p;if(h.missing&&(p=[new la(Vv(h.missing),h.missing,n,a)],!u))throw p[0];return{result:h.result,complete:!p,missing:p}},t.prototype.isFresh=function(e,r,n,i){if(Ut(i.store)&&this.knownResults.get(e)===n){var s=this.executeSelectionSet.peek(n,r,i,this.canon.isKnown(e));if(s&&e===s.result)return!0}return!1},t.prototype.execSelectionSetImpl=function(e){var r=this,n=e.selectionSet,i=e.objectOrReference,s=e.enclosingRef,a=e.context;if(B(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var o=a.variables,u=a.policies,c=a.store,l=c.getFieldValue(i,"__typename"),f=[],d,h=new Ze;this.config.addTypename&&typeof l=="string"&&!u.rootIdsByTypename[l]&&f.push({__typename:l});function p(b,_){var S;return b.missing&&(d=h.merge(d,(S={},S[_]=b.missing,S))),b.result}var v=new Set(n.selections);v.forEach(function(b){var _,S;if(Zt(b,o))if(Xe(b)){var T=u.readField({fieldName:b.name.value,field:b,variables:a.variables,from:i},a),R=Je(b);T===void 0?Ks.added(b)||(d=h.merge(d,(_={},_[R]="Can't find field '".concat(b.name.value,"' on ").concat(B(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),_))):te(T)?T.length>0&&(T=p(r.executeSubSelectedArray({field:b,array:T,enclosingRef:s,context:a}),R)):b.selectionSet?T!=null&&(T=p(r.executeSelectionSet({selectionSet:b.selectionSet,objectOrReference:T,enclosingRef:B(T)?T:s,context:a}),R)):a.canonizeResults&&(T=r.canon.pass(T)),T!==void 0&&f.push((S={},S[R]=T,S))}else{var g=Lr(b,a.lookupFragment);if(!g&&b.kind===ve.FRAGMENT_SPREAD)throw ye(9,b.name.value);g&&u.fragmentMatches(g,l)&&g.selectionSet.selections.forEach(v.add,v)}});var y=Qr(f),m={result:y,missing:d},w=a.canonizeResults?this.canon.admit(m):ps(m);return w.result&&this.knownResults.set(w.result,n),w},t.prototype.execSubSelectedArrayImpl=function(e){var r=this,n=e.field,i=e.array,s=e.enclosingRef,a=e.context,o,u=new Ze;function c(l,f){var d;return l.missing&&(o=u.merge(o,(d={},d[f]=l.missing,d))),l.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(l,f){return l===null?null:te(l)?c(r.executeSubSelectedArray({field:n,array:l,enclosingRef:s,context:a}),f):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:l,enclosingRef:B(l)?l:s,context:a}),f):(globalThis.__DEV__!==!1&&Uv(a.store,n,l),l)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:o}},t}();function Vv(t){try{JSON.stringify(t,function(e,r){if(typeof r=="string")throw r;return r})}catch(e){return e}}function Uv(t,e,r){if(!e.selectionSet){var n=new Set([r]);n.forEach(function(i){ee(i)&&(I(!B(i),10,Iv(t,i),e.name.value),Object.values(i).forEach(n.add,n))})}}var da=new Qs,Eo=new WeakMap;function Bt(t){var e=Eo.get(t);return e||Eo.set(t,e={vars:new Set,dep:kl()}),e}function Ro(t){Bt(t).vars.forEach(function(e){return e.forgetCache(t)})}function Bv(t){Bt(t).vars.forEach(function(e){return e.attachCache(t)})}function Gl(t){var e=new Set,r=new Set,n=function(s){if(arguments.length>0){if(t!==s){t=s,e.forEach(function(u){Bt(u).dep.dirty(n),$v(u)});var a=Array.from(r);r.clear(),a.forEach(function(u){return u(t)})}}else{var o=da.getValue();o&&(i(o),Bt(o).dep(n))}return t};n.onNextChange=function(s){return r.add(s),function(){r.delete(s)}};var i=n.attachCache=function(s){return e.add(s),Bt(s).vars.add(n),n};return n.forgetCache=function(s){return e.delete(s)},n}function $v(t){t.broadcastWatches&&t.broadcastWatches()}var To=Object.create(null);function ha(t){var e=JSON.stringify(t);return To[e]||(To[e]=Object.create(null))}function ko(t){var e=ha(t);return e.keyFieldsFn||(e.keyFieldsFn=function(r,n){var i=function(a,o){return n.readField(o,a)},s=n.keyObject=pa(t,function(a){var o=Ot(n.storeObject,a,i);return o===void 0&&r!==n.storeObject&&ce.call(r,a[0])&&(o=Ot(r,a,Jl)),I(o!==void 0,4,a.join("."),r),o});return"".concat(n.typename,":").concat(JSON.stringify(s))})}function xo(t){var e=ha(t);return e.keyArgsFn||(e.keyArgsFn=function(r,n){var i=n.field,s=n.variables,a=n.fieldName,o=pa(t,function(c){var l=c[0],f=l.charAt(0);if(f==="@"){if(i&&Ce(i.directives)){var d=l.slice(1),h=i.directives.find(function(m){return m.name.value===d}),p=h&&Nr(h,s);return p&&Ot(p,c.slice(1))}return}if(f==="$"){var v=l.slice(1);if(s&&ce.call(s,v)){var y=c.slice(0);return y[0]=v,Ot(s,y)}return}if(r)return Ot(r,c)}),u=JSON.stringify(o);return(r||u!=="{}")&&(a+=":"+u),a})}function pa(t,e){var r=new Ze;return Kl(t).reduce(function(n,i){var s,a=e(i);if(a!==void 0){for(var o=i.length-1;o>=0;--o)a=(s={},s[i[o]]=a,s);n=r.merge(n,a)}return n},Object.create(null))}function Kl(t){var e=ha(t);if(!e.paths){var r=e.paths=[],n=[];t.forEach(function(i,s){te(i)?(Kl(i).forEach(function(a){return r.push(n.concat(a))}),n.length=0):(n.push(i),te(t[s+1])||(r.push(n.slice(0)),n.length=0))})}return e.paths}function Jl(t,e){return t[e]}function Ot(t,e,r){return r=r||Jl,Xl(e.reduce(function n(i,s){return te(i)?i.map(function(a){return n(a,s)}):i&&r(i,s)},t))}function Xl(t){return ee(t)?te(t)?t.map(Xl):pa(Object.keys(t).sort(),function(e){return Ot(t,e)}):t}function ws(t){return t.args!==void 0?t.args:t.field?Nr(t.field,t.variables):null}var Qv=function(){},Ao=function(t,e){return e.fieldName},Fo=function(t,e,r){var n=r.mergeObjects;return n(t,e)},Po=function(t,e){return e},zv=function(){function t(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=O({dataIdFromObject:fa},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return t.prototype.identify=function(e,r){var n,i=this,s=r&&(r.typename||((n=r.storeObject)===null||n===void 0?void 0:n.__typename))||e.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=r&&r.storeObject||e,o=O(O({},r),{typename:s,storeObject:a,readField:r&&r.readField||function(){var d=va(arguments,a);return i.readField(d,{store:i.cache.data,variables:d.variables})}}),u,c=s&&this.getTypePolicy(s),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l(O(O({},e),a),o);if(te(f))l=ko(f);else{u=f;break}}return u=u?String(u):void 0,o.keyObject?[u,o.keyObject]:[u]},t.prototype.addTypePolicies=function(e){var r=this;Object.keys(e).forEach(function(n){var i=e[n],s=i.queryType,a=i.mutationType,o=i.subscriptionType,u=Ve(i,["queryType","mutationType","subscriptionType"]);s&&r.setRootTypename("Query",n),a&&r.setRootTypename("Mutation",n),o&&r.setRootTypename("Subscription",n),ce.call(r.toBeAdded,n)?r.toBeAdded[n].push(u):r.toBeAdded[n]=[u]})},t.prototype.updateTypePolicy=function(e,r){var n=this,i=this.getTypePolicy(e),s=r.keyFields,a=r.fields;function o(u,c){u.merge=typeof c=="function"?c:c===!0?Fo:c===!1?Po:u.merge}o(i,r.merge),i.keyFn=s===!1?Qv:te(s)?ko(s):typeof s=="function"?s:i.keyFn,a&&Object.keys(a).forEach(function(u){var c=n.getFieldPolicy(e,u,!0),l=a[u];if(typeof l=="function")c.read=l;else{var f=l.keyArgs,d=l.read,h=l.merge;c.keyFn=f===!1?Ao:te(f)?xo(f):typeof f=="function"?f:c.keyFn,typeof d=="function"&&(c.read=d),o(c,h)}c.read&&c.merge&&(c.keyFn=c.keyFn||Ao)})},t.prototype.setRootTypename=function(e,r){r===void 0&&(r=e);var n="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[n];r!==i&&(I(!i||i===e,5,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[r]=n,this.rootTypenamesById[n]=r)},t.prototype.addPossibleTypes=function(e){var r=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){r.getSupertypeSet(n,!0),e[n].forEach(function(i){r.getSupertypeSet(i,!0).add(n);var s=i.match(zl);(!s||s[0]!==i)&&r.fuzzySubtypes.set(i,new RegExp(i))})})},t.prototype.getTypePolicy=function(e){var r=this;if(!ce.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(a,o){if(a.test(e)){var u=r.supertypeMap.get(o);u&&u.forEach(function(c){return i.add(c)})}})),i&&i.size&&i.forEach(function(a){var o=r.getTypePolicy(a),u=o.fields,c=Ve(o,["fields"]);Object.assign(n,c),Object.assign(n.fields,u)})}var s=this.toBeAdded[e];return s&&s.length&&s.splice(0).forEach(function(a){r.updateTypePolicy(e,a)}),this.typePolicies[e]},t.prototype.getFieldPolicy=function(e,r,n){if(e){var i=this.getTypePolicy(e).fields;return i[r]||n&&(i[r]=Object.create(null))}},t.prototype.getSupertypeSet=function(e,r){var n=this.supertypeMap.get(e);return!n&&r&&this.supertypeMap.set(e,n=new Set),n},t.prototype.fragmentMatches=function(e,r,n,i){var s=this;if(!e.typeCondition)return!0;if(!r)return!1;var a=e.typeCondition.name.value;if(r===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(r,!0),u=[o],c=function(p){var v=s.getSupertypeSet(p,!1);v&&v.size&&u.indexOf(v)<0&&u.push(v)},l=!!(n&&this.fuzzySubtypes.size),f=!1,d=0;d1?i:e}:(a=O({},n),ce.call(a,"from")||(a.from=e)),globalThis.__DEV__!==!1&&a.from===void 0&&globalThis.__DEV__!==!1&&I.warn(7,il(Array.from(t))),a.variables===void 0&&(a.variables=r),a}function Yl(t){return function(r,n){if(te(r)||te(n))throw ye(8);if(ee(r)&&ee(n)){var i=t.getFieldValue(r,"__typename"),s=t.getFieldValue(n,"__typename"),a=i&&s&&i!==s;if(a)return n;if(B(r)&>(n))return t.merge(r.__ref,n),r;if(gt(r)&&B(n))return t.merge(r,n.__ref),n;if(gt(r)&>(n))return O(O({},r),n)}return n}}function wn(t,e,r){var n="".concat(e).concat(r),i=t.flavors.get(n);return i||t.flavors.set(n,i=t.clientOnly===e&&t.deferred===r?t:O(O({},t),{clientOnly:e,deferred:r})),i}var Wv=function(){function t(e,r,n){this.cache=e,this.reader=r,this.fragments=n}return t.prototype.writeToStore=function(e,r){var n=this,i=r.query,s=r.result,a=r.dataId,o=r.variables,u=r.overwrite,c=tr(i),l=jv();o=O(O({},Bs(c)),o);var f=O(O({store:e,written:Object.create(null),merge:function(h,p){return l.merge(h,p)},variables:o,varString:Ke(o)},Wl(i,this.fragments)),{overwrite:!!u,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:s||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:f});if(!B(d))throw ye(11,s);return f.incomingById.forEach(function(h,p){var v=h.storeObject,y=h.mergeTree,m=h.fieldNodeSet,w=lt(p);if(y&&y.map.size){var b=n.applyMerges(y,w,v,f);if(B(b))return;v=b}if(globalThis.__DEV__!==!1&&!f.overwrite){var _=Object.create(null);m.forEach(function(R){R.selectionSet&&(_[R.name.value]=!0)});var S=function(R){return _[et(R)]===!0},T=function(R){var g=y&&y.map.get(R);return!!(g&&g.info&&g.info.merge)};Object.keys(v).forEach(function(R){S(R)&&!T(R)&&Hv(w,v,R,f.store)})}e.merge(p,v)}),e.retain(d.__ref),d},t.prototype.processSelectionSet=function(e){var r=this,n=e.dataId,i=e.result,s=e.selectionSet,a=e.context,o=e.mergeTree,u=this.cache.policies,c=Object.create(null),l=n&&u.rootTypenamesById[n]||cs(i,s,a.fragmentMap)||n&&a.store.get(n,"__typename");typeof l=="string"&&(c.__typename=l);var f=function(){var b=va(arguments,c,a.variables);if(B(b.from)){var _=a.incomingById.get(b.from.__ref);if(_){var S=u.readField(O(O({},b),{from:_.storeObject}),a);if(S!==void 0)return S}}return u.readField(b,a)},d=new Set;this.flattenFields(s,i,a,l).forEach(function(b,_){var S,T=Je(_),R=i[T];if(d.add(_),R!==void 0){var g=u.getStoreFieldName({typename:l,fieldName:_.name.value,field:_,variables:b.variables}),x=Do(o,g),k=r.processFieldValue(R,_,_.selectionSet?wn(b,!1,!1):b,x),V=void 0;_.selectionSet&&(B(k)||gt(k))&&(V=f("__typename",k));var C=u.getMergeFunction(l,_.name.value,V);C?x.info={field:_,typename:l,merge:C}:Io(o,g),c=b.merge(c,(S={},S[g]=k,S))}else globalThis.__DEV__!==!1&&!b.clientOnly&&!b.deferred&&!Ks.added(_)&&!u.getReadFunction(l,_.name.value)&&globalThis.__DEV__!==!1&&I.error(12,Je(_),i)});try{var h=u.identify(i,{typename:l,selectionSet:s,fragmentMap:a.fragmentMap,storeObject:c,readField:f}),p=h[0],v=h[1];n=n||p,v&&(c=a.merge(c,v))}catch(b){if(!n)throw b}if(typeof n=="string"){var y=lt(n),m=a.written[n]||(a.written[n]=[]);if(m.indexOf(s)>=0||(m.push(s),this.reader&&this.reader.isFresh(i,y,s,a)))return y;var w=a.incomingById.get(n);return w?(w.storeObject=a.merge(w.storeObject,c),w.mergeTree=Os(w.mergeTree,o),d.forEach(function(b){return w.fieldNodeSet.add(b)})):a.incomingById.set(n,{storeObject:c,mergeTree:kr(o)?void 0:o,fieldNodeSet:d}),y}return c},t.prototype.processFieldValue=function(e,r,n,i){var s=this;return!r.selectionSet||e===null?globalThis.__DEV__!==!1?Il(e):e:te(e)?e.map(function(a,o){var u=s.processFieldValue(a,r,n,Do(i,o));return Io(i,o),u}):this.processSelectionSet({result:e,selectionSet:r.selectionSet,context:n,mergeTree:i})},t.prototype.flattenFields=function(e,r,n,i){i===void 0&&(i=cs(r,e,n.fragmentMap));var s=new Map,a=this.cache.policies,o=new kt(!1);return function u(c,l){var f=o.lookup(c,l.clientOnly,l.deferred);f.visited||(f.visited=!0,c.selections.forEach(function(d){if(Zt(d,n.variables)){var h=l.clientOnly,p=l.deferred;if(!(h&&p)&&Ce(d.directives)&&d.directives.forEach(function(m){var w=m.name.value;if(w==="client"&&(h=!0),w==="defer"){var b=Nr(m,n.variables);(!b||b.if!==!1)&&(p=!0)}}),Xe(d)){var v=s.get(d);v&&(h=h&&v.clientOnly,p=p&&v.deferred),s.set(d,wn(n,h,p))}else{var y=Lr(d,n.lookupFragment);if(!y&&d.kind===ve.FRAGMENT_SPREAD)throw ye(13,d.name.value);y&&a.fragmentMatches(y,i,r,n.variables)&&u(y.selectionSet,wn(n,h,p))}}}))}(e,n),s},t.prototype.applyMerges=function(e,r,n,i,s){var a,o=this;if(e.map.size&&!B(n)){var u=!te(n)&&(B(r)||gt(r))?r:void 0,c=n;u&&!s&&(s=[B(u)?u.__ref:u]);var l,f=function(d,h){return te(d)?typeof h=="number"?d[h]:void 0:i.store.getFieldValue(d,String(h))};e.map.forEach(function(d,h){var p=f(u,h),v=f(c,h);if(v!==void 0){s&&s.push(h);var y=o.applyMerges(d,p,v,i,s);y!==v&&(l=l||new Map,l.set(h,y)),s&&I(s.pop()===h)}}),l&&(n=te(c)?c.slice(0):O({},c),l.forEach(function(d,h){n[h]=d}))}return e.info?this.cache.policies.runMergeFunction(r,n,e.info,i,s&&(a=i.store).getStorage.apply(a,s)):n},t}(),Zl=[];function Do(t,e){var r=t.map;return r.has(e)||r.set(e,Zl.pop()||{map:new Map}),r.get(e)}function Os(t,e){if(t===e||!e||kr(e))return t;if(!t||kr(t))return e;var r=t.info&&e.info?O(O({},t.info),e.info):t.info||e.info,n=t.map.size&&e.map.size,i=n?new Map:t.map.size?t.map:e.map,s={info:r,map:i};if(n){var a=new Set(e.map.keys());t.map.forEach(function(o,u){s.map.set(u,Os(o,e.map.get(u))),a.delete(u)}),a.forEach(function(o){s.map.set(o,Os(e.map.get(o),t.map.get(o)))})}return s}function kr(t){return!t||!(t.info||t.map.size)}function Io(t,e){var r=t.map,n=r.get(e);n&&kr(n)&&(Zl.push(n),r.delete(e))}var jo=new Set;function Hv(t,e,r,n){var i=function(f){var d=n.getFieldValue(f,r);return typeof d=="object"&&d},s=i(t);if(s){var a=i(e);if(a&&!B(s)&&!J(s,a)&&!Object.keys(s).every(function(f){return n.getFieldValue(a,f)!==void 0})){var o=n.getFieldValue(t,"__typename")||n.getFieldValue(e,"__typename"),u=et(r),c="".concat(o,".").concat(u);if(!jo.has(c)){jo.add(c);var l=[];!te(s)&&!te(a)&&[s,a].forEach(function(f){var d=n.getFieldValue(f,"__typename");typeof d=="string"&&!l.includes(d)&&l.push(d)}),globalThis.__DEV__!==!1&&I.warn(14,u,o,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",c,s,a)}}}}var ya=function(t){Re(e,t);function e(r){r===void 0&&(r={});var n=t.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new Gs(Ks),n.assumeImmutableResults=!0,n.makeVar=Gl,n.txCount=0,n.config=Dv(r),n.addTypename=!!n.config.addTypename,n.policies=new zv({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return e.prototype.init=function(){var r=this.data=new Ht.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=r.stump,this.resetResultCache()},e.prototype.resetResultCache=function(r){var n=this,i=this.storeReader,s=this.config.fragments;this.storeWriter=new Wv(this,this.storeReader=new Nv({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Ql(this.config),canon:r?void 0:i&&i.canon,fragments:s}),s),this.maybeBroadcastWatch=zt(function(a,o){return n.broadcastWatch(a,o)},{max:this.config.resultCacheMaxSize||Be["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(a){var o=a.optimistic?n.optimisticData:n.data;if(Ut(o)){var u=a.optimistic,c=a.id,l=a.variables;return o.makeCacheKey(a.query,a.callback,Ke({optimistic:u,id:c,variables:l}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(a){return a.resetCaching()})},e.prototype.restore=function(r){return this.init(),r&&this.data.replace(r),this},e.prototype.extract=function(r){return r===void 0&&(r=!1),(r?this.optimisticData:this.data).extract()},e.prototype.read=function(r){var n=r.returnPartialData,i=n===void 0?!1:n;try{return this.storeReader.diffQueryAgainstStore(O(O({},r),{store:r.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:i})).result||null}catch(s){if(s instanceof la)return null;throw s}},e.prototype.write=function(r){try{return++this.txCount,this.storeWriter.writeToStore(this.data,r)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.modify=function(r){if(ce.call(r,"id")&&!r.id)return!1;var n=r.optimistic?this.optimisticData:this.data;try{return++this.txCount,n.modify(r.id||"ROOT_QUERY",r.fields)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.diff=function(r){return this.storeReader.diffQueryAgainstStore(O(O({},r),{store:r.optimistic?this.optimisticData:this.data,rootId:r.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(r){var n=this;return this.watches.size||Bv(this),this.watches.add(r),r.immediate&&this.maybeBroadcastWatch(r),function(){n.watches.delete(r)&&!n.watches.size&&Ro(n),n.maybeBroadcastWatch.forget(r)}},e.prototype.gc=function(r){var n;Ke.reset(),$r.reset(),this.addTypenameTransform.resetCache(),(n=this.config.fragments)===null||n===void 0||n.resetCaches();var i=this.optimisticData.gc();return r&&!this.txCount&&(r.resetResultCache?this.resetResultCache(r.resetResultIdentities):r.resetResultIdentities&&this.storeReader.resetCanon()),i},e.prototype.retain=function(r,n){return(n?this.optimisticData:this.data).retain(r)},e.prototype.release=function(r,n){return(n?this.optimisticData:this.data).release(r)},e.prototype.identify=function(r){if(B(r))return r.__ref;try{return this.policies.identify(r)[0]}catch(n){globalThis.__DEV__!==!1&&I.warn(n)}},e.prototype.evict=function(r){if(!r.id){if(ce.call(r,"id"))return!1;r=O(O({},r),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(r,this.data)}finally{!--this.txCount&&r.broadcast!==!1&&this.broadcastWatches()}},e.prototype.reset=function(r){var n=this;return this.init(),Ke.reset(),r&&r.discardWatches?(this.watches.forEach(function(i){return n.maybeBroadcastWatch.forget(i)}),this.watches.clear(),Ro(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(r){var n=this.optimisticData.removeLayer(r);n!==this.optimisticData&&(this.optimisticData=n,this.broadcastWatches())},e.prototype.batch=function(r){var n=this,i=r.update,s=r.optimistic,a=s===void 0?!0:s,o=r.removeOptimistic,u=r.onWatchUpdated,c,l=function(d){var h=n,p=h.data,v=h.optimisticData;++n.txCount,d&&(n.data=n.optimisticData=d);try{return c=i(n)}finally{--n.txCount,n.data=p,n.optimisticData=v}},f=new Set;return u&&!this.txCount&&this.broadcastWatches(O(O({},r),{onWatchUpdated:function(d){return f.add(d),!1}})),typeof a=="string"?this.optimisticData=this.optimisticData.addLayer(a,l):a===!1?l(this.data):l(),typeof o=="string"&&(this.optimisticData=this.optimisticData.removeLayer(o)),u&&f.size?(this.broadcastWatches(O(O({},r),{onWatchUpdated:function(d,h){var p=u.call(this,d,h);return p!==!1&&f.delete(d),p}})),f.size&&f.forEach(function(d){return n.maybeBroadcastWatch.dirty(d)})):this.broadcastWatches(r),c},e.prototype.performTransaction=function(r,n){return this.batch({update:r,optimistic:n||n!==null})},e.prototype.transformDocument=function(r){return this.addTypenameToDocument(this.addFragmentsToDocument(r))},e.prototype.broadcastWatches=function(r){var n=this;this.txCount||this.watches.forEach(function(i){return n.maybeBroadcastWatch(i,r)})},e.prototype.addFragmentsToDocument=function(r){var n=this.config.fragments;return n?n.transform(r):r},e.prototype.addTypenameToDocument=function(r){return this.addTypename?this.addTypenameTransform.transformDocument(r):r},e.prototype.broadcastWatch=function(r,n){var i=r.lastDiff,s=this.diff(r);n&&(r.optimistic&&typeof n.optimistic=="string"&&(s.fromOptimisticTransaction=!0),n.onWatchUpdated&&n.onWatchUpdated.call(this,r,s,i)===!1)||(!i||!J(i.result,s.result))&&r.callback(r.lastDiff=s,i)},e}(ca);globalThis.__DEV__!==!1&&(ya.prototype.getMemoryInternals=Yh);var K;(function(t){t[t.loading=1]="loading",t[t.setVariables=2]="setVariables",t[t.fetchMore=3]="fetchMore",t[t.refetch=4]="refetch",t[t.poll=6]="poll",t[t.ready=7]="ready",t[t.error=8]="error"})(K||(K={}));function Gt(t){return t?t<7:!1}function Gv(t){return t===7||t===8}function Kv(t,e,r,n){var i=e.data,s=Ve(e,["data"]),a=r.data,o=Ve(r,["data"]);return J(s,o)&&gr(At(t).selectionSet,i,a,{fragmentMap:Mr(Vr(t)),variables:n})}function gr(t,e,r,n){if(e===r)return!0;var i=new Set;return t.selections.every(function(s){if(i.has(s)||(i.add(s),!Zt(s,n.variables))||qo(s))return!0;if(Xe(s)){var a=Je(s),o=e&&e[a],u=r&&r[a],c=s.selectionSet;if(!c)return J(o,u);var l=Array.isArray(o),f=Array.isArray(u);if(l!==f)return!1;if(l&&f){var d=o.length;if(u.length!==d)return!1;for(var h=0;h0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(r){return r.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(r){return this.queryManager.transform(r)},e}(L);jl(xr);function ef(t){var e=t.options,r=e.fetchPolicy,n=e.nextFetchPolicy;return r==="cache-and-network"||r==="network-only"?t.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(i,s){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy=="function"?this.nextFetchPolicy(i,s):r}}):t.reobserve()}function Yv(t){globalThis.__DEV__!==!1&&I.error(23,t.message,t.stack)}function tf(t){globalThis.__DEV__!==!1&&t&&globalThis.__DEV__!==!1&&I.debug(24,t)}function On(t){return t==="network-only"||t==="no-cache"||t==="standby"}var rf=function(){function t(e){var r=e.cache,n=e.client,i=e.resolvers,s=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=r,n&&(this.client=n),i&&this.addResolvers(i),s&&this.setFragmentMatcher(s)}return t.prototype.addResolvers=function(e){var r=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(n){r.resolvers=so(r.resolvers,n)}):this.resolvers=so(this.resolvers,e)},t.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(e){return qe(this,arguments,void 0,function(r){var n=r.document,i=r.remoteResult,s=r.context,a=r.variables,o=r.onlyRunForcedResolvers,u=o===void 0?!1:o;return Me(this,function(c){return n?[2,this.resolveDocument(n,i.data,s,a,this.fragmentMatcher,u).then(function(l){return O(O({},i),{data:l.result})})]:[2,i]})})},t.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(e){return $t(["client"],e)&&this.resolvers?e:null},t.prototype.serverQuery=function(e){return Fl(e)},t.prototype.prepareContext=function(e){var r=this.cache;return O(O({},e),{cache:r,getCacheKey:function(n){return r.identify(n)}})},t.prototype.addExportedVariables=function(e){return qe(this,arguments,void 0,function(r,n,i){return n===void 0&&(n={}),i===void 0&&(i={}),Me(this,function(s){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,n)||{},this.prepareContext(i),n).then(function(a){return O(O({},n),a.exportedVariables)})]:[2,O({},n)]})})},t.prototype.shouldForceResolvers=function(e){var r=!1;return Ue(e,{Directive:{enter:function(n){if(n.name.value==="client"&&n.arguments&&(r=n.arguments.some(function(i){return i.name.value==="always"&&i.value.kind==="BooleanValue"&&i.value.value===!0}),r))return Ms}}}),r},t.prototype.buildRootValueFromCache=function(e,r){return this.cache.diff({query:Lp(e),variables:r,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(e,r){return qe(this,arguments,void 0,function(n,i,s,a,o,u){var c,l,f,d,h,p,v,y,m,w,b;return s===void 0&&(s={}),a===void 0&&(a={}),o===void 0&&(o=function(){return!0}),u===void 0&&(u=!1),Me(this,function(_){return c=At(n),l=Vr(n),f=Mr(l),d=this.collectSelectionsToResolve(c,f),h=c.operation,p=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",v=this,y=v.cache,m=v.client,w={fragmentMap:f,context:O(O({},s),{cache:y,client:m}),variables:a,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:d,onlyRunForcedResolvers:u},b=!1,[2,this.resolveSelectionSet(c.selectionSet,b,i,w).then(function(S){return{result:S,exportedVariables:w.exportedVariables}})]})})},t.prototype.resolveSelectionSet=function(e,r,n,i){return qe(this,void 0,void 0,function(){var s,a,o,u,c,l=this;return Me(this,function(f){return s=i.fragmentMap,a=i.context,o=i.variables,u=[n],c=function(d){return qe(l,void 0,void 0,function(){var h,p;return Me(this,function(v){return!r&&!i.selectionsToResolve.has(d)?[2]:Zt(d,o)?Xe(d)?[2,this.resolveField(d,r,n,i).then(function(y){var m;typeof y<"u"&&u.push((m={},m[Je(d)]=y,m))})]:(gp(d)?h=d:(h=s[d.name.value],I(h,18,d.name.value)),h&&h.typeCondition&&(p=h.typeCondition.name.value,i.fragmentMatcher(n,p,a))?[2,this.resolveSelectionSet(h.selectionSet,r,n,i).then(function(y){u.push(y)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return Qr(u)})]})})},t.prototype.resolveField=function(e,r,n,i){return qe(this,void 0,void 0,function(){var s,a,o,u,c,l,f,d,h,p=this;return Me(this,function(v){return n?(s=i.variables,a=e.name.value,o=Je(e),u=a!==o,c=n[o]||n[a],l=Promise.resolve(c),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=n.__typename||i.defaultOperationType,d=this.resolvers&&this.resolvers[f],d&&(h=d[u?a:o],h&&(l=Promise.resolve(da.withValue(this.cache,h,[n,Nr(e,s),i.context,{field:e,fragmentMap:i.fragmentMap}]))))),[2,l.then(function(y){var m,w;if(y===void 0&&(y=c),e.directives&&e.directives.forEach(function(_){_.name.value==="export"&&_.arguments&&_.arguments.forEach(function(S){S.name.value==="as"&&S.value.kind==="StringValue"&&(i.exportedVariables[S.value.value]=y)})}),!e.selectionSet||y==null)return y;var b=(w=(m=e.directives)===null||m===void 0?void 0:m.some(function(_){return _.name.value==="client"}))!==null&&w!==void 0?w:!1;if(Array.isArray(y))return p.resolveSubSelectedArray(e,r||b,y,i);if(e.selectionSet)return p.resolveSelectionSet(e.selectionSet,r||b,y,i)})]):[2,null]})})},t.prototype.resolveSubSelectedArray=function(e,r,n,i){var s=this;return Promise.all(n.map(function(a){if(a===null)return null;if(Array.isArray(a))return s.resolveSubSelectedArray(e,r,a,i);if(e.selectionSet)return s.resolveSelectionSet(e.selectionSet,r,a,i)}))},t.prototype.collectSelectionsToResolve=function(e,r){var n=function(a){return!Array.isArray(a)},i=this.selectionsToResolveCache;function s(a){if(!i.has(a)){var o=new Set;i.set(a,o),Ue(a,{Directive:function(u,c,l,f,d){u.name.value==="client"&&d.forEach(function(h){n(h)&&Va(h)&&o.add(h)})},FragmentSpread:function(u,c,l,f,d){var h=r[u.name.value];I(h,19,u.name.value);var p=s(h);p.size>0&&(d.forEach(function(v){n(v)&&Va(v)&&o.add(v)}),o.add(u),p.forEach(function(v){o.add(v)}))}})}return i.get(a)}return s(e)},t}(),bt=new(xt?WeakMap:Map);function _n(t,e){var r=t[e];typeof r=="function"&&(t[e]=function(){return bt.set(t,(bt.get(t)+1)%1e15),r.apply(this,arguments)})}function Lo(t){t.notifyTimeout&&(clearTimeout(t.notifyTimeout),t.notifyTimeout=void 0)}var Sn=function(){function t(e,r){r===void 0&&(r=e.generateQueryId()),this.queryId=r,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;bt.has(n)||(bt.set(n,0),_n(n,"evict"),_n(n,"modify"),_n(n,"reset"))}return t.prototype.init=function(e){var r=e.networkStatus||K.loading;return this.variables&&this.networkStatus!==K.loading&&!J(this.variables,e.variables)&&(r=K.setVariables),J(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},t.prototype.reset=function(){Lo(this),this.dirty=!1},t.prototype.resetDiff=function(){this.lastDiff=void 0},t.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&J(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&r.options.fetchPolicy==="no-cache")return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},t.prototype.updateLastDiff=function(e,r){this.lastDiff=e?{diff:e,options:r||this.getDiffOptions()}:void 0},t.prototype.getDiffOptions=function(e){var r;return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:(r=this.observableQuery)===null||r===void 0?void 0:r.options.canonizeResults}},t.prototype.setDiff=function(e){var r=this,n,i=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&!(!((n=this.observableQuery)===null||n===void 0)&&n.options.returnPartialData)&&!(i&&i.complete)||(this.updateLastDiff(e),!this.dirty&&!J(i&&i.result,e&&e.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return r.notify()},0))))},t.prototype.setObservableQuery=function(e){var r=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){var n=r.getDiff();n.fromOptimisticTransaction?e.observe():ef(e)})):delete this.oqListener)},t.prototype.notify=function(){var e=this;Lo(this),this.shouldNotify()&&this.listeners.forEach(function(r){return r(e)}),this.dirty=!1},t.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Gt(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if(e!=="cache-only"&&e!=="cache-and-network")return!1}return!0},t.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=t.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},t.prototype.cancel=function(){},t.prototype.updateWatch=function(e){var r=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy==="no-cache")){var i=O(O({},this.getDiffOptions(e)),{watcher:this,callback:function(s){return r.setDiff(s)}});(!this.lastWatch||!J(i,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},t.prototype.resetLastWrite=function(){this.lastWrite=void 0},t.prototype.shouldWrite=function(e,r){var n=this.lastWrite;return!(n&&n.dmCount===bt.get(this.cache)&&J(r,n.variables)&&J(e.data,n.result.data))},t.prototype.markResult=function(e,r,n,i){var s=this,a=new Ze,o=Ce(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&Ce(e.incremental)){var u=ql(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=o,n.fetchPolicy==="no-cache"?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):i!==0&&(_s(e,n.errorPolicy)?this.cache.performTransaction(function(l){if(s.shouldWrite(e,n.variables))l.writeQuery({query:r,data:e.data,variables:n.variables,overwrite:i===1}),s.lastWrite={result:e,variables:n.variables,dmCount:bt.get(s.cache)};else if(s.lastDiff&&s.lastDiff.diff.complete){e.data=s.lastDiff.diff.result;return}var f=s.getDiffOptions(n.variables),d=l.diff(f);!s.stopped&&J(s.variables,n.variables)&&s.updateWatch(n.variables),s.updateLastDiff(d,f),d.complete&&(e.data=d.result)}):this.lastWrite=void 0)},t.prototype.markReady=function(){return this.networkError=null,this.networkStatus=K.ready},t.prototype.markError=function(e){return this.networkStatus=K.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},t}();function _s(t,e){e===void 0&&(e="none");var r=e==="ignore"||e==="all",n=!pr(t);return!n&&r&&t.data&&(n=!0),n}var Zv=Object.prototype.hasOwnProperty,No=Object.create(null),ey=function(){function t(e){var r=e.cache,n=e.link,i=e.defaultOptions,s=e.documentTransform,a=e.queryDeduplication,o=a===void 0?!1:a,u=e.onBroadcast,c=e.ssrMode,l=c===void 0?!1:c,f=e.clientAwareness,d=f===void 0?{}:f,h=e.localState,p=e.assumeImmutableResults,v=p===void 0?!!r.assumeImmutableResults:p,y=e.defaultContext,m=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ll(Be["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new kt(!1);var w=new Gs(function(b){return m.cache.transformDocument(b)},{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=o,this.clientAwareness=d,this.localState=h||new rf({cache:r}),this.ssrMode=l,this.assumeImmutableResults=v,this.documentTransform=s?w.concat(s).concat(w):w,this.defaultContext=y||Object.create(null),(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return t.prototype.stop=function(){var e=this;this.queries.forEach(function(r,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(ye(25))},t.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(r){return r(e)}),this.fetchCancelFns.clear()},t.prototype.mutate=function(e){return qe(this,arguments,void 0,function(r){var n,i,s,a,o,u,c,l=r.mutation,f=r.variables,d=r.optimisticResponse,h=r.updateQueries,p=r.refetchQueries,v=p===void 0?[]:p,y=r.awaitRefetchQueries,m=y===void 0?!1:y,w=r.update,b=r.onQueryUpdated,_=r.fetchPolicy,S=_===void 0?((u=this.defaultOptions.mutate)===null||u===void 0?void 0:u.fetchPolicy)||"network-only":_,T=r.errorPolicy,R=T===void 0?((c=this.defaultOptions.mutate)===null||c===void 0?void 0:c.errorPolicy)||"none":T,g=r.keepRootFields,x=r.context;return Me(this,function(k){switch(k.label){case 0:return I(l,26),I(S==="network-only"||S==="no-cache",27),n=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),i=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),i?[4,this.localState.addExportedVariables(l,f,x)]:[3,2];case 1:f=k.sent(),k.label=2;case 2:return s=this.mutationStore&&(this.mutationStore[n]={mutation:l,variables:f,loading:!0,error:null}),a=d&&this.markMutationOptimistic(d,{mutationId:n,document:l,variables:f,fetchPolicy:S,errorPolicy:R,context:x,updateQueries:h,update:w,keepRootFields:g}),this.broadcastQueries(),o=this,[2,new Promise(function(V,C){return mn(o.getObservableFromLink(l,O(O({},x),{optimisticResponse:a?d:void 0}),f,!1),function(P){if(pr(P)&&R==="none")throw new it({graphQLErrors:vs(P)});s&&(s.loading=!1,s.error=null);var j=O({},P);return typeof v=="function"&&(v=v(j)),R==="ignore"&&pr(j)&&delete j.errors,o.markMutationResult({mutationId:n,result:j,document:l,variables:f,fetchPolicy:S,errorPolicy:R,context:x,update:w,updateQueries:h,awaitRefetchQueries:m,refetchQueries:v,removeOptimistic:a?n:void 0,onQueryUpdated:b,keepRootFields:g})}).subscribe({next:function(P){o.broadcastQueries(),(!("hasNext"in P)||P.hasNext===!1)&&V(P)},error:function(P){s&&(s.loading=!1,s.error=P),a&&o.cache.removeOptimistic(n),o.broadcastQueries(),C(P instanceof it?P:new it({networkError:P}))}})})]}})})},t.prototype.markMutationResult=function(e,r){var n=this;r===void 0&&(r=this.cache);var i=e.result,s=[],a=e.fetchPolicy==="no-cache";if(!a&&_s(i,e.errorPolicy)){if(wt(i)||s.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),wt(i)&&Ce(i.incremental)){var o=r.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;o.result&&(u=ql(o.result,i)),typeof u<"u"&&(i.data=u,s.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(f,d){var h=f.observableQuery,p=h&&h.queryName;if(!(!p||!Zv.call(c,p))){var v=c[p],y=n.queries.get(d),m=y.document,w=y.variables,b=r.diff({query:m,variables:w,returnPartialData:!0,optimistic:!1}),_=b.result,S=b.complete;if(S&&_){var T=v(_,{mutationResult:i,queryName:m&&ls(m)||void 0,queryVariables:w});T&&s.push({result:T,dataId:"ROOT_QUERY",query:m,variables:w})}}})}if(s.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(f){a||s.forEach(function(v){return f.write(v)});var d=e.update,h=!Zp(i)||wt(i)&&!i.hasNext;if(d){if(!a){var p=f.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&(i=O(O({},i),{data:p.result}),"incremental"in i&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}h&&d(f,i,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&h&&f.modify({id:"ROOT_MUTATION",fields:function(v,y){var m=y.fieldName,w=y.DELETE;return m==="__typename"?v:w}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(f){return l.push(f)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},t.prototype.markMutationOptimistic=function(e,r){var n=this,i=typeof e=="function"?e(r.variables,{IGNORE:No}):e;return i===No?!1:(this.cache.recordOptimisticTransaction(function(s){try{n.markMutationResult(O(O({},r),{result:{data:i}}),s)}catch(a){globalThis.__DEV__!==!1&&I.error(a)}},r.mutationId),!0)},t.prototype.fetchQuery=function(e,r,n){return this.fetchConcastWithInfo(e,r,n).concast.promise},t.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(r,n){e[n]={variables:r.variables,networkStatus:r.networkStatus,networkError:r.networkError,graphQLErrors:r.graphQLErrors}}),e},t.prototype.resetErrors=function(e){var r=this.queries.get(e);r&&(r.networkError=void 0,r.graphQLErrors=[])},t.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},t.prototype.getDocumentInfo=function(e){var r=this.transformCache;if(!r.has(e)){var n={hasClientExports:jh(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:$t(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:Al([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:Bs(tr(e)),asQuery:O(O({},e),{definitions:e.definitions.map(function(i){return i.kind==="OperationDefinition"&&i.operation!=="query"?O(O({},i),{operation:"query"}):i})})};r.set(e,n)}return r.get(e)},t.prototype.getVariables=function(e,r){return O(O({},this.getDocumentInfo(e).defaultVars),r)},t.prototype.watchQuery=function(e){var r=this.transform(e.query);e=O(O({},e),{variables:this.getVariables(r,e.variables)}),typeof e.notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var n=new Sn(this),i=new xr({queryManager:this,queryInfo:n,options:e});return i.lastQuery=r,this.queries.set(i.queryId,n),n.init({document:r,observableQuery:i,variables:i.variables}),i},t.prototype.query=function(e,r){var n=this;return r===void 0&&(r=this.generateQueryId()),I(e.query,28),I(e.query.kind==="Document",29),I(!e.returnPartialData,30),I(!e.pollInterval,31),this.fetchQuery(r,O(O({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(r)})},t.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},t.prototype.generateRequestId=function(){return this.requestIdCounter++},t.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},t.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(e){var r=this.queries.get(e);r&&r.stop()},t.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(ye(32)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=K.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},t.prototype.getObservableQueries=function(e){var r=this;e===void 0&&(e="active");var n=new Map,i=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(a){typeof a=="string"?i.set(a,!1):ap(a)?i.set(r.transform(a),!1):ee(a)&&a.query&&s.add(a)}),this.queries.forEach(function(a,o){var u=a.observableQuery,c=a.document;if(u){if(e==="all"){n.set(o,u);return}var l=u.queryName,f=u.options.fetchPolicy;if(f==="standby"||e==="active"&&!u.hasObservers())return;(e==="active"||l&&i.has(l)||c&&i.has(c))&&(n.set(o,u),l&&i.set(l,!0),c&&i.set(c,!0))}}),s.size&&s.forEach(function(a){var o=is("legacyOneTimeQuery"),u=r.getQuery(o).init({document:a.query,variables:a.variables}),c=new xr({queryManager:r,queryInfo:u,options:O(O({},a),{fetchPolicy:"network-only"})});I(c.queryId===o),u.setObservableQuery(c),n.set(o,c)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(a,o){a||globalThis.__DEV__!==!1&&I.warn(typeof o=="string"?33:34,o)}),n},t.prototype.reFetchObservableQueries=function(e){var r=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(i,s){var a=i.options.fetchPolicy;i.resetLastResults(),(e||a!=="standby"&&a!=="cache-only")&&n.push(i.refetch()),r.getQuery(s).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},t.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},t.prototype.startGraphQLSubscription=function(e){var r=this,n=e.query,i=e.fetchPolicy,s=e.errorPolicy,a=s===void 0?"none":s,o=e.variables,u=e.context,c=u===void 0?{}:u;n=this.transform(n),o=this.getVariables(n,o);var l=function(d){return r.getObservableFromLink(n,c,d).map(function(h){i!=="no-cache"&&(_s(h,a)&&r.cache.write({query:n,result:h.data,dataId:"ROOT_SUBSCRIPTION",variables:d}),r.broadcastQueries());var p=pr(h),v=bv(h);if(p||v){var y={};if(p&&(y.graphQLErrors=h.errors),v&&(y.protocolErrors=h.extensions[ta]),a==="none"||v)throw new it(y)}return a==="ignore"&&delete h.errors,h})};if(this.getDocumentInfo(n).hasClientExports){var f=this.localState.addExportedVariables(n,o,c).then(l);return new L(function(d){var h=null;return f.then(function(p){return h=p.subscribe(d)},d.error),function(){return h&&h.unsubscribe()}})}return l(o)},t.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},t.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},t.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(e,r,n,i){var s=this,a;i===void 0&&(i=(a=r==null?void 0:r.queryDeduplication)!==null&&a!==void 0?a:this.queryDeduplication);var o,u=this.getDocumentInfo(e),c=u.serverQuery,l=u.clientQuery;if(c){var f=this,d=f.inFlightLinkObservables,h=f.link,p={query:c,variables:n,operationName:ls(c)||void 0,context:this.prepareContext(O(O({},r),{forceFetch:!i}))};if(r=p.context,i){var v=$r(c),y=Ke(n),m=d.lookup(v,y);if(o=m.observable,!o){var w=new yt([Tr(h,p)]);o=m.observable=w,w.beforeNext(function(){d.remove(v,y)})}}else o=new yt([Tr(h,p)])}else o=new yt([L.of({data:{}})]),r=this.prepareContext(r);return l&&(o=mn(o,function(b){return s.localState.runResolvers({document:l,remoteResult:b,context:r,variables:n})})),o},t.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId=this.generateRequestId(),s=this.cache.transformForLink(n.query);return mn(this.getObservableFromLink(s,n.context,n.variables),function(a){var o=vs(a),u=o.length>0;if(i>=e.lastRequestId){if(u&&n.errorPolicy==="none")throw e.markError(new it({graphQLErrors:o}));e.markResult(a,s,n,r),e.markReady()}var c={data:a.data,loading:!1,networkStatus:K.ready};return u&&n.errorPolicy!=="ignore"&&(c.errors=o,c.networkStatus=K.error),c},function(a){var o=Nl(a)?a:new it({networkError:a});throw i>=e.lastRequestId&&e.markError(o),o})},t.prototype.fetchConcastWithInfo=function(e,r,n,i){var s=this;n===void 0&&(n=K.loading),i===void 0&&(i=r.query);var a=this.getVariables(i,r.variables),o=this.getQuery(e),u=this.defaultOptions.watchQuery,c=r.fetchPolicy,l=c===void 0?u&&u.fetchPolicy||"cache-first":c,f=r.errorPolicy,d=f===void 0?u&&u.errorPolicy||"none":f,h=r.returnPartialData,p=h===void 0?!1:h,v=r.notifyOnNetworkStatusChange,y=v===void 0?!1:v,m=r.context,w=m===void 0?{}:m,b=Object.assign({},r,{query:i,variables:a,fetchPolicy:l,errorPolicy:d,returnPartialData:p,notifyOnNetworkStatusChange:y,context:w}),_=function(x){b.variables=x;var k=s.fetchQueryByPolicy(o,b,n);return b.fetchPolicy!=="standby"&&k.sources.length>0&&o.observableQuery&&o.observableQuery.applyNextFetchPolicy("after-fetch",r),k},S=function(){return s.fetchCancelFns.delete(e)};this.fetchCancelFns.set(e,function(x){S(),setTimeout(function(){return T.cancel(x)})});var T,R;if(this.getDocumentInfo(b.query).hasClientExports)T=new yt(this.localState.addExportedVariables(b.query,b.variables,b.context).then(_).then(function(x){return x.sources})),R=!0;else{var g=_(b.variables);R=g.fromLink,T=new yt(g.sources)}return T.promise.then(S,S),{concast:T,fromLink:R}},t.prototype.refetchQueries=function(e){var r=this,n=e.updateCache,i=e.include,s=e.optimistic,a=s===void 0?!1:s,o=e.removeOptimistic,u=o===void 0?a?is("refetchQueries"):void 0:o,c=e.onQueryUpdated,l=new Map;i&&this.getObservableQueries(i).forEach(function(d,h){l.set(h,{oq:d,lastDiff:r.getQuery(h).getDiff()})});var f=new Map;return n&&this.cache.batch({update:n,optimistic:a&&u||!1,removeOptimistic:u,onWatchUpdated:function(d,h,p){var v=d.watcher instanceof Sn&&d.watcher.observableQuery;if(v){if(c){l.delete(v.queryId);var y=c(v,h,p);return y===!0&&(y=v.refetch()),y!==!1&&f.set(v,y),y}c!==null&&l.set(v.queryId,{oq:v,lastDiff:p,diff:h})}}}),l.size&&l.forEach(function(d,h){var p=d.oq,v=d.lastDiff,y=d.diff,m;if(c){if(!y){var w=p.queryInfo;w.reset(),y=w.getDiff()}m=c(p,y,v)}(!c||m===!0)&&(m=p.refetch()),m!==!1&&f.set(p,m),h.indexOf("legacyOneTimeQuery")>=0&&r.stopQueryNoBroadcast(h)}),u&&this.cache.removeOptimistic(u),f},t.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,s=r.query,a=r.variables,o=r.fetchPolicy,u=r.refetchWritePolicy,c=r.errorPolicy,l=r.returnPartialData,f=r.context,d=r.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:s,variables:a,networkStatus:n});var p=function(){return e.getDiff()},v=function(_,S){S===void 0&&(S=e.networkStatus||K.loading);var T=_.result;globalThis.__DEV__!==!1&&!l&&!J(T,{})&&tf(_.missing);var R=function(g){return L.of(O({data:g,loading:Gt(S),networkStatus:S},_.complete?null:{partial:!0}))};return T&&i.getDocumentInfo(s).hasForcedResolvers?i.localState.runResolvers({document:s,remoteResult:{data:T},context:f,variables:a,onlyRunForcedResolvers:!0}).then(function(g){return R(g.data||void 0)}):c==="none"&&S===K.refetch&&Array.isArray(_.missing)?R(void 0):R(T)},y=o==="no-cache"?0:n===K.refetch&&u!=="merge"?1:2,m=function(){return i.getResultsFromLink(e,y,{query:s,variables:a,context:f,fetchPolicy:o,errorPolicy:c})},w=d&&typeof h=="number"&&h!==n&&Gt(n);switch(o){default:case"cache-first":{var b=p();return b.complete?{fromLink:!1,sources:[v(b,e.markReady())]}:l||w?{fromLink:!0,sources:[v(b),m()]}:{fromLink:!0,sources:[m()]}}case"cache-and-network":{var b=p();return b.complete||l||w?{fromLink:!0,sources:[v(b),m()]}:{fromLink:!0,sources:[m()]}}case"cache-only":return{fromLink:!1,sources:[v(p(),e.markReady())]};case"network-only":return w?{fromLink:!0,sources:[v(p()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return w?{fromLink:!0,sources:[v(e.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},t.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Sn(this,e)),this.queries.get(e)},t.prototype.prepareContext=function(e){e===void 0&&(e={});var r=this.localState.prepareContext(e);return O(O(O({},this.defaultContext),r),{clientAwareness:this.clientAwareness})},t}(),Vo=!1,ma=function(){function t(e){var r=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw ye(15);var n=e.uri,i=e.credentials,s=e.headers,a=e.cache,o=e.documentTransform,u=e.ssrMode,c=u===void 0?!1:u,l=e.ssrForceFetchDelay,f=l===void 0?0:l,d=e.connectToDevTools,h=d===void 0?typeof window=="object"&&!window.__APOLLO_CLIENT__&&globalThis.__DEV__!==!1:d,p=e.queryDeduplication,v=p===void 0?!0:p,y=e.defaultOptions,m=e.defaultContext,w=e.assumeImmutableResults,b=w===void 0?a.assumeImmutableResults:w,_=e.resolvers,S=e.typeDefs,T=e.fragmentMatcher,R=e.name,g=e.version,x=e.link;x||(x=n?new ua({uri:n,credentials:i,headers:s}):he.empty()),this.link=x,this.cache=a,this.disableNetworkFetches=c||f>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=S,f&&setTimeout(function(){return r.disableNetworkFetches=!1},f),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Ns,this.localState=new rf({cache:a,client:this,resolvers:_,fragmentMatcher:T}),this.queryManager=new ey({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:m,documentTransform:o,queryDeduplication:v,ssrMode:c,clientAwareness:{name:R,version:g},localState:this.localState,assumeImmutableResults:b,onBroadcast:h?function(){r.devToolsHookCb&&r.devToolsHookCb({action:{},state:{queries:r.queryManager.getQueryStore(),mutations:r.queryManager.mutationStore||{}},dataWithOptimisticResults:r.cache.extract(!0)})}:void 0}),h&&this.connectToDevTools()}return t.prototype.connectToDevTools=function(){if(typeof window=="object"){var e=window,r=Symbol.for("apollo.devtools");(e[r]=e[r]||[]).push(this),e.__APOLLO_CLIENT__=this}!Vo&&globalThis.__DEV__!==!1&&(Vo=!0,setTimeout(function(){if(typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var n=window.navigator,i=n&&n.userAgent,s=void 0;typeof i=="string"&&(i.indexOf("Chrome/")>-1?s="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":i.indexOf("Firefox/")>-1&&(s="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),s&&globalThis.__DEV__!==!1&&I.log("Download the Apollo DevTools for a better development experience: %s",s)}},1e4))},Object.defineProperty(t.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=vr(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy==="network-only"||e.fetchPolicy==="cache-and-network")&&(e=O(O({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},t.prototype.query=function(e){return this.defaultOptions.query&&(e=vr(this.defaultOptions.query,e)),I(e.fetchPolicy!=="cache-and-network",16),this.disableNetworkFetches&&e.fetchPolicy==="network-only"&&(e=O(O({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},t.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=vr(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},t.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},t.prototype.readQuery=function(e,r){return r===void 0&&(r=!1),this.cache.readQuery(e,r)},t.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},t.prototype.readFragment=function(e,r){return r===void 0&&(r=!1),this.cache.readFragment(e,r)},t.prototype.writeQuery=function(e){var r=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.writeFragment=function(e){var r=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),r},t.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},t.prototype.__requestRaw=function(e){return Tr(this.link,e)},t.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(r){return r()}))}).then(function(){return e.reFetchObservableQueries()})},t.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(r){return r()}))})},t.prototype.onResetStore=function(e){var r=this;return this.resetStoreCallbacks.push(e),function(){r.resetStoreCallbacks=r.resetStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.onClearStore=function(e){var r=this;return this.clearStoreCallbacks.push(e),function(){r.clearStoreCallbacks=r.clearStoreCallbacks.filter(function(n){return n!==e})}},t.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},t.prototype.refetchQueries=function(e){var r=this.queryManager.refetchQueries(e),n=[],i=[];r.forEach(function(a,o){n.push(o),i.push(a)});var s=Promise.all(i);return s.queries=n,s.results=i,s.catch(function(a){globalThis.__DEV__!==!1&&I.debug(17,a)}),s},t.prototype.getObservableQueries=function(e){return e===void 0&&(e="active"),this.queryManager.getObservableQueries(e)},t.prototype.extract=function(e){return this.cache.extract(e)},t.prototype.restore=function(e){return this.cache.restore(e)},t.prototype.addResolvers=function(e){this.localState.addResolvers(e)},t.prototype.setResolvers=function(e){this.localState.setResolvers(e)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},t.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(t.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),t}();globalThis.__DEV__!==!1&&(ma.prototype.getMemoryInternals=Xh);nl(globalThis.__DEV__!==!1?"log":"silent");const ty=Object.freeze(Object.defineProperty({__proto__:null,ApolloCache:ca,ApolloClient:ma,ApolloError:it,ApolloLink:he,get Cache(){return gs},DocumentTransform:Gs,HttpLink:ua,InMemoryCache:ya,MissingFieldError:la,get NetworkStatus(){return K},Observable:L,ObservableQuery:xr,checkFetcher:ia,concat:uv,createHttpLink:oa,createSignalIfSupported:Bl,defaultDataIdFromObject:fa,defaultPrinter:zr,disableExperimentalFragmentVariables:Od,disableFragmentWarnings:_d,empty:ov,enableExperimentalFragmentVariables:Sd,execute:Tr,fallbackHttpConfig:na,from:Ml,fromError:yr,fromPromise:rv,get gql(){return Ed},isApolloError:Nl,isNetworkRequestSettled:Gv,isReference:B,makeReference:lt,makeVar:Gl,mergeOptions:vr,parseAndCheckHttpResponse:ra,resetCaches:Rd,rewriteURIForGET:aa,selectHttpOptionsAndBody:Ul,selectHttpOptionsAndBodyInternal:Wr,selectURI:sa,serializeFetchParameter:Wt,setLogVerbosity:nl,split:Ll,throwServerError:ea,toPromise:tv},Symbol.toStringTag,{value:"Module"}));function ry(t){var e=t||{},r=e.initial,n=r===void 0?300:r,i=e.jitter,s=i===void 0?!0:i,a=e.max,o=a===void 0?1/0:a,u=s?n:n/2;return function(l){var f=Math.min(o,u*Math.pow(2,l));return s&&(f=Math.random()*f),f}}function ny(t){var e=t||{},r=e.retryIf,n=e.max,i=n===void 0?5:n;return function(a,o,u){return a>=i?!1:r?r(u,o):!!u}}var iy=function(){function t(e,r,n,i,s){var a=this;this.observer=e,this.operation=r,this.forward=n,this.delayFor=i,this.retryIf=s,this.retryCount=0,this.currentSubscription=null,this.onError=function(o){return qe(a,void 0,void 0,function(){var u;return Me(this,function(c){switch(c.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,o)];case 1:return u=c.sent(),u?(this.scheduleRetry(this.delayFor(this.retryCount,this.operation,o)),[2]):(this.observer.error(o),[2])}})})},this.try()}return t.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},t.prototype.try=function(){this.currentSubscription=this.forward(this.operation).subscribe({next:this.observer.next.bind(this.observer),error:this.onError,complete:this.observer.complete.bind(this.observer)})},t.prototype.scheduleRetry=function(e){var r=this;if(this.timerId)throw new Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){r.timerId=void 0,r.try()},e)},t}(),sy=function(t){Re(e,t);function e(r){var n=t.call(this)||this,i=r||{},s=i.attempts,a=i.delay;return n.delayFor=typeof a=="function"?a:ry(a),n.retryIf=typeof s=="function"?s:ny(s),n}return e.prototype.request=function(r,n){var i=this;return new L(function(s){var a=new iy(s,r,n,i.delayFor,i.retryIf);return function(){a.cancel()}})},e}(he);function ba(t){return new he(function(e,r){return new L(function(n){var i,s,a;try{i=r(e).subscribe({next:function(o){if(o.errors&&(a=t({graphQLErrors:o.errors,response:o,operation:e,forward:r}),a)){s=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(o)},error:function(o){if(a=t({operation:e,networkError:o,graphQLErrors:o&&o.result&&o.result.errors,forward:r}),a){s=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(o)},complete:function(){a||n.complete.bind(n)()}})}catch(o){t({networkError:o,operation:e,forward:r}),n.error(o)}return function(){i&&i.unsubscribe(),s&&i.unsubscribe()}})})}(function(t){Re(e,t);function e(r){var n=t.call(this)||this;return n.link=ba(r),n}return e.prototype.request=function(r,n){return this.link.request(r,n)},e})(he);function nf(t){return new he(function(e,r){var n=Ve(e,[]);return new L(function(i){var s,a=!1;return Promise.resolve(n).then(function(o){return t(o,e.getContext())}).then(e.setContext).then(function(){a||(s=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){a=!0,s&&s.unsubscribe()}})})}const ay=Lc(ty),oy=Lc(xv);var En,Uo;function uy(){return Uo||(Uo=1,En=class{constructor({uri:e,name:r,type:n}){this.uri=e,this.name=r,this.type=n}}),En}var Rn,Bo;function sf(){if(Bo)return Rn;Bo=1;const t=uy();return Rn=function(r){return typeof File<"u"&&r instanceof File||typeof Blob<"u"&&r instanceof Blob||r instanceof t},Rn}var Tn,$o;function cy(){if($o)return Tn;$o=1;const t=sf();return Tn=function(r,n="",i=t){const s=new Map,a=new Map;function o(u,c,l){let f=u;if(i(u)){f=null;const d=s.get(u);d?d.push(c):s.set(u,[c])}else{const d=Array.isArray(u)||typeof FileList<"u"&&u instanceof FileList,h=u&&u.constructor===Object;if(d||h){const p=a.has(u);if(p?f=a.get(u):(f=d?[]:{},a.set(u,f)),!l.has(u)){const v=c?`${c}.`:"",y=new Set(l).add(u);if(d){let m=0;for(const w of u){const b=o(w,v+m++,y);p||f.push(b)}}else for(const m in u){const w=o(u[m],v+m,y);p||(f[m]=w)}}}}return f}return{clone:o(r,n,new Set),files:s}},Tn}var kn,Qo;function ly(){return Qo||(Qo=1,kn=function(e,r,n){e.append(r,n,n.name)}),kn}var xn,zo;function fy(){return zo||(zo=1,xn=sf()),xn}var An,Wo;function dy(){if(Wo)return An;Wo=1;const{ApolloLink:t,Observable:e}=ay,{createSignalIfSupported:r,fallbackHttpConfig:n,parseAndCheckHttpResponse:i,rewriteURIForGET:s,selectHttpOptionsAndBody:a,selectURI:o,serializeFetchParameter:u}=oy,c=cy(),l=ly(),f=fy();return An=function({uri:h="/graphql",useGETForQueries:p,isExtractableFile:v=f,FormData:y,formDataAppendFile:m=l,fetch:w,fetchOptions:b,credentials:_,headers:S,includeExtensions:T}={}){const R={http:{includeExtensions:T},options:b,credentials:_,headers:S};return new t(g=>{const x=g.getContext(),{clientAwareness:{name:k,version:V}={},headers:C}=x,P={http:x.http,options:x.fetchOptions,credentials:x.credentials,headers:{...k&&{"apollographql-client-name":k},...V&&{"apollographql-client-version":V},...C}},{options:j,body:ae}=a(g,n,R,P),{clone:oe,files:ne}=c(ae,"",v);let ie=o(g,h);if(ne.size){delete j.headers["content-type"];const X=y||FormData,re=new X;re.append("operations",u(oe,"Payload"));const Y={};let ge=0;ne.forEach(Qe=>{Y[++ge]=Qe}),re.append("map",JSON.stringify(Y)),ge=0,ne.forEach((Qe,Pt)=>{m(re,++ge,Pt)}),j.body=re}else if(p&&!g.query.definitions.some(X=>X.kind==="OperationDefinition"&&X.operation==="mutation")&&(j.method="GET"),j.method==="GET"){const{newURI:X,parseError:re}=s(ie,ae);if(re)return new e(Y=>{Y.error(re)});ie=X}else j.body=u(oe,"Payload");const{controller:q}=r();q&&(j.signal&&(j.signal.aborted?q.abort():j.signal.addEventListener("abort",()=>{q.abort()},{once:!0})),j.signal=q.signal);const we=w||fetch;return new e(X=>{let re;return we(ie,j).then(Y=>(g.setContext({response:Y}),Y)).then(i(g)).then(Y=>{X.next(Y),X.complete()}).catch(Y=>{re||(Y.result&&Y.result.errors&&Y.result.data&&X.next(Y.result),X.error(Y))}),()=>{re=!0,q&&q.abort()}})})},An}var hy=dy();const py=De(hy);var Fn={},qt={},Ho;function vy(){if(Ho)return qt;Ho=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.default=void 0;const t=(r,n,i)=>{if(Array.isArray(r))return r.map(s=>typeof s=="string"||typeof s=="number"||typeof s=="boolean"?s:t(s,n,i));{if(r&&r.id&&r.__typename){const o=i.join(",");if(n[o]&&n[o][r.__typename]&&n[o][r.__typename][r.id])return{__typename:r.__typename,id:r.id};n[o]||(n[o]={}),n[o][r.__typename]||(n[o][r.__typename]={}),n[o][r.__typename][r.id]=!0}const s=Object.keys(r),a={};for(const o of s){const u=r[o];Array.isArray(u)||typeof u=="object"&&u!==null?a[o]=t(u,n,i.concat([o])):a[o]=u}return a}};var e=r=>t(r,{},[]);return qt.default=e,qt}var Mt={},Go;function yy(){if(Go)return Mt;Go=1,Object.defineProperty(Mt,"__esModule",{value:!0}),Mt.default=void 0;const t=(r,n,i)=>{if(Array.isArray(r))return r.map(s=>typeof s=="string"||typeof s=="number"||typeof s=="boolean"?s:t(s,n,i));{if(r&&r.id&&r.__typename){const o=i.join(",");if(n[o]&&n[o][r.__typename]&&n[o][r.__typename][r.id])return n[o][r.__typename][r.id];n[o]||(n[o]={}),n[o][r.__typename]||(n[o][r.__typename]={}),n[o][r.__typename][r.id]=r}const s=Object.keys(r),a={};for(const o of s){const u=r[o];Array.isArray(u)||typeof u=="object"&&u!==null?a[o]=t(u,n,i.concat([o])):a[o]=u}return a}};var e=r=>t(r,{},[]);return Mt.default=e,Mt}var Ko;function my(){return Ko||(Ko=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"deflate",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"inflate",{enumerable:!0,get:function(){return r.default}});var e=n(vy()),r=n(yy());function n(i){return i&&i.__esModule?i:{default:i}}}(Fn)),Fn}var gy=my();const af=`${Nc()}/api/v1`,of=`${Td()}`,u0={getValues({data:t,fields:e,filter:r}){let n=Object.keys(e);return r&&(n=n.filter(r)),n.reduce((i,s)=>{const a=e[s];for(const o of a.path){const u=Vc(t,o);if(u){i[s]=`${a.prefix||""}${u}${a.suffix||""}`;break}}return i},{})}};function by(t,e){const r=new Event(e);t.dispatchEvent(r)}function c0(t){by(document,t)}var fr={exports:{}},Pn,Jo;function uf(){return Jo||(Jo=1,Pn=function(e,r){return function(){for(var i=new Array(arguments.length),s=0;s"u"}function i(g){return g!==null&&!n(g)&&g.constructor!==null&&!n(g.constructor)&&typeof g.constructor.isBuffer=="function"&&g.constructor.isBuffer(g)}function s(g){return e.call(g)==="[object ArrayBuffer]"}function a(g){return typeof FormData<"u"&&g instanceof FormData}function o(g){var x;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?x=ArrayBuffer.isView(g):x=g&&g.buffer&&g.buffer instanceof ArrayBuffer,x}function u(g){return typeof g=="string"}function c(g){return typeof g=="number"}function l(g){return g!==null&&typeof g=="object"}function f(g){if(e.call(g)!=="[object Object]")return!1;var x=Object.getPrototypeOf(g);return x===null||x===Object.prototype}function d(g){return e.call(g)==="[object Date]"}function h(g){return e.call(g)==="[object File]"}function p(g){return e.call(g)==="[object Blob]"}function v(g){return e.call(g)==="[object Function]"}function y(g){return l(g)&&v(g.pipe)}function m(g){return typeof URLSearchParams<"u"&&g instanceof URLSearchParams}function w(g){return g.trim?g.trim():g.replace(/^\s+|\s+$/g,"")}function b(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function _(g,x){if(!(g===null||typeof g>"u"))if(typeof g!="object"&&(g=[g]),r(g))for(var k=0,V=g.length;k"u"||(t.isArray(l)?f=f+"[]":l=[l],t.forEach(l,function(h){t.isDate(h)?h=h.toISOString():t.isObject(h)&&(h=JSON.stringify(h)),o.push(e(f)+"="+e(h))}))}),a=o.join("&")}if(a){var u=n.indexOf("#");u!==-1&&(n=n.slice(0,u)),n+=(n.indexOf("?")===-1?"?":"&")+a}return n},Dn}var In,Zo;function wy(){if(Zo)return In;Zo=1;var t=be();function e(){this.handlers=[]}return e.prototype.use=function(n,i,s){return this.handlers.push({fulfilled:n,rejected:i,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1},e.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},e.prototype.forEach=function(n){t.forEach(this.handlers,function(s){s!==null&&n(s)})},In=e,In}var jn,eu;function Oy(){if(eu)return jn;eu=1;var t=be();return jn=function(r,n){t.forEach(r,function(s,a){a!==n&&a.toUpperCase()===n.toUpperCase()&&(r[n]=s,delete r[a])})},jn}var qn,tu;function lf(){return tu||(tu=1,qn=function(e,r,n,i,s){return e.config=r,n&&(e.code=n),e.request=i,e.response=s,e.isAxiosError=!0,e.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:this.config,code:this.code}},e}),qn}var Mn,ru;function ff(){if(ru)return Mn;ru=1;var t=lf();return Mn=function(r,n,i,s,a){var o=new Error(r);return t(o,n,i,s,a)},Mn}var Ln,nu;function _y(){if(nu)return Ln;nu=1;var t=ff();return Ln=function(r,n,i){var s=i.config.validateStatus;!i.status||!s||s(i.status)?r(i):n(t("Request failed with status code "+i.status,i.config,null,i.request,i))},Ln}var Nn,iu;function Sy(){if(iu)return Nn;iu=1;var t=be();return Nn=t.isStandardBrowserEnv()?function(){return{write:function(n,i,s,a,o,u){var c=[];c.push(n+"="+encodeURIComponent(i)),t.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),t.isString(a)&&c.push("path="+a),t.isString(o)&&c.push("domain="+o),u===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){var i=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Nn}var Vn,su;function Ey(){return su||(su=1,Vn=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),Vn}var Un,au;function Ry(){return au||(au=1,Un=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}),Un}var Bn,ou;function Ty(){if(ou)return Bn;ou=1;var t=Ey(),e=Ry();return Bn=function(n,i){return n&&!t(i)?e(n,i):i},Bn}var $n,uu;function ky(){if(uu)return $n;uu=1;var t=be(),e=["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"];return $n=function(n){var i={},s,a,o;return n&&t.forEach(n.split(` `),function(c){if(o=c.indexOf(":"),s=t.trim(c.substr(0,o)).toLowerCase(),a=t.trim(c.substr(o+1)),s){if(i[s]&&e.indexOf(s)>=0)return;s==="set-cookie"?i[s]=(i[s]?i[s]:[]).concat([a]):i[s]=i[s]?i[s]+", "+a:a}}),i},$n}var Qn,cu;function xy(){if(cu)return Qn;cu=1;var t=be();return Qn=t.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),i;function s(a){var o=a;return r&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=s(window.location.href),function(o){var u=t.isString(o)?s(o):o;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}(),Qn}var zn,lu;function fu(){if(lu)return zn;lu=1;var t=be(),e=_y(),r=Sy(),n=cf(),i=Ty(),s=ky(),a=xy(),o=ff();return zn=function(c){return new Promise(function(f,d){var h=c.data,p=c.headers,v=c.responseType;t.isFormData(h)&&delete p["Content-Type"];var y=new XMLHttpRequest;if(c.auth){var m=c.auth.username||"",w=c.auth.password?unescape(encodeURIComponent(c.auth.password)):"";p.Authorization="Basic "+btoa(m+":"+w)}var b=i(c.baseURL,c.url);y.open(c.method.toUpperCase(),n(b,c.params,c.paramsSerializer),!0),y.timeout=c.timeout;function _(){if(y){var T="getAllResponseHeaders"in y?s(y.getAllResponseHeaders()):null,R=!v||v==="text"||v==="json"?y.responseText:y.response,g={data:R,status:y.status,statusText:y.statusText,headers:T,config:c,request:y};e(f,d,g),y=null}}if("onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(_)},y.onabort=function(){y&&(d(o("Request aborted",c,"ECONNABORTED",y)),y=null)},y.onerror=function(){d(o("Network Error",c,null,y)),y=null},y.ontimeout=function(){var R="timeout of "+c.timeout+"ms exceeded";c.timeoutErrorMessage&&(R=c.timeoutErrorMessage),d(o(R,c,c.transitional&&c.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},t.isStandardBrowserEnv()){var S=(c.withCredentials||a(b))&&c.xsrfCookieName?r.read(c.xsrfCookieName):void 0;S&&(p[c.xsrfHeaderName]=S)}"setRequestHeader"in y&&t.forEach(p,function(R,g){typeof h>"u"&&g.toLowerCase()==="content-type"?delete p[g]:y.setRequestHeader(g,R)}),t.isUndefined(c.withCredentials)||(y.withCredentials=!!c.withCredentials),v&&v!=="json"&&(y.responseType=c.responseType),typeof c.onDownloadProgress=="function"&&y.addEventListener("progress",c.onDownloadProgress),typeof c.onUploadProgress=="function"&&y.upload&&y.upload.addEventListener("progress",c.onUploadProgress),c.cancelToken&&c.cancelToken.promise.then(function(R){y&&(y.abort(),d(R),y=null)}),h||(h=null),y.send(h)})},zn}var Wn,du;function wa(){if(du)return Wn;du=1;var t=be(),e=Oy(),r=lf(),n={"Content-Type":"application/x-www-form-urlencoded"};function i(u,c){!t.isUndefined(u)&&t.isUndefined(u["Content-Type"])&&(u["Content-Type"]=c)}function s(){var u;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(u=fu()),u}function a(u,c,l){if(t.isString(u))try{return(c||JSON.parse)(u),t.trim(u)}catch(f){if(f.name!=="SyntaxError")throw f}return(l||JSON.stringify)(u)}var o={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:s(),transformRequest:[function(c,l){return e(l,"Accept"),e(l,"Content-Type"),t.isFormData(c)||t.isArrayBuffer(c)||t.isBuffer(c)||t.isStream(c)||t.isFile(c)||t.isBlob(c)?c:t.isArrayBufferView(c)?c.buffer:t.isURLSearchParams(c)?(i(l,"application/x-www-form-urlencoded;charset=utf-8"),c.toString()):t.isObject(c)||l&&l["Content-Type"]==="application/json"?(i(l,"application/json"),a(c)):c}],transformResponse:[function(c){var l=this.transitional,f=l&&l.silentJSONParsing,d=l&&l.forcedJSONParsing,h=!f&&this.responseType==="json";if(h||d&&t.isString(c)&&c.length)try{return JSON.parse(c)}catch(p){if(h)throw p.name==="SyntaxError"?r(p,this,"E_JSON_PARSE"):p}return c}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(c){return c>=200&&c<300}};return o.headers={common:{Accept:"application/json, text/plain, */*"}},t.forEach(["delete","get","head"],function(c){o.headers[c]={}}),t.forEach(["post","put","patch"],function(c){o.headers[c]=t.merge(n)}),Wn=o,Wn}var Hn,hu;function Ay(){if(hu)return Hn;hu=1;var t=be(),e=wa();return Hn=function(n,i,s){var a=this||e;return t.forEach(s,function(u){n=u.call(a,n,i)}),n},Hn}var Gn,pu;function df(){return pu||(pu=1,Gn=function(e){return!!(e&&e.__CANCEL__)}),Gn}var Kn,vu;function Fy(){if(vu)return Kn;vu=1;var t=be(),e=Ay(),r=df(),n=wa();function i(s){s.cancelToken&&s.cancelToken.throwIfRequested()}return Kn=function(a){i(a),a.headers=a.headers||{},a.data=e.call(a,a.data,a.headers,a.transformRequest),a.headers=t.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),t.forEach(["delete","get","head","post","put","patch","common"],function(c){delete a.headers[c]});var o=a.adapter||n.adapter;return o(a).then(function(c){return i(a),c.data=e.call(a,c.data,c.headers,a.transformResponse),c},function(c){return r(c)||(i(a),c&&c.response&&(c.response.data=e.call(a,c.response.data,c.response.headers,a.transformResponse))),Promise.reject(c)})},Kn}var Jn,yu;function hf(){if(yu)return Jn;yu=1;var t=be();return Jn=function(r,n){n=n||{};var i={},s=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function c(h,p){return t.isPlainObject(h)&&t.isPlainObject(p)?t.merge(h,p):t.isPlainObject(p)?t.merge({},p):t.isArray(p)?p.slice():p}function l(h){t.isUndefined(n[h])?t.isUndefined(r[h])||(i[h]=c(void 0,r[h])):i[h]=c(r[h],n[h])}t.forEach(s,function(p){t.isUndefined(n[p])||(i[p]=c(void 0,n[p]))}),t.forEach(a,l),t.forEach(o,function(p){t.isUndefined(n[p])?t.isUndefined(r[p])||(i[p]=c(void 0,r[p])):i[p]=c(void 0,n[p])}),t.forEach(u,function(p){p in n?i[p]=c(r[p],n[p]):p in r&&(i[p]=c(void 0,r[p]))});var f=s.concat(a).concat(o).concat(u),d=Object.keys(r).concat(Object.keys(n)).filter(function(p){return f.indexOf(p)===-1});return t.forEach(d,l),i},Jn}const Py="0.21.4",Cy={version:Py};var Xn,mu;function Dy(){if(mu)return Xn;mu=1;var t=Cy,e={};["object","boolean","number","function","string","symbol"].forEach(function(a,o){e[a]=function(c){return typeof c===a||"a"+(o<1?"n ":" ")+a}});var r={},n=t.version.split(".");function i(a,o){for(var u=o?o.split("."):n,c=a.split("."),l=0;l<3;l++){if(u[l]>c[l])return!0;if(u[l]0;){var f=c[l],d=o[f];if(d){var h=a[f],p=h===void 0||d(h,f,a);if(p!==!0)throw new TypeError("option "+f+" must be "+p);continue}if(u!==!0)throw Error("Unknown option "+f)}}return Xn={isOlderVersion:i,assertOptions:s,validators:e},Xn}var Yn,gu;function Iy(){if(gu)return Yn;gu=1;var t=be(),e=cf(),r=wy(),n=Fy(),i=hf(),s=Dy(),a=s.validators;function o(u){this.defaults=u,this.interceptors={request:new r,response:new r}}return o.prototype.request=function(c){typeof c=="string"?(c=arguments[1]||{},c.url=arguments[0]):c=c||{},c=i(this.defaults,c),c.method?c.method=c.method.toLowerCase():this.defaults.method?c.method=this.defaults.method.toLowerCase():c.method="get";var l=c.transitional;l!==void 0&&s.assertOptions(l,{silentJSONParsing:a.transitional(a.boolean,"1.0.0"),forcedJSONParsing:a.transitional(a.boolean,"1.0.0"),clarifyTimeoutError:a.transitional(a.boolean,"1.0.0")},!1);var f=[],d=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(c)===!1||(d=d&&_.synchronous,f.unshift(_.fulfilled,_.rejected))});var h=[];this.interceptors.response.forEach(function(_){h.push(_.fulfilled,_.rejected)});var p;if(!d){var v=[n,void 0];for(Array.prototype.unshift.apply(v,f),v=v.concat(h),p=Promise.resolve(c);v.length;)p=p.then(v.shift(),v.shift());return p}for(var y=c;f.length;){var m=f.shift(),w=f.shift();try{y=m(y)}catch(b){w(b);break}}try{p=n(y)}catch(b){return Promise.reject(b)}for(;h.length;)p=p.then(h.shift(),h.shift());return p},o.prototype.getUri=function(c){return c=i(this.defaults,c),e(c.url,c.params,c.paramsSerializer).replace(/^\?/,"")},t.forEach(["delete","get","head","options"],function(c){o.prototype[c]=function(l,f){return this.request(i(f||{},{method:c,url:l,data:(f||{}).data}))}}),t.forEach(["post","put","patch"],function(c){o.prototype[c]=function(l,f,d){return this.request(i(d||{},{method:c,url:l,data:f}))}}),Yn=o,Yn}var Zn,bu;function pf(){if(bu)return Zn;bu=1;function t(e){this.message=e}return t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,Zn=t,Zn}var ei,wu;function jy(){if(wu)return ei;wu=1;var t=pf();function e(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var i=this;r(function(a){i.reason||(i.reason=new t(a),n(i.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.source=function(){var n,i=new e(function(a){n=a});return{token:i,cancel:n}},ei=e,ei}var ti,Ou;function qy(){return Ou||(Ou=1,ti=function(e){return function(n){return e.apply(null,n)}}),ti}var ri,_u;function My(){return _u||(_u=1,ri=function(e){return typeof e=="object"&&e.isAxiosError===!0}),ri}var Su;function Ly(){if(Su)return fr.exports;Su=1;var t=be(),e=uf(),r=Iy(),n=hf(),i=wa();function s(o){var u=new r(o),c=e(r.prototype.request,u);return t.extend(c,r.prototype,u),t.extend(c,u),c}var a=s(i);return a.Axios=r,a.create=function(u){return s(n(a.defaults,u))},a.Cancel=pf(),a.CancelToken=jy(),a.isCancel=df(),a.all=function(u){return Promise.all(u)},a.spread=qy(),a.isAxiosError=My(),fr.exports=a,fr.exports.default=a,fr.exports}var ni,Eu;function Ny(){return Eu||(Eu=1,ni=Ly()),ni}var Vy=Ny();const Hr=De(Vy);function Uy({data:t,field:e=null,fieldFormDataOnly:r=!1,appendTransform:n=null}){if(!Ar(t))return e&&!r?{[e]:t}:t;const i=new FormData;return vf(i,t,e,n),i}function Ar(t){return Array.isArray(t)?t.some(e=>Ar(e)):kd(t)?Object.keys(t).some(e=>t[e]instanceof File||Ar(t[e])):!1}function vf(t,e,r,n){const i=Array.isArray(e);for(const s in e){let a=!1,o=e[s];typeof o=="object"&&!(o instanceof File)&&(Ar(o)?a=!0:o=JSON.stringify(o));let u=s;if(i&&e.length===1)u="";else if(!a&&n){const l=n({value:o,key:s,baseKey:r});l&&(l.hasOwnProperty("key")&&(u=l.key),l.hasOwnProperty("value")&&(o=l.value))}const c=r?`${r}[${u}]`:u;if(a){vf(t,o,c,n);continue}t.append(c,o)}}const tt="ls-authorization",By="ls-anonymous-traits",$y="ls-device-id";var ii={exports:{}},Ru;function Qy(){return Ru||(Ru=1,function(t,e){(function(){var r={expires:"1d",path:"; path=/",domain:"",secure:"",sameSite:"; SameSite=Lax",partitioned:""},n={install:function(i,s){s&&this.config(s.expires,s.path,s.domain,s.secure,s.sameSite,s.partitioned),i.prototype&&(i.prototype.$cookies=this),i.config&&i.config.globalProperties&&(i.config.globalProperties.$cookies=this,i.provide("$cookies",this)),i.$cookies=this},config:function(i,s,a,o,u,c){r.expires=i||"1d",r.path=s?"; path="+s:"; path=/",r.domain=a?"; domain="+a:"",r.secure=o?"; Secure":"",r.sameSite=u?"; SameSite="+u:"; SameSite=Lax",r.partitioned=c?"; Partitioned":""},get:function(i){var s=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(s&&(s.substring(0,1)==="{"&&s.substring(s.length-1,s.length)==="}"||s.substring(0,1)==="["&&s.substring(s.length-1,s.length)==="]"))try{s=JSON.parse(s)}catch{return s}return s},set:function(i,s,a,o,u,c,l,f){if(i){if(/^(?:expires|max\-age|path|domain|secure|SameSite)$/i.test(i))throw new Error('Cookie name illegality. Cannot be set to ["expires","max-age","path","domain","secure","SameSite"] current key name: '+i)}else throw new Error("Cookie name is not found in the first argument.");s&&typeof s=="object"&&(s=JSON.stringify(s));var d="";if(a=a===void 0?r.expires:a,a&&a!==0)switch(a.constructor){case Number:a===1/0||a===-1?d="; expires=Fri, 31 Dec 9999 23:59:59 GMT":d="; max-age="+a;break;case String:if(/^(?:\d+(y|m|d|h|min|s))$/i.test(a)){var h=a.replace(/^(\d+)(?:y|m|d|h|min|s)$/i,"$1");switch(a.replace(/^(?:\d+)(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":d="; max-age="+ +h*2592e3;break;case"d":d="; max-age="+ +h*86400;break;case"h":d="; max-age="+ +h*3600;break;case"min":d="; max-age="+ +h*60;break;case"s":d="; max-age="+h;break;case"y":d="; max-age="+ +h*31104e3;break}}else d="; expires="+a;break;case Date:d="; expires="+a.toUTCString();break}return document.cookie=encodeURIComponent(i)+"="+encodeURIComponent(s)+d+(u?"; domain="+u:r.domain)+(o?"; path="+o:r.path)+(c===void 0?r.secure:c?"; Secure":"")+(l===void 0?r.sameSite:l?"; SameSite="+l:"")+(f===void 0?r.partitioned:f?"; Partitioned":""),this},remove:function(i,s,a){return!i||!this.isKey(i)?!1:(document.cookie=encodeURIComponent(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(a?"; domain="+a:r.domain)+(s?"; path="+s:r.path)+"; SameSite=Lax",!0)},isKey:function(i){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){if(!document.cookie)return[];for(var i=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),s=0;se=>{const r=Wy.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Ie=t=>(t=t.toLowerCase(),e=>Gr(e)===t),Kr=t=>e=>typeof e===t,{isArray:Ft}=Array,Kt=Kr("undefined");function Hy(t){return t!==null&&!Kt(t)&&t.constructor!==null&&!Kt(t.constructor)&&Se(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const gf=Ie("ArrayBuffer");function Gy(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&gf(t.buffer),e}const Ky=Kr("string"),Se=Kr("function"),bf=Kr("number"),Jr=t=>t!==null&&typeof t=="object",Jy=t=>t===!0||t===!1,br=t=>{if(Gr(t)!=="object")return!1;const e=Oa(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Xy=Ie("Date"),Yy=Ie("File"),Zy=Ie("Blob"),em=Ie("FileList"),tm=t=>Jr(t)&&Se(t.pipe),rm=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Se(t.append)&&((e=Gr(t))==="formdata"||e==="object"&&Se(t.toString)&&t.toString()==="[object FormData]"))},nm=Ie("URLSearchParams"),im=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function rr(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Ft(t))for(n=0,i=t.length;n0;)if(i=r[n],e===i.toLowerCase())return i;return null}const Of=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_f=t=>!Kt(t)&&t!==Of;function Ss(){const{caseless:t}=_f(this)&&this||{},e={},r=(n,i)=>{const s=t&&wf(e,i)||i;br(e[s])&&br(n)?e[s]=Ss(e[s],n):br(n)?e[s]=Ss({},n):Ft(n)?e[s]=n.slice():e[s]=n};for(let n=0,i=arguments.length;n(rr(e,(i,s)=>{r&&Se(i)?t[s]=mf(i,r):t[s]=i},{allOwnKeys:n}),t),am=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),om=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},um=(t,e,r,n)=>{let i,s,a;const o={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)a=i[s],(!n||n(a,t,e))&&!o[a]&&(e[a]=t[a],o[a]=!0);t=r!==!1&&Oa(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},cm=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},lm=t=>{if(!t)return null;if(Ft(t))return t;let e=t.length;if(!bf(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},fm=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Oa(Uint8Array)),dm=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},hm=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},pm=Ie("HTMLFormElement"),vm=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Tu=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),ym=Ie("RegExp"),Sf=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};rr(r,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(n[s]=a||i)}),Object.defineProperties(t,n)},mm=t=>{Sf(t,(e,r)=>{if(Se(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Se(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},gm=(t,e)=>{const r={},n=i=>{i.forEach(s=>{r[s]=!0})};return Ft(t)?n(t):n(String(t).split(e)),r},bm=()=>{},wm=(t,e)=>(t=+t,Number.isFinite(t)?t:e),si="abcdefghijklmnopqrstuvwxyz",ku="0123456789",Ef={DIGIT:ku,ALPHA:si,ALPHA_DIGIT:si+si.toUpperCase()+ku},Om=(t=16,e=Ef.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function _m(t){return!!(t&&Se(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Sm=t=>{const e=new Array(10),r=(n,i)=>{if(Jr(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[i]=n;const s=Ft(n)?[]:{};return rr(n,(a,o)=>{const u=r(a,i+1);!Kt(u)&&(s[o]=u)}),e[i]=void 0,s}}return n};return r(t,0)},Em=Ie("AsyncFunction"),Rm=t=>t&&(Jr(t)||Se(t))&&Se(t.then)&&Se(t.catch),E={isArray:Ft,isArrayBuffer:gf,isBuffer:Hy,isFormData:rm,isArrayBufferView:Gy,isString:Ky,isNumber:bf,isBoolean:Jy,isObject:Jr,isPlainObject:br,isUndefined:Kt,isDate:Xy,isFile:Yy,isBlob:Zy,isRegExp:ym,isFunction:Se,isStream:tm,isURLSearchParams:nm,isTypedArray:fm,isFileList:em,forEach:rr,merge:Ss,extend:sm,trim:im,stripBOM:am,inherits:om,toFlatObject:um,kindOf:Gr,kindOfTest:Ie,endsWith:cm,toArray:lm,forEachEntry:dm,matchAll:hm,isHTMLForm:pm,hasOwnProperty:Tu,hasOwnProp:Tu,reduceDescriptors:Sf,freezeMethods:mm,toObjectSet:gm,toCamelCase:vm,noop:bm,toFiniteNumber:wm,findKey:wf,global:Of,isContextDefined:_f,ALPHABET:Ef,generateString:Om,isSpecCompliantForm:_m,toJSONObject:Sm,isAsyncFn:Em,isThenable:Rm};function M(t,e,r,n,i){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),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}E.inherits(M,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:E.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Rf=M.prototype,Tf={};["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=>{Tf[t]={value:t}});Object.defineProperties(M,Tf);Object.defineProperty(Rf,"isAxiosError",{value:!0});M.from=(t,e,r,n,i,s)=>{const a=Object.create(Rf);return E.toFlatObject(t,a,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),M.call(a,t.message,e,r,n,i),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const Tm=null;function Es(t){return E.isPlainObject(t)||E.isArray(t)}function kf(t){return E.endsWith(t,"[]")?t.slice(0,-2):t}function xu(t,e,r){return t?t.concat(e).map(function(i,s){return i=kf(i),!r&&s?"["+i+"]":i}).join(r?".":""):e}function km(t){return E.isArray(t)&&!t.some(Es)}const xm=E.toFlatObject(E,{},null,function(e){return/^is[A-Z]/.test(e)});function Xr(t,e,r){if(!E.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=E.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!E.isUndefined(y[v])});const n=r.metaTokens,i=r.visitor||l,s=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(e);if(!E.isFunction(i))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(E.isDate(p))return p.toISOString();if(!u&&E.isBlob(p))throw new M("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(p)||E.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function l(p,v,y){let m=p;if(p&&!y&&typeof p=="object"){if(E.endsWith(v,"{}"))v=n?v:v.slice(0,-2),p=JSON.stringify(p);else if(E.isArray(p)&&km(p)||(E.isFileList(p)||E.endsWith(v,"[]"))&&(m=E.toArray(p)))return v=kf(v),m.forEach(function(b,_){!(E.isUndefined(b)||b===null)&&e.append(a===!0?xu([v],_,s):a===null?v:v+"[]",c(b))}),!1}return Es(p)?!0:(e.append(xu(y,v,s),c(p)),!1)}const f=[],d=Object.assign(xm,{defaultVisitor:l,convertValue:c,isVisitable:Es});function h(p,v){if(!E.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),E.forEach(p,function(m,w){(!(E.isUndefined(m)||m===null)&&i.call(e,m,E.isString(w)?w.trim():w,v,d))===!0&&h(m,v?v.concat(w):[w])}),f.pop()}}if(!E.isObject(t))throw new TypeError("data must be an object");return h(t),e}function Au(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function _a(t,e){this._pairs=[],t&&Xr(t,this,e)}const xf=_a.prototype;xf.append=function(e,r){this._pairs.push([e,r])};xf.toString=function(e){const r=e?function(n){return e.call(this,n,Au)}:Au;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Am(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Af(t,e,r){if(!e)return t;const n=r&&r.encode||Am,i=r&&r.serialize;let s;if(i?s=i(e,r):s=E.isURLSearchParams(e)?e.toString():new _a(e,r).toString(n),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Fu{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){E.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Ff={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fm=typeof URLSearchParams<"u"?URLSearchParams:_a,Pm=typeof FormData<"u"?FormData:null,Cm=typeof Blob<"u"?Blob:null,Dm={isBrowser:!0,classes:{URLSearchParams:Fm,FormData:Pm,Blob:Cm},protocols:["http","https","file","blob","url","data"]},Pf=typeof window<"u"&&typeof document<"u",Im=(t=>Pf&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),jm=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qm=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pf,hasStandardBrowserEnv:Im,hasStandardBrowserWebWorkerEnv:jm},Symbol.toStringTag,{value:"Module"})),Pe={...qm,...Dm};function Mm(t,e){return Xr(t,new Pe.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,s){return Pe.isNode&&E.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Lm(t){return E.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Nm(t){const e={},r=Object.keys(t);let n;const i=r.length;let s;for(n=0;n=r.length;return a=!a&&E.isArray(i)?i.length:a,u?(E.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!o):((!i[a]||!E.isObject(i[a]))&&(i[a]=[]),e(r,n,i[a],s)&&E.isArray(i[a])&&(i[a]=Nm(i[a])),!o)}if(E.isFormData(t)&&E.isFunction(t.entries)){const r={};return E.forEachEntry(t,(n,i)=>{e(Lm(n),i,r,0)}),r}return null}function Vm(t,e,r){if(E.isString(t))try{return(e||JSON.parse)(t),E.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const nr={transitional:Ff,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,s=E.isObject(e);if(s&&E.isHTMLForm(e)&&(e=new FormData(e)),E.isFormData(e))return i?JSON.stringify(Cf(e)):e;if(E.isArrayBuffer(e)||E.isBuffer(e)||E.isStream(e)||E.isFile(e)||E.isBlob(e))return e;if(E.isArrayBufferView(e))return e.buffer;if(E.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Mm(e,this.formSerializer).toString();if((o=E.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Xr(o?{"files[]":e}:e,u&&new u,this.formSerializer)}}return s||i?(r.setContentType("application/json",!1),Vm(e)):e}],transformResponse:[function(e){const r=this.transitional||nr.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(e&&E.isString(e)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?M.from(o,M.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:Pe.classes.FormData,Blob:Pe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],t=>{nr.headers[t]={}});const Um=E.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"]),Bm=t=>{const e={};let r,n,i;return t&&t.split(` `).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||e[r]&&Um[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Pu=Symbol("internals");function Lt(t){return t&&String(t).trim().toLowerCase()}function wr(t){return t===!1||t==null?t:E.isArray(t)?t.map(wr):String(t)}function $m(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Qm=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ai(t,e,r,n,i){if(E.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!E.isString(e)){if(E.isString(n))return e.indexOf(n)!==-1;if(E.isRegExp(n))return n.test(e)}}function zm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Wm(t,e){const r=E.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,s,a){return this[n].call(this,e,i,s,a)},configurable:!0})})}let Ee=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function s(o,u,c){const l=Lt(u);if(!l)throw new Error("header name must be a non-empty string");const f=E.findKey(i,l);(!f||i[f]===void 0||c===!0||c===void 0&&i[f]!==!1)&&(i[f||u]=wr(o))}const a=(o,u)=>E.forEach(o,(c,l)=>s(c,l,u));return E.isPlainObject(e)||e instanceof this.constructor?a(e,r):E.isString(e)&&(e=e.trim())&&!Qm(e)?a(Bm(e),r):e!=null&&s(r,e,n),this}get(e,r){if(e=Lt(e),e){const n=E.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return $m(i);if(E.isFunction(r))return r.call(this,i,n);if(E.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Lt(e),e){const n=E.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ai(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function s(a){if(a=Lt(a),a){const o=E.findKey(n,a);o&&(!r||ai(n,n[o],o,r))&&(delete n[o],i=!0)}}return E.isArray(e)?e.forEach(s):s(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const s=r[n];(!e||ai(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const r=this,n={};return E.forEach(this,(i,s)=>{const a=E.findKey(n,s);if(a){r[a]=wr(i),delete r[s];return}const o=e?zm(s):String(s).trim();o!==s&&delete r[s],r[o]=wr(i),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return E.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&E.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[Pu]=this[Pu]={accessors:{}}).accessors,i=this.prototype;function s(a){const o=Lt(a);n[o]||(Wm(i,a),n[o]=!0)}return E.isArray(e)?e.forEach(s):s(e),this}};Ee.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(Ee.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});E.freezeMethods(Ee);function oi(t,e){const r=this||nr,n=e||r,i=Ee.from(n.headers);let s=n.data;return E.forEach(t,function(o){s=o.call(r,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Df(t){return!!(t&&t.__CANCEL__)}function ir(t,e,r){M.call(this,t??"canceled",M.ERR_CANCELED,e,r),this.name="CanceledError"}E.inherits(ir,M,{__CANCEL__:!0});function Hm(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new M("Request failed with status code "+r.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Gm=Pe.hasStandardBrowserEnv?{write(t,e,r,n,i,s){const a=[t+"="+encodeURIComponent(e)];E.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),E.isString(n)&&a.push("path="+n),E.isString(i)&&a.push("domain="+i),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 Km(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Jm(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function If(t,e){return t&&!Km(e)?Jm(t,e):e}const Xm=Pe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function i(s){let a=s;return e&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=i(window.location.href),function(a){const o=E.isString(a)?i(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function Ym(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Zm(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),l=n[s];a||(a=c),r[i]=u,n[i]=c;let f=s,d=0;for(;f!==i;)d+=r[f++],f=f%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-a{const s=i.loaded,a=i.lengthComputable?i.total:void 0,o=s-r,u=n(o),c=s<=a;r=s;const l={loaded:s,total:a,progress:a?s/a:void 0,bytes:o,rate:u||void 0,estimated:u&&a&&c?(a-s)/u:void 0,event:i};l[e?"download":"upload"]=!0,t(l)}}const eg=typeof XMLHttpRequest<"u",tg=eg&&function(t){return new Promise(function(r,n){let i=t.data;const s=Ee.from(t.headers).normalize();let{responseType:a,withXSRFToken:o}=t,u;function c(){t.cancelToken&&t.cancelToken.unsubscribe(u),t.signal&&t.signal.removeEventListener("abort",u)}let l;if(E.isFormData(i)){if(Pe.hasStandardBrowserEnv||Pe.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((l=s.getContentType())!==!1){const[v,...y]=l?l.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([v||"multipart/form-data",...y].join("; "))}}let f=new XMLHttpRequest;if(t.auth){const v=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.set("Authorization","Basic "+btoa(v+":"+y))}const d=If(t.baseURL,t.url);f.open(t.method.toUpperCase(),Af(d,t.params,t.paramsSerializer),!0),f.timeout=t.timeout;function h(){if(!f)return;const v=Ee.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:v,config:t,request:f};Hm(function(b){r(b),c()},function(b){n(b),c()},m),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(n(new M("Request aborted",M.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new M("Network Error",M.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const m=t.transitional||Ff;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),n(new M(y,m.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,f)),f=null},Pe.hasStandardBrowserEnv&&(o&&E.isFunction(o)&&(o=o(t)),o||o!==!1&&Xm(d))){const v=t.xsrfHeaderName&&t.xsrfCookieName&&Gm.read(t.xsrfCookieName);v&&s.set(t.xsrfHeaderName,v)}i===void 0&&s.setContentType(null),"setRequestHeader"in f&&E.forEach(s.toJSON(),function(y,m){f.setRequestHeader(m,y)}),E.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),a&&a!=="json"&&(f.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&f.addEventListener("progress",Cu(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Cu(t.onUploadProgress)),(t.cancelToken||t.signal)&&(u=v=>{f&&(n(!v||v.type?new ir(null,t,f):v),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(u),t.signal&&(t.signal.aborted?u():t.signal.addEventListener("abort",u)));const p=Ym(d);if(p&&Pe.protocols.indexOf(p)===-1){n(new M("Unsupported protocol "+p+":",M.ERR_BAD_REQUEST,t));return}f.send(i||null)})},Rs={http:Tm,xhr:tg};E.forEach(Rs,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Du=t=>`- ${t}`,rg=t=>E.isFunction(t)||t===null||t===!1,jf={getAdapter:t=>{t=E.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let s=0;s`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since : `+s.map(Du).join(` `):" "+Du(s[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Rs};function ui(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ir(null,t)}function Iu(t){return ui(t),t.headers=Ee.from(t.headers),t.data=oi.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),jf.getAdapter(t.adapter||nr.adapter)(t).then(function(n){return ui(t),n.data=oi.call(t,t.transformResponse,n),n.headers=Ee.from(n.headers),n},function(n){return Df(n)||(ui(t),n&&n.response&&(n.response.data=oi.call(t,t.transformResponse,n.response),n.response.headers=Ee.from(n.response.headers))),Promise.reject(n)})}const ju=t=>t instanceof Ee?{...t}:t;function Tt(t,e){e=e||{};const r={};function n(c,l,f){return E.isPlainObject(c)&&E.isPlainObject(l)?E.merge.call({caseless:f},c,l):E.isPlainObject(l)?E.merge({},l):E.isArray(l)?l.slice():l}function i(c,l,f){if(E.isUndefined(l)){if(!E.isUndefined(c))return n(void 0,c,f)}else return n(c,l,f)}function s(c,l){if(!E.isUndefined(l))return n(void 0,l)}function a(c,l){if(E.isUndefined(l)){if(!E.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function o(c,l,f){if(f in e)return n(c,l);if(f in t)return n(void 0,c)}const u={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:(c,l)=>i(ju(c),ju(l),!0)};return E.forEach(Object.keys(Object.assign({},t,e)),function(l){const f=u[l]||i,d=f(t[l],e[l],l);E.isUndefined(d)&&f!==o||(r[l]=d)}),r}const qf="1.6.8",Sa={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Sa[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const qu={};Sa.transitional=function(e,r,n){function i(s,a){return"[Axios v"+qf+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return(s,a,o)=>{if(e===!1)throw new M(i(a," has been removed"+(r?" in "+r:"")),M.ERR_DEPRECATED);return r&&!qu[a]&&(qu[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,a,o):!0}};function ng(t,e,r){if(typeof t!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const s=n[i],a=e[s];if(a){const o=t[s],u=o===void 0||a(o,s,t);if(u!==!0)throw new M("option "+s+" must be "+u,M.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new M("Unknown option "+s,M.ERR_BAD_OPTION)}}const Ts={assertOptions:ng,validators:Sa},ze=Ts.validators;let ft=class{constructor(e){this.defaults=e,this.interceptors={request:new Fu,response:new Fu}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+s):n.stack=s}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=Tt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:s}=r;n!==void 0&&Ts.assertOptions(n,{silentJSONParsing:ze.transitional(ze.boolean),forcedJSONParsing:ze.transitional(ze.boolean),clarifyTimeoutError:ze.transitional(ze.boolean)},!1),i!=null&&(E.isFunction(i)?r.paramsSerializer={serialize:i}:Ts.assertOptions(i,{encode:ze.function,serialize:ze.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&E.merge(s.common,s[r.method]);s&&E.forEach(["delete","get","head","post","put","patch","common"],p=>{delete s[p]}),r.headers=Ee.concat(a,s);const o=[];let u=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(r)===!1||(u=u&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let l,f=0,d;if(!u){const p=[Iu.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,c),d=p.length,l=Promise.resolve(r);f{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(o=>{n.subscribe(o),s=o}).then(i);return a.cancel=function(){n.unsubscribe(s)},a},e(function(s,a,o){n.reason||(n.reason=new ir(s,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Mf(function(i){e=i}),cancel:e}}};function sg(t){return function(r){return t.apply(null,r)}}function ag(t){return E.isObject(t)&&t.isAxiosError===!0}const ks={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ks).forEach(([t,e])=>{ks[e]=t});function Lf(t){const e=new ft(t),r=mf(ft.prototype.request,e);return E.extend(r,ft.prototype,e,{allOwnKeys:!0}),E.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return Lf(Tt(t,i))},r}const D=Lf(nr);D.Axios=ft;D.CanceledError=ir;D.CancelToken=ig;D.isCancel=Df;D.VERSION=qf;D.toFormData=Xr;D.AxiosError=M;D.Cancel=D.CanceledError;D.all=function(e){return Promise.all(e)};D.spread=sg;D.isAxiosError=ag;D.mergeConfig=Tt;D.AxiosHeaders=Ee;D.formToJSON=t=>Cf(E.isHTMLForm(t)?new FormData(t):t);D.getAdapter=jf.getAdapter;D.HttpStatusCode=ks;D.default=D;const{Axios:d0,AxiosError:h0,CanceledError:p0,isCancel:v0,CancelToken:y0,VERSION:m0,all:g0,Cancel:b0,isAxiosError:w0,spread:O0,toFormData:_0,AxiosHeaders:S0,HttpStatusCode:E0,formToJSON:R0,getAdapter:T0,mergeConfig:k0}=D,U="https://playground.projects.oryapis.com".replace(/\/+$/,"");class og{constructor(e,r=U,n=D){var i;this.basePath=r,this.axios=n,e&&(this.configuration=e,this.basePath=(i=e.basePath)!==null&&i!==void 0?i:r)}}class ug extends Error{constructor(e,r){super(r),this.field=e,this.name="RequiredError"}}const $={},Q="https://example.com",se=function(t,e,r){if(r==null)throw new ug(e,`Required parameter ${e} was null or undefined when calling ${t}.`)};function xs(t,e,r=""){e!=null&&(typeof e=="object"?Array.isArray(e)?e.forEach(n=>xs(t,n,r)):Object.keys(e).forEach(n=>xs(t,e[n],`${r}${r!==""?".":""}${n}`)):t.has(r)?t.append(r,e):t.set(r,e))}const z=function(t,...e){const r=new URLSearchParams(t.search);xs(r,e),t.search=r.toString()},ht=function(t,e,r){const n=typeof t!="string";return(n&&r&&r.isJsonMime?r.isJsonMime(e.headers["Content-Type"]):n)?JSON.stringify(t!==void 0?t:{}):t||""},W=function(t){return t.pathname+t.search+t.hash},H=function(t,e,r,n){return(i=e,s=r)=>{var a;const o=Object.assign(Object.assign({},t.options),{url:(i.defaults.baseURL?"":(a=n==null?void 0:n.basePath)!==null&&a!==void 0?a:s)+t.url});return i.request(o)}};var F=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function o(l){try{c(n.next(l))}catch(f){a(f)}}function u(l){try{c(n.throw(l))}catch(f){a(f)}}function c(l){l.done?s(l.value):i(l.value).then(o,u)}c((n=n.apply(t,e||[])).next())})};const cg=function(t){return{createBrowserLoginFlow:(e,r,n,i,s,a,o,u={})=>F(this,void 0,void 0,function*(){const c="/self-service/login/browser",l=new URL(c,Q);let f;t&&(f=t.baseOptions);const d=Object.assign(Object.assign({method:"GET"},f),u),h={},p={};e!==void 0&&(p.refresh=e),r!==void 0&&(p.aal=r),n!==void 0&&(p.return_to=n),s!==void 0&&(p.login_challenge=s),a!==void 0&&(p.organization=a),o!==void 0&&(p.via=o),i!=null&&(h.Cookie=String(i)),z(l,p);let v=f&&f.headers?f.headers:{};return d.headers=Object.assign(Object.assign(Object.assign({},h),v),u.headers),{url:W(l),options:d}}),createBrowserLogoutFlow:(e,r,n={})=>F(this,void 0,void 0,function*(){const i="/self-service/logout/browser",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};r!==void 0&&(c.return_to=r),e!=null&&(u.cookie=String(e)),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),createBrowserRecoveryFlow:(e,r={})=>F(this,void 0,void 0,function*(){const n="/self-service/recovery/browser",i=new URL(n,Q);let s;t&&(s=t.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),r),o={},u={};e!==void 0&&(u.return_to=e),z(i,u);let c=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),c),r.headers),{url:W(i),options:a}}),createBrowserRegistrationFlow:(e,r,n,i,s={})=>F(this,void 0,void 0,function*(){const a="/self-service/registration/browser",o=new URL(a,Q);let u;t&&(u=t.baseOptions);const c=Object.assign(Object.assign({method:"GET"},u),s),l={},f={};e!==void 0&&(f.return_to=e),r!==void 0&&(f.login_challenge=r),n!==void 0&&(f.after_verification_return_to=n),i!==void 0&&(f.organization=i),z(o,f);let d=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},l),d),s.headers),{url:W(o),options:c}}),createBrowserSettingsFlow:(e,r,n={})=>F(this,void 0,void 0,function*(){const i="/self-service/settings/browser",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};e!==void 0&&(c.return_to=e),r!=null&&(u.Cookie=String(r)),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),createBrowserVerificationFlow:(e,r={})=>F(this,void 0,void 0,function*(){const n="/self-service/verification/browser",i=new URL(n,Q);let s;t&&(s=t.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),r),o={},u={};e!==void 0&&(u.return_to=e),z(i,u);let c=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),c),r.headers),{url:W(i),options:a}}),createNativeLoginFlow:(e,r,n,i,s,a,o={})=>F(this,void 0,void 0,function*(){const u="/self-service/login/api",c=new URL(u,Q);let l;t&&(l=t.baseOptions);const f=Object.assign(Object.assign({method:"GET"},l),o),d={},h={};e!==void 0&&(h.refresh=e),r!==void 0&&(h.aal=r),i!==void 0&&(h.return_session_token_exchange_code=i),s!==void 0&&(h.return_to=s),a!==void 0&&(h.via=a),n!=null&&(d["X-Session-Token"]=String(n)),z(c,h);let p=l&&l.headers?l.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},d),p),o.headers),{url:W(c),options:f}}),createNativeRecoveryFlow:(e={})=>F(this,void 0,void 0,function*(){const r="/self-service/recovery/api",n=new URL(r,Q);let i;t&&(i=t.baseOptions);const s=Object.assign(Object.assign({method:"GET"},i),e),a={};z(n,{});let u=i&&i.headers?i.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),u),e.headers),{url:W(n),options:s}}),createNativeRegistrationFlow:(e,r,n={})=>F(this,void 0,void 0,function*(){const i="/self-service/registration/api",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};e!==void 0&&(c.return_session_token_exchange_code=e),r!==void 0&&(c.return_to=r),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),createNativeSettingsFlow:(e,r={})=>F(this,void 0,void 0,function*(){const n="/self-service/settings/api",i=new URL(n,Q);let s;t&&(s=t.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),r),o={},u={};e!=null&&(o["X-Session-Token"]=String(e)),z(i,u);let c=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),c),r.headers),{url:W(i),options:a}}),createNativeVerificationFlow:(e={})=>F(this,void 0,void 0,function*(){const r="/self-service/verification/api",n=new URL(r,Q);let i;t&&(i=t.baseOptions);const s=Object.assign(Object.assign({method:"GET"},i),e),a={};z(n,{});let u=i&&i.headers?i.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),u),e.headers),{url:W(n),options:s}}),disableMyOtherSessions:(e,r,n={})=>F(this,void 0,void 0,function*(){const i="/sessions",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},a),n),u={},c={};e!=null&&(u["X-Session-Token"]=String(e)),r!=null&&(u.Cookie=String(r)),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),disableMySession:(e,r,n,i={})=>F(this,void 0,void 0,function*(){se("disableMySession","id",e);const s="/sessions/{id}".replace("{id}",encodeURIComponent(String(e))),a=new URL(s,Q);let o;t&&(o=t.baseOptions);const u=Object.assign(Object.assign({method:"DELETE"},o),i),c={},l={};r!=null&&(c["X-Session-Token"]=String(r)),n!=null&&(c.Cookie=String(n)),z(a,l);let f=o&&o.headers?o.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),f),i.headers),{url:W(a),options:u}}),exchangeSessionToken:(e,r,n={})=>F(this,void 0,void 0,function*(){se("exchangeSessionToken","initCode",e),se("exchangeSessionToken","returnToCode",r);const i="/sessions/token-exchange",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};e!==void 0&&(c.init_code=e),r!==void 0&&(c.return_to_code=r),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),getFlowError:(e,r={})=>F(this,void 0,void 0,function*(){se("getFlowError","id",e);const n="/self-service/errors",i=new URL(n,Q);let s;t&&(s=t.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),r),o={},u={};e!==void 0&&(u.id=e),z(i,u);let c=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),c),r.headers),{url:W(i),options:a}}),getLoginFlow:(e,r,n={})=>F(this,void 0,void 0,function*(){se("getLoginFlow","id",e);const i="/self-service/login/flows",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};e!==void 0&&(c.id=e),r!=null&&(u.Cookie=String(r)),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),getRecoveryFlow:(e,r,n={})=>F(this,void 0,void 0,function*(){se("getRecoveryFlow","id",e);const i="/self-service/recovery/flows",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};e!==void 0&&(c.id=e),r!=null&&(u.Cookie=String(r)),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),getRegistrationFlow:(e,r,n={})=>F(this,void 0,void 0,function*(){se("getRegistrationFlow","id",e);const i="/self-service/registration/flows",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};e!==void 0&&(c.id=e),r!=null&&(u.Cookie=String(r)),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),getSettingsFlow:(e,r,n,i={})=>F(this,void 0,void 0,function*(){se("getSettingsFlow","id",e);const s="/self-service/settings/flows",a=new URL(s,Q);let o;t&&(o=t.baseOptions);const u=Object.assign(Object.assign({method:"GET"},o),i),c={},l={};e!==void 0&&(l.id=e),r!=null&&(c["X-Session-Token"]=String(r)),n!=null&&(c.Cookie=String(n)),z(a,l);let f=o&&o.headers?o.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),f),i.headers),{url:W(a),options:u}}),getVerificationFlow:(e,r,n={})=>F(this,void 0,void 0,function*(){se("getVerificationFlow","id",e);const i="/self-service/verification/flows",s=new URL(i,Q);let a;t&&(a=t.baseOptions);const o=Object.assign(Object.assign({method:"GET"},a),n),u={},c={};e!==void 0&&(c.id=e),r!=null&&(u.cookie=String(r)),z(s,c);let l=a&&a.headers?a.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},u),l),n.headers),{url:W(s),options:o}}),getWebAuthnJavaScript:(e={})=>F(this,void 0,void 0,function*(){const r="/.well-known/ory/webauthn.js",n=new URL(r,Q);let i;t&&(i=t.baseOptions);const s=Object.assign(Object.assign({method:"GET"},i),e),a={};z(n,{});let u=i&&i.headers?i.headers:{};return s.headers=Object.assign(Object.assign(Object.assign({},a),u),e.headers),{url:W(n),options:s}}),listMySessions:(e,r,n,i,s,a,o={})=>F(this,void 0,void 0,function*(){const u="/sessions",c=new URL(u,Q);let l;t&&(l=t.baseOptions);const f=Object.assign(Object.assign({method:"GET"},l),o),d={},h={};e!==void 0&&(h.per_page=e),r!==void 0&&(h.page=r),n!==void 0&&(h.page_size=n),i!==void 0&&(h.page_token=i),s!=null&&(d["X-Session-Token"]=String(s)),a!=null&&(d.Cookie=String(a)),z(c,h);let p=l&&l.headers?l.headers:{};return f.headers=Object.assign(Object.assign(Object.assign({},d),p),o.headers),{url:W(c),options:f}}),performNativeLogout:(e,r={})=>F(this,void 0,void 0,function*(){se("performNativeLogout","performNativeLogoutBody",e);const n="/self-service/logout/api",i=new URL(n,Q);let s;t&&(s=t.baseOptions);const a=Object.assign(Object.assign({method:"DELETE"},s),r),o={},u={};o["Content-Type"]="application/json",z(i,u);let c=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},o),c),r.headers),a.data=ht(e,a,t),{url:W(i),options:a}}),toSession:(e,r,n,i={})=>F(this,void 0,void 0,function*(){const s="/sessions/whoami",a=new URL(s,Q);let o;t&&(o=t.baseOptions);const u=Object.assign(Object.assign({method:"GET"},o),i),c={},l={};n!==void 0&&(l.tokenize_as=n),e!=null&&(c["X-Session-Token"]=String(e)),r!=null&&(c.Cookie=String(r)),z(a,l);let f=o&&o.headers?o.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),f),i.headers),{url:W(a),options:u}}),updateLoginFlow:(e,r,n,i,s={})=>F(this,void 0,void 0,function*(){se("updateLoginFlow","flow",e),se("updateLoginFlow","updateLoginFlowBody",r);const a="/self-service/login",o=new URL(a,Q);let u;t&&(u=t.baseOptions);const c=Object.assign(Object.assign({method:"POST"},u),s),l={},f={};e!==void 0&&(f.flow=e),n!=null&&(l["X-Session-Token"]=String(n)),i!=null&&(l.Cookie=String(i)),l["Content-Type"]="application/json",z(o,f);let d=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},l),d),s.headers),c.data=ht(r,c,t),{url:W(o),options:c}}),updateLogoutFlow:(e,r,n,i={})=>F(this,void 0,void 0,function*(){const s="/self-service/logout",a=new URL(s,Q);let o;t&&(o=t.baseOptions);const u=Object.assign(Object.assign({method:"GET"},o),i),c={},l={};e!==void 0&&(l.token=e),r!==void 0&&(l.return_to=r),n!=null&&(c.Cookie=String(n)),z(a,l);let f=o&&o.headers?o.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),f),i.headers),{url:W(a),options:u}}),updateRecoveryFlow:(e,r,n,i,s={})=>F(this,void 0,void 0,function*(){se("updateRecoveryFlow","flow",e),se("updateRecoveryFlow","updateRecoveryFlowBody",r);const a="/self-service/recovery",o=new URL(a,Q);let u;t&&(u=t.baseOptions);const c=Object.assign(Object.assign({method:"POST"},u),s),l={},f={};e!==void 0&&(f.flow=e),n!==void 0&&(f.token=n),i!=null&&(l.Cookie=String(i)),l["Content-Type"]="application/json",z(o,f);let d=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},l),d),s.headers),c.data=ht(r,c,t),{url:W(o),options:c}}),updateRegistrationFlow:(e,r,n,i={})=>F(this,void 0,void 0,function*(){se("updateRegistrationFlow","flow",e),se("updateRegistrationFlow","updateRegistrationFlowBody",r);const s="/self-service/registration",a=new URL(s,Q);let o;t&&(o=t.baseOptions);const u=Object.assign(Object.assign({method:"POST"},o),i),c={},l={};e!==void 0&&(l.flow=e),n!=null&&(c.Cookie=String(n)),c["Content-Type"]="application/json",z(a,l);let f=o&&o.headers?o.headers:{};return u.headers=Object.assign(Object.assign(Object.assign({},c),f),i.headers),u.data=ht(r,u,t),{url:W(a),options:u}}),updateSettingsFlow:(e,r,n,i,s={})=>F(this,void 0,void 0,function*(){se("updateSettingsFlow","flow",e),se("updateSettingsFlow","updateSettingsFlowBody",r);const a="/self-service/settings",o=new URL(a,Q);let u;t&&(u=t.baseOptions);const c=Object.assign(Object.assign({method:"POST"},u),s),l={},f={};e!==void 0&&(f.flow=e),n!=null&&(l["X-Session-Token"]=String(n)),i!=null&&(l.Cookie=String(i)),l["Content-Type"]="application/json",z(o,f);let d=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},l),d),s.headers),c.data=ht(r,c,t),{url:W(o),options:c}}),updateVerificationFlow:(e,r,n,i,s={})=>F(this,void 0,void 0,function*(){se("updateVerificationFlow","flow",e),se("updateVerificationFlow","updateVerificationFlowBody",r);const a="/self-service/verification",o=new URL(a,Q);let u;t&&(u=t.baseOptions);const c=Object.assign(Object.assign({method:"POST"},u),s),l={},f={};e!==void 0&&(f.flow=e),n!==void 0&&(f.token=n),i!=null&&(l.Cookie=String(i)),l["Content-Type"]="application/json",z(o,f);let d=u&&u.headers?u.headers:{};return c.headers=Object.assign(Object.assign(Object.assign({},l),d),s.headers),c.data=ht(r,c,t),{url:W(o),options:c}})}},G=function(t){const e=cg(t);return{createBrowserLoginFlow(r,n,i,s,a,o,u,c){var l,f,d;return F(this,void 0,void 0,function*(){const h=yield e.createBrowserLoginFlow(r,n,i,s,a,o,u,c),p=(l=t==null?void 0:t.serverIndex)!==null&&l!==void 0?l:0,v=(d=(f=$["FrontendApi.createBrowserLoginFlow"])===null||f===void 0?void 0:f[p])===null||d===void 0?void 0:d.url;return(y,m)=>H(h,D,U,t)(y,v||m)})},createBrowserLogoutFlow(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.createBrowserLogoutFlow(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.createBrowserLogoutFlow"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},createBrowserRecoveryFlow(r,n){var i,s,a;return F(this,void 0,void 0,function*(){const o=yield e.createBrowserRecoveryFlow(r,n),u=(i=t==null?void 0:t.serverIndex)!==null&&i!==void 0?i:0,c=(a=(s=$["FrontendApi.createBrowserRecoveryFlow"])===null||s===void 0?void 0:s[u])===null||a===void 0?void 0:a.url;return(l,f)=>H(o,D,U,t)(l,c||f)})},createBrowserRegistrationFlow(r,n,i,s,a){var o,u,c;return F(this,void 0,void 0,function*(){const l=yield e.createBrowserRegistrationFlow(r,n,i,s,a),f=(o=t==null?void 0:t.serverIndex)!==null&&o!==void 0?o:0,d=(c=(u=$["FrontendApi.createBrowserRegistrationFlow"])===null||u===void 0?void 0:u[f])===null||c===void 0?void 0:c.url;return(h,p)=>H(l,D,U,t)(h,d||p)})},createBrowserSettingsFlow(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.createBrowserSettingsFlow(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.createBrowserSettingsFlow"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},createBrowserVerificationFlow(r,n){var i,s,a;return F(this,void 0,void 0,function*(){const o=yield e.createBrowserVerificationFlow(r,n),u=(i=t==null?void 0:t.serverIndex)!==null&&i!==void 0?i:0,c=(a=(s=$["FrontendApi.createBrowserVerificationFlow"])===null||s===void 0?void 0:s[u])===null||a===void 0?void 0:a.url;return(l,f)=>H(o,D,U,t)(l,c||f)})},createNativeLoginFlow(r,n,i,s,a,o,u){var c,l,f;return F(this,void 0,void 0,function*(){const d=yield e.createNativeLoginFlow(r,n,i,s,a,o,u),h=(c=t==null?void 0:t.serverIndex)!==null&&c!==void 0?c:0,p=(f=(l=$["FrontendApi.createNativeLoginFlow"])===null||l===void 0?void 0:l[h])===null||f===void 0?void 0:f.url;return(v,y)=>H(d,D,U,t)(v,p||y)})},createNativeRecoveryFlow(r){var n,i,s;return F(this,void 0,void 0,function*(){const a=yield e.createNativeRecoveryFlow(r),o=(n=t==null?void 0:t.serverIndex)!==null&&n!==void 0?n:0,u=(s=(i=$["FrontendApi.createNativeRecoveryFlow"])===null||i===void 0?void 0:i[o])===null||s===void 0?void 0:s.url;return(c,l)=>H(a,D,U,t)(c,u||l)})},createNativeRegistrationFlow(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.createNativeRegistrationFlow(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.createNativeRegistrationFlow"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},createNativeSettingsFlow(r,n){var i,s,a;return F(this,void 0,void 0,function*(){const o=yield e.createNativeSettingsFlow(r,n),u=(i=t==null?void 0:t.serverIndex)!==null&&i!==void 0?i:0,c=(a=(s=$["FrontendApi.createNativeSettingsFlow"])===null||s===void 0?void 0:s[u])===null||a===void 0?void 0:a.url;return(l,f)=>H(o,D,U,t)(l,c||f)})},createNativeVerificationFlow(r){var n,i,s;return F(this,void 0,void 0,function*(){const a=yield e.createNativeVerificationFlow(r),o=(n=t==null?void 0:t.serverIndex)!==null&&n!==void 0?n:0,u=(s=(i=$["FrontendApi.createNativeVerificationFlow"])===null||i===void 0?void 0:i[o])===null||s===void 0?void 0:s.url;return(c,l)=>H(a,D,U,t)(c,u||l)})},disableMyOtherSessions(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.disableMyOtherSessions(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.disableMyOtherSessions"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},disableMySession(r,n,i,s){var a,o,u;return F(this,void 0,void 0,function*(){const c=yield e.disableMySession(r,n,i,s),l=(a=t==null?void 0:t.serverIndex)!==null&&a!==void 0?a:0,f=(u=(o=$["FrontendApi.disableMySession"])===null||o===void 0?void 0:o[l])===null||u===void 0?void 0:u.url;return(d,h)=>H(c,D,U,t)(d,f||h)})},exchangeSessionToken(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.exchangeSessionToken(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.exchangeSessionToken"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},getFlowError(r,n){var i,s,a;return F(this,void 0,void 0,function*(){const o=yield e.getFlowError(r,n),u=(i=t==null?void 0:t.serverIndex)!==null&&i!==void 0?i:0,c=(a=(s=$["FrontendApi.getFlowError"])===null||s===void 0?void 0:s[u])===null||a===void 0?void 0:a.url;return(l,f)=>H(o,D,U,t)(l,c||f)})},getLoginFlow(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.getLoginFlow(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.getLoginFlow"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},getRecoveryFlow(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.getRecoveryFlow(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.getRecoveryFlow"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},getRegistrationFlow(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.getRegistrationFlow(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.getRegistrationFlow"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},getSettingsFlow(r,n,i,s){var a,o,u;return F(this,void 0,void 0,function*(){const c=yield e.getSettingsFlow(r,n,i,s),l=(a=t==null?void 0:t.serverIndex)!==null&&a!==void 0?a:0,f=(u=(o=$["FrontendApi.getSettingsFlow"])===null||o===void 0?void 0:o[l])===null||u===void 0?void 0:u.url;return(d,h)=>H(c,D,U,t)(d,f||h)})},getVerificationFlow(r,n,i){var s,a,o;return F(this,void 0,void 0,function*(){const u=yield e.getVerificationFlow(r,n,i),c=(s=t==null?void 0:t.serverIndex)!==null&&s!==void 0?s:0,l=(o=(a=$["FrontendApi.getVerificationFlow"])===null||a===void 0?void 0:a[c])===null||o===void 0?void 0:o.url;return(f,d)=>H(u,D,U,t)(f,l||d)})},getWebAuthnJavaScript(r){var n,i,s;return F(this,void 0,void 0,function*(){const a=yield e.getWebAuthnJavaScript(r),o=(n=t==null?void 0:t.serverIndex)!==null&&n!==void 0?n:0,u=(s=(i=$["FrontendApi.getWebAuthnJavaScript"])===null||i===void 0?void 0:i[o])===null||s===void 0?void 0:s.url;return(c,l)=>H(a,D,U,t)(c,u||l)})},listMySessions(r,n,i,s,a,o,u){var c,l,f;return F(this,void 0,void 0,function*(){const d=yield e.listMySessions(r,n,i,s,a,o,u),h=(c=t==null?void 0:t.serverIndex)!==null&&c!==void 0?c:0,p=(f=(l=$["FrontendApi.listMySessions"])===null||l===void 0?void 0:l[h])===null||f===void 0?void 0:f.url;return(v,y)=>H(d,D,U,t)(v,p||y)})},performNativeLogout(r,n){var i,s,a;return F(this,void 0,void 0,function*(){const o=yield e.performNativeLogout(r,n),u=(i=t==null?void 0:t.serverIndex)!==null&&i!==void 0?i:0,c=(a=(s=$["FrontendApi.performNativeLogout"])===null||s===void 0?void 0:s[u])===null||a===void 0?void 0:a.url;return(l,f)=>H(o,D,U,t)(l,c||f)})},toSession(r,n,i,s){var a,o,u;return F(this,void 0,void 0,function*(){const c=yield e.toSession(r,n,i,s),l=(a=t==null?void 0:t.serverIndex)!==null&&a!==void 0?a:0,f=(u=(o=$["FrontendApi.toSession"])===null||o===void 0?void 0:o[l])===null||u===void 0?void 0:u.url;return(d,h)=>H(c,D,U,t)(d,f||h)})},updateLoginFlow(r,n,i,s,a){var o,u,c;return F(this,void 0,void 0,function*(){const l=yield e.updateLoginFlow(r,n,i,s,a),f=(o=t==null?void 0:t.serverIndex)!==null&&o!==void 0?o:0,d=(c=(u=$["FrontendApi.updateLoginFlow"])===null||u===void 0?void 0:u[f])===null||c===void 0?void 0:c.url;return(h,p)=>H(l,D,U,t)(h,d||p)})},updateLogoutFlow(r,n,i,s){var a,o,u;return F(this,void 0,void 0,function*(){const c=yield e.updateLogoutFlow(r,n,i,s),l=(a=t==null?void 0:t.serverIndex)!==null&&a!==void 0?a:0,f=(u=(o=$["FrontendApi.updateLogoutFlow"])===null||o===void 0?void 0:o[l])===null||u===void 0?void 0:u.url;return(d,h)=>H(c,D,U,t)(d,f||h)})},updateRecoveryFlow(r,n,i,s,a){var o,u,c;return F(this,void 0,void 0,function*(){const l=yield e.updateRecoveryFlow(r,n,i,s,a),f=(o=t==null?void 0:t.serverIndex)!==null&&o!==void 0?o:0,d=(c=(u=$["FrontendApi.updateRecoveryFlow"])===null||u===void 0?void 0:u[f])===null||c===void 0?void 0:c.url;return(h,p)=>H(l,D,U,t)(h,d||p)})},updateRegistrationFlow(r,n,i,s){var a,o,u;return F(this,void 0,void 0,function*(){const c=yield e.updateRegistrationFlow(r,n,i,s),l=(a=t==null?void 0:t.serverIndex)!==null&&a!==void 0?a:0,f=(u=(o=$["FrontendApi.updateRegistrationFlow"])===null||o===void 0?void 0:o[l])===null||u===void 0?void 0:u.url;return(d,h)=>H(c,D,U,t)(d,f||h)})},updateSettingsFlow(r,n,i,s,a){var o,u,c;return F(this,void 0,void 0,function*(){const l=yield e.updateSettingsFlow(r,n,i,s,a),f=(o=t==null?void 0:t.serverIndex)!==null&&o!==void 0?o:0,d=(c=(u=$["FrontendApi.updateSettingsFlow"])===null||u===void 0?void 0:u[f])===null||c===void 0?void 0:c.url;return(h,p)=>H(l,D,U,t)(h,d||p)})},updateVerificationFlow(r,n,i,s,a){var o,u,c;return F(this,void 0,void 0,function*(){const l=yield e.updateVerificationFlow(r,n,i,s,a),f=(o=t==null?void 0:t.serverIndex)!==null&&o!==void 0?o:0,d=(c=(u=$["FrontendApi.updateVerificationFlow"])===null||u===void 0?void 0:u[f])===null||c===void 0?void 0:c.url;return(h,p)=>H(l,D,U,t)(h,d||p)})}}};class lg extends og{createBrowserLoginFlow(e={},r){return G(this.configuration).createBrowserLoginFlow(e.refresh,e.aal,e.returnTo,e.cookie,e.loginChallenge,e.organization,e.via,r).then(n=>n(this.axios,this.basePath))}createBrowserLogoutFlow(e={},r){return G(this.configuration).createBrowserLogoutFlow(e.cookie,e.returnTo,r).then(n=>n(this.axios,this.basePath))}createBrowserRecoveryFlow(e={},r){return G(this.configuration).createBrowserRecoveryFlow(e.returnTo,r).then(n=>n(this.axios,this.basePath))}createBrowserRegistrationFlow(e={},r){return G(this.configuration).createBrowserRegistrationFlow(e.returnTo,e.loginChallenge,e.afterVerificationReturnTo,e.organization,r).then(n=>n(this.axios,this.basePath))}createBrowserSettingsFlow(e={},r){return G(this.configuration).createBrowserSettingsFlow(e.returnTo,e.cookie,r).then(n=>n(this.axios,this.basePath))}createBrowserVerificationFlow(e={},r){return G(this.configuration).createBrowserVerificationFlow(e.returnTo,r).then(n=>n(this.axios,this.basePath))}createNativeLoginFlow(e={},r){return G(this.configuration).createNativeLoginFlow(e.refresh,e.aal,e.xSessionToken,e.returnSessionTokenExchangeCode,e.returnTo,e.via,r).then(n=>n(this.axios,this.basePath))}createNativeRecoveryFlow(e){return G(this.configuration).createNativeRecoveryFlow(e).then(r=>r(this.axios,this.basePath))}createNativeRegistrationFlow(e={},r){return G(this.configuration).createNativeRegistrationFlow(e.returnSessionTokenExchangeCode,e.returnTo,r).then(n=>n(this.axios,this.basePath))}createNativeSettingsFlow(e={},r){return G(this.configuration).createNativeSettingsFlow(e.xSessionToken,r).then(n=>n(this.axios,this.basePath))}createNativeVerificationFlow(e){return G(this.configuration).createNativeVerificationFlow(e).then(r=>r(this.axios,this.basePath))}disableMyOtherSessions(e={},r){return G(this.configuration).disableMyOtherSessions(e.xSessionToken,e.cookie,r).then(n=>n(this.axios,this.basePath))}disableMySession(e,r){return G(this.configuration).disableMySession(e.id,e.xSessionToken,e.cookie,r).then(n=>n(this.axios,this.basePath))}exchangeSessionToken(e,r){return G(this.configuration).exchangeSessionToken(e.initCode,e.returnToCode,r).then(n=>n(this.axios,this.basePath))}getFlowError(e,r){return G(this.configuration).getFlowError(e.id,r).then(n=>n(this.axios,this.basePath))}getLoginFlow(e,r){return G(this.configuration).getLoginFlow(e.id,e.cookie,r).then(n=>n(this.axios,this.basePath))}getRecoveryFlow(e,r){return G(this.configuration).getRecoveryFlow(e.id,e.cookie,r).then(n=>n(this.axios,this.basePath))}getRegistrationFlow(e,r){return G(this.configuration).getRegistrationFlow(e.id,e.cookie,r).then(n=>n(this.axios,this.basePath))}getSettingsFlow(e,r){return G(this.configuration).getSettingsFlow(e.id,e.xSessionToken,e.cookie,r).then(n=>n(this.axios,this.basePath))}getVerificationFlow(e,r){return G(this.configuration).getVerificationFlow(e.id,e.cookie,r).then(n=>n(this.axios,this.basePath))}getWebAuthnJavaScript(e){return G(this.configuration).getWebAuthnJavaScript(e).then(r=>r(this.axios,this.basePath))}listMySessions(e={},r){return G(this.configuration).listMySessions(e.perPage,e.page,e.pageSize,e.pageToken,e.xSessionToken,e.cookie,r).then(n=>n(this.axios,this.basePath))}performNativeLogout(e,r){return G(this.configuration).performNativeLogout(e.performNativeLogoutBody,r).then(n=>n(this.axios,this.basePath))}toSession(e={},r){return G(this.configuration).toSession(e.xSessionToken,e.cookie,e.tokenizeAs,r).then(n=>n(this.axios,this.basePath))}updateLoginFlow(e,r){return G(this.configuration).updateLoginFlow(e.flow,e.updateLoginFlowBody,e.xSessionToken,e.cookie,r).then(n=>n(this.axios,this.basePath))}updateLogoutFlow(e={},r){return G(this.configuration).updateLogoutFlow(e.token,e.returnTo,e.cookie,r).then(n=>n(this.axios,this.basePath))}updateRecoveryFlow(e,r){return G(this.configuration).updateRecoveryFlow(e.flow,e.updateRecoveryFlowBody,e.token,e.cookie,r).then(n=>n(this.axios,this.basePath))}updateRegistrationFlow(e,r){return G(this.configuration).updateRegistrationFlow(e.flow,e.updateRegistrationFlowBody,e.cookie,r).then(n=>n(this.axios,this.basePath))}updateSettingsFlow(e,r){return G(this.configuration).updateSettingsFlow(e.flow,e.updateSettingsFlowBody,e.xSessionToken,e.cookie,r).then(n=>n(this.axios,this.basePath))}updateVerificationFlow(e,r){return G(this.configuration).updateVerificationFlow(e.flow,e.updateVerificationFlowBody,e.token,e.cookie,r).then(n=>n(this.axios,this.basePath))}}class fg{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return e!==null&&(r.test(e)||e.toLowerCase()==="application/json-patch+json")}}const me=Hr.create({baseURL:af,withCredentials:!0}),Ea=Hr.create({withCredentials:!0}),Ra=new lg(new fg({basePath:of,baseOptions:{withCredentials:!0}}));let As;function dg(t){As=t}const Nf=3e3;me.interceptors.response.use(t=>t,t=>{const e=Vc(t.response,"data.error_codes[0]");return e&&e.includes("PASSWORD_EXPIRED")&&As&&As.passwordExpired(t.response.data),Promise.reject(t.response)});async function hg(){return Ra.toSession()}async function pg(t=null){return(await Ra.createBrowserLoginFlow({refresh:!0,returnTo:t||window.location.href})).data}async function vg(){return Ea.get(`${of}/sso`)}async function yg(t,e){return Ea.get(t,{headers:{"X-Retry-Count":e,"X-Request-TabId":window.currentTabIdentifier}})}async function mg(t,e){return Ea.post(t,new URLSearchParams(e),{validateStatus:()=>!0})}async function gg(t){const e=_r(),r=await me.post("auth/strong/session",t);return r.data.data.refresh_token&&yf(r.data.data.refresh_token,e.is_embedded_in_iframe),r}function bg(t=null,e){if(!e)throw new Error("Refresh token is not set, we cannot get a strong token");const r={};return r[tt]=`Bearer ${e}`,t&&(r["X-Previous-Strong-Token"]=`Bearer ${t}`),me.get("auth/strong/token",{timeout:Nf,headers:r})}function wg(){return me.get("auth/strong/recorder",{timeout:Nf})}async function Og(){const t=await Ra.createBrowserLogoutFlow();return me.get(t.data.logout_url,{withCredentials:!0})}function _g(t=""){return t===""&&(t=$e().token().encoded()),me.get("auth/strong/sign_out",{headers:{[tt]:`Bearer ${t}`}})}function Sg(t){return me.post("auth/strong/registration",t)}function Eg(t){return me.post("auth/strong/confirmations",t)}function Rg(t){return me.post("auth/strong/confirmations/resend",t)}function Tg(t,e=""){return me.put("auth/strong/password/",t,{headers:{[tt]:e}})}function kg(t,e=""){return me.post("auth/weak/registration",Uy({data:t}),{headers:{[tt]:e}})}function xg(t){return me.post("auth/weak/session",t)}function Ag(t){const e=t.participant?"auth/weak/password":"auth/strong/password";return me.post(e,t)}function Fg(t){return me.post("auth/strong/saml/signin",t)}function Pg(t){return me.post("auth/strong/saml/signup",t)}const ue={resetPassword:Ag,samlSignin:Fg,samlSignup:Pg,signout:_g,strongSignin:gg,strongSignup:Sg,accountConfirm:Eg,accountConfirmResend:Rg,strongToken:bg,recorderToken:wg,updateStrongPassword:Tg,weakSignin:xg,weakSignup:kg,createBrowserLoginFlow:pg,initZeusMonolithAuthentication:vg,signInUsingAuthService:mg,signoutUsingAuthService:Og,fetchSessionv2:hg,redirectToZeusOidc:yg};var ci,Mu;function Cg(){if(Mu)return ci;Mu=1;var t=xd(),e=[Ad(),Fd(),Pd(),Cd()],r=[];return ci=t.createStore(e,r),ci}var Dg=Cg();const je=De(Dg);var li,Lu;function Ig(){if(Lu)return li;Lu=1;var t=Dd(),e=t.bind,r=t.each,n=t.create,i=t.slice;li=s;function s(){var u=a();return{watch:c,unwatch:l,once:f,set:d,remove:h,clearAll:p};function c(v,y,m){return u.on(y,e(this,m))}function l(v,y){u.off(y)}function f(v,y,m){u.once(y,e(this,m))}function d(v,y,m){var w=this.get(y);v(),u.fire(y,m,w)}function h(v,y){var m=this.get(y);v(),u.fire(y,void 0,m)}function p(v){var y={};this.each(function(m,w){y[w]=m}),v(),r(y,function(m,w){u.fire(w,void 0,m)})}}function a(){return n(o,{_id:0,_subSignals:{},_subCallbacks:{}})}var o={_id:null,_subCallbacks:null,_subSignals:null,on:function(u,c){return this._subCallbacks[u]||(this._subCallbacks[u]={}),this._id+=1,this._subCallbacks[u][this._id]=c,this._subSignals[this._id]=u,this._id},off:function(u){var c=this._subSignals[u];delete this._subCallbacks[c][u],delete this._subSignals[u]},once:function(u,c){var l=this.on(u,e(this,function(){c.apply(this,arguments),this.off(l)}))},fire:function(u){var c=i(arguments,1);r(this._subCallbacks[u],function(l){l.apply(this,c)})}};return li}var fi,Nu;function jg(){if(Nu)return fi;Nu=1;var t=Ig();fi=[t,e];function e(){return{observe:r,unobserve:n};function r(i,s,a){var o=this.watch(s,a);return a(this.get(s)),o}function n(i,s){this.unwatch(s)}}return fi}var qg=jg();const Mg=De(qg);je.addPlugin(Mg);const Lg=5,Ng=()=>new Date(Date.now());class Vf{constructor(e){this._payload=e}accountId(){return this._payload.aid}payload(){return this._payload}subject(){return this._payload.sub}expiration(){return new Date(this._payload.exp*1e3)}encoded(){return this._payload.encoded}strong(){return this._payload.strong}isRoomToken(){return!!this._payload.period_id}soonExpires(){const e=this.expiration(),r=new Date(this.expiration());return r.setMinutes(e.getMinutes()-Lg),Ng()>r}forceExpiration(){this._payload.exp=new Date().getTime()/1e3}}class Vg extends Vf{organizationId(){return this._payload.org}}class Ug extends Vf{}function Uf(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t==="x"?e:e&3|8).toString(16)})}const di=()=>(console.error("AuthClientStore-> invalid inputs"),null);class Bg{constructor(){this.storage=je,this._tokenCache={}}getDeviceId(){const e="ls-device-id";let r=this._tokenCache[e]||this.fromStorage(e);return r||(r=Uf(),localStorage.setItem("ls-device-id",r)),r}getToken(e){if(typeof e!="string")return di();const n=this._tokenCache[this.storeKey(e)]||this.fromStorage(this.storeKey(e));if(!n)return null;const{exp:i}=n;return i&&this.currentTime()>i?(this.removeToken(e),null):new Vg(n)}fromStorage(e){try{return je.get(e)}catch(r){return console.error(r),null}}getAnonymousTraits(){const r=this._tokenCache[this.storeAnonymousKey()]||this.fromStorage(this.storeAnonymousKey());return r||null}storeAnonymousTraits(e){try{const r=this.storeAnonymousKey();je.set(r,e),this._tokenCache[r]=e}catch(r){console.error(r)}}clearAnonymousTraits(){try{const e=this.storeAnonymousKey();je.remove(e),delete this._tokenCache[e]}catch{}}storeToken(e){if(!e||!e.sub||!e.org)return di();const{org:r}=e;try{je.set(this.storeKey(r),e)}catch(n){console.error(n)}return this._tokenCache[this.storeKey(r)]=e,!0}removeToken(e){if(!e)return di();je.remove(this.storeKey(e)),je.remove(this.storeAnonymousKey())}currentTime(){return this._currentTime?this._currentTime:this._currentTime||Math.round(new Date().getTime()/1e3)}storeKey(e){return`livestorm:${e}`}storeAnonymousKey(){return"livestorm:anonymous"}clear(){return this._tokenCache={},je.clearAll()}}class $g{constructor(e={}){this._payload=e}id(){return this._payload?this._payload.organization_id:null}exists(){return!!this.id()}}class Qg{constructor(e){this.payload=e}teamMemberOn(e){return this.payload.length>0&&!!this.payload.find(r=>r.organization_id===e)}}const Vu="livestorm-pubsub";class zg{on(e,r){window.addEventListener("storage",n=>{if(n.key!==Vu)return;const i=JSON.parse(n.newValue);i&&i.event===e&&r(n)})}fire(e){try{localStorage.setItem(Vu,JSON.stringify({event:e,random:Math.random()}))}catch(r){console.log(r)}}}class Wg{constructor(){this._events={}}on(e,r){this._events[e]||(this._events[e]=[]),this._events[e].push(r)}async fire(e){if(!this._events[e])return;const r=this._events[e].map(n=>(async()=>{await n()})());return Promise.all(r).catch(n=>{console.error(n)})}}var Or={exports:{}},Hg=Or.exports,Uu;function Gg(){return Uu||(Uu=1,function(t,e){(function(r,n){t.exports=n()})(Hg,function(){var r=function(){},n={},i={},s={};function a(d,h){d=d.push?d:[d];var p=[],v=d.length,y=v,m,w,b,_;for(m=function(S,T){T.length&&p.push(S),y--,y||h(p)};v--;){if(w=d[v],b=i[w],b){m(w,b);continue}_=s[w]=s[w]||[],_.push(m)}}function o(d,h){if(d){var p=s[d];if(i[d]=h,!!p)for(;p.length;)p[0](d,h),p.splice(0,1)}}function u(d,h){d.call&&(d={success:d}),h.length?(d.error||r)(h):(d.success||r)(d)}function c(d,h,p,v){var y=document,m=p.async,w=(p.numRetries||0)+1,b=p.before||r,_=d.replace(/[\?|#].*$/,""),S=d.replace(/^(css|img|module|nomodule)!/,""),T,R,g;if(v=v||0,/(^css!|\.css$)/.test(_))g=y.createElement("link"),g.rel="stylesheet",g.href=S,T="hideFocus"in g,T&&g.relList&&(T=0,g.rel="preload",g.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(_))g=y.createElement("img"),g.src=S;else if(g=y.createElement("script"),g.src=S,g.async=m===void 0?!0:m,R="noModule"in g,/^module!/.test(_)){if(!R)return h(d,"l");g.type="module"}else if(/^nomodule!/.test(_)&&R)return h(d,"l");g.onload=g.onerror=g.onbeforeload=function(x){var k=x.type[0];if(T)try{g.sheet.cssText.length||(k="e")}catch(V){V.code!=18&&(k="e")}if(k=="e"){if(v+=1,v{if(Bu.isDefined($u)){r(window.google.accounts);return}Bu([Yg],$u,{returnPromise:!0,numRetries:2}).then(()=>{r(window.google.accounts)}).catch(()=>n(new Error(js.t("general_form_google_error_adblock"))))})}signIn(){return new Promise(async(e,r)=>{(await this.load()).oauth2.initTokenClient({client_id:Jg,scope:"email profile openid",prompt:"select_account",callback:async s=>{Qu||(Qu=await fetch(Xg).then(o=>o.json()));const a=await fetch(Qu[Zg],{headers:{authorization:`Bearer ${s.access_token}`}}).then(o=>o.json());e({token:s.access_token,firstName:a.given_name,lastName:a.family_name,email:a.email})},error_callback:s=>{r(s)}}).requestAccessToken()})}}const tb="f5a60eb0-dbd3-4406-8711-eee6340d376f";class rb{constructor(){sr(this,"msalInstance",null)}async load(){if(!this.msalInstance){const e=await Id(()=>import("./index-BYw85vbP.js"),[]);this.msalInstance=new e.PublicClientApplication({auth:{clientId:tb}})}return this.msalInstance}async signIn(){const e=await this.msalInstance.loginPopup({scopes:["user.read"],redirectUri:`${Nc()}/auth/blank`,prompt:"select_account"});let r;try{r=(await Hr.get("https://graph.microsoft.com/v1.0/me",{headers:{Authorization:`Bearer ${e.accessToken}`}})).data}catch(n){console.error(n)}return{token:e.accessToken,email:e.account.username,fullName:e.account.name,firstName:r==null?void 0:r.givenName,lastName:r==null?void 0:r.surname}}}class nb{async signIn(e){const r=await ue.samlSignin(e);if(e.accountMustBeConfirmed&&r.data.redirect_url.startsWith("#/signup/saml"))throw new Error(js.t("general_sign-in_saml_error_account-not-confirmed"));await Dr(r.data.redirect_url)}}var hi,zu;function ib(){if(zu)return hi;zu=1;var t=jd();function e(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:t(r,n,i)}return hi=e,hi}var pi,Wu;function Bf(){if(Wu)return pi;Wu=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+t+i+s+"]");function u(c){return o.test(c)}return pi=u,pi}var vi,Hu;function sb(){if(Hu)return vi;Hu=1;function t(e){return e.split("")}return vi=t,vi}var yi,Gu;function ab(){if(Gu)return yi;Gu=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,s="\\ufe0e\\ufe0f",a="["+t+"]",o="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+u+")",l="[^"+t+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",p=c+"?",v="["+s+"]?",y="(?:"+h+"(?:"+[l,f,d].join("|")+")"+v+p+")*",m=v+p+y,w="(?:"+[l+o+"?",o,f,d,a].join("|")+")",b=RegExp(u+"(?="+u+")|"+w+m,"g");function _(S){return S.match(b)||[]}return yi=_,yi}var mi,Ku;function ob(){if(Ku)return mi;Ku=1;var t=sb(),e=Bf(),r=ab();function n(i){return e(i)?r(i):t(i)}return mi=n,mi}var gi,Ju;function ub(){if(Ju)return gi;Ju=1;var t=ib(),e=Bf(),r=ob(),n=Ir();function i(s){return function(a){a=n(a);var o=e(a)?r(a):void 0,u=o?o[0]:a.charAt(0),c=o?t(o,1).join(""):a.slice(1);return u[s]()+c}}return gi=i,gi}var bi,Xu;function cb(){if(Xu)return bi;Xu=1;var t=ub(),e=t("toUpperCase");return bi=e,bi}var wi,Yu;function lb(){if(Yu)return wi;Yu=1;var t=Ir(),e=cb();function r(n){return e(t(n).toLowerCase())}return wi=r,wi}var Oi,Zu;function fb(){if(Zu)return Oi;Zu=1;function t(e,r,n,i){var s=-1,a=e==null?0:e.length;for(i&&a&&(n=e[++s]);++s{await this.signout()})}async authenticate(){return this._authenticating=this.fetchAndAuthenticate(),this._authenticating.then(()=>{this._authenticating=null}),this._authenticating}getAnonymousTraits(){return We.getAnonymousTraits()}getDeviceId(){return We.getDeviceId()}async isAuthenticated(){if(this._authenticating)return this._authenticating;const e=this.token();return e?e.strong()?e.soonExpires()?this.authenticate():this.hasToken():!0:!1}async hasStrongAuthentication(){await this.isAuthenticated();const e=this.token();return e?!!e.strong():!1}async signoutAndReload(){if(!this._isRecorder){try{await this.signout()}catch{}window.location.reload()}}accountId(){return this.token()?this.token().accountId():null}accountEmail(){return this.token()?this.token().subject():null}isOrganizationTeamMember(){return this.organization().exists()?this._teamMemberIdentities?this._teamMemberIdentities.teamMemberOn(this.organization().id()):!1:this.hasStrongToken()}isForeignOrganizationTeamMember(){return this.token()||!this._teamMemberIdentities?!1:!this._teamMemberIdentities.teamMemberOn(this.organization().id())}tokenBearer(){const e=this.token();if(!e)throw new Error("AuthClient-> cannot get token bearer while not authenticated");return`Bearer ${e.encoded()}`}token(){if(!this.organization().exists())return this.strongToken();const e=this.strongToken();if(e&&(this.isOrganizationTeamMember()||this._isRecorder))return e;const r=We.getToken(this.organization().id());return r||null}clearToken(){this._strongToken=null,this.tokenStore.clear()}clearRefreshToken(){Fr.remove("refreshToken")}async signout(e=!0){var n,i;if(this.clearRefreshToken(),!this.hasToken())return;const r=(i=(n=$e())==null?void 0:n.token())==null?void 0:i.encoded();if(this.clearToken(),this.authServiceEnabled())try{await ue.signoutUsingAuthService()}catch{}try{await ue.signout(r)}catch{}e&&this.fire(Le.SIGNOUT)}async strongSignup(e){return ue.strongSignup(e)}async weakSignup(e){return await this.isAuthenticated()?this.weakSignupWithToken(e,this.tokenBearer()):this.weakSignupWithToken(e)}handleAnonymousTraits(e,r){if(!(r.email||r.uid).endsWith(cc))return;const i=["first_name","last_name","avatar"],s={};for(const a of e.people_attributes)i.includes(a.slug)&&(s[_b(a.slug)]=a.value);We.storeAnonymousTraits(s)}async weakSignupWithToken(e,r=null){return ue.weakSignup(e,r).then(n=>{const i=n.data.data.access_token;return i&&this.storeWeakToken(i),this.handleAnonymousTraits(e,n.data.data),n})}async weakSignin(e){if(!this.organization().exists())throw new Error("AuthClient-> Cannot signin without an event type");return await ue.weakSignin(e).then(async r=>{const n=r.data.data.access_token;return this.storeWeakToken(n),await this.zeusFetchOrAuthenticate(),r})}async initiateAuthenticationFlow(e=null){if(!this.authServiceEnabled())return;await ue.initZeusMonolithAuthentication();const r=await ue.createBrowserLoginFlow(e);return r!=null&&r.ui?{endpoint:r.ui.action,fields:r.ui.nodes}:null}async handleAuthServiceSignInErrors(e,r){var i;const n=e==null?void 0:e.data;switch((i=n==null?void 0:n.error)==null?void 0:i.id){case"browser_location_change_required":n!=null&&n.redirect_browser_to&&await ue.redirectToZeusOidc(n.redirect_browser_to,r);break}}async handleAuthenticationError(e){if(this.raiseAuthServiceErrors())throw await this.signout(),e;console.error(e)}async handleZeusAuthentication(e=null,r=0){var n;if(this.authServiceEnabled())try{const{endpoint:i,fields:s}=await this.initiateAuthenticationFlow(e),a={};if(s.length<=0)return;a.method="oidc",a.provider="livestorm",a.csrf_token=s.find(u=>u.attributes.name==="csrf_token").value;const o=await ue.signInUsingAuthService(i,a);if(o.status===422)await this.handleAuthServiceSignInErrors(o,r);else if(o.status>=400)throw new Error(JSON.stringify(o.data.error))}catch(i){if(((n=i==null?void 0:i.response)==null?void 0:n.status)===400&&rc.value===a))||(await ue.signoutUsingAuthService(),await this.handleZeusAuthentication(null,e))}catch(a){((s=a.response)==null?void 0:s.status)===401&&await this.handleZeusAuthentication(null,e),console.error(a)}}async strongSignin(e){if(this.strongToken())throw new Error("AuthClient-> cannot signin while being authenticated");if(e.provider&&!e.skipProviderSignin){const{token:n}=await this.providerSignIn(e);n&&Object.assign(e,{token:n})}const r=await ue.strongSignin(e);if(this._passwordExpiredAt=r.data.data.password_expired_at,this.buildStrongToken(r.data.data.access_token),this.buildIdentities(r.data.data.identities),this.authServiceEnabled()){const n=e.invite_team_member===!0?window.location.origin:null;await this.handleZeusAuthentication(n)}return r}resetPassword(e){return ue.resetPassword(e)}async loadProvider(e,r={}){var n,i;return(i=(n=Fs[e])==null?void 0:n.load)==null?void 0:i.call(n,r)}async providerSignIn(e){var n;const{provider:r}=e;return await this.loadProvider(r),((n=Fs[r])==null?void 0:n.signIn(e))??{}}async updateStrongPassword(e){return await this.isAuthenticated()?ue.updateStrongPassword(e,this.tokenBearer()):ue.updateStrongPassword(e)}hasToken(){return!!this.token()}async fetchAndAuthenticate(e=0){var i;const r=(i=this.strongToken())==null?void 0:i.encoded(),n=this.refreshToken();if(!n&&!this.isStreamRecorder()){const s=this.hasToken();return s&&await this.zeusFetchOrAuthenticate(),s}try{let s;this.isStreamRecorder()?s=await ue.recorderToken():s=await ue.strongToken(r,n),this._passwordExpiredAt=s.data.data.password_expired_at,this._isRecorder=!!s.data.data.recorder,this.buildStrongToken(s.data.data.access_token),this.buildRefreshToken(s.data.data.refresh_token),this._isRecorder||this.buildIdentities(s.data.data.identities);try{this._isRecorder||await this.zeusFetchOrAuthenticate()}catch(a){await this.handleAuthenticationError(a)}}catch(s){return e>=Qf?(await this.signout(),!1):(s==null?void 0:s.status)===401?(this.clearRefreshToken(),r&&await this.signout(),this.hasToken()):(await this.wait($f*(e+1)),this.fetchAndAuthenticate(e+1))}return this.hasToken()}async wait(e){await new Promise(r=>{setTimeout(r,e)})}isStreamRecorder(){return!!_r().stream_recorder}organization(){return this._organization}clearStore(){We.clear()}hasStrongToken(){const e=this.token();return e?!!e.strong():!1}passwordExpiredAt(){return this._passwordExpiredAt}storeWeakToken(e){const r=this.hasToken();We.storeToken(e);const n=this.hasToken();!r&&n&&!this.authServiceEnabled()&&this.fire(Le.SIGNIN)}strongToken(){return this._strongToken}refreshToken(){return Fr.get("refreshToken")}buildRefreshToken(e){const r=_r();yf(e,r.is_embedded_in_iframe)}buildStrongToken(e){const r=this._strongToken;this._strongToken=new Ug(e),r||this.fire(Le.SIGNIN)}buildIdentities(e){this._teamMemberIdentities=new Qg(e)}on(e,r){this.pubsub.on(e,r)}fire(e,r=!1){if(this.authServiceEnabled()&&r===!1&&e===Le.SIGNIN){this._fireEvent=!0;return}this.tabPubSub.fire(e),this.pubsub.fire(e)}onTab(e,r){this.tabPubSub.on(e,r)}forceExpiration(){this.strongToken().forceExpiration()}authServiceEnabled(){var e;return!!((e=window.auth_flags)!=null&&e.shadow_sessions_using_auth_v2)}raiseAuthServiceErrors(){var e;return!!((e=window.auth_flags)!=null&&e.raise_auth_v2_errors)}passwordExpired(e){Dr(`/api/v1/auth/strong/password/edit?reset_password_token=${e.reset_password_token}&expired="true"`)}}let pt;const $e=()=>pt||(pt=new xb,dg(pt),window.__livestormAuth=pt,pt),ut={TOKEN_REVOKED:"TOKEN_REVOKED",TOKEN_EXPIRED:"TOKEN_EXPIRED",ACCOUNT_NOT_FOUND:"ACCOUNT_NOT_FOUND"},zf=async(t,e)=>{if(ut[e])switch(e){case ut.TOKEN_REVOKED:await t.signoutAndReload();break;case ut.TOKEN_EXPIRED:await t.authenticate();break;case ut.ACCOUNT_NOT_FOUND:await t.signoutAndReload()}},Ab=nf(async(t,{headers:e})=>{const r=$e(),i=await r.isAuthenticated()?{[tt]:r.tokenBearer()}:{},s=r.authServiceEnabled()?{[$y]:r.getDeviceId()}:{},a=r.getAnonymousTraits(),o=r.authServiceEnabled()&&a?{[By]:JSON.stringify(a)}:{};return{headers:{...e,...i,...s,...o}}}),Ps=t=>{if(!t||!t.length)return null;const e=t.find(r=>{if(!r.extensions)return!1;const n=r.extensions.code;return n?!!ut[n]:!1});return e?ut[e.extensions.code]:null},Fb=ba(({graphQLErrors:t})=>{const e=Ps(t);if(!e)return;const r=$e();zf(r,e)}),Pb=()=>({Query:{fields:{organization:{read:lc("Organization")},emails:{keyArgs:fe,merge:Ae},emailsMetadata:{keyArgs:fe}}},Organization:{fields:{eventTypes:{keyArgs:fe,merge:Ae},teamMembers:{keyArgs:fe,merge:Ae},teamMembersMetadata:{keyArgs:fe},invitedTeamMembers:{keyArgs:fe,merge:Ae},invitedTeamMembersMetadata:{keyArgs:fe},instantMeetings:{keyArgs:fe,merge:Ae},participants:{keyArgs:fe,merge:Ae},participantsMetadata:{keyArgs:fe},integration:{read:lc("Integration")},peopleAttributes:{keyArgs:t=>[fe(t),t==null?void 0:t.builtin].join(":")},peopleAttributesMetadata:{keyArgs:t=>[fe(t),t==null?void 0:t.builtin].join(":")}}},Session:{fields:{participants:{keyArgs:fe,merge:Ae}}},EventType:{fields:{sessions:{keyArgs:fe,merge:Ae},emailInvites:{keyArgs:fe,merge:Ae},sessionsMetadata:{keyArgs:fe},participants:{keyArgs:fe,merge:Ae},liveSourceSettings:{merge:(t,e)=>({...t,...e})}}}});function fe(t){return t!=null&&t.input?JSON.stringify(Cs([t.input.filters,t.input.sortings,t.input.textSearch])):null}function Ae(t=[],e,r){var i,s;const{args:n}=r;if(typeof((s=(i=n==null?void 0:n.input)==null?void 0:i.paginate)==null?void 0:s.page)=="number"&&n.input.paginate.page>0){const a={};for(const u of t)a[u.__ref]=!0;const o=[];for(const u of e)a[u.__ref]||o.push(u);return[...t,...o]}return e}function lc(t){return(e,{args:r,toReference:n})=>e??n({__typename:t,id:r==null?void 0:r.id})}function Cs(t){if(Array.isArray(t))return t.map(Cs);if(typeof t=="object"&&t){const e=Object.keys(t).sort(),r={};for(const n of e)r[n]=Cs(t[n]);return r}return t}const Cb={Identity:["InvitedTeamMember","Participant","TeamMember"],IntegrationAuthentication:["IntegrationAuthenticationApiKey","IntegrationAuthenticationOAuth"],RelatedTarget:["GenericData","Media"],RoomLinkCommonData:["RoomLink","RoomLinkTemplate"]};function Db(t){return typeof t=="object"&&t!==null}const Ib="x-graphql-event-stream-token";function jb(t){if(t=t,t!=="next"&&t!=="complete")throw new Error(`Invalid stream event "${t}"`);return t}function qb(t,e){if(e)try{e=JSON.parse(e)}catch{throw new Error("Invalid stream data")}if(t==="next"&&!e)throw new Error('Stream data must be an object for "next" events');return e||null}var at;(function(t){t[t.NewLine=10]="NewLine",t[t.CchunkiageReturn=13]="CchunkiageReturn",t[t.Space=32]="Space",t[t.Colon=58]="Colon"})(at||(at={}));function Mb(){let t,e,r,n=!1,i={event:"",data:""},s=[];const a=new TextDecoder;return function(u){if(t===void 0)t=u,e=0,r=-1;else{const f=new Uint8Array(t.length+u.length);f.set(t),f.set(u,t.length),t=f}const c=t.length;let l=0;for(;e0){const d=t.subarray(l,f),h=a.decode(d.subarray(0,r)),p=r+(d[r+1]===at.Space?2:1),v=a.decode(d.subarray(p));switch(h){case"event":i.event=v;break;case"data":i.data=i.data?i.data+` `+v:v;break}}l=e,r=-1}if(l===c){t=void 0;const f=[...s];return s=[],f}else l!==0&&(t=t.subarray(l),e-=l)}}function Lb(t){const{singleConnection:e=!1,lazy:r=!0,lazyCloseTimeout:n=0,onNonLazyError:i=console.error,generateID:s=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,g=>{const x=Math.random()*16|0;return(g=="x"?x:x&3|8).toString(16)})},retryAttempts:a=5,retry:o=async function(g){let x=1e3;for(let k=0;ksetTimeout(k,x+Math.floor(Math.random()*2700+300)))},credentials:u="same-origin",referrer:c,referrerPolicy:l,onMessage:f,on:d}=t,h=t.fetchFn||fetch,p=t.abortControllerImpl||AbortController,v=(()=>{let R=!1;const g=[];return{get disposed(){return R},onDispose(x){return R?(setTimeout(()=>x(),0),()=>{}):(g.push(x),()=>{g.splice(g.indexOf(x),1)})},dispose(){if(!R){R=!0;for(const x of[...g])x()}}}})();let y,m,w=0,b=null,_=0;async function S(){try{if(v.disposed)throw new Error("Client has been disposed");return await(m??(m=(async()=>{var R,g,x;if(b){if(await o(_),y.signal.aborted)throw new Error("Connection aborted by the client");_++}(R=d==null?void 0:d.connecting)===null||R===void 0||R.call(d,!!b),y=new p;const k=v.onDispose(()=>y.abort());y.signal.addEventListener("abort",()=>{k(),m=void 0});const V=typeof t.url=="function"?await t.url():t.url;if(y.signal.aborted)throw new Error("Connection aborted by the client");const C=typeof t.headers=="function"?await t.headers():(g=t.headers)!==null&&g!==void 0?g:{};if(y.signal.aborted)throw new Error("Connection aborted by the client");let P;try{P=await h(V,{signal:y.signal,method:"PUT",credentials:u,referrer:c,referrerPolicy:l,headers:C})}catch(oe){throw new Oe(oe)}if(P.status!==201)throw new Oe(P);const j=await P.text();C[Ib]=j;const ae=await fc({signal:y.signal,headers:C,credentials:u,referrer:c,referrerPolicy:l,url:V,fetchFn:h,onMessage:oe=>{var ne;(ne=d==null?void 0:d.message)===null||ne===void 0||ne.call(d,oe),f==null||f(oe)}});return(x=d==null?void 0:d.connected)===null||x===void 0||x.call(d,!!b),ae.waitForThrow().catch(()=>m=void 0),ae})()))}catch(R){throw m=void 0,R}}e&&!r&&(async()=>{for(w++;;)try{const{waitForThrow:R}=await S();await R()}catch(R){if(v.disposed)return;if(!(R instanceof Oe)||(m=void 0,!a||_>=a))return i==null?void 0:i(R);b=R}})();function T(R,g,x){if(!e){const C=new p,P=v.onDispose(()=>{P(),C.abort()});return(async()=>{var j,ae,oe,ne,ie;let q=null,we=0;for(;;)try{if(q){if(await o(we),C.signal.aborted)throw new Error("Connection aborted by the client");we++}(j=d==null?void 0:d.connecting)===null||j===void 0||j.call(d,!!q),(ae=x==null?void 0:x.connecting)===null||ae===void 0||ae.call(x,!!q);const X=typeof t.url=="function"?await t.url():t.url;if(C.signal.aborted)throw new Error("Connection aborted by the client");const re=typeof t.headers=="function"?await t.headers():(oe=t.headers)!==null&&oe!==void 0?oe:{};if(C.signal.aborted)throw new Error("Connection aborted by the client");const{getResults:Y}=await fc({signal:C.signal,headers:{...re,"content-type":"application/json; charset=utf-8"},credentials:u,referrer:c,referrerPolicy:l,url:X,body:JSON.stringify(R),fetchFn:h,onMessage:ge=>{var Qe,Pt;(Qe=d==null?void 0:d.message)===null||Qe===void 0||Qe.call(d,ge),(Pt=x==null?void 0:x.message)===null||Pt===void 0||Pt.call(x,ge),f==null||f(ge)}});(ne=d==null?void 0:d.connected)===null||ne===void 0||ne.call(d,!!q),(ie=x==null?void 0:x.connected)===null||ie===void 0||ie.call(x,!!q);for await(const ge of Y())q=null,we=0,g.next(ge);return C.abort()}catch(X){if(C.signal.aborted)return;if(!(X instanceof Oe)||!a||we>=a)throw X;q=X}})().then(()=>g.complete()).catch(j=>g.error(j)),()=>C.abort()}w++;const k=new p,V=v.onDispose(()=>{V(),k.abort()});return(async()=>{const C=s();R={...R,extensions:{...R.extensions,operationId:C}};let P=null;for(;;){P=null;try{const{url:j,headers:ae,getResults:oe}=await S();let ne;try{ne=await h(j,{signal:k.signal,method:"POST",credentials:u,referrer:c,referrerPolicy:l,headers:{...ae,"content-type":"application/json; charset=utf-8"},body:JSON.stringify(R)})}catch(ie){throw new Oe(ie)}if(ne.status!==202)throw new Oe(ne);P=async()=>{let ie;try{const q=new p,we=v.onDispose(()=>{we(),q.abort()});ie=await h(j+"?operationId="+C,{signal:q.signal,method:"DELETE",credentials:u,referrer:c,referrerPolicy:l,headers:ae})}catch(q){throw new Oe(q)}if(ie.status!==200)throw new Oe(ie)};for await(const ie of oe({signal:k.signal,operationId:C}))b=null,_=0,g.next(ie);return P=null,k.abort()}catch(j){if(k.signal.aborted)return await(P==null?void 0:P());if(!(j instanceof Oe)||(r&&(m=void 0),!a||_>=a))throw k.abort(),j;b=j}finally{k.signal.aborted&&--w===0&&(isFinite(n)&&n>0?setTimeout(()=>{w||y.abort()},n):y.abort())}}})().then(()=>g.complete()).catch(C=>g.error(C)),()=>k.abort()}return{subscribe:T,iterate(R,g){const x=[],k={done:!1,error:null,resolve:()=>{}},V=T(R,{next(P){x.push(P),k.resolve()},error(P){k.done=!0,k.error=P,k.resolve()},complete(){k.done=!0,k.resolve()}},g),C=async function*(){for(;;){for(x.length||await new Promise(j=>k.resolve=j);x.length;)yield x.shift();if(k.error)throw k.error;if(k.done)return}}();return C.throw=async P=>(k.done||(k.done=!0,k.error=P,k.resolve()),{done:!0,value:void 0}),C.return=async()=>(V(),{done:!0,value:void 0}),C},dispose(){v.dispose()}}}class Oe extends Error{constructor(e){let r,n;Nb(e)?(n=e,r="Server responded with "+e.status+": "+e.statusText):e instanceof Error?r=e.message:r=String(e),super(r),this.name=this.constructor.name,this.response=n}}function Nb(t){return Db(t)&&typeof t.ok=="boolean"&&typeof t.status=="number"&&typeof t.statusText=="string"}async function fc(t){const{signal:e,url:r,credentials:n,headers:i,body:s,referrer:a,referrerPolicy:o,fetchFn:u,onMessage:c}=t,l={},f={};let d;try{d=await u(r,{signal:e,method:s?"POST":"GET",credentials:n,referrer:a,referrerPolicy:o,headers:{...i,accept:"text/event-stream"},body:s})}catch(v){throw new Oe(v)}if(!d.ok)throw new Oe(d);if(!d.body)throw new Error("Missing response body");let h=null,p;return(async()=>{var v;try{const y=Mb();for await(const m of Vb(d.body)){if(typeof m=="string")throw h=new Error(`Unexpected string chunk "${m}"`);let w;try{w=y(m)}catch(b){throw h=b}if(w)for(const b of w){try{c==null||c(b)}catch(S){throw h=S}const _=b.data&&"id"in b.data?b.data.id:"";switch(_ in f||(f[_]=[]),b.event){case"next":_?f[_].push(b.data.payload):f[_].push(b.data);break;case"complete":f[_].push("complete");break;default:throw h=new Error(`Unexpected message event "${b.event}"`)}(v=l[_])===null||v===void 0||v.proceed()}}if(Object.keys(l).length)throw new Error("Connection closed while having active streams")}catch(y){!h&&Object.keys(l).length?h=new Oe(y):h=y,p==null||p(h)}finally{Object.values(l).forEach(({proceed:y})=>y())}})(),{url:r,headers:i,waitForThrow:()=>new Promise((v,y)=>{if(h)return y(h);p=y}),async*getResults(v){var y;const{signal:m,operationId:w=""}=v??{};try{for(;;){for(;!((y=f[w])===null||y===void 0)&&y.length;){const b=f[w].shift();if(b==="complete")return;yield b}if(h)throw h;if(m!=null&&m.aborted)throw new Error("Getting results aborted by the client");await new Promise(b=>{const _=()=>{m==null||m.removeEventListener("abort",_),delete l[w],b()};m==null||m.addEventListener("abort",_),l[w]={proceed:_}})}}finally{delete f[w]}}}}function Vb(t){return typeof Object(t)[Symbol.asyncIterator]=="function"?(t=t,t[Symbol.asyncIterator]()):async function*(){const e=t.getReader();let r;do r=await e.read(),r.value!==void 0&&(yield r.value);while(!r.done)}()}class Ub extends he{constructor(r){super();sr(this,"client");sr(this,"headers");this.client=Lb({...r,headers:()=>this.headers,onMessage:(...n)=>{console.debug("[SSELink] onMessage",...n)},onNonLazyError:n=>{console.error("[SSELink] onNonLazyError",n)}})}request(r){return console.log("[SSELink] request",r.operationName),this.headers=r.getContext().headers,new L(n=>this.client.subscribe({query:Ls(r.query),variables:r.variables},{next:n.next.bind(n),complete:n.complete.bind(n),error:n.error.bind(n)}))}}let dc,ct;const Bb=Uc({loading:0});function x0({typePolicies:t,initialData:e,fetchFn:r,url:n}={}){const i=Pb();t&&nh(i,t);const s=new ya({possibleTypes:Cb,typePolicies:i});e&&e(s);const a=n??"https://graphql.livestorm.co",o=py({uri:m=>{const w=m.query.definitions.find(_=>_.kind==="OperationDefinition"),b=(w==null?void 0:w.operation)??"unknown";return`${a}/graphql?deflate=true&operationName=${m.operationName}&operationType=${b}`},credentials:"include",fetch:r}),u=new he((m,w)=>w(m).map(b=>gy.inflate(b))),c=!1,l=new Ub({url:`${a}/subscriptions`,credentials:"include",singleConnection:c,fetchFn:r}),f=ba(m=>{var R;const{operation:w,graphQLErrors:b,networkError:_,response:S}=m;if(Ps(b))return;const T=Ls(w.query);if(b!=null&&b.length)for(const g of b)console.error(g.message),Pi({error:g,tags:{kind:"graphql-error",gqlKind:_?"validation":"resolver"},extras:{operation:T,variables:w.variables,code:(R=g.extensions)==null?void 0:R.code,locations:g.locations,path:g.path,response:S,networkError:_==null?void 0:_.message}});else _?(console.error(_.message),Pi({error:_,tags:{kind:"network-error"},extras:{operation:T,variables:w.variables,statusCode:"statusCode"in _?_.statusCode:void 0,result:"result"in _?_.result:void 0,response:S}})):(console.error("Unknown apollo error:",m),Pi({error:"Unknown apollo error",tags:{kind:"unknown-error"},extras:{operation:T,variables:w.variables,response:S}}));console.log(`%c⤷ for operation %c${T} %c⤷ with variables`,"color: red;","color: unset;","color: red;",w.variables)}),d=new sy({delay:{initial:300,max:1e4,jitter:!0},attempts:{max:6,retryIf:m=>{const{response:w,result:b}=m;return Ps(b==null?void 0:b.errors)||(w==null?void 0:w.status)===400?!1:!!m}}}),h=m=>!m||!m.length?!1:m.find(w=>"extensions"in w?w.extensions.code==="DB_CANCEL_STATEMENT":!1),p=new he((m,w)=>w(m).map(b=>{if(h(b.errors))throw new Error("GraphQL Operational Error");return b})),v=nf((m,w)=>({headers:{...w.headers,"accept-language":js.language,"x-window-location":window.location.href,"Apollo-Require-Preflight":"true"}})),y=Ml([u,f,d,p,Ab,Fb,v,Ll(({query:m})=>{const w=At(m);return w.kind==="OperationDefinition"&&w.operation==="subscription"},l,o)]);return ct=new ma({cache:s,link:y,connectToDevTools:!1}),ct.onResetStore(async()=>{e&&e(s)}),dc=Dh({defaultClient:ct,watchLoading(m,w){Bb.loading+=w},defaultOptions:{$query:{fetchPolicy:"cache-and-network"}}}),{apolloClient:ct,apolloProvider:dc}}function A0(){return ct??window.apolloClientMock}async function Pi({error:t,tags:e,extras:r}){const n=new Error(`GraphQL error: ${typeof t=="string"?t:t.message}`);for(const s of Object.keys(t))s!=="message"&&(n[s]=t[s]);const i=await qd();i.withScope(s=>{s.setTag("component","graphql"),e&&s.setTags(e),r&&s.setExtras(r),i.captureException(n),console.log("Error reported to Sentry",n,s)})}var $b={};const Qb=t=>async e=>{if(t&&await t.isAuthenticated()){if($b.VUE_APP_IS_MOQUERIE==="true")return e;e.headers[tt]=t.tokenBearer()}return e},zb=t=>{if(!t.response||!t.response.data||!t.response.data.error_code)return null;const e=t.response.data.error_code;return ut[e.toUpperCase()]},Wb=t=>[e=>e,async e=>{const r=zb(e);return r&&await zf(t,r),Promise.reject(e)}],Hb=t=>{const e=Hr.create({headers:{"X-Origin":"axios"},baseURL:af});return e.interceptors.request.use(Qb(t)),e.interceptors.response.use(...Wb(t)),e.interceptors.response.use(r=>r,r=>{if(!r.response)return Promise.reject(r);const n=r.response.data;if(!n)return Promise.reject(r);if(typeof n=="string"){const i={data:{errors:[r.message]}};return Promise.reject(i)}return Promise.reject(r.response)}),e},N=Hb($e());function Gb(t,e){return N.get(`event_types/${t}/sessions/${e}/room/identities/current`)}function Kb(t,e,r=!1){const n={};return r&&(n["X-Allow-Embed"]=!0),N.post(`event_types/${t}/sessions/${e}/room/identities/grant_access`,{},{headers:n})}function Jb(t,e){return N.post(`event_types/${t}/sessions/${e}/room/identities/technical`,Md())}function Xb({webinarId:t,sessionId:e,data:r}){return N.put(`event_types/${t}/sessions/${e}/room/identities/connection_mode`,r)}async function Yb({eventId:t,sessionId:e,identityId:r}){if(!r)return null;const{identities:n}=await Wf({eventId:t,sessionId:e,ids:[r]});return n[0]}async function Wf({eventId:t,sessionId:e,ids:r,page:n,isConnected:i,hasJoinedEvent:s,search:a,scope:o,isCurrentRoom:u}){const{data:c}=await N.post(`event_types/${t}/sessions/${e}/room/identities`,{ids:r?JSON.stringify(r):null,is_connected:i,has_joined_event:s,search:a,page:n,scope:o,is_current_room:u});return c}function Zb(t){return N.post("terms",t)}function ew(t){return N.post(`event_types/${t.eventTypeId}/sessions/${t.sessionId}/recordings/pause`,{type:t.type})}function tw(t){return N.post(`event_types/${t.eventTypeId}/sessions/${t.sessionId}/recordings/resume`,{type:t.type})}function rw(t,e){return N.post("https://t.livestorm.co/activity_tracking",{name:t,...e})}const F0=Object.freeze(Object.defineProperty({__proto__:null,acceptParticipantTerms:Zb,getRoomCurrentIdentity:Gb,getRoomIdentity:Yb,getRoomMultipleIdentities:Wf,pauseRecording:ew,postActivityTracking:rw,postRoomGrantAccess:Kb,postRoomTechnical:Jb,resumeRecording:tw,updateIdentityConnectionMode:Xb},Symbol.toStringTag,{value:"Module"}));var Ci,hc;function nw(){if(hc)return Ci;hc=1;var t=qc(),e=Bc(),r=1,n=2;function i(s,a,o,u){var c=o.length,l=c,f=!u;if(s==null)return!l;for(s=Object(s);c--;){var d=o[c];if(f&&d[2]?d[1]!==s[d[0]]:!(d[0]in s))return!1}for(;++ct.isMobile},mutations:{isMobile(t,e){t.isMobile=e}},actions:{setIsMobile({commit:t},e){t("isMobile",e)}}},Pr={path:"/login",name:"signin",meta:{guest:!0,responsive:!0,paramsView:["forgot_password","reset_password","SAML"]}},Jf={path:"/logout",name:"signout",meta:{responsive:!0}},hw={path:"/oauth-signup",name:"oauth-signup",meta:{guest:!0,responsive:!0}},pw={path:"/forgot-password",name:"user_forgot_password",meta:{guest:!0,responsive:!0}},vw={path:"/reset-password",name:"user_reset_password",meta:{guest:!0,responsive:!0}},Xf={path:"/signup",name:"signup",meta:{guest:!0,responsive:!0}},C0={path:"/account-confirm",name:"account-confirm",meta:{guest:!0,responsive:!0}},D0={path:"/saml-confirm",name:"saml-confirm",meta:{guest:!0,responsive:!0}},yw={path:"/signup/saml",name:"saml_signup",meta:{guest:!0,responsive:!0}},mw={path:"/signin/saml",name:"saml_signin",meta:{guest:!0,responsive:!0}},Yf=[Pr,mw,Jf,Xf,yw,pw,vw],Cr="/",gw=t=>async(e,r,n)=>{const i=!e.meta.guest,s=await t.isAuthenticated();if(i&&!s){const a=e.name!==Jf.name?{redirect:e.path}:{};n({name:Pr.name,query:a})}else!i&&s?e.query.organization_id||e.query.confirmation_token?(await t.signout(),window.location.reload()):n(Cr):i&&s?ww(e,r,n):n()},bw=/^(http|https):\/\//i;function ww(t,e,r){const n=e.query.redirect;if(e.query.redirect=void 0,t.query.redirect=void 0,t.meta.guest){r(Cr);return}if(!n){r();return}const i=document.createElement("a");i.href=n;const s=i.pathname,a=i.search;if(i.host!==window.location.host){r(s);return}if(n.match(bw)){Dr(`${s}${a}`);return}if(Yf.find(u=>u.path===s)){r(Cr);return}r(s)}const I0=gw($e());var zi,Tc;function Ow(){if(Tc)return zi;Tc=1;var t="Expected a function";function e(r){if(typeof r!="function")throw new TypeError(t);return function(){var n=arguments;switch(n.length){case 0:return!r.call(this);case 1:return!r.call(this,n[0]);case 2:return!r.call(this,n[0],n[1]);case 3:return!r.call(this,n[0],n[1],n[2])}return!r.apply(this,n)}}return zi=e,zi}var Wi,kc;function _w(){if(kc)return Wi;kc=1;var t=Bd(),e=qs(),r=Is(),n=Jt(),i=jr();function s(a,o,u,c){if(!n(a))return a;o=e(o,a);for(var l=-1,f=o.length,d=f-1,h=a;h!=null&&++l0&&(r.page=t.page),t.columns&&(r.columns=t.columns),t.search&&(r.search=t.search),t.sort_column&&(r.sort_column=t.sort_column),t.sort_direction&&t.sort_direction!==null){let i="desc";t.sort_direction>0&&(i="asc"),r.sort_direction=i}t.filters&&(r.filters=t.filters)}let n="webinars";return t.slug&&(n=t.slug),n==="webinars"&&e==="/settings"&&(n="event_types",r.group=t.group),N.get(`${n}${e}`,{params:r})}function Zf(t){return N.get(`event_types/${t.eventTypeId}/sessions/${t.periodId}`)}function Cw(t){return N.get(`event_types/${t.eventTypeId}/sessions/nearest`)}function ed(t){return N.get(`event_types/${t.eventTypeId}/sessions/nearest_all`)}function Dw(t,e){const r={};let n=`event_types/${t}`;return e&&(e.columns&&(r.columns=e.columns),e.sessionId&&(n=`event_types/${t}/sessions/${e.sessionId}`)),N.get(n,{params:r})}function Iw(t,e){return N.get(`event_types/${t}/sessions/${e}/lite`)}function jw(t,e){const r={};return e&&e.columns&&(r.columns=e.columns),N.get(`event_types/${t}/room`,{params:r})}function qw(t){return N.post("webinars",t)}function Mw(t,e){return N.post(`event_types/${t}/sessions/${e}/periods_identities/self_assign`,{})}function Lw(t,e){return N.delete(`event_types/${t}/sessions/${e}`,{params:{get_session_item:"true"}})}function Nw(t,e,r=1,n=""){const i=n?`?scope=${n}`:"";return N.get(`event_types/${t}/sessions/${e}/messages/page/${r}${i}`)}function Vw(t,e,r={}){return N.get(`event_types/${t}/sessions/${e}/room/questions`,kw({params:{page:r.page,sort_by:r.sortBy,sort_order:r.sortOrder}},Fw))}function Uw(t,e){return N.get(`event_types/${t}/sessions/${e}/room/polls`)}function Bw(t){return N.get(`event_types/${t}/replays`)}function $w(t,e){return N.post(`webinars/${t}/invites`,e)}function Qw(t){const e=encodeURIComponent(t.email);return N.get(`event_types/${t.eventTypeId}/sessions/${t.sessionId}/periods_identities/check?email=${e}`)}async function td(t){try{const{data:e}=await ed({eventTypeId:t});return e.data.id}catch{return null}}async function zw(t,e){const r=t||await td(e),{data:n}=await Zf({eventTypeId:e,periodId:r});return n}async function Ww(t,e,r){const{data:n}=await N.get(`event_types/${t}/sessions/${e}/periods_identities/resolve`,{params:{identity_id:r}});return n}function Hw(t){const e=$e().token().encoded();return N.get(`webinars/${t.webinarId}/mailers/${t.mailerName}`,{headers:{[tt]:`Bearer ${e}`}})}function Gw(t){const e=$e().token().encoded();return N.post(`webinars/${t.webinarId}/mailers/${t.mailerName}`,{headers:{[tt]:`Bearer ${e}`}})}function Kw(t){let e=`webinars/${t.webinarId}`;return t&&t.sessionId&&(e=`${e}/sessions/${t.sessionId}`),N.get(`${e}/charts/${t.chartId}`,{params:{user_timezone:t.userTimezone}})}function Jw({page:t,search:e,sortId:r,sortOrder:n}){let i=`organizations/${window.event_type.organization_id}/polls?page=${t}`;return e&&(i+=`&search=${e}`),r&&(i+=`&sort_column=${r}`),n&&(i+=`&sort_direction=${n}`),N.get(i)}function Xw({eventTypeId:t,email:e}){const r=e.replace("+","%2b");return N.get(`event_types/${t}/is-team-member?email=${r}`)}function Yw({webinarId:t,participantId:e}){return N.delete(`webinars/${t}/identities/${e}`)}const j0=Object.freeze(Object.defineProperty({__proto__:null,checkEmailEventType:Qw,createInvitesWebinar:$w,deleteParticipant:Yw,fetchPeriodOrFallbackToNearest:zw,fetchPeriodsIdentity:Ww,getAllPolls:Jw,getChart:Kw,getMessagesWebinar:Nw,getNearestPeriodId:Cw,getNearestPeriodIdAmongAll:ed,getPeriod:Zf,getPollsWebinar:Uw,getQaWebinar:Vw,getReplayWebinar:Bw,getSessionDataLite:Iw,getUserWebinars:Pw,getWebinarData:Dw,getWebinarRoomData:jw,isTeamMember:Xw,nearestPeriodId:td,previewEmail:Hw,removeSession:Lw,saveNewWebinar:qw,selfAssign:Mw,sendEmail:Gw},Symbol.toStringTag,{value:"Module"})),Zw=$e();class q0{constructor(e){this.state=Uc({isAuthenticated:!1,isOrganizationTeamMember:!1,accountId:null,accountEmail:null,isForeignOrganizationTeamMember:null}),this.authClient=Zw,this.router=e==null?void 0:e.router,this.store=e==null?void 0:e.store,this.isDashboard=(e==null?void 0:e.isDashboard)||!1,this._init()}get isAuthenticated(){return this.state.isAuthenticated}set isAuthenticated(e){this.state.isAuthenticated=e}get isOrganizationTeamMember(){return this.state.isOrganizationTeamMember}set isOrganizationTeamMember(e){this.state.isOrganizationTeamMember=e}get isForeignOrganizationTeamMember(){return this.state.isForeignOrganizationTeamMember}set isForeignOrganizationTeamMember(e){this.state.isForeignOrganizationTeamMember=e}get accountId(){return this.state.accountId}set accountId(e){this.state.accountId=e}get accountEmail(){return this.state.accountEmail}set accountEmail(e){this.state.accountEmail=e}clearRefreshTokenBeforeSaml(){!!_r().refresh_token&&Fr.remove("refreshToken")}async _init(){this.clearRefreshTokenBeforeSaml(),await this.authClient.authenticate(),await this.authClient.isAuthenticated()?this.signedIn():this.isForeignOrganizationTeamMember=this.authClient.isForeignOrganizationTeamMember(),this.authClient.on(Le.SIGNOUT,this.signedOut.bind(this)),this.authClient.on(Le.SIGNIN,this.signedIn.bind(this)),this.authClient.onTab(Le.SIGNIN,async()=>{await this.authClient.isAuthenticated()||(await this.authClient.authenticate(),await this.authClient.isAuthenticated()&&!this.isDashboard&&window.location.reload())})}async sync(){this.isAuthenticated=await this.authClient.isAuthenticated(),this.isAuthenticated&&(this.accountId=this.authClient.accountId(),this.accountEmail=this.authClient.accountEmail()),this.isOrganizationTeamMember=this.authClient.isOrganizationTeamMember()}resetPassword(e){return this.authClient.resetPassword(e)}updateStrongPassword(e){return this.authClient.updateStrongPassword(e)}async strongSignup(e){const r=await this.authClient.strongSignup(e);if(e.isTeamMemberInvite||e.provider!=="saml"&&e.provider in Fs)try{await this.strongSignin({provider:e.provider,email:e.email,skipProviderSignin:e.skipProviderSignin,token:e.token,password:e.password,invite_team_member:!0})}catch(n){return console.error(n),n.data&&n.data.errors?{error:n.data.errors.join(" ")}:typeof n.data=="string"?{error:n.data}:{error:n.message}}return r}async weakSignup(e){return this.authClient.weakSignup(e)}async samlSignup(e){const r=await this.authClient.strongSignup(e);await Dr(r.data.data)}routeTo(e){this.router&&this.router.push(e)}async dispatch(e){if(this.store&&this.store._actions[e])return this.store.dispatch(e)}async commit(e,r){if(this.store)return this.store.commit(e,r)}async strongSignin(e){const r=await this.authClient.strongSignin(e);zd.set("lang",r.data.data.locale),window.ga&&ga("websiteTracker.send","event","Account","Login"),window.analytics&&analytics.identify(r.data.data.identity_id,{email:r.data.data.access_token.sub},{Intercom:{user_hash:r.data.data.user_hash}})}loadProvider(e){return this.authClient.loadProvider(e)}providerSignIn(e){return this.authClient.providerSignIn(e)}async signout(){await this.authClient.signout()}async clearToken(){await this.authClient.clearToken()}async signedIn(){try{this.commit("LOADING_STATUS",{loading:!0}),await this.sync(),await this.authClient.hasStrongAuthentication()&&await this.dispatch("signedIn"),this.commit("LOADING_STATUS",{loading:!1})}catch{}finally{await this.sync(),this.routeAfterSignedIn()}}routeAfterSignedIn(){if(!this.isDashboard)return;const e=Yf.find(i=>this.route.name===i.name),r=this.route.name===Xf.name,n=this.route.name===hw.name;r&&!n?this.routeTo("/settings?tab=user-profile"):(n||e)&&this.routeTo(Cr)}async signedOut(){if(ct&&ct.resetStore(),!this.isDashboard){window.location.reload();return}this.routeTo({name:Pr.name,query:{...this.route.query}}),await this.sync(),this.dispatch("signedOut")}async emailUpdate(e){await this.authClient.signout(),this.routeTo({name:Pr.name,query:{email_updated:e}}),await this.sync()}passwordExpiredAt(){return this.authClient.passwordExpiredAt()}get route(){return this.router.currentRoute.value}}export{Bu as $,q0 as A,Nl as B,Uy as C,F0 as D,j0 as E,db as F,Xw as G,Sw as H,uw as I,Lw as J,cb as K,rw as L,zw as M,Dw as N,_w as O,lw as P,Bf as Q,ib as R,ob as S,Jw as T,Hr as U,Yd as V,Zd as W,Hd as X,Kf as Y,Gb as Z,Kb as _,N as a,Jb as a0,Zb as a1,Iw as a2,jw as a3,Uw as a4,Vw as a5,Nw as a6,Yb as a7,Gl as a8,Xb as a9,Wf as aa,ew as ab,Gd as ac,Ww as ad,Pr as ae,Jf as af,Xf as ag,C0 as ah,D0 as ai,pw as aj,vw as ak,mw as al,yw as am,hw as an,I0 as ao,Bb as ap,Bw as aq,tt as b,ch as c,Qw as d,Cw as e,ed as f,$e as g,c0 as h,A0 as i,_b as j,u0 as k,qw as l,nh as m,Yw as n,x0 as o,ct as p,ue as q,lb as r,Mw as s,yf as t,n0 as u,bb as v,$w as w,r0 as x,P0 as y,it as z};