PageSourceSearch

https://www.braun.be/nl-be/_next/static/chunks/47605-d0dfd15275b29cf4.js

js braun.be collected 2026-10-06 18:04:11 UTC 140,111 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[47605],{2943:(e,t,r)=>{r.d(t,{Tg:()=>y});var i=r(4902),n=r(77256),s=r(72011),a=r(50346),o=r(61930),l=r(63672),u=r(21370),c=r(29572),h=r(22449),d=r(77698),f=r(86823),p=r(84471);function y(e){if(e instanceof a.c)return e;if(null!=e){var t,r,y,b,v;if((0,o.l)(e)){return t=e,new a.c(function(e){var r=t[p.s]();if((0,d.T)(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if((0,n.X)(e)){return r=e,new a.c(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if((0,s.y)(e)){return y=e,new a.c(function(e){y.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,f.m)})}if((0,l.T)(e))return m(e);if((0,c.x)(e)){return b=e,new a.c(function(e){var t,r;try{for(var n=(0,i.__values)(b),s=n.next();!s.done;s=n.next()){var a=s.value;if(e.next(a),e.closed)return}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if((0,h.U)(e)){return v=e,m((0,h.C)(v))}}throw(0,u.L)(e)}function m(e){return new a.c(function(t){(function(e,t){var r,n,s,a;return(0,i.__awaiter)(this,void 0,void 0,function(){var o;return(0,i.__generator)(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),r=(0,i.__asyncValues)(e),l.label=1;case 1:return[4,r.next()];case 2:if((n=l.sent()).done)return[3,4];if(o=n.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s={error:l.sent()},[3,11];case 6:if(l.trys.push([6,,9,10]),!(n&&!n.done&&(a=r.return)))return[3,8];return[4,a.call(r)];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},3322:(e,t,r)=>{let i;r.d(t,{y:()=>g});var n=r(47518);let s=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return o[e.charCodeAt(0)]}let o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var l=r(74968);let u={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=p(e.variableDefinitions)?d("(\n",c(e.variableDefinitions,"\n"),"\n)"):d("(",c(e.variableDefinitions,", "),")"),r=d("",e.description,"\n")+c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:i,description:n})=>d("",n,"\n")+e+": "+t+d(" = ",r)+d(" ",c(i," "))},SelectionSet:{leave:({selections:e})=>h(e)},Field:{leave({alias:e,name:t,arguments:r,directives:i,selectionSet:n}){let s=d("",e,": ")+t,a=s+d("(",c(r,", "),")");return a.length>80&&(a=s+d("(\n",f(c(r,"\n")),"\n)")),c([a,c(i," "),n]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+d(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",d("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:i,selectionSet:n,description:s})=>d("",s,"\n")+`fragment ${e}${d("(",c(r,", "),")")} `+`on ${t} ${d("",c(i," ")," ")}`+n},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?(0,n.yo)(e):`"${e.replace(s,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+d("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>d("",e,"\n")+c(["schema",c(t," "),h(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+c(["type",t,d("implements ",c(r," & ")),c(i," "),h(n)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:i,directives:n})=>d("",e,"\n")+t+(p(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+": "+i+d(" ",c(n," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:i,directives:n})=>d("",e,"\n")+c([t+": "+r,d("= ",i),c(n," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:i,fields:n})=>d("",e,"\n")+c(["interface",t,d("implements ",c(r," & ")),c(i," "),h(n)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:i})=>d("",e,"\n")+c(["union",t,c(r," "),d("= ",c(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:i})=>d("",e,"\n")+c(["enum",t,c(r," "),h(i)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>d("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:i})=>d("",e,"\n")+c(["input",t,c(r," "),h(i)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:i,repeatable:n,locations:s})=>d("",e,"\n")+"directive @"+t+(p(r)?d("(\n",f(c(r,"\n")),"\n)"):d("(",c(r,", "),")"))+d(" ",c(i," "))+(n?" repeatable":"")+" on "+c(s," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),h(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend type",e,d("implements ",c(t," & ")),c(r," "),h(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:i})=>c(["extend interface",e,d("implements ",c(t," & ")),c(r," "),h(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),d("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),h(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),h(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>c(["extend directive @"+e,c(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>c([e,d(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>c([e,d(".",t),d("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>c(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>c(["@",e,d("(",t,":)")])}};function c(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function h(e){return d("{\n",f(c(e,"\n")),"\n}")}function d(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function f(e){return d("  ",e.replace(/\n/g,"\n  "))}function p(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var y=r(1300),m=r(90664),b=r(93148),v=r(80593);let g=Object.assign(e=>{let t=i.get(e);!t&&(t=(0,l.YR)(e,u),i.set(e,t));return t},{reset(){i=new m.A(v.v.print||2e3)}});g.reset(),y.g&&(0,b.D_)("print",()=>i?i.size:0)},3649:(e,t,r)=>{r.d(t,{B:()=>u});var i=r(4902),n=r(50346),s=r(18947),a=(0,r(78204).L)(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=r(85689),l=r(75555),u=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,i.__extends)(t,e),t.prototype.lift=function(e){var t=new c(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new a},t.prototype.next=function(e){var t=this;(0,l.Y)(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var s=(0,i.__values)(t.currentObservers),a=s.next();!a.done;a=s.next())a.value.next(e)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;(0,l.Y)(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;(0,l.Y)(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0}
1,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,i=this.isStopped,n=this.observers;return r||i?s.Kn:(this.currentObservers=null,n.push(e),new s.yU(function(){t.currentObservers=null,(0,o.o)(n,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,i=this.isStopped;t?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new n.c;return e.source=this,e},t.create=function(e,t){return new c(e,t)},t}(n.c),c=function(e){function t(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return(0,i.__extends)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:s.Kn},t}(u)},7141:(e,t,r)=>{r.d(t,{n:()=>i});function i(e,t){return e.definitions.find(e=>"OperationDefinition"===e.kind&&!!e.name)?.name.value??t}},7927:(e,t,r)=>{r.d(t,{D:()=>tn});var i=r(20996),n=r(63965),s=r(60592),a=r(94587),o=r(74968);let l={kind:a.b.FIELD,name:{kind:a.b.NAME,value:"__typename"}},u=Object.assign(function(e){return(0,o.YR)(e,{SelectionSet:{enter(e,t,r){if(r&&r.kind===a.b.OPERATION_DEFINITION)return;let{selections:i}=e;if(!(!i||i.some(e=>e.kind===a.b.FIELD&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))))&&!(r.kind===a.b.FIELD&&r.directives&&r.directives.some(e=>"export"===e.name.value)))return{...e,selections:[...i,l]}}}})},{added:e=>e===l});var c=r(80593),h=r(86264),d=r(3322);function f(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}var p=r(1300),y=r(78830),m=r(19650),b=r(99853),v=r(39668),g=r(45019),w=r(18476),k=r(24497),S=r(50346),O=r(97460),x=r(99991),_=r(32277);function E(e,t){return e===t}var C=r(45962),T=r(68246),F=r(27126),D=new(r(38853)).q(F.R),R=(r(86223),r(89664)),M=r(74874),N=r(56706),V=r(53932);function I(e,t){let r=t,i=[];return e.definitions.forEach(e=>{if("OperationDefinition"===e.kind)throw(0,m.vA)(10,e.operation,e.name?` named '${e.name.value}'`:"");"FragmentDefinition"===e.kind&&i.push(e)}),void 0===r&&((0,m.V1)(1===i.length,11,i.length),r=i[0].name.value),{...e,definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}},...e.definitions]}}class P{assumeImmutableResults=!1;lookupFragment(e){return null}batch(e){let t,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(()=>t=e.update(this),r),t}recordOptimisticTransaction(e,t){this.performTransaction(e,t)}transformDocument(e){return e}transformForLink(e){return e}identify(e){}gc(){return[]}modify(e){return!1}readQuery(e,t=!!e.optimistic){return this.read({...e,rootId:e.id||"ROOT_QUERY",optimistic:t})}fragmentWatches=new v.b(!0);watchFragment(e){let t,{fragment:r,fragmentName:n,from:s}=e,a=this.getFragmentDoc(r,n),o=(Array.isArray(s)?s:[s]).map(e=>{let t=null==e?e:this.toCacheId(e);if(p.g){let e=n||(0,R.E)(r).name.value;void 0===t&&p.g&&m.V1.warn(118,e)}return t});if(!Array.isArray(s)){let t=this.watchSingleFragment(o[0],a,e);return null===s?t:(0,M.Q)(t,Symbol.for("apollo.transform.individualResult"),e=>({...e,data:e.data??{}}))}function l(e){let r=e.reduce((e,t,r)=>(e.data.push(t.data),e.complete&&=t.complete,e.dataState=e.complete?"complete":"partial",t.missing&&(e.missing||={},e.missing[r]=t.missing),e),{data:[],dataState:"complete",complete:!0});return(0,i.L)(t,r)||(t=r),t}if(0===o.length)return Q;let u=!1,c=o.map(t=>this.watchSingleFragment(t,a,e));return Object.assign((0===c.length?N.w:new S.c(e=>{let t,{length:r}=c,i=Array(r),n=new Map;
1c.forEach((e,t)=>{n.has(e)||n.set(e,new Set),n.get(e).add(t)});let s=n.size,a=n.size;n.forEach((r,n)=>{let o=!1,l=n.subscribe({next:s=>{r.forEach(e=>i[e]=s),!o&&(o=!0,a--),!a&&((t||=new Set(c.filter(e=>e.dirty))).delete(n),t.size||(e.next(i.slice()),t=void 0))},complete:()=>{--s||e.complete()},error:e.error.bind(e)});e.add(l)})})).pipe((0,g.T)(l),(0,w.M)({subscribe:()=>u=!0,unsubscribe:()=>u=!1}),(0,k.t)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>u&&t?t:l(c.map(e=>e.getCurrentResult()))})}onAfterBroadcast=e=>e();watchSingleFragment(e,t,r){if(null===e)return q;let{optimistic:i=!0,variables:n}=r,s=[t,(0,h.M)({id:e,optimistic:i,variables:n})],a=this.fragmentWatches.lookupArray(s);if(!a.observable){var o,l;let c,h=!1;function u(e){let i=e.result;return c&&(0,V.a)(t,{data:c.data},{data:i},r.variables)||(c={data:i,dataState:e.complete?"complete":"partial",complete:e.complete},e.missing&&(c.missing=e.missing.missing)),c}let d=new S.c(r=>{h=!0;let a=this.watch({variables:n,returnPartialData:!0,id:e,query:t,optimistic:i,immediate:!0,callback:e=>{d.dirty=!0,this.onAfterBroadcast(()=>{r.next(u(e)),d.dirty=!1})}});return()=>{h=!1,a(),this.fragmentWatches.removeArray(s)}}).pipe((void 0===l&&(l=O.D),o=null!=o?o:E,(0,x.N)(function(e,t){var r,i=!0;e.subscribe((0,_._)(t,function(e){var n=l(e);(i||!o(r,n))&&(i=!1,r=n,t.next(e))}))})),(0,C.u)({connector:()=>new T.m(1),resetOnRefCountZero:()=>{var e;return void 0===e&&(e=D),new S.c(function(t){var r=0;r<0&&(r=0);var i=0;return e.schedule(function(){t.closed||(t.next(i++),t.complete())},r)})}}));a.observable=Object.assign(d,{dirty:!1,getCurrentResult:()=>h&&c?c:u(this.diff({id:e,query:t,returnPartialData:!0,optimistic:i,variables:n}))})}return a.observable}getFragmentDoc=(0,n.LV)(I,{max:c.v["cache.fragmentQueryDocuments"]||1e3,cache:b.l,makeCacheKey:function(...e){return n.NS.bind(null,...e)}(this)});readFragment(e,t=!!e.optimistic){let r=void 0!==e.from?this.toCacheId(e.from):e.id;return this.read({...e,query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:r,optimistic:t})}writeQuery({id:e,data:t,...r}){return this.write(Object.assign(r,{dataId:e||"ROOT_QUERY",result:t}))}writeFragment({data:e,fragment:t,fragmentName:r,...i}){let n=void 0!==i.from?this.toCacheId(i.from):i.id;return this.write(Object.assign(i,{query:this.getFragmentDoc(t,r),dataId:n,result:e}))}updateQuery(e,t){return this.batch({update(r){let i=r.readQuery(e),n=t(i);return null==n?i:(r.writeQuery({...e,data:n}),n)}})}updateFragment(e,t){return this.batch({update(r){let i=r.readFragment(e),n=t(i);return null==n?i:(r.writeFragment({...e,data:n}),n)}})}toCacheId(e){return"string"==typeof e?e:this.identify(e)}}p.g&&(P.prototype.getMemoryInternals=y.tQ);let j=Object.freeze({data:null,dataState:"complete",complete:!0}),q=Object.assign(new S.c(e=>{e.next(j)}),{dirty:!1,getCurrentResult:()=>j}),A=Object.freeze({data:[],dataState:"complete",complete:!0}),Q=Object.assign(new S.c(e=>{e.next(A)}),{getCurrentResult:()=>A});var L=r(23356);let{hasOwnProperty:z}=Object.prototype,W=function(e,t,r){return this.merge(e[r],t[r])},B=e=>isNaN(+e)?{}:[];class U{options;reconciler;constructor(e={}){this.options=e,this.reconciler=e.reconciler||W}merge(e,t,r={}){let i=r.atPath;if(i?.length){let[n,...s]=i;void 0===e&&(e=B(n));let a=e[n];void 0===a&&s.length&&(a=B(s[0]));let o=this.merge(a,t,{...r,atPath:s});return a!==o&&((e=this.shallowCopyForMerge(e))[n]=o),e}return(Array.isArray(e)&&Array.isArray(t)&&"truncate"===this.options.arrayMerge&&e.length>t.length&&(e=e.slice(0,t.length),this.pastCopies.add(e)),(0,L.U)(t)&&(0,L.U)(e))?(Object.keys(t).forEach(r=>{if(z.call(e,r)){let i=e[r];if(t[r]!==i){let n=this.reconciler(e,t,r);n!==i&&((e=this.shallowCopyForMerge(e))[r]=n)}}else(e=this.shallowCopyForMerge(e))[r]=t[r]}),e):t}isObject=L.U;pastCopies=new Set;shallowCopyForMerge(e){return(0,L.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):{__proto__:Object.getPrototypeOf(e),...e},this.pastCopies.add(e)),e}}function $(e){return{__ref:String(e)}}var K=r(73902),H=r(36956),Y=r(51596),J=r(87693),G=r(94400),X=r(8466),Z=r(68183),ee=r(45265);let{hasOwnProperty:et}=Object.prototype;function er({__typename:e,id:t,_id:r}
1,i){if("string"==typeof e&&(i&&(i.keyObject=null!=t?{id:t}:null!=r?{_id:r}:void 0),null==t&&null!=r&&(t=r),null!=t))return`${e}:${"number"==typeof t||"string"==typeof t?t:JSON.stringify(t)}`}let ei={dataIdFromObject:er,resultCaching:!0},en=/^[_a-z][_0-9a-z]*/i;function es(e){let t=e.match(en);return t?t[0]:e}function ea(e){return(0,L.U)(e)&&!f(e)&&!(0,Y.c)(e)}function eo(e,t){let r=(0,Z.J)((0,ee.z)(e));return{fragmentMap:r,lookupFragment(e){let i=r[e];return!i&&t&&(i=t.lookup(e)),i||null}}}let el={},eu=()=>el,ec={};class eh{policies;group;data={};constructor(e,t){this.policies=e,this.group=t}toObject(){return{...this.data}}has(e){return void 0!==this.lookup(e,!0)}get(e,t){if(this.group.depend(e,t),et.call(this.data,e)){let r=this.data[e];if(r&&et.call(r,t))return r[t]}return"__typename"===t&&et.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof ey?this.parent.get(e,t):void 0}lookup(e,t){return(t&&this.group.depend(e,"__exists"),et.call(this.data,e))?this.data[e]:this instanceof ey?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?{}:void 0}merge(e,t){let r;f(e)&&(e=e.__ref),f(t)&&(t=t.__ref);let i="string"==typeof e?this.lookup(r=e):e,n="string"==typeof t?this.lookup(r=t):t;if(!n)return;(0,m.V1)("string"==typeof r,104);let s=new U({reconciler:eb}).merge(i,n);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){let e={};i||(e.__exists=1),Object.keys(n).forEach(t=>{if(!i||i[t]!==s[t]){e[t]=1;let r=es(t);r===t||this.policies.hasKeyArgs(s.__typename,r)||(e[r]=1),void 0!==s[t]||this instanceof ey||delete s[t]}}),e.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete e.__typename,Object.keys(e).forEach(e=>this.group.dirty(r,e))}}modify(e,t,r){let i=this.lookup(e);if(i){let n={},s=!1,a=!0,o={DELETE:el,INVALIDATE:ec,isReference:f,toReference:this.toReference,canRead:this.canRead,readField:(t,r)=>this.policies.readField("string"==typeof t?{fieldName:t,from:r||$(e)}:t,{store:this})};
1if(Object.keys(i).forEach(l=>{let u=es(l),c=i[l];if(void 0===c)return;let h="function"==typeof t?t:t[l]||(r?void 0:t[u]);if(h){let t=h===eu?el:h((0,K.G)(c),{...o,fieldName:u,storeFieldName:l,storage:this.getStorage(e,l)});if(t===ec)this.group.dirty(e,l);else if(t===el&&(t=void 0),t!==c&&(n[l]=t,s=!0,c=t,p.g)){let e=e=>{if(void 0===this.lookup(e.__ref))return p.g&&m.V1.warn(105,e),!0};if(f(t))e(t);else if(Array.isArray(t)){let r,i=!1;for(let n of t){if(f(n)){if(i=!0,e(n))break}else if("object"==typeof n&&n){let[e]=this.policies.identify(n);e&&(r=n)}if(i&&void 0!==r){p.g&&m.V1.warn(106,r);break}}}}}void 0!==c&&(a=!1)}),s)return this.merge(e,n),a&&(this instanceof ey?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1}delete(e,t,r){let i=this.lookup(e);if(i){let n=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:n,fieldName:t,args:r}):t;return this.modify(e,s?{[s]:eu}:eu,!!r)}return!1}evict(e,t){let r=!1;return e.id&&(et.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof ey&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r}clear(){this.replace(null)}extract(){let e=this.toObject(),t=[];return this.getRootIdSet().forEach(e=>{et.call(this.policies.rootTypenamesById,e)||t.push(e)}),t.length&&(e.__META={extraRootIds:t.sort()}),e}replace(e){if(Object.keys(this.data).forEach(t=>{e&&et.call(e,t)||this.delete(t)}),e){let{__META:t,...r}=e;Object.keys(r).forEach(e=>{this.merge(e,r[e])}),t&&t.extraRootIds.forEach(this.retain,this)}}rootIds={};retain(e){return this.rootIds[e]=(this.rootIds[e]||0)+1}release(e){if(this.rootIds[e]>0){let t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0}getRootIdSet(e=new Set){return Object.keys(this.rootIds).forEach(e.add,e),this instanceof ey?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e}gc(){let e=this.getRootIdSet(),t=this.toObject();e.forEach(r=>{et.call(t,r)&&(Object.keys(this.findChildRefIds(r)).forEach(e.add,e),delete t[r])});let r=Object.keys(t);if(r.length){let e=this;for(;e instanceof ey;)e=e.parent;r.forEach(t=>e.delete(t))}return r}refs={};findChildRefIds(e){if(!et.call(this.refs,e)){let t=this.refs[e]={},r=this.data[e];if(!r)return t;let i=new Set([r]);i.forEach(e=>{f(e)&&(t[e.__ref]=!0),(0,L.U)(e)&&Object.keys(e).forEach(t=>{let r=e[t];(0,L.U)(r)&&i.add(r)})})}return this.refs[e]}makeCacheKey(){return this.group.keyMaker.lookupArray(arguments)}getFieldValue=(e,t)=>(0,K.G)(f(e)?this.get(e.__ref,t):e&&e[t]);canRead=e=>f(e)?this.has(e.__ref):"object"==typeof e;toReference=(e,t)=>{if("string"==typeof e)return $(e);if(f(e))return e;let[r]=this.policies.identify(e);if(r){let i=$(r);return t&&this.merge(r,e),i}};get supportsResultCaching(){return this.group.caching}}class ed{caching;parent;d=null;keyMaker;constructor(e,t=null){this.caching=e,this.parent=t,this.resetCaching()}resetCaching(){this.d=this.caching?(0,n.yN)():null,this.keyMaker=new v.b}depend(e,t){if(this.d){this.d(t+"#"+e);let r=es(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}}dirty(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")}}function ef(e,t){ev(e)&&e.group.depend(t,"__exists")}class ep extends eh{constructor({policies:e,resultCaching:t=!0,seed:r}){super(e,new ed(t)),r&&this.replace(r)}stump=new em(this);addLayer(e,t){return this.stump.addLayer(e,t)}removeLayer(){return this}storageTrie=new v.b;getStorage(){return this.storageTrie.lookupArray(arguments)}}eh.Root=ep;class ey extends eh{id;parent;replay;group;
1constructor(e,t,r,i){super(t.policies,i),this.id=e,this.parent=t,this.replay=r,this.group=i,r(this)}addLayer(e,t){return new ey(e,this,t,this.group)}removeLayer(e){let t=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(e=>{let r=this.data[e],n=t.lookup(e);n?r?r!==n&&Object.keys(r).forEach(t=>{(0,i.L)(r[t],n[t])||this.group.dirty(e,t)}):(this.group.dirty(e,"__exists"),Object.keys(n).forEach(t=>{this.group.dirty(e,t)})):this.delete(e)}),t):t===this.parent?this:t.addLayer(this.id,this.replay)}toObject(){return{...this.parent.toObject(),...this.data}}findChildRefIds(e){let t=this.parent.findChildRefIds(e);return et.call(this.data,e)?{...t,...super.findChildRefIds(e)}:t}getStorage(...e){let t=this.parent;for(;t.parent;)t=t.parent;return t.getStorage(...e)}}class em extends ey{constructor(e){super("EntityStore.Stump",e,()=>{},new ed(e.group.caching,e.group))}removeLayer(){return this}merge(e,t){return this.parent.merge(e,t)}}function eb(e,t,r){let n=e[r],s=t[r];return(0,i.L)(n,s)?n:s}function ev(e){return!!(e&&e.supportsResultCaching)}var eg=r(90240),ew=r(99720),ek=r(91031);function eS(e,t){if(e.arguments&&e.arguments.length){let r={};return e.arguments.forEach(({name:e,value:i})=>(0,ek.J)(r,e,i,t)),r}return null}let eO=["connection","include","skip","client","rest","export","nonreactive","stream"],ex=h.M,e_=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){let e=r.connection.filter?r.connection.filter:[];e.sort();let i={};e.forEach(e=>{i[e]=t[e]});let n=ex(i);if("{}"!==n)return`${r.connection.key}(${n})`}return r.connection.key}let i=e;if(t){let e=ex(t);"{}"!==e&&(i+=`(${e})`)}return r&&Object.keys(r).forEach(e=>{-1===eO.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?i+=`@${e}(${ex(r[e])})`:i+=`@${e}`)}),i},{setStringify(e){let t=ex;return ex=e,t}});var eE=r(29503),eC=r(24676);let eT={};function eF(e){let t=JSON.stringify(e);return eT[t]||(eT[t]={})}function eD(e){let t=eF(e);return t.keyFieldsFn||(t.keyFieldsFn=(t,r)=>{let i=(e,t)=>r.readField(t,e),n=r.keyObject=eM(e,e=>{let n=eV(r.storeObject,e,i);return void 0===n&&t!==r.storeObject&&et.call(t,e[0])&&(n=eV(t,e,eN)),(0,m.V1)(void 0!==n,107,e.join("."),t),n});return`${r.typename}:${JSON.stringify(n)}`})}function eR(e){let t=eF(e);return t.keyArgsFn||(t.keyArgsFn=(t,{field:r,variables:i,fieldName:n})=>{let s=JSON.stringify(eM(e,e=>{let n=e[0],s=n.charAt(0);if("@"===s){if(r&&(0,eC.E)(r.directives)){let t=n.slice(1),s=r.directives.find(e=>e.name.value===t),a=s&&eS(s,i);return a&&eV(a,e.slice(1))}return}if("$"===s){let t=n.slice(1);if(i&&et.call(i,t)){let r=e.slice(0);return r[0]=t,eV(i,r)}return}if(t)return eV(t,e)}));return(t||"{}"!==s)&&(n+=":"+s),n})}function eM(e,t){let r=new U;return(function e(t){let r=eF(t);if(!r.paths){let i=r.paths=[],n=[];t.forEach((r,s)=>{(0,Y.c)(r)?(e(r).forEach(e=>i.push(n.concat(e))),n.length=0):(n.push(r),(0,Y.c)(t[s+1])||(i.push(n.slice(0)),n.length=0))})}return r.paths})(e).reduce((e,i)=>{let n=t(i);if(void 0!==n){for(let e=i.length-1;e>=0;--e)n={[i[e]]:n};e=r.merge(e,n)}return e},{})}function eN(e,t){return e[t]}function eV(e,t,r){return r=r||eN,function e(t){return(0,L.U)(t)?(0,Y.c)(t)?t.map(e):eM(Object.keys(t).sort(),e=>eV(t,e)):t}(t.reduce(function e(t,i){return(0,Y.c)(t)?t.map(t=>e(t,i)):t&&r(t,i)},e))}let eI=new n.DX,eP=new WeakMap;function ej(e){let t=eP.get(e);return t||eP.set(e,t={vars:new Set,dep:(0,n.yN)()}),t}function eq(e){ej(e).vars.forEach(t=>t.forgetCache(e))}function eA(e){let t=new Set,r=new Set,i=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(e=>{var t;ej(e).dep.dirty(i),(t=e).broadcastWatches&&t.broadcastWatches()});let n=Array.from(r);r.clear(),n.forEach(t=>t(e))}}else{let e=eI.getValue();e&&(n(e),ej(e).dep(i))}return e};i.onNextChange=e=>(r.add(e),()=>{r.delete(e)});let n=i.attachCache=e=>(t.add(e),ej(e).vars.add(i),i);return i.forgetCache=e=>t.delete(e),i}function eQ(e){return void 0!==e.args?e.args:e.field?eS(e.field,e.variables):null}let eL=()=>void 0,ez=(e,t)=>t.fieldName,eW=(e,t,{mergeObjects:r})=>r(e,t),eB=(e,t)=>t,eU=(e,t,{streamFieldInfo:r,existingData:i})=>{if(!e&&!i)return t;let n=[],s=e??i,a=r?.isLastChunk?t.length:Math.max(s.length,t.length);for(let e=0;e<a;e++)n[e]=void 0===t[e]?s[e]:t[e];return n};class e${config;typePolicies={};toBeAdded={};supertypeMap=new Map;fuzzySubtypes=new Map;cache;rootIdsByTypename={};rootTypenamesById={};usingPossibleTypes=!1;constructor(e){this.config=e,this.config={dataIdFromObject:er,...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)}identify(e,t){let r,i=this,n=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];let s=t&&t.storeObject||e,a={...t,typename:n,storeObject:s,readField:t&&t.readField||((...e)=>{let t=eH(e,s);return i.readField(t,{store:i.cache.data,variables:t.variables})})},o=n&&this.getTypePolicy(n),l=o&&o.keyFn||this.config.dataIdFromObject;return eg.y.withValue(!0,()=>{for(;l;){let t=l({...e,...s},a);if((0,Y.c)(t))l=eD(t);else{r=t;break}}}),r=r?String(r):void 0,a.keyObject?[r,a.keyObject]:[r]}addTypePolicies(e){Object.keys(e).forEach(t=>{let{queryType:r,mutationType:i,subscriptionType:n,...s}=e[t];r&&this.setRootTypename("Query",t),i&&this.setRootTypename("Mutation",t),n&&this.setRootTypename("Subscription",t),et.call(this.toBeAdded,t)?this.toBeAdded[t].push(s):this.toBeAdded[t]=[s]})}updateTypePolicy(e,t,r){let i=this.getTypePolicy(e),{keyFields:n,fields:s}=t;function a(e,t){e.merge="function"==typeof t?t:!0===t?eW:!1===t?eB:e.merge}a(i,t.merge),i.keyFn=!1===n?eL:(0,Y.c)(n)?eD(n):"function"==typeof n?n:i.keyFn,s&&Object.keys(s).forEac
1h(t=>{let i=r[t];i&&i?.typename===e||(i=r[t]={typename:e});let n=s[t];if("function"==typeof n)i.read=n;else{let{keyArgs:e,read:t,merge:r}=n;i.keyFn=!1===e?ez:(0,Y.c)(e)?eR(e):"function"==typeof e?e:i.keyFn,"function"==typeof t&&(i.read=t),a(i,r)}i.read&&i.merge&&(i.keyFn=i.keyFn||ez)})}setRootTypename(e,t=e){let r="ROOT_"+e.toUpperCase(),i=this.rootTypenamesById[r];t!==i&&((0,m.V1)(!i||i===e,108,e),i&&delete this.rootIdsByTypename[i],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)}addPossibleTypes(e){this.usingPossibleTypes=!0,Object.keys(e).forEach(t=>{this.getSupertypeSet(t,!0),e[t].forEach(e=>{this.getSupertypeSet(e,!0).add(t);let r=e.match(en);r&&r[0]===e||this.fuzzySubtypes.set(e,new RegExp(e))})})}getTypePolicy(e){if(!et.call(this.typePolicies,e)){let t=this.typePolicies[e]={};t.fields={};let r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((t,i)=>{if(t.test(e)){let e=this.supertypeMap.get(i);e&&e.forEach(e=>r.add(e))}})),r&&r.size&&r.forEach(e=>{let{fields:r,...i}=this.getTypePolicy(e);Object.assign(t,i),Object.assign(t.fields,r)})}let t=this.toBeAdded[e];return t&&t.length&&t.splice(0).forEach(t=>{this.updateTypePolicy(e,t,this.typePolicies[e].fields)}),this.typePolicies[e]}getFieldPolicy(e,t){if(e)return this.getTypePolicy(e).fields[t]}getSupertypeSet(e,t){let r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r}fragmentMatches(e,t,r,i){if(!e.typeCondition)return!0;if(!t)return!1;let n=e.typeCondition.name.value;if(t===n)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(n)){let s=this.getSupertypeSet(t,!0),a=[s],o=e=>{let t=this.getSupertypeSet(e,!1);t&&t.size&&0>a.indexOf(t)&&a.push(t)},l=!!(r&&this.fuzzySubtypes.size),u=!1;for(let c=0;c<a.length;++c){let h=a[c];if(h.has(n))return s.has(n)||(u&&p.g&&m.V1.warn(109,t,n),s.add(n)),!0;h.forEach(o),l&&c===a.length-1&&function e(t,r,i){return!!(0,L.U)(r)&&((0,Y.c)(r)?r.every(r=>e(t,r,i)):t.selections.every(t=>{if((0,J.d)(t)&&(0,G.M)(t,i)){let n=(0,X.u)(t);return et.call(r,n)&&(!t.selectionSet||e(t.selectionSet,r[n],i))}return!0}))}(e.selectionSet,r,i)&&(l=!1,u=!0,this.fuzzySubtypes.forEach((e,r)=>{let i=t.match(e);i&&i[0]===t&&o(r)}))}}return!1}hasKeyArgs(e,t){let r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)}getStoreFieldName(e){var t,r;let i,n,s,{typename:a,fieldName:o}=e,l=this.getFieldPolicy(a,o),u=l&&l.keyFn;if(u&&a){let t={typename:a,fieldName:o,field:e.field||null,variables:e.variables},r=eQ(e);for(;u;){let e=u(r,t);if((0,Y.c)(e))u=eR(e);else{i=e||o;break}}}return(void 0===i&&(i=e.field?(t=e.field,r=e.variables,n=null,t.directives&&(n={},t.directives.forEach(e=>{n[e.name.value]={},e.arguments&&e.arguments.forEach(({name:t,value:i})=>(0,ek.J)(n[e.name.value],t,i,r))})),s=null,t.arguments&&t.arguments.length&&(s={},t.arguments.forEach(({name:e,value:t})=>(0,ek.J)(s,e,t,r))),e_(t.name.value,s,n)):e_(o,eQ(e))),!1===i)?o:o===es(i)?i:o+":"+i}readField(e,t){let r=e.from;if(!r||!(e.field||e.fieldName))return;if(void 0===e.typename){let i=t.store.getFieldValue(r,"__typename");i&&(e.typename=i)}let i=this.getStoreFieldName(e),n=es(i),s=t.store.getFieldValue(r,i),a=this.getFieldPolicy(e.typename,n),o=a&&a.read;if(o){let n=eK(this,r,e,t,t.store.getStorage(f(r)?r.__ref:r,i));return eI.withValue(this.cache,o,[s,n])}return s}getReadFunction(e,t){let r=this.getFieldPolicy(e,t);return r&&r.read}getMergeFunction(e,t,r){let i=this.getFieldPolicy(e,t),n=i&&i.merge;return!n&&r&&(n=(i=this.getTypePolicy(r))&&i.merge),n}runMergeFunction(e,t,{field:r,typename:n,merge:s,path:a},o,l){let u=e;if(s===eW)return eY(o.store)(e,t);if(s===eB)return t;o.overwrite&&(e=void 0);let c=o.extensions?.[ew.DH]?.deref()?.peekArray(a);if(c){let{current:e,previous:r}=c;if(r&&(0,i.L)(r.incoming,t)&&(0,i.L)(r.streamFieldInfo,e))return r.result}let h=s(e,t,function(e,t,r,i,n,s){let a={...eK(e,t,r,i,n),extensions:i.extensions,existingData:s},o=i.extensions;if(o&&ew.DH in o){let{[ew.DH]:e,...t}=o,i=e?.deref()?.peekArray(r.path);i&&(a.streamFieldInfo=i.current),a.extensions=0===Object.keys(t).length?void 0:t}return a}(this,void 0,{typename:n,fieldName:r.name.value,field:r,variables:o.variables,path:a},o,l||{},u));return c&&(c.previous={incoming:t,streamFieldInfo:c.current,result:h}),h}}function eK(e,t,r,i,n){let s=e.getStoreFieldName(r),a=es(s),o=r.variables||i.variables,{toReference:l,canRead:u}=i.store;return{args:eQ(r),field:r.field||null,fieldName:a,storeFieldName:s,variables:o,isReference:f,toReference:l,storage:n,cache:e.cache,canRead:u,readField:(...r)=>e.readField(eH(r,t,o),i),mergeObjects:eY(i.store)}}
1function eH(e,t,r){let i,{0:n,1:s,length:a}=e;return"string"==typeof n?i={fieldName:n,from:a>1?s:t}:(i={...n},et.call(i,"from")||(i.from=t)),p.g&&void 0===i.from&&p.g&&m.V1.warn(110,(0,eE.p)(Array.from(e))),void 0===i.variables&&(i.variables=r),i}function eY(e){return function(t,r){if((0,Y.c)(t)||(0,Y.c)(r))throw(0,m.vA)(111);if((0,L.U)(t)&&(0,L.U)(r)){let i=e.getFieldValue(t,"__typename"),n=e.getFieldValue(r,"__typename");if(i&&n&&i!==n)return r;if(f(t)&&ea(r))return e.merge(t.__ref,r),t;if(ea(t)&&f(r))return e.merge(t,r.__ref),r;if(ea(t)&&ea(r))return{...t,...r}}return r}}var eJ=r(96540),eG=r(26790),eX=r(67509),eZ=r(40485);class e0 extends Error{message;path;query;variables;constructor(e,t,r,i){if(super(e),this.message=e,this.path=t,this.query=r,this.variables=i,this.name="MissingFieldError",Array.isArray(this.path)){this.missing=this.message;for(let e=this.path.length-1;e>=0;--e)this.missing={[this.path[e]]:this.missing}}else this.missing=this.path;this.__proto__=e0.prototype}missing}function e1(e){return[e.selectionSet,e.objectOrReference,e.context]}class e9{executeSelectionSet;executeSubSelectedArray;config;knownResults=new WeakMap;constructor(e){this.config=e,this.executeSelectionSet=(0,n.LV)(e=>{let t=e1(e),r=this.executeSelectionSet.peek(...t);return r||(ef(e.context.store,e.enclosingRef.__ref),this.execSelectionSetImpl(e))},{max:c.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:e1,makeCacheKey(e,t,r){if(ev(r.store))return r.store.makeCacheKey(e,f(t)?t.__ref:t,r.varString)}}),this.executeSubSelectedArray=(0,n.LV)(e=>(ef(e.context.store,e.enclosingRef.__ref),this.execSubSelectedArrayImpl(e)),{max:c.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey({field:e,array:t,context:r}){if(ev(r.store))return r.store.makeCacheKey(e,t,r.varString)}})}diffQueryAgainstStore({store:e,query:t,rootId:r="ROOT_QUERY",variables:i,returnPartialData:n=!0}){let s,a=this.config.cache.policies;i={...(0,eJ.w)((0,eG.A)(t)),...i};let o=$(r),l=this.executeSelectionSet({selectionSet:(0,eX.V)(t).selectionSet,objectOrReference:o,enclosingRef:o,context:{store:e,query:t,policies:a,variables:i,varString:(0,h.M)(i),...eo(t,this.config.fragments)}});l.missing&&(s=new e0(function(e){try{JSON.stringify(e,(e,t)=>{if("string"==typeof t)throw t;return t})}catch(e){return e}}(l.missing),l.missing,t,i));let u=!s,{result:c}=l;return{result:u?c:n?0===Object.keys(c).length?null:c:null,complete:u,missing:s}}isFresh(e,t,r,i){if(ev(i.store)&&this.knownResults.get(e)===r){let n=this.executeSelectionSet.peek(r,t,i);if(n&&e===n.result)return!0}return!1}execSelectionSetImpl({selectionSet:e,objectOrReference:t,enclosingRef:r,context:i}){let n;if(f(t)&&!i.policies.rootTypenamesById[t.__ref]&&!i.store.has(t.__ref))return{result:{},missing:`Dangling reference to missing ${t.__ref} object`};let{variables:s,policies:o,store:l}=i,c=l.getFieldValue(t,"__typename"),h=[],d=new U;function p(e,t){return e.missing&&(n=d.merge(n,{[t]:e.missing})),e.result}"string"!=typeof c||o.rootIdsByTypename[c]||h.push({__typename:c});let y=new Set(e.selections);y.forEach(e=>{if((0,G.M)(e,s))if((0,J.d)(e)){let s=o.readField({fieldName:e.name.value,field:e,variables:i.variables,from:t},i),a=(0,X.u)(e);void 0===s?u.added(e)||(n=d.merge(n,{[a]:`Can't find field '${e.name.value}' on ${f(t)?t.__ref+" object":"object "+JSON.stringify(t,null,2)}`})):(0,Y.c)(s)?s.length>0&&(s=p(this.executeSubSelectedArray({field:e,array:s,enclosingRef:r,context:i}),a)):e.selectionSet&&null!=s&&(s=p(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:s,enclosingRef:f(s)?s:r,context:i}),a)),void 0!==s&&h.push({[a]:s})}else{let t=(0,eZ.H)(e,i.lookupFragment);if(!t&&e.kind===a.b.FRAGMENT_SPREAD)throw(0,m.vA)(112,e.name.value);t&&o.fragmentMatches(t,c)&&t.selectionSet.selections.forEach(y.add,y)}});let b={result:function(e){let t=e[0]||{},r=e.length;if(r>1){let i=new U;for(let n=1;n<r;++n)t=i.merge(t,e[n])}return t}(h),missing:n},v=(0,K.G)(b);return v.result&&this.knownResults.set(v.result,e),v}execSubSelectedArrayImpl({field:e,array:t,enclosingRef:r,context:i}){let n,s=new U;
1function a(e,t){return e.missing&&(n=s.merge(n,{[t]:e.missing})),e.result}return e.selectionSet&&(t=t.filter(e=>void 0===e||i.store.canRead(e))),{result:t=t.map((t,n)=>null===t?null:(0,Y.c)(t)?a(this.executeSubSelectedArray({field:e,array:t,enclosingRef:r,context:i}),n):e.selectionSet?a(this.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:t,enclosingRef:f(t)?t:r,context:i}),n):(p.g&&function(e,t,r){if(!t.selectionSet){let i=new Set([r]);i.forEach(r=>{(0,L.U)(r)&&((0,m.V1)(!f(r),113,f(r)?e.get(r.__ref,"__typename"):r&&r.__typename,t.name.value),Object.values(r).forEach(i.add,i))})}}(i.store,e,t),t)),missing:n}}}var e6=r(26595),e4=r(38239);let{toString:e8}=Object.prototype;function e2(e,t,r){let i=`${t}${r}`,n=e.flavors.get(i);return n||e.flavors.set(i,n=e.clientOnly===t&&e.deferred===r?e:{...e,clientOnly:t,deferred:r}),n}class e3{cache;reader;fragments;constructor(e,t,r){this.cache=e,this.reader=t,this.fragments=r}writeToStore(e,{query:t,result:r,dataId:n,variables:s,overwrite:a,extensions:o}){let l=(0,e6.V)(t),u=new U,c={store:e,written:{},merge:(e,t)=>u.merge(e,t),variables:s={...(0,eJ.w)(l),...s},varString:(0,h.M)(s),...eo(t,this.fragments),overwrite:!!a,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map,extensions:o},d=this.processSelectionSet({result:r||{},dataId:n,selectionSet:l.selectionSet,mergeTree:{map:new Map},context:c,path:[]});if(!f(d))throw(0,m.vA)(114,r);return c.incomingById.forEach(({storeObject:t,mergeTree:r,fieldNodeSet:n},s)=>{let a=$(s);if(r&&r.map.size){let e=this.applyMerges(r,a,t,c);if(f(e))return;t=e}if(p.g&&!c.overwrite){let e={};n.forEach(t=>{t.selectionSet&&(e[t.name.value]=!0)}),Object.keys(t).forEach(n=>{let s;!0!==e[es(n)]||(s=r&&r.map.get(n))&&s.info&&s.info.merge||function(e,t,r,n){let s=e=>{let t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=s(e);if(!a)return;let o=s(t);if(!o||f(a)||(0,i.L)(a,o)||Object.keys(a).every(e=>void 0!==n.getFieldValue(o,e)))return;let l=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),u=es(r),c=`${l}.${u}`;if(tr.has(c))return;tr.add(c);let h=[];(0,Y.c)(a)||(0,Y.c)(o)||[a,o].forEach(e=>{let t=n.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),p.g&&m.V1.warn(117,u,l,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",c,Array.isArray(a)?[...a]:{...a},Array.isArray(o)?[...o]:{...o})}(a,t,n,c.store)})}e.merge(s,t)}),e.retain(d.__ref),d}processSelectionSet({dataId:e,result:t,selectionSet:r,context:i,mergeTree:n,path:s}){let{policies:a}=this.cache,o={},l=e&&a.rootTypenamesById[e]||ti(t,r,i.fragmentMap)||e&&i.store.get(e,"__typename");"string"==typeof l&&(o.__typename=l);let c=(...e)=>{let t=eH(e,o,i.variables);if(f(t.from)){let e=i.incomingById.get(t.from.__ref);if(e){let r=a.readField({...t,from:e.storeObject},i);if(void 0!==r)return r}}return a.readField(t,i)},h=new Set;this.flattenFields(r,t,i,l).forEach((e,r)=>{let i=t[(0,X.u)(r)],d=[...s,r.name.value];if(h.add(r),void 0!==i){let t,s=a.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),u=e7(n,s),h=this.processFieldValue(i,r,r.selectionSet?e2(e,!1,!1):e,u,d);r.selectionSet&&(f(h)||ea(h))&&(t=c("__typename",h));let p=a.getMergeFunction(l,r.name.value,t);p?u.info={field:r,typename:l,merge:p,path:d}:(0,e4.d)(["stream"],r)&&Array.isArray(h)&&e.extensions?.[ew.DH]?u.info={field:r,typename:l,merge:eU,path:d}:tt(n,s),o=e.merge(o,{[s]:h})}else!p.g||e.clientOnly||e.deferred||u.added(r)||a.getReadFunction(l,r.name.value)||m.V1.error(115,(0,X.u)(r),t)});try{let[n,s]=a.identify(t,{typename:l,selectionSet:r,fragmentMap:i.fragmentMap,storeObject:o,readField:c});e=e||n,s&&(o=i.merge(o,s))}catch(t){if(!e)throw t}if("string"==typeof e){let s=$(e),a=i.written[e]||(i.written[e]=[]);if(a.indexOf(r)>=0||(a.push(r),this.reader&&this.reader.isFresh(t,s,r,i)))return s;let l=i.incomingById.get(e);return l?(l.storeObject=i.merge(l.storeObject,o),l.mergeTree=function e(t,r){if(t===r||!r||te(r))return t;if(!t||te(t))return r;let i=t.info&&r.info?{...t.info,...r.info}:t.info||r.info,n=t.map.size&&r.map.size,s={info:i,map:n?new Map:t.map.size?t.map:r.map};if(n){let i=new Set(r.map.keys());
1t.map.forEach((t,n)=>{s.map.set(n,e(t,r.map.get(n))),i.delete(n)}),i.forEach(i=>{s.map.set(i,e(r.map.get(i),t.map.get(i)))})}return s}(l.mergeTree,n),h.forEach(e=>l.fieldNodeSet.add(e))):i.incomingById.set(e,{storeObject:o,mergeTree:te(n)?void 0:n,fieldNodeSet:h}),s}return o}processFieldValue(e,t,r,i,n){return t.selectionSet&&null!==e?(0,Y.c)(e)?e.map((e,s)=>{let a=this.processFieldValue(e,t,r,e7(i,s),[...n,s]);return tt(i,s),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:i,path:n}):p.g?function e(t,r){switch(e8.call(t)){case"[object Array]":{if((r=r||new Map).has(t))return r.get(t);let i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i}case"[object Object]":{if((r=r||new Map).has(t))return r.get(t);let i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(n=>{i[n]=e(t[n],r)}),i}default:return t}}(e):e}flattenFields(e,t,r,i=ti(t,e,r.fragmentMap)){let n=new Map,{policies:s}=this.cache,o=new v.b(!1);return!function e(l,u){let c=o.lookup(l,u.clientOnly,u.deferred);c.visited||(c.visited=!0,l.selections.forEach(o=>{if(!(0,G.M)(o,r.variables))return;let{clientOnly:l,deferred:c}=u;if(!(l&&c)&&(0,eC.E)(o.directives)&&o.directives.forEach(e=>{let t=e.name.value;if("client"===t&&(l=!0),"defer"===t){let t=eS(e,r.variables);t&&!1===t.if||(c=!0)}}),(0,J.d)(o)){let e=n.get(o);e&&(l=l&&e.clientOnly,c=c&&e.deferred),n.set(o,e2(r,l,c))}else{let n=(0,eZ.H)(o,r.lookupFragment);if(!n&&o.kind===a.b.FRAGMENT_SPREAD)throw(0,m.vA)(116,o.name.value);n&&s.fragmentMatches(n,i,t,r.variables)&&e(n.selectionSet,e2(r,l,c))}}))}(e,r),n}applyMerges(e,t,r,i,n){if(e.map.size&&!f(r)){let s,a=!(0,Y.c)(r)&&(f(t)||ea(t))?t:void 0,o=r;a&&!n&&(n=[f(a)?a.__ref:a]);let l=(e,t)=>(0,Y.c)(e)?"number"==typeof t?e[t]:void 0:i.store.getFieldValue(e,String(t));e.map.forEach((e,t)=>{let r=l(a,t),u=l(o,t);if(void 0===u)return;n&&n.push(t);let c=this.applyMerges(e,r,u,i,n);c!==u&&(s=s||new Map).set(t,c),n&&(0,m.V1)(n.pop()===t)}),s&&(r=(0,Y.c)(o)?o.slice(0):{...o},s.forEach((e,t)=>{r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,i,n&&i.store.getStorage(...n)):r}}let e5=[];function e7({map:e},t){return e.has(t)||e.set(t,e5.pop()||{map:new Map}),e.get(t)}function te(e){return!e||!(e.info||e.map.size)}function tt({map:e},t){let r=e.get(t);r&&te(r)&&(e5.push(r),e.delete(t))}let tr=new Set;function ti(e,t,r){let i;for(let r of t.selections)if((0,J.d)(r)){if("__typename"===r.name.value)return e[(0,X.u)(r)]}else i?i.push(r):i=[r];if("string"==typeof e.__typename)return e.__typename;if(i)for(let t of i){let i=ti(e,(0,eZ.H)(t,r).selectionSet,r);if("string"==typeof i)return i}}class tn extends P{data;optimisticData;config;watches=new Set;storeReader;storeWriter;addTypenameTransform=new s.c(u);maybeBroadcastWatch;assumeImmutableResults=!0;policies;makeVar=eA;constructor(e={}){super(),this.config=function(e){return(0,H.o)(ei,e)}(e),this.policies=new e$({cache:this,dataIdFromObject:this.config.dataIdFromObject,possibleTypes:this.config.possibleTypes,typePolicies:this.config.typePolicies}),this.init()}init(){let e=this.data=new eh.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()}resetResultCache(){let{fragments:e}=this.config;this.addTypenameTransform.resetCache(),e?.resetCaches(),this.storeWriter=new e3(this,this.storeReader=new e9({cache:this,fragments:e}),e),this.maybeBroadcastWatch=(0,n.LV)((e,t)=>this.broadcastWatch(e,t),{max:c.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:e=>{let t=e.optimistic?this.optimisticData:this.data;if(ev(t)){let{optimistic:r,id:i,variables:n}=e;return t.makeCacheKey(e.query,e.callback,(0,h.M)({optimistic:r,id:i,variables:n}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(e=>e.resetCaching())}restore(e){return this.init(),e&&this.data.replace(e),this}extract(e=!1){return(e?this.optimisticData:this.data).extract()}read(e){let{returnPartialData:t=!1}=e;return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:t}).result}write(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}modify(e){if(et.call(e,"id")&&!e.id)return!1;let t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields,!1)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}diff(e){return this.storeReader.diffQueryAgainstStore({...e,store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config})}watch(e){var t;
1return this.watches.size||(t=this,ej(t).vars.forEach(e=>e.attachCache(t))),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),()=>{this.watches.delete(e)&&!this.watches.size&&eq(this),this.maybeBroadcastWatch.forget(e)}}gc(e){h.M.reset(),d.y.reset();let t=this.optimisticData.gc();return e&&!this.txCount&&e.resetResultCache&&this.resetResultCache(),t}retain(e,t){return(t?this.optimisticData:this.data).retain(e)}release(e,t){return(t?this.optimisticData:this.data).release(e)}identify(e){if(f(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){p.g&&m.V1.warn(e)}}evict(e){if(!e.id){if(et.call(e,"id"))return!1;e={...e,id:"ROOT_QUERY"}}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}}reset(e){return this.init(),h.M.reset(),e&&e.discardWatches?(this.watches.forEach(e=>this.maybeBroadcastWatch.forget(e)),this.watches.clear(),eq(this)):this.broadcastWatches(),Promise.resolve()}removeOptimistic(e){let t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())}txCount=0;batch(e){let t,{update:r,optimistic:i=!0,removeOptimistic:n,onWatchUpdated:s}=e,a=e=>{let{data:i,optimisticData:n}=this;++this.txCount,e&&(this.data=this.optimisticData=e);try{return t=r(this)}finally{--this.txCount,this.data=i,this.optimisticData=n}},o=new Set;return s&&!this.txCount&&this.broadcastWatches({...e,onWatchUpdated:e=>
1(o.add(e),!1)}),"string"==typeof i?this.optimisticData=this.optimisticData.addLayer(i,a):!1===i?a(this.data):a(),"string"==typeof n&&(this.optimisticData=this.optimisticData.removeLayer(n)),s&&o.size?(this.broadcastWatches({...e,onWatchUpdated(e,t){let r=s.call(this,e,t);return!1!==r&&o.delete(e),r}}),o.size&&o.forEach(e=>this.maybeBroadcastWatch.dirty(e))):this.broadcastWatches(e),t}performTransaction(e,t){return this.batch({update:e,optimistic:t||null!==t})}transformDocument(e){return this.addTypenameTransform.transformDocument(this.addFragmentsToDocument(e))}fragmentMatches(e,t){return this.policies.fragmentMatches(e,t)}lookupFragment(e){return this.config.fragments?.lookup(e)||null}resolvesClientField(e,t){return!!this.policies.getReadFunction(e,t)}broadcastWatches(e){if(!this.txCount){let t=this.onAfterBroadcast,r=new Set;this.onAfterBroadcast=e=>{r.add(e)};try{this.watches.forEach(t=>this.maybeBroadcastWatch(t,e)),r.forEach(e=>e())}finally{this.onAfterBroadcast=t}}}addFragmentsToDocument(e){let{fragments:t}=this.config;return t?t.transform(e):e}broadcastWatch(e,t){let{lastDiff:r}=e,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,i.L)(r.result,n.result)||e.callback(e.lastDiff=n,r))}}p.g&&(tn.prototype.getMemoryInternals=y.cM)},8466:(e,t,r)=>{r.d(t,{u:()=>i});function i(e){return e.alias?e.alias.value:e.name.value}},9489:(e,t,r)=>{r.d(t,{R:()=>e9});var i,n,s=r(86158),a=r(45019),o=r(38239),l=r(19650);class u{isIncrementalResult(e){return!1}prepareRequest(e){return(0,l.V1)(!(0,o.d)(["defer","stream"],e.query),67),e}extractErrors(){}startRequest=void 0}let c=r(88843).C.execute;var h=r(60592),d=r(1300),f=r(25977),p=r(7141),y=r(36956),m=r(14824),b=r(74874),v=r(74968);function g(e){return(0,v.YR)(e,{FragmentSpread(e){if(!e.directives?.some(({name:e})=>"unmask"===e.value))return null}})}var w=r(78830),k=r(84918),S=r(39668),O=r(94587),x=r(50346),_=r(77698);function E(e,t){var r=(0,_.T)(e)?e:function(){return e},i=function(e){return e.error(r())};return new x.c(t?function(e){return t.schedule(i,0,e)}:i)}var C=r(2943),T=r(99991),F=r(65104),D=r(32277);function R(e,t,r){return(void 0===r&&(r=1/0),(0,_.T)(t))?R(function(r,i){return(0,a.T)(function(e,n){return t(r,e,i,n)})((0,C.Tg)(e(r,i)))},r):("number"==typeof t&&(r=t),(0,T.N)(function(t,i){var n,s,a,o,l,u,c,h;return n=r,s=[],a=0,o=0,l=!1,u=function(){!l||s.length||a||i.complete()},c=function(e){return a<n?h(e):s.push(e)},h=function(t){a++;var r=!1;(0,C.Tg)(e(t,o++)).subscribe((0,D._)(i,function(e){i.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;s.length&&a<n;)!function(){var e=s.shift();h(e)}();u()}catch(e){i.error(e)}}))},t.subscribe((0,D._)(i,c,function(){l=!0,u()})),function(){}}))}var M=r(22124);function N(e,t){return void 0===t&&(t=0),(0,T.N)(function(r,i){i.add(e.schedule(function(){return r.subscribe(i)},t))})}var V=r(63136);function I(e,t){if(!e)throw Error("Iterable cannot be null");return new x.c(function(r){(0,F.N)(r,t,function(){var i=e[Symbol.asyncIterator]();(0,F.N)(r,t,function(){i.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}var P=r(61930),j=r(72011),q=r(77256),A=r(29572),Q=r(63672),L=r(21370),z=r(22449);function W(e,t){return t?function(e,t){if(null!=e){if((0,P.l)(e))return(0,C.Tg)(e).pipe(N(t),(0,M.Q)(t));if((0,q.X)(e))return new x.c(function(r){var i=0;return t.schedule(function(){i===e.length?r.complete():(r.next(e[i++]),r.closed||this.schedule())})});if((0,j.y)(e))return(0,C.Tg)(e).pipe(N(t),(0,M.Q)(t));if((0,Q.T)(e))return I(e,t);if((0,A.x)(e))return new x.c(function(r){var i;return(0,F.N)(r,t,function(){i=e[V.l](),(0,F.N)(r,t,function(){var e,t,n;try{t=(e=i.next()).value,n=e.done}catch(e){r.error(e);return}n?r.complete():r.next(t)},0,!0)}),function(){return(0,_.T)(null==i?void 0:i.return)&&i.return()}});if((0,z.U)(e))return I((0,z.C)(e),t)}throw(0,L.L)(e)}(e,t):(0,C.Tg)(e)}var B=(0,r(78204).L)(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}),U=r(86223);function $(e){return(0,U.m)(e[e.length-1])?e.pop():void 0}function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=$(e);return W(e,r)}function H(e){return(0,T.N)(function(t,r){var i,n=null,s=!1;n=t.subscribe((0,D._)(r,void 0,void 0,function(a){i=(0,C.Tg)(e(a,H(e)(t))),n?(n.unsubscribe(),n=null,i.subscribe(r)):s=!0})),s&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Y(e,t){return(0,T.N)(function(r,i){var n=0;r.subscribe((0,D._)(i,function(r){return e.call(t,r,n++)&&i.next(r)}))})}var J=r(45962),G=r(24497),X=r(3649),Z=r(56706);(i=n||(n={})).NEXT="N",i.ERROR="E",i.COMPLETE="C";var ee=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return function(e,t){var r,i,n,s=e.kind,a=e.value,o=e.error;if("string"!=typeof s)throw TypeError('Invalid notification, missing "kind"');"N"===s?null==(r=t.next)||r.call(t,a):"E"===s?null==(i=t.error)||i.call(t,o):null==(n=t.complete)||n.call(t)}(this,e)},e.prototype.do=function(e,t,r){var i=this.kind,n=this.value,s=this.error;return"N"===i?null==e?void 0:e(n):"E"===i?null==t?void 0:t(s):null==r?void 0:r()},e.prototype.accept=function(e,t,r){return(0,_.T)(null==e?void 0:e.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this.kind,t=this.value,r=this.error,i="N"===e?K(t):"E"===e?E(function(){return r}):"C"===e?Z.w:0;if(!i)throw TypeError("Unexpected notification kind "+e);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}(),et=r(97460);function er(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return R(et.D,1)(W(e,$(e)))}var ei=r(18476),en=r(86264),es=r(41591);function ea(e){return e.filter(e=>e).map(e=>e.message||"Error message not found.").join("\n")}
1class eo extends Error{static is(e){return(0,es.t)(e,"CombinedGraphQLErrors")}static formatMessage=ea;errors;data;extensions;constructor(e,t=e.errors||[]){super(eo.formatMessage(t,{result:e,defaultFormatMessage:ea})),this.errors=t,this.data=e.data,this.extensions=e.extensions,this.name="CombinedGraphQLErrors",(0,es.w)(this),Object.setPrototypeOf(this,eo.prototype)}}var el=r(63642);let eu=new WeakSet;var ec=r(26595),eh=r(68183),ed=r(45265),ef=r(73902),ep=r(8466),ey=r(90240);function em(e,t,r){return ey.y.withValue(!0,()=>{let i=function e(t,r,i,n,s){let{knownChanged:a}=i,o=function(e,t){if(t.has(e))return t.get(e);let r=Array.isArray(e)?[]:{};return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(let[l,u]of Array.from(t.entries())){if(null===u){o[l]=null;continue}let t=e(u,r,i,n,d.g?`${s||""}[${l}]`:void 0);a.has(t)&&a.add(o),o[l]=t}return a.has(o)?o:t}for(let u of r.selections){let r;if(n&&a.add(o),u.kind===O.b.FIELD){let c=(0,ep.u)(u),h=u.selectionSet;if(void 0===(r=o[c]||t[c]))continue;if(h&&null!==r){let o=e(t[c],h,i,n,d.g?`${s||""}.${c}`:void 0);a.has(o)&&(r=o)}d.g||(o[c]=r),d.g&&(n&&"__typename"!==c&&!Object.getOwnPropertyDescriptor(o,c)?.value?Object.defineProperty(o,c,function(e,t,r,i,n){let s=()=>(ey.y.getValue()||(d.g&&l.V1.warn(40,i?`${n} '${i}'`:`anonymous ${n}`,`${r}.${e}`.replace(/^\./,"")),s=()=>t),t);return{get:()=>s(),set(e){s=()=>e},enumerable:!0,configurable:!0}}(c,r,s||"",i.operationName,i.operationType)):(delete o[c],o[c]=r))}if(u.kind===O.b.INLINE_FRAGMENT&&(!u.typeCondition||i.cache.fragmentMatches(u,t.__typename))&&(r=e(t,u.selectionSet,i,n,s)),u.kind===O.b.FRAGMENT_SPREAD){let n=u.name.value,a=i.fragmentMap[n]||(i.fragmentMap[n]=i.cache.lookupFragment(n));(0,l.V1)(a,39,n);let o=(0,ey.s)(u);"mask"!==o&&(r=e(t,a.selectionSet,i,"migrate"===o,s))}a.has(r)&&a.add(o)}return"__typename"in t&&!("__typename"in o)&&(o.__typename=t.__typename),Object.keys(o).length!==Object.keys(t).length&&a.add(o),a.has(o)?o:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,ef.G)(i),i})}var eb=r(20996),ev=r(80593),eg=r(3322);function ew(e){return 7===e||8===e}function ek(e){return!!e.errors?.length}function eS(e,t=()=>void 0){return r=>new x.c(i=>{let n=t();return r.subscribe({next(t){let r;try{r=e(t,n)}catch(e){i.error(e)}void 0!==r&&i.next(r)},error(e){i.error(e)},complete(){i.complete()}})})}function eO(e){let t={data:e.data};return e.error&&(t.error=e.error),t}var ex=r(90664),e_=r(89664),eE=r(51596),eC=r(24676);function eT(e){let t=new Map;return function(r=e){let i=t.get(r);return i||t.set(r,i={variables:new Set,fragmentSpreads:new Set}),i}}var eF=r(96540),eD=r(23356),eR=r(99720),eM=r(56631),eN=r(66434),eV=r(4902),eI=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return(0,eV.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r.closed||t.next(this._value),r},t.prototype.getValue=function(){var e=this.hasError,t=this.thrownError,r=this._value;if(e)throw t;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(X.B),eP=r(53932),ej=r(26790),eq=r(53469);let{assign:eA,hasOwnProperty:eQ}=Object,eL={loading:!0,networkStatus:eN.p.loading,data:void 0,dataState:"empty",partial:!0},ez={loading:!1,networkStatus:eN.p.ready,data:void 0,dataState:"empty",partial:!0};class eW{options;queryName;variablesUnknown=!1;_lastWrite;get query(){return this.lastQuery}get variables(){return this.options.variables}unsubscribeFromCache;input;subject;isTornDown;queryManager;subscriptions=new Set;waitForNetworkResult;lastQuery;linkSubscription;pollingInfo;get networkStatus(){return this.subject.getValue().result.networkStatus}get cache(){return this.queryManager.cache}constructor({queryManager:e,options:t,transformedQuery:r=e.transform(t.query)}){this.queryManager=e,this.waitForNetworkResult="network-only"===t.fetchPolicy,this.isTornDown=!1,this.subscribeToMore=this.subscribeToMore.bind(this),this.maskResult=this.maskResult.bind(this);
1const{watchQuery:{fetchPolicy:i="cache-first"}={}}=e.defaultOptions,{fetchPolicy:n=i,initialFetchPolicy:s="standby"===n?i:n}=t;t[eR._K]&&((0,l.V1)("standby"===n,82),this.variablesUnknown=!0),this.lastQuery=r,this.options={...t,initialFetchPolicy:s,fetchPolicy:n,variables:this.getVariablesWithDefaults(t.variables)},this.initializeObservablesQueue(),this["@@observable"]=()=>this,Symbol.observable&&(this[Symbol.observable]=()=>this);const a=(0,ec.V)(this.query);this.queryName=a&&a.name&&a.name.value}initializeObservablesQueue(){this.subject=new eI({query:this.query,variables:this.variables,result:eL,meta:{}});let e=this.subject.pipe((0,ei.M)({subscribe:()=>{this.subject.observed||(this.reobserve(),setTimeout(()=>this.updatePolling()))},unsubscribe:()=>{this.subject.observed||this.tearDownQuery()}}),eS(({query:e,variables:t,result:r,meta:i},n)=>{let{shouldEmit:s}=i;if(r===eL&&(n.previous=void 0,n.previousVariables=void 0),"standby"===this.options.fetchPolicy||2===s)return;if(1===s)return l();let{previous:a,previousVariables:o}=n;if(a){let i=this.queryManager.getDocumentInfo(e),n=this.queryManager.dataMasking,s=n?i.nonReactiveQuery:e;if((n||i.hasNonreactiveDirective?(0,eP.a)(s,a,r,t):(0,eb.L)(a,r))&&(0,eb.L)(o,t))return}if(!(3===s&&(!this.options.notifyOnNetworkStatusChange||(0,eb.L)(a,r))))return l();function l(){return n.previous=r,n.previousVariables=t,r}},()=>({})));this.pipe=e.pipe.bind(e),this.subscribe=e.subscribe.bind(e),this.input=new X.B,this.input.complete=()=>{},this.input.pipe(this.operator).subscribe(this.subject)}subscribe;pipe;[Symbol.observable];"@@observable";getCacheDiff({optimistic:e=!0}={}){return this.cache.diff({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:e})}getInitialResult(e){let t=e||this.options.fetchPolicy;this.queryManager.prioritizeCacheValues&&("network-only"===t||"cache-and-network"===t)&&(t="cache-first");let r=()=>{let e=this.getCacheDiff(),t=this.options.returnPartialData||e.complete?e.result??void 0:void 0;return this.maskResult({data:t,dataState:e.complete?"complete":void 0===t?"empty":"partial",loading:!e.complete,networkStatus:e.complete?eN.p.ready:eN.p.loading,partial:!e.complete})};switch(t){case"cache-only":return{...r(),loading:!1,networkStatus:eN.p.ready};case"cache-first":return r();case"cache-and-network":return{...r(),loading:!0,networkStatus:eN.p.loading};case"standby":return ez;default:return eL}}resubscribeCache(){let{variables:e,fetchPolicy:t}=this.options,r=this.query,i="standby"===t||"no-cache"===t||this.waitForNetworkResult,n=!eB({query:r,variables:e},this.unsubscribeFromCache)&&!this.waitForNetworkResult;if((i||n)&&this.unsubscribeFromCache?.(),i||!n)return;let s={query:r,variables:e,optimistic:!0,watcher:this,callback:e=>{let t=this.queryManager.getDocumentInfo(r);if((t.hasClientExports||t.hasForcedResolvers)&&(s.lastDiff=void 0),s.lastOwnDiff===e)return;let{result:i}=this.subject.getValue();(e.complete||!i.error&&i!==eL&&i!==ez)&&((0,eb.L)(i.data,e.result)||this.scheduleNotify())}},a=this.cache.watch(s);this.unsubscribeFromCache=Object.assign(()=>{this.unsubscribeFromCache=void 0,a()},{query:r,variables:e})}stableLastResult;getCurrentResult(){let{result:e}=this.subject.getValue(),t=e.networkStatus===eN.p.error||this.hasObservers()||"no-cache"===this.options.fetchPolicy?e:this.getInitialResult();return t===eL&&(t=this.getInitialResult()),(0,eb.L)(this.stableLastResult,t)||(this.stableLastResult=t),this.stableLastResult}refetch(e){let{fetchPolicy:t}=this.options,r={pollInterval:0};if("no-cache"===t?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",d.g&&e&&eQ.call(e,"variables")){let t=(0,ej.A)(this.query),r=t.variableDefinitions;r&&r.some(e=>"variables"===e.variable.name.value)||!d.g||l.V1.warn(83,e,t.name?.value||t)}return e&&!(0,eb.L)(this.variables,e)&&(r.variables=this.options.variables=this.getVariablesWithDefaults({...this.variables,...e})),this._lastWrite=void 0,this._reobserve(r,{newNetworkStatus:eN.p.refetch})}fetchMore({query:e,variables:t,context:r,errorPolicy:i,updateQuery:n}){(0,l.V1)("cache-only"!==this.options.fetchPolicy,84,(0,p.n)(this.query,"(anonymous)"));let s={...(0,y.o)(this.options,{errorPolicy:"none"},{query:e,context:r,errorPolicy:i}),variables:e?t:{...this.variables,...t},fetchPolicy:"no-cache",notifyOnNetworkStatusChange:this.options.notifyOnNetworkStatusChange};s.query=this.transformDocument(s.query),this.lastQuery=e?this.transformDocument(this.options.query):s.query;let a=!1,o="no-cache"!==this.options.fetchPolicy;o||(0,l.V1)(n,85);let{finalize:u,pushNotification:c}=this.pushOperation(eN.p.fetchMore);c({source:"newNetworkStatus",kind:"N",value:{}},{shouldEmit:3});let{promise:h,operator:d}=eU(),{observable:f}=this.queryManager.fetchObservableWithInfo(s,{networkStatus:eN.p.fetchMore,exposeExtensions:!0}
1),m=f.pipe(d,Y(e=>"N"===e.kind&&"network"===e.source)).subscribe({next:e=>{a=!1;let t=e.value,r=t[eR.X];if(ew(e.value.networkStatus)&&u(),o){let e=this.getCacheDiff();this.cache.batch({update:e=>{n?e.updateQuery({query:this.query,variables:this.variables,returnPartialData:!0,optimistic:!1,extensions:r},e=>n(e,{fetchMoreResult:t.data,variables:s.variables})):e.writeQuery({query:s.query,variables:s.variables,data:t.data,extensions:r})},onWatchUpdated:(r,i)=>{if(r.watcher===this&&!(0,eb.L)(i.result,e.result)){a=!0;let e=this.getCurrentResult();ew(t.networkStatus)||c({kind:"N",source:"network",value:{...e,networkStatus:t.networkStatus===eN.p.error?eN.p.ready:t.networkStatus,loading:!1,data:i.result,dataState:"streaming"===t.dataState?"streaming":"complete"}})}}})}else{let e=this.getCurrentResult(),r=n(e.data,{fetchMoreResult:t.data,variables:s.variables});c({kind:"N",value:{...e,networkStatus:eN.p.ready,loading:!1,data:r,dataState:"streaming"===e.dataState?"streaming":"complete"},source:"network"})}}});return(0,eq.X)(h.then(e=>eO(this.maskResult(e))).finally(()=>{if(m.unsubscribe(),u(),o&&!a){let e=this.getCurrentResult();"streaming"===e.dataState?c({kind:"N",source:"network",value:{...e,dataState:"complete",networkStatus:eN.p.ready}}):c({kind:"N",source:"newNetworkStatus",value:{}},{shouldEmit:1})}}))}subscribeToMore(e){let t=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:t=>{let{updateQuery:r,onError:i}=e,{error:n}=t;n?i?i(n):l.V1.error(86,n):r&&this.updateQuery((e,i)=>r(e,{subscriptionData:t,...i}))}});return this.subscriptions.add(t),()=>{this.subscriptions.delete(t)&&t.unsubscribe()}}applyOptions(e){let t=(0,y.o)(this.options,e||{});eA(this.options,t),this.updatePolling()}async setVariables(e){return(e=this.getVariablesWithDefaults(e),(0,eb.L
1)(this.variables,e))?eO(this.getCurrentResult()):(this.options.variables=e,this.hasObservers())?this._reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},{newNetworkStatus:eN.p.setVariables}):eO(this.getCurrentResult())}updateQuery(e){let{queryManager:t}=this,{result:r,complete:i}=this.getCacheDiff({optimistic:!1}),n=e(r,{variables:this.variables,complete:!!i,previousData:r});n&&(this.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())}startPolling(e){this.options.pollInterval=e,this.updatePolling()}stopPolling(){this.options.pollInterval=0,this.updatePolling()}applyNextFetchPolicy(e,t){if(t.nextFetchPolicy){let{fetchPolicy:r="cache-first",initialFetchPolicy:i=r}=t;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy.call(t,r,{reason:e,options:t,observable:this,initialFetchPolicy:i}):"variables-changed"===e?t.fetchPolicy=i:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy}fetch(e,t,r,i){let n=this.options.fetchPolicy;e.context??={};let s=!1,a=e=>new x.c(r=>{try{return e.subscribe({next(e){s=!0,r.next(e)},error:e=>r.error(e),complete:()=>r.complete()})}finally{s||(h.override=t,this.input.next({kind:"N",source:"newNetworkStatus",value:{resetError:!0},query:u,variables:c,meta:{shouldEmit:3,fetchPolicy:n}}))}}),{observable:o,fromLink:l}=this.queryManager.fetchObservableWithInfo(e,{networkStatus:t,query:r,onCacheHit:()=>{s=!0},fetchQueryOperator:a,observableQuery:this}),{query:u,variables:c}=this,h={abort:()=>{f.unsubscribe()},query:u,variables:c};this.activeOperations.add(h);let d=t==eN.p.refetch||t==eN.p.setVariables,f=(o=o.pipe(i,(0,J.u)())).pipe((0,ei.M)({next:e=>{"newNetworkStatus"===e.source||"N"===e.kind&&e.value.loading?h.override=t:delete h.override},finalize:()=>this.activeOperations.delete(h)})).subscribe({next:e=>{let t={};d&&"N"===e.kind&&"loading"in e.value&&!e.value.loading&&(d=!1,t.shouldEmit=1),this.input.next({...e,query:u,variables:c,meta:t})}});return{fromLink:l,subscription:f,observable:o}}didWarnCacheOnlyPolling=!1;updatePolling(){if(this.queryManager.ssrMode)return;let{pollingInfo:e,options:{fetchPolicy:t,pollInterval:r}}=this,i=()=>{let{options:e}=this;return!e.pollInterval||!this.hasObservers()||"cache-only"===e.fetchPolicy||"standby"===e.fetchPolicy};if(i()){d.g&&!this.didWarnCacheOnlyPolling&&r&&"cache-only"===t&&(d.g&&l.V1.warn(87,(0,p.n)(this.query,"(anonymous)")),this.didWarnCacheOnlyPolling=!0),this.cancelPolling();return}if(e?.interval===r)return;(e||(this.pollingInfo={})).interval=r;let n=()=>{if(i())return this.cancelPolling();this.pollingInfo&&(!ew(this.networkStatus)||this.options.skipPollAttempt?.()?s():this._reobserve({fetchPolicy:"no-cache"===this.options.initialFetchPolicy?"no-cache":"network-only"},{newNetworkStatus:eN.p.poll}).then(s,s))},s=()=>{let e=this.pollingInfo;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(n,e.interval))};s()}cancelPolling(){this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),delete this.pollingInfo)}reobserve(e){return this._reobserve(e)}_reobserve(e,t){this.isTornDown=!1;let{newNetworkStatus:r}=t||{};this.queryManager.obsQueries.add(this);let i=r===eN.p.refetch||r===eN.p.poll,n=this.variables,s=this.options.fetchPolicy,a=(0,y.o)(this.options,e||{});this.variablesUnknown&&="standby"===a.fetchPolicy;let o=i?a:eA(this.options,a),l=this.transformDocument(o.query);this.lastQuery=l,e&&"variables"in e&&(o.variables=this.getVariablesWithDefaults(e.variables)),!i&&(this.updatePolling(),e&&e.variables&&!(0,eb.L)(e.variables,n)&&"standby"!==o.fetchPolicy&&(o.fetchPolicy===s||"function"==typeof o.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",o),void 0===r&&(r=eN.p.setVariables)));let u=this.networkStatus;r||(r=eN.p.loading,u!==eN.p.loading&&e?.variables&&!(0,eb.L)(e.variables,n)&&(r=eN.p.setVariables),"standby"===o.fetchPolicy&&(r=eN.p.ready)),"standby"===o.fetchPolicy&&this.cancelPolling(),this.resubscribeCache();let{promise:c,operator:h}=eU("standby"===o.fetchPolicy?{data:void 0}:void 0),{subscription:d,observable:f,fromLink:p}=this.fetch(o,r,l,h);i||!p&&this.linkSubscription||(this.linkSubscription&&this.linkSubscription.unsubscribe(),this.linkSubscription=d);let m=Object.assign((0,eq.X)(c.then(e=>eO(this.maskResult(e))).finally(()=>{this.hasObservers()||0!==this.activeOperations.size||this.tearDownQuery()})),{retain:()=>{let e=f.subscribe({}),t=()=>e.unsubscribe();return c.then(t,t),m}});return m}hasObservers(){return this.subject.observed}stop(){this.subject.complete(),this.initializeObservablesQueue(),this.tearDownQuery()}tearDownQuery(){this.isTornDown||(this.resetNotifications(),this.unsubscribeFromCache?.(),this.linkSubscription&&(this.linkSubscription.unsubscribe(),delete this.linkSubscription),this.stopPolling(),this.subscriptions.forEach(e
1=>e.unsubscribe()),this.subscriptions.clear(),this.queryManager.obsQueries.delete(this),this.isTornDown=!0,this.abortActiveOperations(),this._lastWrite=void 0)}transformDocument(e){return this.queryManager.transform(e)}maskResult(e){let t=this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,cause:this});return t===e.data?e:{...e,data:t}}dirty=!1;notifyTimeout;resetNotifications(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.dirty=!1}scheduleNotify(){!this.dirty&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(()=>this.notify(!0),0)))}notify(e=!1){if(!e){let e=this.queryManager.getDocumentInfo(this.query);if(e.hasClientExports||e.hasForcedResolvers)return}let{dirty:t}=this;if(this.resetNotifications(),t&&("cache-only"===this.options.fetchPolicy||"cache-and-network"===this.options.fetchPolicy||!this.activeOperations.size)){let e=this.getCacheDiff();(0,eb.L)(e.result,this.getCacheDiff({optimistic:!1}).result)?this.reobserveCacheFirst():this.input.next({kind:"N",value:{data:e.result,dataState:e.complete?"complete":e.result?"partial":"empty",networkStatus:eN.p.ready,loading:!1,error:void 0,partial:!e.complete},source:"cache",query:this.query,variables:this.variables,meta:{}})}}activeOperations=new Set;pushOperation(e){let t=!1,{query:r,variables:i}=this,n=()=>{this.activeOperations.delete(s)},s={override:e,abort:()=>{t=!0,n()},query:r,variables:i};return this.activeOperations.add(s),{finalize:n,pushNotification:(e,n)=>{t||this.input.next({...e,query:r,variables:i,meta:{...n}})}}}calculateNetworkStatus(e){if(e===eN.p.streaming)return e;let t=Array.from(this.activeOperations.values()).reverse().find(e=>eB(e,this)&&void 0!==e.override);return t?.override??e}abortActiveOperations(){this.activeOperations.forEach(e=>e.abort())}reset(){let e="cache-only"===this.options.fetchPolicy;this.setResult(e?ez:eL,{shouldEmit:e?1:2}),this.abortActiveOperations()}setResult(e,t){this.input.next({source:"setResult",kind:"N",value:e,query:this.query,variables:this.variables,meta:{...t}})}operator=eS(e=>{let t,{query:r,variables:i,meta:n}=e;if("setResult"===e.source)return{query:r,variables:i,result:e.value,meta:n};if("C"===e.kind||!eB(e,this))return;let s=this.subject.getValue();if("cache"===e.source){if((t=e.value).networkStatus===eN.p.ready&&t.partial&&(!this.options.returnPartialData||s.result.networkStatus===eN.p.error)&&"cache-only"!==this.options.fetchPolicy)return}else if("network"===e.source)this.waitForNetworkResult&&(this.waitForNetworkResult=!1,this.resubscribeCache()),t="E"===e.kind?{...eB(s,e)?s.result:{data:void 0,dataState:"empty",partial:!0},error:e.error,networkStatus:eN.p.error,loading:!1}:e.value,"E"===e.kind&&"streaming"===t.dataState&&(t.dataState="complete"),t.error&&(n.shouldEmit=1);else if("newNetworkStatus"===e.source){let r=eB(s,e)?s.result:this.getInitialResult(n.fetchPolicy),{resetError:i}=e.value,a=i?void 0:r.error,o=a?eN.p.error:eN.p.ready;t={...r,error:a,networkStatus:o}}return(0,l.V1)(t),t.error||delete t.error,t.networkStatus=this.calculateNetworkStatus(t.networkStatus),t.loading=!ew(t.networkStatus),{query:r,variables:i,result:t=this.maskResult(t),meta:n}});reobserveCacheFirst(){let{fetchPolicy:e,nextFetchPolicy:t}=this.options;"cache-and-network"===e||"network-only"===e?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy(r,i){return(this.nextFetchPolicy=t,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(r,i):e}}):this.reobserve()}getVariablesWithDefaults(e){return this.queryManager.getVariables(this.query,e)}}function eB(e,t){return!!(e&&t&&e.query===t.query&&(0,eb.L)(e.variables,t.variables))}function eU(e){let t=e,r,i;return{promise:new Promise((e,t)=>{r=e,i=t}),operator:(0,ei.M)({next(e){if("E"===e.kind)return i(e.error);"N"!==e.kind||"newNetworkStatus"===e.source||e.value.loading||(t=e.value)},finalize:()=>{if(t)r(t);else{let e="The operation was aborted.",t="AbortError";i("u">typeof DOMException?new DOMException(e,t):Object.assign(Error(e),{name:t}))}}})}}let e$={},eK=new WeakMap;function eH(e,t){let r=e[t];"function"==typeof r&&(e[t]=function(){return eK.set(e,(eK.get(e)+1)%1e15),r.apply(this,arguments)})}let eY=new WeakMap;class eJ{lastRequestId=1;cache;queryManager;id;observableQuery;incremental;constructor(e,t){const r=this.cache=e.cache,i=(eY.get(e)||0)+1;eY.set(e,i),this.id=i+"",this.observableQuery=t,this.queryManager=e,eK.has(r)||(eK.set(r,0),eH(r,"evict"),eH(r,"modify"),eH(r,"reset"))}_lastWrite;get lastWrite(){return(this.observableQuery||this)._lastWrite}set lastWrite(e){(this.observableQuery||this)._lastWrite=e}resetLastWrite(){this.lastWrite=void 0}shouldWrite(e,t){let{lastWrite:r}=this;
1return!(r&&r.dmCount===eK.get(this.cache)&&(0,eb.L)(t,r.variables)&&(0,eb.L)(e.data,r.result.data)&&e.extensions?.[eR.DH]===r.result.extensions?.[eR.DH])}get hasNext(){return!!this.incremental&&this.incremental.hasNext}maybeHandleIncrementalResult(e,t,r){let{incrementalHandler:i}=this.queryManager;return i.isIncrementalResult(t)?(this.incremental||=i.startRequest({query:r}),this.incremental.handle(e,t)):t}markQueryResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){let s={query:t,variables:r,returnPartialData:!0,optimistic:!0};this.observableQuery?.resetNotifications();let a=0===n,o=a?void 0:this.cache.diff(s),l=this.maybeHandleIncrementalResult(o?.result,e,t);return a||(eG(l,i)?this.cache.batch({onWatchUpdated:(e,t)=>{e.watcher===this.observableQuery&&(e.lastOwnDiff=t)},update:e=>{if(this.shouldWrite(l,r))e.writeQuery({query:t,data:l.data,variables:r,overwrite:1===n,extensions:l.extensions}),this.lastWrite={result:l,variables:r,dmCount:eK.get(this.cache)};else if(o&&o.complete){l={...l,data:o.result};return}let i=e.diff(s);i.complete&&(l={...l,data:i.result})}}):this.lastWrite=void 0),l}markMutationResult(e,t,r=this.cache){let i=[],n=0===t.cacheWriteBehavior,s=this.maybeHandleIncrementalResult(n?void 0:r.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0}).result,e,t.document);if("ignore"===t.errorPolicy&&(s={...s,errors:[]}),ek(s)&&"none"===t.errorPolicy)return Promise.resolve(s);let a=()=>({...s,dataState:this.hasNext?"streaming":"complete"});if(!n&&eG(s,t.errorPolicy)){i.push({result:s.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables,extensions:s.extensions});let{updateQueries:e}=t;e&&this.queryManager.getObservableQueries("all").forEach(t=>{let r=t&&t.queryName;if(!r||!Object.hasOwnProperty.call(e,r))return;let n=e[r],{query:s,variables:o}=t,{result:l,complete:u}=t.getCacheDiff({optimistic:!1});if(u&&l){let e=n(l,{mutationResult:a(),queryName:s&&(0,p.n)(s)||void 0,queryVariables:o});e&&i.push({result:e,dataId:"ROOT_QUERY",query:s,variables:o})}})}let o=t.refetchQueries;if("function"==typeof o&&(o=o(a())),i.length>0||(o||"").length>0||t.update||t.onQueryUpdated||t.removeOptimistic){let e=[];
1if(this.queryManager.refetchQueries({updateCache:e=>{n||i.forEach(t=>e.write(t));let{update:r}=t;if(r){if(!n){let r=e.diff({id:"ROOT_MUTATION",query:this.queryManager.getDocumentInfo(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});r.complete&&(s={...s,data:r.result})}this.hasNext||r(e,s,{context:t.context,variables:t.variables})}n||t.keepRootFields||this.hasNext||e.modify({id:"ROOT_MUTATION",fields:(e,{fieldName:t,DELETE:r})=>"__typename"===t?e:r})},include:o,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(t=>e.push(t)),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(e).then(()=>s)}return Promise.resolve(s)}markMutationOptimistic(e,t){let r="function"==typeof e?e(t.variables,{IGNORE:e$}):e;return r!==e$&&(this.cache.recordOptimisticTransaction(e=>{try{this.markMutationResult({data:r},t,e)}catch(e){l.V1.error(e)}},this.id),!0)}markSubscriptionResult(e,{document:t,variables:r,errorPolicy:i,cacheWriteBehavior:n}){0!==n&&(eG(e,i)&&this.cache.write({query:t,result:e.data,dataId:"ROOT_SUBSCRIPTION",variables:r,extensions:e.extensions}),this.queryManager.broadcastQueries())}}function eG(e,t="none"){let r=!ek(e);return!r&&("ignore"===t||"all"===t)&&e.data&&(r=!0),r}class eX{defaultOptions;client;clientOptions;assumeImmutableResults;documentTransform;ssrMode;defaultContext;dataMasking;incrementalHandler;localState;queryDeduplication;prioritizeCacheValues=!1;onBroadcast;mutationStore;obsQueries=new Set;fetchCancelFns=new Map;constructor(e){const t=new h.c(e=>this.cache.transformDocument(e),{cache:!1});this.client=e.client,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientOptions=e.clientOptions,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking,this.localState=e.localState,this.incrementalHandler=e.incrementalHandler;const r=e.documentTransform;this.documentTransform=r?t.concat(r).concat(t):t,this.defaultContext=e.defaultContext||{},(this.onBroadcast=e.onBroadcast)&&(this.mutationStore={})}get link(){return this.client.link}get cache(){return this.client.cache}stop(){this.obsQueries.forEach(e=>e.stop()),this.cancelPendingFetches((0,l.vA)(89))}cancelPendingFetches(e){this.fetchCancelFns.forEach(t=>t(e)),this.fetchCancelFns.clear()}async mutate({mutation:e,variables:t,optimisticResponse:r,updateQueries:i,refetchQueries:n=[],awaitRefetchQueries:s=!1,update:o,onQueryUpdated:u,fetchPolicy:c,errorPolicy:h,keepRootFields:f,context:y}){let m=new eJ(this);e=this.cache.transformForLink(this.transform(e));let{hasClientExports:b}=this.getDocumentInfo(e);t=this.getVariables(e,t),b&&(d.g&&(0,l.V1)(this.localState,90,(0,p.n)(e,"(anonymous)")),t=await this.localState.getExportedVariables({client:this.client,document:e,variables:t,context:y}));let v=this.mutationStore&&(this.mutationStore[m.id]={mutation:e,variables:t,loading:!0,error:null}),g=r&&m.markMutationOptimistic(r,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==c),errorPolicy:h,context:y,updateQueries:i,update:o,keepRootFields:f});return this.broadcastQueries(),new Promise((l,d)=>{let p={};return this.getObservableFromLink(e,{...y,optimisticResponse:g?r:void 0},t,c,{},!1).observable.pipe(eZ(),R(r=>{let a={...r};return W(m.markMutationResult(a,{document:e,variables:t,cacheWriteBehavior:2*("no-cache"!==c),errorPolicy:h,context:y,update:o,updateQueries:i,awaitRefetchQueries:s,refetchQueries:n,removeOptimistic:g?m.id:void 0,onQueryUpdated:u,keepRootFields:f}))})).pipe((0,a.T)(e=>{if(ek(e)&&"none"===h)throw new eo(e0(e));return v&&(v.loading=!1,v.error=null),e})).subscribe({next:t=>{if(this.broadcastQueries(),!m.hasNext){let r={data:this.maskOperation({document:e,data:t.data,fetchPolicy:c,cause:p})};ek(t)&&(r.error=new eo(t)),Object.keys(t.extensions||{}).length&&(r.extensions=t.extensions),l(r)}},error:e=>(v&&(v.loading=!1,v.error=e),g&&this.cache.removeOptimistic(m.id),this.broadcastQueries(),"ignore"===h)?l({data:void 0}):"all"===h?l({data:void 0,error:e}):void d(e)})})}fetchQuery(e,t){return(0,m.s)(e.query,s.cE.QUERY),(async()=>{var r,i,n;return r=this.fetchObservableWithInfo(e,{networkStatus:t}).observable.pipe(eS(e=>{switch(e.kind){case"E":throw e.error;case"N":if("newNetworkStatus"!==e.source)return eO(e.value)}})),n="object"==typeof(i={defaultValue:{data:void 0}}),new Promise(function(e,t){var s,a=!1;r.subscribe({next:function(e){s=e,a=!0},error:t,complete:function(){a?e(s):n?e(i.defaultValue):t(new B)}})})})()}transform(e){return this.documentTransform.transformDocument(e)}transformCache=new ex.A(ev.v["queryManager.getDocumentInfo"]||2e3);getDocumentInfo(e){let{transformCache:t}=this;if(!t.has(e)){var r;let i,n=(0,ec.V)(e),s={hasClientExports:(0,o.d)(["client","export"],e,!0),hasForcedResolvers:(i=!1,(0,v.YR)(e,{Directive:{enter(e){if("client"===e.name.value&&e.arguments&&(i=e.arguments.some(e=>"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value)))return v.sP}}}),i),hasNonreactiveDirective:(0,o.d)(["nonreactive"],e),hasIncrementalDirective:(0,o.d)(["defer"],e),nonReactiveQuery:(r=e,(0,v.YR)(r,{FragmentSpread:e=>{if(!e.directives?.some(e=>"unmask"===e.name.value))return{...e,directives:[...e.directives||[],{kind:O.b.DIRECTIVE,name:{kind:O.b.NAME,value:"nonreactive"}}
1]}}})),clientQuery:(0,o.d)(["client"],e)?e:null,serverQuery:function(e,t){var r,i;let n,s;(0,m.s)(t);let a=eT(""),o=eT(""),u=e=>{for(let t=0,r;t<e.length&&(r=e[t]);++t)if(!(0,eE.c)(r)){if(r.kind===O.b.OPERATION_DEFINITION)return a(r.name&&r.name.value);if(r.kind===O.b.FRAGMENT_DEFINITION)return o(r.name.value)}return l.V1.error(14),null},c=0;for(let e=t.definitions.length-1;e>=0;--e)t.definitions[e].kind===O.b.OPERATION_DEFINITION&&++c;let h=(r=e,n=new Map,s=new Map,r.forEach(e=>{e&&(e.name?n.set(e.name,e):e.test&&s.set(e.test,e))}),e=>{let t=n.get(e.name.value);return!t&&s.size&&s.forEach((r,i)=>{i(e)&&(t=r)}),t}),d=e=>(0,eC.E)(e)&&e.map(h).some(e=>e&&e.remove),f=new Map,p=!1,y={enter(e){if(d(e.directives))return p=!0,null}},b=(0,v.YR)(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:()=>!1},Variable:{enter(e,t,r,i,n){let s=u(n);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter(e,t,r,i,n){if(d(e.directives))return p=!0,null;let s=u(n);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter(e,t,r,i){f.set(JSON.stringify(i),e)},leave:(e,t,r,i)=>e===f.get(JSON.stringify(i))?e:c>0&&e.selectionSet.selections.every(e=>e.kind===O.b.FIELD&&"__typename"===e.name.value)?(o(e.name.value).removed=!0,p=!0,null):void 0},Directive:{leave(e){if(h(e))return p=!0,null}}});if(!p)return t;let g=e=>(!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(t=>{g(o(t)).transitiveVars.forEach(t=>{e.transitiveVars.add(t)})})),e),w=new Set;b.definitions.forEach(e=>{e.kind===O.b.OPERATION_DEFINITION?g(a(e.name&&e.name.value)).fragmentSpreads.forEach(e=>{w.add(e)}):e.kind!==O.b.FRAGMENT_DEFINITION||0!==c||o(e.name.value).removed||w.add(e.name.value)}),w.forEach(e=>{g(o(e)).fragmentSpreads.forEach(e=>{w.add(e)})});let k={enter(e){let t;if(t=e.name.value,!w.has(t)||o(t).removed)return null}};return i=(0,v.YR)(b,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave(e){if(e.variableDefinitions){let t=g(a(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return{...e,variableDefinitions:e.variableDefinitions.filter(e=>t.has(e.variable.name.value))}}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(t=>t.kind===O.b.FRAGMENT_SPREAD&&e(r[t.name.value],r))}((0,ec.V)(i)||(0,e_.E)(i),(0,eh.J)((0,ed.z)(i)))?i:null}([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),operationType:n?.operation,defaultVars:(0,eF.w)(n),asQuery:{...e,definitions:e.definitions.map(e=>"OperationDefinition"===e.kind&&"query"!==e.operation?{...e,operation:"query"}:e)}};t.set(e,s)}let i=t.get(e);if(i.violation)throw i.violation;return i}getVariables(e,t){let r=this.getDocumentInfo(e).defaultVars,i=Object.entries(t??{}).map(([e,t])=>[e,void 0===t?r[e]:t]);return{...r,...Object.fromEntries(i)}}watchQuery(e){(0,m.s)(e.query,s.cE.QUERY);let t=this.transform(e.query);return void 0===(e={...e,variables:this.getVariables(t,e.variables)}).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!0),new eW({queryManager:this,options:e,transformedQuery:t})}query(e){let t=this.transform(e.query);return this.fetchQuery({...e,query:t}).then(r=>({...r,data:this.maskOperation({document:t,data:r?.data,fetchPolicy:e.fetchPolicy})}))}requestIdCounter=1;generateRequestId(){return this.requestIdCounter++}clearStore(e={discardWatches:!0}){return this.cancelPendingFetches((0,l.vA)(91)),this.obsQueries.forEach(e=>{e.reset()}),this.mutationStore&&(this.mutationStore={}),this.cache.reset(e)}getObservableQueries(e="active"){let t=new Set,r=new Map,i=new Map,n=new Set;return Array.isArray(e)&&e.forEach(e=>{if("string"==typeof e)r.set(e,e),i.set(e,!1);else if((0,eD.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)){let t=(0,eg.y)(this.transform(e));r.set(t,(0,p.n)(e)),i.set(t,!1)}else(0,eD.U)(e)&&e.query&&n.add(e)}),this.obsQueries.forEach(r=>{let n=(0,eg.y)(this.transform(r.options.query));if("all"===e)return void t.add(r);let{queryName:s,options:{fetchPolicy:a}}=r;("active"!==e||"standby"!==a)&&("active"===e||s&&i.has(s)||n&&i.has(n))&&(t.add(r),s&&i.set(s,!0),n&&i.set(n,!0))}
1),n.size&&n.forEach(e=>{let r=new eW({queryManager:this,options:{...(0,f.l)(this.defaultOptions.watchQuery,e),fetchPolicy:"network-only"}});t.add(r)}),d.g&&i.size&&i.forEach((e,t)=>{if(!e){let e=r.get(t);e?d.g&&l.V1.warn(92,e):d.g&&l.V1.warn(93)}}),t}refetchObservableQueries(e=!1){let t=[];return this.getObservableQueries(e?"all":"active").forEach(r=>{let{fetchPolicy:i}=r.options;(e||"standby"!==i)&&"cache-only"!==i&&t.push(r.refetch())}),this.broadcastQueries(),Promise.all(t)}startGraphQLSubscription(e){let t,{query:r,variables:i}=e,{fetchPolicy:n="cache-first",errorPolicy:o="none",context:u={},extensions:c={}}=e;return(0,m.s)(r,s.cE.SUBSCRIPTION),r=this.transform(r),i=this.getVariables(r,i),d.g&&(0,l.V1)(!this.getDocumentInfo(r).hasClientExports||this.localState,94,(0,p.n)(r,"(anonymous)")),Object.assign((this.getDocumentInfo(r).hasClientExports?W(this.localState.getExportedVariables({client:this.client,document:r,variables:i,context:u})):K(i)).pipe(R(e=>{let{observable:i,restart:s}=this.getObservableFromLink(r,u,e,n,c),l=new eJ(this);return t=s,i.pipe((0,a.T)(t=>{l.markSubscriptionResult(t,{document:r,variables:e,errorPolicy:o,cacheWriteBehavior:2*("no-cache"!==n)});let i={data:t.data??void 0};return ek(t)?i.error=new eo(t):(0,el.uR)(t)&&(i.error=t.extensions[el.K$],delete t.extensions[el.K$]),t.extensions&&Object.keys(t.extensions).length&&(i.extensions=t.extensions),i.error&&"none"===o&&(i.data=void 0),"ignore"===o&&delete i.error,i}),H(e=>"ignore"===o?K({data:void 0}):K({data:void 0,error:e})),Y(e=>!!(e.data||e.error)))})),{restart:()=>t?.()})}broadcastQueries(){this.onBroadcast&&this.onBroadcast(),this.obsQueries.forEach(e=>e.notify())}inFlightLinkObservables=new S.b(!1);getObservableFromLink(e,t,r,i,n,a=t?.queryDeduplication??this.queryDeduplication){let o={},{serverQuery:u,clientQuery:h,operationType:f,hasIncrementalDirective:y}=this.getDocumentInfo(e),m=(0,p.n)(e),b={client:this.client};if(u){let{inFlightLinkObservables:e,link:i}=this;try{let l=this.incrementalHandler.prepareRequest({query:u,variables:r,context:{...this.defaultContext,...t,queryDeduplication:a},extensions:n});function v(e){return new x.c(t=>{function r(){return e.subscribe({next:t.next.bind(t),complete:t.complete.bind(t),error:t.error.bind(t)})}let i=r();return o.restart||=()=>{i.unsubscribe(),i=r()},()=>{i.unsubscribe(),o.restart=void 0}})}if(t=l.context,a){var g;let t=(0,eg.y)(u),n=(0,en.M)(r);(o=e.lookup(t,n)).observable||(o.observable=c(i,l,b).pipe(v,(g=()=>{e.peek(t,n)===o&&e.remove(t,n)},(0,T.N)(function(e,t){try{e.subscribe(t)}finally{t.add(g)}})),f===s.cE.SUBSCRIPTION?(0,J.u)():(0,G.t)({refCount:!0})))}else o.observable=c(i,l,b).pipe(v)}catch(e){o.observable=E(()=>e)}}else o.observable=K({data:{}});if(h){let{operation:n}=(0,ec.V)(e);d.g&&(0,l.V1)(this.localState,95,n[0].toUpperCase()+n.slice(1),m??"(anonymous)"),(0,l.V1)(!y,96,n[0].toUpperCase()+n.slice(1),m??"(anonymous)"),o.observable=o.observable.pipe(R(e=>W(this.localState.execute({client:this.client,document:h,remoteResult:e,context:t,variables:r,fetchPolicy:i}))))}return{restart:()=>o.restart?.(),observable:o.observable.pipe(H(e=>{var t;throw t=e=(0,el.$b)(e),eu.add(t),e}))}}getResultsFromLink(e,{queryInfo:t,cacheWriteBehavior:r,observableQuery:i,exposeExtensions:n}){let s=t.lastRequestId=this.generateRequestId(),{errorPolicy:o}=e,l=this.cache.transformForLink(e.query);return this.getObservableFromLink(l,e.context,e.variables,e.fetchPolicy).observable.pipe((0,a.T)(s=>{let a=t.markQueryResult(s,{...e,document:l,cacheWriteBehavior:r}),u=ek(a);if(u&&"none"===o)throw t.resetLastWrite(),i?.resetNotifications(),new eo(e0(a));let c={data:a.data,...t.hasNext?{loading:!0,networkStatus:eN.p.streaming,dataState:"streaming",partial:!0}:{dataState:a.data?"complete":"empty",loading:!1,networkStatus:eN.p.ready,partial:!a.data}};return n&&"extensions"in a&&(c[eR.X]=a.extensions),u&&("none"===o&&(c.data=void 0,c.dataState="empty"),"ignore"!==o&&(c.error=new eo(e0(a)),"streaming"!==c.dataState&&(c.networkStatus=eN.p.error))),c}),H(e=>{if(s>=t.lastRequestId&&"none"===o)throw t.resetLastWrite(),i?.resetNotifications(),e;let r={data:void 0,dataState:"empty",loading:!1,networkStatus:eN.p.ready,partial:!0};return"ignore"!==o&&(r.error=e,r.networkStatus=eN.p.error),K(r)}))}fetchObservableWithInfo(e,{networkStatus:t=eN.p.loading,query:r=e.query,fetchQueryOperator:i=e=>e,onCacheHit:n=()=>{},observableQuery:s,exposeExtensions:a}){let o,u,c=this.getVariables(r,e.variables),{fetchPolicy:h="cache-first",errorPolicy:f="none",returnPartialData:y=!1,notifyOnNetworkStatusChange:m=!0,context:b={}}=e;this.prioritizeCacheValues&&("network-only"===h||"cache-and-network"===h)&&(h="cache-first");let v=Object.assign({},e,{query:r,variables:c,fetchPolicy:h,errorPolicy:f,returnPartialData:y,notifyOnNetworkStatusChange:m,context:b}),g=new eJ(this,s),w=r=>{v.variables=r;let o="no-cache"===h?0:t===eN.p.refetch&&"merge"!==v.refetchWritePolicy?1:2,l=this.fetchQueryByPolicy(v,{queryInfo:g,cacheWriteBehavior:o,onCacheHit:n,observableQuery:s,exposeExtensions:a});return l.observable=l.observable.pipe(i),"standby"!==v.fetchPolicy&&s?.applyNextFetchPolicy("after-fetch",e),l},k=()=>{this.fetchCancelFns.delete(g.id)};this.fetchCancelFns.set(g.id,e=>{S.next({kind:"E",error:e,source:"network"})});let S=new X.B;if(this.getDocumentInfo(v.query).hasClientExports)d.g&&(0,l.V1)(this.localState,97,(0,p.n)(v.query,"(anonymous)")),o=W(this.localState.getExportedVariables({client:this.client,document:v.query,variables:v.variables,context:v.context})).pipe(R(e=>w(e).observable)),u=!0;else{let e=w(v.variables);u=e.fromLink,o=e.observable}return{observable:new x.c(e=>{e.add(k),o.subscribe(e),S.subscribe(e)}).pipe((0,J.u)()),fromLink:u}}refetchQueries({updateCache:e,include:t,optimistic:r=!1,removeOptimistic:i=r?(0,eM.v)("refetchQueries"):void 0,onQueryUpdated:n}){let s=new Map;
1t&&this.getObservableQueries(t).forEach(e=>{if("cache-only"===e.options.fetchPolicy||e.variablesUnknown)return;let t=e.getCurrentResult();s.set(e,{oq:e,lastDiff:{result:t?.data,complete:!t?.partial}})});let a=new Map;if(e){let t=new Set;this.cache.batch({update:e,optimistic:r&&i||!1,removeOptimistic:i,onWatchUpdated(e,r,i){let o=e.watcher;if(o instanceof eW&&!t.has(o)){if(t.add(o),n){s.delete(o);let e=n(o,r,i);return!0===e&&(e=o.refetch().retain()),!1!==e&&a.set(o,e),e}null!==n&&"cache-only"!==o.options.fetchPolicy&&s.set(o,{oq:o,lastDiff:i,diff:r})}}})}return s.size&&s.forEach(({oq:e,lastDiff:t,diff:r})=>{let i;n&&(r||(r=e.getCacheDiff()),i=n(e,r,t)),n&&!0!==i||(i=e.refetch().retain()),!1!==i&&a.set(e,i)}),i&&this.cache.removeOptimistic(i),a}noCacheWarningsByCause=new WeakSet;maskOperation(e){var t,r;let i,{document:n,data:s}=e;if(d.g){let t,{fetchPolicy:i,cause:s={}}=e,a=(0,ec.V)(n)?.operation;this.dataMasking&&"no-cache"===i&&(r=n,t=!0,(0,v.YR)(r,{FragmentSpread:e=>{if(!(t=!!e.directives&&e.directives.some(e=>"unmask"===e.name.value)))return v.sP}}),!t)&&!this.noCacheWarningsByCause.has(s)&&(this.noCacheWarningsByCause.add(s),d.g&&l.V1.warn(98,(0,p.n)(n,`Unnamed ${a??"operation"}`)))}return this.dataMasking?(t=this.cache,i=(0,ec.V)(n),((0,l.V1)(i,43),null==s)?s:em(s,i.selectionSet,{operationType:i.operation,operationName:i.name?.value,fragmentMap:(0,eh.J)((0,ed.z)(n)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):s}maskFragment(e){var t,r;let i,n,{data:s,fragment:a,fragmentName:o}=e;return this.dataMasking?(t=this.cache,r=o,i=a.definitions.filter(e=>e.kind===O.b.FRAGMENT_DEFINITION),void 0===r&&((0,l.V1)(1===i.length,41,i.length),r=i[0].name.value),n=i.find(e=>e.name.value===r),((0,l.V1)(!!n,42,r),null==s||(0,eb.L)(s,{}))?s:em(s,n.selectionSet,{operationType:"fragment",operationName:n.name.value,fragmentMap:(0,eh.J)((0,ed.z)(a)),cache:t,mutableTargets:new WeakMap,knownChanged:new WeakSet})):s}fetchQueryByPolicy({query:e,variables:t,fetchPolicy:r,errorPolicy:i,returnPartialData:n,context:s},{cacheWriteBehavior:o,onCacheHit:u,queryInfo:c,observableQuery:h,exposeExtensions:f}){let y=()=>this.cache.diff({query:e,variables:t,returnPartialData:!0,optimistic:!0}),m=(a,o)=>{var c;let h=a.result;d.g&&!n&&null!==h&&(c=a.missing,d.g&&c&&d.g&&l.V1.debug(88,c));let f=e=>(a.complete||n||(e=void 0),{data:e,dataState:a.complete?"complete":e?"partial":"empty",loading:!ew(o),networkStatus:o,partial:!a.complete}),y=e=>K({kind:"N",value:f(e),source:"cache"});return(a.complete||n)&&this.getDocumentInfo(e).hasForcedResolvers?(d.g&&(0,l.V1)(this.localState,99,(0,p.n)(e,"(anonymous)")),u(),W(this.localState.execute({client:this.client,document:e,remoteResult:h?{data:h}:void 0,context:s,variables:t,onlyRunForcedResolvers:!0,returnPartialData:!0,fetchPolicy:r}).then(e=>({kind:"N",value:f(e.data||void 0),source:"cache"})))):y("none"===i&&o===eN.p.refetch&&a.missing?void 0:h||void 0)},b=()=>this.getResultsFromLink({query:e,variables:t,context:s,fetchPolicy:r,errorPolicy:i},{cacheWriteBehavior:o,queryInfo:c,observableQuery:h,exposeExtensions:f}).pipe(eZ(),(0,T.N)(function(e,t){e.subscribe((0,D._)(t,function(e){t.next(ee.createNext(e))},function(){t.next(ee.createComplete()),t.complete()},function(e){t.next(ee.createError(e)),t.complete()}))}),(0,a.T)(e=>({...e,source:"network"})));switch(r){default:case"cache-first":{let e=y();if(e.complete)return{fromLink:!1,observable:m(e,eN.p.ready)};if(n)return{fromLink:!0,observable:er(m(e,eN.p.loading),b())};return{fromLink:!0,observable:b()}}case"cache-and-network":{let e=y();if(e.complete||n)return{fromLink:!0,observable:er(m(e,eN.p.loading),b())};return{fromLink:!0,observable:b()}}case"cache-only":return{fromLink:!1,observable:er(m(y(),eN.p.ready))};case"network-only":case"no-cache":return{fromLink:!0,observable:b()};case"standby":return{fromLink:!1,observable:Z.w}}}}function eZ(){let e=!1;return(0,ei.M)({next(){e=!0},complete(){(0,l.V1)(e,100)}})}function e0(e){if(e.extensions?.[eR.DH]==null)return e;let{extensions:{[eR.DH]:t,...r},...i}=e;return Object.keys(r).length>0&&(i.extensions=r),i}let e1=!1;class e9{link;cache;disableNetworkFetches;set prioritizeCacheValues(e){this.queryManager.prioritizeCacheValues=e}get prioritizeCacheValues(){return this.queryManager.prioritizeCacheValues}version;queryDeduplication;defaultOptions;devtoolsConfig;refetchEventManager;queryManager;devToolsHookCb;resetStoreCallbacks=[];clearStoreCallbacks=[];constructor(e){d.g&&((0,l.V1)(e.cache,68),(0,l.V1)(e.link,69));const{cache:t,documentTransform:r,ssrMode:i=!1,ssrForceFetchDelay:n=0,queryDeduplication:s=!0,defaultOptions:a,defaultContext:o,assumeImmutableResults:c=t.assumeImmutableResults,localState:h,devtools:f,dataMasking:p,link:y,incrementalHandler:m=new u,experiments:b=[],refetchEventManager:v}=e;this.link=y,this.cache=t,this.queryDeduplication=s,this.defaultOptions=a||{},this.devtoolsConfig={...f,enabled:f?.enabled??d.g},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=this.refetchObservableQueries.bind(this),this.version=k.r,this.queryManager=new eX({client:this,defaultOptions:this.defaultOptions,defaultContext:o,documentTransform:r,queryDeduplication:s,ssrMode:i,dataMasking:!!p,clientOptions:e,incrementalHandler:m,assumeImmutableResults:c,onBroadcast:this.devtoolsConfig.enabled?()=>{this.devToolsHookCb&&this.devToolsHookCb()}:void 0,localState:h}),this.prioritizeCacheValues=i||n>0,n&&setTimeout(()=>{this.prioritizeCacheValues=!1},n),this.devtoolsConfig.enabled&&this.connectToDevTools(),b.forEach(t=>t.call(this,e)),this.refetchEventManager=v,this.refetchEventManager?.connect(this)}connectToDevTools(){if("u"<typeof window)return;let e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!e1&&d.g&&(e1=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(()=>{if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){let e,t=window.navigator,r=t&&t.userAgent;"string"==typeof r&&(r.indexOf("Chrome/")>-1?e="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":r.indexOf("Firefox/")>-1&&(e="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),e&&d.g&&l.V1.log("Download the Apollo DevTools for a better development experience: %s",e)}},1e4))}get documentTransform(){return this.queryManager.documentTransform}get localState(){return this.queryManager.localState}set localState(e){this.queryManager.localState=e}stop(){this.queryManager.stop(),this.refetchEventManager?.disconnect(this)}watchQuery(e){let{refetchOn:t}=e;if(this.defaultOptions.watchQuery){let r,i=this.defaultOptions.watchQuery.refetchOn;t&&"object"==typeof t&&("object"==typeof i?r={...i,...t}:null!=i&&(r=e=>{let r=t[e.source]??i;return"function"==typeof r?r(e):r})),e=(0,f.l)(this.defaultOptions.watchQuery,e),r&&(e.refetchOn=r)}if(d.g){let{query:r}=e,{refetchEventManager:i}=this;if(t){let e=(0,p.n)(r,"(anonymous)");i?"object"==typeof t&&Object.keys(t).forEach(t=>{!i.hasSource(t)&&d.g&&l.V1.warn(71,t,e)}):d.g&&l.V1.warn(70,e)}}return this.queryManager.watchQuery(e)}query=e=>(this.defaultOptions.query&&(e=(0,f.l)(this.defaultOptions.query,e)),d.g&&((0,l.V1)("cache-and-network"!==e.fetchPolicy,72),(0,l.V1)("standby"!==e.fetchPolicy,73),(0,l.V1)(e.query,74),(0,l.V1)("Document"===e.query.kind,75),(0,l.V1)(!e.returnPartialData,76),(0,l.V1)(!e.pollInterval,77),(0,l.V1)(!e.notifyOnNetworkStatusChange,78)),this.queryManager.query(e));mutate=e=>{let t=(0,f.l)((0,y.o)({fetchPolicy:"network-only",errorPolicy:"none"},this.defaultOptions.mutate),e);return d.g&&((0,l.V1)(t.mutation,79),(0,l.V1)("network-only"===t.fetchPolicy||"no-cache"===t.fetchPolicy,80)),(0,m.s)(t.mutation,s.cE.MUTATION),this.queryManager.mutate(t)};subscribe(e){let t={},r=this.queryManager.startGraphQLSubscription(e);return Object.assign(r.pipe((0,a.T)(r=>({...r,data:this.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,cause:t})}))),{restart:r.restart})}readQuery(e,t=!1){return this.cache.readQuery({...e,query:this.transform(e.query)},t)}watchFragment(e){let t=this.queryManager.dataMasking,r=this.cache.watchFragment({...e,fragment:this.transform(e.fragment,t)});return d.g?(0,b.Q)(r,Symbol.for("apollo.transform.dev.mask"),t=>({...t,data:this.queryManager.maskFragment({...e,data:t.data})})):r}
1readFragment(e,t=!1){return this.cache.readFragment({...e,fragment:this.transform(e.fragment)},t)}writeQuery(e){let t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}writeFragment(e){let t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t}__actionHookForDevTools(e){this.devToolsHookCb=e}__requestRaw(e){return c(this.link,e,{client:this})}resetStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!1})).then(()=>Promise.all(this.resetStoreCallbacks.map(e=>e()))).then(()=>this.refetchObservableQueries())}clearStore(){return Promise.resolve().then(()=>this.queryManager.clearStore({discardWatches:!0})).then(()=>Promise.all(this.clearStoreCallbacks.map(e=>e())))}onResetStore(e){return this.resetStoreCallbacks.push(e),()=>{this.resetStoreCallbacks=this.resetStoreCallbacks.filter(t=>t!==e)}}onClearStore(e){return this.clearStoreCallbacks.push(e),()=>{this.clearStoreCallbacks=this.clearStoreCallbacks.filter(t=>t!==e)}}reFetchObservableQueries;refetchObservableQueries(e){return this.queryManager.refetchObservableQueries(e)}refetchQueries(e){let t=this.queryManager.refetchQueries(e),r=[],i=[];t.forEach((e,t)=>{r.push(t),i.push(e)});let n=Promise.all(i);return n.queries=r,n.results=i,n.catch(e=>{d.g&&l.V1.debug(81,e)}),n}getObservableQueries(e="active"){return this.queryManager.getObservableQueries(e)}extract(e){return this.cache.extract(e)}restore(e){return this.cache.restore(e)}setLink(e){this.link=e}get defaultContext(){return this.queryManager.defaultContext}maskedFragmentTransform=new h.c(g);transform(e,t=!1){let r=this.queryManager.transform(e);return t?this.maskedFragmentTransform.transformDocument(r):r}}d.g&&(e9.prototype.getMemoryInternals=w.ep)},14824:(e,t,r)=>{r.d(t,{s:()=>u});var i=r(74968),n=r(94587),s=r(1300),a=r(19650),o=r(80593),l=r(7141);let u=(0,r(55553).B)((e,t)=>{(0,a.V1)(e&&"Document"===e.kind,1);let r=e.definitions.filter(e=>"OperationDefinition"===e.kind);s.g&&(e.definitions.forEach(e=>{if("OperationDefinition"!==e.kind&&"FragmentDefinition"!==e.kind)throw(0,a.vA)(2,e.kind)}),(0,a.V1)(r.length<=1,3,r.length)),t&&(0,a.V1)(1==r.length&&r[0].operation===t,4,t,t,r[0].operation),(0,i.YR)(e,{Field(t,i,s,o){if(t.alias&&("__typename"===t.alias.value||t.alias.value.startsWith("__ac_"))&&t.alias.value!==t.name.value){let i=e,s=[];for(let e of o)(i=i[e]).kind===n.b.FIELD&&s.push(i.alias?.value||i.name.value);throw s.splice(-1,1,t.name.value),(0,a.vA)(5,t.alias.value,s.join("."),r[0].operation,(0,l.n)(e,"(anonymous)"))}}})},{max:o.v.checkDocument||2e3})},18476:(e,t,r)=>{r.d(t,{M:()=>o});var i=r(77698),n=r(99991),s=r(32277),a=r(97460);function o(e,t,r){var o=(0,i.T)(e)||t||r?{next:e,error:t,complete:r}:e;return o?(0,n.N)(function(e,t){null==(r=o.subscribe)||r.call(o);var r,i=!0;e.subscribe((0,s._)(t,function(e){var r;null==(r=o.next)||r.call(o,e),t.next(e)},function(){var e;i=!1,null==(e=o.complete)||e.call(o),t.complete()},function(e){var r;i=!1,null==(r=o.error)||r.call(o,e),t.error(e)},function(){var e,t;i&&(null==(e=o.unsubscribe)||e.call(o)),null==(t=o.finalize)||t.call(o)}))}):a.D}},21370:(e,t,r)=>{r.d(t,{L:()=>i});function i(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},22449:(e,t,r)=>{r.d(t,{C:()=>s,U:()=>a});var i=r(4902),n=r(77698);function s(e){return(0,i.__asyncGenerator)(this,arguments,function(){var t,r,n;return(0,i.__generator)(this,function(s){switch(s.label){case 0:t=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,(0,i.__await)(t.read())];case 3:if(n=(r=s.sent()).value,!r.done)return[3,5];return[4,(0,i.__await)(void 0)];case 4:return[2,s.sent()];case 5:return[4,(0,i.__await)(n)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function a(e){return(0,n.T)(null==e?void 0:e.getReader)}},22748:(e,t,r)=>{r.d(t,{X:()=>a});var i=r(14232),n=r(19650),s=r(94852);let a=({client:e,children:t})=>{let r=(0,s.l)(),a=i.useContext(r),o=i.useMemo(()=>({...a,client:e||a.client}),[a,e]);return(0,n.V1)(o.client,38),i.createElement(r.Provider,{value:o},t)}},24497:(e,t,r)=>{r.d(t,{t:()=>s});var i=r(68246),n=r(45962);function s(e,t,r){var s,a,o,l,u=!1;return e&&"object"==typeof e?(l=void 0===(s=e.bufferSize)?1/0:s,t=void 0===(a=e.windowTime)?1/0:a,u=void 0!==(o=e.refCount)&&o,r=e.scheduler):l=null!=e?e:1/0,(0,n.u)({connector:function(){return new i.m(l,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},24676:(e,t,r)=>{r.d(t,{E:()=>i});function i(e){return Array.isArray(e)&&e.length>0}},26595:(e,t,r)=>{r.d(t,{V:()=>n});var i=r(14824);function n(e){return(0,i.s)(e),e.definitions.filter(e=>"OperationDefinition"===e.kind)[0]}},26790:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(19650),n=r(26595);function s(e){let t=(0,n.V)(e);return(0,i.V1)(t&&"query"===t.operation,13),t}},29572:(e,t,r)=>{r.d(t,{x:()=>s});var i=r(63136),n=r(77698);function s(e){return(0,n.T)(null==e?void 0:e[i.l])}},36898:(e,t,r)=>{function i(){}r.d(t,{C:()=>n});
1class n{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}},38239:(e,t,r)=>{r.d(t,{d:()=>n});var i=r(74968);function n(e,t,r){let n=new Set(e),s=n.size;return(0,i.YR)(t,{Directive(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.sP}}),r?!n.size:n.size<s}},39668:(e,t,r)=>{r.d(t,{b:()=>o});let i=()=>Object.create(null),{forEach:n,slice:s}=Array.prototype,{hasOwnProperty:a}=Object.prototype;class o{constructor(e=!0,t=i){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return n.call(e,e=>t=t.getChildTrie(e)),a.call(t,"data")?t.data:t.data=this.makeData(s.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,i=e.length;t&&r<i;++r){let i=t.mapFor(e[r],!1);t=i&&i.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let r=e[0],i=this.mapFor(r,!1),n=i&&i.get(r);n&&(t=n.removeArray(s.call(e,1)),n.data||n.weak||n.strong&&n.strong.size||i.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),r=t.get(e);return r||t.set(e,r=new o(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}},40485:(e,t,r)=>{r.d(t,{H:()=>n});var i=r(19650);function n(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":{let r=e.name.value;if("function"==typeof t)return t(r);let n=t&&t[r];return(0,i.V1)(n,9,r),n||null}default:return null}}},41591:(e,t,r)=>{function i(e,t){return"object"==typeof e&&null!==e&&e[Symbol.for("apollo.error")]===t}function n(e){Object.defineProperty(e,Symbol.for("apollo.error"),{value:e.name,enumerable:!1,writable:!1,configurable:!1})}r.d(t,{t:()=>i,w:()=>n})},45019:(e,t,r)=>{r.d(t,{T:()=>s});var i=r(99991),n=r(32277);function s(e,t){return(0,i.N)(function(r,i){var s=0;r.subscribe((0,n._)(i,function(r){i.next(e.call(t,r,s++))}))})}},45265:(e,t,r)=>{r.d(t,{z:()=>i});function i(e){return e.definitions.filter(e=>"FragmentDefinition"===e.kind)}},45962:(e,t,r)=>{r.d(t,{u:()=>l});var i=r(4902),n=r(2943),s=r(3649),a=r(12882),o=r(99991);function l(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new s.B}:t,i=e.resetOnError,l=void 0===i||i,c=e.resetOnComplete,h=void 0===c||c,d=e.resetOnRefCountZero,f=void 0===d||d;return function(e){var t,i,s,c=0,d=!1,p=!1,y=function(){null==i||i.unsubscribe(),i=void 0},m=function(){y(),t=s=void 0,d=p=!1},b=function(){var e=t;m(),null==e||e.unsubscribe()};return(0,o.N)(function(e,o){c++,p||d||y();var v=s=null!=s?s:r();o.add(function(){0!=--c||p||d||(i=u(b,f))}),v.subscribe(o),!t&&c>0&&(t=new a.Ms({next:function(e){return v.next(e)},error:function(e){p=!0,y(),i=u(m,l,e),v.error(e)},complete:function(){d=!0,y(),i=u(m,h),v.complete()}}),(0,n.Tg)(e).subscribe(t))})(e)}}function u(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];if(!0===t)return void e();if(!1!==t){var o=new a.Ms({next:function(){o.unsubscribe(),e()}});return(0,n.Tg)(t.apply(void 0,(0,i.__spreadArray)([],(0,i.__read)(r)))).subscribe(o)}}},50346:(e,t,r)=>{r.d(t,{c:()=>c});
1var i=r(12882),n=r(18947),s=r(84471),a=r(97460),o=r(78619),l=r(77698),u=r(75555),c=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var s=this,a=!function(e){return e&&e instanceof i.vU||e&&(0,l.T)(e.next)&&(0,l.T)(e.error)&&(0,l.T)(e.complete)&&(0,n.Uv)(e)}(e)?new i.Ms(e,t,r):e;return(0,u.Y)(function(){var e=s.operator,t=s.source;a.add(e?e.call(a,t):t?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=h(t))(function(t,n){var s=new i.Ms({next:function(t){try{e(t)}catch(e){n(e),s.unsubscribe()}},error:n,complete:t});r.subscribe(s)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[s.s]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0===e.length?a.D:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)})(this)},e.prototype.toPromise=function(e){var t=this;return new(e=h(e))(function(e,r){var i;t.subscribe(function(e){return i=e},function(e){return r(e)},function(){return e(i)})})},e.create=function(t){return new e(t)},e}();function h(e){var t;return null!=(t=null!=e?e:o.$.Promise)?t:Promise}},51596:(e,t,r)=>{r.d(t,{c:()=>i});let i=Array.isArray},53469:(e,t,r)=>{r.d(t,{X:()=>i});function i(e){return e.catch(()=>{}),e}},53588:(e,t,r)=>{r.d(t,{n:()=>u});var i=r(20996),n=r(14232),s=r(25977),a=r(53469);let o=r(46494).S?n.useLayoutEffect:n.useEffect;var l=r(67994);let u=function(e,t){let r=(0,l.m)(t?.client),[u,h]=n.useState(()=>c(r)),d=n.useRef({result:u,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});o(()=>{Object.assign(d.current,{client:r,options:t,mutation:e})});let f=n.useCallback((e={})=>{let{options:t,mutation:r}=d.current,n={...t,mutation:r},o=e.client||d.current.client,l="function"==typeof e.context?e.context(t?.context):e.context;!d.current.result.loading&&d.current.isMounted&&h(d.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:o});let u=++d.current.mutationId,c=(0,s.l)(n,{...e,context:l});return(0,a.X)(o.mutate(c).then(t=>{let{data:r,error:n}=t,s=e.onError||d.current.options?.onError;if(n&&s&&s(n,c),u===d.current.mutationId){let e={called:!0,loading:!1,data:r,error:n,client:o};d.current.isMounted&&!(0,i.L)(d.current.result,e)&&h(d.current.result=e)}let a=e.onCompleted||d.current.options?.onCompleted;return n||a?.(t.data,c),t},t=>{if(u===d.current.mutationId&&d.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:o};(0,i.L)(d.current.result,e)||h(d.current.result=e)}let r=e.onError||d.current.options?.onError;throw r&&r(t,c),t}))},[]),p=n.useCallback(()=>{if(d.current.isMounted){let e=c(d.current.client);Object.assign(d.current,{mutationId:0,result:e}),h(e)}},[]);return n.useEffect(()=>{let e=d.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[f,{reset:p,...u}]};function c(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}},53932:(e,t,r)=>{r.d(t,{a:()=>h});var i=r(20996),n=r(68183),s=r(45265),a=r(40485),o=r(67509),l=r(87693),u=r(8466),c=r(94400);function h(e,{data:t,...r},{data:f,...p},y){return(0,i.L)(r,p)&&function e(t,r,n,s){if(r===n)return!0;let o=new Set;return t.selections.every(t=>{if(o.has(t)||(o.add(t),!(0,c.M)(t,s.variables)||d(t)))return!0;if((0,l.d)(t)){let a=(0,u.u)(t),o=r&&r[a],l=n&&n[a],c=t.selectionSet;if(!c)return(0,i.L)(o,l);let h=Array.isArray(o),d=Array.isArray(l);if(h!==d)return!1;if(h&&d){let t=o.length;if(l.length!==t)return!1;for(let r=0;r<t;++r)if(!e(c,o[r],l[r],s))return!1;return!0}return e(c,o,l,s)}{let i=(0,a.H)(t,s.fragmentMap);if(i)return!!d(i)||e(i.selectionSet,r,n,s)}})}((0,o.V)(e).selectionSet,t,f,{fragmentMap:(0,n.J)((0,s.z)(e)),variables:y})}function d(e){return!!e.directives&&e.directives.some(f)}function f(e){return"nonreactive"===e.name.value}},55553:(e,t,r)=>{r.d(t,{B:()=>s});var i=r(39668),n=r(90664);function s(e,{max:t,makeCacheKey:r=e=>e}){let a=new i.b(!0),o=new n.A(t);return(...t)=>{let i=a.lookupArray(r(t)),n=o.get(i);if(n){if(n.error)throw n.error;return n.result}let s=o.set(i,{});try{return s.result=e(...t)}catch(e){throw s.error=e,e}}}},56706:(e,t,r)=>{r.d(t,{w:()=>i});var i=new(r(50346)).c(function(e){return e.complete()})},60592:(e,t,r)=>{r.d(t,{c:()=>c});var i=r(99853),n=r(39668),s=r(63965),a=r(14824),o=r(19650),l=r(80593);function u(e){return e}class c{transform;cached;resultCache=new WeakSet;getCacheKey(e){return[e]}static identity(){return new c(u,{cache:!1})}static split(e,t,r=c.identity()){return Object.assign(new c(i=>(e(i)?t:r).transformDocument(i),{cache:!1}),{left:t,right:r})}constructor(e,t={}){this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}resetCache(){if(this.cached){let e=new n.b;this.performWork=(0,s.LV)(c.prototype.performWork.bind(this),{makeCacheKey:t=>{let r=this.getCacheKey(t);if(r)return(0,o.V1)(Array.isArray(r),20),e.lookupArray(r)},max:l.v["documentTransform.cache"],cache:i.l})}}performWork(e){return(0,a.s)(e),this.transform(e)}transformDocument(e){if(this.resultCache.has(e))return e;let t=this.performWork(e);return this.resultCache.add(t),t}concat(e){return Object.assign(new c(t=>e.transformDocument(this.transformDocument(t)),{cache:!1}),{left:this,right:e})}left;
1right}},61930:(e,t,r)=>{r.d(t,{l:()=>s});var i=r(84471),n=r(77698);function s(e){return(0,n.T)(e[i.s])}},63136:(e,t,r)=>{r.d(t,{l:()=>i});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},63642:(e,t,r)=>{r.d(t,{K$:()=>a,uR:()=>o,$b:()=>l});var i=r(71482),n=r(41591);class s extends Error{static is(e){return(0,n.t)(e,"UnconventionalError")}constructor(e){super("An error of unexpected shape occurred.",{cause:e}),this.name="UnconventionalError",(0,n.w)(this),Object.setPrototypeOf(this,s.prototype)}}let a=Symbol();function o(e){return"extensions"in e&&i.d.is(e.extensions[a])}function l(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name&&("string"==typeof e.stack||void 0===e.stack)?e:"string"==typeof e?Error(e,{cause:e}):new s(e)}},63672:(e,t,r)=>{r.d(t,{T:()=>n});var i=r(77698);function n(e){return Symbol.asyncIterator&&(0,i.T)(null==e?void 0:e[Symbol.asyncIterator])}},63965:(e,t,r)=>{let i;r.d(t,{DX:()=>d,NS:()=>I,yN:()=>V,LV:()=>j});var n=r(39668),s=r(36898);let a=null,o={},l=1;function u(e){try{return e()}catch(e){}}let c="@wry/context:Slot",h=u(()=>globalThis)||u(()=>global)||Object.create(null),d=h[c]||Array[c]||function(e){try{Object.defineProperty(h,c,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=a;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===o)break;return e!==a&&(a.slots[this.id]=t),!0}return a&&(a.slots[this.id]=o),!1}getValue(){if(this.hasValue())return a.slots[this.id]}withValue(e,t,r,i){let n={__proto__:null,[this.id]:e},s=a;a={parent:s,slots:n};try{return t.apply(i,r)}finally{a=s}}static bind(e){let t=a;return function(){let r=a;try{return a=t,e.apply(this,arguments)}finally{a=r}}}static noContext(e,t,r){if(!a)return e.apply(r,t);{let i=a;try{return a=null,e.apply(r,t)}finally{a=i}}}}),{bind:f,noContext:p}=d,y=new d,{hasOwnProperty:m}=Object.prototype,b=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function v(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let g=[];function w(e,t){if(!e)throw Error(t||"assertion failure")}function k(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function S(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class O{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,++O.count}peek(){if(1===this.value.length&&!E(this))return x(this),this.value[0]}recompute(e){var t,r,i;return w(!this.recomputing,"already recomputing"),x(this),E(this)?(t=this,r=e,R(t),y.withValue(t,_,[t,r]),function(e,t){if("function"==typeof e.subscribe)try{v(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(t,r)&&((i=t).dirty=!1,E(i)||function(e){C(e,F)}(i)),S(t.value)):S(this.value)}setDirty(){var e;this.dirty||(this.dirty=!0,e=this,C(e,T),v(this))}dispose(){this.setDirty(),R(this),C(this,(e,t)=>{e.setDirty(),M(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=g.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(b(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),g.push(this.deps),this.deps=null)}}function x(e){let t=y.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),E(e)?T(t,e):F(t,e),t}function _(e,t){let r;e.recomputing=!0;let{normalizeResult:i}=e;i&&1===e.value.length&&(r=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),i&&r&&!k(r,e.value))try{e.value[0]=i(e.value[0],r[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function E(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}O.count=0;function C(e,t){let r=e.parents.size;if(r){let i=b(e.parents);for(let n=0;n<r;++n)t(i[n],e)}}function T(e,t){w(e.childValues.has(t)),w(E(t));let r=!E(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=g.pop()||new Set;e.dirtyChildren.add(t),r&&C(e,T)}function F(e,t){w(e.childValues.has(t)),w(!E(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):k(r,t.value)||e.setDirty(),D(e,t),E(e)||C(e,F)}function D(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(g.length<100&&g.push(r),e.dirtyChildren=null))}function R(e){e.childValues.size>
10&&e.childValues.forEach((t,r)=>{M(e,r)}),e.forgetDeps(),w(null===e.dirtyChildren)}function M(e,t){t.parents.delete(e),e.childValues.delete(t),D(e,t)}let N={setDirty:!0,dispose:!0,forget:!0};function V(e){let t=new Map,r=e&&e.subscribe;function i(e){let i=y.getValue();if(i){let n=t.get(e);n||t.set(e,n=new Set),i.dependOn(n),"function"==typeof r&&(v(n),n.unsubscribe=r(e))}}return i.dirty=function(e,r){let i=t.get(e);if(i){let n=r&&m.call(N,r)?r:"setDirty";b(i).forEach(e=>e[n]()),t.delete(e),v(i)}},i}function I(...e){return(i||(i=new n.b("function"==typeof WeakMap))).lookupArray(e)}let P=new Set;function j(e,{max:t=65536,keyArgs:r,makeCacheKey:i=I,normalizeResult:n,subscribe:a,cache:o=s.C}=Object.create(null)){let l="function"==typeof o?new o(t,e=>e.dispose()):o,u=function(){let t=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let s=l.get(t);s||(l.set(t,s=new O(e)),s.normalizeResult=n,s.subscribe=a,s.forget=()=>l.delete(t));let o=s.recompute(Array.prototype.slice.call(arguments));return l.set(t,s),P.add(l),y.hasValue()||(P.forEach(e=>e.clean()),P.clear()),o};function c(e){let t=e&&l.get(e);t&&t.setDirty()}function h(e){let t=e&&l.get(e);if(t)return t.peek()}function d(e){return!!e&&l.delete(e)}return Object.defineProperty(u,"size",{get:()=>l.size,configurable:!1,enumerable:!1}),Object.freeze(u.options={max:t,keyArgs:r,makeCacheKey:i,normalizeResult:n,subscribe:a,cache:l}),u.dirtyKey=c,u.dirty=function(){c(i.apply(null,arguments))},u.peekKey=h,u.peek=function(){return h(i.apply(null,arguments))},u.forgetKey=d,u.forget=function(){return d(i.apply(null,arguments))},u.makeCacheKey=i,u.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(u)}},67509:(e,t,r)=>{r.d(t,{V:()=>s});var i=r(19650),n=r(14824);function s(e){let t;for(let r of((0,n.s)(e),e.definitions)){if("OperationDefinition"===r.kind)return r;"FragmentDefinition"!==r.kind||t||(t=r)}if(t)return t;throw(0,i.vA)(12)}},68183:(e,t,r)=>{r.d(t,{J:()=>i});function i(e=[]){let t={};return e.forEach(e=>{t[e.name.value]=e}),t}},68246:(e,t,r)=>{r.d(t,{m:()=>a});var i=r(4902),n=r(3649),s=r(1576),a=function(e){function t(t,r,i){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===i&&(i=s.U);var n=e.call(this)||this;return n._bufferSize=t,n._windowTime=r,n._timestampProvider=i,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=r===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,r),n}return(0,i.__extends)(t,e),t.prototype.next=function(t){var r=this.isStopped,i=this._buffer,n=this._infiniteTimeWindow,s=this._timestampProvider,a=this._windowTime;!r&&(i.push(t),n||i.push(s.now()+a)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,i=this._buffer.slice(),n=0;n<i.length&&!e.closed;n+=r?1:2)e.next(i[n]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,i=this._infiniteTimeWindow,n=(i?1:2)*e;if(e<1/0&&n<r.length&&r.splice(0,r.length-n),!i){for(var s=t.now(),a=0,o=1;o<r.length&&r[o]<=s;o+=2)a=o;a&&r.splice(0,a+1)}},t}(n.B)},71482:(e,t,r)=>{r.d(t,{d:()=>s});var i=r(41591);function n(e){return e.map(e=>e.message||"Error message not found.").join("\n")}class s extends Error{static is(e){return(0,i.t)(e,"CombinedProtocolErrors")}static formatMessage=n;errors;constructor(e){super(s.formatMessage(e,{defaultFormatMessage:n})),this.name="CombinedProtocolErrors",this.errors=e,(0,i.w)(this),Object.setPrototypeOf(this,s.prototype)}}},72011:(e,t,r)=>{r.d(t,{y:()=>n});var i=r(77698);function n(e){return(0,i.T)(null==e?void 0:e.then)}},73545:(e,t,r)=>{r.d(t,{$:()=>D});var i=r(88843),n=r(36956);class s extends i.C{constructor(e={}){super((t,r)=>{let i=t.client,s=i.queryManager.clientOptions,a=t.getContext();{let{name:r,version:i,transport:o="headers"}=(0,n.o)({},s.clientAwareness,e.clientAwareness,a.clientAwareness);"headers"===o&&t.setContext(({headers:e})=>({headers:(0,n.o)({"apollographql-client-name":r,"apollographql-client-version":i},e)}))}{let{transport:r="extensions"}=(0,n.o)({},s.enhancedClientAwareness,e.enhancedClientAwareness);"extensions"===r&&(t.extensions=(0,n.o)({clientLibrary:{name:"@apollo/client",version:i.version}},t.extensions)),"headers"===r&&t.setContext(({headers:e})=>({headers:(0,n.o)({"apollographql-library-name":"@apollo/client","apollographql-library-version":i.version},e)}))}return r(t)})}}var a=r(50346),o=r(74968),l=r(26595);function u(e,t){return(0,l.V)(e)?.operation===t}var c=r(1300),h=r(68906),d=r(19650),f=r(63642),p=r(71482),y=r(41591);
1class m extends Error{static is(e){return(0,y.t)(e,"ServerError")}response;statusCode;bodyText;constructor(e,t){super(e),this.name="ServerError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.w)(this),Object.setPrototypeOf(this,m.prototype)}}class b extends Error{static is(e){return(0,y.t)(e,"ServerParseError")}response;statusCode;bodyText;constructor(e,t){super(e instanceof Error?e.message:"Could not parse server response",{cause:e}),this.name="ServerParseError",this.response=t.response,this.statusCode=t.response.status,this.bodyText=t.bodyText,(0,y.w)(this),Object.setPrototypeOf(this,b.prototype)}}var v=r(23356);let{hasOwnProperty:g}=Object.prototype;async function*w(e){let t,r=new TextDecoder("utf-8"),i=e.headers?.get("content-type"),n=i?.match(/;\s*boundary=(?:'([^']+)'|"([^"]+)"|([^"'].+?))\s*(?:;|$)/i),s="\r\n--"+(n?n[1]??n[2]??n[3]??"-":"-"),a="";(0,d.V1)(e.body&&"function"==typeof e.body.getReader,62);let o=e.body.getReader(),l=!1,u=!1,c=()=>u&&"-"==a[0]&&"-"==a[1];try{for(;!l;){({value:t,done:l}=await o.read());let e="string"==typeof t?t:r.decode(t),i=a.length-s.length+1,n=(a+=e).indexOf(s,i);for(;n>-1&&!c();){let e;u=!0,[e,a]=[a.slice(0,n),a.slice(n+s.length)];let t=e.indexOf("\r\n\r\n"),r=function(e){let t={};return e.split("\n").forEach(e=>{let r=e.indexOf(":");if(r>-1){let i=e.slice(0,r).trim().toLowerCase(),n=e.slice(r+1).trim();t[i]=n}}),t}(e.slice(0,t))["content-type"];if(r&&-1===r.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");let i=e.slice(t);i&&(yield i),n=a.indexOf(s)}if(c())return}throw Error("premature end of multipart body")}finally{o.cancel()}}async function k(e,t){for await(let r of w(e)){let i=S(e,r);if(0!=Object.keys(i).length)if((0,v.U)(i)&&"payload"in i){if(1===Object.keys(i).length&&null===i.payload)return;let e={...i.payload};
1"errors"in i&&(e.extensions={...e.extensions,[f.K$]:new p.d(i.errors??[])}),t(e)}else t(i)}}function S(e,t){if(e.status>=300)throw new m(`Response not successful: Received status code ${e.status}`,{response:e,bodyText:t});try{return JSON.parse(t)}catch(r){throw new b(r,{response:e,bodyText:t})}}var O=r(3322);let x={http:{includeQuery:!0,includeExtensions:!0,preserveHeaderCase:!1},headers:{accept:"application/graphql-response+json,application/json;q=0.9","content-type":"application/json"},options:{method:"POST"}},_=(e,t)=>t(e),E=(0,h.n)(()=>fetch);function C(){}class T extends i.C{constructor(e={}){let{uri:t="/graphql",fetch:r,print:i=_,includeExtensions:s,preserveHeaderCase:l,useGETForQueries:f,includeUnusedVariables:p=!1,...y}=e;c.g&&(e=>{(0,d.V1)(e||"u">typeof fetch,61)})(r||E);const v={http:(0,n.o)({includeExtensions:s,preserveHeaderCase:l}),options:y.fetchOptions,credentials:y.credentials,headers:y.headers};super(e=>{var n,s;let l,c,d,y=(l=e.getContext().uri)||("function"==typeof t?t(e):t||"/graphql"),w=e.getContext(),_={...w.http};u(e.query,"subscription")&&(_.accept=["multipart/mixed;boundary=graphql;subscriptionSpec=1.0",..._.accept||[]]);let{options:T,body:F}=function(e,t,...r){let i={},n={};r.forEach(e=>{i={...i,...e.options,headers:{...i.headers,...e.headers}},e.credentials&&(i.credentials=e.credentials),i.headers.accept=(e.http?.accept||[]).concat(i.headers.accept).join(","),n={...n,...e.http}}),i.headers=function(e,t){if(!t){let t={};
1return Object.keys(Object(e)).forEach(r=>{t[r.toLowerCase()]=e[r]}),t}let r={};Object.keys(Object(e)).forEach(t=>{r[t.toLowerCase()]={originalName:t,value:e[t]}});let i={};return Object.keys(r).forEach(e=>{i[r[e].originalName]=r[e].value}),i}(i.headers,n.preserveHeaderCase);let{operationName:s,extensions:a,variables:o,query:l}=e,u={operationName:s,variables:o};return n.includeExtensions&&Object.keys(a||{}).length&&(u.extensions=a),n.includeQuery&&(u.query=t(l,O.y)),{options:i,body:u}}(e,i,x,v,{http:_,options:w.fetchOptions,credentials:w.credentials,headers:w.headers});F.variables&&!p&&(n=F.variables,s=e.query,c={...n},d=new Set(Object.keys(n)),(0,o.YR)(s,{Variable(e,t,r){r&&"VariableDefinition"!==r.kind&&d.delete(e.name.value)}}),d.forEach(e=>{delete c[e]}),F.variables=c);let D=new AbortController,R=()=>{D=void 0};if(T.signal){let e=T.signal,t=()=>{D?.abort(e.reason)};e.addEventListener("abort",t,{once:!0}),R=()=>{D?.signal.removeEventListener("abort",R),D=void 0,e.removeEventListener("abort",t),R=C},D.signal.addEventListener("abort",R,{once:!0})}
1return T.signal=D.signal,f&&!u(e.query,"mutation")&&(T.method="GET"),new a.c(t=>{if("GET"===T.method){let{newURI:e,parseError:t}=function(e,t){let r=[],i=(e,t)=>{r.push(`${e}=${encodeURIComponent(t)}`)};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){let e;try{e=JSON.stringify(t.variables)}catch(e){return{parseError:e}}i("variables",e)}if(t.extensions){let e;try{e=JSON.stringify(t.extensions)}catch(e){return{parseError:e}}i("extensions",e)}let n="",s=e,a=e.indexOf("#");-1!==a&&(n=e.substr(a),s=e.substr(0,a));let o=-1===s.indexOf("?")?"?":"&";return{newURI:s+o+r.join("&")+n}}(y,F);if(t)throw t;y=e}else T.body=JSON.stringify(F);let i=r||(0,h.n)(()=>fetch)||E,n=t.next.bind(t);return i(y,T).then(t=>{e.setContext({response:t});let r=t.headers?.get("content-type");return null!==r&&/^multipart\/mixed/i.test(r)?k(t,n):(t=>t.text().then(r=>{let i=function(e,t){let r=e.headers.get("content-type");if(r?.includes("application/graphql-response+json"))try{return JSON.parse(t)}catch(r){throw new b(r,{response:e,bodyText:t})}return S(e,t)}(t,r);if(!Array.isArray(i)&&!g.call(i,"data")&&!g.call(i,"errors"))throw new m(`Server response was malformed for query '${Array.isArray(e)?e.map(e=>e.operationName):e.operationName}'.`,{response:t,bodyText:r});return i}))(t).then(n)}).then(()=>{R(),t.complete()}).catch(e=>{R(),t.error(e)}),()=>{D&&D.abort()}})})}}class F extends i.C{constructor(e={}){const{left:t,right:r,request:n}=i.C.from([new s(e),new T(e)]);super(n),Object.assign(this,{left:t,right:r})}}let D=(e={})=>new F(e)},74874:(e,t,r)=>{r.d(t,{Q:()=>s});var i=r(45019),n=r(24497);let s=(0,r(55553).B)(function(e,t,r){let s,a;function o(e){return e!==s&&(a=r(s=e)),a}return Object.assign(e.pipe((0,i.T)(o),(0,n.t)({bufferSize:1,refCount:!0})),{getCurrentResult:()=>o(e.getCurrentResult())})},{max:1,makeCacheKey:e=>e.slice(0,2)})},74968:(e,t,r)=>{r.d(t,{YR:()=>l,sP:()=>o});var i=r(58287),n=r(77016),s=r(86158),a=r(94587);let o=Object.freeze({});function l(e,t,r=s.aD){let u,c,h,d=new Map;for(let e of Object.values(a.b))d.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let f=Array.isArray(e),p=[e],y=-1,m=[],b=e,v=[],g=[];do{var w,k,S;let e,a=++y===p.length,l=a&&0!==m.length;if(a){if(c=0===g.length?void 0:v[v.length-1],b=h,h=g.pop(),l)if(f){b=b.slice();let e=0;for(let[t,r]of m){let i=t-e;null===r?(b.splice(i,1),e++):b[i]=r}}else for(let[e,t]of(b={...b},m))b[e]=t;y=u.index,p=u.keys,m=u.edits,f=u.inArray,u=u.prev}else if(h){if(null==(b=h[c=f?y:p[y]]))continue;v.push(c)}if(!Array.isArray(b)){(0,s.Ll)(b)||(0,i.U)(!1,`Invalid AST Node: ${(0,n.N)(b)}.`);let r=a?null==(w=d.get(b.kind))?void 0:w.leave:null==(k=d.get(b.kind))?void 0:k.enter;if((e=null==r?void 0:r.call(t,b,c,h,v,g))===o)break;if(!1===e){if(!a){v.pop();continue}}else if(void 0!==e&&(m.push([c,e]),!a))if((0,s.Ll)(e))b=e;else{v.pop();continue}}void 0===e&&l&&m.push([c,b]),a?v.pop():(u={inArray:f,index:y,keys:p,edits:m,prev:u},p=(f=Array.isArray(b))?b:null!=(S=r[b.kind])?S:[],y=-1,m=[],h&&g.push(h),h=b)}while(void 0!==u);return 0!==m.length?m[m.length-1][1]:e}},75953:(e,t,r)=>{r.d(t,{o:()=>s});var i=r(50346),n=r(88843);function s(e){return new a((t,r)=>e(r,t))}class a extends n.C{constructor(e){super((t,r)=>{let{...n}=t;return Object.defineProperty(n,"client",{enumerable:!1,value:t.client}),new i.c(i=>{let s=!1;return Promise.resolve(n).then(r=>e(t.getContext(),r)).then(t.setContext).then(()=>{s||r(t).subscribe(i)}).catch(i.error.bind(i)),()=>{s=!0}})})}}},77256:(e,t,r)=>{r.d(t,{X:()=>i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},78830:(e,t,r)=>{function i(){throw Error("only supported in development mode")}r.d(t,{cM:()=>a,ep:()=>s,tQ:()=>n});let n=i,s=i,a=i},80593:(e,t,r)=>{r.d(t,{v:()=>s});var i=r(63605);let n=Symbol.for("apollo.cacheSize"),s={...i.A[n]}},84471:(e,t,r)=>{r.d(t,{s:()=>i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},86223:(e,t,r)=>{r.d(t,{m:()=>n});var i=r(77698);function n(e){return e&&(0,i.T)(e.schedule)}},86264:(e,t,r)=>{let i;r.d(t,{M:()=>l});var n=r(1300),s=r(80593),a=r(90664),o=r(93148);let l=Object.assign(function(e){return JSON.stringify(e,u)},{reset(){i=new a.V(s.v.canonicalStringify||1e3)}});function u(e,t){if(t&&"object"==typeof t){let e=Object.getPrototypeOf(t);if(e===Object.prototype||null===e){let r=Object.keys(t);if(r.every(c))return t;let n=JSON.stringify(r),s=i.get(n);if(!s){r.sort();let e=JSON.stringify(r);s=i.get(e)||r,i.set(n,s),i.set(e,s)}let a=Object.create(e);
1return s.forEach(e=>{a[e]=t[e]}),a}}return t}function c(e,t,r){return 0===t||r[t-1]<=e}n.g&&(0,o.D_)("canonicalStringify",()=>i.size),l.reset()},87693:(e,t,r)=>{r.d(t,{d:()=>i});function i(e){return"Field"===e.kind}},88843:(e,t,r)=>{r.d(t,{C:()=>l});var i=r(56706),n=r(7141),s=r(26595),a=r(1300),o=r(19650);class l{static empty(){return new l(()=>i.w)}static from(e){if(0===e.length)return l.empty();let[t,...r]=e;return t.concat(...r)}static split(e,t,r=new l((e,t)=>t(e))){return Object.assign(new l((i,n)=>{let s=e(i);return a.g&&"boolean"!=typeof s&&a.g&&o.V1.warn(63,s),s?t.request(i,n):r.request(i,n)}),{left:t,right:r})}static execute(e,t,r){return e.request(function(e,{client:t}){let r={query:e.query,variables:e.variables||{},extensions:e.extensions||{},operationName:(0,n.n)(e.query),operationType:(0,s.V)(e.query).operation},i={...e.context},a=()=>Object.freeze({...i});return Object.defineProperty(r,"setContext",{enumerable:!1,value:e=>{i="function"==typeof e?{...i,...e(a())}:{...i,...e}}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:a}),Object.defineProperty(r,"client",{enumerable:!1,value:t}),r}(t,r),()=>(a.g&&a.g&&o.V1.warn(64),i.w))}static concat(...e){return l.from(e)}constructor(e){e&&(this.request=e)}split(e,t,r){return this.concat(l.split(e,t,r))}concat(...e){return 0===e.length?this:e.reduce(this.combine.bind(this),this)}combine(e,t){return Object.assign(new l((r,i)=>e.request(r,e=>t.request(e,i))),{left:e,right:t})}request(e,t){throw(0,o.vA)(65)}left;right}},89664:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(19650);function n(e){(0,i.V1)("Document"===e.kind,6),(0,i.V1)(e.definitions.length<=1,7);let t=e.definitions[0];return(0,i.V1)("FragmentDefinition"===t.kind,8),t}},90240:(e,t,r)=>{r.d(t,{s:()=>l,y:()=>o});var i=r(94587),n=r(63965),s=r(1300),a=r(19650);let o=new n.DX;function l(e){let t=e.directives?.find(({name:e})=>"unmask"===e.value);if(!t)return"mask";let r=t.arguments?.find(({name:e})=>"mode"===e.value);return(s.g&&r&&(r.value.kind===i.b.VARIABLE?s.g&&a.V1.warn(44):r.value.kind!==i.b.STRING?s.g&&a.V1.warn(45):"migrate"!==r.value.value&&s.g&&a.V1.warn(46,r.value.value)),r&&"value"in r.value&&"migrate"===r.value.value)?"migrate":"unmask"}},90664:(e,t,r)=>{r.d(t,{A:()=>o,V:()=>l});var i=r(99853),n=r(36898);let s=new WeakSet;function a(e){!(e.size<=(e.max||-1))&&(s.has(e)||(s.add(e),setTimeout(()=>{e.clean(),s.delete(e)},100)))}let o=function(e,t){let r=new i.l(e,t);return r.set=function(e,t){let r=i.l.prototype.set.call(this,e,t);return a(this),r},r},l=function(e,t){let r=new n.C(e,t);return r.set=function(e,t){let r=n.C.prototype.set.call(this,e,t);return a(this),r},r}},91031:(e,t,r)=>{r.d(t,{J:()=>function e(t,r,s,a){if(s.kind===i.b.INT||s.kind===i.b.FLOAT)t[r.value]=Number(s.value);else if(s.kind===i.b.BOOLEAN||s.kind===i.b.STRING)t[r.value]=s.value;else if(s.kind===i.b.OBJECT){let i={};s.fields.map(t=>e(i,t.name,t.value,a)),t[r.value]=i}else if(s.kind===i.b.VARIABLE){let e=(a||{})[s.name.value];t[r.value]=e}else if(s.kind===i.b.LIST)t[r.value]=s.values.map(t=>{let i={};return e(i,r,t,a),i[r.value]});else if(s.kind===i.b.ENUM)t[r.value]=s.value;else if(s.kind===i.b.NULL)t[r.value]=null;else throw(0,n.vA)(19,r.value,s.kind)}});var i=r(94587),n=r(19650)},93148:(e,t,r)=>{r.d(t,{D_:()=>n});let i={};function n(e,t){i[e]=t}},94400:(e,t,r)=>{r.d(t,{M:()=>n});var i=r(19650);function n({directives:e},t){var r;let s;return!e||!e.length||(s=[],(r=e)&&r.length&&r.forEach(e=>{if(!function({name:{value:e}}){return"skip"===e||"include"===e}(e))return;let t=e.arguments,r=e.name.value;(0,i.V1)(t&&1===t.length,16,r);let n=t[0];(0,i.V1)(n.name&&"if"===n.name.value,17,r);let a=n.value;(0,i.V1)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),18,r),s.push({directive:e,ifArgument:n})}),s).every(({directive:e,ifArgument:r})=>{let n=!1;return"Variable"===r.value.kind?(n=t&&t[r.value.name.value],(0,i.V1)(void 0!==n,15,e.name.value)):n=r.value.value,"skip"===e.name.value?!n:n})}},96540:(e,t,r)=>{r.d(t,{w:()=>n});var i=r(91031);function n(e){let t={},r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(e=>{e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},97460:(e,t,r)=>{r.d(t,{D:()=>i});function i(e){return e}},99853:(e,t,r)=>{function i(){}r.d(t,{l:()=>o});let n="u">typeof WeakRef?WeakRef:function(e){return{deref:()=>e}}
1,s="u">typeof WeakMap?WeakMap:Map,a="u">typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:i,unregister:i}};class o{constructor(e=1/0,t=i){this.max=e,this.dispose=t,this.map=new s,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{let e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){let t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);let r=t.key;delete t.key,t.keyRef=new n(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new a(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.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--;let t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){let t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.