altair-static 8.2.0 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-bootstrap.log +5 -5
- package/build/dist/212.js +5 -0
- package/build/dist/{713.js → 240.js} +4 -4
- package/build/dist/257.js +5 -0
- package/build/dist/{650.js → 291.js} +4 -4
- package/build/dist/3rdpartylicenses.txt +209 -1112
- package/build/dist/{302.js → 411.js} +4 -4
- package/build/dist/436.js +5 -0
- package/build/dist/460.js +5 -0
- package/build/dist/472.js +5 -0
- package/build/dist/477.js +5 -0
- package/build/dist/{638.js → 483.js} +4 -4
- package/build/dist/{681.js → 486.js} +4 -4
- package/build/dist/{616.js → 627.js} +4 -4
- package/build/dist/65.js +5 -0
- package/build/dist/{103.js → 784.js} +4 -4
- package/build/dist/{866.js → 790.js} +4 -4
- package/build/dist/806.js +5 -0
- package/build/dist/{215.js → 874.js} +4 -4
- package/build/dist/{684.js → 883.js} +4 -4
- package/build/dist/960.js +5 -0
- package/build/dist/{949.js → 996.js} +4 -4
- package/build/dist/assets/i18n/ru-RU.json +1 -1
- package/build/dist/assets/i18n/uk-UA.json +7 -7
- package/build/dist/common.js +1 -1
- package/build/dist/main.js +4 -4
- package/build/dist/polyfills.js +1 -1
- package/package.json +3 -3
- package/build/dist/144.js +0 -5
- package/build/dist/15.js +0 -5
- package/build/dist/163.js +0 -5
- package/build/dist/241.js +0 -5
- package/build/dist/428.js +0 -5
- package/build/dist/513.js +0 -5
- package/build/dist/635.js +0 -5
- package/build/dist/859.js +0 -5
- package/build/dist/902.js +0 -5
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="82d0cc08-bd83-5665-a091-00e9a933ec64")}catch(e){}}();
|
|
3
|
+
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[460],{95317:(ee,_,i)=>{"use strict";i.d(_,{k:()=>k});var y=i(31351),N=i(48126),k=function(){function g(){this.getFragmentDoc=(0,y.LV)(N.ct)}return g.prototype.recordOptimisticTransaction=function(I,C){this.performTransaction(I,C)},g.prototype.transformDocument=function(I){return I},g.prototype.identify=function(I){},g.prototype.gc=function(){return[]},g.prototype.modify=function(I){return!1},g.prototype.transformForLink=function(I){return I},g.prototype.readQuery=function(I,C){return void 0===C&&(C=!!I.optimistic),this.read({rootId:I.id||"ROOT_QUERY",query:I.query,variables:I.variables,returnPartialData:I.returnPartialData,optimistic:C})},g.prototype.readFragment=function(I,C){return void 0===C&&(C=!!I.optimistic),this.read({query:this.getFragmentDoc(I.fragment,I.fragmentName),variables:I.variables,rootId:I.id,returnPartialData:I.returnPartialData,optimistic:C})},g.prototype.writeQuery=function(I){return this.write({dataId:I.id||"ROOT_QUERY",result:I.data,query:I.query,variables:I.variables,broadcast:I.broadcast})},g.prototype.writeFragment=function(I){return this.write({dataId:I.id,result:I.data,variables:I.variables,query:this.getFragmentDoc(I.fragment,I.fragmentName),broadcast:I.broadcast})},g}()},13559:(ee,_,i)=>{"use strict";var y;i.d(_,{l:()=>y}),y||(y={})},17152:(ee,_,i)=>{"use strict";i.d(_,{Z:()=>y});var y=function(){return function N(k,g,I,C,h){this.message=k,this.path=g,this.query=I,this.clientOnly=C,this.variables=h}}()},29901:(ee,_,i)=>{"use strict";i.d(_,{$3:()=>g,T9:()=>c,d1:()=>b,gk:()=>C,iJ:()=>h,mv:()=>M});var y=i(65769),N=i(53353),k=i(20317),g=Object.prototype.hasOwnProperty,C=/^[_a-z][_0-9a-z]*/i;function h(E){var L=E.match(C);return L?L[0]:E}function c(E,L,o){return!(!L||"object"!=typeof L)&&(Array.isArray(L)?L.every(function(P){return c(E,P,o)}):E.selections.every(function(P){if((0,y.dt)(P)&&(0,N.MS)(P,o)){var l=(0,y.ue)(P);return g.call(L,l)&&(!P.selectionSet||c(P.selectionSet,L[l],o))}return!0}))}function b(E){return null!==E&&"object"==typeof E&&!(0,y.A_)(E)&&!Array.isArray(E)}function M(){return new k.ZI}},57280:(ee,_,i)=>{"use strict";i.d(_,{D:()=>j});var U,r,y=i(40909),N=i(31351),k=i(95317),g=i(17152),I=i(65769),C=i(61355),h=i(65812),c=i(37179),b=i(48126),M=i(53353),E=i(20317),L=i(16409),o=i(20194),P=i(64422),l=i(29901),O=Object.create(null),v=function(){return O},m=Object.create(null),A=function(){function U(r,d){var p=this;this.policies=r,this.group=d,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(S,D){return(0,o.G)((0,I.A_)(S)?p.get(S.__ref,D):S&&S[D])},this.canRead=function(S){return(0,I.A_)(S)?p.has(S.__ref):"object"==typeof S},this.toReference=function(S,D){if("string"==typeof S)return(0,I.WU)(S);if((0,I.A_)(S))return S;var B=p.policies.identify(S)[0];if(B){var q=(0,I.WU)(B);return D&&p.merge(B,S),q}}}return U.prototype.toObject=function(){return(0,y.__assign)({},this.data)},U.prototype.has=function(r){return void 0!==this.lookup(r,!0)},U.prototype.get=function(r,d){if(this.group.depend(r,d),l.$3.call(this.data,r)){var p=this.data[r];if(p&&l.$3.call(p,d))return p[d]}return"__typename"===d&&l.$3.call(this.policies.rootTypenamesById,r)?this.policies.rootTypenamesById[r]:this instanceof W?this.parent.get(r,d):void 0},U.prototype.lookup=function(r,d){return d&&this.group.depend(r,"__exists"),l.$3.call(this.data,r)?this.data[r]:this instanceof W?this.parent.lookup(r,d):this.policies.rootTypenamesById[r]?Object.create(null):void 0},U.prototype.merge=function(r,d){var p=this,S=this.lookup(r),D=new E.ZI(u).merge(S,d);if(this.data[r]=D,D!==S&&(delete this.refs[r],this.group.caching)){var B=Object.create(null);S||(B.__exists=1),Object.keys(d).forEach(function(q){if(!S||S[q]!==D[q]){B[q]=1;var $=(0,l.iJ)(q);$!==q&&!p.policies.hasKeyArgs(D.__typename,$)&&(B[$]=1),void 0===D[q]&&!(p instanceof W)&&delete D[q]}}),Object.keys(B).forEach(function(q){return p.group.dirty(r,q)})}},U.prototype.modify=function(r,d){var p=this,S=this.lookup(r);if(S){var D=Object.create(null),B=!1,q=!0,$={DELETE:O,INVALIDATE:m,isReference:I.A_,toReference:this.toReference,canRead:this.canRead,readField:function(Z,ne){return p.policies.readField("string"==typeof Z?{fieldName:Z,from:ne||(0,I.WU)(r)}:Z,{store:p})}};if(Object.keys(S).forEach(function(Z){var ne=(0,l.iJ)(Z),ae=S[Z];if(void 0!==ae){var ie="function"==typeof d?d:d[Z]||d[ne];if(ie){var se=ie===v?O:ie((0,o.G)(ae),(0,y.__assign)((0,y.__assign)({},$),{fieldName:ne,storeFieldName:Z,storage:p.getStorage(r,Z)}));se===m?p.group.dirty(r,Z):(se===O&&(se=void 0),se!==ae&&(D[Z]=se,B=!0,ae=se))}void 0!==ae&&(q=!1)}}),B)return this.merge(r,D),q&&(this instanceof W?this.data[r]=void 0:delete this.data[r],this.group.dirty(r,"__exists")),!0}return!1},U.prototype.delete=function(r,d,p){var S,D=this.lookup(r);if(D){var B=this.getFieldValue(D,"__typename"),q=d&&p?this.policies.getStoreFieldName({typename:B,fieldName:d,args:p}):d;return this.modify(r,q?((S={})[q]=v,S):v)}return!1},U.prototype.evict=function(r){var d=!1;return r.id&&(l.$3.call(this.data,r.id)&&(d=this.delete(r.id,r.fieldName,r.args)),this instanceof W&&(d=this.parent.evict(r)||d),(r.fieldName||d)&&this.group.dirty(r.id,r.fieldName||"__exists")),d},U.prototype.clear=function(){this.replace(null)},U.prototype.extract=function(){var r=this,d=this.toObject(),p=[];return this.getRootIdSet().forEach(function(S){l.$3.call(r.policies.rootTypenamesById,S)||p.push(S)}),p.length&&(d.__META={extraRootIds:p.sort()}),d},U.prototype.replace=function(r){var d=this;if(Object.keys(this.data).forEach(function(D){r&&l.$3.call(r,D)||d.delete(D)}),r){var p=r.__META,S=(0,y.__rest)(r,["__META"]);Object.keys(S).forEach(function(D){d.merge(D,S[D])}),p&&p.extraRootIds.forEach(this.retain,this)}},U.prototype.retain=function(r){return this.rootIds[r]=(this.rootIds[r]||0)+1},U.prototype.release=function(r){if(this.rootIds[r]>0){var d=--this.rootIds[r];return d||delete this.rootIds[r],d}return 0},U.prototype.getRootIdSet=function(r){return void 0===r&&(r=new Set),Object.keys(this.rootIds).forEach(r.add,r),this instanceof W?this.parent.getRootIdSet(r):Object.keys(this.policies.rootTypenamesById).forEach(r.add,r),r},U.prototype.gc=function(){var r=this,d=this.getRootIdSet(),p=this.toObject();d.forEach(function(B){l.$3.call(p,B)&&(Object.keys(r.findChildRefIds(B)).forEach(d.add,d),delete p[B])});var S=Object.keys(p);if(S.length){for(var D=this;D instanceof W;)D=D.parent;S.forEach(function(B){return D.delete(B)})}return S},U.prototype.findChildRefIds=function(r){if(!l.$3.call(this.refs,r)){var d=this.refs[r]=Object.create(null),p=new Set([this.data[r]]),S=function(D){return null!==D&&"object"==typeof D};p.forEach(function(D){(0,I.A_)(D)?d[D.__ref]=!0:S(D)&&Object.values(D).filter(S).forEach(p.add,p)})}return this.refs[r]},U.prototype.makeCacheKey=function(){for(var r=[],d=0;d<arguments.length;d++)r[d]=arguments[d];return this.group.keyMaker.lookupArray(r)},U}(),K=function(){function U(r){this.caching=r,this.d=null,this.keyMaker=new N.oZ(P.e),this.d=r?(0,N.yN)():null}return U.prototype.depend=function(r,d){if(this.d){this.d(Q(r,d));var p=(0,l.iJ)(d);p!==d&&this.d(Q(r,p))}},U.prototype.dirty=function(r,d){this.d&&this.d.dirty(Q(r,d))},U}();function Q(U,r){return r+"#"+U}r=function(d){function p(S){var B=S.resultCaching,q=void 0===B||B,$=S.seed,Z=d.call(this,S.policies,new K(q))||this;return Z.storageTrie=new N.oZ(P.e),Z.sharedLayerGroup=new K(q),$&&Z.replace($),Z}return(0,y.__extends)(p,d),p.prototype.addLayer=function(S,D){return new W(S,this,D,this.sharedLayerGroup)},p.prototype.removeLayer=function(){return this},p.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},p}(U=A||(A={})),U.Root=r;var W=function(U){function r(d,p,S,D){var B=U.call(this,p.policies,D)||this;return B.id=d,B.parent=p,B.replay=S,B.group=D,S(B),B}return(0,y.__extends)(r,U),r.prototype.addLayer=function(d,p){return new r(d,this,p,this.group)},r.prototype.removeLayer=function(d){var p=this,S=this.parent.removeLayer(d);return d===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(D){p.data[D]!==S.lookup(D)&&p.delete(D)}),S):S===this.parent?this:S.addLayer(this.id,this.replay)},r.prototype.toObject=function(){return(0,y.__assign)((0,y.__assign)({},this.parent.toObject()),this.data)},r.prototype.findChildRefIds=function(d){var p=this.parent.findChildRefIds(d);return l.$3.call(this.data,d)?(0,y.__assign)((0,y.__assign)({},p),U.prototype.findChildRefIds.call(this,d)):p},r.prototype.getStorage=function(){for(var d=this.parent;d.parent;)d=d.parent;return d.getStorage.apply(d,arguments)},r}(A);function u(U,r,d){var p=U[d],S=r[d];return(0,L.L)(p,S)?p:S}function R(U){return!!(U instanceof A&&U.group.caching)}function n(U,r){return new g.Z(U.message,r.path.slice(),r.query,r.clientOnly,r.variables)}var e=function(){function U(r){var d=this;this.config=r,this.executeSelectionSet=(0,N.LV)(function(p){return d.execSelectionSetImpl(p)},{keyArgs:function(p){return[p.selectionSet,p.objectOrReference,p.context]},makeCacheKey:function(p,S,D){if(R(D.store))return D.store.makeCacheKey(p,(0,I.A_)(S)?S.__ref:S,D.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,N.LV)(function(p){return d.execSubSelectedArrayImpl(p)},{makeCacheKey:function(p){var S=p.field,D=p.array,B=p.context;if(R(B.store))return B.store.makeCacheKey(S,D,B.varString)}}),this.config=(0,y.__assign)({addTypename:!0},r)}return U.prototype.diffQueryAgainstStore=function(r){var d=r.store,p=r.query,S=r.rootId,D=void 0===S?"ROOT_QUERY":S,B=r.variables,q=r.returnPartialData,$=void 0===q||q,Z=this.config.cache.policies;B=(0,y.__assign)((0,y.__assign)({},(0,c.wY)((0,c.AT)(p))),B);var ne=this.executeSelectionSet({selectionSet:(0,c.Vn)(p).selectionSet,objectOrReference:(0,I.WU)(D),context:{store:d,query:p,policies:Z,variables:B,varString:JSON.stringify(B),fragmentMap:(0,b.JG)((0,c.zK)(p)),path:[],clientOnly:!1}}),ae=ne.missing&&ne.missing.length>0;if(ae&&!$)throw ne.missing[0];return{result:ne.result,missing:ne.missing,complete:!ae}},U.prototype.isFresh=function(r,d,p,S){if(R(S.store)&&this.knownResults.get(r)===p){var D=this.executeSelectionSet.peek(p,d,S);if(D&&r===D.result)return!0}return!1},U.prototype.execSelectionSetImpl=function(r){var d=this,p=r.selectionSet,S=r.objectOrReference,D=r.context;if((0,I.A_)(S)&&!D.policies.rootTypenamesById[S.__ref]&&!D.store.has(S.__ref))return{result:{},missing:[n(new h.zU(4),D)]};var B=D.variables,q=D.policies,Z=[],ne={result:null},ae=D.store.getFieldValue(S,"__typename");function ie(){return ne.missing||(ne.missing=[])}function se(oe){var ce;return oe.missing&&(ce=ie()).push.apply(ce,oe.missing),oe.result}this.config.addTypename&&"string"==typeof ae&&!q.rootIdsByTypename[ae]&&Z.push({__typename:ae});var ue=new Set(p.selections);return ue.forEach(function(oe){var ce;if((0,M.MS)(oe,B))if((0,I.dt)(oe)){var F=q.readField({fieldName:oe.name.value,field:oe,variables:D.variables,from:S},D),a=(0,I.ue)(oe);D.path.push(a);var f=D.clientOnly;D.clientOnly=f||!(!oe.directives||!oe.directives.some(function(J){return"client"===J.name.value})),void 0===F?C.XY.added(oe)||ie().push(n(new h.zU(5),D)):Array.isArray(F)?F=se(d.executeSubSelectedArray({field:oe,array:F,context:D})):oe.selectionSet&&null!=F&&(F=se(d.executeSelectionSet({selectionSet:oe.selectionSet,objectOrReference:F,context:D}))),void 0!==F&&Z.push(((ce={})[a]=F,ce)),D.clientOnly=f,(0,h.V1)(D.path.pop()===a)}else{var V=(0,b.HQ)(oe,D.fragmentMap);V&&q.fragmentMatches(V,ae)&&V.selectionSet.selections.forEach(ue.add,ue)}}),ne.result=(0,E.IM)(Z),this.knownResults.set(ne.result,p),ne},U.prototype.execSubSelectedArrayImpl=function(r){var B,d=this,p=r.field,S=r.array,D=r.context;function q($,Z){return $.missing&&(B=B||[]).push.apply(B,$.missing),(0,h.V1)(D.path.pop()===Z),$.result}return p.selectionSet&&(S=S.filter(D.store.canRead)),{result:S=S.map(function($,Z){return null===$?null:(D.path.push(Z),Array.isArray($)?q(d.executeSubSelectedArray({field:p,array:$,context:D}),Z):p.selectionSet?q(d.executeSelectionSet({selectionSet:p.selectionSet,objectOrReference:$,context:D}),Z):((0,h.V1)(D.path.pop()===Z),$))}),missing:B}},U}(),s=function(){function U(r,d){this.cache=r,this.reader=d}return U.prototype.writeToStore=function(r){var d=r.query,p=r.result,S=r.dataId,D=r.store,B=r.variables,q=(0,c.Vu)(d),$=(0,l.mv)();B=(0,y.__assign)((0,y.__assign)({},(0,c.wY)(q)),B);var Z=this.processSelectionSet({result:p||Object.create(null),dataId:S,selectionSet:q.selectionSet,mergeTree:{map:new Map},context:{store:D,written:Object.create(null),merge:function(ne,ae){return $.merge(ne,ae)},variables:B,varString:JSON.stringify(B),fragmentMap:(0,b.JG)((0,c.zK)(d))}});if(!(0,I.A_)(Z))throw new h.zU(7);return D.retain(Z.__ref),Z},U.prototype.processSelectionSet=function(r){var d=this,p=r.dataId,S=r.result,D=r.selectionSet,B=r.context,q=r.mergeTree,$=this.cache.policies,Z=$.identify(S,D,B.fragmentMap),ae=Z[1];if("string"==typeof(p=p||Z[0])){var ie=B.written[p]||(B.written[p]=[]),se=(0,I.WU)(p);if(ie.indexOf(D)>=0||(ie.push(D),this.reader&&this.reader.isFresh(S,se,D,B)))return se}var ue=Object.create(null);ae&&(ue=B.merge(ue,ae));var oe=p&&$.rootTypenamesById[p]||(0,I.D$)(S,D,B.fragmentMap)||p&&B.store.get(p,"__typename");"string"==typeof oe&&(ue.__typename=oe);var ce=new Set(D.selections);if(ce.forEach(function(J){var te;if((0,M.MS)(J,B.variables))if((0,I.dt)(J)){var re=(0,I.ue)(J),fe=S[re];if(typeof fe<"u"){var le=$.getStoreFieldName({typename:oe,fieldName:J.name.value,field:J,variables:B.variables}),he=T(q,le),ve=d.processFieldValue(fe,J,B,he),de=J.selectionSet&&B.store.getFieldValue(ve,"__typename")||void 0,pe=$.getMergeFunction(oe,J.name.value,de);pe?he.info={field:J,typename:oe,merge:pe}:x(q,le),ue=B.merge(ue,((te={})[le]=ve,te))}else if($.usingPossibleTypes&&!(0,M.d8)(["defer","client"],J))throw new h.zU(8)}else{var ye=(0,b.HQ)(J,B.fragmentMap);ye&&$.fragmentMatches(ye,oe,S,B.variables)&&ye.selectionSet.selections.forEach(ce.add,ce)}}),"string"==typeof p){var F=(0,I.WU)(p);return q.map.size&&(ue=this.applyMerges(q,F,ue,B)),B.store.merge(p,ue),F}return ue},U.prototype.processFieldValue=function(r,d,p,S){var D=this;return d.selectionSet&&null!==r?Array.isArray(r)?r.map(function(B,q){var $=D.processFieldValue(B,d,p,T(S,q));return x(S,q),$}):this.processSelectionSet({result:r,selectionSet:d.selectionSet,context:p,mergeTree:S}):r},U.prototype.applyMerges=function(r,d,p,S,D){var B,q=this;if(r.map.size&&!(0,I.A_)(p)){var $=Array.isArray(p)||!(0,I.A_)(d)&&!(0,l.d1)(d)?void 0:d,Z=p;$&&!D&&(D=[(0,I.A_)($)?$.__ref:$]);var ne,ae=function(ie,se){return Array.isArray(ie)?"number"==typeof se?ie[se]:void 0:S.store.getFieldValue(ie,String(se))};r.map.forEach(function(ie,se){D&&D.push(se);var ue=ae($,se),oe=ae(Z,se),ce=q.applyMerges(ie,ue,oe,S,D);ce!==oe&&(ne=ne||new Map).set(se,ce),D&&(0,h.V1)(D.pop()===se)}),ne&&(p=Array.isArray(Z)?Z.slice(0):(0,y.__assign)({},Z),ne.forEach(function(ie,se){p[se]=ie}))}return r.info?this.cache.policies.runMergeFunction(d,p,r.info,S,D&&(B=S.store).getStorage.apply(B,D)):p},U}(),w=[];function T(U,r){var d=U.map;return d.has(r)||d.set(r,w.pop()||{map:new Map}),d.get(r)}function x(U,r){var d=U.map,p=d.get(r);p&&!p.info&&!p.map.size&&(w.push(p),d.delete(r))}var H=i(88059),X=i(47916),Y={dataIdFromObject:X.o,addTypename:!0,resultCaching:!0,typePolicies:{}},j=function(U){function r(d){void 0===d&&(d={});var p=U.call(this)||this;return p.watches=new Set,p.typenameDocumentCache=new Map,p.makeVar=H.UT,p.txCount=0,p.maybeBroadcastWatch=(0,N.LV)(function(S,D){return p.broadcastWatch.call(p,S,!!D)},{makeCacheKey:function(S){var D=S.optimistic?p.optimisticData:p.data;if(R(D))return D.makeCacheKey(S.query,S.callback,JSON.stringify({optimistic:S.optimistic,rootId:S.rootId,variables:S.variables}))}}),p.watchDep=(0,N.yN)(),p.config=(0,y.__assign)((0,y.__assign)({},Y),d),p.addTypename=!!p.config.addTypename,p.policies=new X.l({cache:p,dataIdFromObject:p.config.dataIdFromObject,possibleTypes:p.config.possibleTypes,typePolicies:p.config.typePolicies}),p.data=new A.Root({policies:p.policies,resultCaching:p.config.resultCaching}),p.optimisticData=p.data,p.storeWriter=new s(p,p.storeReader=new e({cache:p,addTypename:p.addTypename})),p}return(0,y.__extends)(r,U),r.prototype.restore=function(d){return d&&this.data.replace(d),this},r.prototype.extract=function(d){return void 0===d&&(d=!1),(d?this.optimisticData:this.data).extract()},r.prototype.read=function(d){var p=d.returnPartialData,S=void 0!==p&&p;try{return this.storeReader.diffQueryAgainstStore({store:d.optimistic?this.optimisticData:this.data,query:d.query,variables:d.variables,rootId:d.rootId,config:this.config,returnPartialData:S}).result||null}catch(D){if(D instanceof g.Z)return null;throw D}},r.prototype.write=function(d){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:d.query,result:d.result,dataId:d.dataId,variables:d.variables})}finally{! --this.txCount&&!1!==d.broadcast&&this.broadcastWatches()}},r.prototype.modify=function(d){if(l.$3.call(d,"id")&&!d.id)return!1;var p=d.optimistic?this.optimisticData:this.data;try{return++this.txCount,p.modify(d.id||"ROOT_QUERY",d.fields)}finally{! --this.txCount&&!1!==d.broadcast&&this.broadcastWatches()}},r.prototype.diff=function(d){return this.storeReader.diffQueryAgainstStore({store:d.optimistic?this.optimisticData:this.data,rootId:d.id||"ROOT_QUERY",query:d.query,variables:d.variables,returnPartialData:d.returnPartialData,config:this.config})},r.prototype.watch=function(d){var p=this;return this.watches.size||(0,H.MS)(this),this.watches.add(d),d.immediate&&this.maybeBroadcastWatch(d),function(){p.watches.delete(d)&&!p.watches.size&&(0,H.WR)(p),p.watchDep.dirty(d),p.maybeBroadcastWatch.forget(d)}},r.prototype.gc=function(){return this.optimisticData.gc()},r.prototype.retain=function(d,p){return(p?this.optimisticData:this.data).retain(d)},r.prototype.release=function(d,p){return(p?this.optimisticData:this.data).release(d)},r.prototype.identify=function(d){return(0,I.A_)(d)?d.__ref:this.policies.identify(d)[0]},r.prototype.evict=function(d){if(!d.id){if(l.$3.call(d,"id"))return!1;d=(0,y.__assign)((0,y.__assign)({},d),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(d)}finally{! --this.txCount&&!1!==d.broadcast&&this.broadcastWatches()}},r.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},r.prototype.removeOptimistic=function(d){var p=this.optimisticData.removeLayer(d);p!==this.optimisticData&&(this.optimisticData=p,this.broadcastWatches())},r.prototype.performTransaction=function(d,p){var S=this,D=function(q){var Z=S.data,ne=S.optimisticData;++S.txCount,q&&(S.data=S.optimisticData=q);try{d(S)}finally{--S.txCount,S.data=Z,S.optimisticData=ne}},B=!1;"string"==typeof p?(this.optimisticData=this.optimisticData.addLayer(p,D),B=!0):null===p?D(this.data):D(),this.broadcastWatches(B)},r.prototype.transformDocument=function(d){if(this.addTypename){var p=this.typenameDocumentCache.get(d);return p||(p=(0,C.XY)(d),this.typenameDocumentCache.set(d,p),this.typenameDocumentCache.set(p,p)),p}return d},r.prototype.broadcastWatches=function(d){var p=this;this.txCount||this.watches.forEach(function(S){return p.maybeBroadcastWatch(S,d)})},r.prototype.broadcastWatch=function(d,p){this.watchDep.dirty(d),this.watchDep(d);var S=this.diff({query:d.query,variables:d.variables,optimistic:d.optimistic});d.optimistic&&p&&(S.fromOptimisticTransaction=!0),d.callback(S)},r}(k.k)},47916:(ee,_,i)=>{"use strict";i.d(_,{l:()=>l,o:()=>M});var y=i(40909),N=i(31351),k=i(65812),g=i(65769),I=i(64422),C=i(48126),h=i(29901),c=i(88059);function b(W){return void 0!==W.args?W.args:W.field?(0,g.MB)(W.field,W.variables):null}var M=function(W,u){var R=W.__typename,n=W.id,e=W._id;if("string"==typeof R&&(u&&(u.keyObject=void 0!==n?{id:n}:void 0!==e?{_id:e}:void 0),void 0===n&&(n=e),void 0!==n))return R+":"+("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))},E=function(){},L=function(W,u){return u.fieldName},o=function(W,u,R){return(0,R.mergeObjects)(W,u)},P=function(W,u){return u},l=function(){function W(u){this.config=u,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,y.__assign)({dataIdFromObject:M},u),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),u.possibleTypes&&this.addPossibleTypes(u.possibleTypes),u.typePolicies&&this.addTypePolicies(u.typePolicies)}return W.prototype.identify=function(u,R,n){var e=R&&n?(0,g.D$)(u,R,n):u.__typename;if(e===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s,t={typename:e,selectionSet:R,fragmentMap:n},w=e&&this.getTypePolicy(e),T=w&&w.keyFn||this.config.dataIdFromObject;T;){var x=T(u,t);if(!Array.isArray(x)){s=x;break}T=A(x)}return s=s?String(s):void 0,t.keyObject?[s,t.keyObject]:[s]},W.prototype.addTypePolicies=function(u){var R=this;Object.keys(u).forEach(function(n){var e=u[n],t=e.queryType,s=e.mutationType,w=e.subscriptionType,T=(0,y.__rest)(e,["queryType","mutationType","subscriptionType"]);t&&R.setRootTypename("Query",n),s&&R.setRootTypename("Mutation",n),w&&R.setRootTypename("Subscription",n),h.$3.call(R.toBeAdded,n)?R.toBeAdded[n].push(T):R.toBeAdded[n]=[T]})},W.prototype.updateTypePolicy=function(u,R){var n=this,e=this.getTypePolicy(u),t=R.keyFields,s=R.fields;function w(T,x){T.merge="function"==typeof x?x:!0===x?o:!1===x?P:T.merge}w(e,R.merge),e.keyFn=!1===t?E:Array.isArray(t)?A(t):"function"==typeof t?t:e.keyFn,s&&Object.keys(s).forEach(function(T){var x=n.getFieldPolicy(u,T,!0),G=s[T];if("function"==typeof G)x.read=G;else{var z=G.keyArgs,H=G.read,X=G.merge;x.keyFn=!1===z?L:Array.isArray(z)?m(z):"function"==typeof z?z:x.keyFn,"function"==typeof H&&(x.read=H),w(x,X)}x.read&&x.merge&&(x.keyFn=x.keyFn||L)})},W.prototype.setRootTypename=function(u,R){void 0===R&&(R=u);var n="ROOT_"+u.toUpperCase(),e=this.rootTypenamesById[n];R!==e&&((0,k.V1)(!e||e===u,1),e&&delete this.rootIdsByTypename[e],this.rootIdsByTypename[R]=n,this.rootTypenamesById[n]=R)},W.prototype.addPossibleTypes=function(u){var R=this;this.usingPossibleTypes=!0,Object.keys(u).forEach(function(n){R.getSupertypeSet(n,!0),u[n].forEach(function(e){R.getSupertypeSet(e,!0).add(n);var t=e.match(h.gk);(!t||t[0]!==e)&&R.fuzzySubtypes.set(e,new RegExp(e))})})},W.prototype.getTypePolicy=function(u){var R=this;if(!h.$3.call(this.typePolicies,u)){var n=this.typePolicies[u]=Object.create(null);n.fields=Object.create(null);var e=this.supertypeMap.get(u);e&&e.size&&e.forEach(function(s){var w=R.getTypePolicy(s),T=w.fields,x=(0,y.__rest)(w,["fields"]);Object.assign(n,x),Object.assign(n.fields,T)})}var t=this.toBeAdded[u];return t&&t.length&&t.splice(0).forEach(function(s){R.updateTypePolicy(u,s)}),this.typePolicies[u]},W.prototype.getFieldPolicy=function(u,R,n){if(u){var e=this.getTypePolicy(u).fields;return e[R]||n&&(e[R]=Object.create(null))}},W.prototype.getSupertypeSet=function(u,R){var n=this.supertypeMap.get(u);return!n&&R&&this.supertypeMap.set(u,n=new Set),n},W.prototype.fragmentMatches=function(u,R,n,e){var t=this;if(!u.typeCondition)return!0;if(!R)return!1;var s=u.typeCondition.name.value;if(R===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var w=this.getSupertypeSet(R,!0),T=[w],x=function(Y){var j=t.getSupertypeSet(Y,!1);j&&j.size&&T.indexOf(j)<0&&T.push(j)},G=!(!n||!this.fuzzySubtypes.size),H=0;H<T.length;++H){var X=T[H];if(X.has(s))return w.has(s)||w.add(s),!0;X.forEach(x),G&&H===T.length-1&&(0,h.T9)(u.selectionSet,n,e)&&(G=!1,this.fuzzySubtypes.forEach(function(Y,j){var U=R.match(Y);U&&U[0]===R&&x(j)}))}return!1},W.prototype.hasKeyArgs=function(u,R){var n=this.getFieldPolicy(u,R,!1);return!(!n||!n.keyFn)},W.prototype.getStoreFieldName=function(u){var t,R=u.typename,n=u.fieldName,e=this.getFieldPolicy(R,n,!1),s=e&&e.keyFn;if(s&&R)for(var w={typename:R,fieldName:n,field:u.field||null,variables:u.variables},T=b(u);s;){var x=s(T,w);if(!Array.isArray(x)){t=x||n;break}s=m(x)}return void 0===t&&(t=u.field?(0,g.Ii)(u.field,u.variables):(0,g.o5)(n,b(u))),!1===t?n:n===(0,h.iJ)(t)?t:n+":"+t},W.prototype.readField=function(u,R){var n=u.from;if(n&&(u.field||u.fieldName)){if(void 0===u.typename){var t=R.store.getFieldValue(n,"__typename");t&&(u.typename=t)}var s=this.getStoreFieldName(u),w=(0,h.iJ)(s),T=R.store.getFieldValue(n,s),x=this.getFieldPolicy(u.typename,w,!1),G=x&&x.read;if(G){var z=O(this,n,u,R,R.store.getStorage((0,g.A_)(n)?n.__ref:n,s));return c.bl.withValue(this.cache,G,[T,z])}return T}},W.prototype.getMergeFunction=function(u,R,n){var e=this.getFieldPolicy(u,R,!1),t=e&&e.merge;return!t&&n&&(t=(e=this.getTypePolicy(n))&&e.merge),t},W.prototype.runMergeFunction=function(u,R,n,e,t){var s=n.field,w=n.typename,T=n.merge;return T===o?v(e.store.getFieldValue)(u,R):T===P?R:T(u,R,O(this,void 0,{typename:w,fieldName:s.name.value,field:s,variables:e.variables},e,t||Object.create(null)))},W}();function O(W,u,R,n,e){var t=W.getStoreFieldName(R),s=(0,h.iJ)(t),w=R.variables||n.variables,T=n.store,x=T.getFieldValue,G=T.toReference,z=T.canRead;return{args:b(R),field:R.field||null,fieldName:s,storeFieldName:t,variables:w,isReference:g.A_,toReference:G,storage:e,cache:W.cache,canRead:z,readField:function(H,X){var Y="string"==typeof H?{fieldName:H,from:X}:(0,y.__assign)({},H);return void 0===Y.from&&(Y.from=u),void 0===Y.variables&&(Y.variables=w),W.readField(Y,n)},mergeObjects:v(x)}}function v(W){return function(R,n){if(Array.isArray(R)||Array.isArray(n))throw new k.zU(2);if(R&&"object"==typeof R&&n&&"object"==typeof n){var e=W(R,"__typename"),t=W(n,"__typename");return e&&t&&e!==t||!(0,h.d1)(R)||!(0,h.d1)(n)?n:(0,y.__assign)((0,y.__assign)({},R),n)}return n}}function m(W){return function(u,R){return u?R.fieldName+":"+JSON.stringify(Q(u,W,!1)):R.fieldName}}function A(W){var u=new N.oZ(I.e);return function(R,n){var e;if(n.selectionSet&&n.fragmentMap){var t=u.lookupArray([n.selectionSet,n.fragmentMap]);e=t.aliasMap||(t.aliasMap=K(n.selectionSet,n.fragmentMap))}var s=n.keyObject=Q(R,W,!0,e);return n.typename+":"+JSON.stringify(s)}}function K(W,u){var R=Object.create(null),n=new Set([W]);return n.forEach(function(e){e.selections.forEach(function(t){if((0,g.dt)(t)){if(t.alias){var s=t.alias.value,w=t.name.value;w!==s&&((R.aliases||(R.aliases=Object.create(null)))[w]=s)}t.selectionSet&&((R.subsets||(R.subsets=Object.create(null)))[t.name.value]=K(t.selectionSet,u))}else{var G=(0,C.HQ)(t,u);G&&n.add(G.selectionSet)}})}),R}function Q(W,u,R,n){var t,e=Object.create(null);return u.forEach(function(s){if(Array.isArray(s)){if("string"==typeof t){var w=n&&n.subsets;e[t]=Q(W[t],s,R,w&&w[t])}}else{var x=n&&n.aliases,G=x&&x[s]||s;h.$3.call(W,G)?e[t=s]=W[G]:((0,k.V1)(!R,3),t=void 0)}}),e}},88059:(ee,_,i)=>{"use strict";i.d(_,{MS:()=>h,UT:()=>c,WR:()=>C,bl:()=>k});var y=i(31351),k=new(i(79664).DX),g=new WeakMap;function I(M){var E=g.get(M);return E||g.set(M,E={vars:new Set,dep:(0,y.yN)()}),E}function C(M){I(M).vars.forEach(function(E){return E.forgetCache(M)})}function h(M){I(M).vars.forEach(function(E){return E.attachCache(M)})}function c(M){var E=new Set,L=new Set,o=function(l){if(arguments.length>0){if(M!==l){M=l,E.forEach(function(m){I(m).dep.dirty(o),function b(M){M.broadcastWatches&&M.broadcastWatches()}(m)});var O=Array.from(L);L.clear(),O.forEach(function(m){return m(M)})}}else{var v=k.getValue();v&&(P(v),I(v).dep(o))}return M};o.onNextChange=function(l){return L.add(l),function(){L.delete(l)}};var P=o.attachCache=function(l){return E.add(l),I(l).vars.add(o),o};return o.forgetCache=function(l){return E.delete(l)},o}},52565:()=>{},97319:(ee,_,i)=>{"use strict";i.d(_,{R:()=>j,l:()=>Y});var y=i(40909),N=i(65812),k=i(76704),g=i(97700),I=i(14382),h=i(75938),c=i(16409),b=i(64422),M=i(57080),E=i(91589),L=i(37179),o=i(61355),P=i(53353),l=i(72101),O=i.n(l),v=i(56687),m=i(16976),A=i(90912),K=i(96020),Q=i(1172),W=i(41888),u=i(20317),R=i(48126),n=i(65769),e=i(88059),t=function(){function U(r){var p=r.client,S=r.resolvers,D=r.fragmentMatcher;this.cache=r.cache,p&&(this.client=p),S&&this.addResolvers(S),D&&this.setFragmentMatcher(D)}return U.prototype.addResolvers=function(r){var d=this;this.resolvers=this.resolvers||{},Array.isArray(r)?r.forEach(function(p){d.resolvers=(0,u.D9)(d.resolvers,p)}):this.resolvers=(0,u.D9)(this.resolvers,r)},U.prototype.setResolvers=function(r){this.resolvers={},this.addResolvers(r)},U.prototype.getResolvers=function(){return this.resolvers||{}},U.prototype.runResolvers=function(r){var d=r.document,p=r.remoteResult,S=r.context,D=r.variables,B=r.onlyRunForcedResolvers,q=void 0!==B&&B;return(0,y.__awaiter)(this,void 0,void 0,function(){return(0,y.__generator)(this,function($){return d?[2,this.resolveDocument(d,p.data,S,D,this.fragmentMatcher,q).then(function(Z){return(0,y.__assign)((0,y.__assign)({},p),{data:Z.result})})]:[2,p]})})},U.prototype.setFragmentMatcher=function(r){this.fragmentMatcher=r},U.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},U.prototype.clientQuery=function(r){return(0,P.d8)(["client"],r)&&this.resolvers?r:null},U.prototype.serverQuery=function(r){return(0,o.er)(r)},U.prototype.prepareContext=function(r){var d=this.cache;return(0,y.__assign)((0,y.__assign)({},r),{cache:d,getCacheKey:function(p){return d.identify(p)}})},U.prototype.addExportedVariables=function(r,d,p){return void 0===d&&(d={}),void 0===p&&(p={}),(0,y.__awaiter)(this,void 0,void 0,function(){return(0,y.__generator)(this,function(S){return r?[2,this.resolveDocument(r,this.buildRootValueFromCache(r,d)||{},this.prepareContext(p),d).then(function(D){return(0,y.__assign)((0,y.__assign)({},d),D.exportedVariables)})]:[2,(0,y.__assign)({},d)]})})},U.prototype.shouldForceResolvers=function(r){var d=!1;return(0,W.YR)(r,{Directive:{enter:function(p){if("client"===p.name.value&&p.arguments&&(d=p.arguments.some(function(S){return"always"===S.name.value&&"BooleanValue"===S.value.kind&&!0===S.value.value})))return W.sP}}}),d},U.prototype.buildRootValueFromCache=function(r,d){return this.cache.diff({query:(0,o.zc)(r),variables:d,returnPartialData:!0,optimistic:!1}).result},U.prototype.resolveDocument=function(r,d,p,S,D,B){return void 0===p&&(p={}),void 0===S&&(S={}),void 0===D&&(D=function(){return!0}),void 0===B&&(B=!1),(0,y.__awaiter)(this,void 0,void 0,function(){var q,$,Z,ne,ae,ie,se,ue,oe;return(0,y.__generator)(this,function(ce){return q=(0,L.Vn)(r),$=(0,L.zK)(r),Z=(0,R.JG)($),ae=(ne=q.operation)?ne.charAt(0).toUpperCase()+ne.slice(1):"Query",se=(ie=this).cache,ue=ie.client,oe={fragmentMap:Z,context:(0,y.__assign)((0,y.__assign)({},p),{cache:se,client:ue}),variables:S,fragmentMatcher:D,defaultOperationType:ae,exportedVariables:{},onlyRunForcedResolvers:B},[2,this.resolveSelectionSet(q.selectionSet,d,oe).then(function(F){return{result:F,exportedVariables:oe.exportedVariables}})]})})},U.prototype.resolveSelectionSet=function(r,d,p){return(0,y.__awaiter)(this,void 0,void 0,function(){var S,D,B,q,Z=this;return(0,y.__generator)(this,function(ne){return S=p.fragmentMap,D=p.context,B=p.variables,q=[d],[2,Promise.all(r.selections.map(function(ae){return(0,y.__awaiter)(Z,void 0,void 0,function(){var ie;return(0,y.__generator)(this,function(ue){return(0,P.MS)(ae,B)?(0,n.dt)(ae)?[2,this.resolveField(ae,d,p).then(function(oe){var ce;typeof oe<"u"&&q.push(((ce={})[(0,n.ue)(ae)]=oe,ce))})]:((0,n.kd)(ae)?ie=ae:(0,N.V1)(ie=S[ae.name.value],11),ie&&ie.typeCondition&&p.fragmentMatcher(d,ie.typeCondition.name.value,D)?[2,this.resolveSelectionSet(ie.selectionSet,d,p).then(function(oe){q.push(oe)})]:[2]):[2]})})})).then(function(){return(0,u.IM)(q)})]})})},U.prototype.resolveField=function(r,d,p){return(0,y.__awaiter)(this,void 0,void 0,function(){var S,D,B,q,$,Z,ne,ae,ie,se=this;return(0,y.__generator)(this,function(ue){return S=p.variables,D=r.name.value,B=(0,n.ue)(r),q=D!==B,$=d[B]||d[D],Z=Promise.resolve($),(!p.onlyRunForcedResolvers||this.shouldForceResolvers(r))&&(ne=d.__typename||p.defaultOperationType,(ae=this.resolvers&&this.resolvers[ne])&&(ie=ae[q?D:B])&&(Z=Promise.resolve(e.bl.withValue(this.cache,ie,[d,(0,n.MB)(r,S),p.context,{field:r,fragmentMap:p.fragmentMap}])))),[2,Z.then(function(oe){return void 0===oe&&(oe=$),r.directives&&r.directives.forEach(function(ce){"export"===ce.name.value&&ce.arguments&&ce.arguments.forEach(function(F){"as"===F.name.value&&"StringValue"===F.value.kind&&(p.exportedVariables[F.value.value]=oe)})}),r.selectionSet&&null!=oe?Array.isArray(oe)?se.resolveSubSelectedArray(r,oe,p):r.selectionSet?se.resolveSelectionSet(r.selectionSet,oe,p):void 0:oe})]})})},U.prototype.resolveSubSelectedArray=function(r,d,p){var S=this;return Promise.all(d.map(function(D){return null===D?null:Array.isArray(D)?S.resolveSubSelectedArray(r,D,p):r.selectionSet?S.resolveSelectionSet(r.selectionSet,D,p):void 0}))},U}(),s=new(b.e?WeakMap:Map);function w(U,r){var d=U[r];"function"==typeof d&&(U[r]=function(){return s.set(U,(s.get(U)+1)%1e15),d.apply(this,arguments)})}function T(U){U.notifyTimeout&&(clearTimeout(U.notifyTimeout),U.notifyTimeout=void 0)}var x=function(){function U(r){this.cache=r,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.diff=null,this.observableQuery=null,s.has(r)||(s.set(r,0),w(r,"evict"),w(r,"modify"),w(r,"reset"))}return U.prototype.init=function(r){var d=r.networkStatus||Q.p.loading;return this.variables&&this.networkStatus!==Q.p.loading&&!(0,c.L)(this.variables,r.variables)&&(d=Q.p.setVariables),(0,c.L)(r.variables,this.variables)||(this.diff=null),Object.assign(this,{document:r.document,variables:r.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:d}),r.observableQuery&&this.setObservableQuery(r.observableQuery),r.lastRequestId&&(this.lastRequestId=r.lastRequestId),this},U.prototype.reset=function(){T(this),this.diff=null,this.dirty=!1},U.prototype.getDiff=function(r){return void 0===r&&(r=this.variables),this.diff&&(0,c.L)(r,this.variables)?this.diff:(this.updateWatch(this.variables=r),this.diff=this.cache.diff({query:this.document,variables:r,returnPartialData:!0,optimistic:!0}))},U.prototype.setDiff=function(r){var d=this,p=this.diff;this.diff=r,!this.dirty&&(r&&r.result)!==(p&&p.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return d.notify()},0)))},U.prototype.setObservableQuery=function(r){var d=this;r!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=r,r?(r.queryInfo=this,this.listeners.add(this.oqListener=function(){d.getDiff().fromOptimisticTransaction?r.observe():r.reobserve()})):delete this.oqListener)},U.prototype.notify=function(){var r=this;T(this),this.shouldNotify()&&this.listeners.forEach(function(d){return d(r)}),this.dirty=!1},U.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,Q.b)(this.networkStatus)&&this.observableQuery){var r=this.observableQuery.options.fetchPolicy;if("cache-only"!==r&&"cache-and-network"!==r)return!1}return!0},U.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(d){return d.unsubscribe()});var r=this.observableQuery;r&&r.stopPolling()}},U.prototype.cancel=function(){},U.prototype.updateWatch=function(r){var d=this;void 0===r&&(r=this.variables);var p=this.observableQuery;p&&"no-cache"===p.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,c.L)(r,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:r,optimistic:!0,callback:function(S){return d.setDiff(S)}}))},U.prototype.shouldWrite=function(r,d){var p=this.lastWrite;return!(p&&p.dmCount===s.get(this.cache)&&(0,c.L)(d,p.variables)&&(0,c.L)(r.data,p.result.data))},U.prototype.markResult=function(r,d,p){var S=this;this.graphQLErrors=(0,E.E)(r.errors)?r.errors:[],this.reset(),"no-cache"===d.fetchPolicy?this.diff={result:r.data,complete:!0}:!this.stopped&&p&&(G(r,d.errorPolicy)?this.cache.performTransaction(function(D){if(S.shouldWrite(r,d.variables))D.writeQuery({query:S.document,data:r.data,variables:d.variables}),S.lastWrite={result:r,variables:d.variables,dmCount:s.get(S.cache)};else if(S.diff&&S.diff.complete)return void(r.data=S.diff.result);var B=D.diff({query:S.document,variables:d.variables,returnPartialData:!0,optimistic:!0});S.stopped||S.updateWatch(d.variables),S.diff=B,B.complete&&(r.data=B.result)}):this.lastWrite=void 0)},U.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Q.p.ready},U.prototype.markError=function(r){return this.networkStatus=Q.p.error,this.lastWrite=void 0,this.reset(),r.graphQLErrors&&(this.graphQLErrors=r.graphQLErrors),r.networkError&&(this.networkError=r.networkError),r},U}();function G(U,r){void 0===r&&(r="none");var d="ignore"===r||"all"===r,p=!(0,M.t)(U);return!p&&d&&U.data&&(p=!0),p}var z=Object.prototype.hasOwnProperty,H=function(){function U(r){var d=r.cache,p=r.link,S=r.queryDeduplication,D=void 0!==S&&S,B=r.onBroadcast,q=r.ssrMode,$=void 0!==q&&q,Z=r.clientAwareness,ne=void 0===Z?{}:Z,ae=r.localState,ie=r.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(b.e?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=d,this.link=p,this.queryDeduplication=D,this.clientAwareness=ne,this.localState=ae||new t({cache:d}),this.ssrMode=$,this.assumeImmutableResults=!!ie,(this.onBroadcast=B)&&(this.mutationStore=Object.create(null))}return U.prototype.stop=function(){var r=this;this.queries.forEach(function(d,p){r.stopQueryNoBroadcast(p)}),this.cancelPendingFetches(new N.zU(12))},U.prototype.cancelPendingFetches=function(r){this.fetchCancelFns.forEach(function(d){return d(r)}),this.fetchCancelFns.clear()},U.prototype.mutate=function(r){var d=r.mutation,p=r.variables,S=r.optimisticResponse,D=r.updateQueries,B=r.refetchQueries,q=void 0===B?[]:B,$=r.awaitRefetchQueries,Z=void 0!==$&&$,ne=r.update,ae=r.errorPolicy,ie=void 0===ae?"none":ae,se=r.fetchPolicy,ue=r.context,oe=void 0===ue?{}:ue;return(0,y.__awaiter)(this,void 0,void 0,function(){var ce,F,a;return(0,y.__generator)(this,function(f){switch(f.label){case 0:return(0,N.V1)(d,13),(0,N.V1)(!se||"no-cache"===se,14),ce=this.generateMutationId(),d=this.transform(d).document,p=this.getVariables(d,p),this.transform(d).hasClientExports?[4,this.localState.addExportedVariables(d,p,oe)]:[3,2];case 1:p=f.sent(),f.label=2;case 2:return F=this.mutationStore&&(this.mutationStore[ce]={mutation:d,variables:p,loading:!0,error:null}),S&&this.markMutationOptimistic(S,{mutationId:ce,document:d,variables:p,errorPolicy:ie,updateQueries:D,update:ne}),this.broadcastQueries(),a=this,[2,new Promise(function(V,J){var te,re;a.getObservableFromLink(d,(0,y.__assign)((0,y.__assign)({},oe),{optimisticResponse:S}),p,!1).subscribe({next:function(fe){if((0,M.t)(fe)&&"none"===ie)re=new A.K({graphQLErrors:fe.errors});else{if(F&&(F.loading=!1,F.error=null),"no-cache"!==se)try{a.markMutationResult({mutationId:ce,result:fe,document:d,variables:p,errorPolicy:ie,updateQueries:D,update:ne})}catch(le){return void(re=new A.K({networkError:le}))}te=fe}},error:function(fe){F&&(F.loading=!1,F.error=fe),S&&a.cache.removeOptimistic(ce),a.broadcastQueries(),J(new A.K({networkError:fe}))},complete:function(){if(re&&F&&(F.loading=!1,F.error=re),S&&a.cache.removeOptimistic(ce),a.broadcastQueries(),re)J(re);else{"function"==typeof q&&(q=q(te));var fe=[];(0,E.E)(q)&&q.forEach(function(le){if("string"==typeof le)a.queries.forEach(function(ve){var de=ve.observableQuery;de&&de.hasObservers()&&de.queryName===le&&fe.push(de.refetch())});else{var he={query:le.query,variables:le.variables,fetchPolicy:"network-only"};le.context&&(he.context=le.context),fe.push(a.query(he))}}),Promise.all(Z?fe:[]).then(function(){"ignore"===ie&&te&&(0,M.t)(te)&&delete te.errors,V(te)},J)}}})})]}})})},U.prototype.markMutationResult=function(r,d){var p=this;if(void 0===d&&(d=this.cache),G(r.result,r.errorPolicy)){var S=[{result:r.result.data,dataId:"ROOT_MUTATION",query:r.document,variables:r.variables}],D=r.updateQueries;D&&this.queries.forEach(function(B,q){var $=B.observableQuery,Z=$&&$.queryName;if(Z&&z.call(D,Z)){var ne=D[Z],ae=p.queries.get(q),ie=ae.document,se=ae.variables,ue=d.diff({query:ie,variables:se,returnPartialData:!0,optimistic:!1}),oe=ue.result;if(ue.complete&&oe){var F=ne(oe,{mutationResult:r.result,queryName:ie&&(0,L.n4)(ie)||void 0,queryVariables:se});F&&S.push({result:F,dataId:"ROOT_QUERY",query:ie,variables:se})}}}),d.performTransaction(function(B){S.forEach(function($){return B.write($)});var q=r.update;q&&q(B,r.result)},null)}},U.prototype.markMutationOptimistic=function(r,d){var p=this,S="function"==typeof r?r(d.variables):r;return this.cache.recordOptimisticTransaction(function(D){try{p.markMutationResult((0,y.__assign)((0,y.__assign)({},d),{result:{data:S}}),D)}catch{}},d.mutationId)},U.prototype.fetchQuery=function(r,d,p){return this.fetchQueryObservable(r,d,p).promise},U.prototype.getQueryStore=function(){var r=Object.create(null);return this.queries.forEach(function(d,p){r[p]={variables:d.variables,networkStatus:d.networkStatus,networkError:d.networkError,graphQLErrors:d.graphQLErrors}}),r},U.prototype.resetErrors=function(r){var d=this.queries.get(r);d&&(d.networkError=void 0,d.graphQLErrors=[])},U.prototype.transform=function(r){var d=this.transformCache;if(!d.has(r)){var p=this.cache.transformDocument(r),S=(0,o.hX)(this.cache.transformForLink(p)),D=this.localState.clientQuery(p),B=S&&this.localState.serverQuery(S),q={document:p,hasClientExports:(0,P.f2)(p),hasForcedResolvers:this.localState.shouldForceResolvers(p),clientQuery:D,serverQuery:B,defaultVars:(0,L.wY)((0,L.Vu)(p))},$=function(Z){Z&&!d.has(Z)&&d.set(Z,q)};$(r),$(p),$(D),$(B)}return d.get(r)},U.prototype.getVariables=function(r,d){return(0,y.__assign)((0,y.__assign)({},this.transform(r).defaultVars),d)},U.prototype.watchQuery=function(r){typeof(r=(0,y.__assign)((0,y.__assign)({},r),{variables:this.getVariables(r.query,r.variables)})).notifyOnNetworkStatusChange>"u"&&(r.notifyOnNetworkStatusChange=!1);var d=new x(this.cache),p=new K.U({queryManager:this,queryInfo:d,options:r});return this.queries.set(p.queryId,d),d.init({document:r.query,observableQuery:p,variables:r.variables}),p},U.prototype.query=function(r){var d=this;(0,N.V1)(r.query,15),(0,N.V1)("Document"===r.query.kind,16),(0,N.V1)(!r.returnPartialData,17),(0,N.V1)(!r.pollInterval,18);var p=this.generateQueryId();return this.fetchQuery(p,r).finally(function(){return d.stopQuery(p)})},U.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},U.prototype.generateRequestId=function(){return this.requestIdCounter++},U.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},U.prototype.stopQueryInStore=function(r){this.stopQueryInStoreNoBroadcast(r),this.broadcastQueries()},U.prototype.stopQueryInStoreNoBroadcast=function(r){var d=this.queries.get(r);d&&d.stop()},U.prototype.clearStore=function(){return this.cancelPendingFetches(new N.zU(19)),this.queries.forEach(function(r){r.observableQuery?r.networkStatus=Q.p.loading:r.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},U.prototype.resetStore=function(){var r=this;return this.clearStore().then(function(){return r.reFetchObservableQueries()})},U.prototype.reFetchObservableQueries=function(r){var d=this;void 0===r&&(r=!1);var p=[];return this.queries.forEach(function(S,D){var B=S.observableQuery;if(B&&B.hasObservers()){var q=B.options.fetchPolicy;B.resetLastResults(),"cache-only"!==q&&(r||"standby"!==q)&&p.push(B.refetch()),d.getQuery(D).setDiff(null)}}),this.broadcastQueries(),Promise.all(p)},U.prototype.setObservableQuery=function(r){this.getQuery(r.queryId).setObservableQuery(r)},U.prototype.startGraphQLSubscription=function(r){var d=this,p=r.query,S=r.fetchPolicy,D=r.errorPolicy,B=r.variables,q=r.context,$=void 0===q?{}:q;p=this.transform(p).document,B=this.getVariables(p,B);var Z=function(ae){return d.getObservableFromLink(p,$,ae,!1).map(function(ie){if("no-cache"!==S&&(G(ie,D)&&d.cache.write({query:p,result:ie.data,dataId:"ROOT_SUBSCRIPTION",variables:ae}),d.broadcastQueries()),(0,M.t)(ie))throw new A.K({graphQLErrors:ie.errors});return ie})};if(this.transform(p).hasClientExports){var ne=this.localState.addExportedVariables(p,B,$).then(Z);return new(O())(function(ae){var ie=null;return ne.then(function(se){return ie=se.subscribe(ae)},ae.error),function(){return ie&&ie.unsubscribe()}})}return Z(B)},U.prototype.stopQuery=function(r){this.stopQueryNoBroadcast(r),this.broadcastQueries()},U.prototype.stopQueryNoBroadcast=function(r){this.stopQueryInStoreNoBroadcast(r),this.removeQuery(r)},U.prototype.removeQuery=function(r){this.fetchCancelFns.delete(r),this.getQuery(r).stop(),this.queries.delete(r)},U.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(r){return r.notify()})},U.prototype.getLocalState=function(){return this.localState},U.prototype.getObservableFromLink=function(r,d,p,S){var B,D=this;void 0===S&&(S=null!==(B=d?.queryDeduplication)&&void 0!==B?B:this.queryDeduplication);var q,$=this.transform(r).serverQuery;if($){var ne=this.inFlightLinkObservables,ae=this.link,ie={query:$,variables:p,operationName:(0,L.n4)($)||void 0,context:this.prepareContext((0,y.__assign)((0,y.__assign)({},d),{forceFetch:!S}))};if(d=ie.context,S){var se=ne.get($)||new Map;ne.set($,se);var ue=JSON.stringify(p);if(!(q=se.get(ue))){var oe=new v.E([(0,g.g)(ae,ie)]);se.set(ue,q=oe),oe.cleanup(function(){se.delete(ue)&&se.size<1&&ne.delete($)})}}else q=new v.E([(0,g.g)(ae,ie)])}else q=new v.E([O().of({data:{}})]),d=this.prepareContext(d);var ce=this.transform(r).clientQuery;return ce&&(q=(0,m.x)(q,function(F){return D.localState.runResolvers({document:ce,remoteResult:F,context:d,variables:p})})),q},U.prototype.getResultsFromLink=function(r,d,p){var S=r.lastRequestId=this.generateRequestId();return(0,m.x)(this.getObservableFromLink(r.document,p.context,p.variables),function(D){var B=(0,E.E)(D.errors);if(S>=r.lastRequestId){if(B&&"none"===p.errorPolicy)throw r.markError(new A.K({graphQLErrors:D.errors}));r.markResult(D,p,d),r.markReady()}var q={data:D.data,loading:!1,networkStatus:r.networkStatus||Q.p.ready};return B&&"ignore"!==p.errorPolicy&&(q.errors=D.errors),q},function(D){var B=(0,A.M)(D)?D:new A.K({networkError:D});throw S>=r.lastRequestId&&r.markError(B),B})},U.prototype.fetchQueryObservable=function(r,d,p){var S=this;void 0===p&&(p=Q.p.loading);var D=this.transform(d.query).document,B=this.getVariables(D,d.variables),q=this.getQuery(r),$=q.networkStatus,Z=d.fetchPolicy,ne=void 0===Z?"cache-first":Z,ae=d.errorPolicy,ie=void 0===ae?"none":ae,se=d.returnPartialData,ue=void 0!==se&&se,oe=d.notifyOnNetworkStatusChange,ce=void 0!==oe&&oe,F=d.context,a=void 0===F?{}:F;("cache-first"===ne||"cache-and-network"===ne||"network-only"===ne||"no-cache"===ne)&&ce&&"number"==typeof $&&$!==p&&(0,Q.b)(p)&&("cache-first"!==ne&&(ne="cache-and-network"),ue=!0);var V=Object.assign({},d,{query:D,variables:B,fetchPolicy:ne,errorPolicy:ie,returnPartialData:ue,notifyOnNetworkStatusChange:ce,context:a}),J=function(re){return V.variables=re,S.fetchQueryByPolicy(q,V,p)};this.fetchCancelFns.set(r,function(re){Promise.resolve().then(function(){return te.cancel(re)})});var te=new v.E(this.transform(V.query).hasClientExports?this.localState.addExportedVariables(V.query,V.variables,V.context).then(J):J(V.variables));return te.cleanup(function(){S.fetchCancelFns.delete(r);var re=d.nextFetchPolicy;re&&(d.nextFetchPolicy=void 0,d.fetchPolicy="function"==typeof re?re.call(d,d.fetchPolicy||"cache-first"):re)}),te},U.prototype.fetchQueryByPolicy=function(r,d,p){var S=this,D=d.query,B=d.variables,q=d.fetchPolicy,$=d.errorPolicy,Z=d.returnPartialData,ne=d.context;r.init({document:D,variables:B,networkStatus:p});var ae=function(){return r.getDiff(B)},ie=function(oe,ce){void 0===ce&&(ce=r.networkStatus||Q.p.loading);var F=oe.result,a=function(f){return O().of((0,y.__assign)({data:f,loading:(0,Q.b)(ce),networkStatus:ce},oe.complete?null:{partial:!0}))};return S.transform(D).hasForcedResolvers?S.localState.runResolvers({document:D,remoteResult:{data:F},context:ne,variables:B,onlyRunForcedResolvers:!0}).then(function(f){return a(f.data)}):a(F)},se=function(oe){return S.getResultsFromLink(r,oe,{variables:B,context:ne,fetchPolicy:q,errorPolicy:$})};switch(q){default:case"cache-first":return(ue=ae()).complete?[ie(ue,r.markReady())]:Z?[ie(ue),se(!0)]:[se(!0)];case"cache-and-network":var ue;return(ue=ae()).complete||Z?[ie(ue),se(!0)]:[se(!0)];case"cache-only":return[ie(ae(),r.markReady())];case"network-only":return[se(!0)];case"no-cache":return[se(!1)];case"standby":return[]}},U.prototype.getQuery=function(r){return r&&!this.queries.has(r)&&this.queries.set(r,new x(this.cache)),this.queries.get(r)},U.prototype.prepareContext=function(r){void 0===r&&(r={});var d=this.localState.prepareContext(r);return(0,y.__assign)((0,y.__assign)({},d),{clientAwareness:this.clientAwareness})},U}();function Y(U,r){return(0,I.o)(U,r,r.variables&&{variables:(0,y.__assign)((0,y.__assign)({},U.variables),r.variables)})}var j=function(){function U(r){var d=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var p=r.uri,B=r.cache,q=r.ssrMode,$=void 0!==q&&q,Z=r.ssrForceFetchDelay,ne=void 0===Z?0:Z,ae=r.connectToDevTools,ie=void 0===ae?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:ae,se=r.queryDeduplication,ue=void 0===se||se,oe=r.defaultOptions,ce=r.assumeImmutableResults,F=void 0!==ce&&ce,a=r.resolvers,f=r.typeDefs,V=r.fragmentMatcher,J=r.name,te=r.version,re=r.link;if(re||(re=p?new h.P({uri:p,credentials:r.credentials,headers:r.headers}):k.C.empty()),!B)throw new N.zU(9);this.link=re,this.cache=B,this.disableNetworkFetches=$||ne>0,this.queryDeduplication=ue,this.defaultOptions=oe||{},this.typeDefs=f,ne&&setTimeout(function(){return d.disableNetworkFetches=!1},ne),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),ie&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new t({cache:B,client:this,resolvers:a,fragmentMatcher:V}),this.queryManager=new H({cache:this.cache,link:this.link,queryDeduplication:ue,ssrMode:$,clientAwareness:{name:J,version:te},localState:this.localState,assumeImmutableResults:F,onBroadcast:ie?function(){d.devToolsHookCb&&d.devToolsHookCb({action:{},state:{queries:d.queryManager.getQueryStore(),mutations:d.queryManager.mutationStore||{}},dataWithOptimisticResults:d.cache.extract(!0)})}:void 0})}return U.prototype.stop=function(){this.queryManager.stop()},U.prototype.watchQuery=function(r){return this.defaultOptions.watchQuery&&(r=Y(this.defaultOptions.watchQuery,r)),this.disableNetworkFetches&&("network-only"===r.fetchPolicy||"cache-and-network"===r.fetchPolicy)&&(r=(0,y.__assign)((0,y.__assign)({},r),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(r)},U.prototype.query=function(r){return this.defaultOptions.query&&(r=Y(this.defaultOptions.query,r)),(0,N.V1)("cache-and-network"!==r.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===r.fetchPolicy&&(r=(0,y.__assign)((0,y.__assign)({},r),{fetchPolicy:"cache-first"})),this.queryManager.query(r)},U.prototype.mutate=function(r){return this.defaultOptions.mutate&&(r=Y(this.defaultOptions.mutate,r)),this.queryManager.mutate(r)},U.prototype.subscribe=function(r){return this.queryManager.startGraphQLSubscription(r)},U.prototype.readQuery=function(r,d){return void 0===d&&(d=!1),this.cache.readQuery(r,d)},U.prototype.readFragment=function(r,d){return void 0===d&&(d=!1),this.cache.readFragment(r,d)},U.prototype.writeQuery=function(r){this.cache.writeQuery(r),this.queryManager.broadcastQueries()},U.prototype.writeFragment=function(r){this.cache.writeFragment(r),this.queryManager.broadcastQueries()},U.prototype.__actionHookForDevTools=function(r){this.devToolsHookCb=r},U.prototype.__requestRaw=function(r){return(0,g.g)(this.link,r)},U.prototype.resetStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore()}).then(function(){return Promise.all(r.resetStoreCallbacks.map(function(d){return d()}))}).then(function(){return r.reFetchObservableQueries()})},U.prototype.clearStore=function(){var r=this;return Promise.resolve().then(function(){return r.queryManager.clearStore()}).then(function(){return Promise.all(r.clearStoreCallbacks.map(function(d){return d()}))})},U.prototype.onResetStore=function(r){var d=this;return this.resetStoreCallbacks.push(r),function(){d.resetStoreCallbacks=d.resetStoreCallbacks.filter(function(p){return p!==r})}},U.prototype.onClearStore=function(r){var d=this;return this.clearStoreCallbacks.push(r),function(){d.clearStoreCallbacks=d.clearStoreCallbacks.filter(function(p){return p!==r})}},U.prototype.reFetchObservableQueries=function(r){return this.queryManager.reFetchObservableQueries(r)},U.prototype.extract=function(r){return this.cache.extract(r)},U.prototype.restore=function(r){return this.cache.restore(r)},U.prototype.addResolvers=function(r){this.localState.addResolvers(r)},U.prototype.setResolvers=function(r){this.localState.setResolvers(r)},U.prototype.getResolvers=function(){return this.localState.getResolvers()},U.prototype.setLocalStateFragmentMatcher=function(r){this.localState.setFragmentMatcher(r)},U.prototype.setLink=function(r){this.link=this.queryManager.link=r},U}()},96020:(ee,_,i)=>{"use strict";i.d(_,{U:()=>l});var y=i(40909),N=i(65812),k=i(16409),g=i(1172),I=i(95095),C=i(37179),h=i(92380),c=i(91589),b=i(72101),M=i.n(b),E=i(9110),L=i(14382),o=function(){function v(m,A,K,Q){this.observer=m,this.options=A,this.fetch=K,this.shouldFetch=Q}return v.prototype.reobserve=function(m,A){m?this.updateOptions(m):this.updatePolling();var K=this.fetch(this.options,A);return this.concast&&this.concast.removeObserver(this.observer,!0),K.addObserver(this.observer),(this.concast=K).promise},v.prototype.updateOptions=function(m){return Object.assign(this.options,(0,L.o)(m)),this.updatePolling(),this},v.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},v.prototype.updatePolling=function(){var m=this,K=this.pollingInfo,Q=this.options.pollInterval;if(Q){if((!K||K.interval!==Q)&&((0,N.V1)(Q,20),!1!==this.shouldFetch)){(K||(this.pollingInfo={})).interval=Q;var u=function(){m.pollingInfo&&(m.shouldFetch&&m.shouldFetch()?m.reobserve({fetchPolicy:"network-only",nextFetchPolicy:m.options.fetchPolicy||"cache-first"},g.p.poll).then(R,R):R())},R=function(){var n=m.pollingInfo;n&&(clearTimeout(n.timeout),n.timeout=setTimeout(u,n.interval))};R()}}else K&&(clearTimeout(K.timeout),delete this.pollingInfo)},v}(),l=function(v){function m(A){var K=A.queryManager,Q=A.queryInfo,W=A.options,u=v.call(this,function(n){return u.onSubscribe(n)})||this;u.observers=new Set,u.subscriptions=new Set,u.observer={next:function(n){(u.lastError||u.isDifferentFromLastResult(n))&&(u.updateLastResult(n),(0,I.w)(u.observers,"next",n))},error:function(n){u.updateLastResult((0,y.__assign)((0,y.__assign)({},u.lastResult),{error:n,errors:n.graphQLErrors,networkStatus:g.p.error,loading:!1})),(0,I.w)(u.observers,"error",u.lastError=n)}},u.isTornDown=!1,u.options=W,u.queryId=K.generateQueryId();var R=(0,C.Vu)(W.query);return u.queryName=R&&R.name&&R.name.value,u.queryManager=K,u.queryInfo=Q,u}return(0,y.__extends)(m,v),Object.defineProperty(m.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),m.prototype.result=function(){var A=this;return new Promise(function(K,Q){var W={next:function(R){K(R),A.observers.delete(W),A.observers.size||A.queryManager.removeQuery(A.queryId),setTimeout(function(){u.unsubscribe()},0)},error:Q},u=A.subscribe(W)})},m.prototype.getCurrentResult=function(A){void 0===A&&(A=!0);var K=this.lastResult,Q=this.queryInfo.networkStatus||K&&K.networkStatus||g.p.ready,W=(0,y.__assign)((0,y.__assign)({},K),{loading:(0,g.b)(Q),networkStatus:Q});if(this.isTornDown)return W;var u=this.options.fetchPolicy,R=void 0===u?"cache-first":u;if("no-cache"===R||"network-only"===R)delete W.partial;else if(!W.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var n=this.queryInfo.getDiff();W.data=n.complete||this.options.returnPartialData?n.result:void 0,n.complete?(W.networkStatus===g.p.loading&&("cache-first"===R||"cache-only"===R)&&(W.networkStatus=g.p.ready,W.loading=!1),delete W.partial):W.partial=!0}return A&&this.updateLastResult(W),W},m.prototype.isDifferentFromLastResult=function(A){return!(0,k.L)(this.lastResultSnapshot,A)},m.prototype.getLastResult=function(){return this.lastResult},m.prototype.getLastError=function(){return this.lastError},m.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},m.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},m.prototype.refetch=function(A){var K={pollInterval:0},Q=this.options.fetchPolicy;return"no-cache"!==Q&&"cache-and-network"!==Q&&(K.fetchPolicy="network-only",K.nextFetchPolicy=Q||"cache-first"),A&&!(0,k.L)(this.options.variables,A)&&(K.variables=this.options.variables=(0,y.__assign)((0,y.__assign)({},this.options.variables),A)),this.newReobserver(!1).reobserve(K,g.p.refetch)},m.prototype.fetchMore=function(A){var K=this,Q=(0,y.__assign)((0,y.__assign)({},A.query?A:(0,y.__assign)((0,y.__assign)((0,y.__assign)({},this.options),A),{variables:(0,y.__assign)((0,y.__assign)({},this.options.variables),A.variables)})),{fetchPolicy:"no-cache"}),W=this.queryManager.generateQueryId();return Q.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=g.p.fetchMore,this.observe()),this.queryManager.fetchQuery(W,Q,g.p.fetchMore).then(function(u){var R=u.data,n=A.updateQuery;return n?K.updateQuery(function(e){return n(e,{fetchMoreResult:R,variables:Q.variables})}):K.queryManager.cache.writeQuery({query:Q.query,variables:Q.variables,data:R}),u}).finally(function(){K.queryManager.stopQuery(W),K.reobserve()})},m.prototype.subscribeToMore=function(A){var K=this,Q=this.queryManager.startGraphQLSubscription({query:A.document,variables:A.variables,context:A.context}).subscribe({next:function(W){var u=A.updateQuery;u&&K.updateQuery(function(R,n){return u(R,{subscriptionData:W,variables:n.variables})})},error:function(W){A.onError&&A.onError(W)}});return this.subscriptions.add(Q),function(){K.subscriptions.delete(Q)&&Q.unsubscribe()}},m.prototype.setOptions=function(A){return this.reobserve(A)},m.prototype.setVariables=function(A){if((0,k.L)(this.variables,A))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=A,!this.observers.size)return Promise.resolve();var K=this.options.fetchPolicy,Q=void 0===K?"cache-first":K,W={fetchPolicy:Q,variables:A};return"cache-first"!==Q&&"no-cache"!==Q&&"network-only"!==Q&&(W.fetchPolicy="cache-and-network",W.nextFetchPolicy=Q),this.reobserve(W,g.p.setVariables)},m.prototype.updateQuery=function(A){var K,Q=this.queryManager,u=A(Q.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(K=this.lastResult)||void 0===K?void 0:K.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});u&&(Q.cache.writeQuery({query:this.options.query,data:u,variables:this.variables}),Q.broadcastQueries())},m.prototype.startPolling=function(A){this.getReobserver().updateOptions({pollInterval:A})},m.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},m.prototype.updateLastResult=function(A){var K=this.lastResult;return this.lastResult=A,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?A:(0,h.m)(A),(0,c.E)(A.errors)||delete this.lastError,K},m.prototype.onSubscribe=function(A){var K=this;if(A===this.observer)return function(){};try{var Q=A._subscription._observer;Q&&!Q.error&&(Q.error=O)}catch{}var W=!this.observers.size;return this.observers.add(A),this.lastError?A.error&&A.error(this.lastError):this.lastResult&&A.next&&A.next(this.lastResult),W&&this.reobserve().catch(function(u){}),function(){K.observers.delete(A)&&!K.observers.size&&K.tearDownQuery()}},m.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},m.prototype.newReobserver=function(A){var K=this,W=this.queryManager,u=this.queryId;return W.setObservableQuery(this),new o(this.observer,A?this.options:(0,y.__assign)({},this.options),function(R,n){return W.setObservableQuery(K),W.fetchQueryObservable(u,R,n)},!W.ssrMode&&function(){return!(0,g.b)(K.queryInfo.networkStatus)})},m.prototype.reobserve=function(A,K){return this.isTornDown=!1,this.getReobserver().reobserve(A,K)},m.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},m.prototype.hasObservers=function(){return this.observers.size>0},m.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(A){return A.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},m}(M());function O(v){}(0,E.r)(l)},77744:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{ApolloCache:()=>c.k,ApolloClient:()=>y.R,ApolloError:()=>C.K,Cache:()=>h.l,HttpLink:()=>v.HttpLink,InMemoryCache:()=>b.D,MissingFieldError:()=>M.Z,NetworkStatus:()=>k.p,Observable:()=>u.a,ObservableQuery:()=>N.U,checkFetcher:()=>v.checkFetcher,createHttpLink:()=>v.createHttpLink,createSignalIfSupported:()=>v.createSignalIfSupported,defaultDataIdFromObject:()=>E.o,disableExperimentalFragmentVariables:()=>e.qj,disableFragmentWarnings:()=>e.gi,enableExperimentalFragmentVariables:()=>e.VC,fallbackHttpConfig:()=>v.fallbackHttpConfig,fromError:()=>m.N,fromPromise:()=>K.S,gql:()=>e.Ay,isApolloError:()=>C.M,isReference:()=>R.A_,makeReference:()=>R.WU,makeVar:()=>L.UT,mergeOptions:()=>y.l,parseAndCheckHttpResponse:()=>v.parseAndCheckHttpResponse,resetCaches:()=>e.Nh,rewriteURIForGET:()=>v.rewriteURIForGET,selectHttpOptionsAndBody:()=>v.selectHttpOptionsAndBody,selectURI:()=>v.selectURI,serializeFetchParameter:()=>v.serializeFetchParameter,setLogVerbosity:()=>n.Q9,throwServerError:()=>Q.A,toPromise:()=>A.h});var y=i(97319),N=i(96020),k=i(1172),g=i(85397),O={};for(const t in g)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(t)<0&&(O[t]=()=>g[t]);i.d(_,O);var C=i(90912),h=i(13559),c=i(95317),b=i(57280),M=i(17152),E=i(47916),L=i(88059),o=i(52565);O={};for(const t in o)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(t)<0&&(O[t]=()=>o[t]);i.d(_,O);var l=i(19483);O={};for(const t in l)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(t)<0&&(O[t]=()=>l[t]);i.d(_,O);var v=i(60720),m=i(48355),A=i(50415),K=i(26136),Q=i(6494),W=i(72101),u=i.n(W),R=i(65769),n=i(65812),e=i(81220);(0,n.Q9)("log")},1172:(ee,_,i)=>{"use strict";i.d(_,{b:()=>N,p:()=>y});var y=function(k){return k[k.loading=1]="loading",k[k.setVariables=2]="setVariables",k[k.fetchMore=3]="fetchMore",k[k.refetch=4]="refetch",k[k.poll=6]="poll",k[k.ready=7]="ready",k[k.error=8]="error",k}(y||{});function N(k){return!!k&&k<7}},85397:()=>{},90912:(ee,_,i)=>{"use strict";i.d(_,{K:()=>I,M:()=>k});var y=i(40909),N=i(91589);function k(C){return C.hasOwnProperty("graphQLErrors")}var I=function(C){function h(c){var b=c.graphQLErrors,M=c.networkError,E=c.errorMessage,L=c.extraInfo,o=C.call(this,E)||this;return o.graphQLErrors=b||[],o.networkError=M||null,o.message=E||function(C){var h="";return(0,N.E)(C.graphQLErrors)&&C.graphQLErrors.forEach(function(c){h+=(c?c.message:"Error message not found.")+"\n"}),C.networkError&&(h+=C.networkError.message+"\n"),h=h.replace(/\n$/,"")}(o),o.extraInfo=L,o.__proto__=h.prototype,o}return(0,y.__extends)(h,C),h}(Error)},86999:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{setContext:()=>I});var y=i(40909),N=i(76704),k=i(72101),g=i.n(k);function I(C){return new N.C(function(h,c){var b=(0,y.__rest)(h,[]);return new(g())(function(M){var E;return Promise.resolve(b).then(function(L){return C(L,h.getContext())}).then(h.setContext).then(function(){E=c(h).subscribe({next:M.next.bind(M),error:M.error.bind(M),complete:M.complete.bind(M)})}).catch(M.error.bind(M)),function(){E&&E.unsubscribe()}})})}},76704:(ee,_,i)=>{"use strict";i.d(_,{C:()=>o});var P,y=i(40909),N=i(65812),k=i(72101),g=i.n(k),C=i(37179);function b(P,l){return l?l(P):g().of()}function M(P){return"function"==typeof P?new o(P):P}function E(P){return P.request.length<=1}P=Error,(0,y.__extends)(function l(O,v){var m=P.call(this,O)||this;return m.link=v,m},P);var o=function(){function P(l){l&&(this.request=l)}return P.empty=function(){return new P(function(){return g().of()})},P.from=function(l){return 0===l.length?P.empty():l.map(M).reduce(function(O,v){return O.concat(v)})},P.split=function(l,O,v){var m=M(O),A=M(v||new P(b));return E(m)&&E(A)?new P(function(K){return l(K)?m.request(K)||g().of():A.request(K)||g().of()}):new P(function(K,Q){return l(K)?m.request(K,Q)||g().of():A.request(K,Q)||g().of()})},P.execute=function(l,O){return l.request(function I(P,l){var O=(0,y.__assign)({},P);return Object.defineProperty(l,"setContext",{enumerable:!1,value:function(A){O=(0,y.__assign)((0,y.__assign)({},O),"function"==typeof A?A(O):A)}}),Object.defineProperty(l,"getContext",{enumerable:!1,value:function(){return(0,y.__assign)({},O)}}),l}(O.context,function h(P){var l={variables:P.variables||{},extensions:P.extensions||{},operationName:P.operationName,query:P.query};return l.operationName||(l.operationName="string"!=typeof l.query?(0,C.n4)(l.query)||void 0:""),l}(function c(P){for(var l=["query","operationName","variables","extensions","context"],O=0,v=Object.keys(P);O<v.length;O++)if(l.indexOf(v[O])<0)throw new N.zU(26);return P}(O))))||g().of()},P.concat=function(l,O){var v=M(l);if(E(v))return v;var m=M(O);return E(m)?new P(function(A){return v.request(A,function(K){return m.request(K)||g().of()})||g().of()}):new P(function(A,K){return v.request(A,function(Q){return m.request(Q,K)||g().of()})||g().of()})},P.prototype.split=function(l,O,v){return this.concat(P.split(l,O,v||new P(b)))},P.prototype.concat=function(l){return P.concat(this,l)},P.prototype.request=function(l,O){throw new N.zU(21)},P.prototype.onError=function(l,O){if(O&&O.error)return O.error(l),!1;throw l},P.prototype.setOnError=function(l){return this.onError=l,this},P}()},77815:(ee,_,i)=>{"use strict";i.d(_,{x:()=>N});var N=i(76704).C.concat},23378:(ee,_,i)=>{"use strict";i.d(_,{I:()=>N});var N=i(76704).C.empty},97700:(ee,_,i)=>{"use strict";i.d(_,{g:()=>N});var N=i(76704).C.execute},29855:(ee,_,i)=>{"use strict";i.d(_,{H:()=>N});var N=i(76704).C.from},19483:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{ApolloLink:()=>C.C,concat:()=>g.x,empty:()=>y.I,execute:()=>I.g,from:()=>N.H,split:()=>k.l});var y=i(23378),N=i(29855),k=i(90479),g=i(77815),I=i(97700),C=i(76704),h=i(66458),b={};for(const M in h)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(M)<0&&(b[M]=()=>h[M]);i.d(_,b)},90479:(ee,_,i)=>{"use strict";i.d(_,{l:()=>N});var N=i(76704).C.split},66458:()=>{},75938:(ee,_,i)=>{"use strict";i.d(_,{P:()=>g});var y=i(40909),N=i(76704),k=i(32114),g=function(I){function C(h){void 0===h&&(h={});var c=I.call(this,(0,k.$)(h).request)||this;return c.options=h,c}return(0,y.__extends)(C,I),C}(N.C)},66629:(ee,_,i)=>{"use strict";i.d(_,{S:()=>N});var y=i(65812),N=function(k){if(!k&&typeof fetch>"u")throw new y.zU(22)}},32114:(ee,_,i)=>{"use strict";i.d(_,{$:()=>P});var y=i(40909),N=i(41888),k=i(76704),g=i(72101),I=i.n(g),C=i(33121),h=i(35270),c=i(70987),b=i(66629),M=i(5301),E=i(36759),L=i(36633),o=i(48355),P=function(l){void 0===l&&(l={});var O=l.uri,v=void 0===O?"/graphql":O,m=l.fetch,A=l.includeExtensions,K=l.useGETForQueries,Q=l.includeUnusedVariables,W=void 0!==Q&&Q,u=(0,y.__rest)(l,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,b.S)(m),m||(m=fetch);var R={http:{includeExtensions:A},options:u.fetchOptions,credentials:u.credentials,headers:u.headers};return new k.C(function(n){var e=(0,h.z)(n,v),t=n.getContext(),s={};if(t.clientAwareness){var w=t.clientAwareness,T=w.name,x=w.version;T&&(s["apollographql-client-name"]=T),x&&(s["apollographql-client-version"]=x)}var U,G=(0,y.__assign)((0,y.__assign)({},s),t.headers),H=(0,M.W)(n,M.R,R,{http:t.http,options:t.fetchOptions,credentials:t.credentials,headers:G}),X=H.options,Y=H.body;if(Y.variables&&!W){var j=new Set(Object.keys(Y.variables));(0,N.YR)(n.query,{Variable:function($,Z,ne){ne&&"VariableDefinition"!==ne.kind&&j.delete($.name.value)}}),j.size&&(Y.variables=(0,y.__assign)({},Y.variables),j.forEach(function($){delete Y.variables[$]}))}if(!X.signal){var r=(0,E.S)();(U=r.controller)&&(X.signal=r.signal)}if(K&&!n.query.definitions.some(function($){return"OperationDefinition"===$.kind&&"mutation"===$.operation})&&(X.method="GET"),"GET"===X.method){var D=(0,L.E)(e,Y),B=D.newURI,q=D.parseError;if(q)return(0,o.N)(q);e=B}else try{X.body=(0,C.Y)(Y,"Payload")}catch($){return(0,o.N)($)}return new(I())(function($){return m(e,X).then(function(Z){return n.setContext({response:Z}),Z}).then((0,c.O)(n)).then(function(Z){return $.next(Z),$.complete(),Z}).catch(function(Z){"AbortError"!==Z.name&&(Z.result&&Z.result.errors&&Z.result.data&&$.next(Z.result),$.error(Z))}),function(){U&&U.abort()}})})}},36759:(ee,_,i)=>{"use strict";i.d(_,{S:()=>y});var y=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var N=new AbortController;return{controller:N,signal:N.signal}}},60720:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{HttpLink:()=>c.P,checkFetcher:()=>g.S,createHttpLink:()=>h.$,createSignalIfSupported:()=>I.S,fallbackHttpConfig:()=>k.R,parseAndCheckHttpResponse:()=>y.O,rewriteURIForGET:()=>b.E,selectHttpOptionsAndBody:()=>k.W,selectURI:()=>C.z,serializeFetchParameter:()=>N.Y});var y=i(70987),N=i(33121),k=i(5301),g=i(66629),I=i(36759),C=i(35270),h=i(32114),c=i(75938),b=i(36633)},70987:(ee,_,i)=>{"use strict";i.d(_,{O:()=>k});var y=i(6494),N=Object.prototype.hasOwnProperty;function k(g){return function(I){return I.text().then(function(C){try{return JSON.parse(C)}catch(c){var h=c;throw h.name="ServerParseError",h.response=I,h.statusCode=I.status,h.bodyText=C,h}}).then(function(C){return I.status>=300&&(0,y.A)(I,C,"Response not successful: Received status code "+I.status),!Array.isArray(C)&&!N.call(C,"data")&&!N.call(C,"errors")&&(0,y.A)(I,C,"Server response was missing for query '"+(Array.isArray(g)?g.map(function(h){return h.operationName}):g.operationName)+"'."),C})}}},36633:(ee,_,i)=>{"use strict";i.d(_,{E:()=>N});var y=i(33121);function N(k,g){var I=[],C=function(P,l){I.push(P+"="+encodeURIComponent(l))};if("query"in g&&C("query",g.query),g.operationName&&C("operationName",g.operationName),g.variables){var h=void 0;try{h=(0,y.Y)(g.variables,"Variables map")}catch(P){return{parseError:P}}C("variables",h)}if(g.extensions){var c=void 0;try{c=(0,y.Y)(g.extensions,"Extensions map")}catch(P){return{parseError:P}}C("extensions",c)}var b="",M=k,E=k.indexOf("#");-1!==E&&(b=k.substr(E),M=k.substr(0,E));var L=-1===M.indexOf("?")?"?":"&";return{newURI:M+L+I.join("&")+b}}},5301:(ee,_,i)=>{"use strict";i.d(_,{R:()=>C,W:()=>h});var y=i(40909),N=i(18698),C={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},h=function(c,b){for(var M=[],E=2;E<arguments.length;E++)M[E-2]=arguments[E];var L=(0,y.__assign)((0,y.__assign)({},b.options),{headers:b.headers,credentials:b.credentials}),o=b.http||{};M.forEach(function(A){L=(0,y.__assign)((0,y.__assign)((0,y.__assign)({},L),A.options),{headers:(0,y.__assign)((0,y.__assign)({},L.headers),A.headers)}),A.credentials&&(L.credentials=A.credentials),o=(0,y.__assign)((0,y.__assign)({},o),A.http)});var v=c.query,m={operationName:c.operationName,variables:c.variables};return o.includeExtensions&&(m.extensions=c.extensions),o.includeQuery&&(m.query=(0,N.print)(v)),{options:L,body:m}}},35270:(ee,_,i)=>{"use strict";i.d(_,{z:()=>y});var y=function(N,k){return N.getContext().uri||("function"==typeof k?k(N):k||"/graphql")}},33121:(ee,_,i)=>{"use strict";i.d(_,{Y:()=>N});var y=i(65812),N=function(k,g){var I;try{I=JSON.stringify(k)}catch(h){var C=new y.zU(23);throw C.parseError=h,C}return I}},48355:(ee,_,i)=>{"use strict";i.d(_,{N:()=>k});var y=i(72101),N=i.n(y);function k(g){return new(N())(function(I){I.error(g)})}},26136:(ee,_,i)=>{"use strict";i.d(_,{S:()=>k});var y=i(72101),N=i.n(y);function k(g){return new(N())(function(I){g.then(function(C){I.next(C),I.complete()}).catch(I.error.bind(I))})}},6494:(ee,_,i)=>{"use strict";i.d(_,{A:()=>y});var y=function(N,k,g){var I=new Error(g);throw I.name="ServerError",I.response=N,I.statusCode=N.status,I.result=k,I}},50415:(ee,_,i)=>{"use strict";function N(k){var g=!1;return new Promise(function(I,C){k.subscribe({next:function(h){g||(g=!0,I(h))},error:C})})}i.d(_,{h:()=>N}),i(65812)},91589:(ee,_,i)=>{"use strict";function y(N){return Array.isArray(N)&&N.length>0}i.d(_,{E:()=>y})},64422:(ee,_,i)=>{"use strict";i.d(_,{e:()=>y});var y="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},92380:(ee,_,i)=>{"use strict";i.d(_,{m:()=>N});var y=Object.prototype.toString;function N(g){return k(g)}function k(g,I){switch(y.call(g)){case"[object Array]":if((I=I||new Map).has(g))return I.get(g);var C=g.slice(0);return I.set(g,C),C.forEach(function(c,b){C[b]=k(c,I)}),C;case"[object Object]":if((I=I||new Map).has(g))return I.get(g);var h=Object.create(Object.getPrototypeOf(g));return I.set(g,h),Object.keys(g).forEach(function(c){h[c]=k(g[c],I)}),h;default:return g}}},14382:(ee,_,i)=>{"use strict";function y(){for(var N=[],k=0;k<arguments.length;k++)N[k]=arguments[k];var g=Object.create(null);return N.forEach(function(I){I&&Object.keys(I).forEach(function(C){var h=I[C];void 0!==h&&(g[C]=h)})}),g}i.d(_,{o:()=>y})},57080:(ee,_,i)=>{"use strict";function y(N){return N.errors&&N.errors.length>0||!1}i.d(_,{t:()=>y})},20194:(ee,_,i)=>{"use strict";function k(g){return g}i.d(_,{G:()=>k})},20317:(ee,_,i)=>{"use strict";i.d(_,{D9:()=>k,IM:()=>g,ZI:()=>h});var y=i(40909),N=Object.prototype.hasOwnProperty;function k(){for(var c=[],b=0;b<arguments.length;b++)c[b]=arguments[b];return g(c)}function g(c){var b=c[0]||{},M=c.length;if(M>1)for(var E=new h,L=1;L<M;++L)b=E.merge(b,c[L]);return b}function I(c){return null!==c&&"object"==typeof c}var C=function(c,b,M){return this.merge(c[M],b[M])},h=function(){function c(b){void 0===b&&(b=C),this.reconciler=b,this.isObject=I,this.pastCopies=new Set}return c.prototype.merge=function(b,M){for(var E=this,L=[],o=2;o<arguments.length;o++)L[o-2]=arguments[o];return I(M)&&I(b)?(Object.keys(M).forEach(function(P){if(N.call(b,P)){var l=b[P];if(M[P]!==l){var O=E.reconciler.apply(E,(0,y.__spreadArrays)([b,M,P],L));O!==l&&((b=E.shallowCopyForMerge(b))[P]=O)}}else(b=E.shallowCopyForMerge(b))[P]=M[P]}),b):M},c.prototype.shallowCopyForMerge=function(b){return I(b)&&!this.pastCopies.has(b)&&(b=Array.isArray(b)?b.slice(0):(0,y.__assign)({__proto__:Object.getPrototypeOf(b)},b),this.pastCopies.add(b)),b},c}()},53353:(ee,_,i)=>{"use strict";i.d(_,{MS:()=>k,d8:()=>I,f2:()=>C,sx:()=>g,tY:()=>c});var y=i(41888),N=i(65812);function k(b,M){var E=b.directives;return!E||!E.length||c(E).every(function(L){var o=L.directive,P=L.ifArgument,l=!1;return"Variable"===P.value.kind?(0,N.V1)(void 0!==(l=M&&M[P.value.name.value]),38):l=P.value.value,"skip"===o.name.value?!l:l})}function g(b){var M=[];return(0,y.YR)(b,{Directive:function(E){M.push(E.name.value)}}),M}function I(b,M){return g(M).some(function(E){return b.indexOf(E)>-1})}function C(b){return b&&I(["client"],b)&&I(["export"],b)}function c(b){var M=[];return b&&b.length&&b.forEach(function(E){if(function h(b){var M=b.name.value;return"skip"===M||"include"===M}(E)){var L=E.arguments;(0,N.V1)(L&&1===L.length,39);var P=L[0];(0,N.V1)(P.name&&"if"===P.name.value,40);var l=P.value;(0,N.V1)(l&&("Variable"===l.kind||"BooleanValue"===l.kind),41),M.push({directive:E,ifArgument:P})}}),M}},48126:(ee,_,i)=>{"use strict";i.d(_,{HQ:()=>I,JG:()=>g,ct:()=>k});var y=i(40909),N=i(65812);function k(C,h){var c=h,b=[];return C.definitions.forEach(function(E){if("OperationDefinition"===E.kind)throw new N.zU(42);"FragmentDefinition"===E.kind&&b.push(E)}),typeof c>"u"&&((0,N.V1)(1===b.length,43),c=b[0].name.value),(0,y.__assign)((0,y.__assign)({},C),{definitions:(0,y.__spreadArrays)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:c}}]}}],C.definitions)})}function g(C){void 0===C&&(C=[]);var h={};return C.forEach(function(c){h[c.name.value]=c}),h}function I(C,h){switch(C.kind){case"InlineFragment":return C;case"FragmentSpread":var c=h&&h[C.name.value];return(0,N.V1)(c,44),c;default:return null}}},37179:(ee,_,i)=>{"use strict";i.d(_,{AT:()=>h,E4:()=>c,Vn:()=>b,Vu:()=>g,n4:()=>I,sw:()=>k,wY:()=>M,zK:()=>C});var y=i(65812),N=i(65769);function k(E){(0,y.V1)(E&&"Document"===E.kind,45);var L=E.definitions.filter(function(o){return"FragmentDefinition"!==o.kind}).map(function(o){if("OperationDefinition"!==o.kind)throw new y.zU(46);return o});return(0,y.V1)(L.length<=1,47),E}function g(E){return k(E),E.definitions.filter(function(L){return"OperationDefinition"===L.kind})[0]}function I(E){return E.definitions.filter(function(L){return"OperationDefinition"===L.kind&&L.name}).map(function(L){return L.name.value})[0]||null}function C(E){return E.definitions.filter(function(L){return"FragmentDefinition"===L.kind})}function h(E){var L=g(E);return(0,y.V1)(L&&"query"===L.operation,48),L}function c(E){(0,y.V1)("Document"===E.kind,49),(0,y.V1)(E.definitions.length<=1,50);var L=E.definitions[0];return(0,y.V1)("FragmentDefinition"===L.kind,51),L}function b(E){k(E);for(var L,o=0,P=E.definitions;o<P.length;o++){var l=P[o];if("OperationDefinition"===l.kind){var O=l.operation;if("query"===O||"mutation"===O||"subscription"===O)return l}"FragmentDefinition"===l.kind&&!L&&(L=l)}if(L)return L;throw new y.zU(52)}function M(E){var L=Object.create(null),o=E&&E.variableDefinitions;return o&&o.length&&o.forEach(function(P){P.defaultValue&&(0,N.J)(L,P.variable.name,P.defaultValue)}),L}},65769:(ee,_,i)=>{"use strict";i.d(_,{A_:()=>C,D$:()=>W,Ii:()=>v,J:()=>O,MB:()=>K,WU:()=>I,dt:()=>u,kd:()=>R,o5:()=>A,ue:()=>Q});var y=i(54230),N=i.n(y),k=i(65812),g=i(48126);function I(n){return{__ref:String(n)}}function C(n){return!(!n||"object"!=typeof n||"string"!=typeof n.__ref)}function O(n,e,t,s){if(function b(n){return"IntValue"===n.kind}(t)||function M(n){return"FloatValue"===n.kind}(t))n[e.value]=Number(t.value);else if(function c(n){return"BooleanValue"===n.kind}(t)||function h(n){return"StringValue"===n.kind}(t))n[e.value]=t.value;else if(function L(n){return"ObjectValue"===n.kind}(t)){var w={};t.fields.map(function(x){return O(w,x.name,x.value,s)}),n[e.value]=w}else if(function E(n){return"Variable"===n.kind}(t))n[e.value]=(s||{})[t.name.value];else if(function o(n){return"ListValue"===n.kind}(t))n[e.value]=t.values.map(function(x){var G={};return O(G,e,x,s),G[e.value]});else if(function P(n){return"EnumValue"===n.kind}(t))n[e.value]=t.value;else{if(!function l(n){return"NullValue"===n.kind}(t))throw new k.zU(53);n[e.value]=null}}function v(n,e){var t=null;n.directives&&(t={},n.directives.forEach(function(w){t[w.name.value]={},w.arguments&&w.arguments.forEach(function(T){return O(t[w.name.value],T.name,T.value,e)})}));var s=null;return n.arguments&&n.arguments.length&&(s={},n.arguments.forEach(function(w){return O(s,w.name,w.value,e)})),A(n.name.value,s,t)}var m=["connection","include","skip","client","rest","export"];function A(n,e,t){if(e&&t&&t.connection&&t.connection.key){if(t.connection.filter&&t.connection.filter.length>0){var s=t.connection.filter?t.connection.filter:[];s.sort();var w={};return s.forEach(function(G){w[G]=e[G]}),t.connection.key+"("+JSON.stringify(w)+")"}return t.connection.key}var T=n;if(e){var x=N()(e);T+="("+x+")"}return t&&Object.keys(t).forEach(function(G){-1===m.indexOf(G)&&(t[G]&&Object.keys(t[G]).length?T+="@"+G+"("+JSON.stringify(t[G])+")":T+="@"+G)}),T}function K(n,e){if(n.arguments&&n.arguments.length){var t={};return n.arguments.forEach(function(s){return O(t,s.name,s.value,e)}),t}return null}function Q(n){return n.alias?n.alias.value:n.name.value}function W(n,e,t){if("string"==typeof n.__typename)return n.__typename;for(var s=0,w=e.selections;s<w.length;s++){var T=w[s];if(u(T)){if("__typename"===T.name.value)return n[Q(T)]}else{var x=W(n,(0,g.HQ)(T,t).selectionSet,t);if("string"==typeof x)return x}}}function u(n){return"Field"===n.kind}function R(n){return"InlineFragment"===n.kind}},61355:(ee,_,i)=>{"use strict";i.d(_,{XY:()=>o,zc:()=>W,it:()=>A,er:()=>u,hX:()=>l,iz:()=>L,TC:()=>K});var y=i(40909),N=i(41888),g=(i(65812),i(37179));function I(R,n,e){var t=0;return R.forEach(function(s,w){n.call(this,s,w,R)&&(R[t++]=s)},e),R.length=t,R}var C=i(65769),h=i(48126),c={kind:"Field",name:{kind:"Name",value:"__typename"}};function b(R,n){return R.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&b(n[e.name.value],n)})}function M(R){return b((0,g.Vu)(R)||(0,g.E4)(R),(0,h.JG)((0,g.zK)(R)))?null:R}function E(R){return function(e){return R.some(function(t){return t.name&&t.name===e.name.value||t.test&&t.test(e)})}}function L(R,n){var e=Object.create(null),t=[],s=Object.create(null),w=[],T=M((0,N.YR)(n,{Variable:{enter:function(x,G,z){"VariableDefinition"!==z.kind&&(e[x.name.value]=!0)}},Field:{enter:function(x){if(R&&x.directives&&R.some(function(z){return z.remove})&&x.directives&&x.directives.some(E(R)))return x.arguments&&x.arguments.forEach(function(z){"Variable"===z.value.kind&&t.push({name:z.value.name.value})}),x.selectionSet&&Q(x.selectionSet).forEach(function(z){w.push({name:z.name.value})}),null}},FragmentSpread:{enter:function(x){s[x.name.value]=!0}},Directive:{enter:function(x){if(E(R)(x))return null}}}));return T&&I(t,function(x){return!!x.name&&!e[x.name]}).length&&(T=A(t,T)),T&&I(w,function(x){return!!x.name&&!s[x.name]}).length&&(T=K(w,T)),T}function o(R){return(0,N.YR)((0,g.sw)(R),{SelectionSet:{enter:function(n,e,t){if(!t||"OperationDefinition"!==t.kind){var s=n.selections;if(s&&!s.some(function(x){return(0,C.dt)(x)&&("__typename"===x.name.value||0===x.name.value.lastIndexOf("__",0))})){var T=t;if(!((0,C.dt)(T)&&T.directives&&T.directives.some(function(x){return"export"===x.name.value})))return(0,y.__assign)((0,y.__assign)({},n),{selections:(0,y.__spreadArrays)(s,[c])})}}}}})}o.added=function(R){return R===c};var P={test:function(R){var n="connection"===R.name.value;return n&&(!R.arguments||R.arguments.some(function(e){return"key"===e.name.value})),n}};function l(R){return L([P],(0,g.sw)(R))}function A(R,n){var e=function m(R){return function(e){return R.some(function(t){return e.value&&"Variable"===e.value.kind&&e.value.name&&(t.name===e.value.name.value||t.test&&t.test(e))})}}(R);return M((0,N.YR)(n,{OperationDefinition:{enter:function(t){return(0,y.__assign)((0,y.__assign)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(s){return!R.some(function(w){return w.name===s.variable.name.value})}):[]})}},Field:{enter:function(t){if(R.some(function(T){return T.remove})){var w=0;if(t.arguments&&t.arguments.forEach(function(T){e(T)&&(w+=1)}),1===w)return null}}},Argument:{enter:function(t){if(e(t))return null}}}))}function K(R,n){function e(t){if(R.some(function(s){return s.name===t.name.value}))return null}return M((0,N.YR)(n,{FragmentSpread:{enter:e},FragmentDefinition:{enter:e}}))}function Q(R){var n=[];return R.selections.forEach(function(e){((0,C.dt)(e)||(0,C.kd)(e))&&e.selectionSet?Q(e.selectionSet).forEach(function(t){return n.push(t)}):"FragmentSpread"===e.kind&&n.push(e)}),n}function W(R){return"query"===(0,g.Vn)(R).operation?R:(0,N.YR)(R,{OperationDefinition:{enter:function(s){return(0,y.__assign)((0,y.__assign)({},s),{operation:"query"})}}})}function u(R){(0,g.sw)(R);var n=L([{test:function(e){return"client"===e.name.value},remove:!0}],R);return n&&(n=(0,N.YR)(n,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(s){return(0,C.dt)(s)&&"__typename"===s.name.value}))return null}}})),n}},85743:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{Concast:()=>K.E,DeepMerger:()=>h.ZI,Observable:()=>l(),addTypenameToDocument:()=>I.XY,argumentsObjectFromField:()=>g.MB,asyncMap:()=>A.x,buildQueryFromSelectionSet:()=>I.zc,canUseWeakMap:()=>R.e,checkDocument:()=>k.sw,cloneDeep:()=>O.m,compact:()=>n.o,concatPagination:()=>c,createFragmentMap:()=>N.JG,fixObservableSubclass:()=>Q.r,getDefaultValues:()=>k.wY,getDirectiveNames:()=>y.sx,getFragmentDefinition:()=>k.E4,getFragmentDefinitions:()=>k.zK,getFragmentFromSelection:()=>N.HQ,getFragmentQueryDocument:()=>N.ct,getInclusionDirectives:()=>y.tY,getMainDefinition:()=>k.Vn,getOperationDefinition:()=>k.Vu,getOperationName:()=>k.n4,getQueryDefinition:()=>k.AT,getStoreKeyName:()=>g.o5,getTypenameFromResult:()=>g.D$,graphQLResultHasError:()=>u.t,hasClientExports:()=>y.f2,hasDirectives:()=>y.d8,isField:()=>g.dt,isInlineFragment:()=>g.kd,isNonEmptyArray:()=>W.E,isReference:()=>g.A_,iterateObserversSafely:()=>m.w,makeReference:()=>g.WU,maybeDeepFreeze:()=>v.G,mergeDeep:()=>h.D9,mergeDeepArray:()=>h.IM,offsetLimitPagination:()=>b,relayStylePagination:()=>M,removeArgumentsFromDocument:()=>I.it,removeClientSetsFromDocument:()=>I.er,removeConnectionDirectiveFromDocument:()=>I.hX,removeDirectivesFromDocument:()=>I.iz,removeFragmentSpreadFromDocument:()=>I.TC,resultKeyNameFromField:()=>g.ue,shouldInclude:()=>y.MS,storeKeyNameFromField:()=>g.Ii,valueToObjectRepresentation:()=>g.J});var y=i(53353),N=i(48126),k=i(37179),g=i(65769),I=i(61355),C=i(40909),h=i(20317);function c(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(t,s){return t?(0,C.__spreadArrays)(t,s):s}}}function b(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(t,s,w){var T=w.args,x=t?t.slice(0):[];if(T)for(var G=T.offset,z=void 0===G?0:G,H=0;H<s.length;++H)x[z+H]=s[H];else x.push.apply(x,s);return x}}}function M(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(t,s){var w=s.canRead,T=s.readField;if(t){var x=[],G="",z="";return t.edges.forEach(function(H){w(T("node",H))&&(x.push(H),H.cursor&&(G=G||H.cursor,z=H.cursor))}),(0,C.__assign)((0,C.__assign)({},E(t)),{edges:x,pageInfo:(0,C.__assign)((0,C.__assign)({},t.pageInfo),{startCursor:G,endCursor:z})})}},merge:function(t,s,w){void 0===t&&(t={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}});var T=w.args,x=w.isReference,G=w.readField,z=s.edges?s.edges.map(function(ie){return x(ie=(0,C.__assign)({},ie))&&(ie.cursor=G("cursor",ie)),ie}):[];if(s.pageInfo){var H=s.pageInfo,X=H.startCursor,Y=H.endCursor,j=z[0],U=z[z.length-1];j&&X&&(j.cursor=X),U&&Y&&(U.cursor=Y);var r=j&&j.cursor;r&&!X&&(s=(0,h.D9)(s,{pageInfo:{startCursor:r}}));var d=U&&U.cursor;d&&!Y&&(s=(0,h.D9)(s,{pageInfo:{endCursor:d}}))}var p=t.edges,S=[];if(T&&T.after)(D=p.findIndex(function(ie){return ie.cursor===T.after}))>=0&&(p=p.slice(0,D+1));else if(T&&T.before){var D;S=(D=p.findIndex(function(se){return se.cursor===T.before}))<0?p:p.slice(D),p=[]}else s.edges&&(p=[]);var B=(0,C.__spreadArrays)(p,z,S),q=(0,C.__assign)((0,C.__assign)({},s.pageInfo),t.pageInfo);if(s.pageInfo){var $=s.pageInfo,Z=$.hasPreviousPage,ne=$.hasNextPage,ae=(X=$.startCursor,Y=$.endCursor,(0,C.__rest)($,["hasPreviousPage","hasNextPage","startCursor","endCursor"]));Object.assign(q,ae),p.length||(void 0!==Z&&(q.hasPreviousPage=Z),void 0!==X&&(q.startCursor=X)),S.length||(void 0!==ne&&(q.hasNextPage=ne),void 0!==Y&&(q.endCursor=Y))}return(0,C.__assign)((0,C.__assign)((0,C.__assign)({},E(t)),E(s)),{edges:B,pageInfo:q})}}}var E=function(e){return(0,C.__rest)(e,L)},L=["edges","pageInfo"],P=i(72101),l=i.n(P),O=i(92380),v=i(20194),m=i(95095),A=i(16976),K=i(56687),Q=i(9110),W=i(91589),u=i(57080),R=i(64422),n=i(14382)},56687:(ee,_,i)=>{"use strict";i.d(_,{E:()=>h});var y=i(40909),N=i(72101),k=i.n(N),g=i(95095),I=i(9110);function C(c){return c&&"function"==typeof c.then}var h=function(c){function b(M){var E=c.call(this,function(L){return E.addObserver(L),function(){return E.removeObserver(L)}})||this;return E.observers=new Set,E.addCount=0,E.promise=new Promise(function(L,o){E.resolve=L,E.reject=o}),E.handlers={next:function(L){null!==E.sub&&(E.latest=["next",L],(0,g.w)(E.observers,"next",L))},error:function(L){var o=E.sub;null!==o&&(o&&Promise.resolve().then(function(){return o.unsubscribe()}),E.sub=null,E.latest=["error",L],E.reject(L),(0,g.w)(E.observers,"error",L))},complete:function(){if(null!==E.sub){var L=E.sources.shift();L?C(L)?L.then(function(o){return E.sub=o.subscribe(E.handlers)}):E.sub=L.subscribe(E.handlers):(E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),(0,g.w)(E.observers,"complete"))}}},E.cancel=function(L){E.reject(L),E.sources=[],E.handlers.complete()},E.promise.catch(function(L){}),"function"==typeof M&&(M=[new(k())(M)]),C(M)?M.then(function(L){return E.start(L)},E.handlers.error):E.start(M),E}return(0,y.__extends)(b,c),b.prototype.start=function(M){void 0===this.sub&&(this.sources=Array.from(M),this.handlers.complete())},b.prototype.deliverLastMessage=function(M){if(this.latest){var E=this.latest[0],L=M[E];L&&L.call(M,this.latest[1]),null===this.sub&&"next"===E&&M.complete&&M.complete()}},b.prototype.addObserver=function(M){this.observers.has(M)||(this.deliverLastMessage(M),this.observers.add(M),++this.addCount)},b.prototype.removeObserver=function(M,E){this.observers.delete(M)&&--this.addCount<1&&!E&&this.handlers.error(new Error("Observable cancelled prematurely"))},b.prototype.cleanup=function(M){var E=this,L=!1,o=function(){L||(L=!0,E.observers.delete(P),M())},P={next:o,error:o,complete:o},l=this.addCount;this.addObserver(P),this.addCount=l},b}(k());(0,I.r)(h)},16976:(ee,_,i)=>{"use strict";i.d(_,{x:()=>k});var y=i(72101),N=i.n(y);function k(g,I,C){return new(N())(function(h){var c=h.next,b=h.error,M=h.complete,E=0,L=!1,o={then:function(v){return new Promise(function(m){return m(v())})}};function P(v,m){return v?function(A){++E;var K=function(){return v(A)};o=o.then(K,K).then(function(Q){--E,c&&c.call(h,Q),L&&l.complete()},function(Q){throw--E,Q}).catch(function(Q){b&&b.call(h,Q)})}:function(A){return m&&m.call(h,A)}}var l={next:P(I,c),error:P(C,b),complete:function(){L=!0,E||M&&M.call(h)}},O=g.subscribe(l);return function(){return O.unsubscribe()}})}},95095:(ee,_,i)=>{"use strict";function y(N,k,g){var I=[];N.forEach(function(C){return C[k]&&I.push(C)}),I.forEach(function(C){return C[k](g)})}i.d(_,{w:()=>y})},9110:(ee,_,i)=>{"use strict";i.d(_,{r:()=>k});var y=i(72101),N=i.n(y);function k(g){function I(C){Object.defineProperty(g,C,{value:N()})}return"function"==typeof Symbol&&Symbol.species&&I(Symbol.species),I("@@species"),g}},90722:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.RawSha256=void 0;var y=i(93262),N=function(){function k(){this.state=Int32Array.from(y.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return k.prototype.update=function(g){if(this.finished)throw new Error("Attempted to update an already finished hash.");var I=0,C=g.byteLength;if(this.bytesHashed+=C,8*this.bytesHashed>y.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;C>0;)this.buffer[this.bufferLength++]=g[I++],C--,this.bufferLength===y.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},k.prototype.digest=function(){if(!this.finished){var g=8*this.bytesHashed,I=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),C=this.bufferLength;if(I.setUint8(this.bufferLength++,128),C%y.BLOCK_SIZE>=y.BLOCK_SIZE-8){for(var h=this.bufferLength;h<y.BLOCK_SIZE;h++)I.setUint8(h,0);this.hashBuffer(),this.bufferLength=0}for(h=this.bufferLength;h<y.BLOCK_SIZE-8;h++)I.setUint8(h,0);I.setUint32(y.BLOCK_SIZE-8,Math.floor(g/4294967296),!0),I.setUint32(y.BLOCK_SIZE-4,g),this.hashBuffer(),this.finished=!0}var c=new Uint8Array(y.DIGEST_LENGTH);for(h=0;h<8;h++)c[4*h]=this.state[h]>>>24&255,c[4*h+1]=this.state[h]>>>16&255,c[4*h+2]=this.state[h]>>>8&255,c[4*h+3]=this.state[h]>>>0&255;return c},k.prototype.hashBuffer=function(){for(var I=this.buffer,C=this.state,h=C[0],c=C[1],b=C[2],M=C[3],E=C[4],L=C[5],o=C[6],P=C[7],l=0;l<y.BLOCK_SIZE;l++){if(l<16)this.temp[l]=(255&I[4*l])<<24|(255&I[4*l+1])<<16|(255&I[4*l+2])<<8|255&I[4*l+3];else{var O=this.temp[l-2];this.temp[l]=(((O>>>17|O<<15)^(O>>>19|O<<13)^O>>>10)+this.temp[l-7]|0)+((((O=this.temp[l-15])>>>7|O<<25)^(O>>>18|O<<14)^O>>>3)+this.temp[l-16]|0)}var A=(((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&L^~E&o)|0)+(P+(y.KEY[l]+this.temp[l]|0)|0)|0,K=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&c^h&b^c&b)|0;P=o,o=L,L=E,E=M+A|0,M=b,b=c,c=h,h=A+K|0}C[0]+=h,C[1]+=c,C[2]+=b,C[3]+=M,C[4]+=E,C[5]+=L,C[6]+=o,C[7]+=P},k}();_.RawSha256=N},93262:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.MAX_HASHABLE_LENGTH=_.INIT=_.KEY=_.DIGEST_LENGTH=_.BLOCK_SIZE=void 0,_.BLOCK_SIZE=64,_.DIGEST_LENGTH=32,_.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),_.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],_.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},52651:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),(0,i(40909).__exportStar)(i(23935),_)},23935:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Sha256=void 0;var y=i(40909),N=i(93262),k=i(90722),g=i(14859),I=function(){function h(c){if(this.hash=new k.RawSha256,c){this.outer=new k.RawSha256;var b=function C(h){var c=(0,g.convertToBuffer)(h);if(c.byteLength>N.BLOCK_SIZE){var b=new k.RawSha256;b.update(c),c=b.digest()}var M=new Uint8Array(N.BLOCK_SIZE);return M.set(c),M}(c),M=new Uint8Array(N.BLOCK_SIZE);M.set(b);for(var E=0;E<N.BLOCK_SIZE;E++)b[E]^=54,M[E]^=92;for(this.hash.update(b),this.outer.update(M),E=0;E<b.byteLength;E++)b[E]=0}}return h.prototype.update=function(c){if(!(0,g.isEmptyData)(c)&&!this.error)try{this.hash.update((0,g.convertToBuffer)(c))}catch(b){this.error=b}},h.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},h.prototype.digest=function(){return(0,y.__awaiter)(this,void 0,void 0,function(){return(0,y.__generator)(this,function(c){return[2,this.digestSync()]})})},h}();_.Sha256=I},5091:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.convertToBuffer=void 0;var y=i(97866),N=typeof Buffer<"u"&&Buffer.from?function(g){return Buffer.from(g,"utf8")}:y.fromUtf8;_.convertToBuffer=function k(g){return g instanceof Uint8Array?g:"string"==typeof g?N(g):ArrayBuffer.isView(g)?new Uint8Array(g.buffer,g.byteOffset,g.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(g)}},14859:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.uint32ArrayFrom=_.numToUint8=_.isEmptyData=_.convertToBuffer=void 0;var y=i(5091);Object.defineProperty(_,"convertToBuffer",{enumerable:!0,get:function(){return y.convertToBuffer}});var N=i(66074);Object.defineProperty(_,"isEmptyData",{enumerable:!0,get:function(){return N.isEmptyData}});var k=i(97220);Object.defineProperty(_,"numToUint8",{enumerable:!0,get:function(){return k.numToUint8}});var g=i(42025);Object.defineProperty(_,"uint32ArrayFrom",{enumerable:!0,get:function(){return g.uint32ArrayFrom}})},66074:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.isEmptyData=void 0,_.isEmptyData=function i(y){return"string"==typeof y?0===y.length:0===y.byteLength}},97220:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.numToUint8=void 0,_.numToUint8=function i(y){return new Uint8Array([(4278190080&y)>>24,(16711680&y)>>16,(65280&y)>>8,255&y])}},42025:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.uint32ArrayFrom=void 0,_.uint32ArrayFrom=function i(y){if(!Array.from){for(var N=new Uint32Array(y.length);0<y.length;)N[0]=y[0];return N}return Uint32Array.from(y)}},57786:(ee,_,i)=>{"use strict";i.d(_,{n:()=>C});for(var y={},N={},k=0;k<256;k++){var g=k.toString(16).toLowerCase();1===g.length&&(g="0".concat(g)),y[k]=g,N[g]=k}function C(h){for(var c="",b=0;b<h.byteLength;b++)c+=y[h[b]];return c}},97866:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{fromUtf8:()=>I,toUtf8:()=>C});var I=function(h){return"function"==typeof TextEncoder?function k(h){return(new TextEncoder).encode(h)}(h):function(h){for(var c=[],b=0,M=h.length;b<M;b++){var E=h.charCodeAt(b);if(E<128)c.push(E);else if(E<2048)c.push(E>>6|192,63&E|128);else if(b+1<h.length&&55296==(64512&E)&&56320==(64512&h.charCodeAt(b+1))){var L=65536+((1023&E)<<10)+(1023&h.charCodeAt(++b));c.push(L>>18|240,L>>12&63|128,L>>6&63|128,63&L|128)}else c.push(E>>12|224,E>>6&63|128,63&E|128)}return Uint8Array.from(c)}(h)},C=function(h){return"function"==typeof TextDecoder?function g(h){return new TextDecoder("utf-8").decode(h)}(h):function(h){for(var c="",b=0,M=h.length;b<M;b++){var E=h[b];if(E<128)c+=String.fromCharCode(E);else if(192<=E&&E<224){var L=h[++b];c+=String.fromCharCode((31&E)<<6|63&L)}else if(240<=E&&E<365){var P="%"+[E,h[++b],h[++b],h[++b]].map(function(l){return l.toString(16)}).join("%");c+=decodeURIComponent(P)}else c+=String.fromCharCode((15&E)<<12|(63&h[++b])<<6|63&h[++b])}return c}(h)}},79664:(ee,_,i)=>{"use strict";i.d(_,{DX:()=>h});var y=null,N={},k=1,I="@wry/context:Slot",C=Array,h=C[I]||function(){var l=function(){function l(){this.id=["slot",k++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return l.prototype.hasValue=function(){for(var O=y;O;O=O.parent)if(this.id in O.slots){var v=O.slots[this.id];if(v===N)break;return O!==y&&(y.slots[this.id]=v),!0}return y&&(y.slots[this.id]=N),!1},l.prototype.getValue=function(){if(this.hasValue())return y.slots[this.id]},l.prototype.withValue=function(O,v,m,A){var K,Q=((K={__proto__:null})[this.id]=O,K),W=y;y={parent:W,slots:Q};try{return v.apply(A,m)}finally{y=W}},l.bind=function(O){var v=y;return function(){var m=y;try{return y=v,O.apply(this,arguments)}finally{y=m}}},l.noContext=function(O,v,m){if(!y)return O.apply(m,v);var A=y;try{return y=null,O.apply(m,v)}finally{y=A}},l}();try{Object.defineProperty(C,I,{value:C[I]=l,enumerable:!1,writable:!1,configurable:!1})}finally{return l}}()},16409:(ee,_,i)=>{"use strict";i.d(_,{L:()=>C});var y=Object.prototype,N=y.toString,k=y.hasOwnProperty,g=Function.prototype.toString,I=new Map;function C(o,P){try{return h(o,P)}finally{I.clear()}}function h(o,P){if(o===P)return!0;var l=N.call(o);if(l!==N.call(P))return!1;switch(l){case"[object Array]":if(o.length!==P.length)return!1;case"[object Object]":if(L(o,P))return!0;var v=c(o),m=c(P),A=v.length;if(A!==m.length)return!1;for(var K=0;K<A;++K)if(!k.call(P,v[K]))return!1;for(K=0;K<A;++K){var Q=v[K];if(!h(o[Q],P[Q]))return!1}return!0;case"[object Error]":return o.name===P.name&&o.message===P.message;case"[object Number]":if(o!=o)return P!=P;case"[object Boolean]":case"[object Date]":return+o==+P;case"[object RegExp]":case"[object String]":return o==""+P;case"[object Map]":case"[object Set]":if(o.size!==P.size)return!1;if(L(o,P))return!0;for(var W=o.entries(),u="[object Map]"===l;;){var R=W.next();if(R.done)break;var n=R.value,e=n[0],t=n[1];if(!P.has(e)||u&&!h(t,P.get(e)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":o=new Uint8Array(o),P=new Uint8Array(P);case"[object DataView]":var s=o.byteLength;if(s===P.byteLength)for(;s--&&o[s]===P[s];);return-1===s;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var w=g.call(o);return w===g.call(P)&&!function E(o,P){var l=o.length-P.length;return l>=0&&o.indexOf(P,l)===l}(w,M)}return!1}function c(o){return Object.keys(o).filter(b,o)}function b(o){return void 0!==this[o]}var M="{ [native code] }";function L(o,P){var l=I.get(o);if(l){if(l.has(P))return!0}else I.set(o,l=new Set);return l.add(P),!1}},89355:function(ee,_,i){"use strict";var y=this&&this.__extends||function(){var m=function(A,K){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,W){Q.__proto__=W}||function(Q,W){for(var u in W)W.hasOwnProperty(u)&&(Q[u]=W[u])})(A,K)};return function(A,K){function Q(){this.constructor=A}m(A,K),A.prototype=null===K?Object.create(K):(Q.prototype=K.prototype,new Q)}}(),N=this&&this.__assign||function(){return N=Object.assign||function(m){for(var A,K=1,Q=arguments.length;K<Q;K++)for(var W in A=arguments[K])Object.prototype.hasOwnProperty.call(A,W)&&(m[W]=A[W]);return m},N.apply(this,arguments)},k=this&&this.__awaiter||function(m,A,K,Q){return new(K||(K=Promise))(function(u,R){function n(s){try{t(Q.next(s))}catch(w){R(w)}}function e(s){try{t(Q.throw(s))}catch(w){R(w)}}function t(s){s.done?u(s.value):function W(u){return u instanceof K?u:new K(function(R){R(u)})}(s.value).then(n,e)}t((Q=Q.apply(m,A||[])).next())})},g=this&&this.__generator||function(m,A){var Q,W,u,R,K={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return R={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(R[Symbol.iterator]=function(){return this}),R;function n(t){return function(s){return function e(t){if(Q)throw new TypeError("Generator is already executing.");for(;K;)try{if(Q=1,W&&(u=2&t[0]?W.return:t[0]?W.throw||((u=W.return)&&u.call(W),0):W.next)&&!(u=u.call(W,t[1])).done)return u;switch(W=0,u&&(t=[2&t[0],u.value]),t[0]){case 0:case 1:u=t;break;case 4:return K.label++,{value:t[1],done:!1};case 5:K.label++,W=t[1],t=[0];continue;case 7:t=K.ops.pop(),K.trys.pop();continue;default:if(!(u=(u=K.trys).length>0&&u[u.length-1])&&(6===t[0]||2===t[0])){K=0;continue}if(3===t[0]&&(!u||t[1]>u[0]&&t[1]<u[3])){K.label=t[1];break}if(6===t[0]&&K.label<u[1]){K.label=u[1],u=t;break}if(u&&K.label<u[2]){K.label=u[2],K.ops.push(t);break}u[2]&&K.ops.pop(),K.trys.pop();continue}t=A.call(m,K)}catch(s){t=[6,s],W=0}finally{Q=u=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,s])}}};Object.defineProperty(_,"__esModule",{value:!0});var L,m,I=i(77744),C=i(18698),h=i(87581),c=i(41178),b=i(85535),M=i(45442);_.USER_AGENT_HEADER="x-amz-user-agent",_.USER_AGENT="aws-amplify/"+M.version+(b.userAgent&&" ")+b.userAgent,(m=L=_.AUTH_TYPE||(_.AUTH_TYPE={})).NONE="NONE",m.API_KEY="API_KEY",m.AWS_IAM="AWS_IAM",m.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",m.OPENID_CONNECT="OPENID_CONNECT",m.AWS_LAMBDA="AWS_LAMBDA";var o=function(m){function A(K){var Q=m.call(this)||this;return Q.link=_.authLink(K),Q}return y(A,m),A.prototype.request=function(K,Q){return this.link.request(K,Q)},A}(I.ApolloLink);_.AuthLink=o;var P=function(m,A,K){var Q=void 0===m?{header:"",value:""}:m,W=Q.header,u=Q.value;return k(void 0,void 0,void 0,function(){var R,n,t,s,w;return g(this,function(T){switch(T.label){case 0:return R=A.getContext(),n=N(N({},R.headers),((s={})[_.USER_AGENT_HEADER]=_.USER_AGENT,s)),W&&u?"function"!=typeof u?[3,2]:[4,u.call(void 0)]:[3,5];case 1:return t=T.sent(),[3,4];case 2:return[4,u];case 3:t=T.sent(),T.label=4;case 4:n=N(((w={})[W]=t,w),n),T.label=5;case 5:return A.setContext(N(N({},R),{headers:n})),[2,K(A)]}})})};_.authLink=function(m){var A=m.url,K=m.region,Q=m.auth,W=(void 0===Q?{}:Q).type,u=m.auth;return new I.ApolloLink(function(R,n){return new I.Observable(function(e){var t,s;switch(W){case L.NONE:s=P(void 0,R,n);break;case L.AWS_IAM:var w=u.credentials;s=function(m,A,K){var Q=m.credentials,W=m.region,u=m.url;return k(void 0,void 0,void 0,function(){var R,n,e,t,s,w,T,x,G,z,H,X,Y;return g(this,function(j){switch(j.label){case 0:return R="appsync",n=A.getContext(),(e="function"==typeof Q?Q.call():Q||{})&&"function"==typeof e.getPromise?[4,e.getPromise()]:[3,2];case 1:j.sent(),j.label=2;case 2:return[4,e];case 3:return t=j.sent(),s=t.accessKeyId,w=t.secretAccessKey,T=t.sessionToken,x=c.parse(u),G=x.host,z=x.path,H=N(N({},O(A,{})),{service:R,region:W,url:u,host:G,path:z}),X=h.Signer.sign(H,{access_key:s,secret_key:w,session_token:T}).headers,A.setContext(N(N({},n),{headers:N(N(N({},n.headers),X),(Y={},Y[_.USER_AGENT_HEADER]=_.USER_AGENT,Y))})),[2,K(A)]}})})}({credentials:void 0===w?{}:w,region:K,url:A},R,n);break;case L.API_KEY:var x=u.apiKey;s=P({header:"X-Api-Key",value:void 0===x?"":x},R,n);break;case L.AMAZON_COGNITO_USER_POOLS:case L.OPENID_CONNECT:var z=u.jwtToken;s=P({header:"Authorization",value:void 0===z?"":z},R,n);break;case L.AWS_LAMBDA:var X=u.token;s=P({header:"Authorization",value:void 0===X?"":X},R,n);break;default:throw new Error("Invalid AUTH_TYPE: "+u.type)}return s.then(function(U){t=U.subscribe({next:e.next.bind(e),error:e.error.bind(e),complete:e.complete.bind(e)})}),function(){t&&t.unsubscribe()}})})};var O=function(m,A){var W=m.query,u={operationName:m.operationName,variables:v(m.variables),query:C.print(W)};return N(N({body:JSON.stringify(u),method:"POST"},A),{headers:N({accept:"*/*","content-type":"application/json; charset=UTF-8"},A.headers)})},v=function(m){return Object.keys(m).filter(function(A){return!A.startsWith("@@")}).reduce(function(A,K){return A[K]=m[K],A},{})}},84910:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});var y=i(89355);_.AuthLink=y.AuthLink,_.AUTH_TYPE=y.AUTH_TYPE,_.USER_AGENT_HEADER=y.USER_AGENT_HEADER,_.USER_AGENT=y.USER_AGENT,_.createAuthLink=function(k){return new y.AuthLink({url:k.url,region:k.region,auth:k.auth})};var N=i(87581);_.Signer=N.Signer},85535:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.userAgent=""},87581:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),function y(N){for(var k in N)_.hasOwnProperty(k)||(_[k]=N[k])}(i(99303))},99303:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),global.Buffer=global.Buffer||i(32718).hp;var y=i(41178),N=i(52651).Sha256,k=i(57786).n,g=function(v,m,A){void 0===A&&(A="");var K=new N(v);K.update(m);var Q=K.digestSync();return"hex"===A?k(Q):Q},I=function(v){var m=v||"",A=new N;return A.update(m),k(A.digestSync())},C=function(v){return v&&0!==Object.keys(v).length?Object.keys(v).map(function(m){return{key:m.toLowerCase(),value:v[m]?v[m].trim().replace(/\s+/g," "):""}}).sort(function(m,A){return m.key<A.key?-1:1}).map(function(m){return m.key+":"+m.value}).join("\n")+"\n":""},h=function(v){return Object.keys(v).map(function(m){return m.toLowerCase()}).sort().join(";")},l=function(v,m,A){void 0===A&&(A=null),v.headers=v.headers||{};var Q=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),W=Q.substr(0,8),u="AWS4-HMAC-SHA256",R=y.parse(v.url);v.headers.host=R.host,v.headers["x-amz-date"]=Q,m.session_token&&(v.headers["X-Amz-Security-Token"]=m.session_token);var n=function(v){var m=y.parse(v.url);return[v.method||"/",m.path,m.query,C(v.headers),h(v.headers),I(v.body)].join("\n")}(v);A=A||function(v){var Q=(y.parse(v.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===Q[1]&&(Q=Q.reverse()),{service:v.service||Q[0],region:v.region||Q[1]}}(v);var e=function(v,m,A){return[v,m,A,"aws4_request"].join("/")}(W,A.region,A.service),t=function(v,m,A,K){return[v,A,K,I(m)].join("\n")}(u,n,Q,e),s=function(v,m,A){void 0===v&&(v="");var Q=g("AWS4"+v,m),W=g(Q,A.region),u=g(W,A.service);return g(u,"aws4_request")}(m.secret_key,W,A),w=function(v,m){return g(v,m,"hex")}(s,t),T=function(v,m,A,K,Q){return void 0===m&&(m=""),[v+" Credential="+m+"/"+A,"SignedHeaders="+K,"Signature="+Q].join(", ")}(u,m.access_key,e,h(v.headers),w);return v.headers.Authorization=T,v},O=function(){function v(){}return v.sign=l,v}();_.Signer=O,_.default=O},42305:function(ee,_,i){"use strict";var y=this&&this.__rest||function(b,M){var E={};for(var L in b)Object.prototype.hasOwnProperty.call(b,L)&&M.indexOf(L)<0&&(E[L]=b[L]);if(null!=b&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(L=Object.getOwnPropertySymbols(b);o<L.length;o++)M.indexOf(L[o])<0&&Object.prototype.propertyIsEnumerable.call(b,L[o])&&(E[L[o]]=b[L[o]])}return E};Object.defineProperty(_,"__esModule",{value:!0});var N=i(55961);_.CONTROL_EVENTS_KEY=N.CONTROL_EVENTS_KEY;var k=i(77744),g=i(60720),I=i(85743),C=i(23608),h=i(76953);_.createSubscriptionHandshakeLink=function c(b,M){var E,L;return"string"==typeof b?(E=M||g.createHttpLink({uri:b}),L=k.ApolloLink.from([new C.NonTerminatingLink("controlMessages",{link:new k.ApolloLink(function(P,l){return new k.Observable(function(O){var v,A=P.variables,K=N.CONTROL_EVENTS_KEY,Q=A[K],W=y(A,["symbol"==typeof K?K:K+""]);return typeof Q<"u"&&(P.variables=W),O.next(((v={})[N.CONTROL_EVENTS_KEY]=Q,v)),function(){}})})}),new C.NonTerminatingLink("subsInfo",{link:E}),new N.SubscriptionHandshakeLink("subsInfo")])):(E=M||g.createHttpLink({uri:b.url}),L=new h.AppSyncRealTimeSubscriptionHandshakeLink(b)),k.ApolloLink.split(function(P){var O=I.getMainDefinition(P.query);return"OperationDefinition"===O.kind&&"subscription"===O.operation},L,E)}},23608:function(ee,_,i){"use strict";var y=this&&this.__extends||function(){var c=function(b,M){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var o in L)L.hasOwnProperty(o)&&(E[o]=L[o])})(b,M)};return function(b,M){function E(){this.constructor=b}c(b,M),b.prototype=null===M?Object.create(M):(E.prototype=M.prototype,new E)}}(),N=this&&this.__assign||function(){return N=Object.assign||function(c){for(var b,M=1,E=arguments.length;M<E;M++)for(var L in b=arguments[M])Object.prototype.hasOwnProperty.call(b,L)&&(c[L]=b[L]);return c},N.apply(this,arguments)},k=this&&this.__awaiter||function(c,b,M,E){return new(M||(M=Promise))(function(o,P){function l(m){try{v(E.next(m))}catch(A){P(A)}}function O(m){try{v(E.throw(m))}catch(A){P(A)}}function v(m){m.done?o(m.value):function L(o){return o instanceof M?o:new M(function(P){P(o)})}(m.value).then(l,O)}v((E=E.apply(c,b||[])).next())})},g=this&&this.__generator||function(c,b){var E,L,o,P,M={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return P={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function l(v){return function(m){return function O(v){if(E)throw new TypeError("Generator is already executing.");for(;M;)try{if(E=1,L&&(o=2&v[0]?L.return:v[0]?L.throw||((o=L.return)&&o.call(L),0):L.next)&&!(o=o.call(L,v[1])).done)return o;switch(L=0,o&&(v=[2&v[0],o.value]),v[0]){case 0:case 1:o=v;break;case 4:return M.label++,{value:v[1],done:!1};case 5:M.label++,L=v[1],v=[0];continue;case 7:v=M.ops.pop(),M.trys.pop();continue;default:if(!(o=(o=M.trys).length>0&&o[o.length-1])&&(6===v[0]||2===v[0])){M=0;continue}if(3===v[0]&&(!o||v[1]>o[0]&&v[1]<o[3])){M.label=v[1];break}if(6===v[0]&&M.label<o[1]){M.label=o[1],o=v;break}if(o&&M.label<o[2]){M.label=o[2],M.ops.push(v);break}o[2]&&M.ops.pop(),M.trys.pop();continue}v=b.call(c,M)}catch(m){v=[6,m],L=0}finally{E=o=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,m])}}};Object.defineProperty(_,"__esModule",{value:!0});var I=i(77744),C=i(86999),h=function(c){function b(M,E){var L=E.link,o=c.call(this)||this;return o.contextKey=M,o.link=L,o}return y(b,c),b.prototype.request=function(M,E){var L=this;return C.setContext(function(o,P){return k(L,void 0,void 0,function(){var l,O,v=this;return g(this,function(m){switch(m.label){case 0:return[4,new Promise(function(A,K){v.link.request(M).subscribe({next:A,error:K})})];case 1:return l=m.sent(),[2,N(N({},P),(O={},O[this.contextKey]=l,O))]}})})}).request(M,E)},b}(I.ApolloLink);_.NonTerminatingLink=h},76953:function(ee,_,i){"use strict";var y=this&&this.__extends||function(){var R=function(n,e){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var w in s)s.hasOwnProperty(w)&&(t[w]=s[w])})(n,e)};return function(n,e){function t(){this.constructor=n}R(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}}(),N=this&&this.__assign||function(){return N=Object.assign||function(R){for(var n,e=1,t=arguments.length;e<t;e++)for(var s in n=arguments[e])Object.prototype.hasOwnProperty.call(n,s)&&(R[s]=n[s]);return R},N.apply(this,arguments)},k=this&&this.__awaiter||function(R,n,e,t){return new(e||(e=Promise))(function(w,T){function x(H){try{z(t.next(H))}catch(X){T(X)}}function G(H){try{z(t.throw(H))}catch(X){T(X)}}function z(H){H.done?w(H.value):function s(w){return w instanceof e?w:new e(function(T){T(w)})}(H.value).then(x,G)}z((t=t.apply(R,n||[])).next())})},g=this&&this.__generator||function(R,n){var t,s,w,T,e={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return T={next:x(0),throw:x(1),return:x(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function x(z){return function(H){return function G(z){if(t)throw new TypeError("Generator is already executing.");for(;e;)try{if(t=1,s&&(w=2&z[0]?s.return:z[0]?s.throw||((w=s.return)&&w.call(s),0):s.next)&&!(w=w.call(s,z[1])).done)return w;switch(s=0,w&&(z=[2&z[0],w.value]),z[0]){case 0:case 1:w=z;break;case 4:return e.label++,{value:z[1],done:!1};case 5:e.label++,s=z[1],z=[0];continue;case 7:z=e.ops.pop(),e.trys.pop();continue;default:if(!(w=(w=e.trys).length>0&&w[w.length-1])&&(6===z[0]||2===z[0])){e=0;continue}if(3===z[0]&&(!w||z[1]>w[0]&&z[1]<w[3])){e.label=z[1];break}if(6===z[0]&&e.label<w[1]){e.label=w[1],w=z;break}if(w&&e.label<w[2]){e.label=w[2],e.ops.push(z);break}w[2]&&e.ops.pop(),e.trys.pop();continue}z=n.call(R,e)}catch(H){z=[6,H],s=0}finally{t=w=0}if(5&z[0])throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}([z,H])}}};Object.defineProperty(_,"__esModule",{value:!0});var I=i(77744),C=i(13539),h=i(84910),c=i(94535),b=i(41178),M=i(79166),E=i(75303),L=i(93645),o=C.rootLogger.extend("subscriptions");_.CONTROL_EVENTS_KEY="@@controlEvents";var P=[400,401,403],O={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},Q=/^https:\/\/\w{26}\.appsync\-api\.\w{2}(?:(?:\-\w{2,})+)\-\d\.amazonaws.com\/graphql$/i,u=function(R){function n(e){var t=e.url,s=e.region,w=e.auth,T=e.keepAliveTimeoutMs,x=R.call(this)||this;if(x.socketStatus=E.SOCKET_STATUS.CLOSED,x.keepAliveTimeout=void 0,x.subscriptionObserverMap=new Map,x.promiseArray=[],x.url=t,x.region=s,x.auth=w,x.keepAliveTimeout=T,x.keepAliveTimeout<6e4)throw new Error("keepAliveTimeoutMs must be greater than or equal to 60000 ("+x.keepAliveTimeout+" used).");return x}return y(n,R),n.prototype.isCustomDomain=function(e){return null===e.match(Q)},n.prototype.request=function(e){var t,s=this,w=e.query,T=e.variables,x=e.getContext(),G=x.controlMessages,z=_.CONTROL_EVENTS_KEY,H=(void 0===G?(t={},t[_.CONTROL_EVENTS_KEY]=void 0,t):G)[z],X=x.headers;return new I.Observable(function(Y){if(s.url){var j=M.v4(),U=s.auth.type===h.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||s.auth.type===h.AUTH_TYPE.OPENID_CONNECT?s.auth.jwtToken:null;U=s.auth.type===h.AUTH_TYPE.AWS_LAMBDA?s.auth.token:U;var r={appSyncGraphqlEndpoint:s.url,authenticationType:s.auth.type,query:c.print(w),region:s.region,graphql_headers:function(){return X},variables:T,apiKey:s.auth.type===h.AUTH_TYPE.API_KEY?s.auth.apiKey:"",credentials:s.auth.type===h.AUTH_TYPE.AWS_IAM?s.auth.credentials:null,token:U};return s._startSubscriptionWithAWSAppSyncRealTime({options:r,observer:Y,subscriptionId:j}),function(){return k(s,void 0,void 0,function(){return g(this,function(p){try{if(this._verifySubscriptionAlreadyStarted(j),this.subscriptionObserverMap.get(j).subscriptionState!==E.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(j)}catch{return this._removeSubscriptionObserver(j),[2]}return[2]})})}}Y.error({errors:[N({},new c.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),Y.complete()}).filter(function(Y){var j=Y.extensions,U=(void 0===j?{}:j).controlMsgType;return!0===H||!(typeof(void 0===U?void 0:U)<"u")})},n.prototype._verifySubscriptionAlreadyStarted=function(e){return k(this,void 0,void 0,function(){var s=this;return g(this,function(w){return this.subscriptionObserverMap.get(e).subscriptionState===E.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(T,x){var G=s.subscriptionObserverMap.get(e);s.subscriptionObserverMap.set(e,{observer:G.observer,subscriptionState:G.subscriptionState,variables:G.variables,query:G.query,subscriptionReadyCallback:T,subscriptionFailedCallback:x})})]:[2]})})},n.prototype._sendUnsubscriptionMessage=function(e){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===E.SOCKET_STATUS.READY){var s=JSON.stringify({id:e,type:E.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(s),this._removeSubscriptionObserver(e)}}catch(w){o({err:w})}},n.prototype._removeSubscriptionObserver=function(e){this.subscriptionObserverMap.delete(e),setTimeout(this._closeSocketIfRequired.bind(this),1e3)},n.prototype._closeSocketIfRequired=function(){if(!(this.subscriptionObserverMap.size>0)){if(!this.awsRealTimeSocket)return void(this.socketStatus=E.SOCKET_STATUS.CLOSED);this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketIfRequired.bind(this),1e3):(o("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=E.SOCKET_STATUS.CLOSED)}},n.prototype._startSubscriptionWithAWSAppSyncRealTime=function(e){var t=e.options,s=e.observer,w=e.subscriptionId;return k(this,void 0,void 0,function(){var T,x,G,z,H,X,Y,j,U,r,d,p,S,D,B,q,$,Z,ne,ie,se,ce,F=this;return g(this,function(a){switch(a.label){case 0:return T=t.appSyncGraphqlEndpoint,x=t.authenticationType,H=t.apiKey,X=t.region,j=void 0===(Y=t.graphql_headers)?function(){return{}}:Y,U=t.credentials,r=t.token,p={query:G=t.query,variables:z=t.variables},this.subscriptionObserverMap.set(w,{observer:s,query:G,variables:z,subscriptionState:d=E.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),S=JSON.stringify(p),B=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:H,appSyncGraphqlEndpoint:T,authenticationType:x,payload:S,canonicalUri:"",region:X,credentials:U,token:r,graphql_headers:j})];case 1:D=N.apply(void 0,[N.apply(void 0,B.concat([a.sent()])),(ce={},ce[h.USER_AGENT_HEADER]=h.USER_AGENT,ce)]),q={id:w,payload:{data:S,extensions:{authorization:N({},D)}},type:E.MESSAGE_TYPES.GQL_START},$=JSON.stringify(q),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this._initializeWebSocketConnection({apiKey:H,appSyncGraphqlEndpoint:T,authenticationType:x,region:X,credentials:U,token:r})];case 3:return a.sent(),[3,5];case 4:return Z=a.sent(),s.error({errors:[N({},new c.GraphQLError("Connection failed: "+(void 0===(ne=Z.message)?"":ne)))]}),s.complete(),"function"==typeof(ie=(this.subscriptionObserverMap.get(w)||{}).subscriptionFailedCallback)&&ie(),[2];case 5:return se=this.subscriptionObserverMap.get(w)||{},this.subscriptionObserverMap.set(w,{observer:s,subscriptionState:d,variables:z,query:G,subscriptionReadyCallback:se.subscriptionReadyCallback,subscriptionFailedCallback:se.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){F._timeoutStartSubscriptionAck.call(F,w)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send($),[2]}})})},n.prototype._initializeWebSocketConnection=function(e){var t=this,s=e.appSyncGraphqlEndpoint,w=e.authenticationType,T=e.apiKey,x=e.region,G=e.credentials,z=e.token;if(this.socketStatus!==E.SOCKET_STATUS.READY)return new Promise(function(H,X){return k(t,void 0,void 0,function(){var Y,j,U,r,d,p,S,B;return g(this,function(q){switch(q.label){case 0:if(this.promiseArray.push({res:H,rej:X}),this.socketStatus!==E.SOCKET_STATUS.CLOSED)return[3,5];q.label=1;case 1:return q.trys.push([1,4,,5]),this.socketStatus=E.SOCKET_STATUS.CONNECTING,Y="{}",r=(U=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:w,payload:Y,canonicalUri:"/connect",apiKey:T,appSyncGraphqlEndpoint:s,region:x,credentials:G,token:z,graphql_headers:function(){}})];case 2:return j=r.apply(U,[q.sent()]),d=Buffer.from(j).toString("base64"),p=Buffer.from(Y).toString("base64"),S=(S=this.isCustomDomain(S=s)?S.concat("/realtime"):S.replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")).replace("https://","wss://").replace("http://","ws://"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:S+"?header="+d+"&payload="+p})];case 3:return q.sent(),this.promiseArray.forEach(function($){var Z=$.res;o("Notifying connection successful"),Z()}),this.socketStatus=E.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return B=q.sent(),this.promiseArray.forEach(function($){return(0,$.rej)(B)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=E.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},n.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,s=e.payload,w=e.canonicalUri,T=e.appSyncGraphqlEndpoint,x=e.apiKey,G=e.region,z=e.credentials,H=e.token,X=e.graphql_headers;return k(this,void 0,void 0,function(){var Y,j,U;return g(this,function(d){switch(d.label){case 0:return Y={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeAuthorizationHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeAuthorizationHeader.bind(this),AWS_LAMBDA:this._awsRealTimeAuthorizationHeader.bind(this)},"function"!=typeof(j=Y[t])?(o("Authentication type "+t+" not supported"),[2,{}]):(U=b.parse(T).host,[4,j({payload:s,canonicalUri:w,appSyncGraphqlEndpoint:T,apiKey:x,region:G,host:U,credentials:z,token:H,graphql_headers:X})]);case 1:return[2,d.sent()]}})})},n.prototype._awsRealTimeAuthorizationHeader=function(e){var t=e.host,s=e.token,w=e.graphql_headers;return k(this,void 0,void 0,function(){var T,x,G;return g(this,function(z){switch(z.label){case 0:return T={},"function"!=typeof s?[3,2]:[4,s.call(void 0)];case 1:return x=z.sent(),[3,4];case 2:return[4,s];case 3:x=z.sent(),z.label=4;case 4:return G=[(T.Authorization=x,T.host=t,T)],[4,w()];case 5:return[2,N.apply(void 0,G.concat([z.sent()]))]}})})},n.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,s=e.host,w=e.graphql_headers;return k(this,void 0,void 0,function(){var x,G;return g(this,function(z){switch(z.label){case 0:return x=(new Date).toISOString().replace(/[:\-]|\.\d{3}/g,""),G=[{host:s,"x-amz-date":x,"x-api-key":t}],[4,w()];case 1:return[2,N.apply(void 0,G.concat([z.sent()]))]}})})},n.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,s=e.canonicalUri,w=e.appSyncGraphqlEndpoint,T=e.region,x=e.credentials;return k(this,void 0,void 0,function(){var G,z,H,U,r;return g(this,function(p){switch(p.label){case 0:return G={region:T,service:"appsync"},(z="function"==typeof x?x.call():x||{})&&"function"==typeof z.getPromise?[4,z.getPromise()]:[3,2];case 1:p.sent(),p.label=2;case 2:if(!z)throw new Error("No credentials");return[4,z];case 3:return H=p.sent(),U={access_key:H.accessKeyId,secret_key:H.secretAccessKey,session_token:H.sessionToken},r={url:""+w+s,body:t,method:"POST",headers:N({},O)},[2,h.Signer.sign(r,U,G).headers]}})})},n.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return k(this,void 0,void 0,function(){return g(this,function(s){switch(s.label){case 0:return o("Initializaling retryable Handshake"),[4,L.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}])];case 1:return s.sent(),[2]}})})},n.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return k(this,void 0,void 0,function(){var s,w,x=this;return g(this,function(G){switch(G.label){case 0:o("Initializing handshake "+t),G.label=1;case 1:return G.trys.push([1,4,,5]),[4,new Promise(function(z,H){var X=n.createWebSocket(t,"graphql-ws");X.onerror=function(){o("WebSocket connection error")},X.onclose=function(){H(new Error("Connection handshake error"))},X.onopen=function(){return x.awsRealTimeSocket=X,z()}})];case 2:return G.sent(),[4,new Promise(function(z,H){var X=!1;x.awsRealTimeSocket.onerror=function(U){o("WebSocket closed "+JSON.stringify(U))},x.awsRealTimeSocket.onclose=function(U){o("WebSocket closed "+U.reason),H(new Error(JSON.stringify(U)))},x.awsRealTimeSocket.onmessage=function(U){var r;o("subscription message from AWS AppSyncRealTime: "+U.data+" ");var d=JSON.parse(U.data),p=d.type,S=d.payload,D=(void 0===S?{}:S).connectionTimeoutMs;if(p===E.MESSAGE_TYPES.GQL_CONNECTION_ACK)return X=!0,x.keepAliveTimeout=null!==(r=x.keepAliveTimeout)&&void 0!==r?r:void 0===D?3e5:D,x.awsRealTimeSocket.onmessage=x._handleIncomingSubscriptionMessage.bind(x),x.awsRealTimeSocket.onerror=function(oe){o(oe),x._errorDisconnect(E.CONTROL_MSG.CONNECTION_CLOSED)},x.awsRealTimeSocket.onclose=function(oe){o("WebSocket closed "+oe.reason),x._errorDisconnect(E.CONTROL_MSG.CONNECTION_CLOSED)},void z("Cool, connected to AWS AppSyncRealTime");if(p===E.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var q=d.payload,$=(void 0===q?{}:q).errors,Z=(void 0===$?[]:$)[0],ne=void 0===Z?{}:Z,ae=ne.errorType,se=ne.errorCode;H({errorType:void 0===ae?"":ae,errorCode:void 0===se?0:se})}},x.awsRealTimeSocket.send(JSON.stringify({type:E.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function j(){X||H(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(x),15e3)})];case 3:return G.sent(),[3,5];case 4:throw s=G.sent(),w=s.errorType,P.indexOf(s.errorCode)>=0?new L.NonRetryableError(w):w?new Error(w):s;case 5:return[2]}})})},n.prototype._handleIncomingSubscriptionMessage=function(e){o("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),s=t.id,w=void 0===s?"":s,T=t.payload,x=t.type,G=this.subscriptionObserverMap.get(w)||{},z=G.observer,H=void 0===z?null:z,X=G.query,Y=void 0===X?"":X,j=G.variables,U=void 0===j?{}:j,r=G.startAckTimeoutId,d=void 0===r?0:r,p=G.subscriptionReadyCallback,S=void 0===p?null:p,D=G.subscriptionFailedCallback,B=void 0===D?null:D;if(o({id:w,observer:H,query:Y,variables:U}),x===E.MESSAGE_TYPES.GQL_DATA&&T&&T.data)H?H.next(T):o("observer not found for id: "+w);else{if(x===E.MESSAGE_TYPES.GQL_START_ACK)return o("subscription ready for "+JSON.stringify({query:Y,variables:U})),"function"==typeof S&&S(),clearTimeout(d),H?H.next({data:T,extensions:{controlMsgType:"CONNECTED"}}):o("observer not found for id: "+w),void this.subscriptionObserverMap.set(w,{observer:H,query:Y,variables:U,startAckTimeoutId:null,subscriptionState:E.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:S,subscriptionFailedCallback:B});if(x===E.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,E.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));x===E.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(w,{observer:H,query:Y,variables:U,startAckTimeoutId:d,subscriptionReadyCallback:S,subscriptionFailedCallback:B,subscriptionState:E.SUBSCRIPTION_STATUS.FAILED}),clearTimeout(d),H?(H.error({errors:[N({},new c.GraphQLError("Connection failed: "+JSON.stringify(T)))]}),H.complete()):o("observer not found for id: "+w),"function"==typeof B&&B())}},n.prototype._errorDisconnect=function(e){o("Disconnect error: "+e),this.subscriptionObserverMap.forEach(function(t){var s=t.observer;s&&!s.closed&&s.error({errors:[N({},new c.GraphQLError(e))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=E.SOCKET_STATUS.CLOSED},n.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},s=t.observer,w=t.query,T=t.variables;s&&(this.subscriptionObserverMap.set(e,{observer:s,query:w,variables:T,subscriptionState:E.SUBSCRIPTION_STATUS.FAILED}),s&&!s.closed&&(s.error({errors:[N({},new c.GraphQLError("Subscription timeout "+JSON.stringify({query:w,variables:T})))]}),s.complete()),o("timeoutStartSubscription",JSON.stringify({query:w,variables:T})))},n.createWebSocket=function(e,t){return new WebSocket(e,t)},n}(I.ApolloLink);_.AppSyncRealTimeSubscriptionHandshakeLink=u},55961:function(ee,_,i){"use strict";var y=this&&this.__extends||function(){var o=function(P,l){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,v){O.__proto__=v}||function(O,v){for(var m in v)v.hasOwnProperty(m)&&(O[m]=v[m])})(P,l)};return function(P,l){function O(){this.constructor=P}o(P,l),P.prototype=null===l?Object.create(l):(O.prototype=l.prototype,new O)}}(),N=this&&this.__assign||function(){return N=Object.assign||function(o){for(var P,l=1,O=arguments.length;l<O;l++)for(var v in P=arguments[l])Object.prototype.hasOwnProperty.call(P,v)&&(o[v]=P[v]);return o},N.apply(this,arguments)},k=this&&this.__awaiter||function(o,P,l,O){return new(l||(l=Promise))(function(m,A){function K(u){try{W(O.next(u))}catch(R){A(R)}}function Q(u){try{W(O.throw(u))}catch(R){A(R)}}function W(u){u.done?m(u.value):function v(m){return m instanceof l?m:new l(function(A){A(m)})}(u.value).then(K,Q)}W((O=O.apply(o,P||[])).next())})},g=this&&this.__generator||function(o,P){var O,v,m,A,l={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return A={next:K(0),throw:K(1),return:K(2)},"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function K(W){return function(u){return function Q(W){if(O)throw new TypeError("Generator is already executing.");for(;l;)try{if(O=1,v&&(m=2&W[0]?v.return:W[0]?v.throw||((m=v.return)&&m.call(v),0):v.next)&&!(m=m.call(v,W[1])).done)return m;switch(v=0,m&&(W=[2&W[0],m.value]),W[0]){case 0:case 1:m=W;break;case 4:return l.label++,{value:W[1],done:!1};case 5:l.label++,v=W[1],W=[0];continue;case 7:W=l.ops.pop(),l.trys.pop();continue;default:if(!(m=(m=l.trys).length>0&&m[m.length-1])&&(6===W[0]||2===W[0])){l=0;continue}if(3===W[0]&&(!m||W[1]>m[0]&&W[1]<m[3])){l.label=W[1];break}if(6===W[0]&&l.label<m[1]){l.label=m[1],m=W;break}if(m&&l.label<m[2]){l.label=m[2],l.ops.push(W);break}m[2]&&l.ops.pop(),l.trys.pop();continue}W=P.call(o,l)}catch(u){W=[6,u],v=0}finally{O=m=0}if(5&W[0])throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}([W,u])}}},I=this&&this.__rest||function(o,P){var l={};for(var O in o)Object.prototype.hasOwnProperty.call(o,O)&&P.indexOf(O)<0&&(l[O]=o[O]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var v=0;for(O=Object.getOwnPropertySymbols(o);v<O.length;v++)P.indexOf(O[v])<0&&Object.prototype.propertyIsEnumerable.call(o,O[v])&&(l[O[v]]=o[O[v]])}return l};Object.defineProperty(_,"__esModule",{value:!0});var C=i(77744),h=i(13539),c=i(35931),b=i(85743),M=h.rootLogger.extend("subscriptions"),E=M.extend("mqtt");_.CONTROL_EVENTS_KEY="@@controlEvents";var L=function(o){function P(l){var O=o.call(this)||this;return O.topicObservers=new Map,O.clientObservers=new Map,O.onMessage=function(v,m,A){var K=JSON.parse(m),Q=O.topicObservers.get(v),W=A.reduce(function(u,R){return u[R]=u[R]||null,u},K.data||{});M("Message received",{data:W,topic:v,observers:Q}),Q.forEach(function(u){try{u.next(N(N({},K),{data:W}))}catch(R){M(R)}})},O.subsInfoContextKey=l,O}return y(P,o),P.prototype.request=function(l){var O,v=this,m=l.getContext(),K=m[this.subsInfoContextKey],Q=m.controlMessages,W=_.CONTROL_EVENTS_KEY,u=(void 0===Q?(O={},O[_.CONTROL_EVENTS_KEY]=void 0,O):Q)[W],R=K.extensions,n=(void 0===R?{subscription:{newSubscriptions:{},mqttConnections:[]}}:R).subscription,e=n.newSubscriptions,t=n.mqttConnections,s=K.errors,w=void 0===s?[]:s;if(w&&w.length)return new C.Observable(function(z){return z.error(new C.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:w},graphQLErrors:w})),function(){}});var T=Object.keys(e).map(function(z){return e[z].topic}),x=new Set(T.filter(function(z){return v.topicObservers.has(z)})),G=new Set(T.filter(function(z){return!x.has(z)}));return new C.Observable(function(z){x.forEach(function(X){v.topicObservers.get(X).add(z);var Y=Array.from(v.topicObservers.get(X)).find(function(){return!0}),j=Array.from(v.clientObservers).find(function(U){return U[1].observers.has(Y)})[0];v.clientObservers.get(j).observers.add(z)});var H=t.filter(function(X){return X.topics.some(function(Y){return G.has(Y)})}).map(function(X){var Y=X.topics,j=I(X,["topics"]);return N(N({},j),{topics:Y.filter(function(U){return G.has(U)})})});return v.connectNewClients(H,z,l),function(){Array.from(v.clientObservers).filter(function(Y){return Y[1].observers.has(z)}).forEach(function(Y){return v.clientObservers.get(Y[0]).observers.delete(z)}),v.clientObservers.forEach(function(Y){var U=Y.client;0===Y.observers.size&&(U.isConnected()&&U.disconnect(),v.clientObservers.delete(U.clientId))}),v.clientObservers=new Map(Array.from(v.clientObservers).filter(function(Y){return Y[1].observers.size>0})),v.topicObservers.forEach(function(Y){return Y.delete(z)}),v.topicObservers=new Map(Array.from(v.topicObservers).filter(function(Y){return Y[1].size>0}))}}).filter(function(z){var H=z.extensions,X=(void 0===H?{}:H).controlMsgType;return!0===u||!(typeof(void 0===X?void 0:X)<"u")})},P.prototype.connectNewClients=function(l,O,v){return k(this,void 0,void 0,function(){var A,K,Q,W=this;return g(this,function(u){return A=b.getMainDefinition(v.query).selectionSet.selections.map(function(R){return R.name.value}),K=Promise.all(l.map(function(R){return W.connectNewClient(R,O,A)})),Q=A.reduce(function(R,n){return R[n]=R[n]||null,R},{}),O.next({data:Q,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:l}}}),[2,K]})})},P.prototype.connectNewClient=function(l,O,v){return k(this,void 0,void 0,function(){var m,A,K,Q,W=this;return g(this,function(u){switch(u.label){case 0:return K=l.topics,(Q=new c.Client(A=l.url,m=l.client)).trace=E.bind(null,m),Q.onConnectionLost=function(R){var n=R.errorCode,e=I(R,["errorCode"]);0!==n&&K.forEach(function(t){W.topicObservers.has(t)&&W.topicObservers.get(t).forEach(function(s){return s.error(N(N({},e),{permanent:!0}))})}),K.forEach(function(t){return W.topicObservers.delete(t)})},Q.onMessageArrived=function(R){return W.onMessage(R.destinationName,R.payloadString,v)},[4,new Promise(function(R,n){Q.connect({useSSL:0===A.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return R(Q)},onFailure:n})})];case 1:return u.sent(),[4,this.subscribeToTopics(Q,K,O)];case 2:return u.sent(),[2,Q]}})})},P.prototype.subscribeToTopics=function(l,O,v){var m=this;return Promise.all(O.map(function(A){return m.subscribeToTopic(l,A,v)}))},P.prototype.subscribeToTopic=function(l,O,v){var m=this;return new Promise(function(A,K){l.subscribe(O,{onSuccess:function(){m.topicObservers.has(O)||m.topicObservers.set(O,new Set),m.clientObservers.has(l.clientId)||m.clientObservers.set(l.clientId,{client:l,observers:new Set}),m.topicObservers.get(O).add(v),m.clientObservers.get(l.clientId).observers.add(v),A(O)},onFailure:K})})},P}(C.ApolloLink);_.SubscriptionHandshakeLink=L},75303:(ee,_)=>{"use strict";var g;Object.defineProperty(_,"__esModule",{value:!0}),(g=_.SUBSCRIPTION_STATUS||(_.SUBSCRIPTION_STATUS={}))[g.PENDING=0]="PENDING",g[g.CONNECTED=1]="CONNECTED",g[g.FAILED=2]="FAILED",function(g){g[g.CLOSED=0]="CLOSED",g[g.READY=1]="READY",g[g.CONNECTING=2]="CONNECTING"}(_.SOCKET_STATUS||(_.SOCKET_STATUS={})),function(g){g.GQL_CONNECTION_INIT="connection_init",g.GQL_CONNECTION_ERROR="connection_error",g.GQL_CONNECTION_ACK="connection_ack",g.GQL_START="start",g.GQL_START_ACK="start_ack",g.GQL_DATA="data",g.GQL_CONNECTION_KEEP_ALIVE="ka",g.GQL_STOP="stop",g.GQL_COMPLETE="complete",g.GQL_ERROR="error"}(_.MESSAGE_TYPES||(_.MESSAGE_TYPES={})),function(g){g.CONNECTION_CLOSED="Connection closed",g.TIMEOUT_DISCONNECT="Timeout disconnect",g.SUBSCRIPTION_ACK="Subscription ack"}(_.CONTROL_MSG||(_.CONTROL_MSG={}))},13539:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});var y=i(33187);_.rootLogger=y.default},33187:function(ee,_,i){"use strict";var y=this&&this.__spreadArrays||function(){for(var I=0,C=0,h=arguments.length;C<h;C++)I+=arguments[C].length;var c=Array(I),b=0;for(C=0;C<h;C++)for(var M=arguments[C],E=0,L=M.length;E<L;E++,b++)c[b]=M[E];return c};Object.defineProperty(_,"__esModule",{value:!0});var N=i(77177),k=N.default("aws-appsync"),g=function(I){void 0===I&&(I="");var C=I?y(this.namespace.split(":"),[I]).join(":"):this.namespace,h=N.default(C);return h.extend=g.bind(h),h};k.extend=g.bind(k),_.default=k},93645:function(ee,_,i){"use strict";var y=this&&this.__extends||function(){var E=function(L,o){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,l){P.__proto__=l}||function(P,l){for(var O in l)l.hasOwnProperty(O)&&(P[O]=l[O])})(L,o)};return function(L,o){function P(){this.constructor=L}E(L,o),L.prototype=null===o?Object.create(o):(P.prototype=o.prototype,new P)}}(),N=this&&this.__awaiter||function(E,L,o,P){return new(o||(o=Promise))(function(O,v){function m(Q){try{K(P.next(Q))}catch(W){v(W)}}function A(Q){try{K(P.throw(Q))}catch(W){v(W)}}function K(Q){Q.done?O(Q.value):function l(O){return O instanceof o?O:new o(function(v){v(O)})}(Q.value).then(m,A)}K((P=P.apply(E,L||[])).next())})},k=this&&this.__generator||function(E,L){var P,l,O,v,o={label:0,sent:function(){if(1&O[0])throw O[1];return O[1]},trys:[],ops:[]};return v={next:m(0),throw:m(1),return:m(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function m(K){return function(Q){return function A(K){if(P)throw new TypeError("Generator is already executing.");for(;o;)try{if(P=1,l&&(O=2&K[0]?l.return:K[0]?l.throw||((O=l.return)&&O.call(l),0):l.next)&&!(O=O.call(l,K[1])).done)return O;switch(l=0,O&&(K=[2&K[0],O.value]),K[0]){case 0:case 1:O=K;break;case 4:return o.label++,{value:K[1],done:!1};case 5:o.label++,l=K[1],K=[0];continue;case 7:K=o.ops.pop(),o.trys.pop();continue;default:if(!(O=(O=o.trys).length>0&&O[O.length-1])&&(6===K[0]||2===K[0])){o=0;continue}if(3===K[0]&&(!O||K[1]>O[0]&&K[1]<O[3])){o.label=K[1];break}if(6===K[0]&&o.label<O[1]){o.label=O[1],O=K;break}if(O&&o.label<O[2]){o.label=O[2],o.ops.push(K);break}O[2]&&o.ops.pop(),o.trys.pop();continue}K=L.call(E,o)}catch(Q){K=[6,Q],l=0}finally{P=O=0}if(5&K[0])throw K[1];return{value:K[0]?K[1]:void 0,done:!0}}([K,Q])}}};Object.defineProperty(_,"__esModule",{value:!0});var I=i(13539).rootLogger.extend("retry"),h=function(E){function L(o){var P=E.call(this,o)||this;return P.nonRetryable=!0,P}return y(L,E),L}(Error);function b(E,L,o,P){return void 0===P&&(P=1),N(this,void 0,void 0,function(){var l,O;return k(this,function(v){switch(v.label){case 0:I("Attempt #"+P+" for this vars: "+JSON.stringify(L)),v.label=1;case 1:return v.trys.push([1,3,,8]),[4,E.apply(void 0,L)];case 2:return v.sent(),[3,8];case 3:if(l=v.sent(),I("error "+l),function(E){return E&&E.nonRetryable}(l))throw I("non retryable error"),l;return O=o(P,L,l),I("retryIn ",O),!1===O?[3,6]:[4,new Promise(function(m){return setTimeout(m,O)})];case 4:return v.sent(),[4,b(E,L,o,P+1)];case 5:return[2,v.sent()];case 6:throw l;case 7:return[3,8];case 8:return[2]}})})}_.NonRetryableError=h,_.retry=b,_.jitteredExponentialRetry=function(E,L,o){return void 0===o&&(o=5e3),b(E,L,function M(E){return function(P){var l=100*Math.pow(2,P)+100*Math.random();return!(l>E)&&l}}(o))}},35931:function(ee){var i;ee.exports=(i=function(y){var k=y.localStorage||function(){var e={};return{setItem:function(t,s){e[t]=s},getItem:function(t){return e[t]},removeItem:function(t){delete e[t]}}}(),g_CONNECT=1,g_CONNACK=2,g_PUBLISH=3,g_PUBACK=4,g_PUBREC=5,g_PUBREL=6,g_PUBCOMP=7,g_SUBSCRIBE=8,g_SUBACK=9,g_UNSUBSCRIBE=10,g_UNSUBACK=11,g_PINGREQ=12,g_PINGRESP=13,g_DISCONNECT=14,I=function(e,t){for(var s in e)if(e.hasOwnProperty(s)){if(!t.hasOwnProperty(s)){var w="Unknown property, "+s+". Valid properties are:";for(var T in t)t.hasOwnProperty(T)&&(w=w+" "+T);throw new Error(w)}if(typeof e[s]!==t[s])throw new Error(b(h.INVALID_TYPE,[typeof e[s],s]))}},C=function(e,t){return function(){return e.apply(t,arguments)}},h={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},c={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},b=function(e,t){var s=e.text;if(t)for(var w,T,x=0;x<t.length;x++)if((T=s.indexOf(w="{"+x+"}"))>0){var G=s.substring(0,T),z=s.substring(T+w.length);s=G+t[x]+z}return s},M=[0,6,77,81,73,115,100,112,3],E=[0,4,77,81,84,84,4],L=function(e,t){for(var s in this.type=e,t)t.hasOwnProperty(s)&&(this[s]=t[s])};function o(e,t){var s=t,w=e[t],T=w>>4,x=w&=15;t+=1;var G,z=0,H=1;do{if(t==e.length)return[null,s];z+=(127&(G=e[t++]))*H,H*=128}while(128&G);var X=t+z;if(X>e.length)return[null,s];var Y=new L(T);switch(T){case g_CONNACK:1&e[t++]&&(Y.sessionPresent=!0),Y.returnCode=e[t++];break;case g_PUBLISH:var U=x>>1&3,r=O(e,t),d=K(e,t+=2,r);t+=r,U>0&&(Y.messageIdentifier=O(e,t),t+=2);var p=new i.Message(e.subarray(t,X));!(1&~x)&&(p.retained=!0),!(8&~x)&&(p.duplicate=!0),p.qos=U,p.destinationName=d,Y.payloadMessage=p;break;case g_PUBACK:case g_PUBREC:case g_PUBREL:case g_PUBCOMP:case g_UNSUBACK:Y.messageIdentifier=O(e,t);break;case g_SUBACK:Y.messageIdentifier=O(e,t),Y.returnCode=e.subarray(t+=2,X)}return[Y,X]}function P(e,t,s){return t[s++]=e>>8,t[s++]=e%256,s}function l(e,t,s,w){return A(e,s,w=P(t,s,w)),w+t}function O(e,t){return 256*e[t]+e[t+1]}function m(e){for(var t=0,s=0;s<e.length;s++){var w=e.charCodeAt(s);w>2047?(55296<=w&&w<=56319&&(s++,t++),t+=3):w>127?t+=2:t++}return t}function A(e,t,s){for(var w=s,T=0;T<e.length;T++){var x=e.charCodeAt(T);if(55296<=x&&x<=56319){var G=e.charCodeAt(++T);if(isNaN(G))throw new Error(b(h.MALFORMED_UNICODE,[x,G]));x=G-56320+(x-55296<<10)+65536}x<=127?t[w++]=x:x<=2047?(t[w++]=x>>6&31|192,t[w++]=63&x|128):x<=65535?(t[w++]=x>>12&15|224,t[w++]=x>>6&63|128,t[w++]=63&x|128):(t[w++]=x>>18&7|240,t[w++]=x>>12&63|128,t[w++]=x>>6&63|128,t[w++]=63&x|128)}return t}function K(e,t,s){for(var T,w="",x=t;x<t+s;){var G=e[x++];if(G<128)T=G;else{var z=e[x++]-128;if(z<0)throw new Error(b(h.MALFORMED_UTF,[G.toString(16),z.toString(16),""]));if(G<224)T=64*(G-192)+z;else{var H=e[x++]-128;if(H<0)throw new Error(b(h.MALFORMED_UTF,[G.toString(16),z.toString(16),H.toString(16)]));if(G<240)T=4096*(G-224)+64*z+H;else{var X=e[x++]-128;if(X<0)throw new Error(b(h.MALFORMED_UTF,[G.toString(16),z.toString(16),H.toString(16),X.toString(16)]));if(!(G<248))throw new Error(b(h.MALFORMED_UTF,[G.toString(16),z.toString(16),H.toString(16),X.toString(16)]));T=262144*(G-240)+4096*z+64*H+X}}}T>65535&&(T-=65536,w+=String.fromCharCode(55296+(T>>10)),T=56320+(1023&T)),w+=String.fromCharCode(T)}return w}L.prototype.encode=function(){var T,e=(15&this.type)<<4,t=0,s=[],w=0;switch(void 0!==this.messageIdentifier&&(t+=2),this.type){case g_CONNECT:switch(this.mqttVersion){case 3:t+=M.length+3;break;case 4:t+=E.length+3}t+=m(this.clientId)+2,void 0!==this.willMessage&&(t+=m(this.willMessage.destinationName)+2,(T=this.willMessage.payloadBytes)instanceof Uint8Array||(T=new Uint8Array(G)),t+=T.byteLength+2),void 0!==this.userName&&(t+=m(this.userName)+2),void 0!==this.password&&(t+=m(this.password)+2);break;case g_SUBSCRIBE:e|=2;for(var x=0;x<this.topics.length;x++)s[x]=m(this.topics[x]),t+=s[x]+2;t+=this.requestedQos.length;break;case g_UNSUBSCRIBE:for(e|=2,x=0;x<this.topics.length;x++)s[x]=m(this.topics[x]),t+=s[x]+2;break;case g_PUBREL:e|=2;break;case g_PUBLISH:this.payloadMessage.duplicate&&(e|=8),e=e|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(e|=1),t+=(w=m(this.payloadMessage.destinationName))+2;var G=this.payloadMessage.payloadBytes;t+=G.byteLength,G instanceof ArrayBuffer?G=new Uint8Array(G):G instanceof Uint8Array||(G=new Uint8Array(G.buffer))}var z=function v(e){var t=new Array(1),s=0;do{var w=e%128;(e>>=7)>0&&(w|=128),t[s++]=w}while(e>0&&s<4);return t}(t),H=z.length+1,X=new ArrayBuffer(t+H),Y=new Uint8Array(X);if(Y[0]=e,Y.set(z,1),this.type==g_PUBLISH)H=l(this.payloadMessage.destinationName,w,Y,H);else if(this.type==g_CONNECT){switch(this.mqttVersion){case 3:Y.set(M,H),H+=M.length;break;case 4:Y.set(E,H),H+=E.length}var j=0;this.cleanSession&&(j=2),void 0!==this.willMessage&&(j|=4,j|=this.willMessage.qos<<3,this.willMessage.retained&&(j|=32)),void 0!==this.userName&&(j|=128),void 0!==this.password&&(j|=64),Y[H++]=j,H=P(this.keepAliveInterval,Y,H)}switch(void 0!==this.messageIdentifier&&(H=P(this.messageIdentifier,Y,H)),this.type){case g_CONNECT:H=l(this.clientId,m(this.clientId),Y,H),void 0!==this.willMessage&&(H=l(this.willMessage.destinationName,m(this.willMessage.destinationName),Y,H),H=P(T.byteLength,Y,H),Y.set(T,H),H+=T.byteLength),void 0!==this.userName&&(H=l(this.userName,m(this.userName),Y,H)),void 0!==this.password&&(H=l(this.password,m(this.password),Y,H));break;case g_PUBLISH:Y.set(G,H);break;case g_SUBSCRIBE:for(x=0;x<this.topics.length;x++)H=l(this.topics[x],s[x],Y,H),Y[H++]=this.requestedQos[x];break;case g_UNSUBSCRIBE:for(x=0;x<this.topics.length;x++)H=l(this.topics[x],s[x],Y,H)}return X};var Q=function(e,t){this._client=e,this._keepAliveInterval=1e3*t,this.isReset=!1;var s=new L(g_PINGREQ).encode(),w=function(x){return function(){return T.apply(x)}},T=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(s),this.timeout=setTimeout(w(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(h.PING_TIMEOUT.code,b(h.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(w(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},W=function(e,t,s,w){var x,G,z;t||(t=30),this.timeout=setTimeout((x=s,G=e,z=w,function(){return x.apply(G,z)}),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},u=function(e,t,s,w,T){if(!("WebSocket"in y)||null===y.WebSocket)throw new Error(b(h.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in y)||null===y.ArrayBuffer)throw new Error(b(h.UNSUPPORTED,["ArrayBuffer"]));for(var x in this._trace("Paho.Client",e,t,s,w,T),this.host=t,this.port=s,this.path=w,this.uri=e,this.clientId=T,this._wsuri=null,this._localKey=t+":"+s+("/mqtt"!=w?":"+w:"")+":"+T+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,k)(0===x.indexOf("Sent:"+this._localKey)||0===x.indexOf("Received:"+this._localKey))&&this.restore(x)};u.prototype.host=null,u.prototype.port=null,u.prototype.path=null,u.prototype.uri=null,u.prototype.clientId=null,u.prototype.socket=null,u.prototype.connected=!1,u.prototype.maxMessageIdentifier=65536,u.prototype.connectOptions=null,u.prototype.hostIndex=null,u.prototype.onConnected=null,u.prototype.onConnectionLost=null,u.prototype.onMessageDelivered=null,u.prototype.onMessageArrived=null,u.prototype.traceFunction=null,u.prototype._msg_queue=null,u.prototype._buffered_msg_queue=null,u.prototype._connectTimeout=null,u.prototype.sendPinger=null,u.prototype.receivePinger=null,u.prototype._reconnectInterval=1,u.prototype._reconnecting=!1,u.prototype._reconnectTimeout=null,u.prototype.disconnectedPublishing=!1,u.prototype.disconnectedBufferSize=5e3,u.prototype.receiveBuffer=null,u.prototype._traceBuffer=null,u.prototype._MAX_TRACE_ENTRIES=100,u.prototype.connect=function(e){var t=this._traceMask(e,"password");if(this._trace("Client.connect",t,this.socket,this.connected),this.connected)throw new Error(b(h.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(b(h.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=e,this._reconnectInterval=1,this._reconnecting=!1,e.uris?(this.hostIndex=0,this._doConnect(e.uris[0])):this._doConnect(this.uri)},u.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(b(h.INVALID_STATE,["not connected"]));var s=new L(g_SUBSCRIBE);s.topics=[e],s.requestedQos=void 0!==t.qos?[t.qos]:[0],t.onSuccess&&(s.onSuccess=function(w){t.onSuccess({invocationContext:t.invocationContext,grantedQos:w})}),t.onFailure&&(s.onFailure=function(w){t.onFailure({invocationContext:t.invocationContext,errorCode:w,errorMessage:b(w)})}),t.timeout&&(s.timeOut=new W(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:h.SUBSCRIBE_TIMEOUT.code,errorMessage:b(h.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(s),this._schedule_message(s)},u.prototype.unsubscribe=function(e,t){if(this._trace("Client.unsubscribe",e,t),!this.connected)throw new Error(b(h.INVALID_STATE,["not connected"]));var s=new L(g_UNSUBSCRIBE);s.topics=[e],t.onSuccess&&(s.callback=function(){t.onSuccess({invocationContext:t.invocationContext})}),t.timeout&&(s.timeOut=new W(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:h.UNSUBSCRIBE_TIMEOUT.code,errorMessage:b(h.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(s),this._schedule_message(s)},u.prototype.send=function(e){this._trace("Client.send",e);var t=new L(g_PUBLISH);if(t.payloadMessage=e,this.connected)e.qos>0?this._requires_ack(t):this.onMessageDelivered&&(this._notify_msg_sent[t]=this.onMessageDelivered(t.payloadMessage)),this._schedule_message(t);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(b(h.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(b(h.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},u.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(b(h.INVALID_STATE,["not connecting or connected"]));var e=new L(g_DISCONNECT);this._notify_msg_sent[e]=C(this._disconnected,this),this._schedule_message(e)},u.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var e in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",e,this._sentMessages[e]);for(var e in this._receivedMessages)this._trace("_receivedMessages ",e,this._receivedMessages[e]);return this._traceBuffer}},u.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},u.prototype.stopTrace=function(){delete this._traceBuffer},u.prototype._doConnect=function(e){if(this.connectOptions.useSSL){var t=e.split(":");t[0]="wss",e=t.join(":")}this._wsuri=e,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(e,["mqttv3.1"]):new WebSocket(e,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=C(this._on_socket_open,this),this.socket.onmessage=C(this._on_socket_message,this),this.socket.onerror=C(this._on_socket_error,this),this.socket.onclose=C(this._on_socket_close,this),this.sendPinger=new Q(this,this.connectOptions.keepAliveInterval),this.receivePinger=new Q(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new W(this,this.connectOptions.timeout,this._disconnected,[h.CONNECT_TIMEOUT.code,b(h.CONNECT_TIMEOUT)])},u.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},u.prototype.store=function(e,t){var s={type:t.type,messageIdentifier:t.messageIdentifier,version:1};if(t.type!==g_PUBLISH)throw Error(b(h.INVALID_STORED_DATA,[e+this._localKey+t.messageIdentifier,s]));t.pubRecReceived&&(s.pubRecReceived=!0),s.payloadMessage={};for(var w="",T=t.payloadMessage.payloadBytes,x=0;x<T.length;x++)T[x]<=15?w=w+"0"+T[x].toString(16):w+=T[x].toString(16);s.payloadMessage.payloadHex=w,s.payloadMessage.qos=t.payloadMessage.qos,s.payloadMessage.destinationName=t.payloadMessage.destinationName,t.payloadMessage.duplicate&&(s.payloadMessage.duplicate=!0),t.payloadMessage.retained&&(s.payloadMessage.retained=!0),0===e.indexOf("Sent:")&&(void 0===t.sequence&&(t.sequence=++this._sequence),s.sequence=t.sequence),k.setItem(e+this._localKey+t.messageIdentifier,JSON.stringify(s))},u.prototype.restore=function(e){var t=k.getItem(e),s=JSON.parse(t),w=new L(s.type,s);if(s.type!==g_PUBLISH)throw Error(b(h.INVALID_STORED_DATA,[e,t]));for(var T=s.payloadMessage.payloadHex,x=new ArrayBuffer(T.length/2),G=new Uint8Array(x),z=0;T.length>=2;){var H=parseInt(T.substring(0,2),16);T=T.substring(2,T.length),G[z++]=H}var X=new i.Message(G);X.qos=s.payloadMessage.qos,X.destinationName=s.payloadMessage.destinationName,s.payloadMessage.duplicate&&(X.duplicate=!0),s.payloadMessage.retained&&(X.retained=!0),w.payloadMessage=X,0===e.indexOf("Sent:"+this._localKey)?(w.payloadMessage.duplicate=!0,this._sentMessages[w.messageIdentifier]=w):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[w.messageIdentifier]=w)},u.prototype._process_queue=function(){for(var e=null;e=this._msg_queue.pop();)this._socket_send(e),this._notify_msg_sent[e]&&(this._notify_msg_sent[e](),delete this._notify_msg_sent[e])},u.prototype._requires_ack=function(e){var t=Object.keys(this._sentMessages).length;if(t>this.maxMessageIdentifier)throw Error("Too many messages:"+t);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;e.messageIdentifier=this._message_identifier,this._sentMessages[e.messageIdentifier]=e,e.type===g_PUBLISH&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},u.prototype._on_socket_open=function(){var e=new L(g_CONNECT,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},u.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),s=0;s<t.length;s+=1)this._handleMessage(t[s])},u.prototype._deframeMessages=function(e){var t=new Uint8Array(e),s=[];if(this.receiveBuffer){var w=new Uint8Array(this.receiveBuffer.length+t.length);w.set(this.receiveBuffer),w.set(t,this.receiveBuffer.length),t=w,delete this.receiveBuffer}try{for(var T=0;T<t.length;){var x=o(t,T),G=x[0];if(T=x[1],null===G)break;s.push(G)}T<t.length&&(this.receiveBuffer=t.subarray(T))}catch(H){var z="undefined"==H.hasOwnProperty("stack")?H.stack.toString():"No Error Stack Available";return void this._disconnected(h.INTERNAL_ERROR.code,b(h.INTERNAL_ERROR,[H.message,z]))}return s},u.prototype._handleMessage=function(e){this._trace("Client._handleMessage",e);try{switch(e.type){case g_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var t in this._sentMessages)k.removeItem("Sent:"+this._localKey+(j=this._sentMessages[t]).messageIdentifier);for(var t in this._sentMessages={},this._receivedMessages)k.removeItem("Received:"+this._localKey+(X=this._receivedMessages[t]).messageIdentifier);this._receivedMessages={}}if(0!==e.returnCode){this._disconnected(h.CONNACK_RETURNCODE.code,b(h.CONNACK_RETURNCODE,[e.returnCode,c[e.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var T=[];for(var s in this._sentMessages)this._sentMessages.hasOwnProperty(s)&&T.push(this._sentMessages[s]);if(this._buffered_msg_queue.length>0)for(var w=null;w=this._buffered_msg_queue.pop();)T.push(w),this.onMessageDelivered&&(this._notify_msg_sent[w]=this.onMessageDelivered(w.payloadMessage));T=T.sort(function(r,d){return r.sequence-d.sequence});for(var x=0,G=T.length;x<G;x++)if((j=T[x]).type==g_PUBLISH&&j.pubRecReceived){var z=new L(g_PUBREL,{messageIdentifier:j.messageIdentifier});this._schedule_message(z)}else this._schedule_message(j);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var H=!1;this._reconnecting&&(H=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(H,this._wsuri),this._process_queue();break;case g_PUBLISH:this._receivePublish(e);break;case g_PUBACK:(j=this._sentMessages[e.messageIdentifier])&&(delete this._sentMessages[e.messageIdentifier],k.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(j.payloadMessage));break;case g_PUBREC:(j=this._sentMessages[e.messageIdentifier])&&(j.pubRecReceived=!0,z=new L(g_PUBREL,{messageIdentifier:e.messageIdentifier}),this.store("Sent:",j),this._schedule_message(z));break;case g_PUBREL:var X=this._receivedMessages[e.messageIdentifier];k.removeItem("Received:"+this._localKey+e.messageIdentifier),X&&(this._receiveMessage(X),delete this._receivedMessages[e.messageIdentifier]);var Y=new L(g_PUBCOMP,{messageIdentifier:e.messageIdentifier});this._schedule_message(Y);break;case g_PUBCOMP:var j=this._sentMessages[e.messageIdentifier];delete this._sentMessages[e.messageIdentifier],k.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(j.payloadMessage);break;case g_SUBACK:(j=this._sentMessages[e.messageIdentifier])&&(j.timeOut&&j.timeOut.cancel(),128===e.returnCode[0]?j.onFailure&&j.onFailure(e.returnCode):j.onSuccess&&j.onSuccess(e.returnCode),delete this._sentMessages[e.messageIdentifier]);break;case g_UNSUBACK:(j=this._sentMessages[e.messageIdentifier])&&(j.timeOut&&j.timeOut.cancel(),j.callback&&j.callback(),delete this._sentMessages[e.messageIdentifier]);break;case g_PINGRESP:this.sendPinger.reset();break;default:this._disconnected(h.INVALID_MQTT_MESSAGE_TYPE.code,b(h.INVALID_MQTT_MESSAGE_TYPE,[e.type]))}}catch(r){var U="undefined"==r.hasOwnProperty("stack")?r.stack.toString():"No Error Stack Available";return void this._disconnected(h.INTERNAL_ERROR.code,b(h.INTERNAL_ERROR,[r.message,U]))}},u.prototype._on_socket_error=function(e){this._reconnecting||this._disconnected(h.SOCKET_ERROR.code,b(h.SOCKET_ERROR,[e.data]))},u.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(h.SOCKET_CLOSE.code,b(h.SOCKET_CLOSE))},u.prototype._socket_send=function(e){if(1==e.type){var t=this._traceMask(e,"password");this._trace("Client._socket_send",t)}else this._trace("Client._socket_send",e);this.socket.send(e.encode()),this.sendPinger.reset()},u.prototype._receivePublish=function(e){switch(e.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(e);break;case 1:var t=new L(g_PUBACK,{messageIdentifier:e.messageIdentifier});this._schedule_message(t),this._receiveMessage(e);break;case 2:this._receivedMessages[e.messageIdentifier]=e,this.store("Received:",e);var s=new L(g_PUBREC,{messageIdentifier:e.messageIdentifier});this._schedule_message(s);break;default:throw Error("Invaild qos="+e.payloadMessage.qos)}},u.prototype._receiveMessage=function(e){this.onMessageArrived&&this.onMessageArrived(e.payloadMessage)},u.prototype._connected=function(e,t){this.onConnected&&this.onConnected(e,t)},u.prototype._reconnect=function(){this._trace("Client._reconnect"),this.connected||(this._reconnecting=!0,this.sendPinger.cancel(),this.receivePinger.cancel(),this._reconnectInterval<128&&(this._reconnectInterval=2*this._reconnectInterval),this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri))},u.prototype._disconnected=function(e,t){if(this._trace("Client._disconnected",e,t),void 0!==e&&this._reconnecting)this._reconnectTimeout=new W(this,this._reconnectInterval,this._reconnect);else if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===e&&(e=h.OK.code,t=b(h.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:e,errorMessage:t,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),e!==h.OK.code&&this.connectOptions.reconnect)return this._reconnectInterval=1,void this._reconnect()}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:e,errorMessage:t})},u.prototype._trace=function(){if(this.traceFunction){var e=Array.prototype.slice.call(arguments);for(var t in e)typeof e[t]<"u"&&e.splice(t,1,JSON.stringify(e[t]));var s=e.join("");this.traceFunction({severity:"Debug",message:s})}if(null!==this._traceBuffer){t=0;for(var w=arguments.length;t<w;t++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===t||typeof arguments[t]>"u"?arguments[t]:" "+JSON.stringify(arguments[t]))}},u.prototype._traceMask=function(e,t){var s={};for(var w in e)e.hasOwnProperty(w)&&(s[w]=w==t?"******":e[w]);return s};var n=function(e){var t;if(!("string"==typeof e||e instanceof ArrayBuffer||ArrayBuffer.isView(e)&&!(e instanceof DataView)))throw b(h.INVALID_ARGUMENT,[e,"newPayload"]);t=e;var s,w=0,T=!1,x=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof t?t:K(t,0,t.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof t){var G=new ArrayBuffer(m(t)),z=new Uint8Array(G);return A(t,z,0),z}return t}},destinationName:{enumerable:!0,get:function(){return s},set:function(G){if("string"!=typeof G)throw new Error(b(h.INVALID_ARGUMENT,[G,"newDestinationName"]));s=G}},qos:{enumerable:!0,get:function(){return w},set:function(G){if(0!==G&&1!==G&&2!==G)throw new Error("Invalid argument:"+G);w=G}},retained:{enumerable:!0,get:function(){return T},set:function(G){if("boolean"!=typeof G)throw new Error(b(h.INVALID_ARGUMENT,[G,"newRetained"]));T=G}},topic:{enumerable:!0,get:function(){return s},set:function(G){s=G}},duplicate:{enumerable:!0,get:function(){return x},set:function(G){x=G}}})};return{Client:function(e,t,s,w){var T;if("string"!=typeof e)throw new Error(b(h.INVALID_TYPE,[typeof e,"host"]));if(2==arguments.length){w=t;var x=(T=e).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!x)throw new Error(b(h.INVALID_ARGUMENT,[e,"host"]));e=x[4]||x[2],t=parseInt(x[7]),s=x[8]}else{if(3==arguments.length&&(w=s,s="/mqtt"),"number"!=typeof t||t<0)throw new Error(b(h.INVALID_TYPE,[typeof t,"port"]));if("string"!=typeof s)throw new Error(b(h.INVALID_TYPE,[typeof s,"path"]));var G=-1!==e.indexOf(":")&&"["!==e.slice(0,1)&&"]"!==e.slice(-1);T="ws://"+(G?"["+e+"]":e)+":"+t+s}for(var z=0,H=0;H<w.length;H++){var X=w.charCodeAt(H);55296<=X&&X<=56319&&H++,z++}if("string"!=typeof w||z>65535)throw new Error(b(h.INVALID_ARGUMENT,[w,"clientId"]));var Y=new u(T,e,t,s,w);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(b(h.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(b(h.UNSUPPORTED_OPERATION))}},path:{get:function(){return s},set:function(){throw new Error(b(h.UNSUPPORTED_OPERATION))}},uri:{get:function(){return T},set:function(){throw new Error(b(h.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return Y.clientId},set:function(){throw new Error(b(h.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return Y.onConnected},set:function(j){if("function"!=typeof j)throw new Error(b(h.INVALID_TYPE,[typeof j,"onConnected"]));Y.onConnected=j}},disconnectedPublishing:{get:function(){return Y.disconnectedPublishing},set:function(j){Y.disconnectedPublishing=j}},disconnectedBufferSize:{get:function(){return Y.disconnectedBufferSize},set:function(j){Y.disconnectedBufferSize=j}},onConnectionLost:{get:function(){return Y.onConnectionLost},set:function(j){if("function"!=typeof j)throw new Error(b(h.INVALID_TYPE,[typeof j,"onConnectionLost"]));Y.onConnectionLost=j}},onMessageDelivered:{get:function(){return Y.onMessageDelivered},set:function(j){if("function"!=typeof j)throw new Error(b(h.INVALID_TYPE,[typeof j,"onMessageDelivered"]));Y.onMessageDelivered=j}},onMessageArrived:{get:function(){return Y.onMessageArrived},set:function(j){if("function"!=typeof j)throw new Error(b(h.INVALID_TYPE,[typeof j,"onMessageArrived"]));Y.onMessageArrived=j}},trace:{get:function(){return Y.traceFunction},set:function(j){if("function"!=typeof j)throw new Error(b(h.INVALID_TYPE,[typeof j,"onTrace"]));Y.traceFunction=j}}}),this.connect=function(j){if(I(j=j||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===j.keepAliveInterval&&(j.keepAliveInterval=60),j.mqttVersion>4||j.mqttVersion<3)throw new Error(b(h.INVALID_ARGUMENT,[j.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===j.mqttVersion?(j.mqttVersionExplicit=!1,j.mqttVersion=4):j.mqttVersionExplicit=!0,void 0!==j.password&&void 0===j.userName)throw new Error(b(h.INVALID_ARGUMENT,[j.password,"connectOptions.password"]));if(j.willMessage){if(!(j.willMessage instanceof n))throw new Error(b(h.INVALID_TYPE,[j.willMessage,"connectOptions.willMessage"]));if(j.willMessage.stringPayload=null,typeof j.willMessage.destinationName>"u")throw new Error(b(h.INVALID_TYPE,[typeof j.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof j.cleanSession>"u"&&(j.cleanSession=!0),j.hosts){if(!(j.hosts instanceof Array))throw new Error(b(h.INVALID_ARGUMENT,[j.hosts,"connectOptions.hosts"]));if(j.hosts.length<1)throw new Error(b(h.INVALID_ARGUMENT,[j.hosts,"connectOptions.hosts"]));for(var U=!1,r=0;r<j.hosts.length;r++){if("string"!=typeof j.hosts[r])throw new Error(b(h.INVALID_TYPE,[typeof j.hosts[r],"connectOptions.hosts["+r+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(j.hosts[r])){if(0===r)U=!0;else if(!U)throw new Error(b(h.INVALID_ARGUMENT,[j.hosts[r],"connectOptions.hosts["+r+"]"]))}else if(U)throw new Error(b(h.INVALID_ARGUMENT,[j.hosts[r],"connectOptions.hosts["+r+"]"]))}if(U)j.uris=j.hosts;else{if(!j.ports)throw new Error(b(h.INVALID_ARGUMENT,[j.ports,"connectOptions.ports"]));if(!(j.ports instanceof Array))throw new Error(b(h.INVALID_ARGUMENT,[j.ports,"connectOptions.ports"]));if(j.hosts.length!==j.ports.length)throw new Error(b(h.INVALID_ARGUMENT,[j.ports,"connectOptions.ports"]));for(j.uris=[],r=0;r<j.hosts.length;r++){if("number"!=typeof j.ports[r]||j.ports[r]<0)throw new Error(b(h.INVALID_TYPE,[typeof j.ports[r],"connectOptions.ports["+r+"]"]));var d=j.hosts[r],p=j.ports[r],S=-1!==d.indexOf(":");j.uris.push(T="ws://"+(S?"["+d+"]":d)+":"+p+s)}}}Y.connect(j)},this.subscribe=function(j,U){if("string"!=typeof j)throw new Error("Invalid argument:"+j);if(I(U=U||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),U.timeout&&!U.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof U.qos<"u"&&0!==U.qos&&1!==U.qos&&2!==U.qos)throw new Error(b(h.INVALID_ARGUMENT,[U.qos,"subscribeOptions.qos"]));Y.subscribe(j,U)},this.unsubscribe=function(j,U){if("string"!=typeof j)throw new Error("Invalid argument:"+j);if(I(U=U||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),U.timeout&&!U.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");Y.unsubscribe(j,U)},this.send=function(j,U,r,d){var p;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(j instanceof n)&&"string"!=typeof j)throw new Error("Invalid argument:"+typeof j);if(typeof(p=j).destinationName>"u")throw new Error(b(h.INVALID_ARGUMENT,[p.destinationName,"Message.destinationName"]));Y.send(p)}else(p=new n(U)).destinationName=j,arguments.length>=3&&(p.qos=r),arguments.length>=4&&(p.retained=d),Y.send(p)},this.publish=function(j,U,r,d){var p;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(j instanceof n)&&"string"!=typeof j)throw new Error("Invalid argument:"+typeof j);if(typeof(p=j).destinationName>"u")throw new Error(b(h.INVALID_ARGUMENT,[p.destinationName,"Message.destinationName"]));Y.send(p)}else(p=new n(U)).destinationName=j,arguments.length>=3&&(p.qos=r),arguments.length>=4&&(p.retained=d),Y.send(p)},this.disconnect=function(){Y.disconnect()},this.getTraceLog=function(){return Y.getTraceLog()},this.startTrace=function(){Y.startTrace()},this.stopTrace=function(){Y.stopTrace()},this.isConnected=function(){return Y.connected}},Message:n}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),i)},11216:(ee,_)=>{"use strict";_.byteLength=function h(o){var P=C(o),O=P[1];return 3*(P[0]+O)/4-O},_.toByteArray=function b(o){var P,Q,l=C(o),O=l[0],v=l[1],m=new N(function c(o,P,l){return 3*(P+l)/4-l}(0,O,v)),A=0,K=v>0?O-4:O;for(Q=0;Q<K;Q+=4)P=y[o.charCodeAt(Q)]<<18|y[o.charCodeAt(Q+1)]<<12|y[o.charCodeAt(Q+2)]<<6|y[o.charCodeAt(Q+3)],m[A++]=P>>16&255,m[A++]=P>>8&255,m[A++]=255&P;return 2===v&&(P=y[o.charCodeAt(Q)]<<2|y[o.charCodeAt(Q+1)]>>4,m[A++]=255&P),1===v&&(P=y[o.charCodeAt(Q)]<<10|y[o.charCodeAt(Q+1)]<<4|y[o.charCodeAt(Q+2)]>>2,m[A++]=P>>8&255,m[A++]=255&P),m},_.fromByteArray=function L(o){for(var P,l=o.length,O=l%3,v=[],m=16383,A=0,K=l-O;A<K;A+=m)v.push(E(o,A,A+m>K?K:A+m));return 1===O?v.push(i[(P=o[l-1])>>2]+i[P<<4&63]+"=="):2===O&&v.push(i[(P=(o[l-2]<<8)+o[l-1])>>10]+i[P>>4&63]+i[P<<2&63]+"="),v.join("")};for(var i=[],y=[],N=typeof Uint8Array<"u"?Uint8Array:Array,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0;g<64;++g)i[g]=k[g],y[k.charCodeAt(g)]=g;function C(o){var P=o.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var l=o.indexOf("=");return-1===l&&(l=P),[l,l===P?0:4-l%4]}function M(o){return i[o>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]}function E(o,P,l){for(var v=[],m=P;m<l;m+=3)v.push(M((o[m]<<16&16711680)+(o[m+1]<<8&65280)+(255&o[m+2])));return v.join("")}y[45]=62,y[95]=63},32718:(ee,_,i)=>{"use strict";var N=i(11216),k=i(1025),g=i(55456);function C(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function h(F,a){if(C()<a)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(F=new Uint8Array(a)).__proto__=c.prototype:(null===F&&(F=new c(a)),F.length=a),F}function c(F,a,f){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(F,a,f);if("number"==typeof F){if("string"==typeof a)throw new Error("If encoding is specified then the first argument must be a string");return L(this,F)}return b(this,F,a,f)}function b(F,a,f,V){if("number"==typeof a)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer?function l(F,a,f,V){if(f<0||a.byteLength<f)throw new RangeError("'offset' is out of bounds");if(a.byteLength<f+(V||0))throw new RangeError("'length' is out of bounds");return a=void 0===f&&void 0===V?new Uint8Array(a):void 0===V?new Uint8Array(a,f):new Uint8Array(a,f,V),c.TYPED_ARRAY_SUPPORT?(F=a).__proto__=c.prototype:F=P(F,a),F}(F,a,f,V):"string"==typeof a?function o(F,a,f){if(("string"!=typeof f||""===f)&&(f="utf8"),!c.isEncoding(f))throw new TypeError('"encoding" must be a valid string encoding');var V=0|A(a,f),J=(F=h(F,V)).write(a,f);return J!==V&&(F=F.slice(0,J)),F}(F,a,f):function O(F,a){if(c.isBuffer(a)){var f=0|v(a.length);return 0===(F=h(F,f)).length||a.copy(F,0,0,f),F}if(a){if(typeof ArrayBuffer<"u"&&a.buffer instanceof ArrayBuffer||"length"in a)return"number"!=typeof a.length||function ce(F){return F!=F}(a.length)?h(F,0):P(F,a);if("Buffer"===a.type&&g(a.data))return P(F,a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(F,a)}function M(F){if("number"!=typeof F)throw new TypeError('"size" argument must be a number');if(F<0)throw new RangeError('"size" argument must not be negative')}function L(F,a){if(M(a),F=h(F,a<0?0:0|v(a)),!c.TYPED_ARRAY_SUPPORT)for(var f=0;f<a;++f)F[f]=0;return F}function P(F,a){var f=a.length<0?0:0|v(a.length);F=h(F,f);for(var V=0;V<f;V+=1)F[V]=255&a[V];return F}function v(F){if(F>=C())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C().toString(16)+" bytes");return 0|F}function A(F,a){if(c.isBuffer(F))return F.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(F)||F instanceof ArrayBuffer))return F.byteLength;"string"!=typeof F&&(F=""+F);var f=F.length;if(0===f)return 0;for(var V=!1;;)switch(a){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":case void 0:return ae(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return ue(F).length;default:if(V)return ae(F).length;a=(""+a).toLowerCase(),V=!0}}function K(F,a,f){var V=!1;if((void 0===a||a<0)&&(a=0),a>this.length||((void 0===f||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(a>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return Y(this,a,f);case"utf8":case"utf-8":return x(this,a,f);case"ascii":return H(this,a,f);case"latin1":case"binary":return X(this,a,f);case"base64":return T(this,a,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,a,f);default:if(V)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),V=!0}}function Q(F,a,f){var V=F[a];F[a]=F[f],F[f]=V}function W(F,a,f,V,J){if(0===F.length)return-1;if("string"==typeof f?(V=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,isNaN(f)&&(f=J?0:F.length-1),f<0&&(f=F.length+f),f>=F.length){if(J)return-1;f=F.length-1}else if(f<0){if(!J)return-1;f=0}if("string"==typeof a&&(a=c.from(a,V)),c.isBuffer(a))return 0===a.length?-1:u(F,a,f,V,J);if("number"==typeof a)return a&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?J?Uint8Array.prototype.indexOf.call(F,a,f):Uint8Array.prototype.lastIndexOf.call(F,a,f):u(F,[a],f,V,J);throw new TypeError("val must be string, number or Buffer")}function u(F,a,f,V,J){var he,te=1,re=F.length,fe=a.length;if(void 0!==V&&("ucs2"===(V=String(V).toLowerCase())||"ucs-2"===V||"utf16le"===V||"utf-16le"===V)){if(F.length<2||a.length<2)return-1;te=2,re/=2,fe/=2,f/=2}function le(ye,me){return 1===te?ye[me]:ye.readUInt16BE(me*te)}if(J){var ve=-1;for(he=f;he<re;he++)if(le(F,he)===le(a,-1===ve?0:he-ve)){if(-1===ve&&(ve=he),he-ve+1===fe)return ve*te}else-1!==ve&&(he-=he-ve),ve=-1}else for(f+fe>re&&(f=re-fe),he=f;he>=0;he--){for(var de=!0,pe=0;pe<fe;pe++)if(le(F,he+pe)!==le(a,pe)){de=!1;break}if(de)return he}return-1}function R(F,a,f,V){f=Number(f)||0;var J=F.length-f;V?(V=Number(V))>J&&(V=J):V=J;var te=a.length;if(te%2!=0)throw new TypeError("Invalid hex string");V>te/2&&(V=te/2);for(var re=0;re<V;++re){var fe=parseInt(a.substr(2*re,2),16);if(isNaN(fe))return re;F[f+re]=fe}return re}function n(F,a,f,V){return oe(ae(a,F.length-f),F,f,V)}function e(F,a,f,V){return oe(function ie(F){for(var a=[],f=0;f<F.length;++f)a.push(255&F.charCodeAt(f));return a}(a),F,f,V)}function t(F,a,f,V){return e(F,a,f,V)}function s(F,a,f,V){return oe(ue(a),F,f,V)}function w(F,a,f,V){return oe(function se(F,a){for(var f,V,te=[],re=0;re<F.length&&!((a-=2)<0);++re)V=(f=F.charCodeAt(re))>>8,te.push(f%256),te.push(V);return te}(a,F.length-f),F,f,V)}function T(F,a,f){return N.fromByteArray(0===a&&f===F.length?F:F.slice(a,f))}function x(F,a,f){f=Math.min(F.length,f);for(var V=[],J=a;J<f;){var le,he,ve,de,te=F[J],re=null,fe=te>239?4:te>223?3:te>191?2:1;if(J+fe<=f)switch(fe){case 1:te<128&&(re=te);break;case 2:128==(192&(le=F[J+1]))&&(de=(31&te)<<6|63&le)>127&&(re=de);break;case 3:he=F[J+2],128==(192&(le=F[J+1]))&&128==(192&he)&&(de=(15&te)<<12|(63&le)<<6|63&he)>2047&&(de<55296||de>57343)&&(re=de);break;case 4:he=F[J+2],ve=F[J+3],128==(192&(le=F[J+1]))&&128==(192&he)&&128==(192&ve)&&(de=(15&te)<<18|(63&le)<<12|(63&he)<<6|63&ve)>65535&&de<1114112&&(re=de)}null===re?(re=65533,fe=1):re>65535&&(V.push((re-=65536)>>>10&1023|55296),re=56320|1023&re),V.push(re),J+=fe}return function z(F){var a=F.length;if(a<=G)return String.fromCharCode.apply(String,F);for(var f="",V=0;V<a;)f+=String.fromCharCode.apply(String,F.slice(V,V+=G));return f}(V)}_.hp=c,_.IS=50,c.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function I(){try{var F=new Uint8Array(1);return F.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===F.foo()&&"function"==typeof F.subarray&&0===F.subarray(1,1).byteLength}catch{return!1}}(),C(),c.poolSize=8192,c._augment=function(F){return F.__proto__=c.prototype,F},c.from=function(F,a,f){return b(null,F,a,f)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(F,a,f){return function E(F,a,f,V){return M(a),a<=0?h(F,a):void 0!==f?"string"==typeof V?h(F,a).fill(f,V):h(F,a).fill(f):h(F,a)}(null,F,a,f)},c.allocUnsafe=function(F){return L(null,F)},c.allocUnsafeSlow=function(F){return L(null,F)},c.isBuffer=function(a){return!(null==a||!a._isBuffer)},c.compare=function(a,f){if(!c.isBuffer(a)||!c.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(a===f)return 0;for(var V=a.length,J=f.length,te=0,re=Math.min(V,J);te<re;++te)if(a[te]!==f[te]){V=a[te],J=f[te];break}return V<J?-1:J<V?1:0},c.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(a,f){if(!g(a))throw new TypeError('"list" argument must be an Array of Buffers');if(0===a.length)return c.alloc(0);var V;if(void 0===f)for(f=0,V=0;V<a.length;++V)f+=a[V].length;var J=c.allocUnsafe(f),te=0;for(V=0;V<a.length;++V){var re=a[V];if(!c.isBuffer(re))throw new TypeError('"list" argument must be an Array of Buffers');re.copy(J,te),te+=re.length}return J},c.byteLength=A,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var a=this.length;if(a%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<a;f+=2)Q(this,f,f+1);return this},c.prototype.swap32=function(){var a=this.length;if(a%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<a;f+=4)Q(this,f,f+3),Q(this,f+1,f+2);return this},c.prototype.swap64=function(){var a=this.length;if(a%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<a;f+=8)Q(this,f,f+7),Q(this,f+1,f+6),Q(this,f+2,f+5),Q(this,f+3,f+4);return this},c.prototype.toString=function(){var a=0|this.length;return 0===a?"":0===arguments.length?x(this,0,a):K.apply(this,arguments)},c.prototype.equals=function(a){if(!c.isBuffer(a))throw new TypeError("Argument must be a Buffer");return this===a||0===c.compare(this,a)},c.prototype.inspect=function(){var a="",f=_.IS;return this.length>0&&(a=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(a+=" ... ")),"<Buffer "+a+">"},c.prototype.compare=function(a,f,V,J,te){if(!c.isBuffer(a))throw new TypeError("Argument must be a Buffer");if(void 0===f&&(f=0),void 0===V&&(V=a?a.length:0),void 0===J&&(J=0),void 0===te&&(te=this.length),f<0||V>a.length||J<0||te>this.length)throw new RangeError("out of range index");if(J>=te&&f>=V)return 0;if(J>=te)return-1;if(f>=V)return 1;if(this===a)return 0;for(var re=(te>>>=0)-(J>>>=0),fe=(V>>>=0)-(f>>>=0),le=Math.min(re,fe),he=this.slice(J,te),ve=a.slice(f,V),de=0;de<le;++de)if(he[de]!==ve[de]){re=he[de],fe=ve[de];break}return re<fe?-1:fe<re?1:0},c.prototype.includes=function(a,f,V){return-1!==this.indexOf(a,f,V)},c.prototype.indexOf=function(a,f,V){return W(this,a,f,V,!0)},c.prototype.lastIndexOf=function(a,f,V){return W(this,a,f,V,!1)},c.prototype.write=function(a,f,V,J){if(void 0===f)J="utf8",V=this.length,f=0;else if(void 0===V&&"string"==typeof f)J=f,V=this.length,f=0;else{if(!isFinite(f))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");f|=0,isFinite(V)?(V|=0,void 0===J&&(J="utf8")):(J=V,V=void 0)}var te=this.length-f;if((void 0===V||V>te)&&(V=te),a.length>0&&(V<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var re=!1;;)switch(J){case"hex":return R(this,a,f,V);case"utf8":case"utf-8":return n(this,a,f,V);case"ascii":return e(this,a,f,V);case"latin1":case"binary":return t(this,a,f,V);case"base64":return s(this,a,f,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,a,f,V);default:if(re)throw new TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),re=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var G=4096;function H(F,a,f){var V="";f=Math.min(F.length,f);for(var J=a;J<f;++J)V+=String.fromCharCode(127&F[J]);return V}function X(F,a,f){var V="";f=Math.min(F.length,f);for(var J=a;J<f;++J)V+=String.fromCharCode(F[J]);return V}function Y(F,a,f){var V=F.length;(!a||a<0)&&(a=0),(!f||f<0||f>V)&&(f=V);for(var J="",te=a;te<f;++te)J+=ne(F[te]);return J}function j(F,a,f){for(var V=F.slice(a,f),J="",te=0;te<V.length;te+=2)J+=String.fromCharCode(V[te]+256*V[te+1]);return J}function U(F,a,f){if(F%1!=0||F<0)throw new RangeError("offset is not uint");if(F+a>f)throw new RangeError("Trying to access beyond buffer length")}function r(F,a,f,V,J,te){if(!c.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(a>J||a<te)throw new RangeError('"value" argument is out of bounds');if(f+V>F.length)throw new RangeError("Index out of range")}function d(F,a,f,V){a<0&&(a=65535+a+1);for(var J=0,te=Math.min(F.length-f,2);J<te;++J)F[f+J]=(a&255<<8*(V?J:1-J))>>>8*(V?J:1-J)}function p(F,a,f,V){a<0&&(a=4294967295+a+1);for(var J=0,te=Math.min(F.length-f,4);J<te;++J)F[f+J]=a>>>8*(V?J:3-J)&255}function S(F,a,f,V,J,te){if(f+V>F.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function D(F,a,f,V,J){return J||S(F,0,f,4),k.write(F,a,f,V,23,4),f+4}function B(F,a,f,V,J){return J||S(F,0,f,8),k.write(F,a,f,V,52,8),f+8}c.prototype.slice=function(a,f){var J,V=this.length;if((a=~~a)<0?(a+=V)<0&&(a=0):a>V&&(a=V),(f=void 0===f?V:~~f)<0?(f+=V)<0&&(f=0):f>V&&(f=V),f<a&&(f=a),c.TYPED_ARRAY_SUPPORT)(J=this.subarray(a,f)).__proto__=c.prototype;else{var te=f-a;J=new c(te,void 0);for(var re=0;re<te;++re)J[re]=this[re+a]}return J},c.prototype.readUIntLE=function(a,f,V){a|=0,f|=0,V||U(a,f,this.length);for(var J=this[a],te=1,re=0;++re<f&&(te*=256);)J+=this[a+re]*te;return J},c.prototype.readUIntBE=function(a,f,V){a|=0,f|=0,V||U(a,f,this.length);for(var J=this[a+--f],te=1;f>0&&(te*=256);)J+=this[a+--f]*te;return J},c.prototype.readUInt8=function(a,f){return f||U(a,1,this.length),this[a]},c.prototype.readUInt16LE=function(a,f){return f||U(a,2,this.length),this[a]|this[a+1]<<8},c.prototype.readUInt16BE=function(a,f){return f||U(a,2,this.length),this[a]<<8|this[a+1]},c.prototype.readUInt32LE=function(a,f){return f||U(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},c.prototype.readUInt32BE=function(a,f){return f||U(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},c.prototype.readIntLE=function(a,f,V){a|=0,f|=0,V||U(a,f,this.length);for(var J=this[a],te=1,re=0;++re<f&&(te*=256);)J+=this[a+re]*te;return J>=(te*=128)&&(J-=Math.pow(2,8*f)),J},c.prototype.readIntBE=function(a,f,V){a|=0,f|=0,V||U(a,f,this.length);for(var J=f,te=1,re=this[a+--J];J>0&&(te*=256);)re+=this[a+--J]*te;return re>=(te*=128)&&(re-=Math.pow(2,8*f)),re},c.prototype.readInt8=function(a,f){return f||U(a,1,this.length),128&this[a]?-1*(255-this[a]+1):this[a]},c.prototype.readInt16LE=function(a,f){f||U(a,2,this.length);var V=this[a]|this[a+1]<<8;return 32768&V?4294901760|V:V},c.prototype.readInt16BE=function(a,f){f||U(a,2,this.length);var V=this[a+1]|this[a]<<8;return 32768&V?4294901760|V:V},c.prototype.readInt32LE=function(a,f){return f||U(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},c.prototype.readInt32BE=function(a,f){return f||U(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},c.prototype.readFloatLE=function(a,f){return f||U(a,4,this.length),k.read(this,a,!0,23,4)},c.prototype.readFloatBE=function(a,f){return f||U(a,4,this.length),k.read(this,a,!1,23,4)},c.prototype.readDoubleLE=function(a,f){return f||U(a,8,this.length),k.read(this,a,!0,52,8)},c.prototype.readDoubleBE=function(a,f){return f||U(a,8,this.length),k.read(this,a,!1,52,8)},c.prototype.writeUIntLE=function(a,f,V,J){a=+a,f|=0,V|=0,J||r(this,a,f,V,Math.pow(2,8*V)-1,0);var re=1,fe=0;for(this[f]=255&a;++fe<V&&(re*=256);)this[f+fe]=a/re&255;return f+V},c.prototype.writeUIntBE=function(a,f,V,J){a=+a,f|=0,V|=0,J||r(this,a,f,V,Math.pow(2,8*V)-1,0);var re=V-1,fe=1;for(this[f+re]=255&a;--re>=0&&(fe*=256);)this[f+re]=a/fe&255;return f+V},c.prototype.writeUInt8=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,1,255,0),c.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[f]=255&a,f+1},c.prototype.writeUInt16LE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[f]=255&a,this[f+1]=a>>>8):d(this,a,f,!0),f+2},c.prototype.writeUInt16BE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[f]=a>>>8,this[f+1]=255&a):d(this,a,f,!1),f+2},c.prototype.writeUInt32LE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[f+3]=a>>>24,this[f+2]=a>>>16,this[f+1]=a>>>8,this[f]=255&a):p(this,a,f,!0),f+4},c.prototype.writeUInt32BE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[f]=a>>>24,this[f+1]=a>>>16,this[f+2]=a>>>8,this[f+3]=255&a):p(this,a,f,!1),f+4},c.prototype.writeIntLE=function(a,f,V,J){if(a=+a,f|=0,!J){var te=Math.pow(2,8*V-1);r(this,a,f,V,te-1,-te)}var re=0,fe=1,le=0;for(this[f]=255&a;++re<V&&(fe*=256);)a<0&&0===le&&0!==this[f+re-1]&&(le=1),this[f+re]=(a/fe|0)-le&255;return f+V},c.prototype.writeIntBE=function(a,f,V,J){if(a=+a,f|=0,!J){var te=Math.pow(2,8*V-1);r(this,a,f,V,te-1,-te)}var re=V-1,fe=1,le=0;for(this[f+re]=255&a;--re>=0&&(fe*=256);)a<0&&0===le&&0!==this[f+re+1]&&(le=1),this[f+re]=(a/fe|0)-le&255;return f+V},c.prototype.writeInt8=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,1,127,-128),c.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[f]=255&a,f+1},c.prototype.writeInt16LE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[f]=255&a,this[f+1]=a>>>8):d(this,a,f,!0),f+2},c.prototype.writeInt16BE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[f]=a>>>8,this[f+1]=255&a):d(this,a,f,!1),f+2},c.prototype.writeInt32LE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[f]=255&a,this[f+1]=a>>>8,this[f+2]=a>>>16,this[f+3]=a>>>24):p(this,a,f,!0),f+4},c.prototype.writeInt32BE=function(a,f,V){return a=+a,f|=0,V||r(this,a,f,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),c.TYPED_ARRAY_SUPPORT?(this[f]=a>>>24,this[f+1]=a>>>16,this[f+2]=a>>>8,this[f+3]=255&a):p(this,a,f,!1),f+4},c.prototype.writeFloatLE=function(a,f,V){return D(this,a,f,!0,V)},c.prototype.writeFloatBE=function(a,f,V){return D(this,a,f,!1,V)},c.prototype.writeDoubleLE=function(a,f,V){return B(this,a,f,!0,V)},c.prototype.writeDoubleBE=function(a,f,V){return B(this,a,f,!1,V)},c.prototype.copy=function(a,f,V,J){if(V||(V=0),!J&&0!==J&&(J=this.length),f>=a.length&&(f=a.length),f||(f=0),J>0&&J<V&&(J=V),J===V||0===a.length||0===this.length)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("sourceStart out of bounds");if(J<0)throw new RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),a.length-f<J-V&&(J=a.length-f+V);var re,te=J-V;if(this===a&&V<f&&f<J)for(re=te-1;re>=0;--re)a[re+f]=this[re+V];else if(te<1e3||!c.TYPED_ARRAY_SUPPORT)for(re=0;re<te;++re)a[re+f]=this[re+V];else Uint8Array.prototype.set.call(a,this.subarray(V,V+te),f);return te},c.prototype.fill=function(a,f,V,J){if("string"==typeof a){if("string"==typeof f?(J=f,f=0,V=this.length):"string"==typeof V&&(J=V,V=this.length),1===a.length){var te=a.charCodeAt(0);te<256&&(a=te)}if(void 0!==J&&"string"!=typeof J)throw new TypeError("encoding must be a string");if("string"==typeof J&&!c.isEncoding(J))throw new TypeError("Unknown encoding: "+J)}else"number"==typeof a&&(a&=255);if(f<0||this.length<f||this.length<V)throw new RangeError("Out of range index");if(V<=f)return this;var re;if(f>>>=0,V=void 0===V?this.length:V>>>0,a||(a=0),"number"==typeof a)for(re=f;re<V;++re)this[re]=a;else{var fe=c.isBuffer(a)?a:ae(new c(a,J).toString()),le=fe.length;for(re=0;re<V-f;++re)this[re+f]=fe[re%le]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function ne(F){return F<16?"0"+F.toString(16):F.toString(16)}function ae(F,a){a=a||1/0;for(var f,V=F.length,J=null,te=[],re=0;re<V;++re){if((f=F.charCodeAt(re))>55295&&f<57344){if(!J){if(f>56319){(a-=3)>-1&&te.push(239,191,189);continue}if(re+1===V){(a-=3)>-1&&te.push(239,191,189);continue}J=f;continue}if(f<56320){(a-=3)>-1&&te.push(239,191,189),J=f;continue}f=65536+(J-55296<<10|f-56320)}else J&&(a-=3)>-1&&te.push(239,191,189);if(J=null,f<128){if((a-=1)<0)break;te.push(f)}else if(f<2048){if((a-=2)<0)break;te.push(f>>6|192,63&f|128)}else if(f<65536){if((a-=3)<0)break;te.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((a-=4)<0)break;te.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return te}function ue(F){return N.toByteArray(function $(F){if((F=function Z(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(F).replace(q,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F}(F))}function oe(F,a,f,V){for(var J=0;J<V&&!(J+f>=a.length||J>=F.length);++J)a[J+f]=F[J];return J}},77177:(ee,_,i)=>{function I(){var h;try{h=_.storage.debug}catch{}return!h&&typeof process<"u"&&"env"in process&&(h=process.env.DEBUG),h}(_=ee.exports=i(4438)).log=function k(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},_.formatArgs=function N(h){var c=this.useColors;if(h[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+h[0]+(c?"%c ":" ")+"+"+_.humanize(this.diff),c){var b="color: "+this.color;h.splice(1,0,b,"color: inherit");var M=0,E=0;h[0].replace(/%[a-zA-Z%]/g,function(L){"%%"!==L&&(M++,"%c"===L&&(E=M))}),h.splice(E,0,b)}},_.save=function g(h){try{null==h?_.storage.removeItem("debug"):_.storage.debug=h}catch{}},_.load=I,_.useColors=function y(){return!!(typeof window<"u"&&window.process&&"renderer"===window.process.type)||typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},_.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function C(){try{return window.localStorage}catch{}}(),_.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],_.formatters.j=function(h){try{return JSON.stringify(h)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}},_.enable(I())},4438:(ee,_,i)=>{var y;function k(c){function b(){if(b.enabled){var M=b,E=+new Date;M.diff=E-(y||E),M.prev=y,M.curr=E,y=E;for(var o=new Array(arguments.length),P=0;P<o.length;P++)o[P]=arguments[P];o[0]=_.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(v,m){if("%%"===v)return v;l++;var A=_.formatters[m];return"function"==typeof A&&(v=A.call(M,o[l]),o.splice(l,1),l--),v}),_.formatArgs.call(M,o),(b.log||_.log||console.log.bind(console)).apply(M,o)}}return b.namespace=c,b.enabled=_.enabled(c),b.useColors=_.useColors(),b.color=function N(c){var M,b=0;for(M in c)b=(b<<5)-b+c.charCodeAt(M),b|=0;return _.colors[Math.abs(b)%_.colors.length]}(c),"function"==typeof _.init&&_.init(b),b}(_=ee.exports=k.debug=k.default=k).coerce=function h(c){return c instanceof Error?c.stack||c.message:c},_.disable=function I(){_.enable("")},_.enable=function g(c){_.save(c),_.names=[],_.skips=[];for(var b=("string"==typeof c?c:"").split(/[\s,]+/),M=b.length,E=0;E<M;E++)b[E]&&("-"===(c=b[E].replace(/\*/g,".*?"))[0]?_.skips.push(new RegExp("^"+c.substr(1)+"$")):_.names.push(new RegExp("^"+c+"$")))},_.enabled=function C(c){var b,M;for(b=0,M=_.skips.length;b<M;b++)if(_.skips[b].test(c))return!1;for(b=0,M=_.names.length;b<M;b++)if(_.names[b].test(c))return!0;return!1},_.humanize=i(73329),_.names=[],_.skips=[],_.formatters={}},54230:ee=>{"use strict";ee.exports=function(_,i){i||(i={}),"function"==typeof i&&(i={cmp:i});var y="boolean"==typeof i.cycles&&i.cycles,N=i.cmp&&function(g){return function(I){return function(C,h){return g({key:C,value:I[C]},{key:h,value:I[h]})}}}(i.cmp),k=[];return function g(I){if(I&&I.toJSON&&"function"==typeof I.toJSON&&(I=I.toJSON()),void 0!==I){if("number"==typeof I)return isFinite(I)?""+I:"null";if("object"!=typeof I)return JSON.stringify(I);var C,h;if(Array.isArray(I)){for(h="[",C=0;C<I.length;C++)C&&(h+=","),h+=g(I[C])||"null";return h+"]"}if(null===I)return"null";if(-1!==k.indexOf(I)){if(y)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var c=k.push(I)-1,b=Object.keys(I).sort(N&&N(I));for(h="",C=0;C<b.length;C++){var M=b[C],E=g(I[M]);E&&(h&&(h+=","),h+=JSON.stringify(M)+":"+E)}return k.splice(c,1),"{"+h+"}"}}(_)}},81220:(ee,_,i)=>{"use strict";i.d(_,{Ay:()=>m,Nh:()=>o,VC:()=>l,gi:()=>P,qj:()=>O});var y=i(29127),N=i(16859),k=new Map,g=new Map,I=!0,C=!1;function h(A){return A.replace(/[\s,]+/g," ").trim()}function E(A){var K=h(A);if(!k.has(K)){var Q=(0,N.qg)(A,{experimentalFragmentVariables:C,allowLegacyFragmentVariables:C});if(!Q||"Document"!==Q.kind)throw new Error("Not a valid GraphQL document.");k.set(K,function M(A){var K=new Set(A.definitions);K.forEach(function(W){W.loc&&delete W.loc,Object.keys(W).forEach(function(u){var R=W[u];R&&"object"==typeof R&&K.add(R)})});var Q=A.loc;return Q&&(delete Q.startToken,delete Q.endToken),A}(function b(A){var K=new Set,Q=[];return A.definitions.forEach(function(W){if("FragmentDefinition"===W.kind){var u=W.name.value,R=function c(A){return h(A.source.body.substring(A.start,A.end))}(W.loc),n=g.get(u);n&&!n.has(R)?I&&console.warn("Warning: fragment with name "+u+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):n||g.set(u,n=new Set),n.add(R),K.has(R)||(K.add(R),Q.push(W))}else Q.push(W)}),(0,y.Cl)((0,y.Cl)({},A),{definitions:Q})}(Q)))}return k.get(K)}function L(A){for(var K=[],Q=1;Q<arguments.length;Q++)K[Q-1]=arguments[Q];"string"==typeof A&&(A=[A]);var W=A[0];return K.forEach(function(u,R){W+=u&&"Document"===u.kind?u.loc.source.body:u,W+=A[R+1]}),E(W)}function o(){k.clear(),g.clear()}function P(){I=!1}function l(){C=!0}function O(){C=!1}var A,v_gql=L,v_resetCaches=o,v_disableFragmentWarnings=P,v_enableExperimentalFragmentVariables=l,v_disableExperimentalFragmentVariables=O;(A=L||(L={})).gql=v_gql,A.resetCaches=v_resetCaches,A.disableFragmentWarnings=v_disableFragmentWarnings,A.enableExperimentalFragmentVariables=v_enableExperimentalFragmentVariables,A.disableExperimentalFragmentVariables=v_disableExperimentalFragmentVariables,L.default=L;const m=L},1025:(ee,_)=>{_.read=function(i,y,N,k,g){var I,C,h=8*g-k-1,c=(1<<h)-1,b=c>>1,M=-7,E=N?g-1:0,L=N?-1:1,o=i[y+E];for(E+=L,I=o&(1<<-M)-1,o>>=-M,M+=h;M>0;I=256*I+i[y+E],E+=L,M-=8);for(C=I&(1<<-M)-1,I>>=-M,M+=k;M>0;C=256*C+i[y+E],E+=L,M-=8);if(0===I)I=1-b;else{if(I===c)return C?NaN:1/0*(o?-1:1);C+=Math.pow(2,k),I-=b}return(o?-1:1)*C*Math.pow(2,I-k)},_.write=function(i,y,N,k,g,I){var C,h,c,b=8*I-g-1,M=(1<<b)-1,E=M>>1,L=23===g?Math.pow(2,-24)-Math.pow(2,-77):0,o=k?0:I-1,P=k?1:-1,l=y<0||0===y&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(h=isNaN(y)?1:0,C=M):(C=Math.floor(Math.log(y)/Math.LN2),y*(c=Math.pow(2,-C))<1&&(C--,c*=2),(y+=C+E>=1?L/c:L*Math.pow(2,1-E))*c>=2&&(C++,c/=2),C+E>=M?(h=0,C=M):C+E>=1?(h=(y*c-1)*Math.pow(2,g),C+=E):(h=y*Math.pow(2,E-1)*Math.pow(2,g),C=0));g>=8;i[N+o]=255&h,o+=P,h/=256,g-=8);for(C=C<<g|h,b+=g;b>0;i[N+o]=255&C,o+=P,C/=256,b-=8);i[N+o-P]|=128*l}},55456:ee=>{var _={}.toString;ee.exports=Array.isArray||function(i){return"[object Array]"==_.call(i)}},73329:ee=>{var _=1e3,i=60*_,y=60*i,N=24*y;function h(c,b,M){if(!(c<b))return c<1.5*b?Math.floor(c/b)+" "+M:Math.ceil(c/b)+" "+M+"s"}ee.exports=function(c,b){b=b||{};var M=typeof c;if("string"===M&&c.length>0)return function g(c){if(!((c=String(c)).length>100)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(b){var M=parseFloat(b[1]);switch((b[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*M;case"days":case"day":case"d":return M*N;case"hours":case"hour":case"hrs":case"hr":case"h":return M*y;case"minutes":case"minute":case"mins":case"min":case"m":return M*i;case"seconds":case"second":case"secs":case"sec":case"s":return M*_;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return M;default:return}}}}(c);if("number"===M&&!1===isNaN(c))return b.long?function C(c){return h(c,N,"day")||h(c,y,"hour")||h(c,i,"minute")||h(c,_,"second")||c+" ms"}(c):function I(c){return c>=N?Math.round(c/N)+"d":c>=y?Math.round(c/y)+"h":c>=i?Math.round(c/i)+"m":c>=_?Math.round(c/_)+"s":c+"ms"}(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))}},31351:(ee,_,i)=>{"use strict";i.d(_,{oZ:()=>I,yN:()=>j,LV:()=>p});var y=function(){return Object.create(null)},N=Array.prototype,k=N.forEach,g=N.slice,I=function(){function S(D,B){void 0===D&&(D=!0),void 0===B&&(B=y),this.weakness=D,this.makeData=B}return S.prototype.lookup=function(){for(var D=[],B=0;B<arguments.length;B++)D[B]=arguments[B];return this.lookupArray(D)},S.prototype.lookupArray=function(D){var B=this;return k.call(D,function(q){return B=B.getChildTrie(q)}),B.data||(B.data=this.makeData(g.call(D)))},S.prototype.getChildTrie=function(D){var B=this.weakness&&function C(S){switch(typeof S){case"object":if(null===S)break;case"function":return!0}return!1}(D)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),q=B.get(D);return q||B.set(D,q=new S(this.weakness,this.makeData)),q},S}(),h=i(79664);function c(){}var E,b=function(){function S(D,B){void 0===D&&(D=1/0),void 0===B&&(B=c),this.max=D,this.dispose=B,this.map=new Map,this.newest=null,this.oldest=null}return S.prototype.has=function(D){return this.map.has(D)},S.prototype.get=function(D){var B=this.getNode(D);return B&&B.value},S.prototype.getNode=function(D){var B=this.map.get(D);if(B&&B!==this.newest){var q=B.older,$=B.newer;$&&($.older=q),q&&(q.newer=$),B.older=this.newest,B.older.newer=B,B.newer=null,this.newest=B,B===this.oldest&&(this.oldest=$)}return B},S.prototype.set=function(D,B){var q=this.getNode(D);return q?q.value=B:(q={key:D,value:B,newer:null,older:this.newest},this.newest&&(this.newest.newer=q),this.newest=q,this.oldest=this.oldest||q,this.map.set(D,q),q.value)},S.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},S.prototype.delete=function(D){var B=this.map.get(D);return!!B&&(B===this.newest&&(this.newest=B.older),B===this.oldest&&(this.oldest=B.newer),B.newer&&(B.newer.older=B.older),B.older&&(B.older.newer=B.newer),this.map.delete(D),this.dispose(B.value,D),!0)},S}(),M=new h.DX,L=Object.prototype.hasOwnProperty,o=void 0===(E=Array.from)?function(S){var D=[];return S.forEach(function(B){return D.push(B)}),D}:E;function P(S){var D=S.unsubscribe;"function"==typeof D&&(S.unsubscribe=void 0,D())}var l=[],O=100;function v(S,D){if(!S)throw new Error(D||"assertion failure")}function A(S){switch(S.length){case 0:throw new Error("unknown value");case 1:return S[0];case 2:throw S[1]}}var Q=function(){function S(D){this.fn=D,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++S.count}return S.prototype.peek=function(){if(1===this.value.length&&!n(this))return W(this),this.value[0]},S.prototype.recompute=function(D){return v(!this.recomputing,"already recomputing"),W(this),n(this)?function u(S,D){return z(S),M.withValue(S,R,[S,D]),function X(S,D){if("function"==typeof S.subscribe)try{P(S),S.unsubscribe=S.subscribe.apply(null,D)}catch{return S.setDirty(),!1}return!0}(S,D)&&function e(S){S.dirty=!1,!n(S)&&s(S)}(S),A(S.value)}(this,D):A(this.value)},S.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,t(this),P(this))},S.prototype.dispose=function(){var D=this;this.setDirty(),z(this),w(this,function(B,q){B.setDirty(),H(B,D)})},S.prototype.forget=function(){this.dispose()},S.prototype.dependOn=function(D){D.add(this),this.deps||(this.deps=l.pop()||new Set),this.deps.add(D)},S.prototype.forgetDeps=function(){var D=this;this.deps&&(o(this.deps).forEach(function(B){return B.delete(D)}),this.deps.clear(),l.push(this.deps),this.deps=null)},S.count=0,S}();function W(S){var D=M.getValue();if(D)return S.parents.add(D),D.childValues.has(S)||D.childValues.set(S,[]),n(S)?T(D,S):x(D,S),D}function R(S,D){S.recomputing=!0,S.value.length=0;try{S.value[0]=S.fn.apply(null,D)}catch(B){S.value[1]=B}S.recomputing=!1}function n(S){return S.dirty||!(!S.dirtyChildren||!S.dirtyChildren.size)}function t(S){w(S,T)}function s(S){w(S,x)}function w(S,D){var B=S.parents.size;if(B)for(var q=o(S.parents),$=0;$<B;++$)D(q[$],S)}function T(S,D){v(S.childValues.has(D)),v(n(D));var B=!n(S);if(S.dirtyChildren){if(S.dirtyChildren.has(D))return}else S.dirtyChildren=l.pop()||new Set;S.dirtyChildren.add(D),B&&t(S)}function x(S,D){v(S.childValues.has(D)),v(!n(D));var B=S.childValues.get(D);0===B.length?S.childValues.set(D,function K(S){return S.slice(0)}(D.value)):function m(S,D){var B=S.length;return B>0&&B===D.length&&S[B-1]===D[B-1]}(B,D.value)||S.setDirty(),G(S,D),!n(S)&&s(S)}function G(S,D){var B=S.dirtyChildren;B&&(B.delete(D),0===B.size&&(l.length<O&&l.push(B),S.dirtyChildren=null))}function z(S){S.childValues.size>0&&S.childValues.forEach(function(D,B){H(S,B)}),S.forgetDeps(),v(null===S.dirtyChildren)}function H(S,D){D.parents.delete(S),S.childValues.delete(D),G(S,D)}var Y={setDirty:!0,dispose:!0,forget:!0};function j(S){var D=new Map,B=S&&S.subscribe;function q($){var Z=M.getValue();if(Z){var ne=D.get($);ne||D.set($,ne=new Set),Z.dependOn(ne),"function"==typeof B&&(P(ne),ne.unsubscribe=B($))}}return q.dirty=function(Z,ne){var ae=D.get(Z);if(ae){var ie=ne&&L.call(Y,ne)?ne:"setDirty";o(ae).forEach(function(se){return se[ie]()}),D.delete(Z),P(ae)}},q}function U(){var S=new I("function"==typeof WeakMap);return function(){return S.lookupArray(arguments)}}U();var d=new Set;function p(S,D){void 0===D&&(D=Object.create(null));var B=new b(D.max||Math.pow(2,16),function(se){return se.dispose()}),q=D.keyArgs,$=D.makeCacheKey||U(),Z=function(){var se=$.apply(null,q?q.apply(null,arguments):arguments);if(void 0===se)return S.apply(null,arguments);var ue=B.get(se);ue||(B.set(se,ue=new Q(S)),ue.subscribe=D.subscribe,ue.forget=function(){return B.delete(se)});var oe=ue.recompute(Array.prototype.slice.call(arguments));return B.set(se,ue),d.add(B),M.hasValue()||(d.forEach(function(ce){return ce.clean()}),d.clear()),oe};function ne(se){var ue=B.get(se);ue&&ue.setDirty()}function ae(se){var ue=B.get(se);if(ue)return ue.peek()}function ie(se){return B.delete(se)}return Object.defineProperty(Z,"size",{get:function(){return B.map.size},configurable:!1,enumerable:!1}),Z.dirtyKey=ne,Z.dirty=function(){ne($.apply(null,arguments))},Z.peekKey=ae,Z.peek=function(){return ae($.apply(null,arguments))},Z.forgetKey=ie,Z.forget=function(){return ie($.apply(null,arguments))},Z.makeCacheKey=$,Z.getKey=q?function(){return $.apply(null,q.apply(null,arguments))}:$,Object.freeze(Z)}},32124:function(ee,_,i){var y;ee=i.nmd(ee),function(){"object"==typeof global&&global;var C,h=2147483647,c=36,M=26,E=38,L=700,O=/^xn--/,v=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},K=c-1,Q=Math.floor,W=String.fromCharCode;function R(Y){throw RangeError(A[Y])}function n(Y,j){for(var U=Y.length,r=[];U--;)r[U]=j(Y[U]);return r}function e(Y,j){var U=Y.split("@"),r="";return U.length>1&&(r=U[0]+"@",Y=U[1]),r+n((Y=Y.replace(m,".")).split("."),j).join(".")}function t(Y){for(var d,p,j=[],U=0,r=Y.length;U<r;)(d=Y.charCodeAt(U++))>=55296&&d<=56319&&U<r?56320==(64512&(p=Y.charCodeAt(U++)))?j.push(((1023&d)<<10)+(1023&p)+65536):(j.push(d),U--):j.push(d);return j}function s(Y){return n(Y,function(j){var U="";return j>65535&&(U+=W((j-=65536)>>>10&1023|55296),j=56320|1023&j),U+W(j)}).join("")}function w(Y){return Y-48<10?Y-22:Y-65<26?Y-65:Y-97<26?Y-97:c}function T(Y,j){return Y+22+75*(Y<26)-((0!=j)<<5)}function x(Y,j,U){var r=0;for(Y=U?Q(Y/L):Y>>1,Y+=Q(Y/j);Y>K*M>>1;r+=c)Y=Q(Y/K);return Q(r+(K+1)*Y/(Y+E))}function G(Y){var r,D,B,q,$,Z,ne,ae,ie,se,j=[],U=Y.length,d=0,p=128,S=72;for((D=Y.lastIndexOf("-"))<0&&(D=0),B=0;B<D;++B)Y.charCodeAt(B)>=128&&R("not-basic"),j.push(Y.charCodeAt(B));for(q=D>0?D+1:0;q<U;){for($=d,Z=1,ne=c;q>=U&&R("invalid-input"),((ae=w(Y.charCodeAt(q++)))>=c||ae>Q((h-d)/Z))&&R("overflow"),d+=ae*Z,!(ae<(ie=ne<=S?1:ne>=S+M?M:ne-S));ne+=c)Z>Q(h/(se=c-ie))&&R("overflow"),Z*=se;S=x(d-$,r=j.length+1,0==$),Q(d/r)>h-p&&R("overflow"),p+=Q(d/r),d%=r,j.splice(d++,0,p)}return s(j)}function z(Y){var j,U,r,d,p,S,D,B,q,$,Z,ae,ie,se,ue,ne=[];for(ae=(Y=t(Y)).length,j=128,U=0,p=72,S=0;S<ae;++S)(Z=Y[S])<128&&ne.push(W(Z));for(r=d=ne.length,d&&ne.push("-");r<ae;){for(D=h,S=0;S<ae;++S)(Z=Y[S])>=j&&Z<D&&(D=Z);for(D-j>Q((h-U)/(ie=r+1))&&R("overflow"),U+=(D-j)*ie,j=D,S=0;S<ae;++S)if((Z=Y[S])<j&&++U>h&&R("overflow"),Z==j){for(B=U,q=c;!(B<($=q<=p?1:q>=p+M?M:q-p));q+=c)ne.push(W(T($+(ue=B-$)%(se=c-$),0))),B=Q(ue/se);ne.push(W(T(B,0))),p=x(U,ie,r==d),U=0,++r}++U,++j}return ne.join("")}C={version:"1.3.2",ucs2:{decode:t,encode:s},decode:G,encode:z,toASCII:function X(Y){return e(Y,function(j){return v.test(j)?"xn--"+z(j):j})},toUnicode:function H(Y){return e(Y,function(j){return O.test(j)?G(j.slice(4).toLowerCase()):j})}},void 0!==(y=function(){return C}.call(_,i,_,ee))&&(ee.exports=y)}()},72049:ee=>{"use strict";function _(i,y){return Object.prototype.hasOwnProperty.call(i,y)}ee.exports=function(i,y,N,k){N=N||"=";var g={};if("string"!=typeof i||0===i.length)return g;var I=/\+/g;i=i.split(y=y||"&");var C=1e3;k&&"number"==typeof k.maxKeys&&(C=k.maxKeys);var h=i.length;C>0&&h>C&&(h=C);for(var c=0;c<h;++c){var E,L,o,P,b=i[c].replace(I,"%20"),M=b.indexOf(N);M>=0?(E=b.substr(0,M),L=b.substr(M+1)):(E=b,L=""),o=decodeURIComponent(E),P=decodeURIComponent(L),_(g,o)?Array.isArray(g[o])?g[o].push(P):g[o]=[g[o],P]:g[o]=P}return g}},39769:ee=>{"use strict";var _=function(i){switch(typeof i){case"string":return i;case"boolean":return i?"true":"false";case"number":return isFinite(i)?i:"";default:return""}};ee.exports=function(i,y,N,k){return y=y||"&",N=N||"=",null===i&&(i=void 0),"object"==typeof i?Object.keys(i).map(function(g){var I=encodeURIComponent(_(g))+N;return Array.isArray(i[g])?i[g].map(function(C){return I+encodeURIComponent(_(C))}).join(y):I+encodeURIComponent(_(i[g]))}).join(y):k?encodeURIComponent(_(k))+N+encodeURIComponent(_(i)):""}},89407:(ee,_,i)=>{"use strict";_.decode=_.parse=i(72049),_.encode=_.stringify=i(39769)},65812:(ee,_,i)=>{"use strict";i.d(_,{Q9:()=>M,V1:()=>C,zU:()=>I});var y=i(29127),N="Invariant Violation",k=Object.setPrototypeOf,g=void 0===k?function(P,l){return P.__proto__=l,P}:k,I=function(P){function l(O){void 0===O&&(O=N);var v=P.call(this,"number"==typeof O?N+": "+O+" (see https://github.com/apollographql/invariant-packages)":O)||this;return v.framesToPop=1,v.name=N,g(v,l.prototype),v}return(0,y.C6)(l,P),l}(Error);function C(P,l){if(!P)throw new I(l)}var P,h=["log","warn","error","silent"],c=h.indexOf("log");function b(P){return function(){if(h.indexOf(P)>=c)return console[P].apply(console,arguments)}}function M(P){var l=h[c];return c=Math.max(0,h.indexOf(P)),l}(P=C||(C={})).log=b("log"),P.warn=b("warn"),P.error=b("error"),"object"==typeof process&&"object"==typeof process.env&&process},41178:(ee,_,i)=>{"use strict";var y=i(32124),N=i(54739);function k(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}_.parse=A,_.resolve=function Q(u,R){return A(u,!1,!0).resolve(R)},_.resolveObject=function W(u,R){return u?A(u,!1,!0).resolveObject(R):R},_.format=function K(u){return N.isString(u)&&(u=A(u)),u instanceof k?u.format():k.prototype.format.call(u)},_.Url=k;var g=/^([a-z0-9.+-]+:)/i,I=/:[0-9]*$/,C=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),b=["'"].concat(c),M=["%","/","?",";","#"].concat(b),E=["/","?","#"],o=/^[+a-z0-9A-Z_-]{0,63}$/,P=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,l={javascript:!0,"javascript:":!0},O={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=i(89407);function A(u,R,n){if(u&&N.isObject(u)&&u instanceof k)return u;var e=new k;return e.parse(u,R,n),e}k.prototype.parse=function(u,R,n){if(!N.isString(u))throw new TypeError("Parameter 'url' must be a string, not "+typeof u);var e=u.indexOf("?"),t=-1!==e&&e<u.indexOf("#")?"?":"#",s=u.split(t);s[0]=s[0].replace(/\\/g,"/");var T=u=s.join(t);if(T=T.trim(),!n&&1===u.split("#").length){var x=C.exec(T);if(x)return this.path=T,this.href=T,this.pathname=x[1],x[2]?(this.search=x[2],this.query=R?m.parse(this.search.substr(1)):this.search.substr(1)):R&&(this.search="",this.query={}),this}var G=g.exec(T);if(G){var z=(G=G[0]).toLowerCase();this.protocol=z,T=T.substr(G.length)}if(n||G||T.match(/^\/\/[^@\/]+@[^@\/]+/)){var H="//"===T.substr(0,2);H&&(!G||!O[G])&&(T=T.substr(2),this.slashes=!0)}if(!O[G]&&(H||G&&!v[G])){for(var X=-1,Y=0;Y<E.length;Y++)-1!==(j=T.indexOf(E[Y]))&&(-1===X||j<X)&&(X=j);var U,r;for(-1!==(r=-1===X?T.lastIndexOf("@"):T.lastIndexOf("@",X))&&(U=T.slice(0,r),T=T.slice(r+1),this.auth=decodeURIComponent(U)),X=-1,Y=0;Y<M.length;Y++){var j;-1!==(j=T.indexOf(M[Y]))&&(-1===X||j<X)&&(X=j)}-1===X&&(X=T.length),this.host=T.slice(0,X),T=T.slice(X),this.parseHost(),this.hostname=this.hostname||"";var d="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!d)for(var p=this.hostname.split(/\./),S=(Y=0,p.length);Y<S;Y++){var D=p[Y];if(D&&!D.match(o)){for(var B="",q=0,$=D.length;q<$;q++)D.charCodeAt(q)>127?B+="x":B+=D[q];if(!B.match(o)){var Z=p.slice(0,Y),ne=p.slice(Y+1),ae=D.match(P);ae&&(Z.push(ae[1]),ne.unshift(ae[2])),ne.length&&(T="/"+ne.join(".")+T),this.hostname=Z.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),d||(this.hostname=y.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,d&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==T[0]&&(T="/"+T))}if(!l[z])for(Y=0,S=b.length;Y<S;Y++){var ue=b[Y];if(-1!==T.indexOf(ue)){var oe=encodeURIComponent(ue);oe===ue&&(oe=escape(ue)),T=T.split(ue).join(oe)}}var ce=T.indexOf("#");-1!==ce&&(this.hash=T.substr(ce),T=T.slice(0,ce));var F=T.indexOf("?");return-1!==F?(this.search=T.substr(F),this.query=T.substr(F+1),R&&(this.query=m.parse(this.query)),T=T.slice(0,F)):R&&(this.search="",this.query={}),T&&(this.pathname=T),v[z]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},k.prototype.format=function(){var u=this.auth||"";u&&(u=(u=encodeURIComponent(u)).replace(/%3A/i,":"),u+="@");var R=this.protocol||"",n=this.pathname||"",e=this.hash||"",t=!1,s="";this.host?t=u+this.host:this.hostname&&(t=u+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(t+=":"+this.port)),this.query&&N.isObject(this.query)&&Object.keys(this.query).length&&(s=m.stringify(this.query));var w=this.search||s&&"?"+s||"";return R&&":"!==R.substr(-1)&&(R+=":"),this.slashes||(!R||v[R])&&!1!==t?(t="//"+(t||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):t||(t=""),e&&"#"!==e.charAt(0)&&(e="#"+e),w&&"?"!==w.charAt(0)&&(w="?"+w),R+t+(n=n.replace(/[?#]/g,function(T){return encodeURIComponent(T)}))+(w=w.replace("#","%23"))+e},k.prototype.resolve=function(u){return this.resolveObject(A(u,!1,!0)).format()},k.prototype.resolveObject=function(u){if(N.isString(u)){var R=new k;R.parse(u,!1,!0),u=R}for(var n=new k,e=Object.keys(this),t=0;t<e.length;t++){var s=e[t];n[s]=this[s]}if(n.hash=u.hash,""===u.href)return n.href=n.format(),n;if(u.slashes&&!u.protocol){for(var w=Object.keys(u),T=0;T<w.length;T++){var x=w[T];"protocol"!==x&&(n[x]=u[x])}return v[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(u.protocol&&u.protocol!==n.protocol){if(!v[u.protocol]){for(var G=Object.keys(u),z=0;z<G.length;z++){var H=G[z];n[H]=u[H]}return n.href=n.format(),n}if(n.protocol=u.protocol,u.host||O[u.protocol])n.pathname=u.pathname;else{for(var S=(u.pathname||"").split("/");S.length&&!(u.host=S.shift()););u.host||(u.host=""),u.hostname||(u.hostname=""),""!==S[0]&&S.unshift(""),S.length<2&&S.unshift(""),n.pathname=S.join("/")}return n.search=u.search,n.query=u.query,n.host=u.host||"",n.auth=u.auth,n.hostname=u.hostname||u.host,n.port=u.port,(n.pathname||n.search)&&(n.path=(n.pathname||"")+(n.search||"")),n.slashes=n.slashes||u.slashes,n.href=n.format(),n}var j=n.pathname&&"/"===n.pathname.charAt(0),U=u.host||u.pathname&&"/"===u.pathname.charAt(0),r=U||j||n.host&&u.pathname,d=r,p=n.pathname&&n.pathname.split("/")||[],D=(S=u.pathname&&u.pathname.split("/")||[],n.protocol&&!v[n.protocol]);if(D&&(n.hostname="",n.port=null,n.host&&(""===p[0]?p[0]=n.host:p.unshift(n.host)),n.host="",u.protocol&&(u.hostname=null,u.port=null,u.host&&(""===S[0]?S[0]=u.host:S.unshift(u.host)),u.host=null),r=r&&(""===S[0]||""===p[0])),U)n.host=u.host||""===u.host?u.host:n.host,n.hostname=u.hostname||""===u.hostname?u.hostname:n.hostname,n.search=u.search,n.query=u.query,p=S;else if(S.length)p||(p=[]),p.pop(),p=p.concat(S),n.search=u.search,n.query=u.query;else if(!N.isNullOrUndefined(u.search))return D&&(n.hostname=n.host=p.shift(),(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift())),n.search=u.search,n.query=u.query,(!N.isNull(n.pathname)||!N.isNull(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!p.length)return n.pathname=null,n.path=n.search?"/"+n.search:null,n.href=n.format(),n;for(var q=p.slice(-1)[0],$=(n.host||u.host||p.length>1)&&("."===q||".."===q)||""===q,Z=0,ne=p.length;ne>=0;ne--)"."===(q=p[ne])?p.splice(ne,1):".."===q?(p.splice(ne,1),Z++):Z&&(p.splice(ne,1),Z--);if(!r&&!d)for(;Z--;Z)p.unshift("..");r&&""!==p[0]&&(!p[0]||"/"!==p[0].charAt(0))&&p.unshift(""),$&&"/"!==p.join("/").substr(-1)&&p.push("");var B,ae=""===p[0]||p[0]&&"/"===p[0].charAt(0);return D&&(n.hostname=n.host=ae?"":p.length?p.shift():"",(B=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=B.shift(),n.host=n.hostname=B.shift())),(r=r||n.host&&p.length)&&!ae&&p.unshift(""),p.length?n.pathname=p.join("/"):(n.pathname=null,n.path=null),(!N.isNull(n.pathname)||!N.isNull(n.search))&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=u.auth||n.auth,n.slashes=n.slashes||u.slashes,n.href=n.format(),n},k.prototype.parseHost=function(){var u=this.host,R=I.exec(u);R&&(":"!==(R=R[0])&&(this.port=R.substr(1)),u=u.substr(0,u.length-R.length)),u&&(this.hostname=u)}},54739:ee=>{"use strict";ee.exports={isString:function(_){return"string"==typeof _},isObject:function(_){return"object"==typeof _&&null!==_},isNull:function(_){return null===_},isNullOrUndefined:function(_){return null==_}}},79166:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(_,"NIL",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(_,"parse",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_,"stringify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_,"v1",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(_,"v3",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_,"v4",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(_,"v5",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(_,"validate",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_,"version",{enumerable:!0,get:function(){return C.default}});var y=M(i(88041)),N=M(i(53063)),k=M(i(59558)),g=M(i(77829)),I=M(i(31121)),C=M(i(29098)),h=M(i(84490)),c=M(i(7267)),b=M(i(89325));function M(E){return E&&E.__esModule?E:{default:E}}},26458:(ee,_)=>{"use strict";function N(o){return 14+(o+64>>>9<<4)+1}function I(o,P){const l=(65535&o)+(65535&P);return(o>>16)+(P>>16)+(l>>16)<<16|65535&l}function h(o,P,l,O,v,m){return I(function C(o,P){return o<<P|o>>>32-P}(I(I(P,o),I(O,m)),v),l)}function c(o,P,l,O,v,m,A){return h(P&l|~P&O,o,P,v,m,A)}function b(o,P,l,O,v,m,A){return h(P&O|l&~O,o,P,v,m,A)}function M(o,P,l,O,v,m,A){return h(P^l^O,o,P,v,m,A)}function E(o,P,l,O,v,m,A){return h(l^(P|~O),o,P,v,m,A)}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default=function i(o){if("string"==typeof o){const P=unescape(encodeURIComponent(o));o=new Uint8Array(P.length);for(let l=0;l<P.length;++l)o[l]=P.charCodeAt(l)}return function y(o){const P=[],l=32*o.length,O="0123456789abcdef";for(let v=0;v<l;v+=8){const m=o[v>>5]>>>v%32&255,A=parseInt(O.charAt(m>>>4&15)+O.charAt(15&m),16);P.push(A)}return P}(function k(o,P){o[P>>5]|=128<<P%32,o[N(P)-1]=P;let l=1732584193,O=-271733879,v=-1732584194,m=271733878;for(let A=0;A<o.length;A+=16){const K=l,Q=O,W=v,u=m;l=c(l,O,v,m,o[A],7,-680876936),m=c(m,l,O,v,o[A+1],12,-389564586),v=c(v,m,l,O,o[A+2],17,606105819),O=c(O,v,m,l,o[A+3],22,-1044525330),l=c(l,O,v,m,o[A+4],7,-176418897),m=c(m,l,O,v,o[A+5],12,1200080426),v=c(v,m,l,O,o[A+6],17,-1473231341),O=c(O,v,m,l,o[A+7],22,-45705983),l=c(l,O,v,m,o[A+8],7,1770035416),m=c(m,l,O,v,o[A+9],12,-1958414417),v=c(v,m,l,O,o[A+10],17,-42063),O=c(O,v,m,l,o[A+11],22,-1990404162),l=c(l,O,v,m,o[A+12],7,1804603682),m=c(m,l,O,v,o[A+13],12,-40341101),v=c(v,m,l,O,o[A+14],17,-1502002290),O=c(O,v,m,l,o[A+15],22,1236535329),l=b(l,O,v,m,o[A+1],5,-165796510),m=b(m,l,O,v,o[A+6],9,-1069501632),v=b(v,m,l,O,o[A+11],14,643717713),O=b(O,v,m,l,o[A],20,-373897302),l=b(l,O,v,m,o[A+5],5,-701558691),m=b(m,l,O,v,o[A+10],9,38016083),v=b(v,m,l,O,o[A+15],14,-660478335),O=b(O,v,m,l,o[A+4],20,-405537848),l=b(l,O,v,m,o[A+9],5,568446438),m=b(m,l,O,v,o[A+14],9,-1019803690),v=b(v,m,l,O,o[A+3],14,-187363961),O=b(O,v,m,l,o[A+8],20,1163531501),l=b(l,O,v,m,o[A+13],5,-1444681467),m=b(m,l,O,v,o[A+2],9,-51403784),v=b(v,m,l,O,o[A+7],14,1735328473),O=b(O,v,m,l,o[A+12],20,-1926607734),l=M(l,O,v,m,o[A+5],4,-378558),m=M(m,l,O,v,o[A+8],11,-2022574463),v=M(v,m,l,O,o[A+11],16,1839030562),O=M(O,v,m,l,o[A+14],23,-35309556),l=M(l,O,v,m,o[A+1],4,-1530992060),m=M(m,l,O,v,o[A+4],11,1272893353),v=M(v,m,l,O,o[A+7],16,-155497632),O=M(O,v,m,l,o[A+10],23,-1094730640),l=M(l,O,v,m,o[A+13],4,681279174),m=M(m,l,O,v,o[A],11,-358537222),v=M(v,m,l,O,o[A+3],16,-722521979),O=M(O,v,m,l,o[A+6],23,76029189),l=M(l,O,v,m,o[A+9],4,-640364487),m=M(m,l,O,v,o[A+12],11,-421815835),v=M(v,m,l,O,o[A+15],16,530742520),O=M(O,v,m,l,o[A+2],23,-995338651),l=E(l,O,v,m,o[A],6,-198630844),m=E(m,l,O,v,o[A+7],10,1126891415),v=E(v,m,l,O,o[A+14],15,-1416354905),O=E(O,v,m,l,o[A+5],21,-57434055),l=E(l,O,v,m,o[A+12],6,1700485571),m=E(m,l,O,v,o[A+3],10,-1894986606),v=E(v,m,l,O,o[A+10],15,-1051523),O=E(O,v,m,l,o[A+1],21,-2054922799),l=E(l,O,v,m,o[A+8],6,1873313359),m=E(m,l,O,v,o[A+15],10,-30611744),v=E(v,m,l,O,o[A+6],15,-1560198380),O=E(O,v,m,l,o[A+13],21,1309151649),l=E(l,O,v,m,o[A+4],6,-145523070),m=E(m,l,O,v,o[A+11],10,-1120210379),v=E(v,m,l,O,o[A+2],15,718787259),O=E(O,v,m,l,o[A+9],21,-343485551),l=I(l,K),O=I(O,Q),v=I(v,W),m=I(m,u)}return[l,O,v,m]}(function g(o){if(0===o.length)return[];const P=8*o.length,l=new Uint32Array(N(P));for(let O=0;O<P;O+=8)l[O>>5]|=(255&o[O/8])<<O%32;return l}(o),8*o.length))}},57883:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};_.default=y},31121:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default="00000000-0000-0000-0000-000000000000"},89325:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=function N(I){return I&&I.__esModule?I:{default:I}}(i(84490));_.default=function k(I){if(!(0,y.default)(I))throw TypeError("Invalid UUID");let C;const h=new Uint8Array(16);return h[0]=(C=parseInt(I.slice(0,8),16))>>>24,h[1]=C>>>16&255,h[2]=C>>>8&255,h[3]=255&C,h[4]=(C=parseInt(I.slice(9,13),16))>>>8,h[5]=255&C,h[6]=(C=parseInt(I.slice(14,18),16))>>>8,h[7]=255&C,h[8]=(C=parseInt(I.slice(19,23),16))>>>8,h[9]=255&C,h[10]=(C=parseInt(I.slice(24,36),16))/1099511627776&255,h[11]=C/4294967296&255,h[12]=C>>>24&255,h[13]=C>>>16&255,h[14]=C>>>8&255,h[15]=255&C,h}},17441:(ee,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},13323:(ee,_)=>{"use strict";let i;Object.defineProperty(_,"__esModule",{value:!0}),_.default=function N(){if(!i&&(i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(y)};const y=new Uint8Array(16)},33733:(ee,_)=>{"use strict";function i(g,I,C,h){switch(g){case 0:return I&C^~I&h;case 1:case 3:return I^C^h;case 2:return I&C^I&h^C&h}}function y(g,I){return g<<I|g>>>32-I}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default=function N(g){const I=[1518500249,1859775393,2400959708,3395469782],C=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof g){const M=unescape(encodeURIComponent(g));g=[];for(let E=0;E<M.length;++E)g.push(M.charCodeAt(E))}else Array.isArray(g)||(g=Array.prototype.slice.call(g));g.push(128);const c=Math.ceil((g.length/4+2)/16),b=new Array(c);for(let M=0;M<c;++M){const E=new Uint32Array(16);for(let L=0;L<16;++L)E[L]=g[64*M+4*L]<<24|g[64*M+4*L+1]<<16|g[64*M+4*L+2]<<8|g[64*M+4*L+3];b[M]=E}b[c-1][14]=8*(g.length-1)/Math.pow(2,32),b[c-1][14]=Math.floor(b[c-1][14]),b[c-1][15]=8*(g.length-1)&4294967295;for(let M=0;M<c;++M){const E=new Uint32Array(80);for(let v=0;v<16;++v)E[v]=b[M][v];for(let v=16;v<80;++v)E[v]=y(E[v-3]^E[v-8]^E[v-14]^E[v-16],1);let L=C[0],o=C[1],P=C[2],l=C[3],O=C[4];for(let v=0;v<80;++v){const m=Math.floor(v/20),A=y(L,5)+i(m,o,P,l)+O+I[m]+E[v]>>>0;O=l,l=P,P=y(o,30)>>>0,o=L,L=A}C[0]=C[0]+L>>>0,C[1]=C[1]+o>>>0,C[2]=C[2]+P>>>0,C[3]=C[3]+l>>>0,C[4]=C[4]+O>>>0}return[C[0]>>24&255,C[0]>>16&255,C[0]>>8&255,255&C[0],C[1]>>24&255,C[1]>>16&255,C[1]>>8&255,255&C[1],C[2]>>24&255,C[2]>>16&255,C[2]>>8&255,255&C[2],C[3]>>24&255,C[3]>>16&255,C[3]>>8&255,255&C[3],C[4]>>24&255,C[4]>>16&255,C[4]>>8&255,255&C[4]]}},7267:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.unsafeStringify=g;var y=function N(h){return h&&h.__esModule?h:{default:h}}(i(84490));const k=[];for(let h=0;h<256;++h)k.push((h+256).toString(16).slice(1));function g(h,c=0){return k[h[c+0]]+k[h[c+1]]+k[h[c+2]]+k[h[c+3]]+"-"+k[h[c+4]]+k[h[c+5]]+"-"+k[h[c+6]]+k[h[c+7]]+"-"+k[h[c+8]]+k[h[c+9]]+"-"+k[h[c+10]]+k[h[c+11]]+k[h[c+12]]+k[h[c+13]]+k[h[c+14]]+k[h[c+15]]}_.default=function I(h,c=0){const b=g(h,c);if(!(0,y.default)(b))throw TypeError("Stringified UUID is invalid");return b}},88041:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=function k(M){return M&&M.__esModule?M:{default:M}}(i(13323)),N=i(7267);let g,I,C=0,h=0;_.default=function c(M,E,L){let o=E&&L||0;const P=E||new Array(16);let l=(M=M||{}).node||g,O=void 0!==M.clockseq?M.clockseq:I;if(null==l||null==O){const W=M.random||(M.rng||y.default)();null==l&&(l=g=[1|W[0],W[1],W[2],W[3],W[4],W[5]]),null==O&&(O=I=16383&(W[6]<<8|W[7]))}let v=void 0!==M.msecs?M.msecs:Date.now(),m=void 0!==M.nsecs?M.nsecs:h+1;const A=v-C+(m-h)/1e4;if(A<0&&void 0===M.clockseq&&(O=O+1&16383),(A<0||v>C)&&void 0===M.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");C=v,h=m,I=O,v+=122192928e5;const K=(1e4*(268435455&v)+m)%4294967296;P[o++]=K>>>24&255,P[o++]=K>>>16&255,P[o++]=K>>>8&255,P[o++]=255&K;const Q=v/4294967296*1e4&268435455;P[o++]=Q>>>8&255,P[o++]=255&Q,P[o++]=Q>>>24&15|16,P[o++]=Q>>>16&255,P[o++]=O>>>8|128,P[o++]=255&O;for(let W=0;W<6;++W)P[o+W]=l[W];return E||(0,N.unsafeStringify)(P)}},53063:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=k(i(55700)),N=k(i(26458));function k(C){return C&&C.__esModule?C:{default:C}}var I=(0,y.default)("v3",48,N.default);_.default=I},55700:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.URL=_.DNS=void 0,_.default=function h(c,b,M){function E(L,o,P,l){var O;if("string"==typeof L&&(L=function g(c){c=unescape(encodeURIComponent(c));const b=[];for(let M=0;M<c.length;++M)b.push(c.charCodeAt(M));return b}(L)),"string"==typeof o&&(o=(0,N.default)(o)),16!==(null===(O=o)||void 0===O?void 0:O.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let v=new Uint8Array(16+L.length);if(v.set(o),v.set(L,o.length),v=M(v),v[6]=15&v[6]|b,v[8]=63&v[8]|128,P){l=l||0;for(let m=0;m<16;++m)P[l+m]=v[m];return P}return(0,y.unsafeStringify)(v)}try{E.name=c}catch{}return E.DNS=I,E.URL=C,E};var y=i(7267),N=function k(c){return c&&c.__esModule?c:{default:c}}(i(89325));const I="6ba7b810-9dad-11d1-80b4-00c04fd430c8";_.DNS=I;const C="6ba7b811-9dad-11d1-80b4-00c04fd430c8";_.URL=C},59558:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=g(i(57883)),N=g(i(13323)),k=i(7267);function g(h){return h&&h.__esModule?h:{default:h}}_.default=function I(h,c,b){if(y.default.randomUUID&&!c&&!h)return y.default.randomUUID();const M=(h=h||{}).random||(h.rng||N.default)();if(M[6]=15&M[6]|64,M[8]=63&M[8]|128,c){b=b||0;for(let E=0;E<16;++E)c[b+E]=M[E];return c}return(0,k.unsafeStringify)(M)}},77829:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=k(i(55700)),N=k(i(33733));function k(C){return C&&C.__esModule?C:{default:C}}var I=(0,y.default)("v5",80,N.default);_.default=I},84490:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=function N(I){return I&&I.__esModule?I:{default:I}}(i(17441));_.default=function k(I){return"string"==typeof I&&y.default.test(I)}},29098:(ee,_,i)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var y=function N(I){return I&&I.__esModule?I:{default:I}}(i(84490));_.default=function k(I){if(!(0,y.default)(I))throw TypeError("Invalid UUID");return parseInt(I.slice(14,15),16)}},72101:(ee,_,i)=>{ee.exports=i(69580).Observable},69580:(ee,_)=>{"use strict";function y(u,R){if(!(u instanceof R))throw new TypeError("Cannot call a class as a function")}function N(u,R){for(var n=0;n<R.length;n++){var e=R[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(u,e.key,e)}}function k(u,R,n){return R&&N(u.prototype,R),n&&N(u,n),u}_.Observable=void 0;var g=function(){return"function"==typeof Symbol},I=function(u){return g()&&!!Symbol[u]},C=function(u){return I(u)?Symbol[u]:"@@"+u};g()&&!I("observable")&&(Symbol.observable=Symbol("observable"));var h=C("iterator"),c=C("observable"),b=C("species");function M(u,R){var n=u[R];if(null!=n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}}function E(u){var R=u.constructor;return void 0!==R&&null===(R=R[b])&&(R=void 0),void 0!==R?R:W}function o(u){o.log?o.log(u):setTimeout(function(){throw u})}function P(u){Promise.resolve().then(function(){try{u()}catch(R){o(R)}})}function l(u){var R=u._cleanup;if(void 0!==R&&(u._cleanup=void 0,R))try{if("function"==typeof R)R();else{var n=M(R,"unsubscribe");n&&n.call(R)}}catch(e){o(e)}}function O(u){u._observer=void 0,u._queue=void 0,u._state="closed"}function m(u,R,n){u._state="running";var e=u._observer;try{var t=M(e,R);switch(R){case"next":t&&t.call(e,n);break;case"error":if(O(u),!t)throw n;t.call(e,n);break;case"complete":O(u),t&&t.call(e)}}catch(s){o(s)}"closed"===u._state?l(u):"running"===u._state&&(u._state="ready")}function A(u,R,n){if("closed"!==u._state){if("buffering"===u._state)return void u._queue.push({type:R,value:n});if("ready"!==u._state)return u._state="buffering",u._queue=[{type:R,value:n}],void P(function(){return function v(u){var R=u._queue;if(R){u._queue=void 0,u._state="ready";for(var n=0;n<R.length&&(m(u,R[n].type,R[n].value),"closed"!==u._state);++n);}}(u)});m(u,R,n)}}var K=function(){function u(R,n){y(this,u),this._cleanup=void 0,this._observer=R,this._queue=void 0,this._state="initializing";var e=new Q(this);try{this._cleanup=n.call(void 0,e)}catch(t){e.error(t)}"initializing"===this._state&&(this._state="ready")}return k(u,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(O(this),l(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),u}(),Q=function(){function u(R){y(this,u),this._subscription=R}return k(u,[{key:"next",value:function(n){A(this._subscription,"next",n)}},{key:"error",value:function(n){A(this._subscription,"error",n)}},{key:"complete",value:function(){A(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),u}(),W=function(){function u(R){if(y(this,u),!(this instanceof u))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof R)throw new TypeError("Observable initializer must be a function");this._subscriber=R}return k(u,[{key:"subscribe",value:function(n){return("object"!=typeof n||null===n)&&(n={next:n,error:arguments[1],complete:arguments[2]}),new K(n,this._subscriber)}},{key:"forEach",value:function(n){var e=this;return new Promise(function(t,s){if("function"==typeof n)var T=e.subscribe({next:function(x){try{n(x,w)}catch(G){s(G),T.unsubscribe()}},error:s,complete:t});else s(new TypeError(n+" is not a function"));function w(){T.unsubscribe(),t()}})}},{key:"map",value:function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");return new(E(this))(function(s){return e.subscribe({next:function(w){try{w=n(w)}catch(T){return s.error(T)}s.next(w)},error:function(w){s.error(w)},complete:function(){s.complete()}})})}},{key:"filter",value:function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");return new(E(this))(function(s){return e.subscribe({next:function(w){try{if(!n(w))return}catch(T){return s.error(T)}s.next(w)},error:function(w){s.error(w)},complete:function(){s.complete()}})})}},{key:"reduce",value:function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");var t=E(this),s=arguments.length>1,w=!1,x=arguments[1];return new t(function(G){return e.subscribe({next:function(z){var H=!w;if(w=!0,!H||s)try{x=n(x,z)}catch(X){return G.error(X)}else x=z},error:function(z){G.error(z)},complete:function(){if(!w&&!s)return G.error(new TypeError("Cannot reduce an empty sequence"));G.next(x),G.complete()}})})}},{key:"concat",value:function(){for(var n=this,e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];var w=E(this);return new w(function(T){var x,G=0;return function z(H){x=H.subscribe({next:function(X){T.next(X)},error:function(X){T.error(X)},complete:function(){G===t.length?(x=void 0,T.complete()):z(w.from(t[G++]))}})}(n),function(){x&&(x.unsubscribe(),x=void 0)}})}},{key:"flatMap",value:function(n){var e=this;if("function"!=typeof n)throw new TypeError(n+" is not a function");var t=E(this);return new t(function(s){var w=[],T=e.subscribe({next:function(G){if(n)try{G=n(G)}catch(H){return s.error(H)}var z=t.from(G).subscribe({next:function(H){s.next(H)},error:function(H){s.error(H)},complete:function(){var H=w.indexOf(z);H>=0&&w.splice(H,1),x()}});w.push(z)},error:function(G){s.error(G)},complete:function(){x()}});function x(){T.closed&&0===w.length&&s.complete()}return function(){w.forEach(function(G){return G.unsubscribe()}),T.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:"from",value:function(n){var e="function"==typeof this?this:u;if(null==n)throw new TypeError(n+" is not an object");var t=M(n,c);if(t){var s=t.call(n);if(Object(s)!==s)throw new TypeError(s+" is not an object");return function L(u){return u instanceof W}(s)&&s.constructor===e?s:new e(function(w){return s.subscribe(w)})}if(I("iterator")&&(t=M(n,h)))return new e(function(w){P(function(){if(!w.closed){var T=!0,x=!1,G=void 0;try{for(var H,z=t.call(n)[Symbol.iterator]();!(T=(H=z.next()).done);T=!0)if(w.next(H.value),w.closed)return}catch(Y){x=!0,G=Y}finally{try{!T&&null!=z.return&&z.return()}finally{if(x)throw G}}w.complete()}})});if(Array.isArray(n))return new e(function(w){P(function(){if(!w.closed){for(var T=0;T<n.length;++T)if(w.next(n[T]),w.closed)return;w.complete()}})});throw new TypeError(n+" is not observable")}},{key:"of",value:function(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return new("function"==typeof this?this:u)(function(w){P(function(){if(!w.closed){for(var T=0;T<e.length;++T)if(w.next(e[T]),w.closed)return;w.complete()}})})}},{key:b,get:function(){return this}}]),u}();_.Observable=W,g()&&Object.defineProperty(W,Symbol("extensions"),{value:{symbol:c,hostReportError:o},configurable:!0})},81460:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{AppSyncRequestHandler:()=>M});var y=i(38821),N=i(16859),k=i(84910),g=i(42305),C=i(77744),h=i(97319),c=i(57280),b=i(19746);class M{handle(L){return new y.c(o=>{const P="string"==typeof L.additionalParams?.aws_appsync_graphqlEndpoint?L.additionalParams.aws_appsync_graphqlEndpoint:"",l="string"==typeof L.additionalParams?.aws_appsync_region?L.additionalParams.aws_appsync_region:"",O={type:"string"==typeof L.additionalParams?.aws_appsync_authenticationType?L.additionalParams.aws_appsync_authenticationType:"",apiKey:"string"==typeof L.additionalParams?.aws_appsync_apiKey?L.additionalParams.aws_appsync_apiKey:"",jwtToken:"string"==typeof L.additionalParams?.aws_appsync_jwtToken?L.additionalParams.aws_appsync_jwtToken:"",token:"string"==typeof L.additionalParams?.aws_appsync_token?L.additionalParams.aws_appsync_token:""},v=C.ApolloLink.from([(0,k.createAuthLink)({url:P,region:l,auth:O}),(0,g.createSubscriptionHandshakeLink)({url:P,region:l,auth:O})]),m=new h.R({link:v,cache:new c.D}),A=Date.now();return this.subscription=m.subscribe({query:(0,N.qg)(L.query),variables:L.variables}).subscribe((0,b.G)(o,L.url,A)),()=>{this.destroy()}})}destroy(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},40909:(ee,_,i)=>{"use strict";i.r(_),i.d(_,{__assign:()=>k,__asyncDelegator:()=>m,__asyncGenerator:()=>v,__asyncValues:()=>A,__await:()=>O,__awaiter:()=>c,__classPrivateFieldGet:()=>u,__classPrivateFieldSet:()=>R,__createBinding:()=>M,__decorate:()=>I,__exportStar:()=>E,__extends:()=>N,__generator:()=>b,__importDefault:()=>W,__importStar:()=>Q,__makeTemplateObject:()=>K,__metadata:()=>h,__param:()=>C,__read:()=>o,__rest:()=>g,__spread:()=>P,__spreadArrays:()=>l,__values:()=>L});var y=function(n,e){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,s){t.__proto__=s}||function(t,s){for(var w in s)s.hasOwnProperty(w)&&(t[w]=s[w])})(n,e)};function N(n,e){function t(){this.constructor=n}y(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var k=function(){return k=Object.assign||function(e){for(var t,s=1,w=arguments.length;s<w;s++)for(var T in t=arguments[s])Object.prototype.hasOwnProperty.call(t,T)&&(e[T]=t[T]);return e},k.apply(this,arguments)};function g(n,e){var t={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&e.indexOf(s)<0&&(t[s]=n[s]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var w=0;for(s=Object.getOwnPropertySymbols(n);w<s.length;w++)e.indexOf(s[w])<0&&Object.prototype.propertyIsEnumerable.call(n,s[w])&&(t[s[w]]=n[s[w]])}return t}function I(n,e,t,s){var x,w=arguments.length,T=w<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,t):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(n,e,t,s);else for(var G=n.length-1;G>=0;G--)(x=n[G])&&(T=(w<3?x(T):w>3?x(e,t,T):x(e,t))||T);return w>3&&T&&Object.defineProperty(e,t,T),T}function C(n,e){return function(t,s){e(t,s,n)}}function h(n,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,e)}function c(n,e,t,s){return new(t||(t=Promise))(function(T,x){function G(X){try{H(s.next(X))}catch(Y){x(Y)}}function z(X){try{H(s.throw(X))}catch(Y){x(Y)}}function H(X){X.done?T(X.value):function w(T){return T instanceof t?T:new t(function(x){x(T)})}(X.value).then(G,z)}H((s=s.apply(n,e||[])).next())})}function b(n,e){var s,w,T,x,t={label:0,sent:function(){if(1&T[0])throw T[1];return T[1]},trys:[],ops:[]};return x={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(x[Symbol.iterator]=function(){return this}),x;function G(H){return function(X){return function z(H){if(s)throw new TypeError("Generator is already executing.");for(;t;)try{if(s=1,w&&(T=2&H[0]?w.return:H[0]?w.throw||((T=w.return)&&T.call(w),0):w.next)&&!(T=T.call(w,H[1])).done)return T;switch(w=0,T&&(H=[2&H[0],T.value]),H[0]){case 0:case 1:T=H;break;case 4:return t.label++,{value:H[1],done:!1};case 5:t.label++,w=H[1],H=[0];continue;case 7:H=t.ops.pop(),t.trys.pop();continue;default:if(!(T=(T=t.trys).length>0&&T[T.length-1])&&(6===H[0]||2===H[0])){t=0;continue}if(3===H[0]&&(!T||H[1]>T[0]&&H[1]<T[3])){t.label=H[1];break}if(6===H[0]&&t.label<T[1]){t.label=T[1],T=H;break}if(T&&t.label<T[2]){t.label=T[2],t.ops.push(H);break}T[2]&&t.ops.pop(),t.trys.pop();continue}H=e.call(n,t)}catch(X){H=[6,X],w=0}finally{s=T=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}([H,X])}}}function M(n,e,t,s){void 0===s&&(s=t),n[s]=e[t]}function E(n,e){for(var t in n)"default"!==t&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function L(n){var e="function"==typeof Symbol&&Symbol.iterator,t=e&&n[e],s=0;if(t)return t.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(n,e){var t="function"==typeof Symbol&&n[Symbol.iterator];if(!t)return n;var w,x,s=t.call(n),T=[];try{for(;(void 0===e||e-- >0)&&!(w=s.next()).done;)T.push(w.value)}catch(G){x={error:G}}finally{try{w&&!w.done&&(t=s.return)&&t.call(s)}finally{if(x)throw x.error}}return T}function P(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(o(arguments[e]));return n}function l(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;var s=Array(n),w=0;for(e=0;e<t;e++)for(var T=arguments[e],x=0,G=T.length;x<G;x++,w++)s[w]=T[x];return s}function O(n){return this instanceof O?(this.v=n,this):new O(n)}function v(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var w,s=t.apply(n,e||[]),T=[];return w={},x("next"),x("throw"),x("return"),w[Symbol.asyncIterator]=function(){return this},w;function x(j){s[j]&&(w[j]=function(U){return new Promise(function(r,d){T.push([j,U,r,d])>1||G(j,U)})})}function G(j,U){try{!function z(j){j.value instanceof O?Promise.resolve(j.value.v).then(H,X):Y(T[0][2],j)}(s[j](U))}catch(r){Y(T[0][3],r)}}function H(j){G("next",j)}function X(j){G("throw",j)}function Y(j,U){j(U),T.shift(),T.length&&G(T[0][0],T[0][1])}}function m(n){var e,t;return e={},s("next"),s("throw",function(w){throw w}),s("return"),e[Symbol.iterator]=function(){return this},e;function s(w,T){e[w]=n[w]?function(x){return(t=!t)?{value:O(n[w](x)),done:"return"===w}:T?T(x):x}:T}}function A(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=L(n),t={},s("next"),s("throw"),s("return"),t[Symbol.asyncIterator]=function(){return this},t);function s(T){t[T]=n[T]&&function(x){return new Promise(function(G,z){!function w(T,x,G,z){Promise.resolve(z).then(function(H){T({value:H,done:G})},x)}(G,z,(x=n[T](x)).done,x.value)})}}}function K(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}function Q(n){if(n&&n.__esModule)return n;var e={};if(null!=n)for(var t in n)Object.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e.default=n,e}function W(n){return n&&n.__esModule?n:{default:n}}function u(n,e){if(!e.has(n))throw new TypeError("attempted to get private field on non-instance");return e.get(n)}function R(n,e,t){if(!e.has(n))throw new TypeError("attempted to set private field on non-instance");return e.set(n,t),t}},45442:ee=>{"use strict";ee.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.7","main":"lib/index.js","license":"Apache-2.0","description":"AWS Mobile AppSync Auth Link for JavaScript","author":{"name":"Amazon Web Services","url":"https://aws.amazon.com/"},"homepage":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git","repository":{"type":"git","url":"https://github.com/awslabs/aws-mobile-appsync-sdk-js.git"},"scripts":{"prepare":"tsc","test":"jest --coverage --coverageReporters=text --passWithNoTests","test-watch":"jest --watch"},"dependencies":{"@aws-crypto/sha256-js":"^1.2.0","@aws-sdk/types":"^3.25.0","@aws-sdk/util-hex-encoding":"^3.29.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')}}]);
|
|
4
|
+
//# sourceMappingURL=460.js.map
|
|
5
|
+
//# debugId=82d0cc08-bd83-5665-a091-00e9a933ec64
|