1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5607],{24601:function(){},24076:function(e,t,r){"use strict";var n=r(36760),i=r.n(n),o=r(2265),a=r(69784),s=r(85001),u=r(57437);let c=o.forwardRef(({as:e,bsPrefix:t,variant:r="primary",size:n,active:o=!1,disabled:c=!1,className:l,...f},h)=>{let p=(0,s.vE)(t,"btn"),[d,{tagName:v}]=(0,a.FT)({tagName:e,disabled:c,...f});return(0,u.jsx)(v,{...d,...f,ref:h,disabled:c,className:i()(l,p,o&&"active",r&&`${p}-${r}`,n&&`${p}-${n}`,f.href&&c&&"disabled")})});c.displayName="Button",t.Z=c},18975:function(e,t,r){"use strict";var n=r(40257);r(24601);var i=r(2265),o=i&&"object"==typeof i&&"default"in i?i:{default:i},a=void 0!==n&&n.env&&!0,s=function(e){return"[object String]"===Object.prototype.toString.call(e)},u=function(){function e(e){var t=void 0===e?{}:e,r=t.name,n=void 0===r?"stylesheet":r,i=t.optimizeForSpeed,o=void 0===i?a:i;c(s(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",c("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var u="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=u?u.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,r){return"number"==typeof r?e._serverSheet.cssRules[r]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),r},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(c(s(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof t&&(t=r.cssRules.length);try{r.insertRule(e,t)}catch(e){return -1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!r.cssRules[e])return e;r.deleteRule(e);try{r.insertRule(t,e)}catch(t){r.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];c(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},t.deleteRule=function(e){if("undefined"==typeof window){this._serverSheet.deleteRule(e);return}if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},t.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,r){return r?t=t.concat(Array.prototype.map.call(e.getSheetForTag(r).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,r){t&&c(s(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return r?i.insertBefore(n,r):i.appendChild(n),n},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var l=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},f={};function h(e,t){if(!t)return"jsx-"+e;var r=String(t),n=e+r;return f[n]||(f[n]="jsx-"+l(e+"-"+r)),f[n]}function p(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var r=e+t;return f[r]||(f[r]=t.replace(/__jsx-style-dynamic-selector/g,e)),f[r]}var d=function(){function e(e){var t=void 0===e?{}:e,r=t.styleSheet,n=void 0===r?null:r,i=t.optimizeForSpeed,o=void 0!==i&&i;this._sheet=n||new u({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),n&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var r=this.getIdAndRules(e),n=r.styleId,i=r.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var o=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=o,this._instancesCounts[n]=1},t.remove=function(e){var t=this,r=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var n=this._fromServer&&this._fromServer[r];n?(n.parentNode.removeChild(n),delete this._fromServer[r]):(this._indices[r].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[r]),delete this._instancesCounts[r]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],r=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return r[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,r;return t=this.cssRules(),void 0===(r=e)&&(r={}),t.map(function(e){var t=e[0],n=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,r=e.dynamic,n=e.id;if(r){var i=h(n,r);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),v=i.createContext(null);v.displayName="StyleSheetContext";var y=o.default.useInsertionEffect||o.default.useLayoutEffect,m="undefined"!=typeof window?new d:void 0;function g(e){var t=m||i.useContext(v);return t&&("undefined"==typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}g.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},t.style=g},29:function(e,t,r){"use strict";e.exports=r(18975).style},83598:function(e,t,r){"use strict";r.d(t,{$O:function(){return g},E_:function(){return b},Is:function(){return w},RC:function(){return function e(t,r,n){return!!(0,o.s)(r)&&((0,a.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,i.My)(t)&&(0,s.LZ)(t,n)){var o=(0,i.u2)(t);return f.call(r,o)&&(!t.selectionSet||e(t.selectionSet,r[o],n))}return!0}))}},RI:function(){return f},ig:function(){return k},j:function(){return _},jS:function(){return v},jp:function(){return m},lg:function(){return y},uG:function(){return p}});var n=r(85292),i=r(48338),o=r(23446),a=r(92086),s=r(30696),u=r(71269),c=r(80960),l=r(36517),f=Object.prototype.hasOwnProperty;function h(e){return null==e}function p(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=h(n)?h(i)?void 0:{_id:i}:{id:n}),h(n)&&!h(i)&&(n=i),!h(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var d={dataIdFromObject:p,addTypename:!0,resultCaching:!0,canonizeResults:!1};function v(e){return(0,n.o)(d,e)}function y(e){var t=e.canonizeResults;return void 0===t?d.canonizeResults:t}function m(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var g=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(g);return t?t[0]:e}function _(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!(0,a.k)(e)}function k(){return new u.w0}function w(e,t){var r=(0,c.F)((0,l.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},93533:function(e,t,r){"use strict";r.d(t,{h:function(){return ek}});var n,i,o=r(5853),a=r(82257),s=r(98942),u=r(36628),c=r(80960),l=r(26755),f=r(36517),h=r(69090),p=r(71269),d=r(45110),v=r(97353),y=r(20311),m=r(95607),g=r(81014),b=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,s.re)(c.Yk,{max:l.Q["cache.fragmentQueryDocuments"]||1e3,cache:d.k})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.o
1ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,g.MH)(e,"canonizeResults","cache.readQuery"),(0,g.P6)("canonizeResults",function(){return r.read((0,o.pi)((0,o.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,s=e.from,u=e.optimistic,c=(0,o._T)(e,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(n,i),d=void 0===s||"string"==typeof s?s:this.identify(s),v=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var g=i||(0,f.pD)(n).name.value;d||!1===globalThis.__DEV__||a.kG.warn(1,g)}var b=(0,o.pi)((0,o.pi)({},c),{returnPartialData:!0,id:d,query:l,optimistic:void 0===u||u});return new h.y(function(a){return r.watch((0,o.pi)((0,o.pi)({},b),{immediate:!0,callback:function(s){var u=v?(0,m.r)(s.result,n,r,i):s.result;if(!(t&&(0,y.W)(l,{data:t.result},{data:u},e.variables))){var c={data:u,complete:!!s.complete};s.missing&&(c.missing=(0,p.bw)(s.missing.map(function(e){return e.missing}))),t=(0,o.pi)((0,o.pi)({},s),{result:u}),a.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,g.MH)(e,"canonizeResults","cache.readFragment"),(0,g.P6)("canonizeResults",function(){return r.read((0,o.pi)((0,o.pi)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,o._T)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=(0,o._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&(0,g.MH)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var n=(0,g.P6)("canonizeResults",function(){return r.readQuery(e)}),i=t(n);return null==i?n:(r.writeQuery((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&(0,g.MH)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var n=(0,g.P6)("canonizeResults",function(){return r.readFragment(e)}),i=t(n);return null==i?n:(r.writeFragment((0,o.pi)((0,o.pi)({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(b.prototype.getMemoryInternals=v.Kb);var _=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,o.ZT)(t,e),t}(Error),k=r(25596),w=r(55484),S=r(95266),O=r(37469),E=r(48338),T=r(50499),R=r(59394),D=r(85292),x=r(30696),F=r(82187),I=r(23446),C=r(46238),j=r(83598),M=Object.create(null),q=function(){return M},Q=Object.create(null),N=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,F.J)((0,E.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,E.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,E.kQ)(e);if((0,E.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,E.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),j.RI.call(this.data,e)){var r=this.data[e];if(r&&j.RI.call(r,t))return r[t]}return"__typename"===t&&j.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof V?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),j.RI.call(this.data,e))?this.data[e]:this instanceof V?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;
1(0,E.Yk)(e)&&(e=e.__ref),(0,E.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,a.kG)("string"==typeof r,2);var s=new p.w0(L).merge(i,o);if(this.data[r]=s,s!==i&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=(0,j.E_)(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof V||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),s=!1,u=!0,c={DELETE:M,INVALIDATE:Q,isReference:E.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,E.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var f=(0,j.E_)(l),h=n[l];if(void 0!==h){var p="function"==typeof t?t:t[l]||t[f];if(p){var d=p===q?M:p((0,F.J)(h),(0,o.pi)((0,o.pi)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(d===Q)r.group.dirty(e,l);else if(d===M&&(d=void 0),d!==h&&(i[l]=d,s=!0,h=d,!1!==globalThis.__DEV__)){var v=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&a.kG.warn(3,e),!0};if((0,E.Yk)(d))v(d);else if(Array.isArray(d))for(var y=!1,m=void 0,g=0,b=d;g<b.length;g++){var _=b[g];if((0,E.Yk)(_)){if(y=!0,v(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(m=_);if(y&&void 0!==m){!1!==globalThis.__DEV__&&a.kG.warn(4,m);break}}}}void 0!==h&&(u=!1)}}),s)return this.merge(e,i),u&&(this instanceof V?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=q,n):q)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(j.RI.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof V&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){j.RI.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&j.RI.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof V?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){j.RI.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof V;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!j.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,E.Yk)(e)&&(t[e.__ref]=!0),(0,I.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,I.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),P=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.dP)():null,this.keyMaker=new C.B(R.mr)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=(0,j.E_)(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function A(e,t){G(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new P(void 0===n||n))||this;return o.stump=new z(o),o.storageTrie=new C.B(R.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=N||(N={})),n.Root=i;var V=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,u.D)(n[r],i[r])||t.group.dirty(e,r)}
1):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return j.RI.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(N),z=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new P(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(V);function L(e,t,r){var n=e[r],i=t[r];return(0,u.D)(n,i)?n:i}function G(e){return!!(e instanceof N&&e.group.caching)}var B=r(92086),W=function(){function e(){this.known=new(R.sy?WeakSet:Set),this.pool=new C.B(R.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,I.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,I.s)(e)){var t=(0,I.s)(e)?(0,B.k)(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,I.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function U(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Y=function(){function e(e){var t=this;this.knownResults=new(R.mr?WeakMap:Map),this.config=(0,D.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,j.lg)(e)}),this.canon=e.canon||new W,this.executeSelectionSet=(0,s.re)(function(e){var r,n=e.context.canonizeResults,i=U(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?(0,o.pi)((0,o.pi)({},a),{result:t.canon.admit(a.result)}):a:(A(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||l.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:U,makeCacheKey:function(e,t,r,n){if(G(r.store))return r.store.makeCacheKey(e,(0,E.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,s.re)(function(e){return A(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||l.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(G(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new W},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,n=e.query,i=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;a=(0,o.pi)((0,o.pi)({},(0,f.O4)((0,f.iW)(n))),a);var h=(0,E.kQ)(void 0===i?"ROOT_QUERY":i),p=this.executeSelectionSet({selectionSet:(0,f.p$)(n).selectionSet,objectOrReference:h,enclosingRef:h,context:(0,o.pi)({store:r,query:n,policies:l,variables:a,varString:(0,S.B)(a),canonizeResults:c},(0,j.Is)(n,this.config.fragments))});if(p.missing&&(t=[new _(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(p.missing),p.missing,n,a)],!(void 0===s||s)))throw t[0];return{result:p.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(G(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,s=e.context;if((0,E.Yk)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,l=s.policies,f=s.store.getFieldValue(i,"__typename"),h=[],d=new p.w0;function v(e,r){var n;return e.missing&&(t=d.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof f&&!l.rootIdsByTypename[f]&&h.push({__typename:f});var y=new Set(n.selections);
1y.forEach(function(e){var n,p;if((0,x.LZ)(e,u)){if((0,E.My)(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:s.variables,from:i},s),g=(0,E.u2)(e);void 0===m?w.Gw.added(e)||(t=d.merge(t,((n={})[g]="Can't find field '".concat(e.name.value,"' on ").concat((0,E.Yk)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),n))):(0,B.k)(m)?m.length>0&&(m=v(r.executeSubSelectedArray({field:e,array:m,enclosingRef:o,context:s}),g)):e.selectionSet?null!=m&&(m=v(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,E.Yk)(m)?m:o,context:s}),g)):s.canonizeResults&&(m=r.canon.pass(m)),void 0!==m&&h.push(((p={})[g]=m,p))}else{var b=(0,c.hi)(e,s.lookupFragment);if(!b&&e.kind===T.h.FRAGMENT_SPREAD)throw(0,a._K)(10,e.name.value);b&&l.fragmentMatches(b,f)&&b.selectionSet.selections.forEach(y.add,y)}}});var m={result:(0,p.bw)(h),missing:t},g=s.canonizeResults?this.canon.admit(m):(0,F.J)(m);return g.result&&this.knownResults.set(g.result,n),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,s=e.context,u=new p.w0;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(s.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,B.k)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,E.Yk)(e)?e:o,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,I.s)(r)&&((0,a.kG)(!(0,E.Yk)(r),11,(0,j.jp)(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),H=r(86626),K=r(88099),J=r(38355),$=Object.create(null);function Z(e){var t=JSON.stringify(e);return $[t]||($[t]=Object.create(null))}function X(e){var t=Z(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=et(e,function(e){var i=en(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&j.RI.call(t,e[0])&&(i=en(t,e,er)),(0,a.kG)(void 0!==i,5,e.join("."),t),i});return"".concat(r.typename,":").concat(JSON.stringify(i))})}function ee(e){var t=Z(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(et(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,B.O)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,E.NC)(s,i);return u&&en(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&j.RI.call(i,c)){var l=e.slice(0);return l[0]=c,en(i,l)}return}if(t)return en(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function et(e,t){var r=new p.w0;return(function e(t){var r=Z(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,B.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,B.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function er(e,t){return e[t]}function en(e,t,r){return r=r||er,function e(t){return(0,I.s)(t)?(0,B.k)(t)?t.map(e):et(Object.keys(t).sort(),function(e){return en(t,e)}):t}(t.reduce(function e(t,n){return(0,B.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}var ei=r(9906);function eo(e){return void 0!==e.args?e.args:e.field?(0,E.NC)(e.field,e.variables):null}var ea=function(){},es=function(e,t){return t.fieldName},eu=function(e,t,r){return(0,r.mergeObjects)(e,t)},ec=function(e,t){return t},el=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,o.pi)({dataIdFromObject:j.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n,i=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,u=(0,o.pi)((0,o.pi)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=eh(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;return ei.Os.withValue(!0,function(){for(;l;){var t=l((0,o.pi)((0,o.pi)({},e),s),u);if((0,B.k)(t))l=X(t);else{n=t;break}}}),n=n?String(n):void 0,u.keyObject?[n,u.keyObject]:[n]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,u=(0,o._T)(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),j.RI.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?eu:!1===t?ec:e.merge}a(n,t.merge),n.keyFn=!1===i?ea:(0,B.k)(i)?X(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?es:(0,B.k)(s)?ee(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||es)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,a.kG)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(j.$O);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!j.RI.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,i){if(r.test(e)){var o=t.supertypeMap.get(i);o&&o.forEach(function(e){return n.add(e)})}})),n&&n.size&&n.forEach(function(e){var n=t.getTypePolicy(e),i=n.fields;Object.assign(r,(0,o._T)(n,["fields"])),Object.assign(r.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,h=0;h<u.length;++h){var p=u[h];if(p.has(o))return s.has(o)||(f&&!1!==globalThis.__DEV__&&a.kG.warn(7,t,o),s.add(o)),!0;p.forEach(c),l&&h===u.length-1&&(0,j.RC)(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=eo(e);o;){var u=o(s,a);if((0,B.k)(u))o=ee(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,E.vf)(e.field,e.variables):(0,E.PT)(n,eo(e))),!1===t)?n:n===(0,j.E_)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=(0,j.E_)(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o),u=s&&s.read;if(u){var c=ef(this,r,e,t,t.store.getStorage((0,E.Yk)(r)?r.__ref:r,i));return J.ab.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===eu?ep(n.store)(e,t):s===ec?t:(n.overwrite&&(e=void 0),s(e,t,ef(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function ef(e,t,r,n,i){var o=e.getStoreFieldName(r),a=(0,j.E_)(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:eo(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:E.Yk,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(eh(arguments,t,s),n)},mergeObjects:ep(n.store)}}function eh(e,t,r){var n,i=e[0],s=e[1],u=e.length;return"string"==typeof i?n={fieldName:i,from:u>1?s:t}:(n=(0,o.pi)({},i),j.RI.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&a.kG.warn(8,(0,K.v)(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function ep(e){return function(t,r){if((0,B.k)(t)||(0,B.k)(r))throw(0,a._K)(9);
1if((0,I.s)(t)&&(0,I.s)(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if((0,E.Yk)(t)&&(0,j.j)(r))return e.merge(t.__ref,r),t;if((0,j.j)(t)&&(0,E.Yk)(r))return e.merge(t,r.__ref),r;if((0,j.j)(t)&&(0,j.j)(r))return(0,o.pi)((0,o.pi)({},t),r)}return r}}function ed(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:(0,o.pi)((0,o.pi)({},e),{clientOnly:t,deferred:r})),i}var ev=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,s=t.dataId,c=t.variables,l=t.overwrite,h=(0,f.$H)(n),p=(0,j.ig)();c=(0,o.pi)((0,o.pi)({},(0,f.O4)(h)),c);var d=(0,o.pi)((0,o.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,S.B)(c)},(0,j.Is)(n,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:h.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,E.Yk)(v))throw(0,a._K)(12,i);return d.incomingById.forEach(function(t,n){var i=t.storeObject,s=t.mergeTree,c=t.fieldNodeSet,l=(0,E.kQ)(n);if(s&&s.map.size){var f=r.applyMerges(s,l,i,d);if((0,E.Yk)(f))return;i=f}if(!1!==globalThis.__DEV__&&!d.overwrite){var h=Object.create(null);
1c.forEach(function(e){e.selectionSet&&(h[e.name.value]=!0)});var p=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==h[(0,j.E_)(e)]||p(e)||function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=i(e);if(s){var c=i(t);if(!(!c||(0,E.Yk)(s)||(0,u.D)(s,c)||Object.keys(s).every(function(e){return void 0!==n.getFieldValue(c,e)}))){var l=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),f=(0,j.E_)(r),h="".concat(l,".").concat(f);if(!e_.has(h)){e_.add(h);var p=[];(0,B.k)(s)||(0,B.k)(c)||[s,c].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}),!1!==globalThis.__DEV__&&a.kG.warn(15,f,l,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",h,(0,o.pi)({},s),(0,o.pi)({},c))}}}}(l,i,e,d.store)})}e.merge(n,i)}),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),f=r&&c.rootTypenamesById[r]||(0,E.qw)(n,i,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof f&&(l.__typename=f);var h=function(){var e=eh(arguments,l,s.variables);if((0,E.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,o.pi)((0,o.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},p=new Set;this.flattenFields(i,n,s,f).forEach(function(e,r){var i,o=n[(0,E.u2)(r)];if(p.add(r),void 0!==o){var s=c.getStoreFieldName({typename:f,fieldName:r.name.value,field:r,variables:e.variables}),d=em(u,s),v=t.processFieldValue(o,r,r.selectionSet?ed(e,!1,!1):e,d),y=void 0;r.selectionSet&&((0,E.Yk)(v)||(0,j.j)(v))&&(y=h("__typename",v));var m=c.getMergeFunction(f,r.name.value,y);m?d.info={field:r,typename:f,merge:m}:eb(u,s),l=e.merge(l,((i={})[s]=v,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||w.Gw.added(r)||c.getReadFunction(f,r.name.value)||!1===globalThis.__DEV__||a.kG.error(13,(0,E.u2)(r),n)});try{var d=c.identify(n,{typename:f,selectionSet:i,fragmentMap:s.fragmentMap,storeObject:l,readField:h}),v=d[0],y=d[1];r=r||v,y&&(l=s.merge(l,y))}catch(e){if(!r)throw e}if("string"==typeof r){var m=(0,E.kQ)(r),g=s.written[r]||(s.written[r]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(n,m,i,s)))return m;var b=s.incomingById.get(r);return b?(b.storeObject=s.merge(b.storeObject,l),b.mergeTree=function e(t,r){if(t===r||!r||eg(r))return t;if(!t||eg(t))return r;var n=t.info&&r.info?(0,o.pi)((0,o.pi)({},t.info),r.info):t.info||r.info,i=t.map.size&&r.map.size,a={info:n,map:i?new Map:t.map.size?t.map:r.map};if(i){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(b.mergeTree,u),p.forEach(function(e){return b.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:l,mergeTree:eg(u)?void 0:u,fieldNodeSet:p}),m}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,B.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,em(n,o));return eb(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,H.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,E.qw)(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,s=new C.B(!1);return function e(u,l){var f=s.lookup(u,l.clientOnly,l.deferred);f.visited||(f.visited=!0,u.selections.forEach(function(s){if((0,x.LZ)(s,r.variables)){var u=l.clientOnly,f=l.deferred;if(!(u&&f)&&(0,B.O)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,E.NC)(e,r.variables);n&&!1===n.if||(f=!0)}}),(0,E.My)(s)){var h=i.get(s);h&&(u=u&&h.clientOnly,f=f&&h.deferred),i.set(s,ed(r,u,f))}else{var p=(0,c.hi)(s,r.lookupFragment);if(!p&&s.kind===T.h.FRAGMENT_SPREAD)throw(0,a._K)(14,s.name.value);p&&o.fragmentMatches(p,n,t,r.variables)&&e(p.selectionSet,ed(r,u,f))}}}))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var s=this;if(e.map.size&&!(0,E.Yk)(r)){var u,c,l=!(0,B.k)(r)&&((0,E.Yk)(t)||(0,j.j)(t))?t:void 0,f=r;l&&!i&&(i=[(0,E.Yk)(l)?l.__ref:l]);var h=function(e,t){return(0,B.k)(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};
1e.map.forEach(function(e,t){var r=h(l,t),o=h(f,t);if(void 0!==o){i&&i.push(t);var u=s.applyMerges(e,r,o,n,i);u!==o&&(c=c||new Map).set(t,u),i&&(0,a.kG)(i.pop()===t)}}),c&&(r=(0,B.k)(f)?f.slice(0):(0,o.pi)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(u=n.store).getStorage.apply(u,i)):r},e}(),ey=[];function em(e,t){var r=e.map;return r.has(t)||r.set(t,ey.pop()||{map:new Map}),r.get(t)}function eg(e){return!e||!(e.info||e.map.size)}function eb(e,t){var r=e.map,n=r.get(t);n&&eg(n)&&(ey.push(n),r.delete(t))}var e_=new Set,ek=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new k.A(w.Gw),r.assumeImmutableResults=!0,r.makeVar=J.QS,r.txCount=0,!1!==globalThis.__DEV__&&((0,g.MH)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,g.MH)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=(0,j.jS)(t),r.addTypename=!!r.config.addTypename,r.policies=new el({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,o.ZT)(t,e),t.prototype.init=function(){var e=this.data=new N.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new ev(this,this.storeReader=new Y({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,j.lg)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,s.re)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||l.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(G(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,S.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){!1!==globalThis.__DEV__&&(0,g.MH)(e,"canonizeResults","cache.read");var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof _)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(j.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return!1!==globalThis.__DEV__&&(0,g.MH)(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,o.pi)((0,o.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,J._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,J.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&(0,g.MH)(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),S.B.reset(),O.S.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,E.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&a.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(j.RI.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),S.B.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,J.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var i=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,o.pi)((0,o.pi)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=this,n=e.lastDiff,i=(0,g.P6)("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&(0,u.D)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(b);!1!==globalThis.__DEV__&&(ek.prototype.getMemoryInternals=v.q4)},38355:function(e,t,r){"use strict";r.d(t,{QS:function(){return c},_v:function(){return u},ab:function(){return i},li:function(){return s}});var n=r(98942),i=new n.g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var u=Array.from(r);r.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},38620:function(e,t,r){"use strict";r.d(t,{f:function(){return ei}});var n=r(5853),i=r(82257),o=r(24614),a=o.i.execute,s=r(53099),u=r(74793),c=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,u.L)(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(o.i),l=r(36628),f=r(40373),h=r(30696),p=r(55484),d=r(80960),v=r(95266),y=r(25596),m=r(69090);function g(e,t,r){return new m.y(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}var b=r(92086);function _(e){var t=k(e);return(0,b.O)(t)}function k(e){var t=(0,b.O)(e.errors)?e.errors.slice(0):[];return(0,f.GG)(e)&&(0,b.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var w=r(36517),S=r(48338),O=r(23446),E=r(2232),T=r(19821),R=r(45963);function D(e){return e&&"function"==typeof e.then}var x=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,T.p)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,T.p)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?D(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,T.p)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new m.y(t)]),D(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(m.y);(0,R.D)(x);var F=r(77828),I=r(86743),C=r(77473),j=r(71269),M=r(59394),q=r(81014),Q=new(M.mr?WeakMap:Map);function N(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return Q.set(e,(Q.get(e)+1)%1e15),r.apply(this,arguments)})}var P=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;Q.has(r)||(Q.set(r,0),N(r,"evict"),N(r,"modify"),N(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||C.Ie.loading;return this.variables&&this.networkStatus!==C.Ie.loading&&!(0,l.D)(this.variables,e.variables)&&(t=C.Ie.setVariables),(0,l.D)(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,l.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=(0,q.P6)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,q.P6)("getLastError",function(){var e;return null===(e=r.observableQuery)||void 0===e?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,l.D)(n&&n.result,e&&e.result)||null===(t=this.observableQuery)||void 0===t||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&(0,l.D)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===Q.get(this.cache)&&(0,l.D)(t,r.variables)&&(0,l.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,o=this,a=new j.w0,s=(0,b.O)(e.errors)?e.errors.slice(0):[];if(null===(i=this.observableQuery)||void 0===i||i.resetNotifications(),"incremental"in e&&(0,b.O)(e.incremental)){var u=(0,f.mT)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=a.merge(c.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(A(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),o.lastWrite={result:e,variables:r.variables,dmCount:Q.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var a=o.getDiffOptions(r.variables),s=(0,q.P6)("canonizeResults",function(){return i.diff(a)});!o.stopped&&(0,l.D)(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=C.Ie.ready},e.prototype.markError=function(e){var t;return this.networkStatus=C.Ie.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function A(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!_(e);return!n&&r&&e.data&&(n=!0),n}var V=r(37469),z=r(46238),L=r(51874),G=r(26755),B=r(10201),W=r(9906),U=r(95607),Y=Object.prototype.hasOwnProperty,H=Object.create(null),K=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new L.s(G.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new z.B(!1),this.noCacheWarningsByQueryId=new Set;var r=new y.A(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,i._K)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,n.mG)(this,arguments,void 0,function(e){var t,r,o,a,s,u,c,l=e.mutation,f=e.variables,h=e.optimisticResponse,p=e.updateQueries,d=e.refetchQueries,v=void 0===d?[]:d,y=e.awaitRefetchQueries,m=void 0!==y&&y,b=e.update,w=e.onQueryUpdated,S=e.fetchPolicy,O=void 0===S?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.fetchPolicy)||"network-only":S,E=e.errorPolicy,T=void 0===E?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":E,R=e.keepRootFields,D=e.context;return(0,n.Jh)(this,function(e){switch(e.label){case 0:if((0,i.kG)(l,36),(0,i.kG)("network-only"===O||"no-cache"===O,37),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!r)return[3,2];return[4,this.localState.addExportedVariables(l,f,D)];case 1:f=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),a=h&&this.markMutationOptimistic(h,{mutationId:t,document:l,variables:f,fetchPolicy:O,errorPolicy:T,context:D,updateQueries:p,update:b,keepRootFields:R}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return g(s.getObservableFromLink(l,(0,n.pi)((0,n.pi)({},D),{optimisticResponse:a?h:void 0}),f,{},!1),function(e){if(_(e)&&"none"===T)throw new F.cA({graphQLErrors:k(e)});o&&(o.loading=!1,o.error=null);var r=(0,n.pi)({},e);return"function"==typeof v&&(v=v(r)),"ignore"===T&&_(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:O,errorPolicy:T,context:D,update:b,updateQueries:p,awaitRefetchQueries:m,refetchQueries:v,removeOptimistic:a?t:void 0,onQueryUpdated:w,keepRootFields:R})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.pi)((0,n.pi)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:O,id:t})}))},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof F.cA?e:new F.cA({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&A(i,e.errorPolicy)){if((0,f.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,f.GG)(i)&&(0,b.O)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),u=void 0;s.result&&(u=(0,f.mT)(s.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&Y.call(c,s)){var u=c[s],l=r.queries.get(n),f=l.document,h=l.variables,p=t.diff({query:f,variables:h,returnPartialData:!0,optimistic:!1}),d=p.result;if(p.complete&&d){var v=u(d,{mutationResult:i,queryName:f&&(0,w.rY)(f)||void 0,queryVariables:h});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:h})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,f.M0)(i)||(0,f.GG)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables,{IGNORE:H}):e;return o!==H&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.kG.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,h.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,h.FS)(["nonreactive"],e),nonReactiveQuery:(0,p.UU)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,p.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,w.O4)((0,w.$H)(e)),asQuery:(0,n.pi)((0,n.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new P(this),i=new I.u({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,I.u.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,38),(0,i.kG)("Document"===e.query.kind,39),(0,i.kG)(!e.returnPartialData,40),(0,i.kG)(!e.pollInterval,41);var o=this.transform(e.query);return this.fetchQuery(t,(0,n.pi)((0,n.pi)({},e),{query:o})).then(function(i){return i&&(0,n.pi)((0,n.pi)({},i),{data:r.maskOperation({document:o,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
1),this.cancelPendingFetches((0,i._K)(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=C.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)o.set(e,e),a.set(e,!1);else if((0,S.JW)(e)){var r=(0,V.S)(t.transform(e));o.set(r,(0,w.rY)(e)),a.set(r,!1)}else(0,O.s)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,o=t.document;if(i){if("all"===e){r.set(n,i);return}var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&a.has(s)||o&&a.has((0,V.S)(o)))&&(r.set(n,i),s&&a.set(s,!0),o&&a.set((0,V.S)(o),!0))}}),s.size&&s.forEach(function(e){var o=(0,E.X)("legacyOneTimeQuery"),a=t.getOrCreateQuery(o).init({document:e.query,variables:e.variables}),s=new I.u({queryManager:t,queryInfo:a,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){if(!e){var r=o.get(t);r?!1!==globalThis.__DEV__&&i.kG.warn(43,r):!1!==globalThis.__DEV__&&i.kG.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;(0,q.P6)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(A(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=_(n),s=(0,F.ls)(n);if(o||s){var u={};if(o&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[F.YG]),"none"===a||s)throw new F.cA(u)}return"ignore"===a&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var h=this.localState.addExportedVariables(r,n,u).then(f);return new m.y(function(e){var t=null;return h.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i,o){var s,u,c=this;void 0===o&&(o=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var l=this.getDocumentInfo(e),f=l.serverQuery,h=l.clientQuery;if(f){var p=this.inFlightLinkObservables,d=this.link,y={query:f,variables:r,operationName:(0,w.rY)(f)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!o})),extensions:i};if(t=y.context,o){var b=(0,V.S)(f),_=(0,v.B)(r),k=p.lookup(b,_);if(!(u=k.observable)){var S=new x([a(d,y)]);u=k.observable=S,S.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?S.beforeNext(e):p.remove(b,_)})}}else u=new x([a(d,y)])}else u=new x([m.y.of({data:{}})]),t=this.prepareContext(t);return h&&(u=g(u,function(e){return c.localState.runResolvers({document:h,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return g(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=k(o),s=a.length>0,u=r.errorPolicy;if(n>
1=e.lastRequestId){if(s&&"none"===u)throw e.markError(new F.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:C.Ie.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=a,c.networkStatus=C.Ie.error),c},function(t){var r=(0,F.MS)(t)?t:new F.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=C.Ie.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,h=void 0===f?u&&u.errorPolicy||"none":f,p=t.returnPartialData,d=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:n,variables:s,fetchPolicy:l,errorPolicy:h,returnPartialData:void 0!==p&&p,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===v?{}:v}),m=function(n){y.variables=n;var i=a.fetchQueryByPolicy(e,y,r);return"standby"!==y.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},g=function(){return a.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){g(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)i=new x(this.localState.addExportedVariables(y.query,y.variables,y.context).then(m).then(function(e){return e.sources})),o=!0;else{var b=m(y.variables);o=b.fromLink,i=new x(b.sources)}return i.promise.then(g,g),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,E.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof P&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;u&&(a||(a=(0,q.P6)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=u(i,a,o)),u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t,r,n,o=e.document,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,u=e.id,c=null===(t=(0,w.$H)(o))||void 0===t?void 0:t.operation,l=(null!==(r=null==c?void 0:c[0])&&void 0!==r?r:"o")+u;!this.dataMasking||"no-cache"!==s||(0,d.YU)(o)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&i.kG.warn(45,null!==(n=(0,w.rY)(o))&&void 0!==n?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&(0,W.Kk)(),e;var n,o=(0,w.$H)(t);return((0,i.kG)(o,63),null==e)?e:(0,B.K)(e,o.selectionSet,{operationType:o.operation,operationName:null===(n=o.name)||void 0===n?void 0:n.value,fragmentMap:(0,d.F)((0,w.kU)(t)),cache:r,mutableTargets:new W.Td,knownChanged:new W.wd})}(a,o,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?(0,U.r)(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var v=function(){return e.getDiff()},y=function(t,r){void 0===r&&(r=e.networkStatus||C.Ie.loading);var s=t.result;!1===globalThis.__DEV__||f||(0,l.D)(s,{})||(0,I.D)(t.missing);var u=function(e){return m.y.of((0,n.pi)({data:e,loading:(0,C.Oj)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:h,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&r===C.Ie.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},g="no-cache"===s?0:r===C.Ie.refetch&&"merge"!==u?1:2,b=function(){return i.getResultsFromLink(e,g,{query:o,variables:a,context:h,fetchPolicy:s,errorPolicy:c})},_=p&&"number"==typeof d&&d!==r&&(0,C.Oj)(r);switch(s){default:case"cache-first":var k=v();if(k.complete)return{fromLink:!1,sources:[y(k,e.markReady())]};if(f||_)return{fromLink:!0,sources:[y(k),b()]};return{fromLink:!0,sources:[b()]};case"cache-and-network":var k=v();if(k.complete||f||_)return{fromLink:!0,sources:[y(k),b()]};return{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};
1case"network-only":if(_)return{fromLink:!0,sources:[y(v()),b()]};return{fromLink:!0,sources:[b()]};case"no-cache":if(_)return{fromLink:!0,sources:[y(e.getDiff()),b()]};return{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new P(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)((0,n.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),J=r(11689),$=r(50499);function Z(e){return e.kind===$.h.FIELD||e.kind===$.h.FRAGMENT_SPREAD||e.kind===$.h.INLINE_FRAGMENT}var X=r(38355),ee=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,j.Ee)(t.resolvers,e)}):this.resolvers=(0,j.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,n.mG)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,n.pi)((0,n.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,h.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,p.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.mG)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)})]:[2,(0,n.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,J.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return J.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,p.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.mG)(this,arguments,void 0,function(e,t,r,i,o,a){var s,u,c,l,f,h,p,v,y,m;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.Jh)(this,function(g){return s=(0,w.p$)(e),u=(0,w.kU)(e),c=(0,d.F)(u),l=this.collectSelectionsToResolve(s,c),h=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",p=this,v=p.cache,y=p.client,m={fragmentMap:c,context:(0,n.pi)((0,n.pi)({},r),{cache:v,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:h,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,m).then(function(e){return{result:e,exportedVariables:m.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,function(){var a,s,u,c,l,f=this;return(0,n.Jh)(this,function(p){return a=o.fragmentMap,s=o.context,u=o.variables,c=[r],l=function(e){return(0,n.mG)(f,void 0,void 0,function(){var l,f;return(0,n.Jh)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,h.LZ)(e,u)?(0,S.My)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&c.push(((r={})[(0,S.u2)(e)]=t,r))})]:((0,S.Ao)(e)?l=e:(l=a[e.name.value],(0,i.kG)(l,21,e.name.value)),l&&l.typeCondition&&(f=l.typeCondition.name.value,o.fragmentMatcher(r,f,s
1)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,j.bw)(c)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,function(){var o,a,s,u,c,l,f,h,p,d=this;return(0,n.Jh)(this,function(n){return r?(o=i.variables,u=(a=e.name.value)!==(s=(0,S.u2)(e)),l=Promise.resolve(c=r[s]||r[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?a:s])&&(l=Promise.resolve(X.ab.withValue(this.cache,p,[r,(0,S.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,J.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&Z(e)&&a.add(e)})},FragmentSpread:function(n,o,s,u,c){var l=t[n.name.value];(0,i.kG)(l,22,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&Z(e)&&a.add(e)}),a.add(n),f.forEach(function(e){a.add(e)}))}})}return n.get(o)}(e)},e}(),et=r(49466),er=r(97353),en=!1,ei=function(){function e(e){var t,r,a,u=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(16);var l=e.uri,f=e.credentials,h=e.headers,p=e.cache,d=e.documentTransform,v=e.ssrMode,y=void 0!==v&&v,m=e.ssrForceFetchDelay,g=void 0===m?0:m,b=e.connectToDevTools,_=e.queryDeduplication,k=void 0===_||_,w=e.defaultOptions,S=e.defaultContext,O=e.assumeImmutableResults,E=void 0===O?p.assumeImmutableResults:O,T=e.resolvers,R=e.typeDefs,D=e.fragmentMatcher,x=e.clientAwareness,F=e.name,I=e.version,C=e.devtools,j=e.dataMasking;!1===globalThis.__DEV__||((0,q.MH)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,q.MH)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,q.MH)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,q.MH)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,q.MH)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,q.MH)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,q.MH)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||i.kG.warn(17));var M=e.link;M||(M=l?new c({uri:l,credentials:f,headers:h}):o.i.empty()),this.link=M,this.cache=p,this.disableNetworkFetches=y||g>0,this.queryDeduplication=k,this.defaultOptions=w||Object.create(null),this.typeDefs=R,this.devtoolsConfig=(0,n.pi)((0,n.pi)({},C),{enabled:null!==(t=null==C?void 0:C.enabled)&&void 0!==t?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout(function(){return u.disableNetworkFetches=!1},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.bind(this),this.version=s.i,this.localState=new ee({cache:p,client:this,resolvers:T,fragmentMatcher:D}),this.queryManager=new K({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:S,documentTransform:d,queryDeduplication:k,ssrMode:y,dataMasking:!!j,clientAwareness:{name:null!==(r=null==x?void 0:x.name)&&void 0!==r?r:F,version:null!==(a=null==x?void 0:x.version)&&void 0!==a?a:I},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){u.devToolsHookCb&&u.devToolsHookCb({action:{},state:{queries:u.queryManager.getQueryStore(),mutations:u.queryManager.mutationStore||{}},dataWithOptimisticResults:u.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
1,enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!en&&!1!==globalThis.__DEV__&&(en=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,et.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,q.MH)(e,"canonizeResults","client.watchQuery"),(0,q.MH)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,et.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,q.MH)(e,"canonizeResults","client.query"),(0,q.MH)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&i.kG.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,et.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return(0,n.pi)((0,n.pi)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,n.pi)((0,n.pi)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){!1!==globalThis.__DEV__&&i.kG.debug(20,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(ei.prototype.getMemoryInternals=er.su)},51451:function(e,t,r){"use strict";r.d(t,{v:function(){return a}});var n=r(5853),i=r(24614),o=r(69090);function a(e){return new i.i(function(t,r){var i=(0,n._T)(t,[]);return new o.y(function(n){var o,a=!1;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){a||(o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}))}).catch(n.error.bind(n)),function(){a=!0,o&&o.unsubscribe()}})})}},24614:function(e,t,r){"use strict";r.d(t,{i:function(){return f}});var n=r(82257),i=r(69090),o=r(5853),a=r(36517),s=r(81014);function u(e,t){return t?t(e):i.y.of()}function c(e){return"function"==typeof e?new f(e):e}function l(e){return e.request.length<=1}var f=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(c).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var o=c(r),a=c(n||new e(u));return Object.assign(new e(l(o)&&l(a)?function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()}:function(e,r){return t(e)?o.request(e,r)||i.y.of():a.request(e,r)||i.y.of()}),{left:o,right:a})},e.execute=function(e,t){var r,s,u,c;return e.request((u=t.context,(s={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(0>t.indexOf(o))throw(0,n._K)(58,o)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(s.operationName="string"!=typeof s.query?(0,a.rY)(s.query)||void 0:""),c=(0,o.pi)({},u),Object.defineProperty(s,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,o.pi)((0,o.pi)({},c),e(c)):(0,o.pi)((0,o.pi)({},c),e)}}),Object.defineProperty(s,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},c)}}),s))||i.y.of()},e.concat=function(t,r){var o=c(t);if(l(o))return!1!==globalThis.__DEV__&&n.kG.warn(47,o),o;var a=c(r);return Object.assign(new e(l(a)?function(e){return o.request(e,function(e){return a.request(e)||i.y.of()})||i.y.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.y.of()})||i.y.of()}),{left:o,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n._K)(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&(0,s.Jp)("onError",function(){!1!==globalThis.__DEV__&&n.kG.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&n.kG.warn(50),this.onError=e,this},e}()},58759:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});var n=r(24614).i.from},32249:function(e,t,r){"use strict";r.d(t,{q:function(){return s}});var n=r(5853),i=r(77828),o=r(69090),a=r(24614);function s(e){return new a.i(function(t,r){return new o.y(function(n){var o,a,s;try{o=r(t).subscribe({next:function(o){if(o.errors?s=e({graphQLErrors:o.errors,response:o,operation:t,forward:r}):(0,i.ls)(o)&&(s=e({protocolErrors:o.extensions[i.YG],response:o,operation:t,forward:r})),s){a=s.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(o)},error:function(i){if(s=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){a=s.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){s||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){o&&o.unsubscribe(),a&&o.unsubscribe()}})})}!function(e){function t(t){var r=e.call(this)||this;return r.link=s(t),r}(0,n.ZT)(t,e),t.prototype.request=function(e,t){return this.link.request(e,t)}}(a.i)},74793:function(e,t,r){"use strict";r.d(t,{L:function(){return E}});
1var n=r(5853),i=r(82257),o=r(24614),a=r(30696),s=r(69090),u=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,i._K)(54,t,e.message);throw n.parseError=e,n}return r},c=r(59394);function l(e){var t={next:function(){return e.read()}};return c.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var f=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},h=r(77828),p=r(40373),d=Object.prototype.hasOwnProperty;function v(e,t){e.status>=300&&f(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var y=function(e){if(!e&&"undefined"==typeof fetch)throw(0,i._K)(51)},m=r(37469),g={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},b=function(e,t){return t(e)};function _(e){return new s.y(function(t){t.error(e)})}var k=r(11689),w=r(55484),S=r(36517),O=(0,i.wY)(function(){return fetch}),E=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,E=e.fetch,T=e.print,R=void 0===T?b:T,D=e.includeExtensions,x=e.preserveHeaderCase,F=e.useGETForQueries,I=e.includeUnusedVariables,C=void 0!==I&&I,j=(0,n._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&y(E||O);var M={http:{includeExtensions:D,preserveHeaderCase:x},options:j.fetchOptions,credentials:j.credentials,headers:j.headers};return new o.i(function(e){var t,o,y,b,T,D,x,I,j=(t=e,o=r,t.getContext().uri||("function"==typeof o?o(t):o||"/graphql")),q=e.getContext(),Q={};if(q.clientAwareness){var N=q.clientAwareness,P=N.name,A=N.version;P&&(Q["apollographql-client-name"]=P),A&&(Q["apollographql-client-version"]=A)}var V=(0,n.pi)((0,n.pi)({},Q),q.headers),z={http:q.http,options:q.fetchOptions,credentials:q.credentials,headers:V};if((0,a.FS)(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&i.kG.warn(52);var L=(0,w.ob)(e.query);if(!L)return _(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=L}var G=function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var o={},a={};r.forEach(function(e){o=(0,n.pi)((0,n.pi)((0,n.pi)({},o),e.options),{headers:(0,n.pi)((0,n.pi)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,n.pi)((0,n.pi)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r={};
1return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,m.S)),{options:o,body:f}}(e,R,g,M,z),B=G.options,W=G.body;W.variables&&!C&&(W.variables=(y=W.variables,b=e.query,T=(0,n.pi)({},y),D=new Set(Object.keys(y)),(0,k.Vn)(b,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&D.delete(e.name.value)}}),D.forEach(function(e){delete T[e]}),T)),B.signal||"undefined"==typeof AbortController||(I=new AbortController,B.signal=I.signal);var U="OperationDefinition"===(x=(0,S.p$)(e.query)).kind&&"subscription"===x.operation,Y=(0,a.FS)(["defer"],e.query);if(F&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(B.method="GET"),Y||U){B.headers=B.headers||{};var H="multipart/mixed;";U&&Y&&!1!==globalThis.__DEV__&&i.kG.warn(53),U?H+="boundary=graphql;subscriptionSpec=1.0,application/json":Y&&(H+="deferSpec=20220824,application/json"),B.headers.accept=H}if("GET"===B.method){var K=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=u(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=u(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+a}}(j,W),J=K.newURI,$=K.parseError;if($)return _($);j=J}else try{B.body=u(W,"Payload")}catch(e){return _(e)}return new s.y(function(t){var r=E||(0,i.wY)(function(){return fetch})||O,o=t.next.bind(t);return r(j,B).then(function(t){e.setContext({response:t});var r,i=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return(0,n.mG)(this,void 0,void 0,function(){var r,i,o,a,s,u,f,d,y,m,g,b,_,k,w,S,O,E,T,R,D,x,F;return(0,n.Jh)(this,function(I){switch(I.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),i=null===(F=e.headers)||void 0===F?void 0:F.get("content-type"),o="boundary=",a=(null==i?void 0:i.includes(o))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),u="",f=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,c.DN&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return l(s.getReader());if(s.stream)return l(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},c.DN&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var l={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return c.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),d=!0,I.label=1;case 1:if(!d)return[3,3];return[4,f.next()];case 2:for(m=(y=I.sent()).value,g=y.done,b="string"==typeof m?m:r.decode(m),_=u.length-s.length+1,d=!g,u+=b,k=u.indexOf(s,_);k>-1;){if(w=void 0,w=(D=[u.slice(0,k),u.slice(k+s.length)])[0],u=D[1],S=w.indexOf("\r\n\r\n"),(O=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(w.slice(0,S))["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(E=w.slice(S)){if(Object.keys(T=v(e,E)).length>1||"data"in T||"incremental"in T||"errors"in T||"payload"in T){if((0,p.yU)(T)){if(R={},"payload"in T){if(1===Object.keys(T).length&&null===T.payload)return[2];R=(0,n.pi)({},T.payload)}"errors"in T&&(R=(0,n.pi)((0,n.pi)({},R),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in R?R.extensions:null),((x={})[h.YG]=T.errors,x))})),t(R)}else t(T)}else if(1===Object.keys(T).length&&"hasNext"in T&&!T.hasNext)return[2]}k=u.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,o):t.text().then(function(e){return v(t,e)}).then(function(r){return Array.isArray(r)||d.call(r,"data")||d.call(r,"errors")||f(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r}).then(o)}).then(function(){I=void 0,t.complete()}).catch(function(e){I=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){I&&I.abort()}})})}},35114:function(e,t,r){"use strict";r.d(t,{W:function(){return u}});var n=r(5853),i=r(24614),o=r(69090),a=r(77828),s=function(){function e(e,t,r,i,o){var a=this;this.observer=e,this.operation=t,this.forward=r,this.delayFor=i,this.retryIf=o,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return(0,n.mG)(a,void 0,void 0,function(){return(0,n.Jh)(this,function(t){switch(t.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(t.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];return this.observer.error(e),[2]}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){var e=this;this.currentSubscription=this.forward(this.operation).subscribe({next:function(t){var r;if((0,a.ls)(t)){e.onError(new a.cA({protocolErrors:t.extensions[a.YG]})),null===(r=e.currentSubscription)||void 0===r||r.unsubscribe();return}e.observer.next(t)},error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),u=function(e){function t(t){var r,n,i,o,a,s,u,c,l,f,h,p,d=e.call(this)||this,v=t||{},y=v.attempts,m=v.delay;return d.delayFor="function"==typeof m?m:(i=void 0===(n=(r=m||{}).initial)?300:n,a=void 0===(o=r.jitter)||o,u=void 0===(s=r.max)?1/0:s,c=a?i:i/2,function(e){var t=Math.min(u,c*Math.pow(2,e));return a&&(t=Math.random()*t),t}),d.retryIf="function"==typeof y?y:(f=(l=y||{}).retryIf,p=void 0===(h=l.max)?5:h,function(e,t,r){return!(e>=p)&&(f?f(r,t):!!r)}),d}return(0,n.ZT)(t,e),t.prototype.request=function(e,t){var r=this;return new o.y(function(n){var i=new s(n,e,t,r.delayFor,r.retryIf);return function(){i.cancel()}})},t}(i.i)},10201:function(e,t,r){"use strict";r.d(t,{K:function(){return c}});var n=r(50499),i=r(82187),o=r(48338),a=r(30696),s=r(9906),u=r(82257);function c(e,t,r){return s.Os.withValue(!0,function(){var c=function e(t,r,i,c,l){var f,h=i.knownChanged,p=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,i.mutableTargets);if(Array.isArray(t)){for(var d=0,v=Array.from(t.entries());d<v.length;d++){var y=v[d],m=y[0],g=y[1];if(null===g){p[m]=null;continue}var b=e(g,r,i,c,!1!==globalThis.__DEV__?"".concat(l||"","[").concat(m,"]"):void 0);h.has(b)&&h.add(p),p[m]=b}return h.has(p)?p:t}for(var _=0,k=r.selections;_<k.length;_++){var w=k[_],S=void 0;if(c&&h.add(p),w.kind===n.h.FIELD){var O=(0,o.u2)(w),E=w.selectionSet;if(void 0===(S=p[O]||t[O]))continue;if(E&&null!==S){var b=e(t[O],E,i,c,!1!==globalThis.__DEV__?"".concat(l||"",".").concat(O):void 0);h.has(b)&&(S=b)}!1!==globalThis.__DEV__||(p[O]=S),!1!==globalThis.__DEV__&&(!c||"__typename"===O||(null===(f=Object.getOwnPropertyDescriptor(p,O))||void 0===f?void 0:f.value)?(delete p[O],p[O]=S):Object.defineProperty(p,O,function(e,t,r,n,i){var o=function(){return s.Os.getValue()||(!1!==globalThis.__DEV__&&u.kG.warn(60,n?"".concat(i," '").concat(n,"'"):"anonymous ".concat(i),"".concat(r,".").concat(e).replace(/^\./,"")),o=function(){return t}),t};return{get:function(){return o()},set:function(e){o=function(){return e}},enumerable:!0,configurable:!0}}(O,S,l||"",i.operationName,i.operationType)))}if(w.kind===n.h.INLINE_FRAGMENT&&(!w.typeCondition||i.cache.fragmentMatches(w,t.__typename))&&(S=e(t,w.selectionSet,i,c,l)),w.kind===n.h.FRAGMENT_SPREAD){var T=w.name.value,R=i.fragmentMap[T]||(i.fragmentMap[T]=i.cache.lookupFragment(T));(0,u.kG)(R,59,T);var D=(0,a.GT)(w);"mask"!==D&&(S=e(t,R.selectionSet,i,"migrate"===D,l))}h.has(S)&&h.add(p)}return"__typename"in t&&!("__typename"in p)&&(p.__typename=t.__typename),Object.keys(p).length!==Object.keys(t).length&&h.add(p),h.has(p)?p:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,i.J)(c),c})}},95607:function(e,t,r){"use strict";r.d(t,{r:function(){return l}});var n=r(50499),i=r(9906),o=r(82257),a=r(36628),s=r(10201),u=r(80960),c=r(36517);function l(e,t,r,l){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&(0,i.Kk)(),e;var f=t.definitions.filter(function(e){return e.kind===n.h.FRAGMENT_DEFINITION});void 0===l&&((0,o.kG)(1===f.length,61,f.length),l=f[0].name.value);var h=f.find(function(e){return e.name.value===l});return((0,o.kG)(!!h,62,l),null==e||(0,a.Z)(e,{}))?e:(0,s.K)(e,h.selectionSet,{operationType:"fragment",operationName:h.name.value,fragmentMap:(0,u.F)((0,c.kU)(t)),cache:r,mutableTargets:new i.Td,knownChanged:new i.wd})}},9906:function(e,t,r){"use strict";r.d(t,{Kk:function(){return l},Os:function(){return u},Td:function(){return a},wd:function(){return s}});var n=r(98942),i=r(82257),o=r(59394),a=o.mr?WeakMap:Map,s=o.sy?WeakSet:Set,u=ne
1w n.g7,c=!1;function l(){c||(c=!0,!1!==globalThis.__DEV__&&i.kG.warn(64))}},40373:function(e,t,r){"use strict";r.d(t,{GG:function(){return a},M0:function(){return s},mT:function(){return c},yU:function(){return u}});var n=r(23446),i=r(92086),o=r(71269);function a(e){return"incremental"in e}function s(e){return a(e)||"hasNext"in e&&"data"in e}function u(e){return(0,n.s)(e)&&"payload"in e}function c(e,t){var r=e,n=new o.w0;return a(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}r=n.merge(r,t)}),r}},71269:function(e,t,r){"use strict";r.d(t,{Ee:function(){return a},bw:function(){return s},w0:function(){return c}});var n=r(5853),i=r(23446),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var s=e[i];if(t[i]!==s){var u=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));u!==s&&((e=r.shallowCopyForMerge(e))[i]=u)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},25596:function(e,t,r){"use strict";r.d(t,{A:function(){return f}});var n=r(46238),i=r(59394),o=r(36517),a=r(82257),s=r(45110),u=r(98942),c=r(26755);function l(e){return e}var f=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(l,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new n.B(i.mr);this.performWork=(0,u.re)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,a.kG)(Array.isArray(n),104),r.lookupArray(n)},max:c.Q["documentTransform.cache"],cache:s.k})}},e.prototype.performWork=function(e){return(0,o.A$)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},37469:function(e,t,r){"use strict";r.d(t,{S:function(){return g}});var n,i=r(96453);let o=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return s[e.charCodeAt(0)]}let s=["\\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 u=r(11689);let c={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>l(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=d(e.variableDefinitions)?h("(\n",l(e.variableDefinitions,"\n"),"\n)"):h("(",l(e.variableDefinitions,", "),")"),r=h("",e.de
1scription,"\n")+l([e.operation,l([e.name,t]),l(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>h("",i,"\n")+e+": "+t+h(" = ",r)+h(" ",l(n," "))},SelectionSet:{leave:({selections:e})=>f(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=h("",e,": ")+t,a=o+h("(",l(r,", "),")");return a.length>80&&(a=o+h("(\n",p(l(r,"\n")),"\n)")),l([a,l(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+h(" ",l(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>l(["...",h("on ",e),l(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>h("",o,"\n")+`fragment ${e}${h("(",l(r,", "),")")} `+`on ${t} ${h("",l(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,i.LZ)(e):`"${e.replace(o,a)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+l(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+l(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+h("(",l(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>h("",e,"\n")+l(["schema",l(t," "),f(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l(["scalar",t,l(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["type",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>h("",e,"\n")+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+": "+n+h(" ",l(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>h("",e,"\n")+l([t+": "+r,h("= ",n),l(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>h("",e,"\n")+l(["interface",t,h("implements ",l(r," & ")),l(n," "),f(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>h("",e,"\n")+l(["union",t,l(r," "),h("= ",l(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>h("",e,"\n")+l(["enum",t,l(r," "),f(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>h("",e,"\n")+l([t,l(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>h("",e,"\n")+l(["input",t,l(r," "),f(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>h("",e,"\n")+"directive @"+t+(d(r)?h("(\n",p(l(r,"\n")),"\n)"):h("(",l(r,", "),")"))+h(" ",l(n," "))+(i?" repeatable":"")+" on "+l(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>l(["extend schema",l(e," "),f(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>l(["extend scalar",e,l(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend type",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>l(["extend interface",e,h("implements ",l(t," & ")),l(r," "),f(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>l(["extend union",e,l(t," "),h("= ",l(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>l(["extend enum",e,l(t," "),f(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>l(["extend input",e,l(t," "),f(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>l(["extend directive @"+e,l(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>l([e,h(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>l([e,h(".",t),h("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>l(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>l(["@",e,h("(",t,":)")])}};function l(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function f(e){return h("{\n",p(l(e,"\n")),"\n}")}function h(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return h(" ",e.replace(/\n/g,"\n "))}function d(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var v=r(51874),y=r(26755),m=r(97353),g=Object.assign(function(e){var t=n.get(e);return t||(t=(0,u.Vn)(e,c),n.set(e,t)),t},{reset:function(){n=new v.s(y.Q.print||2e3)}});g.reset(),!1!==globalThis.__DEV__&&(0,m.zP)("print",function(){return n?n.size:0})},55484:function(e,t,r){"use strict";r.d(t,{Gw:function(){return d},UU:function(){return m},aL:function(){return v},bi:function(){return p},ob:function(){return y}});
1var n=r(5853),i=r(82257),o=r(50499),a=r(11689),s=r(36517),u=r(48338),c=r(80960),l=r(92086),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function p(e,t){(0,s.A$)(t);for(var r,u,f,p=h(""),d=h(""),v=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,l.k)(r)){if(r.kind===o.h.OPERATION_DEFINITION)return p(r.name&&r.name.value);if(r.kind===o.h.FRAGMENT_DEFINITION)return d(r.name.value)}return!1!==globalThis.__DEV__&&i.kG.error(124),null},y=0,m=t.definitions.length-1;m>=0;--m)t.definitions[m].kind===o.h.OPERATION_DEFINITION&&++y;var g=(r=new Map,u=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&u.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&u.size&&u.forEach(function(r,n){n(e)&&(t=r)}),t}),b=function(e){return(0,l.O)(e)&&e.map(g).some(function(e){return e&&e.remove})},_=new Map,k=!1,w={enter:function(e){if(b(e.directives))return k=!0,null}},S=(0,a.Vn)(t,{Field:w,InlineFragment:w,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=v(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(b(e.directives))return k=!0,null;var o=v(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){_.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===_.get(JSON.stringify(n))?e:y>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(d(e.name.value).removed=!0,k=!0,null):void 0}},Directive:{leave:function(e){if(g(e))return k=!0,null}}});if(!k)return t;var O=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){O(d(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},E=new Set;S.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?O(p(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){E.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==y||d(e.name.value).removed||E.add(e.name.value)}
1),E.forEach(function(e){O(d(e)).fragmentSpreads.forEach(function(e){E.add(e)})});var T={enter:function(e){var t;if(t=e.name.value,!E.has(t)||d(t).removed)return null}};return f=(0,a.Vn)(S,{FragmentSpread:T,FragmentDefinition:T,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=O(p(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,s.$H)(f)||(0,s.pD)(f),(0,c.F)((0,s.kU)(f)))?f:null}var d=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,u.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,u.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}});function v(e){return"query"===(0,s.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function y(e){return(0,s.A$)(e),p([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function m(e){return(0,s.A$)(e),(0,a.Vn)(e,{FragmentSpread:function(e){var t;if(null===(t=e.directives)||void 0===t||!t.some(function(e){return"unmask"===e.name.value}))return(0,n.pi)((0,n.pi)({},e),{directives:(0,n.ev)((0,n.ev)([],e.directives||[],!0),[{kind:o.h.DIRECTIVE,name:{kind:o.h.NAME,value:"nonreactive"}}
1],!1)})}})}}}]);
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.