altair-static 5.2.4 → 5.2.6
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/build/dist/3rdpartylicenses.txt +110 -55
- package/build/dist/425.js +1 -1
- package/build/dist/625.js +1 -1
- package/build/dist/main.js +2 -2
- package/package.json +4 -4
package/build/dist/625.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[625],{53130:(ce,k,p)=>{"use strict";p.d(k,{R:()=>d});var t=p(40245),w=p(25661),d=function(){function r(){this.getFragmentDoc=(0,t.re)(w.Yk)}return r.prototype.recordOptimisticTransaction=function(n,a){this.performTransaction(n,a)},r.prototype.transformDocument=function(n){return n},r.prototype.identify=function(n){},r.prototype.gc=function(){return[]},r.prototype.modify=function(n){return!1},r.prototype.transformForLink=function(n){return n},r.prototype.readQuery=function(n,a){return void 0===a&&(a=!!n.optimistic),this.read({rootId:n.id||"ROOT_QUERY",query:n.query,variables:n.variables,returnPartialData:n.returnPartialData,optimistic:a})},r.prototype.readFragment=function(n,a){return void 0===a&&(a=!!n.optimistic),this.read({query:this.getFragmentDoc(n.fragment,n.fragmentName),variables:n.variables,rootId:n.id,returnPartialData:n.returnPartialData,optimistic:a})},r.prototype.writeQuery=function(n){return this.write({dataId:n.id||"ROOT_QUERY",result:n.data,query:n.query,variables:n.variables,broadcast:n.broadcast})},r.prototype.writeFragment=function(n){return this.write({dataId:n.id,result:n.data,variables:n.variables,query:this.getFragmentDoc(n.fragment,n.fragmentName),broadcast:n.broadcast})},r}()},2156:(ce,k,p)=>{"use strict";var t;p.d(k,{C:()=>t}),t||(t={})},17881:(ce,k,p)=>{"use strict";p.d(k,{y:()=>t});var t=function w(d,r,n,a,u){this.message=d,this.path=r,this.query=n,this.clientOnly=a,this.variables=u}},79325:(ce,k,p)=>{"use strict";p.d(k,{$O:()=>a,E_:()=>u,RC:()=>e,RI:()=>r,ig:()=>s,j:()=>i});var t=p(92137),w=p(23875),d=p(55932),r=Object.prototype.hasOwnProperty,a=/^[_a-z][_0-9a-z]*/i;function u(h){var y=h.match(a);return y?y[0]:h}function e(h,y,m){return!(!y||"object"!=typeof y)&&(Array.isArray(y)?y.every(function(I){return e(h,I,m)}):h.selections.every(function(I){if((0,t.My)(I)&&(0,w.LZ)(I,m)){var M=(0,t.u2)(I);return r.call(y,M)&&(!I.selectionSet||e(I.selectionSet,y[M],m))}return!0}))}function i(h){return null!==h&&"object"==typeof h&&!(0,t.Yk)(h)&&!Array.isArray(h)}function s(){return new d.w0}},82479:(ce,k,p)=>{"use strict";p.d(k,{h:()=>ne});var $,A,t=p(60162),w=p(40245),d=p(53130),r=p(17881),n=p(92137),a=p(77218),u=p(3474),e=p(53725),i=p(25661),s=p(23875),h=p(55932),y=p(16492),P=p(40863),C=p(79325),D=Object.create(null),W=function(){return D},Q=Object.create(null),H=function(){function $(A,b){var x=this;this.policies=A,this.group=b,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(N,q){return(0,n.Yk)(N)?x.get(N.__ref,q):N&&N[q]},this.canRead=function(N){return(0,n.Yk)(N)?x.has(N.__ref):"object"==typeof N},this.toReference=function(N,q){if("string"==typeof N)return(0,n.kQ)(N);if((0,n.Yk)(N))return N;var ee=x.policies.identify(N)[0];if(ee){var ue=(0,n.kQ)(ee);return q&&x.merge(ee,N),ue}}}return $.prototype.toObject=function(){return(0,t.pi)({},this.data)},$.prototype.has=function(A){return void 0!==this.lookup(A,!0)},$.prototype.get=function(A,b){if(this.group.depend(A,b),C.RI.call(this.data,A)){var x=this.data[A];if(x&&C.RI.call(x,b))return x[b]}return"__typename"===b&&C.RI.call(this.policies.rootTypenamesById,A)?this.policies.rootTypenamesById[A]:this instanceof R?this.parent.get(A,b):void 0},$.prototype.lookup=function(A,b){return b&&this.group.depend(A,"__exists"),C.RI.call(this.data,A)?this.data[A]:this instanceof R?this.parent.lookup(A,b):this.policies.rootTypenamesById[A]?Object.create(null):void 0},$.prototype.merge=function(A,b){var x=this,N=this.lookup(A),q=new h.w0(c).merge(N,b);if(this.data[A]=q,q!==N&&(delete this.refs[A],this.group.caching)){var ee=Object.create(null);N||(ee.__exists=1),Object.keys(b).forEach(function(ue){if(!N||N[ue]!==q[ue]){ee[ue]=1;var _e=(0,C.E_)(ue);_e!==ue&&!x.policies.hasKeyArgs(q.__typename,_e)&&(ee[_e]=1),void 0===q[ue]&&!(x instanceof R)&&delete q[ue]}}),Object.keys(ee).forEach(function(ue){return x.group.dirty(A,ue)})}},$.prototype.modify=function(A,b){var x=this,N=this.lookup(A);if(N){var q=Object.create(null),ee=!1,ue=!0,_e={DELETE:D,INVALIDATE:Q,isReference:n.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(me,Re){return x.policies.readField("string"==typeof me?{fieldName:me,from:Re||(0,n.kQ)(A)}:me,{store:x})}};if(Object.keys(N).forEach(function(me){var Re=(0,C.E_)(me),De=N[me];if(void 0!==De){var Me="function"==typeof b?b:b[me]||b[Re];if(Me){var ie=Me===W?D:Me(De,(0,t.pi)((0,t.pi)({},_e),{fieldName:Re,storeFieldName:me,storage:x.getStorage(A,me)}));ie===Q?x.group.dirty(A,me):(ie===D&&(ie=void 0),ie!==De&&(q[me]=ie,ee=!0,De=ie))}void 0!==De&&(ue=!1)}}),ee)return this.merge(A,q),ue&&(this instanceof R?this.data[A]=void 0:delete this.data[A],this.group.dirty(A,"__exists")),!0}return!1},$.prototype.delete=function(A,b,x){var N,q=this.lookup(A);if(q){var ee=this.getFieldValue(q,"__typename"),ue=b&&x?this.policies.getStoreFieldName({typename:ee,fieldName:b,args:x}):b;return this.modify(A,ue?((N={})[ue]=W,N):W)}return!1},$.prototype.evict=function(A){var b=!1;return A.id&&(C.RI.call(this.data,A.id)&&(b=this.delete(A.id,A.fieldName,A.args)),this instanceof R&&(b=this.parent.evict(A)||b),(A.fieldName||b)&&this.group.dirty(A.id,A.fieldName||"__exists")),b},$.prototype.clear=function(){this.replace(null)},$.prototype.extract=function(){var A=this,b=this.toObject(),x=[];return this.getRootIdSet().forEach(function(N){C.RI.call(A.policies.rootTypenamesById,N)||x.push(N)}),x.length&&(b.__META={extraRootIds:x.sort()}),b},$.prototype.replace=function(A){var b=this;if(Object.keys(this.data).forEach(function(q){A&&C.RI.call(A,q)||b.delete(q)}),A){var x=A.__META,N=(0,t._T)(A,["__META"]);Object.keys(N).forEach(function(q){b.merge(q,N[q])}),x&&x.extraRootIds.forEach(this.retain,this)}},$.prototype.retain=function(A){return this.rootIds[A]=(this.rootIds[A]||0)+1},$.prototype.release=function(A){if(this.rootIds[A]>0){var b=--this.rootIds[A];return b||delete this.rootIds[A],b}return 0},$.prototype.getRootIdSet=function(A){return void 0===A&&(A=new Set),Object.keys(this.rootIds).forEach(A.add,A),this instanceof R?this.parent.getRootIdSet(A):Object.keys(this.policies.rootTypenamesById).forEach(A.add,A),A},$.prototype.gc=function(){var A=this,b=this.getRootIdSet(),x=this.toObject();b.forEach(function(ee){C.RI.call(x,ee)&&(Object.keys(A.findChildRefIds(ee)).forEach(b.add,b),delete x[ee])});var N=Object.keys(x);if(N.length){for(var q=this;q instanceof R;)q=q.parent;N.forEach(function(ee){return q.delete(ee)})}return N},$.prototype.findChildRefIds=function(A){if(!C.RI.call(this.refs,A)){var b=this.refs[A]=Object.create(null),x=new Set([this.data[A]]),N=function(q){return null!==q&&"object"==typeof q};x.forEach(function(q){(0,n.Yk)(q)?b[q.__ref]=!0:N(q)&&Object.values(q).filter(N).forEach(x.add,x)})}return this.refs[A]},$.prototype.makeCacheKey=function(){for(var A=[],b=0;b<arguments.length;b++)A[b]=arguments[b];return this.group.keyMaker.lookupArray(A)},$}(),L=function(){function $(A){this.caching=A,this.d=null,this.keyMaker=new w.Gl(P.m),this.d=A?(0,w.dP)():null}return $.prototype.depend=function(A,b){if(this.d){this.d(g(A,b));var x=(0,C.E_)(b);x!==b&&this.d(g(A,x))}},$.prototype.dirty=function(A,b){this.d&&this.d.dirty(g(A,b))},$}();function g($,A){return A+"#"+$}A=function(b){function x(N){var ee=N.resultCaching,ue=void 0===ee||ee,_e=N.seed,me=b.call(this,N.policies,new L(ue))||this;return me.storageTrie=new w.Gl(P.m),me.sharedLayerGroup=new L(ue),_e&&me.replace(_e),me}return(0,t.ZT)(x,b),x.prototype.addLayer=function(N,q){return new R(N,this,q,this.sharedLayerGroup)},x.prototype.removeLayer=function(){return this},x.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},x}($=H||(H={})),$.Root=A;var R=function($){function A(b,x,N,q){var ee=$.call(this,x.policies,q)||this;return ee.id=b,ee.parent=x,ee.replay=N,ee.group=q,N(ee),ee}return(0,t.ZT)(A,$),A.prototype.addLayer=function(b,x){return new A(b,this,x,this.group)},A.prototype.removeLayer=function(b){var x=this,N=this.parent.removeLayer(b);return b===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(q){x.data[q]!==N.lookup(q)&&x.delete(q)}),N):N===this.parent?this:N.addLayer(this.id,this.replay)},A.prototype.toObject=function(){return(0,t.pi)((0,t.pi)({},this.parent.toObject()),this.data)},A.prototype.findChildRefIds=function(b){var x=this.parent.findChildRefIds(b);return C.RI.call(this.data,b)?(0,t.pi)((0,t.pi)({},x),$.prototype.findChildRefIds.call(this,b)):x},A.prototype.getStorage=function(){for(var b=this.parent;b.parent;)b=b.parent;return b.getStorage.apply(b,arguments)},A}(H);function c($,A,b){var x=$[b],N=A[b];return(0,y.D)(x,N)?x:N}function _($){return!!($ instanceof H&&$.group.caching)}function l($,A){return new r.y($.message,A.path.slice(),A.query,A.clientOnly,A.variables)}var T=function(){function $(A){var b=this;this.config=A,this.executeSelectionSet=(0,w.re)(function(x){return b.execSelectionSetImpl(x)},{keyArgs:function(x){return[x.selectionSet,x.objectOrReference,x.context]},makeCacheKey:function(x,N,q){if(_(q.store))return q.store.makeCacheKey(x,(0,n.Yk)(N)?N.__ref:N,q.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,w.re)(function(x){return b.execSubSelectedArrayImpl(x)},{makeCacheKey:function(x){var N=x.field,q=x.array,ee=x.context;if(_(ee.store))return ee.store.makeCacheKey(N,q,ee.varString)}}),this.config=(0,t.pi)({addTypename:!0},A)}return $.prototype.diffQueryAgainstStore=function(A){var b=A.store,x=A.query,N=A.rootId,q=void 0===N?"ROOT_QUERY":N,ee=A.variables,ue=A.returnPartialData,_e=void 0===ue||ue,me=this.config.cache.policies;ee=(0,t.pi)((0,t.pi)({},(0,e.O4)((0,e.iW)(x))),ee);var Re=this.executeSelectionSet({selectionSet:(0,e.p$)(x).selectionSet,objectOrReference:(0,n.kQ)(q),context:{store:b,query:x,policies:me,variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,i.F)((0,e.kU)(x)),path:[],clientOnly:!1}}),De=Re.missing&&Re.missing.length>0;if(De&&!_e)throw Re.missing[0];return{result:Re.result,missing:Re.missing,complete:!De}},$.prototype.isFresh=function(A,b,x,N){if(_(N.store)&&this.knownResults.get(A)===x){var q=this.executeSelectionSet.peek(x,b,N);if(q&&A===q.result)return!0}return!1},$.prototype.execSelectionSetImpl=function(A){var b=this,x=A.selectionSet,N=A.objectOrReference,q=A.context;if((0,n.Yk)(N)&&!q.policies.rootTypenamesById[N.__ref]&&!q.store.has(N.__ref))return{result:{},missing:[l(new u.ej(4),q)]};var ee=q.variables,ue=q.policies,me=[],Re={result:null},De=q.store.getFieldValue(N,"__typename");function Me(){return Re.missing||(Re.missing=[])}function ie(v){var O;return v.missing&&(O=Me()).push.apply(O,v.missing),v.result}this.config.addTypename&&"string"==typeof De&&!ue.rootIdsByTypename[De]&&me.push({__typename:De});var V=new Set(x.selections);return V.forEach(function(v){var O;if((0,s.LZ)(v,ee))if((0,n.My)(v)){var F=ue.readField({fieldName:v.name.value,field:v,variables:q.variables,from:N},q),re=(0,n.u2)(v);q.path.push(re);var ve=q.clientOnly;q.clientOnly=ve||!(!v.directives||!v.directives.some(function(Te){return"client"===Te.name.value})),void 0===F?a.Gw.added(v)||Me().push(l(new u.ej(5),q)):Array.isArray(F)?F=ie(b.executeSubSelectedArray({field:v,array:F,context:q})):v.selectionSet&&null!=F&&(F=ie(b.executeSelectionSet({selectionSet:v.selectionSet,objectOrReference:F,context:q}))),void 0!==F&&me.push(((O={})[re]=F,O)),q.clientOnly=ve,(0,u.kG)(q.path.pop()===re)}else{var xe=(0,i.hi)(v,q.fragmentMap);xe&&ue.fragmentMatches(xe,De)&&xe.selectionSet.selections.forEach(V.add,V)}}),Re.result=(0,h.bw)(me),this.knownResults.set(Re.result,x),Re},$.prototype.execSubSelectedArrayImpl=function(A){var ee,b=this,x=A.field,N=A.array,q=A.context;function ue(_e,me){return _e.missing&&(ee=ee||[]).push.apply(ee,_e.missing),(0,u.kG)(q.path.pop()===me),_e.result}return x.selectionSet&&(N=N.filter(q.store.canRead)),{result:N=N.map(function(_e,me){return null===_e?null:(q.path.push(me),Array.isArray(_e)?ue(b.executeSubSelectedArray({field:x,array:_e,context:q}),me):x.selectionSet?ue(b.executeSelectionSet({selectionSet:x.selectionSet,objectOrReference:_e,context:q}),me):((0,u.kG)(q.path.pop()===me),_e))}),missing:ee}},$}(),U=function(){function $(A,b){this.cache=A,this.reader=b}return $.prototype.writeToStore=function(A){var b=A.query,x=A.result,N=A.dataId,q=A.store,ee=A.variables,ue=(0,e.$H)(b),_e=(0,C.ig)();ee=(0,t.pi)((0,t.pi)({},(0,e.O4)(ue)),ee);var me=this.processSelectionSet({result:x||Object.create(null),dataId:N,selectionSet:ue.selectionSet,mergeTree:{map:new Map},context:{store:q,written:Object.create(null),merge:function(Re,De){return _e.merge(Re,De)},variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,i.F)((0,e.kU)(b))}});if(!(0,n.Yk)(me))throw new u.ej(7);return q.retain(me.__ref),me},$.prototype.processSelectionSet=function(A){var b=this,x=A.dataId,N=A.result,q=A.selectionSet,ee=A.context,ue=A.mergeTree,_e=this.cache.policies,me=_e.identify(N,q,ee.fragmentMap),De=me[1];if("string"==typeof(x=x||me[0])){var Me=ee.written[x]||(ee.written[x]=[]),ie=(0,n.kQ)(x);if(Me.indexOf(q)>=0||(Me.push(q),this.reader&&this.reader.isFresh(N,ie,q,ee)))return ie}var V=Object.create(null);De&&(V=ee.merge(V,De));var v=x&&_e.rootTypenamesById[x]||(0,n.qw)(N,q,ee.fragmentMap)||x&&ee.store.get(x,"__typename");"string"==typeof v&&(V.__typename=v);var O=new Set(q.selections);if(O.forEach(function(Te){var te;if((0,s.LZ)(Te,ee.variables))if((0,n.My)(Te)){var de=(0,n.u2)(Te),ye=N[de];if(typeof ye<"u"){var Oe=_e.getStoreFieldName({typename:v,fieldName:Te.name.value,field:Te,variables:ee.variables}),Ie=ae(ue,Oe),Ue=b.processFieldValue(ye,Te,ee,Ie),qe=Te.selectionSet&&ee.store.getFieldValue(Ue,"__typename")||void 0,ze=_e.getMergeFunction(v,Te.name.value,qe);ze?Ie.info={field:Te,typename:v,merge:ze}:pe(ue,Oe),V=ee.merge(V,((te={})[Oe]=Ue,te))}else if(_e.usingPossibleTypes&&!(0,s.FS)(["defer","client"],Te))throw new u.ej(8)}else{var nt=(0,i.hi)(Te,ee.fragmentMap);nt&&_e.fragmentMatches(nt,v,N,ee.variables)&&nt.selectionSet.selections.forEach(O.add,O)}}),"string"==typeof x){var F=(0,n.kQ)(x);return ue.map.size&&(V=this.applyMerges(ue,F,V,ee)),ee.store.merge(x,V),F}return V},$.prototype.processFieldValue=function(A,b,x,N){var q=this;return b.selectionSet&&null!==A?Array.isArray(A)?A.map(function(ee,ue){var _e=q.processFieldValue(ee,b,x,ae(N,ue));return pe(N,ue),_e}):this.processSelectionSet({result:A,selectionSet:b.selectionSet,context:x,mergeTree:N}):A},$.prototype.applyMerges=function(A,b,x,N,q){var ee,ue=this;if(A.map.size&&!(0,n.Yk)(x)){var _e=Array.isArray(x)||!(0,n.Yk)(b)&&!(0,C.j)(b)?void 0:b,me=x;_e&&!q&&(q=[(0,n.Yk)(_e)?_e.__ref:_e]);var Re,De=function(Me,ie){return Array.isArray(Me)?"number"==typeof ie?Me[ie]:void 0:N.store.getFieldValue(Me,String(ie))};A.map.forEach(function(Me,ie){q&&q.push(ie);var V=De(_e,ie),v=De(me,ie),O=ue.applyMerges(Me,V,v,N,q);O!==v&&(Re=Re||new Map).set(ie,O),q&&(0,u.kG)(q.pop()===ie)}),Re&&(x=Array.isArray(me)?me.slice(0):(0,t.pi)({},me),Re.forEach(function(Me,ie){x[ie]=Me}))}return A.info?this.cache.policies.runMergeFunction(b,x,A.info,N,q&&(ee=N.store).getStorage.apply(ee,q)):x},$}(),z=[];function ae($,A){var b=$.map;return b.has(A)||b.set(A,z.pop()||{map:new Map}),b.get(A)}function pe($,A){var b=$.map,x=b.get(A);x&&!x.info&&!x.map.size&&(z.push(x),b.delete(A))}var oe=p(70584),K=p(74716),Y={dataIdFromObject:K.u,addTypename:!0,resultCaching:!0,typePolicies:{}},ne=function($){function A(b){void 0===b&&(b={});var x=$.call(this)||this;return x.watches=new Set,x.typenameDocumentCache=new Map,x.makeVar=oe.QS,x.txCount=0,x.maybeBroadcastWatch=(0,w.re)(function(N,q){return x.broadcastWatch.call(x,N,!!q)},{makeCacheKey:function(N){var q=N.optimistic?x.optimisticData:x.data;if(_(q))return q.makeCacheKey(N.query,N.callback,JSON.stringify({optimistic:N.optimistic,rootId:N.rootId,variables:N.variables}))}}),x.watchDep=(0,w.dP)(),x.config=(0,t.pi)((0,t.pi)({},Y),b),x.addTypename=!!x.config.addTypename,x.policies=new K.r({cache:x,dataIdFromObject:x.config.dataIdFromObject,possibleTypes:x.config.possibleTypes,typePolicies:x.config.typePolicies}),x.data=new H.Root({policies:x.policies,resultCaching:x.config.resultCaching}),x.optimisticData=x.data,x.storeWriter=new U(x,x.storeReader=new T({cache:x,addTypename:x.addTypename})),x}return(0,t.ZT)(A,$),A.prototype.restore=function(b){return b&&this.data.replace(b),this},A.prototype.extract=function(b){return void 0===b&&(b=!1),(b?this.optimisticData:this.data).extract()},A.prototype.read=function(b){var x=b.returnPartialData,N=void 0!==x&&x;try{return this.storeReader.diffQueryAgainstStore({store:b.optimistic?this.optimisticData:this.data,query:b.query,variables:b.variables,rootId:b.rootId,config:this.config,returnPartialData:N}).result||null}catch(q){if(q instanceof r.y)return null;throw q}},A.prototype.write=function(b){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:b.query,result:b.result,dataId:b.dataId,variables:b.variables})}finally{!--this.txCount&&!1!==b.broadcast&&this.broadcastWatches()}},A.prototype.modify=function(b){if(C.RI.call(b,"id")&&!b.id)return!1;var x=b.optimistic?this.optimisticData:this.data;try{return++this.txCount,x.modify(b.id||"ROOT_QUERY",b.fields)}finally{!--this.txCount&&!1!==b.broadcast&&this.broadcastWatches()}},A.prototype.diff=function(b){return this.storeReader.diffQueryAgainstStore({store:b.optimistic?this.optimisticData:this.data,rootId:b.id||"ROOT_QUERY",query:b.query,variables:b.variables,returnPartialData:b.returnPartialData,config:this.config})},A.prototype.watch=function(b){var x=this;return this.watches.size||(0,oe._v)(this),this.watches.add(b),b.immediate&&this.maybeBroadcastWatch(b),function(){x.watches.delete(b)&&!x.watches.size&&(0,oe.li)(x),x.watchDep.dirty(b),x.maybeBroadcastWatch.forget(b)}},A.prototype.gc=function(){return this.optimisticData.gc()},A.prototype.retain=function(b,x){return(x?this.optimisticData:this.data).retain(b)},A.prototype.release=function(b,x){return(x?this.optimisticData:this.data).release(b)},A.prototype.identify=function(b){return(0,n.Yk)(b)?b.__ref:this.policies.identify(b)[0]},A.prototype.evict=function(b){if(!b.id){if(C.RI.call(b,"id"))return!1;b=(0,t.pi)((0,t.pi)({},b),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(b)}finally{!--this.txCount&&!1!==b.broadcast&&this.broadcastWatches()}},A.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},A.prototype.removeOptimistic=function(b){var x=this.optimisticData.removeLayer(b);x!==this.optimisticData&&(this.optimisticData=x,this.broadcastWatches())},A.prototype.performTransaction=function(b,x){var N=this,q=function(ue){var me=N.data,Re=N.optimisticData;++N.txCount,ue&&(N.data=N.optimisticData=ue);try{b(N)}finally{--N.txCount,N.data=me,N.optimisticData=Re}},ee=!1;"string"==typeof x?(this.optimisticData=this.optimisticData.addLayer(x,q),ee=!0):null===x?q(this.data):q(),this.broadcastWatches(ee)},A.prototype.transformDocument=function(b){if(this.addTypename){var x=this.typenameDocumentCache.get(b);return x||(x=(0,a.Gw)(b),this.typenameDocumentCache.set(b,x),this.typenameDocumentCache.set(x,x)),x}return b},A.prototype.broadcastWatches=function(b){var x=this;this.txCount||this.watches.forEach(function(N){return x.maybeBroadcastWatch(N,b)})},A.prototype.broadcastWatch=function(b,x){this.watchDep.dirty(b),this.watchDep(b);var N=this.diff({query:b.query,variables:b.variables,optimistic:b.optimistic});b.optimistic&&x&&(N.fromOptimisticTransaction=!0),b.callback(N)},A}(d.R)},74716:(ce,k,p)=>{"use strict";p.d(k,{r:()=>M,u:()=>s});var t=p(60162),w=p(40245),d=p(3474),r=p(92137),n=p(40863),a=p(25661),u=p(79325),e=p(70584);function i(L){return void 0!==L.args?L.args:L.field?(0,r.NC)(L.field,L.variables):null}var s=function(L,g){var R=L.__typename,c=L.id,_=L._id;if("string"==typeof R&&(g&&(g.keyObject=void 0!==c?{id:c}:void 0!==_?{_id:_}:void 0),void 0===c&&(c=_),void 0!==c))return R+":"+("number"==typeof c||"string"==typeof c?c:JSON.stringify(c))},h=function(){},y=function(L,g){return g.fieldName},m=function(L,g,R){return(0,R.mergeObjects)(L,g)},I=function(L,g){return g},M=function(){function L(g){this.config=g,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,t.pi)({dataIdFromObject:s},g),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),g.possibleTypes&&this.addPossibleTypes(g.possibleTypes),g.typePolicies&&this.addTypePolicies(g.typePolicies)}return L.prototype.identify=function(g,R,c){var _=R&&c?(0,r.qw)(g,R,c):g.__typename;if(_===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var T,l={typename:_,selectionSet:R,fragmentMap:c},B=_&&this.getTypePolicy(_),U=B&&B.keyFn||this.config.dataIdFromObject;U;){var z=U(g,l);if(!Array.isArray(z)){T=z;break}U=W(z)}return T=T?String(T):void 0,l.keyObject?[T,l.keyObject]:[T]},L.prototype.addTypePolicies=function(g){var R=this;Object.keys(g).forEach(function(c){var _=g[c],l=_.queryType,T=_.mutationType,B=_.subscriptionType,U=(0,t._T)(_,["queryType","mutationType","subscriptionType"]);l&&R.setRootTypename("Query",c),T&&R.setRootTypename("Mutation",c),B&&R.setRootTypename("Subscription",c),u.RI.call(R.toBeAdded,c)?R.toBeAdded[c].push(U):R.toBeAdded[c]=[U]})},L.prototype.updateTypePolicy=function(g,R){var c=this,_=this.getTypePolicy(g),l=R.keyFields,T=R.fields;function B(U,z){U.merge="function"==typeof z?z:!0===z?m:!1===z?I:U.merge}B(_,R.merge),_.keyFn=!1===l?h:Array.isArray(l)?W(l):"function"==typeof l?l:_.keyFn,T&&Object.keys(T).forEach(function(U){var z=c.getFieldPolicy(g,U,!0),ae=T[U];if("function"==typeof ae)z.read=ae;else{var pe=ae.keyArgs,X=ae.read,he=ae.merge;z.keyFn=!1===pe?y:Array.isArray(pe)?D(pe):"function"==typeof pe?pe:z.keyFn,"function"==typeof X&&(z.read=X),B(z,he)}z.read&&z.merge&&(z.keyFn=z.keyFn||y)})},L.prototype.setRootTypename=function(g,R){void 0===R&&(R=g);var c="ROOT_"+g.toUpperCase(),_=this.rootTypenamesById[c];R!==_&&((0,d.kG)(!_||_===g,1),_&&delete this.rootIdsByTypename[_],this.rootIdsByTypename[R]=c,this.rootTypenamesById[c]=R)},L.prototype.addPossibleTypes=function(g){var R=this;this.usingPossibleTypes=!0,Object.keys(g).forEach(function(c){R.getSupertypeSet(c,!0),g[c].forEach(function(_){R.getSupertypeSet(_,!0).add(c);var l=_.match(u.$O);(!l||l[0]!==_)&&R.fuzzySubtypes.set(_,new RegExp(_))})})},L.prototype.getTypePolicy=function(g){var R=this;if(!u.RI.call(this.typePolicies,g)){var c=this.typePolicies[g]=Object.create(null);c.fields=Object.create(null);var _=this.supertypeMap.get(g);_&&_.size&&_.forEach(function(T){var B=R.getTypePolicy(T),U=B.fields,z=(0,t._T)(B,["fields"]);Object.assign(c,z),Object.assign(c.fields,U)})}var l=this.toBeAdded[g];return l&&l.length&&l.splice(0).forEach(function(T){R.updateTypePolicy(g,T)}),this.typePolicies[g]},L.prototype.getFieldPolicy=function(g,R,c){if(g){var _=this.getTypePolicy(g).fields;return _[R]||c&&(_[R]=Object.create(null))}},L.prototype.getSupertypeSet=function(g,R){var c=this.supertypeMap.get(g);return!c&&R&&this.supertypeMap.set(g,c=new Set),c},L.prototype.fragmentMatches=function(g,R,c,_){var l=this;if(!g.typeCondition)return!0;if(!R)return!1;var T=g.typeCondition.name.value;if(R===T)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(T))for(var B=this.getSupertypeSet(R,!0),U=[B],z=function(oe){var K=l.getSupertypeSet(oe,!1);K&&K.size&&U.indexOf(K)<0&&U.push(K)},ae=!(!c||!this.fuzzySubtypes.size),X=0;X<U.length;++X){var he=U[X];if(he.has(T))return B.has(T)||B.add(T),!0;he.forEach(z),ae&&X===U.length-1&&(0,u.RC)(g.selectionSet,c,_)&&(ae=!1,this.fuzzySubtypes.forEach(function(oe,K){var Y=R.match(oe);Y&&Y[0]===R&&z(K)}))}return!1},L.prototype.hasKeyArgs=function(g,R){var c=this.getFieldPolicy(g,R,!1);return!(!c||!c.keyFn)},L.prototype.getStoreFieldName=function(g){var l,R=g.typename,c=g.fieldName,_=this.getFieldPolicy(R,c,!1),T=_&&_.keyFn;if(T&&R)for(var B={typename:R,fieldName:c,field:g.field||null,variables:g.variables},U=i(g);T;){var z=T(U,B);if(!Array.isArray(z)){l=z||c;break}T=D(z)}return void 0===l&&(l=g.field?(0,r.vf)(g.field,g.variables):(0,r.PT)(c,i(g))),!1===l?c:c===(0,u.E_)(l)?l:c+":"+l},L.prototype.readField=function(g,R){var c=g.from;if(c&&(g.field||g.fieldName)){if(void 0===g.typename){var l=R.store.getFieldValue(c,"__typename");l&&(g.typename=l)}var T=this.getStoreFieldName(g),B=(0,u.E_)(T),U=R.store.getFieldValue(c,T),z=this.getFieldPolicy(g.typename,B,!1),ae=z&&z.read;if(ae){var pe=P(this,c,g,R,R.store.getStorage((0,r.Yk)(c)?c.__ref:c,T));return e.ab.withValue(this.cache,ae,[U,pe])}return U}},L.prototype.getMergeFunction=function(g,R,c){var _=this.getFieldPolicy(g,R,!1),l=_&&_.merge;return!l&&c&&(l=(_=this.getTypePolicy(c))&&_.merge),l},L.prototype.runMergeFunction=function(g,R,c,_,l){var T=c.field,B=c.typename,U=c.merge;return U===m?C(_.store.getFieldValue)(g,R):U===I?R:U(g,R,P(this,void 0,{typename:B,fieldName:T.name.value,field:T,variables:_.variables},_,l||Object.create(null)))},L}();function P(L,g,R,c,_){var l=L.getStoreFieldName(R),T=(0,u.E_)(l),B=R.variables||c.variables,U=c.store,z=U.getFieldValue,ae=U.toReference,pe=U.canRead;return{args:i(R),field:R.field||null,fieldName:T,storeFieldName:l,variables:B,isReference:r.Yk,toReference:ae,storage:_,cache:L.cache,canRead:pe,readField:function(X,he){var oe="string"==typeof X?{fieldName:X,from:he}:(0,t.pi)({},X);return void 0===oe.from&&(oe.from=g),void 0===oe.variables&&(oe.variables=B),L.readField(oe,c)},mergeObjects:C(z)}}function C(L){return function(R,c){if(Array.isArray(R)||Array.isArray(c))throw new d.ej(2);if(R&&"object"==typeof R&&c&&"object"==typeof c){var _=L(R,"__typename"),l=L(c,"__typename");return _&&l&&_!==l||!(0,u.j)(R)||!(0,u.j)(c)?c:(0,t.pi)((0,t.pi)({},R),c)}return c}}function D(L){return function(g,R){return g?R.fieldName+":"+JSON.stringify(H(g,L,!1)):R.fieldName}}function W(L){var g=new w.Gl(n.m);return function(R,c){var _;if(c.selectionSet&&c.fragmentMap){var l=g.lookupArray([c.selectionSet,c.fragmentMap]);_=l.aliasMap||(l.aliasMap=Q(c.selectionSet,c.fragmentMap))}var T=c.keyObject=H(R,L,!0,_);return c.typename+":"+JSON.stringify(T)}}function Q(L,g){var R=Object.create(null),c=new Set([L]);return c.forEach(function(_){_.selections.forEach(function(l){if((0,r.My)(l)){if(l.alias){var T=l.alias.value,B=l.name.value;B!==T&&((R.aliases||(R.aliases=Object.create(null)))[B]=T)}l.selectionSet&&((R.subsets||(R.subsets=Object.create(null)))[l.name.value]=Q(l.selectionSet,g))}else{var ae=(0,a.hi)(l,g);ae&&c.add(ae.selectionSet)}})}),R}function H(L,g,R,c){var l,_=Object.create(null);return g.forEach(function(T){if(Array.isArray(T)){if("string"==typeof l){var B=c&&c.subsets;_[l]=H(L[l],T,R,B&&B[l])}}else{var z=c&&c.aliases,ae=z&&z[T]||T;u.RI.call(L,ae)?_[l=T]=L[ae]:((0,d.kG)(!R,3),l=void 0)}}),_}},70584:(ce,k,p)=>{"use strict";p.d(k,{QS:()=>e,_v:()=>u,ab:()=>d,li:()=>a});var t=p(40245),d=new(p(62966).g7),r=new WeakMap;function n(s){var h=r.get(s);return h||r.set(s,h={vars:new Set,dep:(0,t.dP)()}),h}function a(s){n(s).vars.forEach(function(h){return h.forgetCache(s)})}function u(s){n(s).vars.forEach(function(h){return h.attachCache(s)})}function e(s){var h=new Set,y=new Set,m=function(M){if(arguments.length>0){if(s!==M){s=M,h.forEach(function(D){n(D).dep.dirty(m),function i(s){s.broadcastWatches&&s.broadcastWatches()}(D)});var P=Array.from(y);y.clear(),P.forEach(function(D){return D(s)})}}else{var C=d.getValue();C&&(I(C),n(C).dep(m))}return s};m.onNextChange=function(M){return y.add(M),function(){y.delete(M)}};var I=m.attachCache=function(M){return h.add(M),n(M).vars.add(m),m};return m.forgetCache=function(M){return h.delete(M)},m}},50940:()=>{},28341:(ce,k,p)=>{"use strict";p.d(k,{f:()=>$,J:()=>ne});var t=p(60162),w=p(3474),d=p(30387),r=p(50607),n=p(30921),a="3.3.20",u=p(24555),e=p(16492),i=p(40863);function s(A){return A.errors&&A.errors.length>0||!1}var h=p(26583),y=p(53725),m=p(77218),I=p(23875),M=p(20274),P=p.n(M),C=p(97090),D=p(67178);function W(A){return A&&"function"==typeof A.then}var Q=function(A){function b(x){var N=A.call(this,function(q){return N.addObserver(q),function(){return N.removeObserver(q)}})||this;return N.observers=new Set,N.addCount=0,N.promise=new Promise(function(q,ee){N.resolve=q,N.reject=ee}),N.handlers={next:function(q){null!==N.sub&&(N.latest=["next",q],(0,C.p)(N.observers,"next",q))},error:function(q){var ee=N.sub;null!==ee&&(ee&&Promise.resolve().then(function(){return ee.unsubscribe()}),N.sub=null,N.latest=["error",q],N.reject(q),(0,C.p)(N.observers,"error",q))},complete:function(){if(null!==N.sub){var q=N.sources.shift();q?W(q)?q.then(function(ee){return N.sub=ee.subscribe(N.handlers)}):N.sub=q.subscribe(N.handlers):(N.sub=null,N.latest&&"next"===N.latest[0]?N.resolve(N.latest[1]):N.resolve(),(0,C.p)(N.observers,"complete"))}}},N.cancel=function(q){N.reject(q),N.sources=[],N.handlers.complete()},N.promise.catch(function(q){}),"function"==typeof x&&(x=[new(P())(x)]),W(x)?x.then(function(q){return N.start(q)},N.handlers.error):N.start(x),N}return(0,t.ZT)(b,A),b.prototype.start=function(x){void 0===this.sub&&(this.sources=Array.from(x),this.handlers.complete())},b.prototype.deliverLastMessage=function(x){if(this.latest){var N=this.latest[0],q=x[N];q&&q.call(x,this.latest[1]),null===this.sub&&"next"===N&&x.complete&&x.complete()}},b.prototype.addObserver=function(x){this.observers.has(x)||(this.deliverLastMessage(x),this.observers.add(x),++this.addCount)},b.prototype.removeObserver=function(x,N){this.observers.delete(x)&&--this.addCount<1&&!N&&this.handlers.error(new Error("Observable cancelled prematurely"))},b.prototype.cleanup=function(x){var N=this,q=!1,ee=function(){q||(q=!0,N.observers.delete(ue),x())},ue={next:ee,error:ee,complete:ee},_e=this.addCount;this.addObserver(ue),this.addCount=_e},b}(P());function H(A,b,x){return new(P())(function(N){var q=N.next,ee=N.error,ue=N.complete,_e=0,me=!1,Re={then:function(V){return new Promise(function(v){return v(V())})}};function De(V,v){return V?function(O){++_e;var F=function(){return V(O)};Re=Re.then(F,F).then(function(re){--_e,q&&q.call(N,re),me&&Me.complete()},function(re){throw--_e,re}).catch(function(re){ee&&ee.call(N,re)})}:function(O){return v&&v.call(N,O)}}var Me={next:De(b,q),error:De(x,ee),complete:function(){me=!0,_e||ue&&ue.call(N)}},ie=A.subscribe(Me);return function(){return ie.unsubscribe()}})}(0,D.D)(Q);var L=p(79040),g=p(15601),R=p(17598),c=p(4496),_=p(55932),l=p(25661),T=p(92137),B=p(70584),U=function(){function A(b){var N=b.client,q=b.resolvers,ee=b.fragmentMatcher;this.cache=b.cache,N&&(this.client=N),q&&this.addResolvers(q),ee&&this.setFragmentMatcher(ee)}return A.prototype.addResolvers=function(b){var x=this;this.resolvers=this.resolvers||{},Array.isArray(b)?b.forEach(function(N){x.resolvers=(0,_.Ee)(x.resolvers,N)}):this.resolvers=(0,_.Ee)(this.resolvers,b)},A.prototype.setResolvers=function(b){this.resolvers={},this.addResolvers(b)},A.prototype.getResolvers=function(){return this.resolvers||{}},A.prototype.runResolvers=function(b){var x=b.document,N=b.remoteResult,q=b.context,ee=b.variables,ue=b.onlyRunForcedResolvers,_e=void 0!==ue&&ue;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(me){return x?[2,this.resolveDocument(x,N.data,q,ee,this.fragmentMatcher,_e).then(function(Re){return(0,t.pi)((0,t.pi)({},N),{data:Re.result})})]:[2,N]})})},A.prototype.setFragmentMatcher=function(b){this.fragmentMatcher=b},A.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},A.prototype.clientQuery=function(b){return(0,I.FS)(["client"],b)&&this.resolvers?b:null},A.prototype.serverQuery=function(b){return(0,m.ob)(b)},A.prototype.prepareContext=function(b){var x=this.cache;return(0,t.pi)((0,t.pi)({},b),{cache:x,getCacheKey:function(N){return x.identify(N)}})},A.prototype.addExportedVariables=function(b,x,N){return void 0===x&&(x={}),void 0===N&&(N={}),(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(q){return b?[2,this.resolveDocument(b,this.buildRootValueFromCache(b,x)||{},this.prepareContext(N),x).then(function(ee){return(0,t.pi)((0,t.pi)({},x),ee.exportedVariables)})]:[2,(0,t.pi)({},x)]})})},A.prototype.shouldForceResolvers=function(b){var x=!1;return(0,c.Vn)(b,{Directive:{enter:function(N){if("client"===N.name.value&&N.arguments&&(x=N.arguments.some(function(q){return"always"===q.name.value&&"BooleanValue"===q.value.kind&&!0===q.value.value})))return c.$_}}}),x},A.prototype.buildRootValueFromCache=function(b,x){return this.cache.diff({query:(0,m.aL)(b),variables:x,returnPartialData:!0,optimistic:!1}).result},A.prototype.resolveDocument=function(b,x,N,q,ee,ue){return void 0===N&&(N={}),void 0===q&&(q={}),void 0===ee&&(ee=function(){return!0}),void 0===ue&&(ue=!1),(0,t.mG)(this,void 0,void 0,function(){var _e,me,Re,De,Me,ie,V,v,O;return(0,t.Jh)(this,function(F){return _e=(0,y.p$)(b),me=(0,y.kU)(b),Re=(0,l.F)(me),Me=(De=_e.operation)?De.charAt(0).toUpperCase()+De.slice(1):"Query",V=(ie=this).cache,v=ie.client,O={fragmentMap:Re,context:(0,t.pi)((0,t.pi)({},N),{cache:V,client:v}),variables:q,fragmentMatcher:ee,defaultOperationType:Me,exportedVariables:{},onlyRunForcedResolvers:ue},[2,this.resolveSelectionSet(_e.selectionSet,x,O).then(function(re){return{result:re,exportedVariables:O.exportedVariables}})]})})},A.prototype.resolveSelectionSet=function(b,x,N){return(0,t.mG)(this,void 0,void 0,function(){var q,ee,ue,_e,Re=this;return(0,t.Jh)(this,function(De){return q=N.fragmentMap,ee=N.context,ue=N.variables,_e=[x],[2,Promise.all(b.selections.map(function(Me){return(0,t.mG)(Re,void 0,void 0,function(){var ie;return(0,t.Jh)(this,function(v){return(0,I.LZ)(Me,ue)?(0,T.My)(Me)?[2,this.resolveField(Me,x,N).then(function(O){var F;typeof O<"u"&&_e.push(((F={})[(0,T.u2)(Me)]=O,F))})]:((0,T.Ao)(Me)?ie=Me:(0,w.kG)(ie=q[Me.name.value],11),ie&&ie.typeCondition&&N.fragmentMatcher(x,ie.typeCondition.name.value,ee)?[2,this.resolveSelectionSet(ie.selectionSet,x,N).then(function(O){_e.push(O)})]:[2]):[2]})})})).then(function(){return(0,_.bw)(_e)})]})})},A.prototype.resolveField=function(b,x,N){return(0,t.mG)(this,void 0,void 0,function(){var q,ee,ue,_e,me,Re,De,Me,ie,V=this;return(0,t.Jh)(this,function(v){return q=N.variables,ee=b.name.value,ue=(0,T.u2)(b),_e=ee!==ue,me=x[ue]||x[ee],Re=Promise.resolve(me),(!N.onlyRunForcedResolvers||this.shouldForceResolvers(b))&&(De=x.__typename||N.defaultOperationType,(Me=this.resolvers&&this.resolvers[De])&&(ie=Me[_e?ee:ue])&&(Re=Promise.resolve(B.ab.withValue(this.cache,ie,[x,(0,T.NC)(b,q),N.context,{field:b,fragmentMap:N.fragmentMap}])))),[2,Re.then(function(O){return void 0===O&&(O=me),b.directives&&b.directives.forEach(function(F){"export"===F.name.value&&F.arguments&&F.arguments.forEach(function(re){"as"===re.name.value&&"StringValue"===re.value.kind&&(N.exportedVariables[re.value.value]=O)})}),b.selectionSet&&null!=O?Array.isArray(O)?V.resolveSubSelectedArray(b,O,N):b.selectionSet?V.resolveSelectionSet(b.selectionSet,O,N):void 0:O})]})})},A.prototype.resolveSubSelectedArray=function(b,x,N){var q=this;return Promise.all(x.map(function(ee){return null===ee?null:Array.isArray(ee)?q.resolveSubSelectedArray(b,ee,N):b.selectionSet?q.resolveSelectionSet(b.selectionSet,ee,N):void 0}))},A}(),z=new(i.m?WeakMap:Map);function ae(A,b){var x=A[b];"function"==typeof x&&(A[b]=function(){return z.set(A,(z.get(A)+1)%1e15),x.apply(this,arguments)})}function pe(A){A.notifyTimeout&&(clearTimeout(A.notifyTimeout),A.notifyTimeout=void 0)}var X=function(){function A(b){this.cache=b,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,z.has(b)||(z.set(b,0),ae(b,"evict"),ae(b,"modify"),ae(b,"reset"))}return A.prototype.init=function(b){var x=b.networkStatus||R.I.loading;return this.variables&&this.networkStatus!==R.I.loading&&!(0,e.D)(this.variables,b.variables)&&(x=R.I.setVariables),(0,e.D)(b.variables,this.variables)||(this.diff=null),Object.assign(this,{document:b.document,variables:b.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:x}),b.observableQuery&&this.setObservableQuery(b.observableQuery),b.lastRequestId&&(this.lastRequestId=b.lastRequestId),this},A.prototype.reset=function(){pe(this),this.diff=null,this.dirty=!1},A.prototype.getDiff=function(b){return void 0===b&&(b=this.variables),this.diff&&(0,e.D)(b,this.variables)?this.diff:(this.updateWatch(this.variables=b),this.diff=this.cache.diff({query:this.document,variables:b,returnPartialData:!0,optimistic:!0}))},A.prototype.setDiff=function(b){var x=this,N=this.diff;this.diff=b,!this.dirty&&(b&&b.result)!==(N&&N.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return x.notify()},0)))},A.prototype.setObservableQuery=function(b){var x=this;b!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=b,b?(b.queryInfo=this,this.listeners.add(this.oqListener=function(){x.getDiff().fromOptimisticTransaction?b.observe():b.reobserve()})):delete this.oqListener)},A.prototype.notify=function(){var b=this;pe(this),this.shouldNotify()&&this.listeners.forEach(function(x){return x(b)}),this.dirty=!1},A.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,R.O)(this.networkStatus)&&this.observableQuery){var b=this.observableQuery.options.fetchPolicy;if("cache-only"!==b&&"cache-and-network"!==b)return!1}return!0},A.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(x){return x.unsubscribe()});var b=this.observableQuery;b&&b.stopPolling()}},A.prototype.cancel=function(){},A.prototype.updateWatch=function(b){var x=this;void 0===b&&(b=this.variables);var N=this.observableQuery;N&&"no-cache"===N.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,e.D)(b,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:b,optimistic:!0,callback:function(q){return x.setDiff(q)}}))},A.prototype.shouldWrite=function(b,x){var N=this.lastWrite;return!(N&&N.dmCount===z.get(this.cache)&&(0,e.D)(x,N.variables)&&(0,e.D)(b.data,N.result.data))},A.prototype.markResult=function(b,x,N){var q=this;this.graphQLErrors=(0,h.O)(b.errors)?b.errors:[],this.reset(),"no-cache"===x.fetchPolicy?this.diff={result:b.data,complete:!0}:!this.stopped&&N&&(he(b,x.errorPolicy)?this.cache.performTransaction(function(ee){if(q.shouldWrite(b,x.variables))ee.writeQuery({query:q.document,data:b.data,variables:x.variables}),q.lastWrite={result:b,variables:x.variables,dmCount:z.get(q.cache)};else if(q.diff&&q.diff.complete)return void(b.data=q.diff.result);var ue=ee.diff({query:q.document,variables:x.variables,returnPartialData:!0,optimistic:!0});q.stopped||q.updateWatch(x.variables),q.diff=ue,ue.complete&&(b.data=ue.result)}):this.lastWrite=void 0)},A.prototype.markReady=function(){return this.networkError=null,this.networkStatus=R.I.ready},A.prototype.markError=function(b){return this.networkStatus=R.I.error,this.lastWrite=void 0,this.reset(),b.graphQLErrors&&(this.graphQLErrors=b.graphQLErrors),b.networkError&&(this.networkError=b.networkError),b},A}();function he(A,b){void 0===b&&(b="none");var x="ignore"===b||"all"===b,N=!s(A);return!N&&x&&A.data&&(N=!0),N}var oe=Object.prototype.hasOwnProperty,K=function(){function A(b){var x=b.cache,N=b.link,q=b.queryDeduplication,ee=void 0!==q&&q,ue=b.onBroadcast,_e=b.ssrMode,me=void 0!==_e&&_e,Re=b.clientAwareness,De=void 0===Re?{}:Re,Me=b.localState,ie=b.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(i.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=x,this.link=N,this.queryDeduplication=ee,this.clientAwareness=De,this.localState=Me||new U({cache:x}),this.ssrMode=me,this.assumeImmutableResults=!!ie,(this.onBroadcast=ue)&&(this.mutationStore=Object.create(null))}return A.prototype.stop=function(){var b=this;this.queries.forEach(function(x,N){b.stopQueryNoBroadcast(N)}),this.cancelPendingFetches(new w.ej(12))},A.prototype.cancelPendingFetches=function(b){this.fetchCancelFns.forEach(function(x){return x(b)}),this.fetchCancelFns.clear()},A.prototype.mutate=function(b){var x=b.mutation,N=b.variables,q=b.optimisticResponse,ee=b.updateQueries,ue=b.refetchQueries,_e=void 0===ue?[]:ue,me=b.awaitRefetchQueries,Re=void 0!==me&&me,De=b.update,Me=b.errorPolicy,ie=void 0===Me?"none":Me,V=b.fetchPolicy,v=b.context,O=void 0===v?{}:v;return(0,t.mG)(this,void 0,void 0,function(){var F,re,ve;return(0,t.Jh)(this,function(xe){switch(xe.label){case 0:return(0,w.kG)(x,13),(0,w.kG)(!V||"no-cache"===V,14),F=this.generateMutationId(),x=this.transform(x).document,N=this.getVariables(x,N),this.transform(x).hasClientExports?[4,this.localState.addExportedVariables(x,N,O)]:[3,2];case 1:N=xe.sent(),xe.label=2;case 2:return re=this.mutationStore&&(this.mutationStore[F]={mutation:x,variables:N,loading:!0,error:null}),q&&this.markMutationOptimistic(q,{mutationId:F,document:x,variables:N,errorPolicy:ie,updateQueries:ee,update:De}),this.broadcastQueries(),ve=this,[2,new Promise(function(Te,te){var de,ye;ve.getObservableFromLink(x,(0,t.pi)((0,t.pi)({},O),{optimisticResponse:q}),N,!1).subscribe({next:function(Oe){if(s(Oe)&&"none"===ie)ye=new L.c({graphQLErrors:Oe.errors});else{if(re&&(re.loading=!1,re.error=null),"no-cache"!==V)try{ve.markMutationResult({mutationId:F,result:Oe,document:x,variables:N,errorPolicy:ie,updateQueries:ee,update:De})}catch(Ie){return void(ye=new L.c({networkError:Ie}))}de=Oe}},error:function(Oe){re&&(re.loading=!1,re.error=Oe),q&&ve.cache.removeOptimistic(F),ve.broadcastQueries(),te(new L.c({networkError:Oe}))},complete:function(){if(ye&&re&&(re.loading=!1,re.error=ye),q&&ve.cache.removeOptimistic(F),ve.broadcastQueries(),ye)te(ye);else{"function"==typeof _e&&(_e=_e(de));var Oe=[];(0,h.O)(_e)&&_e.forEach(function(Ie){if("string"==typeof Ie)ve.queries.forEach(function(qe){var ze=qe.observableQuery;ze&&ze.hasObservers()&&ze.queryName===Ie&&Oe.push(ze.refetch())});else{var Ue={query:Ie.query,variables:Ie.variables,fetchPolicy:"network-only"};Ie.context&&(Ue.context=Ie.context),Oe.push(ve.query(Ue))}}),Promise.all(Re?Oe:[]).then(function(){"ignore"===ie&&de&&s(de)&&delete de.errors,Te(de)},te)}}})})]}})})},A.prototype.markMutationResult=function(b,x){var N=this;if(void 0===x&&(x=this.cache),he(b.result,b.errorPolicy)){var q=[{result:b.result.data,dataId:"ROOT_MUTATION",query:b.document,variables:b.variables}],ee=b.updateQueries;ee&&this.queries.forEach(function(ue,_e){var me=ue.observableQuery,Re=me&&me.queryName;if(Re&&oe.call(ee,Re)){var De=ee[Re],Me=N.queries.get(_e),ie=Me.document,V=Me.variables,v=x.diff({query:ie,variables:V,returnPartialData:!0,optimistic:!1}),O=v.result;if(v.complete&&O){var re=De(O,{mutationResult:b.result,queryName:ie&&(0,y.rY)(ie)||void 0,queryVariables:V});re&&q.push({result:re,dataId:"ROOT_QUERY",query:ie,variables:V})}}}),x.performTransaction(function(ue){q.forEach(function(me){return ue.write(me)});var _e=b.update;_e&&_e(ue,b.result)},null)}},A.prototype.markMutationOptimistic=function(b,x){var N=this,q="function"==typeof b?b(x.variables):b;return this.cache.recordOptimisticTransaction(function(ee){try{N.markMutationResult((0,t.pi)((0,t.pi)({},x),{result:{data:q}}),ee)}catch{}},x.mutationId)},A.prototype.fetchQuery=function(b,x,N){return this.fetchQueryObservable(b,x,N).promise},A.prototype.getQueryStore=function(){var b=Object.create(null);return this.queries.forEach(function(x,N){b[N]={variables:x.variables,networkStatus:x.networkStatus,networkError:x.networkError,graphQLErrors:x.graphQLErrors}}),b},A.prototype.resetErrors=function(b){var x=this.queries.get(b);x&&(x.networkError=void 0,x.graphQLErrors=[])},A.prototype.transform=function(b){var x=this.transformCache;if(!x.has(b)){var N=this.cache.transformDocument(b),q=(0,m.Fo)(this.cache.transformForLink(N)),ee=this.localState.clientQuery(N),ue=q&&this.localState.serverQuery(q),_e={document:N,hasClientExports:(0,I.mj)(N),hasForcedResolvers:this.localState.shouldForceResolvers(N),clientQuery:ee,serverQuery:ue,defaultVars:(0,y.O4)((0,y.$H)(N))},me=function(Re){Re&&!x.has(Re)&&x.set(Re,_e)};me(b),me(N),me(ee),me(ue)}return x.get(b)},A.prototype.getVariables=function(b,x){return(0,t.pi)((0,t.pi)({},this.transform(b).defaultVars),x)},A.prototype.watchQuery=function(b){typeof(b=(0,t.pi)((0,t.pi)({},b),{variables:this.getVariables(b.query,b.variables)})).notifyOnNetworkStatusChange>"u"&&(b.notifyOnNetworkStatusChange=!1);var x=new X(this.cache),N=new g.u({queryManager:this,queryInfo:x,options:b});return this.queries.set(N.queryId,x),x.init({document:b.query,observableQuery:N,variables:b.variables}),N},A.prototype.query=function(b){var x=this;(0,w.kG)(b.query,15),(0,w.kG)("Document"===b.query.kind,16),(0,w.kG)(!b.returnPartialData,17),(0,w.kG)(!b.pollInterval,18);var N=this.generateQueryId();return this.fetchQuery(N,b).finally(function(){return x.stopQuery(N)})},A.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},A.prototype.generateRequestId=function(){return this.requestIdCounter++},A.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},A.prototype.stopQueryInStore=function(b){this.stopQueryInStoreNoBroadcast(b),this.broadcastQueries()},A.prototype.stopQueryInStoreNoBroadcast=function(b){var x=this.queries.get(b);x&&x.stop()},A.prototype.clearStore=function(){return this.cancelPendingFetches(new w.ej(19)),this.queries.forEach(function(b){b.observableQuery?b.networkStatus=R.I.loading:b.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},A.prototype.resetStore=function(){var b=this;return this.clearStore().then(function(){return b.reFetchObservableQueries()})},A.prototype.reFetchObservableQueries=function(b){var x=this;void 0===b&&(b=!1);var N=[];return this.queries.forEach(function(q,ee){var ue=q.observableQuery;if(ue&&ue.hasObservers()){var _e=ue.options.fetchPolicy;ue.resetLastResults(),"cache-only"!==_e&&(b||"standby"!==_e)&&N.push(ue.refetch()),x.getQuery(ee).setDiff(null)}}),this.broadcastQueries(),Promise.all(N)},A.prototype.setObservableQuery=function(b){this.getQuery(b.queryId).setObservableQuery(b)},A.prototype.startGraphQLSubscription=function(b){var x=this,N=b.query,q=b.fetchPolicy,ee=b.errorPolicy,ue=b.variables,_e=b.context,me=void 0===_e?{}:_e;N=this.transform(N).document,ue=this.getVariables(N,ue);var Re=function(Me){return x.getObservableFromLink(N,me,Me,!1).map(function(ie){if("no-cache"!==q&&(he(ie,ee)&&x.cache.write({query:N,result:ie.data,dataId:"ROOT_SUBSCRIPTION",variables:Me}),x.broadcastQueries()),s(ie))throw new L.c({graphQLErrors:ie.errors});return ie})};if(this.transform(N).hasClientExports){var De=this.localState.addExportedVariables(N,ue,me).then(Re);return new(P())(function(Me){var ie=null;return De.then(function(V){return ie=V.subscribe(Me)},Me.error),function(){return ie&&ie.unsubscribe()}})}return Re(ue)},A.prototype.stopQuery=function(b){this.stopQueryNoBroadcast(b),this.broadcastQueries()},A.prototype.stopQueryNoBroadcast=function(b){this.stopQueryInStoreNoBroadcast(b),this.removeQuery(b)},A.prototype.removeQuery=function(b){this.fetchCancelFns.delete(b),this.getQuery(b).stop(),this.queries.delete(b)},A.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(b){return b.notify()})},A.prototype.getLocalState=function(){return this.localState},A.prototype.getObservableFromLink=function(b,x,N,q){var ue,ee=this;void 0===q&&(q=null!==(ue=x?.queryDeduplication)&&void 0!==ue?ue:this.queryDeduplication);var _e,me=this.transform(b).serverQuery;if(me){var De=this.inFlightLinkObservables,Me=this.link,ie={query:me,variables:N,operationName:(0,y.rY)(me)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},x),{forceFetch:!q}))};if(x=ie.context,q){var V=De.get(me)||new Map;De.set(me,V);var v=JSON.stringify(N);if(!(_e=V.get(v))){var O=new Q([(0,r.h)(Me,ie)]);V.set(v,_e=O),O.cleanup(function(){V.delete(v)&&V.size<1&&De.delete(me)})}}else _e=new Q([(0,r.h)(Me,ie)])}else _e=new Q([P().of({data:{}})]),x=this.prepareContext(x);var F=this.transform(b).clientQuery;return F&&(_e=H(_e,function(re){return ee.localState.runResolvers({document:F,remoteResult:re,context:x,variables:N})})),_e},A.prototype.getResultsFromLink=function(b,x,N){var q=b.lastRequestId=this.generateRequestId();return H(this.getObservableFromLink(b.document,N.context,N.variables),function(ee){var ue=(0,h.O)(ee.errors);if(q>=b.lastRequestId){if(ue&&"none"===N.errorPolicy)throw b.markError(new L.c({graphQLErrors:ee.errors}));b.markResult(ee,N,x),b.markReady()}var _e={data:ee.data,loading:!1,networkStatus:b.networkStatus||R.I.ready};return ue&&"ignore"!==N.errorPolicy&&(_e.errors=ee.errors),_e},function(ee){var ue=(0,L.M)(ee)?ee:new L.c({networkError:ee});throw q>=b.lastRequestId&&b.markError(ue),ue})},A.prototype.fetchQueryObservable=function(b,x,N){var q=this;void 0===N&&(N=R.I.loading);var ee=this.transform(x.query).document,ue=this.getVariables(ee,x.variables),_e=this.getQuery(b),me=_e.networkStatus,Re=x.fetchPolicy,De=void 0===Re?"cache-first":Re,Me=x.errorPolicy,ie=void 0===Me?"none":Me,V=x.returnPartialData,v=void 0!==V&&V,O=x.notifyOnNetworkStatusChange,F=void 0!==O&&O,re=x.context,ve=void 0===re?{}:re;("cache-first"===De||"cache-and-network"===De||"network-only"===De||"no-cache"===De)&&F&&"number"==typeof me&&me!==N&&(0,R.O)(N)&&("cache-first"!==De&&(De="cache-and-network"),v=!0);var Te=Object.assign({},x,{query:ee,variables:ue,fetchPolicy:De,errorPolicy:ie,returnPartialData:v,notifyOnNetworkStatusChange:F,context:ve}),te=function(ye){return Te.variables=ye,q.fetchQueryByPolicy(_e,Te,N)};this.fetchCancelFns.set(b,function(ye){Promise.resolve().then(function(){return de.cancel(ye)})});var de=new Q(this.transform(Te.query).hasClientExports?this.localState.addExportedVariables(Te.query,Te.variables,Te.context).then(te):te(Te.variables));return de.cleanup(function(){q.fetchCancelFns.delete(b);var ye=x.nextFetchPolicy;ye&&(x.nextFetchPolicy=void 0,x.fetchPolicy="function"==typeof ye?ye.call(x,x.fetchPolicy||"cache-first"):ye)}),de},A.prototype.fetchQueryByPolicy=function(b,x,N){var q=this,ee=x.query,ue=x.variables,_e=x.fetchPolicy,me=x.errorPolicy,Re=x.returnPartialData,De=x.context;b.init({document:ee,variables:ue,networkStatus:N});var Me=function(){return b.getDiff(ue)},ie=function(O,F){void 0===F&&(F=b.networkStatus||R.I.loading);var re=O.result,ve=function(xe){return P().of((0,t.pi)({data:xe,loading:(0,R.O)(F),networkStatus:F},O.complete?null:{partial:!0}))};return q.transform(ee).hasForcedResolvers?q.localState.runResolvers({document:ee,remoteResult:{data:re},context:De,variables:ue,onlyRunForcedResolvers:!0}).then(function(xe){return ve(xe.data)}):ve(re)},V=function(O){return q.getResultsFromLink(b,O,{variables:ue,context:De,fetchPolicy:_e,errorPolicy:me})};switch(_e){default:case"cache-first":return(v=Me()).complete?[ie(v,b.markReady())]:Re?[ie(v),V(!0)]:[V(!0)];case"cache-and-network":var v;return(v=Me()).complete||Re?[ie(v),V(!0)]:[V(!0)];case"cache-only":return[ie(Me(),b.markReady())];case"network-only":return[V(!0)];case"no-cache":return[V(!1)];case"standby":return[]}},A.prototype.getQuery=function(b){return b&&!this.queries.has(b)&&this.queries.set(b,new X(this.cache)),this.queries.get(b)},A.prototype.prepareContext=function(b){void 0===b&&(b={});var x=this.localState.prepareContext(b);return(0,t.pi)((0,t.pi)({},x),{clientAwareness:this.clientAwareness})},A}();function ne(A,b){return(0,n.o)(A,b,b.variables&&{variables:(0,t.pi)((0,t.pi)({},A.variables),b.variables)})}var $=function(){function A(b){var x=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var N=b.uri,ue=b.cache,_e=b.ssrMode,me=void 0!==_e&&_e,Re=b.ssrForceFetchDelay,De=void 0===Re?0:Re,Me=b.connectToDevTools,ie=void 0===Me?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:Me,V=b.queryDeduplication,v=void 0===V||V,O=b.defaultOptions,F=b.assumeImmutableResults,re=void 0!==F&&F,ve=b.resolvers,xe=b.typeDefs,Te=b.fragmentMatcher,te=b.name,de=b.version,ye=b.link;if(ye||(ye=N?new u.u({uri:N,credentials:b.credentials,headers:b.headers}):d.i.empty()),!ue)throw new w.ej(9);this.link=ye,this.cache=ue,this.disableNetworkFetches=me||De>0,this.queryDeduplication=v,this.defaultOptions=O||{},this.typeDefs=xe,De&&setTimeout(function(){return x.disableNetworkFetches=!1},De),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=a,this.localState=new U({cache:ue,client:this,resolvers:ve,fragmentMatcher:Te}),this.queryManager=new K({cache:this.cache,link:this.link,queryDeduplication:v,ssrMode:me,clientAwareness:{name:te,version:de},localState:this.localState,assumeImmutableResults:re,onBroadcast:ie?function(){x.devToolsHookCb&&x.devToolsHookCb({action:{},state:{queries:x.queryManager.getQueryStore(),mutations:x.queryManager.mutationStore||{}},dataWithOptimisticResults:x.cache.extract(!0)})}:void 0})}return A.prototype.stop=function(){this.queryManager.stop()},A.prototype.watchQuery=function(b){return this.defaultOptions.watchQuery&&(b=ne(this.defaultOptions.watchQuery,b)),this.disableNetworkFetches&&("network-only"===b.fetchPolicy||"cache-and-network"===b.fetchPolicy)&&(b=(0,t.pi)((0,t.pi)({},b),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(b)},A.prototype.query=function(b){return this.defaultOptions.query&&(b=ne(this.defaultOptions.query,b)),(0,w.kG)("cache-and-network"!==b.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===b.fetchPolicy&&(b=(0,t.pi)((0,t.pi)({},b),{fetchPolicy:"cache-first"})),this.queryManager.query(b)},A.prototype.mutate=function(b){return this.defaultOptions.mutate&&(b=ne(this.defaultOptions.mutate,b)),this.queryManager.mutate(b)},A.prototype.subscribe=function(b){return this.queryManager.startGraphQLSubscription(b)},A.prototype.readQuery=function(b,x){return void 0===x&&(x=!1),this.cache.readQuery(b,x)},A.prototype.readFragment=function(b,x){return void 0===x&&(x=!1),this.cache.readFragment(b,x)},A.prototype.writeQuery=function(b){this.cache.writeQuery(b),this.queryManager.broadcastQueries()},A.prototype.writeFragment=function(b){this.cache.writeFragment(b),this.queryManager.broadcastQueries()},A.prototype.__actionHookForDevTools=function(b){this.devToolsHookCb=b},A.prototype.__requestRaw=function(b){return(0,r.h)(this.link,b)},A.prototype.resetStore=function(){var b=this;return Promise.resolve().then(function(){return b.queryManager.clearStore()}).then(function(){return Promise.all(b.resetStoreCallbacks.map(function(x){return x()}))}).then(function(){return b.reFetchObservableQueries()})},A.prototype.clearStore=function(){var b=this;return Promise.resolve().then(function(){return b.queryManager.clearStore()}).then(function(){return Promise.all(b.clearStoreCallbacks.map(function(x){return x()}))})},A.prototype.onResetStore=function(b){var x=this;return this.resetStoreCallbacks.push(b),function(){x.resetStoreCallbacks=x.resetStoreCallbacks.filter(function(N){return N!==b})}},A.prototype.onClearStore=function(b){var x=this;return this.clearStoreCallbacks.push(b),function(){x.clearStoreCallbacks=x.clearStoreCallbacks.filter(function(N){return N!==b})}},A.prototype.reFetchObservableQueries=function(b){return this.queryManager.reFetchObservableQueries(b)},A.prototype.extract=function(b){return this.cache.extract(b)},A.prototype.restore=function(b){return this.cache.restore(b)},A.prototype.addResolvers=function(b){this.localState.addResolvers(b)},A.prototype.setResolvers=function(b){this.localState.setResolvers(b)},A.prototype.getResolvers=function(){return this.localState.getResolvers()},A.prototype.setLocalStateFragmentMatcher=function(b){this.localState.setFragmentMatcher(b)},A.prototype.setLink=function(b){this.link=this.queryManager.link=b},A}()},15601:(ce,k,p)=>{"use strict";p.d(k,{u:()=>C});var t=p(60162),w=p(3474),d=p(16492),r=p(17598),n=p(97090),a=p(53725),u=Object.prototype.toString;function e(W){return i(W)}function i(W,Q){switch(u.call(W)){case"[object Array]":if((Q=Q||new Map).has(W))return Q.get(W);var H=W.slice(0);return Q.set(W,H),H.forEach(function(g,R){H[R]=i(g,Q)}),H;case"[object Object]":if((Q=Q||new Map).has(W))return Q.get(W);var L=Object.create(Object.getPrototypeOf(W));return Q.set(W,L),Object.keys(W).forEach(function(g){L[g]=i(W[g],Q)}),L;default:return W}}var s=p(26583),h=p(20274),y=p.n(h),m=p(67178),I=p(30921),M=function(){function W(Q,H,L,g){this.observer=Q,this.options=H,this.fetch=L,this.shouldFetch=g}return W.prototype.reobserve=function(Q,H){Q?this.updateOptions(Q):this.updatePolling();var L=this.fetch(this.options,H);return this.concast&&this.concast.removeObserver(this.observer,!0),L.addObserver(this.observer),(this.concast=L).promise},W.prototype.updateOptions=function(Q){return Object.assign(this.options,(0,I.o)(Q)),this.updatePolling(),this},W.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())},W.prototype.updatePolling=function(){var Q=this,L=this.pollingInfo,g=this.options.pollInterval;if(g){if((!L||L.interval!==g)&&((0,w.kG)(g,20),!1!==this.shouldFetch)){(L||(this.pollingInfo={})).interval=g;var c=function(){Q.pollingInfo&&(Q.shouldFetch&&Q.shouldFetch()?Q.reobserve({fetchPolicy:"network-only",nextFetchPolicy:Q.options.fetchPolicy||"cache-first"},r.I.poll).then(_,_):_())},_=function(){var l=Q.pollingInfo;l&&(clearTimeout(l.timeout),l.timeout=setTimeout(c,l.interval))};_()}}else L&&(clearTimeout(L.timeout),delete this.pollingInfo)},W}(),C=function(W){function Q(H){var L=H.queryManager,g=H.queryInfo,R=H.options,c=W.call(this,function(l){return c.onSubscribe(l)})||this;c.observers=new Set,c.subscriptions=new Set,c.observer={next:function(l){(c.lastError||c.isDifferentFromLastResult(l))&&(c.updateLastResult(l),(0,n.p)(c.observers,"next",l))},error:function(l){c.updateLastResult((0,t.pi)((0,t.pi)({},c.lastResult),{error:l,errors:l.graphQLErrors,networkStatus:r.I.error,loading:!1})),(0,n.p)(c.observers,"error",c.lastError=l)}},c.isTornDown=!1,c.options=R,c.queryId=L.generateQueryId();var _=(0,a.$H)(R.query);return c.queryName=_&&_.name&&_.name.value,c.queryManager=L,c.queryInfo=g,c}return(0,t.ZT)(Q,W),Object.defineProperty(Q.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),Q.prototype.result=function(){var H=this;return new Promise(function(L,g){var R={next:function(_){L(_),H.observers.delete(R),H.observers.size||H.queryManager.removeQuery(H.queryId),setTimeout(function(){c.unsubscribe()},0)},error:g},c=H.subscribe(R)})},Q.prototype.getCurrentResult=function(H){void 0===H&&(H=!0);var L=this.lastResult,g=this.queryInfo.networkStatus||L&&L.networkStatus||r.I.ready,R=(0,t.pi)((0,t.pi)({},L),{loading:(0,r.O)(g),networkStatus:g});if(this.isTornDown)return R;var c=this.options.fetchPolicy,_=void 0===c?"cache-first":c;if("no-cache"===_||"network-only"===_)delete R.partial;else if(!R.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var l=this.queryInfo.getDiff();R.data=l.complete||this.options.returnPartialData?l.result:void 0,l.complete?(R.networkStatus===r.I.loading&&("cache-first"===_||"cache-only"===_)&&(R.networkStatus=r.I.ready,R.loading=!1),delete R.partial):R.partial=!0}return H&&this.updateLastResult(R),R},Q.prototype.isDifferentFromLastResult=function(H){return!(0,d.D)(this.lastResultSnapshot,H)},Q.prototype.getLastResult=function(){return this.lastResult},Q.prototype.getLastError=function(){return this.lastError},Q.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},Q.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},Q.prototype.refetch=function(H){var L={pollInterval:0},g=this.options.fetchPolicy;return"no-cache"!==g&&"cache-and-network"!==g&&(L.fetchPolicy="network-only",L.nextFetchPolicy=g||"cache-first"),H&&!(0,d.D)(this.options.variables,H)&&(L.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),H)),this.newReobserver(!1).reobserve(L,r.I.refetch)},Q.prototype.fetchMore=function(H){var L=this,g=(0,t.pi)((0,t.pi)({},H.query?H:(0,t.pi)((0,t.pi)((0,t.pi)({},this.options),H),{variables:(0,t.pi)((0,t.pi)({},this.options.variables),H.variables)})),{fetchPolicy:"no-cache"}),R=this.queryManager.generateQueryId();return g.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=r.I.fetchMore,this.observe()),this.queryManager.fetchQuery(R,g,r.I.fetchMore).then(function(c){var _=c.data,l=H.updateQuery;return l?L.updateQuery(function(T){return l(T,{fetchMoreResult:_,variables:g.variables})}):L.queryManager.cache.writeQuery({query:g.query,variables:g.variables,data:_}),c}).finally(function(){L.queryManager.stopQuery(R),L.reobserve()})},Q.prototype.subscribeToMore=function(H){var L=this,g=this.queryManager.startGraphQLSubscription({query:H.document,variables:H.variables,context:H.context}).subscribe({next:function(R){var c=H.updateQuery;c&&L.updateQuery(function(_,l){return c(_,{subscriptionData:R,variables:l.variables})})},error:function(R){H.onError&&H.onError(R)}});return this.subscriptions.add(g),function(){L.subscriptions.delete(g)&&g.unsubscribe()}},Q.prototype.setOptions=function(H){return this.reobserve(H)},Q.prototype.setVariables=function(H){if((0,d.D)(this.variables,H))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=H,!this.observers.size)return Promise.resolve();var L=this.options.fetchPolicy,g=void 0===L?"cache-first":L,R={fetchPolicy:g,variables:H};return"cache-first"!==g&&"no-cache"!==g&&"network-only"!==g&&(R.fetchPolicy="cache-and-network",R.nextFetchPolicy=g),this.reobserve(R,r.I.setVariables)},Q.prototype.updateQuery=function(H){var L,g=this.queryManager,c=H(g.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(L=this.lastResult)||void 0===L?void 0:L.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});c&&(g.cache.writeQuery({query:this.options.query,data:c,variables:this.variables}),g.broadcastQueries())},Q.prototype.startPolling=function(H){this.getReobserver().updateOptions({pollInterval:H})},Q.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},Q.prototype.updateLastResult=function(H){var L=this.lastResult;return this.lastResult=H,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?H:e(H),(0,s.O)(H.errors)||delete this.lastError,L},Q.prototype.onSubscribe=function(H){var L=this;if(H===this.observer)return function(){};try{var g=H._subscription._observer;g&&!g.error&&(g.error=D)}catch{}var R=!this.observers.size;return this.observers.add(H),this.lastError?H.error&&H.error(this.lastError):this.lastResult&&H.next&&H.next(this.lastResult),R&&this.reobserve().catch(function(c){}),function(){L.observers.delete(H)&&!L.observers.size&&L.tearDownQuery()}},Q.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},Q.prototype.newReobserver=function(H){var L=this,R=this.queryManager,c=this.queryId;return R.setObservableQuery(this),new M(this.observer,H?this.options:(0,t.pi)({},this.options),function(_,l){return R.setObservableQuery(L),R.fetchQueryObservable(c,_,l)},!R.ssrMode&&function(){return!(0,r.O)(L.queryInfo.networkStatus)})},Q.prototype.reobserve=function(H,L){return this.isTornDown=!1,this.getReobserver().reobserve(H,L)},Q.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},Q.prototype.hasObservers=function(){return this.observers.size>0},Q.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(H){return H.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},Q}(y());function D(W){}(0,m.D)(C)},13374:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{ApolloCache:()=>e.R,ApolloClient:()=>t.f,ApolloError:()=>a.c,Cache:()=>u.C,HttpLink:()=>C.uG,InMemoryCache:()=>i.h,MissingFieldError:()=>s.y,NetworkStatus:()=>d.I,Observable:()=>g.a,ObservableQuery:()=>w.u,checkFetcher:()=>C.U2,createHttpLink:()=>C.LQ,createSignalIfSupported:()=>C.$g,defaultDataIdFromObject:()=>h.u,disableExperimentalFragmentVariables:()=>_.J9,disableFragmentWarnings:()=>_._t,enableExperimentalFragmentVariables:()=>_.wO,fallbackHttpConfig:()=>C.SC,fromError:()=>D.Q,fromPromise:()=>Q.p,gql:()=>_.ZP,isApolloError:()=>a.M,isReference:()=>R.Yk,makeReference:()=>R.kQ,makeVar:()=>y.QS,mergeOptions:()=>t.J,parseAndCheckHttpResponse:()=>C.dO,resetCaches:()=>_.HW,rewriteURIForGET:()=>C.Hg,selectHttpOptionsAndBody:()=>C.E4,selectURI:()=>C.rg,serializeFetchParameter:()=>C.gE,setLogVerbosity:()=>c.U6,throwServerError:()=>H.P,toPromise:()=>W.V});var t=p(28341),w=p(15601),d=p(17598),r=p(29793),P={};for(const l in r)["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(l)<0&&(P[l]=()=>r[l]);p.d(k,P);var a=p(79040),u=p(2156),e=p(53130),i=p(82479),s=p(17881),h=p(74716),y=p(70584),m=p(50940);P={};for(const l in m)["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(l)<0&&(P[l]=()=>m[l]);p.d(k,P);var M=p(23447);P={};for(const l in M)["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(l)<0&&(P[l]=()=>M[l]);p.d(k,P);var C=p(62878),D=p(68405),W=p(19229),Q=p(93363),H=p(49925),L=p(20274),g=p.n(L),R=p(92137),c=p(3474),_=p(28486);(0,c.U6)("log")},17598:(ce,k,p)=>{"use strict";p.d(k,{I:()=>t,O:()=>w});var t=(()=>{return(d=t||(t={}))[d.loading=1]="loading",d[d.setVariables=2]="setVariables",d[d.fetchMore=3]="fetchMore",d[d.refetch=4]="refetch",d[d.poll=6]="poll",d[d.ready=7]="ready",d[d.error=8]="error",t;var d})();function w(d){return!!d&&d<7}},29793:()=>{},79040:(ce,k,p)=>{"use strict";p.d(k,{M:()=>d,c:()=>n});var t=p(60162),w=p(26583);function d(a){return a.hasOwnProperty("graphQLErrors")}var r=function(a){var u="";return(0,w.O)(a.graphQLErrors)&&a.graphQLErrors.forEach(function(e){u+=(e?e.message:"Error message not found.")+"\n"}),a.networkError&&(u+=a.networkError.message+"\n"),u=u.replace(/\n$/,"")},n=function(a){function u(e){var i=e.graphQLErrors,s=e.networkError,h=e.errorMessage,y=e.extraInfo,m=a.call(this,h)||this;return m.graphQLErrors=i||[],m.networkError=s||null,m.message=h||r(m),m.extraInfo=y,m.__proto__=u.prototype,m}return(0,t.ZT)(u,a),u}(Error)},79418:(ce,k,p)=>{"use strict";p.r(k);var t=p(13374),d={};for(const r in t)"default"!==r&&(d[r]=()=>t[r]);p.d(k,d);var w=p(45610);d={};for(const r in w)["default","ApolloCache","ApolloClient","ApolloError","Cache","HttpLink","InMemoryCache","MissingFieldError","NetworkStatus","Observable","ObservableQuery","checkFetcher","createHttpLink","createSignalIfSupported","defaultDataIdFromObject","disableExperimentalFragmentVariables","disableFragmentWarnings","enableExperimentalFragmentVariables","fallbackHttpConfig","fromError","fromPromise","gql","isApolloError","isReference","makeReference","makeVar","mergeOptions","parseAndCheckHttpResponse","resetCaches","rewriteURIForGET","selectHttpOptionsAndBody","selectURI","serializeFetchParameter","setLogVerbosity","throwServerError","toPromise"].indexOf(r)<0&&(d[r]=()=>w[r]);p.d(k,d)},40801:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{setContext:()=>n});var t=p(60162),w=p(30387),d=p(20274),r=p.n(d);function n(a){return new w.i(function(u,e){var i=(0,t._T)(u,[]);return new(r())(function(s){var h;return Promise.resolve(i).then(function(y){return a(y,u.getContext())}).then(u.setContext).then(function(){h=e(u).subscribe({next:s.next.bind(s),error:s.error.bind(s),complete:s.complete.bind(s)})}).catch(s.error.bind(s)),function(){h&&h.unsubscribe()}})})}},30387:(ce,k,p)=>{"use strict";p.d(k,{i:()=>m});var I,t=p(60162),w=p(3474),d=p(20274),r=p.n(d),a=p(53725);function i(I,M){return M?M(I):r().of()}function s(I){return"function"==typeof I?new m(I):I}function h(I){return I.request.length<=1}I=Error,(0,t.ZT)(function M(P,C){var D=I.call(this,P)||this;return D.link=C,D},I);var m=function(){function I(M){M&&(this.request=M)}return I.empty=function(){return new I(function(){return r().of()})},I.from=function(M){return 0===M.length?I.empty():M.map(s).reduce(function(P,C){return P.concat(C)})},I.split=function(M,P,C){var D=s(P),W=s(C||new I(i));return h(D)&&h(W)?new I(function(Q){return M(Q)?D.request(Q)||r().of():W.request(Q)||r().of()}):new I(function(Q,H){return M(Q)?D.request(Q,H)||r().of():W.request(Q,H)||r().of()})},I.execute=function(M,P){return M.request(function n(I,M){var P=(0,t.pi)({},I);return Object.defineProperty(M,"setContext",{enumerable:!1,value:function(W){P=(0,t.pi)((0,t.pi)({},P),"function"==typeof W?W(P):W)}}),Object.defineProperty(M,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},P)}}),M}(P.context,function u(I){var M={variables:I.variables||{},extensions:I.extensions||{},operationName:I.operationName,query:I.query};return M.operationName||(M.operationName="string"!=typeof M.query?(0,a.rY)(M.query)||void 0:""),M}(function e(I){for(var M=["query","operationName","variables","extensions","context"],P=0,C=Object.keys(I);P<C.length;P++)if(M.indexOf(C[P])<0)throw new w.ej(26);return I}(P))))||r().of()},I.concat=function(M,P){var C=s(M);if(h(C))return C;var D=s(P);return h(D)?new I(function(W){return C.request(W,function(Q){return D.request(Q)||r().of()})||r().of()}):new I(function(W,Q){return C.request(W,function(H){return D.request(H,Q)||r().of()})||r().of()})},I.prototype.split=function(M,P,C){return this.concat(I.split(M,P,C||new I(i)))},I.prototype.concat=function(M){return I.concat(this,M)},I.prototype.request=function(M,P){throw new w.ej(21)},I.prototype.onError=function(M,P){if(P&&P.error)return P.error(M),!1;throw M},I.prototype.setOnError=function(M){return this.onError=M,this},I}()},20638:(ce,k,p)=>{"use strict";p.d(k,{z:()=>w});var w=p(30387).i.concat},93941:(ce,k,p)=>{"use strict";p.d(k,{c:()=>w});var w=p(30387).i.empty},50607:(ce,k,p)=>{"use strict";p.d(k,{h:()=>w});var w=p(30387).i.execute},7073:(ce,k,p)=>{"use strict";p.d(k,{D:()=>w});var w=p(30387).i.from},23447:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{ApolloLink:()=>a.i,concat:()=>r.z,empty:()=>t.c,execute:()=>n.h,from:()=>w.D,split:()=>d.V});var t=p(93941),w=p(7073),d=p(3368),r=p(20638),n=p(50607),a=p(30387),u=p(31612),i={};for(const s in u)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(s)<0&&(i[s]=()=>u[s]);p.d(k,i)},3368:(ce,k,p)=>{"use strict";p.d(k,{V:()=>w});var w=p(30387).i.split},31612:()=>{},24555:(ce,k,p)=>{"use strict";p.d(k,{u:()=>r});var t=p(60162),w=p(30387),d=p(20513),r=function(n){function a(u){void 0===u&&(u={});var e=n.call(this,(0,d.L)(u).request)||this;return e.options=u,e}return(0,t.ZT)(a,n),a}(w.i)},28920:(ce,k,p)=>{"use strict";p.d(k,{U:()=>w});var t=p(3474),w=function(d){if(!d&&typeof fetch>"u")throw new t.ej(22)}},20513:(ce,k,p)=>{"use strict";p.d(k,{L:()=>I});var t=p(60162),w=p(4496),d=p(30387),r=p(20274),n=p.n(r),a=p(9370),u=p(85625),e=p(90379),i=p(28920),s=p(75159),h=p(20337),y=p(25997),m=p(68405),I=function(M){void 0===M&&(M={});var P=M.uri,C=void 0===P?"/graphql":P,D=M.fetch,W=M.includeExtensions,Q=M.useGETForQueries,H=M.includeUnusedVariables,L=void 0!==H&&H,g=(0,t._T)(M,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,i.U)(D),D||(D=fetch);var R={http:{includeExtensions:W},options:g.fetchOptions,credentials:g.credentials,headers:g.headers};return new d.i(function(c){var _=(0,u.r)(c,C),l=c.getContext(),T={};if(l.clientAwareness){var B=l.clientAwareness,U=B.name,z=B.version;U&&(T["apollographql-client-name"]=U),z&&(T["apollographql-client-version"]=z)}var Y,ae=(0,t.pi)((0,t.pi)({},T),l.headers),X=(0,s.E)(c,s.S,R,{http:l.http,options:l.fetchOptions,credentials:l.credentials,headers:ae}),he=X.options,oe=X.body;if(oe.variables&&!L){var K=new Set(Object.keys(oe.variables));(0,w.Vn)(c.query,{Variable:function(ee,ue,_e){_e&&"VariableDefinition"!==_e.kind&&K.delete(ee.name.value)}}),K.size&&(oe.variables=(0,t.pi)({},oe.variables),K.forEach(function(ee){delete oe.variables[ee]}))}if(!he.signal){var ne=(0,h.$)();(Y=ne.controller)&&(he.signal=ne.signal)}if(Q&&!c.query.definitions.some(function(ee){return"OperationDefinition"===ee.kind&&"mutation"===ee.operation})&&(he.method="GET"),"GET"===he.method){var x=(0,y.H)(_,oe),N=x.newURI,q=x.parseError;if(q)return(0,m.Q)(q);_=N}else try{he.body=(0,a.g)(oe,"Payload")}catch(ee){return(0,m.Q)(ee)}return new(n())(function(ee){return D(_,he).then(function(ue){return c.setContext({response:ue}),ue}).then((0,e.d)(c)).then(function(ue){return ee.next(ue),ee.complete(),ue}).catch(function(ue){"AbortError"!==ue.name&&(ue.result&&ue.result.errors&&ue.result.data&&ee.next(ue.result),ee.error(ue))}),function(){Y&&Y.abort()}})})}},20337:(ce,k,p)=>{"use strict";p.d(k,{$:()=>t});var t=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var w=new AbortController;return{controller:w,signal:w.signal}}},62878:(ce,k,p)=>{"use strict";p.d(k,{$g:()=>n.$,E4:()=>d.E,Hg:()=>i.H,LQ:()=>u.L,SC:()=>d.S,U2:()=>r.U,dO:()=>t.d,gE:()=>w.g,rg:()=>a.r,uG:()=>e.u});var t=p(90379),w=p(9370),d=p(75159),r=p(28920),n=p(20337),a=p(85625),u=p(20513),e=p(24555),i=p(25997)},90379:(ce,k,p)=>{"use strict";p.d(k,{d:()=>d});var t=p(49925),w=Object.prototype.hasOwnProperty;function d(r){return function(n){return n.text().then(function(a){try{return JSON.parse(a)}catch(e){var u=e;throw u.name="ServerParseError",u.response=n,u.statusCode=n.status,u.bodyText=a,u}}).then(function(a){return n.status>=300&&(0,t.P)(n,a,"Response not successful: Received status code "+n.status),!Array.isArray(a)&&!w.call(a,"data")&&!w.call(a,"errors")&&(0,t.P)(n,a,"Server response was missing for query '"+(Array.isArray(r)?r.map(function(u){return u.operationName}):r.operationName)+"'."),a})}}},25997:(ce,k,p)=>{"use strict";p.d(k,{H:()=>w});var t=p(9370);function w(d,r){var n=[],a=function(I,M){n.push(I+"="+encodeURIComponent(M))};if("query"in r&&a("query",r.query),r.operationName&&a("operationName",r.operationName),r.variables){var u=void 0;try{u=(0,t.g)(r.variables,"Variables map")}catch(I){return{parseError:I}}a("variables",u)}if(r.extensions){var e=void 0;try{e=(0,t.g)(r.extensions,"Extensions map")}catch(I){return{parseError:I}}a("extensions",e)}var i="",s=d,h=d.indexOf("#");-1!==h&&(i=d.substr(h),s=d.substr(0,h));var y=-1===s.indexOf("?")?"?":"&";return{newURI:s+y+n.join("&")+i}}},75159:(ce,k,p)=>{"use strict";p.d(k,{E:()=>u,S:()=>a});var t=p(60162),w=p(94140),a={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},u=function(e,i){for(var s=[],h=2;h<arguments.length;h++)s[h-2]=arguments[h];var y=(0,t.pi)((0,t.pi)({},i.options),{headers:i.headers,credentials:i.credentials}),m=i.http||{};s.forEach(function(W){y=(0,t.pi)((0,t.pi)((0,t.pi)({},y),W.options),{headers:(0,t.pi)((0,t.pi)({},y.headers),W.headers)}),W.credentials&&(y.credentials=W.credentials),m=(0,t.pi)((0,t.pi)({},m),W.http)});var C=e.query,D={operationName:e.operationName,variables:e.variables};return m.includeExtensions&&(D.extensions=e.extensions),m.includeQuery&&(D.query=(0,w.print)(C)),{options:y,body:D}}},85625:(ce,k,p)=>{"use strict";p.d(k,{r:()=>t});var t=function(w,d){return w.getContext().uri||("function"==typeof d?d(w):d||"/graphql")}},9370:(ce,k,p)=>{"use strict";p.d(k,{g:()=>w});var t=p(3474),w=function(d,r){var n;try{n=JSON.stringify(d)}catch(u){var a=new t.ej(23);throw a.parseError=u,a}return n}},68405:(ce,k,p)=>{"use strict";p.d(k,{Q:()=>d});var t=p(20274),w=p.n(t);function d(r){return new(w())(function(n){n.error(r)})}},93363:(ce,k,p)=>{"use strict";p.d(k,{p:()=>d});var t=p(20274),w=p.n(t);function d(r){return new(w())(function(n){r.then(function(a){n.next(a),n.complete()}).catch(n.error.bind(n))})}},49925:(ce,k,p)=>{"use strict";p.d(k,{P:()=>t});var t=function(w,d,r){var n=new Error(r);throw n.name="ServerError",n.response=w,n.statusCode=w.status,n.result=d,n}},19229:(ce,k,p)=>{"use strict";function w(d){var r=!1;return new Promise(function(n,a){d.subscribe({next:function(u){r||(r=!0,n(u))},error:a})})}p.d(k,{V:()=>w}),p(3474)},52168:(ce,k,p)=>{"use strict";var t=p(64981),w=60103,d=60106;k.Fragment=60107,k.StrictMode=60108,k.Profiler=60114;var r=60109,n=60110,a=60112;k.Suspense=60113;var u=60115,e=60116;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;w=i("react.element"),d=i("react.portal"),k.Fragment=i("react.fragment"),k.StrictMode=i("react.strict_mode"),k.Profiler=i("react.profiler"),r=i("react.provider"),n=i("react.context"),a=i("react.forward_ref"),k.Suspense=i("react.suspense"),u=i("react.memo"),e=i("react.lazy")}var s="function"==typeof Symbol&&Symbol.iterator;function y(X){for(var he="https://reactjs.org/docs/error-decoder.html?invariant="+X,oe=1;oe<arguments.length;oe++)he+="&args[]="+encodeURIComponent(arguments[oe]);return"Minified React error #"+X+"; visit "+he+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I={};function M(X,he,oe){this.props=X,this.context=he,this.refs=I,this.updater=oe||m}function P(){}function C(X,he,oe){this.props=X,this.context=he,this.refs=I,this.updater=oe||m}M.prototype.isReactComponent={},M.prototype.setState=function(X,he){if("object"!=typeof X&&"function"!=typeof X&&null!=X)throw Error(y(85));this.updater.enqueueSetState(this,X,he,"setState")},M.prototype.forceUpdate=function(X){this.updater.enqueueForceUpdate(this,X,"forceUpdate")},P.prototype=M.prototype;var D=C.prototype=new P;D.constructor=C,t(D,M.prototype),D.isPureReactComponent=!0;var W={current:null},Q=Object.prototype.hasOwnProperty,H={key:!0,ref:!0,__self:!0,__source:!0};function L(X,he,oe){var K,Y={},ne=null,$=null;if(null!=he)for(K in void 0!==he.ref&&($=he.ref),void 0!==he.key&&(ne=""+he.key),he)Q.call(he,K)&&!H.hasOwnProperty(K)&&(Y[K]=he[K]);var A=arguments.length-2;if(1===A)Y.children=oe;else if(1<A){for(var b=Array(A),x=0;x<A;x++)b[x]=arguments[x+2];Y.children=b}if(X&&X.defaultProps)for(K in A=X.defaultProps)void 0===Y[K]&&(Y[K]=A[K]);return{$$typeof:w,type:X,key:ne,ref:$,props:Y,_owner:W.current}}function R(X){return"object"==typeof X&&null!==X&&X.$$typeof===w}var _=/\/+/g;function l(X,he){return"object"==typeof X&&null!==X&&null!=X.key?function c(X){var he={"=":"=0",":":"=2"};return"$"+X.replace(/[=:]/g,function(oe){return he[oe]})}(""+X.key):he.toString(36)}function T(X,he,oe,K,Y){var ne=typeof X;("undefined"===ne||"boolean"===ne)&&(X=null);var $=!1;if(null===X)$=!0;else switch(ne){case"string":case"number":$=!0;break;case"object":switch(X.$$typeof){case w:case d:$=!0}}if($)return Y=Y($=X),X=""===K?"."+l($,0):K,Array.isArray(Y)?(oe="",null!=X&&(oe=X.replace(_,"$&/")+"/"),T(Y,he,oe,"",function(x){return x})):null!=Y&&(R(Y)&&(Y=function g(X,he){return{$$typeof:w,type:X.type,key:he,ref:X.ref,props:X.props,_owner:X._owner}}(Y,oe+(!Y.key||$&&$.key===Y.key?"":(""+Y.key).replace(_,"$&/")+"/")+X)),he.push(Y)),1;if($=0,K=""===K?".":K+":",Array.isArray(X))for(var A=0;A<X.length;A++){var b=K+l(ne=X[A],A);$+=T(ne,he,oe,b,Y)}else if(b=function h(X){return null===X||"object"!=typeof X?null:"function"==typeof(X=s&&X[s]||X["@@iterator"])?X:null}(X),"function"==typeof b)for(X=b.call(X),A=0;!(ne=X.next()).done;)$+=T(ne=ne.value,he,oe,b=K+l(ne,A++),Y);else if("object"===ne)throw he=""+X,Error(y(31,"[object Object]"===he?"object with keys {"+Object.keys(X).join(", ")+"}":he));return $}function B(X,he,oe){if(null==X)return X;var K=[],Y=0;return T(X,K,"","",function(ne){return he.call(oe,ne,Y++)}),K}function U(X){if(-1===X._status){var he=X._result;he=he(),X._status=0,X._result=he,he.then(function(oe){0===X._status&&(oe=oe.default,X._status=1,X._result=oe)},function(oe){0===X._status&&(X._status=2,X._result=oe)})}if(1===X._status)return X._result;throw X._result}var z={current:null};function ae(){var X=z.current;if(null===X)throw Error(y(321));return X}var pe={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:t};k.Children={map:B,forEach:function(X,he,oe){B(X,function(){he.apply(this,arguments)},oe)},count:function(X){var he=0;return B(X,function(){he++}),he},toArray:function(X){return B(X,function(he){return he})||[]},only:function(X){if(!R(X))throw Error(y(143));return X}},k.Component=M,k.PureComponent=C,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pe,k.cloneElement=function(X,he,oe){if(null==X)throw Error(y(267,X));var K=t({},X.props),Y=X.key,ne=X.ref,$=X._owner;if(null!=he){if(void 0!==he.ref&&(ne=he.ref,$=W.current),void 0!==he.key&&(Y=""+he.key),X.type&&X.type.defaultProps)var A=X.type.defaultProps;for(b in he)Q.call(he,b)&&!H.hasOwnProperty(b)&&(K[b]=void 0===he[b]&&void 0!==A?A[b]:he[b])}var b=arguments.length-2;if(1===b)K.children=oe;else if(1<b){A=Array(b);for(var x=0;x<b;x++)A[x]=arguments[x+2];K.children=A}return{$$typeof:w,type:X.type,key:Y,ref:ne,props:K,_owner:$}},k.createContext=function(X,he){return void 0===he&&(he=null),(X={$$typeof:n,_calculateChangedBits:he,_currentValue:X,_currentValue2:X,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:X},X.Consumer=X},k.createElement=L,k.createFactory=function(X){var he=L.bind(null,X);return he.type=X,he},k.createRef=function(){return{current:null}},k.forwardRef=function(X){return{$$typeof:a,render:X}},k.isValidElement=R,k.lazy=function(X){return{$$typeof:e,_payload:{_status:-1,_result:X},_init:U}},k.memo=function(X,he){return{$$typeof:u,type:X,compare:void 0===he?null:he}},k.useCallback=function(X,he){return ae().useCallback(X,he)},k.useContext=function(X,he){return ae().useContext(X,he)},k.useDebugValue=function(){},k.useEffect=function(X,he){return ae().useEffect(X,he)},k.useImperativeHandle=function(X,he,oe){return ae().useImperativeHandle(X,he,oe)},k.useLayoutEffect=function(X,he){return ae().useLayoutEffect(X,he)},k.useMemo=function(X,he){return ae().useMemo(X,he)},k.useReducer=function(X,he,oe){return ae().useReducer(X,he,oe)},k.useRef=function(X){return ae().useRef(X)},k.useState=function(X){return ae().useState(X)},k.version="17.0.2"},57855:(ce,k,p)=>{"use strict";ce.exports=p(52168)},3474:(ce,k,p)=>{"use strict";p.d(k,{ej:()=>z,kG:()=>ae,U6:()=>oe});var t=function($,A){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var N in x)Object.prototype.hasOwnProperty.call(x,N)&&(b[N]=x[N])})($,A)},T="Invariant Violation",B=Object.setPrototypeOf,U=void 0===B?function($,A){return $.__proto__=A,$}:B,z=function($){function A(b){void 0===b&&(b=T);var x=$.call(this,"number"==typeof b?T+": "+b+" (see https://github.com/apollographql/invariant-packages)":b)||this;return x.framesToPop=1,x.name=T,U(x,A.prototype),x}return function w($,A){if("function"!=typeof A&&null!==A)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function b(){this.constructor=$}t($,A),$.prototype=null===A?Object.create(A):(b.prototype=A.prototype,new b)}(A,$),A}(Error);function ae($,A){if(!$)throw new z(A)}var $,pe=["log","warn","error","silent"],X=pe.indexOf("log");function he($){return function(){if(pe.indexOf($)>=X)return console[$].apply(console,arguments)}}function oe($){var A=pe[X];return X=Math.max(0,pe.indexOf($)),A}($=ae||(ae={})).log=he("log"),$.warn=he("warn"),$.error=he("error"),"object"==typeof process&&"object"==typeof process.env&&process},98474:(ce,k,p)=>{"use strict";p.d(k,{a:()=>r});var t=p(57855),w=p(3474),d=p(29010),r=function(n){var a=(0,d.K)();return t.createElement(a.Consumer,null,function(u){return(0,w.kG)(u&&u.client,27),n.children(u.client)})}},29010:(ce,k,p)=>{"use strict";p.d(k,{K:()=>r,Z:()=>r});var t=p(57855),d=new(p(40863).m?WeakMap:Map);function r(){var n=d.get(t.createContext);return n||((n=t.createContext({})).displayName="ApolloContext",d.set(t.createContext,n)),n}},34359:(ce,k,p)=>{"use strict";p.d(k,{e:()=>r});var t=p(57855),w=p(3474),d=p(29010),r=function(n){var a=n.client,u=n.children,e=(0,d.K)();return t.createElement(e.Consumer,null,function(i){return void 0===i&&(i={}),a&&i.client!==a&&(i=Object.assign({},i,{client:a})),(0,w.kG)(i.client,28),t.createElement(e.Provider,{value:i},u)})}},64461:(ce,k,p)=>{"use strict";p.d(k,{xJ:()=>r,td:()=>I,Db:()=>C,aM:()=>D,lY:()=>H,mU:()=>Q});var t=p(57855),w=p(3474),d=p(29010);function r(){var L=t.useContext((0,d.K)()).client;return(0,w.kG)(L,33),L}var n=p(60162),a=p(16492),u=p(79040),e=p(17598),i=p(78638),s=function(){function L(g,R){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=g||{},this.context=R||{}}return L.prototype.getOptions=function(){return this.options},L.prototype.setOptions=function(g,R){void 0===R&&(R=!1),R&&!(0,a.D)(this.options,g)&&(this.previousOptions=this.options),this.options=g},L.prototype.unmount=function(){this.isMounted=!1},L.prototype.refreshClient=function(){var g=this.options&&this.options.client||this.context&&this.context.client;(0,w.kG)(!!g,29);var R=!1;return g!==this.client&&(R=!0,this.client=g,this.cleanup()),{client:this.client,isNew:R}},L.prototype.verifyDocumentType=function(g,R){var c=(0,i.E2)(g);(0,i.mw)(R),(0,i.mw)(c.type),(0,w.kG)(c.type===R,30)},L}(),h=function(L){function g(R){var l=R.onNewData,T=L.call(this,R.options,R.context)||this;return T.runLazy=!1,T.previous=Object.create(null),T.runLazyQuery=function(B){T.cleanup(),T.runLazy=!0,T.lazyOptions=B,T.onNewData()},T.getQueryResult=function(){var B=T.observableQueryFields(),U=T.getOptions();if(U.skip)B=(0,n.pi)((0,n.pi)({},B),{data:void 0,error:void 0,loading:!1,networkStatus:e.I.ready,called:!0});else if(T.currentObservable){var z=T.currentObservable.getCurrentResult(),ae=z.data,pe=z.loading,X=z.partial,he=z.networkStatus,oe=z.errors,K=z.error;if(oe&&oe.length>0&&(K=new u.c({graphQLErrors:oe})),B=(0,n.pi)((0,n.pi)({},B),{data:ae,loading:pe,networkStatus:he,error:K,called:!0}),!pe)if(K)Object.assign(B,{data:(T.currentObservable.getLastResult()||{}).data});else{var Y=T.currentObservable.options.fetchPolicy;if(U.partialRefetch&&X&&(!ae||0===Object.keys(ae).length)&&"cache-only"!==Y)return Object.assign(B,{loading:!0,networkStatus:e.I.loading}),B.refetch(),B}}B.client=T.client,T.setOptions(U,!0);var $=T.previous.result;return T.previous.loading=$&&$.loading||!1,B.previousData=$&&($.data||$.previousData),T.previous.result=B,T.currentObservable&&T.currentObservable.resetQueryStoreErrors(),B},T.obsRefetch=function(B){var U;return null===(U=T.currentObservable)||void 0===U?void 0:U.refetch(B)},T.obsFetchMore=function(B){return T.currentObservable.fetchMore(B)},T.obsUpdateQuery=function(B){return T.currentObservable.updateQuery(B)},T.obsStartPolling=function(B){var U;null===(U=T.currentObservable)||void 0===U||U.startPolling(B)},T.obsStopPolling=function(){var B;null===(B=T.currentObservable)||void 0===B||B.stopPolling()},T.obsSubscribeToMore=function(B){return T.currentObservable.subscribeToMore(B)},T.onNewData=l,T}return(0,n.ZT)(g,L),g.prototype.execute=function(){this.refreshClient();var R=this.getOptions(),c=R.skip,_=R.query;return(c||_!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!c),this.previous.query=_),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},g.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:e.I.ready,called:!1,data:void 0}]},g.prototype.fetchData=function(){var R=this,c=this.getOptions();return!c.skip&&!1!==c.ssr&&new Promise(function(_){return R.startQuerySubscription(_)})},g.prototype.afterExecute=function(R){var c=(void 0===R?{}:R).lazy,_=void 0!==c&&c;return this.isMounted=!0,(!_||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},g.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},g.prototype.getOptions=function(){var R=L.prototype.getOptions.call(this);return this.lazyOptions&&(R.variables=(0,n.pi)((0,n.pi)({},R.variables),this.lazyOptions.variables),R.context=(0,n.pi)((0,n.pi)({},R.context),this.lazyOptions.context)),this.runLazy&&delete R.skip,R},g.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},g.prototype.getExecuteResult=function(){var R=this.getQueryResult();return this.startQuerySubscription(),R},g.prototype.getExecuteSsrResult=function(){var R=this.getOptions(),_=R.skip,l=!1===R.ssr,T=this.refreshClient().client.disableNetworkFetches,B=(0,n.pi)({loading:!0,networkStatus:e.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(l&&(this.ssrInitiated()||T))return this.previous.result=B,B;if(this.ssrInitiated()){var U=this.getQueryResult()||B;return U.loading&&!_&&this.context.renderPromises.addQueryPromise(this,function(){return null}),U}},g.prototype.prepareObservableQueryOptions=function(){var R=this.getOptions();this.verifyDocumentType(R.query,i.n_.Query);var c=R.displayName||"Query";return this.ssrInitiated()&&("network-only"===R.fetchPolicy||"cache-and-network"===R.fetchPolicy)&&(R.fetchPolicy="cache-first"),(0,n.pi)((0,n.pi)({},R),{displayName:c,context:R.context})},g.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var R=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,n.pi)((0,n.pi)({},R),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,n.pi)({},R)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,R)}},g.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var R=(0,n.pi)((0,n.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,a.D)(R,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=R,this.currentObservable.setOptions(R).catch(function(){}))}}else this.initializeObservableQuery()},g.prototype.startQuerySubscription=function(R){var c=this;void 0===R&&(R=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(_){var U=c.previous.result;U&&U.loading===_.loading&&U.networkStatus===_.networkStatus&&(0,a.D)(U.data,_.data)||R()},error:function(_){if(c.resubscribeToQuery(),!_.hasOwnProperty("graphQLErrors"))throw _;var l=c.previous.result;(l&&l.loading||!(0,a.D)(_,c.previous.error))&&(c.previous.error=_,R())}}))},g.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var R=this.currentObservable;if(R){var c=R.getLastError(),_=R.getLastResult();R.resetLastResults(),this.startQuerySubscription(),Object.assign(R,{lastError:c,lastResult:_})}},g.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var R=this.previous.result,c=R.data,l=R.error;if(!R.loading){var T=this.getOptions(),U=T.variables,z=T.onCompleted,ae=T.onError,pe=T.skip;if(this.previousOptions&&!this.previous.loading&&(0,a.D)(this.previousOptions.query,T.query)&&(0,a.D)(this.previousOptions.variables,U))return;!z||l||pe?ae&&l&&ae(l):z(c)}}},g.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},g.prototype.removeObservable=function(R){this.currentObservable&&(this.currentObservable.tearDownQuery(),R&&delete this.currentObservable)},g.prototype.observableQueryFields=function(){var R;return{variables:null===(R=this.currentObservable)||void 0===R?void 0:R.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},g}(s);function m(L,g,R){void 0===R&&(R=!1);var c=(0,t.useContext)((0,d.K)()),_=(0,t.useReducer)(function(he){return he+1},0),l=_[0],T=_[1],B=g?(0,n.pi)((0,n.pi)({},g),{query:L}):{query:L},U=(0,t.useRef)(),z=U.current||(U.current=new h({options:B,context:c,onNewData:function(){z.ssrInitiated()?T():Promise.resolve().then(function(){return U.current&&T()})}}));z.setOptions(B),z.context=c;var pe=function y(L,g){var R=(0,t.useRef)();return(!R.current||!(0,a.D)(g,R.current.key))&&(R.current={key:g,value:L()}),R.current.value}(function(){return R?z.executeLazy():z.execute()},{options:(0,n.pi)((0,n.pi)({},B),{onError:void 0,onCompleted:void 0}),context:c,tick:l}),X=R?pe[1]:pe;return(0,t.useEffect)(function(){return function(){return z.cleanup()}},[]),(0,t.useEffect)(function(){return z.afterExecute({lazy:R})},[X.loading,X.networkStatus,X.error,X.data]),pe}function I(L,g){return m(L,g,!0)}var M=p(28341),P=function(L){function g(R){var c=R.options,l=R.result,T=R.setResult,B=L.call(this,c,R.context)||this;return B.runMutation=function(U){void 0===U&&(U={}),B.onMutationStart();var z=B.generateNewMutationId();return B.mutate(U).then(function(ae){return B.onMutationCompleted(ae,z),ae}).catch(function(ae){var pe=B.getOptions().onError;if(B.onMutationError(ae,z),pe)return pe(ae),{data:void 0,errors:ae};throw ae})},B.verifyDocumentType(c.mutation,i.n_.Mutation),B.result=l,B.setResult=T,B.mostRecentMutationId=0,B}return(0,n.ZT)(g,L),g.prototype.execute=function(R){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,i.n_.Mutation),[this.runMutation,(0,n.pi)((0,n.pi)({},R),{client:this.refreshClient().client})]},g.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},g.prototype.cleanup=function(){},g.prototype.mutate=function(R){return this.refreshClient().client.mutate((0,M.J)(this.getOptions(),R))},g.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},g.prototype.onMutationCompleted=function(R,c){var _=this.getOptions(),l=_.onCompleted,T=_.ignoreResults,B=R.data,U=R.errors,z=U&&U.length>0?new u.c({graphQLErrors:U}):void 0;this.isMostRecentMutation(c)&&!T&&this.updateResult({called:!0,loading:!1,data:B,error:z}),l&&l(B)},g.prototype.onMutationError=function(R,c){this.isMostRecentMutation(c)&&this.updateResult({loading:!1,error:R,data:void 0,called:!0})},g.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},g.prototype.isMostRecentMutation=function(R){return this.mostRecentMutationId===R},g.prototype.updateResult=function(R){if(this.isMounted&&(!this.previousResult||!(0,a.D)(this.previousResult,R)))return this.setResult(R),this.previousResult=R,R},g}(s);function C(L,g){var R=(0,t.useContext)((0,d.K)()),c=(0,t.useState)({called:!1,loading:!1}),_=c[0],l=c[1],T=g?(0,n.pi)((0,n.pi)({},g),{mutation:L}):{mutation:L},B=(0,t.useRef)(),z=function U(){return B.current||(B.current=new P({options:T,context:R,result:_,setResult:l})),B.current}();return z.setOptions(T),z.context=R,(0,t.useEffect)(function(){return z.afterExecute()}),z.execute(_)}function D(L,g){return m(L,g,!1)}var W=function(L){function g(R){var c=R.options,l=R.setResult,T=L.call(this,c,R.context)||this;return T.currentObservable={},T.setResult=l,T.initialize(c),T}return(0,n.ZT)(g,L),g.prototype.execute=function(R){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var c=R;this.refreshClient().isNew&&(c=this.getLoadingResult());var _=this.getOptions().shouldResubscribe;return"function"==typeof _&&(_=!!_(this.getOptions())),!1!==_&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,a.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),c=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,n.pi)((0,n.pi)({},c),{variables:this.getOptions().variables})},g.prototype.afterExecute=function(){this.isMounted=!0},g.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},g.prototype.initialize=function(R){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:R.subscription,variables:R.variables,fetchPolicy:R.fetchPolicy,context:R.context}))},g.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},g.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},g.prototype.updateResult=function(R){this.isMounted&&this.setResult(R)},g.prototype.updateCurrentData=function(R){var c=this.getOptions().onSubscriptionData;this.updateResult({data:R.data,loading:!1,error:void 0}),c&&c({client:this.refreshClient().client,subscriptionData:R})},g.prototype.updateError=function(R){this.updateResult({error:R,loading:!1})},g.prototype.completeSubscription=function(){var R=this;Promise.resolve().then(function(){var c=R.getOptions().onSubscriptionComplete;c&&c(),R.endSubscription()})},g.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},g}(s);function Q(L,g){var R=(0,t.useContext)((0,d.K)()),c=g?(0,n.pi)((0,n.pi)({},g),{subscription:L}):{subscription:L},_=(0,t.useState)({loading:!c.skip,error:void 0,data:void 0}),l=_[0],T=_[1],B=(0,t.useRef)(),z=function U(){return B.current||(B.current=new W({options:c,context:R,setResult:T})),B.current}();return z.setOptions(c,!0),z.context=R,(0,t.useEffect)(function(){return z.afterExecute()}),(0,t.useEffect)(function(){return z.cleanup.bind(z)},[]),z.execute(l)}function H(L){var g=L(),R=(0,t.useState)(g)[1];return(0,t.useEffect)(function(){var c=L();if(g===c)return L.onNextChange(R);R(c)},[g]),g}},45610:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{ApolloConsumer:()=>w.a,ApolloProvider:()=>t.e,DocumentType:()=>n.n_,getApolloContext:()=>d.K,operationName:()=>n.mw,parser:()=>n.E2,resetApolloContext:()=>d.Z,useApolloClient:()=>r.xJ,useLazyQuery:()=>r.td,useMutation:()=>r.Db,useQuery:()=>r.aM,useReactiveVar:()=>r.lY,useSubscription:()=>r.mU});var t=p(34359),w=p(98474),d=p(29010),r=p(64461),n=p(78638),a=p(44231),e={};for(const i in a)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(i)<0&&(e[i]=()=>a[i]);p.d(k,e)},78638:(ce,k,p)=>{"use strict";p.d(k,{E2:()=>n,mw:()=>r,n_:()=>w});var t=p(3474),w=(()=>{return(a=w||(w={}))[a.Query=0]="Query",a[a.Mutation=1]="Mutation",a[a.Subscription=2]="Subscription",w;var a})(),d=new Map;function r(a){var u;switch(a){case w.Query:u="Query";break;case w.Mutation:u="Mutation";break;case w.Subscription:u="Subscription"}return u}function n(a){var i,u=d.get(a);if(u)return u;(0,t.kG)(!!a&&!!a.kind,34);var h=a.definitions.filter(function(D){return"FragmentDefinition"===D.kind}),y=a.definitions.filter(function(D){return"OperationDefinition"===D.kind&&"query"===D.operation}),m=a.definitions.filter(function(D){return"OperationDefinition"===D.kind&&"mutation"===D.operation}),I=a.definitions.filter(function(D){return"OperationDefinition"===D.kind&&"subscription"===D.operation});(0,t.kG)(!h.length||y.length||m.length||I.length,35),(0,t.kG)(y.length+m.length+I.length<=1,36),i=y.length?w.Query:w.Mutation,!y.length&&!m.length&&(i=w.Subscription);var M=y.length?y:m.length?m:I;(0,t.kG)(1===M.length,37);var P=M[0],C={name:P.name&&"Name"===P.name.kind?P.name.value:"data",type:i,variables:P.variableDefinitions||[]};return d.set(a,C),C}},44231:()=>{},26583:(ce,k,p)=>{"use strict";function t(w){return Array.isArray(w)&&w.length>0}p.d(k,{O:()=>t})},40863:(ce,k,p)=>{"use strict";p.d(k,{m:()=>t});var t="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},30921:(ce,k,p)=>{"use strict";function t(){for(var w=[],d=0;d<arguments.length;d++)w[d]=arguments[d];var r=Object.create(null);return w.forEach(function(n){n&&Object.keys(n).forEach(function(a){var u=n[a];void 0!==u&&(r[a]=u)})}),r}p.d(k,{o:()=>t})},55932:(ce,k,p)=>{"use strict";p.d(k,{Ee:()=>d,bw:()=>r,w0:()=>u});var t=p(60162),w=Object.prototype.hasOwnProperty;function d(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r(e)}function r(e){var i=e[0]||{},s=e.length;if(s>1)for(var h=new u,y=1;y<s;++y)i=h.merge(i,e[y]);return i}function n(e){return null!==e&&"object"==typeof e}var a=function(e,i,s){return this.merge(e[s],i[s])},u=function(){function e(i){void 0===i&&(i=a),this.reconciler=i,this.isObject=n,this.pastCopies=new Set}return e.prototype.merge=function(i,s){for(var h=this,y=[],m=2;m<arguments.length;m++)y[m-2]=arguments[m];return n(s)&&n(i)?(Object.keys(s).forEach(function(I){if(w.call(i,I)){var M=i[I];if(s[I]!==M){var P=h.reconciler.apply(h,(0,t.pr)([i,s,I],y));P!==M&&((i=h.shallowCopyForMerge(i))[I]=P)}}else(i=h.shallowCopyForMerge(i))[I]=s[I]}),i):s},e.prototype.shallowCopyForMerge=function(i){return n(i)&&!this.pastCopies.has(i)&&(i=Array.isArray(i)?i.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i)),i},e}()},23875:(ce,k,p)=>{"use strict";p.d(k,{FS:()=>n,LZ:()=>d,mj:()=>a});var t=p(4496),w=p(3474);function d(i,s){var h=i.directives;return!h||!h.length||function e(i){var s=[];return i&&i.length&&i.forEach(function(h){if(function u(i){var s=i.name.value;return"skip"===s||"include"===s}(h)){var y=h.arguments;(0,w.kG)(y&&1===y.length,39);var I=y[0];(0,w.kG)(I.name&&"if"===I.name.value,40);var M=I.value;(0,w.kG)(M&&("Variable"===M.kind||"BooleanValue"===M.kind),41),s.push({directive:h,ifArgument:I})}}),s}(h).every(function(y){var m=y.directive,I=y.ifArgument,M=!1;return"Variable"===I.value.kind?(0,w.kG)(void 0!==(M=s&&s[I.value.name.value]),38):M=I.value.value,"skip"===m.name.value?!M:M})}function n(i,s){return function r(i){var s=[];return(0,t.Vn)(i,{Directive:function(h){s.push(h.name.value)}}),s}(s).some(function(h){return i.indexOf(h)>-1})}function a(i){return i&&n(["client"],i)&&n(["export"],i)}},25661:(ce,k,p)=>{"use strict";p.d(k,{F:()=>r,Yk:()=>d,hi:()=>n});var t=p(60162),w=p(3474);function d(a,u){var e=u,i=[];return a.definitions.forEach(function(h){if("OperationDefinition"===h.kind)throw new w.ej(42);"FragmentDefinition"===h.kind&&i.push(h)}),typeof e>"u"&&((0,w.kG)(1===i.length,43),e=i[0].name.value),(0,t.pi)((0,t.pi)({},a),{definitions:(0,t.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],a.definitions)})}function r(a){void 0===a&&(a=[]);var u={};return a.forEach(function(e){u[e.name.value]=e}),u}function n(a,u){switch(a.kind){case"InlineFragment":return a;case"FragmentSpread":var e=u&&u[a.name.value];return(0,w.kG)(e,44),e;default:return null}}},53725:(ce,k,p)=>{"use strict";p.d(k,{$H:()=>r,A$:()=>d,O4:()=>s,iW:()=>u,kU:()=>a,p$:()=>i,pD:()=>e,rY:()=>n});var t=p(3474),w=p(92137);function d(h){(0,t.kG)(h&&"Document"===h.kind,45);var y=h.definitions.filter(function(m){return"FragmentDefinition"!==m.kind}).map(function(m){if("OperationDefinition"!==m.kind)throw new t.ej(46);return m});return(0,t.kG)(y.length<=1,47),h}function r(h){return d(h),h.definitions.filter(function(y){return"OperationDefinition"===y.kind})[0]}function n(h){return h.definitions.filter(function(y){return"OperationDefinition"===y.kind&&y.name}).map(function(y){return y.name.value})[0]||null}function a(h){return h.definitions.filter(function(y){return"FragmentDefinition"===y.kind})}function u(h){var y=r(h);return(0,t.kG)(y&&"query"===y.operation,48),y}function e(h){(0,t.kG)("Document"===h.kind,49),(0,t.kG)(h.definitions.length<=1,50);var y=h.definitions[0];return(0,t.kG)("FragmentDefinition"===y.kind,51),y}function i(h){d(h);for(var y,m=0,I=h.definitions;m<I.length;m++){var M=I[m];if("OperationDefinition"===M.kind){var P=M.operation;if("query"===P||"mutation"===P||"subscription"===P)return M}"FragmentDefinition"===M.kind&&!y&&(y=M)}if(y)return y;throw new t.ej(52)}function s(h){var y=Object.create(null),m=h&&h.variableDefinitions;return m&&m.length&&m.forEach(function(I){I.defaultValue&&(0,w.vb)(y,I.variable.name,I.defaultValue)}),y}},92137:(ce,k,p)=>{"use strict";p.d(k,{Ao:()=>R,My:()=>g,NC:()=>Q,PT:()=>W,Yk:()=>a,kQ:()=>n,qw:()=>L,u2:()=>H,vb:()=>P,vf:()=>C});var t=p(48643),w=p.n(t),d=p(3474),r=p(25661);function n(c){return{__ref:String(c)}}function a(c){return Boolean(c&&"object"==typeof c&&"string"==typeof c.__ref)}function P(c,_,l,T){if(function i(c){return"IntValue"===c.kind}(l)||function s(c){return"FloatValue"===c.kind}(l))c[_.value]=Number(l.value);else if(function e(c){return"BooleanValue"===c.kind}(l)||function u(c){return"StringValue"===c.kind}(l))c[_.value]=l.value;else if(function y(c){return"ObjectValue"===c.kind}(l)){var B={};l.fields.map(function(z){return P(B,z.name,z.value,T)}),c[_.value]=B}else if(function h(c){return"Variable"===c.kind}(l))c[_.value]=(T||{})[l.name.value];else if(function m(c){return"ListValue"===c.kind}(l))c[_.value]=l.values.map(function(z){var ae={};return P(ae,_,z,T),ae[_.value]});else if(function I(c){return"EnumValue"===c.kind}(l))c[_.value]=l.value;else{if(!function M(c){return"NullValue"===c.kind}(l))throw new d.ej(53);c[_.value]=null}}function C(c,_){var l=null;c.directives&&(l={},c.directives.forEach(function(B){l[B.name.value]={},B.arguments&&B.arguments.forEach(function(U){return P(l[B.name.value],U.name,U.value,_)})}));var T=null;return c.arguments&&c.arguments.length&&(T={},c.arguments.forEach(function(B){return P(T,B.name,B.value,_)})),W(c.name.value,T,l)}var D=["connection","include","skip","client","rest","export"];function W(c,_,l){if(_&&l&&l.connection&&l.connection.key){if(l.connection.filter&&l.connection.filter.length>0){var T=l.connection.filter?l.connection.filter:[];T.sort();var B={};return T.forEach(function(ae){B[ae]=_[ae]}),l.connection.key+"("+JSON.stringify(B)+")"}return l.connection.key}var U=c;if(_){var z=w()(_);U+="("+z+")"}return l&&Object.keys(l).forEach(function(ae){-1===D.indexOf(ae)&&(l[ae]&&Object.keys(l[ae]).length?U+="@"+ae+"("+JSON.stringify(l[ae])+")":U+="@"+ae)}),U}function Q(c,_){if(c.arguments&&c.arguments.length){var l={};return c.arguments.forEach(function(T){return P(l,T.name,T.value,_)}),l}return null}function H(c){return c.alias?c.alias.value:c.name.value}function L(c,_,l){if("string"==typeof c.__typename)return c.__typename;for(var T=0,B=_.selections;T<B.length;T++){var U=B[T];if(g(U)){if("__typename"===U.name.value)return c[H(U)]}else{var z=L(c,(0,r.hi)(U,l).selectionSet,l);if("string"==typeof z)return z}}}function g(c){return"Field"===c.kind}function R(c){return"InlineFragment"===c.kind}},77218:(ce,k,p)=>{"use strict";p.d(k,{Gw:()=>m,aL:()=>L,ob:()=>g,Fo:()=>M});var t=p(60162),w=p(4496),r=(p(3474),p(53725));function n(R,c,_){var l=0;return R.forEach(function(T,B){c.call(this,T,B,R)&&(R[l++]=T)},_),R.length=l,R}var a=p(92137),u=p(25661),e={kind:"Field",name:{kind:"Name",value:"__typename"}};function i(R,c){return R.selectionSet.selections.every(function(_){return"FragmentSpread"===_.kind&&i(c[_.name.value],c)})}function s(R){return i((0,r.$H)(R)||(0,r.pD)(R),(0,u.F)((0,r.kU)(R)))?null:R}function h(R){return function(_){return R.some(function(l){return l.name&&l.name===_.name.value||l.test&&l.test(_)})}}function y(R,c){var _=Object.create(null),l=[],T=Object.create(null),B=[],U=s((0,w.Vn)(c,{Variable:{enter:function(z,ae,pe){"VariableDefinition"!==pe.kind&&(_[z.name.value]=!0)}},Field:{enter:function(z){if(R&&z.directives&&R.some(function(pe){return pe.remove})&&z.directives&&z.directives.some(h(R)))return z.arguments&&z.arguments.forEach(function(pe){"Variable"===pe.value.kind&&l.push({name:pe.value.name.value})}),z.selectionSet&&H(z.selectionSet).forEach(function(pe){B.push({name:pe.name.value})}),null}},FragmentSpread:{enter:function(z){T[z.name.value]=!0}},Directive:{enter:function(z){if(h(R)(z))return null}}}));return U&&n(l,function(z){return!!z.name&&!_[z.name]}).length&&(U=function W(R,c){var _=function D(R){return function(_){return R.some(function(l){return _.value&&"Variable"===_.value.kind&&_.value.name&&(l.name===_.value.name.value||l.test&&l.test(_))})}}(R);return s((0,w.Vn)(c,{OperationDefinition:{enter:function(l){return(0,t.pi)((0,t.pi)({},l),{variableDefinitions:l.variableDefinitions?l.variableDefinitions.filter(function(T){return!R.some(function(B){return B.name===T.variable.name.value})}):[]})}},Field:{enter:function(l){var T=R.some(function(U){return U.remove});if(T){var B=0;if(l.arguments&&l.arguments.forEach(function(U){_(U)&&(B+=1)}),1===B)return null}}},Argument:{enter:function(l){if(_(l))return null}}}))}(l,U)),U&&n(B,function(z){return!!z.name&&!T[z.name]}).length&&(U=function Q(R,c){function _(l){if(R.some(function(T){return T.name===l.name.value}))return null}return s((0,w.Vn)(c,{FragmentSpread:{enter:_},FragmentDefinition:{enter:_}}))}(B,U)),U}function m(R){return(0,w.Vn)((0,r.A$)(R),{SelectionSet:{enter:function(c,_,l){if(!l||"OperationDefinition"!==l.kind){var T=c.selections;if(T&&!T.some(function(z){return(0,a.My)(z)&&("__typename"===z.name.value||0===z.name.value.lastIndexOf("__",0))})){var U=l;if(!((0,a.My)(U)&&U.directives&&U.directives.some(function(z){return"export"===z.name.value})))return(0,t.pi)((0,t.pi)({},c),{selections:(0,t.pr)(T,[e])})}}}}})}m.added=function(R){return R===e};var I={test:function(R){var c="connection"===R.name.value;return c&&(!R.arguments||R.arguments.some(function(_){return"key"===_.name.value})),c}};function M(R){return y([I],(0,r.A$)(R))}function H(R){var c=[];return R.selections.forEach(function(_){((0,a.My)(_)||(0,a.Ao)(_))&&_.selectionSet?H(_.selectionSet).forEach(function(l){return c.push(l)}):"FragmentSpread"===_.kind&&c.push(_)}),c}function L(R){return"query"===(0,r.p$)(R).operation?R:(0,w.Vn)(R,{OperationDefinition:{enter:function(T){return(0,t.pi)((0,t.pi)({},T),{operation:"query"})}}})}function g(R){(0,r.A$)(R);var c=y([{test:function(_){return"client"===_.name.value},remove:!0}],R);return c&&(c=(0,w.Vn)(c,{FragmentDefinition:{enter:function(_){if(_.selectionSet&&_.selectionSet.selections.every(function(T){return(0,a.My)(T)&&"__typename"===T.name.value}))return null}}})),c}},97090:(ce,k,p)=>{"use strict";function t(w,d,r){var n=[];w.forEach(function(a){return a[d]&&n.push(a)}),n.forEach(function(a){return a[d](r)})}p.d(k,{p:()=>t})},67178:(ce,k,p)=>{"use strict";p.d(k,{D:()=>d});var t=p(20274),w=p.n(t);function d(r){function n(a){Object.defineProperty(r,a,{value:w()})}return"function"==typeof Symbol&&Symbol.species&&n(Symbol.species),n("@@species"),r}},84014:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.RawSha256=void 0;var t=p(68712),w=function(){function d(){this.state=Int32Array.from(t.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return d.prototype.update=function(r){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,a=r.byteLength;if(this.bytesHashed+=a,8*this.bytesHashed>t.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;a>0;)this.buffer[this.bufferLength++]=r[n++],a--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},d.prototype.digest=function(){if(!this.finished){var r=8*this.bytesHashed,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),a=this.bufferLength;if(n.setUint8(this.bufferLength++,128),a%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var u=this.bufferLength;u<t.BLOCK_SIZE;u++)n.setUint8(u,0);this.hashBuffer(),this.bufferLength=0}for(u=this.bufferLength;u<t.BLOCK_SIZE-8;u++)n.setUint8(u,0);n.setUint32(t.BLOCK_SIZE-8,Math.floor(r/4294967296),!0),n.setUint32(t.BLOCK_SIZE-4,r),this.hashBuffer(),this.finished=!0}var e=new Uint8Array(t.DIGEST_LENGTH);for(u=0;u<8;u++)e[4*u]=this.state[u]>>>24&255,e[4*u+1]=this.state[u]>>>16&255,e[4*u+2]=this.state[u]>>>8&255,e[4*u+3]=this.state[u]>>>0&255;return e},d.prototype.hashBuffer=function(){for(var n=this.buffer,a=this.state,u=a[0],e=a[1],i=a[2],s=a[3],h=a[4],y=a[5],m=a[6],I=a[7],M=0;M<t.BLOCK_SIZE;M++){if(M<16)this.temp[M]=(255&n[4*M])<<24|(255&n[4*M+1])<<16|(255&n[4*M+2])<<8|255&n[4*M+3];else{var P=this.temp[M-2];this.temp[M]=(((P>>>17|P<<15)^(P>>>19|P<<13)^P>>>10)+this.temp[M-7]|0)+((((P=this.temp[M-15])>>>7|P<<25)^(P>>>18|P<<14)^P>>>3)+this.temp[M-16]|0)}var W=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&m)|0)+(I+(t.KEY[M]+this.temp[M]|0)|0)|0,Q=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&e^u&i^e&i)|0;I=m,m=y,y=h,h=s+W|0,s=i,i=e,e=u,u=W+Q|0}a[0]+=u,a[1]+=e,a[2]+=i,a[3]+=s,a[4]+=h,a[5]+=y,a[6]+=m,a[7]+=I},d}();k.RawSha256=w},68712:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.MAX_HASHABLE_LENGTH=k.INIT=k.KEY=k.DIGEST_LENGTH=k.BLOCK_SIZE=void 0,k.BLOCK_SIZE=64,k.DIGEST_LENGTH=32,k.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]),k.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],k.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},28731:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),(0,p(91205).__exportStar)(p(40193),k)},40193:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Sha256=void 0;var t=p(91205),w=p(68712),d=p(84014),r=p(30967),n=function(){function u(e){if(this.hash=new d.RawSha256,e){this.outer=new d.RawSha256;var i=function a(u){var e=(0,r.convertToBuffer)(u);if(e.byteLength>w.BLOCK_SIZE){var i=new d.RawSha256;i.update(e),e=i.digest()}var s=new Uint8Array(w.BLOCK_SIZE);return s.set(e),s}(e),s=new Uint8Array(w.BLOCK_SIZE);s.set(i);for(var h=0;h<w.BLOCK_SIZE;h++)i[h]^=54,s[h]^=92;for(this.hash.update(i),this.outer.update(s),h=0;h<i.byteLength;h++)i[h]=0}}return u.prototype.update=function(e){if(!(0,r.isEmptyData)(e)&&!this.error)try{this.hash.update((0,r.convertToBuffer)(e))}catch(i){this.error=i}},u.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()},u.prototype.digest=function(){return(0,t.__awaiter)(this,void 0,void 0,function(){return(0,t.__generator)(this,function(e){return[2,this.digestSync()]})})},u}();k.Sha256=n},41426:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.convertToBuffer=void 0;var t=p(31081),w=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:t.fromUtf8;k.convertToBuffer=function d(r){return r instanceof Uint8Array?r:"string"==typeof r?w(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}},30967:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=k.numToUint8=k.isEmptyData=k.convertToBuffer=void 0;var t=p(41426);Object.defineProperty(k,"convertToBuffer",{enumerable:!0,get:function(){return t.convertToBuffer}});var w=p(56445);Object.defineProperty(k,"isEmptyData",{enumerable:!0,get:function(){return w.isEmptyData}});var d=p(51282);Object.defineProperty(k,"numToUint8",{enumerable:!0,get:function(){return d.numToUint8}});var r=p(99592);Object.defineProperty(k,"uint32ArrayFrom",{enumerable:!0,get:function(){return r.uint32ArrayFrom}})},56445:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.isEmptyData=void 0,k.isEmptyData=function p(t){return"string"==typeof t?0===t.length:0===t.byteLength}},51282:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.numToUint8=void 0,k.numToUint8=function p(t){return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])}},99592:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=void 0,k.uint32ArrayFrom=function p(t){if(!Array.from){for(var w=new Uint32Array(t.length);0<t.length;)w[0]=t[0];return w}return Uint32Array.from(t)}},75137:(ce,k,p)=>{"use strict";p.d(k,{N:()=>a});for(var t={},w={},d=0;d<256;d++){var r=d.toString(16).toLowerCase();1===r.length&&(r="0".concat(r)),t[d]=r,w[r]=d}function a(u){for(var e="",i=0;i<u.byteLength;i++)e+=t[u[i]];return e}},31081:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{fromUtf8:()=>n,toUtf8:()=>a});var n=function(u){return"function"==typeof TextEncoder?function d(u){return(new TextEncoder).encode(u)}(u):function(u){for(var e=[],i=0,s=u.length;i<s;i++){var h=u.charCodeAt(i);if(h<128)e.push(h);else if(h<2048)e.push(h>>6|192,63&h|128);else if(i+1<u.length&&55296==(64512&h)&&56320==(64512&u.charCodeAt(i+1))){var y=65536+((1023&h)<<10)+(1023&u.charCodeAt(++i));e.push(y>>18|240,y>>12&63|128,y>>6&63|128,63&y|128)}else e.push(h>>12|224,h>>6&63|128,63&h|128)}return Uint8Array.from(e)}(u)},a=function(u){return"function"==typeof TextDecoder?function r(u){return new TextDecoder("utf-8").decode(u)}(u):function(u){for(var e="",i=0,s=u.length;i<s;i++){var h=u[i];if(h<128)e+=String.fromCharCode(h);else if(192<=h&&h<224){var y=u[++i];e+=String.fromCharCode((31&h)<<6|63&y)}else if(240<=h&&h<365){var I="%"+[h,u[++i],u[++i],u[++i]].map(function(M){return M.toString(16)}).join("%");e+=decodeURIComponent(I)}else e+=String.fromCharCode((15&h)<<12|(63&u[++i])<<6|63&u[++i])}return e}(u)}},62966:(ce,k,p)=>{"use strict";p.d(k,{g7:()=>u});var t=null,w={},d=1,n="@wry/context:Slot",a=Array,u=a[n]||function(){var M=function(){function M(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return M.prototype.hasValue=function(){for(var P=t;P;P=P.parent)if(this.id in P.slots){var C=P.slots[this.id];if(C===w)break;return P!==t&&(t.slots[this.id]=C),!0}return t&&(t.slots[this.id]=w),!1},M.prototype.getValue=function(){if(this.hasValue())return t.slots[this.id]},M.prototype.withValue=function(P,C,D,W){var Q,H=((Q={__proto__:null})[this.id]=P,Q),L=t;t={parent:L,slots:H};try{return C.apply(W,D)}finally{t=L}},M.bind=function(P){var C=t;return function(){var D=t;try{return t=C,P.apply(this,arguments)}finally{t=D}}},M.noContext=function(P,C,D){if(!t)return P.apply(D,C);var W=t;try{return t=null,P.apply(D,C)}finally{t=W}},M}();try{Object.defineProperty(a,n,{value:a[n]=M,enumerable:!1,writable:!1,configurable:!1})}finally{return M}}()},16492:(ce,k,p)=>{"use strict";p.d(k,{D:()=>a});var t=Object.prototype,w=t.toString,d=t.hasOwnProperty,r=Function.prototype.toString,n=new Map;function a(m,I){try{return u(m,I)}finally{n.clear()}}function u(m,I){if(m===I)return!0;var M=w.call(m);if(M!==w.call(I))return!1;switch(M){case"[object Array]":if(m.length!==I.length)return!1;case"[object Object]":if(y(m,I))return!0;var C=e(m),D=e(I),W=C.length;if(W!==D.length)return!1;for(var Q=0;Q<W;++Q)if(!d.call(I,C[Q]))return!1;for(Q=0;Q<W;++Q){var H=C[Q];if(!u(m[H],I[H]))return!1}return!0;case"[object Error]":return m.name===I.name&&m.message===I.message;case"[object Number]":if(m!=m)return I!=I;case"[object Boolean]":case"[object Date]":return+m==+I;case"[object RegExp]":case"[object String]":return m==""+I;case"[object Map]":case"[object Set]":if(m.size!==I.size)return!1;if(y(m,I))return!0;for(var L=m.entries(),g="[object Map]"===M;;){var R=L.next();if(R.done)break;var c=R.value,_=c[0],l=c[1];if(!I.has(_)||g&&!u(l,I.get(_)))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]":m=new Uint8Array(m),I=new Uint8Array(I);case"[object DataView]":var T=m.byteLength;if(T===I.byteLength)for(;T--&&m[T]===I[T];);return-1===T;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var B=r.call(m);return B===r.call(I)&&!function h(m,I){var M=m.length-I.length;return M>=0&&m.indexOf(I,M)===M}(B,s)}return!1}function e(m){return Object.keys(m).filter(i,m)}function i(m){return void 0!==this[m]}var s="{ [native code] }";function y(m,I){var M=n.get(m);if(M){if(M.has(I))return!0}else n.set(m,M=new Set);return M.add(I),!1}},83302:(ce,k,p)=>{"use strict";p.d(k,{B:()=>n});var t=function(){return Object.create(null)},w=Array.prototype,d=w.forEach,r=w.slice,n=function(){function u(e,i){void 0===e&&(e=!0),void 0===i&&(i=t),this.weakness=e,this.makeData=i}return u.prototype.lookup=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.lookupArray(e)},u.prototype.lookupArray=function(e){var i=this;return d.call(e,function(s){return i=i.getChildTrie(s)}),i.data||(i.data=this.makeData(r.call(e)))},u.prototype.getChildTrie=function(e){var i=this.weakness&&function a(u){switch(typeof u){case"object":if(null===u)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),s=i.get(e);return s||i.set(e,s=new u(this.weakness,this.makeData)),s},u}()},27226:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{addTypenameToDocument:()=>ut,argumentsObjectFromField:()=>Tt,assign:()=>$t,buildQueryFromSelectionSet:()=>Jr,canUseWeakMap:()=>$r,checkDocument:()=>Ot,cloneDeep:()=>Zr,createFragmentMap:()=>Tr,getDefaultValues:()=>ur,getDirectiveInfoFromField:()=>Jt,getDirectiveNames:()=>mt,getDirectivesFromDocument:()=>Hr,getEnv:()=>hr,getFragmentDefinition:()=>sr,getFragmentDefinitions:()=>xr,getFragmentQueryDocument:()=>Or,getInclusionDirectives:()=>Qt,getMainDefinition:()=>Xt,getMutationDefinition:()=>Ar,getOperationDefinition:()=>Kt,getOperationDefinitionOrDie:()=>Qr,getOperationName:()=>Kr,getQueryDefinition:()=>qr,getStoreKeyName:()=>ft,graphQLResultHasError:()=>Dr,hasClientExports:()=>Wr,hasDirectives:()=>Nt,isDevelopment:()=>Dt,isEnv:()=>Bt,isEqual:()=>te,isField:()=>wt,isIdValue:()=>It,isInlineFragment:()=>Ct,isJsonValue:()=>Vt,isNumberValue:()=>Ue,isProduction:()=>Pr,isScalarValue:()=>Ie,isTest:()=>st,maybeDeepFreeze:()=>kr,mergeDeep:()=>Fr,mergeDeepArray:()=>At,removeArgumentsFromDocument:()=>Yr,removeClientSetsFromDocument:()=>fr,removeConnectionDirectiveFromDocument:()=>Pt,removeDirectivesFromDocument:()=>tr,removeFragmentSpreadFromDocument:()=>zt,resultKeyNameFromField:()=>Ft,shouldInclude:()=>Vr,storeKeyNameFromField:()=>Rt,stripSymbols:()=>vr,toIdValue:()=>Lt,tryFunctionOrLogError:()=>pr,valueFromNode:()=>Et,valueToObjectRepresentation:()=>yt,variablesInOperation:()=>zr,warnOnceInDevelopment:()=>tn});var J,t=p(4496),w=function(J,se){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Ee){fe.__proto__=Ee}||function(fe,Ee){for(var we in Ee)Ee.hasOwnProperty(we)&&(fe[we]=Ee[we])})(J,se)},_="Invariant Violation",l=Object.setPrototypeOf,T=void 0===l?function(J,se){return J.__proto__=se,J}:l,B=function(J){function se(fe){void 0===fe&&(fe=_);var Ee=J.call(this,"number"==typeof fe?_+": "+fe+" (see https://github.com/apollographql/invariant-packages)":fe)||this;return Ee.framesToPop=1,Ee.name=_,T(Ee,se.prototype),Ee}return function d(J,se){function fe(){this.constructor=J}w(J,se),J.prototype=null===se?Object.create(se):(fe.prototype=se.prototype,new fe)}(se,J),se}(Error);function U(J,se){if(!J)throw new B(se)}function z(J){return function(){return console[J].apply(console,arguments)}}(J=U||(U={})).warn=z("warn"),J.error=z("error");var ae={env:{}};if("object"==typeof process)ae=process;else try{Function("stub","process = stub")(ae)}catch{}var K=function(){return K=Object.assign||function(se){for(var fe,Ee=1,we=arguments.length;Ee<we;Ee++)for(var Se in fe=arguments[Ee])Object.prototype.hasOwnProperty.call(fe,Se)&&(se[Se]=fe[Se]);return se},K.apply(this,arguments)};function _e(){for(var J=0,se=0,fe=arguments.length;se<fe;se++)J+=arguments[se].length;var Ee=Array(J),we=0;for(se=0;se<fe;se++)for(var Se=arguments[se],Fe=0,Be=Se.length;Fe<Be;Fe++,we++)Ee[we]=Se[Fe];return Ee}var O=p(48643),F=p.n(O),re=Object.prototype,ve=re.toString,xe=re.hasOwnProperty,Te=new Map;function te(J,se){try{return de(J,se)}finally{Te.clear()}}function de(J,se){if(J===se)return!0;var fe=ve.call(J);if(fe!==ve.call(se))return!1;switch(fe){case"[object Array]":if(J.length!==se.length)return!1;case"[object Object]":if(ye(J,se))return!0;var we=Object.keys(J),Se=Object.keys(se),Fe=we.length;if(Fe!==Se.length)return!1;for(var Be=0;Be<Fe;++Be)if(!xe.call(se,we[Be]))return!1;for(Be=0;Be<Fe;++Be){var Ge=we[Be];if(!de(J[Ge],se[Ge]))return!1}return!0;case"[object Error]":return J.name===se.name&&J.message===se.message;case"[object Number]":if(J!=J)return se!=se;case"[object Boolean]":case"[object Date]":return+J==+se;case"[object RegExp]":case"[object String]":return J==""+se;case"[object Map]":case"[object Set]":if(J.size!==se.size)return!1;if(ye(J,se))return!0;for(var Ne=J.entries(),et="[object Map]"===fe;;){var dt=Ne.next();if(dt.done)break;var $e=dt.value,lt=$e[0],xt=$e[1];if(!se.has(lt)||et&&!de(xt,se.get(lt)))return!1}return!0}return!1}function ye(J,se){var fe=Te.get(J);if(fe){if(fe.has(se))return!0}else Te.set(J,fe=new Set);return fe.add(se),!1}function Ie(J){return["StringValue","BooleanValue","EnumValue"].indexOf(J.kind)>-1}function Ue(J){return["IntValue","FloatValue"].indexOf(J.kind)>-1}function yt(J,se,fe,Ee){if(function nt(J){return"IntValue"===J.kind}(fe)||function ht(J){return"FloatValue"===J.kind}(fe))J[se.value]=Number(fe.value);else if(function ze(J){return"BooleanValue"===J.kind}(fe)||function qe(J){return"StringValue"===J.kind}(fe))J[se.value]=fe.value;else if(function Ke(J){return"ObjectValue"===J.kind}(fe)){var we={};fe.fields.map(function(Fe){return yt(we,Fe.name,Fe.value,Ee)}),J[se.value]=we}else if(function at(J){return"Variable"===J.kind}(fe))J[se.value]=(Ee||{})[fe.name.value];else if(function ct(J){return"ListValue"===J.kind}(fe))J[se.value]=fe.values.map(function(Fe){var Be={};return yt(Be,se,Fe,Ee),Be[se.value]});else if(function jt(J){return"EnumValue"===J.kind}(fe))J[se.value]=fe.value;else{if(!function pt(J){return"NullValue"===J.kind}(fe))throw new B(17);J[se.value]=null}}function Rt(J,se){var fe=null;J.directives&&(fe={},J.directives.forEach(function(we){fe[we.name.value]={},we.arguments&&we.arguments.forEach(function(Se){return yt(fe[we.name.value],Se.name,Se.value,se)})}));var Ee=null;return J.arguments&&J.arguments.length&&(Ee={},J.arguments.forEach(function(we){return yt(Ee,we.name,we.value,se)})),ft(J.name.value,Ee,fe)}var St=["connection","include","skip","client","rest","export"];function ft(J,se,fe){if(fe&&fe.connection&&fe.connection.key){if(fe.connection.filter&&fe.connection.filter.length>0){var Ee=fe.connection.filter?fe.connection.filter:[];Ee.sort();var we=se,Se={};return Ee.forEach(function(Ge){Se[Ge]=we[Ge]}),fe.connection.key+"("+JSON.stringify(Se)+")"}return fe.connection.key}var Fe=J;if(se){var Be=F()(se);Fe+="("+Be+")"}return fe&&Object.keys(fe).forEach(function(Ge){-1===St.indexOf(Ge)&&(fe[Ge]&&Object.keys(fe[Ge]).length?Fe+="@"+Ge+"("+JSON.stringify(fe[Ge])+")":Fe+="@"+Ge)}),Fe}function Tt(J,se){if(J.arguments&&J.arguments.length){var fe={};return J.arguments.forEach(function(Ee){return yt(fe,Ee.name,Ee.value,se)}),fe}return null}function Ft(J){return J.alias?J.alias.value:J.name.value}function wt(J){return"Field"===J.kind}function Ct(J){return"InlineFragment"===J.kind}function It(J){return J&&"id"===J.type&&"boolean"==typeof J.generated}function Lt(J,se){return void 0===se&&(se=!1),K({type:"id",generated:se},"string"==typeof J?{id:J,typename:void 0}:J)}function Vt(J){return null!=J&&"object"==typeof J&&"json"===J.type}function Wt(J){throw new B(18)}function Et(J,se){switch(void 0===se&&(se=Wt),J.kind){case"Variable":return se(J);case"NullValue":return null;case"IntValue":return parseInt(J.value,10);case"FloatValue":return parseFloat(J.value);case"ListValue":return J.values.map(function(Fe){return Et(Fe,se)});case"ObjectValue":for(var fe={},Ee=0,we=J.fields;Ee<we.length;Ee++){var Se=we[Ee];fe[Se.name.value]=Et(Se.value,se)}return fe;default:return J.value}}function Jt(J,se){if(J.directives&&J.directives.length){var fe={};return J.directives.forEach(function(Ee){fe[Ee.name.value]=Tt(Ee,se)}),fe}return null}function Vr(J,se){return void 0===se&&(se={}),Qt(J.directives).every(function(fe){var Ee=fe.directive,we=fe.ifArgument,Se=!1;return"Variable"===we.value.kind?U(void 0!==(Se=se[we.value.name.value]),13):Se=we.value.value,"skip"===Ee.name.value?!Se:Se})}function mt(J){var se=[];return(0,t.Vn)(J,{Directive:function(fe){se.push(fe.name.value)}}),se}function Nt(J,se){return mt(se).some(function(fe){return J.indexOf(fe)>-1})}function Wr(J){return J&&Nt(["client"],J)&&Nt(["export"],J)}function _t(J){var se=J.name.value;return"skip"===se||"include"===se}function Qt(J){return J?J.filter(_t).map(function(se){var fe=se.arguments;U(fe&&1===fe.length,14);var we=fe[0];U(we.name&&"if"===we.name.value,15);var Se=we.value;return U(Se&&("Variable"===Se.kind||"BooleanValue"===Se.kind),16),{directive:se,ifArgument:we}}):[]}function Or(J,se){var fe=se,Ee=[];return J.definitions.forEach(function(Se){if("OperationDefinition"===Se.kind)throw new B(11);"FragmentDefinition"===Se.kind&&Ee.push(Se)}),typeof fe>"u"&&(U(1===Ee.length,12),fe=Ee[0].name.value),K(K({},J),{definitions:_e([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:fe}}]}}],J.definitions)})}function $t(J){for(var se=[],fe=1;fe<arguments.length;fe++)se[fe-1]=arguments[fe];return se.forEach(function(Ee){typeof Ee>"u"||null===Ee||Object.keys(Ee).forEach(function(we){J[we]=Ee[we]})}),J}function Ar(J){Ot(J);var se=J.definitions.filter(function(fe){return"OperationDefinition"===fe.kind&&"mutation"===fe.operation})[0];return U(se,1),se}function Ot(J){return U(J&&"Document"===J.kind,2),U(J.definitions.filter(function(fe){return"FragmentDefinition"!==fe.kind}).map(function(fe){if("OperationDefinition"!==fe.kind)throw new B(3);return fe}).length<=1,4),J}function Kt(J){return Ot(J),J.definitions.filter(function(se){return"OperationDefinition"===se.kind})[0]}function Qr(J){var se=Kt(J);return U(se,5),se}function Kr(J){return J.definitions.filter(function(se){return"OperationDefinition"===se.kind&&se.name}).map(function(se){return se.name.value})[0]||null}function xr(J){return J.definitions.filter(function(se){return"FragmentDefinition"===se.kind})}function qr(J){var se=Kt(J);return U(se&&"query"===se.operation,6),se}function sr(J){U("Document"===J.kind,7),U(J.definitions.length<=1,8);var se=J.definitions[0];return U("FragmentDefinition"===se.kind,9),se}function Xt(J){Ot(J);for(var se,fe=0,Ee=J.definitions;fe<Ee.length;fe++){var we=Ee[fe];if("OperationDefinition"===we.kind){var Se=we.operation;if("query"===Se||"mutation"===Se||"subscription"===Se)return we}"FragmentDefinition"===we.kind&&!se&&(se=we)}if(se)return se;throw new B(10)}function Tr(J){void 0===J&&(J=[]);var se={};return J.forEach(function(fe){se[fe.name.value]=fe}),se}function ur(J){if(J&&J.variableDefinitions&&J.variableDefinitions.length){var se=J.variableDefinitions.filter(function(fe){return fe.defaultValue}).map(function(fe){var Se={};return yt(Se,fe.variable.name,fe.defaultValue),Se});return $t.apply(void 0,_e([{}],se))}return{}}function zr(J){var se=new Set;if(J.variableDefinitions)for(var fe=0,Ee=J.variableDefinitions;fe<Ee.length;fe++)se.add(Ee[fe].variable.name.value);return se}function cr(J,se,fe){var Ee=0;return J.forEach(function(we,Se){se.call(this,we,Se,J)&&(J[Ee++]=we)},fe),J.length=Ee,J}var Cr={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zt(J,se){return J.selectionSet.selections.every(function(fe){return"FragmentSpread"===fe.kind&&Zt(se[fe.name.value],se)})}function qt(J){return Zt(Kt(J)||sr(J),Tr(xr(J)))?null:J}function er(J){return function(fe){return J.some(function(Ee){return Ee.name&&Ee.name===fe.name.value||Ee.test&&Ee.test(fe)})}}function tr(J,se){var fe=Object.create(null),Ee=[],we=Object.create(null),Se=[],Fe=qt((0,t.Vn)(se,{Variable:{enter:function(Be,Ge,Ne){"VariableDefinition"!==Ne.kind&&(fe[Be.name.value]=!0)}},Field:{enter:function(Be){if(J&&Be.directives&&J.some(function(Ne){return Ne.remove})&&Be.directives&&Be.directives.some(er(J)))return Be.arguments&&Be.arguments.forEach(function(Ne){"Variable"===Ne.value.kind&&Ee.push({name:Ne.value.name.value})}),Be.selectionSet&&Ht(Be.selectionSet).forEach(function(Ne){Se.push({name:Ne.name.value})}),null}},FragmentSpread:{enter:function(Be){we[Be.name.value]=!0}},Directive:{enter:function(Be){if(er(J)(Be))return null}}}));return Fe&&cr(Ee,function(Be){return!fe[Be.name]}).length&&(Fe=Yr(Ee,Fe)),Fe&&cr(Se,function(Be){return!we[Be.name]}).length&&(Fe=zt(Se,Fe)),Fe}function ut(J){return(0,t.Vn)(Ot(J),{SelectionSet:{enter:function(se,fe,Ee){if(!Ee||"OperationDefinition"!==Ee.kind){var we=se.selections;if(we&&!we.some(function(Be){return wt(Be)&&("__typename"===Be.name.value||0===Be.name.value.lastIndexOf("__",0))})){var Fe=Ee;if(!(wt(Fe)&&Fe.directives&&Fe.directives.some(function(Be){return"export"===Be.name.value})))return K(K({},se),{selections:_e(we,[Cr])})}}}}})}var rr={test:function(J){var se="connection"===J.name.value;return se&&(!J.arguments||J.arguments.some(function(fe){return"key"===fe.name.value})),se}};function Pt(J){return tr([rr],Ot(J))}function Rr(J,se,fe){return void 0===fe&&(fe=!0),se&&se.selections&&se.selections.some(function(Ee){return Ir(J,Ee,fe)})}function Ir(J,se,fe){return void 0===fe&&(fe=!0),!wt(se)||!!se.directives&&(se.directives.some(er(J))||fe&&Rr(J,se.selectionSet,fe))}function Hr(J,se){var fe;return Ot(se),qt((0,t.Vn)(se,{SelectionSet:{enter:function(Ee,we,Se,Fe){var Be=Fe.join("-");if(!fe||Be===fe||!Be.startsWith(fe)){if(Ee.selections){var Ge=Ee.selections.filter(function(Ne){return Ir(J,Ne)});return Rr(J,Ee,!1)&&(fe=Be),K(K({},Ee),{selections:Ge})}return null}}}}))}function Yr(J,se){var fe=function Gr(J){return function(fe){return J.some(function(Ee){return fe.value&&"Variable"===fe.value.kind&&fe.value.name&&(Ee.name===fe.value.name.value||Ee.test&&Ee.test(fe))})}}(J);return qt((0,t.Vn)(se,{OperationDefinition:{enter:function(Ee){return K(K({},Ee),{variableDefinitions:Ee.variableDefinitions.filter(function(we){return!J.some(function(Se){return Se.name===we.variable.name.value})})})}},Field:{enter:function(Ee){if(J.some(function(Fe){return Fe.remove})){var Se=0;if(Ee.arguments.forEach(function(Fe){fe(Fe)&&(Se+=1)}),1===Se)return null}}},Argument:{enter:function(Ee){if(fe(Ee))return null}}}))}function zt(J,se){function fe(Ee){if(J.some(function(we){return we.name===Ee.name.value}))return null}return qt((0,t.Vn)(se,{FragmentSpread:{enter:fe},FragmentDefinition:{enter:fe}}))}function Ht(J){var se=[];return J.selections.forEach(function(fe){(wt(fe)||Ct(fe))&&fe.selectionSet?Ht(fe.selectionSet).forEach(function(Ee){return se.push(Ee)}):"FragmentSpread"===fe.kind&&se.push(fe)}),se}function Jr(J){return"query"===Xt(J).operation?J:(0,t.Vn)(J,{OperationDefinition:{enter:function(we){return K(K({},we),{operation:"query"})}}})}function fr(J){Ot(J);var se=tr([{test:function(fe){return"client"===fe.name.value},remove:!0}],J);return se&&(se=(0,t.Vn)(se,{FragmentDefinition:{enter:function(fe){if(fe.selectionSet&&fe.selectionSet.selections.every(function(we){return wt(we)&&"__typename"===we.name.value}))return null}}})),se}var $r="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Xr=Object.prototype.toString;function Zr(J){return lr(J,new Map)}function lr(J,se){switch(Xr.call(J)){case"[object Array]":if(se.has(J))return se.get(J);var fe=J.slice(0);return se.set(J,fe),fe.forEach(function(we,Se){fe[Se]=lr(we,se)}),fe;case"[object Object]":if(se.has(J))return se.get(J);var Ee=Object.create(Object.getPrototypeOf(J));return se.set(J,Ee),Object.keys(J).forEach(function(we){Ee[we]=lr(J[we],se)}),Ee;default:return J}}function hr(){return typeof process<"u"?"production":"development"}function Bt(J){return hr()===J}function Pr(){return!0===Bt("production")}function Dt(){return!0===Bt("development")}function st(){return!0===Bt("test")}function pr(J){try{return J()}catch(se){console.error&&console.error(se)}}function Dr(J){return J.errors&&J.errors.length}function Mr(J){return Object.freeze(J),Object.getOwnPropertyNames(J).forEach(function(se){null!==J[se]&&("object"==typeof J[se]||"function"==typeof J[se])&&!Object.isFrozen(J[se])&&Mr(J[se])}),J}function kr(J){return!Dt()&&!st()||"function"==typeof Symbol&&"string"==typeof Symbol("")?J:Mr(J)}var en=Object.prototype.hasOwnProperty;function Fr(){for(var J=[],se=0;se<arguments.length;se++)J[se]=arguments[se];return At(J)}function At(J){var se=J[0]||{},fe=J.length;if(fe>1){var Ee=[];se=dr(se,Ee);for(var we=1;we<fe;++we)se=Mt(se,J[we],Ee)}return se}function nr(J){return null!==J&&"object"==typeof J}function Mt(J,se,fe){return nr(se)&&nr(J)?(Object.isExtensible&&!Object.isExtensible(J)&&(J=dr(J,fe)),Object.keys(se).forEach(function(Ee){var we=se[Ee];if(en.call(J,Ee)){var Se=J[Ee];we!==Se&&(J[Ee]=Mt(dr(Se,fe),we,fe))}else J[Ee]=we}),J):se}function dr(J,se){return null!==J&&"object"==typeof J&&se.indexOf(J)<0&&(J=Array.isArray(J)?J.slice(0):K({__proto__:Object.getPrototypeOf(J)},J),se.push(J)),J}var it=Object.create({});function tn(J,se){void 0===se&&(se="warn"),!Pr()&&!it[J]&&(st()||(it[J]=!0),"error"===se?console.error(J):console.warn(J))}function vr(J){return JSON.parse(JSON.stringify(J))}},10473:function(ce,k,p){"use strict";var D,t=this&&this.__extends||(D=function(W,Q){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,L){H.__proto__=L}||function(H,L){for(var g in L)L.hasOwnProperty(g)&&(H[g]=L[g])})(W,Q)},function(W,Q){function H(){this.constructor=W}D(W,Q),W.prototype=null===Q?Object.create(Q):(H.prototype=Q.prototype,new H)}),w=this&&this.__assign||function(){return w=Object.assign||function(D){for(var W,Q=1,H=arguments.length;Q<H;Q++)for(var L in W=arguments[Q])Object.prototype.hasOwnProperty.call(W,L)&&(D[L]=W[L]);return D},w.apply(this,arguments)},d=this&&this.__awaiter||function(D,W,Q,H){return new(Q||(Q=Promise))(function(g,R){function c(T){try{l(H.next(T))}catch(B){R(B)}}function _(T){try{l(H.throw(T))}catch(B){R(B)}}function l(T){T.done?g(T.value):function L(g){return g instanceof Q?g:new Q(function(R){R(g)})}(T.value).then(c,_)}l((H=H.apply(D,W||[])).next())})},r=this&&this.__generator||function(D,W){var H,L,g,R,Q={label:0,sent:function(){if(1&g[0])throw g[1];return g[1]},trys:[],ops:[]};return R={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(R[Symbol.iterator]=function(){return this}),R;function c(l){return function(T){return function _(l){if(H)throw new TypeError("Generator is already executing.");for(;Q;)try{if(H=1,L&&(g=2&l[0]?L.return:l[0]?L.throw||((g=L.return)&&g.call(L),0):L.next)&&!(g=g.call(L,l[1])).done)return g;switch(L=0,g&&(l=[2&l[0],g.value]),l[0]){case 0:case 1:g=l;break;case 4:return Q.label++,{value:l[1],done:!1};case 5:Q.label++,L=l[1],l=[0];continue;case 7:l=Q.ops.pop(),Q.trys.pop();continue;default:if(!(g=(g=Q.trys).length>0&&g[g.length-1])&&(6===l[0]||2===l[0])){Q=0;continue}if(3===l[0]&&(!g||l[1]>g[0]&&l[1]<g[3])){Q.label=l[1];break}if(6===l[0]&&Q.label<g[1]){Q.label=g[1],g=l;break}if(g&&Q.label<g[2]){Q.label=g[2],Q.ops.push(l);break}g[2]&&Q.ops.pop(),Q.trys.pop();continue}l=W.call(D,Q)}catch(T){l=[6,T],L=0}finally{H=g=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,T])}}};Object.defineProperty(k,"__esModule",{value:!0});var y,n=p(12850),a=p(94140),u=p(91102),e=p(87317),i=p(20646),s=p(7535);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+s.version+(i.userAgent&&" ")+i.userAgent,function(D){D.NONE="NONE",D.API_KEY="API_KEY",D.AWS_IAM="AWS_IAM",D.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",D.OPENID_CONNECT="OPENID_CONNECT",D.AWS_LAMBDA="AWS_LAMBDA"}(y=k.AUTH_TYPE||(k.AUTH_TYPE={}));var m=function(D){function W(Q){var H=D.call(this)||this;return H.link=k.authLink(Q),H}return t(W,D),W.prototype.request=function(Q,H){return this.link.request(Q,H)},W}(n.ApolloLink);k.AuthLink=m;var I=function(D,W,Q){var H=void 0===D?{header:"",value:""}:D,L=H.header,g=H.value;return d(void 0,void 0,void 0,function(){var R,c,l,T,B;return r(this,function(U){switch(U.label){case 0:return R=W.getContext(),c=w(w({},R.headers),((T={})[k.USER_AGENT_HEADER]=k.USER_AGENT,T)),L&&g?"function"!=typeof g?[3,2]:[4,g.call(void 0)]:[3,5];case 1:return l=U.sent(),[3,4];case 2:return[4,g];case 3:l=U.sent(),U.label=4;case 4:c=w(((B={})[L]=l,B),c),U.label=5;case 5:return W.setContext(w(w({},R),{headers:c})),[2,Q(W)]}})})};k.authLink=function(D){var W=D.url,Q=D.region,H=D.auth,L=(void 0===H?{}:H).type,g=D.auth;return new n.ApolloLink(function(R,c){return new n.Observable(function(_){var l,T;switch(L){case y.NONE:T=I(void 0,R,c);break;case y.AWS_IAM:var B=g.credentials;T=function(D,W,Q){var H=D.credentials,L=D.region,g=D.url;return d(void 0,void 0,void 0,function(){var R,c,_,l,T,B,U,z,ae,pe,X,he,oe;return r(this,function(K){switch(K.label){case 0:return R="appsync",c=W.getContext(),(_="function"==typeof H?H.call():H||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:K.sent(),K.label=2;case 2:return[4,_];case 3:return l=K.sent(),T=l.accessKeyId,B=l.secretAccessKey,U=l.sessionToken,z=e.parse(g),ae=z.host,pe=z.path,X=w(w({},P(W,{})),{service:R,region:L,url:g,host:ae,path:pe}),he=u.Signer.sign(X,{access_key:T,secret_key:B,session_token:U}).headers,W.setContext(w(w({},c),{headers:w(w(w({},c.headers),he),(oe={},oe[k.USER_AGENT_HEADER]=k.USER_AGENT,oe))})),[2,Q(W)]}})})}({credentials:void 0===B?{}:B,region:Q,url:W},R,c);break;case y.API_KEY:var z=g.apiKey;T=I({header:"X-Api-Key",value:void 0===z?"":z},R,c);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var pe=g.jwtToken;T=I({header:"Authorization",value:void 0===pe?"":pe},R,c);break;case y.AWS_LAMBDA:var he=g.token;T=I({header:"Authorization",value:void 0===he?"":he},R,c);break;default:throw new Error("Invalid AUTH_TYPE: "+g.type)}return T.then(function(Y){l=Y.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){l&&l.unsubscribe()}})})};var P=function(D,W){var L=D.query,g={operationName:D.operationName,variables:C(D.variables),query:a.print(L)};return w(w({body:JSON.stringify(g),method:"POST"},W),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},C=function(D){return Object.keys(D).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,Q){return W[Q]=D[Q],W},{})}},44284:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var t=p(10473);k.AuthLink=t.AuthLink,k.AUTH_TYPE=t.AUTH_TYPE,k.USER_AGENT_HEADER=t.USER_AGENT_HEADER,k.USER_AGENT=t.USER_AGENT,k.createAuthLink=function(d){return new t.AuthLink({url:d.url,region:d.region,auth:d.auth})};var w=p(91102);k.Signer=w.Signer},20646:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},91102:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function t(w){for(var d in w)k.hasOwnProperty(d)||(k[d]=w[d])}(p(1381))},1381:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),global.Buffer=global.Buffer||p(9333).lW;var t=p(87317),w=p(28731).Sha256,d=p(75137).N,r=function(C,D,W){void 0===W&&(W="");var Q=new w(C);Q.update(D);var H=Q.digestSync();return"hex"===W?d(H):H},n=function(C){var D=C||"",W=new w;return W.update(D),d(W.digestSync())},a=function(C){return C&&0!==Object.keys(C).length?Object.keys(C).map(function(D){return{key:D.toLowerCase(),value:C[D]?C[D].trim().replace(/\s+/g," "):""}}).sort(function(D,W){return D.key<W.key?-1:1}).map(function(D){return D.key+":"+D.value}).join("\n")+"\n":""},u=function(C){return Object.keys(C).map(function(D){return D.toLowerCase()}).sort().join(";")},M=function(C,D,W){void 0===W&&(W=null),C.headers=C.headers||{};var H=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),L=H.substr(0,8),g="AWS4-HMAC-SHA256",R=t.parse(C.url);C.headers.host=R.host,C.headers["x-amz-date"]=H,D.session_token&&(C.headers["X-Amz-Security-Token"]=D.session_token);var c=function(C){var D=t.parse(C.url);return[C.method||"/",D.path,D.query,a(C.headers),u(C.headers),n(C.body)].join("\n")}(C);W=W||function(C){var H=(t.parse(C.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===H[1]&&(H=H.reverse()),{service:C.service||H[0],region:C.region||H[1]}}(C);var _=function(C,D,W){return[C,D,W,"aws4_request"].join("/")}(L,W.region,W.service),l=function(C,D,W,Q){return[C,W,Q,n(D)].join("\n")}(g,c,H,_),T=function(C,D,W){void 0===C&&(C="");var H=r("AWS4"+C,D),L=r(H,W.region),g=r(L,W.service);return r(g,"aws4_request")}(D.secret_key,L,W),B=function(C,D){return r(C,D,"hex")}(T,l),U=function(C,D,W,Q,H){return void 0===D&&(D=""),[C+" Credential="+D+"/"+W,"SignedHeaders="+Q,"Signature="+H].join(", ")}(g,D.access_key,_,u(C.headers),B);return C.headers.Authorization=U,C},P=function(){function C(){}return C.sign=M,C}();k.Signer=P,k.default=P},47420:function(ce,k,p){"use strict";var t=this&&this.__rest||function(e,i){var s={};for(var h in e)Object.prototype.hasOwnProperty.call(e,h)&&i.indexOf(h)<0&&(s[h]=e[h]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(h=Object.getOwnPropertySymbols(e);y<h.length;y++)i.indexOf(h[y])<0&&Object.prototype.propertyIsEnumerable.call(e,h[y])&&(s[h[y]]=e[h[y]])}return s};Object.defineProperty(k,"__esModule",{value:!0});var w=p(30860);k.CONTROL_EVENTS_KEY=w.CONTROL_EVENTS_KEY;var d=p(79418),r=p(27226),n=p(54556),a=p(14657);k.createSubscriptionHandshakeLink=function u(e,i){var s,h;return"string"==typeof e?(s=i||d.createHttpLink({uri:e}),h=d.ApolloLink.from([new n.NonTerminatingLink("controlMessages",{link:new d.ApolloLink(function(m,I){return new d.Observable(function(M){var P,C=m.variables,D=w.CONTROL_EVENTS_KEY,W=C[D],Q=t(C,["symbol"==typeof D?D:D+""]);return typeof W<"u"&&(m.variables=Q),M.next(((P={})[w.CONTROL_EVENTS_KEY]=W,P)),function(){}})})}),new n.NonTerminatingLink("subsInfo",{link:s}),new w.SubscriptionHandshakeLink("subsInfo")])):(s=i||d.createHttpLink({uri:e.url}),h=new a.AppSyncRealTimeSubscriptionHandshakeLink(e)),d.ApolloLink.split(function(m){var M=r.getMainDefinition(m.query);return"OperationDefinition"===M.kind&&"subscription"===M.operation},h,s)}},54556:function(ce,k,p){"use strict";var e,t=this&&this.__extends||(e=function(i,s){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var m in y)y.hasOwnProperty(m)&&(h[m]=y[m])})(i,s)},function(i,s){function h(){this.constructor=i}e(i,s),i.prototype=null===s?Object.create(s):(h.prototype=s.prototype,new h)}),w=this&&this.__assign||function(){return w=Object.assign||function(e){for(var i,s=1,h=arguments.length;s<h;s++)for(var y in i=arguments[s])Object.prototype.hasOwnProperty.call(i,y)&&(e[y]=i[y]);return e},w.apply(this,arguments)},d=this&&this.__awaiter||function(e,i,s,h){return new(s||(s=Promise))(function(m,I){function M(D){try{C(h.next(D))}catch(W){I(W)}}function P(D){try{C(h.throw(D))}catch(W){I(W)}}function C(D){D.done?m(D.value):function y(m){return m instanceof s?m:new s(function(I){I(m)})}(D.value).then(M,P)}C((h=h.apply(e,i||[])).next())})},r=this&&this.__generator||function(e,i){var h,y,m,I,s={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return I={next:M(0),throw:M(1),return:M(2)},"function"==typeof Symbol&&(I[Symbol.iterator]=function(){return this}),I;function M(C){return function(D){return function P(C){if(h)throw new TypeError("Generator is already executing.");for(;s;)try{if(h=1,y&&(m=2&C[0]?y.return:C[0]?y.throw||((m=y.return)&&m.call(y),0):y.next)&&!(m=m.call(y,C[1])).done)return m;switch(y=0,m&&(C=[2&C[0],m.value]),C[0]){case 0:case 1:m=C;break;case 4:return s.label++,{value:C[1],done:!1};case 5:s.label++,y=C[1],C=[0];continue;case 7:C=s.ops.pop(),s.trys.pop();continue;default:if(!(m=(m=s.trys).length>0&&m[m.length-1])&&(6===C[0]||2===C[0])){s=0;continue}if(3===C[0]&&(!m||C[1]>m[0]&&C[1]<m[3])){s.label=C[1];break}if(6===C[0]&&s.label<m[1]){s.label=m[1],m=C;break}if(m&&s.label<m[2]){s.label=m[2],s.ops.push(C);break}m[2]&&s.ops.pop(),s.trys.pop();continue}C=i.call(e,s)}catch(D){C=[6,D],y=0}finally{h=m=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([C,D])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=p(79418),a=p(40801),u=function(e){function i(s,h){var y=h.link,m=e.call(this)||this;return m.contextKey=s,m.link=y,m}return t(i,e),i.prototype.request=function(s,h){var y=this;return a.setContext(function(m,I){return d(y,void 0,void 0,function(){var M,P,C=this;return r(this,function(D){switch(D.label){case 0:return[4,new Promise(function(W,Q){C.link.request(s).subscribe({next:W,error:Q})})];case 1:return M=D.sent(),[2,w(w({},I),(P={},P[this.contextKey]=M,P))]}})})}).request(s,h)},i}(n.ApolloLink);k.NonTerminatingLink=u},14657:function(ce,k,p){"use strict";var H,t=this&&this.__extends||(H=function(L,g){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,c){R.__proto__=c}||function(R,c){for(var _ in c)c.hasOwnProperty(_)&&(R[_]=c[_])})(L,g)},function(L,g){function R(){this.constructor=L}H(L,g),L.prototype=null===g?Object.create(g):(R.prototype=g.prototype,new R)}),w=this&&this.__assign||function(){return w=Object.assign||function(H){for(var L,g=1,R=arguments.length;g<R;g++)for(var c in L=arguments[g])Object.prototype.hasOwnProperty.call(L,c)&&(H[c]=L[c]);return H},w.apply(this,arguments)},d=this&&this.__awaiter||function(H,L,g,R){return new(g||(g=Promise))(function(_,l){function T(z){try{U(R.next(z))}catch(ae){l(ae)}}function B(z){try{U(R.throw(z))}catch(ae){l(ae)}}function U(z){z.done?_(z.value):function c(_){return _ instanceof g?_:new g(function(l){l(_)})}(z.value).then(T,B)}U((R=R.apply(H,L||[])).next())})},r=this&&this.__generator||function(H,L){var R,c,_,l,g={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return l={next:T(0),throw:T(1),return:T(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function T(U){return function(z){return function B(U){if(R)throw new TypeError("Generator is already executing.");for(;g;)try{if(R=1,c&&(_=2&U[0]?c.return:U[0]?c.throw||((_=c.return)&&_.call(c),0):c.next)&&!(_=_.call(c,U[1])).done)return _;switch(c=0,_&&(U=[2&U[0],_.value]),U[0]){case 0:case 1:_=U;break;case 4:return g.label++,{value:U[1],done:!1};case 5:g.label++,c=U[1],U=[0];continue;case 7:U=g.ops.pop(),g.trys.pop();continue;default:if(!(_=(_=g.trys).length>0&&_[_.length-1])&&(6===U[0]||2===U[0])){g=0;continue}if(3===U[0]&&(!_||U[1]>_[0]&&U[1]<_[3])){g.label=U[1];break}if(6===U[0]&&g.label<_[1]){g.label=_[1],_=U;break}if(_&&g.label<_[2]){g.label=_[2],g.ops.push(U);break}_[2]&&g.ops.pop(),g.trys.pop();continue}U=L.call(H,g)}catch(z){U=[6,z],c=0}finally{R=_=0}if(5&U[0])throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}([U,z])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=p(79418),a=p(59001),u=p(44284),e=p(99038),i=p(87317),s=p(76392),h=p(60989),y=p(77100),m=a.rootLogger.extend("subscriptions");k.CONTROL_EVENTS_KEY="@@controlEvents";var I=[400,401,403],P={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},W=3e5,Q=function(H){function L(g){var R=g.url,c=g.region,_=g.auth,l=H.call(this)||this;return l.socketStatus=h.SOCKET_STATUS.CLOSED,l.keepAliveTimeout=W,l.subscriptionObserverMap=new Map,l.promiseArray=[],l.url=R,l.region=c,l.auth=_,l}return t(L,H),L.prototype.request=function(g){var R,c=this,_=g.query,l=g.variables,T=g.getContext(),B=T.controlMessages,U=k.CONTROL_EVENTS_KEY,z=(void 0===B?(R={},R[k.CONTROL_EVENTS_KEY]=void 0,R):B)[U],ae=T.headers;return new n.Observable(function(pe){if(c.url){var X=s.v4(),he={appSyncGraphqlEndpoint:c.url,authenticationType:c.auth.type,query:e.print(_),region:c.region,graphql_headers:function(){return ae},variables:l,apiKey:c.auth.type===u.AUTH_TYPE.API_KEY?c.auth.apiKey:"",credentials:c.auth.type===u.AUTH_TYPE.AWS_IAM?c.auth.credentials:null,jwtToken:c.auth.type===u.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||c.auth.type===u.AUTH_TYPE.OPENID_CONNECT?c.auth.jwtToken:null};return c._startSubscriptionWithAWSAppSyncRealTime({options:he,observer:pe,subscriptionId:X}),function(){return d(c,void 0,void 0,function(){return r(this,function(K){try{if(this._verifySubscriptionAlreadyStarted(X),this.subscriptionObserverMap.get(X).subscriptionState!==h.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(X)}catch{return this._removeSubscriptionObserver(X),[2]}return[2]})})}}pe.error({errors:[w({},new e.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),pe.complete()}).filter(function(pe){var X=pe.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===z||!(typeof(void 0===he?void 0:he)<"u")})},L.prototype._verifySubscriptionAlreadyStarted=function(g){return d(this,void 0,void 0,function(){var c=this;return r(this,function(_){return this.subscriptionObserverMap.get(g).subscriptionState===h.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(l,T){var B=c.subscriptionObserverMap.get(g);c.subscriptionObserverMap.set(g,{observer:B.observer,subscriptionState:B.subscriptionState,variables:B.variables,query:B.query,subscriptionReadyCallback:l,subscriptionFailedCallback:T})})]:[2]})})},L.prototype._sendUnsubscriptionMessage=function(g){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===h.SOCKET_STATUS.READY){var c=JSON.stringify({id:g,type:h.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(c),this._removeSubscriptionObserver(g)}}catch(_){m({err:_})}},L.prototype._removeSubscriptionObserver=function(g){this.subscriptionObserverMap.delete(g),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},L.prototype._closeSocketWhenFlushed=function(){m("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=h.SOCKET_STATUS.CLOSED):this.socketStatus=h.SOCKET_STATUS.CLOSED},L.prototype._startSubscriptionWithAWSAppSyncRealTime=function(g){var R=g.options,c=g.observer,_=g.subscriptionId;return d(this,void 0,void 0,function(){var l,T,B,U,z,ae,pe,X,he,oe,K,Y,ne,$,A,b,x,N,q,ee,_e,me,Me,ie=this;return r(this,function(V){switch(V.label){case 0:return l=R.appSyncGraphqlEndpoint,T=R.authenticationType,z=R.apiKey,ae=R.region,X=void 0===(pe=R.graphql_headers)?function(){return{}}:pe,he=R.credentials,oe=R.jwtToken,Y={query:B=R.query,variables:U=R.variables},this.subscriptionObserverMap.set(_,{observer:c,query:B,variables:U,subscriptionState:K=h.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),ne=JSON.stringify(Y),A=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:z,appSyncGraphqlEndpoint:l,authenticationType:T,payload:ne,canonicalUri:"",region:ae,credentials:he,jwtToken:oe})];case 1:return b=[w.apply(void 0,A.concat([V.sent()]))],[4,X()];case 2:$=w.apply(void 0,[w.apply(void 0,b.concat([V.sent()])),(Me={},Me[u.USER_AGENT_HEADER]=u.USER_AGENT,Me)]),x={id:_,payload:{data:ne,extensions:{authorization:w({},$)}},type:h.MESSAGE_TYPES.GQL_START},N=JSON.stringify(x),V.label=3;case 3:return V.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:z,appSyncGraphqlEndpoint:l,authenticationType:T,region:ae,credentials:he,jwtToken:oe})];case 4:return V.sent(),[3,6];case 5:return q=V.sent(),c.error({errors:[w({},new e.GraphQLError("Connection failed: "+(void 0===(ee=q.message)?"":ee)))]}),c.complete(),"function"==typeof(_e=(this.subscriptionObserverMap.get(_)||{}).subscriptionFailedCallback)&&_e(),[2];case 6:return me=this.subscriptionObserverMap.get(_),this.subscriptionObserverMap.set(_,{observer:c,subscriptionState:K,variables:U,query:B,subscriptionReadyCallback:me.subscriptionReadyCallback,subscriptionFailedCallback:me.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){ie._timeoutStartSubscriptionAck.call(ie,_)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(N),[2]}})})},L.prototype._initializeWebSocketConnection=function(g){var R=this,c=g.appSyncGraphqlEndpoint,_=g.authenticationType,l=g.apiKey,T=g.region,B=g.credentials,U=g.jwtToken;if(this.socketStatus!==h.SOCKET_STATUS.READY)return new Promise(function(z,ae){return d(R,void 0,void 0,function(){var pe,X,he,oe,K,Y,ne,A;return r(this,function(b){switch(b.label){case 0:if(this.promiseArray.push({res:z,rej:ae}),this.socketStatus!==h.SOCKET_STATUS.CLOSED)return[3,5];b.label=1;case 1:return b.trys.push([1,4,,5]),this.socketStatus=h.SOCKET_STATUS.CONNECTING,pe=L._discoverAppSyncRealTimeEndpoint(this.url),X="{}",K=(oe=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:_,payload:X,canonicalUri:"/connect",apiKey:l,appSyncGraphqlEndpoint:c,region:T,credentials:B,jwtToken:U})];case 2:return he=K.apply(oe,[b.sent()]),Y=Buffer.from(he).toString("base64"),ne=Buffer.from(X).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:pe+"?header="+Y+"&payload="+ne})];case 3:return b.sent(),this.promiseArray.forEach(function(x){var N=x.res;m("Notifying connection successful"),N()}),this.socketStatus=h.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return A=b.sent(),this.promiseArray.forEach(function(x){return(0,x.rej)(A)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=h.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},L.prototype._awsRealTimeHeaderBasedAuth=function(g){var R=g.authenticationType,c=g.payload,_=g.canonicalUri,l=g.appSyncGraphqlEndpoint,T=g.apiKey,B=g.region,U=g.credentials,z=g.jwtToken;return d(this,void 0,void 0,function(){var ae,pe,X;return r(this,function(oe){switch(oe.label){case 0:return ae={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeOPENIDHeader.bind(this)},"function"!=typeof(pe=ae[R])?(m("Authentication type "+R+" not supported"),[2,{}]):(X=i.parse(l).host,[4,pe({payload:c,canonicalUri:_,appSyncGraphqlEndpoint:l,apiKey:T,region:B,host:X,credentials:U,jwtToken:z})]);case 1:return[2,oe.sent()]}})})},L.prototype._awsRealTimeOPENIDHeader=function(g){var R=g.host,c=g.jwtToken;return d(this,void 0,void 0,function(){var _,l;return r(this,function(T){switch(T.label){case 0:return _={},"function"!=typeof c?[3,2]:[4,c.call(void 0)];case 1:return l=T.sent(),[3,4];case 2:return[4,c];case 3:l=T.sent(),T.label=4;case 4:return[2,(_.Authorization=l,_.host=R,_)]}})})},L.prototype._awsRealTimeApiKeyHeader=function(g){var R=g.apiKey,c=g.host;return d(this,void 0,void 0,function(){var l;return r(this,function(T){return l=(new Date).toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:c,"x-amz-date":l,"x-api-key":R}]})})},L.prototype._awsRealTimeIAMHeader=function(g){var R=g.payload,c=g.canonicalUri,_=g.appSyncGraphqlEndpoint,l=g.region,T=g.credentials;return d(this,void 0,void 0,function(){var B,U,z,he,oe;return r(this,function(Y){switch(Y.label){case 0:return B={region:l,service:"appsync"},(U="function"==typeof T?T.call():T||{})&&"function"==typeof U.getPromise?[4,U.getPromise()]:[3,2];case 1:Y.sent(),Y.label=2;case 2:if(!U)throw new Error("No credentials");return[4,U];case 3:return z=Y.sent(),he={access_key:z.accessKeyId,secret_key:z.secretAccessKey,session_token:z.sessionToken},oe={url:""+_+c,body:R,method:"POST",headers:w({},P)},[2,u.Signer.sign(oe,he,B).headers]}})})},L.prototype._initializeRetryableHandshake=function(g){var R=g.awsRealTimeUrl;return d(this,void 0,void 0,function(){return r(this,function(c){switch(c.label){case 0:return m("Initializaling retryable Handshake"),[4,y.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:R}])];case 1:return c.sent(),[2]}})})},L.prototype._initializeHandshake=function(g){var R=g.awsRealTimeUrl;return d(this,void 0,void 0,function(){var c,_,T=this;return r(this,function(B){switch(B.label){case 0:m("Initializing handshake "+R),B.label=1;case 1:return B.trys.push([1,4,,5]),[4,new Promise(function(U,z){var ae=L.createWebSocket(R,"graphql-ws");ae.onerror=function(){m("WebSocket connection error")},ae.onclose=function(){z(new Error("Connection handshake error"))},ae.onopen=function(){return T.awsRealTimeSocket=ae,U()}})];case 2:return B.sent(),[4,new Promise(function(U,z){var ae=!1;T.awsRealTimeSocket.onerror=function(he){m("WebSocket closed "+JSON.stringify(he))},T.awsRealTimeSocket.onclose=function(he){m("WebSocket closed "+he.reason),z(new Error(JSON.stringify(he)))},T.awsRealTimeSocket.onmessage=function(he){m("subscription message from AWS AppSyncRealTime: "+he.data+" ");var oe=JSON.parse(he.data),K=oe.type,Y=oe.payload,ne=(void 0===Y?{}:Y).connectionTimeoutMs;if(K===h.MESSAGE_TYPES.GQL_CONNECTION_ACK)return ae=!0,T.keepAliveTimeout=void 0===ne?W:ne,T.awsRealTimeSocket.onmessage=T._handleIncomingSubscriptionMessage.bind(T),T.awsRealTimeSocket.onerror=function(me){m(me),T._errorDisconnect(h.CONTROL_MSG.CONNECTION_CLOSED)},T.awsRealTimeSocket.onclose=function(me){m("WebSocket closed "+me.reason),T._errorDisconnect(h.CONTROL_MSG.CONNECTION_CLOSED)},void U("Cool, connected to AWS AppSyncRealTime");if(K===h.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var A=oe.payload,b=(void 0===A?{}:A).errors,x=(void 0===b?[]:b)[0],N=void 0===x?{}:x,q=N.errorType,ue=N.errorCode;z({errorType:void 0===q?"":q,errorCode:void 0===ue?0:ue})}},T.awsRealTimeSocket.send(JSON.stringify({type:h.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function X(){ae||z(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(T),15e3)})];case 3:return B.sent(),[3,5];case 4:throw c=B.sent(),_=c.errorType,I.indexOf(c.errorCode)>=0?new y.NonRetryableError(_):_?new Error(_):c;case 5:return[2]}})})},L.prototype._handleIncomingSubscriptionMessage=function(g){m("subscription message from AWS AppSync RealTime: "+g.data);var R=JSON.parse(g.data),c=R.id,_=void 0===c?"":c,l=R.payload,T=R.type,B=this.subscriptionObserverMap.get(_)||{},U=B.observer,z=void 0===U?null:U,ae=B.query,pe=void 0===ae?"":ae,X=B.variables,he=void 0===X?{}:X,oe=B.startAckTimeoutId,K=void 0===oe?0:oe,Y=B.subscriptionReadyCallback,ne=void 0===Y?null:Y,$=B.subscriptionFailedCallback,A=void 0===$?null:$;if(m({id:_,observer:z,query:pe,variables:he}),T===h.MESSAGE_TYPES.GQL_DATA&&l&&l.data)z?z.next(l):m("observer not found for id: "+_);else{if(T===h.MESSAGE_TYPES.GQL_START_ACK)return m("subscription ready for "+JSON.stringify({query:pe,variables:he})),"function"==typeof ne&&ne(),clearTimeout(K),z?z.next({data:l,extensions:{controlMsgType:"CONNECTED"}}):m("observer not found for id: "+_),void this.subscriptionObserverMap.set(_,{observer:z,query:pe,variables:he,startAckTimeoutId:null,subscriptionState:h.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:ne,subscriptionFailedCallback:A});if(T===h.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,h.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));T===h.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(_,{observer:z,query:pe,variables:he,startAckTimeoutId:K,subscriptionReadyCallback:ne,subscriptionFailedCallback:A,subscriptionState:h.SUBSCRIPTION_STATUS.FAILED}),z.error({errors:[w({},new e.GraphQLError("Connection failed: "+JSON.stringify(l)))]}),clearTimeout(K),z.complete(),"function"==typeof A&&A())}},L.prototype._errorDisconnect=function(g){m("Disconnect error: "+g),this.subscriptionObserverMap.forEach(function(R){var c=R.observer;c&&!c.closed&&c.error({errors:[w({},new e.GraphQLError(g))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=h.SOCKET_STATUS.CLOSED},L.prototype._timeoutStartSubscriptionAck=function(g){var R=this.subscriptionObserverMap.get(g)||{},c=R.observer,_=R.query,l=R.variables;c&&(this.subscriptionObserverMap.set(g,{observer:c,query:_,variables:l,subscriptionState:h.SUBSCRIPTION_STATUS.FAILED}),c&&!c.closed&&(c.error({errors:[w({},new e.GraphQLError("Subscription timeout "+JSON.stringify({query:_,variables:l})))]}),c.complete()),m("timeoutStartSubscription",JSON.stringify({query:_,variables:l})))},L.createWebSocket=function(g,R){return new WebSocket(g,R)},L._discoverAppSyncRealTimeEndpoint=function(g){return g.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},L}(n.ApolloLink);k.AppSyncRealTimeSubscriptionHandshakeLink=Q},30860:function(ce,k,p){"use strict";var m,t=this&&this.__extends||(m=function(I,M){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,C){P.__proto__=C}||function(P,C){for(var D in C)C.hasOwnProperty(D)&&(P[D]=C[D])})(I,M)},function(I,M){function P(){this.constructor=I}m(I,M),I.prototype=null===M?Object.create(M):(P.prototype=M.prototype,new P)}),w=this&&this.__assign||function(){return w=Object.assign||function(m){for(var I,M=1,P=arguments.length;M<P;M++)for(var C in I=arguments[M])Object.prototype.hasOwnProperty.call(I,C)&&(m[C]=I[C]);return m},w.apply(this,arguments)},d=this&&this.__awaiter||function(m,I,M,P){return new(M||(M=Promise))(function(D,W){function Q(g){try{L(P.next(g))}catch(R){W(R)}}function H(g){try{L(P.throw(g))}catch(R){W(R)}}function L(g){g.done?D(g.value):function C(D){return D instanceof M?D:new M(function(W){W(D)})}(g.value).then(Q,H)}L((P=P.apply(m,I||[])).next())})},r=this&&this.__generator||function(m,I){var P,C,D,W,M={label:0,sent:function(){if(1&D[0])throw D[1];return D[1]},trys:[],ops:[]};return W={next:Q(0),throw:Q(1),return:Q(2)},"function"==typeof Symbol&&(W[Symbol.iterator]=function(){return this}),W;function Q(L){return function(g){return function H(L){if(P)throw new TypeError("Generator is already executing.");for(;M;)try{if(P=1,C&&(D=2&L[0]?C.return:L[0]?C.throw||((D=C.return)&&D.call(C),0):C.next)&&!(D=D.call(C,L[1])).done)return D;switch(C=0,D&&(L=[2&L[0],D.value]),L[0]){case 0:case 1:D=L;break;case 4:return M.label++,{value:L[1],done:!1};case 5:M.label++,C=L[1],L=[0];continue;case 7:L=M.ops.pop(),M.trys.pop();continue;default:if(!(D=(D=M.trys).length>0&&D[D.length-1])&&(6===L[0]||2===L[0])){M=0;continue}if(3===L[0]&&(!D||L[1]>D[0]&&L[1]<D[3])){M.label=L[1];break}if(6===L[0]&&M.label<D[1]){M.label=D[1],D=L;break}if(D&&M.label<D[2]){M.label=D[2],M.ops.push(L);break}D[2]&&M.ops.pop(),M.trys.pop();continue}L=I.call(m,M)}catch(g){L=[6,g],C=0}finally{P=D=0}if(5&L[0])throw L[1];return{value:L[0]?L[1]:void 0,done:!0}}([L,g])}}},n=this&&this.__rest||function(m,I){var M={};for(var P in m)Object.prototype.hasOwnProperty.call(m,P)&&I.indexOf(P)<0&&(M[P]=m[P]);if(null!=m&&"function"==typeof Object.getOwnPropertySymbols){var C=0;for(P=Object.getOwnPropertySymbols(m);C<P.length;C++)I.indexOf(P[C])<0&&Object.prototype.propertyIsEnumerable.call(m,P[C])&&(M[P[C]]=m[P[C]])}return M};Object.defineProperty(k,"__esModule",{value:!0});var a=p(79418),u=p(59001),e=p(43075),i=p(27226),s=u.rootLogger.extend("subscriptions"),h=s.extend("mqtt");k.CONTROL_EVENTS_KEY="@@controlEvents";var y=function(m){function I(M){var P=m.call(this)||this;return P.topicObservers=new Map,P.clientObservers=new Map,P.onMessage=function(C,D,W){var Q=JSON.parse(D),H=P.topicObservers.get(C),L=W.reduce(function(g,R){return g[R]=g[R]||null,g},Q.data||{});s("Message received",{data:L,topic:C,observers:H}),H.forEach(function(g){try{g.next(w(w({},Q),{data:L}))}catch(R){s(R)}})},P.subsInfoContextKey=M,P}return t(I,m),I.prototype.request=function(M){var P,C=this,D=M.getContext(),Q=D[this.subsInfoContextKey],H=D.controlMessages,L=k.CONTROL_EVENTS_KEY,g=(void 0===H?(P={},P[k.CONTROL_EVENTS_KEY]=void 0,P):H)[L],R=Q.extensions,c=(void 0===R?{subscription:{newSubscriptions:{},mqttConnections:[]}}:R).subscription,_=c.newSubscriptions,l=c.mqttConnections,T=Q.errors,B=void 0===T?[]:T;if(B&&B.length)return new a.Observable(function(pe){return pe.error(new a.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:B},graphQLErrors:B})),function(){}});var U=Object.keys(_).map(function(pe){return _[pe].topic}),z=new Set(U.filter(function(pe){return C.topicObservers.has(pe)})),ae=new Set(U.filter(function(pe){return!z.has(pe)}));return new a.Observable(function(pe){z.forEach(function(he){C.topicObservers.get(he).add(pe);var oe=Array.from(C.topicObservers.get(he)).find(function(){return!0}),K=Array.from(C.clientObservers).find(function(Y){return Y[1].observers.has(oe)})[0];C.clientObservers.get(K).observers.add(pe)});var X=l.filter(function(he){return he.topics.some(function(oe){return ae.has(oe)})}).map(function(he){var oe=he.topics,K=n(he,["topics"]);return w(w({},K),{topics:oe.filter(function(Y){return ae.has(Y)})})});return C.connectNewClients(X,pe,M),function(){Array.from(C.clientObservers).filter(function(oe){return oe[1].observers.has(pe)}).forEach(function(oe){return C.clientObservers.get(oe[0]).observers.delete(pe)}),C.clientObservers.forEach(function(oe){var Y=oe.client;0===oe.observers.size&&(Y.isConnected()&&Y.disconnect(),C.clientObservers.delete(Y.clientId))}),C.clientObservers=new Map(Array.from(C.clientObservers).filter(function(oe){return oe[1].observers.size>0})),C.topicObservers.forEach(function(oe){return oe.delete(pe)}),C.topicObservers=new Map(Array.from(C.topicObservers).filter(function(oe){return oe[1].size>0}))}}).filter(function(pe){var X=pe.extensions,he=(void 0===X?{}:X).controlMsgType;return!0===g||!(typeof(void 0===he?void 0:he)<"u")})},I.prototype.connectNewClients=function(M,P,C){return d(this,void 0,void 0,function(){var W,Q,H,L=this;return r(this,function(g){return W=i.getMainDefinition(C.query).selectionSet.selections.map(function(R){return R.name.value}),Q=Promise.all(M.map(function(R){return L.connectNewClient(R,P,W)})),H=W.reduce(function(R,c){return R[c]=R[c]||null,R},{}),P.next({data:H,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:M}}}),[2,Q]})})},I.prototype.connectNewClient=function(M,P,C){return d(this,void 0,void 0,function(){var D,W,Q,H,L=this;return r(this,function(g){switch(g.label){case 0:return Q=M.topics,(H=new e.Client(W=M.url,D=M.client)).trace=h.bind(null,D),H.onConnectionLost=function(R){var c=R.errorCode,_=n(R,["errorCode"]);0!==c&&Q.forEach(function(l){L.topicObservers.has(l)&&L.topicObservers.get(l).forEach(function(T){return T.error(w(w({},_),{permanent:!0}))})}),Q.forEach(function(l){return L.topicObservers.delete(l)})},H.onMessageArrived=function(R){return L.onMessage(R.destinationName,R.payloadString,C)},[4,new Promise(function(R,c){H.connect({useSSL:0===W.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return R(H)},onFailure:c})})];case 1:return g.sent(),[4,this.subscribeToTopics(H,Q,P)];case 2:return g.sent(),[2,H]}})})},I.prototype.subscribeToTopics=function(M,P,C){var D=this;return Promise.all(P.map(function(W){return D.subscribeToTopic(M,W,C)}))},I.prototype.subscribeToTopic=function(M,P,C){var D=this;return new Promise(function(W,Q){M.subscribe(P,{onSuccess:function(){D.topicObservers.has(P)||D.topicObservers.set(P,new Set),D.clientObservers.has(M.clientId)||D.clientObservers.set(M.clientId,{client:M,observers:new Set}),D.topicObservers.get(P).add(C),D.clientObservers.get(M.clientId).observers.add(C),W(P)},onFailure:Q})})},I}(a.ApolloLink);k.SubscriptionHandshakeLink=y},60989:(ce,k)=>{"use strict";var r;Object.defineProperty(k,"__esModule",{value:!0}),(r=k.SUBSCRIPTION_STATUS||(k.SUBSCRIPTION_STATUS={}))[r.PENDING=0]="PENDING",r[r.CONNECTED=1]="CONNECTED",r[r.FAILED=2]="FAILED",function(r){r[r.CLOSED=0]="CLOSED",r[r.READY=1]="READY",r[r.CONNECTING=2]="CONNECTING"}(k.SOCKET_STATUS||(k.SOCKET_STATUS={})),function(r){r.GQL_CONNECTION_INIT="connection_init",r.GQL_CONNECTION_ERROR="connection_error",r.GQL_CONNECTION_ACK="connection_ack",r.GQL_START="start",r.GQL_START_ACK="start_ack",r.GQL_DATA="data",r.GQL_CONNECTION_KEEP_ALIVE="ka",r.GQL_STOP="stop",r.GQL_COMPLETE="complete",r.GQL_ERROR="error"}(k.MESSAGE_TYPES||(k.MESSAGE_TYPES={})),function(r){r.CONNECTION_CLOSED="Connection closed",r.TIMEOUT_DISCONNECT="Timeout disconnect",r.SUBSCRIPTION_ACK="Subscription ack"}(k.CONTROL_MSG||(k.CONTROL_MSG={}))},59001:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var t=p(89580);k.rootLogger=t.default},89580:function(ce,k,p){"use strict";var t=this&&this.__spreadArrays||function(){for(var n=0,a=0,u=arguments.length;a<u;a++)n+=arguments[a].length;var e=Array(n),i=0;for(a=0;a<u;a++)for(var s=arguments[a],h=0,y=s.length;h<y;h++,i++)e[i]=s[h];return e};Object.defineProperty(k,"__esModule",{value:!0});var w=p(65881),d=w.default("aws-appsync"),r=function(n){void 0===n&&(n="");var a=n?t(this.namespace.split(":"),[n]).join(":"):this.namespace,u=w.default(a);return u.extend=r.bind(u),u};d.extend=r.bind(d),k.default=d},77100:function(ce,k,p){"use strict";var h,t=this&&this.__extends||(h=function(y,m){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,M){I.__proto__=M}||function(I,M){for(var P in M)M.hasOwnProperty(P)&&(I[P]=M[P])})(y,m)},function(y,m){function I(){this.constructor=y}h(y,m),y.prototype=null===m?Object.create(m):(I.prototype=m.prototype,new I)}),w=this&&this.__awaiter||function(h,y,m,I){return new(m||(m=Promise))(function(P,C){function D(H){try{Q(I.next(H))}catch(L){C(L)}}function W(H){try{Q(I.throw(H))}catch(L){C(L)}}function Q(H){H.done?P(H.value):function M(P){return P instanceof m?P:new m(function(C){C(P)})}(H.value).then(D,W)}Q((I=I.apply(h,y||[])).next())})},d=this&&this.__generator||function(h,y){var I,M,P,C,m={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return C={next:D(0),throw:D(1),return:D(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function D(Q){return function(H){return function W(Q){if(I)throw new TypeError("Generator is already executing.");for(;m;)try{if(I=1,M&&(P=2&Q[0]?M.return:Q[0]?M.throw||((P=M.return)&&P.call(M),0):M.next)&&!(P=P.call(M,Q[1])).done)return P;switch(M=0,P&&(Q=[2&Q[0],P.value]),Q[0]){case 0:case 1:P=Q;break;case 4:return m.label++,{value:Q[1],done:!1};case 5:m.label++,M=Q[1],Q=[0];continue;case 7:Q=m.ops.pop(),m.trys.pop();continue;default:if(!(P=(P=m.trys).length>0&&P[P.length-1])&&(6===Q[0]||2===Q[0])){m=0;continue}if(3===Q[0]&&(!P||Q[1]>P[0]&&Q[1]<P[3])){m.label=Q[1];break}if(6===Q[0]&&m.label<P[1]){m.label=P[1],P=Q;break}if(P&&m.label<P[2]){m.label=P[2],m.ops.push(Q);break}P[2]&&m.ops.pop(),m.trys.pop();continue}Q=y.call(h,m)}catch(H){Q=[6,H],M=0}finally{I=P=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([Q,H])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=p(59001).rootLogger.extend("retry"),u=function(h){function y(m){var I=h.call(this,m)||this;return I.nonRetryable=!0,I}return t(y,h),y}(Error);k.NonRetryableError=u;var e=function(h){return h&&h.nonRetryable};function i(h,y,m,I){return void 0===I&&(I=1),w(this,void 0,void 0,function(){var M,P;return d(this,function(C){switch(C.label){case 0:n("Attempt #"+I+" for this vars: "+JSON.stringify(y)),C.label=1;case 1:return C.trys.push([1,3,,8]),[4,h.apply(void 0,y)];case 2:return C.sent(),[3,8];case 3:if(M=C.sent(),n("error "+M),e(M))throw n("non retryable error"),M;return P=m(I,y,M),n("retryIn ",P),!1===P?[3,6]:[4,new Promise(function(D){return setTimeout(D,P)})];case 4:return C.sent(),[4,i(h,y,m,I+1)];case 5:return[2,C.sent()];case 6:throw M;case 7:return[3,8];case 8:return[2]}})})}k.retry=i,k.jitteredExponentialRetry=function(h,y,m){return void 0===m&&(m=5e3),i(h,y,function s(h){return function(I){var M=100*Math.pow(2,I)+100*Math.random();return!(M>h)&&M}}(m))}},43075:function(ce){var p;ce.exports=(p=function(t){var _,d=t.localStorage||(_={},{setItem:function(l,T){_[l]=T},getItem:function(l){return _[l]},removeItem:function(l){delete _[l]}}),r={CONNECT:1,CONNACK:2,PUBLISH:3,PUBACK:4,PUBREC:5,PUBREL:6,PUBCOMP:7,SUBSCRIBE:8,SUBACK:9,UNSUBSCRIBE:10,UNSUBACK:11,PINGREQ:12,PINGRESP:13,DISCONNECT:14},n=function(_,l){for(var T in _)if(_.hasOwnProperty(T)){if(!l.hasOwnProperty(T)){var B="Unknown property, "+T+". Valid properties are:";for(var U in l)l.hasOwnProperty(U)&&(B=B+" "+U);throw new Error(B)}if(typeof _[T]!==l[T])throw new Error(i(u.INVALID_TYPE,[typeof _[T],T]))}},a=function(_,l){return function(){return _.apply(l,arguments)}},u={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}."}},e={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"},i=function(_,l){var T=_.text;if(l)for(var B,U,z=0;z<l.length;z++)if((U=T.indexOf(B="{"+z+"}"))>0){var ae=T.substring(0,U),pe=T.substring(U+B.length);T=ae+l[z]+pe}return T},s=[0,6,77,81,73,115,100,112,3],h=[0,4,77,81,84,84,4],y=function(_,l){for(var T in this.type=_,l)l.hasOwnProperty(T)&&(this[T]=l[T])};function m(_,l){var T=l,B=_[l],U=B>>4,z=B&=15;l+=1;var ae,pe=0,X=1;do{if(l==_.length)return[null,T];pe+=(127&(ae=_[l++]))*X,X*=128}while(128&ae);var he=l+pe;if(he>_.length)return[null,T];var oe=new y(U);switch(U){case r.CONNACK:1&_[l++]&&(oe.sessionPresent=!0),oe.returnCode=_[l++];break;case r.PUBLISH:var Y=z>>1&3,ne=P(_,l),$=Q(_,l+=2,ne);l+=ne,Y>0&&(oe.messageIdentifier=P(_,l),l+=2);var A=new p.Message(_.subarray(l,he));1==(1&z)&&(A.retained=!0),8==(8&z)&&(A.duplicate=!0),A.qos=Y,A.destinationName=$,oe.payloadMessage=A;break;case r.PUBACK:case r.PUBREC:case r.PUBREL:case r.PUBCOMP:case r.UNSUBACK:oe.messageIdentifier=P(_,l);break;case r.SUBACK:oe.messageIdentifier=P(_,l),oe.returnCode=_.subarray(l+=2,he)}return[oe,he]}function I(_,l,T){return l[T++]=_>>8,l[T++]=_%256,T}function M(_,l,T,B){return W(_,T,B=I(l,T,B)),B+l}function P(_,l){return 256*_[l]+_[l+1]}function D(_){for(var l=0,T=0;T<_.length;T++){var B=_.charCodeAt(T);B>2047?(55296<=B&&B<=56319&&(T++,l++),l+=3):B>127?l+=2:l++}return l}function W(_,l,T){for(var B=T,U=0;U<_.length;U++){var z=_.charCodeAt(U);if(55296<=z&&z<=56319){var ae=_.charCodeAt(++U);if(isNaN(ae))throw new Error(i(u.MALFORMED_UNICODE,[z,ae]));z=ae-56320+(z-55296<<10)+65536}z<=127?l[B++]=z:z<=2047?(l[B++]=z>>6&31|192,l[B++]=63&z|128):z<=65535?(l[B++]=z>>12&15|224,l[B++]=z>>6&63|128,l[B++]=63&z|128):(l[B++]=z>>18&7|240,l[B++]=z>>12&63|128,l[B++]=z>>6&63|128,l[B++]=63&z|128)}return l}function Q(_,l,T){for(var U,B="",z=l;z<l+T;){var ae=_[z++];if(ae<128)U=ae;else{var pe=_[z++]-128;if(pe<0)throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),""]));if(ae<224)U=64*(ae-192)+pe;else{var X=_[z++]-128;if(X<0)throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),X.toString(16)]));if(ae<240)U=4096*(ae-224)+64*pe+X;else{var he=_[z++]-128;if(he<0)throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),X.toString(16),he.toString(16)]));if(!(ae<248))throw new Error(i(u.MALFORMED_UTF,[ae.toString(16),pe.toString(16),X.toString(16),he.toString(16)]));U=262144*(ae-240)+4096*pe+64*X+he}}}U>65535&&(U-=65536,B+=String.fromCharCode(55296+(U>>10)),U=56320+(1023&U)),B+=String.fromCharCode(U)}return B}y.prototype.encode=function(){var U,_=(15&this.type)<<4,l=0,T=[],B=0;switch(void 0!==this.messageIdentifier&&(l+=2),this.type){case r.CONNECT:switch(this.mqttVersion){case 3:l+=s.length+3;break;case 4:l+=h.length+3}l+=D(this.clientId)+2,void 0!==this.willMessage&&(l+=D(this.willMessage.destinationName)+2,(U=this.willMessage.payloadBytes)instanceof Uint8Array||(U=new Uint8Array(ae)),l+=U.byteLength+2),void 0!==this.userName&&(l+=D(this.userName)+2),void 0!==this.password&&(l+=D(this.password)+2);break;case r.SUBSCRIBE:_|=2;for(var z=0;z<this.topics.length;z++)T[z]=D(this.topics[z]),l+=T[z]+2;l+=this.requestedQos.length;break;case r.UNSUBSCRIBE:for(_|=2,z=0;z<this.topics.length;z++)T[z]=D(this.topics[z]),l+=T[z]+2;break;case r.PUBREL:_|=2;break;case r.PUBLISH:this.payloadMessage.duplicate&&(_|=8),_=_|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(_|=1),l+=(B=D(this.payloadMessage.destinationName))+2;var ae=this.payloadMessage.payloadBytes;l+=ae.byteLength,ae instanceof ArrayBuffer?ae=new Uint8Array(ae):ae instanceof Uint8Array||(ae=new Uint8Array(ae.buffer))}var pe=function C(_){var l=new Array(1),T=0;do{var B=_%128;(_>>=7)>0&&(B|=128),l[T++]=B}while(_>0&&T<4);return l}(l),X=pe.length+1,he=new ArrayBuffer(l+X),oe=new Uint8Array(he);if(oe[0]=_,oe.set(pe,1),this.type==r.PUBLISH)X=M(this.payloadMessage.destinationName,B,oe,X);else if(this.type==r.CONNECT){switch(this.mqttVersion){case 3:oe.set(s,X),X+=s.length;break;case 4:oe.set(h,X),X+=h.length}var K=0;this.cleanSession&&(K=2),void 0!==this.willMessage&&(K|=4,K|=this.willMessage.qos<<3,this.willMessage.retained&&(K|=32)),void 0!==this.userName&&(K|=128),void 0!==this.password&&(K|=64),oe[X++]=K,X=I(this.keepAliveInterval,oe,X)}switch(void 0!==this.messageIdentifier&&(X=I(this.messageIdentifier,oe,X)),this.type){case r.CONNECT:X=M(this.clientId,D(this.clientId),oe,X),void 0!==this.willMessage&&(X=M(this.willMessage.destinationName,D(this.willMessage.destinationName),oe,X),X=I(U.byteLength,oe,X),oe.set(U,X),X+=U.byteLength),void 0!==this.userName&&(X=M(this.userName,D(this.userName),oe,X)),void 0!==this.password&&(X=M(this.password,D(this.password),oe,X));break;case r.PUBLISH:oe.set(ae,X);break;case r.SUBSCRIBE:for(z=0;z<this.topics.length;z++)X=M(this.topics[z],T[z],oe,X),oe[X++]=this.requestedQos[z];break;case r.UNSUBSCRIBE:for(z=0;z<this.topics.length;z++)X=M(this.topics[z],T[z],oe,X)}return he};var H=function(_,l){this._client=_,this._keepAliveInterval=1e3*l,this.isReset=!1;var T=new y(r.PINGREQ).encode(),B=function(z){return function(){return U.apply(z)}},U=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(T),this.timeout=setTimeout(B(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(u.PING_TIMEOUT.code,i(u.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(B(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},L=function(_,l,T,B){var z,ae,pe;l||(l=30),this.timeout=setTimeout((z=T,ae=_,pe=B,function(){return z.apply(ae,pe)}),1e3*l),this.cancel=function(){clearTimeout(this.timeout)}},g=function(_,l,T,B,U){if(!("WebSocket"in t)||null===t.WebSocket)throw new Error(i(u.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in t)||null===t.ArrayBuffer)throw new Error(i(u.UNSUPPORTED,["ArrayBuffer"]));for(var z in this._trace("Paho.Client",_,l,T,B,U),this.host=l,this.port=T,this.path=B,this.uri=_,this.clientId=U,this._wsuri=null,this._localKey=l+":"+T+("/mqtt"!=B?":"+B:"")+":"+U+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,d)(0===z.indexOf("Sent:"+this._localKey)||0===z.indexOf("Received:"+this._localKey))&&this.restore(z)};g.prototype.host=null,g.prototype.port=null,g.prototype.path=null,g.prototype.uri=null,g.prototype.clientId=null,g.prototype.socket=null,g.prototype.connected=!1,g.prototype.maxMessageIdentifier=65536,g.prototype.connectOptions=null,g.prototype.hostIndex=null,g.prototype.onConnected=null,g.prototype.onConnectionLost=null,g.prototype.onMessageDelivered=null,g.prototype.onMessageArrived=null,g.prototype.traceFunction=null,g.prototype._msg_queue=null,g.prototype._buffered_msg_queue=null,g.prototype._connectTimeout=null,g.prototype.sendPinger=null,g.prototype.receivePinger=null,g.prototype._reconnectInterval=1,g.prototype._reconnecting=!1,g.prototype._reconnectTimeout=null,g.prototype.disconnectedPublishing=!1,g.prototype.disconnectedBufferSize=5e3,g.prototype.receiveBuffer=null,g.prototype._traceBuffer=null,g.prototype._MAX_TRACE_ENTRIES=100,g.prototype.connect=function(_){var l=this._traceMask(_,"password");if(this._trace("Client.connect",l,this.socket,this.connected),this.connected)throw new Error(i(u.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(i(u.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=_,this._reconnectInterval=1,this._reconnecting=!1,_.uris?(this.hostIndex=0,this._doConnect(_.uris[0])):this._doConnect(this.uri)},g.prototype.subscribe=function(_,l){if(this._trace("Client.subscribe",_,l),!this.connected)throw new Error(i(u.INVALID_STATE,["not connected"]));var T=new y(r.SUBSCRIBE);T.topics=[_],T.requestedQos=void 0!==l.qos?[l.qos]:[0],l.onSuccess&&(T.onSuccess=function(B){l.onSuccess({invocationContext:l.invocationContext,grantedQos:B})}),l.onFailure&&(T.onFailure=function(B){l.onFailure({invocationContext:l.invocationContext,errorCode:B,errorMessage:i(B)})}),l.timeout&&(T.timeOut=new L(this,l.timeout,l.onFailure,[{invocationContext:l.invocationContext,errorCode:u.SUBSCRIBE_TIMEOUT.code,errorMessage:i(u.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(T),this._schedule_message(T)},g.prototype.unsubscribe=function(_,l){if(this._trace("Client.unsubscribe",_,l),!this.connected)throw new Error(i(u.INVALID_STATE,["not connected"]));var T=new y(r.UNSUBSCRIBE);T.topics=[_],l.onSuccess&&(T.callback=function(){l.onSuccess({invocationContext:l.invocationContext})}),l.timeout&&(T.timeOut=new L(this,l.timeout,l.onFailure,[{invocationContext:l.invocationContext,errorCode:u.UNSUBSCRIBE_TIMEOUT.code,errorMessage:i(u.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(T),this._schedule_message(T)},g.prototype.send=function(_){this._trace("Client.send",_);var l=new y(r.PUBLISH);if(l.payloadMessage=_,this.connected)_.qos>0?this._requires_ack(l):this.onMessageDelivered&&(this._notify_msg_sent[l]=this.onMessageDelivered(l.payloadMessage)),this._schedule_message(l);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(i(u.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(i(u.BUFFER_FULL,[this.disconnectedBufferSize]));_.qos>0?this._requires_ack(l):(l.sequence=++this._sequence,this._buffered_msg_queue.unshift(l))}},g.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(i(u.INVALID_STATE,["not connecting or connected"]));var _=new y(r.DISCONNECT);this._notify_msg_sent[_]=a(this._disconnected,this),this._schedule_message(_)},g.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var _ in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",_,this._sentMessages[_]);for(var _ in this._receivedMessages)this._trace("_receivedMessages ",_,this._receivedMessages[_]);return this._traceBuffer}},g.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},g.prototype.stopTrace=function(){delete this._traceBuffer},g.prototype._doConnect=function(_){if(this.connectOptions.useSSL){var l=_.split(":");l[0]="wss",_=l.join(":")}this._wsuri=_,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(_,["mqttv3.1"]):new WebSocket(_,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=a(this._on_socket_open,this),this.socket.onmessage=a(this._on_socket_message,this),this.socket.onerror=a(this._on_socket_error,this),this.socket.onclose=a(this._on_socket_close,this),this.sendPinger=new H(this,this.connectOptions.keepAliveInterval),this.receivePinger=new H(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new L(this,this.connectOptions.timeout,this._disconnected,[u.CONNECT_TIMEOUT.code,i(u.CONNECT_TIMEOUT)])},g.prototype._schedule_message=function(_){this._msg_queue.unshift(_),this.connected&&this._process_queue()},g.prototype.store=function(_,l){var T={type:l.type,messageIdentifier:l.messageIdentifier,version:1};if(l.type!==r.PUBLISH)throw Error(i(u.INVALID_STORED_DATA,[_+this._localKey+l.messageIdentifier,T]));l.pubRecReceived&&(T.pubRecReceived=!0),T.payloadMessage={};for(var B="",U=l.payloadMessage.payloadBytes,z=0;z<U.length;z++)U[z]<=15?B=B+"0"+U[z].toString(16):B+=U[z].toString(16);T.payloadMessage.payloadHex=B,T.payloadMessage.qos=l.payloadMessage.qos,T.payloadMessage.destinationName=l.payloadMessage.destinationName,l.payloadMessage.duplicate&&(T.payloadMessage.duplicate=!0),l.payloadMessage.retained&&(T.payloadMessage.retained=!0),0===_.indexOf("Sent:")&&(void 0===l.sequence&&(l.sequence=++this._sequence),T.sequence=l.sequence),d.setItem(_+this._localKey+l.messageIdentifier,JSON.stringify(T))},g.prototype.restore=function(_){var l=d.getItem(_),T=JSON.parse(l),B=new y(T.type,T);if(T.type!==r.PUBLISH)throw Error(i(u.INVALID_STORED_DATA,[_,l]));for(var U=T.payloadMessage.payloadHex,z=new ArrayBuffer(U.length/2),ae=new Uint8Array(z),pe=0;U.length>=2;){var X=parseInt(U.substring(0,2),16);U=U.substring(2,U.length),ae[pe++]=X}var he=new p.Message(ae);he.qos=T.payloadMessage.qos,he.destinationName=T.payloadMessage.destinationName,T.payloadMessage.duplicate&&(he.duplicate=!0),T.payloadMessage.retained&&(he.retained=!0),B.payloadMessage=he,0===_.indexOf("Sent:"+this._localKey)?(B.payloadMessage.duplicate=!0,this._sentMessages[B.messageIdentifier]=B):0===_.indexOf("Received:"+this._localKey)&&(this._receivedMessages[B.messageIdentifier]=B)},g.prototype._process_queue=function(){for(var _=null;_=this._msg_queue.pop();)this._socket_send(_),this._notify_msg_sent[_]&&(this._notify_msg_sent[_](),delete this._notify_msg_sent[_])},g.prototype._requires_ack=function(_){var l=Object.keys(this._sentMessages).length;if(l>this.maxMessageIdentifier)throw Error("Too many messages:"+l);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;_.messageIdentifier=this._message_identifier,this._sentMessages[_.messageIdentifier]=_,_.type===r.PUBLISH&&this.store("Sent:",_),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},g.prototype._on_socket_open=function(){var _=new y(r.CONNECT,this.connectOptions);_.clientId=this.clientId,this._socket_send(_)},g.prototype._on_socket_message=function(_){this._trace("Client._on_socket_message",_.data);for(var l=this._deframeMessages(_.data),T=0;T<l.length;T+=1)this._handleMessage(l[T])},g.prototype._deframeMessages=function(_){var l=new Uint8Array(_),T=[];if(this.receiveBuffer){var B=new Uint8Array(this.receiveBuffer.length+l.length);B.set(this.receiveBuffer),B.set(l,this.receiveBuffer.length),l=B,delete this.receiveBuffer}try{for(var U=0;U<l.length;){var z=m(l,U),ae=z[0];if(U=z[1],null===ae)break;T.push(ae)}U<l.length&&(this.receiveBuffer=l.subarray(U))}catch(X){var pe="undefined"==X.hasOwnProperty("stack")?X.stack.toString():"No Error Stack Available";return void this._disconnected(u.INTERNAL_ERROR.code,i(u.INTERNAL_ERROR,[X.message,pe]))}return T},g.prototype._handleMessage=function(_){this._trace("Client._handleMessage",_);try{switch(_.type){case r.CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var l in this._sentMessages)d.removeItem("Sent:"+this._localKey+(K=this._sentMessages[l]).messageIdentifier);for(var l in this._sentMessages={},this._receivedMessages)d.removeItem("Received:"+this._localKey+(he=this._receivedMessages[l]).messageIdentifier);this._receivedMessages={}}if(0!==_.returnCode){this._disconnected(u.CONNACK_RETURNCODE.code,i(u.CONNACK_RETURNCODE,[_.returnCode,e[_.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var U=[];for(var T in this._sentMessages)this._sentMessages.hasOwnProperty(T)&&U.push(this._sentMessages[T]);if(this._buffered_msg_queue.length>0)for(var B=null;B=this._buffered_msg_queue.pop();)U.push(B),this.onMessageDelivered&&(this._notify_msg_sent[B]=this.onMessageDelivered(B.payloadMessage));U=U.sort(function(ne,$){return ne.sequence-$.sequence});for(var z=0,ae=U.length;z<ae;z++)if((K=U[z]).type==r.PUBLISH&&K.pubRecReceived){var pe=new y(r.PUBREL,{messageIdentifier:K.messageIdentifier});this._schedule_message(pe)}else this._schedule_message(K);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var X=!1;this._reconnecting&&(X=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(X,this._wsuri),this._process_queue();break;case r.PUBLISH:this._receivePublish(_);break;case r.PUBACK:(K=this._sentMessages[_.messageIdentifier])&&(delete this._sentMessages[_.messageIdentifier],d.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(K.payloadMessage));break;case r.PUBREC:(K=this._sentMessages[_.messageIdentifier])&&(K.pubRecReceived=!0,pe=new y(r.PUBREL,{messageIdentifier:_.messageIdentifier}),this.store("Sent:",K),this._schedule_message(pe));break;case r.PUBREL:var he=this._receivedMessages[_.messageIdentifier];d.removeItem("Received:"+this._localKey+_.messageIdentifier),he&&(this._receiveMessage(he),delete this._receivedMessages[_.messageIdentifier]);var oe=new y(r.PUBCOMP,{messageIdentifier:_.messageIdentifier});this._schedule_message(oe);break;case r.PUBCOMP:var K=this._sentMessages[_.messageIdentifier];delete this._sentMessages[_.messageIdentifier],d.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(K.payloadMessage);break;case r.SUBACK:(K=this._sentMessages[_.messageIdentifier])&&(K.timeOut&&K.timeOut.cancel(),128===_.returnCode[0]?K.onFailure&&K.onFailure(_.returnCode):K.onSuccess&&K.onSuccess(_.returnCode),delete this._sentMessages[_.messageIdentifier]);break;case r.UNSUBACK:(K=this._sentMessages[_.messageIdentifier])&&(K.timeOut&&K.timeOut.cancel(),K.callback&&K.callback(),delete this._sentMessages[_.messageIdentifier]);break;case r.PINGRESP:this.sendPinger.reset();break;default:this._disconnected(u.INVALID_MQTT_MESSAGE_TYPE.code,i(u.INVALID_MQTT_MESSAGE_TYPE,[_.type]))}}catch(ne){var Y="undefined"==ne.hasOwnProperty("stack")?ne.stack.toString():"No Error Stack Available";return void this._disconnected(u.INTERNAL_ERROR.code,i(u.INTERNAL_ERROR,[ne.message,Y]))}},g.prototype._on_socket_error=function(_){this._reconnecting||this._disconnected(u.SOCKET_ERROR.code,i(u.SOCKET_ERROR,[_.data]))},g.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(u.SOCKET_CLOSE.code,i(u.SOCKET_CLOSE))},g.prototype._socket_send=function(_){if(1==_.type){var l=this._traceMask(_,"password");this._trace("Client._socket_send",l)}else this._trace("Client._socket_send",_);this.socket.send(_.encode()),this.sendPinger.reset()},g.prototype._receivePublish=function(_){switch(_.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(_);break;case 1:var l=new y(r.PUBACK,{messageIdentifier:_.messageIdentifier});this._schedule_message(l),this._receiveMessage(_);break;case 2:this._receivedMessages[_.messageIdentifier]=_,this.store("Received:",_);var T=new y(r.PUBREC,{messageIdentifier:_.messageIdentifier});this._schedule_message(T);break;default:throw Error("Invaild qos="+_.payloadMessage.qos)}},g.prototype._receiveMessage=function(_){this.onMessageArrived&&this.onMessageArrived(_.payloadMessage)},g.prototype._connected=function(_,l){this.onConnected&&this.onConnected(_,l)},g.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))},g.prototype._disconnected=function(_,l){if(this._trace("Client._disconnected",_,l),void 0!==_&&this._reconnecting)this._reconnectTimeout=new L(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===_&&(_=u.OK.code,l=i(u.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:_,errorMessage:l,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),_!==u.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:_,errorMessage:l})},g.prototype._trace=function(){if(this.traceFunction){var _=Array.prototype.slice.call(arguments);for(var l in _)typeof _[l]<"u"&&_.splice(l,1,JSON.stringify(_[l]));var T=_.join("");this.traceFunction({severity:"Debug",message:T})}if(null!==this._traceBuffer){l=0;for(var B=arguments.length;l<B;l++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===l||typeof arguments[l]>"u"?arguments[l]:" "+JSON.stringify(arguments[l]))}},g.prototype._traceMask=function(_,l){var T={};for(var B in _)_.hasOwnProperty(B)&&(T[B]=B==l?"******":_[B]);return T};var c=function(_){var l;if(!("string"==typeof _||_ instanceof ArrayBuffer||ArrayBuffer.isView(_)&&!(_ instanceof DataView)))throw i(u.INVALID_ARGUMENT,[_,"newPayload"]);l=_;var T,B=0,U=!1,z=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof l?l:Q(l,0,l.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof l){var ae=new ArrayBuffer(D(l)),pe=new Uint8Array(ae);return W(l,pe,0),pe}return l}},destinationName:{enumerable:!0,get:function(){return T},set:function(ae){if("string"!=typeof ae)throw new Error(i(u.INVALID_ARGUMENT,[ae,"newDestinationName"]));T=ae}},qos:{enumerable:!0,get:function(){return B},set:function(ae){if(0!==ae&&1!==ae&&2!==ae)throw new Error("Invalid argument:"+ae);B=ae}},retained:{enumerable:!0,get:function(){return U},set:function(ae){if("boolean"!=typeof ae)throw new Error(i(u.INVALID_ARGUMENT,[ae,"newRetained"]));U=ae}},topic:{enumerable:!0,get:function(){return T},set:function(ae){T=ae}},duplicate:{enumerable:!0,get:function(){return z},set:function(ae){z=ae}}})};return{Client:function(_,l,T,B){var U;if("string"!=typeof _)throw new Error(i(u.INVALID_TYPE,[typeof _,"host"]));if(2==arguments.length){B=l;var z=(U=_).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!z)throw new Error(i(u.INVALID_ARGUMENT,[_,"host"]));_=z[4]||z[2],l=parseInt(z[7]),T=z[8]}else{if(3==arguments.length&&(B=T,T="/mqtt"),"number"!=typeof l||l<0)throw new Error(i(u.INVALID_TYPE,[typeof l,"port"]));if("string"!=typeof T)throw new Error(i(u.INVALID_TYPE,[typeof T,"path"]));var ae=-1!==_.indexOf(":")&&"["!==_.slice(0,1)&&"]"!==_.slice(-1);U="ws://"+(ae?"["+_+"]":_)+":"+l+T}for(var pe=0,X=0;X<B.length;X++){var he=B.charCodeAt(X);55296<=he&&he<=56319&&X++,pe++}if("string"!=typeof B||pe>65535)throw new Error(i(u.INVALID_ARGUMENT,[B,"clientId"]));var oe=new g(U,_,l,T,B);Object.defineProperties(this,{host:{get:function(){return _},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},port:{get:function(){return l},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},path:{get:function(){return T},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},uri:{get:function(){return U},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return oe.clientId},set:function(){throw new Error(i(u.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return oe.onConnected},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onConnected"]));oe.onConnected=K}},disconnectedPublishing:{get:function(){return oe.disconnectedPublishing},set:function(K){oe.disconnectedPublishing=K}},disconnectedBufferSize:{get:function(){return oe.disconnectedBufferSize},set:function(K){oe.disconnectedBufferSize=K}},onConnectionLost:{get:function(){return oe.onConnectionLost},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onConnectionLost"]));oe.onConnectionLost=K}},onMessageDelivered:{get:function(){return oe.onMessageDelivered},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onMessageDelivered"]));oe.onMessageDelivered=K}},onMessageArrived:{get:function(){return oe.onMessageArrived},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onMessageArrived"]));oe.onMessageArrived=K}},trace:{get:function(){return oe.traceFunction},set:function(K){if("function"!=typeof K)throw new Error(i(u.INVALID_TYPE,[typeof K,"onTrace"]));oe.traceFunction=K}}}),this.connect=function(K){if(n(K=K||{},{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===K.keepAliveInterval&&(K.keepAliveInterval=60),K.mqttVersion>4||K.mqttVersion<3)throw new Error(i(u.INVALID_ARGUMENT,[K.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===K.mqttVersion?(K.mqttVersionExplicit=!1,K.mqttVersion=4):K.mqttVersionExplicit=!0,void 0!==K.password&&void 0===K.userName)throw new Error(i(u.INVALID_ARGUMENT,[K.password,"connectOptions.password"]));if(K.willMessage){if(!(K.willMessage instanceof c))throw new Error(i(u.INVALID_TYPE,[K.willMessage,"connectOptions.willMessage"]));if(K.willMessage.stringPayload=null,typeof K.willMessage.destinationName>"u")throw new Error(i(u.INVALID_TYPE,[typeof K.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof K.cleanSession>"u"&&(K.cleanSession=!0),K.hosts){if(!(K.hosts instanceof Array))throw new Error(i(u.INVALID_ARGUMENT,[K.hosts,"connectOptions.hosts"]));if(K.hosts.length<1)throw new Error(i(u.INVALID_ARGUMENT,[K.hosts,"connectOptions.hosts"]));for(var Y=!1,ne=0;ne<K.hosts.length;ne++){if("string"!=typeof K.hosts[ne])throw new Error(i(u.INVALID_TYPE,[typeof K.hosts[ne],"connectOptions.hosts["+ne+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(K.hosts[ne])){if(0===ne)Y=!0;else if(!Y)throw new Error(i(u.INVALID_ARGUMENT,[K.hosts[ne],"connectOptions.hosts["+ne+"]"]))}else if(Y)throw new Error(i(u.INVALID_ARGUMENT,[K.hosts[ne],"connectOptions.hosts["+ne+"]"]))}if(Y)K.uris=K.hosts;else{if(!K.ports)throw new Error(i(u.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));if(!(K.ports instanceof Array))throw new Error(i(u.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));if(K.hosts.length!==K.ports.length)throw new Error(i(u.INVALID_ARGUMENT,[K.ports,"connectOptions.ports"]));for(K.uris=[],ne=0;ne<K.hosts.length;ne++){if("number"!=typeof K.ports[ne]||K.ports[ne]<0)throw new Error(i(u.INVALID_TYPE,[typeof K.ports[ne],"connectOptions.ports["+ne+"]"]));var $=K.hosts[ne],A=K.ports[ne],b=-1!==$.indexOf(":");K.uris.push(U="ws://"+(b?"["+$+"]":$)+":"+A+T)}}}oe.connect(K)},this.subscribe=function(K,Y){if("string"!=typeof K)throw new Error("Invalid argument:"+K);if(n(Y=Y||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Y.timeout&&!Y.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof Y.qos<"u"&&0!==Y.qos&&1!==Y.qos&&2!==Y.qos)throw new Error(i(u.INVALID_ARGUMENT,[Y.qos,"subscribeOptions.qos"]));oe.subscribe(K,Y)},this.unsubscribe=function(K,Y){if("string"!=typeof K)throw new Error("Invalid argument:"+K);if(n(Y=Y||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Y.timeout&&!Y.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");oe.unsubscribe(K,Y)},this.send=function(K,Y,ne,$){var A;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(K instanceof c)&&"string"!=typeof K)throw new Error("Invalid argument:"+typeof K);if(typeof(A=K).destinationName>"u")throw new Error(i(u.INVALID_ARGUMENT,[A.destinationName,"Message.destinationName"]));oe.send(A)}else(A=new c(Y)).destinationName=K,arguments.length>=3&&(A.qos=ne),arguments.length>=4&&(A.retained=$),oe.send(A)},this.publish=function(K,Y,ne,$){var A;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(K instanceof c)&&"string"!=typeof K)throw new Error("Invalid argument:"+typeof K);if(typeof(A=K).destinationName>"u")throw new Error(i(u.INVALID_ARGUMENT,[A.destinationName,"Message.destinationName"]));oe.send(A)}else(A=new c(Y)).destinationName=K,arguments.length>=3&&(A.qos=ne),arguments.length>=4&&(A.retained=$),oe.send(A)},this.disconnect=function(){oe.disconnect()},this.getTraceLog=function(){return oe.getTraceLog()},this.startTrace=function(){oe.startTrace()},this.stopTrace=function(){oe.stopTrace()},this.isConnected=function(){return oe.connected}},Message:c}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),p)},65881:(ce,k,p)=>{function n(){var u;try{u=k.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}(k=ce.exports=p(37598)).log=function d(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},k.formatArgs=function w(u){var e=this.useColors;if(u[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+u[0]+(e?"%c ":" ")+"+"+k.humanize(this.diff),e){var i="color: "+this.color;u.splice(1,0,i,"color: inherit");var s=0,h=0;u[0].replace(/%[a-zA-Z%]/g,function(y){"%%"!==y&&(s++,"%c"===y&&(h=s))}),u.splice(h,0,i)}},k.save=function r(u){try{null==u?k.storage.removeItem("debug"):k.storage.debug=u}catch{}},k.load=n,k.useColors=function t(){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+)/)},k.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function a(){try{return window.localStorage}catch{}}(),k.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],k.formatters.j=function(u){try{return JSON.stringify(u)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},k.enable(n())},37598:(ce,k,p)=>{var t;function d(e){function i(){if(i.enabled){var s=i,h=+new Date;s.diff=h-(t||h),s.prev=t,s.curr=h,t=h;for(var m=new Array(arguments.length),I=0;I<m.length;I++)m[I]=arguments[I];m[0]=k.coerce(m[0]),"string"!=typeof m[0]&&m.unshift("%O");var M=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,function(C,D){if("%%"===C)return C;M++;var W=k.formatters[D];return"function"==typeof W&&(C=W.call(s,m[M]),m.splice(M,1),M--),C}),k.formatArgs.call(s,m),(i.log||k.log||console.log.bind(console)).apply(s,m)}}return i.namespace=e,i.enabled=k.enabled(e),i.useColors=k.useColors(),i.color=function w(e){var s,i=0;for(s in e)i=(i<<5)-i+e.charCodeAt(s),i|=0;return k.colors[Math.abs(i)%k.colors.length]}(e),"function"==typeof k.init&&k.init(i),i}(k=ce.exports=d.debug=d.default=d).coerce=function u(e){return e instanceof Error?e.stack||e.message:e},k.disable=function n(){k.enable("")},k.enable=function r(e){k.save(e),k.names=[],k.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),s=i.length,h=0;h<s;h++)i[h]&&("-"===(e=i[h].replace(/\*/g,".*?"))[0]?k.skips.push(new RegExp("^"+e.substr(1)+"$")):k.names.push(new RegExp("^"+e+"$")))},k.enabled=function a(e){var i,s;for(i=0,s=k.skips.length;i<s;i++)if(k.skips[i].test(e))return!1;for(i=0,s=k.names.length;i<s;i++)if(k.names[i].test(e))return!0;return!1},k.humanize=p(55971),k.names=[],k.skips=[],k.formatters={}},55971:ce=>{var k=1e3,p=60*k,t=60*p,w=24*t;function u(e,i,s){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+s:Math.ceil(e/i)+" "+s+"s"}ce.exports=function(e,i){i=i||{};var s=typeof e;if("string"===s&&e.length>0)return function r(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var s=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*w;case"hours":case"hour":case"hrs":case"hr":case"h":return s*t;case"minutes":case"minute":case"mins":case"min":case"m":return s*p;case"seconds":case"second":case"secs":case"sec":case"s":return s*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===s&&!1===isNaN(e))return i.long?function a(e){return u(e,w,"day")||u(e,t,"hour")||u(e,p,"minute")||u(e,k,"second")||e+" ms"}(e):function n(e){return e>=w?Math.round(e/w)+"d":e>=t?Math.round(e/t)+"h":e>=p?Math.round(e/p)+"m":e>=k?Math.round(e/k)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},67811:(ce,k,p)=>{p(18213);var t=p(497);typeof window<"u"&&(window.AWS=t),ce.exports=t,typeof self<"u"&&(self.AWS=t)},94835:(ce,k,p)=>{p(18213);var t=p(497),w=t.Service,d=t.apiLoader;d.services.cognitoidentity={},t.CognitoIdentity=w.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(d.services.cognitoidentity,"2014-06-30",{get:function(){var n=p(79476);return n.paginators=p(85464).o,n},enumerable:!0,configurable:!0}),ce.exports=t.CognitoIdentity},48020:(ce,k,p)=>{p(18213);var t=p(497),w=t.Service,d=t.apiLoader;d.services.sts={},t.STS=w.defineService("sts",["2011-06-15"]),p(25674),Object.defineProperty(d.services.sts,"2011-06-15",{get:function(){var n=p(3554);return n.paginators=p(31152).o,n},enumerable:!0,configurable:!0}),ce.exports=t.STS},15796:ce=>{function k(p,t){if(!k.services.hasOwnProperty(p))throw new Error("InvalidService: Failed to load api for "+p);return k.services[p][t]}k.services={},ce.exports=k},3318:(ce,k,p)=>{var t=p(34448),w=p(72935),d=p(12781),r=p(6203);ce.exports={createHash:function(a){if("md5"===(a=a.toLowerCase()))return new w;if("sha256"===a)return new r;if("sha1"===a)return new d;throw new Error("Hash algorithm "+a+" is not supported in the browser SDK")},createHmac:function(a,u){if("md5"===(a=a.toLowerCase()))return new t(w,u);if("sha256"===a)return new t(r,u);if("sha1"===a)return new t(d,u);throw new Error("HMAC algorithm "+a+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},75089:(ce,k,p)=>{var t=p(3584).lW;typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(n){return w.indexOf(Object.prototype.toString.call(n))>-1});var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];ce.exports={isEmptyData:function d(n){return"string"==typeof n?0===n.length:0===n.byteLength},convertToBuffer:function r(n){return"string"==typeof n&&(n=new t(n,"utf8")),ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}}},34448:(ce,k,p)=>{var t=p(75089);function w(r,n){this.hash=new r,this.outer=new r;var a=function d(r,n){var a=t.convertToBuffer(n);if(a.byteLength>r.BLOCK_SIZE){var u=new r;u.update(a),a=u.digest()}var e=new Uint8Array(r.BLOCK_SIZE);return e.set(a),e}(r,n),u=new Uint8Array(r.BLOCK_SIZE);u.set(a);for(var e=0;e<r.BLOCK_SIZE;e++)a[e]^=54,u[e]^=92;for(this.hash.update(a),this.outer.update(u),e=0;e<a.byteLength;e++)a[e]=0}ce.exports=w,w.prototype.update=function(r){if(t.isEmptyData(r)||this.error)return this;try{this.hash.update(t.convertToBuffer(r))}catch(n){this.error=n}return this},w.prototype.digest=function(r){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(r)}},72935:(ce,k,p)=>{var t=p(75089),w=p(3584).lW,d=64;function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(d)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function u(y,m,I,M,P,C){return((m=(m+y&4294967295)+(M+C&4294967295)&4294967295)<<P|m>>>32-P)+I&4294967295}function e(y,m,I,M,P,C,D){return u(m&I|~m&M,y,m,P,C,D)}function i(y,m,I,M,P,C,D){return u(m&M|I&~M,y,m,P,C,D)}function s(y,m,I,M,P,C,D){return u(m^I^M,y,m,P,C,D)}function h(y,m,I,M,P,C,D){return u(I^(m|~M),y,m,P,C,D)}ce.exports=a,a.BLOCK_SIZE=d,a.prototype.update=function(y){if(t.isEmptyData(y))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var m=t.convertToBuffer(y),I=0,M=m.byteLength;for(this.bytesHashed+=M;M>0;)this.buffer.setUint8(this.bufferLength++,m[I++]),M--,this.bufferLength===d&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(y){if(!this.finished){var m=this,I=m.buffer,M=m.bufferLength,C=8*m.bytesHashed;if(I.setUint8(this.bufferLength++,128),M%d>=d-8){for(var D=this.bufferLength;D<d;D++)I.setUint8(D,0);this.hashBuffer(),this.bufferLength=0}for(D=this.bufferLength;D<d-8;D++)I.setUint8(D,0);I.setUint32(d-8,C>>>0,!0),I.setUint32(d-4,Math.floor(C/4294967296),!0),this.hashBuffer(),this.finished=!0}var W=new DataView(new ArrayBuffer(16));for(D=0;D<4;D++)W.setUint32(4*D,this.state[D],!0);var Q=new w(W.buffer,W.byteOffset,W.byteLength);return y?Q.toString(y):Q},a.prototype.hashBuffer=function(){var m=this.buffer,I=this.state,M=I[0],P=I[1],C=I[2],D=I[3];M=e(M,P,C,D,m.getUint32(0,!0),7,3614090360),D=e(D,M,P,C,m.getUint32(4,!0),12,3905402710),C=e(C,D,M,P,m.getUint32(8,!0),17,606105819),P=e(P,C,D,M,m.getUint32(12,!0),22,3250441966),M=e(M,P,C,D,m.getUint32(16,!0),7,4118548399),D=e(D,M,P,C,m.getUint32(20,!0),12,1200080426),C=e(C,D,M,P,m.getUint32(24,!0),17,2821735955),P=e(P,C,D,M,m.getUint32(28,!0),22,4249261313),M=e(M,P,C,D,m.getUint32(32,!0),7,1770035416),D=e(D,M,P,C,m.getUint32(36,!0),12,2336552879),C=e(C,D,M,P,m.getUint32(40,!0),17,4294925233),P=e(P,C,D,M,m.getUint32(44,!0),22,2304563134),M=e(M,P,C,D,m.getUint32(48,!0),7,1804603682),D=e(D,M,P,C,m.getUint32(52,!0),12,4254626195),C=e(C,D,M,P,m.getUint32(56,!0),17,2792965006),M=i(M,P=e(P,C,D,M,m.getUint32(60,!0),22,1236535329),C,D,m.getUint32(4,!0),5,4129170786),D=i(D,M,P,C,m.getUint32(24,!0),9,3225465664),C=i(C,D,M,P,m.getUint32(44,!0),14,643717713),P=i(P,C,D,M,m.getUint32(0,!0),20,3921069994),M=i(M,P,C,D,m.getUint32(20,!0),5,3593408605),D=i(D,M,P,C,m.getUint32(40,!0),9,38016083),C=i(C,D,M,P,m.getUint32(60,!0),14,3634488961),P=i(P,C,D,M,m.getUint32(16,!0),20,3889429448),M=i(M,P,C,D,m.getUint32(36,!0),5,568446438),D=i(D,M,P,C,m.getUint32(56,!0),9,3275163606),C=i(C,D,M,P,m.getUint32(12,!0),14,4107603335),P=i(P,C,D,M,m.getUint32(32,!0),20,1163531501),M=i(M,P,C,D,m.getUint32(52,!0),5,2850285829),D=i(D,M,P,C,m.getUint32(8,!0),9,4243563512),C=i(C,D,M,P,m.getUint32(28,!0),14,1735328473),M=s(M,P=i(P,C,D,M,m.getUint32(48,!0),20,2368359562),C,D,m.getUint32(20,!0),4,4294588738),D=s(D,M,P,C,m.getUint32(32,!0),11,2272392833),C=s(C,D,M,P,m.getUint32(44,!0),16,1839030562),P=s(P,C,D,M,m.getUint32(56,!0),23,4259657740),M=s(M,P,C,D,m.getUint32(4,!0),4,2763975236),D=s(D,M,P,C,m.getUint32(16,!0),11,1272893353),C=s(C,D,M,P,m.getUint32(28,!0),16,4139469664),P=s(P,C,D,M,m.getUint32(40,!0),23,3200236656),M=s(M,P,C,D,m.getUint32(52,!0),4,681279174),D=s(D,M,P,C,m.getUint32(0,!0),11,3936430074),C=s(C,D,M,P,m.getUint32(12,!0),16,3572445317),P=s(P,C,D,M,m.getUint32(24,!0),23,76029189),M=s(M,P,C,D,m.getUint32(36,!0),4,3654602809),D=s(D,M,P,C,m.getUint32(48,!0),11,3873151461),C=s(C,D,M,P,m.getUint32(60,!0),16,530742520),M=h(M,P=s(P,C,D,M,m.getUint32(8,!0),23,3299628645),C,D,m.getUint32(0,!0),6,4096336452),D=h(D,M,P,C,m.getUint32(28,!0),10,1126891415),C=h(C,D,M,P,m.getUint32(56,!0),15,2878612391),P=h(P,C,D,M,m.getUint32(20,!0),21,4237533241),M=h(M,P,C,D,m.getUint32(48,!0),6,1700485571),D=h(D,M,P,C,m.getUint32(12,!0),10,2399980690),C=h(C,D,M,P,m.getUint32(40,!0),15,4293915773),P=h(P,C,D,M,m.getUint32(4,!0),21,2240044497),M=h(M,P,C,D,m.getUint32(32,!0),6,1873313359),D=h(D,M,P,C,m.getUint32(60,!0),10,4264355552),C=h(C,D,M,P,m.getUint32(24,!0),15,2734768916),P=h(P,C,D,M,m.getUint32(52,!0),21,1309151649),M=h(M,P,C,D,m.getUint32(16,!0),6,4149444226),D=h(D,M,P,C,m.getUint32(44,!0),10,3174756917),C=h(C,D,M,P,m.getUint32(8,!0),15,718787259),P=h(P,C,D,M,m.getUint32(36,!0),21,3951481745),I[0]=M+I[0]&4294967295,I[1]=P+I[1]&4294967295,I[2]=C+I[2]&4294967295,I[3]=D+I[3]&4294967295}},12781:(ce,k,p)=>{var t=p(3584).lW,w=p(75089);function e(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),ce.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(i))return this;var s=(i=w.convertToBuffer(i)).length;this.totalLength+=8*s;for(var h=0;h<s;h++)this.write(i[h]);return this},e.prototype.write=function(s){this.block[this.offset]|=(255&s)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},e.prototype.digest=function(i){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var s=24;s>=0;s-=8)this.write(this.totalLength>>s);var h=new t(20),y=new DataView(h.buffer);return y.setUint32(0,this.h0,!1),y.setUint32(4,this.h1,!1),y.setUint32(8,this.h2,!1),y.setUint32(12,this.h3,!1),y.setUint32(16,this.h4,!1),i?h.toString(i):h},e.prototype.processBlock=function(){for(var s=16;s<80;s++){var h=this.block[s-3]^this.block[s-8]^this.block[s-14]^this.block[s-16];this.block[s]=h<<1|h>>>31}var C,D,y=this.h0,m=this.h1,I=this.h2,M=this.h3,P=this.h4;for(s=0;s<80;s++){s<20?(C=M^m&(I^M),D=1518500249):s<40?(C=m^I^M,D=1859775393):s<60?(C=m&I|M&(m|I),D=2400959708):(C=m^I^M,D=3395469782);var W=(y<<5|y>>>27)+C+P+D+(0|this.block[s]);P=M,M=I,I=m<<30|m>>>2,m=y,y=W}for(this.h0=this.h0+y|0,this.h1=this.h1+m|0,this.h2=this.h2+I|0,this.h3=this.h3+M|0,this.h4=this.h4+P|0,this.offset=0,s=0;s<16;s++)this.block[s]=0}},6203:(ce,k,p)=>{var t=p(3584).lW,w=p(75089),n=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]),u=Math.pow(2,53)-1;function e(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}ce.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(w.isEmptyData(i))return this;var s=0,h=(i=w.convertToBuffer(i)).byteLength;if(this.bytesHashed+=h,8*this.bytesHashed>u)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;h>0;)this.buffer[this.bufferLength++]=i[s++],h--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},e.prototype.digest=function(i){if(!this.finished){var s=8*this.bytesHashed,h=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),y=this.bufferLength;if(h.setUint8(this.bufferLength++,128),y%64>=56){for(var m=this.bufferLength;m<64;m++)h.setUint8(m,0);this.hashBuffer(),this.bufferLength=0}for(m=this.bufferLength;m<56;m++)h.setUint8(m,0);h.setUint32(56,Math.floor(s/4294967296),!0),h.setUint32(60,s),this.hashBuffer(),this.finished=!0}var I=new t(32);for(m=0;m<8;m++)I[4*m]=this.state[m]>>>24&255,I[4*m+1]=this.state[m]>>>16&255,I[4*m+2]=this.state[m]>>>8&255,I[4*m+3]=this.state[m]>>>0&255;return i?I.toString(i):I},e.prototype.hashBuffer=function(){for(var s=this.buffer,h=this.state,y=h[0],m=h[1],I=h[2],M=h[3],P=h[4],C=h[5],D=h[6],W=h[7],Q=0;Q<64;Q++){if(Q<16)this.temp[Q]=(255&s[4*Q])<<24|(255&s[4*Q+1])<<16|(255&s[4*Q+2])<<8|255&s[4*Q+3];else{var H=this.temp[Q-2];this.temp[Q]=(((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+this.temp[Q-7]|0)+((((H=this.temp[Q-15])>>>7|H<<25)^(H>>>18|H<<14)^H>>>3)+this.temp[Q-16]|0)}var R=(((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&C^~P&D)|0)+(W+(n[Q]+this.temp[Q]|0)|0)|0,c=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&m^y&I^m&I)|0;W=D,D=C,C=P,P=M+R|0,M=I,I=m,m=y,y=R+c|0}h[0]+=y,h[1]+=m,h[2]+=I,h[3]+=M,h[4]+=P,h[5]+=C,h[6]+=D,h[7]+=W}},18213:(ce,k,p)=>{var t=p(33123);t.crypto.lib=p(3318),t.Buffer=p(3584).lW,t.url=p(2636),t.querystring=p(51239),t.realClock=p(16288),t.environment="js",t.createEventStream=p(77171).createEventStream,t.isBrowser=function(){return!0},t.isNode=function(){return!1};var w=p(497);if(ce.exports=w,p(88864),p(47162),p(69330),p(89335),p(42966),p(81939),p(8478),w.XML.Parser=p(58882),p(41967),typeof d>"u")var d={browser:!0}},60086:(ce,k,p)=>{var w,t=p(497);p(88864),p(47162),t.Config=t.util.inherit({constructor:function(r){void 0===r&&(r={}),r=this.extractCredentials(r),t.util.each.call(this,this.keys,function(n,a){this.set(n,r[n],a)})},getCredentials:function(r){var n=this;function a(s){r(s,s?null:n.credentials)}function u(s,h){return new t.util.error(h||new Error,{code:"CredentialsError",message:s,name:"CredentialsError"})}n.credentials?"function"==typeof n.credentials.get?function e(){n.credentials.get(function(s){s&&(s=u("Could not load credentials from "+n.credentials.constructor.name,s)),a(s)})}():function i(){var s=null;(!n.credentials.accessKeyId||!n.credentials.secretAccessKey)&&(s=u("Missing credentials")),a(s)}():n.credentialProvider?n.credentialProvider.resolve(function(s,h){s&&(s=u("Could not load credentials from any providers",s)),n.credentials=h,a(s)}):a(u("No credentials to load"))},update:function(r,n){n=n||!1,r=this.extractCredentials(r),t.util.each.call(this,r,function(a,u){(n||Object.prototype.hasOwnProperty.call(this.keys,a)||t.Service.hasService(a))&&this.set(a,u)})},loadFromPath:function(r){this.clear();var n=JSON.parse(t.util.readFileSync(r)),a=new t.FileSystemCredentials(r),u=new t.CredentialProviderChain;return u.providers.unshift(a),u.resolve(function(e,i){if(e)throw e;n.credentials=i}),this.constructor(n),this},clear:function(){t.util.each.call(this,this.keys,function(r){delete this[r]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(r,n,a){void 0===n?(void 0===a&&(a=this.keys[r]),this[r]="function"==typeof a?a.call(this):a):this[r]="httpOptions"===r&&this[r]?t.util.merge(this[r],n):n},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1},extractCredentials:function(r){return r.accessKeyId&&r.secretAccessKey&&((r=t.util.copy(r)).credentials=new t.Credentials(r)),r},setPromisesDependency:function(r){w=r,null===r&&"function"==typeof Promise&&(w=Promise);var n=[t.Request,t.Credentials,t.CredentialProviderChain];t.S3&&(n.push(t.S3),t.S3.ManagedUpload&&n.push(t.S3.ManagedUpload)),t.util.addPromises(n,w)},getPromisesDependency:function(){return w}}),t.config=new t.Config},91898:(ce,k,p)=>{var t=p(497);function w(r,n){if("string"==typeof r){if(["legacy","regional"].indexOf(r.toLowerCase())>=0)return r.toLowerCase();throw t.util.error(new Error,n)}}ce.exports=function d(r,n){var a;if((r=r||{})[n.clientConfig]&&(a=w(r[n.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+n.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+r[n.clientConfig]+'".'}))||!t.util.isNode())return a;if(Object.prototype.hasOwnProperty.call(process.env,n.env)&&(a=w(process.env[n.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+n.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[n.env]+'".'})))return a;var e={};try{e=t.util.getProfilesFromSharedConfig(t.util.iniLoader)[process.env.AWS_PROFILE||t.util.defaultProfile]}catch{}return e&&Object.prototype.hasOwnProperty.call(e,n.sharedConfig)&&(a=w(e[n.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+n.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+e[n.sharedConfig]+'".'})),a}},497:(ce,k,p)=>{var t={util:p(33123)};({}).toString(),ce.exports=t,t.util.update(t,{VERSION:"2.1189.0",Signers:{},Protocol:{Json:p(44566),Query:p(83839),Rest:p(41956),RestJson:p(97969),RestXml:p(26129)},XML:{Builder:p(30461),Parser:null},JSON:{Builder:p(52933),Parser:p(36040)},Model:{Api:p(17986),Operation:p(80611),Shape:p(17680),Paginator:p(27705),ResourceWaiter:p(67805)},apiLoader:p(15796),EndpointCache:p(94830).$}),p(35215),p(60199),p(60086),p(11202),p(68935),p(18913),p(27376),p(7689),p(86966),p(41440),t.events=new t.SequentialExecutor,t.util.memoizedProperty(t,"endpointCache",function(){return new t.EndpointCache(t.config.endpointCacheSize)},!0)},88864:(ce,k,p)=>{var t=p(497);t.Credentials=t.util.inherit({constructor:function(){if(t.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var d=arguments[0].credentials||arguments[0];this.accessKeyId=d.accessKeyId,this.secretAccessKey=d.secretAccessKey,this.sessionToken=d.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var d=t.util.date.getDate().getTime(),r=new Date(d+1e3*this.expiryWindow);return!!(this.expireTime&&r>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(d){var r=this;this.needsRefresh()?this.refresh(function(n){n||(r.expired=!1),d&&d(n)}):d&&d()},refresh:function(d){this.expired=!1,d()},coalesceRefresh:function(d,r){var n=this;1===n.refreshCallbacks.push(d)&&n.load(function(u){t.util.arrayEach(n.refreshCallbacks,function(e){r?e(u):t.util.defer(function(){e(u)})}),n.refreshCallbacks.length=0})},load:function(d){d()}}),t.Credentials.addPromisesToClass=function(d){this.prototype.getPromise=t.util.promisifyMethod("get",d),this.prototype.refreshPromise=t.util.promisifyMethod("refresh",d)},t.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},t.util.addPromises(t.Credentials)},89335:(ce,k,p)=>{var t=p(497),w=p(48020);t.ChainableTemporaryCredentials=t.util.inherit(t.Credentials,{constructor:function(r){t.Credentials.call(this),r=r||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var n=t.util.copy(r.params)||{};if(n.RoleArn&&(n.RoleSessionName=n.RoleSessionName||"temporary-credentials"),n.SerialNumber){if(!r.tokenCodeFn||"function"!=typeof r.tokenCodeFn)throw new t.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=r.tokenCodeFn}var a=t.util.merge({params:n,credentials:r.masterCredentials||t.config.credentials},r.stsConfig||{});this.service=new w(a)},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this,a=n.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(u,e){var i={};u?r(u):(e&&(i.TokenCode=e),n.service[a](i,function(s,h){s||n.service.credentialsFrom(h,n),r(s)}))})},getTokenCode:function(r){var n=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(a,u){if(a){var e=a;return a instanceof Error&&(e=a.message),void r(t.util.error(new Error("Error fetching MFA token: "+e),{code:n.errorCode}))}r(null,u)}):r(null)}})},81939:(ce,k,p)=>{var t=p(497),w=p(94835),d=p(48020);t.CognitoIdentityCredentials=t.util.inherit(t.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(n,a){t.Credentials.call(this),this.expired=!0,this.params=n,this.data=null,this._identityId=null,this._clientConfig=t.util.copy(a||{}),this.loadCachedId();var u=this;Object.defineProperty(this,"identityId",{get:function(){return u.loadCachedId(),u._identityId||u.params.IdentityId},set:function(e){u._identityId=e}})},refresh:function(n){this.coalesceRefresh(n||t.util.fn.callback)},load:function(n){var a=this;a.createClients(),a.data=null,a._identityId=null,a.getId(function(u){u?(a.clearIdOnNotAuthorized(u),n(u)):a.params.RoleArn?a.getCredentialsFromSTS(n):a.getCredentialsForIdentity(n)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var n=this.params.IdentityPoolId,a=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+n+a],delete this.storage[this.localStorageKey.providers+n+a]},clearIdOnNotAuthorized:function(n){"NotAuthorizedException"==n.code&&this.clearCachedId()},getId:function(n){var a=this;if("string"==typeof a.params.IdentityId)return n(null,a.params.IdentityId);a.cognito.getId(function(u,e){!u&&e.IdentityId?(a.params.IdentityId=e.IdentityId,n(null,e.IdentityId)):n(u)})},loadCredentials:function(n,a){!n||!a||(a.expired=!1,a.accessKeyId=n.Credentials.AccessKeyId,a.secretAccessKey=n.Credentials.SecretKey,a.sessionToken=n.Credentials.SessionToken,a.expireTime=n.Credentials.Expiration)},getCredentialsForIdentity:function(n){var a=this;a.cognito.getCredentialsForIdentity(function(u,e){u?a.clearIdOnNotAuthorized(u):(a.cacheId(e),a.data=e,a.loadCredentials(a.data,a)),n(u)})},getCredentialsFromSTS:function(n){var a=this;a.cognito.getOpenIdToken(function(u,e){u?(a.clearIdOnNotAuthorized(u),n(u)):(a.cacheId(e),a.params.WebIdentityToken=e.Token,a.webIdentityCredentials.refresh(function(i){i||(a.data=a.webIdentityCredentials.data,a.sts.credentialsFrom(a.data,a)),n(i)}))})},loadCachedId:function(){var n=this;if(t.util.isBrowser()&&!n.params.IdentityId){var a=n.getStorage("id");if(a&&n.params.Logins){var u=Object.keys(n.params.Logins);0!==(n.getStorage("providers")||"").split(",").filter(function(s){return-1!==u.indexOf(s)}).length&&(n.params.IdentityId=a)}else a&&(n.params.IdentityId=a)}},createClients:function(){var r=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new t.WebIdentityCredentials(this.params,r),!this.cognito){var n=t.util.merge({},r);n.params=this.params,this.cognito=new w(n)}this.sts=this.sts||new d(r)},cacheId:function(n){this._identityId=n.IdentityId,this.params.IdentityId=this._identityId,t.util.isBrowser()&&(this.setStorage("id",n.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(n){return this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(n,a){try{this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]=a}catch{}},storage:function(){try{var r=t.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return r["aws.test-storage"]="foobar",delete r["aws.test-storage"],r}catch{return{}}}()})},47162:(ce,k,p)=>{var t=p(497);t.CredentialProviderChain=t.util.inherit(t.Credentials,{constructor:function(d){this.providers=d||t.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(d){var r=this;if(0===r.providers.length)return d(new Error("No providers")),r;if(1===r.resolveCallbacks.push(d)){let e=function(i,s){if(!i&&s||n===a.length)return t.util.arrayEach(r.resolveCallbacks,function(y){y(i,s)}),void(r.resolveCallbacks.length=0);var h=a[n++];(s="function"==typeof h?h.call():h).get?s.get(function(y){e(y,y?null:s)}):e(null,s)};var n=0,a=r.providers.slice(0);e()}return r}}),t.CredentialProviderChain.defaultProviders=[],t.CredentialProviderChain.addPromisesToClass=function(d){this.prototype.resolvePromise=t.util.promisifyMethod("resolve",d)},t.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},t.util.addPromises(t.CredentialProviderChain)},8478:(ce,k,p)=>{var t=p(497),w=p(48020);t.SAMLCredentials=t.util.inherit(t.Credentials,{constructor:function(r){t.Credentials.call(this),this.expired=!0,this.params=r},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithSAML(function(a,u){a||n.service.credentialsFrom(u,n),r(a)})},createClients:function(){this.service=this.service||new w({params:this.params})}})},69330:(ce,k,p)=>{var t=p(497),w=p(48020);t.TemporaryCredentials=t.util.inherit(t.Credentials,{constructor:function(r,n){t.Credentials.call(this),this.loadMasterCredentials(n),this.expired=!0,this.params=r||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.masterCredentials.get(function(){n.service.config.credentials=n.masterCredentials,(n.params.RoleArn?n.service.assumeRole:n.service.getSessionToken).call(n.service,function(u,e){u||n.service.credentialsFrom(e,n),r(u)})})},loadMasterCredentials:function(r){for(this.masterCredentials=r||t.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new t.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new w({params:this.params})}})},42966:(ce,k,p)=>{var t=p(497),w=p(48020);t.WebIdentityCredentials=t.util.inherit(t.Credentials,{constructor:function(r,n){t.Credentials.call(this),this.expired=!0,this.params=r,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=t.util.copy(n||{})},refresh:function(r){this.coalesceRefresh(r||t.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithWebIdentity(function(a,u){n.data=null,a||(n.data=u,n.service.credentialsFrom(u,n)),r(a)})},createClients:function(){if(!this.service){var d=t.util.merge({},this._clientConfig);d.params=this.params,this.service=new w(d)}}})},47315:(ce,k,p)=>{var t=p(497),w=p(33123),d=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function r(P){var C=P.service,D=C.api||{},Q={};return C.config.region&&(Q.region=C.config.region),D.serviceId&&(Q.serviceId=D.serviceId),C.config.credentials.accessKeyId&&(Q.accessKeyId=C.config.credentials.accessKeyId),Q}function n(P,C,D){!D||null==C||"structure"===D.type&&D.required&&D.required.length>0&&w.arrayEach(D.required,function(W){var Q=D.members[W];!0===Q.endpointDiscoveryId?P[Q.isLocationName?Q.name:W]=String(C[W]):n(P,C[W],Q)})}function a(P,C){var D={};return n(D,P.params,C),D}function u(P){var C=P.service,D=C.api,W=D.operations?D.operations[P.operation]:void 0,H=a(P,W?W.input:void 0),L=r(P);Object.keys(H).length>0&&(L=w.update(L,H),W&&(L.operation=W.name));var g=t.endpointCache.get(L);if(!g||1!==g.length||""!==g[0].Address)if(g&&g.length>0)P.httpRequest.updateEndpoint(g[0].Address);else{var R=C.makeRequest(D.endpointOperation,{Operation:W.name,Identifiers:H});s(R),R.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),R.removeListener("retry",t.EventListeners.Core.RETRY_CHECK),t.endpointCache.put(L,[{Address:"",CachePeriodInMinutes:1}]),R.send(function(c,_){_&&_.Endpoints?t.endpointCache.put(L,_.Endpoints):c&&t.endpointCache.put(L,[{Address:"",CachePeriodInMinutes:1}])})}}var e={};function i(P,C){var D=P.service,W=D.api,Q=W.operations?W.operations[P.operation]:void 0,L=a(P,Q?Q.input:void 0),g=r(P);Object.keys(L).length>0&&(g=w.update(g,L),Q&&(g.operation=Q.name));var R=t.EndpointCache.getKeyString(g),c=t.endpointCache.get(R);if(c&&1===c.length&&""===c[0].Address)return e[R]||(e[R]=[]),void e[R].push({request:P,callback:C});if(c&&c.length>0)P.httpRequest.updateEndpoint(c[0].Address),C();else{var _=D.makeRequest(W.endpointOperation,{Operation:Q.name,Identifiers:L});_.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),s(_),t.endpointCache.put(R,[{Address:"",CachePeriodInMinutes:60}]),_.send(function(l,T){l?(P.response.error=w.error(l,{retryable:!1}),t.endpointCache.remove(g),e[R]&&(w.arrayEach(e[R],function(U){U.request.response.error=w.error(l,{retryable:!1}),U.callback()}),delete e[R])):T&&(t.endpointCache.put(R,T.Endpoints),P.httpRequest.updateEndpoint(T.Endpoints[0].Address),e[R])&&(w.arrayEach(e[R],function(z){z.request.httpRequest.updateEndpoint(T.Endpoints[0].Address),z.callback()}),delete e[R]),C()})}}function s(P){var D=P.service.api.apiVersion;D&&!P.httpRequest.headers["x-amz-api-version"]&&(P.httpRequest.headers["x-amz-api-version"]=D)}function h(P){var C=P.error;if(C&&("InvalidEndpointException"===C.code||421===P.httpResponse.statusCode)){var W=P.request,Q=W.service.api.operations||{},L=a(W,Q[W.operation]?Q[W.operation].input:void 0),g=r(W);Object.keys(L).length>0&&(g=w.update(g,L),Q[W.operation]&&(g.operation=Q[W.operation].name)),t.endpointCache.remove(g)}}function m(P){return["false","0"].indexOf(P)>=0}ce.exports={discoverEndpoint:function M(P,C){var D=P.service||{};if(function y(P){if(P._originalConfig&&P._originalConfig.endpoint&&!0===P._originalConfig.endpointDiscoveryEnabled)throw w.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(t.config.endpoint||(t.config[P.serviceIdentifier]||{}).endpoint||P._originalConfig&&P._originalConfig.endpoint)}(D)||P.isPresigned())return C();var Q=(D.api.operations||{})[P.operation],H=Q?Q.endpointDiscoveryRequired:"NULL",L=function I(P){var C=P.service||{};if(void 0!==C.config.endpointDiscoveryEnabled)return C.config.endpointDiscoveryEnabled;if(!w.isBrowser()){for(var D=0;D<d.length;D++){var W=d[D];if(Object.prototype.hasOwnProperty.call(process.env,W)){if(""===process.env[W]||void 0===process.env[W])throw w.error(new Error,{code:"ConfigurationException",message:"environmental variable "+W+" cannot be set to nothing"});return!m(process.env[W])}}var Q={};try{Q=t.util.iniLoader?t.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[t.util.sharedConfigFileEnv]}):{}}catch{}var H=Q[process.env.AWS_PROFILE||t.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(H,"endpoint_discovery_enabled")){if(void 0===H.endpoint_discovery_enabled)throw w.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!m(H.endpoint_discovery_enabled)}}}(P),g=D.api.hasRequiredEndpointDiscovery;switch((L||g)&&P.httpRequest.appendToUserAgent("endpoint-discovery"),H){case"OPTIONAL":(L||g)&&(u(P),P.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h)),C();break;case"REQUIRED":if(!1===L){P.response.error=w.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+D.api.className+"."+P.operation+"() requires it. Please check your configurations."}),C();break}P.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h),i(P,C);break;default:C()}},requiredDiscoverEndpoint:i,optionalDiscoverEndpoint:u,marshallCustomIdentifiers:a,getCacheKey:r,invalidateCachedEndpoint:h}},77171:(ce,k,p)=>{var t=p(64877).eventMessageChunker,w=p(76506).parseEvent;ce.exports={createEventStream:function d(r,n,a){for(var u=t(r),e=[],i=0;i<u.length;i++)e.push(w(n,u[i],a));return e}}},64877:ce=>{ce.exports={eventMessageChunker:function k(p){for(var t=[],w=0;w<p.length;){var d=p.readInt32BE(w),r=p.slice(w,d+w);w+=d,t.push(r)}return t}}},17168:(ce,k,p)=>{var t=p(497).util,w=t.buffer.toBuffer;function d(n){if(8!==n.length)throw new Error("Int64 buffers must be exactly 8 bytes");t.Buffer.isBuffer(n)||(n=w(n)),this.bytes=n}function r(n){for(var a=0;a<8;a++)n[a]^=255;for(a=7;a>-1&&(n[a]++,0===n[a]);a--);}d.fromNumber=function(n){if(n>0x8000000000000000||n<-0x8000000000000000)throw new Error(n+" is too large (or, if negative, too small) to represent as an Int64");for(var a=new Uint8Array(8),u=7,e=Math.abs(Math.round(n));u>-1&&e>0;u--,e/=256)a[u]=e;return n<0&&r(a),new d(a)},d.prototype.valueOf=function(){var n=this.bytes.slice(0),a=128&n[0];return a&&r(n),parseInt(n.toString("hex"),16)*(a?-1:1)},d.prototype.toString=function(){return String(this.valueOf())},ce.exports={Int64:d}},76506:(ce,k,p)=>{var t=p(69081).parseMessage;ce.exports={parseEvent:function w(r,n,a){var u=t(n),e=u.headers[":message-type"];if(e){if("error"===e.value)throw function d(r){var n=r.headers[":error-code"],a=r.headers[":error-message"],u=new Error(a.value||a);return u.code=u.name=n.value||n,u}(u);if("event"!==e.value)return}var i=u.headers[":event-type"],s=a.members[i.value];if(s){var h={},y=s.eventPayloadMemberName;if(y){var m=s.members[y];h[y]="binary"===m.type?u.body:r.parse(u.body.toString(),m)}for(var I=s.eventHeaderMemberNames,M=0;M<I.length;M++){var P=I[M];u.headers[P]&&(h[P]=s.members[P].toType(u.headers[P].value))}var C={};return C[i.value]=h,C}}}},69081:(ce,k,p)=>{var t=p(17168).Int64,w=p(15228).splitMessage,d="boolean",r="byte",n="short",a="integer",u="long",e="binary",i="string",s="timestamp",h="uuid";function y(I){for(var M={},P=0;P<I.length;){var C=I.readUInt8(P++),D=I.slice(P,P+C).toString();switch(P+=C,I.readUInt8(P++)){case 0:M[D]={type:d,value:!0};break;case 1:M[D]={type:d,value:!1};break;case 2:M[D]={type:r,value:I.readInt8(P++)};break;case 3:M[D]={type:n,value:I.readInt16BE(P)},P+=2;break;case 4:M[D]={type:a,value:I.readInt32BE(P)},P+=4;break;case 5:M[D]={type:u,value:new t(I.slice(P,P+8))},P+=8;break;case 6:var W=I.readUInt16BE(P);M[D]={type:e,value:I.slice(P+=2,P+W)},P+=W;break;case 7:var Q=I.readUInt16BE(P);M[D]={type:i,value:I.slice(P+=2,P+Q).toString()},P+=Q;break;case 8:M[D]={type:s,value:new Date(new t(I.slice(P,P+8)).valueOf())},P+=8;break;case 9:var H=I.slice(P,P+16).toString("hex");P+=16,M[D]={type:h,value:H.substr(0,8)+"-"+H.substr(8,4)+"-"+H.substr(12,4)+"-"+H.substr(16,4)+"-"+H.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return M}ce.exports={parseMessage:function m(I){var M=w(I);return{headers:y(M.headers),body:M.body}}}},15228:(ce,k,p)=>{var t=p(497).util,w=t.buffer.toBuffer;ce.exports={splitMessage:function u(e){if(t.Buffer.isBuffer(e)||(e=w(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var i=e.readUInt32BE(8);if(i!==t.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+i+") does not match the calculated CRC32 checksum.");var s=e.readUInt32BE(e.length-4);if(s!==t.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+s);var y=12+e.readUInt32BE(4);return{headers:e.slice(12,y),body:e.slice(y,e.length-4)}}}},68935:(ce,k,p)=>{var t=p(497),w=p(35215),d=p(47315).discoverEndpoint;t.EventListeners={Core:{}},t.EventListeners={Core:(new w).addNamedListeners(function(n,a){a("VALIDATE_CREDENTIALS","validate",function(i,s){if(!i.service.api.signatureVersion&&!i.service.config.signatureVersion)return s();i.service.config.getCredentials(function(h){h&&(i.response.error=t.util.error(h,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),s()})}),n("VALIDATE_REGION","validate",function(i){if(!i.service.isGlobalEndpoint){var s=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);i.service.config.region?s.test(i.service.config.region)||(i.response.error=t.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):i.response.error=t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),n("BUILD_IDEMPOTENCY_TOKENS","validate",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation];if(s){var h=s.idempotentMembers;if(h.length){for(var y=t.util.copy(i.params),m=0,I=h.length;m<I;m++)y[h[m]]||(y[h[m]]=t.util.uuid.v4());i.params=y}}}}),n("VALIDATE_PARAMETERS","validate",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation].input;new t.ParamValidator(i.service.config.paramValidation).validate(s,i.params)}}),n("COMPUTE_CHECKSUM","afterBuild",function(i){if(i.service.api.operations){var s=i.service.api.operations[i.operation];if(s){var h=i.httpRequest.body,y=h&&(t.util.Buffer.isBuffer(h)||"string"==typeof h),m=i.httpRequest.headers;if(s.httpChecksumRequired&&i.service.config.computeChecksums&&y&&!m["Content-MD5"]){var I=t.util.crypto.md5(h,"base64");m["Content-MD5"]=I}}}}),a("COMPUTE_SHA256","afterBuild",function(i,s){if(i.haltHandlersOnError(),i.service.api.operations){var h=i.service.api.operations[i.operation],y=h?h.authtype:"";if(!i.service.api.signatureVersion&&!y&&!i.service.config.signatureVersion)return s();if(i.service.getSignerClass(i)===t.Signers.V4){var m=i.httpRequest.body||"";if(y.indexOf("unsigned-body")>=0)return i.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",s();t.util.computeSha256(m,function(I,M){I?s(I):(i.httpRequest.headers["X-Amz-Content-Sha256"]=M,s())})}else s()}}),n("SET_CONTENT_LENGTH","afterBuild",function(i){var s=function r(n){if(!n.service.api.operations)return"";var a=n.service.api.operations[n.operation];return a?a.authtype:""}(i),h=t.util.getRequestPayloadShape(i);if(void 0===i.httpRequest.headers["Content-Length"])try{var y=t.util.string.byteLength(i.httpRequest.body);i.httpRequest.headers["Content-Length"]=y}catch(m){if(h&&h.isStreaming){if(h.requiresLength)throw m;if(s.indexOf("unsigned-body")>=0)return void(i.httpRequest.headers["Transfer-Encoding"]="chunked");throw m}throw m}}),n("SET_HTTP_HOST","afterBuild",function(i){i.httpRequest.headers.Host=i.httpRequest.endpoint.host}),n("SET_TRACE_ID","afterBuild",function(i){var s="X-Amzn-Trace-Id";if(t.util.isNode()&&!Object.hasOwnProperty.call(i.httpRequest.headers,s)){var m=process.env.AWS_LAMBDA_FUNCTION_NAME,I=process.env._X_AMZN_TRACE_ID;"string"==typeof m&&m.length>0&&"string"==typeof I&&I.length>0&&(i.httpRequest.headers[s]=I)}}),n("RESTART","restart",function(){var i=this.response.error;!i||!i.retryable||(this.httpRequest=new t.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),a("DISCOVER_ENDPOINT","sign",d,!0),a("SIGN","sign",function(i,s){var h=i.service,m=(i.service.api.operations||{})[i.operation];if(!(h.api.signatureVersion||m&&m.authtype||h.config.signatureVersion))return s();h.config.getCredentials(function(M,P){if(M)return i.response.error=M,s();try{var C=h.getSkewCorrectedDate(),W=new(h.getSignerClass(i))(i.httpRequest,h.getSigningName(i),{signatureCache:h.config.signatureCache,operation:m,signatureVersion:h.api.signatureVersion});W.setServiceClientId(h._clientId),delete i.httpRequest.headers.Authorization,delete i.httpRequest.headers.Date,delete i.httpRequest.headers["X-Amz-Date"],W.addAuthorization(P,C),i.signedAt=C}catch(Q){i.response.error=Q}s()})}),n("VALIDATE_RESPONSE","validateResponse",function(i){this.service.successfulResponse(i,this)?(i.data={},i.error=null):(i.data=null,i.error=t.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),n("ERROR","error",function(i,s){var h=s.request.service.api.errorCodeMapping;if(h&&i&&i.code){var y=h[i.code];y&&(s.error.code=y.code)}},!0),a("SEND","send",function(i,s){function h(P){i.httpResponse.stream=P;var C=i.request.httpRequest.stream,D=i.request.service,H=D.api.operations[i.request.operation]||{};P.on("headers",function(g,R,c){if(i.request.emit("httpHeaders",[g,R,i,c]),!i.httpResponse.streaming)if(2===t.HttpClient.streamsApiVersion){if(H.hasEventOutput&&D.successfulResponse(i))return i.request.emit("httpDone"),void s();P.on("readable",function(){var l=P.read();null!==l&&i.request.emit("httpData",[l,i])})}else P.on("data",function(l){i.request.emit("httpData",[l,i])})}),P.on("end",function(){if(!C||!C.didCallback){if(2===t.HttpClient.streamsApiVersion&&H.hasEventOutput&&D.successfulResponse(i))return;i.request.emit("httpDone"),s()}})}function m(P){"RequestAbortedError"!==P.code&&(P=t.util.error(P,{code:"TimeoutError"===P.code?P.code:"NetworkingError",region:i.request.httpRequest.region,hostname:i.request.httpRequest.endpoint.hostname,retryable:!0})),i.error=P,i.request.emit("httpError",[i.error,i],function(){s()})}function I(){var P=t.HttpClient.getInstance(),C=i.request.service.config.httpOptions||{};try{!function y(P){P.on("sendProgress",function(D){i.request.emit("httpUploadProgress",[D,i])}),P.on("receiveProgress",function(D){i.request.emit("httpDownloadProgress",[D,i])})}(P.handleRequest(i.request.httpRequest,C,h,m))}catch(W){m(W)}}i.httpResponse._abortCallback=s,i.error=null,i.data=null,(i.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(P){P?s(P):I()}):I()}),n("HTTP_HEADERS","httpHeaders",function(i,s,h,y){h.httpResponse.statusCode=i,h.httpResponse.statusMessage=y,h.httpResponse.headers=s,h.httpResponse.body=t.util.buffer.toBuffer(""),h.httpResponse.buffers=[],h.httpResponse.numBytes=0;var m=s.date||s.Date,I=h.request.service;if(m){var M=Date.parse(m);I.config.correctClockSkew&&I.isClockSkewed(M)&&I.applyClockOffset(M)}}),n("HTTP_DATA","httpData",function(i,s){i&&(t.util.isNode()&&(s.httpResponse.numBytes+=i.length,s.request.emit("httpDownloadProgress",[{loaded:s.httpResponse.numBytes,total:s.httpResponse.headers["content-length"]},s])),s.httpResponse.buffers.push(t.util.buffer.toBuffer(i)))}),n("HTTP_DONE","httpDone",function(i){if(i.httpResponse.buffers&&i.httpResponse.buffers.length>0){var s=t.util.buffer.concat(i.httpResponse.buffers);i.httpResponse.body=s}delete i.httpResponse.numBytes,delete i.httpResponse.buffers}),n("FINALIZE_ERROR","retry",function(i){i.httpResponse.statusCode&&(i.error.statusCode=i.httpResponse.statusCode,void 0===i.error.retryable&&(i.error.retryable=this.service.retryableError(i.error,this)))}),n("INVALIDATE_CREDENTIALS","retry",function(i){if(i.error)switch(i.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":i.error.retryable=!0,i.request.service.config.credentials.expired=!0}}),n("EXPIRED_SIGNATURE","retry",function(i){var s=i.error;s&&"string"==typeof s.code&&"string"==typeof s.message&&s.code.match(/Signature/)&&s.message.match(/expired/)&&(i.error.retryable=!0)}),n("CLOCK_SKEWED","retry",function(i){i.error&&this.service.clockSkewError(i.error)&&this.service.config.correctClockSkew&&(i.error.retryable=!0)}),n("REDIRECT","retry",function(i){i.error&&i.error.statusCode>=300&&i.error.statusCode<400&&i.httpResponse.headers.location&&(this.httpRequest.endpoint=new t.Endpoint(i.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,i.error.redirect=!0,i.error.retryable=!0)}),n("RETRY_CHECK","retry",function(i){i.error&&(i.error.redirect&&i.redirectCount<i.maxRedirects?i.error.retryDelay=0:i.retryCount<i.maxRetries&&(i.error.retryDelay=this.service.retryDelays(i.retryCount,i.error)||0))}),a("RESET_RETRY_STATE","afterRetry",function(i,s){var h,y=!1;i.error&&(h=i.error.retryDelay||0,i.error.retryable&&i.retryCount<i.maxRetries?(i.retryCount++,y=!0):i.error.redirect&&i.redirectCount<i.maxRedirects&&(i.redirectCount++,y=!0)),y&&h>=0?(i.error=null,setTimeout(s,h)):s()})}),CorePost:(new w).addNamedListeners(function(n){n("EXTRACT_REQUEST_ID","extractData",t.util.extractRequestId),n("EXTRACT_REQUEST_ID","extractError",t.util.extractRequestId),n("ENOTFOUND_ERROR","httpError",function(u){"NetworkingError"===u.code&&function e(s){return"ENOTFOUND"===s.errno||"number"==typeof s.errno&&"function"==typeof t.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(t.util.getSystemErrorName(s.errno)>=0)}(u)&&(this.response.error=t.util.error(new Error("Inaccessible host: `"+u.hostname+"' at port `"+u.port+"'. This service may not be available in the `"+u.region+"' region."),{code:"UnknownEndpoint",region:u.region,hostname:u.hostname,retryable:!0,originalError:u}))})}),Logger:(new w).addNamedListeners(function(n){n("LOG_REQUEST","complete",function(u){var e=u.request,i=e.service.config.logger;if(i){var y=function h(){var I=(u.request.service.getSkewCorrectedDate().getTime()-e.startTime.getTime())/1e3,M=!!i.isTTY,P=u.httpResponse.statusCode,C=e.params;e.service.api.operations&&e.service.api.operations[e.operation]&&e.service.api.operations[e.operation].input&&(C=s(e.service.api.operations[e.operation].input,e.params));var W=p(29296).inspect(C,!0,null),Q="";return M&&(Q+="\x1b[33m"),Q+="[AWS "+e.service.serviceIdentifier+" "+P,Q+=" "+I.toString()+"s "+u.retryCount+" retries]",M&&(Q+="\x1b[0;1m"),Q+=" "+t.util.string.lowerFirst(e.operation),Q+="("+W+")",M&&(Q+="\x1b[0m"),Q}();"function"==typeof i.log?i.log(y):"function"==typeof i.write&&i.write(y+"\n")}function s(m,I){if(!I)return I;if(m.isSensitive)return"***SensitiveInformation***";switch(m.type){case"structure":var M={};return t.util.each(I,function(D,W){M[D]=Object.prototype.hasOwnProperty.call(m.members,D)?s(m.members[D],W):W}),M;case"list":var P=[];return t.util.arrayEach(I,function(D,W){P.push(s(m.member,D))}),P;case"map":var C={};return t.util.each(I,function(D,W){C[D]=s(m.value,W)}),C;default:return I}}})}),Json:(new w).addNamedListeners(function(n){var a=p(44566);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),Rest:(new w).addNamedListeners(function(n){var a=p(41956);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),RestJson:(new w).addNamedListeners(function(n){var a=p(97969);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),RestXml:(new w).addNamedListeners(function(n){var a=p(26129);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)}),Query:(new w).addNamedListeners(function(n){var a=p(83839);n("BUILD","build",a.buildRequest),n("EXTRACT_DATA","extractData",a.extractData),n("EXTRACT_ERROR","extractError",a.extractError)})}},11202:(ce,k,p)=>{var t=p(497),w=t.util.inherit;t.Endpoint=w({constructor:function(r,n){if(t.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof r>"u"||null===r)throw new Error("Invalid endpoint: "+r);if("string"!=typeof r)return t.util.copy(r);r.match(/^http/)||(r=((n&&void 0!==n.sslEnabled?n.sslEnabled:t.config.sslEnabled)?"https":"http")+"://"+r),t.util.update(this,t.util.urlParse(r)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),t.HttpRequest=w({constructor:function(r,n){r=new t.Endpoint(r),this.method="POST",this.path=r.path||"/",this.headers={},this.body="",this.endpoint=r,this.region=n,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=t.util.userAgent()},getUserAgentHeaderName:function(){return(t.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(r){"string"==typeof r&&r&&(this._userAgent+=" "+r),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var r=this.path.split("?",2)[1];return r?(r=t.util.queryStringParse(r),t.util.queryParamsToString(r)):""},updateEndpoint:function(r){var n=new t.Endpoint(r);this.endpoint=n,this.path=n.path||"/",this.headers.Host&&(this.headers.Host=n.host)}}),t.HttpResponse=w({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),t.HttpClient=w({}),t.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},41967:(ce,k,p)=>{var t=p(497),w=p(85459).EventEmitter;p(11202),t.XHRClient=t.util.inherit({handleRequest:function(r,n,a,u){var e=this,i=r.endpoint,s=new w,h=i.protocol+"//"+i.hostname;80!==i.port&&443!==i.port&&(h+=":"+i.port),h+=r.path;var y=new XMLHttpRequest,m=!1;r.stream=y,y.addEventListener("readystatechange",function(){try{if(0===y.status)return}catch{return}this.readyState>=this.HEADERS_RECEIVED&&!m&&(s.statusCode=y.status,s.headers=e.parseHeaders(y.getAllResponseHeaders()),s.emit("headers",s.statusCode,s.headers,y.statusText),m=!0),this.readyState===this.DONE&&e.finishRequest(y,s)},!1),y.upload.addEventListener("progress",function(I){s.emit("sendProgress",I)}),y.addEventListener("progress",function(I){s.emit("receiveProgress",I)},!1),y.addEventListener("timeout",function(){u(t.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),y.addEventListener("error",function(){u(t.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),y.addEventListener("abort",function(){u(t.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),a(s),y.open(r.method,h,!1!==n.xhrAsync),t.util.each(r.headers,function(I,M){"Content-Length"!==I&&"User-Agent"!==I&&"Host"!==I&&y.setRequestHeader(I,M)}),n.timeout&&!1!==n.xhrAsync&&(y.timeout=n.timeout),n.xhrWithCredentials&&(y.withCredentials=!0);try{y.responseType="arraybuffer"}catch{}try{r.body?y.send(r.body):y.send()}catch(I){if(!r.body||"object"!=typeof r.body.buffer)throw I;y.send(r.body.buffer)}return s},parseHeaders:function(r){var n={};return t.util.arrayEach(r.split(/\r?\n/),function(a){var u=a.split(":",1)[0],e=a.substring(u.length+2);u.length>0&&(n[u.toLowerCase()]=e)}),n},finishRequest:function(r,n){var a;if("arraybuffer"===r.responseType&&r.response){var u=r.response;a=new t.util.Buffer(u.byteLength);for(var e=new Uint8Array(u),i=0;i<a.length;++i)a[i]=e[i]}try{!a&&"string"==typeof r.responseText&&(a=new t.util.Buffer(r.responseText))}catch{}a&&n.emit("data",a),n.emit("end")}}),t.HttpClient.prototype=t.XHRClient.prototype,t.HttpClient.streamsApiVersion=1},52933:(ce,k,p)=>{var t=p(33123);function w(){}function d(e,i){if(i&&null!=e)switch(i.type){case"structure":return function r(e,i){if(i.isDocument)return e;var s={};return t.each(e,function(h,y){var m=i.members[h];if(m){if("body"!==m.location)return;var I=m.isLocationName?m.name:h,M=d(y,m);void 0!==M&&(s[I]=M)}}),s}(e,i);case"map":return function a(e,i){var s={};return t.each(e,function(h,y){var m=d(y,i.value);void 0!==m&&(s[h]=m)}),s}(e,i);case"list":return function n(e,i){var s=[];return t.arrayEach(e,function(h){var y=d(h,i.member);void 0!==y&&s.push(y)}),s}(e,i);default:return function u(e,i){return i.toWireFormat(e)}(e,i)}}w.prototype.build=function(e,i){return JSON.stringify(d(e,i))},ce.exports=w},36040:(ce,k,p)=>{var t=p(33123);function w(){}function d(e,i){if(i&&void 0!==e)switch(i.type){case"structure":return function r(e,i){if(null!=e){if(i.isDocument)return e;var s={};return t.each(i.members,function(y,m){var I=m.isLocationName?m.name:y;if(Object.prototype.hasOwnProperty.call(e,I)){var P=d(e[I],m);void 0!==P&&(s[y]=P)}}),s}}(e,i);case"map":return function a(e,i){if(null!=e){var s={};return t.each(e,function(h,y){var m=d(y,i.value);s[h]=void 0===m?null:m}),s}}(e,i);case"list":return function n(e,i){if(null!=e){var s=[];return t.arrayEach(e,function(h){var y=d(h,i.member);s.push(void 0===y?null:y)}),s}}(e,i);default:return function u(e,i){return i.toType(e)}(e,i)}}w.prototype.parse=function(e,i){return d(JSON.parse(e),i)},ce.exports=w},17986:(ce,k,p)=>{var t=p(46015),w=p(80611),d=p(17680),r=p(27705),n=p(67805),a=p(6839),u=p(33123),e=u.property,i=u.memoizedProperty;ce.exports=function s(h,y){var m=this;h=h||{},(y=y||{}).api=this,h.metadata=h.metadata||{};var I=y.serviceIdentifier;delete y.serviceIdentifier,e(this,"isApi",!0,!1),e(this,"apiVersion",h.metadata.apiVersion),e(this,"endpointPrefix",h.metadata.endpointPrefix),e(this,"signingName",h.metadata.signingName),e(this,"globalEndpoint",h.metadata.globalEndpoint),e(this,"signatureVersion",h.metadata.signatureVersion),e(this,"jsonVersion",h.metadata.jsonVersion),e(this,"targetPrefix",h.metadata.targetPrefix),e(this,"protocol",h.metadata.protocol),e(this,"timestampFormat",h.metadata.timestampFormat),e(this,"xmlNamespaceUri",h.metadata.xmlNamespace),e(this,"abbreviation",h.metadata.serviceAbbreviation),e(this,"fullName",h.metadata.serviceFullName),e(this,"serviceId",h.metadata.serviceId),I&&a[I]&&e(this,"xmlNoDefaultLists",a[I].xmlNoDefaultLists,!1),i(this,"className",function(){var P=h.metadata.serviceAbbreviation||h.metadata.serviceFullName;return P?("ElasticLoadBalancing"===(P=P.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(P="ELB"),P):null}),e(this,"operations",new t(h.operations,y,function(P,C){return new w(P,C,y)},u.string.lowerFirst,function M(P,C){!0===C.endpointoperation&&e(m,"endpointOperation",u.string.lowerFirst(P)),C.endpointdiscovery&&!m.hasRequiredEndpointDiscovery&&e(m,"hasRequiredEndpointDiscovery",!0===C.endpointdiscovery.required)})),e(this,"shapes",new t(h.shapes,y,function(P,C){return d.create(C,y)})),e(this,"paginators",new t(h.paginators,y,function(P,C){return new r(P,C,y)})),e(this,"waiters",new t(h.waiters,y,function(P,C){return new n(P,C,y)},u.string.lowerFirst)),y.documentation&&(e(this,"documentation",h.documentation),e(this,"documentationUrl",h.documentationUrl)),e(this,"errorCodeMapping",h.awsQueryCompatible)}},46015:(ce,k,p)=>{var t=p(33123).memoizedProperty;function w(r,n,a,u){t(this,u(r),function(){return a(r,n)})}ce.exports=function d(r,n,a,u,e){for(var s in u=u||String,r)Object.prototype.hasOwnProperty.call(r,s)&&(w.call(this,s,r[s],a,u),e&&e(s,r[s]))}},80611:(ce,k,p)=>{var t=p(17680),w=p(33123),d=w.property,r=w.memoizedProperty;ce.exports=function n(u,e,i){var s=this;i=i||{},d(this,"name",e.name||u),d(this,"api",i.api,!1),e.http=e.http||{},d(this,"endpoint",e.endpoint),d(this,"httpMethod",e.http.method||"POST"),d(this,"httpPath",e.http.requestUri||"/"),d(this,"authtype",e.authtype||""),d(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),d(this,"httpChecksumRequired",e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired,!1),r(this,"input",function(){return e.input?t.create(e.input,i):new t.create({type:"structure"},i)}),r(this,"output",function(){return e.output?t.create(e.output,i):new t.create({type:"structure"},i)}),r(this,"errors",function(){var y=[];if(!e.errors)return null;for(var m=0;m<e.errors.length;m++)y.push(t.create(e.errors[m],i));return y}),r(this,"paginator",function(){return i.api.paginators[u]}),i.documentation&&(d(this,"documentation",e.documentation),d(this,"documentationUrl",e.documentationUrl)),r(this,"idempotentMembers",function(){var y=[],m=s.input,I=m.members;if(!m.members)return y;for(var M in I)I.hasOwnProperty(M)&&!0===I[M].isIdempotent&&y.push(M);return y}),r(this,"hasEventOutput",function(){return function a(u){var e=u.members,i=u.payload;if(!u.members)return!1;if(i)return e[i].isEventStream;for(var h in e)if(!e.hasOwnProperty(h)&&!0===e[h].isEventStream)return!0;return!1}(s.output)})}},27705:(ce,k,p)=>{var t=p(33123).property;ce.exports=function w(d,r){t(this,"inputToken",r.input_token),t(this,"limitKey",r.limit_key),t(this,"moreResults",r.more_results),t(this,"outputToken",r.output_token),t(this,"resultKey",r.result_key)}},67805:(ce,k,p)=>{var t=p(33123),w=t.property;ce.exports=function d(r,n,a){a=a||{},w(this,"name",r),w(this,"api",a.api,!1),n.operation&&w(this,"operation",t.string.lowerFirst(n.operation));var u=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(i){var s=n[i];s&&w(u,i,s)})}},17680:(ce,k,p)=>{var t=p(46015),w=p(33123);function d(C,D,W){null!=W&&w.property.apply(this,arguments)}function r(C,D){C.constructor.prototype[D]||w.memoizedProperty.apply(this,arguments)}function n(C,D,W){D=D||{},d(this,"shape",C.shape),d(this,"api",D.api,!1),d(this,"type",C.type),d(this,"enum",C.enum),d(this,"min",C.min),d(this,"max",C.max),d(this,"pattern",C.pattern),d(this,"location",C.location||this.location||"body"),d(this,"name",this.name||C.xmlName||C.queryName||C.locationName||W),d(this,"isStreaming",C.streaming||this.isStreaming||!1),d(this,"requiresLength",C.requiresLength,!1),d(this,"isComposite",C.isComposite||!1),d(this,"isShape",!0,!1),d(this,"isQueryName",Boolean(C.queryName),!1),d(this,"isLocationName",Boolean(C.locationName),!1),d(this,"isIdempotent",!0===C.idempotencyToken),d(this,"isJsonValue",!0===C.jsonvalue),d(this,"isSensitive",!0===C.sensitive||C.prototype&&!0===C.prototype.sensitive),d(this,"isEventStream",Boolean(C.eventstream),!1),d(this,"isEvent",Boolean(C.event),!1),d(this,"isEventPayload",Boolean(C.eventpayload),!1),d(this,"isEventHeader",Boolean(C.eventheader),!1),d(this,"isTimestampFormatSet",Boolean(C.timestampFormat)||C.prototype&&!0===C.prototype.isTimestampFormatSet,!1),d(this,"endpointDiscoveryId",Boolean(C.endpointdiscoveryid),!1),d(this,"hostLabel",Boolean(C.hostLabel),!1),D.documentation&&(d(this,"documentation",C.documentation),d(this,"documentationUrl",C.documentationUrl)),C.xmlAttribute&&d(this,"isXmlAttribute",C.xmlAttribute||!1),d(this,"defaultValue",null),this.toWireFormat=function(Q){return Q??""},this.toType=function(Q){return Q}}function a(C){n.apply(this,arguments),d(this,"isComposite",!0),C.flattened&&d(this,"flattened",C.flattened||!1)}function u(C,D){var W=this,Q=null,H=!this.isShape;a.apply(this,arguments),H&&(d(this,"defaultValue",function(){return{}}),d(this,"members",{}),d(this,"memberNames",[]),d(this,"required",[]),d(this,"isRequired",function(){return!1}),d(this,"isDocument",Boolean(C.document))),C.members&&(d(this,"members",new t(C.members,D,function(L,g){return n.create(g,D,L)})),r(this,"memberNames",function(){return C.xmlOrder||Object.keys(C.members)}),C.event&&(r(this,"eventPayloadMemberName",function(){for(var L=W.members,g=W.memberNames,R=0,c=g.length;R<c;R++)if(L[g[R]].isEventPayload)return g[R]}),r(this,"eventHeaderMemberNames",function(){for(var L=W.members,g=W.memberNames,R=[],c=0,_=g.length;c<_;c++)L[g[c]].isEventHeader&&R.push(g[c]);return R}))),C.required&&(d(this,"required",C.required),d(this,"isRequired",function(L){if(!Q){Q={};for(var g=0;g<C.required.length;g++)Q[C.required[g]]=!0}return Q[L]},!1,!0)),d(this,"resultWrapper",C.resultWrapper||null),C.payload&&d(this,"payload",C.payload),"string"==typeof C.xmlNamespace?d(this,"xmlNamespaceUri",C.xmlNamespace):"object"==typeof C.xmlNamespace&&(d(this,"xmlNamespacePrefix",C.xmlNamespace.prefix),d(this,"xmlNamespaceUri",C.xmlNamespace.uri))}function e(C,D){var W=this,Q=!this.isShape;if(a.apply(this,arguments),Q&&d(this,"defaultValue",function(){return[]}),C.member&&r(this,"member",function(){return n.create(C.member,D)}),this.flattened){var H=this.name;r(this,"name",function(){return W.member.name||H})}}function i(C,D){var W=!this.isShape;a.apply(this,arguments),W&&(d(this,"defaultValue",function(){return{}}),d(this,"key",n.create({type:"string"},D)),d(this,"value",n.create({type:"string"},D))),C.key&&r(this,"key",function(){return n.create(C.key,D)}),C.value&&r(this,"value",function(){return n.create(C.value,D)})}function h(){n.apply(this,arguments);var C=["rest-xml","query","ec2"];this.toType=function(D){return D=this.api&&C.indexOf(this.api.protocol)>-1?D||"":D,this.isJsonValue?JSON.parse(D):D&&"function"==typeof D.toString?D.toString():D},this.toWireFormat=function(D){return this.isJsonValue?JSON.stringify(D):D}}function I(){n.apply(this,arguments),this.toType=function(C){var D=w.base64.decode(C);if(this.isSensitive&&w.isNode()&&"function"==typeof w.Buffer.alloc){var W=w.Buffer.alloc(D.length,D);D.fill(0),D=W}return D},this.toWireFormat=w.base64.encode}function M(){I.apply(this,arguments)}function P(){n.apply(this,arguments),this.toType=function(C){return"boolean"==typeof C?C:null==C?null:"true"===C}}n.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},n.types={structure:u,list:e,map:i,boolean:P,timestamp:function s(C){var D=this;if(n.apply(this,arguments),C.timestampFormat)d(this,"timestampFormat",C.timestampFormat);else if(D.isTimestampFormatSet&&this.timestampFormat)d(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)d(this,"timestampFormat","rfc822");else if("querystring"===this.location)d(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":d(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":d(this,"timestampFormat","iso8601")}this.toType=function(W){return null==W?null:"function"==typeof W.toUTCString?W:"string"==typeof W||"number"==typeof W?w.date.parseTimestamp(W):null},this.toWireFormat=function(W){return w.date.format(W,D.timestampFormat)}},float:function y(){n.apply(this,arguments),this.toType=function(C){return null==C?null:parseFloat(C)},this.toWireFormat=this.toType},integer:function m(){n.apply(this,arguments),this.toType=function(C){return null==C?null:parseInt(C,10)},this.toWireFormat=this.toType},string:h,base64:M,binary:I},n.resolve=function(D,W){if(D.shape){var Q=W.api.shapes[D.shape];if(!Q)throw new Error("Cannot find shape reference: "+D.shape);return Q}return null},n.create=function(D,W,Q){if(D.isShape)return D;var H=n.resolve(D,W);if(H){var L=Object.keys(D);W.documentation||(L=L.filter(function(c){return!c.match(/documentation/)}));var g=function(){H.constructor.call(this,D,W,Q)};return g.prototype=H,new g}D.type||(D.type=D.members?"structure":D.member?"list":D.key?"map":"string");var R=D.type;if(n.normalizedTypes[D.type]&&(D.type=n.normalizedTypes[D.type]),n.types[D.type])return new n.types[D.type](D,W,Q);throw new Error("Unrecognized shape type: "+R)},n.shapes={StructureShape:u,ListShape:e,MapShape:i,StringShape:h,BooleanShape:P,Base64Shape:M},ce.exports=n},41440:(ce,k,p)=>{var t=p(497);t.ParamValidator=t.util.inherit({constructor:function(d){(!0===d||void 0===d)&&(d={min:!0}),this.validation=d},validate:function(d,r,n){if(this.errors=[],this.validateMember(d,r||{},n||"params"),this.errors.length>1){var a=this.errors.join("\n* ");throw a="There were "+this.errors.length+" validation errors:\n* "+a,t.util.error(new Error(a),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(d,r){this.errors.push(t.util.error(new Error(r),{code:d}))},validateStructure:function(d,r,n){if(d.isDocument)return!0;this.validateType(r,n,["object"],"structure");for(var a,u=0;d.required&&u<d.required.length;u++)null==r[a=d.required[u]]&&this.fail("MissingRequiredParameter","Missing required key '"+a+"' in "+n);for(a in r)if(Object.prototype.hasOwnProperty.call(r,a)){var i=r[a],s=d.members[a];if(void 0!==s){var h=[n,a].join(".");this.validateMember(s,i,h)}else null!=i&&this.fail("UnexpectedParameter","Unexpected key '"+a+"' found in "+n)}return!0},validateMember:function(d,r,n){switch(d.type){case"structure":return this.validateStructure(d,r,n);case"list":return this.validateList(d,r,n);case"map":return this.validateMap(d,r,n);default:return this.validateScalar(d,r,n)}},validateList:function(d,r,n){if(this.validateType(r,n,[Array])){this.validateRange(d,r.length,n,"list member count");for(var a=0;a<r.length;a++)this.validateMember(d.member,r[a],n+"["+a+"]")}},validateMap:function(d,r,n){if(this.validateType(r,n,["object"],"map")){var a=0;for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(this.validateMember(d.key,u,n+"[key='"+u+"']"),this.validateMember(d.value,r[u],n+"['"+u+"']"),a++);this.validateRange(d,a,n,"map member count")}},validateScalar:function(d,r,n){switch(d.type){case null:case void 0:case"string":return this.validateString(d,r,n);case"base64":case"binary":return this.validatePayload(r,n);case"integer":case"float":return this.validateNumber(d,r,n);case"boolean":return this.validateType(r,n,["boolean"]);case"timestamp":return this.validateType(r,n,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+d.type+" for "+n)}},validateString:function(d,r,n){var a=["string"];d.isJsonValue&&(a=a.concat(["number","object","boolean"])),null!==r&&this.validateType(r,n,a)&&(this.validateEnum(d,r,n),this.validateRange(d,r.length,n,"string length"),this.validatePattern(d,r,n),this.validateUri(d,r,n))},validateUri:function(d,r,n){"uri"===d.location&&0===r.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+r+'" for '+n)},validatePattern:function(d,r,n){this.validation.pattern&&void 0!==d.pattern&&(new RegExp(d.pattern).test(r)||this.fail("PatternMatchError",'Provided value "'+r+'" does not match regex pattern /'+d.pattern+"/ for "+n))},validateRange:function(d,r,n,a){this.validation.min&&void 0!==d.min&&r<d.min&&this.fail("MinRangeError","Expected "+a+" >= "+d.min+", but found "+r+" for "+n),this.validation.max&&void 0!==d.max&&r>d.max&&this.fail("MaxRangeError","Expected "+a+" <= "+d.max+", but found "+r+" for "+n)},validateEnum:function(d,r,n){this.validation.enum&&void 0!==d.enum&&-1===d.enum.indexOf(r)&&this.fail("EnumError","Found string value of "+r+", but expected "+d.enum.join("|")+" for "+n)},validateType:function(d,r,n,a){if(null==d)return!1;for(var u=!1,e=0;e<n.length;e++){if("string"==typeof n[e]){if(typeof d===n[e])return!0}else if(n[e]instanceof RegExp){if((d||"").toString().match(n[e]))return!0}else{if(d instanceof n[e]||t.util.isType(d,n[e]))return!0;!a&&!u&&(n=n.slice()),n[e]=t.util.typeName(n[e])}u=!0}var i=a;i||(i=n.join(", ").replace(/,([^,]+)$/,", or$1"));var s=i.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+s+" "+i),!1},validateNumber:function(d,r,n){if(null!=r){if("string"==typeof r){var a=parseFloat(r);a.toString()===r&&(r=a)}this.validateType(r,n,["number"])&&this.validateRange(d,r,n,"numeric value")}},validatePayload:function(d,r){if(null!=d&&"string"!=typeof d&&(!d||"number"!=typeof d.byteLength)){if(t.util.isNode()){var n=t.util.stream.Stream;if(t.util.Buffer.isBuffer(d)||d instanceof n)return}else if(void 0!==typeof Blob&&d instanceof Blob)return;var a=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(d)for(var u=0;u<a.length;u++)if(t.util.isType(d,a[u])||t.util.typeName(d.constructor)===a[u])return;this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},31188:(ce,k,p)=>{var t=p(33123),w=p(497);ce.exports={populateHostPrefix:function d(e){if(!e.service.config.hostPrefixEnabled)return e;var s=e.service.api.operations[e.operation];if(function r(e){var i=e.service.api,s=i.operations[e.operation],h=i.endpointOperation&&i.endpointOperation===t.string.lowerFirst(s.name);return"NULL"!==s.endpointDiscoveryRequired||!0===h}(e))return e;if(s.endpoint&&s.endpoint.hostPrefix){var y=function n(e,i,s){return t.each(s.members,function(h,y){if(!0===y.hostLabel){if("string"!=typeof i[h]||""===i[h])throw t.error(new Error,{message:"Parameter "+h+" should be a non-empty string.",code:"InvalidParameter"});var m=new RegExp("\\{"+h+"\\}","g");e=e.replace(m,i[h])}}),e}(s.endpoint.hostPrefix,e.params,s.input);(function a(e,i){e.host&&(e.host=i+e.host),e.hostname&&(e.hostname=i+e.hostname)})(e.httpRequest.endpoint,y),function u(e){var i=e.split("."),s=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;t.arrayEach(i,function(h){if(!h.length||h.length<1||h.length>63)throw t.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!s.test(h))throw w.util.error(new Error,{code:"ValidationError",message:h+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},44566:(ce,k,p)=>{var t=p(33123),w=p(52933),d=p(36040),r=p(31188).populateHostPrefix;ce.exports={buildRequest:function n(e){var i=e.httpRequest,s=e.service.api,h=s.targetPrefix+"."+s.operations[e.operation].name,y=s.jsonVersion||"1.0",m=s.operations[e.operation].input,I=new w;1===y&&(y="1.0"),i.body=I.build(e.params||{},m),i.headers["Content-Type"]="application/x-amz-json-"+y,i.headers["X-Amz-Target"]=h,r(e)},extractError:function a(e){var i={},s=e.httpResponse;if(i.code=s.headers["x-amzn-errortype"]||"UnknownError","string"==typeof i.code&&(i.code=i.code.split(":")[0]),s.body.length>0)try{var h=JSON.parse(s.body.toString()),y=h.__type||h.code||h.Code;y&&(i.code=y.split("#").pop()),i.message="RequestEntityTooLarge"===i.code?"Request body must be less than 1 MB":h.message||h.Message||null}catch{i.statusCode=s.statusCode,i.message=s.statusMessage}else i.statusCode=s.statusCode,i.message=s.statusCode.toString();e.error=t.error(new Error,i)},extractData:function u(e){var i=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(i);else{var h=e.request.service.api.operations[e.request.operation].output||{},y=new d;e.data=y.parse(i,h)}}}},83839:(ce,k,p)=>{var t=p(497),w=p(33123),d=p(85785),r=p(17680),n=p(31188).populateHostPrefix;ce.exports={buildRequest:function a(i){var s=i.service.api.operations[i.operation],h=i.httpRequest;h.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",h.params={Version:i.service.api.apiVersion,Action:s.name},(new d).serialize(i.params,s.input,function(m,I){h.params[m]=I}),h.body=w.queryParamsToString(h.params),n(i)},extractError:function u(i){var s,h=i.httpResponse.body.toString();if(h.match("<UnknownOperationException"))s={Code:"UnknownOperation",Message:"Unknown operation "+i.request.operation};else try{s=(new t.XML.Parser).parse(h)}catch{s={Code:i.httpResponse.statusCode,Message:i.httpResponse.statusMessage}}s.requestId&&!i.requestId&&(i.requestId=s.requestId),s.Errors&&(s=s.Errors),s.Error&&(s=s.Error),i.error=w.error(new Error,s.Code?{code:s.Code,message:s.Message}:{code:i.httpResponse.statusCode,message:null})},extractData:function e(i){var s=i.request,y=s.service.api.operations[s.operation].output||{},m=y;if(m.resultWrapper){var I=r.create({type:"structure"});I.members[m.resultWrapper]=y,I.memberNames=[m.resultWrapper],w.property(y,"name",y.resultWrapper),y=I}var M=new t.XML.Parser;if(y&&y.members&&!y.members._XAMZRequestId){var P=r.create({type:"string"},{api:{protocol:"query"}},"requestId");y.members._XAMZRequestId=P}var C=M.parse(i.httpResponse.body.toString(),y);i.requestId=C._XAMZRequestId||C.requestId,C._XAMZRequestId&&delete C._XAMZRequestId,m.resultWrapper&&C[m.resultWrapper]&&(w.update(C,C[m.resultWrapper]),delete C[m.resultWrapper]),i.data=C}}},41956:(ce,k,p)=>{var t=p(33123),w=p(31188).populateHostPrefix;function r(s,h,y,m){var I=[s,h].join("/");I=I.replace(/\/+/g,"/");var M={},P=!1;if(t.each(y.members,function(D,W){var Q=m[D];if(null!=Q)if("uri"===W.location){var H=new RegExp("\\{"+W.name+"(\\+)?\\}");I=I.replace(H,function(L,g){return(g?t.uriEscapePath:t.uriEscape)(String(Q))})}else"querystring"===W.location&&(P=!0,"list"===W.type?M[W.name]=Q.map(function(L){return t.uriEscape(W.member.toWireFormat(L).toString())}):"map"===W.type?t.each(Q,function(L,g){M[L]=Array.isArray(g)?g.map(function(R){return t.uriEscape(String(R))}):t.uriEscape(String(g))}):M[W.name]=t.uriEscape(W.toWireFormat(Q).toString()))}),P){I+=I.indexOf("?")>=0?"&":"?";var C=[];t.arrayEach(Object.keys(M).sort(),function(D){Array.isArray(M[D])||(M[D]=[M[D]]);for(var W=0;W<M[D].length;W++)C.push(t.uriEscape(String(D))+"="+M[D][W])}),I+=C.join("&")}return I}ce.exports={buildRequest:function u(s){(function d(s){s.httpRequest.method=s.service.api.operations[s.operation].httpMethod})(s),function n(s){var h=s.service.api.operations[s.operation],m=r(s.httpRequest.endpoint.path,h.httpPath,h.input,s.params);s.httpRequest.path=m}(s),function a(s){t.each(s.service.api.operations[s.operation].input.members,function(y,m){var I=s.params[y];null!=I&&("headers"===m.location&&"map"===m.type?t.each(I,function(M,P){s.httpRequest.headers[m.name+M]=P}):"header"===m.location&&(I=m.toWireFormat(I).toString(),m.isJsonValue&&(I=t.base64.encode(I)),s.httpRequest.headers[m.name]=I))})}(s),w(s)},extractError:function e(){},extractData:function i(s){var h=s.request,y={},m=s.httpResponse,M=h.service.api.operations[h.operation].output,P={};t.each(m.headers,function(C,D){P[C.toLowerCase()]=D}),t.each(M.members,function(C,D){var W=(D.name||C).toLowerCase();if("headers"===D.location&&"map"===D.type){y[C]={};var H=new RegExp("^"+(D.isLocationName?D.name:"")+"(.+)","i");t.each(m.headers,function(g,R){var c=g.match(H);null!==c&&(y[C][c[1]]=R)})}else if("header"===D.location){if(void 0!==P[W]){var L=D.isJsonValue?t.base64.decode(P[W]):P[W];y[C]=D.toType(L)}}else"statusCode"===D.location&&(y[C]=parseInt(m.statusCode,10))}),s.data=y},generateURI:r}},97969:(ce,k,p)=>{var t=p(33123),w=p(41956),d=p(44566),r=p(52933),n=p(36040);function u(h,y){h.httpRequest.headers["Content-Type"]||(h.httpRequest.headers["Content-Type"]=y?"binary/octet-stream":"application/json")}ce.exports={buildRequest:function e(h){w.buildRequest(h),["GET","HEAD","DELETE"].indexOf(h.httpRequest.method)<0&&function a(h){var y=new r,m=h.service.api.operations[h.operation].input;if(m.payload){var I,M=m.members[m.payload];I=h.params[m.payload],"structure"===M.type?(h.httpRequest.body=y.build(I||{},M),u(h)):void 0!==I&&(h.httpRequest.body=I,("binary"===M.type||M.isStreaming)&&u(h,!0))}else h.httpRequest.body=y.build(h.params,m),u(h)}(h)},extractError:function i(h){d.extractError(h)},extractData:function s(h){w.extractData(h);var y=h.request,I=y.service.api.operations[y.operation].output||{};if(I.payload){var C=I.members[I.payload],D=h.httpResponse.body;if(C.isEventStream)M=new n,h.data[payload]=t.createEventStream(2===AWS.HttpClient.streamsApiVersion?h.httpResponse.stream:D,M,C);else if("structure"===C.type||"list"===C.type){var M=new n;h.data[I.payload]=M.parse(D,C)}else h.data[I.payload]="binary"===C.type||C.isStreaming?D:C.toType(D)}else{var W=h.data;d.extractData(h),h.data=t.merge(W,h.data)}}}},26129:(ce,k,p)=>{var t=p(497),w=p(33123),d=p(41956);ce.exports={buildRequest:function n(e){d.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function r(e){var i=e.service.api.operations[e.operation].input,s=new t.XML.Builder,h=e.params,y=i.payload;if(y){var m=i.members[y];if(void 0===(h=h[y]))return;e.httpRequest.body="structure"===m.type?s.toXML(h,m,m.name,!0):h}else e.httpRequest.body=s.toXML(h,i,i.name||i.shape||w.string.upperFirst(e.operation)+"Request")}(e)},extractError:function a(e){var i;d.extractError(e);try{i=(new t.XML.Parser).parse(e.httpResponse.body.toString())}catch{i={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}i.Errors&&(i=i.Errors),i.Error&&(i=i.Error),e.error=w.error(new Error,i.Code?{code:i.Code,message:i.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function u(e){d.extractData(e);var i,s=e.request,h=e.httpResponse.body,m=s.service.api.operations[s.operation].output,M=m.payload;if(M){var P=m.members[M];P.isEventStream?(i=new t.XML.Parser,e.data[M]=w.createEventStream(2===t.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,i,P)):"structure"===P.type?(i=new t.XML.Parser,e.data[M]=i.parse(h.toString(),P)):e.data[M]="binary"===P.type||P.isStreaming?h:P.toType(h)}else if(h.length>0){var C=(i=new t.XML.Parser).parse(h.toString(),m);w.update(e.data,C)}}}},85785:(ce,k,p)=>{var t=p(33123);function w(){}function d(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function r(e,i,s,h){t.each(s.members,function(y,m){var I=i[y];if(null!=I){var M=d(m);u(M=e?e+"."+M:M,I,m,h)}})}function u(e,i,s,h){null!=i&&("structure"===s.type?r(e,i,s,h):"list"===s.type?function a(e,i,s,h){var y=s.member||{};0!==i.length?t.arrayEach(i,function(m,I){var M="."+(I+1);if("ec2"===s.api.protocol)M+="";else if(s.flattened){if(y.name){var P=e.split(".");P.pop(),P.push(d(y)),e=P.join(".")}}else M="."+(y.name?y.name:"member")+M;u(e+M,m,y,h)}):h.call(this,e,null)}(e,i,s,h):"map"===s.type?function n(e,i,s,h){var y=1;t.each(i,function(m,I){var P=(s.flattened?".":".entry.")+y+++".",D=P+(s.value.name||"value");u(e+(P+(s.key.name||"key")),m,s.key,h),u(e+D,I,s.value,h)})}(e,i,s,h):h(e,s.toWireFormat(i).toString()))}w.prototype.serialize=function(e,i,s){r("",e,i,s)},ce.exports=w},16288:ce=>{ce.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},92216:ce=>{ce.exports={isFipsRegion:function k(w){return"string"==typeof w&&(w.startsWith("fips-")||w.endsWith("-fips"))},isGlobalRegion:function p(w){return"string"==typeof w&&["aws-global","aws-us-gov-global"].includes(w)},getRealRegion:function t(w){return["fips-aws-global","aws-fips","aws-global"].includes(w)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(w)?"us-gov-west-1":w.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},77245:(ce,k,p)=>{var t=p(33123),w=p(85595);function n(e,i){t.each(i,function(s,h){"globalEndpoint"!==s&&null==e.config[s]&&(e.config[s]=h)})}ce.exports={configureEndpoint:function a(e){for(var i=function r(e){var i=e.config.region,s=function d(e){if(!e)return null;var i=e.split("-");return i.length<3?null:i.slice(0,i.length-2).join("-")+"-*"}(i),h=e.api.endpointPrefix;return[[i,h],[s,h],[i,"*"],[s,"*"],["*",h],["*","*"]].map(function(y){return y[0]&&y[1]?y.join("/"):null})}(e),s=e.config.useFipsEndpoint,h=e.config.useDualstackEndpoint,y=0;y<i.length;y++){var m=i[y];if(m){var I=s?h?w.dualstackFipsRules:w.fipsRules:h?w.dualstackRules:w.rules;if(Object.prototype.hasOwnProperty.call(I,m)){var M=I[m];return"string"==typeof M&&(M=w.patterns[M]),e.isGlobalEndpoint=!!M.globalEndpoint,M.signingRegion&&(e.signingRegion=M.signingRegion),M.signatureVersion||(M.signatureVersion="v4"),void n(e,M)}}}},getEndpointSuffix:function u(e){for(var i={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},h=Object.keys(i),y=0;y<h.length;y++){var m=RegExp(h[y]),I=i[h[y]];if(m.test(e))return I}return"amazonaws.com"}}},18913:(ce,k,p)=>{var t=p(497),w=p(85488),d=t.util.inherit,r=t.util.domain,n=p(70946),a={success:1,error:1,complete:1},e=new w;e.setupStates=function(){var i=function(s,h){var y=this;y._haltHandlersOnError=!1,y.emit(y._asm.currentState,function(m){if(m)if(function u(i){return Object.prototype.hasOwnProperty.call(a,i._asm.currentState)}(y)){if(!(r&&y.domain instanceof r.Domain))throw m;m.domainEmitter=y,m.domain=y.domain,m.domainThrown=!1,y.domain.emit("error",m)}else y.response.error=m,h(m);else h(y.response.error)})};this.addState("validate","build","error",i),this.addState("build","afterBuild","restart",i),this.addState("afterBuild","sign","restart",i),this.addState("sign","send","retry",i),this.addState("retry","afterRetry","afterRetry",i),this.addState("afterRetry","sign","error",i),this.addState("send","validateResponse","retry",i),this.addState("validateResponse","extractData","extractError",i),this.addState("extractError","extractData","retry",i),this.addState("extractData","success","retry",i),this.addState("restart","build","error",i),this.addState("success","complete","complete",i),this.addState("error","complete","complete",i),this.addState("complete",null,null,i)},e.setupStates(),t.Request=d({constructor:function(s,h,y){var m=s.endpoint,I=s.config.region,M=s.config.customUserAgent;s.signingRegion?I=s.signingRegion:s.isGlobalEndpoint&&(I="us-east-1"),this.domain=r&&r.active,this.service=s,this.operation=h,this.params=y||{},this.httpRequest=new t.HttpRequest(m,I),this.httpRequest.appendToUserAgent(M),this.startTime=s.getSkewCorrectedDate(),this.response=new t.Response(this),this._asm=new w(e.states,"validate"),this._haltHandlersOnError=!1,t.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(s){return s&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(h){s.call(h,h.error,h.data)})),this.runTo(),this.response},build:function(s){return this.runTo("send",s)},runTo:function(s,h){return this._asm.runTo(s,h,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(h){h.error=t.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(s){s=t.util.fn.makeAsync(s,3),this.on("complete",function h(y){s.call(y,y.error,y.data,function(m){!1!==m&&(y.hasNextPage()?y.nextPage().on("complete",h).send():s.call(y,null,null,t.util.fn.noop))})}).send()},eachItem:function(s){var h=this;this.eachPage(function y(m,I){if(m)return s(m,null);if(null===I)return s(null,null);var P=h.service.paginationConfig(h.operation).resultKey;Array.isArray(P)&&(P=P[0]);var C=n.search(I,P),D=!0;return t.util.arrayEach(C,function(W){if(!1===(D=s(null,W)))return t.util.abort}),D})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var s=t.util.stream,h=this,y=null;return 2===t.HttpClient.streamsApiVersion?(y=new s.PassThrough,process.nextTick(function(){h.send()})):((y=new s.Stream).readable=!0,y.sent=!1,y.on("newListener",function(m){!y.sent&&"data"===m&&(y.sent=!0,process.nextTick(function(){h.send()}))})),this.on("error",function(m){y.emit("error",m)}),this.on("httpHeaders",function(I,M,P){if(I<300){h.removeListener("httpData",t.EventListeners.Core.HTTP_DATA),h.removeListener("httpError",t.EventListeners.Core.HTTP_ERROR),h.on("httpError",function(R){P.error=R,P.error.retryable=!1});var D,C=!1;if("HEAD"!==h.httpRequest.method&&(D=parseInt(M["content-length"],10)),void 0!==D&&!isNaN(D)&&D>=0){C=!0;var W=0}var Q=function(){C&&W!==D?y.emit("error",t.util.error(new Error("Stream content length mismatch. Received "+W+" of "+D+" bytes."),{code:"StreamContentLengthMismatch"})):2===t.HttpClient.streamsApiVersion?y.end():y.emit("end")},H=P.httpResponse.createUnbufferedStream();if(2===t.HttpClient.streamsApiVersion)if(C){var L=new s.PassThrough;L._write=function(g){return g&&g.length&&(W+=g.length),s.PassThrough.prototype._write.apply(this,arguments)},L.on("end",Q),y.on("error",function(g){C=!1,H.unpipe(L),L.emit("end"),L.end()}),H.pipe(L).pipe(y,{end:!1})}else H.pipe(y);else C&&H.on("data",function(g){g&&g.length&&(W+=g.length)}),H.on("data",function(g){y.emit("data",g)}),H.on("end",Q);H.on("error",function(g){C=!1,y.emit("error",g)})}}),y},emitEvent:function(s,h,y){"function"==typeof h&&(y=h,h=null),y||(y=function(){}),h||(h=this.eventParameters(s,this.response)),t.SequentialExecutor.prototype.emit.call(this,s,h,function(I){I&&(this.response.error=I),y.call(this,I)})},eventParameters:function(s){switch(s){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(s,h){return!h&&"function"==typeof s&&(h=s,s=null),(new t.Signers.Presign).sign(this.toGet(),s,h)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",t.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",t.EventListeners.Core.SIGN),this},toGet:function(){return("query"===this.service.api.protocol||"ec2"===this.service.api.protocol)&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(s){s.httpRequest.method="GET",s.httpRequest.path=s.service.endpoint.path+"?"+s.httpRequest.body,s.httpRequest.body="",delete s.httpRequest.headers["Content-Length"],delete s.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),t.Request.addPromisesToClass=function(s){this.prototype.promise=function(){var y=this;return this.httpRequest.appendToUserAgent("promise"),new s(function(m,I){y.on("complete",function(M){M.error?I(M.error):m(Object.defineProperty(M.data||{},"$response",{value:M}))}),y.runTo()})}},t.Request.deletePromisesFromClass=function(){delete this.prototype.promise},t.util.addPromises(t.Request),t.util.mixin(t.Request,t.SequentialExecutor)},7689:(ce,k,p)=>{var t=p(497),w=t.util.inherit,d=p(70946);function r(n){var a=n.request._waiter,e=!1,i="retry";a.config.acceptors.forEach(function(s){if(!e){var h=a.matchers[s.matcher];h&&h(n,s.expected,s.argument)&&(e=!0,i=s.state)}}),!e&&n.error&&(i="failure"),"success"===i?a.setSuccess(n):a.setError(n,"retry"===i)}t.ResourceWaiter=w({constructor:function(a,u){this.service=a,this.state=u,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(n,a,u){try{var e=d.search(n.data,u)}catch{return!1}return d.strictDeepEqual(e,a)},pathAll:function(n,a,u){try{var e=d.search(n.data,u)}catch{return!1}Array.isArray(e)||(e=[e]);var i=e.length;if(!i)return!1;for(var s=0;s<i;s++)if(!d.strictDeepEqual(e[s],a))return!1;return!0},pathAny:function(n,a,u){try{var e=d.search(n.data,u)}catch{return!1}Array.isArray(e)||(e=[e]);for(var i=e.length,s=0;s<i;s++)if(d.strictDeepEqual(e[s],a))return!0;return!1},status:function(n,a){var u=n.httpResponse.statusCode;return"number"==typeof u&&u===a},error:function(n,a){return"string"==typeof a&&n.error?a===n.error.code:a===!!n.error}},listeners:(new t.SequentialExecutor).addNamedListeners(function(n){n("RETRY_CHECK","retry",function(a){a.error&&"ResourceNotReady"===a.error.code&&(a.error.retryDelay=1e3*(a.request._waiter.config.delay||0))}),n("CHECK_OUTPUT","extractData",r),n("CHECK_ERROR","extractError",r)}),wait:function(a,u){"function"==typeof a&&(u=a,a=void 0),a&&a.$waiter&&("number"==typeof(a=t.util.copy(a)).$waiter.delay&&(this.config.delay=a.$waiter.delay),"number"==typeof a.$waiter.maxAttempts&&(this.config.maxAttempts=a.$waiter.maxAttempts),delete a.$waiter);var e=this.service.makeRequest(this.config.operation,a);return e._waiter=this,e.response.maxRetries=this.config.maxAttempts,e.addListeners(this.listeners),u&&e.send(u),e},setSuccess:function(a){a.error=null,a.data=a.data||{},a.request.removeAllListeners("extractData")},setError:function(a,u){a.data=null,a.error=t.util.error(a.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:u})},loadWaiterConfig:function(a){if(!this.service.api.waiters[a])throw new t.util.error(new Error,{code:"StateNotFoundError",message:"State "+a+" not found."});this.config=t.util.copy(this.service.api.waiters[a])}})},27376:(ce,k,p)=>{var t=p(497),w=t.util.inherit,d=p(70946);t.Response=w({constructor:function(n){this.request=n,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new t.HttpResponse,n&&(this.maxRetries=n.service.numRetries(),this.maxRedirects=n.service.config.maxRedirects)},nextPage:function(n){var a,u=this.request.service,e=this.request.operation;try{a=u.paginationConfig(e,!0)}catch(y){this.error=y}if(!this.hasNextPage()){if(n)n(this.error,null);else if(this.error)throw this.error;return null}var i=t.util.copy(this.request.params);if(this.nextPageTokens){var s=a.inputToken;"string"==typeof s&&(s=[s]);for(var h=0;h<s.length;h++)i[s[h]]=this.nextPageTokens[h];return u.makeRequest(this.request.operation,i,n)}return n?n(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var n=this.request.service.paginationConfig(this.request.operation);if(!n)return this.nextPageTokens;if(this.nextPageTokens=null,n.moreResults&&!d.search(this.data,n.moreResults))return this.nextPageTokens;var a=n.outputToken;return"string"==typeof a&&(a=[a]),t.util.arrayEach.call(this,a,function(u){var e=d.search(this.data,u);e&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(e))}),this.nextPageTokens}})},35215:(ce,k,p)=>{var t=p(497);t.SequentialExecutor=t.util.inherit({constructor:function(){this._events={}},listeners:function(d){return this._events[d]?this._events[d].slice(0):[]},on:function(d,r,n){return this._events[d]?n?this._events[d].unshift(r):this._events[d].push(r):this._events[d]=[r],this},onAsync:function(d,r,n){return r._isAsync=!0,this.on(d,r,n)},removeListener:function(d,r){var n=this._events[d];if(n){for(var a=n.length,u=-1,e=0;e<a;++e)n[e]===r&&(u=e);u>-1&&n.splice(u,1)}return this},removeAllListeners:function(d){return d?delete this._events[d]:this._events={},this},emit:function(d,r,n){n||(n=function(){});var a=this.listeners(d),u=a.length;return this.callListeners(a,r,n),u>0},callListeners:function(d,r,n,a){var u=this,e=a||null;function i(h){if(h&&(e=t.util.error(e||new Error,h),u._haltHandlersOnError))return n.call(u,e);u.callListeners(d,r,n,e)}for(;d.length>0;){var s=d.shift();if(s._isAsync)return void s.apply(u,r.concat([i]));try{s.apply(u,r)}catch(h){e=t.util.error(e||new Error,h)}if(e&&u._haltHandlersOnError)return void n.call(u,e)}n.call(u,e)},addListeners:function(d){var r=this;return d._events&&(d=d._events),t.util.each(d,function(n,a){"function"==typeof a&&(a=[a]),t.util.arrayEach(a,function(u){r.on(n,u)})}),r},addNamedListener:function(d,r,n,a){return this[d]=n,this.addListener(r,n,a),this},addNamedAsyncListener:function(d,r,n,a){return n._isAsync=!0,this.addNamedListener(d,r,n,a)},addNamedListeners:function(d){var r=this;return d(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this}}),t.SequentialExecutor.prototype.addListener=t.SequentialExecutor.prototype.on,ce.exports=t.SequentialExecutor},60199:(ce,k,p)=>{var t=p(497),w=p(17986),d=p(77245),r=t.util.inherit,n=0,a=p(92216);t.Service=r({constructor:function(e){if(!this.loadServiceClass)throw t.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var i=e.region;a.isFipsRegion(i)&&(e.region=a.getRealRegion(i),e.useFipsEndpoint=!0),a.isGlobalRegion(i)&&(e.region=a.getRealRegion(i))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var s=this.loadServiceClass(e||{});if(s){var h=t.util.copy(e),y=new s(e);return Object.defineProperty(y,"_originalConfig",{get:function(){return h},enumerable:!1,configurable:!0}),y._clientId=++n,y}this.initialize(e)},initialize:function(e){var i=t.config[this.serviceIdentifier];if(this.config=new t.Config(t.config),i&&this.config.update(i,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||d.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),t.SequentialExecutor.call(this),t.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||t.Service._clientSideMonitoring)&&this.publisher){var s=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(y){process.nextTick(function(){s.eventHandler(y)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(y){process.nextTick(function(){s.eventHandler(y)})})}},validateService:function(){},loadServiceClass:function(e){var i=e;if(t.util.isEmpty(this.api)){if(i.apiConfig)return t.Service.defineServiceApi(this.constructor,i.apiConfig);if(this.constructor.services){(i=new t.Config(t.config)).update(e,!0);var s=i.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(s=s||i.apiVersion)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&t.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?t.util.isType(e,Date)&&(e=t.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var i=Object.keys(this.constructor.services).sort(),s=null,h=i.length-1;h>=0;h--)if("*"!==i[h][i[h].length-1]&&(s=i[h]),i[h].substr(0,10)<=e)return s;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,i,s){if("function"==typeof i&&(s=i,i=null),i=i||{},this.config.params){var h=this.api.operations[e];h&&(i=t.util.copy(i),t.util.each(this.config.params,function(m,I){h.input.members[m]&&null==i[m]&&(i[m]=I)}))}var y=new t.Request(this,e,i);return this.addAllRequestListeners(y),this.attachMonitoringEmitter(y),s&&y.send(s),y},makeUnauthenticatedRequest:function(e,i,s){"function"==typeof i&&(s=i,i={});var h=this.makeRequest(e,i).toUnauthenticated();return s?h.send(s):h},waitFor:function(e,i,s){return new t.ResourceWaiter(this,e).wait(i,s)},addAllRequestListeners:function(e){for(var i=[t.events,t.EventListeners.Core,this.serviceInterface(),t.EventListeners.CorePost],s=0;s<i.length;s++)i[s]&&e.addListeners(i[s]);this.config.paramValidation||e.removeListener("validate",t.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(t.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var i=e.service.api.operations[e.operation],s={Type:"ApiCall",Api:i?i.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},h=e.response;if(h.httpResponse.statusCode&&(s.FinalHttpStatusCode=h.httpResponse.statusCode),h.error){var y=h.error;h.httpResponse.statusCode>299?(y.code&&(s.FinalAwsException=y.code),y.message&&(s.FinalAwsExceptionMessage=y.message)):((y.code||y.name)&&(s.FinalSdkException=y.code||y.name),y.message&&(s.FinalSdkExceptionMessage=y.message))}return s},apiAttemptEvent:function(e){var i=e.service.api.operations[e.operation],s={Type:"ApiCallAttempt",Api:i?i.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},h=e.response;return h.httpResponse.statusCode&&(s.HttpStatusCode=h.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(s.AccessKey=e.service.config.credentials.accessKeyId),h.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(s.SessionToken=e.httpRequest.headers["x-amz-security-token"]),h.httpResponse.headers["x-amzn-requestid"]&&(s.XAmznRequestId=h.httpResponse.headers["x-amzn-requestid"]),h.httpResponse.headers["x-amz-request-id"]&&(s.XAmzRequestId=h.httpResponse.headers["x-amz-request-id"]),h.httpResponse.headers["x-amz-id-2"]&&(s.XAmzId2=h.httpResponse.headers["x-amz-id-2"])),s},attemptFailEvent:function(e){var i=this.apiAttemptEvent(e),s=e.response,h=s.error;return s.httpResponse.statusCode>299?(h.code&&(i.AwsException=h.code),h.message&&(i.AwsExceptionMessage=h.message)):((h.code||h.name)&&(i.SdkException=h.code||h.name),h.message&&(i.SdkExceptionMessage=h.message)),i},attachMonitoringEmitter:function(e){var i,s,h,y,I,M,m=0,P=this;e.on("validate",function(){y=t.util.realClock.now(),M=Date.now()},!0),e.on("sign",function(){s=t.util.realClock.now(),i=Date.now(),I=e.httpRequest.region,m++},!0),e.on("validateResponse",function(){h=Math.round(t.util.realClock.now()-s)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var W=P.apiAttemptEvent(e);W.Timestamp=i,W.AttemptLatency=h>=0?h:0,W.Region=I,P.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var W=P.attemptFailEvent(e);W.Timestamp=i,h=h||Math.round(t.util.realClock.now()-s),W.AttemptLatency=h>=0?h:0,W.Region=I,P.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL","complete",function(){var W=P.apiCallEvent(e);if(W.AttemptCount=m,!(W.AttemptCount<=0)){W.Timestamp=M;var Q=Math.round(t.util.realClock.now()-y);W.Latency=Q>=0?Q:0;var H=e.response;H.error&&H.error.retryable&&"number"==typeof H.retryCount&&"number"==typeof H.maxRetries&&H.retryCount>=H.maxRetries&&(W.MaxRetriesExceeded=1),P.emit("apiCall",[W])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var s=null,h="";return e&&(h=(s=(e.service.api.operations||{})[e.operation]||null)?s.authtype:""),t.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===h||"v4-unsigned-body"===h?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return t.EventListeners.Query;case"json":return t.EventListeners.Json;case"rest-json":return t.EventListeners.RestJson;case"rest-xml":return t.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,i){return t.util.calculateRetryDelay(e,this.config.retryDelayOptions,i)},retryableError:function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var i=e;return(i=(i=i.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new t.Endpoint(e,this.config)},paginationConfig:function(e,i){var s=this.api.operations[e].paginator;if(!s){if(i){var h=new Error;throw t.util.error(h,"No pagination configuration for "+e)}return null}return s}}),t.util.update(t.Service,{defineMethods:function(e){t.util.each(e.prototype.api.operations,function(s){e.prototype[s]||(e.prototype[s]="none"===e.prototype.api.operations[s].authtype?function(y,m){return this.makeUnauthenticatedRequest(s,y,m)}:function(y,m){return this.makeRequest(s,y,m)})})},defineService:function(e,i,s){t.Service._serviceMap[e]=!0,Array.isArray(i)||(s=i,i=[]);var h=r(t.Service,s||{});if("string"==typeof e?(t.Service.addVersions(h,i),h.serviceIdentifier=h.serviceIdentifier||e):(h.prototype.api=e,t.Service.defineMethods(h)),t.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&t.util.clientSideMonitoring){var m=t.util.clientSideMonitoring.Publisher,M=(0,t.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new m(M),M.enabled&&(t.Service._clientSideMonitoring=!0)}return t.SequentialExecutor.call(h.prototype),t.Service.addDefaultMonitoringListeners(h.prototype),h},addVersions:function(e,i){Array.isArray(i)||(i=[i]),e.services=e.services||{};for(var s=0;s<i.length;s++)void 0===e.services[i[s]]&&(e.services[i[s]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,i,s){var h=r(e,{serviceIdentifier:e.serviceIdentifier});function y(m){h.prototype.api=m.isApi?m:new w(m,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof i){if(s)y(s);else try{y(t.apiLoader(e.serviceIdentifier,i))}catch(m){throw t.util.error(m,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+i})}Object.prototype.hasOwnProperty.call(e.services,i)||(e.apiVersions=e.apiVersions.concat(i).sort()),e.services[i]=h}else y(i);return t.Service.defineMethods(h),h},hasService:function(u){return Object.prototype.hasOwnProperty.call(t.Service._serviceMap,u)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(s){var h=Object.getPrototypeOf(e);h._events&&h.emit("apiCallAttempt",[s])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(s){var h=Object.getPrototypeOf(e);h._events&&h.emit("apiCall",[s])})},_serviceMap:{}}),t.util.mixin(t.Service,t.SequentialExecutor),ce.exports=t.Service},25674:(ce,k,p)=>{var t=p(497),w=p(91898);t.util.update(t.STS.prototype,{credentialsFrom:function(a,u){return a?(u||(u=new t.TemporaryCredentials),u.expired=!1,u.accessKeyId=a.Credentials.AccessKeyId,u.secretAccessKey=a.Credentials.SecretAccessKey,u.sessionToken=a.Credentials.SessionToken,u.expireTime=a.Credentials.Expiration,u):null},assumeRoleWithWebIdentity:function(a,u){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",a,u)},assumeRoleWithSAML:function(a,u){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",a,u)},setupRequestListeners:function(a){a.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(a){var u=a.service,e=u.config;if(e.stsRegionalEndpoints=w(u._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===e.stsRegionalEndpoints&&u.isGlobalEndpoint){if(!e.region)throw t.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=e.endpoint.indexOf(".amazonaws.com"),s=e.endpoint.substring(0,i)+"."+e.region+e.endpoint.substring(i);a.httpRequest.updateEndpoint(s),a.httpRequest.region=e.region}}})},89894:(ce,k,p)=>{var t=p(497),d="presigned-expires";function r(a){var u=a.httpRequest.headers[d],e=a.service.getSignerClass(a);if(delete a.httpRequest.headers["User-Agent"],delete a.httpRequest.headers["X-Amz-User-Agent"],e===t.Signers.V4){if(u>604800)throw t.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});a.httpRequest.headers[d]=u}else{if(e!==t.Signers.S3)throw t.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var s=a.service?a.service.getSkewCorrectedDate():t.util.date.getDate();a.httpRequest.headers[d]=parseInt(t.util.date.unixTimestamp(s)+u,10).toString()}}function n(a){var u=a.httpRequest.endpoint,e=t.util.urlParse(a.httpRequest.path),i={};e.search&&(i=t.util.queryStringParse(e.search.substr(1)));var s=a.httpRequest.headers.Authorization.split(" ");if("AWS"===s[0])s=s[1].split(":"),i.Signature=s.pop(),i.AWSAccessKeyId=s.join(":"),t.util.each(a.httpRequest.headers,function(m,I){m===d&&(m="Expires"),0===m.indexOf("x-amz-meta-")&&(delete i[m],m=m.toLowerCase()),i[m]=I}),delete a.httpRequest.headers[d],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===s[0]){s.shift();var y=s.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=y,delete i.Expires}u.pathname=e.pathname,u.search=t.util.queryParamsToString(i)}t.Signers.Presign=(0,t.util.inherit)({sign:function(u,e,i){if(u.httpRequest.headers[d]=e||3600,u.on("build",r),u.on("sign",n),u.removeListener("afterBuild",t.EventListeners.Core.SET_CONTENT_LENGTH),u.removeListener("afterBuild",t.EventListeners.Core.COMPUTE_SHA256),u.emit("beforePresign",[u]),!i){if(u.build(),u.response.error)throw u.response.error;return t.util.urlFormat(u.httpRequest.endpoint)}u.build(function(){this.response.error?i(this.response.error):i(null,t.util.urlFormat(u.httpRequest.endpoint))})}}),ce.exports=t.Signers.Presign},86966:(ce,k,p)=>{var t=p(497);t.Signers.RequestSigner=(0,t.util.inherit)({constructor:function(r){this.request=r},setServiceClientId:function(r){this.serviceClientId=r},getServiceClientId:function(){return this.serviceClientId}}),t.Signers.RequestSigner.getVersion=function(r){switch(r){case"v2":return t.Signers.V2;case"v3":return t.Signers.V3;case"s3v4":case"v4":return t.Signers.V4;case"s3":return t.Signers.S3;case"v3https":return t.Signers.V3Https}throw new Error("Unknown signing version "+r)},p(66564),p(77659),p(63116),p(72480),p(58980),p(89894)},58980:(ce,k,p)=>{var t=p(497);t.Signers.S3=(0,t.util.inherit)(t.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(r,n){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=t.util.date.rfc822(n)),r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken);var a=this.sign(r.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+r.accessKeyId+":"+a},stringToSign:function(){var r=this.request,n=[];n.push(r.method),n.push(r.headers["Content-MD5"]||""),n.push(r.headers["Content-Type"]||""),n.push(r.headers["presigned-expires"]||"");var a=this.canonicalizedAmzHeaders();return a&&n.push(a),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var r=[];t.util.each(this.request.headers,function(a){a.match(/^x-amz-/i)&&r.push(a)}),r.sort(function(a,u){return a.toLowerCase()<u.toLowerCase()?-1:1});var n=[];return t.util.arrayEach.call(this,r,function(a){n.push(a.toLowerCase()+":"+String(this.request.headers[a]))}),n.join("\n")},canonicalizedResource:function(){var r=this.request,n=r.path.split("?"),u=n[1],e="";if(r.virtualHostedBucket&&(e+="/"+r.virtualHostedBucket),e+=n[0],u){var i=[];t.util.arrayEach.call(this,u.split("&"),function(s){var h=s.split("=")[0],y=s.split("=")[1];if(this.subResources[h]||this.responseHeaders[h]){var m={name:h};void 0!==y&&(m.value=this.subResources[h]?y:decodeURIComponent(y)),i.push(m)}}),i.sort(function(s,h){return s.name<h.name?-1:1}),i.length&&(u=[],t.util.arrayEach(i,function(s){u.push(void 0===s.value?s.name:s.name+"="+s.value)}),e+="?"+u.join("&"))}return e},sign:function(r,n){return t.util.crypto.hmac(r,n,"base64","sha1")}}),ce.exports=t.Signers.S3},66564:(ce,k,p)=>{var t=p(497);t.Signers.V2=(0,t.util.inherit)(t.Signers.RequestSigner,{addAuthorization:function(r,n){n||(n=t.util.date.getDate());var a=this.request;a.params.Timestamp=t.util.date.iso8601(n),a.params.SignatureVersion="2",a.params.SignatureMethod="HmacSHA256",a.params.AWSAccessKeyId=r.accessKeyId,r.sessionToken&&(a.params.SecurityToken=r.sessionToken),delete a.params.Signature,a.params.Signature=this.signature(r),a.body=t.util.queryParamsToString(a.params),a.headers["Content-Length"]=a.body.length},signature:function(r){return t.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push(this.request.endpoint.host.toLowerCase()),r.push(this.request.pathname()),r.push(t.util.queryParamsToString(this.request.params)),r.join("\n")}}),ce.exports=t.Signers.V2},77659:(ce,k,p)=>{var t=p(497);t.Signers.V3=(0,t.util.inherit)(t.Signers.RequestSigner,{addAuthorization:function(r,n){var a=t.util.date.rfc822(n);this.request.headers["X-Amz-Date"]=a,r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(r,a)},authorization:function(r){return"AWS3 AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(r)},signedHeaders:function(){var r=[];return t.util.arrayEach(this.headersToSign(),function(a){r.push(a.toLowerCase())}),r.sort().join(";")},canonicalHeaders:function(){var r=this.request.headers,n=[];return t.util.arrayEach(this.headersToSign(),function(u){n.push(u.toLowerCase().trim()+":"+String(r[u]).trim())}),n.sort().join("\n")+"\n"},headersToSign:function(){var r=[];return t.util.each(this.request.headers,function(a){("Host"===a||"Content-Encoding"===a||a.match(/^X-Amz/i))&&r.push(a)}),r},signature:function(r){return t.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push("/"),r.push(""),r.push(this.canonicalHeaders()),r.push(this.request.body),t.util.crypto.sha256(r.join("\n"))}}),ce.exports=t.Signers.V3},63116:(ce,k,p)=>{var t=p(497),w=t.util.inherit;p(77659),t.Signers.V3Https=w(t.Signers.V3,{authorization:function(r){return"AWS3-HTTPS AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(r)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),ce.exports=t.Signers.V3Https},72480:(ce,k,p)=>{var t=p(497),w=p(70950),r="presigned-expires";t.Signers.V4=(0,t.util.inherit)(t.Signers.RequestSigner,{constructor:function(a,u,e){t.Signers.RequestSigner.call(this,a),this.serviceName=u,this.signatureCache="boolean"!=typeof(e=e||{}).signatureCache||e.signatureCache,this.operation=e.operation,this.signatureVersion=e.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(a,u){var e=t.util.date.iso8601(u).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(a,e):this.addHeaders(a,e),this.request.headers.Authorization=this.authorization(a,e)},addHeaders:function(a,u){this.request.headers["X-Amz-Date"]=u,a.sessionToken&&(this.request.headers["x-amz-security-token"]=a.sessionToken)},updateForPresigned:function(a,u){var e=this.credentialString(u),i={"X-Amz-Date":u,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":a.accessKeyId+"/"+e,"X-Amz-Expires":this.request.headers[r],"X-Amz-SignedHeaders":this.signedHeaders()};a.sessionToken&&(i["X-Amz-Security-Token"]=a.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),t.util.each.call(this,this.request.headers,function(h,y){if(h!==r&&this.isSignableHeader(h)){var m=h.toLowerCase();0===m.indexOf("x-amz-meta-")?i[m]=y:0===m.indexOf("x-amz-")&&(i[h]=y)}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+t.util.queryParamsToString(i)},authorization:function(a,u){var e=[],i=this.credentialString(u);return e.push(this.algorithm+" Credential="+a.accessKeyId+"/"+i),e.push("SignedHeaders="+this.signedHeaders()),e.push("Signature="+this.signature(a,u)),e.join(", ")},signature:function(a,u){var e=w.getSigningKey(a,u.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return t.util.crypto.hmac(e,this.stringToSign(u),"hex")},stringToSign:function(a){var u=[];return u.push("AWS4-HMAC-SHA256"),u.push(a),u.push(this.credentialString(a)),u.push(this.hexEncodedHash(this.canonicalString())),u.join("\n")},canonicalString:function(){var a=[],u=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(u=t.util.uriEscapePath(u)),a.push(this.request.method),a.push(u),a.push(this.request.search()),a.push(this.canonicalHeaders()+"\n"),a.push(this.signedHeaders()),a.push(this.hexEncodedBodyHash()),a.join("\n")},canonicalHeaders:function(){var a=[];t.util.each.call(this,this.request.headers,function(e,i){a.push([e,i])}),a.sort(function(e,i){return e[0].toLowerCase()<i[0].toLowerCase()?-1:1});var u=[];return t.util.arrayEach.call(this,a,function(e){var i=e[0].toLowerCase();if(this.isSignableHeader(i)){var s=e[1];if(typeof s>"u"||null===s||"function"!=typeof s.toString)throw t.util.error(new Error("Header "+i+" contains invalid value"),{code:"InvalidHeader"});u.push(i+":"+this.canonicalHeaderValues(s.toString()))}}),u.join("\n")},canonicalHeaderValues:function(a){return a.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var a=[];return t.util.each.call(this,this.request.headers,function(u){u=u.toLowerCase(),this.isSignableHeader(u)&&a.push(u)}),a.sort().join(";")},credentialString:function(a){return w.createScope(a.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(a){return t.util.crypto.sha256(a,"hex")},hexEncodedBodyHash:function(){var a=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!a.body?"UNSIGNED-PAYLOAD":a.headers["X-Amz-Content-Sha256"]?a.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",r,"expect","x-amzn-trace-id"],isSignableHeader:function(a){return 0===a.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(a)<0},isPresigned:function(){return!!this.request.headers[r]}}),ce.exports=t.Signers.V4},70950:(ce,k,p)=>{var t=p(497),w={},d=[],n="aws4_request";ce.exports={createScope:function(u,e,i){return[u.substr(0,8),e,i,n].join("/")},getSigningKey:function(u,e,i,s,h){var m=[t.util.crypto.hmac(u.secretAccessKey,u.accessKeyId,"base64"),e,i,s].join("_");if((h=!1!==h)&&m in w)return w[m];var I=t.util.crypto.hmac("AWS4"+u.secretAccessKey,e,"buffer"),M=t.util.crypto.hmac(I,i,"buffer"),P=t.util.crypto.hmac(M,s,"buffer"),C=t.util.crypto.hmac(P,n,"buffer");return h&&(w[m]=C,d.push(m),d.length>50&&delete w[d.shift()]),C},emptyCache:function(){w={},d=[]}}},85488:ce=>{function k(p,t){this.currentState=t||null,this.states=p||{}}k.prototype.runTo=function(t,w,d,r){"function"==typeof t&&(r=d,d=w,w=t,t=null);var n=this,a=n.states[n.currentState];a.fn.call(d||n,r,function(u){if(u){if(!a.fail)return w?w.call(d,u):null;n.currentState=a.fail}else{if(!a.accept)return w?w.call(d):null;n.currentState=a.accept}if(n.currentState===t)return w?w.call(d,u):null;n.runTo(t,w,d,u)})},k.prototype.addState=function(t,w,d,r){return"function"==typeof w?(r=w,w=null,d=null):"function"==typeof d&&(r=d,d=null),this.currentState||(this.currentState=t),this.states[t]={accept:w,fail:d,fn:r},this},ce.exports=k},33123:(ce,k,p)=>{var t,w={environment:"nodejs",engine:function(){if(w.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var r=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(r+=" exec-env/"+process.env.AWS_EXECUTION_ENV),r},userAgent:function(){var r=w.environment,n="aws-sdk-"+r+"/"+p(497).VERSION;return"nodejs"===r&&(n+=" "+w.engine()),n},uriEscape:function(r){var n=encodeURIComponent(r);return(n=n.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(r){var n=[];return w.arrayEach(r.split("/"),function(a){n.push(w.uriEscape(a))}),n.join("/")},urlParse:function(r){return w.url.parse(r)},urlFormat:function(r){return w.url.format(r)},queryStringParse:function(r){return w.querystring.parse(r)},queryParamsToString:function(r){var n=[],a=w.uriEscape,u=Object.keys(r).sort();return w.arrayEach(u,function(e){var i=r[e],s=a(e),h=s+"=";if(Array.isArray(i)){var y=[];w.arrayEach(i,function(m){y.push(a(m))}),h=s+"="+y.sort().join("&"+s+"=")}else null!=i&&(h=s+"="+a(i));n.push(h)}),n.join("&")},readFileSync:function(r){return w.isBrowser()?null:p(47310).readFileSync(r,"utf-8")},base64:{encode:function(r){if("number"==typeof r)throw w.error(new Error("Cannot base64 encode number "+r));return null===r||typeof r>"u"?r:w.buffer.toBuffer(r).toString("base64")},decode:function(r){if("number"==typeof r)throw w.error(new Error("Cannot base64 decode number "+r));return null===r||typeof r>"u"?r:w.buffer.toBuffer(r,"base64")}},buffer:{toBuffer:function(d,r){return"function"==typeof w.Buffer.from&&w.Buffer.from!==Uint8Array.from?w.Buffer.from(d,r):new w.Buffer(d,r)},alloc:function(d,r,n){if("number"!=typeof d)throw new Error("size passed to alloc must be a number.");if("function"==typeof w.Buffer.alloc)return w.Buffer.alloc(d,r,n);var a=new w.Buffer(d);return void 0!==r&&"function"==typeof a.fill&&a.fill(r,void 0,void 0,n),a},toStream:function(r){w.Buffer.isBuffer(r)||(r=w.buffer.toBuffer(r));var n=new w.stream.Readable,a=0;return n._read=function(u){if(a>=r.length)return n.push(null);var e=a+u;e>r.length&&(e=r.length),n.push(r.slice(a,e)),a=e},n},concat:function(d){var a,u,r=0,n=0;for(u=0;u<d.length;u++)r+=d[u].length;for(a=w.buffer.alloc(r),u=0;u<d.length;u++)d[u].copy(a,n),n+=d[u].length;return a}},string:{byteLength:function(r){if(null==r)return 0;if("string"==typeof r&&(r=w.buffer.toBuffer(r)),"number"==typeof r.byteLength)return r.byteLength;if("number"==typeof r.length)return r.length;if("number"==typeof r.size)return r.size;if("string"==typeof r.path)return p(47310).lstatSync(r.path).size;throw w.error(new Error("Cannot determine length of "+r),{object:r})},upperFirst:function(r){return r[0].toUpperCase()+r.substr(1)},lowerFirst:function(r){return r[0].toLowerCase()+r.substr(1)}},ini:{parse:function(r){var n,a={};return w.arrayEach(r.split(/\r?\n/),function(u){if("["===(u=u.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===u[u.length-1]){if("__proto__"===(n=u.substring(1,u.length-1))||"__proto__"===n.split(/\s/)[1])throw w.error(new Error("Cannot load profile name '"+n+"' from shared ini file."))}else if(n){var i=u.indexOf("=");if(-1!==i&&0!==i&&i!==u.length-1){var m=u.substring(0,i).trim(),I=u.substring(i+1).trim();a[n]=a[n]||{},a[n][m]=I}}}),a}},fn:{noop:function(){},callback:function(d){if(d)throw d},makeAsync:function(r,n){return n&&n<=r.length?r:function(){var a=Array.prototype.slice.call(arguments,0);a.pop()(r.apply(null,a))}}},date:{getDate:function(){return t||(t=p(497)),t.config.systemClockOffset?new Date((new Date).getTime()+t.config.systemClockOffset):new Date},iso8601:function(r){return void 0===r&&(r=w.date.getDate()),r.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(r){return void 0===r&&(r=w.date.getDate()),r.toUTCString()},unixTimestamp:function(r){return void 0===r&&(r=w.date.getDate()),r.getTime()/1e3},from:function(r){return"number"==typeof r?new Date(1e3*r):new Date(r)},format:function(r,n){return n||(n="iso8601"),w.date[n](w.date.from(r))},parseTimestamp:function(r){if("number"==typeof r)return new Date(1e3*r);if(r.match(/^\d+$/))return new Date(1e3*r);if(r.match(/^\d{4}/))return new Date(r);if(r.match(/^\w{3},/))return new Date(r);throw w.error(new Error("unhandled timestamp format: "+r),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(r){var n=w.crypto.crc32Table,a=-1;"string"==typeof r&&(r=w.buffer.toBuffer(r));for(var u=0;u<r.length;u++)a=a>>>8^n[255&(a^r.readUInt8(u))];return(-1^a)>>>0},hmac:function(r,n,a,u){return a||(a="binary"),"buffer"===a&&(a=void 0),u||(u="sha256"),"string"==typeof n&&(n=w.buffer.toBuffer(n)),w.crypto.lib.createHmac(u,r).update(n).digest(a)},md5:function(r,n,a){return w.crypto.hash("md5",r,n,a)},sha256:function(r,n,a){return w.crypto.hash("sha256",r,n,a)},hash:function(d,r,n,a){var u=w.crypto.createHash(d);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof r&&(r=w.buffer.toBuffer(r));var e=w.arraySliceFn(r),i=w.Buffer.isBuffer(r);if(w.isBrowser()&&typeof ArrayBuffer<"u"&&r&&r.buffer instanceof ArrayBuffer&&(i=!0),a&&"object"==typeof r&&"function"==typeof r.on&&!i)r.on("data",function(I){u.update(I)}),r.on("error",function(I){a(I)}),r.on("end",function(){a(null,u.digest(n))});else{if(!(a&&e&&!i&&typeof FileReader<"u")){w.isBrowser()&&"object"==typeof r&&!i&&(r=new w.Buffer(new Uint8Array(r)));var m=u.update(r).digest(n);return a&&a(null,m),m}var s=0,y=new FileReader;y.onerror=function(){a(new Error("Failed to read data."))},y.onload=function(){var I=new w.Buffer(new Uint8Array(y.result));u.update(I),s+=I.length,y._continueReading()},y._continueReading=function(){if(s>=r.size)a(null,u.digest(n));else{var I=s+524288;I>r.size&&(I=r.size),y.readAsArrayBuffer(e.call(r,s,I))}},y._continueReading()}},toHex:function(r){for(var n=[],a=0;a<r.length;a++)n.push(("0"+r.charCodeAt(a).toString(16)).substr(-2,2));return n.join("")},createHash:function(r){return w.crypto.lib.createHash(r)}},abort:{},each:function(r,n){for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&n.call(this,a,r[a])===w.abort)break},arrayEach:function(r,n){for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&n.call(this,r[a],parseInt(a,10))===w.abort)break},update:function(r,n){return w.each(n,function(u,e){r[u]=e}),r},merge:function(r,n){return w.update(w.copy(r),n)},copy:function(r){if(null==r)return r;var n={};for(var a in r)n[a]=r[a];return n},isEmpty:function(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))return!1;return!0},arraySliceFn:function(r){var n=r.slice||r.webkitSlice||r.mozSlice;return"function"==typeof n?n:null},isType:function(r,n){return"function"==typeof n&&(n=w.typeName(n)),Object.prototype.toString.call(r)==="[object "+n+"]"},typeName:function(r){if(Object.prototype.hasOwnProperty.call(r,"name"))return r.name;var n=r.toString(),a=n.match(/^\s*function (.+)\(/);return a?a[1]:n},error:function(r,n){var a=null;return"string"==typeof r.message&&""!==r.message&&("string"==typeof n||n&&n.message)&&((a=w.copy(r)).message=r.message),r.message=r.message||null,"string"==typeof n?r.message=n:"object"==typeof n&&null!==n&&(w.update(r,n),n.message&&(r.message=n.message),(n.code||n.name)&&(r.code=n.code||n.name),n.stack&&(r.stack=n.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(r,"name",{writable:!0,enumerable:!1}),Object.defineProperty(r,"message",{enumerable:!0})),r.name=String(n&&n.name||r.name||r.code||"Error"),r.time=new Date,a&&(r.originalError=a),r},inherit:function(r,n){var a=null;if(void 0===n)n=r,r=Object,a={};else{var u=function(){};u.prototype=r.prototype,a=new u}return n.constructor===Object&&(n.constructor=function(){if(r!==Object)return r.apply(this,arguments)}),n.constructor.prototype=a,w.update(n.constructor.prototype,n),n.constructor.__super__=r,n.constructor},mixin:function(){for(var r=arguments[0],n=1;n<arguments.length;n++)for(var a in arguments[n].prototype)"constructor"!==a&&(r.prototype[a]=arguments[n].prototype[a]);return r},hideProperties:function(r,n){"function"==typeof Object.defineProperty&&w.arrayEach(n,function(a){Object.defineProperty(r,a,{enumerable:!1,writable:!0,configurable:!0})})},property:function(r,n,a,u,e){var i={configurable:!0,enumerable:void 0===u||u};"function"!=typeof a||e?(i.value=a,i.writable=!0):i.get=a,Object.defineProperty(r,n,i)},memoizedProperty:function(r,n,a,u){var e=null;w.property(r,n,function(){return null===e&&(e=a()),e},u)},hoistPayloadMember:function(r){var n=r.request,u=n.service.api.operations[n.operation],e=u.output;e.payload&&!u.hasEventOutput&&"structure"===e.members[e.payload].type&&w.each(r.data[e.payload],function(h,y){w.property(r.data,h,y,!1)})},computeSha256:function(r,n){if(w.isNode()){var a=w.stream.Stream,u=p(47310);if("function"==typeof a&&r instanceof a){if("string"!=typeof r.path)return n(new Error("Non-file stream objects are not supported with SigV4"));var e={};"number"==typeof r.start&&(e.start=r.start),"number"==typeof r.end&&(e.end=r.end),r=u.createReadStream(r.path,e)}}w.crypto.sha256(r,"hex",function(i,s){i?n(i):n(null,s)})},isClockSkewed:function(r){if(r)return w.property(t.config,"isClockSkewed",Math.abs((new Date).getTime()-r)>=3e5,!1),t.config.isClockSkewed},applyClockOffset:function(r){r&&(t.config.systemClockOffset=r-(new Date).getTime())},extractRequestId:function(r){var n=r.httpResponse.headers["x-amz-request-id"]||r.httpResponse.headers["x-amzn-requestid"];!n&&r.data&&r.data.ResponseMetadata&&(n=r.data.ResponseMetadata.RequestId),n&&(r.requestId=n),r.error&&(r.error.requestId=n)},addPromises:function(r,n){var a=!1;void 0===n&&t&&t.config&&(n=t.config.getPromisesDependency()),void 0===n&&typeof Promise<"u"&&(n=Promise),"function"!=typeof n&&(a=!0),Array.isArray(r)||(r=[r]);for(var u=0;u<r.length;u++){var e=r[u];a?e.deletePromisesFromClass&&e.deletePromisesFromClass():e.addPromisesToClass&&e.addPromisesToClass(n)}},promisifyMethod:function(r,n){return function(){var u=this,e=Array.prototype.slice.call(arguments);return new n(function(i,s){e.push(function(h,y){h?s(h):i(y)}),u[r].apply(u,e)})}},isDualstackAvailable:function(r){if(!r)return!1;var n=p(6839);return"string"!=typeof r&&(r=r.serviceIdentifier),!("string"!=typeof r||!n.hasOwnProperty(r)||!n[r].dualstackAvailable)},calculateRetryDelay:function(r,n,a){n||(n={});var u=n.customBackoff||null;if("function"==typeof u)return u(r,a);var e="number"==typeof n.base?n.base:100;return Math.random()*(Math.pow(2,r)*e)},handleRequestWithRetries:function(r,n,a){n||(n={});var u=t.HttpClient.getInstance(),e=n.httpOptions||{},i=0,s=function(y){var m=n.maxRetries||0;if(y&&"TimeoutError"===y.code&&(y.retryable=!0),y&&y.retryable&&i<m){var I=w.calculateRetryDelay(i,n.retryDelayOptions,y);if(I>=0)return i++,void setTimeout(h,I+(y.retryAfter||0))}a(y)},h=function(){var y="";u.handleRequest(r,e,function(m){m.on("data",function(I){y+=I.toString()}),m.on("end",function(){var I=m.statusCode;if(I<300)a(null,y);else{var M=1e3*parseInt(m.headers["retry-after"],10)||0,P=w.error(new Error,{statusCode:I,retryable:I>=500||429===I});M&&P.retryable&&(P.retryAfter=M),s(P)}})},s)};t.util.defer(h)},uuid:{v4:function(){return p(4111).v4()}},convertPayloadToString:function(r){var n=r.request,u=n.service.api.operations[n.operation].output||{};u.payload&&r.data[u.payload]&&(r.data[u.payload]=r.data[u.payload].toString())},defer:function(r){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(r):"function"==typeof setImmediate?setImmediate(r):setTimeout(r,0)},getRequestPayloadShape:function(r){var n=r.service.api.operations;if(n){var a=(n||{})[r.operation];if(a&&a.input&&a.input.payload)return a.input.members[a.input.payload]}},getProfilesFromSharedConfig:function(r,n){var a={},u={};process.env[w.configOptInEnv]&&(u=r.loadFrom({isConfig:!0,filename:process.env[w.sharedConfigFileEnv]}));var e={};try{e=r.loadFrom({filename:n||process.env[w.configOptInEnv]&&process.env[w.sharedCredentialsFileEnv]})}catch(y){if(!process.env[w.configOptInEnv])throw y}for(var i=0,s=Object.keys(u);i<s.length;i++)a[s[i]]=h(a[s[i]]||{},u[s[i]]);for(i=0,s=Object.keys(e);i<s.length;i++)a[s[i]]=h(a[s[i]]||{},e[s[i]]);return a;function h(y,m){for(var I=0,M=Object.keys(m);I<M.length;I++)y[M[I]]=m[M[I]];return y}},ARN:{validate:function(r){return r&&0===r.indexOf("arn:")&&r.split(":").length>=6},parse:function(r){var n=r.split(":");return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}},build:function(r){if(void 0===r.service||void 0===r.region||void 0===r.accountId||void 0===r.resource)throw w.error(new Error("Input ARN object is invalid"));return"arn:"+(r.partition||"aws")+":"+r.service+":"+r.region+":"+r.accountId+":"+r.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};ce.exports=w},58882:(ce,k,p)=>{var t=p(33123),w=p(17680);function d(){}function r(h,y){for(var m=h.getElementsByTagName(y),I=0,M=m.length;I<M;I++)if(m[I].parentNode===h)return m[I]}function n(h,y){switch(y||(y={}),y.type){case"structure":return a(h,y);case"map":return function u(h,y){for(var m={},I=y.key.name||"key",M=y.value.name||"value",P=y.flattened?y.name:"entry",C=h.firstElementChild;C;){if(C.nodeName===P){var D=r(C,I).textContent,W=r(C,M);m[D]=n(W,y.value)}C=C.nextElementSibling}return m}(h,y);case"list":return function e(h,y){for(var m=[],I=y.flattened?y.name:y.member.name||"member",M=h.firstElementChild;M;)M.nodeName===I&&m.push(n(M,y.member)),M=M.nextElementSibling;return m}(h,y);case void 0:case null:return function s(h){if(null==h)return"";if(!h.firstElementChild)return null===h.parentNode.parentNode?{}:0===h.childNodes.length?"":h.textContent;for(var y={type:"structure",members:{}},m=h.firstElementChild;m;){var I=m.nodeName;Object.prototype.hasOwnProperty.call(y.members,I)?y.members[I].type="list":y.members[I]={name:I},m=m.nextElementSibling}return a(h,y)}(h);default:return function i(h,y){if(h.getAttribute){var m=h.getAttribute("encoding");"base64"===m&&(y=new w.create({type:m}))}var I=h.textContent;return""===I&&(I=null),"function"==typeof y.toType?y.toType(I):I}(h,y)}}function a(h,y){var m={};return null===h||t.each(y.members,function(I,M){if(M.isXmlAttribute)Object.prototype.hasOwnProperty.call(h.attributes,M.name)&&(m[I]=n({textContent:h.attributes[M.name].value},M));else{var C=M.flattened?h:r(h,M.name);C?m[I]=n(C,M):!M.flattened&&"list"===M.type&&!y.api.xmlNoDefaultLists&&(m[I]=M.defaultValue)}}),m}d.prototype.parse=function(h,y){if(""===h.replace(/^\s+/,""))return{};var m,I;try{if(window.DOMParser){try{m=(new DOMParser).parseFromString(h,"text/xml")}catch(Q){throw t.error(new Error("Parse error in document"),{originalError:Q,code:"XMLParserError",retryable:!0})}if(null===m.documentElement)throw t.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var P=m.getElementsByTagName("parsererror")[0];if(P&&(P.parentNode===m||"body"===P.parentNode.nodeName||P.parentNode.parentNode===m||"body"===P.parentNode.parentNode.nodeName)){var C=P.getElementsByTagName("div")[0]||P;throw t.error(new Error(C.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((m=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!m.loadXML(h))throw t.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(Q){I=Q}if(m&&m.documentElement&&!I){var D=n(m.documentElement,y),W=r(m.documentElement,"ResponseMetadata");return W&&(D.ResponseMetadata=n(W,{})),D}if(I)throw t.error(I||new Error,{code:"XMLParserError",retryable:!0});return{}},ce.exports=d},30461:(ce,k,p)=>{var t=p(33123),w=p(97811).XmlNode,d=p(15227).XmlText;function r(){}function n(h,y,m){switch(m.type){case"structure":return function a(h,y,m){t.arrayEach(m.memberNames,function(I){var M=m.members[I];if("body"===M.location){var P=y[I],C=M.name;if(null!=P)if(M.isXmlAttribute)h.addAttribute(C,P);else if(M.flattened)n(h,P,M);else{var D=new w(C);h.addChildNode(D),s(D,M),n(D,P,M)}}})}(h,y,m);case"map":return function u(h,y,m){var I=m.key.name||"key",M=m.value.name||"value";t.each(y,function(P,C){var D=new w(m.flattened?m.name:"entry");h.addChildNode(D);var W=new w(I),Q=new w(M);D.addChildNode(W),D.addChildNode(Q),n(W,P,m.key),n(Q,C,m.value)})}(h,y,m);case"list":return function e(h,y,m){t.arrayEach(y,m.flattened?function(I){var P=new w(m.member.name||m.name);h.addChildNode(P),n(P,I,m.member)}:function(I){var P=new w(m.member.name||"member");h.addChildNode(P),n(P,I,m.member)})}(h,y,m);default:return function i(h,y,m){h.addChildNode(new d(m.toWireFormat(y)))}(h,y,m)}}function s(h,y,m){var I,M="xmlns";y.xmlNamespaceUri?(I=y.xmlNamespaceUri,y.xmlNamespacePrefix&&(M+=":"+y.xmlNamespacePrefix)):m&&y.api.xmlNamespaceUri&&(I=y.api.xmlNamespaceUri),I&&h.addAttribute(M,I)}r.prototype.toXML=function(h,y,m,I){var M=new w(m);return s(M,y,!0),n(M,h,y),M.children.length>0||I?M.toString():""},ce.exports=r},36530:ce=>{ce.exports={escapeAttribute:function k(p){return p.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},3821:ce=>{ce.exports={escapeElement:function k(p){return p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},97811:(ce,k,p)=>{var t=p(36530).escapeAttribute;function w(d,r){void 0===r&&(r=[]),this.name=d,this.children=r,this.attributes={}}w.prototype.addAttribute=function(d,r){return this.attributes[d]=r,this},w.prototype.addChildNode=function(d){return this.children.push(d),this},w.prototype.removeAttribute=function(d){return delete this.attributes[d],this},w.prototype.toString=function(){for(var d=Boolean(this.children.length),r="<"+this.name,n=this.attributes,a=0,u=Object.keys(n);a<u.length;a++){var e=u[a],i=n[e];typeof i<"u"&&null!==i&&(r+=" "+e+'="'+t(""+i)+'"')}return r+(d?">"+this.children.map(function(s){return s.toString()}).join("")+"</"+this.name+">":"/>")},ce.exports={XmlNode:w}},15227:(ce,k,p)=>{var t=p(3821).escapeElement;function w(d){this.value=d}w.prototype.toString=function(){return t(""+this.value)},ce.exports={XmlText:w}},3584:(ce,k,p)=>{"use strict";var w=p(3517),d=p(78757),r=p(45944);function a(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(v,O){if(a()<O)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(v=new Uint8Array(O)).__proto__=e.prototype:(null===v&&(v=new e(O)),v.length=O),v}function e(v,O,F){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(v,O,F);if("number"==typeof v){if("string"==typeof O)throw new Error("If encoding is specified then the first argument must be a string");return y(this,v)}return i(this,v,O,F)}function i(v,O,F,re){if("number"==typeof O)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&O instanceof ArrayBuffer?function M(v,O,F,re){if(F<0||O.byteLength<F)throw new RangeError("'offset' is out of bounds");if(O.byteLength<F+(re||0))throw new RangeError("'length' is out of bounds");return O=void 0===F&&void 0===re?new Uint8Array(O):void 0===re?new Uint8Array(O,F):new Uint8Array(O,F,re),e.TYPED_ARRAY_SUPPORT?(v=O).__proto__=e.prototype:v=I(v,O),v}(v,O,F,re):"string"==typeof O?function m(v,O,F){if(("string"!=typeof F||""===F)&&(F="utf8"),!e.isEncoding(F))throw new TypeError('"encoding" must be a valid string encoding');var re=0|W(O,F),ve=(v=u(v,re)).write(O,F);return ve!==re&&(v=v.slice(0,ve)),v}(v,O,F):function P(v,O){if(e.isBuffer(O)){var F=0|C(O.length);return 0===(v=u(v,F)).length||O.copy(v,0,0,F),v}if(O){if(typeof ArrayBuffer<"u"&&O.buffer instanceof ArrayBuffer||"length"in O)return"number"!=typeof O.length||function V(v){return v!=v}(O.length)?u(v,0):I(v,O);if("Buffer"===O.type&&r(O.data))return I(v,O.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(v,O)}function s(v){if("number"!=typeof v)throw new TypeError('"size" argument must be a number');if(v<0)throw new RangeError('"size" argument must not be negative')}function y(v,O){if(s(O),v=u(v,O<0?0:0|C(O)),!e.TYPED_ARRAY_SUPPORT)for(var F=0;F<O;++F)v[F]=0;return v}function I(v,O){var F=O.length<0?0:0|C(O.length);v=u(v,F);for(var re=0;re<F;re+=1)v[re]=255&O[re];return v}function C(v){if(v>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|v}function W(v,O){if(e.isBuffer(v))return v.length;if(typeof ArrayBuffer<"u"&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(v)||v instanceof ArrayBuffer))return v.byteLength;"string"!=typeof v&&(v=""+v);var F=v.length;if(0===F)return 0;for(var re=!1;;)switch(O){case"ascii":case"latin1":case"binary":return F;case"utf8":case"utf-8":case void 0:return me(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*F;case"hex":return F>>>1;case"base64":return Me(v).length;default:if(re)return me(v).length;O=(""+O).toLowerCase(),re=!0}}function Q(v,O,F){var re=!1;if((void 0===O||O<0)&&(O=0),O>this.length||((void 0===F||F>this.length)&&(F=this.length),F<=0)||(F>>>=0)<=(O>>>=0))return"";for(v||(v="utf8");;)switch(v){case"hex":return oe(this,O,F);case"utf8":case"utf-8":return z(this,O,F);case"ascii":return X(this,O,F);case"latin1":case"binary":return he(this,O,F);case"base64":return U(this,O,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,O,F);default:if(re)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),re=!0}}function H(v,O,F){var re=v[O];v[O]=v[F],v[F]=re}function L(v,O,F,re,ve){if(0===v.length)return-1;if("string"==typeof F?(re=F,F=0):F>2147483647?F=2147483647:F<-2147483648&&(F=-2147483648),F=+F,isNaN(F)&&(F=ve?0:v.length-1),F<0&&(F=v.length+F),F>=v.length){if(ve)return-1;F=v.length-1}else if(F<0){if(!ve)return-1;F=0}if("string"==typeof O&&(O=e.from(O,re)),e.isBuffer(O))return 0===O.length?-1:g(v,O,F,re,ve);if("number"==typeof O)return O&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?ve?Uint8Array.prototype.indexOf.call(v,O,F):Uint8Array.prototype.lastIndexOf.call(v,O,F):g(v,[O],F,re,ve);throw new TypeError("val must be string, number or Buffer")}function g(v,O,F,re,ve){var ye,xe=1,Te=v.length,te=O.length;if(void 0!==re&&("ucs2"===(re=String(re).toLowerCase())||"ucs-2"===re||"utf16le"===re||"utf-16le"===re)){if(v.length<2||O.length<2)return-1;xe=2,Te/=2,te/=2,F/=2}function de(qe,ze){return 1===xe?qe[ze]:qe.readUInt16BE(ze*xe)}if(ve){var Oe=-1;for(ye=F;ye<Te;ye++)if(de(v,ye)===de(O,-1===Oe?0:ye-Oe)){if(-1===Oe&&(Oe=ye),ye-Oe+1===te)return Oe*xe}else-1!==Oe&&(ye-=ye-Oe),Oe=-1}else for(F+te>Te&&(F=Te-te),ye=F;ye>=0;ye--){for(var Ie=!0,Ue=0;Ue<te;Ue++)if(de(v,ye+Ue)!==de(O,Ue)){Ie=!1;break}if(Ie)return ye}return-1}function R(v,O,F,re){F=Number(F)||0;var ve=v.length-F;re?(re=Number(re))>ve&&(re=ve):re=ve;var xe=O.length;if(xe%2!=0)throw new TypeError("Invalid hex string");re>xe/2&&(re=xe/2);for(var Te=0;Te<re;++Te){var te=parseInt(O.substr(2*Te,2),16);if(isNaN(te))return Te;v[F+Te]=te}return Te}function c(v,O,F,re){return ie(me(O,v.length-F),v,F,re)}function _(v,O,F,re){return ie(function Re(v){for(var O=[],F=0;F<v.length;++F)O.push(255&v.charCodeAt(F));return O}(O),v,F,re)}function l(v,O,F,re){return _(v,O,F,re)}function T(v,O,F,re){return ie(Me(O),v,F,re)}function B(v,O,F,re){return ie(function De(v,O){for(var F,re,xe=[],Te=0;Te<v.length&&!((O-=2)<0);++Te)re=(F=v.charCodeAt(Te))>>8,xe.push(F%256),xe.push(re);return xe}(O,v.length-F),v,F,re)}function U(v,O,F){return w.fromByteArray(0===O&&F===v.length?v:v.slice(O,F))}function z(v,O,F){F=Math.min(v.length,F);for(var re=[],ve=O;ve<F;){var de,ye,Oe,Ie,xe=v[ve],Te=null,te=xe>239?4:xe>223?3:xe>191?2:1;if(ve+te<=F)switch(te){case 1:xe<128&&(Te=xe);break;case 2:128==(192&(de=v[ve+1]))&&(Ie=(31&xe)<<6|63&de)>127&&(Te=Ie);break;case 3:ye=v[ve+2],128==(192&(de=v[ve+1]))&&128==(192&ye)&&(Ie=(15&xe)<<12|(63&de)<<6|63&ye)>2047&&(Ie<55296||Ie>57343)&&(Te=Ie);break;case 4:ye=v[ve+2],Oe=v[ve+3],128==(192&(de=v[ve+1]))&&128==(192&ye)&&128==(192&Oe)&&(Ie=(15&xe)<<18|(63&de)<<12|(63&ye)<<6|63&Oe)>65535&&Ie<1114112&&(Te=Ie)}null===Te?(Te=65533,te=1):Te>65535&&(re.push((Te-=65536)>>>10&1023|55296),Te=56320|1023&Te),re.push(Te),ve+=te}return function pe(v){var O=v.length;if(O<=ae)return String.fromCharCode.apply(String,v);for(var F="",re=0;re<O;)F+=String.fromCharCode.apply(String,v.slice(re,re+=ae));return F}(re)}k.lW=e,k.h2=50,e.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function n(){try{var v=new Uint8Array(1);return v.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===v.foo()&&"function"==typeof v.subarray&&0===v.subarray(1,1).byteLength}catch{return!1}}(),a(),e.poolSize=8192,e._augment=function(v){return v.__proto__=e.prototype,v},e.from=function(v,O,F){return i(null,v,O,F)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(v,O,F){return function h(v,O,F,re){return s(O),O<=0?u(v,O):void 0!==F?"string"==typeof re?u(v,O).fill(F,re):u(v,O).fill(F):u(v,O)}(null,v,O,F)},e.allocUnsafe=function(v){return y(null,v)},e.allocUnsafeSlow=function(v){return y(null,v)},e.isBuffer=function(O){return!(null==O||!O._isBuffer)},e.compare=function(O,F){if(!e.isBuffer(O)||!e.isBuffer(F))throw new TypeError("Arguments must be Buffers");if(O===F)return 0;for(var re=O.length,ve=F.length,xe=0,Te=Math.min(re,ve);xe<Te;++xe)if(O[xe]!==F[xe]){re=O[xe],ve=F[xe];break}return re<ve?-1:ve<re?1:0},e.isEncoding=function(O){switch(String(O).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}},e.concat=function(O,F){if(!r(O))throw new TypeError('"list" argument must be an Array of Buffers');if(0===O.length)return e.alloc(0);var re;if(void 0===F)for(F=0,re=0;re<O.length;++re)F+=O[re].length;var ve=e.allocUnsafe(F),xe=0;for(re=0;re<O.length;++re){var Te=O[re];if(!e.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(ve,xe),xe+=Te.length}return ve},e.byteLength=W,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var F=0;F<O;F+=2)H(this,F,F+1);return this},e.prototype.swap32=function(){var O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var F=0;F<O;F+=4)H(this,F,F+3),H(this,F+1,F+2);return this},e.prototype.swap64=function(){var O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var F=0;F<O;F+=8)H(this,F,F+7),H(this,F+1,F+6),H(this,F+2,F+5),H(this,F+3,F+4);return this},e.prototype.toString=function(){var O=0|this.length;return 0===O?"":0===arguments.length?z(this,0,O):Q.apply(this,arguments)},e.prototype.equals=function(O){if(!e.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||0===e.compare(this,O)},e.prototype.inspect=function(){var O="",F=k.h2;return this.length>0&&(O=this.toString("hex",0,F).match(/.{2}/g).join(" "),this.length>F&&(O+=" ... ")),"<Buffer "+O+">"},e.prototype.compare=function(O,F,re,ve,xe){if(!e.isBuffer(O))throw new TypeError("Argument must be a Buffer");if(void 0===F&&(F=0),void 0===re&&(re=O?O.length:0),void 0===ve&&(ve=0),void 0===xe&&(xe=this.length),F<0||re>O.length||ve<0||xe>this.length)throw new RangeError("out of range index");if(ve>=xe&&F>=re)return 0;if(ve>=xe)return-1;if(F>=re)return 1;if(this===O)return 0;for(var Te=(xe>>>=0)-(ve>>>=0),te=(re>>>=0)-(F>>>=0),de=Math.min(Te,te),ye=this.slice(ve,xe),Oe=O.slice(F,re),Ie=0;Ie<de;++Ie)if(ye[Ie]!==Oe[Ie]){Te=ye[Ie],te=Oe[Ie];break}return Te<te?-1:te<Te?1:0},e.prototype.includes=function(O,F,re){return-1!==this.indexOf(O,F,re)},e.prototype.indexOf=function(O,F,re){return L(this,O,F,re,!0)},e.prototype.lastIndexOf=function(O,F,re){return L(this,O,F,re,!1)},e.prototype.write=function(O,F,re,ve){if(void 0===F)ve="utf8",re=this.length,F=0;else if(void 0===re&&"string"==typeof F)ve=F,re=this.length,F=0;else{if(!isFinite(F))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");F|=0,isFinite(re)?(re|=0,void 0===ve&&(ve="utf8")):(ve=re,re=void 0)}var xe=this.length-F;if((void 0===re||re>xe)&&(re=xe),O.length>0&&(re<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");ve||(ve="utf8");for(var Te=!1;;)switch(ve){case"hex":return R(this,O,F,re);case"utf8":case"utf-8":return c(this,O,F,re);case"ascii":return _(this,O,F,re);case"latin1":case"binary":return l(this,O,F,re);case"base64":return T(this,O,F,re);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,O,F,re);default:if(Te)throw new TypeError("Unknown encoding: "+ve);ve=(""+ve).toLowerCase(),Te=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ae=4096;function X(v,O,F){var re="";F=Math.min(v.length,F);for(var ve=O;ve<F;++ve)re+=String.fromCharCode(127&v[ve]);return re}function he(v,O,F){var re="";F=Math.min(v.length,F);for(var ve=O;ve<F;++ve)re+=String.fromCharCode(v[ve]);return re}function oe(v,O,F){var re=v.length;(!O||O<0)&&(O=0),(!F||F<0||F>re)&&(F=re);for(var ve="",xe=O;xe<F;++xe)ve+=_e(v[xe]);return ve}function K(v,O,F){for(var re=v.slice(O,F),ve="",xe=0;xe<re.length;xe+=2)ve+=String.fromCharCode(re[xe]+256*re[xe+1]);return ve}function Y(v,O,F){if(v%1!=0||v<0)throw new RangeError("offset is not uint");if(v+O>F)throw new RangeError("Trying to access beyond buffer length")}function ne(v,O,F,re,ve,xe){if(!e.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>ve||O<xe)throw new RangeError('"value" argument is out of bounds');if(F+re>v.length)throw new RangeError("Index out of range")}function $(v,O,F,re){O<0&&(O=65535+O+1);for(var ve=0,xe=Math.min(v.length-F,2);ve<xe;++ve)v[F+ve]=(O&255<<8*(re?ve:1-ve))>>>8*(re?ve:1-ve)}function A(v,O,F,re){O<0&&(O=4294967295+O+1);for(var ve=0,xe=Math.min(v.length-F,4);ve<xe;++ve)v[F+ve]=O>>>8*(re?ve:3-ve)&255}function b(v,O,F,re,ve,xe){if(F+re>v.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("Index out of range")}function x(v,O,F,re,ve){return ve||b(v,0,F,4),d.write(v,O,F,re,23,4),F+4}function N(v,O,F,re,ve){return ve||b(v,0,F,8),d.write(v,O,F,re,52,8),F+8}e.prototype.slice=function(O,F){var ve,re=this.length;if((O=~~O)<0?(O+=re)<0&&(O=0):O>re&&(O=re),(F=void 0===F?re:~~F)<0?(F+=re)<0&&(F=0):F>re&&(F=re),F<O&&(F=O),e.TYPED_ARRAY_SUPPORT)(ve=this.subarray(O,F)).__proto__=e.prototype;else{var xe=F-O;ve=new e(xe,void 0);for(var Te=0;Te<xe;++Te)ve[Te]=this[Te+O]}return ve},e.prototype.readUIntLE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=this[O],xe=1,Te=0;++Te<F&&(xe*=256);)ve+=this[O+Te]*xe;return ve},e.prototype.readUIntBE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=this[O+--F],xe=1;F>0&&(xe*=256);)ve+=this[O+--F]*xe;return ve},e.prototype.readUInt8=function(O,F){return F||Y(O,1,this.length),this[O]},e.prototype.readUInt16LE=function(O,F){return F||Y(O,2,this.length),this[O]|this[O+1]<<8},e.prototype.readUInt16BE=function(O,F){return F||Y(O,2,this.length),this[O]<<8|this[O+1]},e.prototype.readUInt32LE=function(O,F){return F||Y(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},e.prototype.readUInt32BE=function(O,F){return F||Y(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},e.prototype.readIntLE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=this[O],xe=1,Te=0;++Te<F&&(xe*=256);)ve+=this[O+Te]*xe;return ve>=(xe*=128)&&(ve-=Math.pow(2,8*F)),ve},e.prototype.readIntBE=function(O,F,re){O|=0,F|=0,re||Y(O,F,this.length);for(var ve=F,xe=1,Te=this[O+--ve];ve>0&&(xe*=256);)Te+=this[O+--ve]*xe;return Te>=(xe*=128)&&(Te-=Math.pow(2,8*F)),Te},e.prototype.readInt8=function(O,F){return F||Y(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},e.prototype.readInt16LE=function(O,F){F||Y(O,2,this.length);var re=this[O]|this[O+1]<<8;return 32768&re?4294901760|re:re},e.prototype.readInt16BE=function(O,F){F||Y(O,2,this.length);var re=this[O+1]|this[O]<<8;return 32768&re?4294901760|re:re},e.prototype.readInt32LE=function(O,F){return F||Y(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},e.prototype.readInt32BE=function(O,F){return F||Y(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},e.prototype.readFloatLE=function(O,F){return F||Y(O,4,this.length),d.read(this,O,!0,23,4)},e.prototype.readFloatBE=function(O,F){return F||Y(O,4,this.length),d.read(this,O,!1,23,4)},e.prototype.readDoubleLE=function(O,F){return F||Y(O,8,this.length),d.read(this,O,!0,52,8)},e.prototype.readDoubleBE=function(O,F){return F||Y(O,8,this.length),d.read(this,O,!1,52,8)},e.prototype.writeUIntLE=function(O,F,re,ve){O=+O,F|=0,re|=0,ve||ne(this,O,F,re,Math.pow(2,8*re)-1,0);var Te=1,te=0;for(this[F]=255&O;++te<re&&(Te*=256);)this[F+te]=O/Te&255;return F+re},e.prototype.writeUIntBE=function(O,F,re,ve){O=+O,F|=0,re|=0,ve||ne(this,O,F,re,Math.pow(2,8*re)-1,0);var Te=re-1,te=1;for(this[F+Te]=255&O;--Te>=0&&(te*=256);)this[F+Te]=O/te&255;return F+re},e.prototype.writeUInt8=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,1,255,0),e.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),this[F]=255&O,F+1},e.prototype.writeUInt16LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[F]=255&O,this[F+1]=O>>>8):$(this,O,F,!0),F+2},e.prototype.writeUInt16BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>8,this[F+1]=255&O):$(this,O,F,!1),F+2},e.prototype.writeUInt32LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[F+3]=O>>>24,this[F+2]=O>>>16,this[F+1]=O>>>8,this[F]=255&O):A(this,O,F,!0),F+4},e.prototype.writeUInt32BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>24,this[F+1]=O>>>16,this[F+2]=O>>>8,this[F+3]=255&O):A(this,O,F,!1),F+4},e.prototype.writeIntLE=function(O,F,re,ve){if(O=+O,F|=0,!ve){var xe=Math.pow(2,8*re-1);ne(this,O,F,re,xe-1,-xe)}var Te=0,te=1,de=0;for(this[F]=255&O;++Te<re&&(te*=256);)O<0&&0===de&&0!==this[F+Te-1]&&(de=1),this[F+Te]=(O/te>>0)-de&255;return F+re},e.prototype.writeIntBE=function(O,F,re,ve){if(O=+O,F|=0,!ve){var xe=Math.pow(2,8*re-1);ne(this,O,F,re,xe-1,-xe)}var Te=re-1,te=1,de=0;for(this[F+Te]=255&O;--Te>=0&&(te*=256);)O<0&&0===de&&0!==this[F+Te+1]&&(de=1),this[F+Te]=(O/te>>0)-de&255;return F+re},e.prototype.writeInt8=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,1,127,-128),e.TYPED_ARRAY_SUPPORT||(O=Math.floor(O)),O<0&&(O=255+O+1),this[F]=255&O,F+1},e.prototype.writeInt16LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[F]=255&O,this[F+1]=O>>>8):$(this,O,F,!0),F+2},e.prototype.writeInt16BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>8,this[F+1]=255&O):$(this,O,F,!1),F+2},e.prototype.writeInt32LE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[F]=255&O,this[F+1]=O>>>8,this[F+2]=O>>>16,this[F+3]=O>>>24):A(this,O,F,!0),F+4},e.prototype.writeInt32BE=function(O,F,re){return O=+O,F|=0,re||ne(this,O,F,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),e.TYPED_ARRAY_SUPPORT?(this[F]=O>>>24,this[F+1]=O>>>16,this[F+2]=O>>>8,this[F+3]=255&O):A(this,O,F,!1),F+4},e.prototype.writeFloatLE=function(O,F,re){return x(this,O,F,!0,re)},e.prototype.writeFloatBE=function(O,F,re){return x(this,O,F,!1,re)},e.prototype.writeDoubleLE=function(O,F,re){return N(this,O,F,!0,re)},e.prototype.writeDoubleBE=function(O,F,re){return N(this,O,F,!1,re)},e.prototype.copy=function(O,F,re,ve){if(re||(re=0),!ve&&0!==ve&&(ve=this.length),F>=O.length&&(F=O.length),F||(F=0),ve>0&&ve<re&&(ve=re),ve===re||0===O.length||0===this.length)return 0;if(F<0)throw new RangeError("targetStart out of bounds");if(re<0||re>=this.length)throw new RangeError("sourceStart out of bounds");if(ve<0)throw new RangeError("sourceEnd out of bounds");ve>this.length&&(ve=this.length),O.length-F<ve-re&&(ve=O.length-F+re);var Te,xe=ve-re;if(this===O&&re<F&&F<ve)for(Te=xe-1;Te>=0;--Te)O[Te+F]=this[Te+re];else if(xe<1e3||!e.TYPED_ARRAY_SUPPORT)for(Te=0;Te<xe;++Te)O[Te+F]=this[Te+re];else Uint8Array.prototype.set.call(O,this.subarray(re,re+xe),F);return xe},e.prototype.fill=function(O,F,re,ve){if("string"==typeof O){if("string"==typeof F?(ve=F,F=0,re=this.length):"string"==typeof re&&(ve=re,re=this.length),1===O.length){var xe=O.charCodeAt(0);xe<256&&(O=xe)}if(void 0!==ve&&"string"!=typeof ve)throw new TypeError("encoding must be a string");if("string"==typeof ve&&!e.isEncoding(ve))throw new TypeError("Unknown encoding: "+ve)}else"number"==typeof O&&(O&=255);if(F<0||this.length<F||this.length<re)throw new RangeError("Out of range index");if(re<=F)return this;var Te;if(F>>>=0,re=void 0===re?this.length:re>>>0,O||(O=0),"number"==typeof O)for(Te=F;Te<re;++Te)this[Te]=O;else{var te=e.isBuffer(O)?O:me(new e(O,ve).toString()),de=te.length;for(Te=0;Te<re-F;++Te)this[Te+F]=te[Te%de]}return this};var q=/[^+\/0-9A-Za-z-_]/g;function _e(v){return v<16?"0"+v.toString(16):v.toString(16)}function me(v,O){O=O||1/0;for(var F,re=v.length,ve=null,xe=[],Te=0;Te<re;++Te){if((F=v.charCodeAt(Te))>55295&&F<57344){if(!ve){if(F>56319){(O-=3)>-1&&xe.push(239,191,189);continue}if(Te+1===re){(O-=3)>-1&&xe.push(239,191,189);continue}ve=F;continue}if(F<56320){(O-=3)>-1&&xe.push(239,191,189),ve=F;continue}F=65536+(ve-55296<<10|F-56320)}else ve&&(O-=3)>-1&&xe.push(239,191,189);if(ve=null,F<128){if((O-=1)<0)break;xe.push(F)}else if(F<2048){if((O-=2)<0)break;xe.push(F>>6|192,63&F|128)}else if(F<65536){if((O-=3)<0)break;xe.push(F>>12|224,F>>6&63|128,63&F|128)}else{if(!(F<1114112))throw new Error("Invalid code point");if((O-=4)<0)break;xe.push(F>>18|240,F>>12&63|128,F>>6&63|128,63&F|128)}}return xe}function Me(v){return w.toByteArray(function ee(v){if((v=function ue(v){return v.trim?v.trim():v.replace(/^\s+|\s+$/g,"")}(v).replace(q,"")).length<2)return"";for(;v.length%4!=0;)v+="=";return v}(v))}function ie(v,O,F,re){for(var ve=0;ve<re&&!(ve+F>=O.length||ve>=v.length);++ve)O[ve+F]=v[ve];return ve}},78757:(ce,k)=>{k.read=function(p,t,w,d,r){var n,a,u=8*r-d-1,e=(1<<u)-1,i=e>>1,s=-7,h=w?r-1:0,y=w?-1:1,m=p[t+h];for(h+=y,n=m&(1<<-s)-1,m>>=-s,s+=u;s>0;n=256*n+p[t+h],h+=y,s-=8);for(a=n&(1<<-s)-1,n>>=-s,s+=d;s>0;a=256*a+p[t+h],h+=y,s-=8);if(0===n)n=1-i;else{if(n===e)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,d),n-=i}return(m?-1:1)*a*Math.pow(2,n-d)},k.write=function(p,t,w,d,r,n){var a,u,e,i=8*n-r-1,s=(1<<i)-1,h=s>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=d?0:n-1,I=d?1:-1,M=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-a))<1&&(a--,e*=2),(t+=a+h>=1?y/e:y*Math.pow(2,1-h))*e>=2&&(a++,e/=2),a+h>=s?(u=0,a=s):a+h>=1?(u=(t*e-1)*Math.pow(2,r),a+=h):(u=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;p[w+m]=255&u,m+=I,u/=256,r-=8);for(a=a<<r|u,i+=r;i>0;p[w+m]=255&a,m+=I,a/=256,i-=8);p[w+m-I]|=128*M}},85459:ce=>{function k(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function p(r){return"function"==typeof r}function w(r){return"object"==typeof r&&null!==r}function d(r){return void 0===r}ce.exports=k,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._maxListeners=void 0,k.defaultMaxListeners=10,k.prototype.setMaxListeners=function(r){if(!function t(r){return"number"==typeof r}(r)||r<0||isNaN(r))throw TypeError("n must be a positive number");return this._maxListeners=r,this},k.prototype.emit=function(r){var n,a,u,e,i,s;if(this._events||(this._events={}),"error"===r&&(!this._events.error||w(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var h=new Error('Uncaught, unspecified "error" event. ('+n+")");throw h.context=n,h}if(d(a=this._events[r]))return!1;if(p(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1),a.apply(this,e)}else if(w(a))for(e=Array.prototype.slice.call(arguments,1),u=(s=a.slice()).length,i=0;i<u;i++)s[i].apply(this,e);return!0},k.prototype.on=k.prototype.addListener=function(r,n){var a;if(!p(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",r,p(n.listener)?n.listener:n),this._events[r]?w(this._events[r])?this._events[r].push(n):this._events[r]=[this._events[r],n]:this._events[r]=n,w(this._events[r])&&!this._events[r].warned&&(a=d(this._maxListeners)?k.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[r].length>a&&(this._events[r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[r].length),"function"==typeof console.trace&&console.trace()),this},k.prototype.once=function(r,n){if(!p(n))throw TypeError("listener must be a function");var a=!1;function u(){this.removeListener(r,u),a||(a=!0,n.apply(this,arguments))}return u.listener=n,this.on(r,u),this},k.prototype.removeListener=function(r,n){var a,u,e,i;if(!p(n))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(e=(a=this._events[r]).length,u=-1,a===n||p(a.listener)&&a.listener===n)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,n);else if(w(a)){for(i=e;i-- >0;)if(a[i]===n||a[i].listener&&a[i].listener===n){u=i;break}if(u<0)return this;1===a.length?(a.length=0,delete this._events[r]):a.splice(u,1),this._events.removeListener&&this.emit("removeListener",r,n)}return this},k.prototype.removeAllListeners=function(r){var n,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[r]&&delete this._events[r],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(p(a=this._events[r]))this.removeListener(r,a);else if(a)for(;a.length;)this.removeListener(r,a[a.length-1]);return delete this._events[r],this},k.prototype.listeners=function(r){return this._events&&this._events[r]?p(this._events[r])?[this._events[r]]:this._events[r].slice():[]},k.prototype.listenerCount=function(r){if(this._events){var n=this._events[r];if(p(n))return 1;if(n)return n.length}return 0},k.listenerCount=function(r,n){return r.listenerCount(n)}},73480:function(ce,k,p){var t;ce=p.nmd(ce),function(w){"object"==typeof global&&global;var a,u=2147483647,e=36,i=1,s=26,h=38,y=700,m=72,I=128,M="-",P=/^xn--/,C=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Q=e-i,H=Math.floor,L=String.fromCharCode;function R(oe){throw RangeError(W[oe])}function c(oe,K){for(var Y=oe.length,ne=[];Y--;)ne[Y]=K(oe[Y]);return ne}function _(oe,K){var Y=oe.split("@"),ne="";return Y.length>1&&(ne=Y[0]+"@",oe=Y[1]),ne+c((oe=oe.replace(D,".")).split("."),K).join(".")}function l(oe){for(var $,A,K=[],Y=0,ne=oe.length;Y<ne;)($=oe.charCodeAt(Y++))>=55296&&$<=56319&&Y<ne?56320==(64512&(A=oe.charCodeAt(Y++)))?K.push(((1023&$)<<10)+(1023&A)+65536):(K.push($),Y--):K.push($);return K}function T(oe){return c(oe,function(K){var Y="";return K>65535&&(Y+=L((K-=65536)>>>10&1023|55296),K=56320|1023&K),Y+L(K)}).join("")}function B(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:e}function U(oe,K){return oe+22+75*(oe<26)-((0!=K)<<5)}function z(oe,K,Y){var ne=0;for(oe=Y?H(oe/y):oe>>1,oe+=H(oe/K);oe>Q*s>>1;ne+=e)oe=H(oe/Q);return H(ne+(Q+1)*oe/(oe+h))}function ae(oe){var ne,x,N,q,ee,ue,_e,me,Re,De,K=[],Y=oe.length,$=0,A=I,b=m;for((x=oe.lastIndexOf(M))<0&&(x=0),N=0;N<x;++N)oe.charCodeAt(N)>=128&&R("not-basic"),K.push(oe.charCodeAt(N));for(q=x>0?x+1:0;q<Y;){for(ee=$,ue=1,_e=e;q>=Y&&R("invalid-input"),((me=B(oe.charCodeAt(q++)))>=e||me>H((u-$)/ue))&&R("overflow"),$+=me*ue,!(me<(Re=_e<=b?i:_e>=b+s?s:_e-b));_e+=e)ue>H(u/(De=e-Re))&&R("overflow"),ue*=De;b=z($-ee,ne=K.length+1,0==ee),H($/ne)>u-A&&R("overflow"),A+=H($/ne),$%=ne,K.splice($++,0,A)}return T(K)}function pe(oe){var K,Y,ne,$,A,b,x,N,q,ee,ue,me,Re,De,Me,_e=[];for(me=(oe=l(oe)).length,K=I,Y=0,A=m,b=0;b<me;++b)(ue=oe[b])<128&&_e.push(L(ue));for(ne=$=_e.length,$&&_e.push(M);ne<me;){for(x=u,b=0;b<me;++b)(ue=oe[b])>=K&&ue<x&&(x=ue);for(x-K>H((u-Y)/(Re=ne+1))&&R("overflow"),Y+=(x-K)*Re,K=x,b=0;b<me;++b)if((ue=oe[b])<K&&++Y>u&&R("overflow"),ue==K){for(N=Y,q=e;!(N<(ee=q<=A?i:q>=A+s?s:q-A));q+=e)_e.push(L(U(ee+(Me=N-ee)%(De=e-ee),0))),N=H(Me/De);_e.push(L(U(N,0))),A=z(Y,Re,ne==$),Y=0,++ne}++Y,++K}return _e.join("")}a={version:"1.3.2",ucs2:{decode:l,encode:T},decode:ae,encode:pe,toASCII:function he(oe){return _(oe,function(K){return C.test(K)?"xn--"+pe(K):K})},toUnicode:function X(oe){return _(oe,function(K){return P.test(K)?ae(K.slice(4).toLowerCase()):K})}},void 0!==(t=function(){return a}.call(k,p,k,ce))&&(ce.exports=t)}()},2636:(ce,k,p)=>{var t=p(73480);function w(){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}k.parse=C,k.resolve=function W(c,_){return C(c,!1,!0).resolve(_)},k.resolveObject=function Q(c,_){return c?C(c,!1,!0).resolveObject(_):_},k.format=function D(c){return H(c)&&(c=C(c)),c instanceof w?c.format():w.prototype.format.call(c)},k.Url=w;var d=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(a),e=["%","/","?",";","#"].concat(u),i=["/","?","#"],h=/^[a-z0-9A-Z_-]{0,63}$/,y=/^([a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},I={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=p(51239);function C(c,_,l){if(c&&L(c)&&c instanceof w)return c;var T=new w;return T.parse(c,_,l),T}function H(c){return"string"==typeof c}function L(c){return"object"==typeof c&&null!==c}function g(c){return null===c}w.prototype.parse=function(c,_,l){if(!H(c))throw new TypeError("Parameter 'url' must be a string, not "+typeof c);var T=c;T=T.trim();var B=d.exec(T);if(B){var U=(B=B[0]).toLowerCase();this.protocol=U,T=T.substr(B.length)}if(l||B||T.match(/^\/\/[^@\/]+@[^@\/]+/)){var z="//"===T.substr(0,2);z&&(!B||!I[B])&&(T=T.substr(2),this.slashes=!0)}if(!I[B]&&(z||B&&!M[B])){for(var ae=-1,pe=0;pe<i.length;pe++)-1!==(X=T.indexOf(i[pe]))&&(-1===ae||X<ae)&&(ae=X);var he,oe;for(-1!==(oe=-1===ae?T.lastIndexOf("@"):T.lastIndexOf("@",ae))&&(he=T.slice(0,oe),T=T.slice(oe+1),this.auth=decodeURIComponent(he)),ae=-1,pe=0;pe<e.length;pe++){var X;-1!==(X=T.indexOf(e[pe]))&&(-1===ae||X<ae)&&(ae=X)}-1===ae&&(ae=T.length),this.host=T.slice(0,ae),T=T.slice(ae),this.parseHost(),this.hostname=this.hostname||"";var K="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!K)for(var Y=this.hostname.split(/\./),ne=(pe=0,Y.length);pe<ne;pe++){var $=Y[pe];if($&&!$.match(h)){for(var A="",b=0,x=$.length;b<x;b++)$.charCodeAt(b)>127?A+="x":A+=$[b];if(!A.match(h)){var N=Y.slice(0,pe),q=Y.slice(pe+1),ee=$.match(y);ee&&(N.push(ee[1]),q.unshift(ee[2])),q.length&&(T="/"+q.join(".")+T),this.hostname=N.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!K){var ue=this.hostname.split("."),_e=[];for(pe=0;pe<ue.length;++pe)_e.push((me=ue[pe]).match(/[^A-Za-z0-9_-]/)?"xn--"+t.encode(me):me);this.hostname=_e.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,K&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==T[0]&&(T="/"+T))}if(!m[U])for(pe=0,ne=u.length;pe<ne;pe++){var Me=u[pe],ie=encodeURIComponent(Me);ie===Me&&(ie=escape(Me)),T=T.split(Me).join(ie)}var V=T.indexOf("#");-1!==V&&(this.hash=T.substr(V),T=T.slice(0,V));var me,v=T.indexOf("?");return-1!==v?(this.search=T.substr(v),this.query=T.substr(v+1),_&&(this.query=P.parse(this.query)),T=T.slice(0,v)):_&&(this.search="",this.query={}),T&&(this.pathname=T),M[U]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(me=this.search||"")),this.href=this.format(),this},w.prototype.format=function(){var c=this.auth||"";c&&(c=(c=encodeURIComponent(c)).replace(/%3A/i,":"),c+="@");var _=this.protocol||"",l=this.pathname||"",T=this.hash||"",B=!1,U="";this.host?B=c+this.host:this.hostname&&(B=c+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(B+=":"+this.port)),this.query&&L(this.query)&&Object.keys(this.query).length&&(U=P.stringify(this.query));var z=this.search||U&&"?"+U||"";return _&&":"!==_.substr(-1)&&(_+=":"),this.slashes||(!_||M[_])&&!1!==B?(B="//"+(B||""),l&&"/"!==l.charAt(0)&&(l="/"+l)):B||(B=""),T&&"#"!==T.charAt(0)&&(T="#"+T),z&&"?"!==z.charAt(0)&&(z="?"+z),_+B+(l=l.replace(/[?#]/g,function(ae){return encodeURIComponent(ae)}))+(z=z.replace("#","%23"))+T},w.prototype.resolve=function(c){return this.resolveObject(C(c,!1,!0)).format()},w.prototype.resolveObject=function(c){if(H(c)){var _=new w;_.parse(c,!1,!0),c=_}var l=new w;if(Object.keys(this).forEach(function(x){l[x]=this[x]},this),l.hash=c.hash,""===c.href)return l.href=l.format(),l;if(c.slashes&&!c.protocol)return Object.keys(c).forEach(function(x){"protocol"!==x&&(l[x]=c[x])}),M[l.protocol]&&l.hostname&&!l.pathname&&(l.path=l.pathname="/"),l.href=l.format(),l;if(c.protocol&&c.protocol!==l.protocol){if(!M[c.protocol])return Object.keys(c).forEach(function(x){l[x]=c[x]}),l.href=l.format(),l;if(l.protocol=c.protocol,c.host||I[c.protocol])l.pathname=c.pathname;else{for(var he=(c.pathname||"").split("/");he.length&&!(c.host=he.shift()););c.host||(c.host=""),c.hostname||(c.hostname=""),""!==he[0]&&he.unshift(""),he.length<2&&he.unshift(""),l.pathname=he.join("/")}return l.search=c.search,l.query=c.query,l.host=c.host||"",l.auth=c.auth,l.hostname=c.hostname||c.host,l.port=c.port,(l.pathname||l.search)&&(l.path=(l.pathname||"")+(l.search||"")),l.slashes=l.slashes||c.slashes,l.href=l.format(),l}var U=l.pathname&&"/"===l.pathname.charAt(0),z=c.host||c.pathname&&"/"===c.pathname.charAt(0),ae=z||U||l.host&&c.pathname,pe=ae,X=l.pathname&&l.pathname.split("/")||[],oe=(he=c.pathname&&c.pathname.split("/")||[],l.protocol&&!M[l.protocol]);if(oe&&(l.hostname="",l.port=null,l.host&&(""===X[0]?X[0]=l.host:X.unshift(l.host)),l.host="",c.protocol&&(c.hostname=null,c.port=null,c.host&&(""===he[0]?he[0]=c.host:he.unshift(c.host)),c.host=null),ae=ae&&(""===he[0]||""===X[0])),z)l.host=c.host||""===c.host?c.host:l.host,l.hostname=c.hostname||""===c.hostname?c.hostname:l.hostname,l.search=c.search,l.query=c.query,X=he;else if(he.length)X||(X=[]),X.pop(),X=X.concat(he),l.search=c.search,l.query=c.query;else if(!function R(c){return null==c}(c.search))return oe&&(l.hostname=l.host=X.shift(),(K=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=K.shift(),l.host=l.hostname=K.shift())),l.search=c.search,l.query=c.query,(!g(l.pathname)||!g(l.search))&&(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.href=l.format(),l;if(!X.length)return l.pathname=null,l.path=l.search?"/"+l.search:null,l.href=l.format(),l;for(var Y=X.slice(-1)[0],ne=(l.host||c.host)&&("."===Y||".."===Y)||""===Y,$=0,A=X.length;A>=0;A--)"."==(Y=X[A])?X.splice(A,1):".."===Y?(X.splice(A,1),$++):$&&(X.splice(A,1),$--);if(!ae&&!pe)for(;$--;$)X.unshift("..");ae&&""!==X[0]&&(!X[0]||"/"!==X[0].charAt(0))&&X.unshift(""),ne&&"/"!==X.join("/").substr(-1)&&X.push("");var K,b=""===X[0]||X[0]&&"/"===X[0].charAt(0);return oe&&(l.hostname=l.host=b?"":X.length?X.shift():"",(K=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=K.shift(),l.host=l.hostname=K.shift())),(ae=ae||l.host&&X.length)&&!b&&X.unshift(""),X.length?l.pathname=X.join("/"):(l.pathname=null,l.path=null),(!g(l.pathname)||!g(l.search))&&(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.auth=c.auth||l.auth,l.slashes=l.slashes||c.slashes,l.href=l.format(),l},w.prototype.parseHost=function(){var c=this.host,_=r.exec(c);_&&(":"!==(_=_[0])&&(this.port=_.substr(1)),c=c.substr(0,c.length-_.length)),c&&(this.hostname=c)}},50979:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;for(var p=[],t=0;t<256;++t)p[t]=(t+256).toString(16).substr(1);k.default=function w(r,n){var a=n||0;return[p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],"-",p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]],p[r[a++]]].join("")}},4111:(ce,k,p)=>{"use strict";Object.defineProperty(k,"v4",{enumerable:!0,get:function(){return r.default}});a(p(44642)),a(p(53087));var r=a(p(64096));a(p(30575));function a(u){return u&&u.__esModule?u:{default:u}}},56326:(ce,k)=>{"use strict";function r(y,m){var I=(65535&y)+(65535&m);return(y>>16)+(m>>16)+(I>>16)<<16|65535&I}function a(y,m,I,M,P,C){return r(function n(y,m){return y<<m|y>>>32-m}(r(r(m,y),r(M,C)),P),I)}function u(y,m,I,M,P,C,D){return a(m&I|~m&M,y,m,P,C,D)}function e(y,m,I,M,P,C,D){return a(m&M|I&~M,y,m,P,C,D)}function i(y,m,I,M,P,C,D){return a(m^I^M,y,m,P,C,D)}function s(y,m,I,M,P,C,D){return a(I^(m|~M),y,m,P,C,D)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function p(y){if("string"==typeof y){var m=unescape(encodeURIComponent(y));y=new Array(m.length);for(var I=0;I<m.length;I++)y[I]=m.charCodeAt(I)}return function t(y){var m,I,D,M=[],P=32*y.length,C="0123456789abcdef";for(m=0;m<P;m+=8)I=y[m>>5]>>>m%32&255,D=parseInt(C.charAt(I>>>4&15)+C.charAt(15&I),16),M.push(D);return M}(function w(y,m){y[m>>5]|=128<<m%32,y[14+(m+64>>>9<<4)]=m;var I,M,P,C,D,W=1732584193,Q=-271733879,H=-1732584194,L=271733878;for(I=0;I<y.length;I+=16)M=W,P=Q,C=H,D=L,W=u(W,Q,H,L,y[I],7,-680876936),L=u(L,W,Q,H,y[I+1],12,-389564586),H=u(H,L,W,Q,y[I+2],17,606105819),Q=u(Q,H,L,W,y[I+3],22,-1044525330),W=u(W,Q,H,L,y[I+4],7,-176418897),L=u(L,W,Q,H,y[I+5],12,1200080426),H=u(H,L,W,Q,y[I+6],17,-1473231341),Q=u(Q,H,L,W,y[I+7],22,-45705983),W=u(W,Q,H,L,y[I+8],7,1770035416),L=u(L,W,Q,H,y[I+9],12,-1958414417),H=u(H,L,W,Q,y[I+10],17,-42063),Q=u(Q,H,L,W,y[I+11],22,-1990404162),W=u(W,Q,H,L,y[I+12],7,1804603682),L=u(L,W,Q,H,y[I+13],12,-40341101),H=u(H,L,W,Q,y[I+14],17,-1502002290),W=e(W,Q=u(Q,H,L,W,y[I+15],22,1236535329),H,L,y[I+1],5,-165796510),L=e(L,W,Q,H,y[I+6],9,-1069501632),H=e(H,L,W,Q,y[I+11],14,643717713),Q=e(Q,H,L,W,y[I],20,-373897302),W=e(W,Q,H,L,y[I+5],5,-701558691),L=e(L,W,Q,H,y[I+10],9,38016083),H=e(H,L,W,Q,y[I+15],14,-660478335),Q=e(Q,H,L,W,y[I+4],20,-405537848),W=e(W,Q,H,L,y[I+9],5,568446438),L=e(L,W,Q,H,y[I+14],9,-1019803690),H=e(H,L,W,Q,y[I+3],14,-187363961),Q=e(Q,H,L,W,y[I+8],20,1163531501),W=e(W,Q,H,L,y[I+13],5,-1444681467),L=e(L,W,Q,H,y[I+2],9,-51403784),H=e(H,L,W,Q,y[I+7],14,1735328473),W=i(W,Q=e(Q,H,L,W,y[I+12],20,-1926607734),H,L,y[I+5],4,-378558),L=i(L,W,Q,H,y[I+8],11,-2022574463),H=i(H,L,W,Q,y[I+11],16,1839030562),Q=i(Q,H,L,W,y[I+14],23,-35309556),W=i(W,Q,H,L,y[I+1],4,-1530992060),L=i(L,W,Q,H,y[I+4],11,1272893353),H=i(H,L,W,Q,y[I+7],16,-155497632),Q=i(Q,H,L,W,y[I+10],23,-1094730640),W=i(W,Q,H,L,y[I+13],4,681279174),L=i(L,W,Q,H,y[I],11,-358537222),H=i(H,L,W,Q,y[I+3],16,-722521979),Q=i(Q,H,L,W,y[I+6],23,76029189),W=i(W,Q,H,L,y[I+9],4,-640364487),L=i(L,W,Q,H,y[I+12],11,-421815835),H=i(H,L,W,Q,y[I+15],16,530742520),W=s(W,Q=i(Q,H,L,W,y[I+2],23,-995338651),H,L,y[I],6,-198630844),L=s(L,W,Q,H,y[I+7],10,1126891415),H=s(H,L,W,Q,y[I+14],15,-1416354905),Q=s(Q,H,L,W,y[I+5],21,-57434055),W=s(W,Q,H,L,y[I+12],6,1700485571),L=s(L,W,Q,H,y[I+3],10,-1894986606),H=s(H,L,W,Q,y[I+10],15,-1051523),Q=s(Q,H,L,W,y[I+1],21,-2054922799),W=s(W,Q,H,L,y[I+8],6,1873313359),L=s(L,W,Q,H,y[I+15],10,-30611744),H=s(H,L,W,Q,y[I+6],15,-1560198380),Q=s(Q,H,L,W,y[I+13],21,1309151649),W=s(W,Q,H,L,y[I+4],6,-145523070),L=s(L,W,Q,H,y[I+11],10,-1120210379),H=s(H,L,W,Q,y[I+2],15,718787259),Q=s(Q,H,L,W,y[I+9],21,-343485551),W=r(W,M),Q=r(Q,P),H=r(H,C),L=r(L,D);return[W,Q,H,L]}(function d(y){var m,I=[];for(I[(y.length>>2)-1]=void 0,m=0;m<I.length;m+=1)I[m]=0;var M=8*y.length;for(m=0;m<M;m+=8)I[m>>5]|=(255&y[m/8])<<m%32;return I}(y),8*y.length))}},78293:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=function w(){if(!p)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(t)};var p=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),t=new Uint8Array(16)},47290:(ce,k)=>{"use strict";function p(r,n,a,u){switch(r){case 0:return n&a^~n&u;case 1:case 3:return n^a^u;case 2:return n&a^n&u^a&u}}function t(r,n){return r<<n|r>>>32-n}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function w(r){var n=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var u=unescape(encodeURIComponent(r));r=new Array(u.length);for(var e=0;e<u.length;e++)r[e]=u.charCodeAt(e)}r.push(128);var s=Math.ceil((r.length/4+2)/16),h=new Array(s);for(e=0;e<s;e++){h[e]=new Array(16);for(var y=0;y<16;y++)h[e][y]=r[64*e+4*y]<<24|r[64*e+4*y+1]<<16|r[64*e+4*y+2]<<8|r[64*e+4*y+3]}for(h[s-1][14]=8*(r.length-1)/Math.pow(2,32),h[s-1][14]=Math.floor(h[s-1][14]),h[s-1][15]=8*(r.length-1)&4294967295,e=0;e<s;e++){for(var m=new Array(80),I=0;I<16;I++)m[I]=h[e][I];for(I=16;I<80;I++)m[I]=t(m[I-3]^m[I-8]^m[I-14]^m[I-16],1);var M=a[0],P=a[1],C=a[2],D=a[3],W=a[4];for(I=0;I<80;I++){var Q=Math.floor(I/20),H=t(M,5)+p(Q,P,C,D)+W+n[Q]+m[I]>>>0;W=D,D=C,C=t(P,30)>>>0,P=M,M=H}a[0]=a[0]+M>>>0,a[1]=a[1]+P>>>0,a[2]=a[2]+C>>>0,a[3]=a[3]+D>>>0,a[4]=a[4]+W>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]}},44642:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(78293)),w=d(p(50979));function d(s){return s&&s.__esModule?s:{default:s}}var r,n,a=0,u=0;k.default=function e(s,h,y){var m=h&&y||0,I=h||[],M=(s=s||{}).node||r,P=void 0!==s.clockseq?s.clockseq:n;if(null==M||null==P){var C=s.random||(s.rng||t.default)();null==M&&(M=r=[1|C[0],C[1],C[2],C[3],C[4],C[5]]),null==P&&(P=n=16383&(C[6]<<8|C[7]))}var D=void 0!==s.msecs?s.msecs:(new Date).getTime(),W=void 0!==s.nsecs?s.nsecs:u+1,Q=D-a+(W-u)/1e4;if(Q<0&&void 0===s.clockseq&&(P=P+1&16383),(Q<0||D>a)&&void 0===s.nsecs&&(W=0),W>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=D,u=W,n=P;var H=(1e4*(268435455&(D+=122192928e5))+W)%4294967296;I[m++]=H>>>24&255,I[m++]=H>>>16&255,I[m++]=H>>>8&255,I[m++]=255&H;var L=D/4294967296*1e4&268435455;I[m++]=L>>>8&255,I[m++]=255&L,I[m++]=L>>>24&15|16,I[m++]=L>>>16&255,I[m++]=P>>>8|128,I[m++]=255&P;for(var g=0;g<6;++g)I[m+g]=M[g];return h||(0,w.default)(I)}},53087:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(97633)),w=d(p(56326));function d(a){return a&&a.__esModule?a:{default:a}}var n=(0,t.default)("v3",48,w.default);k.default=n},97633:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=function u(e,i,s){var h=function(y,m,I,M){var P=I&&M||0;if("string"==typeof y&&(y=function r(e){e=unescape(encodeURIComponent(e));for(var i=new Array(e.length),s=0;s<e.length;s++)i[s]=e.charCodeAt(s);return i}(y)),"string"==typeof m&&(m=function d(e){var i=[];return e.replace(/[a-fA-F0-9]{2}/g,function(s){i.push(parseInt(s,16))}),i}(m)),!Array.isArray(y))throw TypeError("value must be an array of bytes");if(!Array.isArray(m)||16!==m.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var C=s(m.concat(y));if(C[6]=15&C[6]|i,C[8]=63&C[8]|128,I)for(var D=0;D<16;++D)I[P+D]=C[D];return I||(0,t.default)(C)};try{h.name=e}catch{}return h.DNS=n,h.URL=a,h},k.URL=k.DNS=void 0;var t=function w(e){return e&&e.__esModule?e:{default:e}}(p(50979));const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";k.DNS=n;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";k.URL=a},64096:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(78293)),w=d(p(50979));function d(a){return a&&a.__esModule?a:{default:a}}k.default=function r(a,u,e){var i=u&&e||0;"string"==typeof a&&(u="binary"===a?new Array(16):null,a=null);var s=(a=a||{}).random||(a.rng||t.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,u)for(var h=0;h<16;++h)u[i+h]=s[h];return u||(0,w.default)(s)}},30575:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var t=d(p(97633)),w=d(p(47290));function d(a){return a&&a.__esModule?a:{default:a}}var n=(0,t.default)("v5",80,w.default);k.default=n},94830:(ce,k,p)=>{"use strict";var w=p(39549),d=1e3,r=function(){function n(a){void 0===a&&(a=d),this.maxSize=a,this.cache=new w.LRUCache(a)}return Object.defineProperty(n.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),n.prototype.put=function(a,u){var e="string"!=typeof a?n.getKeyString(a):a,i=this.populateValue(u);this.cache.put(e,i)},n.prototype.get=function(a){var u="string"!=typeof a?n.getKeyString(a):a,e=Date.now(),i=this.cache.get(u);if(i){for(var s=i.length-1;s>=0;s--)i[s].Expire<e&&i.splice(s,1);if(0===i.length)return void this.cache.remove(u)}return i},n.getKeyString=function(a){for(var u=[],e=Object.keys(a).sort(),i=0;i<e.length;i++){var s=e[i];void 0!==a[s]&&u.push(a[s])}return u.join(" ")},n.prototype.populateValue=function(a){var u=Date.now();return a.map(function(e){return{Address:e.Address||"",Expire:u+60*(e.CachePeriodInMinutes||1)*1e3}})},n.prototype.empty=function(){this.cache.empty()},n.prototype.remove=function(a){var u="string"!=typeof a?n.getKeyString(a):a;this.cache.remove(u)},n}();k.$=r},39549:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var p=function w(d,r){this.key=d,this.value=r},t=function(){function w(d){if(this.nodeMap={},this.size=0,"number"!=typeof d||d<1)throw new Error("Cache size can only be positive number");this.sizeLimit=d}return Object.defineProperty(w.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),w.prototype.prependToList=function(d){this.headerNode?(this.headerNode.prev=d,d.next=this.headerNode):this.tailNode=d,this.headerNode=d,this.size++},w.prototype.removeFromTail=function(){if(this.tailNode){var d=this.tailNode,r=d.prev;return r&&(r.next=void 0),d.prev=void 0,this.tailNode=r,this.size--,d}},w.prototype.detachFromList=function(d){this.headerNode===d&&(this.headerNode=d.next),this.tailNode===d&&(this.tailNode=d.prev),d.prev&&(d.prev.next=d.next),d.next&&(d.next.prev=d.prev),d.next=void 0,d.prev=void 0,this.size--},w.prototype.get=function(d){if(this.nodeMap[d]){var r=this.nodeMap[d];return this.detachFromList(r),this.prependToList(r),r.value}},w.prototype.remove=function(d){this.nodeMap[d]&&(this.detachFromList(this.nodeMap[d]),delete this.nodeMap[d])},w.prototype.put=function(d,r){if(this.nodeMap[d])this.remove(d);else if(this.size===this.sizeLimit){var n=this.removeFromTail();delete this.nodeMap[n.key]}var u=new p(d,r);this.nodeMap[d]=u,this.prependToList(u)},w.prototype.empty=function(){for(var d=Object.keys(this.nodeMap),r=0;r<d.length;r++){var n=d[r];this.detachFromList(this.nodeMap[n]),delete this.nodeMap[n]}},w}();k.LRUCache=t},3517:(ce,k)=>{"use strict";k.byteLength=function u(m){var I=a(m),P=I[1];return 3*(I[0]+P)/4-P},k.toByteArray=function i(m){var I,H,M=a(m),P=M[0],C=M[1],D=new w(function e(m,I,M){return 3*(I+M)/4-M}(0,P,C)),W=0,Q=C>0?P-4:P;for(H=0;H<Q;H+=4)I=t[m.charCodeAt(H)]<<18|t[m.charCodeAt(H+1)]<<12|t[m.charCodeAt(H+2)]<<6|t[m.charCodeAt(H+3)],D[W++]=I>>16&255,D[W++]=I>>8&255,D[W++]=255&I;return 2===C&&(I=t[m.charCodeAt(H)]<<2|t[m.charCodeAt(H+1)]>>4,D[W++]=255&I),1===C&&(I=t[m.charCodeAt(H)]<<10|t[m.charCodeAt(H+1)]<<4|t[m.charCodeAt(H+2)]>>2,D[W++]=I>>8&255,D[W++]=255&I),D},k.fromByteArray=function y(m){for(var I,M=m.length,P=M%3,C=[],D=16383,W=0,Q=M-P;W<Q;W+=D)C.push(h(m,W,W+D>Q?Q:W+D));return 1===P?C.push(p[(I=m[M-1])>>2]+p[I<<4&63]+"=="):2===P&&C.push(p[(I=(m[M-2]<<8)+m[M-1])>>10]+p[I>>4&63]+p[I<<2&63]+"="),C.join("")};for(var p=[],t=[],w=typeof Uint8Array<"u"?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=d.length;r<n;++r)p[r]=d[r],t[d.charCodeAt(r)]=r;function a(m){var I=m.length;if(I%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=m.indexOf("=");return-1===M&&(M=I),[M,M===I?0:4-M%4]}function s(m){return p[m>>18&63]+p[m>>12&63]+p[m>>6&63]+p[63&m]}function h(m,I,M){for(var C=[],D=I;D<M;D+=3)C.push(s((m[D]<<16&16711680)+(m[D+1]<<8&65280)+(255&m[D+2])));return C.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63},9333:(ce,k,p)=>{"use strict";var w=p(3517),d=p(67926),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;k.lW=e,k.h2=50;var n=2147483647;function u(ie){if(ie>n)throw new RangeError('The value "'+ie+'" is invalid for option "size"');var V=new Uint8Array(ie);return Object.setPrototypeOf(V,e.prototype),V}function e(ie,V,v){if("number"==typeof ie){if("string"==typeof V)throw new TypeError('The "string" argument must be of type string. Received type number');return y(ie)}return i(ie,V,v)}function i(ie,V,v){if("string"==typeof ie)return function m(ie,V){if(("string"!=typeof V||""===V)&&(V="utf8"),!e.isEncoding(V))throw new TypeError("Unknown encoding: "+V);var v=0|Q(ie,V),O=u(v),F=O.write(ie,V);return F!==v&&(O=O.slice(0,F)),O}(ie,V);if(ArrayBuffer.isView(ie))return function M(ie){if(Re(ie,Uint8Array)){var V=new Uint8Array(ie);return P(V.buffer,V.byteOffset,V.byteLength)}return I(ie)}(ie);if(null==ie)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie);if(Re(ie,ArrayBuffer)||ie&&Re(ie.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re(ie,SharedArrayBuffer)||ie&&Re(ie.buffer,SharedArrayBuffer)))return P(ie,V,v);if("number"==typeof ie)throw new TypeError('The "value" argument must not be of type number. Received type number');var O=ie.valueOf&&ie.valueOf();if(null!=O&&O!==ie)return e.from(O,V,v);var F=function C(ie){if(e.isBuffer(ie)){var V=0|D(ie.length),v=u(V);return 0===v.length||ie.copy(v,0,0,V),v}return void 0!==ie.length?"number"!=typeof ie.length||De(ie.length)?u(0):I(ie):"Buffer"===ie.type&&Array.isArray(ie.data)?I(ie.data):void 0}(ie);if(F)return F;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof ie[Symbol.toPrimitive])return e.from(ie[Symbol.toPrimitive]("string"),V,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ie)}function s(ie){if("number"!=typeof ie)throw new TypeError('"size" argument must be of type number');if(ie<0)throw new RangeError('The value "'+ie+'" is invalid for option "size"')}function y(ie){return s(ie),u(ie<0?0:0|D(ie))}function I(ie){for(var V=ie.length<0?0:0|D(ie.length),v=u(V),O=0;O<V;O+=1)v[O]=255&ie[O];return v}function P(ie,V,v){if(V<0||ie.byteLength<V)throw new RangeError('"offset" is outside of buffer bounds');if(ie.byteLength<V+(v||0))throw new RangeError('"length" is outside of buffer bounds');var O;return O=void 0===V&&void 0===v?new Uint8Array(ie):void 0===v?new Uint8Array(ie,V):new Uint8Array(ie,V,v),Object.setPrototypeOf(O,e.prototype),O}function D(ie){if(ie>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|ie}function Q(ie,V){if(e.isBuffer(ie))return ie.length;if(ArrayBuffer.isView(ie)||Re(ie,ArrayBuffer))return ie.byteLength;if("string"!=typeof ie)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ie);var v=ie.length,O=arguments.length>2&&!0===arguments[2];if(!O&&0===v)return 0;for(var F=!1;;)switch(V){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return q(ie).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*v;case"hex":return v>>>1;case"base64":return _e(ie).length;default:if(F)return O?-1:q(ie).length;V=(""+V).toLowerCase(),F=!0}}function H(ie,V,v){var O=!1;if((void 0===V||V<0)&&(V=0),V>this.length||((void 0===v||v>this.length)&&(v=this.length),v<=0)||(v>>>=0)<=(V>>>=0))return"";for(ie||(ie="utf8");;)switch(ie){case"hex":return oe(this,V,v);case"utf8":case"utf-8":return z(this,V,v);case"ascii":return X(this,V,v);case"latin1":case"binary":return he(this,V,v);case"base64":return U(this,V,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return K(this,V,v);default:if(O)throw new TypeError("Unknown encoding: "+ie);ie=(ie+"").toLowerCase(),O=!0}}function L(ie,V,v){var O=ie[V];ie[V]=ie[v],ie[v]=O}function g(ie,V,v,O,F){if(0===ie.length)return-1;if("string"==typeof v?(O=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),De(v=+v)&&(v=F?0:ie.length-1),v<0&&(v=ie.length+v),v>=ie.length){if(F)return-1;v=ie.length-1}else if(v<0){if(!F)return-1;v=0}if("string"==typeof V&&(V=e.from(V,O)),e.isBuffer(V))return 0===V.length?-1:R(ie,V,v,O,F);if("number"==typeof V)return V&=255,"function"==typeof Uint8Array.prototype.indexOf?F?Uint8Array.prototype.indexOf.call(ie,V,v):Uint8Array.prototype.lastIndexOf.call(ie,V,v):R(ie,[V],v,O,F);throw new TypeError("val must be string, number or Buffer")}function R(ie,V,v,O,F){var te,re=1,ve=ie.length,xe=V.length;if(void 0!==O&&("ucs2"===(O=String(O).toLowerCase())||"ucs-2"===O||"utf16le"===O||"utf-16le"===O)){if(ie.length<2||V.length<2)return-1;re=2,ve/=2,xe/=2,v/=2}function Te(Ie,Ue){return 1===re?Ie[Ue]:Ie.readUInt16BE(Ue*re)}if(F){var de=-1;for(te=v;te<ve;te++)if(Te(ie,te)===Te(V,-1===de?0:te-de)){if(-1===de&&(de=te),te-de+1===xe)return de*re}else-1!==de&&(te-=te-de),de=-1}else for(v+xe>ve&&(v=ve-xe),te=v;te>=0;te--){for(var ye=!0,Oe=0;Oe<xe;Oe++)if(Te(ie,te+Oe)!==Te(V,Oe)){ye=!1;break}if(ye)return te}return-1}function c(ie,V,v,O){v=Number(v)||0;var F=ie.length-v;O?(O=Number(O))>F&&(O=F):O=F;var re=V.length;O>re/2&&(O=re/2);for(var ve=0;ve<O;++ve){var xe=parseInt(V.substr(2*ve,2),16);if(De(xe))return ve;ie[v+ve]=xe}return ve}function _(ie,V,v,O){return me(q(V,ie.length-v),ie,v,O)}function l(ie,V,v,O){return me(function ee(ie){for(var V=[],v=0;v<ie.length;++v)V.push(255&ie.charCodeAt(v));return V}(V),ie,v,O)}function T(ie,V,v,O){return me(_e(V),ie,v,O)}function B(ie,V,v,O){return me(function ue(ie,V){for(var v,O,re=[],ve=0;ve<ie.length&&!((V-=2)<0);++ve)O=(v=ie.charCodeAt(ve))>>8,re.push(v%256),re.push(O);return re}(V,ie.length-v),ie,v,O)}function U(ie,V,v){return w.fromByteArray(0===V&&v===ie.length?ie:ie.slice(V,v))}function z(ie,V,v){v=Math.min(ie.length,v);for(var O=[],F=V;F<v;){var Te,te,de,ye,re=ie[F],ve=null,xe=re>239?4:re>223?3:re>191?2:1;if(F+xe<=v)switch(xe){case 1:re<128&&(ve=re);break;case 2:128==(192&(Te=ie[F+1]))&&(ye=(31&re)<<6|63&Te)>127&&(ve=ye);break;case 3:te=ie[F+2],128==(192&(Te=ie[F+1]))&&128==(192&te)&&(ye=(15&re)<<12|(63&Te)<<6|63&te)>2047&&(ye<55296||ye>57343)&&(ve=ye);break;case 4:te=ie[F+2],de=ie[F+3],128==(192&(Te=ie[F+1]))&&128==(192&te)&&128==(192&de)&&(ye=(15&re)<<18|(63&Te)<<12|(63&te)<<6|63&de)>65535&&ye<1114112&&(ve=ye)}null===ve?(ve=65533,xe=1):ve>65535&&(O.push((ve-=65536)>>>10&1023|55296),ve=56320|1023&ve),O.push(ve),F+=xe}return function pe(ie){var V=ie.length;if(V<=ae)return String.fromCharCode.apply(String,ie);for(var v="",O=0;O<V;)v+=String.fromCharCode.apply(String,ie.slice(O,O+=ae));return v}(O)}!(e.TYPED_ARRAY_SUPPORT=function a(){try{var ie=new Uint8Array(1),V={foo:function(){return 42}};return Object.setPrototypeOf(V,Uint8Array.prototype),Object.setPrototypeOf(ie,V),42===ie.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),e.poolSize=8192,e.from=function(ie,V,v){return i(ie,V,v)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(ie,V,v){return function h(ie,V,v){return s(ie),ie<=0?u(ie):void 0!==V?"string"==typeof v?u(ie).fill(V,v):u(ie).fill(V):u(ie)}(ie,V,v)},e.allocUnsafe=function(ie){return y(ie)},e.allocUnsafeSlow=function(ie){return y(ie)},e.isBuffer=function(V){return null!=V&&!0===V._isBuffer&&V!==e.prototype},e.compare=function(V,v){if(Re(V,Uint8Array)&&(V=e.from(V,V.offset,V.byteLength)),Re(v,Uint8Array)&&(v=e.from(v,v.offset,v.byteLength)),!e.isBuffer(V)||!e.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(V===v)return 0;for(var O=V.length,F=v.length,re=0,ve=Math.min(O,F);re<ve;++re)if(V[re]!==v[re]){O=V[re],F=v[re];break}return O<F?-1:F<O?1:0},e.isEncoding=function(V){switch(String(V).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}},e.concat=function(V,v){if(!Array.isArray(V))throw new TypeError('"list" argument must be an Array of Buffers');if(0===V.length)return e.alloc(0);var O;if(void 0===v)for(v=0,O=0;O<V.length;++O)v+=V[O].length;var F=e.allocUnsafe(v),re=0;for(O=0;O<V.length;++O){var ve=V[O];if(Re(ve,Uint8Array))re+ve.length>F.length?e.from(ve).copy(F,re):Uint8Array.prototype.set.call(F,ve,re);else{if(!e.isBuffer(ve))throw new TypeError('"list" argument must be an Array of Buffers');ve.copy(F,re)}re+=ve.length}return F},e.byteLength=Q,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var V=this.length;if(V%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var v=0;v<V;v+=2)L(this,v,v+1);return this},e.prototype.swap32=function(){var V=this.length;if(V%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var v=0;v<V;v+=4)L(this,v,v+3),L(this,v+1,v+2);return this},e.prototype.swap64=function(){var V=this.length;if(V%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var v=0;v<V;v+=8)L(this,v,v+7),L(this,v+1,v+6),L(this,v+2,v+5),L(this,v+3,v+4);return this},e.prototype.toLocaleString=e.prototype.toString=function(){var V=this.length;return 0===V?"":0===arguments.length?z(this,0,V):H.apply(this,arguments)},e.prototype.equals=function(V){if(!e.isBuffer(V))throw new TypeError("Argument must be a Buffer");return this===V||0===e.compare(this,V)},e.prototype.inspect=function(){var V="",v=k.h2;return V=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(V+=" ... "),"<Buffer "+V+">"},r&&(e.prototype[r]=e.prototype.inspect),e.prototype.compare=function(V,v,O,F,re){if(Re(V,Uint8Array)&&(V=e.from(V,V.offset,V.byteLength)),!e.isBuffer(V))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof V);if(void 0===v&&(v=0),void 0===O&&(O=V?V.length:0),void 0===F&&(F=0),void 0===re&&(re=this.length),v<0||O>V.length||F<0||re>this.length)throw new RangeError("out of range index");if(F>=re&&v>=O)return 0;if(F>=re)return-1;if(v>=O)return 1;if(this===V)return 0;for(var ve=(re>>>=0)-(F>>>=0),xe=(O>>>=0)-(v>>>=0),Te=Math.min(ve,xe),te=this.slice(F,re),de=V.slice(v,O),ye=0;ye<Te;++ye)if(te[ye]!==de[ye]){ve=te[ye],xe=de[ye];break}return ve<xe?-1:xe<ve?1:0},e.prototype.includes=function(V,v,O){return-1!==this.indexOf(V,v,O)},e.prototype.indexOf=function(V,v,O){return g(this,V,v,O,!0)},e.prototype.lastIndexOf=function(V,v,O){return g(this,V,v,O,!1)},e.prototype.write=function(V,v,O,F){if(void 0===v)F="utf8",O=this.length,v=0;else if(void 0===O&&"string"==typeof v)F=v,O=this.length,v=0;else{if(!isFinite(v))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");v>>>=0,isFinite(O)?(O>>>=0,void 0===F&&(F="utf8")):(F=O,O=void 0)}var re=this.length-v;if((void 0===O||O>re)&&(O=re),V.length>0&&(O<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");for(var ve=!1;;)switch(F){case"hex":return c(this,V,v,O);case"utf8":case"utf-8":return _(this,V,v,O);case"ascii":case"latin1":case"binary":return l(this,V,v,O);case"base64":return T(this,V,v,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,V,v,O);default:if(ve)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),ve=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ae=4096;function X(ie,V,v){var O="";v=Math.min(ie.length,v);for(var F=V;F<v;++F)O+=String.fromCharCode(127&ie[F]);return O}function he(ie,V,v){var O="";v=Math.min(ie.length,v);for(var F=V;F<v;++F)O+=String.fromCharCode(ie[F]);return O}function oe(ie,V,v){var O=ie.length;(!V||V<0)&&(V=0),(!v||v<0||v>O)&&(v=O);for(var F="",re=V;re<v;++re)F+=Me[ie[re]];return F}function K(ie,V,v){for(var O=ie.slice(V,v),F="",re=0;re<O.length-1;re+=2)F+=String.fromCharCode(O[re]+256*O[re+1]);return F}function Y(ie,V,v){if(ie%1!=0||ie<0)throw new RangeError("offset is not uint");if(ie+V>v)throw new RangeError("Trying to access beyond buffer length")}function ne(ie,V,v,O,F,re){if(!e.isBuffer(ie))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>F||V<re)throw new RangeError('"value" argument is out of bounds');if(v+O>ie.length)throw new RangeError("Index out of range")}function $(ie,V,v,O,F,re){if(v+O>ie.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function A(ie,V,v,O,F){return V=+V,v>>>=0,F||$(ie,0,v,4),d.write(ie,V,v,O,23,4),v+4}function b(ie,V,v,O,F){return V=+V,v>>>=0,F||$(ie,0,v,8),d.write(ie,V,v,O,52,8),v+8}e.prototype.slice=function(V,v){var O=this.length;(V=~~V)<0?(V+=O)<0&&(V=0):V>O&&(V=O),(v=void 0===v?O:~~v)<0?(v+=O)<0&&(v=0):v>O&&(v=O),v<V&&(v=V);var F=this.subarray(V,v);return Object.setPrototypeOf(F,e.prototype),F},e.prototype.readUintLE=e.prototype.readUIntLE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=this[V],re=1,ve=0;++ve<v&&(re*=256);)F+=this[V+ve]*re;return F},e.prototype.readUintBE=e.prototype.readUIntBE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=this[V+--v],re=1;v>0&&(re*=256);)F+=this[V+--v]*re;return F},e.prototype.readUint8=e.prototype.readUInt8=function(V,v){return V>>>=0,v||Y(V,1,this.length),this[V]},e.prototype.readUint16LE=e.prototype.readUInt16LE=function(V,v){return V>>>=0,v||Y(V,2,this.length),this[V]|this[V+1]<<8},e.prototype.readUint16BE=e.prototype.readUInt16BE=function(V,v){return V>>>=0,v||Y(V,2,this.length),this[V]<<8|this[V+1]},e.prototype.readUint32LE=e.prototype.readUInt32LE=function(V,v){return V>>>=0,v||Y(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+16777216*this[V+3]},e.prototype.readUint32BE=e.prototype.readUInt32BE=function(V,v){return V>>>=0,v||Y(V,4,this.length),16777216*this[V]+(this[V+1]<<16|this[V+2]<<8|this[V+3])},e.prototype.readIntLE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=this[V],re=1,ve=0;++ve<v&&(re*=256);)F+=this[V+ve]*re;return F>=(re*=128)&&(F-=Math.pow(2,8*v)),F},e.prototype.readIntBE=function(V,v,O){V>>>=0,v>>>=0,O||Y(V,v,this.length);for(var F=v,re=1,ve=this[V+--F];F>0&&(re*=256);)ve+=this[V+--F]*re;return ve>=(re*=128)&&(ve-=Math.pow(2,8*v)),ve},e.prototype.readInt8=function(V,v){return V>>>=0,v||Y(V,1,this.length),128&this[V]?-1*(255-this[V]+1):this[V]},e.prototype.readInt16LE=function(V,v){V>>>=0,v||Y(V,2,this.length);var O=this[V]|this[V+1]<<8;return 32768&O?4294901760|O:O},e.prototype.readInt16BE=function(V,v){V>>>=0,v||Y(V,2,this.length);var O=this[V+1]|this[V]<<8;return 32768&O?4294901760|O:O},e.prototype.readInt32LE=function(V,v){return V>>>=0,v||Y(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},e.prototype.readInt32BE=function(V,v){return V>>>=0,v||Y(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},e.prototype.readFloatLE=function(V,v){return V>>>=0,v||Y(V,4,this.length),d.read(this,V,!0,23,4)},e.prototype.readFloatBE=function(V,v){return V>>>=0,v||Y(V,4,this.length),d.read(this,V,!1,23,4)},e.prototype.readDoubleLE=function(V,v){return V>>>=0,v||Y(V,8,this.length),d.read(this,V,!0,52,8)},e.prototype.readDoubleBE=function(V,v){return V>>>=0,v||Y(V,8,this.length),d.read(this,V,!1,52,8)},e.prototype.writeUintLE=e.prototype.writeUIntLE=function(V,v,O,F){V=+V,v>>>=0,O>>>=0,F||ne(this,V,v,O,Math.pow(2,8*O)-1,0);var ve=1,xe=0;for(this[v]=255&V;++xe<O&&(ve*=256);)this[v+xe]=V/ve&255;return v+O},e.prototype.writeUintBE=e.prototype.writeUIntBE=function(V,v,O,F){V=+V,v>>>=0,O>>>=0,F||ne(this,V,v,O,Math.pow(2,8*O)-1,0);var ve=O-1,xe=1;for(this[v+ve]=255&V;--ve>=0&&(xe*=256);)this[v+ve]=V/xe&255;return v+O},e.prototype.writeUint8=e.prototype.writeUInt8=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,1,255,0),this[v]=255&V,v+1},e.prototype.writeUint16LE=e.prototype.writeUInt16LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,65535,0),this[v]=255&V,this[v+1]=V>>>8,v+2},e.prototype.writeUint16BE=e.prototype.writeUInt16BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,65535,0),this[v]=V>>>8,this[v+1]=255&V,v+2},e.prototype.writeUint32LE=e.prototype.writeUInt32LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,4294967295,0),this[v+3]=V>>>24,this[v+2]=V>>>16,this[v+1]=V>>>8,this[v]=255&V,v+4},e.prototype.writeUint32BE=e.prototype.writeUInt32BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,4294967295,0),this[v]=V>>>24,this[v+1]=V>>>16,this[v+2]=V>>>8,this[v+3]=255&V,v+4},e.prototype.writeIntLE=function(V,v,O,F){if(V=+V,v>>>=0,!F){var re=Math.pow(2,8*O-1);ne(this,V,v,O,re-1,-re)}var ve=0,xe=1,Te=0;for(this[v]=255&V;++ve<O&&(xe*=256);)V<0&&0===Te&&0!==this[v+ve-1]&&(Te=1),this[v+ve]=(V/xe>>0)-Te&255;return v+O},e.prototype.writeIntBE=function(V,v,O,F){if(V=+V,v>>>=0,!F){var re=Math.pow(2,8*O-1);ne(this,V,v,O,re-1,-re)}var ve=O-1,xe=1,Te=0;for(this[v+ve]=255&V;--ve>=0&&(xe*=256);)V<0&&0===Te&&0!==this[v+ve+1]&&(Te=1),this[v+ve]=(V/xe>>0)-Te&255;return v+O},e.prototype.writeInt8=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,1,127,-128),V<0&&(V=255+V+1),this[v]=255&V,v+1},e.prototype.writeInt16LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,32767,-32768),this[v]=255&V,this[v+1]=V>>>8,v+2},e.prototype.writeInt16BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,2,32767,-32768),this[v]=V>>>8,this[v+1]=255&V,v+2},e.prototype.writeInt32LE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,2147483647,-2147483648),this[v]=255&V,this[v+1]=V>>>8,this[v+2]=V>>>16,this[v+3]=V>>>24,v+4},e.prototype.writeInt32BE=function(V,v,O){return V=+V,v>>>=0,O||ne(this,V,v,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),this[v]=V>>>24,this[v+1]=V>>>16,this[v+2]=V>>>8,this[v+3]=255&V,v+4},e.prototype.writeFloatLE=function(V,v,O){return A(this,V,v,!0,O)},e.prototype.writeFloatBE=function(V,v,O){return A(this,V,v,!1,O)},e.prototype.writeDoubleLE=function(V,v,O){return b(this,V,v,!0,O)},e.prototype.writeDoubleBE=function(V,v,O){return b(this,V,v,!1,O)},e.prototype.copy=function(V,v,O,F){if(!e.isBuffer(V))throw new TypeError("argument should be a Buffer");if(O||(O=0),!F&&0!==F&&(F=this.length),v>=V.length&&(v=V.length),v||(v=0),F>0&&F<O&&(F=O),F===O||0===V.length||0===this.length)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(O<0||O>=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),V.length-v<F-O&&(F=V.length-v+O);var re=F-O;return this===V&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(v,O,F):Uint8Array.prototype.set.call(V,this.subarray(O,F),v),re},e.prototype.fill=function(V,v,O,F){if("string"==typeof V){if("string"==typeof v?(F=v,v=0,O=this.length):"string"==typeof O&&(F=O,O=this.length),void 0!==F&&"string"!=typeof F)throw new TypeError("encoding must be a string");if("string"==typeof F&&!e.isEncoding(F))throw new TypeError("Unknown encoding: "+F);if(1===V.length){var re=V.charCodeAt(0);("utf8"===F&&re<128||"latin1"===F)&&(V=re)}}else"number"==typeof V?V&=255:"boolean"==typeof V&&(V=Number(V));if(v<0||this.length<v||this.length<O)throw new RangeError("Out of range index");if(O<=v)return this;var ve;if(v>>>=0,O=void 0===O?this.length:O>>>0,V||(V=0),"number"==typeof V)for(ve=v;ve<O;++ve)this[ve]=V;else{var xe=e.isBuffer(V)?V:e.from(V,F),Te=xe.length;if(0===Te)throw new TypeError('The value "'+V+'" is invalid for argument "value"');for(ve=0;ve<O-v;++ve)this[ve+v]=xe[ve%Te]}return this};var x=/[^+/0-9A-Za-z-_]/g;function q(ie,V){V=V||1/0;for(var v,O=ie.length,F=null,re=[],ve=0;ve<O;++ve){if((v=ie.charCodeAt(ve))>55295&&v<57344){if(!F){if(v>56319){(V-=3)>-1&&re.push(239,191,189);continue}if(ve+1===O){(V-=3)>-1&&re.push(239,191,189);continue}F=v;continue}if(v<56320){(V-=3)>-1&&re.push(239,191,189),F=v;continue}v=65536+(F-55296<<10|v-56320)}else F&&(V-=3)>-1&&re.push(239,191,189);if(F=null,v<128){if((V-=1)<0)break;re.push(v)}else if(v<2048){if((V-=2)<0)break;re.push(v>>6|192,63&v|128)}else if(v<65536){if((V-=3)<0)break;re.push(v>>12|224,v>>6&63|128,63&v|128)}else{if(!(v<1114112))throw new Error("Invalid code point");if((V-=4)<0)break;re.push(v>>18|240,v>>12&63|128,v>>6&63|128,63&v|128)}}return re}function _e(ie){return w.toByteArray(function N(ie){if((ie=(ie=ie.split("=")[0]).trim().replace(x,"")).length<2)return"";for(;ie.length%4!=0;)ie+="=";return ie}(ie))}function me(ie,V,v,O){for(var F=0;F<O&&!(F+v>=V.length||F>=ie.length);++F)V[F+v]=ie[F];return F}function Re(ie,V){return ie instanceof V||null!=ie&&null!=ie.constructor&&null!=ie.constructor.name&&ie.constructor.name===V.name}function De(ie){return ie!=ie}var Me=function(){for(var ie="0123456789abcdef",V=new Array(256),v=0;v<16;++v)for(var O=16*v,F=0;F<16;++F)V[O+F]=ie[v]+ie[F];return V}()},82375:(ce,k,p)=>{"use strict";var t=p(49102),w=p(30642),d=w(t("String.prototype.indexOf"));ce.exports=function(n,a){var u=t(n,!!a);return"function"==typeof u&&d(n,".prototype.")>-1?w(u):u}},30642:(ce,k,p)=>{"use strict";var t=p(52451),w=p(49102),d=w("%Function.prototype.apply%"),r=w("%Function.prototype.call%"),n=w("%Reflect.apply%",!0)||t.call(r,d),a=w("%Object.getOwnPropertyDescriptor%",!0),u=w("%Object.defineProperty%",!0),e=w("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}ce.exports=function(h){var y=n(t,r,arguments);return a&&u&&a(y,"length").configurable&&u(y,"length",{value:1+e(0,h.length-(arguments.length-1))}),y};var i=function(){return n(t,d,arguments)};u?u(ce.exports,"apply",{value:i}):ce.exports.apply=i},48643:ce=>{"use strict";ce.exports=function(k,p){p||(p={}),"function"==typeof p&&(p={cmp:p});var r,t="boolean"==typeof p.cycles&&p.cycles,w=p.cmp&&(r=p.cmp,function(n){return function(a,u){return r({key:a,value:n[a]},{key:u,value:n[u]})}}),d=[];return function r(n){if(n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0!==n){if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!=typeof n)return JSON.stringify(n);var a,u;if(Array.isArray(n)){for(u="[",a=0;a<n.length;a++)a&&(u+=","),u+=r(n[a])||"null";return u+"]"}if(null===n)return"null";if(-1!==d.indexOf(n)){if(t)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var e=d.push(n)-1,i=Object.keys(n).sort(w&&w(n));for(u="",a=0;a<i.length;a++){var s=i[a],h=r(n[s]);h&&(u&&(u+=","),u+=JSON.stringify(s)+":"+h)}return d.splice(e,1),"{"+u+"}"}}(k)}},90564:(ce,k,p)=>{"use strict";var t=p(202),w=Object.prototype.toString,d=Object.prototype.hasOwnProperty,r=function(i,s,h){for(var y=0,m=i.length;y<m;y++)d.call(i,y)&&(null==h?s(i[y],y,i):s.call(h,i[y],y,i))},n=function(i,s,h){for(var y=0,m=i.length;y<m;y++)null==h?s(i.charAt(y),y,i):s.call(h,i.charAt(y),y,i)},a=function(i,s,h){for(var y in i)d.call(i,y)&&(null==h?s(i[y],y,i):s.call(h,i[y],y,i))};ce.exports=function(i,s,h){if(!t(s))throw new TypeError("iterator must be a function");var y;arguments.length>=3&&(y=h),"[object Array]"===w.call(i)?r(i,s,y):"string"==typeof i?n(i,s,y):a(i,s,y)}},202:ce=>{"use strict";var t,w,k=Function.prototype.toString,p="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof p&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw w}}),w={},p(function(){throw 42},null,t)}catch(h){h!==w&&(p=null)}else p=null;var d=/^\s*class\b/,r=function(y){try{var m=k.call(y);return d.test(m)}catch{return!1}},a=Object.prototype.toString,i="function"==typeof Symbol&&!!Symbol.toStringTag,s="object"==typeof document&&typeof document.all>"u"&&void 0!==document.all?document.all:{};ce.exports=p?function(y){if(y===s)return!0;if(!y||"function"!=typeof y&&"object"!=typeof y)return!1;if("function"==typeof y&&!y.prototype)return!0;try{p(y,null,t)}catch(m){if(m!==w)return!1}return!r(y)}:function(y){if(y===s)return!0;if(!y||"function"!=typeof y&&"object"!=typeof y)return!1;if("function"==typeof y&&!y.prototype)return!0;if(i)return function(y){try{return!r(y)&&(k.call(y),!0)}catch{return!1}}(y);if(r(y))return!1;var m=a.call(y);return"[object Function]"===m||"[object GeneratorFunction]"===m}},62898:ce=>{"use strict";var k="Function.prototype.bind called on incompatible ",p=Array.prototype.slice,t=Object.prototype.toString,w="[object Function]";ce.exports=function(r){var n=this;if("function"!=typeof n||t.call(n)!==w)throw new TypeError(k+n);for(var u,a=p.call(arguments,1),i=Math.max(0,n.length-a.length),s=[],h=0;h<i;h++)s.push("$"+h);if(u=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof u){var m=n.apply(this,a.concat(p.call(arguments)));return Object(m)===m?m:this}return n.apply(r,a.concat(p.call(arguments)))}),n.prototype){var y=function(){};y.prototype=n.prototype,u.prototype=new y,y.prototype=null}return u}},52451:(ce,k,p)=>{"use strict";var t=p(62898);ce.exports=Function.prototype.bind||t},49102:(ce,k,p)=>{"use strict";var t,w=SyntaxError,d=Function,r=TypeError,n=function(l){try{return d('"use strict"; return ('+l+").constructor;")()}catch{}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch{a=null}var u=function(){throw new r},e=a?function(){try{return u}catch{try{return a(arguments,"callee").get}catch{return u}}}():u,i=p(48504)(),s=Object.getPrototypeOf||function(l){return l.__proto__},h={},y=typeof Uint8Array>"u"?t:s(Uint8Array),m={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":i?s([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":d,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":i?s(s([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!i?t:s((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!i?t:s((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":i?s(""[Symbol.iterator]()):t,"%Symbol%":i?Symbol:t,"%SyntaxError%":w,"%ThrowTypeError%":e,"%TypedArray%":y,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet},I=function l(T){var B;if("%AsyncFunction%"===T)B=n("async function () {}");else if("%GeneratorFunction%"===T)B=n("function* () {}");else if("%AsyncGeneratorFunction%"===T)B=n("async function* () {}");else if("%AsyncGenerator%"===T){var U=l("%AsyncGeneratorFunction%");U&&(B=U.prototype)}else if("%AsyncIteratorPrototype%"===T){var z=l("%AsyncGenerator%");z&&(B=s(z.prototype))}return m[T]=B,B},M={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},P=p(52451),C=p(44498),D=P.call(Function.call,Array.prototype.concat),W=P.call(Function.apply,Array.prototype.splice),Q=P.call(Function.call,String.prototype.replace),H=P.call(Function.call,String.prototype.slice),L=P.call(Function.call,RegExp.prototype.exec),g=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,c=function(T){var B=H(T,0,1),U=H(T,-1);if("%"===B&&"%"!==U)throw new w("invalid intrinsic syntax, expected closing `%`");if("%"===U&&"%"!==B)throw new w("invalid intrinsic syntax, expected opening `%`");var z=[];return Q(T,g,function(ae,pe,X,he){z[z.length]=X?Q(he,R,"$1"):pe||ae}),z},_=function(T,B){var z,U=T;if(C(M,U)&&(U="%"+(z=M[U])[0]+"%"),C(m,U)){var ae=m[U];if(ae===h&&(ae=I(U)),typeof ae>"u"&&!B)throw new r("intrinsic "+T+" exists, but is not available. Please file an issue!");return{alias:z,name:U,value:ae}}throw new w("intrinsic "+T+" does not exist!")};ce.exports=function(T,B){if("string"!=typeof T||0===T.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof B)throw new r('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/g,T))throw new w("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var U=c(T),z=U.length>0?U[0]:"",ae=_("%"+z+"%",B),pe=ae.name,X=ae.value,he=!1,oe=ae.alias;oe&&(z=oe[0],W(U,D([0,1],oe)));for(var K=1,Y=!0;K<U.length;K+=1){var ne=U[K],$=H(ne,0,1),A=H(ne,-1);if(('"'===$||"'"===$||"`"===$||'"'===A||"'"===A||"`"===A)&&$!==A)throw new w("property names with quotes must have matching quotes");if(("constructor"===ne||!Y)&&(he=!0),C(m,pe="%"+(z+="."+ne)+"%"))X=m[pe];else if(null!=X){if(!(ne in X)){if(!B)throw new r("base intrinsic for "+T+" exists, but the property is not available.");return}if(a&&K+1>=U.length){var b=a(X,ne);X=(Y=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:X[ne]}else Y=C(X,ne),X=X[ne];Y&&!he&&(m[pe]=X)}}return X}},28486:(ce,k,p)=>{"use strict";p.d(k,{HW:()=>m,J9:()=>P,Ps:()=>y,ZP:()=>D,_t:()=>I,wO:()=>M});var t=p(5163),w=p(49767),d=new Map,r=new Map,n=!0,a=!1;function u(W){return W.replace(/[\s,]+/g," ").trim()}function h(W){var Q=u(W);if(!d.has(Q)){var H=(0,w.Qc)(W,{experimentalFragmentVariables:a,allowLegacyFragmentVariables:a});if(!H||"Document"!==H.kind)throw new Error("Not a valid GraphQL document.");d.set(Q,function s(W){var Q=new Set(W.definitions);Q.forEach(function(L){L.loc&&delete L.loc,Object.keys(L).forEach(function(g){var R=L[g];R&&"object"==typeof R&&Q.add(R)})});var H=W.loc;return H&&(delete H.startToken,delete H.endToken),W}(function i(W){var Q=new Set,H=[];return W.definitions.forEach(function(L){if("FragmentDefinition"===L.kind){var g=L.name.value,R=function e(W){return u(W.source.body.substring(W.start,W.end))}(L.loc),c=r.get(g);c&&!c.has(R)?n&&console.warn("Warning: fragment with name "+g+" 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"):c||r.set(g,c=new Set),c.add(R),Q.has(R)||(Q.add(R),H.push(L))}else H.push(L)}),(0,t.pi)((0,t.pi)({},W),{definitions:H})}(H)))}return d.get(Q)}function y(W){for(var Q=[],H=1;H<arguments.length;H++)Q[H-1]=arguments[H];"string"==typeof W&&(W=[W]);var L=W[0];return Q.forEach(function(g,R){L+=g&&"Document"===g.kind?g.loc.source.body:g,L+=W[R+1]}),h(L)}function m(){d.clear(),r.clear()}function I(){n=!1}function M(){a=!0}function P(){a=!1}var W,C_gql=y,C_resetCaches=m,C_disableFragmentWarnings=I,C_enableExperimentalFragmentVariables=M,C_disableExperimentalFragmentVariables=P;(W=y||(y={})).gql=C_gql,W.resetCaches=C_resetCaches,W.disableFragmentWarnings=C_disableFragmentWarnings,W.enableExperimentalFragmentVariables=C_enableExperimentalFragmentVariables,W.disableExperimentalFragmentVariables=C_disableExperimentalFragmentVariables,y.default=y;const D=y},48504:(ce,k,p)=>{"use strict";var t=typeof Symbol<"u"&&Symbol,w=p(24442);ce.exports=function(){return"function"==typeof t&&"function"==typeof Symbol&&"symbol"==typeof t("foo")&&"symbol"==typeof Symbol("bar")&&w()}},24442:ce=>{"use strict";ce.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var p={},t=Symbol("test"),w=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(w))return!1;for(t in p[t]=42,p)return!1;if("function"==typeof Object.keys&&0!==Object.keys(p).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(p).length)return!1;var r=Object.getOwnPropertySymbols(p);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(p,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(p,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},87035:(ce,k,p)=>{"use strict";var t=p(24442);ce.exports=function(){return t()&&!!Symbol.toStringTag}},44498:(ce,k,p)=>{"use strict";var t=p(52451);ce.exports=t.call(Function.call,Object.prototype.hasOwnProperty)},67926:(ce,k)=>{k.read=function(p,t,w,d,r){var n,a,u=8*r-d-1,e=(1<<u)-1,i=e>>1,s=-7,h=w?r-1:0,y=w?-1:1,m=p[t+h];for(h+=y,n=m&(1<<-s)-1,m>>=-s,s+=u;s>0;n=256*n+p[t+h],h+=y,s-=8);for(a=n&(1<<-s)-1,n>>=-s,s+=d;s>0;a=256*a+p[t+h],h+=y,s-=8);if(0===n)n=1-i;else{if(n===e)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,d),n-=i}return(m?-1:1)*a*Math.pow(2,n-d)},k.write=function(p,t,w,d,r,n){var a,u,e,i=8*n-r-1,s=(1<<i)-1,h=s>>1,y=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,m=d?0:n-1,I=d?1:-1,M=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=s):(a=Math.floor(Math.log(t)/Math.LN2),t*(e=Math.pow(2,-a))<1&&(a--,e*=2),(t+=a+h>=1?y/e:y*Math.pow(2,1-h))*e>=2&&(a++,e/=2),a+h>=s?(u=0,a=s):a+h>=1?(u=(t*e-1)*Math.pow(2,r),a+=h):(u=t*Math.pow(2,h-1)*Math.pow(2,r),a=0));r>=8;p[w+m]=255&u,m+=I,u/=256,r-=8);for(a=a<<r|u,i+=r;i>0;p[w+m]=255&a,m+=I,a/=256,i-=8);p[w+m-I]|=128*M}},23819:ce=>{ce.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var w=function(){};w.prototype=t.prototype,p.prototype=new w,p.prototype.constructor=p}}},676:ce=>{"use strict";var k="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,p=Object.prototype.toString,t=function(n){return!(k&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===p.call(n)},w=function(n){return!!t(n)||null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Array]"!==p.call(n)&&"[object Function]"===p.call(n.callee)},d=function(){return t(arguments)}();t.isLegacyArguments=w,ce.exports=d?t:w},78337:(ce,k,p)=>{"use strict";var u,t=Object.prototype.toString,w=Function.prototype.toString,d=/^\s*(?:function)?\*/,r=p(87035)(),n=Object.getPrototypeOf;ce.exports=function(i){if("function"!=typeof i)return!1;if(d.test(w.call(i)))return!0;if(!r)return"[object GeneratorFunction]"===t.call(i);if(!n)return!1;if(typeof u>"u"){var h=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}}();u=!!h&&n(h)}return n(i)===u}},45944:ce=>{var k={}.toString;ce.exports=Array.isArray||function(p){return"[object Array]"==k.call(p)}},70946:(ce,k)=>{!function(p){"use strict";function t(te){return null!==te&&"[object Array]"===Object.prototype.toString.call(te)}function w(te){return null!==te&&"[object Object]"===Object.prototype.toString.call(te)}function d(te,de){if(te===de)return!0;if(Object.prototype.toString.call(te)!==Object.prototype.toString.call(de))return!1;if(!0===t(te)){if(te.length!==de.length)return!1;for(var Oe=0;Oe<te.length;Oe++)if(!1===d(te[Oe],de[Oe]))return!1;return!0}if(!0===w(te)){var Ie={};for(var Ue in te)if(hasOwnProperty.call(te,Ue)){if(!1===d(te[Ue],de[Ue]))return!1;Ie[Ue]=!0}for(var qe in de)if(hasOwnProperty.call(de,qe)&&!0!==Ie[qe])return!1;return!0}return!1}function r(te){if(""===te||!1===te||null===te)return!0;if(t(te)&&0===te.length)return!0;if(w(te)){for(var de in te)if(te.hasOwnProperty(de))return!1;return!0}return!1}var u;u="function"==typeof String.prototype.trimLeft?function(te){return te.trimLeft()}:function(te){return te.match(/^\s*(.*)/)[1]};var e=0,i=1,s=2,h=3,y=4,I=6,P=8,C=9,D={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},W="EOF",Q="UnquotedIdentifier",H="QuotedIdentifier",L="Rbracket",g="Rparen",R="Comma",c="Colon",_="Rbrace",l="Number",T="Current",B="Expref",U="Pipe",z="Or",X="GT",oe="GTE",K="LTE",Y="NE",ne="Flatten",$="Star",A="Filter",b="Dot",x="Not",N="Lbrace",q="Lbracket",ee="Lparen",ue="Literal",_e={".":b,"*":$,",":R,":":c,"{":N,"}":_,"]":L,"(":ee,")":g,"@":T},me={"<":!0,">":!0,"=":!0,"!":!0},Re={" ":!0,"\t":!0,"\n":!0};function De(te){return te>="a"&&te<="z"||te>="A"&&te<="Z"||"_"===te}function Me(te){return te>="0"&&te<="9"||"-"===te}function ie(te){return te>="a"&&te<="z"||te>="A"&&te<="Z"||te>="0"&&te<="9"||"_"===te}function V(){}V.prototype={tokenize:function(te){var ye,Oe,Ie,de=[];for(this._current=0;this._current<te.length;)if(De(te[this._current]))ye=this._current,Oe=this._consumeUnquotedIdentifier(te),de.push({type:Q,value:Oe,start:ye});else if(void 0!==_e[te[this._current]])de.push({type:_e[te[this._current]],value:te[this._current],start:this._current}),this._current++;else if(Me(te[this._current]))Ie=this._consumeNumber(te),de.push(Ie);else if("["===te[this._current])Ie=this._consumeLBracket(te),de.push(Ie);else if('"'===te[this._current])ye=this._current,Oe=this._consumeQuotedIdentifier(te),de.push({type:H,value:Oe,start:ye});else if("'"===te[this._current])ye=this._current,Oe=this._consumeRawStringLiteral(te),de.push({type:ue,value:Oe,start:ye});else if("`"===te[this._current]){ye=this._current;var Ue=this._consumeLiteral(te);de.push({type:ue,value:Ue,start:ye})}else if(void 0!==me[te[this._current]])de.push(this._consumeOperator(te));else if(void 0!==Re[te[this._current]])this._current++;else if("&"===te[this._current])ye=this._current,this._current++,"&"===te[this._current]?(this._current++,de.push({type:"And",value:"&&",start:ye})):de.push({type:B,value:"&",start:ye});else{if("|"!==te[this._current]){var qe=new Error("Unknown character:"+te[this._current]);throw qe.name="LexerError",qe}ye=this._current,this._current++,"|"===te[this._current]?(this._current++,de.push({type:z,value:"||",start:ye})):de.push({type:U,value:"|",start:ye})}return de},_consumeUnquotedIdentifier:function(te){var de=this._current;for(this._current++;this._current<te.length&&ie(te[this._current]);)this._current++;return te.slice(de,this._current)},_consumeQuotedIdentifier:function(te){var de=this._current;this._current++;for(var ye=te.length;'"'!==te[this._current]&&this._current<ye;){var Oe=this._current;"\\"!==te[Oe]||"\\"!==te[Oe+1]&&'"'!==te[Oe+1]?Oe++:Oe+=2,this._current=Oe}return this._current++,JSON.parse(te.slice(de,this._current))},_consumeRawStringLiteral:function(te){var de=this._current;this._current++;for(var ye=te.length;"'"!==te[this._current]&&this._current<ye;){var Oe=this._current;"\\"!==te[Oe]||"\\"!==te[Oe+1]&&"'"!==te[Oe+1]?Oe++:Oe+=2,this._current=Oe}return this._current++,te.slice(de+1,this._current-1).replace("\\'","'")},_consumeNumber:function(te){var de=this._current;this._current++;for(var ye=te.length;Me(te[this._current])&&this._current<ye;)this._current++;var Oe=parseInt(te.slice(de,this._current));return{type:l,value:Oe,start:de}},_consumeLBracket:function(te){var de=this._current;return this._current++,"?"===te[this._current]?(this._current++,{type:A,value:"[?",start:de}):"]"===te[this._current]?(this._current++,{type:ne,value:"[]",start:de}):{type:q,value:"[",start:de}},_consumeOperator:function(te){var de=this._current,ye=te[de];return this._current++,"!"===ye?"="===te[this._current]?(this._current++,{type:Y,value:"!=",start:de}):{type:x,value:"!",start:de}:"<"===ye?"="===te[this._current]?(this._current++,{type:K,value:"<=",start:de}):{type:"LT",value:"<",start:de}:">"===ye?"="===te[this._current]?(this._current++,{type:oe,value:">=",start:de}):{type:X,value:">",start:de}:"="===ye&&"="===te[this._current]?(this._current++,{type:"EQ",value:"==",start:de}):void 0},_consumeLiteral:function(te){this._current++;for(var Oe,de=this._current,ye=te.length;"`"!==te[this._current]&&this._current<ye;){var Ie=this._current;"\\"!==te[Ie]||"\\"!==te[Ie+1]&&"`"!==te[Ie+1]?Ie++:Ie+=2,this._current=Ie}var Ue=u(te.slice(de,this._current));return Ue=Ue.replace("\\`","`"),Oe=this._looksLikeJSON(Ue)?JSON.parse(Ue):JSON.parse('"'+Ue+'"'),this._current++,Oe},_looksLikeJSON:function(te){if(""===te)return!1;if('[{"'.indexOf(te[0])>=0)return!0;if(["true","false","null"].indexOf(te)>=0)return!0;if(!("-0123456789".indexOf(te[0])>=0))return!1;try{return JSON.parse(te),!0}catch{return!1}}};var v={};function O(){}function F(te){this.runtime=te}function re(te){this._interpreter=te,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[e]}]},avg:{_func:this._functionAvg,_signature:[{types:[P]}]},ceil:{_func:this._functionCeil,_signature:[{types:[e]}]},contains:{_func:this._functionContains,_signature:[{types:[s,h]},{types:[i]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[s]},{types:[s]}]},floor:{_func:this._functionFloor,_signature:[{types:[e]}]},length:{_func:this._functionLength,_signature:[{types:[s,h,y]}]},map:{_func:this._functionMap,_signature:[{types:[I]},{types:[h]}]},max:{_func:this._functionMax,_signature:[{types:[P,C]}]},merge:{_func:this._functionMerge,_signature:[{types:[y],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[h]},{types:[I]}]},sum:{_func:this._functionSum,_signature:[{types:[P]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[s]},{types:[s]}]},min:{_func:this._functionMin,_signature:[{types:[P,C]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[h]},{types:[I]}]},type:{_func:this._functionType,_signature:[{types:[i]}]},keys:{_func:this._functionKeys,_signature:[{types:[y]}]},values:{_func:this._functionValues,_signature:[{types:[y]}]},sort:{_func:this._functionSort,_signature:[{types:[C,P]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[h]},{types:[I]}]},join:{_func:this._functionJoin,_signature:[{types:[s]},{types:[C]}]},reverse:{_func:this._functionReverse,_signature:[{types:[s,h]}]},to_array:{_func:this._functionToArray,_signature:[{types:[i]}]},to_string:{_func:this._functionToString,_signature:[{types:[i]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[i]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[i],variadic:!0}]}}}v[W]=0,v[Q]=0,v[H]=0,v[L]=0,v[g]=0,v[R]=0,v[_]=0,v[l]=0,v[T]=0,v[B]=0,v[U]=1,v[z]=2,v.And=3,v.EQ=5,v[X]=5,v.LT=5,v[oe]=5,v[K]=5,v[Y]=5,v[ne]=9,v[$]=20,v[A]=21,v[b]=40,v[x]=45,v[N]=50,v[q]=55,v[ee]=60,O.prototype={parse:function(te){this._loadTokens(te),this.index=0;var de=this.expression(0);if(this._lookahead(0)!==W){var ye=this._lookaheadToken(0),Oe=new Error("Unexpected token type: "+ye.type+", value: "+ye.value);throw Oe.name="ParserError",Oe}return de},_loadTokens:function(te){var ye=(new V).tokenize(te);ye.push({type:W,value:"",start:te.length}),this.tokens=ye},expression:function(te){var de=this._lookaheadToken(0);this._advance();for(var ye=this.nud(de),Oe=this._lookahead(0);te<v[Oe];)this._advance(),ye=this.led(Oe,ye),Oe=this._lookahead(0);return ye},_lookahead:function(te){return this.tokens[this.index+te].type},_lookaheadToken:function(te){return this.tokens[this.index+te]},_advance:function(){this.index++},nud:function(te){var ye,Oe;switch(te.type){case ue:return{type:"Literal",value:te.value};case Q:return{type:"Field",name:te.value};case H:var Ie={type:"Field",name:te.value};if(this._lookahead(0)===ee)throw new Error("Quoted identifier not allowed for function names.");return Ie;case x:return{type:"NotExpression",children:[ye=this.expression(v.Not)]};case $:return ye=null,{type:"ValueProjection",children:[{type:"Identity"},ye=this._lookahead(0)===L?{type:"Identity"}:this._parseProjectionRHS(v.Star)]};case A:return this.led(te.type,{type:"Identity"});case N:return this._parseMultiselectHash();case ne:return{type:"Projection",children:[{type:ne,children:[{type:"Identity"}]},ye=this._parseProjectionRHS(v.Flatten)]};case q:return this._lookahead(0)===l||this._lookahead(0)===c?(ye=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},ye)):this._lookahead(0)===$&&this._lookahead(1)===L?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},ye=this._parseProjectionRHS(v.Star)]}):this._parseMultiselectList();case T:return{type:T};case B:return{type:"ExpressionReference",children:[Oe=this.expression(v.Expref)]};case ee:for(var Ue=[];this._lookahead(0)!==g;)this._lookahead(0)===T?(Oe={type:T},this._advance()):Oe=this.expression(0),Ue.push(Oe);return this._match(g),Ue[0];default:this._errorToken(te)}},led:function(te,de){var ye;switch(te){case b:var Oe=v.Dot;return this._lookahead(0)!==$?{type:"Subexpression",children:[de,ye=this._parseDotRHS(Oe)]}:(this._advance(),{type:"ValueProjection",children:[de,ye=this._parseProjectionRHS(Oe)]});case U:return ye=this.expression(v.Pipe),{type:U,children:[de,ye]};case z:return{type:"OrExpression",children:[de,ye=this.expression(v.Or)]};case"And":return{type:"AndExpression",children:[de,ye=this.expression(v.And)]};case ee:for(var qe,Ie=de.name,Ue=[];this._lookahead(0)!==g;)this._lookahead(0)===T?(qe={type:T},this._advance()):qe=this.expression(0),this._lookahead(0)===R&&this._match(R),Ue.push(qe);return this._match(g),{type:"Function",name:Ie,children:Ue};case A:var nt=this.expression(0);return this._match(L),{type:"FilterProjection",children:[de,ye=this._lookahead(0)===ne?{type:"Identity"}:this._parseProjectionRHS(v.Filter),nt]};case ne:return{type:"Projection",children:[{type:ne,children:[de]},this._parseProjectionRHS(v.Flatten)]};case"EQ":case Y:case X:case oe:case"LT":case K:return this._parseComparator(de,te);case q:var Ke=this._lookaheadToken(0);return Ke.type===l||Ke.type===c?(ye=this._parseIndexExpression(),this._projectIfSlice(de,ye)):(this._match($),this._match(L),{type:"Projection",children:[de,ye=this._parseProjectionRHS(v.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(te){if(this._lookahead(0)!==te){var de=this._lookaheadToken(0),ye=new Error("Expected "+te+", got: "+de.type);throw ye.name="ParserError",ye}this._advance()},_errorToken:function(te){var de=new Error("Invalid token ("+te.type+'): "'+te.value+'"');throw de.name="ParserError",de},_parseIndexExpression:function(){if(this._lookahead(0)===c||this._lookahead(1)===c)return this._parseSliceExpression();var te={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(L),te},_projectIfSlice:function(te,de){var ye={type:"IndexExpression",children:[te,de]};return"Slice"===de.type?{type:"Projection",children:[ye,this._parseProjectionRHS(v.Star)]}:ye},_parseSliceExpression:function(){for(var te=[null,null,null],de=0,ye=this._lookahead(0);ye!==L&&de<3;){if(ye===c)de++,this._advance();else{if(ye!==l){var Oe=this._lookahead(0),Ie=new Error("Syntax error, unexpected token: "+Oe.value+"("+Oe.type+")");throw Ie.name="Parsererror",Ie}te[de]=this._lookaheadToken(0).value,this._advance()}ye=this._lookahead(0)}return this._match(L),{type:"Slice",children:te}},_parseComparator:function(te,de){return{type:"Comparator",name:de,children:[te,this.expression(v[de])]}},_parseDotRHS:function(te){var de=this._lookahead(0);return[Q,H,$].indexOf(de)>=0?this.expression(te):de===q?(this._match(q),this._parseMultiselectList()):de===N?(this._match(N),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(te){var de;if(v[this._lookahead(0)]<10)de={type:"Identity"};else if(this._lookahead(0)===q)de=this.expression(te);else if(this._lookahead(0)===A)de=this.expression(te);else{if(this._lookahead(0)!==b){var ye=this._lookaheadToken(0),Oe=new Error("Sytanx error, unexpected token: "+ye.value+"("+ye.type+")");throw Oe.name="ParserError",Oe}this._match(b),de=this._parseDotRHS(te)}return de},_parseMultiselectList:function(){for(var te=[];this._lookahead(0)!==L;){var de=this.expression(0);if(te.push(de),this._lookahead(0)===R&&(this._match(R),this._lookahead(0)===L))throw new Error("Unexpected token Rbracket")}return this._match(L),{type:"MultiSelectList",children:te}},_parseMultiselectHash:function(){for(var ye,Oe,Ie,te=[],de=[Q,H];;){if(ye=this._lookaheadToken(0),de.indexOf(ye.type)<0)throw new Error("Expecting an identifier token, got: "+ye.type);if(Oe=ye.value,this._advance(),this._match(c),Ie=this.expression(0),te.push({type:"KeyValuePair",name:Oe,value:Ie}),this._lookahead(0)===R)this._match(R);else if(this._lookahead(0)===_){this._match(_);break}}return{type:"MultiSelectHash",children:te}}},F.prototype={search:function(te,de){return this.visit(te,de)},visit:function(te,de){var ye,Oe,Ie,Ue,qe,ze,nt,at,Ke;switch(te.type){case"Field":return null!==de&&w(de)?void 0===(ze=de[te.name])?null:ze:null;case"Subexpression":for(Ie=this.visit(te.children[0],de),Ke=1;Ke<te.children.length;Ke++)if(null===(Ie=this.visit(te.children[1],Ie)))return null;return Ie;case"IndexExpression":return nt=this.visit(te.children[0],de),this.visit(te.children[1],nt);case"Index":if(!t(de))return null;var ct=te.value;return ct<0&&(ct=de.length+ct),void 0===(Ie=de[ct])&&(Ie=null),Ie;case"Slice":if(!t(de))return null;var jt=te.children.slice(0),pt=this.computeSliceParams(de.length,jt),yt=pt[0],Rt=pt[1],St=pt[2];if(Ie=[],St>0)for(Ke=yt;Ke<Rt;Ke+=St)Ie.push(de[Ke]);else for(Ke=yt;Ke>Rt;Ke+=St)Ie.push(de[Ke]);return Ie;case"Projection":var ft=this.visit(te.children[0],de);if(!t(ft))return null;for(at=[],Ke=0;Ke<ft.length;Ke++)null!==(Oe=this.visit(te.children[1],ft[Ke]))&&at.push(Oe);return at;case"ValueProjection":if(!w(ft=this.visit(te.children[0],de)))return null;at=[];var Tt=function n(te){for(var de=Object.keys(te),ye=[],Oe=0;Oe<de.length;Oe++)ye.push(te[de[Oe]]);return ye}(ft);for(Ke=0;Ke<Tt.length;Ke++)null!==(Oe=this.visit(te.children[1],Tt[Ke]))&&at.push(Oe);return at;case"FilterProjection":if(!t(ft=this.visit(te.children[0],de)))return null;var Ft=[],wt=[];for(Ke=0;Ke<ft.length;Ke++)r(ye=this.visit(te.children[2],ft[Ke]))||Ft.push(ft[Ke]);for(var Ct=0;Ct<Ft.length;Ct++)null!==(Oe=this.visit(te.children[1],Ft[Ct]))&&wt.push(Oe);return wt;case"Comparator":switch(Ue=this.visit(te.children[0],de),qe=this.visit(te.children[1],de),te.name){case"EQ":Ie=d(Ue,qe);break;case Y:Ie=!d(Ue,qe);break;case X:Ie=Ue>qe;break;case oe:Ie=Ue>=qe;break;case"LT":Ie=Ue<qe;break;case K:Ie=Ue<=qe;break;default:throw new Error("Unknown comparator: "+te.name)}return Ie;case ne:var It=this.visit(te.children[0],de);if(!t(It))return null;var Lt=[];for(Ke=0;Ke<It.length;Ke++)t(Oe=It[Ke])?Lt.push.apply(Lt,Oe):Lt.push(Oe);return Lt;case"Identity":return de;case"MultiSelectList":if(null===de)return null;for(at=[],Ke=0;Ke<te.children.length;Ke++)at.push(this.visit(te.children[Ke],de));return at;case"MultiSelectHash":if(null===de)return null;var Vt;for(at={},Ke=0;Ke<te.children.length;Ke++)at[(Vt=te.children[Ke]).name]=this.visit(Vt.value,de);return at;case"OrExpression":return r(ye=this.visit(te.children[0],de))&&(ye=this.visit(te.children[1],de)),ye;case"AndExpression":return!0===r(Ue=this.visit(te.children[0],de))?Ue:this.visit(te.children[1],de);case"NotExpression":return r(Ue=this.visit(te.children[0],de));case"Literal":return te.value;case U:return nt=this.visit(te.children[0],de),this.visit(te.children[1],nt);case T:return de;case"Function":var Wt=[];for(Ke=0;Ke<te.children.length;Ke++)Wt.push(this.visit(te.children[Ke],de));return this.runtime.callFunction(te.name,Wt);case"ExpressionReference":var Et=te.children[0];return Et.jmespathType=B,Et;default:throw new Error("Unknown node type: "+te.type)}},computeSliceParams:function(te,de){var ye=de[0],Oe=de[1],Ie=de[2],Ue=[null,null,null];if(null===Ie)Ie=1;else if(0===Ie){var qe=new Error("Invalid slice, step cannot be 0");throw qe.name="RuntimeError",qe}var ze=Ie<0;return ye=null===ye?ze?te-1:0:this.capSliceRange(te,ye,Ie),Oe=null===Oe?ze?-1:te:this.capSliceRange(te,Oe,Ie),Ue[0]=ye,Ue[1]=Oe,Ue[2]=Ie,Ue},capSliceRange:function(te,de,ye){return de<0?(de+=te)<0&&(de=ye<0?-1:0):de>=te&&(de=ye<0?te-1:te),de}},re.prototype={callFunction:function(te,de){var ye=this.functionTable[te];if(void 0===ye)throw new Error("Unknown function: "+te+"()");return this._validateArgs(te,de,ye._signature),ye._func.call(this,de)},_validateArgs:function(te,de,ye){var Oe;if(ye[ye.length-1].variadic){if(de.length<ye.length)throw Oe=1===ye.length?" argument":" arguments",new Error("ArgumentError: "+te+"() takes at least"+ye.length+Oe+" but received "+de.length)}else if(de.length!==ye.length)throw Oe=1===ye.length?" argument":" arguments",new Error("ArgumentError: "+te+"() takes "+ye.length+Oe+" but received "+de.length);for(var Ie,Ue,qe,ze=0;ze<ye.length;ze++){qe=!1,Ie=ye[ze].types,Ue=this._getTypeName(de[ze]);for(var nt=0;nt<Ie.length;nt++)if(this._typeMatches(Ue,Ie[nt],de[ze])){qe=!0;break}if(!qe){var ht=Ie.map(function(at){return D[at]}).join(",");throw new Error("TypeError: "+te+"() expected argument "+(ze+1)+" to be type "+ht+" but received type "+D[Ue]+" instead.")}}},_typeMatches:function(te,de,ye){if(de===i)return!0;if(de!==C&&de!==P&&de!==h)return te===de;if(de===h)return te===h;if(te===h){var Oe;de===P?Oe=e:de===C&&(Oe=s);for(var Ie=0;Ie<ye.length;Ie++)if(!this._typeMatches(this._getTypeName(ye[Ie]),Oe,ye[Ie]))return!1;return!0}},_getTypeName:function(te){switch(Object.prototype.toString.call(te)){case"[object String]":return s;case"[object Number]":return e;case"[object Array]":return h;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return te.jmespathType===B?I:y}},_functionStartsWith:function(te){return 0===te[0].lastIndexOf(te[1])},_functionEndsWith:function(te){var de=te[0],ye=te[1];return-1!==de.indexOf(ye,de.length-ye.length)},_functionReverse:function(te){if(this._getTypeName(te[0])===s){for(var ye=te[0],Oe="",Ie=ye.length-1;Ie>=0;Ie--)Oe+=ye[Ie];return Oe}var Ue=te[0].slice(0);return Ue.reverse(),Ue},_functionAbs:function(te){return Math.abs(te[0])},_functionCeil:function(te){return Math.ceil(te[0])},_functionAvg:function(te){for(var de=0,ye=te[0],Oe=0;Oe<ye.length;Oe++)de+=ye[Oe];return de/ye.length},_functionContains:function(te){return te[0].indexOf(te[1])>=0},_functionFloor:function(te){return Math.floor(te[0])},_functionLength:function(te){return w(te[0])?Object.keys(te[0]).length:te[0].length},_functionMap:function(te){for(var de=[],ye=this._interpreter,Oe=te[0],Ie=te[1],Ue=0;Ue<Ie.length;Ue++)de.push(ye.visit(Oe,Ie[Ue]));return de},_functionMerge:function(te){for(var de={},ye=0;ye<te.length;ye++){var Oe=te[ye];for(var Ie in Oe)de[Ie]=Oe[Ie]}return de},_functionMax:function(te){if(te[0].length>0){if(this._getTypeName(te[0][0])===e)return Math.max.apply(Math,te[0]);for(var ye=te[0],Oe=ye[0],Ie=1;Ie<ye.length;Ie++)Oe.localeCompare(ye[Ie])<0&&(Oe=ye[Ie]);return Oe}return null},_functionMin:function(te){if(te[0].length>0){if(this._getTypeName(te[0][0])===e)return Math.min.apply(Math,te[0]);for(var ye=te[0],Oe=ye[0],Ie=1;Ie<ye.length;Ie++)ye[Ie].localeCompare(Oe)<0&&(Oe=ye[Ie]);return Oe}return null},_functionSum:function(te){for(var de=0,ye=te[0],Oe=0;Oe<ye.length;Oe++)de+=ye[Oe];return de},_functionType:function(te){switch(this._getTypeName(te[0])){case e:return"number";case s:return"string";case h:return"array";case y:return"object";case 5:return"boolean";case I:return"expref";case 7:return"null"}},_functionKeys:function(te){return Object.keys(te[0])},_functionValues:function(te){for(var de=te[0],ye=Object.keys(de),Oe=[],Ie=0;Ie<ye.length;Ie++)Oe.push(de[ye[Ie]]);return Oe},_functionJoin:function(te){return te[1].join(te[0])},_functionToArray:function(te){return this._getTypeName(te[0])===h?te[0]:[te[0]]},_functionToString:function(te){return this._getTypeName(te[0])===s?te[0]:JSON.stringify(te[0])},_functionToNumber:function(te){var ye,de=this._getTypeName(te[0]);return de===e?te[0]:de!==s||(ye=+te[0],isNaN(ye))?null:ye},_functionNotNull:function(te){for(var de=0;de<te.length;de++)if(7!==this._getTypeName(te[de]))return te[de];return null},_functionSort:function(te){var de=te[0].slice(0);return de.sort(),de},_functionSortBy:function(te){var de=te[0].slice(0);if(0===de.length)return de;var ye=this._interpreter,Oe=te[1],Ie=this._getTypeName(ye.visit(Oe,de[0]));if([e,s].indexOf(Ie)<0)throw new Error("TypeError");for(var Ue=this,qe=[],ze=0;ze<de.length;ze++)qe.push([ze,de[ze]]);qe.sort(function(ht,at){var Ke=ye.visit(Oe,ht[1]),ct=ye.visit(Oe,at[1]);if(Ue._getTypeName(Ke)!==Ie)throw new Error("TypeError: expected "+Ie+", received "+Ue._getTypeName(Ke));if(Ue._getTypeName(ct)!==Ie)throw new Error("TypeError: expected "+Ie+", received "+Ue._getTypeName(ct));return Ke>ct?1:Ke<ct?-1:ht[0]-at[0]});for(var nt=0;nt<qe.length;nt++)de[nt]=qe[nt][1];return de},_functionMaxBy:function(te){for(var Ue,qe,ye=te[0],Oe=this.createKeyFunction(te[1],[e,s]),Ie=-1/0,ze=0;ze<ye.length;ze++)(qe=Oe(ye[ze]))>Ie&&(Ie=qe,Ue=ye[ze]);return Ue},_functionMinBy:function(te){for(var Ue,qe,ye=te[0],Oe=this.createKeyFunction(te[1],[e,s]),Ie=1/0,ze=0;ze<ye.length;ze++)(qe=Oe(ye[ze]))<Ie&&(Ie=qe,Ue=ye[ze]);return Ue},createKeyFunction:function(te,de){var ye=this,Oe=this._interpreter;return function(Ue){var qe=Oe.visit(te,Ue);if(de.indexOf(ye._getTypeName(qe))<0){var ze="TypeError: expected one of "+de+", received "+ye._getTypeName(qe);throw new Error(ze)}return qe}}},p.tokenize=function xe(te){return(new V).tokenize(te)},p.compile=function ve(te){return(new O).parse(te)},p.search=function Te(te,de){var ye=new O,Oe=new re,Ie=new F(Oe);Oe._interpreter=Ie;var Ue=ye.parse(de);return Ie.search(Ue,te)},p.strictDeepEqual=d}(k)},64981:ce=>{"use strict";var k=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;ce.exports=function d(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var n={},a=0;a<10;a++)n["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(i){return n[i]}).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach(function(i){e[i]=i}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch{return!1}}()?Object.assign:function(r,n){for(var a,e,u=function w(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}(r),i=1;i<arguments.length;i++){for(var s in a=Object(arguments[i]))p.call(a,s)&&(u[s]=a[s]);if(k){e=k(a);for(var h=0;h<e.length;h++)t.call(a,e[h])&&(u[e[h]]=a[e[h]])}}return u}},40245:(ce,k,p)=>{"use strict";p.d(k,{Gl:()=>t.B,dP:()=>ae,re:()=>oe});var t=p(83302),w=p(62966);function d(){}var a,r=function(){function K(Y,ne){void 0===Y&&(Y=1/0),void 0===ne&&(ne=d),this.max=Y,this.dispose=ne,this.map=new Map,this.newest=null,this.oldest=null}return K.prototype.has=function(Y){return this.map.has(Y)},K.prototype.get=function(Y){var ne=this.getNode(Y);return ne&&ne.value},K.prototype.getNode=function(Y){var ne=this.map.get(Y);if(ne&&ne!==this.newest){var $=ne.older,A=ne.newer;A&&(A.older=$),$&&($.newer=A),ne.older=this.newest,ne.older.newer=ne,ne.newer=null,this.newest=ne,ne===this.oldest&&(this.oldest=A)}return ne},K.prototype.set=function(Y,ne){var $=this.getNode(Y);return $?$.value=ne:($={key:Y,value:ne,newer:null,older:this.newest},this.newest&&(this.newest.newer=$),this.newest=$,this.oldest=this.oldest||$,this.map.set(Y,$),$.value)},K.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},K.prototype.delete=function(Y){var ne=this.map.get(Y);return!!ne&&(ne===this.newest&&(this.newest=ne.older),ne===this.oldest&&(this.oldest=ne.newer),ne.newer&&(ne.newer.older=ne.older),ne.older&&(ne.older.newer=ne.newer),this.map.delete(Y),this.dispose(ne.value,Y),!0)},K}(),n=new w.g7,u=Object.prototype.hasOwnProperty,e=void 0===(a=Array.from)?function(K){var Y=[];return K.forEach(function(ne){return Y.push(ne)}),Y}:a;function i(K){var Y=K.unsubscribe;"function"==typeof Y&&(K.unsubscribe=void 0,Y())}var s=[],h=100;function y(K,Y){if(!K)throw new Error(Y||"assertion failure")}function I(K){switch(K.length){case 0:throw new Error("unknown value");case 1:return K[0];case 2:throw K[1]}}var P=function(){function K(Y){this.fn=Y,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++K.count}return K.prototype.peek=function(){if(1===this.value.length&&!Q(this))return C(this),this.value[0]},K.prototype.recompute=function(Y){return y(!this.recomputing,"already recomputing"),C(this),Q(this)?function D(K,Y){return T(K),n.withValue(K,W,[K,Y]),function U(K,Y){if("function"==typeof K.subscribe)try{i(K),K.unsubscribe=K.subscribe.apply(null,Y)}catch{return K.setDirty(),!1}return!0}(K,Y)&&function H(K){K.dirty=!1,!Q(K)&&g(K)}(K),I(K.value)}(this,Y):I(this.value)},K.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,L(this),i(this))},K.prototype.dispose=function(){var Y=this;this.setDirty(),T(this),R(this,function(ne,$){ne.setDirty(),B(ne,Y)})},K.prototype.forget=function(){this.dispose()},K.prototype.dependOn=function(Y){Y.add(this),this.deps||(this.deps=s.pop()||new Set),this.deps.add(Y)},K.prototype.forgetDeps=function(){var Y=this;this.deps&&(e(this.deps).forEach(function(ne){return ne.delete(Y)}),this.deps.clear(),s.push(this.deps),this.deps=null)},K.count=0,K}();function C(K){var Y=n.getValue();if(Y)return K.parents.add(Y),Y.childValues.has(K)||Y.childValues.set(K,[]),Q(K)?c(Y,K):_(Y,K),Y}function W(K,Y){K.recomputing=!0,K.value.length=0;try{K.value[0]=K.fn.apply(null,Y)}catch(ne){K.value[1]=ne}K.recomputing=!1}function Q(K){return K.dirty||!(!K.dirtyChildren||!K.dirtyChildren.size)}function L(K){R(K,c)}function g(K){R(K,_)}function R(K,Y){var ne=K.parents.size;if(ne)for(var $=e(K.parents),A=0;A<ne;++A)Y($[A],K)}function c(K,Y){y(K.childValues.has(Y)),y(Q(Y));var ne=!Q(K);if(K.dirtyChildren){if(K.dirtyChildren.has(Y))return}else K.dirtyChildren=s.pop()||new Set;K.dirtyChildren.add(Y),ne&&L(K)}function _(K,Y){y(K.childValues.has(Y)),y(!Q(Y));var ne=K.childValues.get(Y);0===ne.length?K.childValues.set(Y,function M(K){return K.slice(0)}(Y.value)):function m(K,Y){var ne=K.length;return ne>0&&ne===Y.length&&K[ne-1]===Y[ne-1]}(ne,Y.value)||K.setDirty(),l(K,Y),!Q(K)&&g(K)}function l(K,Y){var ne=K.dirtyChildren;ne&&(ne.delete(Y),0===ne.size&&(s.length<h&&s.push(ne),K.dirtyChildren=null))}function T(K){K.childValues.size>0&&K.childValues.forEach(function(Y,ne){B(K,ne)}),K.forgetDeps(),y(null===K.dirtyChildren)}function B(K,Y){Y.parents.delete(K),K.childValues.delete(Y),l(K,Y)}var z={setDirty:!0,dispose:!0,forget:!0};function ae(K){var Y=new Map,ne=K&&K.subscribe;function $(A){var b=n.getValue();if(b){var x=Y.get(A);x||Y.set(A,x=new Set),b.dependOn(x),"function"==typeof ne&&(i(x),x.unsubscribe=ne(A))}}return $.dirty=function(b,x){var N=Y.get(b);if(N){var q=x&&u.call(z,x)?x:"setDirty";e(N).forEach(function(ee){return ee[q]()}),Y.delete(b),i(N)}},$}function pe(){var K=new t.B("function"==typeof WeakMap);return function(){return K.lookupArray(arguments)}}pe();var he=new Set;function oe(K,Y){void 0===Y&&(Y=Object.create(null));var ne=new r(Y.max||Math.pow(2,16),function(ee){return ee.dispose()}),$=Y.keyArgs,A=Y.makeCacheKey||pe(),b=function(){var ee=A.apply(null,$?$.apply(null,arguments):arguments);if(void 0===ee)return K.apply(null,arguments);var ue=ne.get(ee);ue||(ne.set(ee,ue=new P(K)),ue.subscribe=Y.subscribe,ue.forget=function(){return ne.delete(ee)});var _e=ue.recompute(Array.prototype.slice.call(arguments));return ne.set(ee,ue),he.add(ne),n.hasValue()||(he.forEach(function(me){return me.clean()}),he.clear()),_e};function x(ee){var ue=ne.get(ee);ue&&ue.setDirty()}function N(ee){var ue=ne.get(ee);if(ue)return ue.peek()}function q(ee){return ne.delete(ee)}return Object.defineProperty(b,"size",{get:function(){return ne.map.size},configurable:!1,enumerable:!1}),b.dirtyKey=x,b.dirty=function(){x(A.apply(null,arguments))},b.peekKey=N,b.peek=function(){return N(A.apply(null,arguments))},b.forgetKey=q,b.forget=function(){return q(A.apply(null,arguments))},b.makeCacheKey=A,b.getKey=$?function(){return A.apply(null,$.apply(null,arguments))}:A,Object.freeze(b)}},58886:ce=>{"use strict";function k(p,t){return Object.prototype.hasOwnProperty.call(p,t)}ce.exports=function(p,t,w,d){w=w||"=";var r={};if("string"!=typeof p||0===p.length)return r;var n=/\+/g;p=p.split(t=t||"&");var a=1e3;d&&"number"==typeof d.maxKeys&&(a=d.maxKeys);var u=p.length;a>0&&u>a&&(u=a);for(var e=0;e<u;++e){var h,y,m,I,i=p[e].replace(n,"%20"),s=i.indexOf(w);s>=0?(h=i.substr(0,s),y=i.substr(s+1)):(h=i,y=""),m=decodeURIComponent(h),I=decodeURIComponent(y),k(r,m)?Array.isArray(r[m])?r[m].push(I):r[m]=[r[m],I]:r[m]=I}return r}},40453:ce=>{"use strict";var k=function(p){switch(typeof p){case"string":return p;case"boolean":return p?"true":"false";case"number":return isFinite(p)?p:"";default:return""}};ce.exports=function(p,t,w,d){return t=t||"&",w=w||"=",null===p&&(p=void 0),"object"==typeof p?Object.keys(p).map(function(r){var n=encodeURIComponent(k(r))+w;return Array.isArray(p[r])?p[r].map(function(a){return n+encodeURIComponent(k(a))}).join(t):n+encodeURIComponent(k(p[r]))}).join(t):d?encodeURIComponent(k(d))+w+encodeURIComponent(k(p)):""}},51239:(ce,k,p)=>{"use strict";k.decode=k.parse=p(58886),k.encode=k.stringify=p(40453)},50988:function(ce,k,p){var t;ce=p.nmd(ce),function(w){"object"==typeof global&&global;var a,u=2147483647,e=36,i=1,s=26,h=38,y=700,m=72,I=128,M="-",P=/^xn--/,C=/[^\x20-\x7E]/,D=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Q=e-i,H=Math.floor,L=String.fromCharCode;function R(oe){throw RangeError(W[oe])}function c(oe,K){for(var Y=oe.length,ne=[];Y--;)ne[Y]=K(oe[Y]);return ne}function _(oe,K){var Y=oe.split("@"),ne="";return Y.length>1&&(ne=Y[0]+"@",oe=Y[1]),ne+c((oe=oe.replace(D,".")).split("."),K).join(".")}function l(oe){for(var $,A,K=[],Y=0,ne=oe.length;Y<ne;)($=oe.charCodeAt(Y++))>=55296&&$<=56319&&Y<ne?56320==(64512&(A=oe.charCodeAt(Y++)))?K.push(((1023&$)<<10)+(1023&A)+65536):(K.push($),Y--):K.push($);return K}function T(oe){return c(oe,function(K){var Y="";return K>65535&&(Y+=L((K-=65536)>>>10&1023|55296),K=56320|1023&K),Y+L(K)}).join("")}function B(oe){return oe-48<10?oe-22:oe-65<26?oe-65:oe-97<26?oe-97:e}function U(oe,K){return oe+22+75*(oe<26)-((0!=K)<<5)}function z(oe,K,Y){var ne=0;for(oe=Y?H(oe/y):oe>>1,oe+=H(oe/K);oe>Q*s>>1;ne+=e)oe=H(oe/Q);return H(ne+(Q+1)*oe/(oe+h))}function ae(oe){var ne,x,N,q,ee,ue,_e,me,Re,De,K=[],Y=oe.length,$=0,A=I,b=m;for((x=oe.lastIndexOf(M))<0&&(x=0),N=0;N<x;++N)oe.charCodeAt(N)>=128&&R("not-basic"),K.push(oe.charCodeAt(N));for(q=x>0?x+1:0;q<Y;){for(ee=$,ue=1,_e=e;q>=Y&&R("invalid-input"),((me=B(oe.charCodeAt(q++)))>=e||me>H((u-$)/ue))&&R("overflow"),$+=me*ue,!(me<(Re=_e<=b?i:_e>=b+s?s:_e-b));_e+=e)ue>H(u/(De=e-Re))&&R("overflow"),ue*=De;b=z($-ee,ne=K.length+1,0==ee),H($/ne)>u-A&&R("overflow"),A+=H($/ne),$%=ne,K.splice($++,0,A)}return T(K)}function pe(oe){var K,Y,ne,$,A,b,x,N,q,ee,ue,me,Re,De,Me,_e=[];for(me=(oe=l(oe)).length,K=I,Y=0,A=m,b=0;b<me;++b)(ue=oe[b])<128&&_e.push(L(ue));for(ne=$=_e.length,$&&_e.push(M);ne<me;){for(x=u,b=0;b<me;++b)(ue=oe[b])>=K&&ue<x&&(x=ue);for(x-K>H((u-Y)/(Re=ne+1))&&R("overflow"),Y+=(x-K)*Re,K=x,b=0;b<me;++b)if((ue=oe[b])<K&&++Y>u&&R("overflow"),ue==K){for(N=Y,q=e;!(N<(ee=q<=A?i:q>=A+s?s:q-A));q+=e)_e.push(L(U(ee+(Me=N-ee)%(De=e-ee),0))),N=H(Me/De);_e.push(L(U(N,0))),A=z(Y,Re,ne==$),Y=0,++ne}++Y,++K}return _e.join("")}a={version:"1.3.2",ucs2:{decode:l,encode:T},decode:ae,encode:pe,toASCII:function he(oe){return _(oe,function(K){return C.test(K)?"xn--"+pe(K):K})},toUnicode:function X(oe){return _(oe,function(K){return P.test(K)?ae(K.slice(4).toLowerCase()):K})}},void 0!==(t=function(){return a}.call(k,p,k,ce))&&(ce.exports=t)}()},87317:(ce,k,p)=>{"use strict";var t=p(50988),w=p(89390);function d(){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}k.parse=W,k.resolve=function H(g,R){return W(g,!1,!0).resolve(R)},k.resolveObject=function L(g,R){return g?W(g,!1,!0).resolveObject(R):R},k.format=function Q(g){return w.isString(g)&&(g=W(g)),g instanceof d?g.format():d.prototype.format.call(g)},k.Url=d;var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),i=["'"].concat(e),s=["%","/","?",";","#"].concat(i),h=["/","?","#"],m=/^[+a-z0-9A-Z_-]{0,63}$/,I=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},P={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},D=p(51239);function W(g,R,c){if(g&&w.isObject(g)&&g instanceof d)return g;var _=new d;return _.parse(g,R,c),_}d.prototype.parse=function(g,R,c){if(!w.isString(g))throw new TypeError("Parameter 'url' must be a string, not "+typeof g);var _=g.indexOf("?"),l=-1!==_&&_<g.indexOf("#")?"?":"#",T=g.split(l);T[0]=T[0].replace(/\\/g,"/");var U=g=T.join(l);if(U=U.trim(),!c&&1===g.split("#").length){var z=a.exec(U);if(z)return this.path=U,this.href=U,this.pathname=z[1],z[2]?(this.search=z[2],this.query=R?D.parse(this.search.substr(1)):this.search.substr(1)):R&&(this.search="",this.query={}),this}var ae=r.exec(U);if(ae){var pe=(ae=ae[0]).toLowerCase();this.protocol=pe,U=U.substr(ae.length)}if(c||ae||U.match(/^\/\/[^@\/]+@[^@\/]+/)){var X="//"===U.substr(0,2);X&&(!ae||!P[ae])&&(U=U.substr(2),this.slashes=!0)}if(!P[ae]&&(X||ae&&!C[ae])){for(var he=-1,oe=0;oe<h.length;oe++)-1!==(K=U.indexOf(h[oe]))&&(-1===he||K<he)&&(he=K);var Y,ne;for(-1!==(ne=-1===he?U.lastIndexOf("@"):U.lastIndexOf("@",he))&&(Y=U.slice(0,ne),U=U.slice(ne+1),this.auth=decodeURIComponent(Y)),he=-1,oe=0;oe<s.length;oe++){var K;-1!==(K=U.indexOf(s[oe]))&&(-1===he||K<he)&&(he=K)}-1===he&&(he=U.length),this.host=U.slice(0,he),U=U.slice(he),this.parseHost(),this.hostname=this.hostname||"";var $="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!$)for(var A=this.hostname.split(/\./),b=(oe=0,A.length);oe<b;oe++){var x=A[oe];if(x&&!x.match(m)){for(var N="",q=0,ee=x.length;q<ee;q++)x.charCodeAt(q)>127?N+="x":N+=x[q];if(!N.match(m)){var ue=A.slice(0,oe),_e=A.slice(oe+1),me=x.match(I);me&&(ue.push(me[1]),_e.unshift(me[2])),_e.length&&(U="/"+_e.join(".")+U),this.hostname=ue.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),$||(this.hostname=t.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==U[0]&&(U="/"+U))}if(!M[pe])for(oe=0,b=i.length;oe<b;oe++){var Me=i[oe];if(-1!==U.indexOf(Me)){var ie=encodeURIComponent(Me);ie===Me&&(ie=escape(Me)),U=U.split(Me).join(ie)}}var V=U.indexOf("#");-1!==V&&(this.hash=U.substr(V),U=U.slice(0,V));var v=U.indexOf("?");return-1!==v?(this.search=U.substr(v),this.query=U.substr(v+1),R&&(this.query=D.parse(this.query)),U=U.slice(0,v)):R&&(this.search="",this.query={}),U&&(this.pathname=U),C[pe]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},d.prototype.format=function(){var g=this.auth||"";g&&(g=(g=encodeURIComponent(g)).replace(/%3A/i,":"),g+="@");var R=this.protocol||"",c=this.pathname||"",_=this.hash||"",l=!1,T="";this.host?l=g+this.host:this.hostname&&(l=g+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(l+=":"+this.port)),this.query&&w.isObject(this.query)&&Object.keys(this.query).length&&(T=D.stringify(this.query));var B=this.search||T&&"?"+T||"";return R&&":"!==R.substr(-1)&&(R+=":"),this.slashes||(!R||C[R])&&!1!==l?(l="//"+(l||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):l||(l=""),_&&"#"!==_.charAt(0)&&(_="#"+_),B&&"?"!==B.charAt(0)&&(B="?"+B),R+l+(c=c.replace(/[?#]/g,function(U){return encodeURIComponent(U)}))+(B=B.replace("#","%23"))+_},d.prototype.resolve=function(g){return this.resolveObject(W(g,!1,!0)).format()},d.prototype.resolveObject=function(g){if(w.isString(g)){var R=new d;R.parse(g,!1,!0),g=R}for(var c=new d,_=Object.keys(this),l=0;l<_.length;l++){var T=_[l];c[T]=this[T]}if(c.hash=g.hash,""===g.href)return c.href=c.format(),c;if(g.slashes&&!g.protocol){for(var B=Object.keys(g),U=0;U<B.length;U++){var z=B[U];"protocol"!==z&&(c[z]=g[z])}return C[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c}if(g.protocol&&g.protocol!==c.protocol){if(!C[g.protocol]){for(var ae=Object.keys(g),pe=0;pe<ae.length;pe++){var X=ae[pe];c[X]=g[X]}return c.href=c.format(),c}if(c.protocol=g.protocol,g.host||P[g.protocol])c.pathname=g.pathname;else{for(var b=(g.pathname||"").split("/");b.length&&!(g.host=b.shift()););g.host||(g.host=""),g.hostname||(g.hostname=""),""!==b[0]&&b.unshift(""),b.length<2&&b.unshift(""),c.pathname=b.join("/")}return c.search=g.search,c.query=g.query,c.host=g.host||"",c.auth=g.auth,c.hostname=g.hostname||g.host,c.port=g.port,(c.pathname||c.search)&&(c.path=(c.pathname||"")+(c.search||"")),c.slashes=c.slashes||g.slashes,c.href=c.format(),c}var K=c.pathname&&"/"===c.pathname.charAt(0),Y=g.host||g.pathname&&"/"===g.pathname.charAt(0),ne=Y||K||c.host&&g.pathname,$=ne,A=c.pathname&&c.pathname.split("/")||[],x=(b=g.pathname&&g.pathname.split("/")||[],c.protocol&&!C[c.protocol]);if(x&&(c.hostname="",c.port=null,c.host&&(""===A[0]?A[0]=c.host:A.unshift(c.host)),c.host="",g.protocol&&(g.hostname=null,g.port=null,g.host&&(""===b[0]?b[0]=g.host:b.unshift(g.host)),g.host=null),ne=ne&&(""===b[0]||""===A[0])),Y)c.host=g.host||""===g.host?g.host:c.host,c.hostname=g.hostname||""===g.hostname?g.hostname:c.hostname,c.search=g.search,c.query=g.query,A=b;else if(b.length)A||(A=[]),A.pop(),A=A.concat(b),c.search=g.search,c.query=g.query;else if(!w.isNullOrUndefined(g.search))return x&&(c.hostname=c.host=A.shift(),(N=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@"))&&(c.auth=N.shift(),c.host=c.hostname=N.shift())),c.search=g.search,c.query=g.query,(!w.isNull(c.pathname)||!w.isNull(c.search))&&(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c;if(!A.length)return c.pathname=null,c.path=c.search?"/"+c.search:null,c.href=c.format(),c;for(var q=A.slice(-1)[0],ee=(c.host||g.host||A.length>1)&&("."===q||".."===q)||""===q,ue=0,_e=A.length;_e>=0;_e--)"."===(q=A[_e])?A.splice(_e,1):".."===q?(A.splice(_e,1),ue++):ue&&(A.splice(_e,1),ue--);if(!ne&&!$)for(;ue--;ue)A.unshift("..");ne&&""!==A[0]&&(!A[0]||"/"!==A[0].charAt(0))&&A.unshift(""),ee&&"/"!==A.join("/").substr(-1)&&A.push("");var N,me=""===A[0]||A[0]&&"/"===A[0].charAt(0);return x&&(c.hostname=c.host=me?"":A.length?A.shift():"",(N=!!(c.host&&c.host.indexOf("@")>0)&&c.host.split("@"))&&(c.auth=N.shift(),c.host=c.hostname=N.shift())),(ne=ne||c.host&&A.length)&&!me&&A.unshift(""),A.length?c.pathname=A.join("/"):(c.pathname=null,c.path=null),(!w.isNull(c.pathname)||!w.isNull(c.search))&&(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=g.auth||c.auth,c.slashes=c.slashes||g.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var g=this.host,R=n.exec(g);R&&(":"!==(R=R[0])&&(this.port=R.substr(1)),g=g.substr(0,g.length-R.length)),g&&(this.hostname=g)}},89390:ce=>{"use strict";ce.exports={isString:function(k){return"string"==typeof k},isObject:function(k){return"object"==typeof k&&null!==k},isNull:function(k){return null===k},isNullOrUndefined:function(k){return null==k}}},89756:(ce,k,p)=>{"use strict";var t=p(90564),w=p(26415),d=p(82375),r=d("Object.prototype.toString"),n=p(87035)(),a=typeof globalThis>"u"?global:globalThis,u=w(),e=d("Array.prototype.indexOf",!0)||function(M,P){for(var C=0;C<M.length;C+=1)if(M[C]===P)return C;return-1},i=d("String.prototype.slice"),s={},h=p(94304),y=Object.getPrototypeOf;n&&h&&y&&t(u,function(I){var M=new a[I];if(Symbol.toStringTag in M){var P=y(M),C=h(P,Symbol.toStringTag);if(!C){var D=y(P);C=h(D,Symbol.toStringTag)}s[I]=C.get}}),ce.exports=function(M){if(!M||"object"!=typeof M)return!1;if(!n||!(Symbol.toStringTag in M)){var P=i(r(M),8,-1);return e(u,P)>-1}return!!h&&function(M){var P=!1;return t(s,function(C,D){if(!P)try{P=C.call(M)===D}catch{}}),P}(M)}},6553:(ce,k,p)=>{"use strict";var t=p(90564),w=p(26415),d=p(82375),r=d("Object.prototype.toString"),n=p(87035)(),a=typeof globalThis>"u"?global:globalThis,u=w(),e=d("String.prototype.slice"),i={},s=p(94304),h=Object.getPrototypeOf;n&&s&&h&&t(u,function(I){if("function"==typeof a[I]){var M=new a[I];if(Symbol.toStringTag in M){var P=h(M),C=s(P,Symbol.toStringTag);if(!C){var D=h(P);C=s(D,Symbol.toStringTag)}i[I]=C.get}}});var m=p(89756);ce.exports=function(M){return!!m(M)&&(n&&Symbol.toStringTag in M?function(M){var P=!1;return t(i,function(C,D){if(!P)try{var W=C.call(M);W===D&&(P=W)}catch{}}),P}(M):e(r(M),8,-1))}},90002:ce=>{ce.exports=function(p){return p&&"object"==typeof p&&"function"==typeof p.copy&&"function"==typeof p.fill&&"function"==typeof p.readUInt8}},21960:(ce,k,p)=>{"use strict";var t=p(676),w=p(78337),d=p(6553),r=p(89756);function n(v){return v.call.bind(v)}var a=typeof BigInt<"u",u=typeof Symbol<"u",e=n(Object.prototype.toString),i=n(Number.prototype.valueOf),s=n(String.prototype.valueOf),h=n(Boolean.prototype.valueOf);if(a)var y=n(BigInt.prototype.valueOf);if(u)var m=n(Symbol.prototype.valueOf);function I(v,O){if("object"!=typeof v)return!1;try{return O(v),!0}catch{return!1}}function T(v){return"[object Map]"===e(v)}function U(v){return"[object Set]"===e(v)}function ae(v){return"[object WeakMap]"===e(v)}function X(v){return"[object WeakSet]"===e(v)}function oe(v){return"[object ArrayBuffer]"===e(v)}function K(v){return!(typeof ArrayBuffer>"u")&&(oe.working?oe(v):v instanceof ArrayBuffer)}function Y(v){return"[object DataView]"===e(v)}function ne(v){return!(typeof DataView>"u")&&(Y.working?Y(v):v instanceof DataView)}k.isArgumentsObject=t,k.isGeneratorFunction=w,k.isTypedArray=r,k.isPromise=function M(v){return typeof Promise<"u"&&v instanceof Promise||null!==v&&"object"==typeof v&&"function"==typeof v.then&&"function"==typeof v.catch},k.isArrayBufferView=function P(v){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(v):r(v)||ne(v)},k.isUint8Array=function C(v){return"Uint8Array"===d(v)},k.isUint8ClampedArray=function D(v){return"Uint8ClampedArray"===d(v)},k.isUint16Array=function W(v){return"Uint16Array"===d(v)},k.isUint32Array=function Q(v){return"Uint32Array"===d(v)},k.isInt8Array=function H(v){return"Int8Array"===d(v)},k.isInt16Array=function L(v){return"Int16Array"===d(v)},k.isInt32Array=function g(v){return"Int32Array"===d(v)},k.isFloat32Array=function R(v){return"Float32Array"===d(v)},k.isFloat64Array=function c(v){return"Float64Array"===d(v)},k.isBigInt64Array=function _(v){return"BigInt64Array"===d(v)},k.isBigUint64Array=function l(v){return"BigUint64Array"===d(v)},T.working=typeof Map<"u"&&T(new Map),k.isMap=function B(v){return!(typeof Map>"u")&&(T.working?T(v):v instanceof Map)},U.working=typeof Set<"u"&&U(new Set),k.isSet=function z(v){return!(typeof Set>"u")&&(U.working?U(v):v instanceof Set)},ae.working=typeof WeakMap<"u"&&ae(new WeakMap),k.isWeakMap=function pe(v){return!(typeof WeakMap>"u")&&(ae.working?ae(v):v instanceof WeakMap)},X.working=typeof WeakSet<"u"&&X(new WeakSet),k.isWeakSet=function he(v){return X(v)},oe.working=typeof ArrayBuffer<"u"&&oe(new ArrayBuffer),k.isArrayBuffer=K,Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1)),k.isDataView=ne;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function A(v){return"[object SharedArrayBuffer]"===e(v)}function b(v){return!(typeof $>"u")&&(typeof A.working>"u"&&(A.working=A(new $)),A.working?A(v):v instanceof $)}function _e(v){return I(v,i)}function me(v){return I(v,s)}function Re(v){return I(v,h)}function De(v){return a&&I(v,y)}function Me(v){return u&&I(v,m)}k.isSharedArrayBuffer=b,k.isAsyncFunction=function x(v){return"[object AsyncFunction]"===e(v)},k.isMapIterator=function N(v){return"[object Map Iterator]"===e(v)},k.isSetIterator=function q(v){return"[object Set Iterator]"===e(v)},k.isGeneratorObject=function ee(v){return"[object Generator]"===e(v)},k.isWebAssemblyCompiledModule=function ue(v){return"[object WebAssembly.Module]"===e(v)},k.isNumberObject=_e,k.isStringObject=me,k.isBooleanObject=Re,k.isBigIntObject=De,k.isSymbolObject=Me,k.isBoxedPrimitive=function ie(v){return _e(v)||me(v)||Re(v)||De(v)||Me(v)},k.isAnyArrayBuffer=function V(v){return typeof Uint8Array<"u"&&(K(v)||b(v))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(v){Object.defineProperty(k,v,{enumerable:!1,value:function(){throw new Error(v+" is not supported in userland")}})})},29296:(ce,k,p)=>{var t=Object.getOwnPropertyDescriptors||function(ne){for(var $=Object.keys(ne),A={},b=0;b<$.length;b++)A[$[b]]=Object.getOwnPropertyDescriptor(ne,$[b]);return A},w=/%[sdj%]/g;k.format=function(Y){if(!H(Y)){for(var ne=[],$=0;$<arguments.length;$++)ne.push(a(arguments[$]));return ne.join(" ")}$=1;for(var A=arguments,b=A.length,x=String(Y).replace(w,function(q){if("%%"===q)return"%";if($>=b)return q;switch(q){case"%s":return String(A[$++]);case"%d":return Number(A[$++]);case"%j":try{return JSON.stringify(A[$++])}catch{return"[Circular]"}default:return q}}),N=A[$];$<b;N=A[++$])D(N)||!c(N)?x+=" "+N:x+=" "+a(N);return x},k.deprecate=function(Y,ne){if(typeof process<"u"&&!0===process.noDeprecation)return Y;if(typeof process>"u")return function(){return k.deprecate(Y,ne).apply(this,arguments)};var $=!1;return function A(){if(!$){if(process.throwDeprecation)throw new Error(ne);process.traceDeprecation?console.trace(ne):console.error(ne),$=!0}return Y.apply(this,arguments)}};var d={},r=/^$/;if(process.env.NODE_DEBUG){var n=process.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),r=new RegExp("^"+n+"$","i")}function a(Y,ne){var $={seen:[],stylize:e};return arguments.length>=3&&($.depth=arguments[2]),arguments.length>=4&&($.colors=arguments[3]),C(ne)?$.showHidden=ne:ne&&k._extend($,ne),g($.showHidden)&&($.showHidden=!1),g($.depth)&&($.depth=2),g($.colors)&&($.colors=!1),g($.customInspect)&&($.customInspect=!0),$.colors&&($.stylize=u),s($,Y,$.depth)}function u(Y,ne){var $=a.styles[ne];return $?"\x1b["+a.colors[$][0]+"m"+Y+"\x1b["+a.colors[$][1]+"m":Y}function e(Y,ne){return Y}function s(Y,ne,$){if(Y.customInspect&&ne&&T(ne.inspect)&&ne.inspect!==k.inspect&&(!ne.constructor||ne.constructor.prototype!==ne)){var A=ne.inspect($,Y);return H(A)||(A=s(Y,A,$)),A}var b=function h(Y,ne){if(g(ne))return Y.stylize("undefined","undefined");if(H(ne)){var $="'"+JSON.stringify(ne).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Y.stylize($,"string")}return Q(ne)?Y.stylize(""+ne,"number"):C(ne)?Y.stylize(""+ne,"boolean"):D(ne)?Y.stylize("null","null"):void 0}(Y,ne);if(b)return b;var x=Object.keys(ne),N=function i(Y){var ne={};return Y.forEach(function($,A){ne[$]=!0}),ne}(x);if(Y.showHidden&&(x=Object.getOwnPropertyNames(ne)),l(ne)&&(x.indexOf("message")>=0||x.indexOf("description")>=0))return y(ne);if(0===x.length){if(T(ne))return Y.stylize("[Function"+(ne.name?": "+ne.name:"")+"]","special");if(R(ne))return Y.stylize(RegExp.prototype.toString.call(ne),"regexp");if(_(ne))return Y.stylize(Date.prototype.toString.call(ne),"date");if(l(ne))return y(ne)}var Re,ee="",ue=!1,_e=["{","}"];return P(ne)&&(ue=!0,_e=["[","]"]),T(ne)&&(ee=" [Function"+(ne.name?": "+ne.name:"")+"]"),R(ne)&&(ee=" "+RegExp.prototype.toString.call(ne)),_(ne)&&(ee=" "+Date.prototype.toUTCString.call(ne)),l(ne)&&(ee=" "+y(ne)),0!==x.length||ue&&0!=ne.length?$<0?R(ne)?Y.stylize(RegExp.prototype.toString.call(ne),"regexp"):Y.stylize("[Object]","special"):(Y.seen.push(ne),Re=ue?function m(Y,ne,$,A,b){for(var x=[],N=0,q=ne.length;N<q;++N)X(ne,String(N))?x.push(I(Y,ne,$,A,String(N),!0)):x.push("");return b.forEach(function(ee){ee.match(/^\d+$/)||x.push(I(Y,ne,$,A,ee,!0))}),x}(Y,ne,$,N,x):x.map(function(De){return I(Y,ne,$,N,De,ue)}),Y.seen.pop(),function M(Y,ne,$){var b=Y.reduce(function(x,N){return N.indexOf("\n"),x+N.replace(/\u001b\[\d\d?m/g,"").length+1},0);return b>60?$[0]+(""===ne?"":ne+"\n ")+" "+Y.join(",\n ")+" "+$[1]:$[0]+ne+" "+Y.join(", ")+" "+$[1]}(Re,ee,_e)):_e[0]+ee+_e[1]}function y(Y){return"["+Error.prototype.toString.call(Y)+"]"}function I(Y,ne,$,A,b,x){var N,q,ee;if((ee=Object.getOwnPropertyDescriptor(ne,b)||{value:ne[b]}).get?q=Y.stylize(ee.set?"[Getter/Setter]":"[Getter]","special"):ee.set&&(q=Y.stylize("[Setter]","special")),X(A,b)||(N="["+b+"]"),q||(Y.seen.indexOf(ee.value)<0?(q=D($)?s(Y,ee.value,null):s(Y,ee.value,$-1)).indexOf("\n")>-1&&(q=x?q.split("\n").map(function(ue){return" "+ue}).join("\n").substr(2):"\n"+q.split("\n").map(function(ue){return" "+ue}).join("\n")):q=Y.stylize("[Circular]","special")),g(N)){if(x&&b.match(/^\d+$/))return q;(N=JSON.stringify(""+b)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(N=N.substr(1,N.length-2),N=Y.stylize(N,"name")):(N=N.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),N=Y.stylize(N,"string"))}return N+": "+q}function P(Y){return Array.isArray(Y)}function C(Y){return"boolean"==typeof Y}function D(Y){return null===Y}function Q(Y){return"number"==typeof Y}function H(Y){return"string"==typeof Y}function g(Y){return void 0===Y}function R(Y){return c(Y)&&"[object RegExp]"===U(Y)}function c(Y){return"object"==typeof Y&&null!==Y}function _(Y){return c(Y)&&"[object Date]"===U(Y)}function l(Y){return c(Y)&&("[object Error]"===U(Y)||Y instanceof Error)}function T(Y){return"function"==typeof Y}function U(Y){return Object.prototype.toString.call(Y)}function z(Y){return Y<10?"0"+Y.toString(10):Y.toString(10)}k.debuglog=function(Y){if(Y=Y.toUpperCase(),!d[Y])if(r.test(Y)){var ne=process.pid;d[Y]=function(){var $=k.format.apply(k,arguments);console.error("%s %d: %s",Y,ne,$)}}else d[Y]=function(){};return d[Y]},k.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},k.types=p(21960),k.isArray=P,k.isBoolean=C,k.isNull=D,k.isNullOrUndefined=function W(Y){return null==Y},k.isNumber=Q,k.isString=H,k.isSymbol=function L(Y){return"symbol"==typeof Y},k.isUndefined=g,k.isRegExp=R,k.types.isRegExp=R,k.isObject=c,k.isDate=_,k.types.isDate=_,k.isError=l,k.types.isNativeError=l,k.isFunction=T,k.isPrimitive=function B(Y){return null===Y||"boolean"==typeof Y||"number"==typeof Y||"string"==typeof Y||"symbol"==typeof Y||typeof Y>"u"},k.isBuffer=p(90002);var ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(Y,ne){return Object.prototype.hasOwnProperty.call(Y,ne)}k.log=function(){console.log("%s - %s",function pe(){var Y=new Date,ne=[z(Y.getHours()),z(Y.getMinutes()),z(Y.getSeconds())].join(":");return[Y.getDate(),ae[Y.getMonth()],ne].join(" ")}(),k.format.apply(k,arguments))},k.inherits=p(23819),k._extend=function(Y,ne){if(!ne||!c(ne))return Y;for(var $=Object.keys(ne),A=$.length;A--;)Y[$[A]]=ne[$[A]];return Y};var he=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function oe(Y,ne){if(!Y){var $=new Error("Promise was rejected with a falsy value");$.reason=Y,Y=$}return ne(Y)}k.promisify=function(ne){if("function"!=typeof ne)throw new TypeError('The "original" argument must be of type Function');if(he&&ne[he]){var $;if("function"!=typeof($=ne[he]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty($,he,{value:$,enumerable:!1,writable:!1,configurable:!0}),$}function $(){for(var A,b,x=new Promise(function(ee,ue){A=ee,b=ue}),N=[],q=0;q<arguments.length;q++)N.push(arguments[q]);N.push(function(ee,ue){ee?b(ee):A(ue)});try{ne.apply(this,N)}catch(ee){b(ee)}return x}return Object.setPrototypeOf($,Object.getPrototypeOf(ne)),he&&Object.defineProperty($,he,{value:$,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties($,t(ne))},k.promisify.custom=he,k.callbackify=function K(Y){if("function"!=typeof Y)throw new TypeError('The "original" argument must be of type Function');function ne(){for(var $=[],A=0;A<arguments.length;A++)$.push(arguments[A]);var b=$.pop();if("function"!=typeof b)throw new TypeError("The last argument must be of type Function");var x=this,N=function(){return b.apply(x,arguments)};Y.apply(this,$).then(function(q){process.nextTick(N.bind(null,null,q))},function(q){process.nextTick(oe.bind(null,q,N))})}return Object.setPrototypeOf(ne,Object.getPrototypeOf(Y)),Object.defineProperties(ne,t(Y)),ne}},76392:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{NIL:()=>Y,parse:()=>h,stringify:()=>w.Z,v1:()=>e,v3:()=>U,v4:()=>z.Z,v5:()=>K,validate:()=>i.Z,version:()=>$});var d,r,t=p(68428),w=p(81398),n=0,a=0;const e=function u(A,b,x){var N=b&&x||0,q=b||new Array(16),ee=(A=A||{}).node||d,ue=void 0!==A.clockseq?A.clockseq:r;if(null==ee||null==ue){var _e=A.random||(A.rng||t.Z)();null==ee&&(ee=d=[1|_e[0],_e[1],_e[2],_e[3],_e[4],_e[5]]),null==ue&&(ue=r=16383&(_e[6]<<8|_e[7]))}var me=void 0!==A.msecs?A.msecs:Date.now(),Re=void 0!==A.nsecs?A.nsecs:a+1,De=me-n+(Re-a)/1e4;if(De<0&&void 0===A.clockseq&&(ue=ue+1&16383),(De<0||me>n)&&void 0===A.nsecs&&(Re=0),Re>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");n=me,a=Re,r=ue;var Me=(1e4*(268435455&(me+=122192928e5))+Re)%4294967296;q[N++]=Me>>>24&255,q[N++]=Me>>>16&255,q[N++]=Me>>>8&255,q[N++]=255&Me;var ie=me/4294967296*1e4&268435455;q[N++]=ie>>>8&255,q[N++]=255&ie,q[N++]=ie>>>24&15|16,q[N++]=ie>>>16&255,q[N++]=ue>>>8|128,q[N++]=255&ue;for(var V=0;V<6;++V)q[N+V]=ee[V];return b||(0,w.Z)(q)};var i=p(12255);const h=function s(A){if(!(0,i.Z)(A))throw TypeError("Invalid UUID");var b,x=new Uint8Array(16);return x[0]=(b=parseInt(A.slice(0,8),16))>>>24,x[1]=b>>>16&255,x[2]=b>>>8&255,x[3]=255&b,x[4]=(b=parseInt(A.slice(9,13),16))>>>8,x[5]=255&b,x[6]=(b=parseInt(A.slice(14,18),16))>>>8,x[7]=255&b,x[8]=(b=parseInt(A.slice(19,23),16))>>>8,x[9]=255&b,x[10]=(b=parseInt(A.slice(24,36),16))/1099511627776&255,x[11]=b/4294967296&255,x[12]=b>>>24&255,x[13]=b>>>16&255,x[14]=b>>>8&255,x[15]=255&b,x};var m="6ba7b810-9dad-11d1-80b4-00c04fd430c8",I="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function M(A,b,x){function N(q,ee,ue,_e){if("string"==typeof q&&(q=function y(A){A=unescape(encodeURIComponent(A));for(var b=[],x=0;x<A.length;++x)b.push(A.charCodeAt(x));return b}(q)),"string"==typeof ee&&(ee=h(ee)),16!==ee.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var me=new Uint8Array(16+q.length);if(me.set(ee),me.set(q,ee.length),(me=x(me))[6]=15&me[6]|b,me[8]=63&me[8]|128,ue){_e=_e||0;for(var Re=0;Re<16;++Re)ue[_e+Re]=me[Re];return ue}return(0,w.Z)(me)}try{N.name=A}catch{}return N.DNS=m,N.URL=I,N}function D(A){return 14+(A+64>>>9<<4)+1}function H(A,b){var x=(65535&A)+(65535&b);return(A>>16)+(b>>16)+(x>>16)<<16|65535&x}function g(A,b,x,N,q,ee){return H(function L(A,b){return A<<b|A>>>32-b}(H(H(b,A),H(N,ee)),q),x)}function R(A,b,x,N,q,ee,ue){return g(b&x|~b&N,A,b,q,ee,ue)}function c(A,b,x,N,q,ee,ue){return g(b&N|x&~N,A,b,q,ee,ue)}function _(A,b,x,N,q,ee,ue){return g(b^x^N,A,b,q,ee,ue)}function l(A,b,x,N,q,ee,ue){return g(x^(b|~N),A,b,q,ee,ue)}const U=M("v3",48,function P(A){if("string"==typeof A){var b=unescape(encodeURIComponent(A));A=new Uint8Array(b.length);for(var x=0;x<b.length;++x)A[x]=b.charCodeAt(x)}return function C(A){for(var b=[],x=32*A.length,N="0123456789abcdef",q=0;q<x;q+=8){var ee=A[q>>5]>>>q%32&255,ue=parseInt(N.charAt(ee>>>4&15)+N.charAt(15&ee),16);b.push(ue)}return b}(function W(A,b){A[b>>5]|=128<<b%32,A[D(b)-1]=b;for(var x=1732584193,N=-271733879,q=-1732584194,ee=271733878,ue=0;ue<A.length;ue+=16){var _e=x,me=N,Re=q,De=ee;x=R(x,N,q,ee,A[ue],7,-680876936),ee=R(ee,x,N,q,A[ue+1],12,-389564586),q=R(q,ee,x,N,A[ue+2],17,606105819),N=R(N,q,ee,x,A[ue+3],22,-1044525330),x=R(x,N,q,ee,A[ue+4],7,-176418897),ee=R(ee,x,N,q,A[ue+5],12,1200080426),q=R(q,ee,x,N,A[ue+6],17,-1473231341),N=R(N,q,ee,x,A[ue+7],22,-45705983),x=R(x,N,q,ee,A[ue+8],7,1770035416),ee=R(ee,x,N,q,A[ue+9],12,-1958414417),q=R(q,ee,x,N,A[ue+10],17,-42063),N=R(N,q,ee,x,A[ue+11],22,-1990404162),x=R(x,N,q,ee,A[ue+12],7,1804603682),ee=R(ee,x,N,q,A[ue+13],12,-40341101),q=R(q,ee,x,N,A[ue+14],17,-1502002290),x=c(x,N=R(N,q,ee,x,A[ue+15],22,1236535329),q,ee,A[ue+1],5,-165796510),ee=c(ee,x,N,q,A[ue+6],9,-1069501632),q=c(q,ee,x,N,A[ue+11],14,643717713),N=c(N,q,ee,x,A[ue],20,-373897302),x=c(x,N,q,ee,A[ue+5],5,-701558691),ee=c(ee,x,N,q,A[ue+10],9,38016083),q=c(q,ee,x,N,A[ue+15],14,-660478335),N=c(N,q,ee,x,A[ue+4],20,-405537848),x=c(x,N,q,ee,A[ue+9],5,568446438),ee=c(ee,x,N,q,A[ue+14],9,-1019803690),q=c(q,ee,x,N,A[ue+3],14,-187363961),N=c(N,q,ee,x,A[ue+8],20,1163531501),x=c(x,N,q,ee,A[ue+13],5,-1444681467),ee=c(ee,x,N,q,A[ue+2],9,-51403784),q=c(q,ee,x,N,A[ue+7],14,1735328473),x=_(x,N=c(N,q,ee,x,A[ue+12],20,-1926607734),q,ee,A[ue+5],4,-378558),ee=_(ee,x,N,q,A[ue+8],11,-2022574463),q=_(q,ee,x,N,A[ue+11],16,1839030562),N=_(N,q,ee,x,A[ue+14],23,-35309556),x=_(x,N,q,ee,A[ue+1],4,-1530992060),ee=_(ee,x,N,q,A[ue+4],11,1272893353),q=_(q,ee,x,N,A[ue+7],16,-155497632),N=_(N,q,ee,x,A[ue+10],23,-1094730640),x=_(x,N,q,ee,A[ue+13],4,681279174),ee=_(ee,x,N,q,A[ue],11,-358537222),q=_(q,ee,x,N,A[ue+3],16,-722521979),N=_(N,q,ee,x,A[ue+6],23,76029189),x=_(x,N,q,ee,A[ue+9],4,-640364487),ee=_(ee,x,N,q,A[ue+12],11,-421815835),q=_(q,ee,x,N,A[ue+15],16,530742520),x=l(x,N=_(N,q,ee,x,A[ue+2],23,-995338651),q,ee,A[ue],6,-198630844),ee=l(ee,x,N,q,A[ue+7],10,1126891415),q=l(q,ee,x,N,A[ue+14],15,-1416354905),N=l(N,q,ee,x,A[ue+5],21,-57434055),x=l(x,N,q,ee,A[ue+12],6,1700485571),ee=l(ee,x,N,q,A[ue+3],10,-1894986606),q=l(q,ee,x,N,A[ue+10],15,-1051523),N=l(N,q,ee,x,A[ue+1],21,-2054922799),x=l(x,N,q,ee,A[ue+8],6,1873313359),ee=l(ee,x,N,q,A[ue+15],10,-30611744),q=l(q,ee,x,N,A[ue+6],15,-1560198380),N=l(N,q,ee,x,A[ue+13],21,1309151649),x=l(x,N,q,ee,A[ue+4],6,-145523070),ee=l(ee,x,N,q,A[ue+11],10,-1120210379),q=l(q,ee,x,N,A[ue+2],15,718787259),N=l(N,q,ee,x,A[ue+9],21,-343485551),x=H(x,_e),N=H(N,me),q=H(q,Re),ee=H(ee,De)}return[x,N,q,ee]}(function Q(A){if(0===A.length)return[];for(var b=8*A.length,x=new Uint32Array(D(b)),N=0;N<b;N+=8)x[N>>5]|=(255&A[N/8])<<N%32;return x}(A),8*A.length))});var z=p(73726);function ae(A,b,x,N){switch(A){case 0:return b&x^~b&N;case 1:case 3:return b^x^N;case 2:return b&x^b&N^x&N}}function pe(A,b){return A<<b|A>>>32-b}const K=M("v5",80,function X(A){var b=[1518500249,1859775393,2400959708,3395469782],x=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof A){var N=unescape(encodeURIComponent(A));A=[];for(var q=0;q<N.length;++q)A.push(N.charCodeAt(q))}else Array.isArray(A)||(A=Array.prototype.slice.call(A));A.push(128);for(var ue=Math.ceil((A.length/4+2)/16),_e=new Array(ue),me=0;me<ue;++me){for(var Re=new Uint32Array(16),De=0;De<16;++De)Re[De]=A[64*me+4*De]<<24|A[64*me+4*De+1]<<16|A[64*me+4*De+2]<<8|A[64*me+4*De+3];_e[me]=Re}_e[ue-1][14]=8*(A.length-1)/Math.pow(2,32),_e[ue-1][14]=Math.floor(_e[ue-1][14]),_e[ue-1][15]=8*(A.length-1)&4294967295;for(var Me=0;Me<ue;++Me){for(var ie=new Uint32Array(80),V=0;V<16;++V)ie[V]=_e[Me][V];for(var v=16;v<80;++v)ie[v]=pe(ie[v-3]^ie[v-8]^ie[v-14]^ie[v-16],1);for(var O=x[0],F=x[1],re=x[2],ve=x[3],xe=x[4],Te=0;Te<80;++Te){var te=Math.floor(Te/20),de=pe(O,5)+ae(te,F,re,ve)+xe+b[te]+ie[Te]>>>0;xe=ve,ve=re,re=pe(F,30)>>>0,F=O,O=de}x[0]=x[0]+O>>>0,x[1]=x[1]+F>>>0,x[2]=x[2]+re>>>0,x[3]=x[3]+ve>>>0,x[4]=x[4]+xe>>>0}return[x[0]>>24&255,x[0]>>16&255,x[0]>>8&255,255&x[0],x[1]>>24&255,x[1]>>16&255,x[1]>>8&255,255&x[1],x[2]>>24&255,x[2]>>16&255,x[2]>>8&255,255&x[2],x[3]>>24&255,x[3]>>16&255,x[3]>>8&255,255&x[3],x[4]>>24&255,x[4]>>16&255,x[4]>>8&255,255&x[4]]}),Y="00000000-0000-0000-0000-000000000000",$=function ne(A){if(!(0,i.Z)(A))throw TypeError("Invalid UUID");return parseInt(A.substr(14,1),16)}},20274:(ce,k,p)=>{ce.exports=p(65807).Observable},65807:(ce,k)=>{"use strict";function t(g,R){if(!(g instanceof R))throw new TypeError("Cannot call a class as a function")}function w(g,R){for(var c=0;c<R.length;c++){var _=R[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(g,_.key,_)}}function d(g,R,c){return R&&w(g.prototype,R),c&&w(g,c),g}k.Observable=void 0;var r=function(){return"function"==typeof Symbol},n=function(g){return r()&&Boolean(Symbol[g])},a=function(g){return n(g)?Symbol[g]:"@@"+g};r()&&!n("observable")&&(Symbol.observable=Symbol("observable"));var u=a("iterator"),e=a("observable"),i=a("species");function s(g,R){var c=g[R];if(null!=c){if("function"!=typeof c)throw new TypeError(c+" is not a function");return c}}function h(g){var R=g.constructor;return void 0!==R&&null===(R=R[i])&&(R=void 0),void 0!==R?R:L}function m(g){m.log?m.log(g):setTimeout(function(){throw g})}function I(g){Promise.resolve().then(function(){try{g()}catch(R){m(R)}})}function M(g){var R=g._cleanup;if(void 0!==R&&(g._cleanup=void 0,R))try{if("function"==typeof R)R();else{var c=s(R,"unsubscribe");c&&c.call(R)}}catch(_){m(_)}}function P(g){g._observer=void 0,g._queue=void 0,g._state="closed"}function D(g,R,c){g._state="running";var _=g._observer;try{var l=s(_,R);switch(R){case"next":l&&l.call(_,c);break;case"error":if(P(g),!l)throw c;l.call(_,c);break;case"complete":P(g),l&&l.call(_)}}catch(T){m(T)}"closed"===g._state?M(g):"running"===g._state&&(g._state="ready")}function W(g,R,c){if("closed"!==g._state){if("buffering"===g._state)return void g._queue.push({type:R,value:c});if("ready"!==g._state)return g._state="buffering",g._queue=[{type:R,value:c}],void I(function(){return function C(g){var R=g._queue;if(R){g._queue=void 0,g._state="ready";for(var c=0;c<R.length&&(D(g,R[c].type,R[c].value),"closed"!==g._state);++c);}}(g)});D(g,R,c)}}var Q=function(){function g(R,c){t(this,g),this._cleanup=void 0,this._observer=R,this._queue=void 0,this._state="initializing";var _=new H(this);try{this._cleanup=c.call(void 0,_)}catch(l){_.error(l)}"initializing"===this._state&&(this._state="ready")}return d(g,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(P(this),M(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),g}(),H=function(){function g(R){t(this,g),this._subscription=R}return d(g,[{key:"next",value:function(c){W(this._subscription,"next",c)}},{key:"error",value:function(c){W(this._subscription,"error",c)}},{key:"complete",value:function(){W(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),g}(),L=function(){function g(R){if(t(this,g),!(this instanceof g))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 d(g,[{key:"subscribe",value:function(c){return("object"!=typeof c||null===c)&&(c={next:c,error:arguments[1],complete:arguments[2]}),new Q(c,this._subscriber)}},{key:"forEach",value:function(c){var _=this;return new Promise(function(l,T){if("function"==typeof c)var U=_.subscribe({next:function(z){try{c(z,B)}catch(ae){T(ae),U.unsubscribe()}},error:T,complete:l});else T(new TypeError(c+" is not a function"));function B(){U.unsubscribe(),l()}})}},{key:"map",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(h(this))(function(T){return _.subscribe({next:function(B){try{B=c(B)}catch(U){return T.error(U)}T.next(B)},error:function(B){T.error(B)},complete:function(){T.complete()}})})}},{key:"filter",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(h(this))(function(T){return _.subscribe({next:function(B){try{if(!c(B))return}catch(U){return T.error(U)}T.next(B)},error:function(B){T.error(B)},complete:function(){T.complete()}})})}},{key:"reduce",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var l=h(this),T=arguments.length>1,B=!1,z=arguments[1];return new l(function(ae){return _.subscribe({next:function(pe){var X=!B;if(B=!0,!X||T)try{z=c(z,pe)}catch(he){return ae.error(he)}else z=pe},error:function(pe){ae.error(pe)},complete:function(){if(!B&&!T)return ae.error(new TypeError("Cannot reduce an empty sequence"));ae.next(z),ae.complete()}})})}},{key:"concat",value:function(){for(var c=this,_=arguments.length,l=new Array(_),T=0;T<_;T++)l[T]=arguments[T];var B=h(this);return new B(function(U){var z,ae=0;return function pe(X){z=X.subscribe({next:function(he){U.next(he)},error:function(he){U.error(he)},complete:function(){ae===l.length?(z=void 0,U.complete()):pe(B.from(l[ae++]))}})}(c),function(){z&&(z.unsubscribe(),z=void 0)}})}},{key:"flatMap",value:function(c){var _=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var l=h(this);return new l(function(T){var B=[],U=_.subscribe({next:function(ae){if(c)try{ae=c(ae)}catch(X){return T.error(X)}var pe=l.from(ae).subscribe({next:function(X){T.next(X)},error:function(X){T.error(X)},complete:function(){var X=B.indexOf(pe);X>=0&&B.splice(X,1),z()}});B.push(pe)},error:function(ae){T.error(ae)},complete:function(){z()}});function z(){U.closed&&0===B.length&&T.complete()}return function(){B.forEach(function(ae){return ae.unsubscribe()}),U.unsubscribe()}})}},{key:e,value:function(){return this}}],[{key:"from",value:function(c){var _="function"==typeof this?this:g;if(null==c)throw new TypeError(c+" is not an object");var l=s(c,e);if(l){var T=l.call(c);if(Object(T)!==T)throw new TypeError(T+" is not an object");return function y(g){return g instanceof L}(T)&&T.constructor===_?T:new _(function(B){return T.subscribe(B)})}if(n("iterator")&&(l=s(c,u)))return new _(function(B){I(function(){if(!B.closed){var U=!0,z=!1,ae=void 0;try{for(var X,pe=l.call(c)[Symbol.iterator]();!(U=(X=pe.next()).done);U=!0)if(B.next(X.value),B.closed)return}catch(oe){z=!0,ae=oe}finally{try{!U&&null!=pe.return&&pe.return()}finally{if(z)throw ae}}B.complete()}})});if(Array.isArray(c))return new _(function(B){I(function(){if(!B.closed){for(var U=0;U<c.length;++U)if(B.next(c[U]),B.closed)return;B.complete()}})});throw new TypeError(c+" is not observable")}},{key:"of",value:function(){for(var c=arguments.length,_=new Array(c),l=0;l<c;l++)_[l]=arguments[l];return new("function"==typeof this?this:g)(function(B){I(function(){if(!B.closed){for(var U=0;U<_.length;++U)if(B.next(_[U]),B.closed)return;B.complete()}})})}},{key:i,get:function(){return this}}]),g}();k.Observable=L,r()&&Object.defineProperty(L,Symbol("extensions"),{value:{symbol:e,hostReportError:m},configurable:!0})},73625:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{AppSyncSubscriptionProvider:()=>s});var t=p(43588),w=p(62503),d=p(20908),r=p(47420),a=p(13374),u=p(28341),e=p(82479),i=p(49767);class s extends t.q{execute(y){const m=this.connectionParams.aws_appsync_graphqlEndpoint,I=this.connectionParams.aws_appsync_region,M={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},P=a.ApolloLink.from([(0,d.W9)({url:m,region:I,auth:M}),(0,r.createSubscriptionHandshakeLink)({url:m,region:I,auth:M})]),D=new u.f({link:P,cache:new e.h}).subscribe({query:(0,i.Qc)(y.query),variables:y.variables});return new w.y(W=>{this.subscription=D.subscribe({next:(...Q)=>W.next(...Q),error:(...Q)=>W.error(...Q),complete:()=>W.complete()})})}close(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},73914:function(ce,k,p){"use strict";var D,t=this&&this.__extends||(D=function(W,Q){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,L){H.__proto__=L}||function(H,L){for(var g in L)L.hasOwnProperty(g)&&(H[g]=L[g])})(W,Q)},function(W,Q){function H(){this.constructor=W}D(W,Q),W.prototype=null===Q?Object.create(Q):(H.prototype=Q.prototype,new H)}),w=this&&this.__assign||function(){return w=Object.assign||function(D){for(var W,Q=1,H=arguments.length;Q<H;Q++)for(var L in W=arguments[Q])Object.prototype.hasOwnProperty.call(W,L)&&(D[L]=W[L]);return D},w.apply(this,arguments)},d=this&&this.__awaiter||function(D,W,Q,H){return new(Q||(Q=Promise))(function(g,R){function c(T){try{l(H.next(T))}catch(B){R(B)}}function _(T){try{l(H.throw(T))}catch(B){R(B)}}function l(T){T.done?g(T.value):function L(g){return g instanceof Q?g:new Q(function(R){R(g)})}(T.value).then(c,_)}l((H=H.apply(D,W||[])).next())})},r=this&&this.__generator||function(D,W){var H,L,g,R,Q={label:0,sent:function(){if(1&g[0])throw g[1];return g[1]},trys:[],ops:[]};return R={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(R[Symbol.iterator]=function(){return this}),R;function c(l){return function(T){return function _(l){if(H)throw new TypeError("Generator is already executing.");for(;Q;)try{if(H=1,L&&(g=2&l[0]?L.return:l[0]?L.throw||((g=L.return)&&g.call(L),0):L.next)&&!(g=g.call(L,l[1])).done)return g;switch(L=0,g&&(l=[2&l[0],g.value]),l[0]){case 0:case 1:g=l;break;case 4:return Q.label++,{value:l[1],done:!1};case 5:Q.label++,L=l[1],l=[0];continue;case 7:l=Q.ops.pop(),Q.trys.pop();continue;default:if(!(g=(g=Q.trys).length>0&&g[g.length-1])&&(6===l[0]||2===l[0])){Q=0;continue}if(3===l[0]&&(!g||l[1]>g[0]&&l[1]<g[3])){Q.label=l[1];break}if(6===l[0]&&Q.label<g[1]){Q.label=g[1],g=l;break}if(g&&Q.label<g[2]){Q.label=g[2],Q.ops.push(l);break}g[2]&&Q.ops.pop(),Q.trys.pop();continue}l=W.call(D,Q)}catch(T){l=[6,T],L=0}finally{H=g=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,T])}}};Object.defineProperty(k,"__esModule",{value:!0});var y,n=p(79418),a=p(94140),u=p(84871),e=p(87317),i=p(96522),s=p(44226);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+s.version+(i.userAgent&&" ")+i.userAgent,function(D){D.NONE="NONE",D.API_KEY="API_KEY",D.AWS_IAM="AWS_IAM",D.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",D.OPENID_CONNECT="OPENID_CONNECT"}(y=k.AUTH_TYPE||(k.AUTH_TYPE={}));var m=function(D){function W(Q){var H=D.call(this)||this;return H.link=k.authLink(Q),H}return t(W,D),W.prototype.request=function(Q,H){return this.link.request(Q,H)},W}(n.ApolloLink);k.AuthLink=m;var I=function(D,W,Q){var H=void 0===D?{header:"",value:""}:D,L=H.header,g=H.value;return d(void 0,void 0,void 0,function(){var R,c,l,T,B;return r(this,function(U){switch(U.label){case 0:return R=W.getContext(),c=w(w({},R.headers),((T={})[k.USER_AGENT_HEADER]=k.USER_AGENT,T)),L&&g?"function"!=typeof g?[3,2]:[4,g.call(void 0)]:[3,5];case 1:return l=U.sent(),[3,4];case 2:return[4,g];case 3:l=U.sent(),U.label=4;case 4:c=w(((B={})[L]=l,B),c),U.label=5;case 5:return W.setContext(w(w({},R),{headers:c})),[2,Q(W)]}})})};k.authLink=function(D){var W=D.url,Q=D.region,H=D.auth,L=(void 0===H?{}:H).type,g=D.auth;return new n.ApolloLink(function(R,c){return new n.Observable(function(_){var l,T;switch(L){case y.NONE:T=I(void 0,R,c);break;case y.AWS_IAM:var B=g.credentials;T=function(D,W,Q){var H=D.credentials,L=D.region,g=D.url;return d(void 0,void 0,void 0,function(){var R,c,_,l,T,B,U,z,ae,pe,X,he,oe;return r(this,function(K){switch(K.label){case 0:return R="appsync",c=W.getContext(),(_="function"==typeof H?H.call():H||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:K.sent(),K.label=2;case 2:return[4,_];case 3:return l=K.sent(),T=l.accessKeyId,B=l.secretAccessKey,U=l.sessionToken,z=e.parse(g),ae=z.host,pe=z.path,X=w(w({},P(W,{})),{service:R,region:L,url:g,host:ae,path:pe}),he=u.Signer.sign(X,{access_key:T,secret_key:B,session_token:U}).headers,W.setContext(w(w({},c),{headers:w(w(w({},c.headers),he),(oe={},oe[k.USER_AGENT_HEADER]=k.USER_AGENT,oe))})),[2,Q(W)]}})})}({credentials:void 0===B?{}:B,region:Q,url:W},R,c);break;case y.API_KEY:var z=g.apiKey;T=I({header:"X-Api-Key",value:void 0===z?"":z},R,c);break;case y.AMAZON_COGNITO_USER_POOLS:case y.OPENID_CONNECT:var pe=g.jwtToken;T=I({header:"Authorization",value:void 0===pe?"":pe},R,c);break;default:throw new Error("Invalid AUTH_TYPE: "+g.type)}return T.then(function(oe){l=oe.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){l&&l.unsubscribe()}})})};var P=function(D,W){var L=D.query,g={operationName:D.operationName,variables:C(D.variables),query:a.print(L)};return w(w({body:JSON.stringify(g),method:"POST"},W),{headers:w({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},C=function(D){return Object.keys(D).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,Q){return W[Q]=D[Q],W},{})}},20908:(ce,k,p)=>{"use strict";var w=p(73914);k.W9=function(r){return new w.AuthLink({url:r.url,region:r.region,auth:r.auth})},p(84871)},96522:(ce,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},84871:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function t(w){for(var d in w)k.hasOwnProperty(d)||(k[d]=w[d])}(p(90758))},90758:(ce,k,p)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),global.Buffer=global.Buffer||p(9333).lW;var t=p(87317),w=p(67811).util.crypto,d=function(P,C,D){return void 0===D&&(D=""),w.lib.createHmac("sha256",P).update(C,"utf8").digest(D)},r=function(P){return P=P||"",w.createHash("sha256").update(P,"utf8").digest("hex")},n=function(P){return P&&0!==Object.keys(P).length?Object.keys(P).map(function(C){return{key:C.toLowerCase(),value:P[C]?P[C].trim().replace(/\s+/g," "):""}}).sort(function(C,D){return C.key<D.key?-1:1}).map(function(C){return C.key+":"+C.value}).join("\n")+"\n":""},a=function(P){return Object.keys(P).map(function(C){return C.toLowerCase()}).sort().join(";")},I=function(P,C,D){void 0===D&&(D=null),P.headers=P.headers||{};var Q=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),H=Q.substr(0,8),L="AWS4-HMAC-SHA256",g=t.parse(P.url);P.headers.host=g.host,P.headers["x-amz-date"]=Q,C.session_token&&(P.headers["X-Amz-Security-Token"]=C.session_token);var R=function(P){var C=t.parse(P.url);return[P.method||"/",C.path,C.query,n(P.headers),a(P.headers),r(P.body)].join("\n")}(P);D=D||function(P){var Q=(t.parse(P.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===Q[1]&&(Q=Q.reverse()),{service:P.service||Q[0],region:P.region||Q[1]}}(P);var c=function(P,C,D){return[P,C,D,"aws4_request"].join("/")}(H,D.region,D.service),_=function(P,C,D,W){return[P,D,W,r(C)].join("\n")}(L,R,Q,c),l=function(P,C,D){void 0===P&&(P="");var Q=d("AWS4"+P,C),H=d(Q,D.region),L=d(H,D.service);return d(L,"aws4_request")}(C.secret_key,H,D),T=function(P,C){return d(P,C,"hex")}(l,_),B=function(P,C,D,W,Q){return void 0===C&&(C=""),[P+" Credential="+C+"/"+D,"SignedHeaders="+W,"Signature="+Q].join(", ")}(L,C.access_key,c,a(P.headers),T);return P.headers.Authorization=B,P},M=function(){function P(){}return P.sign=I,P}();k.Signer=M,k.default=M},60162:(ce,k,p)=>{"use strict";p.d(k,{Jh:()=>i,ZT:()=>w,_T:()=>r,mG:()=>e,pi:()=>d,pr:()=>I});var t=function(L,g){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,c){R.__proto__=c}||function(R,c){for(var _ in c)c.hasOwnProperty(_)&&(R[_]=c[_])})(L,g)};function w(L,g){function R(){this.constructor=L}t(L,g),L.prototype=null===g?Object.create(g):(R.prototype=g.prototype,new R)}var d=function(){return d=Object.assign||function(g){for(var R,c=1,_=arguments.length;c<_;c++)for(var l in R=arguments[c])Object.prototype.hasOwnProperty.call(R,l)&&(g[l]=R[l]);return g},d.apply(this,arguments)};function r(L,g){var R={};for(var c in L)Object.prototype.hasOwnProperty.call(L,c)&&g.indexOf(c)<0&&(R[c]=L[c]);if(null!=L&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(c=Object.getOwnPropertySymbols(L);_<c.length;_++)g.indexOf(c[_])<0&&Object.prototype.propertyIsEnumerable.call(L,c[_])&&(R[c[_]]=L[c[_]])}return R}function e(L,g,R,c){return new(R||(R=Promise))(function(_,l){function T(z){try{U(c.next(z))}catch(ae){l(ae)}}function B(z){try{U(c.throw(z))}catch(ae){l(ae)}}function U(z){z.done?_(z.value):new R(function(ae){ae(z.value)}).then(T,B)}U((c=c.apply(L,g||[])).next())})}function i(L,g){var c,_,l,T,R={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return T={next:B(0),throw:B(1),return:B(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function B(z){return function(ae){return function U(z){if(c)throw new TypeError("Generator is already executing.");for(;R;)try{if(c=1,_&&(l=2&z[0]?_.return:z[0]?_.throw||((l=_.return)&&l.call(_),0):_.next)&&!(l=l.call(_,z[1])).done)return l;switch(_=0,l&&(z=[2&z[0],l.value]),z[0]){case 0:case 1:l=z;break;case 4:return R.label++,{value:z[1],done:!1};case 5:R.label++,_=z[1],z=[0];continue;case 7:z=R.ops.pop(),R.trys.pop();continue;default:if(!(l=(l=R.trys).length>0&&l[l.length-1])&&(6===z[0]||2===z[0])){R=0;continue}if(3===z[0]&&(!l||z[1]>l[0]&&z[1]<l[3])){R.label=z[1];break}if(6===z[0]&&R.label<l[1]){R.label=l[1],l=z;break}if(l&&R.label<l[2]){R.label=l[2],R.ops.push(z);break}l[2]&&R.ops.pop(),R.trys.pop();continue}z=g.call(L,R)}catch(ae){z=[6,ae],_=0}finally{c=l=0}if(5&z[0])throw z[1];return{value:z[0]?z[1]:void 0,done:!0}}([z,ae])}}}function I(){for(var L=0,g=0,R=arguments.length;g<R;g++)L+=arguments[g].length;var c=Array(L),_=0;for(g=0;g<R;g++)for(var l=arguments[g],T=0,B=l.length;T<B;T++,_++)c[_]=l[T];return c}},91205:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{__assign:()=>d,__asyncDelegator:()=>D,__asyncGenerator:()=>C,__asyncValues:()=>W,__await:()=>P,__awaiter:()=>e,__classPrivateFieldGet:()=>g,__classPrivateFieldSet:()=>R,__createBinding:()=>s,__decorate:()=>n,__exportStar:()=>h,__extends:()=>w,__generator:()=>i,__importDefault:()=>L,__importStar:()=>H,__makeTemplateObject:()=>Q,__metadata:()=>u,__param:()=>a,__read:()=>m,__rest:()=>r,__spread:()=>I,__spreadArrays:()=>M,__values:()=>y});var t=function(c,_){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,T){l.__proto__=T}||function(l,T){for(var B in T)T.hasOwnProperty(B)&&(l[B]=T[B])})(c,_)};function w(c,_){function l(){this.constructor=c}t(c,_),c.prototype=null===_?Object.create(_):(l.prototype=_.prototype,new l)}var d=function(){return d=Object.assign||function(_){for(var l,T=1,B=arguments.length;T<B;T++)for(var U in l=arguments[T])Object.prototype.hasOwnProperty.call(l,U)&&(_[U]=l[U]);return _},d.apply(this,arguments)};function r(c,_){var l={};for(var T in c)Object.prototype.hasOwnProperty.call(c,T)&&_.indexOf(T)<0&&(l[T]=c[T]);if(null!=c&&"function"==typeof Object.getOwnPropertySymbols){var B=0;for(T=Object.getOwnPropertySymbols(c);B<T.length;B++)_.indexOf(T[B])<0&&Object.prototype.propertyIsEnumerable.call(c,T[B])&&(l[T[B]]=c[T[B]])}return l}function n(c,_,l,T){var z,B=arguments.length,U=B<3?_:null===T?T=Object.getOwnPropertyDescriptor(_,l):T;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)U=Reflect.decorate(c,_,l,T);else for(var ae=c.length-1;ae>=0;ae--)(z=c[ae])&&(U=(B<3?z(U):B>3?z(_,l,U):z(_,l))||U);return B>3&&U&&Object.defineProperty(_,l,U),U}function a(c,_){return function(l,T){_(l,T,c)}}function u(c,_){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(c,_)}function e(c,_,l,T){return new(l||(l=Promise))(function(U,z){function ae(he){try{X(T.next(he))}catch(oe){z(oe)}}function pe(he){try{X(T.throw(he))}catch(oe){z(oe)}}function X(he){he.done?U(he.value):function B(U){return U instanceof l?U:new l(function(z){z(U)})}(he.value).then(ae,pe)}X((T=T.apply(c,_||[])).next())})}function i(c,_){var T,B,U,z,l={label:0,sent:function(){if(1&U[0])throw U[1];return U[1]},trys:[],ops:[]};return z={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&(z[Symbol.iterator]=function(){return this}),z;function ae(X){return function(he){return function pe(X){if(T)throw new TypeError("Generator is already executing.");for(;l;)try{if(T=1,B&&(U=2&X[0]?B.return:X[0]?B.throw||((U=B.return)&&U.call(B),0):B.next)&&!(U=U.call(B,X[1])).done)return U;switch(B=0,U&&(X=[2&X[0],U.value]),X[0]){case 0:case 1:U=X;break;case 4:return l.label++,{value:X[1],done:!1};case 5:l.label++,B=X[1],X=[0];continue;case 7:X=l.ops.pop(),l.trys.pop();continue;default:if(!(U=(U=l.trys).length>0&&U[U.length-1])&&(6===X[0]||2===X[0])){l=0;continue}if(3===X[0]&&(!U||X[1]>U[0]&&X[1]<U[3])){l.label=X[1];break}if(6===X[0]&&l.label<U[1]){l.label=U[1],U=X;break}if(U&&l.label<U[2]){l.label=U[2],l.ops.push(X);break}U[2]&&l.ops.pop(),l.trys.pop();continue}X=_.call(c,l)}catch(he){X=[6,he],B=0}finally{T=U=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([X,he])}}}function s(c,_,l,T){void 0===T&&(T=l),c[T]=_[l]}function h(c,_){for(var l in c)"default"!==l&&!_.hasOwnProperty(l)&&(_[l]=c[l])}function y(c){var _="function"==typeof Symbol&&Symbol.iterator,l=_&&c[_],T=0;if(l)return l.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&T>=c.length&&(c=void 0),{value:c&&c[T++],done:!c}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(c,_){var l="function"==typeof Symbol&&c[Symbol.iterator];if(!l)return c;var B,z,T=l.call(c),U=[];try{for(;(void 0===_||_-- >0)&&!(B=T.next()).done;)U.push(B.value)}catch(ae){z={error:ae}}finally{try{B&&!B.done&&(l=T.return)&&l.call(T)}finally{if(z)throw z.error}}return U}function I(){for(var c=[],_=0;_<arguments.length;_++)c=c.concat(m(arguments[_]));return c}function M(){for(var c=0,_=0,l=arguments.length;_<l;_++)c+=arguments[_].length;var T=Array(c),B=0;for(_=0;_<l;_++)for(var U=arguments[_],z=0,ae=U.length;z<ae;z++,B++)T[B]=U[z];return T}function P(c){return this instanceof P?(this.v=c,this):new P(c)}function C(c,_,l){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,T=l.apply(c,_||[]),U=[];return B={},z("next"),z("throw"),z("return"),B[Symbol.asyncIterator]=function(){return this},B;function z(K){T[K]&&(B[K]=function(Y){return new Promise(function(ne,$){U.push([K,Y,ne,$])>1||ae(K,Y)})})}function ae(K,Y){try{!function pe(K){K.value instanceof P?Promise.resolve(K.value.v).then(X,he):oe(U[0][2],K)}(T[K](Y))}catch(ne){oe(U[0][3],ne)}}function X(K){ae("next",K)}function he(K){ae("throw",K)}function oe(K,Y){K(Y),U.shift(),U.length&&ae(U[0][0],U[0][1])}}function D(c){var _,l;return _={},T("next"),T("throw",function(B){throw B}),T("return"),_[Symbol.iterator]=function(){return this},_;function T(B,U){_[B]=c[B]?function(z){return(l=!l)?{value:P(c[B](z)),done:"return"===B}:U?U(z):z}:U}}function W(c){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,_=c[Symbol.asyncIterator];return _?_.call(c):(c=y(c),l={},T("next"),T("throw"),T("return"),l[Symbol.asyncIterator]=function(){return this},l);function T(U){l[U]=c[U]&&function(z){return new Promise(function(ae,pe){!function B(U,z,ae,pe){Promise.resolve(pe).then(function(X){U({value:X,done:ae})},z)}(ae,pe,(z=c[U](z)).done,z.value)})}}}function Q(c,_){return Object.defineProperty?Object.defineProperty(c,"raw",{value:_}):c.raw=_,c}function H(c){if(c&&c.__esModule)return c;var _={};if(null!=c)for(var l in c)Object.hasOwnProperty.call(c,l)&&(_[l]=c[l]);return _.default=c,_}function L(c){return c&&c.__esModule?c:{default:c}}function g(c,_){if(!_.has(c))throw new TypeError("attempted to get private field on non-instance");return _.get(c)}function R(c,_,l){if(!_.has(c))throw new TypeError("attempted to set private field on non-instance");return _.set(c,l),l}},5163:(ce,k,p)=>{"use strict";p.d(k,{Jh:()=>i,ZT:()=>w,_T:()=>r,ev:()=>P,mG:()=>e,pi:()=>d});var t=function(T,B){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(U,z){U.__proto__=z}||function(U,z){for(var ae in z)Object.prototype.hasOwnProperty.call(z,ae)&&(U[ae]=z[ae])})(T,B)};function w(T,B){if("function"!=typeof B&&null!==B)throw new TypeError("Class extends value "+String(B)+" is not a constructor or null");function U(){this.constructor=T}t(T,B),T.prototype=null===B?Object.create(B):(U.prototype=B.prototype,new U)}var d=function(){return d=Object.assign||function(B){for(var U,z=1,ae=arguments.length;z<ae;z++)for(var pe in U=arguments[z])Object.prototype.hasOwnProperty.call(U,pe)&&(B[pe]=U[pe]);return B},d.apply(this,arguments)};function r(T,B){var U={};for(var z in T)Object.prototype.hasOwnProperty.call(T,z)&&B.indexOf(z)<0&&(U[z]=T[z]);if(null!=T&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(z=Object.getOwnPropertySymbols(T);ae<z.length;ae++)B.indexOf(z[ae])<0&&Object.prototype.propertyIsEnumerable.call(T,z[ae])&&(U[z[ae]]=T[z[ae]])}return U}function e(T,B,U,z){return new(U||(U=Promise))(function(pe,X){function he(Y){try{K(z.next(Y))}catch(ne){X(ne)}}function oe(Y){try{K(z.throw(Y))}catch(ne){X(ne)}}function K(Y){Y.done?pe(Y.value):function ae(pe){return pe instanceof U?pe:new U(function(X){X(pe)})}(Y.value).then(he,oe)}K((z=z.apply(T,B||[])).next())})}function i(T,B){var z,ae,pe,X,U={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return X={next:he(0),throw:he(1),return:he(2)},"function"==typeof Symbol&&(X[Symbol.iterator]=function(){return this}),X;function he(K){return function(Y){return function oe(K){if(z)throw new TypeError("Generator is already executing.");for(;U;)try{if(z=1,ae&&(pe=2&K[0]?ae.return:K[0]?ae.throw||((pe=ae.return)&&pe.call(ae),0):ae.next)&&!(pe=pe.call(ae,K[1])).done)return pe;switch(ae=0,pe&&(K=[2&K[0],pe.value]),K[0]){case 0:case 1:pe=K;break;case 4:return U.label++,{value:K[1],done:!1};case 5:U.label++,ae=K[1],K=[0];continue;case 7:K=U.ops.pop(),U.trys.pop();continue;default:if(!(pe=(pe=U.trys).length>0&&pe[pe.length-1])&&(6===K[0]||2===K[0])){U=0;continue}if(3===K[0]&&(!pe||K[1]>pe[0]&&K[1]<pe[3])){U.label=K[1];break}if(6===K[0]&&U.label<pe[1]){U.label=pe[1],pe=K;break}if(pe&&U.label<pe[2]){U.label=pe[2],U.ops.push(K);break}pe[2]&&U.ops.pop(),U.trys.pop();continue}K=B.call(T,U)}catch(Y){K=[6,Y],ae=0}finally{z=pe=0}if(5&K[0])throw K[1];return{value:K[0]?K[1]:void 0,done:!0}}([K,Y])}}}function P(T,B,U){if(U||2===arguments.length)for(var pe,z=0,ae=B.length;z<ae;z++)(pe||!(z in B))&&(pe||(pe=Array.prototype.slice.call(B,0,z)),pe[z]=B[z]);return T.concat(pe||Array.prototype.slice.call(B))}},47310:()=>{},26415:ce=>{"use strict";var k=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],p=typeof globalThis>"u"?global:globalThis;ce.exports=function(){for(var w=[],d=0;d<k.length;d++)"function"==typeof p[k[d]]&&(w[w.length]=k[d]);return w}},94304:(ce,k,p)=>{"use strict";var w=p(49102)("%Object.getOwnPropertyDescriptor%",!0);if(w)try{w([],"length")}catch{w=null}ce.exports=w},12850:(ce,k,p)=>{"use strict";p.r(k),p.d(k,{ApolloCache:()=>kn,ApolloClient:()=>bi,ApolloError:()=>Yt,ApolloLink:()=>mt,Cache:()=>cn,HttpLink:()=>tr,InMemoryCache:()=>Di,MissingFieldError:()=>fn,NetworkStatus:()=>tt,Observable:()=>me,ObservableQuery:()=>Lr,checkFetcher:()=>Kt,concat:()=>Li,createHttpLink:()=>er,createSignalIfSupported:()=>cr,defaultDataIdFromObject:()=>pr,defaultPrinter:()=>Xt,disableExperimentalFragmentVariables:()=>wr.J9,disableFragmentWarnings:()=>wr._t,empty:()=>Mi,enableExperimentalFragmentVariables:()=>wr.wO,execute:()=>Nt,fallbackHttpConfig:()=>sr,from:()=>ki,fromError:()=>Zt,fromPromise:()=>Bi,gql:()=>wr.Ps,isApolloError:()=>On,isReference:()=>O,makeReference:()=>v,makeVar:()=>In,mergeOptions:()=>Nr,parseAndCheckHttpResponse:()=>Ot,resetCaches:()=>wr.HW,rewriteURIForGET:()=>Cr,selectHttpOptionsAndBody:()=>Tr,selectHttpOptionsAndBodyInternal:()=>ur,selectURI:()=>Or,serializeFetchParameter:()=>Qt,setLogVerbosity:()=>s,split:()=>Fi,throwServerError:()=>$t,toPromise:()=>Ni});var t=p(5163),w="Invariant Violation",d=Object.setPrototypeOf,r=void 0===d?function(S,o){return S.__proto__=o,S}:d,n=function(S){function o(f){void 0===f&&(f=w);var E=S.call(this,"number"==typeof f?w+": "+f+" (see https://github.com/apollographql/invariant-packages)":f)||this;return E.framesToPop=1,E.name=w,r(E,o.prototype),E}return(0,t.ZT)(o,S),o}(Error);function a(S,o){if(!S)throw new n(o)}var S,u=["debug","log","warn","error","silent"],e=u.indexOf("log");function i(S){return function(){if(u.indexOf(S)>=e)return(console[S]||console.log).apply(console,arguments)}}function s(S){var o=u[e];return e=Math.max(0,u.indexOf(S)),o}function y(S){try{return S()}catch{}}(S=a||(a={})).debug=i("debug"),S.log=i("log"),S.warn=i("warn"),S.error=i("error");const m=y(function(){return globalThis})||y(function(){return window})||y(function(){return self})||y(function(){return global})||y(function(){return y.constructor("return this")()});var I="__",M=[I,I].join("DEV");const C=function P(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(m,M,{value:"production"!==y(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),m[M]}}();function D(S){try{return S()}catch{}}var W=D(function(){return globalThis})||D(function(){return window})||D(function(){return self})||D(function(){return global})||D(function(){return D.constructor("return this")()}),Q=!1;function T(S,o){(null==o||o>S.length)&&(o=S.length);for(var f=0,E=new Array(o);f<o;f++)E[f]=S[f];return E}function B(S,o){for(var f=0;f<o.length;f++){var E=o[f];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(S,E.key,E)}}function U(S,o,f){return o&&B(S.prototype,o),f&&B(S,f),Object.defineProperty(S,"prototype",{writable:!1}),S}!function H(){W&&!D(function(){return"production"})&&!D(function(){return process})&&(Object.defineProperty(W,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),Q=!0)}(),p(95173),function R(){(function L(){Q&&(delete W.process,Q=!1)})()}(),function c(){__DEV__?a("boolean"==typeof C,C):a("boolean"==typeof C,36)}();var z=function(){return"function"==typeof Symbol},ae=function(S){return z()&&Boolean(Symbol[S])},pe=function(S){return ae(S)?Symbol[S]:"@@"+S};z()&&!ae("observable")&&(Symbol.observable=Symbol("observable"));var X=pe("iterator"),he=pe("observable"),oe=pe("species");function K(S,o){var f=S[o];if(null!=f){if("function"!=typeof f)throw new TypeError(f+" is not a function");return f}}function Y(S){var o=S.constructor;return void 0!==o&&null===(o=o[oe])&&(o=void 0),void 0!==o?o:me}function $(S){$.log?$.log(S):setTimeout(function(){throw S})}function A(S){Promise.resolve().then(function(){try{S()}catch(o){$(o)}})}function b(S){var o=S._cleanup;if(void 0!==o&&(S._cleanup=void 0,o))try{if("function"==typeof o)o();else{var f=K(o,"unsubscribe");f&&f.call(o)}}catch(E){$(E)}}function x(S){S._observer=void 0,S._queue=void 0,S._state="closed"}function q(S,o,f){S._state="running";var E=S._observer;try{var j=K(E,o);switch(o){case"next":j&&j.call(E,f);break;case"error":if(x(S),!j)throw f;j.call(E,f);break;case"complete":x(S),j&&j.call(E)}}catch(G){$(G)}"closed"===S._state?b(S):"running"===S._state&&(S._state="ready")}function ee(S,o,f){if("closed"!==S._state){if("buffering"===S._state)return void S._queue.push({type:o,value:f});if("ready"!==S._state)return S._state="buffering",S._queue=[{type:o,value:f}],void A(function(){return function N(S){var o=S._queue;if(o){S._queue=void 0,S._state="ready";for(var f=0;f<o.length&&(q(S,o[f].type,o[f].value),"closed"!==S._state);++f);}}(S)});q(S,o,f)}}var ue=function(){function S(f,E){this._cleanup=void 0,this._observer=f,this._queue=void 0,this._state="initializing";var j=new _e(this);try{this._cleanup=E.call(void 0,j)}catch(G){j.error(G)}"initializing"===this._state&&(this._state="ready")}return S.prototype.unsubscribe=function(){"closed"!==this._state&&(x(this),b(this))},U(S,[{key:"closed",get:function(){return"closed"===this._state}}]),S}(),_e=function(){function S(f){this._subscription=f}var o=S.prototype;return o.next=function(E){ee(this._subscription,"next",E)},o.error=function(E){ee(this._subscription,"error",E)},o.complete=function(){ee(this._subscription,"complete")},U(S,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),S}(),me=function(){function S(f){if(!(this instanceof S))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof f)throw new TypeError("Observable initializer must be a function");this._subscriber=f}var o=S.prototype;return o.subscribe=function(E){return("object"!=typeof E||null===E)&&(E={next:E,error:arguments[1],complete:arguments[2]}),new ue(E,this._subscriber)},o.forEach=function(E){var j=this;return new Promise(function(G,Z){if("function"==typeof E)var ge=j.subscribe({next:function(be){try{E(be,le)}catch(Ae){Z(Ae),ge.unsubscribe()}},error:Z,complete:G});else Z(new TypeError(E+" is not a function"));function le(){ge.unsubscribe(),G()}})},o.map=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(Y(this))(function(Z){return j.subscribe({next:function(le){try{le=E(le)}catch(ge){return Z.error(ge)}Z.next(le)},error:function(le){Z.error(le)},complete:function(){Z.complete()}})})},o.filter=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");return new(Y(this))(function(Z){return j.subscribe({next:function(le){try{if(!E(le))return}catch(ge){return Z.error(ge)}Z.next(le)},error:function(le){Z.error(le)},complete:function(){Z.complete()}})})},o.reduce=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var G=Y(this),Z=arguments.length>1,le=!1,be=arguments[1];return new G(function(Ae){return j.subscribe({next:function(Pe){var Ce=!le;if(le=!0,!Ce||Z)try{be=E(be,Pe)}catch(ke){return Ae.error(ke)}else be=Pe},error:function(Pe){Ae.error(Pe)},complete:function(){if(!le&&!Z)return Ae.error(new TypeError("Cannot reduce an empty sequence"));Ae.next(be),Ae.complete()}})})},o.concat=function(){for(var E=this,j=arguments.length,G=new Array(j),Z=0;Z<j;Z++)G[Z]=arguments[Z];var le=Y(this);return new le(function(ge){var be,Ae=0;return function Pe(Ce){be=Ce.subscribe({next:function(ke){ge.next(ke)},error:function(ke){ge.error(ke)},complete:function(){Ae===G.length?(be=void 0,ge.complete()):Pe(le.from(G[Ae++]))}})}(E),function(){be&&(be.unsubscribe(),be=void 0)}})},o.flatMap=function(E){var j=this;if("function"!=typeof E)throw new TypeError(E+" is not a function");var G=Y(this);return new G(function(Z){var le=[],ge=j.subscribe({next:function(Ae){if(E)try{Ae=E(Ae)}catch(Ce){return Z.error(Ce)}var Pe=G.from(Ae).subscribe({next:function(Ce){Z.next(Ce)},error:function(Ce){Z.error(Ce)},complete:function(){var Ce=le.indexOf(Pe);Ce>=0&&le.splice(Ce,1),be()}});le.push(Pe)},error:function(Ae){Z.error(Ae)},complete:function(){be()}});function be(){ge.closed&&0===le.length&&Z.complete()}return function(){le.forEach(function(Ae){return Ae.unsubscribe()}),ge.unsubscribe()}})},o[he]=function(){return this},S.from=function(E){var j="function"==typeof this?this:S;if(null==E)throw new TypeError(E+" is not an object");var G=K(E,he);if(G){var Z=G.call(E);if(Object(Z)!==Z)throw new TypeError(Z+" is not an object");return function ne(S){return S instanceof me}(Z)&&Z.constructor===j?Z:new j(function(le){return Z.subscribe(le)})}if(ae("iterator")&&(G=K(E,X)))return new j(function(le){A(function(){if(!le.closed){for(var be,ge=function _(S,o){var f=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(f)return(f=f.call(S)).next.bind(f);if(Array.isArray(S)||(f=function l(S,o){if(S){if("string"==typeof S)return T(S,o);var f=Object.prototype.toString.call(S).slice(8,-1);if("Object"===f&&S.constructor&&(f=S.constructor.name),"Map"===f||"Set"===f)return Array.from(S);if("Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return T(S,o)}}(S))||o&&S&&"number"==typeof S.length){f&&(S=f);var E=0;return function(){return E>=S.length?{done:!0}:{done:!1,value:S[E++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(G.call(E));!(be=ge()).done;)if(le.next(be.value),le.closed)return;le.complete()}})});if(Array.isArray(E))return new j(function(le){A(function(){if(!le.closed){for(var ge=0;ge<E.length;++ge)if(le.next(E[ge]),le.closed)return;le.complete()}})});throw new TypeError(E+" is not observable")},S.of=function(){for(var E=arguments.length,j=new Array(E),G=0;G<E;G++)j[G]=arguments[G];return new("function"==typeof this?this:S)(function(le){A(function(){if(!le.closed){for(var ge=0;ge<j.length;++ge)if(le.next(j[ge]),le.closed)return;le.complete()}})})},U(S,null,[{key:oe,get:function(){return this}}]),S}();function De(S){return null!==S&&"object"==typeof S}function Me(S,o){var f=o,E=[];return S.definitions.forEach(function(G){if("OperationDefinition"===G.kind)throw __DEV__?new n("Found a ".concat(G.operation," operation").concat(G.name?" named '".concat(G.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new n(41);"FragmentDefinition"===G.kind&&E.push(G)}),typeof f>"u"&&(__DEV__?a(1===E.length,"Found ".concat(E.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):a(1===E.length,42),f=E[0].name.value),(0,t.pi)((0,t.pi)({},S),{definitions:(0,t.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:f}}]}}],S.definitions,!0)})}function ie(S){void 0===S&&(S=[]);var o={};return S.forEach(function(f){o[f.name.value]=f}),o}function V(S,o){switch(S.kind){case"InlineFragment":return S;case"FragmentSpread":var f=o&&o[S.name.value];return __DEV__?a(f,"No fragment named ".concat(S.name.value,".")):a(f,43),f;default:return null}}function v(S){return{__ref:String(S)}}function O(S){return Boolean(S&&"object"==typeof S&&"string"==typeof S.__ref)}function Ue(S,o,f,E){if(function xe(S){return"IntValue"===S.kind}(f)||function Te(S){return"FloatValue"===S.kind}(f))S[o.value]=Number(f.value);else if(function ve(S){return"BooleanValue"===S.kind}(f)||function re(S){return"StringValue"===S.kind}(f))S[o.value]=f.value;else if(function de(S){return"ObjectValue"===S.kind}(f)){var j={};f.fields.map(function(Z){return Ue(j,Z.name,Z.value,E)}),S[o.value]=j}else if(function te(S){return"Variable"===S.kind}(f))S[o.value]=(E||{})[f.name.value];else if(function ye(S){return"ListValue"===S.kind}(f))S[o.value]=f.values.map(function(Z){var le={};return Ue(le,o,Z,E),le[o.value]});else if(function Oe(S){return"EnumValue"===S.kind}(f))S[o.value]=f.value;else{if(!function Ie(S){return"NullValue"===S.kind}(f))throw __DEV__?new n('The inline argument "'.concat(o.value,'" of kind "').concat(f.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new n(52);S[o.value]=null}}z()&&Object.defineProperty(me,Symbol("extensions"),{value:{symbol:he,hostReportError:$},configurable:!0});var ze=["connection","include","skip","client","rest","export"],nt=Object.assign(function(S,o,f){if(o&&f&&f.connection&&f.connection.key){if(f.connection.filter&&f.connection.filter.length>0){var E=f.connection.filter?f.connection.filter:[];E.sort();var j={};return E.forEach(function(le){j[le]=o[le]}),"".concat(f.connection.key,"(").concat(ht(j),")")}return f.connection.key}var G=S;if(o){var Z=ht(o);G+="(".concat(Z,")")}return f&&Object.keys(f).forEach(function(le){-1===ze.indexOf(le)&&(f[le]&&Object.keys(f[le]).length?G+="@".concat(le,"(").concat(ht(f[le]),")"):G+="@".concat(le))}),G},{setStringify:function(S){var o=ht;return ht=S,o}}),ht=function(o){return JSON.stringify(o,at)};function at(S,o){return De(o)&&!Array.isArray(o)&&(o=Object.keys(o).sort().reduce(function(f,E){return f[E]=o[E],f},{})),o}function Ke(S,o){if(S.arguments&&S.arguments.length){var f={};return S.arguments.forEach(function(E){return Ue(f,E.name,E.value,o)}),f}return null}function ct(S){return S.alias?S.alias.value:S.name.value}function jt(S,o,f){if("string"==typeof S.__typename)return S.__typename;for(var E=0,j=o.selections;E<j.length;E++){var G=j[E];if(pt(G)){if("__typename"===G.name.value)return S[ct(G)]}else{var Z=jt(S,V(G,f).selectionSet,f);if("string"==typeof Z)return Z}}}function pt(S){return"Field"===S.kind}function yt(S){return"InlineFragment"===S.kind}function Rt(S){__DEV__?a(S&&"Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):a(S&&"Document"===S.kind,44);var o=S.definitions.filter(function(f){return"FragmentDefinition"!==f.kind}).map(function(f){if("OperationDefinition"!==f.kind)throw __DEV__?new n('Schema type definitions not allowed in queries. Found: "'.concat(f.kind,'"')):new n(45);return f});return __DEV__?a(o.length<=1,"Ambiguous GraphQL document: contains ".concat(o.length," operations")):a(o.length<=1,46),S}function St(S){return Rt(S),S.definitions.filter(function(o){return"OperationDefinition"===o.kind})[0]}function ft(S){return S.definitions.filter(function(o){return"OperationDefinition"===o.kind&&o.name}).map(function(o){return o.name.value})[0]||null}function Tt(S){return S.definitions.filter(function(o){return"FragmentDefinition"===o.kind})}function Ft(S){var o=St(S);return __DEV__?a(o&&"query"===o.operation,"Must contain a query definition."):a(o&&"query"===o.operation,47),o}function Ct(S){Rt(S);for(var o,f=0,E=S.definitions;f<E.length;f++){var j=E[f];if("OperationDefinition"===j.kind){var G=j.operation;if("query"===G||"mutation"===G||"subscription"===G)return j}"FragmentDefinition"===j.kind&&!o&&(o=j)}if(o)return o;throw __DEV__?new n("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new n(51)}function It(S){var o=Object.create(null),f=S&&S.variableDefinitions;return f&&f.length&&f.forEach(function(E){E.defaultValue&&Ue(o,E.variable.name,E.defaultValue)}),o}function Wt(S,o){return o?o(S):me.of()}function Et(S){return"function"==typeof S?new mt(S):S}function Jt(S){return S.request.length<=1}var Vr=function(S){function o(f,E){var j=S.call(this,f)||this;return j.link=E,j}return(0,t.ZT)(o,S),o}(Error),mt=function(){function S(o){o&&(this.request=o)}return S.empty=function(){return new S(function(){return me.of()})},S.from=function(o){return 0===o.length?S.empty():o.map(Et).reduce(function(f,E){return f.concat(E)})},S.split=function(o,f,E){var j=Et(f),G=Et(E||new S(Wt));return Jt(j)&&Jt(G)?new S(function(Z){return o(Z)?j.request(Z)||me.of():G.request(Z)||me.of()}):new S(function(Z,le){return o(Z)?j.request(Z,le)||me.of():G.request(Z,le)||me.of()})},S.execute=function(o,f){return o.request(function Re(S,o){var f=(0,t.pi)({},S);return Object.defineProperty(o,"setContext",{enumerable:!1,value:function(G){f=(0,t.pi)((0,t.pi)({},f),"function"==typeof G?G(f):G)}}),Object.defineProperty(o,"getContext",{enumerable:!1,value:function(){return(0,t.pi)({},f)}}),o}(f.context,function Lt(S){var o={variables:S.variables||{},extensions:S.extensions||{},operationName:S.operationName,query:S.query};return o.operationName||(o.operationName="string"!=typeof o.query?ft(o.query)||void 0:""),o}(function Vt(S){for(var o=["query","operationName","variables","extensions","context"],f=0,E=Object.keys(S);f<E.length;f++){var j=E[f];if(o.indexOf(j)<0)throw __DEV__?new n("illegal argument: ".concat(j)):new n(24)}return S}(f))))||me.of()},S.concat=function(o,f){var E=Et(o);if(Jt(E))return __DEV__&&a.warn(new Vr("You are calling concat on a terminating link, which will have no effect",E)),E;var j=Et(f);return Jt(j)?new S(function(G){return E.request(G,function(Z){return j.request(Z)||me.of()})||me.of()}):new S(function(G,Z){return E.request(G,function(le){return j.request(le,Z)||me.of()})||me.of()})},S.prototype.split=function(o,f,E){return this.concat(S.split(o,f,E||new S(Wt)))},S.prototype.concat=function(o){return S.concat(this,o)},S.prototype.request=function(o,f){throw __DEV__?new n("request is not implemented"):new n(19)},S.prototype.onError=function(o,f){if(f&&f.error)return f.error(o),!1;throw o},S.prototype.setOnError=function(o){return this.onError=o,this},S}(),Nt=mt.execute,Wr="3.6.9",_t=p(4496),Qt=function(S,o){var f;try{f=JSON.stringify(S)}catch(j){var E=__DEV__?new n("Network request failed. ".concat(o," is not serializable: ").concat(j.message)):new n(21);throw E.parseError=j,E}return f},Or=function(S,o){return S.getContext().uri||("function"==typeof o?o(S):o||"/graphql")},$t=function(S,o,f){var E=new Error(f);throw E.name="ServerError",E.response=S,E.statusCode=S.status,E.result=o,E},Ar=Object.prototype.hasOwnProperty;function Ot(S){return function(o){return o.text().then(function(f){try{return JSON.parse(f)}catch(j){var E=j;throw E.name="ServerParseError",E.response=o,E.statusCode=o.status,E.bodyText=f,E}}).then(function(f){return o.status>=300&&$t(o,f,"Response not successful: Received status code ".concat(o.status)),!Array.isArray(f)&&!Ar.call(f,"data")&&!Ar.call(f,"errors")&&$t(o,f,"Server response was missing for query '".concat(Array.isArray(S)?S.map(function(E){return E.operationName}):S.operationName,"'.")),f})}}var Kt=function(S){if(!S&&typeof fetch>"u")throw __DEV__?new n("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new n(20)},Qr=p(94140),sr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Xt=function(S,o){return o(S)};function Tr(S,o){for(var f=[],E=2;E<arguments.length;E++)f[E-2]=arguments[E];return f.unshift(o),ur.apply(void 0,(0,t.ev)([S,Xt],f,!1))}function ur(S,o){for(var f=[],E=2;E<arguments.length;E++)f[E-2]=arguments[E];var j={},G={};f.forEach(function(Pe){j=(0,t.pi)((0,t.pi)((0,t.pi)({},j),Pe.options),{headers:(0,t.pi)((0,t.pi)({},j.headers),zr(Pe.headers))}),Pe.credentials&&(j.credentials=Pe.credentials),G=(0,t.pi)((0,t.pi)({},G),Pe.http)});var be=S.query,Ae={operationName:S.operationName,variables:S.variables};return G.includeExtensions&&(Ae.extensions=S.extensions),G.includeQuery&&(Ae.query=o(be,Qr.print)),{options:j,body:Ae}}function zr(S){if(S){var o=Object.create(null);return Object.keys(Object(S)).forEach(function(f){o[f.toLowerCase()]=S[f]}),o}return S}var cr=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var S=new AbortController;return{controller:S,signal:S.signal}};function Cr(S,o){var f=[],E=function(Pe,Ce){f.push("".concat(Pe,"=").concat(encodeURIComponent(Ce)))};if("query"in o&&E("query",o.query),o.operationName&&E("operationName",o.operationName),o.variables){var j=void 0;try{j=Qt(o.variables,"Variables map")}catch(Pe){return{parseError:Pe}}E("variables",j)}if(o.extensions){var G=void 0;try{G=Qt(o.extensions,"Extensions map")}catch(Pe){return{parseError:Pe}}E("extensions",G)}var Z="",le=S,ge=S.indexOf("#");-1!==ge&&(Z=S.substr(ge),le=S.substr(0,ge));var be=-1===le.indexOf("?")?"?":"&";return{newURI:le+be+f.join("&")+Z}}function Zt(S){return new me(function(o){o.error(S)})}var qt=y(function(){return fetch}),er=function(S){void 0===S&&(S={});var o=S.uri,f=void 0===o?"/graphql":o,E=S.fetch,j=S.print,G=void 0===j?Xt:j,Z=S.includeExtensions,le=S.useGETForQueries,ge=S.includeUnusedVariables,be=void 0!==ge&&ge,Ae=(0,t._T)(S,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Kt(E||qt);var Pe={http:{includeExtensions:Z},options:Ae.fetchOptions,credentials:Ae.credentials,headers:Ae.headers};return new mt(function(Ce){var ke=Or(Ce,f),je=Ce.getContext(),Le={};if(je.clientAwareness){var Ve=je.clientAwareness,Qe=Ve.name,Xe=Ve.version;Qe&&(Le["apollographql-client-name"]=Qe),Xe&&(Le["apollographql-client-version"]=Xe)}var gt,We=(0,t.pi)((0,t.pi)({},Le),je.headers),Ze=ur(Ce,G,sr,Pe,{http:je.http,options:je.fetchOptions,credentials:je.credentials,headers:We}),Ye=Ze.options,Je=Ze.body;if(Je.variables&&!be){var rt=new Set(Object.keys(Je.variables));(0,_t.Vn)(Ce.query,{Variable:function(bt,ri,vt){vt&&"VariableDefinition"!==vt.kind&&rt.delete(bt.name.value)}}),rt.size&&(Je.variables=(0,t.pi)({},Je.variables),rt.forEach(function(bt){delete Je.variables[bt]}))}if(!Ye.signal){var ot=cr();(gt=ot.controller)&&(Ye.signal=ot.signal)}if(le&&!Ce.query.definitions.some(function(bt){return"OperationDefinition"===bt.kind&&"mutation"===bt.operation})&&(Ye.method="GET"),"GET"===Ye.method){var ei=Cr(ke,Je),ji=ei.newURI,ti=ei.parseError;if(ti)return Zt(ti);ke=ji}else try{Ye.body=Qt(Je,"Payload")}catch(bt){return Zt(bt)}return new me(function(bt){return(E||y(function(){return fetch})||qt)(ke,Ye).then(function(vt){return Ce.setContext({response:vt}),vt}).then(Ot(Ce)).then(function(vt){return bt.next(vt),bt.complete(),vt}).catch(function(vt){"AbortError"!==vt.name&&(vt.result&&vt.result.errors&&vt.result.data&&bt.next(vt.result),bt.error(vt))}),function(){gt&>.abort()}})})},tr=function(S){function o(f){void 0===f&&(f={});var E=S.call(this,er(f).request)||this;return E.options=f,E}return(0,t.ZT)(o,S),o}(mt),ut=p(16492),rr=p(83302),Pt="function"==typeof WeakMap&&"ReactNative"!==y(function(){return navigator.product}),Rr="function"==typeof WeakSet,Ir="function"==typeof Symbol&&"function"==typeof Symbol.for;function zt(){for(var S=[],o=0;o<arguments.length;o++)S[o]=arguments[o];var f=Object.create(null);return S.forEach(function(E){E&&Object.keys(E).forEach(function(j){var G=E[j];void 0!==G&&(f[j]=G)})}),f}function Ht(S,o){var f=S.directives;return!f||!f.length||function Zr(S){var o=[];return S&&S.length&&S.forEach(function(f){if(function Xr(S){var o=S.name.value;return"skip"===o||"include"===o}(f)){var E=f.arguments,j=f.name.value;__DEV__?a(E&&1===E.length,"Incorrect number of arguments for the @".concat(j," directive.")):a(E&&1===E.length,38);var G=E[0];__DEV__?a(G.name&&"if"===G.name.value,"Invalid argument for the @".concat(j," directive.")):a(G.name&&"if"===G.name.value,39);var Z=G.value;__DEV__?a(Z&&("Variable"===Z.kind||"BooleanValue"===Z.kind),"Argument for the @".concat(j," directive must be a variable or a boolean value.")):a(Z&&("Variable"===Z.kind||"BooleanValue"===Z.kind),40),o.push({directive:f,ifArgument:G})}}),o}(f).every(function(E){var j=E.directive,G=E.ifArgument,Z=!1;return"Variable"===G.value.kind?(Z=o&&o[G.value.name.value],__DEV__?a(void 0!==Z,"Invalid variable referenced in @".concat(j.name.value," directive.")):a(void 0!==Z,37)):Z=G.value.value,"skip"===j.name.value?!Z:Z})}function fr(S,o){return function Jr(S){var o=[];return(0,_t.Vn)(S,{Directive:function(f){o.push(f.name.value)}}),o}(o).some(function(f){return S.indexOf(f)>-1})}function $r(S){return S&&fr(["client"],S)&&fr(["export"],S)}y(function(){return window.document.createElement}),y(function(){return navigator.userAgent.indexOf("jsdom")>=0});var lr=Object.prototype.hasOwnProperty;function hr(){for(var S=[],o=0;o<arguments.length;o++)S[o]=arguments[o];return Bt(S)}function Bt(S){var o=S[0]||{},f=S.length;if(f>1)for(var E=new Dt,j=1;j<f;++j)o=E.merge(o,S[j]);return o}var Pr=function(S,o,f){return this.merge(S[f],o[f])},Dt=function(){function S(o){void 0===o&&(o=Pr),this.reconciler=o,this.isObject=De,this.pastCopies=new Set}return S.prototype.merge=function(o,f){for(var E=this,j=[],G=2;G<arguments.length;G++)j[G-2]=arguments[G];return De(f)&&De(o)?(Object.keys(f).forEach(function(Z){if(lr.call(o,Z)){var le=o[Z];if(f[Z]!==le){var ge=E.reconciler.apply(E,(0,t.ev)([o,f,Z],j,!1));ge!==le&&((o=E.shallowCopyForMerge(o))[Z]=ge)}}else(o=E.shallowCopyForMerge(o))[Z]=f[Z]}),o):f},S.prototype.shallowCopyForMerge=function(o){return De(o)&&(this.pastCopies.has(o)||(o=Array.isArray(o)?o.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(o)},o),this.pastCopies.add(o))),o},S}(),st=Object.prototype.hasOwnProperty;function pr(S,o){var f=S.__typename,E=S.id,j=S._id;if("string"==typeof f&&(o&&(o.keyObject=void 0!==E?{id:E}:void 0!==j?{_id:j}:void 0),void 0===E&&(E=j),void 0!==E))return"".concat(f,":").concat("number"==typeof E||"string"==typeof E?E:JSON.stringify(E))}var Dr={dataIdFromObject:pr,addTypename:!0,resultCaching:!0,canonizeResults:!1};function kr(S){var o=S.canonizeResults;return void 0===o?Dr.canonizeResults:o}var Fr=/^[_a-z][_0-9a-z]*/i;function At(S){var o=S.match(Fr);return o?o[0]:S}function nr(S,o,f){return!!De(o)&&(it(o)?o.every(function(E){return nr(S,E,f)}):S.selections.every(function(E){if(pt(E)&&Ht(E,f)){var j=ct(E);return st.call(o,j)&&(!E.selectionSet||nr(E.selectionSet,o[j],f))}return!0}))}function Mt(S){return De(S)&&!O(S)&&!it(S)}var se,fe,it=function(S){return Array.isArray(S)},vr=function(){function S(){this.known=new(Rr?WeakSet:Set),this.pool=new rr.B(Pt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return S.prototype.isKnown=function(o){return De(o)&&this.known.has(o)},S.prototype.pass=function(o){if(De(o)){var f=function tn(S){return De(S)?it(S)?S.slice(0):(0,t.pi)({__proto__:Object.getPrototypeOf(S)},S):S}(o);return this.passes.set(f,o),f}return o},S.prototype.admit=function(o){var f=this;if(De(o)){var E=this.passes.get(o);if(E)return E;switch(Object.getPrototypeOf(o)){case Array.prototype:if(this.known.has(o))return o;var G=o.map(this.admit,this);return(Z=this.pool.lookupArray(G)).array||(this.known.add(Z.array=G),__DEV__&&Object.freeze(G)),Z.array;case null:case Object.prototype:if(this.known.has(o))return o;var le=Object.getPrototypeOf(o),ge=[le],be=this.sortedKeys(o);ge.push(be.json);var Z,Ae=ge.length;if(be.sorted.forEach(function(ke){ge.push(f.admit(o[ke]))}),!(Z=this.pool.lookupArray(ge)).object){var Pe=Z.object=Object.create(le);this.known.add(Pe),be.sorted.forEach(function(ke,je){Pe[ke]=ge[Ae+je]}),__DEV__&&Object.freeze(Pe)}return Z.object}}return o},S.prototype.sortedKeys=function(o){var f=Object.keys(o),E=this.pool.lookupArray(f);if(!E.keys){f.sort();var j=JSON.stringify(f);(E.keys=this.keysByJSON.get(j))||this.keysByJSON.set(j,E.keys={sorted:f,json:j})}return E.keys},S}(),J=Object.assign(function(S){if(De(S)){void 0===se&&Ee();var o=se.admit(S),f=fe.get(o);return void 0===f&&fe.set(o,f=JSON.stringify(o)),f}return JSON.stringify(S)},{reset:Ee});function Ee(){se=new vr,fe=new(Pt?WeakMap:Map)}function we(S,o,f){return new me(function(E){var j=E.next,G=E.error,Z=E.complete,le=0,ge=!1,be={then:function(ke){return new Promise(function(je){return je(ke())})}};function Ae(ke,je){return ke?function(Le){++le;var Ve=function(){return ke(Le)};be=be.then(Ve,Ve).then(function(Qe){--le,j&&j.call(E,Qe),ge&&Pe.complete()},function(Qe){throw--le,Qe}).catch(function(Qe){G&&G.call(E,Qe)})}:function(Le){return je&&je.call(E,Le)}}var Pe={next:Ae(o,j),error:Ae(f,G),complete:function(){ge=!0,le||Z&&Z.call(E)}},Ce=S.subscribe(Pe);return function(){return Ce.unsubscribe()}})}function Se(S){return S.errors&&S.errors.length>0||!1}function Fe(S,o,f){var E=0;return S.forEach(function(j,G){o.call(this,j,G,S)&&(S[E++]=j)},f),S.length=E,S}var Be={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ge(S,o){return S.selectionSet.selections.every(function(f){return"FragmentSpread"===f.kind&&Ge(o[f.name.value],o)})}function Ne(S){return Ge(St(S)||function wt(S){__DEV__?a("Document"===S.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):a("Document"===S.kind,48),__DEV__?a(S.definitions.length<=1,"Fragment must have exactly one definition."):a(S.definitions.length<=1,49);var o=S.definitions[0];return __DEV__?a("FragmentDefinition"===o.kind,"Must be a fragment definition."):a("FragmentDefinition"===o.kind,50),o}(S),ie(Tt(S)))?null:S}function et(S){return function(f){return S.some(function(E){return E.name&&E.name===f.name.value||E.test&&E.test(f)})}}function dt(S,o){var f=Object.create(null),E=[],j=Object.create(null),G=[],Z=Ne((0,_t.Vn)(o,{Variable:{enter:function(le,ge,be){"VariableDefinition"!==be.kind&&(f[le.name.value]=!0)}},Field:{enter:function(le){if(S&&le.directives&&S.some(function(be){return be.remove})&&le.directives&&le.directives.some(et(S)))return le.arguments&&le.arguments.forEach(function(be){"Variable"===be.value.kind&&E.push({name:be.value.name.value})}),le.selectionSet&&En(le.selectionSet).forEach(function(be){G.push({name:be.name.value})}),null}},FragmentSpread:{enter:function(le){j[le.name.value]=!0}},Directive:{enter:function(le){if(et(S)(le))return null}}}));return Z&&Fe(E,function(le){return!!le.name&&!f[le.name]}).length&&(Z=function ai(S,o){var f=function ii(S){return function(f){return S.some(function(E){return f.value&&"Variable"===f.value.kind&&f.value.name&&(E.name===f.value.name.value||E.test&&E.test(f))})}}(S);return Ne((0,_t.Vn)(o,{OperationDefinition:{enter:function(E){return(0,t.pi)((0,t.pi)({},E),{variableDefinitions:E.variableDefinitions?E.variableDefinitions.filter(function(j){return!S.some(function(G){return G.name===j.variable.name.value})}):[]})}},Field:{enter:function(E){var j=S.some(function(Z){return Z.remove});if(j){var G=0;if(E.arguments&&E.arguments.forEach(function(Z){f(Z)&&(G+=1)}),1===G)return null}}},Argument:{enter:function(E){if(f(E))return null}}}))}(E,Z)),Z&&Fe(G,function(le){return!!le.name&&!j[le.name]}).length&&(Z=function oi(S,o){function f(E){if(S.some(function(j){return j.name===E.name.value}))return null}return Ne((0,_t.Vn)(o,{FragmentSpread:{enter:f},FragmentDefinition:{enter:f}}))}(G,Z)),Z}var $e=Object.assign(function(S){return(0,_t.Vn)(S,{SelectionSet:{enter:function(o,f,E){if(!E||"OperationDefinition"!==E.kind){var j=o.selections;if(j&&!j.some(function(le){return pt(le)&&("__typename"===le.name.value||0===le.name.value.lastIndexOf("__",0))})){var Z=E;if(!(pt(Z)&&Z.directives&&Z.directives.some(function(le){return"export"===le.name.value})))return(0,t.pi)((0,t.pi)({},o),{selections:(0,t.ev)((0,t.ev)([],j,!0),[Be],!1)})}}}}})},{added:function(S){return S===Be}}),lt={test:function(S){var o="connection"===S.name.value;return o&&(!S.arguments||!S.arguments.some(function(f){return"key"===f.name.value}))&&__DEV__&&a.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),o}};function En(S){var o=[];return S.selections.forEach(function(f){(pt(f)||yt(f))&&f.selectionSet?En(f.selectionSet).forEach(function(E){return o.push(E)}):"FragmentSpread"===f.kind&&o.push(f)}),o}function si(S){return"query"===Ct(S).operation?S:(0,_t.Vn)(S,{OperationDefinition:{enter:function(j){return(0,t.pi)((0,t.pi)({},j),{operation:"query"})}}})}var _n=new Map;function rn(S){var o=_n.get(S)||1;return _n.set(S,o+1),"".concat(S,":").concat(o,":").concat(Math.random().toString(36).slice(2))}function mr(S,o,f){var E=[];S.forEach(function(j){return j[o]&&E.push(j)}),E.forEach(function(j){return j[o](f)})}function Sn(S){function o(f){Object.defineProperty(S,f,{value:me})}return Ir&&Symbol.species&&o(Symbol.species),o("@@species"),S}function wn(S){return S&&"function"==typeof S.then}var gr=function(S){function o(f){var E=S.call(this,function(j){return E.addObserver(j),function(){return E.removeObserver(j)}})||this;return E.observers=new Set,E.addCount=0,E.promise=new Promise(function(j,G){E.resolve=j,E.reject=G}),E.handlers={next:function(j){null!==E.sub&&(E.latest=["next",j],mr(E.observers,"next",j))},error:function(j){var G=E.sub;null!==G&&(G&&setTimeout(function(){return G.unsubscribe()}),E.sub=null,E.latest=["error",j],E.reject(j),mr(E.observers,"error",j))},complete:function(){var j=E.sub;if(null!==j){var G=E.sources.shift();G?wn(G)?G.then(function(Z){return E.sub=Z.subscribe(E.handlers)}):E.sub=G.subscribe(E.handlers):(j&&setTimeout(function(){return j.unsubscribe()}),E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),mr(E.observers,"complete"))}}},E.cancel=function(j){E.reject(j),E.sources=[],E.handlers.complete()},E.promise.catch(function(j){}),"function"==typeof f&&(f=[new me(f)]),wn(f)?f.then(function(j){return E.start(j)},E.handlers.error):E.start(f),E}return(0,t.ZT)(o,S),o.prototype.start=function(f){void 0===this.sub&&(this.sources=Array.from(f),this.handlers.complete())},o.prototype.deliverLastMessage=function(f){if(this.latest){var E=this.latest[0],j=f[E];j&&j.call(f,this.latest[1]),null===this.sub&&"next"===E&&f.complete&&f.complete()}},o.prototype.addObserver=function(f){this.observers.has(f)||(this.deliverLastMessage(f),this.observers.add(f),++this.addCount)},o.prototype.removeObserver=function(f,E){this.observers.delete(f)&&--this.addCount<1&&!E&&this.handlers.complete()},o.prototype.cleanup=function(f){var E=this,j=!1,G=function(){j||(j=!0,E.observers.delete(Z),f())},Z={next:G,error:G,complete:G},le=this.addCount;this.addObserver(Z),this.addCount=le},o}(me);function Gt(S){return Array.isArray(S)&&S.length>0}function On(S){return S.hasOwnProperty("graphQLErrors")}Sn(gr);var ci=function(S){var o="";return(Gt(S.graphQLErrors)||Gt(S.clientErrors))&&(S.graphQLErrors||[]).concat(S.clientErrors||[]).forEach(function(E){o+="".concat(E?E.message:"Error message not found.","\n")}),S.networkError&&(o+="".concat(S.networkError.message,"\n")),o=o.replace(/\n$/,"")},Yt=function(S){function o(f){var E=f.graphQLErrors,j=f.clientErrors,G=f.networkError,Z=f.errorMessage,le=f.extraInfo,ge=S.call(this,Z)||this;return ge.graphQLErrors=E||[],ge.clientErrors=j||[],ge.networkError=G||null,ge.message=Z||ci(ge),ge.extraInfo=le,ge.__proto__=o.prototype,ge}return(0,t.ZT)(o,S),o}(Error),tt=(()=>(function(S){S[S.loading=1]="loading",S[S.setVariables=2]="setVariables",S[S.fetchMore=3]="fetchMore",S[S.refetch=4]="refetch",S[S.poll=6]="poll",S[S.ready=7]="ready",S[S.error=8]="error"}(tt||(tt={})),tt))();function br(S){return!!S&&S<7}var fi=Object.prototype.toString;function An(S){return nn(S)}function nn(S,o){switch(fi.call(S)){case"[object Array]":if((o=o||new Map).has(S))return o.get(S);var f=S.slice(0);return o.set(S,f),f.forEach(function(j,G){f[G]=nn(j,o)}),f;case"[object Object]":if((o=o||new Map).has(S))return o.get(S);var E=Object.create(Object.getPrototypeOf(S));return o.set(S,E),Object.keys(S).forEach(function(j){E[j]=nn(S[j],o)}),E;default:return S}}var li=Object.assign,hi=Object.hasOwnProperty,Lr=function(S){function o(f){var E=f.queryManager,j=f.queryInfo,G=f.options,Z=S.call(this,function(Ve){try{var Qe=Ve._subscription._observer;Qe&&!Qe.error&&(Qe.error=pi)}catch{}var Xe=!Z.observers.size;Z.observers.add(Ve);var We=Z.last;return We&&We.error?Ve.error&&Ve.error(We.error):We&&We.result&&Ve.next&&Ve.next(We.result),Xe&&Z.reobserve().catch(function(){}),function(){Z.observers.delete(Ve)&&!Z.observers.size&&Z.tearDownQuery()}})||this;Z.observers=new Set,Z.subscriptions=new Set,Z.queryInfo=j,Z.queryManager=E,Z.isTornDown=!1;var le=E.defaultOptions.watchQuery,be=(void 0===le?{}:le).fetchPolicy,Ae=void 0===be?"cache-first":be,Pe=G.fetchPolicy,Ce=void 0===Pe?Ae:Pe,ke=G.initialFetchPolicy,je=void 0===ke?"standby"===Ce?Ae:Ce:ke;Z.options=(0,t.pi)((0,t.pi)({},G),{initialFetchPolicy:je,fetchPolicy:Ce}),Z.queryId=j.queryId||E.generateQueryId();var Le=St(Z.query);return Z.queryName=Le&&Le.name&&Le.name.value,Z}return(0,t.ZT)(o,S),Object.defineProperty(o.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),o.prototype.result=function(){var f=this;return new Promise(function(E,j){var G={next:function(le){E(le),f.observers.delete(G),f.observers.size||f.queryManager.removeQuery(f.queryId),setTimeout(function(){Z.unsubscribe()},0)},error:j},Z=f.subscribe(G)})},o.prototype.getCurrentResult=function(f){void 0===f&&(f=!0);var E=this.getLastResult(!0),j=this.queryInfo.networkStatus||E&&E.networkStatus||tt.ready,G=(0,t.pi)((0,t.pi)({},E),{loading:br(j),networkStatus:j}),Z=this.options.fetchPolicy,le=void 0===Z?"cache-first":Z;if("network-only"!==le&&"no-cache"!==le&&"standby"!==le&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var ge=this.queryInfo.getDiff();(ge.complete||this.options.returnPartialData)&&(G.data=ge.result),(0,ut.D)(G.data,{})&&(G.data=void 0),ge.complete?(delete G.partial,ge.complete&&G.networkStatus===tt.loading&&("cache-first"===le||"cache-only"===le)&&(G.networkStatus=tt.ready,G.loading=!1)):G.partial=!0,__DEV__&&!ge.complete&&!this.options.partialRefetch&&!G.loading&&!G.data&&!G.error&&Tn(ge.missing)}return f&&this.updateLastResult(G),G},o.prototype.isDifferentFromLastResult=function(f){return!this.last||!(0,ut.D)(this.last.result,f)},o.prototype.getLast=function(f,E){var j=this.last;if(j&&j[f]&&(!E||(0,ut.D)(j.variables,this.variables)))return j[f]},o.prototype.getLastResult=function(f){return this.getLast("result",f)},o.prototype.getLastError=function(f){return this.getLast("error",f)},o.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},o.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},o.prototype.refetch=function(f){var E,j={pollInterval:0},G=this.options.fetchPolicy;if(j.fetchPolicy="cache-and-network"===G?G:"no-cache"===G?"no-cache":"network-only",__DEV__&&f&&hi.call(f,"variables")){var Z=Ft(this.query),le=Z.variableDefinitions;(!le||!le.some(function(ge){return"variables"===ge.variable.name.value}))&&__DEV__&&a.warn("Called refetch(".concat(JSON.stringify(f),") for query ").concat((null===(E=Z.name)||void 0===E?void 0:E.value)||JSON.stringify(Z),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return f&&!(0,ut.D)(this.options.variables,f)&&(j.variables=this.options.variables=(0,t.pi)((0,t.pi)({},this.options.variables),f)),this.queryInfo.resetLastWrite(),this.reobserve(j,tt.refetch)},o.prototype.fetchMore=function(f){var E=this,j=(0,t.pi)((0,t.pi)({},f.query?f:(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({},this.options),{query:this.query}),f),{variables:(0,t.pi)((0,t.pi)({},this.options.variables),f.variables)})),{fetchPolicy:"no-cache"}),G=this.queryManager.generateQueryId(),Z=this.queryInfo,le=Z.networkStatus;Z.networkStatus=tt.fetchMore,j.notifyOnNetworkStatusChange&&this.observe();var ge=new Set;return this.queryManager.fetchQuery(G,j,tt.fetchMore).then(function(be){return E.queryManager.removeQuery(G),Z.networkStatus===tt.fetchMore&&(Z.networkStatus=le),E.queryManager.cache.batch({update:function(Ae){var Pe=f.updateQuery;Pe?Ae.updateQuery({query:E.query,variables:E.variables,returnPartialData:!0,optimistic:!1},function(Ce){return Pe(Ce,{fetchMoreResult:be.data,variables:j.variables})}):Ae.writeQuery({query:j.query,variables:j.variables,data:be.data})},onWatchUpdated:function(Ae){ge.add(Ae.query)}}),be}).finally(function(){ge.has(E.query)||xn(E)})},o.prototype.subscribeToMore=function(f){var E=this,j=this.queryManager.startGraphQLSubscription({query:f.document,variables:f.variables,context:f.context}).subscribe({next:function(G){var Z=f.updateQuery;Z&&E.updateQuery(function(le,ge){return Z(le,{subscriptionData:G,variables:ge.variables})})},error:function(G){f.onError?f.onError(G):__DEV__&&a.error("Unhandled GraphQL subscription error",G)}});return this.subscriptions.add(j),function(){E.subscriptions.delete(j)&&j.unsubscribe()}},o.prototype.setOptions=function(f){return this.reobserve(f)},o.prototype.setVariables=function(f){return(0,ut.D)(this.variables,f)?this.observers.size?this.result():Promise.resolve():(this.options.variables=f,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:f},tt.setVariables):Promise.resolve())},o.prototype.updateQuery=function(f){var E=this.queryManager,G=f(E.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});G&&(E.cache.writeQuery({query:this.options.query,data:G,variables:this.variables}),E.broadcastQueries())},o.prototype.startPolling=function(f){this.options.pollInterval=f,this.updatePolling()},o.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},o.prototype.applyNextFetchPolicy=function(f,E){if(E.nextFetchPolicy){var j=E.fetchPolicy,G=void 0===j?"cache-first":j,Z=E.initialFetchPolicy,le=void 0===Z?G:Z;"standby"===G||(E.fetchPolicy="function"==typeof E.nextFetchPolicy?E.nextFetchPolicy(G,{reason:f,options:E,observable:this,initialFetchPolicy:le}):"variables-changed"===f?le:E.nextFetchPolicy)}return E.fetchPolicy},o.prototype.fetch=function(f,E){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,f,E)},o.prototype.updatePolling=function(){var f=this;if(!this.queryManager.ssrMode){var j=this.pollingInfo,G=this.options.pollInterval;if(!G)return void(j&&(clearTimeout(j.timeout),delete this.pollingInfo));if(!j||j.interval!==G){__DEV__?a(G,"Attempted to start a polling query without a polling interval."):a(G,10),(j||(this.pollingInfo={})).interval=G;var le=function(){f.pollingInfo&&(br(f.queryInfo.networkStatus)?ge():f.reobserve({fetchPolicy:"network-only"},tt.poll).then(ge,ge))},ge=function(){var be=f.pollingInfo;be&&(clearTimeout(be.timeout),be.timeout=setTimeout(le,be.interval))};ge()}}},o.prototype.updateLastResult=function(f,E){return void 0===E&&(E=this.variables),this.last=(0,t.pi)((0,t.pi)({},this.last),{result:this.queryManager.assumeImmutableResults?f:An(f),variables:E}),Gt(f.errors)||delete this.last.error,this.last},o.prototype.reobserve=function(f,E){var j=this;this.isTornDown=!1;var G=E===tt.refetch||E===tt.fetchMore||E===tt.poll,Z=this.options.variables,le=this.options.fetchPolicy,ge=zt(this.options,f||{}),be=G?ge:li(this.options,ge);G||(this.updatePolling(),f&&f.variables&&!(0,ut.D)(f.variables,Z)&&"standby"!==be.fetchPolicy&&be.fetchPolicy===le&&(this.applyNextFetchPolicy("variables-changed",be),void 0===E&&(E=tt.setVariables)));var Ae=be.variables&&(0,t.pi)({},be.variables),Pe=this.fetch(be,E),Ce={next:function(ke){j.reportResult(ke,Ae)},error:function(ke){j.reportError(ke,Ae)}};return G||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=Pe,this.observer=Ce),Pe.addObserver(Ce),Pe.promise},o.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},o.prototype.reportResult=function(f,E){var j=this.getLastError();(j||this.isDifferentFromLastResult(f))&&((j||!f.partial||this.options.returnPartialData)&&this.updateLastResult(f,E),mr(this.observers,"next",f))},o.prototype.reportError=function(f,E){var j=(0,t.pi)((0,t.pi)({},this.getLastResult()),{error:f,errors:f.graphQLErrors,networkStatus:tt.error,loading:!1});this.updateLastResult(j,E),mr(this.observers,"error",this.last.error=f)},o.prototype.hasObservers=function(){return this.observers.size>0},o.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(f){return f.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},o}(me);function xn(S){var o=S.options,f=o.fetchPolicy,E=o.nextFetchPolicy;return"cache-and-network"===f||"network-only"===f?S.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=E,"function"==typeof E?E.apply(this,arguments):f}}):S.reobserve()}function pi(S){__DEV__&&a.error("Unhandled error",S.message,S.stack)}function Tn(S){__DEV__&&S&&__DEV__&&a.debug("Missing cache result fields: ".concat(JSON.stringify(S)),S)}Sn(Lr);var ir=p(40245),an=new(p(62966).g7),Cn=new WeakMap;function Er(S){var o=Cn.get(S);return o||Cn.set(S,o={vars:new Set,dep:(0,ir.dP)()}),o}function Rn(S){Er(S).vars.forEach(function(o){return o.forgetCache(S)})}function In(S){var o=new Set,f=new Set,E=function(G){if(arguments.length>0){if(S!==G){S=G,o.forEach(function(ge){Er(ge).dep.dirty(E),function yi(S){S.broadcastWatches&&S.broadcastWatches()}(ge)});var Z=Array.from(f);f.clear(),Z.forEach(function(ge){return ge(S)})}}else{var le=an.getValue();le&&(j(le),Er(le).dep(E))}return S};E.onNextChange=function(G){return f.add(G),function(){f.delete(G)}};var j=E.attachCache=function(G){return o.add(G),Er(G).vars.add(E),E};return E.forgetCache=function(G){return o.delete(G)},E}var Pn=function(){function S(o){var E=o.client,j=o.resolvers,G=o.fragmentMatcher;this.cache=o.cache,E&&(this.client=E),j&&this.addResolvers(j),G&&this.setFragmentMatcher(G)}return S.prototype.addResolvers=function(o){var f=this;this.resolvers=this.resolvers||{},Array.isArray(o)?o.forEach(function(E){f.resolvers=hr(f.resolvers,E)}):this.resolvers=hr(this.resolvers,o)},S.prototype.setResolvers=function(o){this.resolvers={},this.addResolvers(o)},S.prototype.getResolvers=function(){return this.resolvers||{}},S.prototype.runResolvers=function(o){var f=o.document,E=o.remoteResult,j=o.context,G=o.variables,Z=o.onlyRunForcedResolvers,le=void 0!==Z&&Z;return(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(ge){return f?[2,this.resolveDocument(f,E.data,j,G,this.fragmentMatcher,le).then(function(be){return(0,t.pi)((0,t.pi)({},E),{data:be.result})})]:[2,E]})})},S.prototype.setFragmentMatcher=function(o){this.fragmentMatcher=o},S.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},S.prototype.clientQuery=function(o){return fr(["client"],o)&&this.resolvers?o:null},S.prototype.serverQuery=function(o){return function ui(S){Rt(S);var o=dt([{test:function(f){return"client"===f.name.value},remove:!0}],S);return o&&(o=(0,_t.Vn)(o,{FragmentDefinition:{enter:function(f){if(f.selectionSet&&f.selectionSet.selections.every(function(j){return pt(j)&&"__typename"===j.name.value}))return null}}})),o}(o)},S.prototype.prepareContext=function(o){var f=this.cache;return(0,t.pi)((0,t.pi)({},o),{cache:f,getCacheKey:function(E){return f.identify(E)}})},S.prototype.addExportedVariables=function(o,f,E){return void 0===f&&(f={}),void 0===E&&(E={}),(0,t.mG)(this,void 0,void 0,function(){return(0,t.Jh)(this,function(j){return o?[2,this.resolveDocument(o,this.buildRootValueFromCache(o,f)||{},this.prepareContext(E),f).then(function(G){return(0,t.pi)((0,t.pi)({},f),G.exportedVariables)})]:[2,(0,t.pi)({},f)]})})},S.prototype.shouldForceResolvers=function(o){var f=!1;return(0,_t.Vn)(o,{Directive:{enter:function(E){if("client"===E.name.value&&E.arguments&&(f=E.arguments.some(function(j){return"always"===j.name.value&&"BooleanValue"===j.value.kind&&!0===j.value.value})))return _t.$_}}}),f},S.prototype.buildRootValueFromCache=function(o,f){return this.cache.diff({query:si(o),variables:f,returnPartialData:!0,optimistic:!1}).result},S.prototype.resolveDocument=function(o,f,E,j,G,Z){return void 0===E&&(E={}),void 0===j&&(j={}),void 0===G&&(G=function(){return!0}),void 0===Z&&(Z=!1),(0,t.mG)(this,void 0,void 0,function(){var le,ge,be,Ae,Pe,Ce,ke,je,Le;return(0,t.Jh)(this,function(Ve){return le=Ct(o),ge=Tt(o),be=ie(ge),Pe=(Ae=le.operation)?Ae.charAt(0).toUpperCase()+Ae.slice(1):"Query",ke=(Ce=this).cache,je=Ce.client,Le={fragmentMap:be,context:(0,t.pi)((0,t.pi)({},E),{cache:ke,client:je}),variables:j,fragmentMatcher:G,defaultOperationType:Pe,exportedVariables:{},onlyRunForcedResolvers:Z},[2,this.resolveSelectionSet(le.selectionSet,f,Le).then(function(Qe){return{result:Qe,exportedVariables:Le.exportedVariables}})]})})},S.prototype.resolveSelectionSet=function(o,f,E){return(0,t.mG)(this,void 0,void 0,function(){var j,G,Z,le,be=this;return(0,t.Jh)(this,function(Ae){return j=E.fragmentMap,G=E.context,Z=E.variables,le=[f],[2,Promise.all(o.selections.map(function(Pe){return(0,t.mG)(be,void 0,void 0,function(){var Ce;return(0,t.Jh)(this,function(je){return Ht(Pe,Z)?pt(Pe)?[2,this.resolveField(Pe,f,E).then(function(Le){var Ve;typeof Le<"u"&&le.push(((Ve={})[ct(Pe)]=Le,Ve))})]:(yt(Pe)?Ce=Pe:(Ce=j[Pe.name.value],__DEV__?a(Ce,"No fragment named ".concat(Pe.name.value)):a(Ce,9)),Ce&&Ce.typeCondition&&E.fragmentMatcher(f,Ce.typeCondition.name.value,G)?[2,this.resolveSelectionSet(Ce.selectionSet,f,E).then(function(Le){le.push(Le)})]:[2]):[2]})})})).then(function(){return Bt(le)})]})})},S.prototype.resolveField=function(o,f,E){return(0,t.mG)(this,void 0,void 0,function(){var j,G,Z,le,ge,be,Ae,Pe,Ce,ke=this;return(0,t.Jh)(this,function(je){return j=E.variables,G=o.name.value,Z=ct(o),le=G!==Z,ge=f[Z]||f[G],be=Promise.resolve(ge),(!E.onlyRunForcedResolvers||this.shouldForceResolvers(o))&&(Ae=f.__typename||E.defaultOperationType,(Pe=this.resolvers&&this.resolvers[Ae])&&(Ce=Pe[le?G:Z])&&(be=Promise.resolve(an.withValue(this.cache,Ce,[f,Ke(o,j),E.context,{field:o,fragmentMap:E.fragmentMap}])))),[2,be.then(function(Le){return void 0===Le&&(Le=ge),o.directives&&o.directives.forEach(function(Ve){"export"===Ve.name.value&&Ve.arguments&&Ve.arguments.forEach(function(Qe){"as"===Qe.name.value&&"StringValue"===Qe.value.kind&&(E.exportedVariables[Qe.value.value]=Le)})}),o.selectionSet&&null!=Le?Array.isArray(Le)?ke.resolveSubSelectedArray(o,Le,E):o.selectionSet?ke.resolveSelectionSet(o.selectionSet,Le,E):void 0:Le})]})})},S.prototype.resolveSubSelectedArray=function(o,f,E){var j=this;return Promise.all(f.map(function(G){return null===G?null:Array.isArray(G)?j.resolveSubSelectedArray(o,G,E):o.selectionSet?j.resolveSelectionSet(o.selectionSet,G,E):void 0}))},S}(),ar=new(Pt?WeakMap:Map);function on(S,o){var f=S[o];"function"==typeof f&&(S[o]=function(){return ar.set(S,(ar.get(S)+1)%1e15),f.apply(this,arguments)})}function Dn(S){S.notifyTimeout&&(clearTimeout(S.notifyTimeout),S.notifyTimeout=void 0)}var sn=function(){function S(o,f){void 0===f&&(f=o.generateQueryId()),this.queryId=f,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var E=this.cache=o.cache;ar.has(E)||(ar.set(E,0),on(E,"evict"),on(E,"modify"),on(E,"reset"))}return S.prototype.init=function(o){var f=o.networkStatus||tt.loading;return this.variables&&this.networkStatus!==tt.loading&&!(0,ut.D)(this.variables,o.variables)&&(f=tt.setVariables),(0,ut.D)(o.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:o.document,variables:o.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:f}),o.observableQuery&&this.setObservableQuery(o.observableQuery),o.lastRequestId&&(this.lastRequestId=o.lastRequestId),this},S.prototype.reset=function(){Dn(this),this.lastDiff=void 0,this.dirty=!1},S.prototype.getDiff=function(o){void 0===o&&(o=this.variables);var f=this.getDiffOptions(o);if(this.lastDiff&&(0,ut.D)(f,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=o);var E=this.observableQuery;if(E&&"no-cache"===E.options.fetchPolicy)return{complete:!1};var j=this.cache.diff(f);return this.updateLastDiff(j,f),j},S.prototype.updateLastDiff=function(o,f){this.lastDiff=o?{diff:o,options:f||this.getDiffOptions()}:void 0},S.prototype.getDiffOptions=function(o){var f;return void 0===o&&(o=this.variables),{query:this.document,variables:o,returnPartialData:!0,optimistic:!0,canonizeResults:null===(f=this.observableQuery)||void 0===f?void 0:f.options.canonizeResults}},S.prototype.setDiff=function(o){var f=this,E=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(o),!this.dirty&&!(0,ut.D)(E&&E.result,o&&o.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return f.notify()},0)))},S.prototype.setObservableQuery=function(o){var f=this;o!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=o,o?(o.queryInfo=this,this.listeners.add(this.oqListener=function(){f.getDiff().fromOptimisticTransaction?o.observe():xn(o)})):delete this.oqListener)},S.prototype.notify=function(){var o=this;Dn(this),this.shouldNotify()&&this.listeners.forEach(function(f){return f(o)}),this.dirty=!1},S.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(br(this.networkStatus)&&this.observableQuery){var o=this.observableQuery.options.fetchPolicy;if("cache-only"!==o&&"cache-and-network"!==o)return!1}return!0},S.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=S.prototype.cancel,this.subscriptions.forEach(function(f){return f.unsubscribe()});var o=this.observableQuery;o&&o.stopPolling()}},S.prototype.cancel=function(){},S.prototype.updateWatch=function(o){var f=this;void 0===o&&(o=this.variables);var E=this.observableQuery;if(!E||"no-cache"!==E.options.fetchPolicy){var j=(0,t.pi)((0,t.pi)({},this.getDiffOptions(o)),{watcher:this,callback:function(G){return f.setDiff(G)}});(!this.lastWatch||!(0,ut.D)(j,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=j))}},S.prototype.resetLastWrite=function(){this.lastWrite=void 0},S.prototype.shouldWrite=function(o,f){var E=this.lastWrite;return!(E&&E.dmCount===ar.get(this.cache)&&(0,ut.D)(f,E.variables)&&(0,ut.D)(o.data,E.result.data))},S.prototype.markResult=function(o,f,E){var j=this;this.graphQLErrors=Gt(o.errors)?o.errors:[],this.reset(),"no-cache"===f.fetchPolicy?this.updateLastDiff({result:o.data,complete:!0},this.getDiffOptions(f.variables)):0!==E&&(un(o,f.errorPolicy)?this.cache.performTransaction(function(G){if(j.shouldWrite(o,f.variables))G.writeQuery({query:j.document,data:o.data,variables:f.variables,overwrite:1===E}),j.lastWrite={result:o,variables:f.variables,dmCount:ar.get(j.cache)};else if(j.lastDiff&&j.lastDiff.diff.complete)return void(o.data=j.lastDiff.diff.result);var Z=j.getDiffOptions(f.variables),le=G.diff(Z);j.stopped||j.updateWatch(f.variables),j.updateLastDiff(le,Z),le.complete&&(o.data=le.result)}):this.lastWrite=void 0)},S.prototype.markReady=function(){return this.networkError=null,this.networkStatus=tt.ready},S.prototype.markError=function(o){return this.networkStatus=tt.error,this.lastWrite=void 0,this.reset(),o.graphQLErrors&&(this.graphQLErrors=o.graphQLErrors),o.networkError&&(this.networkError=o.networkError),o},S}();function un(S,o){void 0===o&&(o="none");var f="ignore"===o||"all"===o,E=!Se(S);return!E&&f&&S.data&&(E=!0),E}var mi=Object.prototype.hasOwnProperty,gi=function(){function S(o){var f=o.cache,E=o.link,j=o.defaultOptions,G=o.queryDeduplication,Z=void 0!==G&&G,le=o.onBroadcast,ge=o.ssrMode,be=void 0!==ge&&ge,Ae=o.clientAwareness,Pe=void 0===Ae?{}:Ae,Ce=o.localState,ke=o.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Pt?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=f,this.link=E,this.defaultOptions=j||Object.create(null),this.queryDeduplication=Z,this.clientAwareness=Pe,this.localState=Ce||new Pn({cache:f}),this.ssrMode=be,this.assumeImmutableResults=!!ke,(this.onBroadcast=le)&&(this.mutationStore=Object.create(null))}return S.prototype.stop=function(){var o=this;this.queries.forEach(function(f,E){o.stopQueryNoBroadcast(E)}),this.cancelPendingFetches(__DEV__?new n("QueryManager stopped while query was in flight"):new n(11))},S.prototype.cancelPendingFetches=function(o){this.fetchCancelFns.forEach(function(f){return f(o)}),this.fetchCancelFns.clear()},S.prototype.mutate=function(o){var f,E,j=o.mutation,G=o.variables,Z=o.optimisticResponse,le=o.updateQueries,ge=o.refetchQueries,be=void 0===ge?[]:ge,Ae=o.awaitRefetchQueries,Pe=void 0!==Ae&&Ae,Ce=o.update,ke=o.onQueryUpdated,je=o.fetchPolicy,Le=void 0===je?(null===(f=this.defaultOptions.mutate)||void 0===f?void 0:f.fetchPolicy)||"network-only":je,Ve=o.errorPolicy,Qe=void 0===Ve?(null===(E=this.defaultOptions.mutate)||void 0===E?void 0:E.errorPolicy)||"none":Ve,Xe=o.keepRootFields,We=o.context;return(0,t.mG)(this,void 0,void 0,function(){var He,Ze,Ye;return(0,t.Jh)(this,function(Je){switch(Je.label){case 0:return __DEV__?a(j,"mutation option is required. You must specify your GraphQL document in the mutation option."):a(j,12),__DEV__?a("network-only"===Le||"no-cache"===Le,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):a("network-only"===Le||"no-cache"===Le,13),He=this.generateMutationId(),j=this.transform(j).document,G=this.getVariables(j,G),this.transform(j).hasClientExports?[4,this.localState.addExportedVariables(j,G,We)]:[3,2];case 1:G=Je.sent(),Je.label=2;case 2:return Ze=this.mutationStore&&(this.mutationStore[He]={mutation:j,variables:G,loading:!0,error:null}),Z&&this.markMutationOptimistic(Z,{mutationId:He,document:j,variables:G,fetchPolicy:Le,errorPolicy:Qe,context:We,updateQueries:le,update:Ce,keepRootFields:Xe}),this.broadcastQueries(),Ye=this,[2,new Promise(function(rt,gt){return we(Ye.getObservableFromLink(j,(0,t.pi)((0,t.pi)({},We),{optimisticResponse:Z}),G,!1),function(ot){if(Se(ot)&&"none"===Qe)throw new Yt({graphQLErrors:ot.errors});Ze&&(Ze.loading=!1,Ze.error=null);var kt=(0,t.pi)({},ot);return"function"==typeof be&&(be=be(kt)),"ignore"===Qe&&Se(kt)&&delete kt.errors,Ye.markMutationResult({mutationId:He,result:kt,document:j,variables:G,fetchPolicy:Le,errorPolicy:Qe,context:We,update:Ce,updateQueries:le,awaitRefetchQueries:Pe,refetchQueries:be,removeOptimistic:Z?He:void 0,onQueryUpdated:ke,keepRootFields:Xe})}).subscribe({next:function(ot){Ye.broadcastQueries(),rt(ot)},error:function(ot){Ze&&(Ze.loading=!1,Ze.error=ot),Z&&Ye.cache.removeOptimistic(He),Ye.broadcastQueries(),gt(ot instanceof Yt?ot:new Yt({networkError:ot}))}})})]}})})},S.prototype.markMutationResult=function(o,f){var E=this;void 0===f&&(f=this.cache);var j=o.result,G=[],Z="no-cache"===o.fetchPolicy;if(!Z&&un(j,o.errorPolicy)){G.push({result:j.data,dataId:"ROOT_MUTATION",query:o.document,variables:o.variables});var le=o.updateQueries;le&&this.queries.forEach(function(be,Ae){var Pe=be.observableQuery,Ce=Pe&&Pe.queryName;if(Ce&&mi.call(le,Ce)){var ke=le[Ce],je=E.queries.get(Ae),Le=je.document,Ve=je.variables,Qe=f.diff({query:Le,variables:Ve,returnPartialData:!0,optimistic:!1}),Xe=Qe.result;if(Qe.complete&&Xe){var He=ke(Xe,{mutationResult:j,queryName:Le&&ft(Le)||void 0,queryVariables:Ve});He&&G.push({result:He,dataId:"ROOT_QUERY",query:Le,variables:Ve})}}})}if(G.length>0||o.refetchQueries||o.update||o.onQueryUpdated||o.removeOptimistic){var ge=[];if(this.refetchQueries({updateCache:function(be){Z||G.forEach(function(Ce){return be.write(Ce)});var Ae=o.update;if(Ae){if(!Z){var Pe=be.diff({id:"ROOT_MUTATION",query:E.transform(o.document).asQuery,variables:o.variables,optimistic:!1,returnPartialData:!0});Pe.complete&&(j=(0,t.pi)((0,t.pi)({},j),{data:Pe.result}))}Ae(be,j,{context:o.context,variables:o.variables})}!Z&&!o.keepRootFields&&be.modify({id:"ROOT_MUTATION",fields:function(Ce,ke){return"__typename"===ke.fieldName?Ce:ke.DELETE}})},include:o.refetchQueries,optimistic:!1,removeOptimistic:o.removeOptimistic,onQueryUpdated:o.onQueryUpdated||null}).forEach(function(be){return ge.push(be)}),o.awaitRefetchQueries||o.onQueryUpdated)return Promise.all(ge).then(function(){return j})}return Promise.resolve(j)},S.prototype.markMutationOptimistic=function(o,f){var E=this,j="function"==typeof o?o(f.variables):o;return this.cache.recordOptimisticTransaction(function(G){try{E.markMutationResult((0,t.pi)((0,t.pi)({},f),{result:{data:j}}),G)}catch(Z){__DEV__&&a.error(Z)}},f.mutationId)},S.prototype.fetchQuery=function(o,f,E){return this.fetchQueryObservable(o,f,E).promise},S.prototype.getQueryStore=function(){var o=Object.create(null);return this.queries.forEach(function(f,E){o[E]={variables:f.variables,networkStatus:f.networkStatus,networkError:f.networkError,graphQLErrors:f.graphQLErrors}}),o},S.prototype.resetErrors=function(o){var f=this.queries.get(o);f&&(f.networkError=void 0,f.graphQLErrors=[])},S.prototype.transform=function(o){var f=this.transformCache;if(!f.has(o)){var E=this.cache.transformDocument(o),j=function xt(S){return dt([lt],Rt(S))}(this.cache.transformForLink(E)),G=this.localState.clientQuery(E),Z=j&&this.localState.serverQuery(j),le={document:E,hasClientExports:$r(E),hasForcedResolvers:this.localState.shouldForceResolvers(E),clientQuery:G,serverQuery:Z,defaultVars:It(St(E)),asQuery:(0,t.pi)((0,t.pi)({},E),{definitions:E.definitions.map(function(be){return"OperationDefinition"===be.kind&&"query"!==be.operation?(0,t.pi)((0,t.pi)({},be),{operation:"query"}):be})})},ge=function(be){be&&!f.has(be)&&f.set(be,le)};ge(o),ge(E),ge(G),ge(Z)}return f.get(o)},S.prototype.getVariables=function(o,f){return(0,t.pi)((0,t.pi)({},this.transform(o).defaultVars),f)},S.prototype.watchQuery=function(o){typeof(o=(0,t.pi)((0,t.pi)({},o),{variables:this.getVariables(o.query,o.variables)})).notifyOnNetworkStatusChange>"u"&&(o.notifyOnNetworkStatusChange=!1);var f=new sn(this),E=new Lr({queryManager:this,queryInfo:f,options:o});return this.queries.set(E.queryId,f),f.init({document:E.query,observableQuery:E,variables:E.variables}),E},S.prototype.query=function(o,f){var E=this;return void 0===f&&(f=this.generateQueryId()),__DEV__?a(o.query,"query option is required. You must specify your GraphQL document in the query option."):a(o.query,14),__DEV__?a("Document"===o.query.kind,'You must wrap the query string in a "gql" tag.'):a("Document"===o.query.kind,15),__DEV__?a(!o.returnPartialData,"returnPartialData option only supported on watchQuery."):a(!o.returnPartialData,16),__DEV__?a(!o.pollInterval,"pollInterval option only supported on watchQuery."):a(!o.pollInterval,17),this.fetchQuery(f,o).finally(function(){return E.stopQuery(f)})},S.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},S.prototype.generateRequestId=function(){return this.requestIdCounter++},S.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},S.prototype.stopQueryInStore=function(o){this.stopQueryInStoreNoBroadcast(o),this.broadcastQueries()},S.prototype.stopQueryInStoreNoBroadcast=function(o){var f=this.queries.get(o);f&&f.stop()},S.prototype.clearStore=function(o){return void 0===o&&(o={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new n("Store reset while query was in flight (not completed in link chain)"):new n(18)),this.queries.forEach(function(f){f.observableQuery?f.networkStatus=tt.loading:f.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(o)},S.prototype.getObservableQueries=function(o){var f=this;void 0===o&&(o="active");var E=new Map,j=new Map,G=new Set;return Array.isArray(o)&&o.forEach(function(Z){"string"==typeof Z?j.set(Z,!1):function F(S){return De(S)&&"Document"===S.kind&&Array.isArray(S.definitions)}(Z)?j.set(f.transform(Z).document,!1):De(Z)&&Z.query&&G.add(Z)}),this.queries.forEach(function(Z,le){var ge=Z.observableQuery,be=Z.document;if(ge){if("all"===o)return void E.set(le,ge);var Ae=ge.queryName;if("standby"===ge.options.fetchPolicy||"active"===o&&!ge.hasObservers())return;("active"===o||Ae&&j.has(Ae)||be&&j.has(be))&&(E.set(le,ge),Ae&&j.set(Ae,!0),be&&j.set(be,!0))}}),G.size&&G.forEach(function(Z){var le=rn("legacyOneTimeQuery"),ge=f.getQuery(le).init({document:Z.query,variables:Z.variables}),be=new Lr({queryManager:f,queryInfo:ge,options:(0,t.pi)((0,t.pi)({},Z),{fetchPolicy:"network-only"})});a(be.queryId===le),ge.setObservableQuery(be),E.set(le,be)}),__DEV__&&j.size&&j.forEach(function(Z,le){Z||__DEV__&&a.warn("Unknown query ".concat("string"==typeof le?"named ":"").concat(JSON.stringify(le,null,2)," requested in refetchQueries options.include array"))}),E},S.prototype.reFetchObservableQueries=function(o){var f=this;void 0===o&&(o=!1);var E=[];return this.getObservableQueries(o?"all":"active").forEach(function(j,G){var Z=j.options.fetchPolicy;j.resetLastResults(),(o||"standby"!==Z&&"cache-only"!==Z)&&E.push(j.refetch()),f.getQuery(G).setDiff(null)}),this.broadcastQueries(),Promise.all(E)},S.prototype.setObservableQuery=function(o){this.getQuery(o.queryId).setObservableQuery(o)},S.prototype.startGraphQLSubscription=function(o){var f=this,E=o.query,j=o.fetchPolicy,G=o.errorPolicy,Z=o.variables,le=o.context,ge=void 0===le?{}:le;E=this.transform(E).document,Z=this.getVariables(E,Z);var be=function(Pe){return f.getObservableFromLink(E,ge,Pe).map(function(Ce){if("no-cache"!==j&&(un(Ce,G)&&f.cache.write({query:E,result:Ce.data,dataId:"ROOT_SUBSCRIPTION",variables:Pe}),f.broadcastQueries()),Se(Ce))throw new Yt({graphQLErrors:Ce.errors});return Ce})};if(this.transform(E).hasClientExports){var Ae=this.localState.addExportedVariables(E,Z,ge).then(be);return new me(function(Pe){var Ce=null;return Ae.then(function(ke){return Ce=ke.subscribe(Pe)},Pe.error),function(){return Ce&&Ce.unsubscribe()}})}return be(Z)},S.prototype.stopQuery=function(o){this.stopQueryNoBroadcast(o),this.broadcastQueries()},S.prototype.stopQueryNoBroadcast=function(o){this.stopQueryInStoreNoBroadcast(o),this.removeQuery(o)},S.prototype.removeQuery=function(o){this.fetchCancelFns.delete(o),this.queries.has(o)&&(this.getQuery(o).stop(),this.queries.delete(o))},S.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(o){return o.notify()})},S.prototype.getLocalState=function(){return this.localState},S.prototype.getObservableFromLink=function(o,f,E,j){var Z,G=this;void 0===j&&(j=null!==(Z=f?.queryDeduplication)&&void 0!==Z?Z:this.queryDeduplication);var le,ge=this.transform(o).serverQuery;if(ge){var Ae=this.inFlightLinkObservables,Pe=this.link,Ce={query:ge,variables:E,operationName:ft(ge)||void 0,context:this.prepareContext((0,t.pi)((0,t.pi)({},f),{forceFetch:!j}))};if(f=Ce.context,j){var ke=Ae.get(ge)||new Map;Ae.set(ge,ke);var je=J(E);if(!(le=ke.get(je))){var Le=new gr([Nt(Pe,Ce)]);ke.set(je,le=Le),Le.cleanup(function(){ke.delete(je)&&ke.size<1&&Ae.delete(ge)})}}else le=new gr([Nt(Pe,Ce)])}else le=new gr([me.of({data:{}})]),f=this.prepareContext(f);var Ve=this.transform(o).clientQuery;return Ve&&(le=we(le,function(Qe){return G.localState.runResolvers({document:Ve,remoteResult:Qe,context:f,variables:E})})),le},S.prototype.getResultsFromLink=function(o,f,E){var j=o.lastRequestId=this.generateRequestId();return we(this.getObservableFromLink(o.document,E.context,E.variables),function(G){var Z=Gt(G.errors);if(j>=o.lastRequestId){if(Z&&"none"===E.errorPolicy)throw o.markError(new Yt({graphQLErrors:G.errors}));o.markResult(G,E,f),o.markReady()}var le={data:G.data,loading:!1,networkStatus:tt.ready};return Z&&"ignore"!==E.errorPolicy&&(le.errors=G.errors,le.networkStatus=tt.error),le},function(G){var Z=On(G)?G:new Yt({networkError:G});throw j>=o.lastRequestId&&o.markError(Z),Z})},S.prototype.fetchQueryObservable=function(o,f,E){var j=this;void 0===E&&(E=tt.loading);var G=this.transform(f.query).document,Z=this.getVariables(G,f.variables),le=this.getQuery(o),ge=this.defaultOptions.watchQuery,be=f.fetchPolicy,Pe=f.errorPolicy,ke=f.returnPartialData,Le=f.notifyOnNetworkStatusChange,Qe=f.context,We=Object.assign({},f,{query:G,variables:Z,fetchPolicy:void 0===be?ge&&ge.fetchPolicy||"cache-first":be,errorPolicy:void 0===Pe?ge&&ge.errorPolicy||"none":Pe,returnPartialData:void 0!==ke&&ke,notifyOnNetworkStatusChange:void 0!==Le&&Le,context:void 0===Qe?{}:Qe}),He=function(Je){We.variables=Je;var rt=j.fetchQueryByPolicy(le,We,E);return"standby"!==We.fetchPolicy&&rt.length>0&&le.observableQuery&&le.observableQuery.applyNextFetchPolicy("after-fetch",f),rt},Ze=function(){return j.fetchCancelFns.delete(o)};this.fetchCancelFns.set(o,function(Je){Ze(),setTimeout(function(){return Ye.cancel(Je)})});var Ye=new gr(this.transform(We.query).hasClientExports?this.localState.addExportedVariables(We.query,We.variables,We.context).then(He):He(We.variables));return Ye.promise.then(Ze,Ze),Ye},S.prototype.refetchQueries=function(o){var f=this,E=o.updateCache,j=o.include,G=o.optimistic,Z=void 0!==G&&G,le=o.removeOptimistic,ge=void 0===le?Z?rn("refetchQueries"):void 0:le,be=o.onQueryUpdated,Ae=new Map;j&&this.getObservableQueries(j).forEach(function(Ce,ke){Ae.set(ke,{oq:Ce,lastDiff:f.getQuery(ke).getDiff()})});var Pe=new Map;return E&&this.cache.batch({update:E,optimistic:Z&&ge||!1,removeOptimistic:ge,onWatchUpdated:function(Ce,ke,je){var Le=Ce.watcher instanceof sn&&Ce.watcher.observableQuery;if(Le){if(be){Ae.delete(Le.queryId);var Ve=be(Le,ke,je);return!0===Ve&&(Ve=Le.refetch()),!1!==Ve&&Pe.set(Le,Ve),Ve}null!==be&&Ae.set(Le.queryId,{oq:Le,lastDiff:je,diff:ke})}}}),Ae.size&&Ae.forEach(function(Ce,ke){var Qe,je=Ce.oq,Le=Ce.lastDiff,Ve=Ce.diff;if(be){if(!Ve){var Xe=je.queryInfo;Xe.reset(),Ve=Xe.getDiff()}Qe=be(je,Ve,Le)}(!be||!0===Qe)&&(Qe=je.refetch()),!1!==Qe&&Pe.set(je,Qe),ke.indexOf("legacyOneTimeQuery")>=0&&f.stopQueryNoBroadcast(ke)}),ge&&this.cache.removeOptimistic(ge),Pe},S.prototype.fetchQueryByPolicy=function(o,f,E){var j=this,G=f.query,Z=f.variables,le=f.fetchPolicy,ge=f.refetchWritePolicy,be=f.errorPolicy,Ae=f.returnPartialData,Pe=f.context,Ce=f.notifyOnNetworkStatusChange,ke=o.networkStatus;o.init({document:this.transform(G).document,variables:Z,networkStatus:E});var je=function(){return o.getDiff(Z)},Le=function(He,Ze){void 0===Ze&&(Ze=o.networkStatus||tt.loading);var Ye=He.result;__DEV__&&!Ae&&!(0,ut.D)(Ye,{})&&Tn(He.missing);var Je=function(rt){return me.of((0,t.pi)({data:rt,loading:br(Ze),networkStatus:Ze},He.complete?null:{partial:!0}))};return Ye&&j.transform(G).hasForcedResolvers?j.localState.runResolvers({document:G,remoteResult:{data:Ye},context:Pe,variables:Z,onlyRunForcedResolvers:!0}).then(function(rt){return Je(rt.data||void 0)}):Je(Ye)},Ve="no-cache"===le?0:E===tt.refetch&&"merge"!==ge?1:2,Qe=function(){return j.getResultsFromLink(o,Ve,{variables:Z,context:Pe,fetchPolicy:le,errorPolicy:be})},Xe=Ce&&"number"==typeof ke&&ke!==E&&br(E);switch(le){default:case"cache-first":return(We=je()).complete?[Le(We,o.markReady())]:Ae||Xe?[Le(We),Qe()]:[Qe()];case"cache-and-network":var We;return(We=je()).complete||Ae||Xe?[Le(We),Qe()]:[Qe()];case"cache-only":return[Le(je(),o.markReady())];case"network-only":return Xe?[Le(je()),Qe()]:[Qe()];case"no-cache":return Xe?[Le(o.getDiff()),Qe()]:[Qe()];case"standby":return[]}},S.prototype.getQuery=function(o){return o&&!this.queries.has(o)&&this.queries.set(o,new sn(this,o)),this.queries.get(o)},S.prototype.prepareContext=function(o){void 0===o&&(o={});var f=this.localState.prepareContext(o);return(0,t.pi)((0,t.pi)({},f),{clientAwareness:this.clientAwareness})},S}();function Nr(S,o){return zt(S,o,o.variables&&{variables:(0,t.pi)((0,t.pi)({},S&&S.variables),o.variables)})}var cn,Mn=!1,bi=function(){function S(o){var f=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var E=o.uri,Z=o.cache,le=o.ssrMode,ge=void 0!==le&&le,be=o.ssrForceFetchDelay,Ae=void 0===be?0:be,Pe=o.connectToDevTools,Ce=void 0===Pe?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:Pe,ke=o.queryDeduplication,je=void 0===ke||ke,Le=o.defaultOptions,Ve=o.assumeImmutableResults,Qe=void 0!==Ve&&Ve,Xe=o.resolvers,We=o.typeDefs,He=o.fragmentMatcher,Ze=o.name,Ye=o.version,Je=o.link;if(Je||(Je=E?new tr({uri:E,credentials:o.credentials,headers:o.headers}):mt.empty()),!Z)throw __DEV__?new n("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new n(7);if(this.link=Je,this.cache=Z,this.disableNetworkFetches=ge||Ae>0,this.queryDeduplication=je,this.defaultOptions=Le||Object.create(null),this.typeDefs=We,Ae&&setTimeout(function(){return f.disableNetworkFetches=!1},Ae),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),Ce&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!Mn&&__DEV__&&(Mn=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var rt=window.navigator,gt=rt&&rt.userAgent,ot=void 0;"string"==typeof gt&&(gt.indexOf("Chrome/")>-1?ot="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":gt.indexOf("Firefox/")>-1&&(ot="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),ot&&__DEV__&&a.log("Download the Apollo DevTools for a better development experience: "+ot)}this.version=Wr,this.localState=new Pn({cache:Z,client:this,resolvers:Xe,fragmentMatcher:He}),this.queryManager=new gi({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:je,ssrMode:ge,clientAwareness:{name:Ze,version:Ye},localState:this.localState,assumeImmutableResults:Qe,onBroadcast:Ce?function(){f.devToolsHookCb&&f.devToolsHookCb({action:{},state:{queries:f.queryManager.getQueryStore(),mutations:f.queryManager.mutationStore||{}},dataWithOptimisticResults:f.cache.extract(!0)})}:void 0})}return S.prototype.stop=function(){this.queryManager.stop()},S.prototype.watchQuery=function(o){return this.defaultOptions.watchQuery&&(o=Nr(this.defaultOptions.watchQuery,o)),this.disableNetworkFetches&&("network-only"===o.fetchPolicy||"cache-and-network"===o.fetchPolicy)&&(o=(0,t.pi)((0,t.pi)({},o),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(o)},S.prototype.query=function(o){return this.defaultOptions.query&&(o=Nr(this.defaultOptions.query,o)),__DEV__?a("cache-and-network"!==o.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):a("cache-and-network"!==o.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===o.fetchPolicy&&(o=(0,t.pi)((0,t.pi)({},o),{fetchPolicy:"cache-first"})),this.queryManager.query(o)},S.prototype.mutate=function(o){return this.defaultOptions.mutate&&(o=Nr(this.defaultOptions.mutate,o)),this.queryManager.mutate(o)},S.prototype.subscribe=function(o){return this.queryManager.startGraphQLSubscription(o)},S.prototype.readQuery=function(o,f){return void 0===f&&(f=!1),this.cache.readQuery(o,f)},S.prototype.readFragment=function(o,f){return void 0===f&&(f=!1),this.cache.readFragment(o,f)},S.prototype.writeQuery=function(o){this.cache.writeQuery(o),this.queryManager.broadcastQueries()},S.prototype.writeFragment=function(o){this.cache.writeFragment(o),this.queryManager.broadcastQueries()},S.prototype.__actionHookForDevTools=function(o){this.devToolsHookCb=o},S.prototype.__requestRaw=function(o){return Nt(this.link,o)},S.prototype.resetStore=function(){var o=this;return Promise.resolve().then(function(){return o.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(o.resetStoreCallbacks.map(function(f){return f()}))}).then(function(){return o.reFetchObservableQueries()})},S.prototype.clearStore=function(){var o=this;return Promise.resolve().then(function(){return o.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(o.clearStoreCallbacks.map(function(f){return f()}))})},S.prototype.onResetStore=function(o){var f=this;return this.resetStoreCallbacks.push(o),function(){f.resetStoreCallbacks=f.resetStoreCallbacks.filter(function(E){return E!==o})}},S.prototype.onClearStore=function(o){var f=this;return this.clearStoreCallbacks.push(o),function(){f.clearStoreCallbacks=f.clearStoreCallbacks.filter(function(E){return E!==o})}},S.prototype.reFetchObservableQueries=function(o){return this.queryManager.reFetchObservableQueries(o)},S.prototype.refetchQueries=function(o){var f=this.queryManager.refetchQueries(o),E=[],j=[];f.forEach(function(Z,le){E.push(le),j.push(Z)});var G=Promise.all(j);return G.queries=E,G.results=j,G.catch(function(Z){__DEV__&&a.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(Z))}),G},S.prototype.getObservableQueries=function(o){return void 0===o&&(o="active"),this.queryManager.getObservableQueries(o)},S.prototype.extract=function(o){return this.cache.extract(o)},S.prototype.restore=function(o){return this.cache.restore(o)},S.prototype.addResolvers=function(o){this.localState.addResolvers(o)},S.prototype.setResolvers=function(o){this.localState.setResolvers(o)},S.prototype.getResolvers=function(){return this.localState.getResolvers()},S.prototype.setLocalStateFragmentMatcher=function(o){this.localState.setFragmentMatcher(o)},S.prototype.setLink=function(o){this.link=this.queryManager.link=o},S}();cn||(cn={});var kn=function(){function S(){this.getFragmentDoc=(0,ir.re)(Me)}return S.prototype.batch=function(o){var j,f=this;return this.performTransaction(function(){return j=o.update(f)},"string"==typeof o.optimistic?o.optimistic:!1===o.optimistic?null:void 0),j},S.prototype.recordOptimisticTransaction=function(o,f){this.performTransaction(o,f)},S.prototype.transformDocument=function(o){return o},S.prototype.identify=function(o){},S.prototype.gc=function(){return[]},S.prototype.modify=function(o){return!1},S.prototype.transformForLink=function(o){return o},S.prototype.readQuery=function(o,f){return void 0===f&&(f=!!o.optimistic),this.read((0,t.pi)((0,t.pi)({},o),{rootId:o.id||"ROOT_QUERY",optimistic:f}))},S.prototype.readFragment=function(o,f){return void 0===f&&(f=!!o.optimistic),this.read((0,t.pi)((0,t.pi)({},o),{query:this.getFragmentDoc(o.fragment,o.fragmentName),rootId:o.id,optimistic:f}))},S.prototype.writeQuery=function(o){var f=o.id,E=o.data,j=(0,t._T)(o,["id","data"]);return this.write(Object.assign(j,{dataId:f||"ROOT_QUERY",result:E}))},S.prototype.writeFragment=function(o){var f=o.id,E=o.data,j=o.fragment,G=o.fragmentName,Z=(0,t._T)(o,["id","data","fragment","fragmentName"]);return this.write(Object.assign(Z,{query:this.getFragmentDoc(j,G),dataId:f,result:E}))},S.prototype.updateQuery=function(o,f){return this.batch({update:function(E){var j=E.readQuery(o),G=f(j);return null==G?j:(E.writeQuery((0,t.pi)((0,t.pi)({},o),{data:G})),G)}})},S.prototype.updateFragment=function(o,f){return this.batch({update:function(E){var j=E.readFragment(o),G=f(j);return null==G?j:(E.writeFragment((0,t.pi)((0,t.pi)({},o),{data:G})),G)}})},S}(),fn=function S(o,f,E,j){this.message=o,this.path=f,this.query=E,this.variables=j};function ln(S){return __DEV__&&function Ei(S){var o=new Set([S]);return o.forEach(function(f){De(f)&&function _i(S){if(__DEV__&&!Object.isFrozen(S))try{Object.freeze(S)}catch(o){if(o instanceof TypeError)return null;throw o}return S}(f)===f&&Object.getOwnPropertyNames(f).forEach(function(E){De(f[E])&&o.add(f[E])})}),S}(S),S}var Br=Object.create(null),hn=function(){return Br},Fn=Object.create(null),_r=function(){function S(o,f){var E=this;this.policies=o,this.group=f,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(j,G){return ln(O(j)?E.get(j.__ref,G):j&&j[G])},this.canRead=function(j){return O(j)?E.has(j.__ref):"object"==typeof j},this.toReference=function(j,G){if("string"==typeof j)return v(j);if(O(j))return j;var Z=E.policies.identify(j)[0];if(Z){var le=v(Z);return G&&E.merge(Z,j),le}}}return S.prototype.toObject=function(){return(0,t.pi)({},this.data)},S.prototype.has=function(o){return void 0!==this.lookup(o,!0)},S.prototype.get=function(o,f){if(this.group.depend(o,f),st.call(this.data,o)){var E=this.data[o];if(E&&st.call(E,f))return E[f]}return"__typename"===f&&st.call(this.policies.rootTypenamesById,o)?this.policies.rootTypenamesById[o]:this instanceof Ut?this.parent.get(o,f):void 0},S.prototype.lookup=function(o,f){return f&&this.group.depend(o,"__exists"),st.call(this.data,o)?this.data[o]:this instanceof Ut?this.parent.lookup(o,f):this.policies.rootTypenamesById[o]?Object.create(null):void 0},S.prototype.merge=function(o,f){var j,E=this;O(o)&&(o=o.__ref),O(f)&&(f=f.__ref);var G="string"==typeof o?this.lookup(j=o):o,Z="string"==typeof f?this.lookup(j=f):f;if(Z){__DEV__?a("string"==typeof j,"store.merge expects a string ID"):a("string"==typeof j,1);var le=new Dt(wi).merge(G,Z);if(this.data[j]=le,le!==G&&(delete this.refs[j],this.group.caching)){var ge=Object.create(null);G||(ge.__exists=1),Object.keys(Z).forEach(function(be){if(!G||G[be]!==le[be]){ge[be]=1;var Ae=At(be);Ae!==be&&!E.policies.hasKeyArgs(le.__typename,Ae)&&(ge[Ae]=1),void 0===le[be]&&!(E instanceof Ut)&&delete le[be]}}),ge.__typename&&!(G&&G.__typename)&&this.policies.rootTypenamesById[j]===le.__typename&&delete ge.__typename,Object.keys(ge).forEach(function(be){return E.group.dirty(j,be)})}}},S.prototype.modify=function(o,f){var E=this,j=this.lookup(o);if(j){var G=Object.create(null),Z=!1,le=!0,ge={DELETE:Br,INVALIDATE:Fn,isReference:O,toReference:this.toReference,canRead:this.canRead,readField:function(be,Ae){return E.policies.readField("string"==typeof be?{fieldName:be,from:Ae||v(o)}:be,{store:E})}};if(Object.keys(j).forEach(function(be){var Ae=At(be),Pe=j[be];if(void 0!==Pe){var Ce="function"==typeof f?f:f[be]||f[Ae];if(Ce){var ke=Ce===hn?Br:Ce(ln(Pe),(0,t.pi)((0,t.pi)({},ge),{fieldName:Ae,storeFieldName:be,storage:E.getStorage(o,be)}));ke===Fn?E.group.dirty(o,be):(ke===Br&&(ke=void 0),ke!==Pe&&(G[be]=ke,Z=!0,Pe=ke))}void 0!==Pe&&(le=!1)}}),Z)return this.merge(o,G),le&&(this instanceof Ut?this.data[o]=void 0:delete this.data[o],this.group.dirty(o,"__exists")),!0}return!1},S.prototype.delete=function(o,f,E){var j,G=this.lookup(o);if(G){var Z=this.getFieldValue(G,"__typename"),le=f&&E?this.policies.getStoreFieldName({typename:Z,fieldName:f,args:E}):f;return this.modify(o,le?((j={})[le]=hn,j):hn)}return!1},S.prototype.evict=function(o,f){var E=!1;return o.id&&(st.call(this.data,o.id)&&(E=this.delete(o.id,o.fieldName,o.args)),this instanceof Ut&&this!==f&&(E=this.parent.evict(o,f)||E),(o.fieldName||E)&&this.group.dirty(o.id,o.fieldName||"__exists")),E},S.prototype.clear=function(){this.replace(null)},S.prototype.extract=function(){var o=this,f=this.toObject(),E=[];return this.getRootIdSet().forEach(function(j){st.call(o.policies.rootTypenamesById,j)||E.push(j)}),E.length&&(f.__META={extraRootIds:E.sort()}),f},S.prototype.replace=function(o){var f=this;if(Object.keys(this.data).forEach(function(G){o&&st.call(o,G)||f.delete(G)}),o){var E=o.__META,j=(0,t._T)(o,["__META"]);Object.keys(j).forEach(function(G){f.merge(G,j[G])}),E&&E.extraRootIds.forEach(this.retain,this)}},S.prototype.retain=function(o){return this.rootIds[o]=(this.rootIds[o]||0)+1},S.prototype.release=function(o){if(this.rootIds[o]>0){var f=--this.rootIds[o];return f||delete this.rootIds[o],f}return 0},S.prototype.getRootIdSet=function(o){return void 0===o&&(o=new Set),Object.keys(this.rootIds).forEach(o.add,o),this instanceof Ut?this.parent.getRootIdSet(o):Object.keys(this.policies.rootTypenamesById).forEach(o.add,o),o},S.prototype.gc=function(){var o=this,f=this.getRootIdSet(),E=this.toObject();f.forEach(function(Z){st.call(E,Z)&&(Object.keys(o.findChildRefIds(Z)).forEach(f.add,f),delete E[Z])});var j=Object.keys(E);if(j.length){for(var G=this;G instanceof Ut;)G=G.parent;j.forEach(function(Z){return G.delete(Z)})}return j},S.prototype.findChildRefIds=function(o){if(!st.call(this.refs,o)){var f=this.refs[o]=Object.create(null),E=this.data[o];if(!E)return f;var j=new Set([E]);j.forEach(function(G){O(G)&&(f[G.__ref]=!0),De(G)&&Object.keys(G).forEach(function(Z){var le=G[Z];De(le)&&j.add(le)})})}return this.refs[o]},S.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},S}(),Ln=function(){function S(o,f){void 0===f&&(f=null),this.caching=o,this.parent=f,this.d=null,this.resetCaching()}return S.prototype.resetCaching=function(){this.d=this.caching?(0,ir.dP)():null,this.keyMaker=new rr.B(Pt)},S.prototype.depend=function(o,f){if(this.d){this.d(pn(o,f));var E=At(f);E!==f&&this.d(pn(o,E)),this.parent&&this.parent.depend(o,f)}},S.prototype.dirty=function(o,f){this.d&&this.d.dirty(pn(o,f),"__exists"===f?"forget":"setDirty")},S}();function pn(S,o){return o+"#"+S}function Nn(S,o){Sr(S)&&S.group.depend(o,"__exists")}!function(S){var o=function(f){function E(j){var Z=j.resultCaching,ge=j.seed,be=f.call(this,j.policies,new Ln(void 0===Z||Z))||this;return be.stump=new Si(be),be.storageTrie=new rr.B(Pt),ge&&be.replace(ge),be}return(0,t.ZT)(E,f),E.prototype.addLayer=function(j,G){return this.stump.addLayer(j,G)},E.prototype.removeLayer=function(){return this},E.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},E}(S);S.Root=o}(_r||(_r={}));var Ut=function(S){function o(f,E,j,G){var Z=S.call(this,E.policies,G)||this;return Z.id=f,Z.parent=E,Z.replay=j,Z.group=G,j(Z),Z}return(0,t.ZT)(o,S),o.prototype.addLayer=function(f,E){return new o(f,this,E,this.group)},o.prototype.removeLayer=function(f){var E=this,j=this.parent.removeLayer(f);return f===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(G){var Z=E.data[G],le=j.lookup(G);le?Z?Z!==le&&Object.keys(Z).forEach(function(ge){(0,ut.D)(Z[ge],le[ge])||E.group.dirty(G,ge)}):(E.group.dirty(G,"__exists"),Object.keys(le).forEach(function(ge){E.group.dirty(G,ge)})):E.delete(G)}),j):j===this.parent?this:j.addLayer(this.id,this.replay)},o.prototype.toObject=function(){return(0,t.pi)((0,t.pi)({},this.parent.toObject()),this.data)},o.prototype.findChildRefIds=function(f){var E=this.parent.findChildRefIds(f);return st.call(this.data,f)?(0,t.pi)((0,t.pi)({},E),S.prototype.findChildRefIds.call(this,f)):E},o.prototype.getStorage=function(){for(var f=this.parent;f.parent;)f=f.parent;return f.getStorage.apply(f,arguments)},o}(_r),Si=function(S){function o(f){return S.call(this,"EntityStore.Stump",f,function(){},new Ln(f.group.caching,f.group))||this}return(0,t.ZT)(o,S),o.prototype.removeLayer=function(){return this},o.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},o}(Ut);function wi(S,o,f){var E=S[f],j=o[f];return(0,ut.D)(E,j)?E:j}function Sr(S){return!!(S instanceof _r&&S.group.caching)}function Bn(S){return[S.selectionSet,S.objectOrReference,S.context,S.context.canonizeResults]}var Oi=function(){function S(o){var f=this;this.knownResults=new(Pt?WeakMap:Map),this.config=zt(o,{addTypename:!1!==o.addTypename,canonizeResults:kr(o)}),this.canon=o.canon||new vr,this.executeSelectionSet=(0,ir.re)(function(E){var j,G=E.context.canonizeResults,Z=Bn(E);Z[3]=!G;var le=(j=f.executeSelectionSet).peek.apply(j,Z);return le?G?(0,t.pi)((0,t.pi)({},le),{result:f.canon.admit(le.result)}):le:(Nn(E.context.store,E.enclosingRef.__ref),f.execSelectionSetImpl(E))},{max:this.config.resultCacheMaxSize,keyArgs:Bn,makeCacheKey:function(E,j,G,Z){if(Sr(G.store))return G.store.makeCacheKey(E,O(j)?j.__ref:j,G.varString,Z)}}),this.executeSubSelectedArray=(0,ir.re)(function(E){return Nn(E.context.store,E.enclosingRef.__ref),f.execSubSelectedArrayImpl(E)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(E){var j=E.field,G=E.array,Z=E.context;if(Sr(Z.store))return Z.store.makeCacheKey(j,G,Z.varString)}})}return S.prototype.resetCanon=function(){this.canon=new vr},S.prototype.diffQueryAgainstStore=function(o){var f=o.store,E=o.query,j=o.rootId,G=void 0===j?"ROOT_QUERY":j,Z=o.variables,le=o.returnPartialData,ge=void 0===le||le,be=o.canonizeResults,Ae=void 0===be?this.config.canonizeResults:be,Pe=this.config.cache.policies;Z=(0,t.pi)((0,t.pi)({},It(Ft(E))),Z);var je,Ce=v(G),ke=this.executeSelectionSet({selectionSet:Ct(E).selectionSet,objectOrReference:Ce,enclosingRef:Ce,context:{store:f,query:E,policies:Pe,variables:Z,varString:J(Z),canonizeResults:Ae,fragmentMap:ie(Tt(E))}});if(ke.missing&&(je=[new fn(Ai(ke.missing),ke.missing,E,Z)],!ge))throw je[0];return{result:ke.result,complete:!je,missing:je}},S.prototype.isFresh=function(o,f,E,j){if(Sr(j.store)&&this.knownResults.get(o)===E){var G=this.executeSelectionSet.peek(E,f,j,this.canon.isKnown(o));if(G&&o===G.result)return!0}return!1},S.prototype.execSelectionSetImpl=function(o){var f=this,E=o.selectionSet,j=o.objectOrReference,G=o.enclosingRef,Z=o.context;if(O(j)&&!Z.policies.rootTypenamesById[j.__ref]&&!Z.store.has(j.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(j.__ref," object")};var Ce,le=Z.variables,ge=Z.policies,Ae=Z.store.getFieldValue(j,"__typename"),Pe=[],ke=new Dt;function je(We,He){var Ze;return We.missing&&(Ce=ke.merge(Ce,((Ze={})[He]=We.missing,Ze))),We.result}this.config.addTypename&&"string"==typeof Ae&&!ge.rootIdsByTypename[Ae]&&Pe.push({__typename:Ae});var Le=new Set(E.selections);Le.forEach(function(We){var He,Ze;if(Ht(We,le))if(pt(We)){var Ye=ge.readField({fieldName:We.name.value,field:We,variables:Z.variables,from:j},Z),Je=ct(We);void 0===Ye?$e.added(We)||(Ce=ke.merge(Ce,((He={})[Je]="Can't find field '".concat(We.name.value,"' on ").concat(O(j)?j.__ref+" object":"object "+JSON.stringify(j,null,2)),He))):it(Ye)?Ye=je(f.executeSubSelectedArray({field:We,array:Ye,enclosingRef:G,context:Z}),Je):We.selectionSet?null!=Ye&&(Ye=je(f.executeSelectionSet({selectionSet:We.selectionSet,objectOrReference:Ye,enclosingRef:O(Ye)?Ye:G,context:Z}),Je)):Z.canonizeResults&&(Ye=f.canon.pass(Ye)),void 0!==Ye&&Pe.push(((Ze={})[Je]=Ye,Ze))}else{var rt=V(We,Z.fragmentMap);rt&&ge.fragmentMatches(rt,Ae)&&rt.selectionSet.selections.forEach(Le.add,Le)}});var Qe={result:Bt(Pe),missing:Ce},Xe=Z.canonizeResults?this.canon.admit(Qe):ln(Qe);return Xe.result&&this.knownResults.set(Xe.result,E),Xe},S.prototype.execSubSelectedArrayImpl=function(o){var le,f=this,E=o.field,j=o.array,G=o.enclosingRef,Z=o.context,ge=new Dt;function be(Ae,Pe){var Ce;return Ae.missing&&(le=ge.merge(le,((Ce={})[Pe]=Ae.missing,Ce))),Ae.result}return E.selectionSet&&(j=j.filter(Z.store.canRead)),j=j.map(function(Ae,Pe){return null===Ae?null:it(Ae)?be(f.executeSubSelectedArray({field:E,array:Ae,enclosingRef:G,context:Z}),Pe):E.selectionSet?be(f.executeSelectionSet({selectionSet:E.selectionSet,objectOrReference:Ae,enclosingRef:O(Ae)?Ae:G,context:Z}),Pe):(__DEV__&&function xi(S,o,f){if(!o.selectionSet){var E=new Set([f]);E.forEach(function(j){De(j)&&(__DEV__?a(!O(j),"Missing selection set for object of type ".concat(function en(S,o){return O(o)?S.get(o.__ref,"__typename"):o&&o.__typename}(S,j)," returned for query field ").concat(o.name.value)):a(!O(j),5),Object.values(j).forEach(E.add,E))})}}(Z.store,E,Ae),Ae)}),{result:Z.canonizeResults?this.canon.admit(j):j,missing:le}},S}();function Ai(S){try{JSON.stringify(S,function(o,f){if("string"==typeof f)throw f;return f})}catch(o){return o}}var Un=Object.create(null);function dn(S){var o=JSON.stringify(S);return Un[o]||(Un[o]=Object.create(null))}function jn(S){var o=dn(S);return o.keyFieldsFn||(o.keyFieldsFn=function(f,E){var j=function(Z,le){return E.readField(le,Z)},G=E.keyObject=vn(S,function(Z){var le=or(E.storeObject,Z,j);return void 0===le&&f!==E.storeObject&&st.call(f,Z[0])&&(le=or(f,Z,Qn)),__DEV__?a(void 0!==le,"Missing field '".concat(Z.join("."),"' while extracting keyFields from ").concat(JSON.stringify(f))):a(void 0!==le,2),le});return"".concat(E.typename,":").concat(JSON.stringify(G))})}function Vn(S){var o=dn(S);return o.keyArgsFn||(o.keyArgsFn=function(f,E){var j=E.field,G=E.variables,Z=E.fieldName,le=vn(S,function(be){var Ae=be[0],Pe=Ae.charAt(0);if("@"!==Pe)if("$"!==Pe){if(f)return or(f,be)}else{var Le=Ae.slice(1);if(G&&st.call(G,Le)){var Ve=be.slice(0);return Ve[0]=Le,or(G,Ve)}}else if(j&&Gt(j.directives)){var Ce=Ae.slice(1),ke=j.directives.find(function(Qe){return Qe.name.value===Ce}),je=ke&&Ke(ke,G);return je&&or(je,be.slice(1))}}),ge=JSON.stringify(le);return(f||"{}"!==ge)&&(Z+=":"+ge),Z})}function vn(S,o){var f=new Dt;return Wn(S).reduce(function(E,j){var G,Z=o(j);if(void 0!==Z){for(var le=j.length-1;le>=0;--le)(G={})[j[le]]=Z,Z=G;E=f.merge(E,Z)}return E},Object.create(null))}function Wn(S){var o=dn(S);if(!o.paths){var f=o.paths=[],E=[];S.forEach(function(j,G){it(j)?(Wn(j).forEach(function(Z){return f.push(E.concat(Z))}),E.length=0):(E.push(j),it(S[G+1])||(f.push(E.slice(0)),E.length=0))})}return o.paths}function Qn(S,o){return S[o]}function or(S,o,f){return f=f||Qn,Kn(o.reduce(function E(j,G){return it(j)?j.map(function(Z){return E(Z,G)}):j&&f(j,G)},S))}function Kn(S){return De(S)?it(S)?S.map(Kn):vn(Object.keys(S).sort(),function(o){return or(S,o)}):S}function yn(S){return void 0!==S.args?S.args:S.field?Ke(S.field,S.variables):null}nt.setStringify(J);var Ci=function(){},qn=function(S,o){return o.fieldName},zn=function(S,o,f){return(0,f.mergeObjects)(S,o)},Hn=function(S,o){return o},Ri=function(){function S(o){this.config=o,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,t.pi)({dataIdFromObject:pr},o),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),o.possibleTypes&&this.addPossibleTypes(o.possibleTypes),o.typePolicies&&this.addTypePolicies(o.typePolicies)}return S.prototype.identify=function(o,f){var E,j=this,G=f&&(f.typename||(null===(E=f.storeObject)||void 0===E?void 0:E.__typename))||o.__typename;if(G===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var ge,Z=f&&f.storeObject||o,le=(0,t.pi)((0,t.pi)({},f),{typename:G,storeObject:Z,readField:f&&f.readField||function(){var Ce=mn(arguments,Z);return j.readField(Ce,{store:j.cache.data,variables:Ce.variables})}}),be=G&&this.getTypePolicy(G),Ae=be&&be.keyFn||this.config.dataIdFromObject;Ae;){var Pe=Ae(o,le);if(!it(Pe)){ge=Pe;break}Ae=jn(Pe)}return ge=ge?String(ge):void 0,le.keyObject?[ge,le.keyObject]:[ge]},S.prototype.addTypePolicies=function(o){var f=this;Object.keys(o).forEach(function(E){var j=o[E],G=j.queryType,Z=j.mutationType,le=j.subscriptionType,ge=(0,t._T)(j,["queryType","mutationType","subscriptionType"]);G&&f.setRootTypename("Query",E),Z&&f.setRootTypename("Mutation",E),le&&f.setRootTypename("Subscription",E),st.call(f.toBeAdded,E)?f.toBeAdded[E].push(ge):f.toBeAdded[E]=[ge]})},S.prototype.updateTypePolicy=function(o,f){var E=this,j=this.getTypePolicy(o),G=f.keyFields,Z=f.fields;function le(ge,be){ge.merge="function"==typeof be?be:!0===be?zn:!1===be?Hn:ge.merge}le(j,f.merge),j.keyFn=!1===G?Ci:it(G)?jn(G):"function"==typeof G?G:j.keyFn,Z&&Object.keys(Z).forEach(function(ge){var be=E.getFieldPolicy(o,ge,!0),Ae=Z[ge];if("function"==typeof Ae)be.read=Ae;else{var Pe=Ae.keyArgs,Ce=Ae.read,ke=Ae.merge;be.keyFn=!1===Pe?qn:it(Pe)?Vn(Pe):"function"==typeof Pe?Pe:be.keyFn,"function"==typeof Ce&&(be.read=Ce),le(be,ke)}be.read&&be.merge&&(be.keyFn=be.keyFn||qn)})},S.prototype.setRootTypename=function(o,f){void 0===f&&(f=o);var E="ROOT_"+o.toUpperCase(),j=this.rootTypenamesById[E];f!==j&&(__DEV__?a(!j||j===o,"Cannot change root ".concat(o," __typename more than once")):a(!j||j===o,3),j&&delete this.rootIdsByTypename[j],this.rootIdsByTypename[f]=E,this.rootTypenamesById[E]=f)},S.prototype.addPossibleTypes=function(o){var f=this;this.usingPossibleTypes=!0,Object.keys(o).forEach(function(E){f.getSupertypeSet(E,!0),o[E].forEach(function(j){f.getSupertypeSet(j,!0).add(E);var G=j.match(Fr);(!G||G[0]!==j)&&f.fuzzySubtypes.set(j,new RegExp(j))})})},S.prototype.getTypePolicy=function(o){var f=this;if(!st.call(this.typePolicies,o)){var E=this.typePolicies[o]=Object.create(null);E.fields=Object.create(null);var j=this.supertypeMap.get(o);j&&j.size&&j.forEach(function(Z){var le=f.getTypePolicy(Z),ge=le.fields,be=(0,t._T)(le,["fields"]);Object.assign(E,be),Object.assign(E.fields,ge)})}var G=this.toBeAdded[o];return G&&G.length&&G.splice(0).forEach(function(Z){f.updateTypePolicy(o,Z)}),this.typePolicies[o]},S.prototype.getFieldPolicy=function(o,f,E){if(o){var j=this.getTypePolicy(o).fields;return j[f]||E&&(j[f]=Object.create(null))}},S.prototype.getSupertypeSet=function(o,f){var E=this.supertypeMap.get(o);return!E&&f&&this.supertypeMap.set(o,E=new Set),E},S.prototype.fragmentMatches=function(o,f,E,j){var G=this;if(!o.typeCondition)return!0;if(!f)return!1;var Z=o.typeCondition.name.value;if(f===Z)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(Z))for(var le=this.getSupertypeSet(f,!0),ge=[le],be=function(je){var Le=G.getSupertypeSet(je,!1);Le&&Le.size&&ge.indexOf(Le)<0&&ge.push(Le)},Ae=!(!E||!this.fuzzySubtypes.size),Pe=!1,Ce=0;Ce<ge.length;++Ce){var ke=ge[Ce];if(ke.has(Z))return le.has(Z)||(Pe&&__DEV__&&a.warn("Inferring subtype ".concat(f," of supertype ").concat(Z)),le.add(Z)),!0;ke.forEach(be),Ae&&Ce===ge.length-1&&nr(o.selectionSet,E,j)&&(Ae=!1,Pe=!0,this.fuzzySubtypes.forEach(function(je,Le){var Ve=f.match(je);Ve&&Ve[0]===f&&be(Le)}))}return!1},S.prototype.hasKeyArgs=function(o,f){var E=this.getFieldPolicy(o,f,!1);return!(!E||!E.keyFn)},S.prototype.getStoreFieldName=function(o){var G,f=o.typename,E=o.fieldName,j=this.getFieldPolicy(f,E,!1),Z=j&&j.keyFn;if(Z&&f)for(var le={typename:f,fieldName:E,field:o.field||null,variables:o.variables},ge=yn(o);Z;){var be=Z(ge,le);if(!it(be)){G=be||E;break}Z=Vn(be)}return void 0===G&&(G=o.field?function qe(S,o){var f=null;S.directives&&(f={},S.directives.forEach(function(j){f[j.name.value]={},j.arguments&&j.arguments.forEach(function(G){return Ue(f[j.name.value],G.name,G.value,o)})}));var E=null;return S.arguments&&S.arguments.length&&(E={},S.arguments.forEach(function(j){return Ue(E,j.name,j.value,o)})),nt(S.name.value,E,f)}(o.field,o.variables):nt(E,yn(o))),!1===G?E:E===At(G)?G:E+":"+G},S.prototype.readField=function(o,f){var E=o.from;if(E&&(o.field||o.fieldName)){if(void 0===o.typename){var G=f.store.getFieldValue(E,"__typename");G&&(o.typename=G)}var Z=this.getStoreFieldName(o),le=At(Z),ge=f.store.getFieldValue(E,Z),be=this.getFieldPolicy(o.typename,le,!1),Ae=be&&be.read;if(Ae){var Pe=Gn(this,E,o,f,f.store.getStorage(O(E)?E.__ref:E,Z));return an.withValue(this.cache,Ae,[ge,Pe])}return ge}},S.prototype.getReadFunction=function(o,f){var E=this.getFieldPolicy(o,f,!1);return E&&E.read},S.prototype.getMergeFunction=function(o,f,E){var j=this.getFieldPolicy(o,f,!1),G=j&&j.merge;return!G&&E&&(G=(j=this.getTypePolicy(E))&&j.merge),G},S.prototype.runMergeFunction=function(o,f,E,j,G){var Z=E.field,le=E.typename,ge=E.merge;return ge===zn?Yn(j.store)(o,f):ge===Hn?f:(j.overwrite&&(o=void 0),ge(o,f,Gn(this,void 0,{typename:le,fieldName:Z.name.value,field:Z,variables:j.variables},j,G||Object.create(null))))},S}();function Gn(S,o,f,E,j){var G=S.getStoreFieldName(f),Z=At(G),le=f.variables||E.variables,ge=E.store,be=ge.toReference,Ae=ge.canRead;return{args:yn(f),field:f.field||null,fieldName:Z,storeFieldName:G,variables:le,isReference:O,toReference:be,storage:j,cache:S.cache,canRead:Ae,readField:function(){return S.readField(mn(arguments,o,le),E)},mergeObjects:Yn(E.store)}}function mn(S,o,f){var Z,E=S[0];return"string"==typeof E?Z={fieldName:E,from:S.length>1?S[1]:o}:(Z=(0,t.pi)({},E),st.call(Z,"from")||(Z.from=o)),__DEV__&&void 0===Z.from&&__DEV__&&a.warn("Undefined 'from' passed to readField with arguments ".concat(function Ti(S){var o=rn("stringifyForDisplay");return JSON.stringify(S,function(f,E){return void 0===E?o:E}).split(JSON.stringify(o)).join("<undefined>")}(Array.from(S)))),void 0===Z.variables&&(Z.variables=f),Z}function Yn(S){return function(f,E){if(it(f)||it(E))throw __DEV__?new n("Cannot automatically merge arrays"):new n(4);if(De(f)&&De(E)){var j=S.getFieldValue(f,"__typename"),G=S.getFieldValue(E,"__typename");if(j&&G&&j!==G)return E;if(O(f)&&Mt(E))return S.merge(f.__ref,E),f;if(Mt(f)&&O(E))return S.merge(f,E.__ref),E;if(Mt(f)&&Mt(E))return(0,t.pi)((0,t.pi)({},f),E)}return E}}function gn(S,o,f){var E="".concat(o).concat(f),j=S.flavors.get(E);return j||S.flavors.set(E,j=S.clientOnly===o&&S.deferred===f?S:(0,t.pi)((0,t.pi)({},S),{clientOnly:o,deferred:f})),j}var Ii=function(){function S(o,f){this.cache=o,this.reader=f}return S.prototype.writeToStore=function(o,f){var E=this,j=f.query,G=f.result,Z=f.dataId,le=f.variables,ge=f.overwrite,be=St(j),Ae=function dr(){return new Dt}();le=(0,t.pi)((0,t.pi)({},It(be)),le);var Pe={store:o,written:Object.create(null),merge:function(ke,je){return Ae.merge(ke,je)},variables:le,varString:J(le),fragmentMap:ie(Tt(j)),overwrite:!!ge,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},Ce=this.processSelectionSet({result:G||Object.create(null),dataId:Z,selectionSet:be.selectionSet,mergeTree:{map:new Map},context:Pe});if(!O(Ce))throw __DEV__?new n("Could not identify object ".concat(JSON.stringify(G))):new n(6);return Pe.incomingById.forEach(function(ke,je){var Le=ke.storeObject,Ve=ke.mergeTree,Qe=ke.fieldNodeSet,Xe=v(je);if(Ve&&Ve.map.size){var We=E.applyMerges(Ve,Xe,Le,Pe);if(O(We))return;Le=We}if(__DEV__&&!Pe.overwrite){var He=Object.create(null);Qe.forEach(function(Je){Je.selectionSet&&(He[Je.name.value]=!0)}),Object.keys(Le).forEach(function(Je){(function(Je){return!0===He[At(Je)]})(Je)&&!function(Je){var rt=Ve&&Ve.map.get(Je);return Boolean(rt&&rt.info&&rt.info.merge)}(Je)&&function Pi(S,o,f,E){var j=function(Pe){var Ce=E.getFieldValue(Pe,f);return"object"==typeof Ce&&Ce},G=j(S);if(G){var Z=j(o);if(Z&&!O(G)&&!(0,ut.D)(G,Z)&&!Object.keys(G).every(function(Pe){return void 0!==E.getFieldValue(Z,Pe)})){var le=E.getFieldValue(S,"__typename")||E.getFieldValue(o,"__typename"),ge=At(f),be="".concat(le,".").concat(ge);if(!Zn.has(be)){Zn.add(be);var Ae=[];!it(G)&&!it(Z)&&[G,Z].forEach(function(Pe){var Ce=E.getFieldValue(Pe,"__typename");"string"==typeof Ce&&!Ae.includes(Ce)&&Ae.push(Ce)}),__DEV__&&a.warn("Cache data may be lost when replacing the ".concat(ge," field of a ").concat(le," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(Ae.length?"either ensure all objects of type "+Ae.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(be," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(G).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(Z).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(Xe,Le,Je,Pe.store)})}o.merge(je,Le)}),o.retain(Ce.__ref),Ce},S.prototype.processSelectionSet=function(o){var f=this,E=o.dataId,j=o.result,G=o.selectionSet,Z=o.context,le=o.mergeTree,ge=this.cache.policies,be=Object.create(null),Ae=E&&ge.rootTypenamesById[E]||jt(j,G,Z.fragmentMap)||E&&Z.store.get(E,"__typename");"string"==typeof Ae&&(be.__typename=Ae);var Pe=function(){var We=mn(arguments,be,Z.variables);if(O(We.from)){var He=Z.incomingById.get(We.from.__ref);if(He){var Ze=ge.readField((0,t.pi)((0,t.pi)({},We),{from:He.storeObject}),Z);if(void 0!==Ze)return Ze}}return ge.readField(We,Z)},Ce=new Set;this.flattenFields(G,j,Z,Ae).forEach(function(We,He){var Ze,Ye=ct(He),Je=j[Ye];if(Ce.add(He),void 0!==Je){var rt=ge.getStoreFieldName({typename:Ae,fieldName:He.name.value,field:He,variables:We.variables}),gt=$n(le,rt),ot=f.processFieldValue(Je,He,He.selectionSet?gn(We,!1,!1):We,gt),kt=void 0;He.selectionSet&&(O(ot)||Mt(ot))&&(kt=Pe("__typename",ot));var jr=ge.getMergeFunction(Ae,He.name.value,kt);jr?gt.info={field:He,typename:Ae,merge:jr}:Xn(le,rt),be=We.merge(be,((Ze={})[rt]=ot,Ze))}else __DEV__&&!We.clientOnly&&!We.deferred&&!$e.added(He)&&!ge.getReadFunction(Ae,He.name.value)&&__DEV__&&a.error("Missing field '".concat(ct(He),"' while writing result ").concat(JSON.stringify(j,null,2)).substring(0,1e3))});try{var ke=ge.identify(j,{typename:Ae,selectionSet:G,fragmentMap:Z.fragmentMap,storeObject:be,readField:Pe}),Le=ke[1];E=E||ke[0],Le&&(be=Z.merge(be,Le))}catch(We){if(!E)throw We}if("string"==typeof E){var Ve=v(E),Qe=Z.written[E]||(Z.written[E]=[]);if(Qe.indexOf(G)>=0||(Qe.push(G),this.reader&&this.reader.isFresh(j,Ve,G,Z)))return Ve;var Xe=Z.incomingById.get(E);return Xe?(Xe.storeObject=Z.merge(Xe.storeObject,be),Xe.mergeTree=bn(Xe.mergeTree,le),Ce.forEach(function(We){return Xe.fieldNodeSet.add(We)})):Z.incomingById.set(E,{storeObject:be,mergeTree:Ur(le)?void 0:le,fieldNodeSet:Ce}),Ve}return be},S.prototype.processFieldValue=function(o,f,E,j){var G=this;return f.selectionSet&&null!==o?it(o)?o.map(function(Z,le){var ge=G.processFieldValue(Z,f,E,$n(j,le));return Xn(j,le),ge}):this.processSelectionSet({result:o,selectionSet:f.selectionSet,context:E,mergeTree:j}):__DEV__?An(o):o},S.prototype.flattenFields=function(o,f,E,j){void 0===j&&(j=jt(f,o,E.fragmentMap));var G=new Map,Z=this.cache.policies,le=new rr.B(!1);return function ge(be,Ae){var Pe=le.lookup(be,Ae.clientOnly,Ae.deferred);Pe.visited||(Pe.visited=!0,be.selections.forEach(function(Ce){if(Ht(Ce,E.variables)){var ke=Ae.clientOnly,je=Ae.deferred;if(!(ke&&je)&&Gt(Ce.directives)&&Ce.directives.forEach(function(Qe){var Xe=Qe.name.value;if("client"===Xe&&(ke=!0),"defer"===Xe){var We=Ke(Qe,E.variables);(!We||!1!==We.if)&&(je=!0)}}),pt(Ce)){var Le=G.get(Ce);Le&&(ke=ke&&Le.clientOnly,je=je&&Le.deferred),G.set(Ce,gn(E,ke,je))}else{var Ve=V(Ce,E.fragmentMap);Ve&&Z.fragmentMatches(Ve,j,f,E.variables)&&ge(Ve.selectionSet,gn(E,ke,je))}}}))}(o,E),G},S.prototype.applyMerges=function(o,f,E,j,G){var Z,le=this;if(o.map.size&&!O(E)){var ge=it(E)||!O(f)&&!Mt(f)?void 0:f,be=E;ge&&!G&&(G=[O(ge)?ge.__ref:ge]);var Ae,Pe=function(Ce,ke){return it(Ce)?"number"==typeof ke?Ce[ke]:void 0:j.store.getFieldValue(Ce,String(ke))};o.map.forEach(function(Ce,ke){var je=Pe(ge,ke),Le=Pe(be,ke);if(void 0!==Le){G&&G.push(ke);var Ve=le.applyMerges(Ce,je,Le,j,G);Ve!==Le&&(Ae=Ae||new Map).set(ke,Ve),G&&a(G.pop()===ke)}}),Ae&&(E=it(be)?be.slice(0):(0,t.pi)({},be),Ae.forEach(function(Ce,ke){E[ke]=Ce}))}return o.info?this.cache.policies.runMergeFunction(f,E,o.info,j,G&&(Z=j.store).getStorage.apply(Z,G)):E},S}(),Jn=[];function $n(S,o){var f=S.map;return f.has(o)||f.set(o,Jn.pop()||{map:new Map}),f.get(o)}function bn(S,o){if(S===o||!o||Ur(o))return S;if(!S||Ur(S))return o;var f=S.info&&o.info?(0,t.pi)((0,t.pi)({},S.info),o.info):S.info||o.info,E=S.map.size&&o.map.size,G={info:f,map:E?new Map:S.map.size?S.map:o.map};if(E){var Z=new Set(o.map.keys());S.map.forEach(function(le,ge){G.map.set(ge,bn(le,o.map.get(ge))),Z.delete(ge)}),Z.forEach(function(le){G.map.set(le,bn(o.map.get(le),S.map.get(le)))})}return G}function Ur(S){return!S||!(S.info||S.map.size)}function Xn(S,o){var f=S.map,E=f.get(o);E&&Ur(E)&&(Jn.push(E),f.delete(o))}var Zn=new Set,Di=function(S){function o(f){void 0===f&&(f={});var E=S.call(this)||this;return E.watches=new Set,E.typenameDocumentCache=new Map,E.makeVar=In,E.txCount=0,E.config=function Mr(S){return zt(Dr,S)}(f),E.addTypename=!!E.config.addTypename,E.policies=new Ri({cache:E,dataIdFromObject:E.config.dataIdFromObject,possibleTypes:E.config.possibleTypes,typePolicies:E.config.typePolicies}),E.init(),E}return(0,t.ZT)(o,S),o.prototype.init=function(){var f=this.data=new _r.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=f.stump,this.resetResultCache()},o.prototype.resetResultCache=function(f){var E=this,j=this.storeReader;this.storeWriter=new Ii(this,this.storeReader=new Oi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:kr(this.config),canon:f?void 0:j&&j.canon})),this.maybeBroadcastWatch=(0,ir.re)(function(G,Z){return E.broadcastWatch(G,Z)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(G){var Z=G.optimistic?E.optimisticData:E.data;if(Sr(Z))return Z.makeCacheKey(G.query,G.callback,J({optimistic:G.optimistic,rootId:G.rootId,variables:G.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(G){return G.resetCaching()})},o.prototype.restore=function(f){return this.init(),f&&this.data.replace(f),this},o.prototype.extract=function(f){return void 0===f&&(f=!1),(f?this.optimisticData:this.data).extract()},o.prototype.read=function(f){var E=f.returnPartialData,j=void 0!==E&&E;try{return this.storeReader.diffQueryAgainstStore((0,t.pi)((0,t.pi)({},f),{store:f.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:j})).result||null}catch(G){if(G instanceof fn)return null;throw G}},o.prototype.write=function(f){try{return++this.txCount,this.storeWriter.writeToStore(this.data,f)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},o.prototype.modify=function(f){if(st.call(f,"id")&&!f.id)return!1;var E=f.optimistic?this.optimisticData:this.data;try{return++this.txCount,E.modify(f.id||"ROOT_QUERY",f.fields)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},o.prototype.diff=function(f){return this.storeReader.diffQueryAgainstStore((0,t.pi)((0,t.pi)({},f),{store:f.optimistic?this.optimisticData:this.data,rootId:f.id||"ROOT_QUERY",config:this.config}))},o.prototype.watch=function(f){var E=this;return this.watches.size||function vi(S){Er(S).vars.forEach(function(o){return o.attachCache(S)})}(this),this.watches.add(f),f.immediate&&this.maybeBroadcastWatch(f),function(){E.watches.delete(f)&&!E.watches.size&&Rn(E),E.maybeBroadcastWatch.forget(f)}},o.prototype.gc=function(f){J.reset();var E=this.optimisticData.gc();return f&&!this.txCount&&(f.resetResultCache?this.resetResultCache(f.resetResultIdentities):f.resetResultIdentities&&this.storeReader.resetCanon()),E},o.prototype.retain=function(f,E){return(E?this.optimisticData:this.data).retain(f)},o.prototype.release=function(f,E){return(E?this.optimisticData:this.data).release(f)},o.prototype.identify=function(f){if(O(f))return f.__ref;try{return this.policies.identify(f)[0]}catch(E){__DEV__&&a.warn(E)}},o.prototype.evict=function(f){if(!f.id){if(st.call(f,"id"))return!1;f=(0,t.pi)((0,t.pi)({},f),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(f,this.data)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},o.prototype.reset=function(f){var E=this;return this.init(),J.reset(),f&&f.discardWatches?(this.watches.forEach(function(j){return E.maybeBroadcastWatch.forget(j)}),this.watches.clear(),Rn(this)):this.broadcastWatches(),Promise.resolve()},o.prototype.removeOptimistic=function(f){var E=this.optimisticData.removeLayer(f);E!==this.optimisticData&&(this.optimisticData=E,this.broadcastWatches())},o.prototype.batch=function(f){var be,E=this,j=f.update,G=f.optimistic,Z=void 0===G||G,le=f.removeOptimistic,ge=f.onWatchUpdated,Ae=function(Ce){var je=E.data,Le=E.optimisticData;++E.txCount,Ce&&(E.data=E.optimisticData=Ce);try{return be=j(E)}finally{--E.txCount,E.data=je,E.optimisticData=Le}},Pe=new Set;return ge&&!this.txCount&&this.broadcastWatches((0,t.pi)((0,t.pi)({},f),{onWatchUpdated:function(Ce){return Pe.add(Ce),!1}})),"string"==typeof Z?this.optimisticData=this.optimisticData.addLayer(Z,Ae):!1===Z?Ae(this.data):Ae(),"string"==typeof le&&(this.optimisticData=this.optimisticData.removeLayer(le)),ge&&Pe.size?(this.broadcastWatches((0,t.pi)((0,t.pi)({},f),{onWatchUpdated:function(Ce,ke){var je=ge.call(this,Ce,ke);return!1!==je&&Pe.delete(Ce),je}})),Pe.size&&Pe.forEach(function(Ce){return E.maybeBroadcastWatch.dirty(Ce)})):this.broadcastWatches(f),be},o.prototype.performTransaction=function(f,E){return this.batch({update:f,optimistic:E||null!==E})},o.prototype.transformDocument=function(f){if(this.addTypename){var E=this.typenameDocumentCache.get(f);return E||(E=$e(f),this.typenameDocumentCache.set(f,E),this.typenameDocumentCache.set(E,E)),E}return f},o.prototype.broadcastWatches=function(f){var E=this;this.txCount||this.watches.forEach(function(j){return E.maybeBroadcastWatch(j,f)})},o.prototype.broadcastWatch=function(f,E){var j=f.lastDiff,G=this.diff(f);E&&(f.optimistic&&"string"==typeof E.optimistic&&(G.fromOptimisticTransaction=!0),E.onWatchUpdated&&!1===E.onWatchUpdated.call(this,f,G,j))||(!j||!(0,ut.D)(j.result,G.result))&&f.callback(f.lastDiff=G,j)},o}(kn),Mi=mt.empty,ki=mt.from,Fi=mt.split,Li=mt.concat;function Ni(S){var o=!1;return new Promise(function(f,E){S.subscribe({next:function(j){o?__DEV__&&a.warn("Promise Wrapper does not support multiple results from Observable"):(o=!0,f(j))},error:E})})}function Bi(S){return new me(function(o){S.then(function(f){o.next(f),o.complete()}).catch(o.error.bind(o))})}var wr=p(28486);s(C?"log":"silent")},7535:ce=>{"use strict";ce.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"}}')},79476:ce=>{"use strict";ce.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},85464:ce=>{"use strict";ce.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},6839:ce=>{"use strict";ce.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp"},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"gamesparks":{"name":"GameSparks"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"}}')},3554:ce=>{"use strict";ce.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Si"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Si":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sn":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},31152:ce=>{"use strict";ce.exports={o:{}}},85595:ce=>{"use strict";ce.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"}},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"}}}')},44226:ce=>{"use strict";ce.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.4","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-sdk":"^2.814.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')}}]);
|
|
1
|
+
(self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[625],{53130:(le,k,y)=>{"use strict";y.d(k,{R:()=>m});var a=y(40245),O=y(25661),m=function(){function r(){this.getFragmentDoc=(0,a.re)(O.Yk)}return r.prototype.recordOptimisticTransaction=function(n,o){this.performTransaction(n,o)},r.prototype.transformDocument=function(n){return n},r.prototype.identify=function(n){},r.prototype.gc=function(){return[]},r.prototype.modify=function(n){return!1},r.prototype.transformForLink=function(n){return n},r.prototype.readQuery=function(n,o){return void 0===o&&(o=!!n.optimistic),this.read({rootId:n.id||"ROOT_QUERY",query:n.query,variables:n.variables,returnPartialData:n.returnPartialData,optimistic:o})},r.prototype.readFragment=function(n,o){return void 0===o&&(o=!!n.optimistic),this.read({query:this.getFragmentDoc(n.fragment,n.fragmentName),variables:n.variables,rootId:n.id,returnPartialData:n.returnPartialData,optimistic:o})},r.prototype.writeQuery=function(n){return this.write({dataId:n.id||"ROOT_QUERY",result:n.data,query:n.query,variables:n.variables,broadcast:n.broadcast})},r.prototype.writeFragment=function(n){return this.write({dataId:n.id,result:n.data,variables:n.variables,query:this.getFragmentDoc(n.fragment,n.fragmentName),broadcast:n.broadcast})},r}()},2156:(le,k,y)=>{"use strict";var a;y.d(k,{C:()=>a}),a||(a={})},17881:(le,k,y)=>{"use strict";y.d(k,{y:()=>a});var a=function O(m,r,n,o,l){this.message=m,this.path=r,this.query=n,this.clientOnly=o,this.variables=l}},79325:(le,k,y)=>{"use strict";y.d(k,{$O:()=>o,E_:()=>l,RC:()=>e,RI:()=>r,ig:()=>h,j:()=>i});var a=y(92137),O=y(23875),m=y(55932),r=Object.prototype.hasOwnProperty,o=/^[_a-z][_0-9a-z]*/i;function l(d){var g=d.match(o);return g?g[0]:d}function e(d,g,b){return!(!g||"object"!=typeof g)&&(Array.isArray(g)?g.every(function(T){return e(d,T,b)}):d.selections.every(function(T){if((0,a.My)(T)&&(0,O.LZ)(T,b)){var M=(0,a.u2)(T);return r.call(g,M)&&(!T.selectionSet||e(T.selectionSet,g[M],b))}return!0}))}function i(d){return null!==d&&"object"==typeof d&&!(0,a.Yk)(d)&&!Array.isArray(d)}function h(){return new m.w0}},82479:(le,k,y)=>{"use strict";y.d(k,{h:()=>oe});var ee,L,a=y(60162),O=y(40245),m=y(53130),r=y(17881),n=y(92137),o=y(77218),l=y(3474),e=y(53725),i=y(25661),h=y(23875),d=y(55932),g=y(16492),R=y(40863),x=y(79325),P=Object.create(null),W=function(){return P},V=Object.create(null),Y=function(){function ee(L,S){var B=this;this.policies=L,this.group=S,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(G,U){return(0,n.Yk)(G)?B.get(G.__ref,U):G&&G[U]},this.canRead=function(G){return(0,n.Yk)(G)?B.has(G.__ref):"object"==typeof G},this.toReference=function(G,U){if("string"==typeof G)return(0,n.kQ)(G);if((0,n.Yk)(G))return G;var re=B.policies.identify(G)[0];if(re){var ce=(0,n.kQ)(re);return U&&B.merge(re,G),ce}}}return ee.prototype.toObject=function(){return(0,a.pi)({},this.data)},ee.prototype.has=function(L){return void 0!==this.lookup(L,!0)},ee.prototype.get=function(L,S){if(this.group.depend(L,S),x.RI.call(this.data,L)){var B=this.data[L];if(B&&x.RI.call(B,S))return B[S]}return"__typename"===S&&x.RI.call(this.policies.rootTypenamesById,L)?this.policies.rootTypenamesById[L]:this instanceof C?this.parent.get(L,S):void 0},ee.prototype.lookup=function(L,S){return S&&this.group.depend(L,"__exists"),x.RI.call(this.data,L)?this.data[L]:this instanceof C?this.parent.lookup(L,S):this.policies.rootTypenamesById[L]?Object.create(null):void 0},ee.prototype.merge=function(L,S){var B=this,G=this.lookup(L),U=new d.w0(p).merge(G,S);if(this.data[L]=U,U!==G&&(delete this.refs[L],this.group.caching)){var re=Object.create(null);G||(re.__exists=1),Object.keys(S).forEach(function(ce){if(!G||G[ce]!==U[ce]){re[ce]=1;var be=(0,x.E_)(ce);be!==ce&&!B.policies.hasKeyArgs(U.__typename,be)&&(re[be]=1),void 0===U[ce]&&!(B instanceof C)&&delete U[ce]}}),Object.keys(re).forEach(function(ce){return B.group.dirty(L,ce)})}},ee.prototype.modify=function(L,S){var B=this,G=this.lookup(L);if(G){var U=Object.create(null),re=!1,ce=!0,be={DELETE:P,INVALIDATE:V,isReference:n.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(Z,de){return B.policies.readField("string"==typeof Z?{fieldName:Z,from:de||(0,n.kQ)(L)}:Z,{store:B})}};if(Object.keys(G).forEach(function(Z){var de=(0,x.E_)(Z),he=G[Z];if(void 0!==he){var Ee="function"==typeof S?S:S[Z]||S[de];if(Ee){var K=Ee===W?P:Ee(he,(0,a.pi)((0,a.pi)({},be),{fieldName:de,storeFieldName:Z,storage:B.getStorage(L,Z)}));K===V?B.group.dirty(L,Z):(K===P&&(K=void 0),K!==he&&(U[Z]=K,re=!0,he=K))}void 0!==he&&(ce=!1)}}),re)return this.merge(L,U),ce&&(this instanceof C?this.data[L]=void 0:delete this.data[L],this.group.dirty(L,"__exists")),!0}return!1},ee.prototype.delete=function(L,S,B){var G,U=this.lookup(L);if(U){var re=this.getFieldValue(U,"__typename"),ce=S&&B?this.policies.getStoreFieldName({typename:re,fieldName:S,args:B}):S;return this.modify(L,ce?((G={})[ce]=W,G):W)}return!1},ee.prototype.evict=function(L){var S=!1;return L.id&&(x.RI.call(this.data,L.id)&&(S=this.delete(L.id,L.fieldName,L.args)),this instanceof C&&(S=this.parent.evict(L)||S),(L.fieldName||S)&&this.group.dirty(L.id,L.fieldName||"__exists")),S},ee.prototype.clear=function(){this.replace(null)},ee.prototype.extract=function(){var L=this,S=this.toObject(),B=[];return this.getRootIdSet().forEach(function(G){x.RI.call(L.policies.rootTypenamesById,G)||B.push(G)}),B.length&&(S.__META={extraRootIds:B.sort()}),S},ee.prototype.replace=function(L){var S=this;if(Object.keys(this.data).forEach(function(U){L&&x.RI.call(L,U)||S.delete(U)}),L){var B=L.__META,G=(0,a._T)(L,["__META"]);Object.keys(G).forEach(function(U){S.merge(U,G[U])}),B&&B.extraRootIds.forEach(this.retain,this)}},ee.prototype.retain=function(L){return this.rootIds[L]=(this.rootIds[L]||0)+1},ee.prototype.release=function(L){if(this.rootIds[L]>0){var S=--this.rootIds[L];return S||delete this.rootIds[L],S}return 0},ee.prototype.getRootIdSet=function(L){return void 0===L&&(L=new Set),Object.keys(this.rootIds).forEach(L.add,L),this instanceof C?this.parent.getRootIdSet(L):Object.keys(this.policies.rootTypenamesById).forEach(L.add,L),L},ee.prototype.gc=function(){var L=this,S=this.getRootIdSet(),B=this.toObject();S.forEach(function(re){x.RI.call(B,re)&&(Object.keys(L.findChildRefIds(re)).forEach(S.add,S),delete B[re])});var G=Object.keys(B);if(G.length){for(var U=this;U instanceof C;)U=U.parent;G.forEach(function(re){return U.delete(re)})}return G},ee.prototype.findChildRefIds=function(L){if(!x.RI.call(this.refs,L)){var S=this.refs[L]=Object.create(null),B=new Set([this.data[L]]),G=function(U){return null!==U&&"object"==typeof U};B.forEach(function(U){(0,n.Yk)(U)?S[U.__ref]=!0:G(U)&&Object.values(U).filter(G).forEach(B.add,B)})}return this.refs[L]},ee.prototype.makeCacheKey=function(){for(var L=[],S=0;S<arguments.length;S++)L[S]=arguments[S];return this.group.keyMaker.lookupArray(L)},ee}(),j=function(){function ee(L){this.caching=L,this.d=null,this.keyMaker=new O.Gl(R.m),this.d=L?(0,O.dP)():null}return ee.prototype.depend=function(L,S){if(this.d){this.d(E(L,S));var B=(0,x.E_)(S);B!==S&&this.d(E(L,B))}},ee.prototype.dirty=function(L,S){this.d&&this.d.dirty(E(L,S))},ee}();function E(ee,L){return L+"#"+ee}L=function(S){function B(G){var re=G.resultCaching,ce=void 0===re||re,be=G.seed,Z=S.call(this,G.policies,new j(ce))||this;return Z.storageTrie=new O.Gl(R.m),Z.sharedLayerGroup=new j(ce),be&&Z.replace(be),Z}return(0,a.ZT)(B,S),B.prototype.addLayer=function(G,U){return new C(G,this,U,this.sharedLayerGroup)},B.prototype.removeLayer=function(){return this},B.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},B}(ee=Y||(Y={})),ee.Root=L;var C=function(ee){function L(S,B,G,U){var re=ee.call(this,B.policies,U)||this;return re.id=S,re.parent=B,re.replay=G,re.group=U,G(re),re}return(0,a.ZT)(L,ee),L.prototype.addLayer=function(S,B){return new L(S,this,B,this.group)},L.prototype.removeLayer=function(S){var B=this,G=this.parent.removeLayer(S);return S===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(U){B.data[U]!==G.lookup(U)&&B.delete(U)}),G):G===this.parent?this:G.addLayer(this.id,this.replay)},L.prototype.toObject=function(){return(0,a.pi)((0,a.pi)({},this.parent.toObject()),this.data)},L.prototype.findChildRefIds=function(S){var B=this.parent.findChildRefIds(S);return x.RI.call(this.data,S)?(0,a.pi)((0,a.pi)({},B),ee.prototype.findChildRefIds.call(this,S)):B},L.prototype.getStorage=function(){for(var S=this.parent;S.parent;)S=S.parent;return S.getStorage.apply(S,arguments)},L}(Y);function p(ee,L,S){var B=ee[S],G=L[S];return(0,g.D)(B,G)?B:G}function _(ee){return!!(ee instanceof Y&&ee.group.caching)}function v(ee,L){return new r.y(ee.message,L.path.slice(),L.query,L.clientOnly,L.variables)}var F=function(){function ee(L){var S=this;this.config=L,this.executeSelectionSet=(0,O.re)(function(B){return S.execSelectionSetImpl(B)},{keyArgs:function(B){return[B.selectionSet,B.objectOrReference,B.context]},makeCacheKey:function(B,G,U){if(_(U.store))return U.store.makeCacheKey(B,(0,n.Yk)(G)?G.__ref:G,U.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,O.re)(function(B){return S.execSubSelectedArrayImpl(B)},{makeCacheKey:function(B){var G=B.field,U=B.array,re=B.context;if(_(re.store))return re.store.makeCacheKey(G,U,re.varString)}}),this.config=(0,a.pi)({addTypename:!0},L)}return ee.prototype.diffQueryAgainstStore=function(L){var S=L.store,B=L.query,G=L.rootId,U=void 0===G?"ROOT_QUERY":G,re=L.variables,ce=L.returnPartialData,be=void 0===ce||ce,Z=this.config.cache.policies;re=(0,a.pi)((0,a.pi)({},(0,e.O4)((0,e.iW)(B))),re);var de=this.executeSelectionSet({selectionSet:(0,e.p$)(B).selectionSet,objectOrReference:(0,n.kQ)(U),context:{store:S,query:B,policies:Z,variables:re,varString:JSON.stringify(re),fragmentMap:(0,i.F)((0,e.kU)(B)),path:[],clientOnly:!1}}),he=de.missing&&de.missing.length>0;if(he&&!be)throw de.missing[0];return{result:de.result,missing:de.missing,complete:!he}},ee.prototype.isFresh=function(L,S,B,G){if(_(G.store)&&this.knownResults.get(L)===B){var U=this.executeSelectionSet.peek(B,S,G);if(U&&L===U.result)return!0}return!1},ee.prototype.execSelectionSetImpl=function(L){var S=this,B=L.selectionSet,G=L.objectOrReference,U=L.context;if((0,n.Yk)(G)&&!U.policies.rootTypenamesById[G.__ref]&&!U.store.has(G.__ref))return{result:{},missing:[v(new l.ej(4),U)]};var re=U.variables,ce=U.policies,Z=[],de={result:null},he=U.store.getFieldValue(G,"__typename");function Ee(){return de.missing||(de.missing=[])}function K(f){var A;return f.missing&&(A=Ee()).push.apply(A,f.missing),f.result}this.config.addTypename&&"string"==typeof he&&!ce.rootIdsByTypename[he]&&Z.push({__typename:he});var w=new Set(B.selections);return w.forEach(function(f){var A;if((0,h.LZ)(f,re))if((0,n.My)(f)){var I=ce.readField({fieldName:f.name.value,field:f,variables:U.variables,from:G},U),ne=(0,n.u2)(f);U.path.push(ne);var me=U.clientOnly;U.clientOnly=me||!(!f.directives||!f.directives.some(function(Pe){return"client"===Pe.name.value})),void 0===I?o.Gw.added(f)||Ee().push(v(new l.ej(5),U)):Array.isArray(I)?I=K(S.executeSubSelectedArray({field:f,array:I,context:U})):f.selectionSet&&null!=I&&(I=K(S.executeSelectionSet({selectionSet:f.selectionSet,objectOrReference:I,context:U}))),void 0!==I&&Z.push(((A={})[ne]=I,A)),U.clientOnly=me,(0,l.kG)(U.path.pop()===ne)}else{var Re=(0,i.hi)(f,U.fragmentMap);Re&&ce.fragmentMatches(Re,he)&&Re.selectionSet.selections.forEach(w.add,w)}}),de.result=(0,d.bw)(Z),this.knownResults.set(de.result,B),de},ee.prototype.execSubSelectedArrayImpl=function(L){var re,S=this,B=L.field,G=L.array,U=L.context;function ce(be,Z){return be.missing&&(re=re||[]).push.apply(re,be.missing),(0,l.kG)(U.path.pop()===Z),be.result}return B.selectionSet&&(G=G.filter(U.store.canRead)),{result:G=G.map(function(be,Z){return null===be?null:(U.path.push(Z),Array.isArray(be)?ce(S.executeSubSelectedArray({field:B,array:be,context:U}),Z):B.selectionSet?ce(S.executeSelectionSet({selectionSet:B.selectionSet,objectOrReference:be,context:U}),Z):((0,l.kG)(U.path.pop()===Z),be))}),missing:re}},ee}(),Q=function(){function ee(L,S){this.cache=L,this.reader=S}return ee.prototype.writeToStore=function(L){var S=L.query,B=L.result,G=L.dataId,U=L.store,re=L.variables,ce=(0,e.$H)(S),be=(0,x.ig)();re=(0,a.pi)((0,a.pi)({},(0,e.O4)(ce)),re);var Z=this.processSelectionSet({result:B||Object.create(null),dataId:G,selectionSet:ce.selectionSet,mergeTree:{map:new Map},context:{store:U,written:Object.create(null),merge:function(de,he){return be.merge(de,he)},variables:re,varString:JSON.stringify(re),fragmentMap:(0,i.F)((0,e.kU)(S))}});if(!(0,n.Yk)(Z))throw new l.ej(7);return U.retain(Z.__ref),Z},ee.prototype.processSelectionSet=function(L){var S=this,B=L.dataId,G=L.result,U=L.selectionSet,re=L.context,ce=L.mergeTree,be=this.cache.policies,Z=be.identify(G,U,re.fragmentMap),he=Z[1];if("string"==typeof(B=B||Z[0])){var Ee=re.written[B]||(re.written[B]=[]),K=(0,n.kQ)(B);if(Ee.indexOf(U)>=0||(Ee.push(U),this.reader&&this.reader.isFresh(G,K,U,re)))return K}var w=Object.create(null);he&&(w=re.merge(w,he));var f=B&&be.rootTypenamesById[B]||(0,n.qw)(G,U,re.fragmentMap)||B&&re.store.get(B,"__typename");"string"==typeof f&&(w.__typename=f);var A=new Set(U.selections);if(A.forEach(function(Pe){var ae;if((0,h.LZ)(Pe,re.variables))if((0,n.My)(Pe)){var ye=(0,n.u2)(Pe),_e=G[ye];if(typeof _e<"u"){var Ie=be.getStoreFieldName({typename:f,fieldName:Pe.name.value,field:Pe,variables:re.variables}),Me=ie(ce,Ie),je=S.processFieldValue(_e,Pe,re,Me),Ke=Pe.selectionSet&&re.store.getFieldValue(je,"__typename")||void 0,qe=be.getMergeFunction(f,Pe.name.value,Ke);qe?Me.info={field:Pe,typename:f,merge:qe}:Se(ce,Ie),w=re.merge(w,((ae={})[Ie]=je,ae))}else if(be.usingPossibleTypes&&!(0,h.FS)(["defer","client"],Pe))throw new l.ej(8)}else{var at=(0,i.hi)(Pe,re.fragmentMap);at&&be.fragmentMatches(at,f,G,re.variables)&&at.selectionSet.selections.forEach(A.add,A)}}),"string"==typeof B){var I=(0,n.kQ)(B);return ce.map.size&&(w=this.applyMerges(ce,I,w,re)),re.store.merge(B,w),I}return w},ee.prototype.processFieldValue=function(L,S,B,G){var U=this;return S.selectionSet&&null!==L?Array.isArray(L)?L.map(function(re,ce){var be=U.processFieldValue(re,S,B,ie(G,ce));return Se(G,ce),be}):this.processSelectionSet({result:L,selectionSet:S.selectionSet,context:B,mergeTree:G}):L},ee.prototype.applyMerges=function(L,S,B,G,U){var re,ce=this;if(L.map.size&&!(0,n.Yk)(B)){var be=Array.isArray(B)||!(0,n.Yk)(S)&&!(0,x.j)(S)?void 0:S,Z=B;be&&!U&&(U=[(0,n.Yk)(be)?be.__ref:be]);var de,he=function(Ee,K){return Array.isArray(Ee)?"number"==typeof K?Ee[K]:void 0:G.store.getFieldValue(Ee,String(K))};L.map.forEach(function(Ee,K){U&&U.push(K);var w=he(be,K),f=he(Z,K),A=ce.applyMerges(Ee,w,f,G,U);A!==f&&(de=de||new Map).set(K,A),U&&(0,l.kG)(U.pop()===K)}),de&&(B=Array.isArray(Z)?Z.slice(0):(0,a.pi)({},Z),de.forEach(function(Ee,K){B[K]=Ee}))}return L.info?this.cache.policies.runMergeFunction(S,B,L.info,G,U&&(re=G.store).getStorage.apply(re,U)):B},ee}(),J=[];function ie(ee,L){var S=ee.map;return S.has(L)||S.set(L,J.pop()||{map:new Map}),S.get(L)}function Se(ee,L){var S=ee.map,B=S.get(L);B&&!B.info&&!B.map.size&&(J.push(B),S.delete(L))}var ue=y(70584),H=y(74716),$={dataIdFromObject:H.u,addTypename:!0,resultCaching:!0,typePolicies:{}},oe=function(ee){function L(S){void 0===S&&(S={});var B=ee.call(this)||this;return B.watches=new Set,B.typenameDocumentCache=new Map,B.makeVar=ue.QS,B.txCount=0,B.maybeBroadcastWatch=(0,O.re)(function(G,U){return B.broadcastWatch.call(B,G,!!U)},{makeCacheKey:function(G){var U=G.optimistic?B.optimisticData:B.data;if(_(U))return U.makeCacheKey(G.query,G.callback,JSON.stringify({optimistic:G.optimistic,rootId:G.rootId,variables:G.variables}))}}),B.watchDep=(0,O.dP)(),B.config=(0,a.pi)((0,a.pi)({},$),S),B.addTypename=!!B.config.addTypename,B.policies=new H.r({cache:B,dataIdFromObject:B.config.dataIdFromObject,possibleTypes:B.config.possibleTypes,typePolicies:B.config.typePolicies}),B.data=new Y.Root({policies:B.policies,resultCaching:B.config.resultCaching}),B.optimisticData=B.data,B.storeWriter=new Q(B,B.storeReader=new F({cache:B,addTypename:B.addTypename})),B}return(0,a.ZT)(L,ee),L.prototype.restore=function(S){return S&&this.data.replace(S),this},L.prototype.extract=function(S){return void 0===S&&(S=!1),(S?this.optimisticData:this.data).extract()},L.prototype.read=function(S){var B=S.returnPartialData,G=void 0!==B&&B;try{return this.storeReader.diffQueryAgainstStore({store:S.optimistic?this.optimisticData:this.data,query:S.query,variables:S.variables,rootId:S.rootId,config:this.config,returnPartialData:G}).result||null}catch(U){if(U instanceof r.y)return null;throw U}},L.prototype.write=function(S){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:S.query,result:S.result,dataId:S.dataId,variables:S.variables})}finally{!--this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},L.prototype.modify=function(S){if(x.RI.call(S,"id")&&!S.id)return!1;var B=S.optimistic?this.optimisticData:this.data;try{return++this.txCount,B.modify(S.id||"ROOT_QUERY",S.fields)}finally{!--this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},L.prototype.diff=function(S){return this.storeReader.diffQueryAgainstStore({store:S.optimistic?this.optimisticData:this.data,rootId:S.id||"ROOT_QUERY",query:S.query,variables:S.variables,returnPartialData:S.returnPartialData,config:this.config})},L.prototype.watch=function(S){var B=this;return this.watches.size||(0,ue._v)(this),this.watches.add(S),S.immediate&&this.maybeBroadcastWatch(S),function(){B.watches.delete(S)&&!B.watches.size&&(0,ue.li)(B),B.watchDep.dirty(S),B.maybeBroadcastWatch.forget(S)}},L.prototype.gc=function(){return this.optimisticData.gc()},L.prototype.retain=function(S,B){return(B?this.optimisticData:this.data).retain(S)},L.prototype.release=function(S,B){return(B?this.optimisticData:this.data).release(S)},L.prototype.identify=function(S){return(0,n.Yk)(S)?S.__ref:this.policies.identify(S)[0]},L.prototype.evict=function(S){if(!S.id){if(x.RI.call(S,"id"))return!1;S=(0,a.pi)((0,a.pi)({},S),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(S)}finally{!--this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},L.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},L.prototype.removeOptimistic=function(S){var B=this.optimisticData.removeLayer(S);B!==this.optimisticData&&(this.optimisticData=B,this.broadcastWatches())},L.prototype.performTransaction=function(S,B){var G=this,U=function(ce){var Z=G.data,de=G.optimisticData;++G.txCount,ce&&(G.data=G.optimisticData=ce);try{S(G)}finally{--G.txCount,G.data=Z,G.optimisticData=de}},re=!1;"string"==typeof B?(this.optimisticData=this.optimisticData.addLayer(B,U),re=!0):null===B?U(this.data):U(),this.broadcastWatches(re)},L.prototype.transformDocument=function(S){if(this.addTypename){var B=this.typenameDocumentCache.get(S);return B||(B=(0,o.Gw)(S),this.typenameDocumentCache.set(S,B),this.typenameDocumentCache.set(B,B)),B}return S},L.prototype.broadcastWatches=function(S){var B=this;this.txCount||this.watches.forEach(function(G){return B.maybeBroadcastWatch(G,S)})},L.prototype.broadcastWatch=function(S,B){this.watchDep.dirty(S),this.watchDep(S);var G=this.diff({query:S.query,variables:S.variables,optimistic:S.optimistic});S.optimistic&&B&&(G.fromOptimisticTransaction=!0),S.callback(G)},L}(m.R)},74716:(le,k,y)=>{"use strict";y.d(k,{r:()=>M,u:()=>h});var a=y(60162),O=y(40245),m=y(3474),r=y(92137),n=y(40863),o=y(25661),l=y(79325),e=y(70584);function i(j){return void 0!==j.args?j.args:j.field?(0,r.NC)(j.field,j.variables):null}var h=function(j,E){var C=j.__typename,p=j.id,_=j._id;if("string"==typeof C&&(E&&(E.keyObject=void 0!==p?{id:p}:void 0!==_?{_id:_}:void 0),void 0===p&&(p=_),void 0!==p))return C+":"+("number"==typeof p||"string"==typeof p?p:JSON.stringify(p))},d=function(){},g=function(j,E){return E.fieldName},b=function(j,E,C){return(0,C.mergeObjects)(j,E)},T=function(j,E){return E},M=function(){function j(E){this.config=E,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,a.pi)({dataIdFromObject:h},E),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),E.possibleTypes&&this.addPossibleTypes(E.possibleTypes),E.typePolicies&&this.addTypePolicies(E.typePolicies)}return j.prototype.identify=function(E,C,p){var _=C&&p?(0,r.qw)(E,C,p):E.__typename;if(_===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var F,v={typename:_,selectionSet:C,fragmentMap:p},q=_&&this.getTypePolicy(_),Q=q&&q.keyFn||this.config.dataIdFromObject;Q;){var J=Q(E,v);if(!Array.isArray(J)){F=J;break}Q=W(J)}return F=F?String(F):void 0,v.keyObject?[F,v.keyObject]:[F]},j.prototype.addTypePolicies=function(E){var C=this;Object.keys(E).forEach(function(p){var _=E[p],v=_.queryType,F=_.mutationType,q=_.subscriptionType,Q=(0,a._T)(_,["queryType","mutationType","subscriptionType"]);v&&C.setRootTypename("Query",p),F&&C.setRootTypename("Mutation",p),q&&C.setRootTypename("Subscription",p),l.RI.call(C.toBeAdded,p)?C.toBeAdded[p].push(Q):C.toBeAdded[p]=[Q]})},j.prototype.updateTypePolicy=function(E,C){var p=this,_=this.getTypePolicy(E),v=C.keyFields,F=C.fields;function q(Q,J){Q.merge="function"==typeof J?J:!0===J?b:!1===J?T:Q.merge}q(_,C.merge),_.keyFn=!1===v?d:Array.isArray(v)?W(v):"function"==typeof v?v:_.keyFn,F&&Object.keys(F).forEach(function(Q){var J=p.getFieldPolicy(E,Q,!0),ie=F[Q];if("function"==typeof ie)J.read=ie;else{var Se=ie.keyArgs,te=ie.read,ge=ie.merge;J.keyFn=!1===Se?g:Array.isArray(Se)?P(Se):"function"==typeof Se?Se:J.keyFn,"function"==typeof te&&(J.read=te),q(J,ge)}J.read&&J.merge&&(J.keyFn=J.keyFn||g)})},j.prototype.setRootTypename=function(E,C){void 0===C&&(C=E);var p="ROOT_"+E.toUpperCase(),_=this.rootTypenamesById[p];C!==_&&((0,m.kG)(!_||_===E,1),_&&delete this.rootIdsByTypename[_],this.rootIdsByTypename[C]=p,this.rootTypenamesById[p]=C)},j.prototype.addPossibleTypes=function(E){var C=this;this.usingPossibleTypes=!0,Object.keys(E).forEach(function(p){C.getSupertypeSet(p,!0),E[p].forEach(function(_){C.getSupertypeSet(_,!0).add(p);var v=_.match(l.$O);(!v||v[0]!==_)&&C.fuzzySubtypes.set(_,new RegExp(_))})})},j.prototype.getTypePolicy=function(E){var C=this;if(!l.RI.call(this.typePolicies,E)){var p=this.typePolicies[E]=Object.create(null);p.fields=Object.create(null);var _=this.supertypeMap.get(E);_&&_.size&&_.forEach(function(F){var q=C.getTypePolicy(F),Q=q.fields,J=(0,a._T)(q,["fields"]);Object.assign(p,J),Object.assign(p.fields,Q)})}var v=this.toBeAdded[E];return v&&v.length&&v.splice(0).forEach(function(F){C.updateTypePolicy(E,F)}),this.typePolicies[E]},j.prototype.getFieldPolicy=function(E,C,p){if(E){var _=this.getTypePolicy(E).fields;return _[C]||p&&(_[C]=Object.create(null))}},j.prototype.getSupertypeSet=function(E,C){var p=this.supertypeMap.get(E);return!p&&C&&this.supertypeMap.set(E,p=new Set),p},j.prototype.fragmentMatches=function(E,C,p,_){var v=this;if(!E.typeCondition)return!0;if(!C)return!1;var F=E.typeCondition.name.value;if(C===F)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(F))for(var q=this.getSupertypeSet(C,!0),Q=[q],J=function(ue){var H=v.getSupertypeSet(ue,!1);H&&H.size&&Q.indexOf(H)<0&&Q.push(H)},ie=!(!p||!this.fuzzySubtypes.size),te=0;te<Q.length;++te){var ge=Q[te];if(ge.has(F))return q.has(F)||q.add(F),!0;ge.forEach(J),ie&&te===Q.length-1&&(0,l.RC)(E.selectionSet,p,_)&&(ie=!1,this.fuzzySubtypes.forEach(function(ue,H){var $=C.match(ue);$&&$[0]===C&&J(H)}))}return!1},j.prototype.hasKeyArgs=function(E,C){var p=this.getFieldPolicy(E,C,!1);return!(!p||!p.keyFn)},j.prototype.getStoreFieldName=function(E){var v,C=E.typename,p=E.fieldName,_=this.getFieldPolicy(C,p,!1),F=_&&_.keyFn;if(F&&C)for(var q={typename:C,fieldName:p,field:E.field||null,variables:E.variables},Q=i(E);F;){var J=F(Q,q);if(!Array.isArray(J)){v=J||p;break}F=P(J)}return void 0===v&&(v=E.field?(0,r.vf)(E.field,E.variables):(0,r.PT)(p,i(E))),!1===v?p:p===(0,l.E_)(v)?v:p+":"+v},j.prototype.readField=function(E,C){var p=E.from;if(p&&(E.field||E.fieldName)){if(void 0===E.typename){var v=C.store.getFieldValue(p,"__typename");v&&(E.typename=v)}var F=this.getStoreFieldName(E),q=(0,l.E_)(F),Q=C.store.getFieldValue(p,F),J=this.getFieldPolicy(E.typename,q,!1),ie=J&&J.read;if(ie){var Se=R(this,p,E,C,C.store.getStorage((0,r.Yk)(p)?p.__ref:p,F));return e.ab.withValue(this.cache,ie,[Q,Se])}return Q}},j.prototype.getMergeFunction=function(E,C,p){var _=this.getFieldPolicy(E,C,!1),v=_&&_.merge;return!v&&p&&(v=(_=this.getTypePolicy(p))&&_.merge),v},j.prototype.runMergeFunction=function(E,C,p,_,v){var F=p.field,q=p.typename,Q=p.merge;return Q===b?x(_.store.getFieldValue)(E,C):Q===T?C:Q(E,C,R(this,void 0,{typename:q,fieldName:F.name.value,field:F,variables:_.variables},_,v||Object.create(null)))},j}();function R(j,E,C,p,_){var v=j.getStoreFieldName(C),F=(0,l.E_)(v),q=C.variables||p.variables,Q=p.store,J=Q.getFieldValue,ie=Q.toReference,Se=Q.canRead;return{args:i(C),field:C.field||null,fieldName:F,storeFieldName:v,variables:q,isReference:r.Yk,toReference:ie,storage:_,cache:j.cache,canRead:Se,readField:function(te,ge){var ue="string"==typeof te?{fieldName:te,from:ge}:(0,a.pi)({},te);return void 0===ue.from&&(ue.from=E),void 0===ue.variables&&(ue.variables=q),j.readField(ue,p)},mergeObjects:x(J)}}function x(j){return function(C,p){if(Array.isArray(C)||Array.isArray(p))throw new m.ej(2);if(C&&"object"==typeof C&&p&&"object"==typeof p){var _=j(C,"__typename"),v=j(p,"__typename");return _&&v&&_!==v||!(0,l.j)(C)||!(0,l.j)(p)?p:(0,a.pi)((0,a.pi)({},C),p)}return p}}function P(j){return function(E,C){return E?C.fieldName+":"+JSON.stringify(Y(E,j,!1)):C.fieldName}}function W(j){var E=new O.Gl(n.m);return function(C,p){var _;if(p.selectionSet&&p.fragmentMap){var v=E.lookupArray([p.selectionSet,p.fragmentMap]);_=v.aliasMap||(v.aliasMap=V(p.selectionSet,p.fragmentMap))}var F=p.keyObject=Y(C,j,!0,_);return p.typename+":"+JSON.stringify(F)}}function V(j,E){var C=Object.create(null),p=new Set([j]);return p.forEach(function(_){_.selections.forEach(function(v){if((0,r.My)(v)){if(v.alias){var F=v.alias.value,q=v.name.value;q!==F&&((C.aliases||(C.aliases=Object.create(null)))[q]=F)}v.selectionSet&&((C.subsets||(C.subsets=Object.create(null)))[v.name.value]=V(v.selectionSet,E))}else{var ie=(0,o.hi)(v,E);ie&&p.add(ie.selectionSet)}})}),C}function Y(j,E,C,p){var v,_=Object.create(null);return E.forEach(function(F){if(Array.isArray(F)){if("string"==typeof v){var q=p&&p.subsets;_[v]=Y(j[v],F,C,q&&q[v])}}else{var J=p&&p.aliases,ie=J&&J[F]||F;l.RI.call(j,ie)?_[v=F]=j[ie]:((0,m.kG)(!C,3),v=void 0)}}),_}},70584:(le,k,y)=>{"use strict";y.d(k,{QS:()=>e,_v:()=>l,ab:()=>m,li:()=>o});var a=y(40245),m=new(y(62966).g7),r=new WeakMap;function n(h){var d=r.get(h);return d||r.set(h,d={vars:new Set,dep:(0,a.dP)()}),d}function o(h){n(h).vars.forEach(function(d){return d.forgetCache(h)})}function l(h){n(h).vars.forEach(function(d){return d.attachCache(h)})}function e(h){var d=new Set,g=new Set,b=function(M){if(arguments.length>0){if(h!==M){h=M,d.forEach(function(P){n(P).dep.dirty(b),function i(h){h.broadcastWatches&&h.broadcastWatches()}(P)});var R=Array.from(g);g.clear(),R.forEach(function(P){return P(h)})}}else{var x=m.getValue();x&&(T(x),n(x).dep(b))}return h};b.onNextChange=function(M){return g.add(M),function(){g.delete(M)}};var T=b.attachCache=function(M){return d.add(M),n(M).vars.add(b),b};return b.forgetCache=function(M){return d.delete(M)},b}},50940:()=>{},28341:(le,k,y)=>{"use strict";y.d(k,{f:()=>ee,J:()=>oe});var a=y(60162),O=y(3474),m=y(30387),r=y(50607),n=y(30921),o="3.3.20",l=y(24555),e=y(16492),i=y(40863);function h(L){return L.errors&&L.errors.length>0||!1}var d=y(26583),g=y(53725),b=y(77218),T=y(23875),M=y(20274),R=y.n(M),x=y(97090),P=y(67178);function W(L){return L&&"function"==typeof L.then}var V=function(L){function S(B){var G=L.call(this,function(U){return G.addObserver(U),function(){return G.removeObserver(U)}})||this;return G.observers=new Set,G.addCount=0,G.promise=new Promise(function(U,re){G.resolve=U,G.reject=re}),G.handlers={next:function(U){null!==G.sub&&(G.latest=["next",U],(0,x.p)(G.observers,"next",U))},error:function(U){var re=G.sub;null!==re&&(re&&Promise.resolve().then(function(){return re.unsubscribe()}),G.sub=null,G.latest=["error",U],G.reject(U),(0,x.p)(G.observers,"error",U))},complete:function(){if(null!==G.sub){var U=G.sources.shift();U?W(U)?U.then(function(re){return G.sub=re.subscribe(G.handlers)}):G.sub=U.subscribe(G.handlers):(G.sub=null,G.latest&&"next"===G.latest[0]?G.resolve(G.latest[1]):G.resolve(),(0,x.p)(G.observers,"complete"))}}},G.cancel=function(U){G.reject(U),G.sources=[],G.handlers.complete()},G.promise.catch(function(U){}),"function"==typeof B&&(B=[new(R())(B)]),W(B)?B.then(function(U){return G.start(U)},G.handlers.error):G.start(B),G}return(0,a.ZT)(S,L),S.prototype.start=function(B){void 0===this.sub&&(this.sources=Array.from(B),this.handlers.complete())},S.prototype.deliverLastMessage=function(B){if(this.latest){var G=this.latest[0],U=B[G];U&&U.call(B,this.latest[1]),null===this.sub&&"next"===G&&B.complete&&B.complete()}},S.prototype.addObserver=function(B){this.observers.has(B)||(this.deliverLastMessage(B),this.observers.add(B),++this.addCount)},S.prototype.removeObserver=function(B,G){this.observers.delete(B)&&--this.addCount<1&&!G&&this.handlers.error(new Error("Observable cancelled prematurely"))},S.prototype.cleanup=function(B){var G=this,U=!1,re=function(){U||(U=!0,G.observers.delete(ce),B())},ce={next:re,error:re,complete:re},be=this.addCount;this.addObserver(ce),this.addCount=be},S}(R());function Y(L,S,B){return new(R())(function(G){var U=G.next,re=G.error,ce=G.complete,be=0,Z=!1,de={then:function(w){return new Promise(function(f){return f(w())})}};function he(w,f){return w?function(A){++be;var I=function(){return w(A)};de=de.then(I,I).then(function(ne){--be,U&&U.call(G,ne),Z&&Ee.complete()},function(ne){throw--be,ne}).catch(function(ne){re&&re.call(G,ne)})}:function(A){return f&&f.call(G,A)}}var Ee={next:he(S,U),error:he(B,re),complete:function(){Z=!0,be||ce&&ce.call(G)}},K=L.subscribe(Ee);return function(){return K.unsubscribe()}})}(0,P.D)(V);var j=y(79040),E=y(15601),C=y(17598),p=y(4496),_=y(55932),v=y(25661),F=y(92137),q=y(70584),Q=function(){function L(S){var G=S.client,U=S.resolvers,re=S.fragmentMatcher;this.cache=S.cache,G&&(this.client=G),U&&this.addResolvers(U),re&&this.setFragmentMatcher(re)}return L.prototype.addResolvers=function(S){var B=this;this.resolvers=this.resolvers||{},Array.isArray(S)?S.forEach(function(G){B.resolvers=(0,_.Ee)(B.resolvers,G)}):this.resolvers=(0,_.Ee)(this.resolvers,S)},L.prototype.setResolvers=function(S){this.resolvers={},this.addResolvers(S)},L.prototype.getResolvers=function(){return this.resolvers||{}},L.prototype.runResolvers=function(S){var B=S.document,G=S.remoteResult,U=S.context,re=S.variables,ce=S.onlyRunForcedResolvers,be=void 0!==ce&&ce;return(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(Z){return B?[2,this.resolveDocument(B,G.data,U,re,this.fragmentMatcher,be).then(function(de){return(0,a.pi)((0,a.pi)({},G),{data:de.result})})]:[2,G]})})},L.prototype.setFragmentMatcher=function(S){this.fragmentMatcher=S},L.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},L.prototype.clientQuery=function(S){return(0,T.FS)(["client"],S)&&this.resolvers?S:null},L.prototype.serverQuery=function(S){return(0,b.ob)(S)},L.prototype.prepareContext=function(S){var B=this.cache;return(0,a.pi)((0,a.pi)({},S),{cache:B,getCacheKey:function(G){return B.identify(G)}})},L.prototype.addExportedVariables=function(S,B,G){return void 0===B&&(B={}),void 0===G&&(G={}),(0,a.mG)(this,void 0,void 0,function(){return(0,a.Jh)(this,function(U){return S?[2,this.resolveDocument(S,this.buildRootValueFromCache(S,B)||{},this.prepareContext(G),B).then(function(re){return(0,a.pi)((0,a.pi)({},B),re.exportedVariables)})]:[2,(0,a.pi)({},B)]})})},L.prototype.shouldForceResolvers=function(S){var B=!1;return(0,p.Vn)(S,{Directive:{enter:function(G){if("client"===G.name.value&&G.arguments&&(B=G.arguments.some(function(U){return"always"===U.name.value&&"BooleanValue"===U.value.kind&&!0===U.value.value})))return p.$_}}}),B},L.prototype.buildRootValueFromCache=function(S,B){return this.cache.diff({query:(0,b.aL)(S),variables:B,returnPartialData:!0,optimistic:!1}).result},L.prototype.resolveDocument=function(S,B,G,U,re,ce){return void 0===G&&(G={}),void 0===U&&(U={}),void 0===re&&(re=function(){return!0}),void 0===ce&&(ce=!1),(0,a.mG)(this,void 0,void 0,function(){var be,Z,de,he,Ee,K,w,f,A;return(0,a.Jh)(this,function(I){return be=(0,g.p$)(S),Z=(0,g.kU)(S),de=(0,v.F)(Z),Ee=(he=be.operation)?he.charAt(0).toUpperCase()+he.slice(1):"Query",w=(K=this).cache,f=K.client,A={fragmentMap:de,context:(0,a.pi)((0,a.pi)({},G),{cache:w,client:f}),variables:U,fragmentMatcher:re,defaultOperationType:Ee,exportedVariables:{},onlyRunForcedResolvers:ce},[2,this.resolveSelectionSet(be.selectionSet,B,A).then(function(ne){return{result:ne,exportedVariables:A.exportedVariables}})]})})},L.prototype.resolveSelectionSet=function(S,B,G){return(0,a.mG)(this,void 0,void 0,function(){var U,re,ce,be,de=this;return(0,a.Jh)(this,function(he){return U=G.fragmentMap,re=G.context,ce=G.variables,be=[B],[2,Promise.all(S.selections.map(function(Ee){return(0,a.mG)(de,void 0,void 0,function(){var K;return(0,a.Jh)(this,function(f){return(0,T.LZ)(Ee,ce)?(0,F.My)(Ee)?[2,this.resolveField(Ee,B,G).then(function(A){var I;typeof A<"u"&&be.push(((I={})[(0,F.u2)(Ee)]=A,I))})]:((0,F.Ao)(Ee)?K=Ee:(0,O.kG)(K=U[Ee.name.value],11),K&&K.typeCondition&&G.fragmentMatcher(B,K.typeCondition.name.value,re)?[2,this.resolveSelectionSet(K.selectionSet,B,G).then(function(A){be.push(A)})]:[2]):[2]})})})).then(function(){return(0,_.bw)(be)})]})})},L.prototype.resolveField=function(S,B,G){return(0,a.mG)(this,void 0,void 0,function(){var U,re,ce,be,Z,de,he,Ee,K,w=this;return(0,a.Jh)(this,function(f){return U=G.variables,re=S.name.value,ce=(0,F.u2)(S),be=re!==ce,Z=B[ce]||B[re],de=Promise.resolve(Z),(!G.onlyRunForcedResolvers||this.shouldForceResolvers(S))&&(he=B.__typename||G.defaultOperationType,(Ee=this.resolvers&&this.resolvers[he])&&(K=Ee[be?re:ce])&&(de=Promise.resolve(q.ab.withValue(this.cache,K,[B,(0,F.NC)(S,U),G.context,{field:S,fragmentMap:G.fragmentMap}])))),[2,de.then(function(A){return void 0===A&&(A=Z),S.directives&&S.directives.forEach(function(I){"export"===I.name.value&&I.arguments&&I.arguments.forEach(function(ne){"as"===ne.name.value&&"StringValue"===ne.value.kind&&(G.exportedVariables[ne.value.value]=A)})}),S.selectionSet&&null!=A?Array.isArray(A)?w.resolveSubSelectedArray(S,A,G):S.selectionSet?w.resolveSelectionSet(S.selectionSet,A,G):void 0:A})]})})},L.prototype.resolveSubSelectedArray=function(S,B,G){var U=this;return Promise.all(B.map(function(re){return null===re?null:Array.isArray(re)?U.resolveSubSelectedArray(S,re,G):S.selectionSet?U.resolveSelectionSet(S.selectionSet,re,G):void 0}))},L}(),J=new(i.m?WeakMap:Map);function ie(L,S){var B=L[S];"function"==typeof B&&(L[S]=function(){return J.set(L,(J.get(L)+1)%1e15),B.apply(this,arguments)})}function Se(L){L.notifyTimeout&&(clearTimeout(L.notifyTimeout),L.notifyTimeout=void 0)}var te=function(){function L(S){this.cache=S,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,J.has(S)||(J.set(S,0),ie(S,"evict"),ie(S,"modify"),ie(S,"reset"))}return L.prototype.init=function(S){var B=S.networkStatus||C.I.loading;return this.variables&&this.networkStatus!==C.I.loading&&!(0,e.D)(this.variables,S.variables)&&(B=C.I.setVariables),(0,e.D)(S.variables,this.variables)||(this.diff=null),Object.assign(this,{document:S.document,variables:S.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:B}),S.observableQuery&&this.setObservableQuery(S.observableQuery),S.lastRequestId&&(this.lastRequestId=S.lastRequestId),this},L.prototype.reset=function(){Se(this),this.diff=null,this.dirty=!1},L.prototype.getDiff=function(S){return void 0===S&&(S=this.variables),this.diff&&(0,e.D)(S,this.variables)?this.diff:(this.updateWatch(this.variables=S),this.diff=this.cache.diff({query:this.document,variables:S,returnPartialData:!0,optimistic:!0}))},L.prototype.setDiff=function(S){var B=this,G=this.diff;this.diff=S,!this.dirty&&(S&&S.result)!==(G&&G.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return B.notify()},0)))},L.prototype.setObservableQuery=function(S){var B=this;S!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=S,S?(S.queryInfo=this,this.listeners.add(this.oqListener=function(){B.getDiff().fromOptimisticTransaction?S.observe():S.reobserve()})):delete this.oqListener)},L.prototype.notify=function(){var S=this;Se(this),this.shouldNotify()&&this.listeners.forEach(function(B){return B(S)}),this.dirty=!1},L.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,C.O)(this.networkStatus)&&this.observableQuery){var S=this.observableQuery.options.fetchPolicy;if("cache-only"!==S&&"cache-and-network"!==S)return!1}return!0},L.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(B){return B.unsubscribe()});var S=this.observableQuery;S&&S.stopPolling()}},L.prototype.cancel=function(){},L.prototype.updateWatch=function(S){var B=this;void 0===S&&(S=this.variables);var G=this.observableQuery;G&&"no-cache"===G.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,e.D)(S,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:S,optimistic:!0,callback:function(U){return B.setDiff(U)}}))},L.prototype.shouldWrite=function(S,B){var G=this.lastWrite;return!(G&&G.dmCount===J.get(this.cache)&&(0,e.D)(B,G.variables)&&(0,e.D)(S.data,G.result.data))},L.prototype.markResult=function(S,B,G){var U=this;this.graphQLErrors=(0,d.O)(S.errors)?S.errors:[],this.reset(),"no-cache"===B.fetchPolicy?this.diff={result:S.data,complete:!0}:!this.stopped&&G&&(ge(S,B.errorPolicy)?this.cache.performTransaction(function(re){if(U.shouldWrite(S,B.variables))re.writeQuery({query:U.document,data:S.data,variables:B.variables}),U.lastWrite={result:S,variables:B.variables,dmCount:J.get(U.cache)};else if(U.diff&&U.diff.complete)return void(S.data=U.diff.result);var ce=re.diff({query:U.document,variables:B.variables,returnPartialData:!0,optimistic:!0});U.stopped||U.updateWatch(B.variables),U.diff=ce,ce.complete&&(S.data=ce.result)}):this.lastWrite=void 0)},L.prototype.markReady=function(){return this.networkError=null,this.networkStatus=C.I.ready},L.prototype.markError=function(S){return this.networkStatus=C.I.error,this.lastWrite=void 0,this.reset(),S.graphQLErrors&&(this.graphQLErrors=S.graphQLErrors),S.networkError&&(this.networkError=S.networkError),S},L}();function ge(L,S){void 0===S&&(S="none");var B="ignore"===S||"all"===S,G=!h(L);return!G&&B&&L.data&&(G=!0),G}var ue=Object.prototype.hasOwnProperty,H=function(){function L(S){var B=S.cache,G=S.link,U=S.queryDeduplication,re=void 0!==U&&U,ce=S.onBroadcast,be=S.ssrMode,Z=void 0!==be&&be,de=S.clientAwareness,he=void 0===de?{}:de,Ee=S.localState,K=S.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(i.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=B,this.link=G,this.queryDeduplication=re,this.clientAwareness=he,this.localState=Ee||new Q({cache:B}),this.ssrMode=Z,this.assumeImmutableResults=!!K,(this.onBroadcast=ce)&&(this.mutationStore=Object.create(null))}return L.prototype.stop=function(){var S=this;this.queries.forEach(function(B,G){S.stopQueryNoBroadcast(G)}),this.cancelPendingFetches(new O.ej(12))},L.prototype.cancelPendingFetches=function(S){this.fetchCancelFns.forEach(function(B){return B(S)}),this.fetchCancelFns.clear()},L.prototype.mutate=function(S){var B=S.mutation,G=S.variables,U=S.optimisticResponse,re=S.updateQueries,ce=S.refetchQueries,be=void 0===ce?[]:ce,Z=S.awaitRefetchQueries,de=void 0!==Z&&Z,he=S.update,Ee=S.errorPolicy,K=void 0===Ee?"none":Ee,w=S.fetchPolicy,f=S.context,A=void 0===f?{}:f;return(0,a.mG)(this,void 0,void 0,function(){var I,ne,me;return(0,a.Jh)(this,function(Re){switch(Re.label){case 0:return(0,O.kG)(B,13),(0,O.kG)(!w||"no-cache"===w,14),I=this.generateMutationId(),B=this.transform(B).document,G=this.getVariables(B,G),this.transform(B).hasClientExports?[4,this.localState.addExportedVariables(B,G,A)]:[3,2];case 1:G=Re.sent(),Re.label=2;case 2:return ne=this.mutationStore&&(this.mutationStore[I]={mutation:B,variables:G,loading:!0,error:null}),U&&this.markMutationOptimistic(U,{mutationId:I,document:B,variables:G,errorPolicy:K,updateQueries:re,update:he}),this.broadcastQueries(),me=this,[2,new Promise(function(Pe,ae){var ye,_e;me.getObservableFromLink(B,(0,a.pi)((0,a.pi)({},A),{optimisticResponse:U}),G,!1).subscribe({next:function(Ie){if(h(Ie)&&"none"===K)_e=new j.c({graphQLErrors:Ie.errors});else{if(ne&&(ne.loading=!1,ne.error=null),"no-cache"!==w)try{me.markMutationResult({mutationId:I,result:Ie,document:B,variables:G,errorPolicy:K,updateQueries:re,update:he})}catch(Me){return void(_e=new j.c({networkError:Me}))}ye=Ie}},error:function(Ie){ne&&(ne.loading=!1,ne.error=Ie),U&&me.cache.removeOptimistic(I),me.broadcastQueries(),ae(new j.c({networkError:Ie}))},complete:function(){if(_e&&ne&&(ne.loading=!1,ne.error=_e),U&&me.cache.removeOptimistic(I),me.broadcastQueries(),_e)ae(_e);else{"function"==typeof be&&(be=be(ye));var Ie=[];(0,d.O)(be)&&be.forEach(function(Me){if("string"==typeof Me)me.queries.forEach(function(Ke){var qe=Ke.observableQuery;qe&&qe.hasObservers()&&qe.queryName===Me&&Ie.push(qe.refetch())});else{var je={query:Me.query,variables:Me.variables,fetchPolicy:"network-only"};Me.context&&(je.context=Me.context),Ie.push(me.query(je))}}),Promise.all(de?Ie:[]).then(function(){"ignore"===K&&ye&&h(ye)&&delete ye.errors,Pe(ye)},ae)}}})})]}})})},L.prototype.markMutationResult=function(S,B){var G=this;if(void 0===B&&(B=this.cache),ge(S.result,S.errorPolicy)){var U=[{result:S.result.data,dataId:"ROOT_MUTATION",query:S.document,variables:S.variables}],re=S.updateQueries;re&&this.queries.forEach(function(ce,be){var Z=ce.observableQuery,de=Z&&Z.queryName;if(de&&ue.call(re,de)){var he=re[de],Ee=G.queries.get(be),K=Ee.document,w=Ee.variables,f=B.diff({query:K,variables:w,returnPartialData:!0,optimistic:!1}),A=f.result;if(f.complete&&A){var ne=he(A,{mutationResult:S.result,queryName:K&&(0,g.rY)(K)||void 0,queryVariables:w});ne&&U.push({result:ne,dataId:"ROOT_QUERY",query:K,variables:w})}}}),B.performTransaction(function(ce){U.forEach(function(Z){return ce.write(Z)});var be=S.update;be&&be(ce,S.result)},null)}},L.prototype.markMutationOptimistic=function(S,B){var G=this,U="function"==typeof S?S(B.variables):S;return this.cache.recordOptimisticTransaction(function(re){try{G.markMutationResult((0,a.pi)((0,a.pi)({},B),{result:{data:U}}),re)}catch{}},B.mutationId)},L.prototype.fetchQuery=function(S,B,G){return this.fetchQueryObservable(S,B,G).promise},L.prototype.getQueryStore=function(){var S=Object.create(null);return this.queries.forEach(function(B,G){S[G]={variables:B.variables,networkStatus:B.networkStatus,networkError:B.networkError,graphQLErrors:B.graphQLErrors}}),S},L.prototype.resetErrors=function(S){var B=this.queries.get(S);B&&(B.networkError=void 0,B.graphQLErrors=[])},L.prototype.transform=function(S){var B=this.transformCache;if(!B.has(S)){var G=this.cache.transformDocument(S),U=(0,b.Fo)(this.cache.transformForLink(G)),re=this.localState.clientQuery(G),ce=U&&this.localState.serverQuery(U),be={document:G,hasClientExports:(0,T.mj)(G),hasForcedResolvers:this.localState.shouldForceResolvers(G),clientQuery:re,serverQuery:ce,defaultVars:(0,g.O4)((0,g.$H)(G))},Z=function(de){de&&!B.has(de)&&B.set(de,be)};Z(S),Z(G),Z(re),Z(ce)}return B.get(S)},L.prototype.getVariables=function(S,B){return(0,a.pi)((0,a.pi)({},this.transform(S).defaultVars),B)},L.prototype.watchQuery=function(S){typeof(S=(0,a.pi)((0,a.pi)({},S),{variables:this.getVariables(S.query,S.variables)})).notifyOnNetworkStatusChange>"u"&&(S.notifyOnNetworkStatusChange=!1);var B=new te(this.cache),G=new E.u({queryManager:this,queryInfo:B,options:S});return this.queries.set(G.queryId,B),B.init({document:S.query,observableQuery:G,variables:S.variables}),G},L.prototype.query=function(S){var B=this;(0,O.kG)(S.query,15),(0,O.kG)("Document"===S.query.kind,16),(0,O.kG)(!S.returnPartialData,17),(0,O.kG)(!S.pollInterval,18);var G=this.generateQueryId();return this.fetchQuery(G,S).finally(function(){return B.stopQuery(G)})},L.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},L.prototype.generateRequestId=function(){return this.requestIdCounter++},L.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},L.prototype.stopQueryInStore=function(S){this.stopQueryInStoreNoBroadcast(S),this.broadcastQueries()},L.prototype.stopQueryInStoreNoBroadcast=function(S){var B=this.queries.get(S);B&&B.stop()},L.prototype.clearStore=function(){return this.cancelPendingFetches(new O.ej(19)),this.queries.forEach(function(S){S.observableQuery?S.networkStatus=C.I.loading:S.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},L.prototype.resetStore=function(){var S=this;return this.clearStore().then(function(){return S.reFetchObservableQueries()})},L.prototype.reFetchObservableQueries=function(S){var B=this;void 0===S&&(S=!1);var G=[];return this.queries.forEach(function(U,re){var ce=U.observableQuery;if(ce&&ce.hasObservers()){var be=ce.options.fetchPolicy;ce.resetLastResults(),"cache-only"!==be&&(S||"standby"!==be)&&G.push(ce.refetch()),B.getQuery(re).setDiff(null)}}),this.broadcastQueries(),Promise.all(G)},L.prototype.setObservableQuery=function(S){this.getQuery(S.queryId).setObservableQuery(S)},L.prototype.startGraphQLSubscription=function(S){var B=this,G=S.query,U=S.fetchPolicy,re=S.errorPolicy,ce=S.variables,be=S.context,Z=void 0===be?{}:be;G=this.transform(G).document,ce=this.getVariables(G,ce);var de=function(Ee){return B.getObservableFromLink(G,Z,Ee,!1).map(function(K){if("no-cache"!==U&&(ge(K,re)&&B.cache.write({query:G,result:K.data,dataId:"ROOT_SUBSCRIPTION",variables:Ee}),B.broadcastQueries()),h(K))throw new j.c({graphQLErrors:K.errors});return K})};if(this.transform(G).hasClientExports){var he=this.localState.addExportedVariables(G,ce,Z).then(de);return new(R())(function(Ee){var K=null;return he.then(function(w){return K=w.subscribe(Ee)},Ee.error),function(){return K&&K.unsubscribe()}})}return de(ce)},L.prototype.stopQuery=function(S){this.stopQueryNoBroadcast(S),this.broadcastQueries()},L.prototype.stopQueryNoBroadcast=function(S){this.stopQueryInStoreNoBroadcast(S),this.removeQuery(S)},L.prototype.removeQuery=function(S){this.fetchCancelFns.delete(S),this.getQuery(S).stop(),this.queries.delete(S)},L.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(S){return S.notify()})},L.prototype.getLocalState=function(){return this.localState},L.prototype.getObservableFromLink=function(S,B,G,U){var ce,re=this;void 0===U&&(U=null!==(ce=B?.queryDeduplication)&&void 0!==ce?ce:this.queryDeduplication);var be,Z=this.transform(S).serverQuery;if(Z){var he=this.inFlightLinkObservables,Ee=this.link,K={query:Z,variables:G,operationName:(0,g.rY)(Z)||void 0,context:this.prepareContext((0,a.pi)((0,a.pi)({},B),{forceFetch:!U}))};if(B=K.context,U){var w=he.get(Z)||new Map;he.set(Z,w);var f=JSON.stringify(G);if(!(be=w.get(f))){var A=new V([(0,r.h)(Ee,K)]);w.set(f,be=A),A.cleanup(function(){w.delete(f)&&w.size<1&&he.delete(Z)})}}else be=new V([(0,r.h)(Ee,K)])}else be=new V([R().of({data:{}})]),B=this.prepareContext(B);var I=this.transform(S).clientQuery;return I&&(be=Y(be,function(ne){return re.localState.runResolvers({document:I,remoteResult:ne,context:B,variables:G})})),be},L.prototype.getResultsFromLink=function(S,B,G){var U=S.lastRequestId=this.generateRequestId();return Y(this.getObservableFromLink(S.document,G.context,G.variables),function(re){var ce=(0,d.O)(re.errors);if(U>=S.lastRequestId){if(ce&&"none"===G.errorPolicy)throw S.markError(new j.c({graphQLErrors:re.errors}));S.markResult(re,G,B),S.markReady()}var be={data:re.data,loading:!1,networkStatus:S.networkStatus||C.I.ready};return ce&&"ignore"!==G.errorPolicy&&(be.errors=re.errors),be},function(re){var ce=(0,j.M)(re)?re:new j.c({networkError:re});throw U>=S.lastRequestId&&S.markError(ce),ce})},L.prototype.fetchQueryObservable=function(S,B,G){var U=this;void 0===G&&(G=C.I.loading);var re=this.transform(B.query).document,ce=this.getVariables(re,B.variables),be=this.getQuery(S),Z=be.networkStatus,de=B.fetchPolicy,he=void 0===de?"cache-first":de,Ee=B.errorPolicy,K=void 0===Ee?"none":Ee,w=B.returnPartialData,f=void 0!==w&&w,A=B.notifyOnNetworkStatusChange,I=void 0!==A&&A,ne=B.context,me=void 0===ne?{}:ne;("cache-first"===he||"cache-and-network"===he||"network-only"===he||"no-cache"===he)&&I&&"number"==typeof Z&&Z!==G&&(0,C.O)(G)&&("cache-first"!==he&&(he="cache-and-network"),f=!0);var Pe=Object.assign({},B,{query:re,variables:ce,fetchPolicy:he,errorPolicy:K,returnPartialData:f,notifyOnNetworkStatusChange:I,context:me}),ae=function(_e){return Pe.variables=_e,U.fetchQueryByPolicy(be,Pe,G)};this.fetchCancelFns.set(S,function(_e){Promise.resolve().then(function(){return ye.cancel(_e)})});var ye=new V(this.transform(Pe.query).hasClientExports?this.localState.addExportedVariables(Pe.query,Pe.variables,Pe.context).then(ae):ae(Pe.variables));return ye.cleanup(function(){U.fetchCancelFns.delete(S);var _e=B.nextFetchPolicy;_e&&(B.nextFetchPolicy=void 0,B.fetchPolicy="function"==typeof _e?_e.call(B,B.fetchPolicy||"cache-first"):_e)}),ye},L.prototype.fetchQueryByPolicy=function(S,B,G){var U=this,re=B.query,ce=B.variables,be=B.fetchPolicy,Z=B.errorPolicy,de=B.returnPartialData,he=B.context;S.init({document:re,variables:ce,networkStatus:G});var Ee=function(){return S.getDiff(ce)},K=function(A,I){void 0===I&&(I=S.networkStatus||C.I.loading);var ne=A.result,me=function(Re){return R().of((0,a.pi)({data:Re,loading:(0,C.O)(I),networkStatus:I},A.complete?null:{partial:!0}))};return U.transform(re).hasForcedResolvers?U.localState.runResolvers({document:re,remoteResult:{data:ne},context:he,variables:ce,onlyRunForcedResolvers:!0}).then(function(Re){return me(Re.data)}):me(ne)},w=function(A){return U.getResultsFromLink(S,A,{variables:ce,context:he,fetchPolicy:be,errorPolicy:Z})};switch(be){default:case"cache-first":return(f=Ee()).complete?[K(f,S.markReady())]:de?[K(f),w(!0)]:[w(!0)];case"cache-and-network":var f;return(f=Ee()).complete||de?[K(f),w(!0)]:[w(!0)];case"cache-only":return[K(Ee(),S.markReady())];case"network-only":return[w(!0)];case"no-cache":return[w(!1)];case"standby":return[]}},L.prototype.getQuery=function(S){return S&&!this.queries.has(S)&&this.queries.set(S,new te(this.cache)),this.queries.get(S)},L.prototype.prepareContext=function(S){void 0===S&&(S={});var B=this.localState.prepareContext(S);return(0,a.pi)((0,a.pi)({},B),{clientAwareness:this.clientAwareness})},L}();function oe(L,S){return(0,n.o)(L,S,S.variables&&{variables:(0,a.pi)((0,a.pi)({},L.variables),S.variables)})}var ee=function(){function L(S){var B=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var G=S.uri,ce=S.cache,be=S.ssrMode,Z=void 0!==be&&be,de=S.ssrForceFetchDelay,he=void 0===de?0:de,Ee=S.connectToDevTools,K=void 0===Ee?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:Ee,w=S.queryDeduplication,f=void 0===w||w,A=S.defaultOptions,I=S.assumeImmutableResults,ne=void 0!==I&&I,me=S.resolvers,Re=S.typeDefs,Pe=S.fragmentMatcher,ae=S.name,ye=S.version,_e=S.link;if(_e||(_e=G?new l.u({uri:G,credentials:S.credentials,headers:S.headers}):m.i.empty()),!ce)throw new O.ej(9);this.link=_e,this.cache=ce,this.disableNetworkFetches=Z||he>0,this.queryDeduplication=f,this.defaultOptions=A||{},this.typeDefs=Re,he&&setTimeout(function(){return B.disableNetworkFetches=!1},he),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),K&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version=o,this.localState=new Q({cache:ce,client:this,resolvers:me,fragmentMatcher:Pe}),this.queryManager=new H({cache:this.cache,link:this.link,queryDeduplication:f,ssrMode:Z,clientAwareness:{name:ae,version:ye},localState:this.localState,assumeImmutableResults:ne,onBroadcast:K?function(){B.devToolsHookCb&&B.devToolsHookCb({action:{},state:{queries:B.queryManager.getQueryStore(),mutations:B.queryManager.mutationStore||{}},dataWithOptimisticResults:B.cache.extract(!0)})}:void 0})}return L.prototype.stop=function(){this.queryManager.stop()},L.prototype.watchQuery=function(S){return this.defaultOptions.watchQuery&&(S=oe(this.defaultOptions.watchQuery,S)),this.disableNetworkFetches&&("network-only"===S.fetchPolicy||"cache-and-network"===S.fetchPolicy)&&(S=(0,a.pi)((0,a.pi)({},S),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(S)},L.prototype.query=function(S){return this.defaultOptions.query&&(S=oe(this.defaultOptions.query,S)),(0,O.kG)("cache-and-network"!==S.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===S.fetchPolicy&&(S=(0,a.pi)((0,a.pi)({},S),{fetchPolicy:"cache-first"})),this.queryManager.query(S)},L.prototype.mutate=function(S){return this.defaultOptions.mutate&&(S=oe(this.defaultOptions.mutate,S)),this.queryManager.mutate(S)},L.prototype.subscribe=function(S){return this.queryManager.startGraphQLSubscription(S)},L.prototype.readQuery=function(S,B){return void 0===B&&(B=!1),this.cache.readQuery(S,B)},L.prototype.readFragment=function(S,B){return void 0===B&&(B=!1),this.cache.readFragment(S,B)},L.prototype.writeQuery=function(S){this.cache.writeQuery(S),this.queryManager.broadcastQueries()},L.prototype.writeFragment=function(S){this.cache.writeFragment(S),this.queryManager.broadcastQueries()},L.prototype.__actionHookForDevTools=function(S){this.devToolsHookCb=S},L.prototype.__requestRaw=function(S){return(0,r.h)(this.link,S)},L.prototype.resetStore=function(){var S=this;return Promise.resolve().then(function(){return S.queryManager.clearStore()}).then(function(){return Promise.all(S.resetStoreCallbacks.map(function(B){return B()}))}).then(function(){return S.reFetchObservableQueries()})},L.prototype.clearStore=function(){var S=this;return Promise.resolve().then(function(){return S.queryManager.clearStore()}).then(function(){return Promise.all(S.clearStoreCallbacks.map(function(B){return B()}))})},L.prototype.onResetStore=function(S){var B=this;return this.resetStoreCallbacks.push(S),function(){B.resetStoreCallbacks=B.resetStoreCallbacks.filter(function(G){return G!==S})}},L.prototype.onClearStore=function(S){var B=this;return this.clearStoreCallbacks.push(S),function(){B.clearStoreCallbacks=B.clearStoreCallbacks.filter(function(G){return G!==S})}},L.prototype.reFetchObservableQueries=function(S){return this.queryManager.reFetchObservableQueries(S)},L.prototype.extract=function(S){return this.cache.extract(S)},L.prototype.restore=function(S){return this.cache.restore(S)},L.prototype.addResolvers=function(S){this.localState.addResolvers(S)},L.prototype.setResolvers=function(S){this.localState.setResolvers(S)},L.prototype.getResolvers=function(){return this.localState.getResolvers()},L.prototype.setLocalStateFragmentMatcher=function(S){this.localState.setFragmentMatcher(S)},L.prototype.setLink=function(S){this.link=this.queryManager.link=S},L}()},15601:(le,k,y)=>{"use strict";y.d(k,{u:()=>x});var a=y(60162),O=y(3474),m=y(16492),r=y(17598),n=y(97090),o=y(53725),l=Object.prototype.toString;function e(W){return i(W)}function i(W,V){switch(l.call(W)){case"[object Array]":if((V=V||new Map).has(W))return V.get(W);var Y=W.slice(0);return V.set(W,Y),Y.forEach(function(E,C){Y[C]=i(E,V)}),Y;case"[object Object]":if((V=V||new Map).has(W))return V.get(W);var j=Object.create(Object.getPrototypeOf(W));return V.set(W,j),Object.keys(W).forEach(function(E){j[E]=i(W[E],V)}),j;default:return W}}var h=y(26583),d=y(20274),g=y.n(d),b=y(67178),T=y(30921),M=function(){function W(V,Y,j,E){this.observer=V,this.options=Y,this.fetch=j,this.shouldFetch=E}return W.prototype.reobserve=function(V,Y){V?this.updateOptions(V):this.updatePolling();var j=this.fetch(this.options,Y);return this.concast&&this.concast.removeObserver(this.observer,!0),j.addObserver(this.observer),(this.concast=j).promise},W.prototype.updateOptions=function(V){return Object.assign(this.options,(0,T.o)(V)),this.updatePolling(),this},W.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())},W.prototype.updatePolling=function(){var V=this,j=this.pollingInfo,E=this.options.pollInterval;if(E){if((!j||j.interval!==E)&&((0,O.kG)(E,20),!1!==this.shouldFetch)){(j||(this.pollingInfo={})).interval=E;var p=function(){V.pollingInfo&&(V.shouldFetch&&V.shouldFetch()?V.reobserve({fetchPolicy:"network-only",nextFetchPolicy:V.options.fetchPolicy||"cache-first"},r.I.poll).then(_,_):_())},_=function(){var v=V.pollingInfo;v&&(clearTimeout(v.timeout),v.timeout=setTimeout(p,v.interval))};_()}}else j&&(clearTimeout(j.timeout),delete this.pollingInfo)},W}(),x=function(W){function V(Y){var j=Y.queryManager,E=Y.queryInfo,C=Y.options,p=W.call(this,function(v){return p.onSubscribe(v)})||this;p.observers=new Set,p.subscriptions=new Set,p.observer={next:function(v){(p.lastError||p.isDifferentFromLastResult(v))&&(p.updateLastResult(v),(0,n.p)(p.observers,"next",v))},error:function(v){p.updateLastResult((0,a.pi)((0,a.pi)({},p.lastResult),{error:v,errors:v.graphQLErrors,networkStatus:r.I.error,loading:!1})),(0,n.p)(p.observers,"error",p.lastError=v)}},p.isTornDown=!1,p.options=C,p.queryId=j.generateQueryId();var _=(0,o.$H)(C.query);return p.queryName=_&&_.name&&_.name.value,p.queryManager=j,p.queryInfo=E,p}return(0,a.ZT)(V,W),Object.defineProperty(V.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),V.prototype.result=function(){var Y=this;return new Promise(function(j,E){var C={next:function(_){j(_),Y.observers.delete(C),Y.observers.size||Y.queryManager.removeQuery(Y.queryId),setTimeout(function(){p.unsubscribe()},0)},error:E},p=Y.subscribe(C)})},V.prototype.getCurrentResult=function(Y){void 0===Y&&(Y=!0);var j=this.lastResult,E=this.queryInfo.networkStatus||j&&j.networkStatus||r.I.ready,C=(0,a.pi)((0,a.pi)({},j),{loading:(0,r.O)(E),networkStatus:E});if(this.isTornDown)return C;var p=this.options.fetchPolicy,_=void 0===p?"cache-first":p;if("no-cache"===_||"network-only"===_)delete C.partial;else if(!C.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var v=this.queryInfo.getDiff();C.data=v.complete||this.options.returnPartialData?v.result:void 0,v.complete?(C.networkStatus===r.I.loading&&("cache-first"===_||"cache-only"===_)&&(C.networkStatus=r.I.ready,C.loading=!1),delete C.partial):C.partial=!0}return Y&&this.updateLastResult(C),C},V.prototype.isDifferentFromLastResult=function(Y){return!(0,m.D)(this.lastResultSnapshot,Y)},V.prototype.getLastResult=function(){return this.lastResult},V.prototype.getLastError=function(){return this.lastError},V.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},V.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},V.prototype.refetch=function(Y){var j={pollInterval:0},E=this.options.fetchPolicy;return"no-cache"!==E&&"cache-and-network"!==E&&(j.fetchPolicy="network-only",j.nextFetchPolicy=E||"cache-first"),Y&&!(0,m.D)(this.options.variables,Y)&&(j.variables=this.options.variables=(0,a.pi)((0,a.pi)({},this.options.variables),Y)),this.newReobserver(!1).reobserve(j,r.I.refetch)},V.prototype.fetchMore=function(Y){var j=this,E=(0,a.pi)((0,a.pi)({},Y.query?Y:(0,a.pi)((0,a.pi)((0,a.pi)({},this.options),Y),{variables:(0,a.pi)((0,a.pi)({},this.options.variables),Y.variables)})),{fetchPolicy:"no-cache"}),C=this.queryManager.generateQueryId();return E.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=r.I.fetchMore,this.observe()),this.queryManager.fetchQuery(C,E,r.I.fetchMore).then(function(p){var _=p.data,v=Y.updateQuery;return v?j.updateQuery(function(F){return v(F,{fetchMoreResult:_,variables:E.variables})}):j.queryManager.cache.writeQuery({query:E.query,variables:E.variables,data:_}),p}).finally(function(){j.queryManager.stopQuery(C),j.reobserve()})},V.prototype.subscribeToMore=function(Y){var j=this,E=this.queryManager.startGraphQLSubscription({query:Y.document,variables:Y.variables,context:Y.context}).subscribe({next:function(C){var p=Y.updateQuery;p&&j.updateQuery(function(_,v){return p(_,{subscriptionData:C,variables:v.variables})})},error:function(C){Y.onError&&Y.onError(C)}});return this.subscriptions.add(E),function(){j.subscriptions.delete(E)&&E.unsubscribe()}},V.prototype.setOptions=function(Y){return this.reobserve(Y)},V.prototype.setVariables=function(Y){if((0,m.D)(this.variables,Y))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=Y,!this.observers.size)return Promise.resolve();var j=this.options.fetchPolicy,E=void 0===j?"cache-first":j,C={fetchPolicy:E,variables:Y};return"cache-first"!==E&&"no-cache"!==E&&"network-only"!==E&&(C.fetchPolicy="cache-and-network",C.nextFetchPolicy=E),this.reobserve(C,r.I.setVariables)},V.prototype.updateQuery=function(Y){var j,E=this.queryManager,p=Y(E.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(j=this.lastResult)||void 0===j?void 0:j.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});p&&(E.cache.writeQuery({query:this.options.query,data:p,variables:this.variables}),E.broadcastQueries())},V.prototype.startPolling=function(Y){this.getReobserver().updateOptions({pollInterval:Y})},V.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},V.prototype.updateLastResult=function(Y){var j=this.lastResult;return this.lastResult=Y,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?Y:e(Y),(0,h.O)(Y.errors)||delete this.lastError,j},V.prototype.onSubscribe=function(Y){var j=this;if(Y===this.observer)return function(){};try{var E=Y._subscription._observer;E&&!E.error&&(E.error=P)}catch{}var C=!this.observers.size;return this.observers.add(Y),this.lastError?Y.error&&Y.error(this.lastError):this.lastResult&&Y.next&&Y.next(this.lastResult),C&&this.reobserve().catch(function(p){}),function(){j.observers.delete(Y)&&!j.observers.size&&j.tearDownQuery()}},V.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},V.prototype.newReobserver=function(Y){var j=this,C=this.queryManager,p=this.queryId;return C.setObservableQuery(this),new M(this.observer,Y?this.options:(0,a.pi)({},this.options),function(_,v){return C.setObservableQuery(j),C.fetchQueryObservable(p,_,v)},!C.ssrMode&&function(){return!(0,r.O)(j.queryInfo.networkStatus)})},V.prototype.reobserve=function(Y,j){return this.isTornDown=!1,this.getReobserver().reobserve(Y,j)},V.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},V.prototype.hasObservers=function(){return this.observers.size>0},V.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(Y){return Y.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},V}(g());function P(W){}(0,b.D)(x)},13374:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloCache:()=>e.R,ApolloClient:()=>a.f,ApolloError:()=>o.c,Cache:()=>l.C,HttpLink:()=>x.uG,InMemoryCache:()=>i.h,MissingFieldError:()=>h.y,NetworkStatus:()=>m.I,Observable:()=>E.a,ObservableQuery:()=>O.u,checkFetcher:()=>x.U2,createHttpLink:()=>x.LQ,createSignalIfSupported:()=>x.$g,defaultDataIdFromObject:()=>d.u,disableExperimentalFragmentVariables:()=>_.J9,disableFragmentWarnings:()=>_._t,enableExperimentalFragmentVariables:()=>_.wO,fallbackHttpConfig:()=>x.SC,fromError:()=>P.Q,fromPromise:()=>V.p,gql:()=>_.ZP,isApolloError:()=>o.M,isReference:()=>C.Yk,makeReference:()=>C.kQ,makeVar:()=>g.QS,mergeOptions:()=>a.J,parseAndCheckHttpResponse:()=>x.dO,resetCaches:()=>_.HW,rewriteURIForGET:()=>x.Hg,selectHttpOptionsAndBody:()=>x.E4,selectURI:()=>x.rg,serializeFetchParameter:()=>x.gE,setLogVerbosity:()=>p.U6,throwServerError:()=>Y.P,toPromise:()=>W.V});var a=y(28341),O=y(15601),m=y(17598),r=y(29793),R={};for(const v in r)["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(v)<0&&(R[v]=()=>r[v]);y.d(k,R);var o=y(79040),l=y(2156),e=y(53130),i=y(82479),h=y(17881),d=y(74716),g=y(70584),b=y(50940);R={};for(const v in b)["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(v)<0&&(R[v]=()=>b[v]);y.d(k,R);var M=y(23447);R={};for(const v in M)["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(v)<0&&(R[v]=()=>M[v]);y.d(k,R);var x=y(62878),P=y(68405),W=y(19229),V=y(93363),Y=y(49925),j=y(20274),E=y.n(j),C=y(92137),p=y(3474),_=y(74109);(0,p.U6)("log")},17598:(le,k,y)=>{"use strict";y.d(k,{I:()=>a,O:()=>O});var a=(()=>{return(m=a||(a={}))[m.loading=1]="loading",m[m.setVariables=2]="setVariables",m[m.fetchMore=3]="fetchMore",m[m.refetch=4]="refetch",m[m.poll=6]="poll",m[m.ready=7]="ready",m[m.error=8]="error",a;var m})();function O(m){return!!m&&m<7}},29793:()=>{},79040:(le,k,y)=>{"use strict";y.d(k,{M:()=>m,c:()=>n});var a=y(60162),O=y(26583);function m(o){return o.hasOwnProperty("graphQLErrors")}var r=function(o){var l="";return(0,O.O)(o.graphQLErrors)&&o.graphQLErrors.forEach(function(e){l+=(e?e.message:"Error message not found.")+"\n"}),o.networkError&&(l+=o.networkError.message+"\n"),l=l.replace(/\n$/,"")},n=function(o){function l(e){var i=e.graphQLErrors,h=e.networkError,d=e.errorMessage,g=e.extraInfo,b=o.call(this,d)||this;return b.graphQLErrors=i||[],b.networkError=h||null,b.message=d||r(b),b.extraInfo=g,b.__proto__=l.prototype,b}return(0,a.ZT)(l,o),l}(Error)},79418:(le,k,y)=>{"use strict";y.r(k);var a=y(13374),m={};for(const r in a)"default"!==r&&(m[r]=()=>a[r]);y.d(k,m);var O=y(45610);m={};for(const r in O)["default","ApolloCache","ApolloClient","ApolloError","Cache","HttpLink","InMemoryCache","MissingFieldError","NetworkStatus","Observable","ObservableQuery","checkFetcher","createHttpLink","createSignalIfSupported","defaultDataIdFromObject","disableExperimentalFragmentVariables","disableFragmentWarnings","enableExperimentalFragmentVariables","fallbackHttpConfig","fromError","fromPromise","gql","isApolloError","isReference","makeReference","makeVar","mergeOptions","parseAndCheckHttpResponse","resetCaches","rewriteURIForGET","selectHttpOptionsAndBody","selectURI","serializeFetchParameter","setLogVerbosity","throwServerError","toPromise"].indexOf(r)<0&&(m[r]=()=>O[r]);y.d(k,m)},40801:(le,k,y)=>{"use strict";y.r(k),y.d(k,{setContext:()=>n});var a=y(60162),O=y(30387),m=y(20274),r=y.n(m);function n(o){return new O.i(function(l,e){var i=(0,a._T)(l,[]);return new(r())(function(h){var d;return Promise.resolve(i).then(function(g){return o(g,l.getContext())}).then(l.setContext).then(function(){d=e(l).subscribe({next:h.next.bind(h),error:h.error.bind(h),complete:h.complete.bind(h)})}).catch(h.error.bind(h)),function(){d&&d.unsubscribe()}})})}},30387:(le,k,y)=>{"use strict";y.d(k,{i:()=>b});var T,a=y(60162),O=y(3474),m=y(20274),r=y.n(m),o=y(53725);function i(T,M){return M?M(T):r().of()}function h(T){return"function"==typeof T?new b(T):T}function d(T){return T.request.length<=1}T=Error,(0,a.ZT)(function M(R,x){var P=T.call(this,R)||this;return P.link=x,P},T);var b=function(){function T(M){M&&(this.request=M)}return T.empty=function(){return new T(function(){return r().of()})},T.from=function(M){return 0===M.length?T.empty():M.map(h).reduce(function(R,x){return R.concat(x)})},T.split=function(M,R,x){var P=h(R),W=h(x||new T(i));return d(P)&&d(W)?new T(function(V){return M(V)?P.request(V)||r().of():W.request(V)||r().of()}):new T(function(V,Y){return M(V)?P.request(V,Y)||r().of():W.request(V,Y)||r().of()})},T.execute=function(M,R){return M.request(function n(T,M){var R=(0,a.pi)({},T);return Object.defineProperty(M,"setContext",{enumerable:!1,value:function(W){R=(0,a.pi)((0,a.pi)({},R),"function"==typeof W?W(R):W)}}),Object.defineProperty(M,"getContext",{enumerable:!1,value:function(){return(0,a.pi)({},R)}}),M}(R.context,function l(T){var M={variables:T.variables||{},extensions:T.extensions||{},operationName:T.operationName,query:T.query};return M.operationName||(M.operationName="string"!=typeof M.query?(0,o.rY)(M.query)||void 0:""),M}(function e(T){for(var M=["query","operationName","variables","extensions","context"],R=0,x=Object.keys(T);R<x.length;R++)if(M.indexOf(x[R])<0)throw new O.ej(26);return T}(R))))||r().of()},T.concat=function(M,R){var x=h(M);if(d(x))return x;var P=h(R);return d(P)?new T(function(W){return x.request(W,function(V){return P.request(V)||r().of()})||r().of()}):new T(function(W,V){return x.request(W,function(Y){return P.request(Y,V)||r().of()})||r().of()})},T.prototype.split=function(M,R,x){return this.concat(T.split(M,R,x||new T(i)))},T.prototype.concat=function(M){return T.concat(this,M)},T.prototype.request=function(M,R){throw new O.ej(21)},T.prototype.onError=function(M,R){if(R&&R.error)return R.error(M),!1;throw M},T.prototype.setOnError=function(M){return this.onError=M,this},T}()},20638:(le,k,y)=>{"use strict";y.d(k,{z:()=>O});var O=y(30387).i.concat},93941:(le,k,y)=>{"use strict";y.d(k,{c:()=>O});var O=y(30387).i.empty},50607:(le,k,y)=>{"use strict";y.d(k,{h:()=>O});var O=y(30387).i.execute},7073:(le,k,y)=>{"use strict";y.d(k,{D:()=>O});var O=y(30387).i.from},23447:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloLink:()=>o.i,concat:()=>r.z,empty:()=>a.c,execute:()=>n.h,from:()=>O.D,split:()=>m.V});var a=y(93941),O=y(7073),m=y(3368),r=y(20638),n=y(50607),o=y(30387),l=y(31612),i={};for(const h in l)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(h)<0&&(i[h]=()=>l[h]);y.d(k,i)},3368:(le,k,y)=>{"use strict";y.d(k,{V:()=>O});var O=y(30387).i.split},31612:()=>{},24555:(le,k,y)=>{"use strict";y.d(k,{u:()=>r});var a=y(60162),O=y(30387),m=y(20513),r=function(n){function o(l){void 0===l&&(l={});var e=n.call(this,(0,m.L)(l).request)||this;return e.options=l,e}return(0,a.ZT)(o,n),o}(O.i)},28920:(le,k,y)=>{"use strict";y.d(k,{U:()=>O});var a=y(3474),O=function(m){if(!m&&typeof fetch>"u")throw new a.ej(22)}},20513:(le,k,y)=>{"use strict";y.d(k,{L:()=>T});var a=y(60162),O=y(4496),m=y(30387),r=y(20274),n=y.n(r),o=y(9370),l=y(85625),e=y(90379),i=y(28920),h=y(75159),d=y(20337),g=y(25997),b=y(68405),T=function(M){void 0===M&&(M={});var R=M.uri,x=void 0===R?"/graphql":R,P=M.fetch,W=M.includeExtensions,V=M.useGETForQueries,Y=M.includeUnusedVariables,j=void 0!==Y&&Y,E=(0,a._T)(M,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,i.U)(P),P||(P=fetch);var C={http:{includeExtensions:W},options:E.fetchOptions,credentials:E.credentials,headers:E.headers};return new m.i(function(p){var _=(0,l.r)(p,x),v=p.getContext(),F={};if(v.clientAwareness){var q=v.clientAwareness,Q=q.name,J=q.version;Q&&(F["apollographql-client-name"]=Q),J&&(F["apollographql-client-version"]=J)}var $,ie=(0,a.pi)((0,a.pi)({},F),v.headers),te=(0,h.E)(p,h.S,C,{http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:ie}),ge=te.options,ue=te.body;if(ue.variables&&!j){var H=new Set(Object.keys(ue.variables));(0,O.Vn)(p.query,{Variable:function(re,ce,be){be&&"VariableDefinition"!==be.kind&&H.delete(re.name.value)}}),H.size&&(ue.variables=(0,a.pi)({},ue.variables),H.forEach(function(re){delete ue.variables[re]}))}if(!ge.signal){var oe=(0,d.$)();($=oe.controller)&&(ge.signal=oe.signal)}if(V&&!p.query.definitions.some(function(re){return"OperationDefinition"===re.kind&&"mutation"===re.operation})&&(ge.method="GET"),"GET"===ge.method){var B=(0,g.H)(_,ue),G=B.newURI,U=B.parseError;if(U)return(0,b.Q)(U);_=G}else try{ge.body=(0,o.g)(ue,"Payload")}catch(re){return(0,b.Q)(re)}return new(n())(function(re){return P(_,ge).then(function(ce){return p.setContext({response:ce}),ce}).then((0,e.d)(p)).then(function(ce){return re.next(ce),re.complete(),ce}).catch(function(ce){"AbortError"!==ce.name&&(ce.result&&ce.result.errors&&ce.result.data&&re.next(ce.result),re.error(ce))}),function(){$&&$.abort()}})})}},20337:(le,k,y)=>{"use strict";y.d(k,{$:()=>a});var a=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var O=new AbortController;return{controller:O,signal:O.signal}}},62878:(le,k,y)=>{"use strict";y.d(k,{$g:()=>n.$,E4:()=>m.E,Hg:()=>i.H,LQ:()=>l.L,SC:()=>m.S,U2:()=>r.U,dO:()=>a.d,gE:()=>O.g,rg:()=>o.r,uG:()=>e.u});var a=y(90379),O=y(9370),m=y(75159),r=y(28920),n=y(20337),o=y(85625),l=y(20513),e=y(24555),i=y(25997)},90379:(le,k,y)=>{"use strict";y.d(k,{d:()=>m});var a=y(49925),O=Object.prototype.hasOwnProperty;function m(r){return function(n){return n.text().then(function(o){try{return JSON.parse(o)}catch(e){var l=e;throw l.name="ServerParseError",l.response=n,l.statusCode=n.status,l.bodyText=o,l}}).then(function(o){return n.status>=300&&(0,a.P)(n,o,"Response not successful: Received status code "+n.status),!Array.isArray(o)&&!O.call(o,"data")&&!O.call(o,"errors")&&(0,a.P)(n,o,"Server response was missing for query '"+(Array.isArray(r)?r.map(function(l){return l.operationName}):r.operationName)+"'."),o})}}},25997:(le,k,y)=>{"use strict";y.d(k,{H:()=>O});var a=y(9370);function O(m,r){var n=[],o=function(T,M){n.push(T+"="+encodeURIComponent(M))};if("query"in r&&o("query",r.query),r.operationName&&o("operationName",r.operationName),r.variables){var l=void 0;try{l=(0,a.g)(r.variables,"Variables map")}catch(T){return{parseError:T}}o("variables",l)}if(r.extensions){var e=void 0;try{e=(0,a.g)(r.extensions,"Extensions map")}catch(T){return{parseError:T}}o("extensions",e)}var i="",h=m,d=m.indexOf("#");-1!==d&&(i=m.substr(d),h=m.substr(0,d));var g=-1===h.indexOf("?")?"?":"&";return{newURI:h+g+n.join("&")+i}}},75159:(le,k,y)=>{"use strict";y.d(k,{E:()=>l,S:()=>o});var a=y(60162),O=y(94140),o={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},l=function(e,i){for(var h=[],d=2;d<arguments.length;d++)h[d-2]=arguments[d];var g=(0,a.pi)((0,a.pi)({},i.options),{headers:i.headers,credentials:i.credentials}),b=i.http||{};h.forEach(function(W){g=(0,a.pi)((0,a.pi)((0,a.pi)({},g),W.options),{headers:(0,a.pi)((0,a.pi)({},g.headers),W.headers)}),W.credentials&&(g.credentials=W.credentials),b=(0,a.pi)((0,a.pi)({},b),W.http)});var x=e.query,P={operationName:e.operationName,variables:e.variables};return b.includeExtensions&&(P.extensions=e.extensions),b.includeQuery&&(P.query=(0,O.print)(x)),{options:g,body:P}}},85625:(le,k,y)=>{"use strict";y.d(k,{r:()=>a});var a=function(O,m){return O.getContext().uri||("function"==typeof m?m(O):m||"/graphql")}},9370:(le,k,y)=>{"use strict";y.d(k,{g:()=>O});var a=y(3474),O=function(m,r){var n;try{n=JSON.stringify(m)}catch(l){var o=new a.ej(23);throw o.parseError=l,o}return n}},68405:(le,k,y)=>{"use strict";y.d(k,{Q:()=>m});var a=y(20274),O=y.n(a);function m(r){return new(O())(function(n){n.error(r)})}},93363:(le,k,y)=>{"use strict";y.d(k,{p:()=>m});var a=y(20274),O=y.n(a);function m(r){return new(O())(function(n){r.then(function(o){n.next(o),n.complete()}).catch(n.error.bind(n))})}},49925:(le,k,y)=>{"use strict";y.d(k,{P:()=>a});var a=function(O,m,r){var n=new Error(r);throw n.name="ServerError",n.response=O,n.statusCode=O.status,n.result=m,n}},19229:(le,k,y)=>{"use strict";function O(m){var r=!1;return new Promise(function(n,o){m.subscribe({next:function(l){r||(r=!0,n(l))},error:o})})}y.d(k,{V:()=>O}),y(3474)},52168:(le,k,y)=>{"use strict";var a=y(64981),O=60103,m=60106;k.Fragment=60107,k.StrictMode=60108,k.Profiler=60114;var r=60109,n=60110,o=60112;k.Suspense=60113;var l=60115,e=60116;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;O=i("react.element"),m=i("react.portal"),k.Fragment=i("react.fragment"),k.StrictMode=i("react.strict_mode"),k.Profiler=i("react.profiler"),r=i("react.provider"),n=i("react.context"),o=i("react.forward_ref"),k.Suspense=i("react.suspense"),l=i("react.memo"),e=i("react.lazy")}var h="function"==typeof Symbol&&Symbol.iterator;function g(te){for(var ge="https://reactjs.org/docs/error-decoder.html?invariant="+te,ue=1;ue<arguments.length;ue++)ge+="&args[]="+encodeURIComponent(arguments[ue]);return"Minified React error #"+te+"; visit "+ge+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T={};function M(te,ge,ue){this.props=te,this.context=ge,this.refs=T,this.updater=ue||b}function R(){}function x(te,ge,ue){this.props=te,this.context=ge,this.refs=T,this.updater=ue||b}M.prototype.isReactComponent={},M.prototype.setState=function(te,ge){if("object"!=typeof te&&"function"!=typeof te&&null!=te)throw Error(g(85));this.updater.enqueueSetState(this,te,ge,"setState")},M.prototype.forceUpdate=function(te){this.updater.enqueueForceUpdate(this,te,"forceUpdate")},R.prototype=M.prototype;var P=x.prototype=new R;P.constructor=x,a(P,M.prototype),P.isPureReactComponent=!0;var W={current:null},V=Object.prototype.hasOwnProperty,Y={key:!0,ref:!0,__self:!0,__source:!0};function j(te,ge,ue){var H,$={},oe=null,ee=null;if(null!=ge)for(H in void 0!==ge.ref&&(ee=ge.ref),void 0!==ge.key&&(oe=""+ge.key),ge)V.call(ge,H)&&!Y.hasOwnProperty(H)&&($[H]=ge[H]);var L=arguments.length-2;if(1===L)$.children=ue;else if(1<L){for(var S=Array(L),B=0;B<L;B++)S[B]=arguments[B+2];$.children=S}if(te&&te.defaultProps)for(H in L=te.defaultProps)void 0===$[H]&&($[H]=L[H]);return{$$typeof:O,type:te,key:oe,ref:ee,props:$,_owner:W.current}}function C(te){return"object"==typeof te&&null!==te&&te.$$typeof===O}var _=/\/+/g;function v(te,ge){return"object"==typeof te&&null!==te&&null!=te.key?function p(te){var ge={"=":"=0",":":"=2"};return"$"+te.replace(/[=:]/g,function(ue){return ge[ue]})}(""+te.key):ge.toString(36)}function F(te,ge,ue,H,$){var oe=typeof te;("undefined"===oe||"boolean"===oe)&&(te=null);var ee=!1;if(null===te)ee=!0;else switch(oe){case"string":case"number":ee=!0;break;case"object":switch(te.$$typeof){case O:case m:ee=!0}}if(ee)return $=$(ee=te),te=""===H?"."+v(ee,0):H,Array.isArray($)?(ue="",null!=te&&(ue=te.replace(_,"$&/")+"/"),F($,ge,ue,"",function(B){return B})):null!=$&&(C($)&&($=function E(te,ge){return{$$typeof:O,type:te.type,key:ge,ref:te.ref,props:te.props,_owner:te._owner}}($,ue+(!$.key||ee&&ee.key===$.key?"":(""+$.key).replace(_,"$&/")+"/")+te)),ge.push($)),1;if(ee=0,H=""===H?".":H+":",Array.isArray(te))for(var L=0;L<te.length;L++){var S=H+v(oe=te[L],L);ee+=F(oe,ge,ue,S,$)}else if(S=function d(te){return null===te||"object"!=typeof te?null:"function"==typeof(te=h&&te[h]||te["@@iterator"])?te:null}(te),"function"==typeof S)for(te=S.call(te),L=0;!(oe=te.next()).done;)ee+=F(oe=oe.value,ge,ue,S=H+v(oe,L++),$);else if("object"===oe)throw ge=""+te,Error(g(31,"[object Object]"===ge?"object with keys {"+Object.keys(te).join(", ")+"}":ge));return ee}function q(te,ge,ue){if(null==te)return te;var H=[],$=0;return F(te,H,"","",function(oe){return ge.call(ue,oe,$++)}),H}function Q(te){if(-1===te._status){var ge=te._result;ge=ge(),te._status=0,te._result=ge,ge.then(function(ue){0===te._status&&(ue=ue.default,te._status=1,te._result=ue)},function(ue){0===te._status&&(te._status=2,te._result=ue)})}if(1===te._status)return te._result;throw te._result}var J={current:null};function ie(){var te=J.current;if(null===te)throw Error(g(321));return te}var Se={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:W,IsSomeRendererActing:{current:!1},assign:a};k.Children={map:q,forEach:function(te,ge,ue){q(te,function(){ge.apply(this,arguments)},ue)},count:function(te){var ge=0;return q(te,function(){ge++}),ge},toArray:function(te){return q(te,function(ge){return ge})||[]},only:function(te){if(!C(te))throw Error(g(143));return te}},k.Component=M,k.PureComponent=x,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Se,k.cloneElement=function(te,ge,ue){if(null==te)throw Error(g(267,te));var H=a({},te.props),$=te.key,oe=te.ref,ee=te._owner;if(null!=ge){if(void 0!==ge.ref&&(oe=ge.ref,ee=W.current),void 0!==ge.key&&($=""+ge.key),te.type&&te.type.defaultProps)var L=te.type.defaultProps;for(S in ge)V.call(ge,S)&&!Y.hasOwnProperty(S)&&(H[S]=void 0===ge[S]&&void 0!==L?L[S]:ge[S])}var S=arguments.length-2;if(1===S)H.children=ue;else if(1<S){L=Array(S);for(var B=0;B<S;B++)L[B]=arguments[B+2];H.children=L}return{$$typeof:O,type:te.type,key:$,ref:oe,props:H,_owner:ee}},k.createContext=function(te,ge){return void 0===ge&&(ge=null),(te={$$typeof:n,_calculateChangedBits:ge,_currentValue:te,_currentValue2:te,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:r,_context:te},te.Consumer=te},k.createElement=j,k.createFactory=function(te){var ge=j.bind(null,te);return ge.type=te,ge},k.createRef=function(){return{current:null}},k.forwardRef=function(te){return{$$typeof:o,render:te}},k.isValidElement=C,k.lazy=function(te){return{$$typeof:e,_payload:{_status:-1,_result:te},_init:Q}},k.memo=function(te,ge){return{$$typeof:l,type:te,compare:void 0===ge?null:ge}},k.useCallback=function(te,ge){return ie().useCallback(te,ge)},k.useContext=function(te,ge){return ie().useContext(te,ge)},k.useDebugValue=function(){},k.useEffect=function(te,ge){return ie().useEffect(te,ge)},k.useImperativeHandle=function(te,ge,ue){return ie().useImperativeHandle(te,ge,ue)},k.useLayoutEffect=function(te,ge){return ie().useLayoutEffect(te,ge)},k.useMemo=function(te,ge){return ie().useMemo(te,ge)},k.useReducer=function(te,ge,ue){return ie().useReducer(te,ge,ue)},k.useRef=function(te){return ie().useRef(te)},k.useState=function(te){return ie().useState(te)},k.version="17.0.2"},57855:(le,k,y)=>{"use strict";le.exports=y(52168)},3474:(le,k,y)=>{"use strict";y.d(k,{ej:()=>J,kG:()=>ie,U6:()=>ue});var a=function(ee,L){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,B){S.__proto__=B}||function(S,B){for(var G in B)Object.prototype.hasOwnProperty.call(B,G)&&(S[G]=B[G])})(ee,L)},F="Invariant Violation",q=Object.setPrototypeOf,Q=void 0===q?function(ee,L){return ee.__proto__=L,ee}:q,J=function(ee){function L(S){void 0===S&&(S=F);var B=ee.call(this,"number"==typeof S?F+": "+S+" (see https://github.com/apollographql/invariant-packages)":S)||this;return B.framesToPop=1,B.name=F,Q(B,L.prototype),B}return function O(ee,L){if("function"!=typeof L&&null!==L)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");function S(){this.constructor=ee}a(ee,L),ee.prototype=null===L?Object.create(L):(S.prototype=L.prototype,new S)}(L,ee),L}(Error);function ie(ee,L){if(!ee)throw new J(L)}var ee,Se=["log","warn","error","silent"],te=Se.indexOf("log");function ge(ee){return function(){if(Se.indexOf(ee)>=te)return console[ee].apply(console,arguments)}}function ue(ee){var L=Se[te];return te=Math.max(0,Se.indexOf(ee)),L}(ee=ie||(ie={})).log=ge("log"),ee.warn=ge("warn"),ee.error=ge("error"),"object"==typeof process&&"object"==typeof process.env&&process},98474:(le,k,y)=>{"use strict";y.d(k,{a:()=>r});var a=y(57855),O=y(3474),m=y(29010),r=function(n){var o=(0,m.K)();return a.createElement(o.Consumer,null,function(l){return(0,O.kG)(l&&l.client,27),n.children(l.client)})}},29010:(le,k,y)=>{"use strict";y.d(k,{K:()=>r,Z:()=>r});var a=y(57855),m=new(y(40863).m?WeakMap:Map);function r(){var n=m.get(a.createContext);return n||((n=a.createContext({})).displayName="ApolloContext",m.set(a.createContext,n)),n}},34359:(le,k,y)=>{"use strict";y.d(k,{e:()=>r});var a=y(57855),O=y(3474),m=y(29010),r=function(n){var o=n.client,l=n.children,e=(0,m.K)();return a.createElement(e.Consumer,null,function(i){return void 0===i&&(i={}),o&&i.client!==o&&(i=Object.assign({},i,{client:o})),(0,O.kG)(i.client,28),a.createElement(e.Provider,{value:i},l)})}},64461:(le,k,y)=>{"use strict";y.d(k,{xJ:()=>r,td:()=>T,Db:()=>x,aM:()=>P,lY:()=>Y,mU:()=>V});var a=y(57855),O=y(3474),m=y(29010);function r(){var j=a.useContext((0,m.K)()).client;return(0,O.kG)(j,33),j}var n=y(60162),o=y(16492),l=y(79040),e=y(17598),i=y(78638),h=function(){function j(E,C){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=E||{},this.context=C||{}}return j.prototype.getOptions=function(){return this.options},j.prototype.setOptions=function(E,C){void 0===C&&(C=!1),C&&!(0,o.D)(this.options,E)&&(this.previousOptions=this.options),this.options=E},j.prototype.unmount=function(){this.isMounted=!1},j.prototype.refreshClient=function(){var E=this.options&&this.options.client||this.context&&this.context.client;(0,O.kG)(!!E,29);var C=!1;return E!==this.client&&(C=!0,this.client=E,this.cleanup()),{client:this.client,isNew:C}},j.prototype.verifyDocumentType=function(E,C){var p=(0,i.E2)(E);(0,i.mw)(C),(0,i.mw)(p.type),(0,O.kG)(p.type===C,30)},j}(),d=function(j){function E(C){var v=C.onNewData,F=j.call(this,C.options,C.context)||this;return F.runLazy=!1,F.previous=Object.create(null),F.runLazyQuery=function(q){F.cleanup(),F.runLazy=!0,F.lazyOptions=q,F.onNewData()},F.getQueryResult=function(){var q=F.observableQueryFields(),Q=F.getOptions();if(Q.skip)q=(0,n.pi)((0,n.pi)({},q),{data:void 0,error:void 0,loading:!1,networkStatus:e.I.ready,called:!0});else if(F.currentObservable){var J=F.currentObservable.getCurrentResult(),ie=J.data,Se=J.loading,te=J.partial,ge=J.networkStatus,ue=J.errors,H=J.error;if(ue&&ue.length>0&&(H=new l.c({graphQLErrors:ue})),q=(0,n.pi)((0,n.pi)({},q),{data:ie,loading:Se,networkStatus:ge,error:H,called:!0}),!Se)if(H)Object.assign(q,{data:(F.currentObservable.getLastResult()||{}).data});else{var $=F.currentObservable.options.fetchPolicy;if(Q.partialRefetch&&te&&(!ie||0===Object.keys(ie).length)&&"cache-only"!==$)return Object.assign(q,{loading:!0,networkStatus:e.I.loading}),q.refetch(),q}}q.client=F.client,F.setOptions(Q,!0);var ee=F.previous.result;return F.previous.loading=ee&&ee.loading||!1,q.previousData=ee&&(ee.data||ee.previousData),F.previous.result=q,F.currentObservable&&F.currentObservable.resetQueryStoreErrors(),q},F.obsRefetch=function(q){var Q;return null===(Q=F.currentObservable)||void 0===Q?void 0:Q.refetch(q)},F.obsFetchMore=function(q){return F.currentObservable.fetchMore(q)},F.obsUpdateQuery=function(q){return F.currentObservable.updateQuery(q)},F.obsStartPolling=function(q){var Q;null===(Q=F.currentObservable)||void 0===Q||Q.startPolling(q)},F.obsStopPolling=function(){var q;null===(q=F.currentObservable)||void 0===q||q.stopPolling()},F.obsSubscribeToMore=function(q){return F.currentObservable.subscribeToMore(q)},F.onNewData=v,F}return(0,n.ZT)(E,j),E.prototype.execute=function(){this.refreshClient();var C=this.getOptions(),p=C.skip,_=C.query;return(p||_!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!p),this.previous.query=_),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},E.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:e.I.ready,called:!1,data:void 0}]},E.prototype.fetchData=function(){var C=this,p=this.getOptions();return!p.skip&&!1!==p.ssr&&new Promise(function(_){return C.startQuerySubscription(_)})},E.prototype.afterExecute=function(C){var p=(void 0===C?{}:C).lazy,_=void 0!==p&&p;return this.isMounted=!0,(!_||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},E.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},E.prototype.getOptions=function(){var C=j.prototype.getOptions.call(this);return this.lazyOptions&&(C.variables=(0,n.pi)((0,n.pi)({},C.variables),this.lazyOptions.variables),C.context=(0,n.pi)((0,n.pi)({},C.context),this.lazyOptions.context)),this.runLazy&&delete C.skip,C},E.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},E.prototype.getExecuteResult=function(){var C=this.getQueryResult();return this.startQuerySubscription(),C},E.prototype.getExecuteSsrResult=function(){var C=this.getOptions(),_=C.skip,v=!1===C.ssr,F=this.refreshClient().client.disableNetworkFetches,q=(0,n.pi)({loading:!0,networkStatus:e.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(v&&(this.ssrInitiated()||F))return this.previous.result=q,q;if(this.ssrInitiated()){var Q=this.getQueryResult()||q;return Q.loading&&!_&&this.context.renderPromises.addQueryPromise(this,function(){return null}),Q}},E.prototype.prepareObservableQueryOptions=function(){var C=this.getOptions();this.verifyDocumentType(C.query,i.n_.Query);var p=C.displayName||"Query";return this.ssrInitiated()&&("network-only"===C.fetchPolicy||"cache-and-network"===C.fetchPolicy)&&(C.fetchPolicy="cache-first"),(0,n.pi)((0,n.pi)({},C),{displayName:p,context:C.context})},E.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var C=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,n.pi)((0,n.pi)({},C),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,n.pi)({},C)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,C)}},E.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var C=(0,n.pi)((0,n.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,o.D)(C,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=C,this.currentObservable.setOptions(C).catch(function(){}))}}else this.initializeObservableQuery()},E.prototype.startQuerySubscription=function(C){var p=this;void 0===C&&(C=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(_){var Q=p.previous.result;Q&&Q.loading===_.loading&&Q.networkStatus===_.networkStatus&&(0,o.D)(Q.data,_.data)||C()},error:function(_){if(p.resubscribeToQuery(),!_.hasOwnProperty("graphQLErrors"))throw _;var v=p.previous.result;(v&&v.loading||!(0,o.D)(_,p.previous.error))&&(p.previous.error=_,C())}}))},E.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var C=this.currentObservable;if(C){var p=C.getLastError(),_=C.getLastResult();C.resetLastResults(),this.startQuerySubscription(),Object.assign(C,{lastError:p,lastResult:_})}},E.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var C=this.previous.result,p=C.data,v=C.error;if(!C.loading){var F=this.getOptions(),Q=F.variables,J=F.onCompleted,ie=F.onError,Se=F.skip;if(this.previousOptions&&!this.previous.loading&&(0,o.D)(this.previousOptions.query,F.query)&&(0,o.D)(this.previousOptions.variables,Q))return;!J||v||Se?ie&&v&&ie(v):J(p)}}},E.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},E.prototype.removeObservable=function(C){this.currentObservable&&(this.currentObservable.tearDownQuery(),C&&delete this.currentObservable)},E.prototype.observableQueryFields=function(){var C;return{variables:null===(C=this.currentObservable)||void 0===C?void 0:C.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},E}(h);function b(j,E,C){void 0===C&&(C=!1);var p=(0,a.useContext)((0,m.K)()),_=(0,a.useReducer)(function(ge){return ge+1},0),v=_[0],F=_[1],q=E?(0,n.pi)((0,n.pi)({},E),{query:j}):{query:j},Q=(0,a.useRef)(),J=Q.current||(Q.current=new d({options:q,context:p,onNewData:function(){J.ssrInitiated()?F():Promise.resolve().then(function(){return Q.current&&F()})}}));J.setOptions(q),J.context=p;var Se=function g(j,E){var C=(0,a.useRef)();return(!C.current||!(0,o.D)(E,C.current.key))&&(C.current={key:E,value:j()}),C.current.value}(function(){return C?J.executeLazy():J.execute()},{options:(0,n.pi)((0,n.pi)({},q),{onError:void 0,onCompleted:void 0}),context:p,tick:v}),te=C?Se[1]:Se;return(0,a.useEffect)(function(){return function(){return J.cleanup()}},[]),(0,a.useEffect)(function(){return J.afterExecute({lazy:C})},[te.loading,te.networkStatus,te.error,te.data]),Se}function T(j,E){return b(j,E,!0)}var M=y(28341),R=function(j){function E(C){var p=C.options,v=C.result,F=C.setResult,q=j.call(this,p,C.context)||this;return q.runMutation=function(Q){void 0===Q&&(Q={}),q.onMutationStart();var J=q.generateNewMutationId();return q.mutate(Q).then(function(ie){return q.onMutationCompleted(ie,J),ie}).catch(function(ie){var Se=q.getOptions().onError;if(q.onMutationError(ie,J),Se)return Se(ie),{data:void 0,errors:ie};throw ie})},q.verifyDocumentType(p.mutation,i.n_.Mutation),q.result=v,q.setResult=F,q.mostRecentMutationId=0,q}return(0,n.ZT)(E,j),E.prototype.execute=function(C){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,i.n_.Mutation),[this.runMutation,(0,n.pi)((0,n.pi)({},C),{client:this.refreshClient().client})]},E.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},E.prototype.cleanup=function(){},E.prototype.mutate=function(C){return this.refreshClient().client.mutate((0,M.J)(this.getOptions(),C))},E.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},E.prototype.onMutationCompleted=function(C,p){var _=this.getOptions(),v=_.onCompleted,F=_.ignoreResults,q=C.data,Q=C.errors,J=Q&&Q.length>0?new l.c({graphQLErrors:Q}):void 0;this.isMostRecentMutation(p)&&!F&&this.updateResult({called:!0,loading:!1,data:q,error:J}),v&&v(q)},E.prototype.onMutationError=function(C,p){this.isMostRecentMutation(p)&&this.updateResult({loading:!1,error:C,data:void 0,called:!0})},E.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},E.prototype.isMostRecentMutation=function(C){return this.mostRecentMutationId===C},E.prototype.updateResult=function(C){if(this.isMounted&&(!this.previousResult||!(0,o.D)(this.previousResult,C)))return this.setResult(C),this.previousResult=C,C},E}(h);function x(j,E){var C=(0,a.useContext)((0,m.K)()),p=(0,a.useState)({called:!1,loading:!1}),_=p[0],v=p[1],F=E?(0,n.pi)((0,n.pi)({},E),{mutation:j}):{mutation:j},q=(0,a.useRef)(),J=function Q(){return q.current||(q.current=new R({options:F,context:C,result:_,setResult:v})),q.current}();return J.setOptions(F),J.context=C,(0,a.useEffect)(function(){return J.afterExecute()}),J.execute(_)}function P(j,E){return b(j,E,!1)}var W=function(j){function E(C){var p=C.options,v=C.setResult,F=j.call(this,p,C.context)||this;return F.currentObservable={},F.setResult=v,F.initialize(p),F}return(0,n.ZT)(E,j),E.prototype.execute=function(C){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var p=C;this.refreshClient().isNew&&(p=this.getLoadingResult());var _=this.getOptions().shouldResubscribe;return"function"==typeof _&&(_=!!_(this.getOptions())),!1!==_&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,o.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),p=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,n.pi)((0,n.pi)({},p),{variables:this.getOptions().variables})},E.prototype.afterExecute=function(){this.isMounted=!0},E.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},E.prototype.initialize=function(C){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:C.subscription,variables:C.variables,fetchPolicy:C.fetchPolicy,context:C.context}))},E.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},E.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},E.prototype.updateResult=function(C){this.isMounted&&this.setResult(C)},E.prototype.updateCurrentData=function(C){var p=this.getOptions().onSubscriptionData;this.updateResult({data:C.data,loading:!1,error:void 0}),p&&p({client:this.refreshClient().client,subscriptionData:C})},E.prototype.updateError=function(C){this.updateResult({error:C,loading:!1})},E.prototype.completeSubscription=function(){var C=this;Promise.resolve().then(function(){var p=C.getOptions().onSubscriptionComplete;p&&p(),C.endSubscription()})},E.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},E}(h);function V(j,E){var C=(0,a.useContext)((0,m.K)()),p=E?(0,n.pi)((0,n.pi)({},E),{subscription:j}):{subscription:j},_=(0,a.useState)({loading:!p.skip,error:void 0,data:void 0}),v=_[0],F=_[1],q=(0,a.useRef)(),J=function Q(){return q.current||(q.current=new W({options:p,context:C,setResult:F})),q.current}();return J.setOptions(p,!0),J.context=C,(0,a.useEffect)(function(){return J.afterExecute()}),(0,a.useEffect)(function(){return J.cleanup.bind(J)},[]),J.execute(v)}function Y(j){var E=j(),C=(0,a.useState)(E)[1];return(0,a.useEffect)(function(){var p=j();if(E===p)return j.onNextChange(C);C(p)},[E]),E}},45610:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloConsumer:()=>O.a,ApolloProvider:()=>a.e,DocumentType:()=>n.n_,getApolloContext:()=>m.K,operationName:()=>n.mw,parser:()=>n.E2,resetApolloContext:()=>m.Z,useApolloClient:()=>r.xJ,useLazyQuery:()=>r.td,useMutation:()=>r.Db,useQuery:()=>r.aM,useReactiveVar:()=>r.lY,useSubscription:()=>r.mU});var a=y(34359),O=y(98474),m=y(29010),r=y(64461),n=y(78638),o=y(44231),e={};for(const i in o)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(i)<0&&(e[i]=()=>o[i]);y.d(k,e)},78638:(le,k,y)=>{"use strict";y.d(k,{E2:()=>n,mw:()=>r,n_:()=>O});var a=y(3474),O=(()=>{return(o=O||(O={}))[o.Query=0]="Query",o[o.Mutation=1]="Mutation",o[o.Subscription=2]="Subscription",O;var o})(),m=new Map;function r(o){var l;switch(o){case O.Query:l="Query";break;case O.Mutation:l="Mutation";break;case O.Subscription:l="Subscription"}return l}function n(o){var i,l=m.get(o);if(l)return l;(0,a.kG)(!!o&&!!o.kind,34);var d=o.definitions.filter(function(P){return"FragmentDefinition"===P.kind}),g=o.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"query"===P.operation}),b=o.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"mutation"===P.operation}),T=o.definitions.filter(function(P){return"OperationDefinition"===P.kind&&"subscription"===P.operation});(0,a.kG)(!d.length||g.length||b.length||T.length,35),(0,a.kG)(g.length+b.length+T.length<=1,36),i=g.length?O.Query:O.Mutation,!g.length&&!b.length&&(i=O.Subscription);var M=g.length?g:b.length?b:T;(0,a.kG)(1===M.length,37);var R=M[0],x={name:R.name&&"Name"===R.name.kind?R.name.value:"data",type:i,variables:R.variableDefinitions||[]};return m.set(o,x),x}},44231:()=>{},26583:(le,k,y)=>{"use strict";function a(O){return Array.isArray(O)&&O.length>0}y.d(k,{O:()=>a})},40863:(le,k,y)=>{"use strict";y.d(k,{m:()=>a});var a="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},30921:(le,k,y)=>{"use strict";function a(){for(var O=[],m=0;m<arguments.length;m++)O[m]=arguments[m];var r=Object.create(null);return O.forEach(function(n){n&&Object.keys(n).forEach(function(o){var l=n[o];void 0!==l&&(r[o]=l)})}),r}y.d(k,{o:()=>a})},55932:(le,k,y)=>{"use strict";y.d(k,{Ee:()=>m,bw:()=>r,w0:()=>l});var a=y(60162),O=Object.prototype.hasOwnProperty;function m(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return r(e)}function r(e){var i=e[0]||{},h=e.length;if(h>1)for(var d=new l,g=1;g<h;++g)i=d.merge(i,e[g]);return i}function n(e){return null!==e&&"object"==typeof e}var o=function(e,i,h){return this.merge(e[h],i[h])},l=function(){function e(i){void 0===i&&(i=o),this.reconciler=i,this.isObject=n,this.pastCopies=new Set}return e.prototype.merge=function(i,h){for(var d=this,g=[],b=2;b<arguments.length;b++)g[b-2]=arguments[b];return n(h)&&n(i)?(Object.keys(h).forEach(function(T){if(O.call(i,T)){var M=i[T];if(h[T]!==M){var R=d.reconciler.apply(d,(0,a.pr)([i,h,T],g));R!==M&&((i=d.shallowCopyForMerge(i))[T]=R)}}else(i=d.shallowCopyForMerge(i))[T]=h[T]}),i):h},e.prototype.shallowCopyForMerge=function(i){return n(i)&&!this.pastCopies.has(i)&&(i=Array.isArray(i)?i.slice(0):(0,a.pi)({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i)),i},e}()},23875:(le,k,y)=>{"use strict";y.d(k,{FS:()=>n,LZ:()=>m,mj:()=>o});var a=y(4496),O=y(3474);function m(i,h){var d=i.directives;return!d||!d.length||function e(i){var h=[];return i&&i.length&&i.forEach(function(d){if(function l(i){var h=i.name.value;return"skip"===h||"include"===h}(d)){var g=d.arguments;(0,O.kG)(g&&1===g.length,39);var T=g[0];(0,O.kG)(T.name&&"if"===T.name.value,40);var M=T.value;(0,O.kG)(M&&("Variable"===M.kind||"BooleanValue"===M.kind),41),h.push({directive:d,ifArgument:T})}}),h}(d).every(function(g){var b=g.directive,T=g.ifArgument,M=!1;return"Variable"===T.value.kind?(0,O.kG)(void 0!==(M=h&&h[T.value.name.value]),38):M=T.value.value,"skip"===b.name.value?!M:M})}function n(i,h){return function r(i){var h=[];return(0,a.Vn)(i,{Directive:function(d){h.push(d.name.value)}}),h}(h).some(function(d){return i.indexOf(d)>-1})}function o(i){return i&&n(["client"],i)&&n(["export"],i)}},25661:(le,k,y)=>{"use strict";y.d(k,{F:()=>r,Yk:()=>m,hi:()=>n});var a=y(60162),O=y(3474);function m(o,l){var e=l,i=[];return o.definitions.forEach(function(d){if("OperationDefinition"===d.kind)throw new O.ej(42);"FragmentDefinition"===d.kind&&i.push(d)}),typeof e>"u"&&((0,O.kG)(1===i.length,43),e=i[0].name.value),(0,a.pi)((0,a.pi)({},o),{definitions:(0,a.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],o.definitions)})}function r(o){void 0===o&&(o=[]);var l={};return o.forEach(function(e){l[e.name.value]=e}),l}function n(o,l){switch(o.kind){case"InlineFragment":return o;case"FragmentSpread":var e=l&&l[o.name.value];return(0,O.kG)(e,44),e;default:return null}}},53725:(le,k,y)=>{"use strict";y.d(k,{$H:()=>r,A$:()=>m,O4:()=>h,iW:()=>l,kU:()=>o,p$:()=>i,pD:()=>e,rY:()=>n});var a=y(3474),O=y(92137);function m(d){(0,a.kG)(d&&"Document"===d.kind,45);var g=d.definitions.filter(function(b){return"FragmentDefinition"!==b.kind}).map(function(b){if("OperationDefinition"!==b.kind)throw new a.ej(46);return b});return(0,a.kG)(g.length<=1,47),d}function r(d){return m(d),d.definitions.filter(function(g){return"OperationDefinition"===g.kind})[0]}function n(d){return d.definitions.filter(function(g){return"OperationDefinition"===g.kind&&g.name}).map(function(g){return g.name.value})[0]||null}function o(d){return d.definitions.filter(function(g){return"FragmentDefinition"===g.kind})}function l(d){var g=r(d);return(0,a.kG)(g&&"query"===g.operation,48),g}function e(d){(0,a.kG)("Document"===d.kind,49),(0,a.kG)(d.definitions.length<=1,50);var g=d.definitions[0];return(0,a.kG)("FragmentDefinition"===g.kind,51),g}function i(d){m(d);for(var g,b=0,T=d.definitions;b<T.length;b++){var M=T[b];if("OperationDefinition"===M.kind){var R=M.operation;if("query"===R||"mutation"===R||"subscription"===R)return M}"FragmentDefinition"===M.kind&&!g&&(g=M)}if(g)return g;throw new a.ej(52)}function h(d){var g=Object.create(null),b=d&&d.variableDefinitions;return b&&b.length&&b.forEach(function(T){T.defaultValue&&(0,O.vb)(g,T.variable.name,T.defaultValue)}),g}},92137:(le,k,y)=>{"use strict";y.d(k,{Ao:()=>C,My:()=>E,NC:()=>V,PT:()=>W,Yk:()=>o,kQ:()=>n,qw:()=>j,u2:()=>Y,vb:()=>R,vf:()=>x});var a=y(48643),O=y.n(a),m=y(3474),r=y(25661);function n(p){return{__ref:String(p)}}function o(p){return Boolean(p&&"object"==typeof p&&"string"==typeof p.__ref)}function R(p,_,v,F){if(function i(p){return"IntValue"===p.kind}(v)||function h(p){return"FloatValue"===p.kind}(v))p[_.value]=Number(v.value);else if(function e(p){return"BooleanValue"===p.kind}(v)||function l(p){return"StringValue"===p.kind}(v))p[_.value]=v.value;else if(function g(p){return"ObjectValue"===p.kind}(v)){var q={};v.fields.map(function(J){return R(q,J.name,J.value,F)}),p[_.value]=q}else if(function d(p){return"Variable"===p.kind}(v))p[_.value]=(F||{})[v.name.value];else if(function b(p){return"ListValue"===p.kind}(v))p[_.value]=v.values.map(function(J){var ie={};return R(ie,_,J,F),ie[_.value]});else if(function T(p){return"EnumValue"===p.kind}(v))p[_.value]=v.value;else{if(!function M(p){return"NullValue"===p.kind}(v))throw new m.ej(53);p[_.value]=null}}function x(p,_){var v=null;p.directives&&(v={},p.directives.forEach(function(q){v[q.name.value]={},q.arguments&&q.arguments.forEach(function(Q){return R(v[q.name.value],Q.name,Q.value,_)})}));var F=null;return p.arguments&&p.arguments.length&&(F={},p.arguments.forEach(function(q){return R(F,q.name,q.value,_)})),W(p.name.value,F,v)}var P=["connection","include","skip","client","rest","export"];function W(p,_,v){if(_&&v&&v.connection&&v.connection.key){if(v.connection.filter&&v.connection.filter.length>0){var F=v.connection.filter?v.connection.filter:[];F.sort();var q={};return F.forEach(function(ie){q[ie]=_[ie]}),v.connection.key+"("+JSON.stringify(q)+")"}return v.connection.key}var Q=p;if(_){var J=O()(_);Q+="("+J+")"}return v&&Object.keys(v).forEach(function(ie){-1===P.indexOf(ie)&&(v[ie]&&Object.keys(v[ie]).length?Q+="@"+ie+"("+JSON.stringify(v[ie])+")":Q+="@"+ie)}),Q}function V(p,_){if(p.arguments&&p.arguments.length){var v={};return p.arguments.forEach(function(F){return R(v,F.name,F.value,_)}),v}return null}function Y(p){return p.alias?p.alias.value:p.name.value}function j(p,_,v){if("string"==typeof p.__typename)return p.__typename;for(var F=0,q=_.selections;F<q.length;F++){var Q=q[F];if(E(Q)){if("__typename"===Q.name.value)return p[Y(Q)]}else{var J=j(p,(0,r.hi)(Q,v).selectionSet,v);if("string"==typeof J)return J}}}function E(p){return"Field"===p.kind}function C(p){return"InlineFragment"===p.kind}},77218:(le,k,y)=>{"use strict";y.d(k,{Gw:()=>b,aL:()=>j,ob:()=>E,Fo:()=>M});var a=y(60162),O=y(4496),r=(y(3474),y(53725));function n(C,p,_){var v=0;return C.forEach(function(F,q){p.call(this,F,q,C)&&(C[v++]=F)},_),C.length=v,C}var o=y(92137),l=y(25661),e={kind:"Field",name:{kind:"Name",value:"__typename"}};function i(C,p){return C.selectionSet.selections.every(function(_){return"FragmentSpread"===_.kind&&i(p[_.name.value],p)})}function h(C){return i((0,r.$H)(C)||(0,r.pD)(C),(0,l.F)((0,r.kU)(C)))?null:C}function d(C){return function(_){return C.some(function(v){return v.name&&v.name===_.name.value||v.test&&v.test(_)})}}function g(C,p){var _=Object.create(null),v=[],F=Object.create(null),q=[],Q=h((0,O.Vn)(p,{Variable:{enter:function(J,ie,Se){"VariableDefinition"!==Se.kind&&(_[J.name.value]=!0)}},Field:{enter:function(J){if(C&&J.directives&&C.some(function(Se){return Se.remove})&&J.directives&&J.directives.some(d(C)))return J.arguments&&J.arguments.forEach(function(Se){"Variable"===Se.value.kind&&v.push({name:Se.value.name.value})}),J.selectionSet&&Y(J.selectionSet).forEach(function(Se){q.push({name:Se.name.value})}),null}},FragmentSpread:{enter:function(J){F[J.name.value]=!0}},Directive:{enter:function(J){if(d(C)(J))return null}}}));return Q&&n(v,function(J){return!!J.name&&!_[J.name]}).length&&(Q=function W(C,p){var _=function P(C){return function(_){return C.some(function(v){return _.value&&"Variable"===_.value.kind&&_.value.name&&(v.name===_.value.name.value||v.test&&v.test(_))})}}(C);return h((0,O.Vn)(p,{OperationDefinition:{enter:function(v){return(0,a.pi)((0,a.pi)({},v),{variableDefinitions:v.variableDefinitions?v.variableDefinitions.filter(function(F){return!C.some(function(q){return q.name===F.variable.name.value})}):[]})}},Field:{enter:function(v){var F=C.some(function(Q){return Q.remove});if(F){var q=0;if(v.arguments&&v.arguments.forEach(function(Q){_(Q)&&(q+=1)}),1===q)return null}}},Argument:{enter:function(v){if(_(v))return null}}}))}(v,Q)),Q&&n(q,function(J){return!!J.name&&!F[J.name]}).length&&(Q=function V(C,p){function _(v){if(C.some(function(F){return F.name===v.name.value}))return null}return h((0,O.Vn)(p,{FragmentSpread:{enter:_},FragmentDefinition:{enter:_}}))}(q,Q)),Q}function b(C){return(0,O.Vn)((0,r.A$)(C),{SelectionSet:{enter:function(p,_,v){if(!v||"OperationDefinition"!==v.kind){var F=p.selections;if(F&&!F.some(function(J){return(0,o.My)(J)&&("__typename"===J.name.value||0===J.name.value.lastIndexOf("__",0))})){var Q=v;if(!((0,o.My)(Q)&&Q.directives&&Q.directives.some(function(J){return"export"===J.name.value})))return(0,a.pi)((0,a.pi)({},p),{selections:(0,a.pr)(F,[e])})}}}}})}b.added=function(C){return C===e};var T={test:function(C){var p="connection"===C.name.value;return p&&(!C.arguments||C.arguments.some(function(_){return"key"===_.name.value})),p}};function M(C){return g([T],(0,r.A$)(C))}function Y(C){var p=[];return C.selections.forEach(function(_){((0,o.My)(_)||(0,o.Ao)(_))&&_.selectionSet?Y(_.selectionSet).forEach(function(v){return p.push(v)}):"FragmentSpread"===_.kind&&p.push(_)}),p}function j(C){return"query"===(0,r.p$)(C).operation?C:(0,O.Vn)(C,{OperationDefinition:{enter:function(F){return(0,a.pi)((0,a.pi)({},F),{operation:"query"})}}})}function E(C){(0,r.A$)(C);var p=g([{test:function(_){return"client"===_.name.value},remove:!0}],C);return p&&(p=(0,O.Vn)(p,{FragmentDefinition:{enter:function(_){if(_.selectionSet&&_.selectionSet.selections.every(function(F){return(0,o.My)(F)&&"__typename"===F.name.value}))return null}}})),p}},97090:(le,k,y)=>{"use strict";function a(O,m,r){var n=[];O.forEach(function(o){return o[m]&&n.push(o)}),n.forEach(function(o){return o[m](r)})}y.d(k,{p:()=>a})},67178:(le,k,y)=>{"use strict";y.d(k,{D:()=>m});var a=y(20274),O=y.n(a);function m(r){function n(o){Object.defineProperty(r,o,{value:O()})}return"function"==typeof Symbol&&Symbol.species&&n(Symbol.species),n("@@species"),r}},75137:(le,k,y)=>{"use strict";y.d(k,{N:()=>o});for(var a={},O={},m=0;m<256;m++){var r=m.toString(16).toLowerCase();1===r.length&&(r="0".concat(r)),a[m]=r,O[r]=m}function o(l){for(var e="",i=0;i<l.byteLength;i++)e+=a[l[i]];return e}},31081:(le,k,y)=>{"use strict";y.r(k),y.d(k,{fromUtf8:()=>n,toUtf8:()=>o});var n=function(l){return"function"==typeof TextEncoder?function m(l){return(new TextEncoder).encode(l)}(l):function(l){for(var e=[],i=0,h=l.length;i<h;i++){var d=l.charCodeAt(i);if(d<128)e.push(d);else if(d<2048)e.push(d>>6|192,63&d|128);else if(i+1<l.length&&55296==(64512&d)&&56320==(64512&l.charCodeAt(i+1))){var g=65536+((1023&d)<<10)+(1023&l.charCodeAt(++i));e.push(g>>18|240,g>>12&63|128,g>>6&63|128,63&g|128)}else e.push(d>>12|224,d>>6&63|128,63&d|128)}return Uint8Array.from(e)}(l)},o=function(l){return"function"==typeof TextDecoder?function r(l){return new TextDecoder("utf-8").decode(l)}(l):function(l){for(var e="",i=0,h=l.length;i<h;i++){var d=l[i];if(d<128)e+=String.fromCharCode(d);else if(192<=d&&d<224){var g=l[++i];e+=String.fromCharCode((31&d)<<6|63&g)}else if(240<=d&&d<365){var T="%"+[d,l[++i],l[++i],l[++i]].map(function(M){return M.toString(16)}).join("%");e+=decodeURIComponent(T)}else e+=String.fromCharCode((15&d)<<12|(63&l[++i])<<6|63&l[++i])}return e}(l)}},62966:(le,k,y)=>{"use strict";y.d(k,{g7:()=>l});var a=null,O={},m=1,n="@wry/context:Slot",o=Array,l=o[n]||function(){var M=function(){function M(){this.id=["slot",m++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return M.prototype.hasValue=function(){for(var R=a;R;R=R.parent)if(this.id in R.slots){var x=R.slots[this.id];if(x===O)break;return R!==a&&(a.slots[this.id]=x),!0}return a&&(a.slots[this.id]=O),!1},M.prototype.getValue=function(){if(this.hasValue())return a.slots[this.id]},M.prototype.withValue=function(R,x,P,W){var V,Y=((V={__proto__:null})[this.id]=R,V),j=a;a={parent:j,slots:Y};try{return x.apply(W,P)}finally{a=j}},M.bind=function(R){var x=a;return function(){var P=a;try{return a=x,R.apply(this,arguments)}finally{a=P}}},M.noContext=function(R,x,P){if(!a)return R.apply(P,x);var W=a;try{return a=null,R.apply(P,x)}finally{a=W}},M}();try{Object.defineProperty(o,n,{value:o[n]=M,enumerable:!1,writable:!1,configurable:!1})}finally{return M}}()},16492:(le,k,y)=>{"use strict";y.d(k,{D:()=>o});var a=Object.prototype,O=a.toString,m=a.hasOwnProperty,r=Function.prototype.toString,n=new Map;function o(b,T){try{return l(b,T)}finally{n.clear()}}function l(b,T){if(b===T)return!0;var M=O.call(b);if(M!==O.call(T))return!1;switch(M){case"[object Array]":if(b.length!==T.length)return!1;case"[object Object]":if(g(b,T))return!0;var x=e(b),P=e(T),W=x.length;if(W!==P.length)return!1;for(var V=0;V<W;++V)if(!m.call(T,x[V]))return!1;for(V=0;V<W;++V){var Y=x[V];if(!l(b[Y],T[Y]))return!1}return!0;case"[object Error]":return b.name===T.name&&b.message===T.message;case"[object Number]":if(b!=b)return T!=T;case"[object Boolean]":case"[object Date]":return+b==+T;case"[object RegExp]":case"[object String]":return b==""+T;case"[object Map]":case"[object Set]":if(b.size!==T.size)return!1;if(g(b,T))return!0;for(var j=b.entries(),E="[object Map]"===M;;){var C=j.next();if(C.done)break;var p=C.value,_=p[0],v=p[1];if(!T.has(_)||E&&!l(v,T.get(_)))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]":b=new Uint8Array(b),T=new Uint8Array(T);case"[object DataView]":var F=b.byteLength;if(F===T.byteLength)for(;F--&&b[F]===T[F];);return-1===F;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var q=r.call(b);return q===r.call(T)&&!function d(b,T){var M=b.length-T.length;return M>=0&&b.indexOf(T,M)===M}(q,h)}return!1}function e(b){return Object.keys(b).filter(i,b)}function i(b){return void 0!==this[b]}var h="{ [native code] }";function g(b,T){var M=n.get(b);if(M){if(M.has(T))return!0}else n.set(b,M=new Set);return M.add(T),!1}},83302:(le,k,y)=>{"use strict";y.d(k,{B:()=>n});var a=function(){return Object.create(null)},O=Array.prototype,m=O.forEach,r=O.slice,n=function(){function l(e,i){void 0===e&&(e=!0),void 0===i&&(i=a),this.weakness=e,this.makeData=i}return l.prototype.lookup=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.lookupArray(e)},l.prototype.lookupArray=function(e){var i=this;return m.call(e,function(h){return i=i.getChildTrie(h)}),i.data||(i.data=this.makeData(r.call(e)))},l.prototype.getChildTrie=function(e){var i=this.weakness&&function o(l){switch(typeof l){case"object":if(null===l)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),h=i.get(e);return h||i.set(e,h=new l(this.weakness,this.makeData)),h},l}()},27226:(le,k,y)=>{"use strict";y.r(k),y.d(k,{addTypenameToDocument:()=>fn,argumentsObjectFromField:()=>Bt,assign:()=>Er,buildQueryFromSelectionSet:()=>kt,canUseWeakMap:()=>At,checkDocument:()=>Rt,cloneDeep:()=>fr,createFragmentMap:()=>It,getDefaultValues:()=>et,getDirectiveInfoFromField:()=>ir,getDirectiveNames:()=>Nr,getDirectivesFromDocument:()=>pn,getEnv:()=>lr,getFragmentDefinition:()=>Ht,getFragmentDefinitions:()=>ot,getFragmentQueryDocument:()=>an,getInclusionDirectives:()=>or,getMainDefinition:()=>ur,getMutationDefinition:()=>_r,getOperationDefinition:()=>sr,getOperationDefinitionOrDie:()=>nt,getOperationName:()=>on,getQueryDefinition:()=>sn,getStoreKeyName:()=>pt,graphQLResultHasError:()=>dn,hasClientExports:()=>ar,hasDirectives:()=>Ct,isDevelopment:()=>Kr,isEnv:()=>Lt,isEqual:()=>ae,isField:()=>mt,isIdValue:()=>Pt,isInlineFragment:()=>xt,isJsonValue:()=>qt,isNumberValue:()=>je,isProduction:()=>xr,isScalarValue:()=>Me,isTest:()=>Yt,maybeDeepFreeze:()=>zr,mergeDeep:()=>hr,mergeDeepArray:()=>Hr,removeArgumentsFromDocument:()=>Vt,removeClientSetsFromDocument:()=>Ar,removeConnectionDirectiveFromDocument:()=>hn,removeDirectivesFromDocument:()=>Sr,removeFragmentSpreadFromDocument:()=>Wr,resultKeyNameFromField:()=>jt,shouldInclude:()=>zt,storeKeyNameFromField:()=>br,stripSymbols:()=>Gr,toIdValue:()=>Tt,tryFunctionOrLogError:()=>Tr,valueFromNode:()=>Dt,valueToObjectRepresentation:()=>Ot,variablesInOperation:()=>un,warnOnceInDevelopment:()=>pr});var X,a=y(4496),O=function(X,fe){return(O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,Oe){pe.__proto__=Oe}||function(pe,Oe){for(var Ce in Oe)Oe.hasOwnProperty(Ce)&&(pe[Ce]=Oe[Ce])})(X,fe)},_="Invariant Violation",v=Object.setPrototypeOf,F=void 0===v?function(X,fe){return X.__proto__=fe,X}:v,q=function(X){function fe(pe){void 0===pe&&(pe=_);var Oe=X.call(this,"number"==typeof pe?_+": "+pe+" (see https://github.com/apollographql/invariant-packages)":pe)||this;return Oe.framesToPop=1,Oe.name=_,F(Oe,fe.prototype),Oe}return function m(X,fe){function pe(){this.constructor=X}O(X,fe),X.prototype=null===fe?Object.create(fe):(pe.prototype=fe.prototype,new pe)}(fe,X),fe}(Error);function Q(X,fe){if(!X)throw new q(fe)}function J(X){return function(){return console[X].apply(console,arguments)}}(X=Q||(Q={})).warn=J("warn"),X.error=J("error");var ie={env:{}};if("object"==typeof process)ie=process;else try{Function("stub","process = stub")(ie)}catch{}var H=function(){return H=Object.assign||function(fe){for(var pe,Oe=1,Ce=arguments.length;Oe<Ce;Oe++)for(var xe in pe=arguments[Oe])Object.prototype.hasOwnProperty.call(pe,xe)&&(fe[xe]=pe[xe]);return fe},H.apply(this,arguments)};function be(){for(var X=0,fe=0,pe=arguments.length;fe<pe;fe++)X+=arguments[fe].length;var Oe=Array(X),Ce=0;for(fe=0;fe<pe;fe++)for(var xe=arguments[fe],Fe=0,Ue=xe.length;Fe<Ue;Fe++,Ce++)Oe[Ce]=xe[Fe];return Oe}var A=y(48643),I=y.n(A),ne=Object.prototype,me=ne.toString,Re=ne.hasOwnProperty,Pe=new Map;function ae(X,fe){try{return ye(X,fe)}finally{Pe.clear()}}function ye(X,fe){if(X===fe)return!0;var pe=me.call(X);if(pe!==me.call(fe))return!1;switch(pe){case"[object Array]":if(X.length!==fe.length)return!1;case"[object Object]":if(_e(X,fe))return!0;var Ce=Object.keys(X),xe=Object.keys(fe),Fe=Ce.length;if(Fe!==xe.length)return!1;for(var Ue=0;Ue<Fe;++Ue)if(!Re.call(fe,Ce[Ue]))return!1;for(Ue=0;Ue<Fe;++Ue){var Ge=Ce[Ue];if(!ye(X[Ge],fe[Ge]))return!1}return!0;case"[object Error]":return X.name===fe.name&&X.message===fe.message;case"[object Number]":if(X!=X)return fe!=fe;case"[object Boolean]":case"[object Date]":return+X==+fe;case"[object RegExp]":case"[object String]":return X==""+fe;case"[object Map]":case"[object Set]":if(X.size!==fe.size)return!1;if(_e(X,fe))return!0;for(var Ne=X.entries(),tt="[object Map]"===pe;;){var dt=Ne.next();if(dt.done)break;var Xe=dt.value,ft=Xe[0],St=Xe[1];if(!fe.has(ft)||tt&&!ye(St,fe.get(ft)))return!1}return!0}return!1}function _e(X,fe){var pe=Pe.get(X);if(pe){if(pe.has(fe))return!0}else Pe.set(X,pe=new Set);return pe.add(fe),!1}function Me(X){return["StringValue","BooleanValue","EnumValue"].indexOf(X.kind)>-1}function je(X){return["IntValue","FloatValue"].indexOf(X.kind)>-1}function Ot(X,fe,pe,Oe){if(function at(X){return"IntValue"===X.kind}(pe)||function yt(X){return"FloatValue"===X.kind}(pe))X[fe.value]=Number(pe.value);else if(function qe(X){return"BooleanValue"===X.kind}(pe)||function Ke(X){return"StringValue"===X.kind}(pe))X[fe.value]=pe.value;else if(function ze(X){return"ObjectValue"===X.kind}(pe)){var Ce={};pe.fields.map(function(Fe){return Ot(Ce,Fe.name,Fe.value,Oe)}),X[fe.value]=Ce}else if(function ut(X){return"Variable"===X.kind}(pe))X[fe.value]=(Oe||{})[pe.name.value];else if(function wt(X){return"ListValue"===X.kind}(pe))X[fe.value]=pe.values.map(function(Fe){var Ue={};return Ot(Ue,fe,Fe,Oe),Ue[fe.value]});else if(function Lr(X){return"EnumValue"===X.kind}(pe))X[fe.value]=pe.value;else{if(!function nr(X){return"NullValue"===X.kind}(pe))throw new q(17);X[fe.value]=null}}function br(X,fe){var pe=null;X.directives&&(pe={},X.directives.forEach(function(Ce){pe[Ce.name.value]={},Ce.arguments&&Ce.arguments.forEach(function(xe){return Ot(pe[Ce.name.value],xe.name,xe.value,fe)})}));var Oe=null;return X.arguments&&X.arguments.length&&(Oe={},X.arguments.forEach(function(Ce){return Ot(Oe,Ce.name,Ce.value,fe)})),pt(X.name.value,Oe,pe)}var Kt=["connection","include","skip","client","rest","export"];function pt(X,fe,pe){if(pe&&pe.connection&&pe.connection.key){if(pe.connection.filter&&pe.connection.filter.length>0){var Oe=pe.connection.filter?pe.connection.filter:[];Oe.sort();var Ce=fe,xe={};return Oe.forEach(function(Ge){xe[Ge]=Ce[Ge]}),pe.connection.key+"("+JSON.stringify(xe)+")"}return pe.connection.key}var Fe=X;if(fe){var Ue=I()(fe);Fe+="("+Ue+")"}return pe&&Object.keys(pe).forEach(function(Ge){-1===Kt.indexOf(Ge)&&(pe[Ge]&&Object.keys(pe[Ge]).length?Fe+="@"+Ge+"("+JSON.stringify(pe[Ge])+")":Fe+="@"+Ge)}),Fe}function Bt(X,fe){if(X.arguments&&X.arguments.length){var pe={};return X.arguments.forEach(function(Oe){return Ot(pe,Oe.name,Oe.value,fe)}),pe}return null}function jt(X){return X.alias?X.alias.value:X.name.value}function mt(X){return"Field"===X.kind}function xt(X){return"InlineFragment"===X.kind}function Pt(X){return X&&"id"===X.type&&"boolean"==typeof X.generated}function Tt(X,fe){return void 0===fe&&(fe=!1),H({type:"id",generated:fe},"string"==typeof X?{id:X,typename:void 0}:X)}function qt(X){return null!=X&&"object"==typeof X&&"json"===X.type}function Ut(X){throw new q(18)}function Dt(X,fe){switch(void 0===fe&&(fe=Ut),X.kind){case"Variable":return fe(X);case"NullValue":return null;case"IntValue":return parseInt(X.value,10);case"FloatValue":return parseFloat(X.value);case"ListValue":return X.values.map(function(Fe){return Dt(Fe,fe)});case"ObjectValue":for(var pe={},Oe=0,Ce=X.fields;Oe<Ce.length;Oe++){var xe=Ce[Oe];pe[xe.name.value]=Dt(xe.value,fe)}return pe;default:return X.value}}function ir(X,fe){if(X.directives&&X.directives.length){var pe={};return X.directives.forEach(function(Oe){pe[Oe.name.value]=Bt(Oe,fe)}),pe}return null}function zt(X,fe){return void 0===fe&&(fe={}),or(X.directives).every(function(pe){var Oe=pe.directive,Ce=pe.ifArgument,xe=!1;return"Variable"===Ce.value.kind?Q(void 0!==(xe=fe[Ce.value.name.value]),13):xe=Ce.value.value,"skip"===Oe.name.value?!xe:xe})}function Nr(X){var fe=[];return(0,a.Vn)(X,{Directive:function(pe){fe.push(pe.name.value)}}),fe}function Ct(X,fe){return Nr(fe).some(function(pe){return X.indexOf(pe)>-1})}function ar(X){return X&&Ct(["client"],X)&&Ct(["export"],X)}function Br(X){var fe=X.name.value;return"skip"===fe||"include"===fe}function or(X){return X?X.filter(Br).map(function(fe){var pe=fe.arguments;Q(pe&&1===pe.length,14);var Ce=pe[0];Q(Ce.name&&"if"===Ce.name.value,15);var xe=Ce.value;return Q(xe&&("Variable"===xe.kind||"BooleanValue"===xe.kind),16),{directive:fe,ifArgument:Ce}}):[]}function an(X,fe){var pe=fe,Oe=[];return X.definitions.forEach(function(xe){if("OperationDefinition"===xe.kind)throw new q(11);"FragmentDefinition"===xe.kind&&Oe.push(xe)}),typeof pe>"u"&&(Q(1===Oe.length,12),pe=Oe[0].name.value),H(H({},X),{definitions:be([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:pe}}]}}],X.definitions)})}function Er(X){for(var fe=[],pe=1;pe<arguments.length;pe++)fe[pe-1]=arguments[pe];return fe.forEach(function(Oe){typeof Oe>"u"||null===Oe||Object.keys(Oe).forEach(function(Ce){X[Ce]=Oe[Ce]})}),X}function _r(X){Rt(X);var fe=X.definitions.filter(function(pe){return"OperationDefinition"===pe.kind&&"mutation"===pe.operation})[0];return Q(fe,1),fe}function Rt(X){return Q(X&&"Document"===X.kind,2),Q(X.definitions.filter(function(pe){return"FragmentDefinition"!==pe.kind}).map(function(pe){if("OperationDefinition"!==pe.kind)throw new q(3);return pe}).length<=1,4),X}function sr(X){return Rt(X),X.definitions.filter(function(fe){return"OperationDefinition"===fe.kind})[0]}function nt(X){var fe=sr(X);return Q(fe,5),fe}function on(X){return X.definitions.filter(function(fe){return"OperationDefinition"===fe.kind&&fe.name}).map(function(fe){return fe.name.value})[0]||null}function ot(X){return X.definitions.filter(function(fe){return"FragmentDefinition"===fe.kind})}function sn(X){var fe=sr(X);return Q(fe&&"query"===fe.operation,6),fe}function Ht(X){Q("Document"===X.kind,7),Q(X.definitions.length<=1,8);var fe=X.definitions[0];return Q("FragmentDefinition"===fe.kind,9),fe}function ur(X){Rt(X);for(var fe,pe=0,Oe=X.definitions;pe<Oe.length;pe++){var Ce=Oe[pe];if("OperationDefinition"===Ce.kind){var xe=Ce.operation;if("query"===xe||"mutation"===xe||"subscription"===xe)return Ce}"FragmentDefinition"===Ce.kind&&!fe&&(fe=Ce)}if(fe)return fe;throw new q(10)}function It(X){void 0===X&&(X=[]);var fe={};return X.forEach(function(pe){fe[pe.name.value]=pe}),fe}function et(X){if(X&&X.variableDefinitions&&X.variableDefinitions.length){var fe=X.variableDefinitions.filter(function(pe){return pe.defaultValue}).map(function(pe){var xe={};return Ot(xe,pe.variable.name,pe.defaultValue),xe});return Er.apply(void 0,be([{}],fe))}return{}}function un(X){var fe=new Set;if(X.variableDefinitions)for(var pe=0,Oe=X.variableDefinitions;pe<Oe.length;pe++)fe.add(Oe[pe].variable.name.value);return fe}function jr(X,fe,pe){var Oe=0;return X.forEach(function(Ce,xe){fe.call(this,Ce,xe,X)&&(X[Oe++]=Ce)},pe),X.length=Oe,X}var cn={kind:"Field",name:{kind:"Name",value:"__typename"}};function Ur(X,fe){return X.selectionSet.selections.every(function(pe){return"FragmentSpread"===pe.kind&&Ur(fe[pe.name.value],fe)})}function cr(X){return Ur(sr(X)||Ht(X),It(ot(X)))?null:X}function wr(X){return function(pe){return X.some(function(Oe){return Oe.name&&Oe.name===pe.name.value||Oe.test&&Oe.test(pe)})}}function Sr(X,fe){var pe=Object.create(null),Oe=[],Ce=Object.create(null),xe=[],Fe=cr((0,a.Vn)(fe,{Variable:{enter:function(Ue,Ge,Ne){"VariableDefinition"!==Ne.kind&&(pe[Ue.name.value]=!0)}},Field:{enter:function(Ue){if(X&&Ue.directives&&X.some(function(Ne){return Ne.remove})&&Ue.directives&&Ue.directives.some(wr(X)))return Ue.arguments&&Ue.arguments.forEach(function(Ne){"Variable"===Ne.value.kind&&Oe.push({name:Ne.value.name.value})}),Ue.selectionSet&&Gt(Ue.selectionSet).forEach(function(Ne){xe.push({name:Ne.name.value})}),null}},FragmentSpread:{enter:function(Ue){Ce[Ue.name.value]=!0}},Directive:{enter:function(Ue){if(wr(X)(Ue))return null}}}));return Fe&&jr(Oe,function(Ue){return!pe[Ue.name]}).length&&(Fe=Vt(Oe,Fe)),Fe&&jr(xe,function(Ue){return!Ce[Ue.name]}).length&&(Fe=Wr(xe,Fe)),Fe}function fn(X){return(0,a.Vn)(Rt(X),{SelectionSet:{enter:function(fe,pe,Oe){if(!Oe||"OperationDefinition"!==Oe.kind){var Ce=fe.selections;if(Ce&&!Ce.some(function(Ue){return mt(Ue)&&("__typename"===Ue.name.value||0===Ue.name.value.lastIndexOf("__",0))})){var Fe=Oe;if(!(mt(Fe)&&Fe.directives&&Fe.directives.some(function(Ue){return"export"===Ue.name.value})))return H(H({},fe),{selections:be(Ce,[cn])})}}}}})}var ln={test:function(X){var fe="connection"===X.name.value;return fe&&(!X.arguments||X.arguments.some(function(pe){return"key"===pe.name.value})),fe}};function hn(X){return Sr([ln],Rt(X))}function Mt(X,fe,pe){return void 0===pe&&(pe=!0),fe&&fe.selections&&fe.selections.some(function(Oe){return Vr(X,Oe,pe)})}function Vr(X,fe,pe){return void 0===pe&&(pe=!0),!mt(fe)||!!fe.directives&&(fe.directives.some(wr(X))||pe&&Mt(X,fe.selectionSet,pe))}function pn(X,fe){var pe;return Rt(fe),cr((0,a.Vn)(fe,{SelectionSet:{enter:function(Oe,Ce,xe,Fe){var Ue=Fe.join("-");if(!pe||Ue===pe||!Ue.startsWith(pe)){if(Oe.selections){var Ge=Oe.selections.filter(function(Ne){return Vr(X,Ne)});return Mt(X,Oe,!1)&&(pe=Ue),H(H({},Oe),{selections:Ge})}return null}}}}))}function Vt(X,fe){var pe=function Or(X){return function(pe){return X.some(function(Oe){return pe.value&&"Variable"===pe.value.kind&&pe.value.name&&(Oe.name===pe.value.name.value||Oe.test&&Oe.test(pe))})}}(X);return cr((0,a.Vn)(fe,{OperationDefinition:{enter:function(Oe){return H(H({},Oe),{variableDefinitions:Oe.variableDefinitions.filter(function(Ce){return!X.some(function(xe){return xe.name===Ce.variable.name.value})})})}},Field:{enter:function(Oe){if(X.some(function(Fe){return Fe.remove})){var xe=0;if(Oe.arguments.forEach(function(Fe){pe(Fe)&&(xe+=1)}),1===xe)return null}}},Argument:{enter:function(Oe){if(pe(Oe))return null}}}))}function Wr(X,fe){function pe(Oe){if(X.some(function(Ce){return Ce.name===Oe.name.value}))return null}return cr((0,a.Vn)(fe,{FragmentSpread:{enter:pe},FragmentDefinition:{enter:pe}}))}function Gt(X){var fe=[];return X.selections.forEach(function(pe){(mt(pe)||xt(pe))&&pe.selectionSet?Gt(pe.selectionSet).forEach(function(Oe){return fe.push(Oe)}):"FragmentSpread"===pe.kind&&fe.push(pe)}),fe}function kt(X){return"query"===ur(X).operation?X:(0,a.Vn)(X,{OperationDefinition:{enter:function(Ce){return H(H({},Ce),{operation:"query"})}}})}function Ar(X){Rt(X);var fe=Sr([{test:function(pe){return"client"===pe.name.value},remove:!0}],X);return fe&&(fe=(0,a.Vn)(fe,{FragmentDefinition:{enter:function(pe){if(pe.selectionSet&&pe.selectionSet.selections.every(function(Ce){return mt(Ce)&&"__typename"===Ce.name.value}))return null}}})),fe}var At="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Qr=Object.prototype.toString;function fr(X){return Ft(X,new Map)}function Ft(X,fe){switch(Qr.call(X)){case"[object Array]":if(fe.has(X))return fe.get(X);var pe=X.slice(0);return fe.set(X,pe),pe.forEach(function(Ce,xe){pe[xe]=Ft(Ce,fe)}),pe;case"[object Object]":if(fe.has(X))return fe.get(X);var Oe=Object.create(Object.getPrototypeOf(X));return fe.set(X,Oe),Object.keys(X).forEach(function(Ce){Oe[Ce]=Ft(X[Ce],fe)}),Oe;default:return X}}function lr(){return typeof process<"u"?"production":"development"}function Lt(X){return lr()===X}function xr(){return!0===Lt("production")}function Kr(){return!0===Lt("development")}function Yt(){return!0===Lt("test")}function Tr(X){try{return X()}catch(fe){console.error&&console.error(fe)}}function dn(X){return X.errors&&X.errors.length}function qr(X){return Object.freeze(X),Object.getOwnPropertyNames(X).forEach(function(fe){null!==X[fe]&&("object"==typeof X[fe]||"function"==typeof X[fe])&&!Object.isFrozen(X[fe])&&qr(X[fe])}),X}function zr(X){return!Kr()&&!Yt()||"function"==typeof Symbol&&"string"==typeof Symbol("")?X:qr(X)}var Jt=Object.prototype.hasOwnProperty;function hr(){for(var X=[],fe=0;fe<arguments.length;fe++)X[fe]=arguments[fe];return Hr(X)}function Hr(X){var fe=X[0]||{},pe=X.length;if(pe>1){var Oe=[];fe=Cr(fe,Oe);for(var Ce=1;Ce<pe;++Ce)fe=$t(fe,X[Ce],Oe)}return fe}function gt(X){return null!==X&&"object"==typeof X}function $t(X,fe,pe){return gt(fe)&>(X)?(Object.isExtensible&&!Object.isExtensible(X)&&(X=Cr(X,pe)),Object.keys(fe).forEach(function(Oe){var Ce=fe[Oe];if(Jt.call(X,Oe)){var xe=X[Oe];Ce!==xe&&(X[Oe]=$t(Cr(xe,pe),Ce,pe))}else X[Oe]=Ce}),X):fe}function Cr(X,fe){return null!==X&&"object"==typeof X&&fe.indexOf(X)<0&&(X=Array.isArray(X)?X.slice(0):H({__proto__:Object.getPrototypeOf(X)},X),fe.push(X)),X}var bt=Object.create({});function pr(X,fe){void 0===fe&&(fe="warn"),!xr()&&!bt[X]&&(Yt()||(bt[X]=!0),"error"===fe?console.error(X):console.warn(X))}function Gr(X){return JSON.parse(JSON.stringify(X))}},10473:function(le,k,y){"use strict";var P,a=this&&this.__extends||(P=function(W,V){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,j){Y.__proto__=j}||function(Y,j){for(var E in j)j.hasOwnProperty(E)&&(Y[E]=j[E])})(W,V)},function(W,V){function Y(){this.constructor=W}P(W,V),W.prototype=null===V?Object.create(V):(Y.prototype=V.prototype,new Y)}),O=this&&this.__assign||function(){return O=Object.assign||function(P){for(var W,V=1,Y=arguments.length;V<Y;V++)for(var j in W=arguments[V])Object.prototype.hasOwnProperty.call(W,j)&&(P[j]=W[j]);return P},O.apply(this,arguments)},m=this&&this.__awaiter||function(P,W,V,Y){return new(V||(V=Promise))(function(E,C){function p(F){try{v(Y.next(F))}catch(q){C(q)}}function _(F){try{v(Y.throw(F))}catch(q){C(q)}}function v(F){F.done?E(F.value):function j(E){return E instanceof V?E:new V(function(C){C(E)})}(F.value).then(p,_)}v((Y=Y.apply(P,W||[])).next())})},r=this&&this.__generator||function(P,W){var Y,j,E,C,V={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return C={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function p(v){return function(F){return function _(v){if(Y)throw new TypeError("Generator is already executing.");for(;V;)try{if(Y=1,j&&(E=2&v[0]?j.return:v[0]?j.throw||((E=j.return)&&E.call(j),0):j.next)&&!(E=E.call(j,v[1])).done)return E;switch(j=0,E&&(v=[2&v[0],E.value]),v[0]){case 0:case 1:E=v;break;case 4:return V.label++,{value:v[1],done:!1};case 5:V.label++,j=v[1],v=[0];continue;case 7:v=V.ops.pop(),V.trys.pop();continue;default:if(!(E=(E=V.trys).length>0&&E[E.length-1])&&(6===v[0]||2===v[0])){V=0;continue}if(3===v[0]&&(!E||v[1]>E[0]&&v[1]<E[3])){V.label=v[1];break}if(6===v[0]&&V.label<E[1]){V.label=E[1],E=v;break}if(E&&V.label<E[2]){V.label=E[2],V.ops.push(v);break}E[2]&&V.ops.pop(),V.trys.pop();continue}v=W.call(P,V)}catch(F){v=[6,F],j=0}finally{Y=E=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,F])}}};Object.defineProperty(k,"__esModule",{value:!0});var g,n=y(52462),o=y(94140),l=y(91102),e=y(87317),i=y(20646),h=y(7535);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+h.version+(i.userAgent&&" ")+i.userAgent,function(P){P.NONE="NONE",P.API_KEY="API_KEY",P.AWS_IAM="AWS_IAM",P.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",P.OPENID_CONNECT="OPENID_CONNECT",P.AWS_LAMBDA="AWS_LAMBDA"}(g=k.AUTH_TYPE||(k.AUTH_TYPE={}));var b=function(P){function W(V){var Y=P.call(this)||this;return Y.link=k.authLink(V),Y}return a(W,P),W.prototype.request=function(V,Y){return this.link.request(V,Y)},W}(n.ApolloLink);k.AuthLink=b;var T=function(P,W,V){var Y=void 0===P?{header:"",value:""}:P,j=Y.header,E=Y.value;return m(void 0,void 0,void 0,function(){var C,p,v,F,q;return r(this,function(Q){switch(Q.label){case 0:return C=W.getContext(),p=O(O({},C.headers),((F={})[k.USER_AGENT_HEADER]=k.USER_AGENT,F)),j&&E?"function"!=typeof E?[3,2]:[4,E.call(void 0)]:[3,5];case 1:return v=Q.sent(),[3,4];case 2:return[4,E];case 3:v=Q.sent(),Q.label=4;case 4:p=O(((q={})[j]=v,q),p),Q.label=5;case 5:return W.setContext(O(O({},C),{headers:p})),[2,V(W)]}})})};k.authLink=function(P){var W=P.url,V=P.region,Y=P.auth,j=(void 0===Y?{}:Y).type,E=P.auth;return new n.ApolloLink(function(C,p){return new n.Observable(function(_){var v,F;switch(j){case g.NONE:F=T(void 0,C,p);break;case g.AWS_IAM:var q=E.credentials;F=function(P,W,V){var Y=P.credentials,j=P.region,E=P.url;return m(void 0,void 0,void 0,function(){var C,p,_,v,F,q,Q,J,ie,Se,te,ge,ue;return r(this,function(H){switch(H.label){case 0:return C="appsync",p=W.getContext(),(_="function"==typeof Y?Y.call():Y||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:H.sent(),H.label=2;case 2:return[4,_];case 3:return v=H.sent(),F=v.accessKeyId,q=v.secretAccessKey,Q=v.sessionToken,J=e.parse(E),ie=J.host,Se=J.path,te=O(O({},R(W,{})),{service:C,region:j,url:E,host:ie,path:Se}),ge=l.Signer.sign(te,{access_key:F,secret_key:q,session_token:Q}).headers,W.setContext(O(O({},p),{headers:O(O(O({},p.headers),ge),(ue={},ue[k.USER_AGENT_HEADER]=k.USER_AGENT,ue))})),[2,V(W)]}})})}({credentials:void 0===q?{}:q,region:V,url:W},C,p);break;case g.API_KEY:var J=E.apiKey;F=T({header:"X-Api-Key",value:void 0===J?"":J},C,p);break;case g.AMAZON_COGNITO_USER_POOLS:case g.OPENID_CONNECT:var Se=E.jwtToken;F=T({header:"Authorization",value:void 0===Se?"":Se},C,p);break;case g.AWS_LAMBDA:var ge=E.token;F=T({header:"Authorization",value:void 0===ge?"":ge},C,p);break;default:throw new Error("Invalid AUTH_TYPE: "+E.type)}return F.then(function($){v=$.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){v&&v.unsubscribe()}})})};var R=function(P,W){var j=P.query,E={operationName:P.operationName,variables:x(P.variables),query:o.print(j)};return O(O({body:JSON.stringify(E),method:"POST"},W),{headers:O({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},x=function(P){return Object.keys(P).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,V){return W[V]=P[V],W},{})}},44284:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var a=y(10473);k.AuthLink=a.AuthLink,k.AUTH_TYPE=a.AUTH_TYPE,k.USER_AGENT_HEADER=a.USER_AGENT_HEADER,k.USER_AGENT=a.USER_AGENT,k.createAuthLink=function(m){return new a.AuthLink({url:m.url,region:m.region,auth:m.auth})};var O=y(91102);k.Signer=O.Signer},20646:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},91102:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function a(O){for(var m in O)k.hasOwnProperty(m)||(k[m]=O[m])}(y(1381))},1381:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),global.Buffer=global.Buffer||y(9333).lW;var a=y(87317),O=y(41410).Sha256,m=y(75137).N,r=function(x,P,W){void 0===W&&(W="");var V=new O(x);V.update(P);var Y=V.digestSync();return"hex"===W?m(Y):Y},n=function(x){var P=x||"",W=new O;return W.update(P),m(W.digestSync())},o=function(x){return x&&0!==Object.keys(x).length?Object.keys(x).map(function(P){return{key:P.toLowerCase(),value:x[P]?x[P].trim().replace(/\s+/g," "):""}}).sort(function(P,W){return P.key<W.key?-1:1}).map(function(P){return P.key+":"+P.value}).join("\n")+"\n":""},l=function(x){return Object.keys(x).map(function(P){return P.toLowerCase()}).sort().join(";")},M=function(x,P,W){void 0===W&&(W=null),x.headers=x.headers||{};var Y=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),j=Y.substr(0,8),E="AWS4-HMAC-SHA256",C=a.parse(x.url);x.headers.host=C.host,x.headers["x-amz-date"]=Y,P.session_token&&(x.headers["X-Amz-Security-Token"]=P.session_token);var p=function(x){var P=a.parse(x.url);return[x.method||"/",P.path,P.query,o(x.headers),l(x.headers),n(x.body)].join("\n")}(x);W=W||function(x){var Y=(a.parse(x.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===Y[1]&&(Y=Y.reverse()),{service:x.service||Y[0],region:x.region||Y[1]}}(x);var _=function(x,P,W){return[x,P,W,"aws4_request"].join("/")}(j,W.region,W.service),v=function(x,P,W,V){return[x,W,V,n(P)].join("\n")}(E,p,Y,_),F=function(x,P,W){void 0===x&&(x="");var Y=r("AWS4"+x,P),j=r(Y,W.region),E=r(j,W.service);return r(E,"aws4_request")}(P.secret_key,j,W),q=function(x,P){return r(x,P,"hex")}(F,v),Q=function(x,P,W,V,Y){return void 0===P&&(P=""),[x+" Credential="+P+"/"+W,"SignedHeaders="+V,"Signature="+Y].join(", ")}(E,P.access_key,_,l(x.headers),q);return x.headers.Authorization=Q,x},R=function(){function x(){}return x.sign=M,x}();k.Signer=R,k.default=R},44274:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.RawSha256=void 0;var a=y(81536),O=function(){function m(){this.state=Int32Array.from(a.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return m.prototype.update=function(r){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,o=r.byteLength;if(this.bytesHashed+=o,8*this.bytesHashed>a.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===a.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},m.prototype.digest=function(){if(!this.finished){var r=8*this.bytesHashed,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(n.setUint8(this.bufferLength++,128),o%a.BLOCK_SIZE>=a.BLOCK_SIZE-8){for(var l=this.bufferLength;l<a.BLOCK_SIZE;l++)n.setUint8(l,0);this.hashBuffer(),this.bufferLength=0}for(l=this.bufferLength;l<a.BLOCK_SIZE-8;l++)n.setUint8(l,0);n.setUint32(a.BLOCK_SIZE-8,Math.floor(r/4294967296),!0),n.setUint32(a.BLOCK_SIZE-4,r),this.hashBuffer(),this.finished=!0}var e=new Uint8Array(a.DIGEST_LENGTH);for(l=0;l<8;l++)e[4*l]=this.state[l]>>>24&255,e[4*l+1]=this.state[l]>>>16&255,e[4*l+2]=this.state[l]>>>8&255,e[4*l+3]=this.state[l]>>>0&255;return e},m.prototype.hashBuffer=function(){for(var n=this.buffer,o=this.state,l=o[0],e=o[1],i=o[2],h=o[3],d=o[4],g=o[5],b=o[6],T=o[7],M=0;M<a.BLOCK_SIZE;M++){if(M<16)this.temp[M]=(255&n[4*M])<<24|(255&n[4*M+1])<<16|(255&n[4*M+2])<<8|255&n[4*M+3];else{var R=this.temp[M-2];this.temp[M]=(((R>>>17|R<<15)^(R>>>19|R<<13)^R>>>10)+this.temp[M-7]|0)+((((R=this.temp[M-15])>>>7|R<<25)^(R>>>18|R<<14)^R>>>3)+this.temp[M-16]|0)}var W=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&g^~d&b)|0)+(T+(a.KEY[M]+this.temp[M]|0)|0)|0,V=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&e^l&i^e&i)|0;T=b,b=g,g=d,d=h+W|0,h=i,i=e,e=l,l=W+V|0}o[0]+=l,o[1]+=e,o[2]+=i,o[3]+=h,o[4]+=d,o[5]+=g,o[6]+=b,o[7]+=T},m}();k.RawSha256=O},81536:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.MAX_HASHABLE_LENGTH=k.INIT=k.KEY=k.DIGEST_LENGTH=k.BLOCK_SIZE=void 0,k.BLOCK_SIZE=64,k.DIGEST_LENGTH=32,k.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]),k.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],k.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},41410:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),(0,y(21408).__exportStar)(y(17028),k)},17028:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.Sha256=void 0;var a=y(21408),O=y(81536),m=y(44274),r=y(75746),n=function(){function l(e){if(this.hash=new m.RawSha256,e){this.outer=new m.RawSha256;var i=function o(l){var e=(0,r.convertToBuffer)(l);if(e.byteLength>O.BLOCK_SIZE){var i=new m.RawSha256;i.update(e),e=i.digest()}var h=new Uint8Array(O.BLOCK_SIZE);return h.set(e),h}(e),h=new Uint8Array(O.BLOCK_SIZE);h.set(i);for(var d=0;d<O.BLOCK_SIZE;d++)i[d]^=54,h[d]^=92;for(this.hash.update(i),this.outer.update(h),d=0;d<i.byteLength;d++)i[d]=0}}return l.prototype.update=function(e){if(!(0,r.isEmptyData)(e)&&!this.error)try{this.hash.update((0,r.convertToBuffer)(e))}catch(i){this.error=i}},l.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()},l.prototype.digest=function(){return(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(e){return[2,this.digestSync()]})})},l}();k.Sha256=n},68414:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.convertToBuffer=void 0;var a=y(31081),O=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:a.fromUtf8;k.convertToBuffer=function m(r){return r instanceof Uint8Array?r:"string"==typeof r?O(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}},75746:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=k.numToUint8=k.isEmptyData=k.convertToBuffer=void 0;var a=y(68414);Object.defineProperty(k,"convertToBuffer",{enumerable:!0,get:function(){return a.convertToBuffer}});var O=y(28702);Object.defineProperty(k,"isEmptyData",{enumerable:!0,get:function(){return O.isEmptyData}});var m=y(43632);Object.defineProperty(k,"numToUint8",{enumerable:!0,get:function(){return m.numToUint8}});var r=y(77070);Object.defineProperty(k,"uint32ArrayFrom",{enumerable:!0,get:function(){return r.uint32ArrayFrom}})},28702:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.isEmptyData=void 0,k.isEmptyData=function y(a){return"string"==typeof a?0===a.length:0===a.byteLength}},43632:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.numToUint8=void 0,k.numToUint8=function y(a){return new Uint8Array([(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a])}},77070:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.uint32ArrayFrom=void 0,k.uint32ArrayFrom=function y(a){if(!Array.from){for(var O=new Uint32Array(a.length);0<a.length;)O[0]=a[0];return O}return Uint32Array.from(a)}},47420:function(le,k,y){"use strict";var a=this&&this.__rest||function(e,i){var h={};for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&i.indexOf(d)<0&&(h[d]=e[d]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var g=0;for(d=Object.getOwnPropertySymbols(e);g<d.length;g++)i.indexOf(d[g])<0&&Object.prototype.propertyIsEnumerable.call(e,d[g])&&(h[d[g]]=e[d[g]])}return h};Object.defineProperty(k,"__esModule",{value:!0});var O=y(30860);k.CONTROL_EVENTS_KEY=O.CONTROL_EVENTS_KEY;var m=y(79418),r=y(27226),n=y(54556),o=y(14657);k.createSubscriptionHandshakeLink=function l(e,i){var h,d;return"string"==typeof e?(h=i||m.createHttpLink({uri:e}),d=m.ApolloLink.from([new n.NonTerminatingLink("controlMessages",{link:new m.ApolloLink(function(b,T){return new m.Observable(function(M){var R,x=b.variables,P=O.CONTROL_EVENTS_KEY,W=x[P],V=a(x,["symbol"==typeof P?P:P+""]);return typeof W<"u"&&(b.variables=V),M.next(((R={})[O.CONTROL_EVENTS_KEY]=W,R)),function(){}})})}),new n.NonTerminatingLink("subsInfo",{link:h}),new O.SubscriptionHandshakeLink("subsInfo")])):(h=i||m.createHttpLink({uri:e.url}),d=new o.AppSyncRealTimeSubscriptionHandshakeLink(e)),m.ApolloLink.split(function(b){var M=r.getMainDefinition(b.query);return"OperationDefinition"===M.kind&&"subscription"===M.operation},d,h)}},54556:function(le,k,y){"use strict";var e,a=this&&this.__extends||(e=function(i,h){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var b in g)g.hasOwnProperty(b)&&(d[b]=g[b])})(i,h)},function(i,h){function d(){this.constructor=i}e(i,h),i.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}),O=this&&this.__assign||function(){return O=Object.assign||function(e){for(var i,h=1,d=arguments.length;h<d;h++)for(var g in i=arguments[h])Object.prototype.hasOwnProperty.call(i,g)&&(e[g]=i[g]);return e},O.apply(this,arguments)},m=this&&this.__awaiter||function(e,i,h,d){return new(h||(h=Promise))(function(b,T){function M(P){try{x(d.next(P))}catch(W){T(W)}}function R(P){try{x(d.throw(P))}catch(W){T(W)}}function x(P){P.done?b(P.value):function g(b){return b instanceof h?b:new h(function(T){T(b)})}(P.value).then(M,R)}x((d=d.apply(e,i||[])).next())})},r=this&&this.__generator||function(e,i){var d,g,b,T,h={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return T={next:M(0),throw:M(1),return:M(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function M(x){return function(P){return function R(x){if(d)throw new TypeError("Generator is already executing.");for(;h;)try{if(d=1,g&&(b=2&x[0]?g.return:x[0]?g.throw||((b=g.return)&&b.call(g),0):g.next)&&!(b=b.call(g,x[1])).done)return b;switch(g=0,b&&(x=[2&x[0],b.value]),x[0]){case 0:case 1:b=x;break;case 4:return h.label++,{value:x[1],done:!1};case 5:h.label++,g=x[1],x=[0];continue;case 7:x=h.ops.pop(),h.trys.pop();continue;default:if(!(b=(b=h.trys).length>0&&b[b.length-1])&&(6===x[0]||2===x[0])){h=0;continue}if(3===x[0]&&(!b||x[1]>b[0]&&x[1]<b[3])){h.label=x[1];break}if(6===x[0]&&h.label<b[1]){h.label=b[1],b=x;break}if(b&&h.label<b[2]){h.label=b[2],h.ops.push(x);break}b[2]&&h.ops.pop(),h.trys.pop();continue}x=i.call(e,h)}catch(P){x=[6,P],g=0}finally{d=b=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([x,P])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=y(79418),o=y(40801),l=function(e){function i(h,d){var g=d.link,b=e.call(this)||this;return b.contextKey=h,b.link=g,b}return a(i,e),i.prototype.request=function(h,d){var g=this;return o.setContext(function(b,T){return m(g,void 0,void 0,function(){var M,R,x=this;return r(this,function(P){switch(P.label){case 0:return[4,new Promise(function(W,V){x.link.request(h).subscribe({next:W,error:V})})];case 1:return M=P.sent(),[2,O(O({},T),(R={},R[this.contextKey]=M,R))]}})})}).request(h,d)},i}(n.ApolloLink);k.NonTerminatingLink=l},14657:function(le,k,y){"use strict";var Y,a=this&&this.__extends||(Y=function(j,E){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,p){C.__proto__=p}||function(C,p){for(var _ in p)p.hasOwnProperty(_)&&(C[_]=p[_])})(j,E)},function(j,E){function C(){this.constructor=j}Y(j,E),j.prototype=null===E?Object.create(E):(C.prototype=E.prototype,new C)}),O=this&&this.__assign||function(){return O=Object.assign||function(Y){for(var j,E=1,C=arguments.length;E<C;E++)for(var p in j=arguments[E])Object.prototype.hasOwnProperty.call(j,p)&&(Y[p]=j[p]);return Y},O.apply(this,arguments)},m=this&&this.__awaiter||function(Y,j,E,C){return new(E||(E=Promise))(function(_,v){function F(J){try{Q(C.next(J))}catch(ie){v(ie)}}function q(J){try{Q(C.throw(J))}catch(ie){v(ie)}}function Q(J){J.done?_(J.value):function p(_){return _ instanceof E?_:new E(function(v){v(_)})}(J.value).then(F,q)}Q((C=C.apply(Y,j||[])).next())})},r=this&&this.__generator||function(Y,j){var C,p,_,v,E={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return v={next:F(0),throw:F(1),return:F(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function F(Q){return function(J){return function q(Q){if(C)throw new TypeError("Generator is already executing.");for(;E;)try{if(C=1,p&&(_=2&Q[0]?p.return:Q[0]?p.throw||((_=p.return)&&_.call(p),0):p.next)&&!(_=_.call(p,Q[1])).done)return _;switch(p=0,_&&(Q=[2&Q[0],_.value]),Q[0]){case 0:case 1:_=Q;break;case 4:return E.label++,{value:Q[1],done:!1};case 5:E.label++,p=Q[1],Q=[0];continue;case 7:Q=E.ops.pop(),E.trys.pop();continue;default:if(!(_=(_=E.trys).length>0&&_[_.length-1])&&(6===Q[0]||2===Q[0])){E=0;continue}if(3===Q[0]&&(!_||Q[1]>_[0]&&Q[1]<_[3])){E.label=Q[1];break}if(6===Q[0]&&E.label<_[1]){E.label=_[1],_=Q;break}if(_&&E.label<_[2]){E.label=_[2],E.ops.push(Q);break}_[2]&&E.ops.pop(),E.trys.pop();continue}Q=j.call(Y,E)}catch(J){Q=[6,J],p=0}finally{C=_=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([Q,J])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=y(79418),o=y(59001),l=y(44284),e=y(99038),i=y(87317),h=y(34278),d=y(60989),g=y(77100),b=o.rootLogger.extend("subscriptions");k.CONTROL_EVENTS_KEY="@@controlEvents";var T=[400,401,403],R={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},W=3e5,V=function(Y){function j(E){var C=E.url,p=E.region,_=E.auth,v=Y.call(this)||this;return v.socketStatus=d.SOCKET_STATUS.CLOSED,v.keepAliveTimeout=W,v.subscriptionObserverMap=new Map,v.promiseArray=[],v.url=C,v.region=p,v.auth=_,v}return a(j,Y),j.prototype.request=function(E){var C,p=this,_=E.query,v=E.variables,F=E.getContext(),q=F.controlMessages,Q=k.CONTROL_EVENTS_KEY,J=(void 0===q?(C={},C[k.CONTROL_EVENTS_KEY]=void 0,C):q)[Q],ie=F.headers;return new n.Observable(function(Se){if(p.url){var te=h.v4(),ge={appSyncGraphqlEndpoint:p.url,authenticationType:p.auth.type,query:e.print(_),region:p.region,graphql_headers:function(){return ie},variables:v,apiKey:p.auth.type===l.AUTH_TYPE.API_KEY?p.auth.apiKey:"",credentials:p.auth.type===l.AUTH_TYPE.AWS_IAM?p.auth.credentials:null,jwtToken:p.auth.type===l.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||p.auth.type===l.AUTH_TYPE.OPENID_CONNECT?p.auth.jwtToken:null};return p._startSubscriptionWithAWSAppSyncRealTime({options:ge,observer:Se,subscriptionId:te}),function(){return m(p,void 0,void 0,function(){return r(this,function(H){try{if(this._verifySubscriptionAlreadyStarted(te),this.subscriptionObserverMap.get(te).subscriptionState!==d.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(te)}catch{return this._removeSubscriptionObserver(te),[2]}return[2]})})}}Se.error({errors:[O({},new e.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),Se.complete()}).filter(function(Se){var te=Se.extensions,ge=(void 0===te?{}:te).controlMsgType;return!0===J||!(typeof(void 0===ge?void 0:ge)<"u")})},j.prototype._verifySubscriptionAlreadyStarted=function(E){return m(this,void 0,void 0,function(){var p=this;return r(this,function(_){return this.subscriptionObserverMap.get(E).subscriptionState===d.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(v,F){var q=p.subscriptionObserverMap.get(E);p.subscriptionObserverMap.set(E,{observer:q.observer,subscriptionState:q.subscriptionState,variables:q.variables,query:q.query,subscriptionReadyCallback:v,subscriptionFailedCallback:F})})]:[2]})})},j.prototype._sendUnsubscriptionMessage=function(E){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===d.SOCKET_STATUS.READY){var p=JSON.stringify({id:E,type:d.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(p),this._removeSubscriptionObserver(E)}}catch(_){b({err:_})}},j.prototype._removeSubscriptionObserver=function(E){this.subscriptionObserverMap.delete(E),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},j.prototype._closeSocketWhenFlushed=function(){b("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED):this.socketStatus=d.SOCKET_STATUS.CLOSED},j.prototype._startSubscriptionWithAWSAppSyncRealTime=function(E){var C=E.options,p=E.observer,_=E.subscriptionId;return m(this,void 0,void 0,function(){var v,F,q,Q,J,ie,Se,te,ge,ue,H,$,oe,ee,L,S,B,G,U,re,be,Z,Ee,K=this;return r(this,function(w){switch(w.label){case 0:return v=C.appSyncGraphqlEndpoint,F=C.authenticationType,J=C.apiKey,ie=C.region,te=void 0===(Se=C.graphql_headers)?function(){return{}}:Se,ge=C.credentials,ue=C.jwtToken,$={query:q=C.query,variables:Q=C.variables},this.subscriptionObserverMap.set(_,{observer:p,query:q,variables:Q,subscriptionState:H=d.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),oe=JSON.stringify($),L=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:J,appSyncGraphqlEndpoint:v,authenticationType:F,payload:oe,canonicalUri:"",region:ie,credentials:ge,jwtToken:ue})];case 1:return S=[O.apply(void 0,L.concat([w.sent()]))],[4,te()];case 2:ee=O.apply(void 0,[O.apply(void 0,S.concat([w.sent()])),(Ee={},Ee[l.USER_AGENT_HEADER]=l.USER_AGENT,Ee)]),B={id:_,payload:{data:oe,extensions:{authorization:O({},ee)}},type:d.MESSAGE_TYPES.GQL_START},G=JSON.stringify(B),w.label=3;case 3:return w.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:J,appSyncGraphqlEndpoint:v,authenticationType:F,region:ie,credentials:ge,jwtToken:ue})];case 4:return w.sent(),[3,6];case 5:return U=w.sent(),p.error({errors:[O({},new e.GraphQLError("Connection failed: "+(void 0===(re=U.message)?"":re)))]}),p.complete(),"function"==typeof(be=(this.subscriptionObserverMap.get(_)||{}).subscriptionFailedCallback)&&be(),[2];case 6:return Z=this.subscriptionObserverMap.get(_),this.subscriptionObserverMap.set(_,{observer:p,subscriptionState:H,variables:Q,query:q,subscriptionReadyCallback:Z.subscriptionReadyCallback,subscriptionFailedCallback:Z.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){K._timeoutStartSubscriptionAck.call(K,_)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(G),[2]}})})},j.prototype._initializeWebSocketConnection=function(E){var C=this,p=E.appSyncGraphqlEndpoint,_=E.authenticationType,v=E.apiKey,F=E.region,q=E.credentials,Q=E.jwtToken;if(this.socketStatus!==d.SOCKET_STATUS.READY)return new Promise(function(J,ie){return m(C,void 0,void 0,function(){var Se,te,ge,ue,H,$,oe,L;return r(this,function(S){switch(S.label){case 0:if(this.promiseArray.push({res:J,rej:ie}),this.socketStatus!==d.SOCKET_STATUS.CLOSED)return[3,5];S.label=1;case 1:return S.trys.push([1,4,,5]),this.socketStatus=d.SOCKET_STATUS.CONNECTING,Se=j._discoverAppSyncRealTimeEndpoint(this.url),te="{}",H=(ue=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:_,payload:te,canonicalUri:"/connect",apiKey:v,appSyncGraphqlEndpoint:p,region:F,credentials:q,jwtToken:Q})];case 2:return ge=H.apply(ue,[S.sent()]),$=Buffer.from(ge).toString("base64"),oe=Buffer.from(te).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:Se+"?header="+$+"&payload="+oe})];case 3:return S.sent(),this.promiseArray.forEach(function(B){var G=B.res;b("Notifying connection successful"),G()}),this.socketStatus=d.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return L=S.sent(),this.promiseArray.forEach(function(B){return(0,B.rej)(L)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},j.prototype._awsRealTimeHeaderBasedAuth=function(E){var C=E.authenticationType,p=E.payload,_=E.canonicalUri,v=E.appSyncGraphqlEndpoint,F=E.apiKey,q=E.region,Q=E.credentials,J=E.jwtToken;return m(this,void 0,void 0,function(){var ie,Se,te;return r(this,function(ue){switch(ue.label){case 0:return ie={API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeOPENIDHeader.bind(this)},"function"!=typeof(Se=ie[C])?(b("Authentication type "+C+" not supported"),[2,{}]):(te=i.parse(v).host,[4,Se({payload:p,canonicalUri:_,appSyncGraphqlEndpoint:v,apiKey:F,region:q,host:te,credentials:Q,jwtToken:J})]);case 1:return[2,ue.sent()]}})})},j.prototype._awsRealTimeOPENIDHeader=function(E){var C=E.host,p=E.jwtToken;return m(this,void 0,void 0,function(){var _,v;return r(this,function(F){switch(F.label){case 0:return _={},"function"!=typeof p?[3,2]:[4,p.call(void 0)];case 1:return v=F.sent(),[3,4];case 2:return[4,p];case 3:v=F.sent(),F.label=4;case 4:return[2,(_.Authorization=v,_.host=C,_)]}})})},j.prototype._awsRealTimeApiKeyHeader=function(E){var C=E.apiKey,p=E.host;return m(this,void 0,void 0,function(){var v;return r(this,function(F){return v=(new Date).toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:p,"x-amz-date":v,"x-api-key":C}]})})},j.prototype._awsRealTimeIAMHeader=function(E){var C=E.payload,p=E.canonicalUri,_=E.appSyncGraphqlEndpoint,v=E.region,F=E.credentials;return m(this,void 0,void 0,function(){var q,Q,J,ge,ue;return r(this,function($){switch($.label){case 0:return q={region:v,service:"appsync"},(Q="function"==typeof F?F.call():F||{})&&"function"==typeof Q.getPromise?[4,Q.getPromise()]:[3,2];case 1:$.sent(),$.label=2;case 2:if(!Q)throw new Error("No credentials");return[4,Q];case 3:return J=$.sent(),ge={access_key:J.accessKeyId,secret_key:J.secretAccessKey,session_token:J.sessionToken},ue={url:""+_+p,body:C,method:"POST",headers:O({},R)},[2,l.Signer.sign(ue,ge,q).headers]}})})},j.prototype._initializeRetryableHandshake=function(E){var C=E.awsRealTimeUrl;return m(this,void 0,void 0,function(){return r(this,function(p){switch(p.label){case 0:return b("Initializaling retryable Handshake"),[4,g.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:C}])];case 1:return p.sent(),[2]}})})},j.prototype._initializeHandshake=function(E){var C=E.awsRealTimeUrl;return m(this,void 0,void 0,function(){var p,_,F=this;return r(this,function(q){switch(q.label){case 0:b("Initializing handshake "+C),q.label=1;case 1:return q.trys.push([1,4,,5]),[4,new Promise(function(Q,J){var ie=j.createWebSocket(C,"graphql-ws");ie.onerror=function(){b("WebSocket connection error")},ie.onclose=function(){J(new Error("Connection handshake error"))},ie.onopen=function(){return F.awsRealTimeSocket=ie,Q()}})];case 2:return q.sent(),[4,new Promise(function(Q,J){var ie=!1;F.awsRealTimeSocket.onerror=function(ge){b("WebSocket closed "+JSON.stringify(ge))},F.awsRealTimeSocket.onclose=function(ge){b("WebSocket closed "+ge.reason),J(new Error(JSON.stringify(ge)))},F.awsRealTimeSocket.onmessage=function(ge){b("subscription message from AWS AppSyncRealTime: "+ge.data+" ");var ue=JSON.parse(ge.data),H=ue.type,$=ue.payload,oe=(void 0===$?{}:$).connectionTimeoutMs;if(H===d.MESSAGE_TYPES.GQL_CONNECTION_ACK)return ie=!0,F.keepAliveTimeout=void 0===oe?W:oe,F.awsRealTimeSocket.onmessage=F._handleIncomingSubscriptionMessage.bind(F),F.awsRealTimeSocket.onerror=function(Z){b(Z),F._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},F.awsRealTimeSocket.onclose=function(Z){b("WebSocket closed "+Z.reason),F._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},void Q("Cool, connected to AWS AppSyncRealTime");if(H===d.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var L=ue.payload,S=(void 0===L?{}:L).errors,B=(void 0===S?[]:S)[0],G=void 0===B?{}:B,U=G.errorType,ce=G.errorCode;J({errorType:void 0===U?"":U,errorCode:void 0===ce?0:ce})}},F.awsRealTimeSocket.send(JSON.stringify({type:d.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function te(){ie||J(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(F),15e3)})];case 3:return q.sent(),[3,5];case 4:throw p=q.sent(),_=p.errorType,T.indexOf(p.errorCode)>=0?new g.NonRetryableError(_):_?new Error(_):p;case 5:return[2]}})})},j.prototype._handleIncomingSubscriptionMessage=function(E){b("subscription message from AWS AppSync RealTime: "+E.data);var C=JSON.parse(E.data),p=C.id,_=void 0===p?"":p,v=C.payload,F=C.type,q=this.subscriptionObserverMap.get(_)||{},Q=q.observer,J=void 0===Q?null:Q,ie=q.query,Se=void 0===ie?"":ie,te=q.variables,ge=void 0===te?{}:te,ue=q.startAckTimeoutId,H=void 0===ue?0:ue,$=q.subscriptionReadyCallback,oe=void 0===$?null:$,ee=q.subscriptionFailedCallback,L=void 0===ee?null:ee;if(b({id:_,observer:J,query:Se,variables:ge}),F===d.MESSAGE_TYPES.GQL_DATA&&v&&v.data)J?J.next(v):b("observer not found for id: "+_);else{if(F===d.MESSAGE_TYPES.GQL_START_ACK)return b("subscription ready for "+JSON.stringify({query:Se,variables:ge})),"function"==typeof oe&&oe(),clearTimeout(H),J?J.next({data:v,extensions:{controlMsgType:"CONNECTED"}}):b("observer not found for id: "+_),void this.subscriptionObserverMap.set(_,{observer:J,query:Se,variables:ge,startAckTimeoutId:null,subscriptionState:d.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:oe,subscriptionFailedCallback:L});if(F===d.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,d.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));F===d.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(_,{observer:J,query:Se,variables:ge,startAckTimeoutId:H,subscriptionReadyCallback:oe,subscriptionFailedCallback:L,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),J.error({errors:[O({},new e.GraphQLError("Connection failed: "+JSON.stringify(v)))]}),clearTimeout(H),J.complete(),"function"==typeof L&&L())}},j.prototype._errorDisconnect=function(E){b("Disconnect error: "+E),this.subscriptionObserverMap.forEach(function(C){var p=C.observer;p&&!p.closed&&p.error({errors:[O({},new e.GraphQLError(E))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=d.SOCKET_STATUS.CLOSED},j.prototype._timeoutStartSubscriptionAck=function(E){var C=this.subscriptionObserverMap.get(E)||{},p=C.observer,_=C.query,v=C.variables;p&&(this.subscriptionObserverMap.set(E,{observer:p,query:_,variables:v,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),p&&!p.closed&&(p.error({errors:[O({},new e.GraphQLError("Subscription timeout "+JSON.stringify({query:_,variables:v})))]}),p.complete()),b("timeoutStartSubscription",JSON.stringify({query:_,variables:v})))},j.createWebSocket=function(E,C){return new WebSocket(E,C)},j._discoverAppSyncRealTimeEndpoint=function(E){return E.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},j}(n.ApolloLink);k.AppSyncRealTimeSubscriptionHandshakeLink=V},30860:function(le,k,y){"use strict";var b,a=this&&this.__extends||(b=function(T,M){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,x){R.__proto__=x}||function(R,x){for(var P in x)x.hasOwnProperty(P)&&(R[P]=x[P])})(T,M)},function(T,M){function R(){this.constructor=T}b(T,M),T.prototype=null===M?Object.create(M):(R.prototype=M.prototype,new R)}),O=this&&this.__assign||function(){return O=Object.assign||function(b){for(var T,M=1,R=arguments.length;M<R;M++)for(var x in T=arguments[M])Object.prototype.hasOwnProperty.call(T,x)&&(b[x]=T[x]);return b},O.apply(this,arguments)},m=this&&this.__awaiter||function(b,T,M,R){return new(M||(M=Promise))(function(P,W){function V(E){try{j(R.next(E))}catch(C){W(C)}}function Y(E){try{j(R.throw(E))}catch(C){W(C)}}function j(E){E.done?P(E.value):function x(P){return P instanceof M?P:new M(function(W){W(P)})}(E.value).then(V,Y)}j((R=R.apply(b,T||[])).next())})},r=this&&this.__generator||function(b,T){var R,x,P,W,M={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return W={next:V(0),throw:V(1),return:V(2)},"function"==typeof Symbol&&(W[Symbol.iterator]=function(){return this}),W;function V(j){return function(E){return function Y(j){if(R)throw new TypeError("Generator is already executing.");for(;M;)try{if(R=1,x&&(P=2&j[0]?x.return:j[0]?x.throw||((P=x.return)&&P.call(x),0):x.next)&&!(P=P.call(x,j[1])).done)return P;switch(x=0,P&&(j=[2&j[0],P.value]),j[0]){case 0:case 1:P=j;break;case 4:return M.label++,{value:j[1],done:!1};case 5:M.label++,x=j[1],j=[0];continue;case 7:j=M.ops.pop(),M.trys.pop();continue;default:if(!(P=(P=M.trys).length>0&&P[P.length-1])&&(6===j[0]||2===j[0])){M=0;continue}if(3===j[0]&&(!P||j[1]>P[0]&&j[1]<P[3])){M.label=j[1];break}if(6===j[0]&&M.label<P[1]){M.label=P[1],P=j;break}if(P&&M.label<P[2]){M.label=P[2],M.ops.push(j);break}P[2]&&M.ops.pop(),M.trys.pop();continue}j=T.call(b,M)}catch(E){j=[6,E],x=0}finally{R=P=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([j,E])}}},n=this&&this.__rest||function(b,T){var M={};for(var R in b)Object.prototype.hasOwnProperty.call(b,R)&&T.indexOf(R)<0&&(M[R]=b[R]);if(null!=b&&"function"==typeof Object.getOwnPropertySymbols){var x=0;for(R=Object.getOwnPropertySymbols(b);x<R.length;x++)T.indexOf(R[x])<0&&Object.prototype.propertyIsEnumerable.call(b,R[x])&&(M[R[x]]=b[R[x]])}return M};Object.defineProperty(k,"__esModule",{value:!0});var o=y(79418),l=y(59001),e=y(43075),i=y(27226),h=l.rootLogger.extend("subscriptions"),d=h.extend("mqtt");k.CONTROL_EVENTS_KEY="@@controlEvents";var g=function(b){function T(M){var R=b.call(this)||this;return R.topicObservers=new Map,R.clientObservers=new Map,R.onMessage=function(x,P,W){var V=JSON.parse(P),Y=R.topicObservers.get(x),j=W.reduce(function(E,C){return E[C]=E[C]||null,E},V.data||{});h("Message received",{data:j,topic:x,observers:Y}),Y.forEach(function(E){try{E.next(O(O({},V),{data:j}))}catch(C){h(C)}})},R.subsInfoContextKey=M,R}return a(T,b),T.prototype.request=function(M){var R,x=this,P=M.getContext(),V=P[this.subsInfoContextKey],Y=P.controlMessages,j=k.CONTROL_EVENTS_KEY,E=(void 0===Y?(R={},R[k.CONTROL_EVENTS_KEY]=void 0,R):Y)[j],C=V.extensions,p=(void 0===C?{subscription:{newSubscriptions:{},mqttConnections:[]}}:C).subscription,_=p.newSubscriptions,v=p.mqttConnections,F=V.errors,q=void 0===F?[]:F;if(q&&q.length)return new o.Observable(function(Se){return Se.error(new o.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:q},graphQLErrors:q})),function(){}});var Q=Object.keys(_).map(function(Se){return _[Se].topic}),J=new Set(Q.filter(function(Se){return x.topicObservers.has(Se)})),ie=new Set(Q.filter(function(Se){return!J.has(Se)}));return new o.Observable(function(Se){J.forEach(function(ge){x.topicObservers.get(ge).add(Se);var ue=Array.from(x.topicObservers.get(ge)).find(function(){return!0}),H=Array.from(x.clientObservers).find(function($){return $[1].observers.has(ue)})[0];x.clientObservers.get(H).observers.add(Se)});var te=v.filter(function(ge){return ge.topics.some(function(ue){return ie.has(ue)})}).map(function(ge){var ue=ge.topics,H=n(ge,["topics"]);return O(O({},H),{topics:ue.filter(function($){return ie.has($)})})});return x.connectNewClients(te,Se,M),function(){Array.from(x.clientObservers).filter(function(ue){return ue[1].observers.has(Se)}).forEach(function(ue){return x.clientObservers.get(ue[0]).observers.delete(Se)}),x.clientObservers.forEach(function(ue){var $=ue.client;0===ue.observers.size&&($.isConnected()&&$.disconnect(),x.clientObservers.delete($.clientId))}),x.clientObservers=new Map(Array.from(x.clientObservers).filter(function(ue){return ue[1].observers.size>0})),x.topicObservers.forEach(function(ue){return ue.delete(Se)}),x.topicObservers=new Map(Array.from(x.topicObservers).filter(function(ue){return ue[1].size>0}))}}).filter(function(Se){var te=Se.extensions,ge=(void 0===te?{}:te).controlMsgType;return!0===E||!(typeof(void 0===ge?void 0:ge)<"u")})},T.prototype.connectNewClients=function(M,R,x){return m(this,void 0,void 0,function(){var W,V,Y,j=this;return r(this,function(E){return W=i.getMainDefinition(x.query).selectionSet.selections.map(function(C){return C.name.value}),V=Promise.all(M.map(function(C){return j.connectNewClient(C,R,W)})),Y=W.reduce(function(C,p){return C[p]=C[p]||null,C},{}),R.next({data:Y,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:M}}}),[2,V]})})},T.prototype.connectNewClient=function(M,R,x){return m(this,void 0,void 0,function(){var P,W,V,Y,j=this;return r(this,function(E){switch(E.label){case 0:return V=M.topics,(Y=new e.Client(W=M.url,P=M.client)).trace=d.bind(null,P),Y.onConnectionLost=function(C){var p=C.errorCode,_=n(C,["errorCode"]);0!==p&&V.forEach(function(v){j.topicObservers.has(v)&&j.topicObservers.get(v).forEach(function(F){return F.error(O(O({},_),{permanent:!0}))})}),V.forEach(function(v){return j.topicObservers.delete(v)})},Y.onMessageArrived=function(C){return j.onMessage(C.destinationName,C.payloadString,x)},[4,new Promise(function(C,p){Y.connect({useSSL:0===W.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return C(Y)},onFailure:p})})];case 1:return E.sent(),[4,this.subscribeToTopics(Y,V,R)];case 2:return E.sent(),[2,Y]}})})},T.prototype.subscribeToTopics=function(M,R,x){var P=this;return Promise.all(R.map(function(W){return P.subscribeToTopic(M,W,x)}))},T.prototype.subscribeToTopic=function(M,R,x){var P=this;return new Promise(function(W,V){M.subscribe(R,{onSuccess:function(){P.topicObservers.has(R)||P.topicObservers.set(R,new Set),P.clientObservers.has(M.clientId)||P.clientObservers.set(M.clientId,{client:M,observers:new Set}),P.topicObservers.get(R).add(x),P.clientObservers.get(M.clientId).observers.add(x),W(R)},onFailure:V})})},T}(o.ApolloLink);k.SubscriptionHandshakeLink=g},60989:(le,k)=>{"use strict";var r;Object.defineProperty(k,"__esModule",{value:!0}),(r=k.SUBSCRIPTION_STATUS||(k.SUBSCRIPTION_STATUS={}))[r.PENDING=0]="PENDING",r[r.CONNECTED=1]="CONNECTED",r[r.FAILED=2]="FAILED",function(r){r[r.CLOSED=0]="CLOSED",r[r.READY=1]="READY",r[r.CONNECTING=2]="CONNECTING"}(k.SOCKET_STATUS||(k.SOCKET_STATUS={})),function(r){r.GQL_CONNECTION_INIT="connection_init",r.GQL_CONNECTION_ERROR="connection_error",r.GQL_CONNECTION_ACK="connection_ack",r.GQL_START="start",r.GQL_START_ACK="start_ack",r.GQL_DATA="data",r.GQL_CONNECTION_KEEP_ALIVE="ka",r.GQL_STOP="stop",r.GQL_COMPLETE="complete",r.GQL_ERROR="error"}(k.MESSAGE_TYPES||(k.MESSAGE_TYPES={})),function(r){r.CONNECTION_CLOSED="Connection closed",r.TIMEOUT_DISCONNECT="Timeout disconnect",r.SUBSCRIPTION_ACK="Subscription ack"}(k.CONTROL_MSG||(k.CONTROL_MSG={}))},59001:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var a=y(89580);k.rootLogger=a.default},89580:function(le,k,y){"use strict";var a=this&&this.__spreadArrays||function(){for(var n=0,o=0,l=arguments.length;o<l;o++)n+=arguments[o].length;var e=Array(n),i=0;for(o=0;o<l;o++)for(var h=arguments[o],d=0,g=h.length;d<g;d++,i++)e[i]=h[d];return e};Object.defineProperty(k,"__esModule",{value:!0});var O=y(65881),m=O.default("aws-appsync"),r=function(n){void 0===n&&(n="");var o=n?a(this.namespace.split(":"),[n]).join(":"):this.namespace,l=O.default(o);return l.extend=r.bind(l),l};m.extend=r.bind(m),k.default=m},77100:function(le,k,y){"use strict";var d,a=this&&this.__extends||(d=function(g,b){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,M){T.__proto__=M}||function(T,M){for(var R in M)M.hasOwnProperty(R)&&(T[R]=M[R])})(g,b)},function(g,b){function T(){this.constructor=g}d(g,b),g.prototype=null===b?Object.create(b):(T.prototype=b.prototype,new T)}),O=this&&this.__awaiter||function(d,g,b,T){return new(b||(b=Promise))(function(R,x){function P(Y){try{V(T.next(Y))}catch(j){x(j)}}function W(Y){try{V(T.throw(Y))}catch(j){x(j)}}function V(Y){Y.done?R(Y.value):function M(R){return R instanceof b?R:new b(function(x){x(R)})}(Y.value).then(P,W)}V((T=T.apply(d,g||[])).next())})},m=this&&this.__generator||function(d,g){var T,M,R,x,b={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return x={next:P(0),throw:P(1),return:P(2)},"function"==typeof Symbol&&(x[Symbol.iterator]=function(){return this}),x;function P(V){return function(Y){return function W(V){if(T)throw new TypeError("Generator is already executing.");for(;b;)try{if(T=1,M&&(R=2&V[0]?M.return:V[0]?M.throw||((R=M.return)&&R.call(M),0):M.next)&&!(R=R.call(M,V[1])).done)return R;switch(M=0,R&&(V=[2&V[0],R.value]),V[0]){case 0:case 1:R=V;break;case 4:return b.label++,{value:V[1],done:!1};case 5:b.label++,M=V[1],V=[0];continue;case 7:V=b.ops.pop(),b.trys.pop();continue;default:if(!(R=(R=b.trys).length>0&&R[R.length-1])&&(6===V[0]||2===V[0])){b=0;continue}if(3===V[0]&&(!R||V[1]>R[0]&&V[1]<R[3])){b.label=V[1];break}if(6===V[0]&&b.label<R[1]){b.label=R[1],R=V;break}if(R&&b.label<R[2]){b.label=R[2],b.ops.push(V);break}R[2]&&b.ops.pop(),b.trys.pop();continue}V=g.call(d,b)}catch(Y){V=[6,Y],M=0}finally{T=R=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,Y])}}};Object.defineProperty(k,"__esModule",{value:!0});var n=y(59001).rootLogger.extend("retry"),l=function(d){function g(b){var T=d.call(this,b)||this;return T.nonRetryable=!0,T}return a(g,d),g}(Error);k.NonRetryableError=l;var e=function(d){return d&&d.nonRetryable};function i(d,g,b,T){return void 0===T&&(T=1),O(this,void 0,void 0,function(){var M,R;return m(this,function(x){switch(x.label){case 0:n("Attempt #"+T+" for this vars: "+JSON.stringify(g)),x.label=1;case 1:return x.trys.push([1,3,,8]),[4,d.apply(void 0,g)];case 2:return x.sent(),[3,8];case 3:if(M=x.sent(),n("error "+M),e(M))throw n("non retryable error"),M;return R=b(T,g,M),n("retryIn ",R),!1===R?[3,6]:[4,new Promise(function(P){return setTimeout(P,R)})];case 4:return x.sent(),[4,i(d,g,b,T+1)];case 5:return[2,x.sent()];case 6:throw M;case 7:return[3,8];case 8:return[2]}})})}k.retry=i,k.jitteredExponentialRetry=function(d,g,b){return void 0===b&&(b=5e3),i(d,g,function h(d){return function(T){var M=100*Math.pow(2,T)+100*Math.random();return!(M>d)&&M}}(b))}},43075:function(le){var y;le.exports=(y=function(a){var _,m=a.localStorage||(_={},{setItem:function(v,F){_[v]=F},getItem:function(v){return _[v]},removeItem:function(v){delete _[v]}}),r={CONNECT:1,CONNACK:2,PUBLISH:3,PUBACK:4,PUBREC:5,PUBREL:6,PUBCOMP:7,SUBSCRIBE:8,SUBACK:9,UNSUBSCRIBE:10,UNSUBACK:11,PINGREQ:12,PINGRESP:13,DISCONNECT:14},n=function(_,v){for(var F in _)if(_.hasOwnProperty(F)){if(!v.hasOwnProperty(F)){var q="Unknown property, "+F+". Valid properties are:";for(var Q in v)v.hasOwnProperty(Q)&&(q=q+" "+Q);throw new Error(q)}if(typeof _[F]!==v[F])throw new Error(i(l.INVALID_TYPE,[typeof _[F],F]))}},o=function(_,v){return function(){return _.apply(v,arguments)}},l={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}."}},e={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"},i=function(_,v){var F=_.text;if(v)for(var q,Q,J=0;J<v.length;J++)if((Q=F.indexOf(q="{"+J+"}"))>0){var ie=F.substring(0,Q),Se=F.substring(Q+q.length);F=ie+v[J]+Se}return F},h=[0,6,77,81,73,115,100,112,3],d=[0,4,77,81,84,84,4],g=function(_,v){for(var F in this.type=_,v)v.hasOwnProperty(F)&&(this[F]=v[F])};function b(_,v){var F=v,q=_[v],Q=q>>4,J=q&=15;v+=1;var ie,Se=0,te=1;do{if(v==_.length)return[null,F];Se+=(127&(ie=_[v++]))*te,te*=128}while(128&ie);var ge=v+Se;if(ge>_.length)return[null,F];var ue=new g(Q);switch(Q){case r.CONNACK:1&_[v++]&&(ue.sessionPresent=!0),ue.returnCode=_[v++];break;case r.PUBLISH:var $=J>>1&3,oe=R(_,v),ee=V(_,v+=2,oe);v+=oe,$>0&&(ue.messageIdentifier=R(_,v),v+=2);var L=new y.Message(_.subarray(v,ge));1==(1&J)&&(L.retained=!0),8==(8&J)&&(L.duplicate=!0),L.qos=$,L.destinationName=ee,ue.payloadMessage=L;break;case r.PUBACK:case r.PUBREC:case r.PUBREL:case r.PUBCOMP:case r.UNSUBACK:ue.messageIdentifier=R(_,v);break;case r.SUBACK:ue.messageIdentifier=R(_,v),ue.returnCode=_.subarray(v+=2,ge)}return[ue,ge]}function T(_,v,F){return v[F++]=_>>8,v[F++]=_%256,F}function M(_,v,F,q){return W(_,F,q=T(v,F,q)),q+v}function R(_,v){return 256*_[v]+_[v+1]}function P(_){for(var v=0,F=0;F<_.length;F++){var q=_.charCodeAt(F);q>2047?(55296<=q&&q<=56319&&(F++,v++),v+=3):q>127?v+=2:v++}return v}function W(_,v,F){for(var q=F,Q=0;Q<_.length;Q++){var J=_.charCodeAt(Q);if(55296<=J&&J<=56319){var ie=_.charCodeAt(++Q);if(isNaN(ie))throw new Error(i(l.MALFORMED_UNICODE,[J,ie]));J=ie-56320+(J-55296<<10)+65536}J<=127?v[q++]=J:J<=2047?(v[q++]=J>>6&31|192,v[q++]=63&J|128):J<=65535?(v[q++]=J>>12&15|224,v[q++]=J>>6&63|128,v[q++]=63&J|128):(v[q++]=J>>18&7|240,v[q++]=J>>12&63|128,v[q++]=J>>6&63|128,v[q++]=63&J|128)}return v}function V(_,v,F){for(var Q,q="",J=v;J<v+F;){var ie=_[J++];if(ie<128)Q=ie;else{var Se=_[J++]-128;if(Se<0)throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),""]));if(ie<224)Q=64*(ie-192)+Se;else{var te=_[J++]-128;if(te<0)throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),te.toString(16)]));if(ie<240)Q=4096*(ie-224)+64*Se+te;else{var ge=_[J++]-128;if(ge<0)throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),te.toString(16),ge.toString(16)]));if(!(ie<248))throw new Error(i(l.MALFORMED_UTF,[ie.toString(16),Se.toString(16),te.toString(16),ge.toString(16)]));Q=262144*(ie-240)+4096*Se+64*te+ge}}}Q>65535&&(Q-=65536,q+=String.fromCharCode(55296+(Q>>10)),Q=56320+(1023&Q)),q+=String.fromCharCode(Q)}return q}g.prototype.encode=function(){var Q,_=(15&this.type)<<4,v=0,F=[],q=0;switch(void 0!==this.messageIdentifier&&(v+=2),this.type){case r.CONNECT:switch(this.mqttVersion){case 3:v+=h.length+3;break;case 4:v+=d.length+3}v+=P(this.clientId)+2,void 0!==this.willMessage&&(v+=P(this.willMessage.destinationName)+2,(Q=this.willMessage.payloadBytes)instanceof Uint8Array||(Q=new Uint8Array(ie)),v+=Q.byteLength+2),void 0!==this.userName&&(v+=P(this.userName)+2),void 0!==this.password&&(v+=P(this.password)+2);break;case r.SUBSCRIBE:_|=2;for(var J=0;J<this.topics.length;J++)F[J]=P(this.topics[J]),v+=F[J]+2;v+=this.requestedQos.length;break;case r.UNSUBSCRIBE:for(_|=2,J=0;J<this.topics.length;J++)F[J]=P(this.topics[J]),v+=F[J]+2;break;case r.PUBREL:_|=2;break;case r.PUBLISH:this.payloadMessage.duplicate&&(_|=8),_=_|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(_|=1),v+=(q=P(this.payloadMessage.destinationName))+2;var ie=this.payloadMessage.payloadBytes;v+=ie.byteLength,ie instanceof ArrayBuffer?ie=new Uint8Array(ie):ie instanceof Uint8Array||(ie=new Uint8Array(ie.buffer))}var Se=function x(_){var v=new Array(1),F=0;do{var q=_%128;(_>>=7)>0&&(q|=128),v[F++]=q}while(_>0&&F<4);return v}(v),te=Se.length+1,ge=new ArrayBuffer(v+te),ue=new Uint8Array(ge);if(ue[0]=_,ue.set(Se,1),this.type==r.PUBLISH)te=M(this.payloadMessage.destinationName,q,ue,te);else if(this.type==r.CONNECT){switch(this.mqttVersion){case 3:ue.set(h,te),te+=h.length;break;case 4:ue.set(d,te),te+=d.length}var H=0;this.cleanSession&&(H=2),void 0!==this.willMessage&&(H|=4,H|=this.willMessage.qos<<3,this.willMessage.retained&&(H|=32)),void 0!==this.userName&&(H|=128),void 0!==this.password&&(H|=64),ue[te++]=H,te=T(this.keepAliveInterval,ue,te)}switch(void 0!==this.messageIdentifier&&(te=T(this.messageIdentifier,ue,te)),this.type){case r.CONNECT:te=M(this.clientId,P(this.clientId),ue,te),void 0!==this.willMessage&&(te=M(this.willMessage.destinationName,P(this.willMessage.destinationName),ue,te),te=T(Q.byteLength,ue,te),ue.set(Q,te),te+=Q.byteLength),void 0!==this.userName&&(te=M(this.userName,P(this.userName),ue,te)),void 0!==this.password&&(te=M(this.password,P(this.password),ue,te));break;case r.PUBLISH:ue.set(ie,te);break;case r.SUBSCRIBE:for(J=0;J<this.topics.length;J++)te=M(this.topics[J],F[J],ue,te),ue[te++]=this.requestedQos[J];break;case r.UNSUBSCRIBE:for(J=0;J<this.topics.length;J++)te=M(this.topics[J],F[J],ue,te)}return ge};var Y=function(_,v){this._client=_,this._keepAliveInterval=1e3*v,this.isReset=!1;var F=new g(r.PINGREQ).encode(),q=function(J){return function(){return Q.apply(J)}},Q=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(F),this.timeout=setTimeout(q(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(l.PING_TIMEOUT.code,i(l.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(q(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},j=function(_,v,F,q){var J,ie,Se;v||(v=30),this.timeout=setTimeout((J=F,ie=_,Se=q,function(){return J.apply(ie,Se)}),1e3*v),this.cancel=function(){clearTimeout(this.timeout)}},E=function(_,v,F,q,Q){if(!("WebSocket"in a)||null===a.WebSocket)throw new Error(i(l.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in a)||null===a.ArrayBuffer)throw new Error(i(l.UNSUPPORTED,["ArrayBuffer"]));for(var J in this._trace("Paho.Client",_,v,F,q,Q),this.host=v,this.port=F,this.path=q,this.uri=_,this.clientId=Q,this._wsuri=null,this._localKey=v+":"+F+("/mqtt"!=q?":"+q:"")+":"+Q+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,m)(0===J.indexOf("Sent:"+this._localKey)||0===J.indexOf("Received:"+this._localKey))&&this.restore(J)};E.prototype.host=null,E.prototype.port=null,E.prototype.path=null,E.prototype.uri=null,E.prototype.clientId=null,E.prototype.socket=null,E.prototype.connected=!1,E.prototype.maxMessageIdentifier=65536,E.prototype.connectOptions=null,E.prototype.hostIndex=null,E.prototype.onConnected=null,E.prototype.onConnectionLost=null,E.prototype.onMessageDelivered=null,E.prototype.onMessageArrived=null,E.prototype.traceFunction=null,E.prototype._msg_queue=null,E.prototype._buffered_msg_queue=null,E.prototype._connectTimeout=null,E.prototype.sendPinger=null,E.prototype.receivePinger=null,E.prototype._reconnectInterval=1,E.prototype._reconnecting=!1,E.prototype._reconnectTimeout=null,E.prototype.disconnectedPublishing=!1,E.prototype.disconnectedBufferSize=5e3,E.prototype.receiveBuffer=null,E.prototype._traceBuffer=null,E.prototype._MAX_TRACE_ENTRIES=100,E.prototype.connect=function(_){var v=this._traceMask(_,"password");if(this._trace("Client.connect",v,this.socket,this.connected),this.connected)throw new Error(i(l.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(i(l.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=_,this._reconnectInterval=1,this._reconnecting=!1,_.uris?(this.hostIndex=0,this._doConnect(_.uris[0])):this._doConnect(this.uri)},E.prototype.subscribe=function(_,v){if(this._trace("Client.subscribe",_,v),!this.connected)throw new Error(i(l.INVALID_STATE,["not connected"]));var F=new g(r.SUBSCRIBE);F.topics=[_],F.requestedQos=void 0!==v.qos?[v.qos]:[0],v.onSuccess&&(F.onSuccess=function(q){v.onSuccess({invocationContext:v.invocationContext,grantedQos:q})}),v.onFailure&&(F.onFailure=function(q){v.onFailure({invocationContext:v.invocationContext,errorCode:q,errorMessage:i(q)})}),v.timeout&&(F.timeOut=new j(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:l.SUBSCRIBE_TIMEOUT.code,errorMessage:i(l.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(F),this._schedule_message(F)},E.prototype.unsubscribe=function(_,v){if(this._trace("Client.unsubscribe",_,v),!this.connected)throw new Error(i(l.INVALID_STATE,["not connected"]));var F=new g(r.UNSUBSCRIBE);F.topics=[_],v.onSuccess&&(F.callback=function(){v.onSuccess({invocationContext:v.invocationContext})}),v.timeout&&(F.timeOut=new j(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:l.UNSUBSCRIBE_TIMEOUT.code,errorMessage:i(l.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(F),this._schedule_message(F)},E.prototype.send=function(_){this._trace("Client.send",_);var v=new g(r.PUBLISH);if(v.payloadMessage=_,this.connected)_.qos>0?this._requires_ack(v):this.onMessageDelivered&&(this._notify_msg_sent[v]=this.onMessageDelivered(v.payloadMessage)),this._schedule_message(v);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(i(l.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(i(l.BUFFER_FULL,[this.disconnectedBufferSize]));_.qos>0?this._requires_ack(v):(v.sequence=++this._sequence,this._buffered_msg_queue.unshift(v))}},E.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(i(l.INVALID_STATE,["not connecting or connected"]));var _=new g(r.DISCONNECT);this._notify_msg_sent[_]=o(this._disconnected,this),this._schedule_message(_)},E.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var _ in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",_,this._sentMessages[_]);for(var _ in this._receivedMessages)this._trace("_receivedMessages ",_,this._receivedMessages[_]);return this._traceBuffer}},E.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},E.prototype.stopTrace=function(){delete this._traceBuffer},E.prototype._doConnect=function(_){if(this.connectOptions.useSSL){var v=_.split(":");v[0]="wss",_=v.join(":")}this._wsuri=_,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(_,["mqttv3.1"]):new WebSocket(_,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=o(this._on_socket_open,this),this.socket.onmessage=o(this._on_socket_message,this),this.socket.onerror=o(this._on_socket_error,this),this.socket.onclose=o(this._on_socket_close,this),this.sendPinger=new Y(this,this.connectOptions.keepAliveInterval),this.receivePinger=new Y(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new j(this,this.connectOptions.timeout,this._disconnected,[l.CONNECT_TIMEOUT.code,i(l.CONNECT_TIMEOUT)])},E.prototype._schedule_message=function(_){this._msg_queue.unshift(_),this.connected&&this._process_queue()},E.prototype.store=function(_,v){var F={type:v.type,messageIdentifier:v.messageIdentifier,version:1};if(v.type!==r.PUBLISH)throw Error(i(l.INVALID_STORED_DATA,[_+this._localKey+v.messageIdentifier,F]));v.pubRecReceived&&(F.pubRecReceived=!0),F.payloadMessage={};for(var q="",Q=v.payloadMessage.payloadBytes,J=0;J<Q.length;J++)Q[J]<=15?q=q+"0"+Q[J].toString(16):q+=Q[J].toString(16);F.payloadMessage.payloadHex=q,F.payloadMessage.qos=v.payloadMessage.qos,F.payloadMessage.destinationName=v.payloadMessage.destinationName,v.payloadMessage.duplicate&&(F.payloadMessage.duplicate=!0),v.payloadMessage.retained&&(F.payloadMessage.retained=!0),0===_.indexOf("Sent:")&&(void 0===v.sequence&&(v.sequence=++this._sequence),F.sequence=v.sequence),m.setItem(_+this._localKey+v.messageIdentifier,JSON.stringify(F))},E.prototype.restore=function(_){var v=m.getItem(_),F=JSON.parse(v),q=new g(F.type,F);if(F.type!==r.PUBLISH)throw Error(i(l.INVALID_STORED_DATA,[_,v]));for(var Q=F.payloadMessage.payloadHex,J=new ArrayBuffer(Q.length/2),ie=new Uint8Array(J),Se=0;Q.length>=2;){var te=parseInt(Q.substring(0,2),16);Q=Q.substring(2,Q.length),ie[Se++]=te}var ge=new y.Message(ie);ge.qos=F.payloadMessage.qos,ge.destinationName=F.payloadMessage.destinationName,F.payloadMessage.duplicate&&(ge.duplicate=!0),F.payloadMessage.retained&&(ge.retained=!0),q.payloadMessage=ge,0===_.indexOf("Sent:"+this._localKey)?(q.payloadMessage.duplicate=!0,this._sentMessages[q.messageIdentifier]=q):0===_.indexOf("Received:"+this._localKey)&&(this._receivedMessages[q.messageIdentifier]=q)},E.prototype._process_queue=function(){for(var _=null;_=this._msg_queue.pop();)this._socket_send(_),this._notify_msg_sent[_]&&(this._notify_msg_sent[_](),delete this._notify_msg_sent[_])},E.prototype._requires_ack=function(_){var v=Object.keys(this._sentMessages).length;if(v>this.maxMessageIdentifier)throw Error("Too many messages:"+v);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;_.messageIdentifier=this._message_identifier,this._sentMessages[_.messageIdentifier]=_,_.type===r.PUBLISH&&this.store("Sent:",_),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},E.prototype._on_socket_open=function(){var _=new g(r.CONNECT,this.connectOptions);_.clientId=this.clientId,this._socket_send(_)},E.prototype._on_socket_message=function(_){this._trace("Client._on_socket_message",_.data);for(var v=this._deframeMessages(_.data),F=0;F<v.length;F+=1)this._handleMessage(v[F])},E.prototype._deframeMessages=function(_){var v=new Uint8Array(_),F=[];if(this.receiveBuffer){var q=new Uint8Array(this.receiveBuffer.length+v.length);q.set(this.receiveBuffer),q.set(v,this.receiveBuffer.length),v=q,delete this.receiveBuffer}try{for(var Q=0;Q<v.length;){var J=b(v,Q),ie=J[0];if(Q=J[1],null===ie)break;F.push(ie)}Q<v.length&&(this.receiveBuffer=v.subarray(Q))}catch(te){var Se="undefined"==te.hasOwnProperty("stack")?te.stack.toString():"No Error Stack Available";return void this._disconnected(l.INTERNAL_ERROR.code,i(l.INTERNAL_ERROR,[te.message,Se]))}return F},E.prototype._handleMessage=function(_){this._trace("Client._handleMessage",_);try{switch(_.type){case r.CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var v in this._sentMessages)m.removeItem("Sent:"+this._localKey+(H=this._sentMessages[v]).messageIdentifier);for(var v in this._sentMessages={},this._receivedMessages)m.removeItem("Received:"+this._localKey+(ge=this._receivedMessages[v]).messageIdentifier);this._receivedMessages={}}if(0!==_.returnCode){this._disconnected(l.CONNACK_RETURNCODE.code,i(l.CONNACK_RETURNCODE,[_.returnCode,e[_.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var Q=[];for(var F in this._sentMessages)this._sentMessages.hasOwnProperty(F)&&Q.push(this._sentMessages[F]);if(this._buffered_msg_queue.length>0)for(var q=null;q=this._buffered_msg_queue.pop();)Q.push(q),this.onMessageDelivered&&(this._notify_msg_sent[q]=this.onMessageDelivered(q.payloadMessage));Q=Q.sort(function(oe,ee){return oe.sequence-ee.sequence});for(var J=0,ie=Q.length;J<ie;J++)if((H=Q[J]).type==r.PUBLISH&&H.pubRecReceived){var Se=new g(r.PUBREL,{messageIdentifier:H.messageIdentifier});this._schedule_message(Se)}else this._schedule_message(H);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var te=!1;this._reconnecting&&(te=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(te,this._wsuri),this._process_queue();break;case r.PUBLISH:this._receivePublish(_);break;case r.PUBACK:(H=this._sentMessages[_.messageIdentifier])&&(delete this._sentMessages[_.messageIdentifier],m.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(H.payloadMessage));break;case r.PUBREC:(H=this._sentMessages[_.messageIdentifier])&&(H.pubRecReceived=!0,Se=new g(r.PUBREL,{messageIdentifier:_.messageIdentifier}),this.store("Sent:",H),this._schedule_message(Se));break;case r.PUBREL:var ge=this._receivedMessages[_.messageIdentifier];m.removeItem("Received:"+this._localKey+_.messageIdentifier),ge&&(this._receiveMessage(ge),delete this._receivedMessages[_.messageIdentifier]);var ue=new g(r.PUBCOMP,{messageIdentifier:_.messageIdentifier});this._schedule_message(ue);break;case r.PUBCOMP:var H=this._sentMessages[_.messageIdentifier];delete this._sentMessages[_.messageIdentifier],m.removeItem("Sent:"+this._localKey+_.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(H.payloadMessage);break;case r.SUBACK:(H=this._sentMessages[_.messageIdentifier])&&(H.timeOut&&H.timeOut.cancel(),128===_.returnCode[0]?H.onFailure&&H.onFailure(_.returnCode):H.onSuccess&&H.onSuccess(_.returnCode),delete this._sentMessages[_.messageIdentifier]);break;case r.UNSUBACK:(H=this._sentMessages[_.messageIdentifier])&&(H.timeOut&&H.timeOut.cancel(),H.callback&&H.callback(),delete this._sentMessages[_.messageIdentifier]);break;case r.PINGRESP:this.sendPinger.reset();break;default:this._disconnected(l.INVALID_MQTT_MESSAGE_TYPE.code,i(l.INVALID_MQTT_MESSAGE_TYPE,[_.type]))}}catch(oe){var $="undefined"==oe.hasOwnProperty("stack")?oe.stack.toString():"No Error Stack Available";return void this._disconnected(l.INTERNAL_ERROR.code,i(l.INTERNAL_ERROR,[oe.message,$]))}},E.prototype._on_socket_error=function(_){this._reconnecting||this._disconnected(l.SOCKET_ERROR.code,i(l.SOCKET_ERROR,[_.data]))},E.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(l.SOCKET_CLOSE.code,i(l.SOCKET_CLOSE))},E.prototype._socket_send=function(_){if(1==_.type){var v=this._traceMask(_,"password");this._trace("Client._socket_send",v)}else this._trace("Client._socket_send",_);this.socket.send(_.encode()),this.sendPinger.reset()},E.prototype._receivePublish=function(_){switch(_.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(_);break;case 1:var v=new g(r.PUBACK,{messageIdentifier:_.messageIdentifier});this._schedule_message(v),this._receiveMessage(_);break;case 2:this._receivedMessages[_.messageIdentifier]=_,this.store("Received:",_);var F=new g(r.PUBREC,{messageIdentifier:_.messageIdentifier});this._schedule_message(F);break;default:throw Error("Invaild qos="+_.payloadMessage.qos)}},E.prototype._receiveMessage=function(_){this.onMessageArrived&&this.onMessageArrived(_.payloadMessage)},E.prototype._connected=function(_,v){this.onConnected&&this.onConnected(_,v)},E.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))},E.prototype._disconnected=function(_,v){if(this._trace("Client._disconnected",_,v),void 0!==_&&this._reconnecting)this._reconnectTimeout=new j(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===_&&(_=l.OK.code,v=i(l.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:_,errorMessage:v,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),_!==l.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:_,errorMessage:v})},E.prototype._trace=function(){if(this.traceFunction){var _=Array.prototype.slice.call(arguments);for(var v in _)typeof _[v]<"u"&&_.splice(v,1,JSON.stringify(_[v]));var F=_.join("");this.traceFunction({severity:"Debug",message:F})}if(null!==this._traceBuffer){v=0;for(var q=arguments.length;v<q;v++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===v||typeof arguments[v]>"u"?arguments[v]:" "+JSON.stringify(arguments[v]))}},E.prototype._traceMask=function(_,v){var F={};for(var q in _)_.hasOwnProperty(q)&&(F[q]=q==v?"******":_[q]);return F};var p=function(_){var v;if(!("string"==typeof _||_ instanceof ArrayBuffer||ArrayBuffer.isView(_)&&!(_ instanceof DataView)))throw i(l.INVALID_ARGUMENT,[_,"newPayload"]);v=_;var F,q=0,Q=!1,J=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof v?v:V(v,0,v.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof v){var ie=new ArrayBuffer(P(v)),Se=new Uint8Array(ie);return W(v,Se,0),Se}return v}},destinationName:{enumerable:!0,get:function(){return F},set:function(ie){if("string"!=typeof ie)throw new Error(i(l.INVALID_ARGUMENT,[ie,"newDestinationName"]));F=ie}},qos:{enumerable:!0,get:function(){return q},set:function(ie){if(0!==ie&&1!==ie&&2!==ie)throw new Error("Invalid argument:"+ie);q=ie}},retained:{enumerable:!0,get:function(){return Q},set:function(ie){if("boolean"!=typeof ie)throw new Error(i(l.INVALID_ARGUMENT,[ie,"newRetained"]));Q=ie}},topic:{enumerable:!0,get:function(){return F},set:function(ie){F=ie}},duplicate:{enumerable:!0,get:function(){return J},set:function(ie){J=ie}}})};return{Client:function(_,v,F,q){var Q;if("string"!=typeof _)throw new Error(i(l.INVALID_TYPE,[typeof _,"host"]));if(2==arguments.length){q=v;var J=(Q=_).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!J)throw new Error(i(l.INVALID_ARGUMENT,[_,"host"]));_=J[4]||J[2],v=parseInt(J[7]),F=J[8]}else{if(3==arguments.length&&(q=F,F="/mqtt"),"number"!=typeof v||v<0)throw new Error(i(l.INVALID_TYPE,[typeof v,"port"]));if("string"!=typeof F)throw new Error(i(l.INVALID_TYPE,[typeof F,"path"]));var ie=-1!==_.indexOf(":")&&"["!==_.slice(0,1)&&"]"!==_.slice(-1);Q="ws://"+(ie?"["+_+"]":_)+":"+v+F}for(var Se=0,te=0;te<q.length;te++){var ge=q.charCodeAt(te);55296<=ge&&ge<=56319&&te++,Se++}if("string"!=typeof q||Se>65535)throw new Error(i(l.INVALID_ARGUMENT,[q,"clientId"]));var ue=new E(Q,_,v,F,q);Object.defineProperties(this,{host:{get:function(){return _},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},port:{get:function(){return v},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},path:{get:function(){return F},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},uri:{get:function(){return Q},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return ue.clientId},set:function(){throw new Error(i(l.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return ue.onConnected},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onConnected"]));ue.onConnected=H}},disconnectedPublishing:{get:function(){return ue.disconnectedPublishing},set:function(H){ue.disconnectedPublishing=H}},disconnectedBufferSize:{get:function(){return ue.disconnectedBufferSize},set:function(H){ue.disconnectedBufferSize=H}},onConnectionLost:{get:function(){return ue.onConnectionLost},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onConnectionLost"]));ue.onConnectionLost=H}},onMessageDelivered:{get:function(){return ue.onMessageDelivered},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onMessageDelivered"]));ue.onMessageDelivered=H}},onMessageArrived:{get:function(){return ue.onMessageArrived},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onMessageArrived"]));ue.onMessageArrived=H}},trace:{get:function(){return ue.traceFunction},set:function(H){if("function"!=typeof H)throw new Error(i(l.INVALID_TYPE,[typeof H,"onTrace"]));ue.traceFunction=H}}}),this.connect=function(H){if(n(H=H||{},{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===H.keepAliveInterval&&(H.keepAliveInterval=60),H.mqttVersion>4||H.mqttVersion<3)throw new Error(i(l.INVALID_ARGUMENT,[H.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===H.mqttVersion?(H.mqttVersionExplicit=!1,H.mqttVersion=4):H.mqttVersionExplicit=!0,void 0!==H.password&&void 0===H.userName)throw new Error(i(l.INVALID_ARGUMENT,[H.password,"connectOptions.password"]));if(H.willMessage){if(!(H.willMessage instanceof p))throw new Error(i(l.INVALID_TYPE,[H.willMessage,"connectOptions.willMessage"]));if(H.willMessage.stringPayload=null,typeof H.willMessage.destinationName>"u")throw new Error(i(l.INVALID_TYPE,[typeof H.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(typeof H.cleanSession>"u"&&(H.cleanSession=!0),H.hosts){if(!(H.hosts instanceof Array))throw new Error(i(l.INVALID_ARGUMENT,[H.hosts,"connectOptions.hosts"]));if(H.hosts.length<1)throw new Error(i(l.INVALID_ARGUMENT,[H.hosts,"connectOptions.hosts"]));for(var $=!1,oe=0;oe<H.hosts.length;oe++){if("string"!=typeof H.hosts[oe])throw new Error(i(l.INVALID_TYPE,[typeof H.hosts[oe],"connectOptions.hosts["+oe+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(H.hosts[oe])){if(0===oe)$=!0;else if(!$)throw new Error(i(l.INVALID_ARGUMENT,[H.hosts[oe],"connectOptions.hosts["+oe+"]"]))}else if($)throw new Error(i(l.INVALID_ARGUMENT,[H.hosts[oe],"connectOptions.hosts["+oe+"]"]))}if($)H.uris=H.hosts;else{if(!H.ports)throw new Error(i(l.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));if(!(H.ports instanceof Array))throw new Error(i(l.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));if(H.hosts.length!==H.ports.length)throw new Error(i(l.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));for(H.uris=[],oe=0;oe<H.hosts.length;oe++){if("number"!=typeof H.ports[oe]||H.ports[oe]<0)throw new Error(i(l.INVALID_TYPE,[typeof H.ports[oe],"connectOptions.ports["+oe+"]"]));var ee=H.hosts[oe],L=H.ports[oe],S=-1!==ee.indexOf(":");H.uris.push(Q="ws://"+(S?"["+ee+"]":ee)+":"+L+F)}}}ue.connect(H)},this.subscribe=function(H,$){if("string"!=typeof H)throw new Error("Invalid argument:"+H);if(n($=$||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),$.timeout&&!$.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof $.qos<"u"&&0!==$.qos&&1!==$.qos&&2!==$.qos)throw new Error(i(l.INVALID_ARGUMENT,[$.qos,"subscribeOptions.qos"]));ue.subscribe(H,$)},this.unsubscribe=function(H,$){if("string"!=typeof H)throw new Error("Invalid argument:"+H);if(n($=$||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),$.timeout&&!$.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");ue.unsubscribe(H,$)},this.send=function(H,$,oe,ee){var L;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(H instanceof p)&&"string"!=typeof H)throw new Error("Invalid argument:"+typeof H);if(typeof(L=H).destinationName>"u")throw new Error(i(l.INVALID_ARGUMENT,[L.destinationName,"Message.destinationName"]));ue.send(L)}else(L=new p($)).destinationName=H,arguments.length>=3&&(L.qos=oe),arguments.length>=4&&(L.retained=ee),ue.send(L)},this.publish=function(H,$,oe,ee){var L;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(H instanceof p)&&"string"!=typeof H)throw new Error("Invalid argument:"+typeof H);if(typeof(L=H).destinationName>"u")throw new Error(i(l.INVALID_ARGUMENT,[L.destinationName,"Message.destinationName"]));ue.send(L)}else(L=new p($)).destinationName=H,arguments.length>=3&&(L.qos=oe),arguments.length>=4&&(L.retained=ee),ue.send(L)},this.disconnect=function(){ue.disconnect()},this.getTraceLog=function(){return ue.getTraceLog()},this.startTrace=function(){ue.startTrace()},this.stopTrace=function(){ue.stopTrace()},this.isConnected=function(){return ue.connected}},Message:p}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),y)},65881:(le,k,y)=>{function n(){var l;try{l=k.storage.debug}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}(k=le.exports=y(37598)).log=function m(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},k.formatArgs=function O(l){var e=this.useColors;if(l[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+l[0]+(e?"%c ":" ")+"+"+k.humanize(this.diff),e){var i="color: "+this.color;l.splice(1,0,i,"color: inherit");var h=0,d=0;l[0].replace(/%[a-zA-Z%]/g,function(g){"%%"!==g&&(h++,"%c"===g&&(d=h))}),l.splice(d,0,i)}},k.save=function r(l){try{null==l?k.storage.removeItem("debug"):k.storage.debug=l}catch{}},k.load=n,k.useColors=function a(){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+)/)},k.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function o(){try{return window.localStorage}catch{}}(),k.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],k.formatters.j=function(l){try{return JSON.stringify(l)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},k.enable(n())},37598:(le,k,y)=>{var a;function m(e){function i(){if(i.enabled){var h=i,d=+new Date;h.diff=d-(a||d),h.prev=a,h.curr=d,a=d;for(var b=new Array(arguments.length),T=0;T<b.length;T++)b[T]=arguments[T];b[0]=k.coerce(b[0]),"string"!=typeof b[0]&&b.unshift("%O");var M=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,function(x,P){if("%%"===x)return x;M++;var W=k.formatters[P];return"function"==typeof W&&(x=W.call(h,b[M]),b.splice(M,1),M--),x}),k.formatArgs.call(h,b),(i.log||k.log||console.log.bind(console)).apply(h,b)}}return i.namespace=e,i.enabled=k.enabled(e),i.useColors=k.useColors(),i.color=function O(e){var h,i=0;for(h in e)i=(i<<5)-i+e.charCodeAt(h),i|=0;return k.colors[Math.abs(i)%k.colors.length]}(e),"function"==typeof k.init&&k.init(i),i}(k=le.exports=m.debug=m.default=m).coerce=function l(e){return e instanceof Error?e.stack||e.message:e},k.disable=function n(){k.enable("")},k.enable=function r(e){k.save(e),k.names=[],k.skips=[];for(var i=("string"==typeof e?e:"").split(/[\s,]+/),h=i.length,d=0;d<h;d++)i[d]&&("-"===(e=i[d].replace(/\*/g,".*?"))[0]?k.skips.push(new RegExp("^"+e.substr(1)+"$")):k.names.push(new RegExp("^"+e+"$")))},k.enabled=function o(e){var i,h;for(i=0,h=k.skips.length;i<h;i++)if(k.skips[i].test(e))return!1;for(i=0,h=k.names.length;i<h;i++)if(k.names[i].test(e))return!0;return!1},k.humanize=y(55971),k.names=[],k.skips=[],k.formatters={}},55971:le=>{var k=1e3,y=60*k,a=60*y,O=24*a;function l(e,i,h){if(!(e<i))return e<1.5*i?Math.floor(e/i)+" "+h:Math.ceil(e/i)+" "+h+"s"}le.exports=function(e,i){i=i||{};var h=typeof e;if("string"===h&&e.length>0)return function r(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var h=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*h;case"days":case"day":case"d":return h*O;case"hours":case"hour":case"hrs":case"hr":case"h":return h*a;case"minutes":case"minute":case"mins":case"min":case"m":return h*y;case"seconds":case"second":case"secs":case"sec":case"s":return h*k;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}(e);if("number"===h&&!1===isNaN(e))return i.long?function o(e){return l(e,O,"day")||l(e,a,"hour")||l(e,y,"minute")||l(e,k,"second")||e+" ms"}(e):function n(e){return e>=O?Math.round(e/O)+"d":e>=a?Math.round(e/a)+"h":e>=y?Math.round(e/y)+"m":e>=k?Math.round(e/k)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},67811:(le,k,y)=>{y(18213);var a=y(497);typeof window<"u"&&(window.AWS=a),le.exports=a,typeof self<"u"&&(self.AWS=a)},94835:(le,k,y)=>{y(18213);var a=y(497),O=a.Service,m=a.apiLoader;m.services.cognitoidentity={},a.CognitoIdentity=O.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(m.services.cognitoidentity,"2014-06-30",{get:function(){var n=y(79476);return n.paginators=y(85464).o,n},enumerable:!0,configurable:!0}),le.exports=a.CognitoIdentity},48020:(le,k,y)=>{y(18213);var a=y(497),O=a.Service,m=a.apiLoader;m.services.sts={},a.STS=O.defineService("sts",["2011-06-15"]),y(25674),Object.defineProperty(m.services.sts,"2011-06-15",{get:function(){var n=y(3554);return n.paginators=y(31152).o,n},enumerable:!0,configurable:!0}),le.exports=a.STS},15796:le=>{function k(y,a){if(!k.services.hasOwnProperty(y))throw new Error("InvalidService: Failed to load api for "+y);return k.services[y][a]}k.services={},le.exports=k},3318:(le,k,y)=>{var a=y(34448),O=y(72935),m=y(12781),r=y(6203);le.exports={createHash:function(o){if("md5"===(o=o.toLowerCase()))return new O;if("sha256"===o)return new r;if("sha1"===o)return new m;throw new Error("Hash algorithm "+o+" is not supported in the browser SDK")},createHmac:function(o,l){if("md5"===(o=o.toLowerCase()))return new a(O,l);if("sha256"===o)return new a(r,l);if("sha1"===o)return new a(m,l);throw new Error("HMAC algorithm "+o+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},75089:(le,k,y)=>{var a=y(3584).lW;typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(n){return O.indexOf(Object.prototype.toString.call(n))>-1});var O=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];le.exports={isEmptyData:function m(n){return"string"==typeof n?0===n.length:0===n.byteLength},convertToBuffer:function r(n){return"string"==typeof n&&(n=new a(n,"utf8")),ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}}},34448:(le,k,y)=>{var a=y(75089);function O(r,n){this.hash=new r,this.outer=new r;var o=function m(r,n){var o=a.convertToBuffer(n);if(o.byteLength>r.BLOCK_SIZE){var l=new r;l.update(o),o=l.digest()}var e=new Uint8Array(r.BLOCK_SIZE);return e.set(o),e}(r,n),l=new Uint8Array(r.BLOCK_SIZE);l.set(o);for(var e=0;e<r.BLOCK_SIZE;e++)o[e]^=54,l[e]^=92;for(this.hash.update(o),this.outer.update(l),e=0;e<o.byteLength;e++)o[e]=0}le.exports=O,O.prototype.update=function(r){if(a.isEmptyData(r)||this.error)return this;try{this.hash.update(a.convertToBuffer(r))}catch(n){this.error=n}return this},O.prototype.digest=function(r){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(r)}},72935:(le,k,y)=>{var a=y(75089),O=y(3584).lW,m=64;function o(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(m)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function l(g,b,T,M,R,x){return((b=(b+g&4294967295)+(M+x&4294967295)&4294967295)<<R|b>>>32-R)+T&4294967295}function e(g,b,T,M,R,x,P){return l(b&T|~b&M,g,b,R,x,P)}function i(g,b,T,M,R,x,P){return l(b&M|T&~M,g,b,R,x,P)}function h(g,b,T,M,R,x,P){return l(b^T^M,g,b,R,x,P)}function d(g,b,T,M,R,x,P){return l(T^(b|~M),g,b,R,x,P)}le.exports=o,o.BLOCK_SIZE=m,o.prototype.update=function(g){if(a.isEmptyData(g))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var b=a.convertToBuffer(g),T=0,M=b.byteLength;for(this.bytesHashed+=M;M>0;)this.buffer.setUint8(this.bufferLength++,b[T++]),M--,this.bufferLength===m&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(g){if(!this.finished){var b=this,T=b.buffer,M=b.bufferLength,x=8*b.bytesHashed;if(T.setUint8(this.bufferLength++,128),M%m>=m-8){for(var P=this.bufferLength;P<m;P++)T.setUint8(P,0);this.hashBuffer(),this.bufferLength=0}for(P=this.bufferLength;P<m-8;P++)T.setUint8(P,0);T.setUint32(m-8,x>>>0,!0),T.setUint32(m-4,Math.floor(x/4294967296),!0),this.hashBuffer(),this.finished=!0}var W=new DataView(new ArrayBuffer(16));for(P=0;P<4;P++)W.setUint32(4*P,this.state[P],!0);var V=new O(W.buffer,W.byteOffset,W.byteLength);return g?V.toString(g):V},o.prototype.hashBuffer=function(){var b=this.buffer,T=this.state,M=T[0],R=T[1],x=T[2],P=T[3];M=e(M,R,x,P,b.getUint32(0,!0),7,3614090360),P=e(P,M,R,x,b.getUint32(4,!0),12,3905402710),x=e(x,P,M,R,b.getUint32(8,!0),17,606105819),R=e(R,x,P,M,b.getUint32(12,!0),22,3250441966),M=e(M,R,x,P,b.getUint32(16,!0),7,4118548399),P=e(P,M,R,x,b.getUint32(20,!0),12,1200080426),x=e(x,P,M,R,b.getUint32(24,!0),17,2821735955),R=e(R,x,P,M,b.getUint32(28,!0),22,4249261313),M=e(M,R,x,P,b.getUint32(32,!0),7,1770035416),P=e(P,M,R,x,b.getUint32(36,!0),12,2336552879),x=e(x,P,M,R,b.getUint32(40,!0),17,4294925233),R=e(R,x,P,M,b.getUint32(44,!0),22,2304563134),M=e(M,R,x,P,b.getUint32(48,!0),7,1804603682),P=e(P,M,R,x,b.getUint32(52,!0),12,4254626195),x=e(x,P,M,R,b.getUint32(56,!0),17,2792965006),M=i(M,R=e(R,x,P,M,b.getUint32(60,!0),22,1236535329),x,P,b.getUint32(4,!0),5,4129170786),P=i(P,M,R,x,b.getUint32(24,!0),9,3225465664),x=i(x,P,M,R,b.getUint32(44,!0),14,643717713),R=i(R,x,P,M,b.getUint32(0,!0),20,3921069994),M=i(M,R,x,P,b.getUint32(20,!0),5,3593408605),P=i(P,M,R,x,b.getUint32(40,!0),9,38016083),x=i(x,P,M,R,b.getUint32(60,!0),14,3634488961),R=i(R,x,P,M,b.getUint32(16,!0),20,3889429448),M=i(M,R,x,P,b.getUint32(36,!0),5,568446438),P=i(P,M,R,x,b.getUint32(56,!0),9,3275163606),x=i(x,P,M,R,b.getUint32(12,!0),14,4107603335),R=i(R,x,P,M,b.getUint32(32,!0),20,1163531501),M=i(M,R,x,P,b.getUint32(52,!0),5,2850285829),P=i(P,M,R,x,b.getUint32(8,!0),9,4243563512),x=i(x,P,M,R,b.getUint32(28,!0),14,1735328473),M=h(M,R=i(R,x,P,M,b.getUint32(48,!0),20,2368359562),x,P,b.getUint32(20,!0),4,4294588738),P=h(P,M,R,x,b.getUint32(32,!0),11,2272392833),x=h(x,P,M,R,b.getUint32(44,!0),16,1839030562),R=h(R,x,P,M,b.getUint32(56,!0),23,4259657740),M=h(M,R,x,P,b.getUint32(4,!0),4,2763975236),P=h(P,M,R,x,b.getUint32(16,!0),11,1272893353),x=h(x,P,M,R,b.getUint32(28,!0),16,4139469664),R=h(R,x,P,M,b.getUint32(40,!0),23,3200236656),M=h(M,R,x,P,b.getUint32(52,!0),4,681279174),P=h(P,M,R,x,b.getUint32(0,!0),11,3936430074),x=h(x,P,M,R,b.getUint32(12,!0),16,3572445317),R=h(R,x,P,M,b.getUint32(24,!0),23,76029189),M=h(M,R,x,P,b.getUint32(36,!0),4,3654602809),P=h(P,M,R,x,b.getUint32(48,!0),11,3873151461),x=h(x,P,M,R,b.getUint32(60,!0),16,530742520),M=d(M,R=h(R,x,P,M,b.getUint32(8,!0),23,3299628645),x,P,b.getUint32(0,!0),6,4096336452),P=d(P,M,R,x,b.getUint32(28,!0),10,1126891415),x=d(x,P,M,R,b.getUint32(56,!0),15,2878612391),R=d(R,x,P,M,b.getUint32(20,!0),21,4237533241),M=d(M,R,x,P,b.getUint32(48,!0),6,1700485571),P=d(P,M,R,x,b.getUint32(12,!0),10,2399980690),x=d(x,P,M,R,b.getUint32(40,!0),15,4293915773),R=d(R,x,P,M,b.getUint32(4,!0),21,2240044497),M=d(M,R,x,P,b.getUint32(32,!0),6,1873313359),P=d(P,M,R,x,b.getUint32(60,!0),10,4264355552),x=d(x,P,M,R,b.getUint32(24,!0),15,2734768916),R=d(R,x,P,M,b.getUint32(52,!0),21,1309151649),M=d(M,R,x,P,b.getUint32(16,!0),6,4149444226),P=d(P,M,R,x,b.getUint32(44,!0),10,3174756917),x=d(x,P,M,R,b.getUint32(8,!0),15,718787259),R=d(R,x,P,M,b.getUint32(36,!0),21,3951481745),T[0]=M+T[0]&4294967295,T[1]=R+T[1]&4294967295,T[2]=x+T[2]&4294967295,T[3]=P+T[3]&4294967295}},12781:(le,k,y)=>{var a=y(3584).lW,O=y(75089);function e(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}new Uint32Array([1518500249,1859775393,-1894007588,-899497514]),Math.pow(2,53),le.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(O.isEmptyData(i))return this;var h=(i=O.convertToBuffer(i)).length;this.totalLength+=8*h;for(var d=0;d<h;d++)this.write(i[d]);return this},e.prototype.write=function(h){this.block[this.offset]|=(255&h)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},e.prototype.digest=function(i){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var h=24;h>=0;h-=8)this.write(this.totalLength>>h);var d=new a(20),g=new DataView(d.buffer);return g.setUint32(0,this.h0,!1),g.setUint32(4,this.h1,!1),g.setUint32(8,this.h2,!1),g.setUint32(12,this.h3,!1),g.setUint32(16,this.h4,!1),i?d.toString(i):d},e.prototype.processBlock=function(){for(var h=16;h<80;h++){var d=this.block[h-3]^this.block[h-8]^this.block[h-14]^this.block[h-16];this.block[h]=d<<1|d>>>31}var x,P,g=this.h0,b=this.h1,T=this.h2,M=this.h3,R=this.h4;for(h=0;h<80;h++){h<20?(x=M^b&(T^M),P=1518500249):h<40?(x=b^T^M,P=1859775393):h<60?(x=b&T|M&(b|T),P=2400959708):(x=b^T^M,P=3395469782);var W=(g<<5|g>>>27)+x+R+P+(0|this.block[h]);R=M,M=T,T=b<<30|b>>>2,b=g,g=W}for(this.h0=this.h0+g|0,this.h1=this.h1+b|0,this.h2=this.h2+T|0,this.h3=this.h3+M|0,this.h4=this.h4+R|0,this.offset=0,h=0;h<16;h++)this.block[h]=0}},6203:(le,k,y)=>{var a=y(3584).lW,O=y(75089),n=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]),l=Math.pow(2,53)-1;function e(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}le.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(O.isEmptyData(i))return this;var h=0,d=(i=O.convertToBuffer(i)).byteLength;if(this.bytesHashed+=d,8*this.bytesHashed>l)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;d>0;)this.buffer[this.bufferLength++]=i[h++],d--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},e.prototype.digest=function(i){if(!this.finished){var h=8*this.bytesHashed,d=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(d.setUint8(this.bufferLength++,128),g%64>=56){for(var b=this.bufferLength;b<64;b++)d.setUint8(b,0);this.hashBuffer(),this.bufferLength=0}for(b=this.bufferLength;b<56;b++)d.setUint8(b,0);d.setUint32(56,Math.floor(h/4294967296),!0),d.setUint32(60,h),this.hashBuffer(),this.finished=!0}var T=new a(32);for(b=0;b<8;b++)T[4*b]=this.state[b]>>>24&255,T[4*b+1]=this.state[b]>>>16&255,T[4*b+2]=this.state[b]>>>8&255,T[4*b+3]=this.state[b]>>>0&255;return i?T.toString(i):T},e.prototype.hashBuffer=function(){for(var h=this.buffer,d=this.state,g=d[0],b=d[1],T=d[2],M=d[3],R=d[4],x=d[5],P=d[6],W=d[7],V=0;V<64;V++){if(V<16)this.temp[V]=(255&h[4*V])<<24|(255&h[4*V+1])<<16|(255&h[4*V+2])<<8|255&h[4*V+3];else{var Y=this.temp[V-2];this.temp[V]=(((Y>>>17|Y<<15)^(Y>>>19|Y<<13)^Y>>>10)+this.temp[V-7]|0)+((((Y=this.temp[V-15])>>>7|Y<<25)^(Y>>>18|Y<<14)^Y>>>3)+this.temp[V-16]|0)}var C=(((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&x^~R&P)|0)+(W+(n[V]+this.temp[V]|0)|0)|0,p=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&b^g&T^b&T)|0;W=P,P=x,x=R,R=M+C|0,M=T,T=b,b=g,g=C+p|0}d[0]+=g,d[1]+=b,d[2]+=T,d[3]+=M,d[4]+=R,d[5]+=x,d[6]+=P,d[7]+=W}},18213:(le,k,y)=>{var a=y(33123);a.crypto.lib=y(3318),a.Buffer=y(3584).lW,a.url=y(2636),a.querystring=y(51239),a.realClock=y(16288),a.environment="js",a.createEventStream=y(77171).createEventStream,a.isBrowser=function(){return!0},a.isNode=function(){return!1};var O=y(497);if(le.exports=O,y(88864),y(47162),y(69330),y(89335),y(42966),y(81939),y(8478),O.XML.Parser=y(58882),y(41967),typeof m>"u")var m={browser:!0}},60086:(le,k,y)=>{var O,a=y(497);y(88864),y(47162),a.Config=a.util.inherit({constructor:function(r){void 0===r&&(r={}),r=this.extractCredentials(r),a.util.each.call(this,this.keys,function(n,o){this.set(n,r[n],o)})},getCredentials:function(r){var n=this;function o(h){r(h,h?null:n.credentials)}function l(h,d){return new a.util.error(d||new Error,{code:"CredentialsError",message:h,name:"CredentialsError"})}n.credentials?"function"==typeof n.credentials.get?function e(){n.credentials.get(function(h){h&&(h=l("Could not load credentials from "+n.credentials.constructor.name,h)),o(h)})}():function i(){var h=null;(!n.credentials.accessKeyId||!n.credentials.secretAccessKey)&&(h=l("Missing credentials")),o(h)}():n.credentialProvider?n.credentialProvider.resolve(function(h,d){h&&(h=l("Could not load credentials from any providers",h)),n.credentials=d,o(h)}):o(l("No credentials to load"))},update:function(r,n){n=n||!1,r=this.extractCredentials(r),a.util.each.call(this,r,function(o,l){(n||Object.prototype.hasOwnProperty.call(this.keys,o)||a.Service.hasService(o))&&this.set(o,l)})},loadFromPath:function(r){this.clear();var n=JSON.parse(a.util.readFileSync(r)),o=new a.FileSystemCredentials(r),l=new a.CredentialProviderChain;return l.providers.unshift(o),l.resolve(function(e,i){if(e)throw e;n.credentials=i}),this.constructor(n),this},clear:function(){a.util.each.call(this,this.keys,function(r){delete this[r]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(r,n,o){void 0===n?(void 0===o&&(o=this.keys[r]),this[r]="function"==typeof o?o.call(this):o):this[r]="httpOptions"===r&&this[r]?a.util.merge(this[r],n):n},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,s3DisableBodySigning:!0,s3UsEast1RegionalEndpoint:"legacy",s3UseArnRegion:void 0,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{},useAccelerateEndpoint:!1,clientSideMonitoring:!1,endpointDiscoveryEnabled:void 0,endpointCacheSize:1e3,hostPrefixEnabled:!0,stsRegionalEndpoints:"legacy",useFipsEndpoint:!1,useDualstackEndpoint:!1},extractCredentials:function(r){return r.accessKeyId&&r.secretAccessKey&&((r=a.util.copy(r)).credentials=new a.Credentials(r)),r},setPromisesDependency:function(r){O=r,null===r&&"function"==typeof Promise&&(O=Promise);var n=[a.Request,a.Credentials,a.CredentialProviderChain];a.S3&&(n.push(a.S3),a.S3.ManagedUpload&&n.push(a.S3.ManagedUpload)),a.util.addPromises(n,O)},getPromisesDependency:function(){return O}}),a.config=new a.Config},91898:(le,k,y)=>{var a=y(497);function O(r,n){if("string"==typeof r){if(["legacy","regional"].indexOf(r.toLowerCase())>=0)return r.toLowerCase();throw a.util.error(new Error,n)}}le.exports=function m(r,n){var o;if((r=r||{})[n.clientConfig]&&(o=O(r[n.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+n.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+r[n.clientConfig]+'".'}))||!a.util.isNode())return o;if(Object.prototype.hasOwnProperty.call(process.env,n.env)&&(o=O(process.env[n.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+n.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[n.env]+'".'})))return o;var e={};try{e=a.util.getProfilesFromSharedConfig(a.util.iniLoader)[process.env.AWS_PROFILE||a.util.defaultProfile]}catch{}return e&&Object.prototype.hasOwnProperty.call(e,n.sharedConfig)&&(o=O(e[n.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+n.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+e[n.sharedConfig]+'".'})),o}},497:(le,k,y)=>{var a={util:y(33123)};({}).toString(),le.exports=a,a.util.update(a,{VERSION:"2.1189.0",Signers:{},Protocol:{Json:y(44566),Query:y(83839),Rest:y(41956),RestJson:y(97969),RestXml:y(26129)},XML:{Builder:y(30461),Parser:null},JSON:{Builder:y(52933),Parser:y(36040)},Model:{Api:y(17986),Operation:y(80611),Shape:y(17680),Paginator:y(27705),ResourceWaiter:y(67805)},apiLoader:y(15796),EndpointCache:y(94830).$}),y(35215),y(60199),y(60086),y(11202),y(68935),y(18913),y(27376),y(7689),y(86966),y(41440),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",function(){return new a.EndpointCache(a.config.endpointCacheSize)},!0)},88864:(le,k,y)=>{var a=y(497);a.Credentials=a.util.inherit({constructor:function(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var m=arguments[0].credentials||arguments[0];this.accessKeyId=m.accessKeyId,this.secretAccessKey=m.secretAccessKey,this.sessionToken=m.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var m=a.util.date.getDate().getTime(),r=new Date(m+1e3*this.expiryWindow);return!!(this.expireTime&&r>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(m){var r=this;this.needsRefresh()?this.refresh(function(n){n||(r.expired=!1),m&&m(n)}):m&&m()},refresh:function(m){this.expired=!1,m()},coalesceRefresh:function(m,r){var n=this;1===n.refreshCallbacks.push(m)&&n.load(function(l){a.util.arrayEach(n.refreshCallbacks,function(e){r?e(l):a.util.defer(function(){e(l)})}),n.refreshCallbacks.length=0})},load:function(m){m()}}),a.Credentials.addPromisesToClass=function(m){this.prototype.getPromise=a.util.promisifyMethod("get",m),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",m)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},89335:(le,k,y)=>{var a=y(497),O=y(48020);a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(r){a.Credentials.call(this),r=r||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var n=a.util.copy(r.params)||{};if(n.RoleArn&&(n.RoleSessionName=n.RoleSessionName||"temporary-credentials"),n.SerialNumber){if(!r.tokenCodeFn||"function"!=typeof r.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=r.tokenCodeFn}var o=a.util.merge({params:n,credentials:r.masterCredentials||a.config.credentials},r.stsConfig||{});this.service=new O(o)},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this,o=n.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(l,e){var i={};l?r(l):(e&&(i.TokenCode=e),n.service[o](i,function(h,d){h||n.service.credentialsFrom(d,n),r(h)}))})},getTokenCode:function(r){var n=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(o,l){if(o){var e=o;return o instanceof Error&&(e=o.message),void r(a.util.error(new Error("Error fetching MFA token: "+e),{code:n.errorCode}))}r(null,l)}):r(null)}})},81939:(le,k,y)=>{var a=y(497),O=y(94835),m=y(48020);a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(n,o){a.Credentials.call(this),this.expired=!0,this.params=n,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(o||{}),this.loadCachedId();var l=this;Object.defineProperty(this,"identityId",{get:function(){return l.loadCachedId(),l._identityId||l.params.IdentityId},set:function(e){l._identityId=e}})},refresh:function(n){this.coalesceRefresh(n||a.util.fn.callback)},load:function(n){var o=this;o.createClients(),o.data=null,o._identityId=null,o.getId(function(l){l?(o.clearIdOnNotAuthorized(l),n(l)):o.params.RoleArn?o.getCredentialsFromSTS(n):o.getCredentialsForIdentity(n)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var n=this.params.IdentityPoolId,o=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+n+o],delete this.storage[this.localStorageKey.providers+n+o]},clearIdOnNotAuthorized:function(n){"NotAuthorizedException"==n.code&&this.clearCachedId()},getId:function(n){var o=this;if("string"==typeof o.params.IdentityId)return n(null,o.params.IdentityId);o.cognito.getId(function(l,e){!l&&e.IdentityId?(o.params.IdentityId=e.IdentityId,n(null,e.IdentityId)):n(l)})},loadCredentials:function(n,o){!n||!o||(o.expired=!1,o.accessKeyId=n.Credentials.AccessKeyId,o.secretAccessKey=n.Credentials.SecretKey,o.sessionToken=n.Credentials.SessionToken,o.expireTime=n.Credentials.Expiration)},getCredentialsForIdentity:function(n){var o=this;o.cognito.getCredentialsForIdentity(function(l,e){l?o.clearIdOnNotAuthorized(l):(o.cacheId(e),o.data=e,o.loadCredentials(o.data,o)),n(l)})},getCredentialsFromSTS:function(n){var o=this;o.cognito.getOpenIdToken(function(l,e){l?(o.clearIdOnNotAuthorized(l),n(l)):(o.cacheId(e),o.params.WebIdentityToken=e.Token,o.webIdentityCredentials.refresh(function(i){i||(o.data=o.webIdentityCredentials.data,o.sts.credentialsFrom(o.data,o)),n(i)}))})},loadCachedId:function(){var n=this;if(a.util.isBrowser()&&!n.params.IdentityId){var o=n.getStorage("id");if(o&&n.params.Logins){var l=Object.keys(n.params.Logins);0!==(n.getStorage("providers")||"").split(",").filter(function(h){return-1!==l.indexOf(h)}).length&&(n.params.IdentityId=o)}else o&&(n.params.IdentityId=o)}},createClients:function(){var r=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,r),!this.cognito){var n=a.util.merge({},r);n.params=this.params,this.cognito=new O(n)}this.sts=this.sts||new m(r)},cacheId:function(n){this._identityId=n.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",n.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(n){return this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(n,o){try{this.storage[this.localStorageKey[n]+this.params.IdentityPoolId+(this.params.LoginId||"")]=o}catch{}},storage:function(){try{var r=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return r["aws.test-storage"]="foobar",delete r["aws.test-storage"],r}catch{return{}}}()})},47162:(le,k,y)=>{var a=y(497);a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(m){this.providers=m||a.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(m){var r=this;if(0===r.providers.length)return m(new Error("No providers")),r;if(1===r.resolveCallbacks.push(m)){let e=function(i,h){if(!i&&h||n===o.length)return a.util.arrayEach(r.resolveCallbacks,function(g){g(i,h)}),void(r.resolveCallbacks.length=0);var d=o[n++];(h="function"==typeof d?d.call():d).get?h.get(function(g){e(g,g?null:h)}):e(null,h)};var n=0,o=r.providers.slice(0);e()}return r}}),a.CredentialProviderChain.defaultProviders=[],a.CredentialProviderChain.addPromisesToClass=function(m){this.prototype.resolvePromise=a.util.promisifyMethod("resolve",m)},a.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},a.util.addPromises(a.CredentialProviderChain)},8478:(le,k,y)=>{var a=y(497),O=y(48020);a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function(r){a.Credentials.call(this),this.expired=!0,this.params=r},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithSAML(function(o,l){o||n.service.credentialsFrom(l,n),r(o)})},createClients:function(){this.service=this.service||new O({params:this.params})}})},69330:(le,k,y)=>{var a=y(497),O=y(48020);a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(r,n){a.Credentials.call(this),this.loadMasterCredentials(n),this.expired=!0,this.params=r||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.masterCredentials.get(function(){n.service.config.credentials=n.masterCredentials,(n.params.RoleArn?n.service.assumeRole:n.service.getSessionToken).call(n.service,function(l,e){l||n.service.credentialsFrom(e,n),r(l)})})},loadMasterCredentials:function(r){for(this.masterCredentials=r||a.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new a.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new O({params:this.params})}})},42966:(le,k,y)=>{var a=y(497),O=y(48020);a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function(r,n){a.Credentials.call(this),this.expired=!0,this.params=r,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=a.util.copy(n||{})},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var n=this;n.createClients(),n.service.assumeRoleWithWebIdentity(function(o,l){n.data=null,o||(n.data=l,n.service.credentialsFrom(l,n)),r(o)})},createClients:function(){if(!this.service){var m=a.util.merge({},this._clientConfig);m.params=this.params,this.service=new O(m)}}})},47315:(le,k,y)=>{var a=y(497),O=y(33123),m=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function r(R){var x=R.service,P=x.api||{},V={};return x.config.region&&(V.region=x.config.region),P.serviceId&&(V.serviceId=P.serviceId),x.config.credentials.accessKeyId&&(V.accessKeyId=x.config.credentials.accessKeyId),V}function n(R,x,P){!P||null==x||"structure"===P.type&&P.required&&P.required.length>0&&O.arrayEach(P.required,function(W){var V=P.members[W];!0===V.endpointDiscoveryId?R[V.isLocationName?V.name:W]=String(x[W]):n(R,x[W],V)})}function o(R,x){var P={};return n(P,R.params,x),P}function l(R){var x=R.service,P=x.api,W=P.operations?P.operations[R.operation]:void 0,Y=o(R,W?W.input:void 0),j=r(R);Object.keys(Y).length>0&&(j=O.update(j,Y),W&&(j.operation=W.name));var E=a.endpointCache.get(j);if(!E||1!==E.length||""!==E[0].Address)if(E&&E.length>0)R.httpRequest.updateEndpoint(E[0].Address);else{var C=x.makeRequest(P.endpointOperation,{Operation:W.name,Identifiers:Y});h(C),C.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),C.removeListener("retry",a.EventListeners.Core.RETRY_CHECK),a.endpointCache.put(j,[{Address:"",CachePeriodInMinutes:1}]),C.send(function(p,_){_&&_.Endpoints?a.endpointCache.put(j,_.Endpoints):p&&a.endpointCache.put(j,[{Address:"",CachePeriodInMinutes:1}])})}}var e={};function i(R,x){var P=R.service,W=P.api,V=W.operations?W.operations[R.operation]:void 0,j=o(R,V?V.input:void 0),E=r(R);Object.keys(j).length>0&&(E=O.update(E,j),V&&(E.operation=V.name));var C=a.EndpointCache.getKeyString(E),p=a.endpointCache.get(C);if(p&&1===p.length&&""===p[0].Address)return e[C]||(e[C]=[]),void e[C].push({request:R,callback:x});if(p&&p.length>0)R.httpRequest.updateEndpoint(p[0].Address),x();else{var _=P.makeRequest(W.endpointOperation,{Operation:V.name,Identifiers:j});_.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),h(_),a.endpointCache.put(C,[{Address:"",CachePeriodInMinutes:60}]),_.send(function(v,F){v?(R.response.error=O.error(v,{retryable:!1}),a.endpointCache.remove(E),e[C]&&(O.arrayEach(e[C],function(Q){Q.request.response.error=O.error(v,{retryable:!1}),Q.callback()}),delete e[C])):F&&(a.endpointCache.put(C,F.Endpoints),R.httpRequest.updateEndpoint(F.Endpoints[0].Address),e[C])&&(O.arrayEach(e[C],function(J){J.request.httpRequest.updateEndpoint(F.Endpoints[0].Address),J.callback()}),delete e[C]),x()})}}function h(R){var P=R.service.api.apiVersion;P&&!R.httpRequest.headers["x-amz-api-version"]&&(R.httpRequest.headers["x-amz-api-version"]=P)}function d(R){var x=R.error;if(x&&("InvalidEndpointException"===x.code||421===R.httpResponse.statusCode)){var W=R.request,V=W.service.api.operations||{},j=o(W,V[W.operation]?V[W.operation].input:void 0),E=r(W);Object.keys(j).length>0&&(E=O.update(E,j),V[W.operation]&&(E.operation=V[W.operation].name)),a.endpointCache.remove(E)}}function b(R){return["false","0"].indexOf(R)>=0}le.exports={discoverEndpoint:function M(R,x){var P=R.service||{};if(function g(R){if(R._originalConfig&&R._originalConfig.endpoint&&!0===R._originalConfig.endpointDiscoveryEnabled)throw O.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(a.config.endpoint||(a.config[R.serviceIdentifier]||{}).endpoint||R._originalConfig&&R._originalConfig.endpoint)}(P)||R.isPresigned())return x();var V=(P.api.operations||{})[R.operation],Y=V?V.endpointDiscoveryRequired:"NULL",j=function T(R){var x=R.service||{};if(void 0!==x.config.endpointDiscoveryEnabled)return x.config.endpointDiscoveryEnabled;if(!O.isBrowser()){for(var P=0;P<m.length;P++){var W=m[P];if(Object.prototype.hasOwnProperty.call(process.env,W)){if(""===process.env[W]||void 0===process.env[W])throw O.error(new Error,{code:"ConfigurationException",message:"environmental variable "+W+" cannot be set to nothing"});return!b(process.env[W])}}var V={};try{V=a.util.iniLoader?a.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[a.util.sharedConfigFileEnv]}):{}}catch{}var Y=V[process.env.AWS_PROFILE||a.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(Y,"endpoint_discovery_enabled")){if(void 0===Y.endpoint_discovery_enabled)throw O.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!b(Y.endpoint_discovery_enabled)}}}(R),E=P.api.hasRequiredEndpointDiscovery;switch((j||E)&&R.httpRequest.appendToUserAgent("endpoint-discovery"),Y){case"OPTIONAL":(j||E)&&(l(R),R.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d)),x();break;case"REQUIRED":if(!1===j){R.response.error=O.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+P.api.className+"."+R.operation+"() requires it. Please check your configurations."}),x();break}R.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d),i(R,x);break;default:x()}},requiredDiscoverEndpoint:i,optionalDiscoverEndpoint:l,marshallCustomIdentifiers:o,getCacheKey:r,invalidateCachedEndpoint:d}},77171:(le,k,y)=>{var a=y(64877).eventMessageChunker,O=y(76506).parseEvent;le.exports={createEventStream:function m(r,n,o){for(var l=a(r),e=[],i=0;i<l.length;i++)e.push(O(n,l[i],o));return e}}},64877:le=>{le.exports={eventMessageChunker:function k(y){for(var a=[],O=0;O<y.length;){var m=y.readInt32BE(O),r=y.slice(O,m+O);O+=m,a.push(r)}return a}}},17168:(le,k,y)=>{var a=y(497).util,O=a.buffer.toBuffer;function m(n){if(8!==n.length)throw new Error("Int64 buffers must be exactly 8 bytes");a.Buffer.isBuffer(n)||(n=O(n)),this.bytes=n}function r(n){for(var o=0;o<8;o++)n[o]^=255;for(o=7;o>-1&&(n[o]++,0===n[o]);o--);}m.fromNumber=function(n){if(n>0x8000000000000000||n<-0x8000000000000000)throw new Error(n+" is too large (or, if negative, too small) to represent as an Int64");for(var o=new Uint8Array(8),l=7,e=Math.abs(Math.round(n));l>-1&&e>0;l--,e/=256)o[l]=e;return n<0&&r(o),new m(o)},m.prototype.valueOf=function(){var n=this.bytes.slice(0),o=128&n[0];return o&&r(n),parseInt(n.toString("hex"),16)*(o?-1:1)},m.prototype.toString=function(){return String(this.valueOf())},le.exports={Int64:m}},76506:(le,k,y)=>{var a=y(69081).parseMessage;le.exports={parseEvent:function O(r,n,o){var l=a(n),e=l.headers[":message-type"];if(e){if("error"===e.value)throw function m(r){var n=r.headers[":error-code"],o=r.headers[":error-message"],l=new Error(o.value||o);return l.code=l.name=n.value||n,l}(l);if("event"!==e.value)return}var i=l.headers[":event-type"],h=o.members[i.value];if(h){var d={},g=h.eventPayloadMemberName;if(g){var b=h.members[g];d[g]="binary"===b.type?l.body:r.parse(l.body.toString(),b)}for(var T=h.eventHeaderMemberNames,M=0;M<T.length;M++){var R=T[M];l.headers[R]&&(d[R]=h.members[R].toType(l.headers[R].value))}var x={};return x[i.value]=d,x}}}},69081:(le,k,y)=>{var a=y(17168).Int64,O=y(15228).splitMessage,m="boolean",r="byte",n="short",o="integer",l="long",e="binary",i="string",h="timestamp",d="uuid";function g(T){for(var M={},R=0;R<T.length;){var x=T.readUInt8(R++),P=T.slice(R,R+x).toString();switch(R+=x,T.readUInt8(R++)){case 0:M[P]={type:m,value:!0};break;case 1:M[P]={type:m,value:!1};break;case 2:M[P]={type:r,value:T.readInt8(R++)};break;case 3:M[P]={type:n,value:T.readInt16BE(R)},R+=2;break;case 4:M[P]={type:o,value:T.readInt32BE(R)},R+=4;break;case 5:M[P]={type:l,value:new a(T.slice(R,R+8))},R+=8;break;case 6:var W=T.readUInt16BE(R);M[P]={type:e,value:T.slice(R+=2,R+W)},R+=W;break;case 7:var V=T.readUInt16BE(R);M[P]={type:i,value:T.slice(R+=2,R+V).toString()},R+=V;break;case 8:M[P]={type:h,value:new Date(new a(T.slice(R,R+8)).valueOf())},R+=8;break;case 9:var Y=T.slice(R,R+16).toString("hex");R+=16,M[P]={type:d,value:Y.substr(0,8)+"-"+Y.substr(8,4)+"-"+Y.substr(12,4)+"-"+Y.substr(16,4)+"-"+Y.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return M}le.exports={parseMessage:function b(T){var M=O(T);return{headers:g(M.headers),body:M.body}}}},15228:(le,k,y)=>{var a=y(497).util,O=a.buffer.toBuffer;le.exports={splitMessage:function l(e){if(a.Buffer.isBuffer(e)||(e=O(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var i=e.readUInt32BE(8);if(i!==a.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+i+") does not match the calculated CRC32 checksum.");var h=e.readUInt32BE(e.length-4);if(h!==a.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+h);var g=12+e.readUInt32BE(4);return{headers:e.slice(12,g),body:e.slice(g,e.length-4)}}}},68935:(le,k,y)=>{var a=y(497),O=y(35215),m=y(47315).discoverEndpoint;a.EventListeners={Core:{}},a.EventListeners={Core:(new O).addNamedListeners(function(n,o){o("VALIDATE_CREDENTIALS","validate",function(i,h){if(!i.service.api.signatureVersion&&!i.service.config.signatureVersion)return h();i.service.config.getCredentials(function(d){d&&(i.response.error=a.util.error(d,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),h()})}),n("VALIDATE_REGION","validate",function(i){if(!i.service.isGlobalEndpoint){var h=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);i.service.config.region?h.test(i.service.config.region)||(i.response.error=a.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):i.response.error=a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),n("BUILD_IDEMPOTENCY_TOKENS","validate",function(i){if(i.service.api.operations){var h=i.service.api.operations[i.operation];if(h){var d=h.idempotentMembers;if(d.length){for(var g=a.util.copy(i.params),b=0,T=d.length;b<T;b++)g[d[b]]||(g[d[b]]=a.util.uuid.v4());i.params=g}}}}),n("VALIDATE_PARAMETERS","validate",function(i){if(i.service.api.operations){var h=i.service.api.operations[i.operation].input;new a.ParamValidator(i.service.config.paramValidation).validate(h,i.params)}}),n("COMPUTE_CHECKSUM","afterBuild",function(i){if(i.service.api.operations){var h=i.service.api.operations[i.operation];if(h){var d=i.httpRequest.body,g=d&&(a.util.Buffer.isBuffer(d)||"string"==typeof d),b=i.httpRequest.headers;if(h.httpChecksumRequired&&i.service.config.computeChecksums&&g&&!b["Content-MD5"]){var T=a.util.crypto.md5(d,"base64");b["Content-MD5"]=T}}}}),o("COMPUTE_SHA256","afterBuild",function(i,h){if(i.haltHandlersOnError(),i.service.api.operations){var d=i.service.api.operations[i.operation],g=d?d.authtype:"";if(!i.service.api.signatureVersion&&!g&&!i.service.config.signatureVersion)return h();if(i.service.getSignerClass(i)===a.Signers.V4){var b=i.httpRequest.body||"";if(g.indexOf("unsigned-body")>=0)return i.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",h();a.util.computeSha256(b,function(T,M){T?h(T):(i.httpRequest.headers["X-Amz-Content-Sha256"]=M,h())})}else h()}}),n("SET_CONTENT_LENGTH","afterBuild",function(i){var h=function r(n){if(!n.service.api.operations)return"";var o=n.service.api.operations[n.operation];return o?o.authtype:""}(i),d=a.util.getRequestPayloadShape(i);if(void 0===i.httpRequest.headers["Content-Length"])try{var g=a.util.string.byteLength(i.httpRequest.body);i.httpRequest.headers["Content-Length"]=g}catch(b){if(d&&d.isStreaming){if(d.requiresLength)throw b;if(h.indexOf("unsigned-body")>=0)return void(i.httpRequest.headers["Transfer-Encoding"]="chunked");throw b}throw b}}),n("SET_HTTP_HOST","afterBuild",function(i){i.httpRequest.headers.Host=i.httpRequest.endpoint.host}),n("SET_TRACE_ID","afterBuild",function(i){var h="X-Amzn-Trace-Id";if(a.util.isNode()&&!Object.hasOwnProperty.call(i.httpRequest.headers,h)){var b=process.env.AWS_LAMBDA_FUNCTION_NAME,T=process.env._X_AMZN_TRACE_ID;"string"==typeof b&&b.length>0&&"string"==typeof T&&T.length>0&&(i.httpRequest.headers[h]=T)}}),n("RESTART","restart",function(){var i=this.response.error;!i||!i.retryable||(this.httpRequest=new a.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),o("DISCOVER_ENDPOINT","sign",m,!0),o("SIGN","sign",function(i,h){var d=i.service,b=(i.service.api.operations||{})[i.operation];if(!(d.api.signatureVersion||b&&b.authtype||d.config.signatureVersion))return h();d.config.getCredentials(function(M,R){if(M)return i.response.error=M,h();try{var x=d.getSkewCorrectedDate(),W=new(d.getSignerClass(i))(i.httpRequest,d.getSigningName(i),{signatureCache:d.config.signatureCache,operation:b,signatureVersion:d.api.signatureVersion});W.setServiceClientId(d._clientId),delete i.httpRequest.headers.Authorization,delete i.httpRequest.headers.Date,delete i.httpRequest.headers["X-Amz-Date"],W.addAuthorization(R,x),i.signedAt=x}catch(V){i.response.error=V}h()})}),n("VALIDATE_RESPONSE","validateResponse",function(i){this.service.successfulResponse(i,this)?(i.data={},i.error=null):(i.data=null,i.error=a.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),n("ERROR","error",function(i,h){var d=h.request.service.api.errorCodeMapping;if(d&&i&&i.code){var g=d[i.code];g&&(h.error.code=g.code)}},!0),o("SEND","send",function(i,h){function d(R){i.httpResponse.stream=R;var x=i.request.httpRequest.stream,P=i.request.service,Y=P.api.operations[i.request.operation]||{};R.on("headers",function(E,C,p){if(i.request.emit("httpHeaders",[E,C,i,p]),!i.httpResponse.streaming)if(2===a.HttpClient.streamsApiVersion){if(Y.hasEventOutput&&P.successfulResponse(i))return i.request.emit("httpDone"),void h();R.on("readable",function(){var v=R.read();null!==v&&i.request.emit("httpData",[v,i])})}else R.on("data",function(v){i.request.emit("httpData",[v,i])})}),R.on("end",function(){if(!x||!x.didCallback){if(2===a.HttpClient.streamsApiVersion&&Y.hasEventOutput&&P.successfulResponse(i))return;i.request.emit("httpDone"),h()}})}function b(R){"RequestAbortedError"!==R.code&&(R=a.util.error(R,{code:"TimeoutError"===R.code?R.code:"NetworkingError",region:i.request.httpRequest.region,hostname:i.request.httpRequest.endpoint.hostname,retryable:!0})),i.error=R,i.request.emit("httpError",[i.error,i],function(){h()})}function T(){var R=a.HttpClient.getInstance(),x=i.request.service.config.httpOptions||{};try{!function g(R){R.on("sendProgress",function(P){i.request.emit("httpUploadProgress",[P,i])}),R.on("receiveProgress",function(P){i.request.emit("httpDownloadProgress",[P,i])})}(R.handleRequest(i.request.httpRequest,x,d,b))}catch(W){b(W)}}i.httpResponse._abortCallback=h,i.error=null,i.data=null,(i.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(R){R?h(R):T()}):T()}),n("HTTP_HEADERS","httpHeaders",function(i,h,d,g){d.httpResponse.statusCode=i,d.httpResponse.statusMessage=g,d.httpResponse.headers=h,d.httpResponse.body=a.util.buffer.toBuffer(""),d.httpResponse.buffers=[],d.httpResponse.numBytes=0;var b=h.date||h.Date,T=d.request.service;if(b){var M=Date.parse(b);T.config.correctClockSkew&&T.isClockSkewed(M)&&T.applyClockOffset(M)}}),n("HTTP_DATA","httpData",function(i,h){i&&(a.util.isNode()&&(h.httpResponse.numBytes+=i.length,h.request.emit("httpDownloadProgress",[{loaded:h.httpResponse.numBytes,total:h.httpResponse.headers["content-length"]},h])),h.httpResponse.buffers.push(a.util.buffer.toBuffer(i)))}),n("HTTP_DONE","httpDone",function(i){if(i.httpResponse.buffers&&i.httpResponse.buffers.length>0){var h=a.util.buffer.concat(i.httpResponse.buffers);i.httpResponse.body=h}delete i.httpResponse.numBytes,delete i.httpResponse.buffers}),n("FINALIZE_ERROR","retry",function(i){i.httpResponse.statusCode&&(i.error.statusCode=i.httpResponse.statusCode,void 0===i.error.retryable&&(i.error.retryable=this.service.retryableError(i.error,this)))}),n("INVALIDATE_CREDENTIALS","retry",function(i){if(i.error)switch(i.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":i.error.retryable=!0,i.request.service.config.credentials.expired=!0}}),n("EXPIRED_SIGNATURE","retry",function(i){var h=i.error;h&&"string"==typeof h.code&&"string"==typeof h.message&&h.code.match(/Signature/)&&h.message.match(/expired/)&&(i.error.retryable=!0)}),n("CLOCK_SKEWED","retry",function(i){i.error&&this.service.clockSkewError(i.error)&&this.service.config.correctClockSkew&&(i.error.retryable=!0)}),n("REDIRECT","retry",function(i){i.error&&i.error.statusCode>=300&&i.error.statusCode<400&&i.httpResponse.headers.location&&(this.httpRequest.endpoint=new a.Endpoint(i.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,i.error.redirect=!0,i.error.retryable=!0)}),n("RETRY_CHECK","retry",function(i){i.error&&(i.error.redirect&&i.redirectCount<i.maxRedirects?i.error.retryDelay=0:i.retryCount<i.maxRetries&&(i.error.retryDelay=this.service.retryDelays(i.retryCount,i.error)||0))}),o("RESET_RETRY_STATE","afterRetry",function(i,h){var d,g=!1;i.error&&(d=i.error.retryDelay||0,i.error.retryable&&i.retryCount<i.maxRetries?(i.retryCount++,g=!0):i.error.redirect&&i.redirectCount<i.maxRedirects&&(i.redirectCount++,g=!0)),g&&d>=0?(i.error=null,setTimeout(h,d)):h()})}),CorePost:(new O).addNamedListeners(function(n){n("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),n("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),n("ENOTFOUND_ERROR","httpError",function(l){"NetworkingError"===l.code&&function e(h){return"ENOTFOUND"===h.errno||"number"==typeof h.errno&&"function"==typeof a.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(a.util.getSystemErrorName(h.errno)>=0)}(l)&&(this.response.error=a.util.error(new Error("Inaccessible host: `"+l.hostname+"' at port `"+l.port+"'. This service may not be available in the `"+l.region+"' region."),{code:"UnknownEndpoint",region:l.region,hostname:l.hostname,retryable:!0,originalError:l}))})}),Logger:(new O).addNamedListeners(function(n){n("LOG_REQUEST","complete",function(l){var e=l.request,i=e.service.config.logger;if(i){var g=function d(){var T=(l.request.service.getSkewCorrectedDate().getTime()-e.startTime.getTime())/1e3,M=!!i.isTTY,R=l.httpResponse.statusCode,x=e.params;e.service.api.operations&&e.service.api.operations[e.operation]&&e.service.api.operations[e.operation].input&&(x=h(e.service.api.operations[e.operation].input,e.params));var W=y(29296).inspect(x,!0,null),V="";return M&&(V+="\x1b[33m"),V+="[AWS "+e.service.serviceIdentifier+" "+R,V+=" "+T.toString()+"s "+l.retryCount+" retries]",M&&(V+="\x1b[0;1m"),V+=" "+a.util.string.lowerFirst(e.operation),V+="("+W+")",M&&(V+="\x1b[0m"),V}();"function"==typeof i.log?i.log(g):"function"==typeof i.write&&i.write(g+"\n")}function h(b,T){if(!T)return T;if(b.isSensitive)return"***SensitiveInformation***";switch(b.type){case"structure":var M={};return a.util.each(T,function(P,W){M[P]=Object.prototype.hasOwnProperty.call(b.members,P)?h(b.members[P],W):W}),M;case"list":var R=[];return a.util.arrayEach(T,function(P,W){R.push(h(b.member,P))}),R;case"map":var x={};return a.util.each(T,function(P,W){x[P]=h(b.value,W)}),x;default:return T}}})}),Json:(new O).addNamedListeners(function(n){var o=y(44566);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),Rest:(new O).addNamedListeners(function(n){var o=y(41956);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),RestJson:(new O).addNamedListeners(function(n){var o=y(97969);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),RestXml:(new O).addNamedListeners(function(n){var o=y(26129);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)}),Query:(new O).addNamedListeners(function(n){var o=y(83839);n("BUILD","build",o.buildRequest),n("EXTRACT_DATA","extractData",o.extractData),n("EXTRACT_ERROR","extractError",o.extractError)})}},11202:(le,k,y)=>{var a=y(497),O=a.util.inherit;a.Endpoint=O({constructor:function(r,n){if(a.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof r>"u"||null===r)throw new Error("Invalid endpoint: "+r);if("string"!=typeof r)return a.util.copy(r);r.match(/^http/)||(r=((n&&void 0!==n.sslEnabled?n.sslEnabled:a.config.sslEnabled)?"https":"http")+"://"+r),a.util.update(this,a.util.urlParse(r)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),a.HttpRequest=O({constructor:function(r,n){r=new a.Endpoint(r),this.method="POST",this.path=r.path||"/",this.headers={},this.body="",this.endpoint=r,this.region=n,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=a.util.userAgent()},getUserAgentHeaderName:function(){return(a.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(r){"string"==typeof r&&r&&(this._userAgent+=" "+r),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var r=this.path.split("?",2)[1];return r?(r=a.util.queryStringParse(r),a.util.queryParamsToString(r)):""},updateEndpoint:function(r){var n=new a.Endpoint(r);this.endpoint=n,this.path=n.path||"/",this.headers.Host&&(this.headers.Host=n.host)}}),a.HttpResponse=O({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),a.HttpClient=O({}),a.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},41967:(le,k,y)=>{var a=y(497),O=y(85459).EventEmitter;y(11202),a.XHRClient=a.util.inherit({handleRequest:function(r,n,o,l){var e=this,i=r.endpoint,h=new O,d=i.protocol+"//"+i.hostname;80!==i.port&&443!==i.port&&(d+=":"+i.port),d+=r.path;var g=new XMLHttpRequest,b=!1;r.stream=g,g.addEventListener("readystatechange",function(){try{if(0===g.status)return}catch{return}this.readyState>=this.HEADERS_RECEIVED&&!b&&(h.statusCode=g.status,h.headers=e.parseHeaders(g.getAllResponseHeaders()),h.emit("headers",h.statusCode,h.headers,g.statusText),b=!0),this.readyState===this.DONE&&e.finishRequest(g,h)},!1),g.upload.addEventListener("progress",function(T){h.emit("sendProgress",T)}),g.addEventListener("progress",function(T){h.emit("receiveProgress",T)},!1),g.addEventListener("timeout",function(){l(a.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),g.addEventListener("error",function(){l(a.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),g.addEventListener("abort",function(){l(a.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),o(h),g.open(r.method,d,!1!==n.xhrAsync),a.util.each(r.headers,function(T,M){"Content-Length"!==T&&"User-Agent"!==T&&"Host"!==T&&g.setRequestHeader(T,M)}),n.timeout&&!1!==n.xhrAsync&&(g.timeout=n.timeout),n.xhrWithCredentials&&(g.withCredentials=!0);try{g.responseType="arraybuffer"}catch{}try{r.body?g.send(r.body):g.send()}catch(T){if(!r.body||"object"!=typeof r.body.buffer)throw T;g.send(r.body.buffer)}return h},parseHeaders:function(r){var n={};return a.util.arrayEach(r.split(/\r?\n/),function(o){var l=o.split(":",1)[0],e=o.substring(l.length+2);l.length>0&&(n[l.toLowerCase()]=e)}),n},finishRequest:function(r,n){var o;if("arraybuffer"===r.responseType&&r.response){var l=r.response;o=new a.util.Buffer(l.byteLength);for(var e=new Uint8Array(l),i=0;i<o.length;++i)o[i]=e[i]}try{!o&&"string"==typeof r.responseText&&(o=new a.util.Buffer(r.responseText))}catch{}o&&n.emit("data",o),n.emit("end")}}),a.HttpClient.prototype=a.XHRClient.prototype,a.HttpClient.streamsApiVersion=1},52933:(le,k,y)=>{var a=y(33123);function O(){}function m(e,i){if(i&&null!=e)switch(i.type){case"structure":return function r(e,i){if(i.isDocument)return e;var h={};return a.each(e,function(d,g){var b=i.members[d];if(b){if("body"!==b.location)return;var T=b.isLocationName?b.name:d,M=m(g,b);void 0!==M&&(h[T]=M)}}),h}(e,i);case"map":return function o(e,i){var h={};return a.each(e,function(d,g){var b=m(g,i.value);void 0!==b&&(h[d]=b)}),h}(e,i);case"list":return function n(e,i){var h=[];return a.arrayEach(e,function(d){var g=m(d,i.member);void 0!==g&&h.push(g)}),h}(e,i);default:return function l(e,i){return i.toWireFormat(e)}(e,i)}}O.prototype.build=function(e,i){return JSON.stringify(m(e,i))},le.exports=O},36040:(le,k,y)=>{var a=y(33123);function O(){}function m(e,i){if(i&&void 0!==e)switch(i.type){case"structure":return function r(e,i){if(null!=e){if(i.isDocument)return e;var h={};return a.each(i.members,function(g,b){var T=b.isLocationName?b.name:g;if(Object.prototype.hasOwnProperty.call(e,T)){var R=m(e[T],b);void 0!==R&&(h[g]=R)}}),h}}(e,i);case"map":return function o(e,i){if(null!=e){var h={};return a.each(e,function(d,g){var b=m(g,i.value);h[d]=void 0===b?null:b}),h}}(e,i);case"list":return function n(e,i){if(null!=e){var h=[];return a.arrayEach(e,function(d){var g=m(d,i.member);h.push(void 0===g?null:g)}),h}}(e,i);default:return function l(e,i){return i.toType(e)}(e,i)}}O.prototype.parse=function(e,i){return m(JSON.parse(e),i)},le.exports=O},17986:(le,k,y)=>{var a=y(46015),O=y(80611),m=y(17680),r=y(27705),n=y(67805),o=y(6839),l=y(33123),e=l.property,i=l.memoizedProperty;le.exports=function h(d,g){var b=this;d=d||{},(g=g||{}).api=this,d.metadata=d.metadata||{};var T=g.serviceIdentifier;delete g.serviceIdentifier,e(this,"isApi",!0,!1),e(this,"apiVersion",d.metadata.apiVersion),e(this,"endpointPrefix",d.metadata.endpointPrefix),e(this,"signingName",d.metadata.signingName),e(this,"globalEndpoint",d.metadata.globalEndpoint),e(this,"signatureVersion",d.metadata.signatureVersion),e(this,"jsonVersion",d.metadata.jsonVersion),e(this,"targetPrefix",d.metadata.targetPrefix),e(this,"protocol",d.metadata.protocol),e(this,"timestampFormat",d.metadata.timestampFormat),e(this,"xmlNamespaceUri",d.metadata.xmlNamespace),e(this,"abbreviation",d.metadata.serviceAbbreviation),e(this,"fullName",d.metadata.serviceFullName),e(this,"serviceId",d.metadata.serviceId),T&&o[T]&&e(this,"xmlNoDefaultLists",o[T].xmlNoDefaultLists,!1),i(this,"className",function(){var R=d.metadata.serviceAbbreviation||d.metadata.serviceFullName;return R?("ElasticLoadBalancing"===(R=R.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(R="ELB"),R):null}),e(this,"operations",new a(d.operations,g,function(R,x){return new O(R,x,g)},l.string.lowerFirst,function M(R,x){!0===x.endpointoperation&&e(b,"endpointOperation",l.string.lowerFirst(R)),x.endpointdiscovery&&!b.hasRequiredEndpointDiscovery&&e(b,"hasRequiredEndpointDiscovery",!0===x.endpointdiscovery.required)})),e(this,"shapes",new a(d.shapes,g,function(R,x){return m.create(x,g)})),e(this,"paginators",new a(d.paginators,g,function(R,x){return new r(R,x,g)})),e(this,"waiters",new a(d.waiters,g,function(R,x){return new n(R,x,g)},l.string.lowerFirst)),g.documentation&&(e(this,"documentation",d.documentation),e(this,"documentationUrl",d.documentationUrl)),e(this,"errorCodeMapping",d.awsQueryCompatible)}},46015:(le,k,y)=>{var a=y(33123).memoizedProperty;function O(r,n,o,l){a(this,l(r),function(){return o(r,n)})}le.exports=function m(r,n,o,l,e){for(var h in l=l||String,r)Object.prototype.hasOwnProperty.call(r,h)&&(O.call(this,h,r[h],o,l),e&&e(h,r[h]))}},80611:(le,k,y)=>{var a=y(17680),O=y(33123),m=O.property,r=O.memoizedProperty;le.exports=function n(l,e,i){var h=this;i=i||{},m(this,"name",e.name||l),m(this,"api",i.api,!1),e.http=e.http||{},m(this,"endpoint",e.endpoint),m(this,"httpMethod",e.http.method||"POST"),m(this,"httpPath",e.http.requestUri||"/"),m(this,"authtype",e.authtype||""),m(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),m(this,"httpChecksumRequired",e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired,!1),r(this,"input",function(){return e.input?a.create(e.input,i):new a.create({type:"structure"},i)}),r(this,"output",function(){return e.output?a.create(e.output,i):new a.create({type:"structure"},i)}),r(this,"errors",function(){var g=[];if(!e.errors)return null;for(var b=0;b<e.errors.length;b++)g.push(a.create(e.errors[b],i));return g}),r(this,"paginator",function(){return i.api.paginators[l]}),i.documentation&&(m(this,"documentation",e.documentation),m(this,"documentationUrl",e.documentationUrl)),r(this,"idempotentMembers",function(){var g=[],b=h.input,T=b.members;if(!b.members)return g;for(var M in T)T.hasOwnProperty(M)&&!0===T[M].isIdempotent&&g.push(M);return g}),r(this,"hasEventOutput",function(){return function o(l){var e=l.members,i=l.payload;if(!l.members)return!1;if(i)return e[i].isEventStream;for(var d in e)if(!e.hasOwnProperty(d)&&!0===e[d].isEventStream)return!0;return!1}(h.output)})}},27705:(le,k,y)=>{var a=y(33123).property;le.exports=function O(m,r){a(this,"inputToken",r.input_token),a(this,"limitKey",r.limit_key),a(this,"moreResults",r.more_results),a(this,"outputToken",r.output_token),a(this,"resultKey",r.result_key)}},67805:(le,k,y)=>{var a=y(33123),O=a.property;le.exports=function m(r,n,o){o=o||{},O(this,"name",r),O(this,"api",o.api,!1),n.operation&&O(this,"operation",a.string.lowerFirst(n.operation));var l=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(i){var h=n[i];h&&O(l,i,h)})}},17680:(le,k,y)=>{var a=y(46015),O=y(33123);function m(x,P,W){null!=W&&O.property.apply(this,arguments)}function r(x,P){x.constructor.prototype[P]||O.memoizedProperty.apply(this,arguments)}function n(x,P,W){P=P||{},m(this,"shape",x.shape),m(this,"api",P.api,!1),m(this,"type",x.type),m(this,"enum",x.enum),m(this,"min",x.min),m(this,"max",x.max),m(this,"pattern",x.pattern),m(this,"location",x.location||this.location||"body"),m(this,"name",this.name||x.xmlName||x.queryName||x.locationName||W),m(this,"isStreaming",x.streaming||this.isStreaming||!1),m(this,"requiresLength",x.requiresLength,!1),m(this,"isComposite",x.isComposite||!1),m(this,"isShape",!0,!1),m(this,"isQueryName",Boolean(x.queryName),!1),m(this,"isLocationName",Boolean(x.locationName),!1),m(this,"isIdempotent",!0===x.idempotencyToken),m(this,"isJsonValue",!0===x.jsonvalue),m(this,"isSensitive",!0===x.sensitive||x.prototype&&!0===x.prototype.sensitive),m(this,"isEventStream",Boolean(x.eventstream),!1),m(this,"isEvent",Boolean(x.event),!1),m(this,"isEventPayload",Boolean(x.eventpayload),!1),m(this,"isEventHeader",Boolean(x.eventheader),!1),m(this,"isTimestampFormatSet",Boolean(x.timestampFormat)||x.prototype&&!0===x.prototype.isTimestampFormatSet,!1),m(this,"endpointDiscoveryId",Boolean(x.endpointdiscoveryid),!1),m(this,"hostLabel",Boolean(x.hostLabel),!1),P.documentation&&(m(this,"documentation",x.documentation),m(this,"documentationUrl",x.documentationUrl)),x.xmlAttribute&&m(this,"isXmlAttribute",x.xmlAttribute||!1),m(this,"defaultValue",null),this.toWireFormat=function(V){return V??""},this.toType=function(V){return V}}function o(x){n.apply(this,arguments),m(this,"isComposite",!0),x.flattened&&m(this,"flattened",x.flattened||!1)}function l(x,P){var W=this,V=null,Y=!this.isShape;o.apply(this,arguments),Y&&(m(this,"defaultValue",function(){return{}}),m(this,"members",{}),m(this,"memberNames",[]),m(this,"required",[]),m(this,"isRequired",function(){return!1}),m(this,"isDocument",Boolean(x.document))),x.members&&(m(this,"members",new a(x.members,P,function(j,E){return n.create(E,P,j)})),r(this,"memberNames",function(){return x.xmlOrder||Object.keys(x.members)}),x.event&&(r(this,"eventPayloadMemberName",function(){for(var j=W.members,E=W.memberNames,C=0,p=E.length;C<p;C++)if(j[E[C]].isEventPayload)return E[C]}),r(this,"eventHeaderMemberNames",function(){for(var j=W.members,E=W.memberNames,C=[],p=0,_=E.length;p<_;p++)j[E[p]].isEventHeader&&C.push(E[p]);return C}))),x.required&&(m(this,"required",x.required),m(this,"isRequired",function(j){if(!V){V={};for(var E=0;E<x.required.length;E++)V[x.required[E]]=!0}return V[j]},!1,!0)),m(this,"resultWrapper",x.resultWrapper||null),x.payload&&m(this,"payload",x.payload),"string"==typeof x.xmlNamespace?m(this,"xmlNamespaceUri",x.xmlNamespace):"object"==typeof x.xmlNamespace&&(m(this,"xmlNamespacePrefix",x.xmlNamespace.prefix),m(this,"xmlNamespaceUri",x.xmlNamespace.uri))}function e(x,P){var W=this,V=!this.isShape;if(o.apply(this,arguments),V&&m(this,"defaultValue",function(){return[]}),x.member&&r(this,"member",function(){return n.create(x.member,P)}),this.flattened){var Y=this.name;r(this,"name",function(){return W.member.name||Y})}}function i(x,P){var W=!this.isShape;o.apply(this,arguments),W&&(m(this,"defaultValue",function(){return{}}),m(this,"key",n.create({type:"string"},P)),m(this,"value",n.create({type:"string"},P))),x.key&&r(this,"key",function(){return n.create(x.key,P)}),x.value&&r(this,"value",function(){return n.create(x.value,P)})}function d(){n.apply(this,arguments);var x=["rest-xml","query","ec2"];this.toType=function(P){return P=this.api&&x.indexOf(this.api.protocol)>-1?P||"":P,this.isJsonValue?JSON.parse(P):P&&"function"==typeof P.toString?P.toString():P},this.toWireFormat=function(P){return this.isJsonValue?JSON.stringify(P):P}}function T(){n.apply(this,arguments),this.toType=function(x){var P=O.base64.decode(x);if(this.isSensitive&&O.isNode()&&"function"==typeof O.Buffer.alloc){var W=O.Buffer.alloc(P.length,P);P.fill(0),P=W}return P},this.toWireFormat=O.base64.encode}function M(){T.apply(this,arguments)}function R(){n.apply(this,arguments),this.toType=function(x){return"boolean"==typeof x?x:null==x?null:"true"===x}}n.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},n.types={structure:l,list:e,map:i,boolean:R,timestamp:function h(x){var P=this;if(n.apply(this,arguments),x.timestampFormat)m(this,"timestampFormat",x.timestampFormat);else if(P.isTimestampFormatSet&&this.timestampFormat)m(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)m(this,"timestampFormat","rfc822");else if("querystring"===this.location)m(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":m(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":m(this,"timestampFormat","iso8601")}this.toType=function(W){return null==W?null:"function"==typeof W.toUTCString?W:"string"==typeof W||"number"==typeof W?O.date.parseTimestamp(W):null},this.toWireFormat=function(W){return O.date.format(W,P.timestampFormat)}},float:function g(){n.apply(this,arguments),this.toType=function(x){return null==x?null:parseFloat(x)},this.toWireFormat=this.toType},integer:function b(){n.apply(this,arguments),this.toType=function(x){return null==x?null:parseInt(x,10)},this.toWireFormat=this.toType},string:d,base64:M,binary:T},n.resolve=function(P,W){if(P.shape){var V=W.api.shapes[P.shape];if(!V)throw new Error("Cannot find shape reference: "+P.shape);return V}return null},n.create=function(P,W,V){if(P.isShape)return P;var Y=n.resolve(P,W);if(Y){var j=Object.keys(P);W.documentation||(j=j.filter(function(p){return!p.match(/documentation/)}));var E=function(){Y.constructor.call(this,P,W,V)};return E.prototype=Y,new E}P.type||(P.type=P.members?"structure":P.member?"list":P.key?"map":"string");var C=P.type;if(n.normalizedTypes[P.type]&&(P.type=n.normalizedTypes[P.type]),n.types[P.type])return new n.types[P.type](P,W,V);throw new Error("Unrecognized shape type: "+C)},n.shapes={StructureShape:l,ListShape:e,MapShape:i,StringShape:d,BooleanShape:R,Base64Shape:M},le.exports=n},41440:(le,k,y)=>{var a=y(497);a.ParamValidator=a.util.inherit({constructor:function(m){(!0===m||void 0===m)&&(m={min:!0}),this.validation=m},validate:function(m,r,n){if(this.errors=[],this.validateMember(m,r||{},n||"params"),this.errors.length>1){var o=this.errors.join("\n* ");throw o="There were "+this.errors.length+" validation errors:\n* "+o,a.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(m,r){this.errors.push(a.util.error(new Error(r),{code:m}))},validateStructure:function(m,r,n){if(m.isDocument)return!0;this.validateType(r,n,["object"],"structure");for(var o,l=0;m.required&&l<m.required.length;l++)null==r[o=m.required[l]]&&this.fail("MissingRequiredParameter","Missing required key '"+o+"' in "+n);for(o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var i=r[o],h=m.members[o];if(void 0!==h){var d=[n,o].join(".");this.validateMember(h,i,d)}else null!=i&&this.fail("UnexpectedParameter","Unexpected key '"+o+"' found in "+n)}return!0},validateMember:function(m,r,n){switch(m.type){case"structure":return this.validateStructure(m,r,n);case"list":return this.validateList(m,r,n);case"map":return this.validateMap(m,r,n);default:return this.validateScalar(m,r,n)}},validateList:function(m,r,n){if(this.validateType(r,n,[Array])){this.validateRange(m,r.length,n,"list member count");for(var o=0;o<r.length;o++)this.validateMember(m.member,r[o],n+"["+o+"]")}},validateMap:function(m,r,n){if(this.validateType(r,n,["object"],"map")){var o=0;for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(this.validateMember(m.key,l,n+"[key='"+l+"']"),this.validateMember(m.value,r[l],n+"['"+l+"']"),o++);this.validateRange(m,o,n,"map member count")}},validateScalar:function(m,r,n){switch(m.type){case null:case void 0:case"string":return this.validateString(m,r,n);case"base64":case"binary":return this.validatePayload(r,n);case"integer":case"float":return this.validateNumber(m,r,n);case"boolean":return this.validateType(r,n,["boolean"]);case"timestamp":return this.validateType(r,n,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+m.type+" for "+n)}},validateString:function(m,r,n){var o=["string"];m.isJsonValue&&(o=o.concat(["number","object","boolean"])),null!==r&&this.validateType(r,n,o)&&(this.validateEnum(m,r,n),this.validateRange(m,r.length,n,"string length"),this.validatePattern(m,r,n),this.validateUri(m,r,n))},validateUri:function(m,r,n){"uri"===m.location&&0===r.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+r+'" for '+n)},validatePattern:function(m,r,n){this.validation.pattern&&void 0!==m.pattern&&(new RegExp(m.pattern).test(r)||this.fail("PatternMatchError",'Provided value "'+r+'" does not match regex pattern /'+m.pattern+"/ for "+n))},validateRange:function(m,r,n,o){this.validation.min&&void 0!==m.min&&r<m.min&&this.fail("MinRangeError","Expected "+o+" >= "+m.min+", but found "+r+" for "+n),this.validation.max&&void 0!==m.max&&r>m.max&&this.fail("MaxRangeError","Expected "+o+" <= "+m.max+", but found "+r+" for "+n)},validateEnum:function(m,r,n){this.validation.enum&&void 0!==m.enum&&-1===m.enum.indexOf(r)&&this.fail("EnumError","Found string value of "+r+", but expected "+m.enum.join("|")+" for "+n)},validateType:function(m,r,n,o){if(null==m)return!1;for(var l=!1,e=0;e<n.length;e++){if("string"==typeof n[e]){if(typeof m===n[e])return!0}else if(n[e]instanceof RegExp){if((m||"").toString().match(n[e]))return!0}else{if(m instanceof n[e]||a.util.isType(m,n[e]))return!0;!o&&!l&&(n=n.slice()),n[e]=a.util.typeName(n[e])}l=!0}var i=o;i||(i=n.join(", ").replace(/,([^,]+)$/,", or$1"));var h=i.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+r+" to be a"+h+" "+i),!1},validateNumber:function(m,r,n){if(null!=r){if("string"==typeof r){var o=parseFloat(r);o.toString()===r&&(r=o)}this.validateType(r,n,["number"])&&this.validateRange(m,r,n,"numeric value")}},validatePayload:function(m,r){if(null!=m&&"string"!=typeof m&&(!m||"number"!=typeof m.byteLength)){if(a.util.isNode()){var n=a.util.stream.Stream;if(a.util.Buffer.isBuffer(m)||m instanceof n)return}else if(void 0!==typeof Blob&&m instanceof Blob)return;var o=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(m)for(var l=0;l<o.length;l++)if(a.util.isType(m,o[l])||a.util.typeName(m.constructor)===o[l])return;this.fail("InvalidParameterType","Expected "+r+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},31188:(le,k,y)=>{var a=y(33123),O=y(497);le.exports={populateHostPrefix:function m(e){if(!e.service.config.hostPrefixEnabled)return e;var h=e.service.api.operations[e.operation];if(function r(e){var i=e.service.api,h=i.operations[e.operation],d=i.endpointOperation&&i.endpointOperation===a.string.lowerFirst(h.name);return"NULL"!==h.endpointDiscoveryRequired||!0===d}(e))return e;if(h.endpoint&&h.endpoint.hostPrefix){var g=function n(e,i,h){return a.each(h.members,function(d,g){if(!0===g.hostLabel){if("string"!=typeof i[d]||""===i[d])throw a.error(new Error,{message:"Parameter "+d+" should be a non-empty string.",code:"InvalidParameter"});var b=new RegExp("\\{"+d+"\\}","g");e=e.replace(b,i[d])}}),e}(h.endpoint.hostPrefix,e.params,h.input);(function o(e,i){e.host&&(e.host=i+e.host),e.hostname&&(e.hostname=i+e.hostname)})(e.httpRequest.endpoint,g),function l(e){var i=e.split("."),h=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;a.arrayEach(i,function(d){if(!d.length||d.length<1||d.length>63)throw a.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!h.test(d))throw O.util.error(new Error,{code:"ValidationError",message:d+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},44566:(le,k,y)=>{var a=y(33123),O=y(52933),m=y(36040),r=y(31188).populateHostPrefix;le.exports={buildRequest:function n(e){var i=e.httpRequest,h=e.service.api,d=h.targetPrefix+"."+h.operations[e.operation].name,g=h.jsonVersion||"1.0",b=h.operations[e.operation].input,T=new O;1===g&&(g="1.0"),i.body=T.build(e.params||{},b),i.headers["Content-Type"]="application/x-amz-json-"+g,i.headers["X-Amz-Target"]=d,r(e)},extractError:function o(e){var i={},h=e.httpResponse;if(i.code=h.headers["x-amzn-errortype"]||"UnknownError","string"==typeof i.code&&(i.code=i.code.split(":")[0]),h.body.length>0)try{var d=JSON.parse(h.body.toString()),g=d.__type||d.code||d.Code;g&&(i.code=g.split("#").pop()),i.message="RequestEntityTooLarge"===i.code?"Request body must be less than 1 MB":d.message||d.Message||null}catch{i.statusCode=h.statusCode,i.message=h.statusMessage}else i.statusCode=h.statusCode,i.message=h.statusCode.toString();e.error=a.error(new Error,i)},extractData:function l(e){var i=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(i);else{var d=e.request.service.api.operations[e.request.operation].output||{},g=new m;e.data=g.parse(i,d)}}}},83839:(le,k,y)=>{var a=y(497),O=y(33123),m=y(85785),r=y(17680),n=y(31188).populateHostPrefix;le.exports={buildRequest:function o(i){var h=i.service.api.operations[i.operation],d=i.httpRequest;d.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",d.params={Version:i.service.api.apiVersion,Action:h.name},(new m).serialize(i.params,h.input,function(b,T){d.params[b]=T}),d.body=O.queryParamsToString(d.params),n(i)},extractError:function l(i){var h,d=i.httpResponse.body.toString();if(d.match("<UnknownOperationException"))h={Code:"UnknownOperation",Message:"Unknown operation "+i.request.operation};else try{h=(new a.XML.Parser).parse(d)}catch{h={Code:i.httpResponse.statusCode,Message:i.httpResponse.statusMessage}}h.requestId&&!i.requestId&&(i.requestId=h.requestId),h.Errors&&(h=h.Errors),h.Error&&(h=h.Error),i.error=O.error(new Error,h.Code?{code:h.Code,message:h.Message}:{code:i.httpResponse.statusCode,message:null})},extractData:function e(i){var h=i.request,g=h.service.api.operations[h.operation].output||{},b=g;if(b.resultWrapper){var T=r.create({type:"structure"});T.members[b.resultWrapper]=g,T.memberNames=[b.resultWrapper],O.property(g,"name",g.resultWrapper),g=T}var M=new a.XML.Parser;if(g&&g.members&&!g.members._XAMZRequestId){var R=r.create({type:"string"},{api:{protocol:"query"}},"requestId");g.members._XAMZRequestId=R}var x=M.parse(i.httpResponse.body.toString(),g);i.requestId=x._XAMZRequestId||x.requestId,x._XAMZRequestId&&delete x._XAMZRequestId,b.resultWrapper&&x[b.resultWrapper]&&(O.update(x,x[b.resultWrapper]),delete x[b.resultWrapper]),i.data=x}}},41956:(le,k,y)=>{var a=y(33123),O=y(31188).populateHostPrefix;function r(h,d,g,b){var T=[h,d].join("/");T=T.replace(/\/+/g,"/");var M={},R=!1;if(a.each(g.members,function(P,W){var V=b[P];if(null!=V)if("uri"===W.location){var Y=new RegExp("\\{"+W.name+"(\\+)?\\}");T=T.replace(Y,function(j,E){return(E?a.uriEscapePath:a.uriEscape)(String(V))})}else"querystring"===W.location&&(R=!0,"list"===W.type?M[W.name]=V.map(function(j){return a.uriEscape(W.member.toWireFormat(j).toString())}):"map"===W.type?a.each(V,function(j,E){M[j]=Array.isArray(E)?E.map(function(C){return a.uriEscape(String(C))}):a.uriEscape(String(E))}):M[W.name]=a.uriEscape(W.toWireFormat(V).toString()))}),R){T+=T.indexOf("?")>=0?"&":"?";var x=[];a.arrayEach(Object.keys(M).sort(),function(P){Array.isArray(M[P])||(M[P]=[M[P]]);for(var W=0;W<M[P].length;W++)x.push(a.uriEscape(String(P))+"="+M[P][W])}),T+=x.join("&")}return T}le.exports={buildRequest:function l(h){(function m(h){h.httpRequest.method=h.service.api.operations[h.operation].httpMethod})(h),function n(h){var d=h.service.api.operations[h.operation],b=r(h.httpRequest.endpoint.path,d.httpPath,d.input,h.params);h.httpRequest.path=b}(h),function o(h){a.each(h.service.api.operations[h.operation].input.members,function(g,b){var T=h.params[g];null!=T&&("headers"===b.location&&"map"===b.type?a.each(T,function(M,R){h.httpRequest.headers[b.name+M]=R}):"header"===b.location&&(T=b.toWireFormat(T).toString(),b.isJsonValue&&(T=a.base64.encode(T)),h.httpRequest.headers[b.name]=T))})}(h),O(h)},extractError:function e(){},extractData:function i(h){var d=h.request,g={},b=h.httpResponse,M=d.service.api.operations[d.operation].output,R={};a.each(b.headers,function(x,P){R[x.toLowerCase()]=P}),a.each(M.members,function(x,P){var W=(P.name||x).toLowerCase();if("headers"===P.location&&"map"===P.type){g[x]={};var Y=new RegExp("^"+(P.isLocationName?P.name:"")+"(.+)","i");a.each(b.headers,function(E,C){var p=E.match(Y);null!==p&&(g[x][p[1]]=C)})}else if("header"===P.location){if(void 0!==R[W]){var j=P.isJsonValue?a.base64.decode(R[W]):R[W];g[x]=P.toType(j)}}else"statusCode"===P.location&&(g[x]=parseInt(b.statusCode,10))}),h.data=g},generateURI:r}},97969:(le,k,y)=>{var a=y(33123),O=y(41956),m=y(44566),r=y(52933),n=y(36040);function l(d,g){d.httpRequest.headers["Content-Type"]||(d.httpRequest.headers["Content-Type"]=g?"binary/octet-stream":"application/json")}le.exports={buildRequest:function e(d){O.buildRequest(d),["GET","HEAD","DELETE"].indexOf(d.httpRequest.method)<0&&function o(d){var g=new r,b=d.service.api.operations[d.operation].input;if(b.payload){var T,M=b.members[b.payload];T=d.params[b.payload],"structure"===M.type?(d.httpRequest.body=g.build(T||{},M),l(d)):void 0!==T&&(d.httpRequest.body=T,("binary"===M.type||M.isStreaming)&&l(d,!0))}else d.httpRequest.body=g.build(d.params,b),l(d)}(d)},extractError:function i(d){m.extractError(d)},extractData:function h(d){O.extractData(d);var g=d.request,T=g.service.api.operations[g.operation].output||{};if(T.payload){var x=T.members[T.payload],P=d.httpResponse.body;if(x.isEventStream)M=new n,d.data[payload]=a.createEventStream(2===AWS.HttpClient.streamsApiVersion?d.httpResponse.stream:P,M,x);else if("structure"===x.type||"list"===x.type){var M=new n;d.data[T.payload]=M.parse(P,x)}else d.data[T.payload]="binary"===x.type||x.isStreaming?P:x.toType(P)}else{var W=d.data;m.extractData(d),d.data=a.merge(W,d.data)}}}},26129:(le,k,y)=>{var a=y(497),O=y(33123),m=y(41956);le.exports={buildRequest:function n(e){m.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function r(e){var i=e.service.api.operations[e.operation].input,h=new a.XML.Builder,d=e.params,g=i.payload;if(g){var b=i.members[g];if(void 0===(d=d[g]))return;e.httpRequest.body="structure"===b.type?h.toXML(d,b,b.name,!0):d}else e.httpRequest.body=h.toXML(d,i,i.name||i.shape||O.string.upperFirst(e.operation)+"Request")}(e)},extractError:function o(e){var i;m.extractError(e);try{i=(new a.XML.Parser).parse(e.httpResponse.body.toString())}catch{i={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}i.Errors&&(i=i.Errors),i.Error&&(i=i.Error),e.error=O.error(new Error,i.Code?{code:i.Code,message:i.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function l(e){m.extractData(e);var i,h=e.request,d=e.httpResponse.body,b=h.service.api.operations[h.operation].output,M=b.payload;if(M){var R=b.members[M];R.isEventStream?(i=new a.XML.Parser,e.data[M]=O.createEventStream(2===a.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,i,R)):"structure"===R.type?(i=new a.XML.Parser,e.data[M]=i.parse(d.toString(),R)):e.data[M]="binary"===R.type||R.isStreaming?d:R.toType(d)}else if(d.length>0){var x=(i=new a.XML.Parser).parse(d.toString(),b);O.update(e.data,x)}}}},85785:(le,k,y)=>{var a=y(33123);function O(){}function m(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function r(e,i,h,d){a.each(h.members,function(g,b){var T=i[g];if(null!=T){var M=m(b);l(M=e?e+"."+M:M,T,b,d)}})}function l(e,i,h,d){null!=i&&("structure"===h.type?r(e,i,h,d):"list"===h.type?function o(e,i,h,d){var g=h.member||{};0!==i.length?a.arrayEach(i,function(b,T){var M="."+(T+1);if("ec2"===h.api.protocol)M+="";else if(h.flattened){if(g.name){var R=e.split(".");R.pop(),R.push(m(g)),e=R.join(".")}}else M="."+(g.name?g.name:"member")+M;l(e+M,b,g,d)}):d.call(this,e,null)}(e,i,h,d):"map"===h.type?function n(e,i,h,d){var g=1;a.each(i,function(b,T){var R=(h.flattened?".":".entry.")+g+++".",P=R+(h.value.name||"value");l(e+(R+(h.key.name||"key")),b,h.key,d),l(e+P,T,h.value,d)})}(e,i,h,d):d(e,h.toWireFormat(i).toString()))}O.prototype.serialize=function(e,i,h){r("",e,i,h)},le.exports=O},16288:le=>{le.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},92216:le=>{le.exports={isFipsRegion:function k(O){return"string"==typeof O&&(O.startsWith("fips-")||O.endsWith("-fips"))},isGlobalRegion:function y(O){return"string"==typeof O&&["aws-global","aws-us-gov-global"].includes(O)},getRealRegion:function a(O){return["fips-aws-global","aws-fips","aws-global"].includes(O)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(O)?"us-gov-west-1":O.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},77245:(le,k,y)=>{var a=y(33123),O=y(85595);function n(e,i){a.each(i,function(h,d){"globalEndpoint"!==h&&null==e.config[h]&&(e.config[h]=d)})}le.exports={configureEndpoint:function o(e){for(var i=function r(e){var i=e.config.region,h=function m(e){if(!e)return null;var i=e.split("-");return i.length<3?null:i.slice(0,i.length-2).join("-")+"-*"}(i),d=e.api.endpointPrefix;return[[i,d],[h,d],[i,"*"],[h,"*"],["*",d],["*","*"]].map(function(g){return g[0]&&g[1]?g.join("/"):null})}(e),h=e.config.useFipsEndpoint,d=e.config.useDualstackEndpoint,g=0;g<i.length;g++){var b=i[g];if(b){var T=h?d?O.dualstackFipsRules:O.fipsRules:d?O.dualstackRules:O.rules;if(Object.prototype.hasOwnProperty.call(T,b)){var M=T[b];return"string"==typeof M&&(M=O.patterns[M]),e.isGlobalEndpoint=!!M.globalEndpoint,M.signingRegion&&(e.signingRegion=M.signingRegion),M.signatureVersion||(M.signatureVersion="v4"),void n(e,M)}}}},getEndpointSuffix:function l(e){for(var i={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},d=Object.keys(i),g=0;g<d.length;g++){var b=RegExp(d[g]),T=i[d[g]];if(b.test(e))return T}return"amazonaws.com"}}},18913:(le,k,y)=>{var a=y(497),O=y(85488),m=a.util.inherit,r=a.util.domain,n=y(70946),o={success:1,error:1,complete:1},e=new O;e.setupStates=function(){var i=function(h,d){var g=this;g._haltHandlersOnError=!1,g.emit(g._asm.currentState,function(b){if(b)if(function l(i){return Object.prototype.hasOwnProperty.call(o,i._asm.currentState)}(g)){if(!(r&&g.domain instanceof r.Domain))throw b;b.domainEmitter=g,b.domain=g.domain,b.domainThrown=!1,g.domain.emit("error",b)}else g.response.error=b,d(b);else d(g.response.error)})};this.addState("validate","build","error",i),this.addState("build","afterBuild","restart",i),this.addState("afterBuild","sign","restart",i),this.addState("sign","send","retry",i),this.addState("retry","afterRetry","afterRetry",i),this.addState("afterRetry","sign","error",i),this.addState("send","validateResponse","retry",i),this.addState("validateResponse","extractData","extractError",i),this.addState("extractError","extractData","retry",i),this.addState("extractData","success","retry",i),this.addState("restart","build","error",i),this.addState("success","complete","complete",i),this.addState("error","complete","complete",i),this.addState("complete",null,null,i)},e.setupStates(),a.Request=m({constructor:function(h,d,g){var b=h.endpoint,T=h.config.region,M=h.config.customUserAgent;h.signingRegion?T=h.signingRegion:h.isGlobalEndpoint&&(T="us-east-1"),this.domain=r&&r.active,this.service=h,this.operation=d,this.params=g||{},this.httpRequest=new a.HttpRequest(b,T),this.httpRequest.appendToUserAgent(M),this.startTime=h.getSkewCorrectedDate(),this.response=new a.Response(this),this._asm=new O(e.states,"validate"),this._haltHandlersOnError=!1,a.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(h){return h&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(d){h.call(d,d.error,d.data)})),this.runTo(),this.response},build:function(h){return this.runTo("send",h)},runTo:function(h,d){return this._asm.runTo(h,d,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(d){d.error=a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&!this.httpRequest.stream.didCallback&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function(h){h=a.util.fn.makeAsync(h,3),this.on("complete",function d(g){h.call(g,g.error,g.data,function(b){!1!==b&&(g.hasNextPage()?g.nextPage().on("complete",d).send():h.call(g,null,null,a.util.fn.noop))})}).send()},eachItem:function(h){var d=this;this.eachPage(function g(b,T){if(b)return h(b,null);if(null===T)return h(null,null);var R=d.service.paginationConfig(d.operation).resultKey;Array.isArray(R)&&(R=R[0]);var x=n.search(T,R),P=!0;return a.util.arrayEach(x,function(W){if(!1===(P=h(null,W)))return a.util.abort}),P})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var h=a.util.stream,d=this,g=null;return 2===a.HttpClient.streamsApiVersion?(g=new h.PassThrough,process.nextTick(function(){d.send()})):((g=new h.Stream).readable=!0,g.sent=!1,g.on("newListener",function(b){!g.sent&&"data"===b&&(g.sent=!0,process.nextTick(function(){d.send()}))})),this.on("error",function(b){g.emit("error",b)}),this.on("httpHeaders",function(T,M,R){if(T<300){d.removeListener("httpData",a.EventListeners.Core.HTTP_DATA),d.removeListener("httpError",a.EventListeners.Core.HTTP_ERROR),d.on("httpError",function(C){R.error=C,R.error.retryable=!1});var P,x=!1;if("HEAD"!==d.httpRequest.method&&(P=parseInt(M["content-length"],10)),void 0!==P&&!isNaN(P)&&P>=0){x=!0;var W=0}var V=function(){x&&W!==P?g.emit("error",a.util.error(new Error("Stream content length mismatch. Received "+W+" of "+P+" bytes."),{code:"StreamContentLengthMismatch"})):2===a.HttpClient.streamsApiVersion?g.end():g.emit("end")},Y=R.httpResponse.createUnbufferedStream();if(2===a.HttpClient.streamsApiVersion)if(x){var j=new h.PassThrough;j._write=function(E){return E&&E.length&&(W+=E.length),h.PassThrough.prototype._write.apply(this,arguments)},j.on("end",V),g.on("error",function(E){x=!1,Y.unpipe(j),j.emit("end"),j.end()}),Y.pipe(j).pipe(g,{end:!1})}else Y.pipe(g);else x&&Y.on("data",function(E){E&&E.length&&(W+=E.length)}),Y.on("data",function(E){g.emit("data",E)}),Y.on("end",V);Y.on("error",function(E){x=!1,g.emit("error",E)})}}),g},emitEvent:function(h,d,g){"function"==typeof d&&(g=d,d=null),g||(g=function(){}),d||(d=this.eventParameters(h,this.response)),a.SequentialExecutor.prototype.emit.call(this,h,d,function(T){T&&(this.response.error=T),g.call(this,T)})},eventParameters:function(h){switch(h){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function(h,d){return!d&&"function"==typeof h&&(d=h,h=null),(new a.Signers.Presign).sign(this.toGet(),h,d)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",a.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",a.EventListeners.Core.SIGN),this},toGet:function(){return("query"===this.service.api.protocol||"ec2"===this.service.api.protocol)&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function(h){h.httpRequest.method="GET",h.httpRequest.path=h.service.endpoint.path+"?"+h.httpRequest.body,h.httpRequest.body="",delete h.httpRequest.headers["Content-Length"],delete h.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),a.Request.addPromisesToClass=function(h){this.prototype.promise=function(){var g=this;return this.httpRequest.appendToUserAgent("promise"),new h(function(b,T){g.on("complete",function(M){M.error?T(M.error):b(Object.defineProperty(M.data||{},"$response",{value:M}))}),g.runTo()})}},a.Request.deletePromisesFromClass=function(){delete this.prototype.promise},a.util.addPromises(a.Request),a.util.mixin(a.Request,a.SequentialExecutor)},7689:(le,k,y)=>{var a=y(497),O=a.util.inherit,m=y(70946);function r(n){var o=n.request._waiter,e=!1,i="retry";o.config.acceptors.forEach(function(h){if(!e){var d=o.matchers[h.matcher];d&&d(n,h.expected,h.argument)&&(e=!0,i=h.state)}}),!e&&n.error&&(i="failure"),"success"===i?o.setSuccess(n):o.setError(n,"retry"===i)}a.ResourceWaiter=O({constructor:function(o,l){this.service=o,this.state=l,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(n,o,l){try{var e=m.search(n.data,l)}catch{return!1}return m.strictDeepEqual(e,o)},pathAll:function(n,o,l){try{var e=m.search(n.data,l)}catch{return!1}Array.isArray(e)||(e=[e]);var i=e.length;if(!i)return!1;for(var h=0;h<i;h++)if(!m.strictDeepEqual(e[h],o))return!1;return!0},pathAny:function(n,o,l){try{var e=m.search(n.data,l)}catch{return!1}Array.isArray(e)||(e=[e]);for(var i=e.length,h=0;h<i;h++)if(m.strictDeepEqual(e[h],o))return!0;return!1},status:function(n,o){var l=n.httpResponse.statusCode;return"number"==typeof l&&l===o},error:function(n,o){return"string"==typeof o&&n.error?o===n.error.code:o===!!n.error}},listeners:(new a.SequentialExecutor).addNamedListeners(function(n){n("RETRY_CHECK","retry",function(o){o.error&&"ResourceNotReady"===o.error.code&&(o.error.retryDelay=1e3*(o.request._waiter.config.delay||0))}),n("CHECK_OUTPUT","extractData",r),n("CHECK_ERROR","extractError",r)}),wait:function(o,l){"function"==typeof o&&(l=o,o=void 0),o&&o.$waiter&&("number"==typeof(o=a.util.copy(o)).$waiter.delay&&(this.config.delay=o.$waiter.delay),"number"==typeof o.$waiter.maxAttempts&&(this.config.maxAttempts=o.$waiter.maxAttempts),delete o.$waiter);var e=this.service.makeRequest(this.config.operation,o);return e._waiter=this,e.response.maxRetries=this.config.maxAttempts,e.addListeners(this.listeners),l&&e.send(l),e},setSuccess:function(o){o.error=null,o.data=o.data||{},o.request.removeAllListeners("extractData")},setError:function(o,l){o.data=null,o.error=a.util.error(o.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:l})},loadWaiterConfig:function(o){if(!this.service.api.waiters[o])throw new a.util.error(new Error,{code:"StateNotFoundError",message:"State "+o+" not found."});this.config=a.util.copy(this.service.api.waiters[o])}})},27376:(le,k,y)=>{var a=y(497),O=a.util.inherit,m=y(70946);a.Response=O({constructor:function(n){this.request=n,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new a.HttpResponse,n&&(this.maxRetries=n.service.numRetries(),this.maxRedirects=n.service.config.maxRedirects)},nextPage:function(n){var o,l=this.request.service,e=this.request.operation;try{o=l.paginationConfig(e,!0)}catch(g){this.error=g}if(!this.hasNextPage()){if(n)n(this.error,null);else if(this.error)throw this.error;return null}var i=a.util.copy(this.request.params);if(this.nextPageTokens){var h=o.inputToken;"string"==typeof h&&(h=[h]);for(var d=0;d<h.length;d++)i[h[d]]=this.nextPageTokens[d];return l.makeRequest(this.request.operation,i,n)}return n?n(null,null):null},hasNextPage:function(){return this.cacheNextPageTokens(),!!this.nextPageTokens||void 0===this.nextPageTokens&&void 0},cacheNextPageTokens:function(){if(Object.prototype.hasOwnProperty.call(this,"nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var n=this.request.service.paginationConfig(this.request.operation);if(!n)return this.nextPageTokens;if(this.nextPageTokens=null,n.moreResults&&!m.search(this.data,n.moreResults))return this.nextPageTokens;var o=n.outputToken;return"string"==typeof o&&(o=[o]),a.util.arrayEach.call(this,o,function(l){var e=m.search(this.data,l);e&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(e))}),this.nextPageTokens}})},35215:(le,k,y)=>{var a=y(497);a.SequentialExecutor=a.util.inherit({constructor:function(){this._events={}},listeners:function(m){return this._events[m]?this._events[m].slice(0):[]},on:function(m,r,n){return this._events[m]?n?this._events[m].unshift(r):this._events[m].push(r):this._events[m]=[r],this},onAsync:function(m,r,n){return r._isAsync=!0,this.on(m,r,n)},removeListener:function(m,r){var n=this._events[m];if(n){for(var o=n.length,l=-1,e=0;e<o;++e)n[e]===r&&(l=e);l>-1&&n.splice(l,1)}return this},removeAllListeners:function(m){return m?delete this._events[m]:this._events={},this},emit:function(m,r,n){n||(n=function(){});var o=this.listeners(m),l=o.length;return this.callListeners(o,r,n),l>0},callListeners:function(m,r,n,o){var l=this,e=o||null;function i(d){if(d&&(e=a.util.error(e||new Error,d),l._haltHandlersOnError))return n.call(l,e);l.callListeners(m,r,n,e)}for(;m.length>0;){var h=m.shift();if(h._isAsync)return void h.apply(l,r.concat([i]));try{h.apply(l,r)}catch(d){e=a.util.error(e||new Error,d)}if(e&&l._haltHandlersOnError)return void n.call(l,e)}n.call(l,e)},addListeners:function(m){var r=this;return m._events&&(m=m._events),a.util.each(m,function(n,o){"function"==typeof o&&(o=[o]),a.util.arrayEach(o,function(l){r.on(n,l)})}),r},addNamedListener:function(m,r,n,o){return this[m]=n,this.addListener(r,n,o),this},addNamedAsyncListener:function(m,r,n,o){return n._isAsync=!0,this.addNamedListener(m,r,n,o)},addNamedListeners:function(m){var r=this;return m(function(){r.addNamedListener.apply(r,arguments)},function(){r.addNamedAsyncListener.apply(r,arguments)}),this}}),a.SequentialExecutor.prototype.addListener=a.SequentialExecutor.prototype.on,le.exports=a.SequentialExecutor},60199:(le,k,y)=>{var a=y(497),O=y(17986),m=y(77245),r=a.util.inherit,n=0,o=y(92216);a.Service=r({constructor:function(e){if(!this.loadServiceClass)throw a.util.error(new Error,"Service must be constructed with `new' operator");if(e){if(e.region){var i=e.region;o.isFipsRegion(i)&&(e.region=o.getRealRegion(i),e.useFipsEndpoint=!0),o.isGlobalRegion(i)&&(e.region=o.getRealRegion(i))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var h=this.loadServiceClass(e||{});if(h){var d=a.util.copy(e),g=new h(e);return Object.defineProperty(g,"_originalConfig",{get:function(){return d},enumerable:!1,configurable:!0}),g._clientId=++n,g}this.initialize(e)},initialize:function(e){var i=a.config[this.serviceIdentifier];if(this.config=new a.Config(a.config),i&&this.config.update(i,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||m.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),a.SequentialExecutor.call(this),a.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||a.Service._clientSideMonitoring)&&this.publisher){var h=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(g){process.nextTick(function(){h.eventHandler(g)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(g){process.nextTick(function(){h.eventHandler(g)})})}},validateService:function(){},loadServiceClass:function(e){var i=e;if(a.util.isEmpty(this.api)){if(i.apiConfig)return a.Service.defineServiceApi(this.constructor,i.apiConfig);if(this.constructor.services){(i=new a.Config(a.config)).update(e,!0);var h=i.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(h=h||i.apiVersion)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&a.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?a.util.isType(e,Date)&&(e=a.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var i=Object.keys(this.constructor.services).sort(),h=null,d=i.length-1;d>=0;d--)if("*"!==i[d][i[d].length-1]&&(h=i[d]),i[d].substr(0,10)<=e)return h;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,i,h){if("function"==typeof i&&(h=i,i=null),i=i||{},this.config.params){var d=this.api.operations[e];d&&(i=a.util.copy(i),a.util.each(this.config.params,function(b,T){d.input.members[b]&&null==i[b]&&(i[b]=T)}))}var g=new a.Request(this,e,i);return this.addAllRequestListeners(g),this.attachMonitoringEmitter(g),h&&g.send(h),g},makeUnauthenticatedRequest:function(e,i,h){"function"==typeof i&&(h=i,i={});var d=this.makeRequest(e,i).toUnauthenticated();return h?d.send(h):d},waitFor:function(e,i,h){return new a.ResourceWaiter(this,e).wait(i,h)},addAllRequestListeners:function(e){for(var i=[a.events,a.EventListeners.Core,this.serviceInterface(),a.EventListeners.CorePost],h=0;h<i.length;h++)i[h]&&e.addListeners(i[h]);this.config.paramValidation||e.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(a.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var i=e.service.api.operations[e.operation],h={Type:"ApiCall",Api:i?i.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},d=e.response;if(d.httpResponse.statusCode&&(h.FinalHttpStatusCode=d.httpResponse.statusCode),d.error){var g=d.error;d.httpResponse.statusCode>299?(g.code&&(h.FinalAwsException=g.code),g.message&&(h.FinalAwsExceptionMessage=g.message)):((g.code||g.name)&&(h.FinalSdkException=g.code||g.name),g.message&&(h.FinalSdkExceptionMessage=g.message))}return h},apiAttemptEvent:function(e){var i=e.service.api.operations[e.operation],h={Type:"ApiCallAttempt",Api:i?i.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},d=e.response;return d.httpResponse.statusCode&&(h.HttpStatusCode=d.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(h.AccessKey=e.service.config.credentials.accessKeyId),d.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(h.SessionToken=e.httpRequest.headers["x-amz-security-token"]),d.httpResponse.headers["x-amzn-requestid"]&&(h.XAmznRequestId=d.httpResponse.headers["x-amzn-requestid"]),d.httpResponse.headers["x-amz-request-id"]&&(h.XAmzRequestId=d.httpResponse.headers["x-amz-request-id"]),d.httpResponse.headers["x-amz-id-2"]&&(h.XAmzId2=d.httpResponse.headers["x-amz-id-2"])),h},attemptFailEvent:function(e){var i=this.apiAttemptEvent(e),h=e.response,d=h.error;return h.httpResponse.statusCode>299?(d.code&&(i.AwsException=d.code),d.message&&(i.AwsExceptionMessage=d.message)):((d.code||d.name)&&(i.SdkException=d.code||d.name),d.message&&(i.SdkExceptionMessage=d.message)),i},attachMonitoringEmitter:function(e){var i,h,d,g,T,M,b=0,R=this;e.on("validate",function(){g=a.util.realClock.now(),M=Date.now()},!0),e.on("sign",function(){h=a.util.realClock.now(),i=Date.now(),T=e.httpRequest.region,b++},!0),e.on("validateResponse",function(){d=Math.round(a.util.realClock.now()-h)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var W=R.apiAttemptEvent(e);W.Timestamp=i,W.AttemptLatency=d>=0?d:0,W.Region=T,R.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var W=R.attemptFailEvent(e);W.Timestamp=i,d=d||Math.round(a.util.realClock.now()-h),W.AttemptLatency=d>=0?d:0,W.Region=T,R.emit("apiCallAttempt",[W])}),e.addNamedListener("API_CALL","complete",function(){var W=R.apiCallEvent(e);if(W.AttemptCount=b,!(W.AttemptCount<=0)){W.Timestamp=M;var V=Math.round(a.util.realClock.now()-g);W.Latency=V>=0?V:0;var Y=e.response;Y.error&&Y.error.retryable&&"number"==typeof Y.retryCount&&"number"==typeof Y.maxRetries&&Y.retryCount>=Y.maxRetries&&(W.MaxRetriesExceeded=1),R.emit("apiCall",[W])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var h=null,d="";return e&&(d=(h=(e.service.api.operations||{})[e.operation]||null)?h.authtype:""),a.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===d||"v4-unsigned-body"===d?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return a.EventListeners.Query;case"json":return a.EventListeners.Json;case"rest-json":return a.EventListeners.RestJson;case"rest-xml":return a.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,i){return a.util.calculateRetryDelay(e,this.config.retryDelayOptions,i)},retryableError:function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var i=e;return(i=(i=i.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new a.Endpoint(e,this.config)},paginationConfig:function(e,i){var h=this.api.operations[e].paginator;if(!h){if(i){var d=new Error;throw a.util.error(d,"No pagination configuration for "+e)}return null}return h}}),a.util.update(a.Service,{defineMethods:function(e){a.util.each(e.prototype.api.operations,function(h){e.prototype[h]||(e.prototype[h]="none"===e.prototype.api.operations[h].authtype?function(g,b){return this.makeUnauthenticatedRequest(h,g,b)}:function(g,b){return this.makeRequest(h,g,b)})})},defineService:function(e,i,h){a.Service._serviceMap[e]=!0,Array.isArray(i)||(h=i,i=[]);var d=r(a.Service,h||{});if("string"==typeof e?(a.Service.addVersions(d,i),d.serviceIdentifier=d.serviceIdentifier||e):(d.prototype.api=e,a.Service.defineMethods(d)),a.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&a.util.clientSideMonitoring){var b=a.util.clientSideMonitoring.Publisher,M=(0,a.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new b(M),M.enabled&&(a.Service._clientSideMonitoring=!0)}return a.SequentialExecutor.call(d.prototype),a.Service.addDefaultMonitoringListeners(d.prototype),d},addVersions:function(e,i){Array.isArray(i)||(i=[i]),e.services=e.services||{};for(var h=0;h<i.length;h++)void 0===e.services[i[h]]&&(e.services[i[h]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,i,h){var d=r(e,{serviceIdentifier:e.serviceIdentifier});function g(b){d.prototype.api=b.isApi?b:new O(b,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof i){if(h)g(h);else try{g(a.apiLoader(e.serviceIdentifier,i))}catch(b){throw a.util.error(b,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+i})}Object.prototype.hasOwnProperty.call(e.services,i)||(e.apiVersions=e.apiVersions.concat(i).sort()),e.services[i]=d}else g(i);return a.Service.defineMethods(d),d},hasService:function(l){return Object.prototype.hasOwnProperty.call(a.Service._serviceMap,l)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(h){var d=Object.getPrototypeOf(e);d._events&&d.emit("apiCallAttempt",[h])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(h){var d=Object.getPrototypeOf(e);d._events&&d.emit("apiCall",[h])})},_serviceMap:{}}),a.util.mixin(a.Service,a.SequentialExecutor),le.exports=a.Service},25674:(le,k,y)=>{var a=y(497),O=y(91898);a.util.update(a.STS.prototype,{credentialsFrom:function(o,l){return o?(l||(l=new a.TemporaryCredentials),l.expired=!1,l.accessKeyId=o.Credentials.AccessKeyId,l.secretAccessKey=o.Credentials.SecretAccessKey,l.sessionToken=o.Credentials.SessionToken,l.expireTime=o.Credentials.Expiration,l):null},assumeRoleWithWebIdentity:function(o,l){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",o,l)},assumeRoleWithSAML:function(o,l){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",o,l)},setupRequestListeners:function(o){o.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(o){var l=o.service,e=l.config;if(e.stsRegionalEndpoints=O(l._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===e.stsRegionalEndpoints&&l.isGlobalEndpoint){if(!e.region)throw a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=e.endpoint.indexOf(".amazonaws.com"),h=e.endpoint.substring(0,i)+"."+e.region+e.endpoint.substring(i);o.httpRequest.updateEndpoint(h),o.httpRequest.region=e.region}}})},89894:(le,k,y)=>{var a=y(497),m="presigned-expires";function r(o){var l=o.httpRequest.headers[m],e=o.service.getSignerClass(o);if(delete o.httpRequest.headers["User-Agent"],delete o.httpRequest.headers["X-Amz-User-Agent"],e===a.Signers.V4){if(l>604800)throw a.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});o.httpRequest.headers[m]=l}else{if(e!==a.Signers.S3)throw a.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var h=o.service?o.service.getSkewCorrectedDate():a.util.date.getDate();o.httpRequest.headers[m]=parseInt(a.util.date.unixTimestamp(h)+l,10).toString()}}function n(o){var l=o.httpRequest.endpoint,e=a.util.urlParse(o.httpRequest.path),i={};e.search&&(i=a.util.queryStringParse(e.search.substr(1)));var h=o.httpRequest.headers.Authorization.split(" ");if("AWS"===h[0])h=h[1].split(":"),i.Signature=h.pop(),i.AWSAccessKeyId=h.join(":"),a.util.each(o.httpRequest.headers,function(b,T){b===m&&(b="Expires"),0===b.indexOf("x-amz-meta-")&&(delete i[b],b=b.toLowerCase()),i[b]=T}),delete o.httpRequest.headers[m],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===h[0]){h.shift();var g=h.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=g,delete i.Expires}l.pathname=e.pathname,l.search=a.util.queryParamsToString(i)}a.Signers.Presign=(0,a.util.inherit)({sign:function(l,e,i){if(l.httpRequest.headers[m]=e||3600,l.on("build",r),l.on("sign",n),l.removeListener("afterBuild",a.EventListeners.Core.SET_CONTENT_LENGTH),l.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),l.emit("beforePresign",[l]),!i){if(l.build(),l.response.error)throw l.response.error;return a.util.urlFormat(l.httpRequest.endpoint)}l.build(function(){this.response.error?i(this.response.error):i(null,a.util.urlFormat(l.httpRequest.endpoint))})}}),le.exports=a.Signers.Presign},86966:(le,k,y)=>{var a=y(497);a.Signers.RequestSigner=(0,a.util.inherit)({constructor:function(r){this.request=r},setServiceClientId:function(r){this.serviceClientId=r},getServiceClientId:function(){return this.serviceClientId}}),a.Signers.RequestSigner.getVersion=function(r){switch(r){case"v2":return a.Signers.V2;case"v3":return a.Signers.V3;case"s3v4":case"v4":return a.Signers.V4;case"s3":return a.Signers.S3;case"v3https":return a.Signers.V3Https}throw new Error("Unknown signing version "+r)},y(66564),y(77659),y(63116),y(72480),y(58980),y(89894)},58980:(le,k,y)=>{var a=y(497);a.Signers.S3=(0,a.util.inherit)(a.Signers.RequestSigner,{subResources:{acl:1,accelerate:1,analytics:1,cors:1,lifecycle:1,delete:1,inventory:1,location:1,logging:1,metrics:1,notification:1,partNumber:1,policy:1,requestPayment:1,replication:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function(r,n){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=a.util.date.rfc822(n)),r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken);var o=this.sign(r.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+r.accessKeyId+":"+o},stringToSign:function(){var r=this.request,n=[];n.push(r.method),n.push(r.headers["Content-MD5"]||""),n.push(r.headers["Content-Type"]||""),n.push(r.headers["presigned-expires"]||"");var o=this.canonicalizedAmzHeaders();return o&&n.push(o),n.push(this.canonicalizedResource()),n.join("\n")},canonicalizedAmzHeaders:function(){var r=[];a.util.each(this.request.headers,function(o){o.match(/^x-amz-/i)&&r.push(o)}),r.sort(function(o,l){return o.toLowerCase()<l.toLowerCase()?-1:1});var n=[];return a.util.arrayEach.call(this,r,function(o){n.push(o.toLowerCase()+":"+String(this.request.headers[o]))}),n.join("\n")},canonicalizedResource:function(){var r=this.request,n=r.path.split("?"),l=n[1],e="";if(r.virtualHostedBucket&&(e+="/"+r.virtualHostedBucket),e+=n[0],l){var i=[];a.util.arrayEach.call(this,l.split("&"),function(h){var d=h.split("=")[0],g=h.split("=")[1];if(this.subResources[d]||this.responseHeaders[d]){var b={name:d};void 0!==g&&(b.value=this.subResources[d]?g:decodeURIComponent(g)),i.push(b)}}),i.sort(function(h,d){return h.name<d.name?-1:1}),i.length&&(l=[],a.util.arrayEach(i,function(h){l.push(void 0===h.value?h.name:h.name+"="+h.value)}),e+="?"+l.join("&"))}return e},sign:function(r,n){return a.util.crypto.hmac(r,n,"base64","sha1")}}),le.exports=a.Signers.S3},66564:(le,k,y)=>{var a=y(497);a.Signers.V2=(0,a.util.inherit)(a.Signers.RequestSigner,{addAuthorization:function(r,n){n||(n=a.util.date.getDate());var o=this.request;o.params.Timestamp=a.util.date.iso8601(n),o.params.SignatureVersion="2",o.params.SignatureMethod="HmacSHA256",o.params.AWSAccessKeyId=r.accessKeyId,r.sessionToken&&(o.params.SecurityToken=r.sessionToken),delete o.params.Signature,o.params.Signature=this.signature(r),o.body=a.util.queryParamsToString(o.params),o.headers["Content-Length"]=o.body.length},signature:function(r){return a.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push(this.request.endpoint.host.toLowerCase()),r.push(this.request.pathname()),r.push(a.util.queryParamsToString(this.request.params)),r.join("\n")}}),le.exports=a.Signers.V2},77659:(le,k,y)=>{var a=y(497);a.Signers.V3=(0,a.util.inherit)(a.Signers.RequestSigner,{addAuthorization:function(r,n){var o=a.util.date.rfc822(n);this.request.headers["X-Amz-Date"]=o,r.sessionToken&&(this.request.headers["x-amz-security-token"]=r.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(r,o)},authorization:function(r){return"AWS3 AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(r)},signedHeaders:function(){var r=[];return a.util.arrayEach(this.headersToSign(),function(o){r.push(o.toLowerCase())}),r.sort().join(";")},canonicalHeaders:function(){var r=this.request.headers,n=[];return a.util.arrayEach(this.headersToSign(),function(l){n.push(l.toLowerCase().trim()+":"+String(r[l]).trim())}),n.sort().join("\n")+"\n"},headersToSign:function(){var r=[];return a.util.each(this.request.headers,function(o){("Host"===o||"Content-Encoding"===o||o.match(/^X-Amz/i))&&r.push(o)}),r},signature:function(r){return a.util.crypto.hmac(r.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var r=[];return r.push(this.request.method),r.push("/"),r.push(""),r.push(this.canonicalHeaders()),r.push(this.request.body),a.util.crypto.sha256(r.join("\n"))}}),le.exports=a.Signers.V3},63116:(le,k,y)=>{var a=y(497),O=a.util.inherit;y(77659),a.Signers.V3Https=O(a.Signers.V3,{authorization:function(r){return"AWS3-HTTPS AWSAccessKeyId="+r.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(r)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),le.exports=a.Signers.V3Https},72480:(le,k,y)=>{var a=y(497),O=y(70950),r="presigned-expires";a.Signers.V4=(0,a.util.inherit)(a.Signers.RequestSigner,{constructor:function(o,l,e){a.Signers.RequestSigner.call(this,o),this.serviceName=l,this.signatureCache="boolean"!=typeof(e=e||{}).signatureCache||e.signatureCache,this.operation=e.operation,this.signatureVersion=e.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(o,l){var e=a.util.date.iso8601(l).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(o,e):this.addHeaders(o,e),this.request.headers.Authorization=this.authorization(o,e)},addHeaders:function(o,l){this.request.headers["X-Amz-Date"]=l,o.sessionToken&&(this.request.headers["x-amz-security-token"]=o.sessionToken)},updateForPresigned:function(o,l){var e=this.credentialString(l),i={"X-Amz-Date":l,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":o.accessKeyId+"/"+e,"X-Amz-Expires":this.request.headers[r],"X-Amz-SignedHeaders":this.signedHeaders()};o.sessionToken&&(i["X-Amz-Security-Token"]=o.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),a.util.each.call(this,this.request.headers,function(d,g){if(d!==r&&this.isSignableHeader(d)){var b=d.toLowerCase();0===b.indexOf("x-amz-meta-")?i[b]=g:0===b.indexOf("x-amz-")&&(i[d]=g)}});var h=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=h+a.util.queryParamsToString(i)},authorization:function(o,l){var e=[],i=this.credentialString(l);return e.push(this.algorithm+" Credential="+o.accessKeyId+"/"+i),e.push("SignedHeaders="+this.signedHeaders()),e.push("Signature="+this.signature(o,l)),e.join(", ")},signature:function(o,l){var e=O.getSigningKey(o,l.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return a.util.crypto.hmac(e,this.stringToSign(l),"hex")},stringToSign:function(o){var l=[];return l.push("AWS4-HMAC-SHA256"),l.push(o),l.push(this.credentialString(o)),l.push(this.hexEncodedHash(this.canonicalString())),l.join("\n")},canonicalString:function(){var o=[],l=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(l=a.util.uriEscapePath(l)),o.push(this.request.method),o.push(l),o.push(this.request.search()),o.push(this.canonicalHeaders()+"\n"),o.push(this.signedHeaders()),o.push(this.hexEncodedBodyHash()),o.join("\n")},canonicalHeaders:function(){var o=[];a.util.each.call(this,this.request.headers,function(e,i){o.push([e,i])}),o.sort(function(e,i){return e[0].toLowerCase()<i[0].toLowerCase()?-1:1});var l=[];return a.util.arrayEach.call(this,o,function(e){var i=e[0].toLowerCase();if(this.isSignableHeader(i)){var h=e[1];if(typeof h>"u"||null===h||"function"!=typeof h.toString)throw a.util.error(new Error("Header "+i+" contains invalid value"),{code:"InvalidHeader"});l.push(i+":"+this.canonicalHeaderValues(h.toString()))}}),l.join("\n")},canonicalHeaderValues:function(o){return o.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var o=[];return a.util.each.call(this,this.request.headers,function(l){l=l.toLowerCase(),this.isSignableHeader(l)&&o.push(l)}),o.sort().join(";")},credentialString:function(o){return O.createScope(o.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(o){return a.util.crypto.sha256(o,"hex")},hexEncodedBodyHash:function(){var o=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!o.body?"UNSIGNED-PAYLOAD":o.headers["X-Amz-Content-Sha256"]?o.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",r,"expect","x-amzn-trace-id"],isSignableHeader:function(o){return 0===o.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(o)<0},isPresigned:function(){return!!this.request.headers[r]}}),le.exports=a.Signers.V4},70950:(le,k,y)=>{var a=y(497),O={},m=[],n="aws4_request";le.exports={createScope:function(l,e,i){return[l.substr(0,8),e,i,n].join("/")},getSigningKey:function(l,e,i,h,d){var b=[a.util.crypto.hmac(l.secretAccessKey,l.accessKeyId,"base64"),e,i,h].join("_");if((d=!1!==d)&&b in O)return O[b];var T=a.util.crypto.hmac("AWS4"+l.secretAccessKey,e,"buffer"),M=a.util.crypto.hmac(T,i,"buffer"),R=a.util.crypto.hmac(M,h,"buffer"),x=a.util.crypto.hmac(R,n,"buffer");return d&&(O[b]=x,m.push(b),m.length>50&&delete O[m.shift()]),x},emptyCache:function(){O={},m=[]}}},85488:le=>{function k(y,a){this.currentState=a||null,this.states=y||{}}k.prototype.runTo=function(a,O,m,r){"function"==typeof a&&(r=m,m=O,O=a,a=null);var n=this,o=n.states[n.currentState];o.fn.call(m||n,r,function(l){if(l){if(!o.fail)return O?O.call(m,l):null;n.currentState=o.fail}else{if(!o.accept)return O?O.call(m):null;n.currentState=o.accept}if(n.currentState===a)return O?O.call(m,l):null;n.runTo(a,O,m,l)})},k.prototype.addState=function(a,O,m,r){return"function"==typeof O?(r=O,O=null,m=null):"function"==typeof m&&(r=m,m=null),this.currentState||(this.currentState=a),this.states[a]={accept:O,fail:m,fn:r},this},le.exports=k},33123:(le,k,y)=>{var a,O={environment:"nodejs",engine:function(){if(O.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var r=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(r+=" exec-env/"+process.env.AWS_EXECUTION_ENV),r},userAgent:function(){var r=O.environment,n="aws-sdk-"+r+"/"+y(497).VERSION;return"nodejs"===r&&(n+=" "+O.engine()),n},uriEscape:function(r){var n=encodeURIComponent(r);return(n=n.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(o){return"%"+o.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(r){var n=[];return O.arrayEach(r.split("/"),function(o){n.push(O.uriEscape(o))}),n.join("/")},urlParse:function(r){return O.url.parse(r)},urlFormat:function(r){return O.url.format(r)},queryStringParse:function(r){return O.querystring.parse(r)},queryParamsToString:function(r){var n=[],o=O.uriEscape,l=Object.keys(r).sort();return O.arrayEach(l,function(e){var i=r[e],h=o(e),d=h+"=";if(Array.isArray(i)){var g=[];O.arrayEach(i,function(b){g.push(o(b))}),d=h+"="+g.sort().join("&"+h+"=")}else null!=i&&(d=h+"="+o(i));n.push(d)}),n.join("&")},readFileSync:function(r){return O.isBrowser()?null:y(47310).readFileSync(r,"utf-8")},base64:{encode:function(r){if("number"==typeof r)throw O.error(new Error("Cannot base64 encode number "+r));return null===r||typeof r>"u"?r:O.buffer.toBuffer(r).toString("base64")},decode:function(r){if("number"==typeof r)throw O.error(new Error("Cannot base64 decode number "+r));return null===r||typeof r>"u"?r:O.buffer.toBuffer(r,"base64")}},buffer:{toBuffer:function(m,r){return"function"==typeof O.Buffer.from&&O.Buffer.from!==Uint8Array.from?O.Buffer.from(m,r):new O.Buffer(m,r)},alloc:function(m,r,n){if("number"!=typeof m)throw new Error("size passed to alloc must be a number.");if("function"==typeof O.Buffer.alloc)return O.Buffer.alloc(m,r,n);var o=new O.Buffer(m);return void 0!==r&&"function"==typeof o.fill&&o.fill(r,void 0,void 0,n),o},toStream:function(r){O.Buffer.isBuffer(r)||(r=O.buffer.toBuffer(r));var n=new O.stream.Readable,o=0;return n._read=function(l){if(o>=r.length)return n.push(null);var e=o+l;e>r.length&&(e=r.length),n.push(r.slice(o,e)),o=e},n},concat:function(m){var o,l,r=0,n=0;for(l=0;l<m.length;l++)r+=m[l].length;for(o=O.buffer.alloc(r),l=0;l<m.length;l++)m[l].copy(o,n),n+=m[l].length;return o}},string:{byteLength:function(r){if(null==r)return 0;if("string"==typeof r&&(r=O.buffer.toBuffer(r)),"number"==typeof r.byteLength)return r.byteLength;if("number"==typeof r.length)return r.length;if("number"==typeof r.size)return r.size;if("string"==typeof r.path)return y(47310).lstatSync(r.path).size;throw O.error(new Error("Cannot determine length of "+r),{object:r})},upperFirst:function(r){return r[0].toUpperCase()+r.substr(1)},lowerFirst:function(r){return r[0].toLowerCase()+r.substr(1)}},ini:{parse:function(r){var n,o={};return O.arrayEach(r.split(/\r?\n/),function(l){if("["===(l=l.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===l[l.length-1]){if("__proto__"===(n=l.substring(1,l.length-1))||"__proto__"===n.split(/\s/)[1])throw O.error(new Error("Cannot load profile name '"+n+"' from shared ini file."))}else if(n){var i=l.indexOf("=");if(-1!==i&&0!==i&&i!==l.length-1){var b=l.substring(0,i).trim(),T=l.substring(i+1).trim();o[n]=o[n]||{},o[n][b]=T}}}),o}},fn:{noop:function(){},callback:function(m){if(m)throw m},makeAsync:function(r,n){return n&&n<=r.length?r:function(){var o=Array.prototype.slice.call(arguments,0);o.pop()(r.apply(null,o))}}},date:{getDate:function(){return a||(a=y(497)),a.config.systemClockOffset?new Date((new Date).getTime()+a.config.systemClockOffset):new Date},iso8601:function(r){return void 0===r&&(r=O.date.getDate()),r.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(r){return void 0===r&&(r=O.date.getDate()),r.toUTCString()},unixTimestamp:function(r){return void 0===r&&(r=O.date.getDate()),r.getTime()/1e3},from:function(r){return"number"==typeof r?new Date(1e3*r):new Date(r)},format:function(r,n){return n||(n="iso8601"),O.date[n](O.date.from(r))},parseTimestamp:function(r){if("number"==typeof r)return new Date(1e3*r);if(r.match(/^\d+$/))return new Date(1e3*r);if(r.match(/^\d{4}/))return new Date(r);if(r.match(/^\w{3},/))return new Date(r);throw O.error(new Error("unhandled timestamp format: "+r),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function(r){var n=O.crypto.crc32Table,o=-1;"string"==typeof r&&(r=O.buffer.toBuffer(r));for(var l=0;l<r.length;l++)o=o>>>8^n[255&(o^r.readUInt8(l))];return(-1^o)>>>0},hmac:function(r,n,o,l){return o||(o="binary"),"buffer"===o&&(o=void 0),l||(l="sha256"),"string"==typeof n&&(n=O.buffer.toBuffer(n)),O.crypto.lib.createHmac(l,r).update(n).digest(o)},md5:function(r,n,o){return O.crypto.hash("md5",r,n,o)},sha256:function(r,n,o){return O.crypto.hash("sha256",r,n,o)},hash:function(m,r,n,o){var l=O.crypto.createHash(m);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof r&&(r=O.buffer.toBuffer(r));var e=O.arraySliceFn(r),i=O.Buffer.isBuffer(r);if(O.isBrowser()&&typeof ArrayBuffer<"u"&&r&&r.buffer instanceof ArrayBuffer&&(i=!0),o&&"object"==typeof r&&"function"==typeof r.on&&!i)r.on("data",function(T){l.update(T)}),r.on("error",function(T){o(T)}),r.on("end",function(){o(null,l.digest(n))});else{if(!(o&&e&&!i&&typeof FileReader<"u")){O.isBrowser()&&"object"==typeof r&&!i&&(r=new O.Buffer(new Uint8Array(r)));var b=l.update(r).digest(n);return o&&o(null,b),b}var h=0,g=new FileReader;g.onerror=function(){o(new Error("Failed to read data."))},g.onload=function(){var T=new O.Buffer(new Uint8Array(g.result));l.update(T),h+=T.length,g._continueReading()},g._continueReading=function(){if(h>=r.size)o(null,l.digest(n));else{var T=h+524288;T>r.size&&(T=r.size),g.readAsArrayBuffer(e.call(r,h,T))}},g._continueReading()}},toHex:function(r){for(var n=[],o=0;o<r.length;o++)n.push(("0"+r.charCodeAt(o).toString(16)).substr(-2,2));return n.join("")},createHash:function(r){return O.crypto.lib.createHash(r)}},abort:{},each:function(r,n){for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n.call(this,o,r[o])===O.abort)break},arrayEach:function(r,n){for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n.call(this,r[o],parseInt(o,10))===O.abort)break},update:function(r,n){return O.each(n,function(l,e){r[l]=e}),r},merge:function(r,n){return O.update(O.copy(r),n)},copy:function(r){if(null==r)return r;var n={};for(var o in r)n[o]=r[o];return n},isEmpty:function(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n))return!1;return!0},arraySliceFn:function(r){var n=r.slice||r.webkitSlice||r.mozSlice;return"function"==typeof n?n:null},isType:function(r,n){return"function"==typeof n&&(n=O.typeName(n)),Object.prototype.toString.call(r)==="[object "+n+"]"},typeName:function(r){if(Object.prototype.hasOwnProperty.call(r,"name"))return r.name;var n=r.toString(),o=n.match(/^\s*function (.+)\(/);return o?o[1]:n},error:function(r,n){var o=null;return"string"==typeof r.message&&""!==r.message&&("string"==typeof n||n&&n.message)&&((o=O.copy(r)).message=r.message),r.message=r.message||null,"string"==typeof n?r.message=n:"object"==typeof n&&null!==n&&(O.update(r,n),n.message&&(r.message=n.message),(n.code||n.name)&&(r.code=n.code||n.name),n.stack&&(r.stack=n.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(r,"name",{writable:!0,enumerable:!1}),Object.defineProperty(r,"message",{enumerable:!0})),r.name=String(n&&n.name||r.name||r.code||"Error"),r.time=new Date,o&&(r.originalError=o),r},inherit:function(r,n){var o=null;if(void 0===n)n=r,r=Object,o={};else{var l=function(){};l.prototype=r.prototype,o=new l}return n.constructor===Object&&(n.constructor=function(){if(r!==Object)return r.apply(this,arguments)}),n.constructor.prototype=o,O.update(n.constructor.prototype,n),n.constructor.__super__=r,n.constructor},mixin:function(){for(var r=arguments[0],n=1;n<arguments.length;n++)for(var o in arguments[n].prototype)"constructor"!==o&&(r.prototype[o]=arguments[n].prototype[o]);return r},hideProperties:function(r,n){"function"==typeof Object.defineProperty&&O.arrayEach(n,function(o){Object.defineProperty(r,o,{enumerable:!1,writable:!0,configurable:!0})})},property:function(r,n,o,l,e){var i={configurable:!0,enumerable:void 0===l||l};"function"!=typeof o||e?(i.value=o,i.writable=!0):i.get=o,Object.defineProperty(r,n,i)},memoizedProperty:function(r,n,o,l){var e=null;O.property(r,n,function(){return null===e&&(e=o()),e},l)},hoistPayloadMember:function(r){var n=r.request,l=n.service.api.operations[n.operation],e=l.output;e.payload&&!l.hasEventOutput&&"structure"===e.members[e.payload].type&&O.each(r.data[e.payload],function(d,g){O.property(r.data,d,g,!1)})},computeSha256:function(r,n){if(O.isNode()){var o=O.stream.Stream,l=y(47310);if("function"==typeof o&&r instanceof o){if("string"!=typeof r.path)return n(new Error("Non-file stream objects are not supported with SigV4"));var e={};"number"==typeof r.start&&(e.start=r.start),"number"==typeof r.end&&(e.end=r.end),r=l.createReadStream(r.path,e)}}O.crypto.sha256(r,"hex",function(i,h){i?n(i):n(null,h)})},isClockSkewed:function(r){if(r)return O.property(a.config,"isClockSkewed",Math.abs((new Date).getTime()-r)>=3e5,!1),a.config.isClockSkewed},applyClockOffset:function(r){r&&(a.config.systemClockOffset=r-(new Date).getTime())},extractRequestId:function(r){var n=r.httpResponse.headers["x-amz-request-id"]||r.httpResponse.headers["x-amzn-requestid"];!n&&r.data&&r.data.ResponseMetadata&&(n=r.data.ResponseMetadata.RequestId),n&&(r.requestId=n),r.error&&(r.error.requestId=n)},addPromises:function(r,n){var o=!1;void 0===n&&a&&a.config&&(n=a.config.getPromisesDependency()),void 0===n&&typeof Promise<"u"&&(n=Promise),"function"!=typeof n&&(o=!0),Array.isArray(r)||(r=[r]);for(var l=0;l<r.length;l++){var e=r[l];o?e.deletePromisesFromClass&&e.deletePromisesFromClass():e.addPromisesToClass&&e.addPromisesToClass(n)}},promisifyMethod:function(r,n){return function(){var l=this,e=Array.prototype.slice.call(arguments);return new n(function(i,h){e.push(function(d,g){d?h(d):i(g)}),l[r].apply(l,e)})}},isDualstackAvailable:function(r){if(!r)return!1;var n=y(6839);return"string"!=typeof r&&(r=r.serviceIdentifier),!("string"!=typeof r||!n.hasOwnProperty(r)||!n[r].dualstackAvailable)},calculateRetryDelay:function(r,n,o){n||(n={});var l=n.customBackoff||null;if("function"==typeof l)return l(r,o);var e="number"==typeof n.base?n.base:100;return Math.random()*(Math.pow(2,r)*e)},handleRequestWithRetries:function(r,n,o){n||(n={});var l=a.HttpClient.getInstance(),e=n.httpOptions||{},i=0,h=function(g){var b=n.maxRetries||0;if(g&&"TimeoutError"===g.code&&(g.retryable=!0),g&&g.retryable&&i<b){var T=O.calculateRetryDelay(i,n.retryDelayOptions,g);if(T>=0)return i++,void setTimeout(d,T+(g.retryAfter||0))}o(g)},d=function(){var g="";l.handleRequest(r,e,function(b){b.on("data",function(T){g+=T.toString()}),b.on("end",function(){var T=b.statusCode;if(T<300)o(null,g);else{var M=1e3*parseInt(b.headers["retry-after"],10)||0,R=O.error(new Error,{statusCode:T,retryable:T>=500||429===T});M&&R.retryable&&(R.retryAfter=M),h(R)}})},h)};a.util.defer(d)},uuid:{v4:function(){return y(4111).v4()}},convertPayloadToString:function(r){var n=r.request,l=n.service.api.operations[n.operation].output||{};l.payload&&r.data[l.payload]&&(r.data[l.payload]=r.data[l.payload].toString())},defer:function(r){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(r):"function"==typeof setImmediate?setImmediate(r):setTimeout(r,0)},getRequestPayloadShape:function(r){var n=r.service.api.operations;if(n){var o=(n||{})[r.operation];if(o&&o.input&&o.input.payload)return o.input.members[o.input.payload]}},getProfilesFromSharedConfig:function(r,n){var o={},l={};process.env[O.configOptInEnv]&&(l=r.loadFrom({isConfig:!0,filename:process.env[O.sharedConfigFileEnv]}));var e={};try{e=r.loadFrom({filename:n||process.env[O.configOptInEnv]&&process.env[O.sharedCredentialsFileEnv]})}catch(g){if(!process.env[O.configOptInEnv])throw g}for(var i=0,h=Object.keys(l);i<h.length;i++)o[h[i]]=d(o[h[i]]||{},l[h[i]]);for(i=0,h=Object.keys(e);i<h.length;i++)o[h[i]]=d(o[h[i]]||{},e[h[i]]);return o;function d(g,b){for(var T=0,M=Object.keys(b);T<M.length;T++)g[M[T]]=b[M[T]];return g}},ARN:{validate:function(r){return r&&0===r.indexOf("arn:")&&r.split(":").length>=6},parse:function(r){var n=r.split(":");return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}},build:function(r){if(void 0===r.service||void 0===r.region||void 0===r.accountId||void 0===r.resource)throw O.error(new Error("Input ARN object is invalid"));return"arn:"+(r.partition||"aws")+":"+r.service+":"+r.region+":"+r.accountId+":"+r.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};le.exports=O},58882:(le,k,y)=>{var a=y(33123),O=y(17680);function m(){}function r(d,g){for(var b=d.getElementsByTagName(g),T=0,M=b.length;T<M;T++)if(b[T].parentNode===d)return b[T]}function n(d,g){switch(g||(g={}),g.type){case"structure":return o(d,g);case"map":return function l(d,g){for(var b={},T=g.key.name||"key",M=g.value.name||"value",R=g.flattened?g.name:"entry",x=d.firstElementChild;x;){if(x.nodeName===R){var P=r(x,T).textContent,W=r(x,M);b[P]=n(W,g.value)}x=x.nextElementSibling}return b}(d,g);case"list":return function e(d,g){for(var b=[],T=g.flattened?g.name:g.member.name||"member",M=d.firstElementChild;M;)M.nodeName===T&&b.push(n(M,g.member)),M=M.nextElementSibling;return b}(d,g);case void 0:case null:return function h(d){if(null==d)return"";if(!d.firstElementChild)return null===d.parentNode.parentNode?{}:0===d.childNodes.length?"":d.textContent;for(var g={type:"structure",members:{}},b=d.firstElementChild;b;){var T=b.nodeName;Object.prototype.hasOwnProperty.call(g.members,T)?g.members[T].type="list":g.members[T]={name:T},b=b.nextElementSibling}return o(d,g)}(d);default:return function i(d,g){if(d.getAttribute){var b=d.getAttribute("encoding");"base64"===b&&(g=new O.create({type:b}))}var T=d.textContent;return""===T&&(T=null),"function"==typeof g.toType?g.toType(T):T}(d,g)}}function o(d,g){var b={};return null===d||a.each(g.members,function(T,M){if(M.isXmlAttribute)Object.prototype.hasOwnProperty.call(d.attributes,M.name)&&(b[T]=n({textContent:d.attributes[M.name].value},M));else{var x=M.flattened?d:r(d,M.name);x?b[T]=n(x,M):!M.flattened&&"list"===M.type&&!g.api.xmlNoDefaultLists&&(b[T]=M.defaultValue)}}),b}m.prototype.parse=function(d,g){if(""===d.replace(/^\s+/,""))return{};var b,T;try{if(window.DOMParser){try{b=(new DOMParser).parseFromString(d,"text/xml")}catch(V){throw a.error(new Error("Parse error in document"),{originalError:V,code:"XMLParserError",retryable:!0})}if(null===b.documentElement)throw a.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var R=b.getElementsByTagName("parsererror")[0];if(R&&(R.parentNode===b||"body"===R.parentNode.nodeName||R.parentNode.parentNode===b||"body"===R.parentNode.parentNode.nodeName)){var x=R.getElementsByTagName("div")[0]||R;throw a.error(new Error(x.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((b=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!b.loadXML(d))throw a.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(V){T=V}if(b&&b.documentElement&&!T){var P=n(b.documentElement,g),W=r(b.documentElement,"ResponseMetadata");return W&&(P.ResponseMetadata=n(W,{})),P}if(T)throw a.error(T||new Error,{code:"XMLParserError",retryable:!0});return{}},le.exports=m},30461:(le,k,y)=>{var a=y(33123),O=y(97811).XmlNode,m=y(15227).XmlText;function r(){}function n(d,g,b){switch(b.type){case"structure":return function o(d,g,b){a.arrayEach(b.memberNames,function(T){var M=b.members[T];if("body"===M.location){var R=g[T],x=M.name;if(null!=R)if(M.isXmlAttribute)d.addAttribute(x,R);else if(M.flattened)n(d,R,M);else{var P=new O(x);d.addChildNode(P),h(P,M),n(P,R,M)}}})}(d,g,b);case"map":return function l(d,g,b){var T=b.key.name||"key",M=b.value.name||"value";a.each(g,function(R,x){var P=new O(b.flattened?b.name:"entry");d.addChildNode(P);var W=new O(T),V=new O(M);P.addChildNode(W),P.addChildNode(V),n(W,R,b.key),n(V,x,b.value)})}(d,g,b);case"list":return function e(d,g,b){a.arrayEach(g,b.flattened?function(T){var R=new O(b.member.name||b.name);d.addChildNode(R),n(R,T,b.member)}:function(T){var R=new O(b.member.name||"member");d.addChildNode(R),n(R,T,b.member)})}(d,g,b);default:return function i(d,g,b){d.addChildNode(new m(b.toWireFormat(g)))}(d,g,b)}}function h(d,g,b){var T,M="xmlns";g.xmlNamespaceUri?(T=g.xmlNamespaceUri,g.xmlNamespacePrefix&&(M+=":"+g.xmlNamespacePrefix)):b&&g.api.xmlNamespaceUri&&(T=g.api.xmlNamespaceUri),T&&d.addAttribute(M,T)}r.prototype.toXML=function(d,g,b,T){var M=new O(b);return h(M,g,!0),n(M,d,g),M.children.length>0||T?M.toString():""},le.exports=r},36530:le=>{le.exports={escapeAttribute:function k(y){return y.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}},3821:le=>{le.exports={escapeElement:function k(y){return y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
").replace(/\n/g,"
").replace(/\u0085/g,"…").replace(/\u2028/,"
")}}},97811:(le,k,y)=>{var a=y(36530).escapeAttribute;function O(m,r){void 0===r&&(r=[]),this.name=m,this.children=r,this.attributes={}}O.prototype.addAttribute=function(m,r){return this.attributes[m]=r,this},O.prototype.addChildNode=function(m){return this.children.push(m),this},O.prototype.removeAttribute=function(m){return delete this.attributes[m],this},O.prototype.toString=function(){for(var m=Boolean(this.children.length),r="<"+this.name,n=this.attributes,o=0,l=Object.keys(n);o<l.length;o++){var e=l[o],i=n[e];typeof i<"u"&&null!==i&&(r+=" "+e+'="'+a(""+i)+'"')}return r+(m?">"+this.children.map(function(h){return h.toString()}).join("")+"</"+this.name+">":"/>")},le.exports={XmlNode:O}},15227:(le,k,y)=>{var a=y(3821).escapeElement;function O(m){this.value=m}O.prototype.toString=function(){return a(""+this.value)},le.exports={XmlText:O}},3584:(le,k,y)=>{"use strict";var O=y(3517),m=y(78757),r=y(45944);function o(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(f,A){if(o()<A)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(f=new Uint8Array(A)).__proto__=e.prototype:(null===f&&(f=new e(A)),f.length=A),f}function e(f,A,I){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(f,A,I);if("number"==typeof f){if("string"==typeof A)throw new Error("If encoding is specified then the first argument must be a string");return g(this,f)}return i(this,f,A,I)}function i(f,A,I,ne){if("number"==typeof A)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&A instanceof ArrayBuffer?function M(f,A,I,ne){if(I<0||A.byteLength<I)throw new RangeError("'offset' is out of bounds");if(A.byteLength<I+(ne||0))throw new RangeError("'length' is out of bounds");return A=void 0===I&&void 0===ne?new Uint8Array(A):void 0===ne?new Uint8Array(A,I):new Uint8Array(A,I,ne),e.TYPED_ARRAY_SUPPORT?(f=A).__proto__=e.prototype:f=T(f,A),f}(f,A,I,ne):"string"==typeof A?function b(f,A,I){if(("string"!=typeof I||""===I)&&(I="utf8"),!e.isEncoding(I))throw new TypeError('"encoding" must be a valid string encoding');var ne=0|W(A,I),me=(f=l(f,ne)).write(A,I);return me!==ne&&(f=f.slice(0,me)),f}(f,A,I):function R(f,A){if(e.isBuffer(A)){var I=0|x(A.length);return 0===(f=l(f,I)).length||A.copy(f,0,0,I),f}if(A){if(typeof ArrayBuffer<"u"&&A.buffer instanceof ArrayBuffer||"length"in A)return"number"!=typeof A.length||function w(f){return f!=f}(A.length)?l(f,0):T(f,A);if("Buffer"===A.type&&r(A.data))return T(f,A.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(f,A)}function h(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 g(f,A){if(h(A),f=l(f,A<0?0:0|x(A)),!e.TYPED_ARRAY_SUPPORT)for(var I=0;I<A;++I)f[I]=0;return f}function T(f,A){var I=A.length<0?0:0|x(A.length);f=l(f,I);for(var ne=0;ne<I;ne+=1)f[ne]=255&A[ne];return f}function x(f){if(f>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|f}function W(f,A){if(e.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 I=f.length;if(0===I)return 0;for(var ne=!1;;)switch(A){case"ascii":case"latin1":case"binary":return I;case"utf8":case"utf-8":case void 0:return Z(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*I;case"hex":return I>>>1;case"base64":return Ee(f).length;default:if(ne)return Z(f).length;A=(""+A).toLowerCase(),ne=!0}}function V(f,A,I){var ne=!1;if((void 0===A||A<0)&&(A=0),A>this.length||((void 0===I||I>this.length)&&(I=this.length),I<=0)||(I>>>=0)<=(A>>>=0))return"";for(f||(f="utf8");;)switch(f){case"hex":return ue(this,A,I);case"utf8":case"utf-8":return J(this,A,I);case"ascii":return te(this,A,I);case"latin1":case"binary":return ge(this,A,I);case"base64":return Q(this,A,I);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,A,I);default:if(ne)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),ne=!0}}function Y(f,A,I){var ne=f[A];f[A]=f[I],f[I]=ne}function j(f,A,I,ne,me){if(0===f.length)return-1;if("string"==typeof I?(ne=I,I=0):I>2147483647?I=2147483647:I<-2147483648&&(I=-2147483648),I=+I,isNaN(I)&&(I=me?0:f.length-1),I<0&&(I=f.length+I),I>=f.length){if(me)return-1;I=f.length-1}else if(I<0){if(!me)return-1;I=0}if("string"==typeof A&&(A=e.from(A,ne)),e.isBuffer(A))return 0===A.length?-1:E(f,A,I,ne,me);if("number"==typeof A)return A&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?me?Uint8Array.prototype.indexOf.call(f,A,I):Uint8Array.prototype.lastIndexOf.call(f,A,I):E(f,[A],I,ne,me);throw new TypeError("val must be string, number or Buffer")}function E(f,A,I,ne,me){var _e,Re=1,Pe=f.length,ae=A.length;if(void 0!==ne&&("ucs2"===(ne=String(ne).toLowerCase())||"ucs-2"===ne||"utf16le"===ne||"utf-16le"===ne)){if(f.length<2||A.length<2)return-1;Re=2,Pe/=2,ae/=2,I/=2}function ye(Ke,qe){return 1===Re?Ke[qe]:Ke.readUInt16BE(qe*Re)}if(me){var Ie=-1;for(_e=I;_e<Pe;_e++)if(ye(f,_e)===ye(A,-1===Ie?0:_e-Ie)){if(-1===Ie&&(Ie=_e),_e-Ie+1===ae)return Ie*Re}else-1!==Ie&&(_e-=_e-Ie),Ie=-1}else for(I+ae>Pe&&(I=Pe-ae),_e=I;_e>=0;_e--){for(var Me=!0,je=0;je<ae;je++)if(ye(f,_e+je)!==ye(A,je)){Me=!1;break}if(Me)return _e}return-1}function C(f,A,I,ne){I=Number(I)||0;var me=f.length-I;ne?(ne=Number(ne))>me&&(ne=me):ne=me;var Re=A.length;if(Re%2!=0)throw new TypeError("Invalid hex string");ne>Re/2&&(ne=Re/2);for(var Pe=0;Pe<ne;++Pe){var ae=parseInt(A.substr(2*Pe,2),16);if(isNaN(ae))return Pe;f[I+Pe]=ae}return Pe}function p(f,A,I,ne){return K(Z(A,f.length-I),f,I,ne)}function _(f,A,I,ne){return K(function de(f){for(var A=[],I=0;I<f.length;++I)A.push(255&f.charCodeAt(I));return A}(A),f,I,ne)}function v(f,A,I,ne){return _(f,A,I,ne)}function F(f,A,I,ne){return K(Ee(A),f,I,ne)}function q(f,A,I,ne){return K(function he(f,A){for(var I,ne,Re=[],Pe=0;Pe<f.length&&!((A-=2)<0);++Pe)ne=(I=f.charCodeAt(Pe))>>8,Re.push(I%256),Re.push(ne);return Re}(A,f.length-I),f,I,ne)}function Q(f,A,I){return O.fromByteArray(0===A&&I===f.length?f:f.slice(A,I))}function J(f,A,I){I=Math.min(f.length,I);for(var ne=[],me=A;me<I;){var ye,_e,Ie,Me,Re=f[me],Pe=null,ae=Re>239?4:Re>223?3:Re>191?2:1;if(me+ae<=I)switch(ae){case 1:Re<128&&(Pe=Re);break;case 2:128==(192&(ye=f[me+1]))&&(Me=(31&Re)<<6|63&ye)>127&&(Pe=Me);break;case 3:_e=f[me+2],128==(192&(ye=f[me+1]))&&128==(192&_e)&&(Me=(15&Re)<<12|(63&ye)<<6|63&_e)>2047&&(Me<55296||Me>57343)&&(Pe=Me);break;case 4:_e=f[me+2],Ie=f[me+3],128==(192&(ye=f[me+1]))&&128==(192&_e)&&128==(192&Ie)&&(Me=(15&Re)<<18|(63&ye)<<12|(63&_e)<<6|63&Ie)>65535&&Me<1114112&&(Pe=Me)}null===Pe?(Pe=65533,ae=1):Pe>65535&&(ne.push((Pe-=65536)>>>10&1023|55296),Pe=56320|1023&Pe),ne.push(Pe),me+=ae}return function Se(f){var A=f.length;if(A<=ie)return String.fromCharCode.apply(String,f);for(var I="",ne=0;ne<A;)I+=String.fromCharCode.apply(String,f.slice(ne,ne+=ie));return I}(ne)}k.lW=e,k.h2=50,e.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function n(){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}}(),o(),e.poolSize=8192,e._augment=function(f){return f.__proto__=e.prototype,f},e.from=function(f,A,I){return i(null,f,A,I)},e.TYPED_ARRAY_SUPPORT&&(e.prototype.__proto__=Uint8Array.prototype,e.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&e[Symbol.species]===e&&Object.defineProperty(e,Symbol.species,{value:null,configurable:!0})),e.alloc=function(f,A,I){return function d(f,A,I,ne){return h(A),A<=0?l(f,A):void 0!==I?"string"==typeof ne?l(f,A).fill(I,ne):l(f,A).fill(I):l(f,A)}(null,f,A,I)},e.allocUnsafe=function(f){return g(null,f)},e.allocUnsafeSlow=function(f){return g(null,f)},e.isBuffer=function(A){return!(null==A||!A._isBuffer)},e.compare=function(A,I){if(!e.isBuffer(A)||!e.isBuffer(I))throw new TypeError("Arguments must be Buffers");if(A===I)return 0;for(var ne=A.length,me=I.length,Re=0,Pe=Math.min(ne,me);Re<Pe;++Re)if(A[Re]!==I[Re]){ne=A[Re],me=I[Re];break}return ne<me?-1:me<ne?1:0},e.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}},e.concat=function(A,I){if(!r(A))throw new TypeError('"list" argument must be an Array of Buffers');if(0===A.length)return e.alloc(0);var ne;if(void 0===I)for(I=0,ne=0;ne<A.length;++ne)I+=A[ne].length;var me=e.allocUnsafe(I),Re=0;for(ne=0;ne<A.length;++ne){var Pe=A[ne];if(!e.isBuffer(Pe))throw new TypeError('"list" argument must be an Array of Buffers');Pe.copy(me,Re),Re+=Pe.length}return me},e.byteLength=W,e.prototype._isBuffer=!0,e.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 I=0;I<A;I+=2)Y(this,I,I+1);return this},e.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 I=0;I<A;I+=4)Y(this,I,I+3),Y(this,I+1,I+2);return this},e.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 I=0;I<A;I+=8)Y(this,I,I+7),Y(this,I+1,I+6),Y(this,I+2,I+5),Y(this,I+3,I+4);return this},e.prototype.toString=function(){var A=0|this.length;return 0===A?"":0===arguments.length?J(this,0,A):V.apply(this,arguments)},e.prototype.equals=function(A){if(!e.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A||0===e.compare(this,A)},e.prototype.inspect=function(){var A="",I=k.h2;return this.length>0&&(A=this.toString("hex",0,I).match(/.{2}/g).join(" "),this.length>I&&(A+=" ... ")),"<Buffer "+A+">"},e.prototype.compare=function(A,I,ne,me,Re){if(!e.isBuffer(A))throw new TypeError("Argument must be a Buffer");if(void 0===I&&(I=0),void 0===ne&&(ne=A?A.length:0),void 0===me&&(me=0),void 0===Re&&(Re=this.length),I<0||ne>A.length||me<0||Re>this.length)throw new RangeError("out of range index");if(me>=Re&&I>=ne)return 0;if(me>=Re)return-1;if(I>=ne)return 1;if(this===A)return 0;for(var Pe=(Re>>>=0)-(me>>>=0),ae=(ne>>>=0)-(I>>>=0),ye=Math.min(Pe,ae),_e=this.slice(me,Re),Ie=A.slice(I,ne),Me=0;Me<ye;++Me)if(_e[Me]!==Ie[Me]){Pe=_e[Me],ae=Ie[Me];break}return Pe<ae?-1:ae<Pe?1:0},e.prototype.includes=function(A,I,ne){return-1!==this.indexOf(A,I,ne)},e.prototype.indexOf=function(A,I,ne){return j(this,A,I,ne,!0)},e.prototype.lastIndexOf=function(A,I,ne){return j(this,A,I,ne,!1)},e.prototype.write=function(A,I,ne,me){if(void 0===I)me="utf8",ne=this.length,I=0;else if(void 0===ne&&"string"==typeof I)me=I,ne=this.length,I=0;else{if(!isFinite(I))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");I|=0,isFinite(ne)?(ne|=0,void 0===me&&(me="utf8")):(me=ne,ne=void 0)}var Re=this.length-I;if((void 0===ne||ne>Re)&&(ne=Re),A.length>0&&(ne<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");for(var Pe=!1;;)switch(me){case"hex":return C(this,A,I,ne);case"utf8":case"utf-8":return p(this,A,I,ne);case"ascii":return _(this,A,I,ne);case"latin1":case"binary":return v(this,A,I,ne);case"base64":return F(this,A,I,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,A,I,ne);default:if(Pe)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),Pe=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;function te(f,A,I){var ne="";I=Math.min(f.length,I);for(var me=A;me<I;++me)ne+=String.fromCharCode(127&f[me]);return ne}function ge(f,A,I){var ne="";I=Math.min(f.length,I);for(var me=A;me<I;++me)ne+=String.fromCharCode(f[me]);return ne}function ue(f,A,I){var ne=f.length;(!A||A<0)&&(A=0),(!I||I<0||I>ne)&&(I=ne);for(var me="",Re=A;Re<I;++Re)me+=be(f[Re]);return me}function H(f,A,I){for(var ne=f.slice(A,I),me="",Re=0;Re<ne.length;Re+=2)me+=String.fromCharCode(ne[Re]+256*ne[Re+1]);return me}function $(f,A,I){if(f%1!=0||f<0)throw new RangeError("offset is not uint");if(f+A>I)throw new RangeError("Trying to access beyond buffer length")}function oe(f,A,I,ne,me,Re){if(!e.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>me||A<Re)throw new RangeError('"value" argument is out of bounds');if(I+ne>f.length)throw new RangeError("Index out of range")}function ee(f,A,I,ne){A<0&&(A=65535+A+1);for(var me=0,Re=Math.min(f.length-I,2);me<Re;++me)f[I+me]=(A&255<<8*(ne?me:1-me))>>>8*(ne?me:1-me)}function L(f,A,I,ne){A<0&&(A=4294967295+A+1);for(var me=0,Re=Math.min(f.length-I,4);me<Re;++me)f[I+me]=A>>>8*(ne?me:3-me)&255}function S(f,A,I,ne,me,Re){if(I+ne>f.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("Index out of range")}function B(f,A,I,ne,me){return me||S(f,0,I,4),m.write(f,A,I,ne,23,4),I+4}function G(f,A,I,ne,me){return me||S(f,0,I,8),m.write(f,A,I,ne,52,8),I+8}e.prototype.slice=function(A,I){var me,ne=this.length;if((A=~~A)<0?(A+=ne)<0&&(A=0):A>ne&&(A=ne),(I=void 0===I?ne:~~I)<0?(I+=ne)<0&&(I=0):I>ne&&(I=ne),I<A&&(I=A),e.TYPED_ARRAY_SUPPORT)(me=this.subarray(A,I)).__proto__=e.prototype;else{var Re=I-A;me=new e(Re,void 0);for(var Pe=0;Pe<Re;++Pe)me[Pe]=this[Pe+A]}return me},e.prototype.readUIntLE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=this[A],Re=1,Pe=0;++Pe<I&&(Re*=256);)me+=this[A+Pe]*Re;return me},e.prototype.readUIntBE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=this[A+--I],Re=1;I>0&&(Re*=256);)me+=this[A+--I]*Re;return me},e.prototype.readUInt8=function(A,I){return I||$(A,1,this.length),this[A]},e.prototype.readUInt16LE=function(A,I){return I||$(A,2,this.length),this[A]|this[A+1]<<8},e.prototype.readUInt16BE=function(A,I){return I||$(A,2,this.length),this[A]<<8|this[A+1]},e.prototype.readUInt32LE=function(A,I){return I||$(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+16777216*this[A+3]},e.prototype.readUInt32BE=function(A,I){return I||$(A,4,this.length),16777216*this[A]+(this[A+1]<<16|this[A+2]<<8|this[A+3])},e.prototype.readIntLE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=this[A],Re=1,Pe=0;++Pe<I&&(Re*=256);)me+=this[A+Pe]*Re;return me>=(Re*=128)&&(me-=Math.pow(2,8*I)),me},e.prototype.readIntBE=function(A,I,ne){A|=0,I|=0,ne||$(A,I,this.length);for(var me=I,Re=1,Pe=this[A+--me];me>0&&(Re*=256);)Pe+=this[A+--me]*Re;return Pe>=(Re*=128)&&(Pe-=Math.pow(2,8*I)),Pe},e.prototype.readInt8=function(A,I){return I||$(A,1,this.length),128&this[A]?-1*(255-this[A]+1):this[A]},e.prototype.readInt16LE=function(A,I){I||$(A,2,this.length);var ne=this[A]|this[A+1]<<8;return 32768&ne?4294901760|ne:ne},e.prototype.readInt16BE=function(A,I){I||$(A,2,this.length);var ne=this[A+1]|this[A]<<8;return 32768&ne?4294901760|ne:ne},e.prototype.readInt32LE=function(A,I){return I||$(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},e.prototype.readInt32BE=function(A,I){return I||$(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},e.prototype.readFloatLE=function(A,I){return I||$(A,4,this.length),m.read(this,A,!0,23,4)},e.prototype.readFloatBE=function(A,I){return I||$(A,4,this.length),m.read(this,A,!1,23,4)},e.prototype.readDoubleLE=function(A,I){return I||$(A,8,this.length),m.read(this,A,!0,52,8)},e.prototype.readDoubleBE=function(A,I){return I||$(A,8,this.length),m.read(this,A,!1,52,8)},e.prototype.writeUIntLE=function(A,I,ne,me){A=+A,I|=0,ne|=0,me||oe(this,A,I,ne,Math.pow(2,8*ne)-1,0);var Pe=1,ae=0;for(this[I]=255&A;++ae<ne&&(Pe*=256);)this[I+ae]=A/Pe&255;return I+ne},e.prototype.writeUIntBE=function(A,I,ne,me){A=+A,I|=0,ne|=0,me||oe(this,A,I,ne,Math.pow(2,8*ne)-1,0);var Pe=ne-1,ae=1;for(this[I+Pe]=255&A;--Pe>=0&&(ae*=256);)this[I+Pe]=A/ae&255;return I+ne},e.prototype.writeUInt8=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,1,255,0),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),this[I]=255&A,I+1},e.prototype.writeUInt16LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):ee(this,A,I,!0),I+2},e.prototype.writeUInt16BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):ee(this,A,I,!1),I+2},e.prototype.writeUInt32LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[I+3]=A>>>24,this[I+2]=A>>>16,this[I+1]=A>>>8,this[I]=255&A):L(this,A,I,!0),I+4},e.prototype.writeUInt32BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):L(this,A,I,!1),I+4},e.prototype.writeIntLE=function(A,I,ne,me){if(A=+A,I|=0,!me){var Re=Math.pow(2,8*ne-1);oe(this,A,I,ne,Re-1,-Re)}var Pe=0,ae=1,ye=0;for(this[I]=255&A;++Pe<ne&&(ae*=256);)A<0&&0===ye&&0!==this[I+Pe-1]&&(ye=1),this[I+Pe]=(A/ae>>0)-ye&255;return I+ne},e.prototype.writeIntBE=function(A,I,ne,me){if(A=+A,I|=0,!me){var Re=Math.pow(2,8*ne-1);oe(this,A,I,ne,Re-1,-Re)}var Pe=ne-1,ae=1,ye=0;for(this[I+Pe]=255&A;--Pe>=0&&(ae*=256);)A<0&&0===ye&&0!==this[I+Pe+1]&&(ye=1),this[I+Pe]=(A/ae>>0)-ye&255;return I+ne},e.prototype.writeInt8=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,1,127,-128),e.TYPED_ARRAY_SUPPORT||(A=Math.floor(A)),A<0&&(A=255+A+1),this[I]=255&A,I+1},e.prototype.writeInt16LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8):ee(this,A,I,!0),I+2},e.prototype.writeInt16BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>8,this[I+1]=255&A):ee(this,A,I,!1),I+2},e.prototype.writeInt32LE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[I]=255&A,this[I+1]=A>>>8,this[I+2]=A>>>16,this[I+3]=A>>>24):L(this,A,I,!0),I+4},e.prototype.writeInt32BE=function(A,I,ne){return A=+A,I|=0,ne||oe(this,A,I,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),e.TYPED_ARRAY_SUPPORT?(this[I]=A>>>24,this[I+1]=A>>>16,this[I+2]=A>>>8,this[I+3]=255&A):L(this,A,I,!1),I+4},e.prototype.writeFloatLE=function(A,I,ne){return B(this,A,I,!0,ne)},e.prototype.writeFloatBE=function(A,I,ne){return B(this,A,I,!1,ne)},e.prototype.writeDoubleLE=function(A,I,ne){return G(this,A,I,!0,ne)},e.prototype.writeDoubleBE=function(A,I,ne){return G(this,A,I,!1,ne)},e.prototype.copy=function(A,I,ne,me){if(ne||(ne=0),!me&&0!==me&&(me=this.length),I>=A.length&&(I=A.length),I||(I=0),me>0&&me<ne&&(me=ne),me===ne||0===A.length||0===this.length)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("sourceStart out of bounds");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),A.length-I<me-ne&&(me=A.length-I+ne);var Pe,Re=me-ne;if(this===A&&ne<I&&I<me)for(Pe=Re-1;Pe>=0;--Pe)A[Pe+I]=this[Pe+ne];else if(Re<1e3||!e.TYPED_ARRAY_SUPPORT)for(Pe=0;Pe<Re;++Pe)A[Pe+I]=this[Pe+ne];else Uint8Array.prototype.set.call(A,this.subarray(ne,ne+Re),I);return Re},e.prototype.fill=function(A,I,ne,me){if("string"==typeof A){if("string"==typeof I?(me=I,I=0,ne=this.length):"string"==typeof ne&&(me=ne,ne=this.length),1===A.length){var Re=A.charCodeAt(0);Re<256&&(A=Re)}if(void 0!==me&&"string"!=typeof me)throw new TypeError("encoding must be a string");if("string"==typeof me&&!e.isEncoding(me))throw new TypeError("Unknown encoding: "+me)}else"number"==typeof A&&(A&=255);if(I<0||this.length<I||this.length<ne)throw new RangeError("Out of range index");if(ne<=I)return this;var Pe;if(I>>>=0,ne=void 0===ne?this.length:ne>>>0,A||(A=0),"number"==typeof A)for(Pe=I;Pe<ne;++Pe)this[Pe]=A;else{var ae=e.isBuffer(A)?A:Z(new e(A,me).toString()),ye=ae.length;for(Pe=0;Pe<ne-I;++Pe)this[Pe+I]=ae[Pe%ye]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function be(f){return f<16?"0"+f.toString(16):f.toString(16)}function Z(f,A){A=A||1/0;for(var I,ne=f.length,me=null,Re=[],Pe=0;Pe<ne;++Pe){if((I=f.charCodeAt(Pe))>55295&&I<57344){if(!me){if(I>56319){(A-=3)>-1&&Re.push(239,191,189);continue}if(Pe+1===ne){(A-=3)>-1&&Re.push(239,191,189);continue}me=I;continue}if(I<56320){(A-=3)>-1&&Re.push(239,191,189),me=I;continue}I=65536+(me-55296<<10|I-56320)}else me&&(A-=3)>-1&&Re.push(239,191,189);if(me=null,I<128){if((A-=1)<0)break;Re.push(I)}else if(I<2048){if((A-=2)<0)break;Re.push(I>>6|192,63&I|128)}else if(I<65536){if((A-=3)<0)break;Re.push(I>>12|224,I>>6&63|128,63&I|128)}else{if(!(I<1114112))throw new Error("Invalid code point");if((A-=4)<0)break;Re.push(I>>18|240,I>>12&63|128,I>>6&63|128,63&I|128)}}return Re}function Ee(f){return O.toByteArray(function re(f){if((f=function ce(f){return f.trim?f.trim():f.replace(/^\s+|\s+$/g,"")}(f).replace(U,"")).length<2)return"";for(;f.length%4!=0;)f+="=";return f}(f))}function K(f,A,I,ne){for(var me=0;me<ne&&!(me+I>=A.length||me>=f.length);++me)A[me+I]=f[me];return me}},78757:(le,k)=>{k.read=function(y,a,O,m,r){var n,o,l=8*r-m-1,e=(1<<l)-1,i=e>>1,h=-7,d=O?r-1:0,g=O?-1:1,b=y[a+d];for(d+=g,n=b&(1<<-h)-1,b>>=-h,h+=l;h>0;n=256*n+y[a+d],d+=g,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=m;h>0;o=256*o+y[a+d],d+=g,h-=8);if(0===n)n=1-i;else{if(n===e)return o?NaN:1/0*(b?-1:1);o+=Math.pow(2,m),n-=i}return(b?-1:1)*o*Math.pow(2,n-m)},k.write=function(y,a,O,m,r,n){var o,l,e,i=8*n-r-1,h=(1<<i)-1,d=h>>1,g=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,b=m?0:n-1,T=m?1:-1,M=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(l=isNaN(a)?1:0,o=h):(o=Math.floor(Math.log(a)/Math.LN2),a*(e=Math.pow(2,-o))<1&&(o--,e*=2),(a+=o+d>=1?g/e:g*Math.pow(2,1-d))*e>=2&&(o++,e/=2),o+d>=h?(l=0,o=h):o+d>=1?(l=(a*e-1)*Math.pow(2,r),o+=d):(l=a*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;y[O+b]=255&l,b+=T,l/=256,r-=8);for(o=o<<r|l,i+=r;i>0;y[O+b]=255&o,b+=T,o/=256,i-=8);y[O+b-T]|=128*M}},85459:le=>{function k(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function y(r){return"function"==typeof r}function O(r){return"object"==typeof r&&null!==r}function m(r){return void 0===r}le.exports=k,k.EventEmitter=k,k.prototype._events=void 0,k.prototype._maxListeners=void 0,k.defaultMaxListeners=10,k.prototype.setMaxListeners=function(r){if(!function a(r){return"number"==typeof r}(r)||r<0||isNaN(r))throw TypeError("n must be a positive number");return this._maxListeners=r,this},k.prototype.emit=function(r){var n,o,l,e,i,h;if(this._events||(this._events={}),"error"===r&&(!this._events.error||O(this._events.error)&&!this._events.error.length)){if((n=arguments[1])instanceof Error)throw n;var d=new Error('Uncaught, unspecified "error" event. ('+n+")");throw d.context=n,d}if(m(o=this._events[r]))return!1;if(y(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1),o.apply(this,e)}else if(O(o))for(e=Array.prototype.slice.call(arguments,1),l=(h=o.slice()).length,i=0;i<l;i++)h[i].apply(this,e);return!0},k.prototype.on=k.prototype.addListener=function(r,n){var o;if(!y(n))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",r,y(n.listener)?n.listener:n),this._events[r]?O(this._events[r])?this._events[r].push(n):this._events[r]=[this._events[r],n]:this._events[r]=n,O(this._events[r])&&!this._events[r].warned&&(o=m(this._maxListeners)?k.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[r].length>o&&(this._events[r].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[r].length),"function"==typeof console.trace&&console.trace()),this},k.prototype.once=function(r,n){if(!y(n))throw TypeError("listener must be a function");var o=!1;function l(){this.removeListener(r,l),o||(o=!0,n.apply(this,arguments))}return l.listener=n,this.on(r,l),this},k.prototype.removeListener=function(r,n){var o,l,e,i;if(!y(n))throw TypeError("listener must be a function");if(!this._events||!this._events[r])return this;if(e=(o=this._events[r]).length,l=-1,o===n||y(o.listener)&&o.listener===n)delete this._events[r],this._events.removeListener&&this.emit("removeListener",r,n);else if(O(o)){for(i=e;i-- >0;)if(o[i]===n||o[i].listener&&o[i].listener===n){l=i;break}if(l<0)return this;1===o.length?(o.length=0,delete this._events[r]):o.splice(l,1),this._events.removeListener&&this.emit("removeListener",r,n)}return this},k.prototype.removeAllListeners=function(r){var n,o;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[r]&&delete this._events[r],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(y(o=this._events[r]))this.removeListener(r,o);else if(o)for(;o.length;)this.removeListener(r,o[o.length-1]);return delete this._events[r],this},k.prototype.listeners=function(r){return this._events&&this._events[r]?y(this._events[r])?[this._events[r]]:this._events[r].slice():[]},k.prototype.listenerCount=function(r){if(this._events){var n=this._events[r];if(y(n))return 1;if(n)return n.length}return 0},k.listenerCount=function(r,n){return r.listenerCount(n)}},73480:function(le,k,y){var a;le=y.nmd(le),function(O){"object"==typeof global&&global;var o,l=2147483647,e=36,i=1,h=26,d=38,g=700,b=72,T=128,M="-",R=/^xn--/,x=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=e-i,Y=Math.floor,j=String.fromCharCode;function C(ue){throw RangeError(W[ue])}function p(ue,H){for(var $=ue.length,oe=[];$--;)oe[$]=H(ue[$]);return oe}function _(ue,H){var $=ue.split("@"),oe="";return $.length>1&&(oe=$[0]+"@",ue=$[1]),oe+p((ue=ue.replace(P,".")).split("."),H).join(".")}function v(ue){for(var ee,L,H=[],$=0,oe=ue.length;$<oe;)(ee=ue.charCodeAt($++))>=55296&&ee<=56319&&$<oe?56320==(64512&(L=ue.charCodeAt($++)))?H.push(((1023&ee)<<10)+(1023&L)+65536):(H.push(ee),$--):H.push(ee);return H}function F(ue){return p(ue,function(H){var $="";return H>65535&&($+=j((H-=65536)>>>10&1023|55296),H=56320|1023&H),$+j(H)}).join("")}function q(ue){return ue-48<10?ue-22:ue-65<26?ue-65:ue-97<26?ue-97:e}function Q(ue,H){return ue+22+75*(ue<26)-((0!=H)<<5)}function J(ue,H,$){var oe=0;for(ue=$?Y(ue/g):ue>>1,ue+=Y(ue/H);ue>V*h>>1;oe+=e)ue=Y(ue/V);return Y(oe+(V+1)*ue/(ue+d))}function ie(ue){var oe,B,G,U,re,ce,be,Z,de,he,H=[],$=ue.length,ee=0,L=T,S=b;for((B=ue.lastIndexOf(M))<0&&(B=0),G=0;G<B;++G)ue.charCodeAt(G)>=128&&C("not-basic"),H.push(ue.charCodeAt(G));for(U=B>0?B+1:0;U<$;){for(re=ee,ce=1,be=e;U>=$&&C("invalid-input"),((Z=q(ue.charCodeAt(U++)))>=e||Z>Y((l-ee)/ce))&&C("overflow"),ee+=Z*ce,!(Z<(de=be<=S?i:be>=S+h?h:be-S));be+=e)ce>Y(l/(he=e-de))&&C("overflow"),ce*=he;S=J(ee-re,oe=H.length+1,0==re),Y(ee/oe)>l-L&&C("overflow"),L+=Y(ee/oe),ee%=oe,H.splice(ee++,0,L)}return F(H)}function Se(ue){var H,$,oe,ee,L,S,B,G,U,re,ce,Z,de,he,Ee,be=[];for(Z=(ue=v(ue)).length,H=T,$=0,L=b,S=0;S<Z;++S)(ce=ue[S])<128&&be.push(j(ce));for(oe=ee=be.length,ee&&be.push(M);oe<Z;){for(B=l,S=0;S<Z;++S)(ce=ue[S])>=H&&ce<B&&(B=ce);for(B-H>Y((l-$)/(de=oe+1))&&C("overflow"),$+=(B-H)*de,H=B,S=0;S<Z;++S)if((ce=ue[S])<H&&++$>l&&C("overflow"),ce==H){for(G=$,U=e;!(G<(re=U<=L?i:U>=L+h?h:U-L));U+=e)be.push(j(Q(re+(Ee=G-re)%(he=e-re),0))),G=Y(Ee/he);be.push(j(Q(G,0))),L=J($,de,oe==ee),$=0,++oe}++$,++H}return be.join("")}o={version:"1.3.2",ucs2:{decode:v,encode:F},decode:ie,encode:Se,toASCII:function ge(ue){return _(ue,function(H){return x.test(H)?"xn--"+Se(H):H})},toUnicode:function te(ue){return _(ue,function(H){return R.test(H)?ie(H.slice(4).toLowerCase()):H})}},void 0!==(a=function(){return o}.call(k,y,k,le))&&(le.exports=a)}()},2636:(le,k,y)=>{var a=y(73480);function O(){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}k.parse=x,k.resolve=function W(p,_){return x(p,!1,!0).resolve(_)},k.resolveObject=function V(p,_){return p?x(p,!1,!0).resolveObject(_):_},k.format=function P(p){return Y(p)&&(p=x(p)),p instanceof O?p.format():O.prototype.format.call(p)},k.Url=O;var m=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,o=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(o),e=["%","/","?",";","#"].concat(l),i=["/","?","#"],d=/^[a-z0-9A-Z_-]{0,63}$/,g=/^([a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},R=y(51239);function x(p,_,v){if(p&&j(p)&&p instanceof O)return p;var F=new O;return F.parse(p,_,v),F}function Y(p){return"string"==typeof p}function j(p){return"object"==typeof p&&null!==p}function E(p){return null===p}O.prototype.parse=function(p,_,v){if(!Y(p))throw new TypeError("Parameter 'url' must be a string, not "+typeof p);var F=p;F=F.trim();var q=m.exec(F);if(q){var Q=(q=q[0]).toLowerCase();this.protocol=Q,F=F.substr(q.length)}if(v||q||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var J="//"===F.substr(0,2);J&&(!q||!T[q])&&(F=F.substr(2),this.slashes=!0)}if(!T[q]&&(J||q&&!M[q])){for(var ie=-1,Se=0;Se<i.length;Se++)-1!==(te=F.indexOf(i[Se]))&&(-1===ie||te<ie)&&(ie=te);var ge,ue;for(-1!==(ue=-1===ie?F.lastIndexOf("@"):F.lastIndexOf("@",ie))&&(ge=F.slice(0,ue),F=F.slice(ue+1),this.auth=decodeURIComponent(ge)),ie=-1,Se=0;Se<e.length;Se++){var te;-1!==(te=F.indexOf(e[Se]))&&(-1===ie||te<ie)&&(ie=te)}-1===ie&&(ie=F.length),this.host=F.slice(0,ie),F=F.slice(ie),this.parseHost(),this.hostname=this.hostname||"";var H="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!H)for(var $=this.hostname.split(/\./),oe=(Se=0,$.length);Se<oe;Se++){var ee=$[Se];if(ee&&!ee.match(d)){for(var L="",S=0,B=ee.length;S<B;S++)ee.charCodeAt(S)>127?L+="x":L+=ee[S];if(!L.match(d)){var G=$.slice(0,Se),U=$.slice(Se+1),re=ee.match(g);re&&(G.push(re[1]),U.unshift(re[2])),U.length&&(F="/"+U.join(".")+F),this.hostname=G.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!H){var ce=this.hostname.split("."),be=[];for(Se=0;Se<ce.length;++Se)be.push((Z=ce[Se]).match(/[^A-Za-z0-9_-]/)?"xn--"+a.encode(Z):Z);this.hostname=be.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==F[0]&&(F="/"+F))}if(!b[Q])for(Se=0,oe=l.length;Se<oe;Se++){var Ee=l[Se],K=encodeURIComponent(Ee);K===Ee&&(K=escape(Ee)),F=F.split(Ee).join(K)}var w=F.indexOf("#");-1!==w&&(this.hash=F.substr(w),F=F.slice(0,w));var Z,f=F.indexOf("?");return-1!==f?(this.search=F.substr(f),this.query=F.substr(f+1),_&&(this.query=R.parse(this.query)),F=F.slice(0,f)):_&&(this.search="",this.query={}),F&&(this.pathname=F),M[Q]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(Z=this.search||"")),this.href=this.format(),this},O.prototype.format=function(){var p=this.auth||"";p&&(p=(p=encodeURIComponent(p)).replace(/%3A/i,":"),p+="@");var _=this.protocol||"",v=this.pathname||"",F=this.hash||"",q=!1,Q="";this.host?q=p+this.host:this.hostname&&(q=p+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(q+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(Q=R.stringify(this.query));var J=this.search||Q&&"?"+Q||"";return _&&":"!==_.substr(-1)&&(_+=":"),this.slashes||(!_||M[_])&&!1!==q?(q="//"+(q||""),v&&"/"!==v.charAt(0)&&(v="/"+v)):q||(q=""),F&&"#"!==F.charAt(0)&&(F="#"+F),J&&"?"!==J.charAt(0)&&(J="?"+J),_+q+(v=v.replace(/[?#]/g,function(ie){return encodeURIComponent(ie)}))+(J=J.replace("#","%23"))+F},O.prototype.resolve=function(p){return this.resolveObject(x(p,!1,!0)).format()},O.prototype.resolveObject=function(p){if(Y(p)){var _=new O;_.parse(p,!1,!0),p=_}var v=new O;if(Object.keys(this).forEach(function(B){v[B]=this[B]},this),v.hash=p.hash,""===p.href)return v.href=v.format(),v;if(p.slashes&&!p.protocol)return Object.keys(p).forEach(function(B){"protocol"!==B&&(v[B]=p[B])}),M[v.protocol]&&v.hostname&&!v.pathname&&(v.path=v.pathname="/"),v.href=v.format(),v;if(p.protocol&&p.protocol!==v.protocol){if(!M[p.protocol])return Object.keys(p).forEach(function(B){v[B]=p[B]}),v.href=v.format(),v;if(v.protocol=p.protocol,p.host||T[p.protocol])v.pathname=p.pathname;else{for(var ge=(p.pathname||"").split("/");ge.length&&!(p.host=ge.shift()););p.host||(p.host=""),p.hostname||(p.hostname=""),""!==ge[0]&&ge.unshift(""),ge.length<2&&ge.unshift(""),v.pathname=ge.join("/")}return v.search=p.search,v.query=p.query,v.host=p.host||"",v.auth=p.auth,v.hostname=p.hostname||p.host,v.port=p.port,(v.pathname||v.search)&&(v.path=(v.pathname||"")+(v.search||"")),v.slashes=v.slashes||p.slashes,v.href=v.format(),v}var Q=v.pathname&&"/"===v.pathname.charAt(0),J=p.host||p.pathname&&"/"===p.pathname.charAt(0),ie=J||Q||v.host&&p.pathname,Se=ie,te=v.pathname&&v.pathname.split("/")||[],ue=(ge=p.pathname&&p.pathname.split("/")||[],v.protocol&&!M[v.protocol]);if(ue&&(v.hostname="",v.port=null,v.host&&(""===te[0]?te[0]=v.host:te.unshift(v.host)),v.host="",p.protocol&&(p.hostname=null,p.port=null,p.host&&(""===ge[0]?ge[0]=p.host:ge.unshift(p.host)),p.host=null),ie=ie&&(""===ge[0]||""===te[0])),J)v.host=p.host||""===p.host?p.host:v.host,v.hostname=p.hostname||""===p.hostname?p.hostname:v.hostname,v.search=p.search,v.query=p.query,te=ge;else if(ge.length)te||(te=[]),te.pop(),te=te.concat(ge),v.search=p.search,v.query=p.query;else if(!function C(p){return null==p}(p.search))return ue&&(v.hostname=v.host=te.shift(),(H=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=H.shift(),v.host=v.hostname=H.shift())),v.search=p.search,v.query=p.query,(!E(v.pathname)||!E(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.href=v.format(),v;if(!te.length)return v.pathname=null,v.path=v.search?"/"+v.search:null,v.href=v.format(),v;for(var $=te.slice(-1)[0],oe=(v.host||p.host)&&("."===$||".."===$)||""===$,ee=0,L=te.length;L>=0;L--)"."==($=te[L])?te.splice(L,1):".."===$?(te.splice(L,1),ee++):ee&&(te.splice(L,1),ee--);if(!ie&&!Se)for(;ee--;ee)te.unshift("..");ie&&""!==te[0]&&(!te[0]||"/"!==te[0].charAt(0))&&te.unshift(""),oe&&"/"!==te.join("/").substr(-1)&&te.push("");var H,S=""===te[0]||te[0]&&"/"===te[0].charAt(0);return ue&&(v.hostname=v.host=S?"":te.length?te.shift():"",(H=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=H.shift(),v.host=v.hostname=H.shift())),(ie=ie||v.host&&te.length)&&!S&&te.unshift(""),te.length?v.pathname=te.join("/"):(v.pathname=null,v.path=null),(!E(v.pathname)||!E(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.auth=p.auth||v.auth,v.slashes=v.slashes||p.slashes,v.href=v.format(),v},O.prototype.parseHost=function(){var p=this.host,_=r.exec(p);_&&(":"!==(_=_[0])&&(this.port=_.substr(1)),p=p.substr(0,p.length-_.length)),p&&(this.hostname=p)}},50979:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;for(var y=[],a=0;a<256;++a)y[a]=(a+256).toString(16).substr(1);k.default=function O(r,n){var o=n||0;return[y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],"-",y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]],y[r[o++]]].join("")}},4111:(le,k,y)=>{"use strict";Object.defineProperty(k,"v4",{enumerable:!0,get:function(){return r.default}});o(y(44642)),o(y(53087));var r=o(y(64096));o(y(30575));function o(l){return l&&l.__esModule?l:{default:l}}},56326:(le,k)=>{"use strict";function r(g,b){var T=(65535&g)+(65535&b);return(g>>16)+(b>>16)+(T>>16)<<16|65535&T}function o(g,b,T,M,R,x){return r(function n(g,b){return g<<b|g>>>32-b}(r(r(b,g),r(M,x)),R),T)}function l(g,b,T,M,R,x,P){return o(b&T|~b&M,g,b,R,x,P)}function e(g,b,T,M,R,x,P){return o(b&M|T&~M,g,b,R,x,P)}function i(g,b,T,M,R,x,P){return o(b^T^M,g,b,R,x,P)}function h(g,b,T,M,R,x,P){return o(T^(b|~M),g,b,R,x,P)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function y(g){if("string"==typeof g){var b=unescape(encodeURIComponent(g));g=new Array(b.length);for(var T=0;T<b.length;T++)g[T]=b.charCodeAt(T)}return function a(g){var b,T,P,M=[],R=32*g.length,x="0123456789abcdef";for(b=0;b<R;b+=8)T=g[b>>5]>>>b%32&255,P=parseInt(x.charAt(T>>>4&15)+x.charAt(15&T),16),M.push(P);return M}(function O(g,b){g[b>>5]|=128<<b%32,g[14+(b+64>>>9<<4)]=b;var T,M,R,x,P,W=1732584193,V=-271733879,Y=-1732584194,j=271733878;for(T=0;T<g.length;T+=16)M=W,R=V,x=Y,P=j,W=l(W,V,Y,j,g[T],7,-680876936),j=l(j,W,V,Y,g[T+1],12,-389564586),Y=l(Y,j,W,V,g[T+2],17,606105819),V=l(V,Y,j,W,g[T+3],22,-1044525330),W=l(W,V,Y,j,g[T+4],7,-176418897),j=l(j,W,V,Y,g[T+5],12,1200080426),Y=l(Y,j,W,V,g[T+6],17,-1473231341),V=l(V,Y,j,W,g[T+7],22,-45705983),W=l(W,V,Y,j,g[T+8],7,1770035416),j=l(j,W,V,Y,g[T+9],12,-1958414417),Y=l(Y,j,W,V,g[T+10],17,-42063),V=l(V,Y,j,W,g[T+11],22,-1990404162),W=l(W,V,Y,j,g[T+12],7,1804603682),j=l(j,W,V,Y,g[T+13],12,-40341101),Y=l(Y,j,W,V,g[T+14],17,-1502002290),W=e(W,V=l(V,Y,j,W,g[T+15],22,1236535329),Y,j,g[T+1],5,-165796510),j=e(j,W,V,Y,g[T+6],9,-1069501632),Y=e(Y,j,W,V,g[T+11],14,643717713),V=e(V,Y,j,W,g[T],20,-373897302),W=e(W,V,Y,j,g[T+5],5,-701558691),j=e(j,W,V,Y,g[T+10],9,38016083),Y=e(Y,j,W,V,g[T+15],14,-660478335),V=e(V,Y,j,W,g[T+4],20,-405537848),W=e(W,V,Y,j,g[T+9],5,568446438),j=e(j,W,V,Y,g[T+14],9,-1019803690),Y=e(Y,j,W,V,g[T+3],14,-187363961),V=e(V,Y,j,W,g[T+8],20,1163531501),W=e(W,V,Y,j,g[T+13],5,-1444681467),j=e(j,W,V,Y,g[T+2],9,-51403784),Y=e(Y,j,W,V,g[T+7],14,1735328473),W=i(W,V=e(V,Y,j,W,g[T+12],20,-1926607734),Y,j,g[T+5],4,-378558),j=i(j,W,V,Y,g[T+8],11,-2022574463),Y=i(Y,j,W,V,g[T+11],16,1839030562),V=i(V,Y,j,W,g[T+14],23,-35309556),W=i(W,V,Y,j,g[T+1],4,-1530992060),j=i(j,W,V,Y,g[T+4],11,1272893353),Y=i(Y,j,W,V,g[T+7],16,-155497632),V=i(V,Y,j,W,g[T+10],23,-1094730640),W=i(W,V,Y,j,g[T+13],4,681279174),j=i(j,W,V,Y,g[T],11,-358537222),Y=i(Y,j,W,V,g[T+3],16,-722521979),V=i(V,Y,j,W,g[T+6],23,76029189),W=i(W,V,Y,j,g[T+9],4,-640364487),j=i(j,W,V,Y,g[T+12],11,-421815835),Y=i(Y,j,W,V,g[T+15],16,530742520),W=h(W,V=i(V,Y,j,W,g[T+2],23,-995338651),Y,j,g[T],6,-198630844),j=h(j,W,V,Y,g[T+7],10,1126891415),Y=h(Y,j,W,V,g[T+14],15,-1416354905),V=h(V,Y,j,W,g[T+5],21,-57434055),W=h(W,V,Y,j,g[T+12],6,1700485571),j=h(j,W,V,Y,g[T+3],10,-1894986606),Y=h(Y,j,W,V,g[T+10],15,-1051523),V=h(V,Y,j,W,g[T+1],21,-2054922799),W=h(W,V,Y,j,g[T+8],6,1873313359),j=h(j,W,V,Y,g[T+15],10,-30611744),Y=h(Y,j,W,V,g[T+6],15,-1560198380),V=h(V,Y,j,W,g[T+13],21,1309151649),W=h(W,V,Y,j,g[T+4],6,-145523070),j=h(j,W,V,Y,g[T+11],10,-1120210379),Y=h(Y,j,W,V,g[T+2],15,718787259),V=h(V,Y,j,W,g[T+9],21,-343485551),W=r(W,M),V=r(V,R),Y=r(Y,x),j=r(j,P);return[W,V,Y,j]}(function m(g){var b,T=[];for(T[(g.length>>2)-1]=void 0,b=0;b<T.length;b+=1)T[b]=0;var M=8*g.length;for(b=0;b<M;b+=8)T[b>>5]|=(255&g[b/8])<<b%32;return T}(g),8*g.length))}},78293:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=function O(){if(!y)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return y(a)};var y=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),a=new Uint8Array(16)},47290:(le,k)=>{"use strict";function y(r,n,o,l){switch(r){case 0:return n&o^~n&l;case 1:case 3:return n^o^l;case 2:return n&o^n&l^o&l}}function a(r,n){return r<<n|r>>>32-n}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0,k.default=function O(r){var n=[1518500249,1859775393,2400959708,3395469782],o=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof r){var l=unescape(encodeURIComponent(r));r=new Array(l.length);for(var e=0;e<l.length;e++)r[e]=l.charCodeAt(e)}r.push(128);var h=Math.ceil((r.length/4+2)/16),d=new Array(h);for(e=0;e<h;e++){d[e]=new Array(16);for(var g=0;g<16;g++)d[e][g]=r[64*e+4*g]<<24|r[64*e+4*g+1]<<16|r[64*e+4*g+2]<<8|r[64*e+4*g+3]}for(d[h-1][14]=8*(r.length-1)/Math.pow(2,32),d[h-1][14]=Math.floor(d[h-1][14]),d[h-1][15]=8*(r.length-1)&4294967295,e=0;e<h;e++){for(var b=new Array(80),T=0;T<16;T++)b[T]=d[e][T];for(T=16;T<80;T++)b[T]=a(b[T-3]^b[T-8]^b[T-14]^b[T-16],1);var M=o[0],R=o[1],x=o[2],P=o[3],W=o[4];for(T=0;T<80;T++){var V=Math.floor(T/20),Y=a(M,5)+y(V,R,x,P)+W+n[V]+b[T]>>>0;W=P,P=x,x=a(R,30)>>>0,R=M,M=Y}o[0]=o[0]+M>>>0,o[1]=o[1]+R>>>0,o[2]=o[2]+x>>>0,o[3]=o[3]+P>>>0,o[4]=o[4]+W>>>0}return[o[0]>>24&255,o[0]>>16&255,o[0]>>8&255,255&o[0],o[1]>>24&255,o[1]>>16&255,o[1]>>8&255,255&o[1],o[2]>>24&255,o[2]>>16&255,o[2]>>8&255,255&o[2],o[3]>>24&255,o[3]>>16&255,o[3]>>8&255,255&o[3],o[4]>>24&255,o[4]>>16&255,o[4]>>8&255,255&o[4]]}},44642:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(78293)),O=m(y(50979));function m(h){return h&&h.__esModule?h:{default:h}}var r,n,o=0,l=0;k.default=function e(h,d,g){var b=d&&g||0,T=d||[],M=(h=h||{}).node||r,R=void 0!==h.clockseq?h.clockseq:n;if(null==M||null==R){var x=h.random||(h.rng||a.default)();null==M&&(M=r=[1|x[0],x[1],x[2],x[3],x[4],x[5]]),null==R&&(R=n=16383&(x[6]<<8|x[7]))}var P=void 0!==h.msecs?h.msecs:(new Date).getTime(),W=void 0!==h.nsecs?h.nsecs:l+1,V=P-o+(W-l)/1e4;if(V<0&&void 0===h.clockseq&&(R=R+1&16383),(V<0||P>o)&&void 0===h.nsecs&&(W=0),W>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=P,l=W,n=R;var Y=(1e4*(268435455&(P+=122192928e5))+W)%4294967296;T[b++]=Y>>>24&255,T[b++]=Y>>>16&255,T[b++]=Y>>>8&255,T[b++]=255&Y;var j=P/4294967296*1e4&268435455;T[b++]=j>>>8&255,T[b++]=255&j,T[b++]=j>>>24&15|16,T[b++]=j>>>16&255,T[b++]=R>>>8|128,T[b++]=255&R;for(var E=0;E<6;++E)T[b+E]=M[E];return d||(0,O.default)(T)}},53087:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(97633)),O=m(y(56326));function m(o){return o&&o.__esModule?o:{default:o}}var n=(0,a.default)("v3",48,O.default);k.default=n},97633:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=function l(e,i,h){var d=function(g,b,T,M){var R=T&&M||0;if("string"==typeof g&&(g=function r(e){e=unescape(encodeURIComponent(e));for(var i=new Array(e.length),h=0;h<e.length;h++)i[h]=e.charCodeAt(h);return i}(g)),"string"==typeof b&&(b=function m(e){var i=[];return e.replace(/[a-fA-F0-9]{2}/g,function(h){i.push(parseInt(h,16))}),i}(b)),!Array.isArray(g))throw TypeError("value must be an array of bytes");if(!Array.isArray(b)||16!==b.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var x=h(b.concat(g));if(x[6]=15&x[6]|i,x[8]=63&x[8]|128,T)for(var P=0;P<16;++P)T[R+P]=x[P];return T||(0,a.default)(x)};try{d.name=e}catch{}return d.DNS=n,d.URL=o,d},k.URL=k.DNS=void 0;var a=function O(e){return e&&e.__esModule?e:{default:e}}(y(50979));const n="6ba7b810-9dad-11d1-80b4-00c04fd430c8";k.DNS=n;const o="6ba7b811-9dad-11d1-80b4-00c04fd430c8";k.URL=o},64096:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(78293)),O=m(y(50979));function m(o){return o&&o.__esModule?o:{default:o}}k.default=function r(o,l,e){var i=l&&e||0;"string"==typeof o&&(l="binary"===o?new Array(16):null,o=null);var h=(o=o||{}).random||(o.rng||a.default)();if(h[6]=15&h[6]|64,h[8]=63&h[8]|128,l)for(var d=0;d<16;++d)l[i+d]=h[d];return l||(0,O.default)(h)}},30575:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var a=m(y(97633)),O=m(y(47290));function m(o){return o&&o.__esModule?o:{default:o}}var n=(0,a.default)("v5",80,O.default);k.default=n},94830:(le,k,y)=>{"use strict";var O=y(39549),m=1e3,r=function(){function n(o){void 0===o&&(o=m),this.maxSize=o,this.cache=new O.LRUCache(o)}return Object.defineProperty(n.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),n.prototype.put=function(o,l){var e="string"!=typeof o?n.getKeyString(o):o,i=this.populateValue(l);this.cache.put(e,i)},n.prototype.get=function(o){var l="string"!=typeof o?n.getKeyString(o):o,e=Date.now(),i=this.cache.get(l);if(i){for(var h=i.length-1;h>=0;h--)i[h].Expire<e&&i.splice(h,1);if(0===i.length)return void this.cache.remove(l)}return i},n.getKeyString=function(o){for(var l=[],e=Object.keys(o).sort(),i=0;i<e.length;i++){var h=e[i];void 0!==o[h]&&l.push(o[h])}return l.join(" ")},n.prototype.populateValue=function(o){var l=Date.now();return o.map(function(e){return{Address:e.Address||"",Expire:l+60*(e.CachePeriodInMinutes||1)*1e3}})},n.prototype.empty=function(){this.cache.empty()},n.prototype.remove=function(o){var l="string"!=typeof o?n.getKeyString(o):o;this.cache.remove(l)},n}();k.$=r},39549:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});var y=function O(m,r){this.key=m,this.value=r},a=function(){function O(m){if(this.nodeMap={},this.size=0,"number"!=typeof m||m<1)throw new Error("Cache size can only be positive number");this.sizeLimit=m}return Object.defineProperty(O.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),O.prototype.prependToList=function(m){this.headerNode?(this.headerNode.prev=m,m.next=this.headerNode):this.tailNode=m,this.headerNode=m,this.size++},O.prototype.removeFromTail=function(){if(this.tailNode){var m=this.tailNode,r=m.prev;return r&&(r.next=void 0),m.prev=void 0,this.tailNode=r,this.size--,m}},O.prototype.detachFromList=function(m){this.headerNode===m&&(this.headerNode=m.next),this.tailNode===m&&(this.tailNode=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),m.next=void 0,m.prev=void 0,this.size--},O.prototype.get=function(m){if(this.nodeMap[m]){var r=this.nodeMap[m];return this.detachFromList(r),this.prependToList(r),r.value}},O.prototype.remove=function(m){this.nodeMap[m]&&(this.detachFromList(this.nodeMap[m]),delete this.nodeMap[m])},O.prototype.put=function(m,r){if(this.nodeMap[m])this.remove(m);else if(this.size===this.sizeLimit){var n=this.removeFromTail();delete this.nodeMap[n.key]}var l=new y(m,r);this.nodeMap[m]=l,this.prependToList(l)},O.prototype.empty=function(){for(var m=Object.keys(this.nodeMap),r=0;r<m.length;r++){var n=m[r];this.detachFromList(this.nodeMap[n]),delete this.nodeMap[n]}},O}();k.LRUCache=a},3517:(le,k)=>{"use strict";k.byteLength=function l(b){var T=o(b),R=T[1];return 3*(T[0]+R)/4-R},k.toByteArray=function i(b){var T,Y,M=o(b),R=M[0],x=M[1],P=new O(function e(b,T,M){return 3*(T+M)/4-M}(0,R,x)),W=0,V=x>0?R-4:R;for(Y=0;Y<V;Y+=4)T=a[b.charCodeAt(Y)]<<18|a[b.charCodeAt(Y+1)]<<12|a[b.charCodeAt(Y+2)]<<6|a[b.charCodeAt(Y+3)],P[W++]=T>>16&255,P[W++]=T>>8&255,P[W++]=255&T;return 2===x&&(T=a[b.charCodeAt(Y)]<<2|a[b.charCodeAt(Y+1)]>>4,P[W++]=255&T),1===x&&(T=a[b.charCodeAt(Y)]<<10|a[b.charCodeAt(Y+1)]<<4|a[b.charCodeAt(Y+2)]>>2,P[W++]=T>>8&255,P[W++]=255&T),P},k.fromByteArray=function g(b){for(var T,M=b.length,R=M%3,x=[],P=16383,W=0,V=M-R;W<V;W+=P)x.push(d(b,W,W+P>V?V:W+P));return 1===R?x.push(y[(T=b[M-1])>>2]+y[T<<4&63]+"=="):2===R&&x.push(y[(T=(b[M-2]<<8)+b[M-1])>>10]+y[T>>4&63]+y[T<<2&63]+"="),x.join("")};for(var y=[],a=[],O=typeof Uint8Array<"u"?Uint8Array:Array,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,n=m.length;r<n;++r)y[r]=m[r],a[m.charCodeAt(r)]=r;function o(b){var T=b.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=b.indexOf("=");return-1===M&&(M=T),[M,M===T?0:4-M%4]}function h(b){return y[b>>18&63]+y[b>>12&63]+y[b>>6&63]+y[63&b]}function d(b,T,M){for(var x=[],P=T;P<M;P+=3)x.push(h((b[P]<<16&16711680)+(b[P+1]<<8&65280)+(255&b[P+2])));return x.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},9333:(le,k,y)=>{"use strict";var O=y(3517),m=y(67926),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;k.lW=e,k.h2=50;var n=2147483647;function l(K){if(K>n)throw new RangeError('The value "'+K+'" is invalid for option "size"');var w=new Uint8Array(K);return Object.setPrototypeOf(w,e.prototype),w}function e(K,w,f){if("number"==typeof K){if("string"==typeof w)throw new TypeError('The "string" argument must be of type string. Received type number');return g(K)}return i(K,w,f)}function i(K,w,f){if("string"==typeof K)return function b(K,w){if(("string"!=typeof w||""===w)&&(w="utf8"),!e.isEncoding(w))throw new TypeError("Unknown encoding: "+w);var f=0|V(K,w),A=l(f),I=A.write(K,w);return I!==f&&(A=A.slice(0,I)),A}(K,w);if(ArrayBuffer.isView(K))return function M(K){if(de(K,Uint8Array)){var w=new Uint8Array(K);return R(w.buffer,w.byteOffset,w.byteLength)}return T(K)}(K);if(null==K)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(de(K,ArrayBuffer)||K&&de(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(de(K,SharedArrayBuffer)||K&&de(K.buffer,SharedArrayBuffer)))return R(K,w,f);if("number"==typeof K)throw new TypeError('The "value" argument must not be of type number. Received type number');var A=K.valueOf&&K.valueOf();if(null!=A&&A!==K)return e.from(A,w,f);var I=function x(K){if(e.isBuffer(K)){var w=0|P(K.length),f=l(w);return 0===f.length||K.copy(f,0,0,w),f}return void 0!==K.length?"number"!=typeof K.length||he(K.length)?l(0):T(K):"Buffer"===K.type&&Array.isArray(K.data)?T(K.data):void 0}(K);if(I)return I;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof K[Symbol.toPrimitive])return e.from(K[Symbol.toPrimitive]("string"),w,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}function h(K){if("number"!=typeof K)throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function g(K){return h(K),l(K<0?0:0|P(K))}function T(K){for(var w=K.length<0?0:0|P(K.length),f=l(w),A=0;A<w;A+=1)f[A]=255&K[A];return f}function R(K,w,f){if(w<0||K.byteLength<w)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<w+(f||0))throw new RangeError('"length" is outside of buffer bounds');var A;return A=void 0===w&&void 0===f?new Uint8Array(K):void 0===f?new Uint8Array(K,w):new Uint8Array(K,w,f),Object.setPrototypeOf(A,e.prototype),A}function P(K){if(K>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return 0|K}function V(K,w){if(e.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||de(K,ArrayBuffer))return K.byteLength;if("string"!=typeof K)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);var f=K.length,A=arguments.length>2&&!0===arguments[2];if(!A&&0===f)return 0;for(var I=!1;;)switch(w){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return U(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return be(K).length;default:if(I)return A?-1:U(K).length;w=(""+w).toLowerCase(),I=!0}}function Y(K,w,f){var A=!1;if((void 0===w||w<0)&&(w=0),w>this.length||((void 0===f||f>this.length)&&(f=this.length),f<=0)||(f>>>=0)<=(w>>>=0))return"";for(K||(K="utf8");;)switch(K){case"hex":return ue(this,w,f);case"utf8":case"utf-8":return J(this,w,f);case"ascii":return te(this,w,f);case"latin1":case"binary":return ge(this,w,f);case"base64":return Q(this,w,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,w,f);default:if(A)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),A=!0}}function j(K,w,f){var A=K[w];K[w]=K[f],K[f]=A}function E(K,w,f,A,I){if(0===K.length)return-1;if("string"==typeof f?(A=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),he(f=+f)&&(f=I?0:K.length-1),f<0&&(f=K.length+f),f>=K.length){if(I)return-1;f=K.length-1}else if(f<0){if(!I)return-1;f=0}if("string"==typeof w&&(w=e.from(w,A)),e.isBuffer(w))return 0===w.length?-1:C(K,w,f,A,I);if("number"==typeof w)return w&=255,"function"==typeof Uint8Array.prototype.indexOf?I?Uint8Array.prototype.indexOf.call(K,w,f):Uint8Array.prototype.lastIndexOf.call(K,w,f):C(K,[w],f,A,I);throw new TypeError("val must be string, number or Buffer")}function C(K,w,f,A,I){var ae,ne=1,me=K.length,Re=w.length;if(void 0!==A&&("ucs2"===(A=String(A).toLowerCase())||"ucs-2"===A||"utf16le"===A||"utf-16le"===A)){if(K.length<2||w.length<2)return-1;ne=2,me/=2,Re/=2,f/=2}function Pe(Me,je){return 1===ne?Me[je]:Me.readUInt16BE(je*ne)}if(I){var ye=-1;for(ae=f;ae<me;ae++)if(Pe(K,ae)===Pe(w,-1===ye?0:ae-ye)){if(-1===ye&&(ye=ae),ae-ye+1===Re)return ye*ne}else-1!==ye&&(ae-=ae-ye),ye=-1}else for(f+Re>me&&(f=me-Re),ae=f;ae>=0;ae--){for(var _e=!0,Ie=0;Ie<Re;Ie++)if(Pe(K,ae+Ie)!==Pe(w,Ie)){_e=!1;break}if(_e)return ae}return-1}function p(K,w,f,A){f=Number(f)||0;var I=K.length-f;A?(A=Number(A))>I&&(A=I):A=I;var ne=w.length;A>ne/2&&(A=ne/2);for(var me=0;me<A;++me){var Re=parseInt(w.substr(2*me,2),16);if(he(Re))return me;K[f+me]=Re}return me}function _(K,w,f,A){return Z(U(w,K.length-f),K,f,A)}function v(K,w,f,A){return Z(function re(K){for(var w=[],f=0;f<K.length;++f)w.push(255&K.charCodeAt(f));return w}(w),K,f,A)}function F(K,w,f,A){return Z(be(w),K,f,A)}function q(K,w,f,A){return Z(function ce(K,w){for(var f,A,ne=[],me=0;me<K.length&&!((w-=2)<0);++me)A=(f=K.charCodeAt(me))>>8,ne.push(f%256),ne.push(A);return ne}(w,K.length-f),K,f,A)}function Q(K,w,f){return O.fromByteArray(0===w&&f===K.length?K:K.slice(w,f))}function J(K,w,f){f=Math.min(K.length,f);for(var A=[],I=w;I<f;){var Pe,ae,ye,_e,ne=K[I],me=null,Re=ne>239?4:ne>223?3:ne>191?2:1;if(I+Re<=f)switch(Re){case 1:ne<128&&(me=ne);break;case 2:128==(192&(Pe=K[I+1]))&&(_e=(31&ne)<<6|63&Pe)>127&&(me=_e);break;case 3:ae=K[I+2],128==(192&(Pe=K[I+1]))&&128==(192&ae)&&(_e=(15&ne)<<12|(63&Pe)<<6|63&ae)>2047&&(_e<55296||_e>57343)&&(me=_e);break;case 4:ae=K[I+2],ye=K[I+3],128==(192&(Pe=K[I+1]))&&128==(192&ae)&&128==(192&ye)&&(_e=(15&ne)<<18|(63&Pe)<<12|(63&ae)<<6|63&ye)>65535&&_e<1114112&&(me=_e)}null===me?(me=65533,Re=1):me>65535&&(A.push((me-=65536)>>>10&1023|55296),me=56320|1023&me),A.push(me),I+=Re}return function Se(K){var w=K.length;if(w<=ie)return String.fromCharCode.apply(String,K);for(var f="",A=0;A<w;)f+=String.fromCharCode.apply(String,K.slice(A,A+=ie));return f}(A)}!(e.TYPED_ARRAY_SUPPORT=function o(){try{var K=new Uint8Array(1),w={foo:function(){return 42}};return Object.setPrototypeOf(w,Uint8Array.prototype),Object.setPrototypeOf(K,w),42===K.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(e.prototype,"parent",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.buffer}}),Object.defineProperty(e.prototype,"offset",{enumerable:!0,get:function(){if(e.isBuffer(this))return this.byteOffset}}),e.poolSize=8192,e.from=function(K,w,f){return i(K,w,f)},Object.setPrototypeOf(e.prototype,Uint8Array.prototype),Object.setPrototypeOf(e,Uint8Array),e.alloc=function(K,w,f){return function d(K,w,f){return h(K),K<=0?l(K):void 0!==w?"string"==typeof f?l(K).fill(w,f):l(K).fill(w):l(K)}(K,w,f)},e.allocUnsafe=function(K){return g(K)},e.allocUnsafeSlow=function(K){return g(K)},e.isBuffer=function(w){return null!=w&&!0===w._isBuffer&&w!==e.prototype},e.compare=function(w,f){if(de(w,Uint8Array)&&(w=e.from(w,w.offset,w.byteLength)),de(f,Uint8Array)&&(f=e.from(f,f.offset,f.byteLength)),!e.isBuffer(w)||!e.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(w===f)return 0;for(var A=w.length,I=f.length,ne=0,me=Math.min(A,I);ne<me;++ne)if(w[ne]!==f[ne]){A=w[ne],I=f[ne];break}return A<I?-1:I<A?1:0},e.isEncoding=function(w){switch(String(w).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}},e.concat=function(w,f){if(!Array.isArray(w))throw new TypeError('"list" argument must be an Array of Buffers');if(0===w.length)return e.alloc(0);var A;if(void 0===f)for(f=0,A=0;A<w.length;++A)f+=w[A].length;var I=e.allocUnsafe(f),ne=0;for(A=0;A<w.length;++A){var me=w[A];if(de(me,Uint8Array))ne+me.length>I.length?e.from(me).copy(I,ne):Uint8Array.prototype.set.call(I,me,ne);else{if(!e.isBuffer(me))throw new TypeError('"list" argument must be an Array of Buffers');me.copy(I,ne)}ne+=me.length}return I},e.byteLength=V,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var w=this.length;if(w%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<w;f+=2)j(this,f,f+1);return this},e.prototype.swap32=function(){var w=this.length;if(w%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<w;f+=4)j(this,f,f+3),j(this,f+1,f+2);return this},e.prototype.swap64=function(){var w=this.length;if(w%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<w;f+=8)j(this,f,f+7),j(this,f+1,f+6),j(this,f+2,f+5),j(this,f+3,f+4);return this},e.prototype.toLocaleString=e.prototype.toString=function(){var w=this.length;return 0===w?"":0===arguments.length?J(this,0,w):Y.apply(this,arguments)},e.prototype.equals=function(w){if(!e.isBuffer(w))throw new TypeError("Argument must be a Buffer");return this===w||0===e.compare(this,w)},e.prototype.inspect=function(){var w="",f=k.h2;return w=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(w+=" ... "),"<Buffer "+w+">"},r&&(e.prototype[r]=e.prototype.inspect),e.prototype.compare=function(w,f,A,I,ne){if(de(w,Uint8Array)&&(w=e.from(w,w.offset,w.byteLength)),!e.isBuffer(w))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof w);if(void 0===f&&(f=0),void 0===A&&(A=w?w.length:0),void 0===I&&(I=0),void 0===ne&&(ne=this.length),f<0||A>w.length||I<0||ne>this.length)throw new RangeError("out of range index");if(I>=ne&&f>=A)return 0;if(I>=ne)return-1;if(f>=A)return 1;if(this===w)return 0;for(var me=(ne>>>=0)-(I>>>=0),Re=(A>>>=0)-(f>>>=0),Pe=Math.min(me,Re),ae=this.slice(I,ne),ye=w.slice(f,A),_e=0;_e<Pe;++_e)if(ae[_e]!==ye[_e]){me=ae[_e],Re=ye[_e];break}return me<Re?-1:Re<me?1:0},e.prototype.includes=function(w,f,A){return-1!==this.indexOf(w,f,A)},e.prototype.indexOf=function(w,f,A){return E(this,w,f,A,!0)},e.prototype.lastIndexOf=function(w,f,A){return E(this,w,f,A,!1)},e.prototype.write=function(w,f,A,I){if(void 0===f)I="utf8",A=this.length,f=0;else if(void 0===A&&"string"==typeof f)I=f,A=this.length,f=0;else{if(!isFinite(f))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");f>>>=0,isFinite(A)?(A>>>=0,void 0===I&&(I="utf8")):(I=A,A=void 0)}var ne=this.length-f;if((void 0===A||A>ne)&&(A=ne),w.length>0&&(A<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");I||(I="utf8");for(var me=!1;;)switch(I){case"hex":return p(this,w,f,A);case"utf8":case"utf-8":return _(this,w,f,A);case"ascii":case"latin1":case"binary":return v(this,w,f,A);case"base64":return F(this,w,f,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,w,f,A);default:if(me)throw new TypeError("Unknown encoding: "+I);I=(""+I).toLowerCase(),me=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;function te(K,w,f){var A="";f=Math.min(K.length,f);for(var I=w;I<f;++I)A+=String.fromCharCode(127&K[I]);return A}function ge(K,w,f){var A="";f=Math.min(K.length,f);for(var I=w;I<f;++I)A+=String.fromCharCode(K[I]);return A}function ue(K,w,f){var A=K.length;(!w||w<0)&&(w=0),(!f||f<0||f>A)&&(f=A);for(var I="",ne=w;ne<f;++ne)I+=Ee[K[ne]];return I}function H(K,w,f){for(var A=K.slice(w,f),I="",ne=0;ne<A.length-1;ne+=2)I+=String.fromCharCode(A[ne]+256*A[ne+1]);return I}function $(K,w,f){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+w>f)throw new RangeError("Trying to access beyond buffer length")}function oe(K,w,f,A,I,ne){if(!e.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(w>I||w<ne)throw new RangeError('"value" argument is out of bounds');if(f+A>K.length)throw new RangeError("Index out of range")}function ee(K,w,f,A,I,ne){if(f+A>K.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function L(K,w,f,A,I){return w=+w,f>>>=0,I||ee(K,0,f,4),m.write(K,w,f,A,23,4),f+4}function S(K,w,f,A,I){return w=+w,f>>>=0,I||ee(K,0,f,8),m.write(K,w,f,A,52,8),f+8}e.prototype.slice=function(w,f){var A=this.length;(w=~~w)<0?(w+=A)<0&&(w=0):w>A&&(w=A),(f=void 0===f?A:~~f)<0?(f+=A)<0&&(f=0):f>A&&(f=A),f<w&&(f=w);var I=this.subarray(w,f);return Object.setPrototypeOf(I,e.prototype),I},e.prototype.readUintLE=e.prototype.readUIntLE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=this[w],ne=1,me=0;++me<f&&(ne*=256);)I+=this[w+me]*ne;return I},e.prototype.readUintBE=e.prototype.readUIntBE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=this[w+--f],ne=1;f>0&&(ne*=256);)I+=this[w+--f]*ne;return I},e.prototype.readUint8=e.prototype.readUInt8=function(w,f){return w>>>=0,f||$(w,1,this.length),this[w]},e.prototype.readUint16LE=e.prototype.readUInt16LE=function(w,f){return w>>>=0,f||$(w,2,this.length),this[w]|this[w+1]<<8},e.prototype.readUint16BE=e.prototype.readUInt16BE=function(w,f){return w>>>=0,f||$(w,2,this.length),this[w]<<8|this[w+1]},e.prototype.readUint32LE=e.prototype.readUInt32LE=function(w,f){return w>>>=0,f||$(w,4,this.length),(this[w]|this[w+1]<<8|this[w+2]<<16)+16777216*this[w+3]},e.prototype.readUint32BE=e.prototype.readUInt32BE=function(w,f){return w>>>=0,f||$(w,4,this.length),16777216*this[w]+(this[w+1]<<16|this[w+2]<<8|this[w+3])},e.prototype.readIntLE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=this[w],ne=1,me=0;++me<f&&(ne*=256);)I+=this[w+me]*ne;return I>=(ne*=128)&&(I-=Math.pow(2,8*f)),I},e.prototype.readIntBE=function(w,f,A){w>>>=0,f>>>=0,A||$(w,f,this.length);for(var I=f,ne=1,me=this[w+--I];I>0&&(ne*=256);)me+=this[w+--I]*ne;return me>=(ne*=128)&&(me-=Math.pow(2,8*f)),me},e.prototype.readInt8=function(w,f){return w>>>=0,f||$(w,1,this.length),128&this[w]?-1*(255-this[w]+1):this[w]},e.prototype.readInt16LE=function(w,f){w>>>=0,f||$(w,2,this.length);var A=this[w]|this[w+1]<<8;return 32768&A?4294901760|A:A},e.prototype.readInt16BE=function(w,f){w>>>=0,f||$(w,2,this.length);var A=this[w+1]|this[w]<<8;return 32768&A?4294901760|A:A},e.prototype.readInt32LE=function(w,f){return w>>>=0,f||$(w,4,this.length),this[w]|this[w+1]<<8|this[w+2]<<16|this[w+3]<<24},e.prototype.readInt32BE=function(w,f){return w>>>=0,f||$(w,4,this.length),this[w]<<24|this[w+1]<<16|this[w+2]<<8|this[w+3]},e.prototype.readFloatLE=function(w,f){return w>>>=0,f||$(w,4,this.length),m.read(this,w,!0,23,4)},e.prototype.readFloatBE=function(w,f){return w>>>=0,f||$(w,4,this.length),m.read(this,w,!1,23,4)},e.prototype.readDoubleLE=function(w,f){return w>>>=0,f||$(w,8,this.length),m.read(this,w,!0,52,8)},e.prototype.readDoubleBE=function(w,f){return w>>>=0,f||$(w,8,this.length),m.read(this,w,!1,52,8)},e.prototype.writeUintLE=e.prototype.writeUIntLE=function(w,f,A,I){w=+w,f>>>=0,A>>>=0,I||oe(this,w,f,A,Math.pow(2,8*A)-1,0);var me=1,Re=0;for(this[f]=255&w;++Re<A&&(me*=256);)this[f+Re]=w/me&255;return f+A},e.prototype.writeUintBE=e.prototype.writeUIntBE=function(w,f,A,I){w=+w,f>>>=0,A>>>=0,I||oe(this,w,f,A,Math.pow(2,8*A)-1,0);var me=A-1,Re=1;for(this[f+me]=255&w;--me>=0&&(Re*=256);)this[f+me]=w/Re&255;return f+A},e.prototype.writeUint8=e.prototype.writeUInt8=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,1,255,0),this[f]=255&w,f+1},e.prototype.writeUint16LE=e.prototype.writeUInt16LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,65535,0),this[f]=255&w,this[f+1]=w>>>8,f+2},e.prototype.writeUint16BE=e.prototype.writeUInt16BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,65535,0),this[f]=w>>>8,this[f+1]=255&w,f+2},e.prototype.writeUint32LE=e.prototype.writeUInt32LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,4294967295,0),this[f+3]=w>>>24,this[f+2]=w>>>16,this[f+1]=w>>>8,this[f]=255&w,f+4},e.prototype.writeUint32BE=e.prototype.writeUInt32BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,4294967295,0),this[f]=w>>>24,this[f+1]=w>>>16,this[f+2]=w>>>8,this[f+3]=255&w,f+4},e.prototype.writeIntLE=function(w,f,A,I){if(w=+w,f>>>=0,!I){var ne=Math.pow(2,8*A-1);oe(this,w,f,A,ne-1,-ne)}var me=0,Re=1,Pe=0;for(this[f]=255&w;++me<A&&(Re*=256);)w<0&&0===Pe&&0!==this[f+me-1]&&(Pe=1),this[f+me]=(w/Re>>0)-Pe&255;return f+A},e.prototype.writeIntBE=function(w,f,A,I){if(w=+w,f>>>=0,!I){var ne=Math.pow(2,8*A-1);oe(this,w,f,A,ne-1,-ne)}var me=A-1,Re=1,Pe=0;for(this[f+me]=255&w;--me>=0&&(Re*=256);)w<0&&0===Pe&&0!==this[f+me+1]&&(Pe=1),this[f+me]=(w/Re>>0)-Pe&255;return f+A},e.prototype.writeInt8=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,1,127,-128),w<0&&(w=255+w+1),this[f]=255&w,f+1},e.prototype.writeInt16LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,32767,-32768),this[f]=255&w,this[f+1]=w>>>8,f+2},e.prototype.writeInt16BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,2,32767,-32768),this[f]=w>>>8,this[f+1]=255&w,f+2},e.prototype.writeInt32LE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,2147483647,-2147483648),this[f]=255&w,this[f+1]=w>>>8,this[f+2]=w>>>16,this[f+3]=w>>>24,f+4},e.prototype.writeInt32BE=function(w,f,A){return w=+w,f>>>=0,A||oe(this,w,f,4,2147483647,-2147483648),w<0&&(w=4294967295+w+1),this[f]=w>>>24,this[f+1]=w>>>16,this[f+2]=w>>>8,this[f+3]=255&w,f+4},e.prototype.writeFloatLE=function(w,f,A){return L(this,w,f,!0,A)},e.prototype.writeFloatBE=function(w,f,A){return L(this,w,f,!1,A)},e.prototype.writeDoubleLE=function(w,f,A){return S(this,w,f,!0,A)},e.prototype.writeDoubleBE=function(w,f,A){return S(this,w,f,!1,A)},e.prototype.copy=function(w,f,A,I){if(!e.isBuffer(w))throw new TypeError("argument should be a Buffer");if(A||(A=0),!I&&0!==I&&(I=this.length),f>=w.length&&(f=w.length),f||(f=0),I>0&&I<A&&(I=A),I===A||0===w.length||0===this.length)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(I<0)throw new RangeError("sourceEnd out of bounds");I>this.length&&(I=this.length),w.length-f<I-A&&(I=w.length-f+A);var ne=I-A;return this===w&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(f,A,I):Uint8Array.prototype.set.call(w,this.subarray(A,I),f),ne},e.prototype.fill=function(w,f,A,I){if("string"==typeof w){if("string"==typeof f?(I=f,f=0,A=this.length):"string"==typeof A&&(I=A,A=this.length),void 0!==I&&"string"!=typeof I)throw new TypeError("encoding must be a string");if("string"==typeof I&&!e.isEncoding(I))throw new TypeError("Unknown encoding: "+I);if(1===w.length){var ne=w.charCodeAt(0);("utf8"===I&&ne<128||"latin1"===I)&&(w=ne)}}else"number"==typeof w?w&=255:"boolean"==typeof w&&(w=Number(w));if(f<0||this.length<f||this.length<A)throw new RangeError("Out of range index");if(A<=f)return this;var me;if(f>>>=0,A=void 0===A?this.length:A>>>0,w||(w=0),"number"==typeof w)for(me=f;me<A;++me)this[me]=w;else{var Re=e.isBuffer(w)?w:e.from(w,I),Pe=Re.length;if(0===Pe)throw new TypeError('The value "'+w+'" is invalid for argument "value"');for(me=0;me<A-f;++me)this[me+f]=Re[me%Pe]}return this};var B=/[^+/0-9A-Za-z-_]/g;function U(K,w){w=w||1/0;for(var f,A=K.length,I=null,ne=[],me=0;me<A;++me){if((f=K.charCodeAt(me))>55295&&f<57344){if(!I){if(f>56319){(w-=3)>-1&&ne.push(239,191,189);continue}if(me+1===A){(w-=3)>-1&&ne.push(239,191,189);continue}I=f;continue}if(f<56320){(w-=3)>-1&&ne.push(239,191,189),I=f;continue}f=65536+(I-55296<<10|f-56320)}else I&&(w-=3)>-1&&ne.push(239,191,189);if(I=null,f<128){if((w-=1)<0)break;ne.push(f)}else if(f<2048){if((w-=2)<0)break;ne.push(f>>6|192,63&f|128)}else if(f<65536){if((w-=3)<0)break;ne.push(f>>12|224,f>>6&63|128,63&f|128)}else{if(!(f<1114112))throw new Error("Invalid code point");if((w-=4)<0)break;ne.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}}return ne}function be(K){return O.toByteArray(function G(K){if((K=(K=K.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;K.length%4!=0;)K+="=";return K}(K))}function Z(K,w,f,A){for(var I=0;I<A&&!(I+f>=w.length||I>=K.length);++I)w[I+f]=K[I];return I}function de(K,w){return K instanceof w||null!=K&&null!=K.constructor&&null!=K.constructor.name&&K.constructor.name===w.name}function he(K){return K!=K}var Ee=function(){for(var K="0123456789abcdef",w=new Array(256),f=0;f<16;++f)for(var A=16*f,I=0;I<16;++I)w[A+I]=K[f]+K[I];return w}()},82375:(le,k,y)=>{"use strict";var a=y(49102),O=y(30642),m=O(a("String.prototype.indexOf"));le.exports=function(n,o){var l=a(n,!!o);return"function"==typeof l&&m(n,".prototype.")>-1?O(l):l}},30642:(le,k,y)=>{"use strict";var a=y(52451),O=y(49102),m=O("%Function.prototype.apply%"),r=O("%Function.prototype.call%"),n=O("%Reflect.apply%",!0)||a.call(r,m),o=O("%Object.getOwnPropertyDescriptor%",!0),l=O("%Object.defineProperty%",!0),e=O("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}le.exports=function(d){var g=n(a,r,arguments);return o&&l&&o(g,"length").configurable&&l(g,"length",{value:1+e(0,d.length-(arguments.length-1))}),g};var i=function(){return n(a,m,arguments)};l?l(le.exports,"apply",{value:i}):le.exports.apply=i},48643:le=>{"use strict";le.exports=function(k,y){y||(y={}),"function"==typeof y&&(y={cmp:y});var r,a="boolean"==typeof y.cycles&&y.cycles,O=y.cmp&&(r=y.cmp,function(n){return function(o,l){return r({key:o,value:n[o]},{key:l,value:n[l]})}}),m=[];return function r(n){if(n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),void 0!==n){if("number"==typeof n)return isFinite(n)?""+n:"null";if("object"!=typeof n)return JSON.stringify(n);var o,l;if(Array.isArray(n)){for(l="[",o=0;o<n.length;o++)o&&(l+=","),l+=r(n[o])||"null";return l+"]"}if(null===n)return"null";if(-1!==m.indexOf(n)){if(a)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var e=m.push(n)-1,i=Object.keys(n).sort(O&&O(n));for(l="",o=0;o<i.length;o++){var h=i[o],d=r(n[h]);d&&(l&&(l+=","),l+=JSON.stringify(h)+":"+d)}return m.splice(e,1),"{"+l+"}"}}(k)}},90564:(le,k,y)=>{"use strict";var a=y(202),O=Object.prototype.toString,m=Object.prototype.hasOwnProperty,r=function(i,h,d){for(var g=0,b=i.length;g<b;g++)m.call(i,g)&&(null==d?h(i[g],g,i):h.call(d,i[g],g,i))},n=function(i,h,d){for(var g=0,b=i.length;g<b;g++)null==d?h(i.charAt(g),g,i):h.call(d,i.charAt(g),g,i)},o=function(i,h,d){for(var g in i)m.call(i,g)&&(null==d?h(i[g],g,i):h.call(d,i[g],g,i))};le.exports=function(i,h,d){if(!a(h))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=d),"[object Array]"===O.call(i)?r(i,h,g):"string"==typeof i?n(i,h,g):o(i,h,g)}},202:le=>{"use strict";var a,O,k=Function.prototype.toString,y="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof y&&"function"==typeof Object.defineProperty)try{a=Object.defineProperty({},"length",{get:function(){throw O}}),O={},y(function(){throw 42},null,a)}catch(d){d!==O&&(y=null)}else y=null;var m=/^\s*class\b/,r=function(g){try{var b=k.call(g);return m.test(b)}catch{return!1}},o=Object.prototype.toString,i="function"==typeof Symbol&&!!Symbol.toStringTag,h="object"==typeof document&&typeof document.all>"u"&&void 0!==document.all?document.all:{};le.exports=y?function(g){if(g===h)return!0;if(!g||"function"!=typeof g&&"object"!=typeof g)return!1;if("function"==typeof g&&!g.prototype)return!0;try{y(g,null,a)}catch(b){if(b!==O)return!1}return!r(g)}:function(g){if(g===h)return!0;if(!g||"function"!=typeof g&&"object"!=typeof g)return!1;if("function"==typeof g&&!g.prototype)return!0;if(i)return function(g){try{return!r(g)&&(k.call(g),!0)}catch{return!1}}(g);if(r(g))return!1;var b=o.call(g);return"[object Function]"===b||"[object GeneratorFunction]"===b}},62898:le=>{"use strict";var k="Function.prototype.bind called on incompatible ",y=Array.prototype.slice,a=Object.prototype.toString,O="[object Function]";le.exports=function(r){var n=this;if("function"!=typeof n||a.call(n)!==O)throw new TypeError(k+n);for(var l,o=y.call(arguments,1),i=Math.max(0,n.length-o.length),h=[],d=0;d<i;d++)h.push("$"+d);if(l=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof l){var b=n.apply(this,o.concat(y.call(arguments)));return Object(b)===b?b:this}return n.apply(r,o.concat(y.call(arguments)))}),n.prototype){var g=function(){};g.prototype=n.prototype,l.prototype=new g,g.prototype=null}return l}},52451:(le,k,y)=>{"use strict";var a=y(62898);le.exports=Function.prototype.bind||a},49102:(le,k,y)=>{"use strict";var a,O=SyntaxError,m=Function,r=TypeError,n=function(v){try{return m('"use strict"; return ('+v+").constructor;")()}catch{}},o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch{o=null}var l=function(){throw new r},e=o?function(){try{return l}catch{try{return o(arguments,"callee").get}catch{return l}}}():l,i=y(48504)(),h=Object.getPrototypeOf||function(v){return v.__proto__},d={},g=typeof Uint8Array>"u"?a:h(Uint8Array),b={"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":i?h([][Symbol.iterator]()):a,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":typeof Atomics>"u"?a:Atomics,"%BigInt%":typeof BigInt>"u"?a:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":m,"%GeneratorFunction%":d,"%Int8Array%":typeof Int8Array>"u"?a:Int8Array,"%Int16Array%":typeof Int16Array>"u"?a:Int16Array,"%Int32Array%":typeof Int32Array>"u"?a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":i?h(h([][Symbol.iterator]())):a,"%JSON%":"object"==typeof JSON?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!i?a:h((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?a:Promise,"%Proxy%":typeof Proxy>"u"?a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!i?a:h((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":i?h(""[Symbol.iterator]()):a,"%Symbol%":i?Symbol:a,"%SyntaxError%":O,"%ThrowTypeError%":e,"%TypedArray%":g,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?a:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?a:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?a:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?a:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet},T=function v(F){var q;if("%AsyncFunction%"===F)q=n("async function () {}");else if("%GeneratorFunction%"===F)q=n("function* () {}");else if("%AsyncGeneratorFunction%"===F)q=n("async function* () {}");else if("%AsyncGenerator%"===F){var Q=v("%AsyncGeneratorFunction%");Q&&(q=Q.prototype)}else if("%AsyncIteratorPrototype%"===F){var J=v("%AsyncGenerator%");J&&(q=h(J.prototype))}return b[F]=q,q},M={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=y(52451),x=y(44498),P=R.call(Function.call,Array.prototype.concat),W=R.call(Function.apply,Array.prototype.splice),V=R.call(Function.call,String.prototype.replace),Y=R.call(Function.call,String.prototype.slice),j=R.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,p=function(F){var q=Y(F,0,1),Q=Y(F,-1);if("%"===q&&"%"!==Q)throw new O("invalid intrinsic syntax, expected closing `%`");if("%"===Q&&"%"!==q)throw new O("invalid intrinsic syntax, expected opening `%`");var J=[];return V(F,E,function(ie,Se,te,ge){J[J.length]=te?V(ge,C,"$1"):Se||ie}),J},_=function(F,q){var J,Q=F;if(x(M,Q)&&(Q="%"+(J=M[Q])[0]+"%"),x(b,Q)){var ie=b[Q];if(ie===d&&(ie=T(Q)),typeof ie>"u"&&!q)throw new r("intrinsic "+F+" exists, but is not available. Please file an issue!");return{alias:J,name:Q,value:ie}}throw new O("intrinsic "+F+" does not exist!")};le.exports=function(F,q){if("string"!=typeof F||0===F.length)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof q)throw new r('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/g,F))throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Q=p(F),J=Q.length>0?Q[0]:"",ie=_("%"+J+"%",q),Se=ie.name,te=ie.value,ge=!1,ue=ie.alias;ue&&(J=ue[0],W(Q,P([0,1],ue)));for(var H=1,$=!0;H<Q.length;H+=1){var oe=Q[H],ee=Y(oe,0,1),L=Y(oe,-1);if(('"'===ee||"'"===ee||"`"===ee||'"'===L||"'"===L||"`"===L)&&ee!==L)throw new O("property names with quotes must have matching quotes");if(("constructor"===oe||!$)&&(ge=!0),x(b,Se="%"+(J+="."+oe)+"%"))te=b[Se];else if(null!=te){if(!(oe in te)){if(!q)throw new r("base intrinsic for "+F+" exists, but the property is not available.");return}if(o&&H+1>=Q.length){var S=o(te,oe);te=($=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:te[oe]}else $=x(te,oe),te=te[oe];$&&!ge&&(b[Se]=te)}}return te}},74109:(le,k,y)=>{"use strict";y.d(k,{ZP:()=>G,J9:()=>S,_t:()=>ee,wO:()=>L,Ps:()=>$,HW:()=>oe});var m=function(){return m=Object.assign||function(re){for(var ce,be=1,Z=arguments.length;be<Z;be++)for(var de in ce=arguments[be])Object.prototype.hasOwnProperty.call(ce,de)&&(re[de]=ce[de]);return re},m.apply(this,arguments)},F=y(49767),q=new Map,Q=new Map,J=!0,ie=!1;function Se(U){return U.replace(/[\s,]+/g," ").trim()}function H(U){var re=Se(U);if(!q.has(re)){var ce=(0,F.Qc)(U,{experimentalFragmentVariables:ie,allowLegacyFragmentVariables:ie});if(!ce||"Document"!==ce.kind)throw new Error("Not a valid GraphQL document.");q.set(re,function ue(U){var re=new Set(U.definitions);re.forEach(function(be){be.loc&&delete be.loc,Object.keys(be).forEach(function(Z){var de=be[Z];de&&"object"==typeof de&&re.add(de)})});var ce=U.loc;return ce&&(delete ce.startToken,delete ce.endToken),U}(function ge(U){var re=new Set,ce=[];return U.definitions.forEach(function(be){if("FragmentDefinition"===be.kind){var Z=be.name.value,de=function te(U){return Se(U.source.body.substring(U.start,U.end))}(be.loc),he=Q.get(Z);he&&!he.has(de)?J&&console.warn("Warning: fragment with name "+Z+" 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"):he||Q.set(Z,he=new Set),he.add(de),re.has(de)||(re.add(de),ce.push(be))}else ce.push(be)}),m(m({},U),{definitions:ce})}(ce)))}return q.get(re)}function $(U){for(var re=[],ce=1;ce<arguments.length;ce++)re[ce-1]=arguments[ce];"string"==typeof U&&(U=[U]);var be=U[0];return re.forEach(function(Z,de){be+=Z&&"Document"===Z.kind?Z.loc.source.body:Z,be+=U[de+1]}),H(be)}function oe(){q.clear(),Q.clear()}function ee(){J=!1}function L(){ie=!0}function S(){ie=!1}var U,B_gql=$,B_resetCaches=oe,B_disableFragmentWarnings=ee,B_enableExperimentalFragmentVariables=L,B_disableExperimentalFragmentVariables=S;(U=$||($={})).gql=B_gql,U.resetCaches=B_resetCaches,U.disableFragmentWarnings=B_disableFragmentWarnings,U.enableExperimentalFragmentVariables=B_enableExperimentalFragmentVariables,U.disableExperimentalFragmentVariables=B_disableExperimentalFragmentVariables,$.default=$;const G=$},48504:(le,k,y)=>{"use strict";var a=typeof Symbol<"u"&&Symbol,O=y(24442);le.exports=function(){return"function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&O()}},24442:le=>{"use strict";le.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var y={},a=Symbol("test"),O=Object(a);if("string"==typeof a||"[object Symbol]"!==Object.prototype.toString.call(a)||"[object Symbol]"!==Object.prototype.toString.call(O))return!1;for(a in y[a]=42,y)return!1;if("function"==typeof Object.keys&&0!==Object.keys(y).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(y).length)return!1;var r=Object.getOwnPropertySymbols(y);if(1!==r.length||r[0]!==a||!Object.prototype.propertyIsEnumerable.call(y,a))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(y,a);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},87035:(le,k,y)=>{"use strict";var a=y(24442);le.exports=function(){return a()&&!!Symbol.toStringTag}},44498:(le,k,y)=>{"use strict";var a=y(52451);le.exports=a.call(Function.call,Object.prototype.hasOwnProperty)},67926:(le,k)=>{k.read=function(y,a,O,m,r){var n,o,l=8*r-m-1,e=(1<<l)-1,i=e>>1,h=-7,d=O?r-1:0,g=O?-1:1,b=y[a+d];for(d+=g,n=b&(1<<-h)-1,b>>=-h,h+=l;h>0;n=256*n+y[a+d],d+=g,h-=8);for(o=n&(1<<-h)-1,n>>=-h,h+=m;h>0;o=256*o+y[a+d],d+=g,h-=8);if(0===n)n=1-i;else{if(n===e)return o?NaN:1/0*(b?-1:1);o+=Math.pow(2,m),n-=i}return(b?-1:1)*o*Math.pow(2,n-m)},k.write=function(y,a,O,m,r,n){var o,l,e,i=8*n-r-1,h=(1<<i)-1,d=h>>1,g=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,b=m?0:n-1,T=m?1:-1,M=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(l=isNaN(a)?1:0,o=h):(o=Math.floor(Math.log(a)/Math.LN2),a*(e=Math.pow(2,-o))<1&&(o--,e*=2),(a+=o+d>=1?g/e:g*Math.pow(2,1-d))*e>=2&&(o++,e/=2),o+d>=h?(l=0,o=h):o+d>=1?(l=(a*e-1)*Math.pow(2,r),o+=d):(l=a*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;y[O+b]=255&l,b+=T,l/=256,r-=8);for(o=o<<r|l,i+=r;i>0;y[O+b]=255&o,b+=T,o/=256,i-=8);y[O+b-T]|=128*M}},23819:le=>{le.exports="function"==typeof Object.create?function(y,a){a&&(y.super_=a,y.prototype=Object.create(a.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}))}:function(y,a){if(a){y.super_=a;var O=function(){};O.prototype=a.prototype,y.prototype=new O,y.prototype.constructor=y}}},676:le=>{"use strict";var k="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,y=Object.prototype.toString,a=function(n){return!(k&&n&&"object"==typeof n&&Symbol.toStringTag in n)&&"[object Arguments]"===y.call(n)},O=function(n){return!!a(n)||null!==n&&"object"==typeof n&&"number"==typeof n.length&&n.length>=0&&"[object Array]"!==y.call(n)&&"[object Function]"===y.call(n.callee)},m=function(){return a(arguments)}();a.isLegacyArguments=O,le.exports=m?a:O},78337:(le,k,y)=>{"use strict";var l,a=Object.prototype.toString,O=Function.prototype.toString,m=/^\s*(?:function)?\*/,r=y(87035)(),n=Object.getPrototypeOf;le.exports=function(i){if("function"!=typeof i)return!1;if(m.test(O.call(i)))return!0;if(!r)return"[object GeneratorFunction]"===a.call(i);if(!n)return!1;if(typeof l>"u"){var d=function(){if(!r)return!1;try{return Function("return function*() {}")()}catch{}}();l=!!d&&n(d)}return n(i)===l}},51852:(le,k,y)=>{"use strict";var a=y(90564),O=y(26415),m=y(82375),r=m("Object.prototype.toString"),n=y(87035)(),o=typeof globalThis>"u"?global:globalThis,l=O(),e=m("Array.prototype.indexOf",!0)||function(M,R){for(var x=0;x<M.length;x+=1)if(M[x]===R)return x;return-1},i=m("String.prototype.slice"),h={},d=y(57829),g=Object.getPrototypeOf;n&&d&&g&&a(l,function(T){var M=new o[T];if(Symbol.toStringTag in M){var R=g(M),x=d(R,Symbol.toStringTag);if(!x){var P=g(R);x=d(P,Symbol.toStringTag)}h[T]=x.get}}),le.exports=function(M){if(!M||"object"!=typeof M)return!1;if(!n||!(Symbol.toStringTag in M)){var R=i(r(M),8,-1);return e(l,R)>-1}return!!d&&function(M){var R=!1;return a(h,function(x,P){if(!R)try{R=x.call(M)===P}catch{}}),R}(M)}},45944:le=>{var k={}.toString;le.exports=Array.isArray||function(y){return"[object Array]"==k.call(y)}},70946:(le,k)=>{!function(y){"use strict";function a(ae){return null!==ae&&"[object Array]"===Object.prototype.toString.call(ae)}function O(ae){return null!==ae&&"[object Object]"===Object.prototype.toString.call(ae)}function m(ae,ye){if(ae===ye)return!0;if(Object.prototype.toString.call(ae)!==Object.prototype.toString.call(ye))return!1;if(!0===a(ae)){if(ae.length!==ye.length)return!1;for(var Ie=0;Ie<ae.length;Ie++)if(!1===m(ae[Ie],ye[Ie]))return!1;return!0}if(!0===O(ae)){var Me={};for(var je in ae)if(hasOwnProperty.call(ae,je)){if(!1===m(ae[je],ye[je]))return!1;Me[je]=!0}for(var Ke in ye)if(hasOwnProperty.call(ye,Ke)&&!0!==Me[Ke])return!1;return!0}return!1}function r(ae){if(""===ae||!1===ae||null===ae)return!0;if(a(ae)&&0===ae.length)return!0;if(O(ae)){for(var ye in ae)if(ae.hasOwnProperty(ye))return!1;return!0}return!1}var l;l="function"==typeof String.prototype.trimLeft?function(ae){return ae.trimLeft()}:function(ae){return ae.match(/^\s*(.*)/)[1]};var e=0,i=1,h=2,d=3,g=4,T=6,R=8,x=9,P={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},W="EOF",V="UnquotedIdentifier",Y="QuotedIdentifier",j="Rbracket",E="Rparen",C="Comma",p="Colon",_="Rbrace",v="Number",F="Current",q="Expref",Q="Pipe",J="Or",ue="GTE",H="LTE",$="NE",oe="Flatten",ee="Star",L="Filter",S="Dot",B="Not",G="Lbrace",U="Lbracket",re="Lparen",ce="Literal",be={".":S,"*":ee,",":C,":":p,"{":G,"}":_,"]":j,"(":re,")":E,"@":F},Z={"<":!0,">":!0,"=":!0,"!":!0},de={" ":!0,"\t":!0,"\n":!0};function he(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"||"_"===ae}function Ee(ae){return ae>="0"&&ae<="9"||"-"===ae}function K(ae){return ae>="a"&&ae<="z"||ae>="A"&&ae<="Z"||ae>="0"&&ae<="9"||"_"===ae}function w(){}w.prototype={tokenize:function(ae){var _e,Ie,Me,ye=[];for(this._current=0;this._current<ae.length;)if(he(ae[this._current]))_e=this._current,Ie=this._consumeUnquotedIdentifier(ae),ye.push({type:V,value:Ie,start:_e});else if(void 0!==be[ae[this._current]])ye.push({type:be[ae[this._current]],value:ae[this._current],start:this._current}),this._current++;else if(Ee(ae[this._current]))Me=this._consumeNumber(ae),ye.push(Me);else if("["===ae[this._current])Me=this._consumeLBracket(ae),ye.push(Me);else if('"'===ae[this._current])_e=this._current,Ie=this._consumeQuotedIdentifier(ae),ye.push({type:Y,value:Ie,start:_e});else if("'"===ae[this._current])_e=this._current,Ie=this._consumeRawStringLiteral(ae),ye.push({type:ce,value:Ie,start:_e});else if("`"===ae[this._current]){_e=this._current;var je=this._consumeLiteral(ae);ye.push({type:ce,value:je,start:_e})}else if(void 0!==Z[ae[this._current]])ye.push(this._consumeOperator(ae));else if(void 0!==de[ae[this._current]])this._current++;else if("&"===ae[this._current])_e=this._current,this._current++,"&"===ae[this._current]?(this._current++,ye.push({type:"And",value:"&&",start:_e})):ye.push({type:q,value:"&",start:_e});else{if("|"!==ae[this._current]){var Ke=new Error("Unknown character:"+ae[this._current]);throw Ke.name="LexerError",Ke}_e=this._current,this._current++,"|"===ae[this._current]?(this._current++,ye.push({type:J,value:"||",start:_e})):ye.push({type:Q,value:"|",start:_e})}return ye},_consumeUnquotedIdentifier:function(ae){var ye=this._current;for(this._current++;this._current<ae.length&&K(ae[this._current]);)this._current++;return ae.slice(ye,this._current)},_consumeQuotedIdentifier:function(ae){var ye=this._current;this._current++;for(var _e=ae.length;'"'!==ae[this._current]&&this._current<_e;){var Ie=this._current;"\\"!==ae[Ie]||"\\"!==ae[Ie+1]&&'"'!==ae[Ie+1]?Ie++:Ie+=2,this._current=Ie}return this._current++,JSON.parse(ae.slice(ye,this._current))},_consumeRawStringLiteral:function(ae){var ye=this._current;this._current++;for(var _e=ae.length;"'"!==ae[this._current]&&this._current<_e;){var Ie=this._current;"\\"!==ae[Ie]||"\\"!==ae[Ie+1]&&"'"!==ae[Ie+1]?Ie++:Ie+=2,this._current=Ie}return this._current++,ae.slice(ye+1,this._current-1).replace("\\'","'")},_consumeNumber:function(ae){var ye=this._current;this._current++;for(var _e=ae.length;Ee(ae[this._current])&&this._current<_e;)this._current++;var Ie=parseInt(ae.slice(ye,this._current));return{type:v,value:Ie,start:ye}},_consumeLBracket:function(ae){var ye=this._current;return this._current++,"?"===ae[this._current]?(this._current++,{type:L,value:"[?",start:ye}):"]"===ae[this._current]?(this._current++,{type:oe,value:"[]",start:ye}):{type:U,value:"[",start:ye}},_consumeOperator:function(ae){var ye=this._current,_e=ae[ye];return this._current++,"!"===_e?"="===ae[this._current]?(this._current++,{type:$,value:"!=",start:ye}):{type:B,value:"!",start:ye}:"<"===_e?"="===ae[this._current]?(this._current++,{type:H,value:"<=",start:ye}):{type:"LT",value:"<",start:ye}:">"===_e?"="===ae[this._current]?(this._current++,{type:ue,value:">=",start:ye}):{type:"GT",value:">",start:ye}:"="===_e&&"="===ae[this._current]?(this._current++,{type:"EQ",value:"==",start:ye}):void 0},_consumeLiteral:function(ae){this._current++;for(var Ie,ye=this._current,_e=ae.length;"`"!==ae[this._current]&&this._current<_e;){var Me=this._current;"\\"!==ae[Me]||"\\"!==ae[Me+1]&&"`"!==ae[Me+1]?Me++:Me+=2,this._current=Me}var je=l(ae.slice(ye,this._current));return je=je.replace("\\`","`"),Ie=this._looksLikeJSON(je)?JSON.parse(je):JSON.parse('"'+je+'"'),this._current++,Ie},_looksLikeJSON:function(ae){if(""===ae)return!1;if('[{"'.indexOf(ae[0])>=0)return!0;if(["true","false","null"].indexOf(ae)>=0)return!0;if(!("-0123456789".indexOf(ae[0])>=0))return!1;try{return JSON.parse(ae),!0}catch{return!1}}};var f={};function A(){}function I(ae){this.runtime=ae}function ne(ae){this._interpreter=ae,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[e]}]},avg:{_func:this._functionAvg,_signature:[{types:[R]}]},ceil:{_func:this._functionCeil,_signature:[{types:[e]}]},contains:{_func:this._functionContains,_signature:[{types:[h,d]},{types:[i]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[h]},{types:[h]}]},floor:{_func:this._functionFloor,_signature:[{types:[e]}]},length:{_func:this._functionLength,_signature:[{types:[h,d,g]}]},map:{_func:this._functionMap,_signature:[{types:[T]},{types:[d]}]},max:{_func:this._functionMax,_signature:[{types:[R,x]}]},merge:{_func:this._functionMerge,_signature:[{types:[g],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[d]},{types:[T]}]},sum:{_func:this._functionSum,_signature:[{types:[R]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[h]},{types:[h]}]},min:{_func:this._functionMin,_signature:[{types:[R,x]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[d]},{types:[T]}]},type:{_func:this._functionType,_signature:[{types:[i]}]},keys:{_func:this._functionKeys,_signature:[{types:[g]}]},values:{_func:this._functionValues,_signature:[{types:[g]}]},sort:{_func:this._functionSort,_signature:[{types:[x,R]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[d]},{types:[T]}]},join:{_func:this._functionJoin,_signature:[{types:[h]},{types:[x]}]},reverse:{_func:this._functionReverse,_signature:[{types:[h,d]}]},to_array:{_func:this._functionToArray,_signature:[{types:[i]}]},to_string:{_func:this._functionToString,_signature:[{types:[i]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[i]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[i],variadic:!0}]}}}f[W]=0,f[V]=0,f[Y]=0,f[j]=0,f[E]=0,f[C]=0,f[_]=0,f[v]=0,f[F]=0,f[q]=0,f[Q]=1,f[J]=2,f.And=3,f.EQ=5,f.GT=5,f.LT=5,f[ue]=5,f[H]=5,f[$]=5,f[oe]=9,f[ee]=20,f[L]=21,f[S]=40,f[B]=45,f[G]=50,f[U]=55,f[re]=60,A.prototype={parse:function(ae){this._loadTokens(ae),this.index=0;var ye=this.expression(0);if(this._lookahead(0)!==W){var _e=this._lookaheadToken(0),Ie=new Error("Unexpected token type: "+_e.type+", value: "+_e.value);throw Ie.name="ParserError",Ie}return ye},_loadTokens:function(ae){var _e=(new w).tokenize(ae);_e.push({type:W,value:"",start:ae.length}),this.tokens=_e},expression:function(ae){var ye=this._lookaheadToken(0);this._advance();for(var _e=this.nud(ye),Ie=this._lookahead(0);ae<f[Ie];)this._advance(),_e=this.led(Ie,_e),Ie=this._lookahead(0);return _e},_lookahead:function(ae){return this.tokens[this.index+ae].type},_lookaheadToken:function(ae){return this.tokens[this.index+ae]},_advance:function(){this.index++},nud:function(ae){var _e,Ie;switch(ae.type){case ce:return{type:"Literal",value:ae.value};case V:return{type:"Field",name:ae.value};case Y:var Me={type:"Field",name:ae.value};if(this._lookahead(0)===re)throw new Error("Quoted identifier not allowed for function names.");return Me;case B:return{type:"NotExpression",children:[_e=this.expression(f.Not)]};case ee:return _e=null,{type:"ValueProjection",children:[{type:"Identity"},_e=this._lookahead(0)===j?{type:"Identity"}:this._parseProjectionRHS(f.Star)]};case L:return this.led(ae.type,{type:"Identity"});case G:return this._parseMultiselectHash();case oe:return{type:"Projection",children:[{type:oe,children:[{type:"Identity"}]},_e=this._parseProjectionRHS(f.Flatten)]};case U:return this._lookahead(0)===v||this._lookahead(0)===p?(_e=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},_e)):this._lookahead(0)===ee&&this._lookahead(1)===j?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},_e=this._parseProjectionRHS(f.Star)]}):this._parseMultiselectList();case F:return{type:F};case q:return{type:"ExpressionReference",children:[Ie=this.expression(f.Expref)]};case re:for(var je=[];this._lookahead(0)!==E;)this._lookahead(0)===F?(Ie={type:F},this._advance()):Ie=this.expression(0),je.push(Ie);return this._match(E),je[0];default:this._errorToken(ae)}},led:function(ae,ye){var _e;switch(ae){case S:var Ie=f.Dot;return this._lookahead(0)!==ee?{type:"Subexpression",children:[ye,_e=this._parseDotRHS(Ie)]}:(this._advance(),{type:"ValueProjection",children:[ye,_e=this._parseProjectionRHS(Ie)]});case Q:return _e=this.expression(f.Pipe),{type:Q,children:[ye,_e]};case J:return{type:"OrExpression",children:[ye,_e=this.expression(f.Or)]};case"And":return{type:"AndExpression",children:[ye,_e=this.expression(f.And)]};case re:for(var Ke,Me=ye.name,je=[];this._lookahead(0)!==E;)this._lookahead(0)===F?(Ke={type:F},this._advance()):Ke=this.expression(0),this._lookahead(0)===C&&this._match(C),je.push(Ke);return this._match(E),{type:"Function",name:Me,children:je};case L:var at=this.expression(0);return this._match(j),{type:"FilterProjection",children:[ye,_e=this._lookahead(0)===oe?{type:"Identity"}:this._parseProjectionRHS(f.Filter),at]};case oe:return{type:"Projection",children:[{type:oe,children:[ye]},this._parseProjectionRHS(f.Flatten)]};case"EQ":case $:case"GT":case ue:case"LT":case H:return this._parseComparator(ye,ae);case U:var ze=this._lookaheadToken(0);return ze.type===v||ze.type===p?(_e=this._parseIndexExpression(),this._projectIfSlice(ye,_e)):(this._match(ee),this._match(j),{type:"Projection",children:[ye,_e=this._parseProjectionRHS(f.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(ae){if(this._lookahead(0)!==ae){var ye=this._lookaheadToken(0),_e=new Error("Expected "+ae+", got: "+ye.type);throw _e.name="ParserError",_e}this._advance()},_errorToken:function(ae){var ye=new Error("Invalid token ("+ae.type+'): "'+ae.value+'"');throw ye.name="ParserError",ye},_parseIndexExpression:function(){if(this._lookahead(0)===p||this._lookahead(1)===p)return this._parseSliceExpression();var ae={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(j),ae},_projectIfSlice:function(ae,ye){var _e={type:"IndexExpression",children:[ae,ye]};return"Slice"===ye.type?{type:"Projection",children:[_e,this._parseProjectionRHS(f.Star)]}:_e},_parseSliceExpression:function(){for(var ae=[null,null,null],ye=0,_e=this._lookahead(0);_e!==j&&ye<3;){if(_e===p)ye++,this._advance();else{if(_e!==v){var Ie=this._lookahead(0),Me=new Error("Syntax error, unexpected token: "+Ie.value+"("+Ie.type+")");throw Me.name="Parsererror",Me}ae[ye]=this._lookaheadToken(0).value,this._advance()}_e=this._lookahead(0)}return this._match(j),{type:"Slice",children:ae}},_parseComparator:function(ae,ye){return{type:"Comparator",name:ye,children:[ae,this.expression(f[ye])]}},_parseDotRHS:function(ae){var ye=this._lookahead(0);return[V,Y,ee].indexOf(ye)>=0?this.expression(ae):ye===U?(this._match(U),this._parseMultiselectList()):ye===G?(this._match(G),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(ae){var ye;if(f[this._lookahead(0)]<10)ye={type:"Identity"};else if(this._lookahead(0)===U)ye=this.expression(ae);else if(this._lookahead(0)===L)ye=this.expression(ae);else{if(this._lookahead(0)!==S){var _e=this._lookaheadToken(0),Ie=new Error("Sytanx error, unexpected token: "+_e.value+"("+_e.type+")");throw Ie.name="ParserError",Ie}this._match(S),ye=this._parseDotRHS(ae)}return ye},_parseMultiselectList:function(){for(var ae=[];this._lookahead(0)!==j;){var ye=this.expression(0);if(ae.push(ye),this._lookahead(0)===C&&(this._match(C),this._lookahead(0)===j))throw new Error("Unexpected token Rbracket")}return this._match(j),{type:"MultiSelectList",children:ae}},_parseMultiselectHash:function(){for(var _e,Ie,Me,ae=[],ye=[V,Y];;){if(_e=this._lookaheadToken(0),ye.indexOf(_e.type)<0)throw new Error("Expecting an identifier token, got: "+_e.type);if(Ie=_e.value,this._advance(),this._match(p),Me=this.expression(0),ae.push({type:"KeyValuePair",name:Ie,value:Me}),this._lookahead(0)===C)this._match(C);else if(this._lookahead(0)===_){this._match(_);break}}return{type:"MultiSelectHash",children:ae}}},I.prototype={search:function(ae,ye){return this.visit(ae,ye)},visit:function(ae,ye){var _e,Ie,Me,je,Ke,qe,at,ut,ze;switch(ae.type){case"Field":return null!==ye&&O(ye)?void 0===(qe=ye[ae.name])?null:qe:null;case"Subexpression":for(Me=this.visit(ae.children[0],ye),ze=1;ze<ae.children.length;ze++)if(null===(Me=this.visit(ae.children[1],Me)))return null;return Me;case"IndexExpression":return at=this.visit(ae.children[0],ye),this.visit(ae.children[1],at);case"Index":if(!a(ye))return null;var wt=ae.value;return wt<0&&(wt=ye.length+wt),void 0===(Me=ye[wt])&&(Me=null),Me;case"Slice":if(!a(ye))return null;var Lr=ae.children.slice(0),nr=this.computeSliceParams(ye.length,Lr),Ot=nr[0],br=nr[1],Kt=nr[2];if(Me=[],Kt>0)for(ze=Ot;ze<br;ze+=Kt)Me.push(ye[ze]);else for(ze=Ot;ze>br;ze+=Kt)Me.push(ye[ze]);return Me;case"Projection":var pt=this.visit(ae.children[0],ye);if(!a(pt))return null;for(ut=[],ze=0;ze<pt.length;ze++)null!==(Ie=this.visit(ae.children[1],pt[ze]))&&ut.push(Ie);return ut;case"ValueProjection":if(!O(pt=this.visit(ae.children[0],ye)))return null;ut=[];var Bt=function n(ae){for(var ye=Object.keys(ae),_e=[],Ie=0;Ie<ye.length;Ie++)_e.push(ae[ye[Ie]]);return _e}(pt);for(ze=0;ze<Bt.length;ze++)null!==(Ie=this.visit(ae.children[1],Bt[ze]))&&ut.push(Ie);return ut;case"FilterProjection":if(!a(pt=this.visit(ae.children[0],ye)))return null;var jt=[],mt=[];for(ze=0;ze<pt.length;ze++)r(_e=this.visit(ae.children[2],pt[ze]))||jt.push(pt[ze]);for(var xt=0;xt<jt.length;xt++)null!==(Ie=this.visit(ae.children[1],jt[xt]))&&mt.push(Ie);return mt;case"Comparator":switch(je=this.visit(ae.children[0],ye),Ke=this.visit(ae.children[1],ye),ae.name){case"EQ":Me=m(je,Ke);break;case $:Me=!m(je,Ke);break;case"GT":Me=je>Ke;break;case ue:Me=je>=Ke;break;case"LT":Me=je<Ke;break;case H:Me=je<=Ke;break;default:throw new Error("Unknown comparator: "+ae.name)}return Me;case oe:var Pt=this.visit(ae.children[0],ye);if(!a(Pt))return null;var Tt=[];for(ze=0;ze<Pt.length;ze++)a(Ie=Pt[ze])?Tt.push.apply(Tt,Ie):Tt.push(Ie);return Tt;case"Identity":return ye;case"MultiSelectList":if(null===ye)return null;for(ut=[],ze=0;ze<ae.children.length;ze++)ut.push(this.visit(ae.children[ze],ye));return ut;case"MultiSelectHash":if(null===ye)return null;var qt;for(ut={},ze=0;ze<ae.children.length;ze++)ut[(qt=ae.children[ze]).name]=this.visit(qt.value,ye);return ut;case"OrExpression":return r(_e=this.visit(ae.children[0],ye))&&(_e=this.visit(ae.children[1],ye)),_e;case"AndExpression":return!0===r(je=this.visit(ae.children[0],ye))?je:this.visit(ae.children[1],ye);case"NotExpression":return r(je=this.visit(ae.children[0],ye));case"Literal":return ae.value;case Q:return at=this.visit(ae.children[0],ye),this.visit(ae.children[1],at);case F:return ye;case"Function":var Ut=[];for(ze=0;ze<ae.children.length;ze++)Ut.push(this.visit(ae.children[ze],ye));return this.runtime.callFunction(ae.name,Ut);case"ExpressionReference":var Dt=ae.children[0];return Dt.jmespathType=q,Dt;default:throw new Error("Unknown node type: "+ae.type)}},computeSliceParams:function(ae,ye){var _e=ye[0],Ie=ye[1],Me=ye[2],je=[null,null,null];if(null===Me)Me=1;else if(0===Me){var Ke=new Error("Invalid slice, step cannot be 0");throw Ke.name="RuntimeError",Ke}var qe=Me<0;return _e=null===_e?qe?ae-1:0:this.capSliceRange(ae,_e,Me),Ie=null===Ie?qe?-1:ae:this.capSliceRange(ae,Ie,Me),je[0]=_e,je[1]=Ie,je[2]=Me,je},capSliceRange:function(ae,ye,_e){return ye<0?(ye+=ae)<0&&(ye=_e<0?-1:0):ye>=ae&&(ye=_e<0?ae-1:ae),ye}},ne.prototype={callFunction:function(ae,ye){var _e=this.functionTable[ae];if(void 0===_e)throw new Error("Unknown function: "+ae+"()");return this._validateArgs(ae,ye,_e._signature),_e._func.call(this,ye)},_validateArgs:function(ae,ye,_e){var Ie;if(_e[_e.length-1].variadic){if(ye.length<_e.length)throw Ie=1===_e.length?" argument":" arguments",new Error("ArgumentError: "+ae+"() takes at least"+_e.length+Ie+" but received "+ye.length)}else if(ye.length!==_e.length)throw Ie=1===_e.length?" argument":" arguments",new Error("ArgumentError: "+ae+"() takes "+_e.length+Ie+" but received "+ye.length);for(var Me,je,Ke,qe=0;qe<_e.length;qe++){Ke=!1,Me=_e[qe].types,je=this._getTypeName(ye[qe]);for(var at=0;at<Me.length;at++)if(this._typeMatches(je,Me[at],ye[qe])){Ke=!0;break}if(!Ke){var yt=Me.map(function(ut){return P[ut]}).join(",");throw new Error("TypeError: "+ae+"() expected argument "+(qe+1)+" to be type "+yt+" but received type "+P[je]+" instead.")}}},_typeMatches:function(ae,ye,_e){if(ye===i)return!0;if(ye!==x&&ye!==R&&ye!==d)return ae===ye;if(ye===d)return ae===d;if(ae===d){var Ie;ye===R?Ie=e:ye===x&&(Ie=h);for(var Me=0;Me<_e.length;Me++)if(!this._typeMatches(this._getTypeName(_e[Me]),Ie,_e[Me]))return!1;return!0}},_getTypeName:function(ae){switch(Object.prototype.toString.call(ae)){case"[object String]":return h;case"[object Number]":return e;case"[object Array]":return d;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return ae.jmespathType===q?T:g}},_functionStartsWith:function(ae){return 0===ae[0].lastIndexOf(ae[1])},_functionEndsWith:function(ae){var ye=ae[0],_e=ae[1];return-1!==ye.indexOf(_e,ye.length-_e.length)},_functionReverse:function(ae){if(this._getTypeName(ae[0])===h){for(var _e=ae[0],Ie="",Me=_e.length-1;Me>=0;Me--)Ie+=_e[Me];return Ie}var je=ae[0].slice(0);return je.reverse(),je},_functionAbs:function(ae){return Math.abs(ae[0])},_functionCeil:function(ae){return Math.ceil(ae[0])},_functionAvg:function(ae){for(var ye=0,_e=ae[0],Ie=0;Ie<_e.length;Ie++)ye+=_e[Ie];return ye/_e.length},_functionContains:function(ae){return ae[0].indexOf(ae[1])>=0},_functionFloor:function(ae){return Math.floor(ae[0])},_functionLength:function(ae){return O(ae[0])?Object.keys(ae[0]).length:ae[0].length},_functionMap:function(ae){for(var ye=[],_e=this._interpreter,Ie=ae[0],Me=ae[1],je=0;je<Me.length;je++)ye.push(_e.visit(Ie,Me[je]));return ye},_functionMerge:function(ae){for(var ye={},_e=0;_e<ae.length;_e++){var Ie=ae[_e];for(var Me in Ie)ye[Me]=Ie[Me]}return ye},_functionMax:function(ae){if(ae[0].length>0){if(this._getTypeName(ae[0][0])===e)return Math.max.apply(Math,ae[0]);for(var _e=ae[0],Ie=_e[0],Me=1;Me<_e.length;Me++)Ie.localeCompare(_e[Me])<0&&(Ie=_e[Me]);return Ie}return null},_functionMin:function(ae){if(ae[0].length>0){if(this._getTypeName(ae[0][0])===e)return Math.min.apply(Math,ae[0]);for(var _e=ae[0],Ie=_e[0],Me=1;Me<_e.length;Me++)_e[Me].localeCompare(Ie)<0&&(Ie=_e[Me]);return Ie}return null},_functionSum:function(ae){for(var ye=0,_e=ae[0],Ie=0;Ie<_e.length;Ie++)ye+=_e[Ie];return ye},_functionType:function(ae){switch(this._getTypeName(ae[0])){case e:return"number";case h:return"string";case d:return"array";case g:return"object";case 5:return"boolean";case T:return"expref";case 7:return"null"}},_functionKeys:function(ae){return Object.keys(ae[0])},_functionValues:function(ae){for(var ye=ae[0],_e=Object.keys(ye),Ie=[],Me=0;Me<_e.length;Me++)Ie.push(ye[_e[Me]]);return Ie},_functionJoin:function(ae){return ae[1].join(ae[0])},_functionToArray:function(ae){return this._getTypeName(ae[0])===d?ae[0]:[ae[0]]},_functionToString:function(ae){return this._getTypeName(ae[0])===h?ae[0]:JSON.stringify(ae[0])},_functionToNumber:function(ae){var _e,ye=this._getTypeName(ae[0]);return ye===e?ae[0]:ye!==h||(_e=+ae[0],isNaN(_e))?null:_e},_functionNotNull:function(ae){for(var ye=0;ye<ae.length;ye++)if(7!==this._getTypeName(ae[ye]))return ae[ye];return null},_functionSort:function(ae){var ye=ae[0].slice(0);return ye.sort(),ye},_functionSortBy:function(ae){var ye=ae[0].slice(0);if(0===ye.length)return ye;var _e=this._interpreter,Ie=ae[1],Me=this._getTypeName(_e.visit(Ie,ye[0]));if([e,h].indexOf(Me)<0)throw new Error("TypeError");for(var je=this,Ke=[],qe=0;qe<ye.length;qe++)Ke.push([qe,ye[qe]]);Ke.sort(function(yt,ut){var ze=_e.visit(Ie,yt[1]),wt=_e.visit(Ie,ut[1]);if(je._getTypeName(ze)!==Me)throw new Error("TypeError: expected "+Me+", received "+je._getTypeName(ze));if(je._getTypeName(wt)!==Me)throw new Error("TypeError: expected "+Me+", received "+je._getTypeName(wt));return ze>wt?1:ze<wt?-1:yt[0]-ut[0]});for(var at=0;at<Ke.length;at++)ye[at]=Ke[at][1];return ye},_functionMaxBy:function(ae){for(var je,Ke,_e=ae[0],Ie=this.createKeyFunction(ae[1],[e,h]),Me=-1/0,qe=0;qe<_e.length;qe++)(Ke=Ie(_e[qe]))>Me&&(Me=Ke,je=_e[qe]);return je},_functionMinBy:function(ae){for(var je,Ke,_e=ae[0],Ie=this.createKeyFunction(ae[1],[e,h]),Me=1/0,qe=0;qe<_e.length;qe++)(Ke=Ie(_e[qe]))<Me&&(Me=Ke,je=_e[qe]);return je},createKeyFunction:function(ae,ye){var _e=this,Ie=this._interpreter;return function(je){var Ke=Ie.visit(ae,je);if(ye.indexOf(_e._getTypeName(Ke))<0){var qe="TypeError: expected one of "+ye+", received "+_e._getTypeName(Ke);throw new Error(qe)}return Ke}}},y.tokenize=function Re(ae){return(new w).tokenize(ae)},y.compile=function me(ae){return(new A).parse(ae)},y.search=function Pe(ae,ye){var _e=new A,Ie=new ne,Me=new I(Ie);Ie._interpreter=Me;var je=_e.parse(ye);return Me.search(je,ae)},y.strictDeepEqual=m}(k)},64981:le=>{"use strict";var k=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;le.exports=function m(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var n={},o=0;o<10;o++)n["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(n).map(function(i){return n[i]}).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach(function(i){e[i]=i}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch{return!1}}()?Object.assign:function(r,n){for(var o,e,l=function O(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}(r),i=1;i<arguments.length;i++){for(var h in o=Object(arguments[i]))y.call(o,h)&&(l[h]=o[h]);if(k){e=k(o);for(var d=0;d<e.length;d++)a.call(o,e[d])&&(l[e[d]]=o[e[d]])}}return l}},40245:(le,k,y)=>{"use strict";y.d(k,{Gl:()=>a.B,dP:()=>ie,re:()=>ue});var a=y(83302),O=y(62966);function m(){}var o,r=function(){function H($,oe){void 0===$&&($=1/0),void 0===oe&&(oe=m),this.max=$,this.dispose=oe,this.map=new Map,this.newest=null,this.oldest=null}return H.prototype.has=function($){return this.map.has($)},H.prototype.get=function($){var oe=this.getNode($);return oe&&oe.value},H.prototype.getNode=function($){var oe=this.map.get($);if(oe&&oe!==this.newest){var ee=oe.older,L=oe.newer;L&&(L.older=ee),ee&&(ee.newer=L),oe.older=this.newest,oe.older.newer=oe,oe.newer=null,this.newest=oe,oe===this.oldest&&(this.oldest=L)}return oe},H.prototype.set=function($,oe){var ee=this.getNode($);return ee?ee.value=oe:(ee={key:$,value:oe,newer:null,older:this.newest},this.newest&&(this.newest.newer=ee),this.newest=ee,this.oldest=this.oldest||ee,this.map.set($,ee),ee.value)},H.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},H.prototype.delete=function($){var oe=this.map.get($);return!!oe&&(oe===this.newest&&(this.newest=oe.older),oe===this.oldest&&(this.oldest=oe.newer),oe.newer&&(oe.newer.older=oe.older),oe.older&&(oe.older.newer=oe.newer),this.map.delete($),this.dispose(oe.value,$),!0)},H}(),n=new O.g7,l=Object.prototype.hasOwnProperty,e=void 0===(o=Array.from)?function(H){var $=[];return H.forEach(function(oe){return $.push(oe)}),$}:o;function i(H){var $=H.unsubscribe;"function"==typeof $&&(H.unsubscribe=void 0,$())}var h=[],d=100;function g(H,$){if(!H)throw new Error($||"assertion failure")}function T(H){switch(H.length){case 0:throw new Error("unknown value");case 1:return H[0];case 2:throw H[1]}}var R=function(){function H($){this.fn=$,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++H.count}return H.prototype.peek=function(){if(1===this.value.length&&!V(this))return x(this),this.value[0]},H.prototype.recompute=function($){return g(!this.recomputing,"already recomputing"),x(this),V(this)?function P(H,$){return F(H),n.withValue(H,W,[H,$]),function Q(H,$){if("function"==typeof H.subscribe)try{i(H),H.unsubscribe=H.subscribe.apply(null,$)}catch{return H.setDirty(),!1}return!0}(H,$)&&function Y(H){H.dirty=!1,!V(H)&&E(H)}(H),T(H.value)}(this,$):T(this.value)},H.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,j(this),i(this))},H.prototype.dispose=function(){var $=this;this.setDirty(),F(this),C(this,function(oe,ee){oe.setDirty(),q(oe,$)})},H.prototype.forget=function(){this.dispose()},H.prototype.dependOn=function($){$.add(this),this.deps||(this.deps=h.pop()||new Set),this.deps.add($)},H.prototype.forgetDeps=function(){var $=this;this.deps&&(e(this.deps).forEach(function(oe){return oe.delete($)}),this.deps.clear(),h.push(this.deps),this.deps=null)},H.count=0,H}();function x(H){var $=n.getValue();if($)return H.parents.add($),$.childValues.has(H)||$.childValues.set(H,[]),V(H)?p($,H):_($,H),$}function W(H,$){H.recomputing=!0,H.value.length=0;try{H.value[0]=H.fn.apply(null,$)}catch(oe){H.value[1]=oe}H.recomputing=!1}function V(H){return H.dirty||!(!H.dirtyChildren||!H.dirtyChildren.size)}function j(H){C(H,p)}function E(H){C(H,_)}function C(H,$){var oe=H.parents.size;if(oe)for(var ee=e(H.parents),L=0;L<oe;++L)$(ee[L],H)}function p(H,$){g(H.childValues.has($)),g(V($));var oe=!V(H);if(H.dirtyChildren){if(H.dirtyChildren.has($))return}else H.dirtyChildren=h.pop()||new Set;H.dirtyChildren.add($),oe&&j(H)}function _(H,$){g(H.childValues.has($)),g(!V($));var oe=H.childValues.get($);0===oe.length?H.childValues.set($,function M(H){return H.slice(0)}($.value)):function b(H,$){var oe=H.length;return oe>0&&oe===$.length&&H[oe-1]===$[oe-1]}(oe,$.value)||H.setDirty(),v(H,$),!V(H)&&E(H)}function v(H,$){var oe=H.dirtyChildren;oe&&(oe.delete($),0===oe.size&&(h.length<d&&h.push(oe),H.dirtyChildren=null))}function F(H){H.childValues.size>0&&H.childValues.forEach(function($,oe){q(H,oe)}),H.forgetDeps(),g(null===H.dirtyChildren)}function q(H,$){$.parents.delete(H),H.childValues.delete($),v(H,$)}var J={setDirty:!0,dispose:!0,forget:!0};function ie(H){var $=new Map,oe=H&&H.subscribe;function ee(L){var S=n.getValue();if(S){var B=$.get(L);B||$.set(L,B=new Set),S.dependOn(B),"function"==typeof oe&&(i(B),B.unsubscribe=oe(L))}}return ee.dirty=function(S,B){var G=$.get(S);if(G){var U=B&&l.call(J,B)?B:"setDirty";e(G).forEach(function(re){return re[U]()}),$.delete(S),i(G)}},ee}function Se(){var H=new a.B("function"==typeof WeakMap);return function(){return H.lookupArray(arguments)}}Se();var ge=new Set;function ue(H,$){void 0===$&&($=Object.create(null));var oe=new r($.max||Math.pow(2,16),function(re){return re.dispose()}),ee=$.keyArgs,L=$.makeCacheKey||Se(),S=function(){var re=L.apply(null,ee?ee.apply(null,arguments):arguments);if(void 0===re)return H.apply(null,arguments);var ce=oe.get(re);ce||(oe.set(re,ce=new R(H)),ce.subscribe=$.subscribe,ce.forget=function(){return oe.delete(re)});var be=ce.recompute(Array.prototype.slice.call(arguments));return oe.set(re,ce),ge.add(oe),n.hasValue()||(ge.forEach(function(Z){return Z.clean()}),ge.clear()),be};function B(re){var ce=oe.get(re);ce&&ce.setDirty()}function G(re){var ce=oe.get(re);if(ce)return ce.peek()}function U(re){return oe.delete(re)}return Object.defineProperty(S,"size",{get:function(){return oe.map.size},configurable:!1,enumerable:!1}),S.dirtyKey=B,S.dirty=function(){B(L.apply(null,arguments))},S.peekKey=G,S.peek=function(){return G(L.apply(null,arguments))},S.forgetKey=U,S.forget=function(){return U(L.apply(null,arguments))},S.makeCacheKey=L,S.getKey=ee?function(){return L.apply(null,ee.apply(null,arguments))}:L,Object.freeze(S)}},58886:le=>{"use strict";function k(y,a){return Object.prototype.hasOwnProperty.call(y,a)}le.exports=function(y,a,O,m){O=O||"=";var r={};if("string"!=typeof y||0===y.length)return r;var n=/\+/g;y=y.split(a=a||"&");var o=1e3;m&&"number"==typeof m.maxKeys&&(o=m.maxKeys);var l=y.length;o>0&&l>o&&(l=o);for(var e=0;e<l;++e){var d,g,b,T,i=y[e].replace(n,"%20"),h=i.indexOf(O);h>=0?(d=i.substr(0,h),g=i.substr(h+1)):(d=i,g=""),b=decodeURIComponent(d),T=decodeURIComponent(g),k(r,b)?Array.isArray(r[b])?r[b].push(T):r[b]=[r[b],T]:r[b]=T}return r}},40453:le=>{"use strict";var k=function(y){switch(typeof y){case"string":return y;case"boolean":return y?"true":"false";case"number":return isFinite(y)?y:"";default:return""}};le.exports=function(y,a,O,m){return a=a||"&",O=O||"=",null===y&&(y=void 0),"object"==typeof y?Object.keys(y).map(function(r){var n=encodeURIComponent(k(r))+O;return Array.isArray(y[r])?y[r].map(function(o){return n+encodeURIComponent(k(o))}).join(a):n+encodeURIComponent(k(y[r]))}).join(a):m?encodeURIComponent(k(m))+O+encodeURIComponent(k(y)):""}},51239:(le,k,y)=>{"use strict";k.decode=k.parse=y(58886),k.encode=k.stringify=y(40453)},50988:function(le,k,y){var a;le=y.nmd(le),function(O){"object"==typeof global&&global;var o,l=2147483647,e=36,i=1,h=26,d=38,g=700,b=72,T=128,M="-",R=/^xn--/,x=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,W={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},V=e-i,Y=Math.floor,j=String.fromCharCode;function C(ue){throw RangeError(W[ue])}function p(ue,H){for(var $=ue.length,oe=[];$--;)oe[$]=H(ue[$]);return oe}function _(ue,H){var $=ue.split("@"),oe="";return $.length>1&&(oe=$[0]+"@",ue=$[1]),oe+p((ue=ue.replace(P,".")).split("."),H).join(".")}function v(ue){for(var ee,L,H=[],$=0,oe=ue.length;$<oe;)(ee=ue.charCodeAt($++))>=55296&&ee<=56319&&$<oe?56320==(64512&(L=ue.charCodeAt($++)))?H.push(((1023&ee)<<10)+(1023&L)+65536):(H.push(ee),$--):H.push(ee);return H}function F(ue){return p(ue,function(H){var $="";return H>65535&&($+=j((H-=65536)>>>10&1023|55296),H=56320|1023&H),$+j(H)}).join("")}function q(ue){return ue-48<10?ue-22:ue-65<26?ue-65:ue-97<26?ue-97:e}function Q(ue,H){return ue+22+75*(ue<26)-((0!=H)<<5)}function J(ue,H,$){var oe=0;for(ue=$?Y(ue/g):ue>>1,ue+=Y(ue/H);ue>V*h>>1;oe+=e)ue=Y(ue/V);return Y(oe+(V+1)*ue/(ue+d))}function ie(ue){var oe,B,G,U,re,ce,be,Z,de,he,H=[],$=ue.length,ee=0,L=T,S=b;for((B=ue.lastIndexOf(M))<0&&(B=0),G=0;G<B;++G)ue.charCodeAt(G)>=128&&C("not-basic"),H.push(ue.charCodeAt(G));for(U=B>0?B+1:0;U<$;){for(re=ee,ce=1,be=e;U>=$&&C("invalid-input"),((Z=q(ue.charCodeAt(U++)))>=e||Z>Y((l-ee)/ce))&&C("overflow"),ee+=Z*ce,!(Z<(de=be<=S?i:be>=S+h?h:be-S));be+=e)ce>Y(l/(he=e-de))&&C("overflow"),ce*=he;S=J(ee-re,oe=H.length+1,0==re),Y(ee/oe)>l-L&&C("overflow"),L+=Y(ee/oe),ee%=oe,H.splice(ee++,0,L)}return F(H)}function Se(ue){var H,$,oe,ee,L,S,B,G,U,re,ce,Z,de,he,Ee,be=[];for(Z=(ue=v(ue)).length,H=T,$=0,L=b,S=0;S<Z;++S)(ce=ue[S])<128&&be.push(j(ce));for(oe=ee=be.length,ee&&be.push(M);oe<Z;){for(B=l,S=0;S<Z;++S)(ce=ue[S])>=H&&ce<B&&(B=ce);for(B-H>Y((l-$)/(de=oe+1))&&C("overflow"),$+=(B-H)*de,H=B,S=0;S<Z;++S)if((ce=ue[S])<H&&++$>l&&C("overflow"),ce==H){for(G=$,U=e;!(G<(re=U<=L?i:U>=L+h?h:U-L));U+=e)be.push(j(Q(re+(Ee=G-re)%(he=e-re),0))),G=Y(Ee/he);be.push(j(Q(G,0))),L=J($,de,oe==ee),$=0,++oe}++$,++H}return be.join("")}o={version:"1.3.2",ucs2:{decode:v,encode:F},decode:ie,encode:Se,toASCII:function ge(ue){return _(ue,function(H){return x.test(H)?"xn--"+Se(H):H})},toUnicode:function te(ue){return _(ue,function(H){return R.test(H)?ie(H.slice(4).toLowerCase()):H})}},void 0!==(a=function(){return o}.call(k,y,k,le))&&(le.exports=a)}()},87317:(le,k,y)=>{"use strict";var a=y(50988),O=y(89390);function m(){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}k.parse=W,k.resolve=function Y(E,C){return W(E,!1,!0).resolve(C)},k.resolveObject=function j(E,C){return E?W(E,!1,!0).resolveObject(C):C},k.format=function V(E){return O.isString(E)&&(E=W(E)),E instanceof m?E.format():m.prototype.format.call(E)},k.Url=m;var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),i=["'"].concat(e),h=["%","/","?",";","#"].concat(i),d=["/","?","#"],b=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,M={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=y(51239);function W(E,C,p){if(E&&O.isObject(E)&&E instanceof m)return E;var _=new m;return _.parse(E,C,p),_}m.prototype.parse=function(E,C,p){if(!O.isString(E))throw new TypeError("Parameter 'url' must be a string, not "+typeof E);var _=E.indexOf("?"),v=-1!==_&&_<E.indexOf("#")?"?":"#",F=E.split(v);F[0]=F[0].replace(/\\/g,"/");var Q=E=F.join(v);if(Q=Q.trim(),!p&&1===E.split("#").length){var J=o.exec(Q);if(J)return this.path=Q,this.href=Q,this.pathname=J[1],J[2]?(this.search=J[2],this.query=C?P.parse(this.search.substr(1)):this.search.substr(1)):C&&(this.search="",this.query={}),this}var ie=r.exec(Q);if(ie){var Se=(ie=ie[0]).toLowerCase();this.protocol=Se,Q=Q.substr(ie.length)}if(p||ie||Q.match(/^\/\/[^@\/]+@[^@\/]+/)){var te="//"===Q.substr(0,2);te&&(!ie||!R[ie])&&(Q=Q.substr(2),this.slashes=!0)}if(!R[ie]&&(te||ie&&!x[ie])){for(var ge=-1,ue=0;ue<d.length;ue++)-1!==(H=Q.indexOf(d[ue]))&&(-1===ge||H<ge)&&(ge=H);var $,oe;for(-1!==(oe=-1===ge?Q.lastIndexOf("@"):Q.lastIndexOf("@",ge))&&($=Q.slice(0,oe),Q=Q.slice(oe+1),this.auth=decodeURIComponent($)),ge=-1,ue=0;ue<h.length;ue++){var H;-1!==(H=Q.indexOf(h[ue]))&&(-1===ge||H<ge)&&(ge=H)}-1===ge&&(ge=Q.length),this.host=Q.slice(0,ge),Q=Q.slice(ge),this.parseHost(),this.hostname=this.hostname||"";var ee="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!ee)for(var L=this.hostname.split(/\./),S=(ue=0,L.length);ue<S;ue++){var B=L[ue];if(B&&!B.match(b)){for(var G="",U=0,re=B.length;U<re;U++)B.charCodeAt(U)>127?G+="x":G+=B[U];if(!G.match(b)){var ce=L.slice(0,ue),be=L.slice(ue+1),Z=B.match(T);Z&&(ce.push(Z[1]),be.unshift(Z[2])),be.length&&(Q="/"+be.join(".")+Q),this.hostname=ce.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),ee||(this.hostname=a.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,ee&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==Q[0]&&(Q="/"+Q))}if(!M[Se])for(ue=0,S=i.length;ue<S;ue++){var Ee=i[ue];if(-1!==Q.indexOf(Ee)){var K=encodeURIComponent(Ee);K===Ee&&(K=escape(Ee)),Q=Q.split(Ee).join(K)}}var w=Q.indexOf("#");-1!==w&&(this.hash=Q.substr(w),Q=Q.slice(0,w));var f=Q.indexOf("?");return-1!==f?(this.search=Q.substr(f),this.query=Q.substr(f+1),C&&(this.query=P.parse(this.query)),Q=Q.slice(0,f)):C&&(this.search="",this.query={}),Q&&(this.pathname=Q),x[Se]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},m.prototype.format=function(){var E=this.auth||"";E&&(E=(E=encodeURIComponent(E)).replace(/%3A/i,":"),E+="@");var C=this.protocol||"",p=this.pathname||"",_=this.hash||"",v=!1,F="";this.host?v=E+this.host:this.hostname&&(v=E+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(v+=":"+this.port)),this.query&&O.isObject(this.query)&&Object.keys(this.query).length&&(F=P.stringify(this.query));var q=this.search||F&&"?"+F||"";return C&&":"!==C.substr(-1)&&(C+=":"),this.slashes||(!C||x[C])&&!1!==v?(v="//"+(v||""),p&&"/"!==p.charAt(0)&&(p="/"+p)):v||(v=""),_&&"#"!==_.charAt(0)&&(_="#"+_),q&&"?"!==q.charAt(0)&&(q="?"+q),C+v+(p=p.replace(/[?#]/g,function(Q){return encodeURIComponent(Q)}))+(q=q.replace("#","%23"))+_},m.prototype.resolve=function(E){return this.resolveObject(W(E,!1,!0)).format()},m.prototype.resolveObject=function(E){if(O.isString(E)){var C=new m;C.parse(E,!1,!0),E=C}for(var p=new m,_=Object.keys(this),v=0;v<_.length;v++){var F=_[v];p[F]=this[F]}if(p.hash=E.hash,""===E.href)return p.href=p.format(),p;if(E.slashes&&!E.protocol){for(var q=Object.keys(E),Q=0;Q<q.length;Q++){var J=q[Q];"protocol"!==J&&(p[J]=E[J])}return x[p.protocol]&&p.hostname&&!p.pathname&&(p.path=p.pathname="/"),p.href=p.format(),p}if(E.protocol&&E.protocol!==p.protocol){if(!x[E.protocol]){for(var ie=Object.keys(E),Se=0;Se<ie.length;Se++){var te=ie[Se];p[te]=E[te]}return p.href=p.format(),p}if(p.protocol=E.protocol,E.host||R[E.protocol])p.pathname=E.pathname;else{for(var S=(E.pathname||"").split("/");S.length&&!(E.host=S.shift()););E.host||(E.host=""),E.hostname||(E.hostname=""),""!==S[0]&&S.unshift(""),S.length<2&&S.unshift(""),p.pathname=S.join("/")}return p.search=E.search,p.query=E.query,p.host=E.host||"",p.auth=E.auth,p.hostname=E.hostname||E.host,p.port=E.port,(p.pathname||p.search)&&(p.path=(p.pathname||"")+(p.search||"")),p.slashes=p.slashes||E.slashes,p.href=p.format(),p}var H=p.pathname&&"/"===p.pathname.charAt(0),$=E.host||E.pathname&&"/"===E.pathname.charAt(0),oe=$||H||p.host&&E.pathname,ee=oe,L=p.pathname&&p.pathname.split("/")||[],B=(S=E.pathname&&E.pathname.split("/")||[],p.protocol&&!x[p.protocol]);if(B&&(p.hostname="",p.port=null,p.host&&(""===L[0]?L[0]=p.host:L.unshift(p.host)),p.host="",E.protocol&&(E.hostname=null,E.port=null,E.host&&(""===S[0]?S[0]=E.host:S.unshift(E.host)),E.host=null),oe=oe&&(""===S[0]||""===L[0])),$)p.host=E.host||""===E.host?E.host:p.host,p.hostname=E.hostname||""===E.hostname?E.hostname:p.hostname,p.search=E.search,p.query=E.query,L=S;else if(S.length)L||(L=[]),L.pop(),L=L.concat(S),p.search=E.search,p.query=E.query;else if(!O.isNullOrUndefined(E.search))return B&&(p.hostname=p.host=L.shift(),(G=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=G.shift(),p.host=p.hostname=G.shift())),p.search=E.search,p.query=E.query,(!O.isNull(p.pathname)||!O.isNull(p.search))&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.href=p.format(),p;if(!L.length)return p.pathname=null,p.path=p.search?"/"+p.search:null,p.href=p.format(),p;for(var U=L.slice(-1)[0],re=(p.host||E.host||L.length>1)&&("."===U||".."===U)||""===U,ce=0,be=L.length;be>=0;be--)"."===(U=L[be])?L.splice(be,1):".."===U?(L.splice(be,1),ce++):ce&&(L.splice(be,1),ce--);if(!oe&&!ee)for(;ce--;ce)L.unshift("..");oe&&""!==L[0]&&(!L[0]||"/"!==L[0].charAt(0))&&L.unshift(""),re&&"/"!==L.join("/").substr(-1)&&L.push("");var G,Z=""===L[0]||L[0]&&"/"===L[0].charAt(0);return B&&(p.hostname=p.host=Z?"":L.length?L.shift():"",(G=!!(p.host&&p.host.indexOf("@")>0)&&p.host.split("@"))&&(p.auth=G.shift(),p.host=p.hostname=G.shift())),(oe=oe||p.host&&L.length)&&!Z&&L.unshift(""),L.length?p.pathname=L.join("/"):(p.pathname=null,p.path=null),(!O.isNull(p.pathname)||!O.isNull(p.search))&&(p.path=(p.pathname?p.pathname:"")+(p.search?p.search:"")),p.auth=E.auth||p.auth,p.slashes=p.slashes||E.slashes,p.href=p.format(),p},m.prototype.parseHost=function(){var E=this.host,C=n.exec(E);C&&(":"!==(C=C[0])&&(this.port=C.substr(1)),E=E.substr(0,E.length-C.length)),E&&(this.hostname=E)}},89390:le=>{"use strict";le.exports={isString:function(k){return"string"==typeof k},isObject:function(k){return"object"==typeof k&&null!==k},isNull:function(k){return null===k},isNullOrUndefined:function(k){return null==k}}},90002:le=>{le.exports=function(y){return y&&"object"==typeof y&&"function"==typeof y.copy&&"function"==typeof y.fill&&"function"==typeof y.readUInt8}},21960:(le,k,y)=>{"use strict";var a=y(676),O=y(78337),m=y(33167),r=y(51852);function n(f){return f.call.bind(f)}var o=typeof BigInt<"u",l=typeof Symbol<"u",e=n(Object.prototype.toString),i=n(Number.prototype.valueOf),h=n(String.prototype.valueOf),d=n(Boolean.prototype.valueOf);if(o)var g=n(BigInt.prototype.valueOf);if(l)var b=n(Symbol.prototype.valueOf);function T(f,A){if("object"!=typeof f)return!1;try{return A(f),!0}catch{return!1}}function F(f){return"[object Map]"===e(f)}function Q(f){return"[object Set]"===e(f)}function ie(f){return"[object WeakMap]"===e(f)}function te(f){return"[object WeakSet]"===e(f)}function ue(f){return"[object ArrayBuffer]"===e(f)}function H(f){return!(typeof ArrayBuffer>"u")&&(ue.working?ue(f):f instanceof ArrayBuffer)}function $(f){return"[object DataView]"===e(f)}function oe(f){return!(typeof DataView>"u")&&($.working?$(f):f instanceof DataView)}k.isArgumentsObject=a,k.isGeneratorFunction=O,k.isTypedArray=r,k.isPromise=function M(f){return typeof Promise<"u"&&f instanceof Promise||null!==f&&"object"==typeof f&&"function"==typeof f.then&&"function"==typeof f.catch},k.isArrayBufferView=function R(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):r(f)||oe(f)},k.isUint8Array=function x(f){return"Uint8Array"===m(f)},k.isUint8ClampedArray=function P(f){return"Uint8ClampedArray"===m(f)},k.isUint16Array=function W(f){return"Uint16Array"===m(f)},k.isUint32Array=function V(f){return"Uint32Array"===m(f)},k.isInt8Array=function Y(f){return"Int8Array"===m(f)},k.isInt16Array=function j(f){return"Int16Array"===m(f)},k.isInt32Array=function E(f){return"Int32Array"===m(f)},k.isFloat32Array=function C(f){return"Float32Array"===m(f)},k.isFloat64Array=function p(f){return"Float64Array"===m(f)},k.isBigInt64Array=function _(f){return"BigInt64Array"===m(f)},k.isBigUint64Array=function v(f){return"BigUint64Array"===m(f)},F.working=typeof Map<"u"&&F(new Map),k.isMap=function q(f){return!(typeof Map>"u")&&(F.working?F(f):f instanceof Map)},Q.working=typeof Set<"u"&&Q(new Set),k.isSet=function J(f){return!(typeof Set>"u")&&(Q.working?Q(f):f instanceof Set)},ie.working=typeof WeakMap<"u"&&ie(new WeakMap),k.isWeakMap=function Se(f){return!(typeof WeakMap>"u")&&(ie.working?ie(f):f instanceof WeakMap)},te.working=typeof WeakSet<"u"&&te(new WeakSet),k.isWeakSet=function ge(f){return te(f)},ue.working=typeof ArrayBuffer<"u"&&ue(new ArrayBuffer),k.isArrayBuffer=H,$.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&$(new DataView(new ArrayBuffer(1),0,1)),k.isDataView=oe;var ee=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function L(f){return"[object SharedArrayBuffer]"===e(f)}function S(f){return!(typeof ee>"u")&&(typeof L.working>"u"&&(L.working=L(new ee)),L.working?L(f):f instanceof ee)}function be(f){return T(f,i)}function Z(f){return T(f,h)}function de(f){return T(f,d)}function he(f){return o&&T(f,g)}function Ee(f){return l&&T(f,b)}k.isSharedArrayBuffer=S,k.isAsyncFunction=function B(f){return"[object AsyncFunction]"===e(f)},k.isMapIterator=function G(f){return"[object Map Iterator]"===e(f)},k.isSetIterator=function U(f){return"[object Set Iterator]"===e(f)},k.isGeneratorObject=function re(f){return"[object Generator]"===e(f)},k.isWebAssemblyCompiledModule=function ce(f){return"[object WebAssembly.Module]"===e(f)},k.isNumberObject=be,k.isStringObject=Z,k.isBooleanObject=de,k.isBigIntObject=he,k.isSymbolObject=Ee,k.isBoxedPrimitive=function K(f){return be(f)||Z(f)||de(f)||he(f)||Ee(f)},k.isAnyArrayBuffer=function w(f){return typeof Uint8Array<"u"&&(H(f)||S(f))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(f){Object.defineProperty(k,f,{enumerable:!1,value:function(){throw new Error(f+" is not supported in userland")}})})},29296:(le,k,y)=>{var a=Object.getOwnPropertyDescriptors||function(oe){for(var ee=Object.keys(oe),L={},S=0;S<ee.length;S++)L[ee[S]]=Object.getOwnPropertyDescriptor(oe,ee[S]);return L},O=/%[sdj%]/g;k.format=function($){if(!Y($)){for(var oe=[],ee=0;ee<arguments.length;ee++)oe.push(o(arguments[ee]));return oe.join(" ")}ee=1;for(var L=arguments,S=L.length,B=String($).replace(O,function(U){if("%%"===U)return"%";if(ee>=S)return U;switch(U){case"%s":return String(L[ee++]);case"%d":return Number(L[ee++]);case"%j":try{return JSON.stringify(L[ee++])}catch{return"[Circular]"}default:return U}}),G=L[ee];ee<S;G=L[++ee])P(G)||!p(G)?B+=" "+G:B+=" "+o(G);return B},k.deprecate=function($,oe){if(typeof process<"u"&&!0===process.noDeprecation)return $;if(typeof process>"u")return function(){return k.deprecate($,oe).apply(this,arguments)};var ee=!1;return function L(){if(!ee){if(process.throwDeprecation)throw new Error(oe);process.traceDeprecation?console.trace(oe):console.error(oe),ee=!0}return $.apply(this,arguments)}};var m={},r=/^$/;if(process.env.NODE_DEBUG){var n=process.env.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),r=new RegExp("^"+n+"$","i")}function o($,oe){var ee={seen:[],stylize:e};return arguments.length>=3&&(ee.depth=arguments[2]),arguments.length>=4&&(ee.colors=arguments[3]),x(oe)?ee.showHidden=oe:oe&&k._extend(ee,oe),E(ee.showHidden)&&(ee.showHidden=!1),E(ee.depth)&&(ee.depth=2),E(ee.colors)&&(ee.colors=!1),E(ee.customInspect)&&(ee.customInspect=!0),ee.colors&&(ee.stylize=l),h(ee,$,ee.depth)}function l($,oe){var ee=o.styles[oe];return ee?"\x1b["+o.colors[ee][0]+"m"+$+"\x1b["+o.colors[ee][1]+"m":$}function e($,oe){return $}function h($,oe,ee){if($.customInspect&&oe&&F(oe.inspect)&&oe.inspect!==k.inspect&&(!oe.constructor||oe.constructor.prototype!==oe)){var L=oe.inspect(ee,$);return Y(L)||(L=h($,L,ee)),L}var S=function d($,oe){if(E(oe))return $.stylize("undefined","undefined");if(Y(oe)){var ee="'"+JSON.stringify(oe).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return $.stylize(ee,"string")}return V(oe)?$.stylize(""+oe,"number"):x(oe)?$.stylize(""+oe,"boolean"):P(oe)?$.stylize("null","null"):void 0}($,oe);if(S)return S;var B=Object.keys(oe),G=function i($){var oe={};return $.forEach(function(ee,L){oe[ee]=!0}),oe}(B);if($.showHidden&&(B=Object.getOwnPropertyNames(oe)),v(oe)&&(B.indexOf("message")>=0||B.indexOf("description")>=0))return g(oe);if(0===B.length){if(F(oe))return $.stylize("[Function"+(oe.name?": "+oe.name:"")+"]","special");if(C(oe))return $.stylize(RegExp.prototype.toString.call(oe),"regexp");if(_(oe))return $.stylize(Date.prototype.toString.call(oe),"date");if(v(oe))return g(oe)}var de,re="",ce=!1,be=["{","}"];return R(oe)&&(ce=!0,be=["[","]"]),F(oe)&&(re=" [Function"+(oe.name?": "+oe.name:"")+"]"),C(oe)&&(re=" "+RegExp.prototype.toString.call(oe)),_(oe)&&(re=" "+Date.prototype.toUTCString.call(oe)),v(oe)&&(re=" "+g(oe)),0!==B.length||ce&&0!=oe.length?ee<0?C(oe)?$.stylize(RegExp.prototype.toString.call(oe),"regexp"):$.stylize("[Object]","special"):($.seen.push(oe),de=ce?function b($,oe,ee,L,S){for(var B=[],G=0,U=oe.length;G<U;++G)te(oe,String(G))?B.push(T($,oe,ee,L,String(G),!0)):B.push("");return S.forEach(function(re){re.match(/^\d+$/)||B.push(T($,oe,ee,L,re,!0))}),B}($,oe,ee,G,B):B.map(function(he){return T($,oe,ee,G,he,ce)}),$.seen.pop(),function M($,oe,ee){var S=$.reduce(function(B,G){return G.indexOf("\n"),B+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return S>60?ee[0]+(""===oe?"":oe+"\n ")+" "+$.join(",\n ")+" "+ee[1]:ee[0]+oe+" "+$.join(", ")+" "+ee[1]}(de,re,be)):be[0]+re+be[1]}function g($){return"["+Error.prototype.toString.call($)+"]"}function T($,oe,ee,L,S,B){var G,U,re;if((re=Object.getOwnPropertyDescriptor(oe,S)||{value:oe[S]}).get?U=$.stylize(re.set?"[Getter/Setter]":"[Getter]","special"):re.set&&(U=$.stylize("[Setter]","special")),te(L,S)||(G="["+S+"]"),U||($.seen.indexOf(re.value)<0?(U=P(ee)?h($,re.value,null):h($,re.value,ee-1)).indexOf("\n")>-1&&(U=B?U.split("\n").map(function(ce){return" "+ce}).join("\n").substr(2):"\n"+U.split("\n").map(function(ce){return" "+ce}).join("\n")):U=$.stylize("[Circular]","special")),E(G)){if(B&&S.match(/^\d+$/))return U;(G=JSON.stringify(""+S)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(G=G.substr(1,G.length-2),G=$.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=$.stylize(G,"string"))}return G+": "+U}function R($){return Array.isArray($)}function x($){return"boolean"==typeof $}function P($){return null===$}function V($){return"number"==typeof $}function Y($){return"string"==typeof $}function E($){return void 0===$}function C($){return p($)&&"[object RegExp]"===Q($)}function p($){return"object"==typeof $&&null!==$}function _($){return p($)&&"[object Date]"===Q($)}function v($){return p($)&&("[object Error]"===Q($)||$ instanceof Error)}function F($){return"function"==typeof $}function Q($){return Object.prototype.toString.call($)}function J($){return $<10?"0"+$.toString(10):$.toString(10)}k.debuglog=function($){if($=$.toUpperCase(),!m[$])if(r.test($)){var oe=process.pid;m[$]=function(){var ee=k.format.apply(k,arguments);console.error("%s %d: %s",$,oe,ee)}}else m[$]=function(){};return m[$]},k.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},k.types=y(21960),k.isArray=R,k.isBoolean=x,k.isNull=P,k.isNullOrUndefined=function W($){return null==$},k.isNumber=V,k.isString=Y,k.isSymbol=function j($){return"symbol"==typeof $},k.isUndefined=E,k.isRegExp=C,k.types.isRegExp=C,k.isObject=p,k.isDate=_,k.types.isDate=_,k.isError=v,k.types.isNativeError=v,k.isFunction=F,k.isPrimitive=function q($){return null===$||"boolean"==typeof $||"number"==typeof $||"string"==typeof $||"symbol"==typeof $||typeof $>"u"},k.isBuffer=y(90002);var ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function te($,oe){return Object.prototype.hasOwnProperty.call($,oe)}k.log=function(){console.log("%s - %s",function Se(){var $=new Date,oe=[J($.getHours()),J($.getMinutes()),J($.getSeconds())].join(":");return[$.getDate(),ie[$.getMonth()],oe].join(" ")}(),k.format.apply(k,arguments))},k.inherits=y(23819),k._extend=function($,oe){if(!oe||!p(oe))return $;for(var ee=Object.keys(oe),L=ee.length;L--;)$[ee[L]]=oe[ee[L]];return $};var ge=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ue($,oe){if(!$){var ee=new Error("Promise was rejected with a falsy value");ee.reason=$,$=ee}return oe($)}k.promisify=function(oe){if("function"!=typeof oe)throw new TypeError('The "original" argument must be of type Function');if(ge&&oe[ge]){var ee;if("function"!=typeof(ee=oe[ge]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(ee,ge,{value:ee,enumerable:!1,writable:!1,configurable:!0}),ee}function ee(){for(var L,S,B=new Promise(function(re,ce){L=re,S=ce}),G=[],U=0;U<arguments.length;U++)G.push(arguments[U]);G.push(function(re,ce){re?S(re):L(ce)});try{oe.apply(this,G)}catch(re){S(re)}return B}return Object.setPrototypeOf(ee,Object.getPrototypeOf(oe)),ge&&Object.defineProperty(ee,ge,{value:ee,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(ee,a(oe))},k.promisify.custom=ge,k.callbackify=function H($){if("function"!=typeof $)throw new TypeError('The "original" argument must be of type Function');function oe(){for(var ee=[],L=0;L<arguments.length;L++)ee.push(arguments[L]);var S=ee.pop();if("function"!=typeof S)throw new TypeError("The last argument must be of type Function");var B=this,G=function(){return S.apply(B,arguments)};$.apply(this,ee).then(function(U){process.nextTick(G.bind(null,null,U))},function(U){process.nextTick(ue.bind(null,U,G))})}return Object.setPrototypeOf(oe,Object.getPrototypeOf($)),Object.defineProperties(oe,a($)),oe}},34278:(le,k,y)=>{"use strict";y.r(k),y.d(k,{NIL:()=>re,parse:()=>P,stringify:()=>h,v1:()=>R,v3:()=>H,v4:()=>oe,v5:()=>U,validate:()=>o,version:()=>be});var a,O=new Uint8Array(16);function m(){if(!a&&!(a=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(O)}const r=/^(?:[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,o=function n(Z){return"string"==typeof Z&&r.test(Z)};for(var l=[],e=0;e<256;++e)l.push((e+256).toString(16).substr(1));const h=function i(Z){var de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,he=(l[Z[de+0]]+l[Z[de+1]]+l[Z[de+2]]+l[Z[de+3]]+"-"+l[Z[de+4]]+l[Z[de+5]]+"-"+l[Z[de+6]]+l[Z[de+7]]+"-"+l[Z[de+8]]+l[Z[de+9]]+"-"+l[Z[de+10]]+l[Z[de+11]]+l[Z[de+12]]+l[Z[de+13]]+l[Z[de+14]]+l[Z[de+15]]).toLowerCase();if(!o(he))throw TypeError("Stringified UUID is invalid");return he};var d,g,b=0,T=0;const R=function M(Z,de,he){var Ee=de&&he||0,K=de||new Array(16),w=(Z=Z||{}).node||d,f=void 0!==Z.clockseq?Z.clockseq:g;if(null==w||null==f){var A=Z.random||(Z.rng||m)();null==w&&(w=d=[1|A[0],A[1],A[2],A[3],A[4],A[5]]),null==f&&(f=g=16383&(A[6]<<8|A[7]))}var I=void 0!==Z.msecs?Z.msecs:Date.now(),ne=void 0!==Z.nsecs?Z.nsecs:T+1,me=I-b+(ne-T)/1e4;if(me<0&&void 0===Z.clockseq&&(f=f+1&16383),(me<0||I>b)&&void 0===Z.nsecs&&(ne=0),ne>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");b=I,T=ne,g=f;var Re=(1e4*(268435455&(I+=122192928e5))+ne)%4294967296;K[Ee++]=Re>>>24&255,K[Ee++]=Re>>>16&255,K[Ee++]=Re>>>8&255,K[Ee++]=255ℜvar Pe=I/4294967296*1e4&268435455;K[Ee++]=Pe>>>8&255,K[Ee++]=255&Pe,K[Ee++]=Pe>>>24&15|16,K[Ee++]=Pe>>>16&255,K[Ee++]=f>>>8|128,K[Ee++]=255&f;for(var ae=0;ae<6;++ae)K[Ee+ae]=w[ae];return de||h(K)},P=function x(Z){if(!o(Z))throw TypeError("Invalid UUID");var de,he=new Uint8Array(16);return he[0]=(de=parseInt(Z.slice(0,8),16))>>>24,he[1]=de>>>16&255,he[2]=de>>>8&255,he[3]=255&de,he[4]=(de=parseInt(Z.slice(9,13),16))>>>8,he[5]=255&de,he[6]=(de=parseInt(Z.slice(14,18),16))>>>8,he[7]=255&de,he[8]=(de=parseInt(Z.slice(19,23),16))>>>8,he[9]=255&de,he[10]=(de=parseInt(Z.slice(24,36),16))/1099511627776&255,he[11]=de/4294967296&255,he[12]=de>>>24&255,he[13]=de>>>16&255,he[14]=de>>>8&255,he[15]=255&de,he};var V="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Y="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function j(Z,de,he){function Ee(K,w,f,A){if("string"==typeof K&&(K=function W(Z){Z=unescape(encodeURIComponent(Z));for(var de=[],he=0;he<Z.length;++he)de.push(Z.charCodeAt(he));return de}(K)),"string"==typeof w&&(w=P(w)),16!==w.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var I=new Uint8Array(16+K.length);if(I.set(w),I.set(K,w.length),(I=he(I))[6]=15&I[6]|de,I[8]=63&I[8]|128,f){A=A||0;for(var ne=0;ne<16;++ne)f[A+ne]=I[ne];return f}return h(I)}try{Ee.name=Z}catch{}return Ee.DNS=V,Ee.URL=Y,Ee}function p(Z){return 14+(Z+64>>>9<<4)+1}function F(Z,de){var he=(65535&Z)+(65535&de);return(Z>>16)+(de>>16)+(he>>16)<<16|65535&he}function Q(Z,de,he,Ee,K,w){return F(function q(Z,de){return Z<<de|Z>>>32-de}(F(F(de,Z),F(Ee,w)),K),he)}function J(Z,de,he,Ee,K,w,f){return Q(de&he|~de&Ee,Z,de,K,w,f)}function ie(Z,de,he,Ee,K,w,f){return Q(de&Ee|he&~Ee,Z,de,K,w,f)}function Se(Z,de,he,Ee,K,w,f){return Q(de^he^Ee,Z,de,K,w,f)}function te(Z,de,he,Ee,K,w,f){return Q(he^(de|~Ee),Z,de,K,w,f)}const H=j("v3",48,function E(Z){if("string"==typeof Z){var de=unescape(encodeURIComponent(Z));Z=new Uint8Array(de.length);for(var he=0;he<de.length;++he)Z[he]=de.charCodeAt(he)}return function C(Z){for(var de=[],he=32*Z.length,Ee="0123456789abcdef",K=0;K<he;K+=8){var w=Z[K>>5]>>>K%32&255,f=parseInt(Ee.charAt(w>>>4&15)+Ee.charAt(15&w),16);de.push(f)}return de}(function _(Z,de){Z[de>>5]|=128<<de%32,Z[p(de)-1]=de;for(var he=1732584193,Ee=-271733879,K=-1732584194,w=271733878,f=0;f<Z.length;f+=16){var A=he,I=Ee,ne=K,me=w;he=J(he,Ee,K,w,Z[f],7,-680876936),w=J(w,he,Ee,K,Z[f+1],12,-389564586),K=J(K,w,he,Ee,Z[f+2],17,606105819),Ee=J(Ee,K,w,he,Z[f+3],22,-1044525330),he=J(he,Ee,K,w,Z[f+4],7,-176418897),w=J(w,he,Ee,K,Z[f+5],12,1200080426),K=J(K,w,he,Ee,Z[f+6],17,-1473231341),Ee=J(Ee,K,w,he,Z[f+7],22,-45705983),he=J(he,Ee,K,w,Z[f+8],7,1770035416),w=J(w,he,Ee,K,Z[f+9],12,-1958414417),K=J(K,w,he,Ee,Z[f+10],17,-42063),Ee=J(Ee,K,w,he,Z[f+11],22,-1990404162),he=J(he,Ee,K,w,Z[f+12],7,1804603682),w=J(w,he,Ee,K,Z[f+13],12,-40341101),K=J(K,w,he,Ee,Z[f+14],17,-1502002290),he=ie(he,Ee=J(Ee,K,w,he,Z[f+15],22,1236535329),K,w,Z[f+1],5,-165796510),w=ie(w,he,Ee,K,Z[f+6],9,-1069501632),K=ie(K,w,he,Ee,Z[f+11],14,643717713),Ee=ie(Ee,K,w,he,Z[f],20,-373897302),he=ie(he,Ee,K,w,Z[f+5],5,-701558691),w=ie(w,he,Ee,K,Z[f+10],9,38016083),K=ie(K,w,he,Ee,Z[f+15],14,-660478335),Ee=ie(Ee,K,w,he,Z[f+4],20,-405537848),he=ie(he,Ee,K,w,Z[f+9],5,568446438),w=ie(w,he,Ee,K,Z[f+14],9,-1019803690),K=ie(K,w,he,Ee,Z[f+3],14,-187363961),Ee=ie(Ee,K,w,he,Z[f+8],20,1163531501),he=ie(he,Ee,K,w,Z[f+13],5,-1444681467),w=ie(w,he,Ee,K,Z[f+2],9,-51403784),K=ie(K,w,he,Ee,Z[f+7],14,1735328473),he=Se(he,Ee=ie(Ee,K,w,he,Z[f+12],20,-1926607734),K,w,Z[f+5],4,-378558),w=Se(w,he,Ee,K,Z[f+8],11,-2022574463),K=Se(K,w,he,Ee,Z[f+11],16,1839030562),Ee=Se(Ee,K,w,he,Z[f+14],23,-35309556),he=Se(he,Ee,K,w,Z[f+1],4,-1530992060),w=Se(w,he,Ee,K,Z[f+4],11,1272893353),K=Se(K,w,he,Ee,Z[f+7],16,-155497632),Ee=Se(Ee,K,w,he,Z[f+10],23,-1094730640),he=Se(he,Ee,K,w,Z[f+13],4,681279174),w=Se(w,he,Ee,K,Z[f],11,-358537222),K=Se(K,w,he,Ee,Z[f+3],16,-722521979),Ee=Se(Ee,K,w,he,Z[f+6],23,76029189),he=Se(he,Ee,K,w,Z[f+9],4,-640364487),w=Se(w,he,Ee,K,Z[f+12],11,-421815835),K=Se(K,w,he,Ee,Z[f+15],16,530742520),he=te(he,Ee=Se(Ee,K,w,he,Z[f+2],23,-995338651),K,w,Z[f],6,-198630844),w=te(w,he,Ee,K,Z[f+7],10,1126891415),K=te(K,w,he,Ee,Z[f+14],15,-1416354905),Ee=te(Ee,K,w,he,Z[f+5],21,-57434055),he=te(he,Ee,K,w,Z[f+12],6,1700485571),w=te(w,he,Ee,K,Z[f+3],10,-1894986606),K=te(K,w,he,Ee,Z[f+10],15,-1051523),Ee=te(Ee,K,w,he,Z[f+1],21,-2054922799),he=te(he,Ee,K,w,Z[f+8],6,1873313359),w=te(w,he,Ee,K,Z[f+15],10,-30611744),K=te(K,w,he,Ee,Z[f+6],15,-1560198380),Ee=te(Ee,K,w,he,Z[f+13],21,1309151649),he=te(he,Ee,K,w,Z[f+4],6,-145523070),w=te(w,he,Ee,K,Z[f+11],10,-1120210379),K=te(K,w,he,Ee,Z[f+2],15,718787259),Ee=te(Ee,K,w,he,Z[f+9],21,-343485551),he=F(he,A),Ee=F(Ee,I),K=F(K,ne),w=F(w,me)}return[he,Ee,K,w]}(function v(Z){if(0===Z.length)return[];for(var de=8*Z.length,he=new Uint32Array(p(de)),Ee=0;Ee<de;Ee+=8)he[Ee>>5]|=(255&Z[Ee/8])<<Ee%32;return he}(Z),8*Z.length))}),oe=function $(Z,de,he){var Ee=(Z=Z||{}).random||(Z.rng||m)();if(Ee[6]=15&Ee[6]|64,Ee[8]=63&Ee[8]|128,de){he=he||0;for(var K=0;K<16;++K)de[he+K]=Ee[K];return de}return h(Ee)};function ee(Z,de,he,Ee){switch(Z){case 0:return de&he^~de&Ee;case 1:case 3:return de^he^Ee;case 2:return de&he^de&Ee^he&Ee}}function L(Z,de){return Z<<de|Z>>>32-de}const U=j("v5",80,function S(Z){var de=[1518500249,1859775393,2400959708,3395469782],he=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof Z){var Ee=unescape(encodeURIComponent(Z));Z=[];for(var K=0;K<Ee.length;++K)Z.push(Ee.charCodeAt(K))}else Array.isArray(Z)||(Z=Array.prototype.slice.call(Z));Z.push(128);for(var f=Math.ceil((Z.length/4+2)/16),A=new Array(f),I=0;I<f;++I){for(var ne=new Uint32Array(16),me=0;me<16;++me)ne[me]=Z[64*I+4*me]<<24|Z[64*I+4*me+1]<<16|Z[64*I+4*me+2]<<8|Z[64*I+4*me+3];A[I]=ne}A[f-1][14]=8*(Z.length-1)/Math.pow(2,32),A[f-1][14]=Math.floor(A[f-1][14]),A[f-1][15]=8*(Z.length-1)&4294967295;for(var Re=0;Re<f;++Re){for(var Pe=new Uint32Array(80),ae=0;ae<16;++ae)Pe[ae]=A[Re][ae];for(var ye=16;ye<80;++ye)Pe[ye]=L(Pe[ye-3]^Pe[ye-8]^Pe[ye-14]^Pe[ye-16],1);for(var _e=he[0],Ie=he[1],Me=he[2],je=he[3],Ke=he[4],qe=0;qe<80;++qe){var at=Math.floor(qe/20),yt=L(_e,5)+ee(at,Ie,Me,je)+Ke+de[at]+Pe[qe]>>>0;Ke=je,je=Me,Me=L(Ie,30)>>>0,Ie=_e,_e=yt}he[0]=he[0]+_e>>>0,he[1]=he[1]+Ie>>>0,he[2]=he[2]+Me>>>0,he[3]=he[3]+je>>>0,he[4]=he[4]+Ke>>>0}return[he[0]>>24&255,he[0]>>16&255,he[0]>>8&255,255&he[0],he[1]>>24&255,he[1]>>16&255,he[1]>>8&255,255&he[1],he[2]>>24&255,he[2]>>16&255,he[2]>>8&255,255&he[2],he[3]>>24&255,he[3]>>16&255,he[3]>>8&255,255&he[3],he[4]>>24&255,he[4]>>16&255,he[4]>>8&255,255&he[4]]}),re="00000000-0000-0000-0000-000000000000",be=function ce(Z){if(!o(Z))throw TypeError("Invalid UUID");return parseInt(Z.substr(14,1),16)}},33167:(le,k,y)=>{"use strict";var a=y(90564),O=y(26415),m=y(82375),r=m("Object.prototype.toString"),n=y(87035)(),o=typeof globalThis>"u"?global:globalThis,l=O(),e=m("String.prototype.slice"),i={},h=y(32520),d=Object.getPrototypeOf;n&&h&&d&&a(l,function(T){if("function"==typeof o[T]){var M=new o[T];if(Symbol.toStringTag in M){var R=d(M),x=h(R,Symbol.toStringTag);if(!x){var P=d(R);x=h(P,Symbol.toStringTag)}i[T]=x.get}}});var b=y(51852);le.exports=function(M){return!!b(M)&&(n&&Symbol.toStringTag in M?function(M){var R=!1;return a(i,function(x,P){if(!R)try{var W=x.call(M);W===P&&(R=W)}catch{}}),R}(M):e(r(M),8,-1))}},20274:(le,k,y)=>{le.exports=y(65807).Observable},65807:(le,k)=>{"use strict";function a(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function O(E,C){for(var p=0;p<C.length;p++){var _=C[p];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(E,_.key,_)}}function m(E,C,p){return C&&O(E.prototype,C),p&&O(E,p),E}k.Observable=void 0;var r=function(){return"function"==typeof Symbol},n=function(E){return r()&&Boolean(Symbol[E])},o=function(E){return n(E)?Symbol[E]:"@@"+E};r()&&!n("observable")&&(Symbol.observable=Symbol("observable"));var l=o("iterator"),e=o("observable"),i=o("species");function h(E,C){var p=E[C];if(null!=p){if("function"!=typeof p)throw new TypeError(p+" is not a function");return p}}function d(E){var C=E.constructor;return void 0!==C&&null===(C=C[i])&&(C=void 0),void 0!==C?C:j}function b(E){b.log?b.log(E):setTimeout(function(){throw E})}function T(E){Promise.resolve().then(function(){try{E()}catch(C){b(C)}})}function M(E){var C=E._cleanup;if(void 0!==C&&(E._cleanup=void 0,C))try{if("function"==typeof C)C();else{var p=h(C,"unsubscribe");p&&p.call(C)}}catch(_){b(_)}}function R(E){E._observer=void 0,E._queue=void 0,E._state="closed"}function P(E,C,p){E._state="running";var _=E._observer;try{var v=h(_,C);switch(C){case"next":v&&v.call(_,p);break;case"error":if(R(E),!v)throw p;v.call(_,p);break;case"complete":R(E),v&&v.call(_)}}catch(F){b(F)}"closed"===E._state?M(E):"running"===E._state&&(E._state="ready")}function W(E,C,p){if("closed"!==E._state){if("buffering"===E._state)return void E._queue.push({type:C,value:p});if("ready"!==E._state)return E._state="buffering",E._queue=[{type:C,value:p}],void T(function(){return function x(E){var C=E._queue;if(C){E._queue=void 0,E._state="ready";for(var p=0;p<C.length&&(P(E,C[p].type,C[p].value),"closed"!==E._state);++p);}}(E)});P(E,C,p)}}var V=function(){function E(C,p){a(this,E),this._cleanup=void 0,this._observer=C,this._queue=void 0,this._state="initializing";var _=new Y(this);try{this._cleanup=p.call(void 0,_)}catch(v){_.error(v)}"initializing"===this._state&&(this._state="ready")}return m(E,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(R(this),M(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),E}(),Y=function(){function E(C){a(this,E),this._subscription=C}return m(E,[{key:"next",value:function(p){W(this._subscription,"next",p)}},{key:"error",value:function(p){W(this._subscription,"error",p)}},{key:"complete",value:function(){W(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),E}(),j=function(){function E(C){if(a(this,E),!(this instanceof E))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof C)throw new TypeError("Observable initializer must be a function");this._subscriber=C}return m(E,[{key:"subscribe",value:function(p){return("object"!=typeof p||null===p)&&(p={next:p,error:arguments[1],complete:arguments[2]}),new V(p,this._subscriber)}},{key:"forEach",value:function(p){var _=this;return new Promise(function(v,F){if("function"==typeof p)var Q=_.subscribe({next:function(J){try{p(J,q)}catch(ie){F(ie),Q.unsubscribe()}},error:F,complete:v});else F(new TypeError(p+" is not a function"));function q(){Q.unsubscribe(),v()}})}},{key:"map",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");return new(d(this))(function(F){return _.subscribe({next:function(q){try{q=p(q)}catch(Q){return F.error(Q)}F.next(q)},error:function(q){F.error(q)},complete:function(){F.complete()}})})}},{key:"filter",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");return new(d(this))(function(F){return _.subscribe({next:function(q){try{if(!p(q))return}catch(Q){return F.error(Q)}F.next(q)},error:function(q){F.error(q)},complete:function(){F.complete()}})})}},{key:"reduce",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");var v=d(this),F=arguments.length>1,q=!1,J=arguments[1];return new v(function(ie){return _.subscribe({next:function(Se){var te=!q;if(q=!0,!te||F)try{J=p(J,Se)}catch(ge){return ie.error(ge)}else J=Se},error:function(Se){ie.error(Se)},complete:function(){if(!q&&!F)return ie.error(new TypeError("Cannot reduce an empty sequence"));ie.next(J),ie.complete()}})})}},{key:"concat",value:function(){for(var p=this,_=arguments.length,v=new Array(_),F=0;F<_;F++)v[F]=arguments[F];var q=d(this);return new q(function(Q){var J,ie=0;return function Se(te){J=te.subscribe({next:function(ge){Q.next(ge)},error:function(ge){Q.error(ge)},complete:function(){ie===v.length?(J=void 0,Q.complete()):Se(q.from(v[ie++]))}})}(p),function(){J&&(J.unsubscribe(),J=void 0)}})}},{key:"flatMap",value:function(p){var _=this;if("function"!=typeof p)throw new TypeError(p+" is not a function");var v=d(this);return new v(function(F){var q=[],Q=_.subscribe({next:function(ie){if(p)try{ie=p(ie)}catch(te){return F.error(te)}var Se=v.from(ie).subscribe({next:function(te){F.next(te)},error:function(te){F.error(te)},complete:function(){var te=q.indexOf(Se);te>=0&&q.splice(te,1),J()}});q.push(Se)},error:function(ie){F.error(ie)},complete:function(){J()}});function J(){Q.closed&&0===q.length&&F.complete()}return function(){q.forEach(function(ie){return ie.unsubscribe()}),Q.unsubscribe()}})}},{key:e,value:function(){return this}}],[{key:"from",value:function(p){var _="function"==typeof this?this:E;if(null==p)throw new TypeError(p+" is not an object");var v=h(p,e);if(v){var F=v.call(p);if(Object(F)!==F)throw new TypeError(F+" is not an object");return function g(E){return E instanceof j}(F)&&F.constructor===_?F:new _(function(q){return F.subscribe(q)})}if(n("iterator")&&(v=h(p,l)))return new _(function(q){T(function(){if(!q.closed){var Q=!0,J=!1,ie=void 0;try{for(var te,Se=v.call(p)[Symbol.iterator]();!(Q=(te=Se.next()).done);Q=!0)if(q.next(te.value),q.closed)return}catch(ue){J=!0,ie=ue}finally{try{!Q&&null!=Se.return&&Se.return()}finally{if(J)throw ie}}q.complete()}})});if(Array.isArray(p))return new _(function(q){T(function(){if(!q.closed){for(var Q=0;Q<p.length;++Q)if(q.next(p[Q]),q.closed)return;q.complete()}})});throw new TypeError(p+" is not observable")}},{key:"of",value:function(){for(var p=arguments.length,_=new Array(p),v=0;v<p;v++)_[v]=arguments[v];return new("function"==typeof this?this:E)(function(q){T(function(){if(!q.closed){for(var Q=0;Q<_.length;++Q)if(q.next(_[Q]),q.closed)return;q.complete()}})})}},{key:i,get:function(){return this}}]),E}();k.Observable=j,r()&&Object.defineProperty(j,Symbol("extensions"),{value:{symbol:e,hostReportError:b},configurable:!0})},73625:(le,k,y)=>{"use strict";y.r(k),y.d(k,{AppSyncSubscriptionProvider:()=>h});var a=y(43588),O=y(62503),m=y(20908),r=y(47420),o=y(13374),l=y(28341),e=y(82479),i=y(49767);class h extends a.q{execute(g){const b=this.connectionParams.aws_appsync_graphqlEndpoint,T=this.connectionParams.aws_appsync_region,M={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},R=o.ApolloLink.from([(0,m.W9)({url:b,region:T,auth:M}),(0,r.createSubscriptionHandshakeLink)({url:b,region:T,auth:M})]),P=new l.f({link:R,cache:new e.h}).subscribe({query:(0,i.Qc)(g.query),variables:g.variables});return new O.y(W=>{this.subscription=P.subscribe({next:(...V)=>W.next(...V),error:(...V)=>W.error(...V),complete:()=>W.complete()})})}close(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},73914:function(le,k,y){"use strict";var P,a=this&&this.__extends||(P=function(W,V){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,j){Y.__proto__=j}||function(Y,j){for(var E in j)j.hasOwnProperty(E)&&(Y[E]=j[E])})(W,V)},function(W,V){function Y(){this.constructor=W}P(W,V),W.prototype=null===V?Object.create(V):(Y.prototype=V.prototype,new Y)}),O=this&&this.__assign||function(){return O=Object.assign||function(P){for(var W,V=1,Y=arguments.length;V<Y;V++)for(var j in W=arguments[V])Object.prototype.hasOwnProperty.call(W,j)&&(P[j]=W[j]);return P},O.apply(this,arguments)},m=this&&this.__awaiter||function(P,W,V,Y){return new(V||(V=Promise))(function(E,C){function p(F){try{v(Y.next(F))}catch(q){C(q)}}function _(F){try{v(Y.throw(F))}catch(q){C(q)}}function v(F){F.done?E(F.value):function j(E){return E instanceof V?E:new V(function(C){C(E)})}(F.value).then(p,_)}v((Y=Y.apply(P,W||[])).next())})},r=this&&this.__generator||function(P,W){var Y,j,E,C,V={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return C={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(C[Symbol.iterator]=function(){return this}),C;function p(v){return function(F){return function _(v){if(Y)throw new TypeError("Generator is already executing.");for(;V;)try{if(Y=1,j&&(E=2&v[0]?j.return:v[0]?j.throw||((E=j.return)&&E.call(j),0):j.next)&&!(E=E.call(j,v[1])).done)return E;switch(j=0,E&&(v=[2&v[0],E.value]),v[0]){case 0:case 1:E=v;break;case 4:return V.label++,{value:v[1],done:!1};case 5:V.label++,j=v[1],v=[0];continue;case 7:v=V.ops.pop(),V.trys.pop();continue;default:if(!(E=(E=V.trys).length>0&&E[E.length-1])&&(6===v[0]||2===v[0])){V=0;continue}if(3===v[0]&&(!E||v[1]>E[0]&&v[1]<E[3])){V.label=v[1];break}if(6===v[0]&&V.label<E[1]){V.label=E[1],E=v;break}if(E&&V.label<E[2]){V.label=E[2],V.ops.push(v);break}E[2]&&V.ops.pop(),V.trys.pop();continue}v=W.call(P,V)}catch(F){v=[6,F],j=0}finally{Y=E=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,F])}}};Object.defineProperty(k,"__esModule",{value:!0});var g,n=y(79418),o=y(94140),l=y(84871),e=y(87317),i=y(96522),h=y(44226);k.USER_AGENT_HEADER="x-amz-user-agent",k.USER_AGENT="aws-amplify/"+h.version+(i.userAgent&&" ")+i.userAgent,function(P){P.NONE="NONE",P.API_KEY="API_KEY",P.AWS_IAM="AWS_IAM",P.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",P.OPENID_CONNECT="OPENID_CONNECT"}(g=k.AUTH_TYPE||(k.AUTH_TYPE={}));var b=function(P){function W(V){var Y=P.call(this)||this;return Y.link=k.authLink(V),Y}return a(W,P),W.prototype.request=function(V,Y){return this.link.request(V,Y)},W}(n.ApolloLink);k.AuthLink=b;var T=function(P,W,V){var Y=void 0===P?{header:"",value:""}:P,j=Y.header,E=Y.value;return m(void 0,void 0,void 0,function(){var C,p,v,F,q;return r(this,function(Q){switch(Q.label){case 0:return C=W.getContext(),p=O(O({},C.headers),((F={})[k.USER_AGENT_HEADER]=k.USER_AGENT,F)),j&&E?"function"!=typeof E?[3,2]:[4,E.call(void 0)]:[3,5];case 1:return v=Q.sent(),[3,4];case 2:return[4,E];case 3:v=Q.sent(),Q.label=4;case 4:p=O(((q={})[j]=v,q),p),Q.label=5;case 5:return W.setContext(O(O({},C),{headers:p})),[2,V(W)]}})})};k.authLink=function(P){var W=P.url,V=P.region,Y=P.auth,j=(void 0===Y?{}:Y).type,E=P.auth;return new n.ApolloLink(function(C,p){return new n.Observable(function(_){var v,F;switch(j){case g.NONE:F=T(void 0,C,p);break;case g.AWS_IAM:var q=E.credentials;F=function(P,W,V){var Y=P.credentials,j=P.region,E=P.url;return m(void 0,void 0,void 0,function(){var C,p,_,v,F,q,Q,J,ie,Se,te,ge,ue;return r(this,function(H){switch(H.label){case 0:return C="appsync",p=W.getContext(),(_="function"==typeof Y?Y.call():Y||{})&&"function"==typeof _.getPromise?[4,_.getPromise()]:[3,2];case 1:H.sent(),H.label=2;case 2:return[4,_];case 3:return v=H.sent(),F=v.accessKeyId,q=v.secretAccessKey,Q=v.sessionToken,J=e.parse(E),ie=J.host,Se=J.path,te=O(O({},R(W,{})),{service:C,region:j,url:E,host:ie,path:Se}),ge=l.Signer.sign(te,{access_key:F,secret_key:q,session_token:Q}).headers,W.setContext(O(O({},p),{headers:O(O(O({},p.headers),ge),(ue={},ue[k.USER_AGENT_HEADER]=k.USER_AGENT,ue))})),[2,V(W)]}})})}({credentials:void 0===q?{}:q,region:V,url:W},C,p);break;case g.API_KEY:var J=E.apiKey;F=T({header:"X-Api-Key",value:void 0===J?"":J},C,p);break;case g.AMAZON_COGNITO_USER_POOLS:case g.OPENID_CONNECT:var Se=E.jwtToken;F=T({header:"Authorization",value:void 0===Se?"":Se},C,p);break;default:throw new Error("Invalid AUTH_TYPE: "+E.type)}return F.then(function(ue){v=ue.subscribe({next:_.next.bind(_),error:_.error.bind(_),complete:_.complete.bind(_)})}),function(){v&&v.unsubscribe()}})})};var R=function(P,W){var j=P.query,E={operationName:P.operationName,variables:x(P.variables),query:o.print(j)};return O(O({body:JSON.stringify(E),method:"POST"},W),{headers:O({accept:"*/*","content-type":"application/json; charset=UTF-8"},W.headers)})},x=function(P){return Object.keys(P).filter(function(W){return!W.startsWith("@@")}).reduce(function(W,V){return W[V]=P[V],W},{})}},20908:(le,k,y)=>{"use strict";var O=y(73914);k.W9=function(r){return new O.AuthLink({url:r.url,region:r.region,auth:r.auth})},y(84871)},96522:(le,k)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.userAgent=""},84871:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),function a(O){for(var m in O)k.hasOwnProperty(m)||(k[m]=O[m])}(y(90758))},90758:(le,k,y)=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0}),global.Buffer=global.Buffer||y(9333).lW;var a=y(87317),O=y(67811).util.crypto,m=function(R,x,P){return void 0===P&&(P=""),O.lib.createHmac("sha256",R).update(x,"utf8").digest(P)},r=function(R){return R=R||"",O.createHash("sha256").update(R,"utf8").digest("hex")},n=function(R){return R&&0!==Object.keys(R).length?Object.keys(R).map(function(x){return{key:x.toLowerCase(),value:R[x]?R[x].trim().replace(/\s+/g," "):""}}).sort(function(x,P){return x.key<P.key?-1:1}).map(function(x){return x.key+":"+x.value}).join("\n")+"\n":""},o=function(R){return Object.keys(R).map(function(x){return x.toLowerCase()}).sort().join(";")},T=function(R,x,P){void 0===P&&(P=null),R.headers=R.headers||{};var V=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),Y=V.substr(0,8),j="AWS4-HMAC-SHA256",E=a.parse(R.url);R.headers.host=E.host,R.headers["x-amz-date"]=V,x.session_token&&(R.headers["X-Amz-Security-Token"]=x.session_token);var C=function(R){var x=a.parse(R.url);return[R.method||"/",x.path,x.query,n(R.headers),o(R.headers),r(R.body)].join("\n")}(R);P=P||function(R){var V=(a.parse(R.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===V[1]&&(V=V.reverse()),{service:R.service||V[0],region:R.region||V[1]}}(R);var p=function(R,x,P){return[R,x,P,"aws4_request"].join("/")}(Y,P.region,P.service),_=function(R,x,P,W){return[R,P,W,r(x)].join("\n")}(j,C,V,p),v=function(R,x,P){void 0===R&&(R="");var V=m("AWS4"+R,x),Y=m(V,P.region),j=m(Y,P.service);return m(j,"aws4_request")}(x.secret_key,Y,P),F=function(R,x){return m(R,x,"hex")}(v,_),q=function(R,x,P,W,V){return void 0===x&&(x=""),[R+" Credential="+x+"/"+P,"SignedHeaders="+W,"Signature="+V].join(", ")}(j,x.access_key,p,o(R.headers),F);return R.headers.Authorization=q,R},M=function(){function R(){}return R.sign=T,R}();k.Signer=M,k.default=M},60162:(le,k,y)=>{"use strict";y.d(k,{Jh:()=>i,ZT:()=>O,_T:()=>r,mG:()=>e,pi:()=>m,pr:()=>T});var a=function(j,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,p){C.__proto__=p}||function(C,p){for(var _ in p)p.hasOwnProperty(_)&&(C[_]=p[_])})(j,E)};function O(j,E){function C(){this.constructor=j}a(j,E),j.prototype=null===E?Object.create(E):(C.prototype=E.prototype,new C)}var m=function(){return m=Object.assign||function(E){for(var C,p=1,_=arguments.length;p<_;p++)for(var v in C=arguments[p])Object.prototype.hasOwnProperty.call(C,v)&&(E[v]=C[v]);return E},m.apply(this,arguments)};function r(j,E){var C={};for(var p in j)Object.prototype.hasOwnProperty.call(j,p)&&E.indexOf(p)<0&&(C[p]=j[p]);if(null!=j&&"function"==typeof Object.getOwnPropertySymbols){var _=0;for(p=Object.getOwnPropertySymbols(j);_<p.length;_++)E.indexOf(p[_])<0&&Object.prototype.propertyIsEnumerable.call(j,p[_])&&(C[p[_]]=j[p[_]])}return C}function e(j,E,C,p){return new(C||(C=Promise))(function(_,v){function F(J){try{Q(p.next(J))}catch(ie){v(ie)}}function q(J){try{Q(p.throw(J))}catch(ie){v(ie)}}function Q(J){J.done?_(J.value):new C(function(ie){ie(J.value)}).then(F,q)}Q((p=p.apply(j,E||[])).next())})}function i(j,E){var p,_,v,F,C={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return F={next:q(0),throw:q(1),return:q(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function q(J){return function(ie){return function Q(J){if(p)throw new TypeError("Generator is already executing.");for(;C;)try{if(p=1,_&&(v=2&J[0]?_.return:J[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,J[1])).done)return v;switch(_=0,v&&(J=[2&J[0],v.value]),J[0]){case 0:case 1:v=J;break;case 4:return C.label++,{value:J[1],done:!1};case 5:C.label++,_=J[1],J=[0];continue;case 7:J=C.ops.pop(),C.trys.pop();continue;default:if(!(v=(v=C.trys).length>0&&v[v.length-1])&&(6===J[0]||2===J[0])){C=0;continue}if(3===J[0]&&(!v||J[1]>v[0]&&J[1]<v[3])){C.label=J[1];break}if(6===J[0]&&C.label<v[1]){C.label=v[1],v=J;break}if(v&&C.label<v[2]){C.label=v[2],C.ops.push(J);break}v[2]&&C.ops.pop(),C.trys.pop();continue}J=E.call(j,C)}catch(ie){J=[6,ie],_=0}finally{p=v=0}if(5&J[0])throw J[1];return{value:J[0]?J[1]:void 0,done:!0}}([J,ie])}}}function T(){for(var j=0,E=0,C=arguments.length;E<C;E++)j+=arguments[E].length;var p=Array(j),_=0;for(E=0;E<C;E++)for(var v=arguments[E],F=0,q=v.length;F<q;F++,_++)p[_]=v[F];return p}},21408:(le,k,y)=>{"use strict";y.r(k),y.d(k,{__assign:()=>m,__asyncDelegator:()=>P,__asyncGenerator:()=>x,__asyncValues:()=>W,__await:()=>R,__awaiter:()=>e,__classPrivateFieldGet:()=>E,__classPrivateFieldSet:()=>C,__createBinding:()=>h,__decorate:()=>n,__exportStar:()=>d,__extends:()=>O,__generator:()=>i,__importDefault:()=>j,__importStar:()=>Y,__makeTemplateObject:()=>V,__metadata:()=>l,__param:()=>o,__read:()=>b,__rest:()=>r,__spread:()=>T,__spreadArrays:()=>M,__values:()=>g});var a=function(p,_){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,F){v.__proto__=F}||function(v,F){for(var q in F)F.hasOwnProperty(q)&&(v[q]=F[q])})(p,_)};function O(p,_){function v(){this.constructor=p}a(p,_),p.prototype=null===_?Object.create(_):(v.prototype=_.prototype,new v)}var m=function(){return m=Object.assign||function(_){for(var v,F=1,q=arguments.length;F<q;F++)for(var Q in v=arguments[F])Object.prototype.hasOwnProperty.call(v,Q)&&(_[Q]=v[Q]);return _},m.apply(this,arguments)};function r(p,_){var v={};for(var F in p)Object.prototype.hasOwnProperty.call(p,F)&&_.indexOf(F)<0&&(v[F]=p[F]);if(null!=p&&"function"==typeof Object.getOwnPropertySymbols){var q=0;for(F=Object.getOwnPropertySymbols(p);q<F.length;q++)_.indexOf(F[q])<0&&Object.prototype.propertyIsEnumerable.call(p,F[q])&&(v[F[q]]=p[F[q]])}return v}function n(p,_,v,F){var J,q=arguments.length,Q=q<3?_:null===F?F=Object.getOwnPropertyDescriptor(_,v):F;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Q=Reflect.decorate(p,_,v,F);else for(var ie=p.length-1;ie>=0;ie--)(J=p[ie])&&(Q=(q<3?J(Q):q>3?J(_,v,Q):J(_,v))||Q);return q>3&&Q&&Object.defineProperty(_,v,Q),Q}function o(p,_){return function(v,F){_(v,F,p)}}function l(p,_){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(p,_)}function e(p,_,v,F){return new(v||(v=Promise))(function(Q,J){function ie(ge){try{te(F.next(ge))}catch(ue){J(ue)}}function Se(ge){try{te(F.throw(ge))}catch(ue){J(ue)}}function te(ge){ge.done?Q(ge.value):function q(Q){return Q instanceof v?Q:new v(function(J){J(Q)})}(ge.value).then(ie,Se)}te((F=F.apply(p,_||[])).next())})}function i(p,_){var F,q,Q,J,v={label:0,sent:function(){if(1&Q[0])throw Q[1];return Q[1]},trys:[],ops:[]};return J={next:ie(0),throw:ie(1),return:ie(2)},"function"==typeof Symbol&&(J[Symbol.iterator]=function(){return this}),J;function ie(te){return function(ge){return function Se(te){if(F)throw new TypeError("Generator is already executing.");for(;v;)try{if(F=1,q&&(Q=2&te[0]?q.return:te[0]?q.throw||((Q=q.return)&&Q.call(q),0):q.next)&&!(Q=Q.call(q,te[1])).done)return Q;switch(q=0,Q&&(te=[2&te[0],Q.value]),te[0]){case 0:case 1:Q=te;break;case 4:return v.label++,{value:te[1],done:!1};case 5:v.label++,q=te[1],te=[0];continue;case 7:te=v.ops.pop(),v.trys.pop();continue;default:if(!(Q=(Q=v.trys).length>0&&Q[Q.length-1])&&(6===te[0]||2===te[0])){v=0;continue}if(3===te[0]&&(!Q||te[1]>Q[0]&&te[1]<Q[3])){v.label=te[1];break}if(6===te[0]&&v.label<Q[1]){v.label=Q[1],Q=te;break}if(Q&&v.label<Q[2]){v.label=Q[2],v.ops.push(te);break}Q[2]&&v.ops.pop(),v.trys.pop();continue}te=_.call(p,v)}catch(ge){te=[6,ge],q=0}finally{F=Q=0}if(5&te[0])throw te[1];return{value:te[0]?te[1]:void 0,done:!0}}([te,ge])}}}function h(p,_,v,F){void 0===F&&(F=v),p[F]=_[v]}function d(p,_){for(var v in p)"default"!==v&&!_.hasOwnProperty(v)&&(_[v]=p[v])}function g(p){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&p[_],F=0;if(v)return v.call(p);if(p&&"number"==typeof p.length)return{next:function(){return p&&F>=p.length&&(p=void 0),{value:p&&p[F++],done:!p}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(p,_){var v="function"==typeof Symbol&&p[Symbol.iterator];if(!v)return p;var q,J,F=v.call(p),Q=[];try{for(;(void 0===_||_-- >0)&&!(q=F.next()).done;)Q.push(q.value)}catch(ie){J={error:ie}}finally{try{q&&!q.done&&(v=F.return)&&v.call(F)}finally{if(J)throw J.error}}return Q}function T(){for(var p=[],_=0;_<arguments.length;_++)p=p.concat(b(arguments[_]));return p}function M(){for(var p=0,_=0,v=arguments.length;_<v;_++)p+=arguments[_].length;var F=Array(p),q=0;for(_=0;_<v;_++)for(var Q=arguments[_],J=0,ie=Q.length;J<ie;J++,q++)F[q]=Q[J];return F}function R(p){return this instanceof R?(this.v=p,this):new R(p)}function x(p,_,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,F=v.apply(p,_||[]),Q=[];return q={},J("next"),J("throw"),J("return"),q[Symbol.asyncIterator]=function(){return this},q;function J(H){F[H]&&(q[H]=function($){return new Promise(function(oe,ee){Q.push([H,$,oe,ee])>1||ie(H,$)})})}function ie(H,$){try{!function Se(H){H.value instanceof R?Promise.resolve(H.value.v).then(te,ge):ue(Q[0][2],H)}(F[H]($))}catch(oe){ue(Q[0][3],oe)}}function te(H){ie("next",H)}function ge(H){ie("throw",H)}function ue(H,$){H($),Q.shift(),Q.length&&ie(Q[0][0],Q[0][1])}}function P(p){var _,v;return _={},F("next"),F("throw",function(q){throw q}),F("return"),_[Symbol.iterator]=function(){return this},_;function F(q,Q){_[q]=p[q]?function(J){return(v=!v)?{value:R(p[q](J)),done:"return"===q}:Q?Q(J):J}:Q}}function W(p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,_=p[Symbol.asyncIterator];return _?_.call(p):(p=g(p),v={},F("next"),F("throw"),F("return"),v[Symbol.asyncIterator]=function(){return this},v);function F(Q){v[Q]=p[Q]&&function(J){return new Promise(function(ie,Se){!function q(Q,J,ie,Se){Promise.resolve(Se).then(function(te){Q({value:te,done:ie})},J)}(ie,Se,(J=p[Q](J)).done,J.value)})}}}function V(p,_){return Object.defineProperty?Object.defineProperty(p,"raw",{value:_}):p.raw=_,p}function Y(p){if(p&&p.__esModule)return p;var _={};if(null!=p)for(var v in p)Object.hasOwnProperty.call(p,v)&&(_[v]=p[v]);return _.default=p,_}function j(p){return p&&p.__esModule?p:{default:p}}function E(p,_){if(!_.has(p))throw new TypeError("attempted to get private field on non-instance");return _.get(p)}function C(p,_,v){if(!_.has(p))throw new TypeError("attempted to set private field on non-instance");return _.set(p,v),v}},47310:()=>{},26415:le=>{"use strict";var k=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],y=typeof globalThis>"u"?global:globalThis;le.exports=function(){for(var O=[],m=0;m<k.length;m++)"function"==typeof y[k[m]]&&(O[O.length]=k[m]);return O}},57829:(le,k,y)=>{"use strict";var O=y(49102)("%Object.getOwnPropertyDescriptor%",!0);if(O)try{O([],"length")}catch{O=null}le.exports=O},32520:(le,k,y)=>{"use strict";var O=y(49102)("%Object.getOwnPropertyDescriptor%",!0);if(O)try{O([],"length")}catch{O=null}le.exports=O},52462:(le,k,y)=>{"use strict";y.r(k),y.d(k,{ApolloCache:()=>vi,ApolloClient:()=>ma,ApolloError:()=>rr,ApolloLink:()=>gt,Cache:()=>Dn,HttpLink:()=>qn,InMemoryCache:()=>Ia,MissingFieldError:()=>Mn,NetworkStatus:()=>rt,Observable:()=>nt,ObservableQuery:()=>Zr,checkFetcher:()=>Oe,concat:()=>ka,createHttpLink:()=>Kn,createSignalIfSupported:()=>ft,defaultDataIdFromObject:()=>mn,defaultPrinter:()=>Ne,disableExperimentalFragmentVariables:()=>Fr.J9,disableFragmentWarnings:()=>Fr._t,empty:()=>Pa,enableExperimentalFragmentVariables:()=>Fr.wO,execute:()=>$t,fallbackHttpConfig:()=>Ge,from:()=>Da,fromError:()=>Xt,fromPromise:()=>La,gql:()=>Fr.Ps,isApolloError:()=>ai,isReference:()=>et,makeReference:()=>It,makeVar:()=>li,mergeOptions:()=>en,parseAndCheckHttpResponse:()=>pe,resetCaches:()=>Fr.HW,rewriteURIForGET:()=>St,selectHttpOptionsAndBody:()=>tt,selectHttpOptionsAndBodyInternal:()=>dt,selectURI:()=>Gr,serializeFetchParameter:()=>pr,setLogVerbosity:()=>ue,split:()=>Ma,throwServerError:()=>X,toPromise:()=>Fa});var a=function(u,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var D in c)Object.prototype.hasOwnProperty.call(c,D)&&(s[D]=c[D])})(u,t)},F="Invariant Violation",q=Object.setPrototypeOf,Q=void 0===q?function(u,t){return u.__proto__=t,u}:q,J=function(u){function t(s){void 0===s&&(s=F);var c=u.call(this,"number"==typeof s?F+": "+s+" (see https://github.com/apollographql/invariant-packages)":s)||this;return c.framesToPop=1,c.name=F,Q(c,t.prototype),c}return function O(u,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=u}a(u,t),u.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}(t,u),t}(Error);function ie(u,t){if(!u)throw new J(t)}var u,Se=["debug","log","warn","error","silent"],te=Se.indexOf("log");function ge(u){return function(){if(Se.indexOf(u)>=te)return(console[u]||console.log).apply(console,arguments)}}function ue(u){var t=Se[te];return te=Math.max(0,Se.indexOf(u)),t}function $(u){try{return u()}catch{}}(u=ie||(ie={})).debug=ge("debug"),u.log=ge("log"),u.warn=ge("warn"),u.error=ge("error");const oe=$(function(){return globalThis})||$(function(){return window})||$(function(){return self})||$(function(){return global})||$(function(){return $.constructor("return this")()});var ee="__",L=[ee,ee].join("DEV");const B=function S(){try{return Boolean(__DEV__)}catch{return Object.defineProperty(oe,L,{value:"production"!==$(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),oe[L]}}();function G(u){try{return u()}catch{}}var U=G(function(){return globalThis})||G(function(){return window})||G(function(){return self})||G(function(){return global})||G(function(){return G.constructor("return this")()}),re=!1;!function ce(){U&&!G(function(){return"production"})&&!G(function(){return process})&&(Object.defineProperty(U,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),re=!0)}(),y(95173),function de(){(function be(){re&&(delete U.process,re=!1)})()}(),function he(){__DEV__?ie("boolean"==typeof B,B):ie("boolean"==typeof B,36)}();var Ee=function(u,t){return(Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var D in c)Object.prototype.hasOwnProperty.call(c,D)&&(s[D]=c[D])})(u,t)};function K(u,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function s(){this.constructor=u}Ee(u,t),u.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)}var w=function(){return w=Object.assign||function(t){for(var s,c=1,D=arguments.length;c<D;c++)for(var N in s=arguments[c])Object.prototype.hasOwnProperty.call(s,N)&&(t[N]=s[N]);return t},w.apply(this,arguments)};function f(u,t){var s={};for(var c in u)Object.prototype.hasOwnProperty.call(u,c)&&t.indexOf(c)<0&&(s[c]=u[c]);if(null!=u&&"function"==typeof Object.getOwnPropertySymbols){var D=0;for(c=Object.getOwnPropertySymbols(u);D<c.length;D++)t.indexOf(c[D])<0&&Object.prototype.propertyIsEnumerable.call(u,c[D])&&(s[c[D]]=u[c[D]])}return s}function me(u,t,s,c){return new(s||(s=Promise))(function(N,z){function se(Ae){try{ve(c.next(Ae))}catch(De){z(De)}}function we(Ae){try{ve(c.throw(Ae))}catch(De){z(De)}}function ve(Ae){Ae.done?N(Ae.value):function D(N){return N instanceof s?N:new s(function(z){z(N)})}(Ae.value).then(se,we)}ve((c=c.apply(u,t||[])).next())})}function Re(u,t){var c,D,N,z,s={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return z={next:se(0),throw:se(1),return:se(2)},"function"==typeof Symbol&&(z[Symbol.iterator]=function(){return this}),z;function se(ve){return function(Ae){return function we(ve){if(c)throw new TypeError("Generator is already executing.");for(;s;)try{if(c=1,D&&(N=2&ve[0]?D.return:ve[0]?D.throw||((N=D.return)&&N.call(D),0):D.next)&&!(N=N.call(D,ve[1])).done)return N;switch(D=0,N&&(ve=[2&ve[0],N.value]),ve[0]){case 0:case 1:N=ve;break;case 4:return s.label++,{value:ve[1],done:!1};case 5:s.label++,D=ve[1],ve=[0];continue;case 7:ve=s.ops.pop(),s.trys.pop();continue;default:if(!(N=(N=s.trys).length>0&&N[N.length-1])&&(6===ve[0]||2===ve[0])){s=0;continue}if(3===ve[0]&&(!N||ve[1]>N[0]&&ve[1]<N[3])){s.label=ve[1];break}if(6===ve[0]&&s.label<N[1]){s.label=N[1],N=ve;break}if(N&&s.label<N[2]){s.label=N[2],s.ops.push(ve);break}N[2]&&s.ops.pop(),s.trys.pop();continue}ve=t.call(u,s)}catch(Ae){ve=[6,Ae],D=0}finally{c=N=0}if(5&ve[0])throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}([ve,Ae])}}}function je(u,t,s){if(s||2===arguments.length)for(var N,c=0,D=t.length;c<D;c++)(N||!(c in t))&&(N||(N=Array.prototype.slice.call(t,0,c)),N[c]=t[c]);return u.concat(N||Array.prototype.slice.call(t))}function Bt(u,t){(null==t||t>u.length)&&(t=u.length);for(var s=0,c=new Array(t);s<t;s++)c[s]=u[s];return c}function jt(u,t){for(var s=0;s<t.length;s++){var c=t[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}function mt(u,t,s){return t&&jt(u.prototype,t),s&&jt(u,s),Object.defineProperty(u,"prototype",{writable:!1}),u}var xt=function(){return"function"==typeof Symbol},Pt=function(u){return xt()&&Boolean(Symbol[u])},Tt=function(u){return Pt(u)?Symbol[u]:"@@"+u};xt()&&!Pt("observable")&&(Symbol.observable=Symbol("observable"));var qt=Tt("iterator"),Ut=Tt("observable"),Dt=Tt("species");function ir(u,t){var s=u[t];if(null!=s){if("function"!=typeof s)throw new TypeError(s+" is not a function");return s}}function zt(u){var t=u.constructor;return void 0!==t&&null===(t=t[Dt])&&(t=void 0),void 0!==t?t:nt}function Ct(u){Ct.log?Ct.log(u):setTimeout(function(){throw u})}function ar(u){Promise.resolve().then(function(){try{u()}catch(t){Ct(t)}})}function Br(u){var t=u._cleanup;if(void 0!==t&&(u._cleanup=void 0,t))try{if("function"==typeof t)t();else{var s=ir(t,"unsubscribe");s&&s.call(t)}}catch(c){Ct(c)}}function or(u){u._observer=void 0,u._queue=void 0,u._state="closed"}function Er(u,t,s){u._state="running";var c=u._observer;try{var D=ir(c,t);switch(t){case"next":D&&D.call(c,s);break;case"error":if(or(u),!D)throw s;D.call(c,s);break;case"complete":or(u),D&&D.call(c)}}catch(N){Ct(N)}"closed"===u._state?Br(u):"running"===u._state&&(u._state="ready")}function _r(u,t,s){if("closed"!==u._state){if("buffering"===u._state)return void u._queue.push({type:t,value:s});if("ready"!==u._state)return u._state="buffering",u._queue=[{type:t,value:s}],void ar(function(){return function an(u){var t=u._queue;if(t){u._queue=void 0,u._state="ready";for(var s=0;s<t.length&&(Er(u,t[s].type,t[s].value),"closed"!==u._state);++s);}}(u)});Er(u,t,s)}}var Rt=function(){function u(s,c){this._cleanup=void 0,this._observer=s,this._queue=void 0,this._state="initializing";var D=new sr(this);try{this._cleanup=c.call(void 0,D)}catch(N){D.error(N)}"initializing"===this._state&&(this._state="ready")}return u.prototype.unsubscribe=function(){"closed"!==this._state&&(or(this),Br(this))},mt(u,[{key:"closed",get:function(){return"closed"===this._state}}]),u}(),sr=function(){function u(s){this._subscription=s}var t=u.prototype;return t.next=function(c){_r(this._subscription,"next",c)},t.error=function(c){_r(this._subscription,"error",c)},t.complete=function(){_r(this._subscription,"complete")},mt(u,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),u}(),nt=function(){function u(s){if(!(this instanceof u))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof s)throw new TypeError("Observable initializer must be a function");this._subscriber=s}var t=u.prototype;return t.subscribe=function(c){return("object"!=typeof c||null===c)&&(c={next:c,error:arguments[1],complete:arguments[2]}),new Rt(c,this._subscriber)},t.forEach=function(c){var D=this;return new Promise(function(N,z){if("function"==typeof c)var we=D.subscribe({next:function(ve){try{c(ve,se)}catch(Ae){z(Ae),we.unsubscribe()}},error:z,complete:N});else z(new TypeError(c+" is not a function"));function se(){we.unsubscribe(),N()}})},t.map=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(zt(this))(function(z){return D.subscribe({next:function(se){try{se=c(se)}catch(we){return z.error(we)}z.next(se)},error:function(se){z.error(se)},complete:function(){z.complete()}})})},t.filter=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(zt(this))(function(z){return D.subscribe({next:function(se){try{if(!c(se))return}catch(we){return z.error(we)}z.next(se)},error:function(se){z.error(se)},complete:function(){z.complete()}})})},t.reduce=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var N=zt(this),z=arguments.length>1,se=!1,ve=arguments[1];return new N(function(Ae){return D.subscribe({next:function(De){var Te=!se;if(se=!0,!Te||z)try{ve=c(ve,De)}catch(ke){return Ae.error(ke)}else ve=De},error:function(De){Ae.error(De)},complete:function(){if(!se&&!z)return Ae.error(new TypeError("Cannot reduce an empty sequence"));Ae.next(ve),Ae.complete()}})})},t.concat=function(){for(var c=this,D=arguments.length,N=new Array(D),z=0;z<D;z++)N[z]=arguments[z];var se=zt(this);return new se(function(we){var ve,Ae=0;return function De(Te){ve=Te.subscribe({next:function(ke){we.next(ke)},error:function(ke){we.error(ke)},complete:function(){Ae===N.length?(ve=void 0,we.complete()):De(se.from(N[Ae++]))}})}(c),function(){ve&&(ve.unsubscribe(),ve=void 0)}})},t.flatMap=function(c){var D=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var N=zt(this);return new N(function(z){var se=[],we=D.subscribe({next:function(Ae){if(c)try{Ae=c(Ae)}catch(Te){return z.error(Te)}var De=N.from(Ae).subscribe({next:function(Te){z.next(Te)},error:function(Te){z.error(Te)},complete:function(){var Te=se.indexOf(De);Te>=0&&se.splice(Te,1),ve()}});se.push(De)},error:function(Ae){z.error(Ae)},complete:function(){ve()}});function ve(){we.closed&&0===se.length&&z.complete()}return function(){se.forEach(function(Ae){return Ae.unsubscribe()}),we.unsubscribe()}})},t[Ut]=function(){return this},u.from=function(c){var D="function"==typeof this?this:u;if(null==c)throw new TypeError(c+" is not an object");var N=ir(c,Ut);if(N){var z=N.call(c);if(Object(z)!==z)throw new TypeError(z+" is not an object");return function Nr(u){return u instanceof nt}(z)&&z.constructor===D?z:new D(function(se){return z.subscribe(se)})}if(Pt("iterator")&&(N=ir(c,qt)))return new D(function(se){ar(function(){if(!se.closed){for(var ve,we=function Kt(u,t){var s=typeof Symbol<"u"&&u[Symbol.iterator]||u["@@iterator"];if(s)return(s=s.call(u)).next.bind(s);if(Array.isArray(u)||(s=function pt(u,t){if(u){if("string"==typeof u)return Bt(u,t);var s=Object.prototype.toString.call(u).slice(8,-1);if("Object"===s&&u.constructor&&(s=u.constructor.name),"Map"===s||"Set"===s)return Array.from(u);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Bt(u,t)}}(u))||t&&u&&"number"==typeof u.length){s&&(u=s);var c=0;return function(){return c>=u.length?{done:!0}:{done:!1,value:u[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(N.call(c));!(ve=we()).done;)if(se.next(ve.value),se.closed)return;se.complete()}})});if(Array.isArray(c))return new D(function(se){ar(function(){if(!se.closed){for(var we=0;we<c.length;++we)if(se.next(c[we]),se.closed)return;se.complete()}})});throw new TypeError(c+" is not observable")},u.of=function(){for(var c=arguments.length,D=new Array(c),N=0;N<c;N++)D[N]=arguments[N];return new("function"==typeof this?this:u)(function(se){ar(function(){if(!se.closed){for(var we=0;we<D.length;++we)if(se.next(D[we]),se.closed)return;se.complete()}})})},mt(u,null,[{key:Dt,get:function(){return this}}]),u}();function ot(u){return null!==u&&"object"==typeof u}function sn(u,t){var s=t,c=[];return u.definitions.forEach(function(N){if("OperationDefinition"===N.kind)throw __DEV__?new J("Found a ".concat(N.operation," operation").concat(N.name?" named '".concat(N.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new J(41);"FragmentDefinition"===N.kind&&c.push(N)}),typeof s>"u"&&(__DEV__?ie(1===c.length,"Found ".concat(c.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):ie(1===c.length,42),s=c[0].name.value),w(w({},u),{definitions:je([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:s}}]}}],u.definitions,!0)})}function Ht(u){void 0===u&&(u=[]);var t={};return u.forEach(function(s){t[s.name.value]=s}),t}function ur(u,t){switch(u.kind){case"InlineFragment":return u;case"FragmentSpread":var s=t&&t[u.name.value];return __DEV__?ie(s,"No fragment named ".concat(u.name.value,".")):ie(s,43),s;default:return null}}function It(u){return{__ref:String(u)}}function et(u){return Boolean(u&&"object"==typeof u&&"string"==typeof u.__ref)}function Mt(u,t,s,c){if(function Ur(u){return"IntValue"===u.kind}(s)||function cr(u){return"FloatValue"===u.kind}(s))u[t.value]=Number(s.value);else if(function cn(u){return"BooleanValue"===u.kind}(s)||function jr(u){return"StringValue"===u.kind}(s))u[t.value]=s.value;else if(function Sr(u){return"ObjectValue"===u.kind}(s)){var D={};s.fields.map(function(z){return Mt(D,z.name,z.value,c)}),u[t.value]=D}else if(function wr(u){return"Variable"===u.kind}(s))u[t.value]=(c||{})[s.name.value];else if(function fn(u){return"ListValue"===u.kind}(s))u[t.value]=s.values.map(function(z){var se={};return Mt(se,t,z,c),se[t.value]});else if(function ln(u){return"EnumValue"===u.kind}(s))u[t.value]=s.value;else{if(!function hn(u){return"NullValue"===u.kind}(s))throw __DEV__?new J('The inline argument "'.concat(t.value,'" of kind "').concat(s.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new J(52);u[t.value]=null}}xt()&&Object.defineProperty(nt,Symbol("extensions"),{value:{symbol:Ut,hostReportError:Ct},configurable:!0});var pn=["connection","include","skip","client","rest","export"],Or=Object.assign(function(u,t,s){if(t&&s&&s.connection&&s.connection.key){if(s.connection.filter&&s.connection.filter.length>0){var c=s.connection.filter?s.connection.filter:[];c.sort();var D={};return c.forEach(function(se){D[se]=t[se]}),"".concat(s.connection.key,"(").concat(Vt(D),")")}return s.connection.key}var N=u;if(t){var z=Vt(t);N+="(".concat(z,")")}return s&&Object.keys(s).forEach(function(se){-1===pn.indexOf(se)&&(s[se]&&Object.keys(s[se]).length?N+="@".concat(se,"(").concat(Vt(s[se]),")"):N+="@".concat(se))}),N},{setStringify:function(u){var t=Vt;return Vt=u,t}}),Vt=function(t){return JSON.stringify(t,Wr)};function Wr(u,t){return ot(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(s,c){return s[c]=t[c],s},{})),t}function Gt(u,t){if(u.arguments&&u.arguments.length){var s={};return u.arguments.forEach(function(c){return Mt(s,c.name,c.value,t)}),s}return null}function kt(u){return u.alias?u.alias.value:u.name.value}function Ar(u,t,s){if("string"==typeof u.__typename)return u.__typename;for(var c=0,D=t.selections;c<D.length;c++){var N=D[c];if(At(N)){if("__typename"===N.name.value)return u[kt(N)]}else{var z=Ar(u,ur(N,s).selectionSet,s);if("string"==typeof z)return z}}}function At(u){return"Field"===u.kind}function Qr(u){return"InlineFragment"===u.kind}function fr(u){__DEV__?ie(u&&"Document"===u.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ie(u&&"Document"===u.kind,44);var t=u.definitions.filter(function(s){return"FragmentDefinition"!==s.kind}).map(function(s){if("OperationDefinition"!==s.kind)throw __DEV__?new J('Schema type definitions not allowed in queries. Found: "'.concat(s.kind,'"')):new J(45);return s});return __DEV__?ie(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):ie(t.length<=1,46),u}function Ft(u){return fr(u),u.definitions.filter(function(t){return"OperationDefinition"===t.kind})[0]}function lr(u){return u.definitions.filter(function(t){return"OperationDefinition"===t.kind&&t.name}).map(function(t){return t.name.value})[0]||null}function Lt(u){return u.definitions.filter(function(t){return"FragmentDefinition"===t.kind})}function xr(u){var t=Ft(u);return __DEV__?ie(t&&"query"===t.operation,"Must contain a query definition."):ie(t&&"query"===t.operation,47),t}function Yt(u){fr(u);for(var t,s=0,c=u.definitions;s<c.length;s++){var D=c[s];if("OperationDefinition"===D.kind){var N=D.operation;if("query"===N||"mutation"===N||"subscription"===N)return D}"FragmentDefinition"===D.kind&&!t&&(t=D)}if(t)return t;throw __DEV__?new J("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new J(51)}function Tr(u){var t=Object.create(null),s=u&&u.variableDefinitions;return s&&s.length&&s.forEach(function(c){c.defaultValue&&Mt(t,c.variable.name,c.defaultValue)}),t}function zr(u,t){return t?t(u):nt.of()}function Jt(u){return"function"==typeof u?new gt(u):u}function hr(u){return u.request.length<=1}var Hr=function(u){function t(s,c){var D=u.call(this,s)||this;return D.link=c,D}return K(t,u),t}(Error),gt=function(){function u(t){t&&(this.request=t)}return u.empty=function(){return new u(function(){return nt.of()})},u.from=function(t){return 0===t.length?u.empty():t.map(Jt).reduce(function(s,c){return s.concat(c)})},u.split=function(t,s,c){var D=Jt(s),N=Jt(c||new u(zr));return hr(D)&&hr(N)?new u(function(z){return t(z)?D.request(z)||nt.of():N.request(z)||nt.of()}):new u(function(z,se){return t(z)?D.request(z,se)||nt.of():N.request(z,se)||nt.of()})},u.execute=function(t,s){return t.request(function on(u,t){var s=w({},u);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(N){s=w(w({},s),"function"==typeof N?N(s):N)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return w({},s)}}),t}(s.context,function dn(u){var t={variables:u.variables||{},extensions:u.extensions||{},operationName:u.operationName,query:u.query};return t.operationName||(t.operationName="string"!=typeof t.query?lr(t.query)||void 0:""),t}(function qr(u){for(var t=["query","operationName","variables","extensions","context"],s=0,c=Object.keys(u);s<c.length;s++){var D=c[s];if(t.indexOf(D)<0)throw __DEV__?new J("illegal argument: ".concat(D)):new J(24)}return u}(s))))||nt.of()},u.concat=function(t,s){var c=Jt(t);if(hr(c))return __DEV__&&ie.warn(new Hr("You are calling concat on a terminating link, which will have no effect",c)),c;var D=Jt(s);return hr(D)?new u(function(N){return c.request(N,function(z){return D.request(z)||nt.of()})||nt.of()}):new u(function(N,z){return c.request(N,function(se){return D.request(se,z)||nt.of()})||nt.of()})},u.prototype.split=function(t,s,c){return this.concat(u.split(t,s,c||new u(zr)))},u.prototype.concat=function(t){return u.concat(this,t)},u.prototype.request=function(t,s){throw __DEV__?new J("request is not implemented"):new J(19)},u.prototype.onError=function(t,s){if(s&&s.error)return s.error(t),!1;throw t},u.prototype.setOnError=function(t){return this.onError=t,this},u}(),$t=gt.execute,Cr="3.6.9",bt=y(4496),pr=function(u,t){var s;try{s=JSON.stringify(u)}catch(D){var c=__DEV__?new J("Network request failed. ".concat(t," is not serializable: ").concat(D.message)):new J(21);throw c.parseError=D,c}return s},Gr=function(u,t){return u.getContext().uri||("function"==typeof t?t(u):t||"/graphql")},X=function(u,t,s){var c=new Error(s);throw c.name="ServerError",c.response=u,c.statusCode=u.status,c.result=t,c},fe=Object.prototype.hasOwnProperty;function pe(u){return function(t){return t.text().then(function(s){try{return JSON.parse(s)}catch(D){var c=D;throw c.name="ServerParseError",c.response=t,c.statusCode=t.status,c.bodyText=s,c}}).then(function(s){return t.status>=300&&X(t,s,"Response not successful: Received status code ".concat(t.status)),!Array.isArray(s)&&!fe.call(s,"data")&&!fe.call(s,"errors")&&X(t,s,"Server response was missing for query '".concat(Array.isArray(u)?u.map(function(c){return c.operationName}):u.operationName,"'.")),s})}}var Oe=function(u){if(!u&&typeof fetch>"u")throw __DEV__?new J("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new J(20)},Ce=y(94140),Ge={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Ne=function(u,t){return t(u)};function tt(u,t){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];return s.unshift(t),dt.apply(void 0,je([u,Ne],s,!1))}function dt(u,t){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var D={},N={};s.forEach(function(De){D=w(w(w({},D),De.options),{headers:w(w({},D.headers),Xe(De.headers))}),De.credentials&&(D.credentials=De.credentials),N=w(w({},N),De.http)});var ve=u.query,Ae={operationName:u.operationName,variables:u.variables};return N.includeExtensions&&(Ae.extensions=u.extensions),N.includeQuery&&(Ae.query=t(ve,Ce.print)),{options:D,body:Ae}}function Xe(u){if(u){var t=Object.create(null);return Object.keys(Object(u)).forEach(function(s){t[s.toLowerCase()]=u[s]}),t}return u}var ft=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var u=new AbortController;return{controller:u,signal:u.signal}};function St(u,t){var s=[],c=function(De,Te){s.push("".concat(De,"=").concat(encodeURIComponent(Te)))};if("query"in t&&c("query",t.query),t.operationName&&c("operationName",t.operationName),t.variables){var D=void 0;try{D=pr(t.variables,"Variables map")}catch(De){return{parseError:De}}c("variables",D)}if(t.extensions){var N=void 0;try{N=pr(t.extensions,"Extensions map")}catch(De){return{parseError:De}}c("extensions",N)}var z="",se=u,we=u.indexOf("#");-1!==we&&(z=u.substr(we),se=u.substr(0,we));var ve=-1===se.indexOf("?")?"?":"&";return{newURI:se+ve+s.join("&")+z}}function Xt(u){return new nt(function(t){t.error(u)})}var Qn=$(function(){return fetch}),Kn=function(u){void 0===u&&(u={});var t=u.uri,s=void 0===t?"/graphql":t,c=u.fetch,D=u.print,N=void 0===D?Ne:D,z=u.includeExtensions,se=u.useGETForQueries,we=u.includeUnusedVariables,ve=void 0!==we&&we,Ae=f(u,["uri","fetch","print","includeExtensions","useGETForQueries","includeUnusedVariables"]);__DEV__&&Oe(c||Qn);var De={http:{includeExtensions:z},options:Ae.fetchOptions,credentials:Ae.credentials,headers:Ae.headers};return new gt(function(Te){var ke=Gr(Te,s),Be=Te.getContext(),Le={};if(Be.clientAwareness){var Ve=Be.clientAwareness,Qe=Ve.name,$e=Ve.version;Qe&&(Le["apollographql-client-name"]=Qe),$e&&(Le["apollographql-client-version"]=$e)}var Et,We=w(w({},Le),Be.headers),Ze=dt(Te,N,Ge,De,{http:Be.http,options:Be.fetchOptions,credentials:Be.credentials,headers:We}),Ye=Ze.options,Je=Ze.body;if(Je.variables&&!ve){var it=new Set(Object.keys(Je.variables));(0,bt.Vn)(Te.query,{Variable:function(_t,Ni,vt){vt&&"VariableDefinition"!==vt.kind&&it.delete(_t.name.value)}}),it.size&&(Je.variables=w({},Je.variables),it.forEach(function(_t){delete Je.variables[_t]}))}if(!Ye.signal){var st=ft();(Et=st.controller)&&(Ye.signal=st.signal)}if(se&&!Te.query.definitions.some(function(_t){return"OperationDefinition"===_t.kind&&"mutation"===_t.operation})&&(Ye.method="GET"),"GET"===Ye.method){var Fi=St(ke,Je),Ba=Fi.newURI,Li=Fi.parseError;if(Li)return Xt(Li);ke=Ba}else try{Ye.body=pr(Je,"Payload")}catch(_t){return Xt(_t)}return new nt(function(_t){return(c||$(function(){return fetch})||Qn)(ke,Ye).then(function(vt){return Te.setContext({response:vt}),vt}).then(pe(Te)).then(function(vt){return _t.next(vt),_t.complete(),vt}).catch(function(vt){"AbortError"!==vt.name&&(vt.result&&vt.result.errors&&vt.result.data&&_t.next(vt.result),_t.error(vt))}),function(){Et&&Et.abort()}})})},qn=function(u){function t(s){void 0===s&&(s={});var c=u.call(this,Kn(s).request)||this;return c.options=s,c}return K(t,u),t}(gt),lt=y(16492),Yr=y(83302),Zt="function"==typeof WeakMap&&"ReactNative"!==$(function(){return navigator.product}),Bi="function"==typeof WeakSet,ji="function"==typeof Symbol&&"function"==typeof Symbol.for;function Jr(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];var s=Object.create(null);return u.forEach(function(c){c&&Object.keys(c).forEach(function(D){var N=c[D];void 0!==N&&(s[D]=N)})}),s}function $r(u,t){var s=u.directives;return!s||!s.length||function qi(u){var t=[];return u&&u.length&&u.forEach(function(s){if(function Ki(u){var t=u.name.value;return"skip"===t||"include"===t}(s)){var c=s.arguments,D=s.name.value;__DEV__?ie(c&&1===c.length,"Incorrect number of arguments for the @".concat(D," directive.")):ie(c&&1===c.length,38);var N=c[0];__DEV__?ie(N.name&&"if"===N.name.value,"Invalid argument for the @".concat(D," directive.")):ie(N.name&&"if"===N.name.value,39);var z=N.value;__DEV__?ie(z&&("Variable"===z.kind||"BooleanValue"===z.kind),"Argument for the @".concat(D," directive must be a variable or a boolean value.")):ie(z&&("Variable"===z.kind||"BooleanValue"===z.kind),40),t.push({directive:s,ifArgument:N})}}),t}(s).every(function(c){var D=c.directive,N=c.ifArgument,z=!1;return"Variable"===N.value.kind?(z=t&&t[N.value.name.value],__DEV__?ie(void 0!==z,"Invalid variable referenced in @".concat(D.name.value," directive.")):ie(void 0!==z,37)):z=N.value.value,"skip"===D.name.value?!z:z})}function vn(u,t){return function Wi(u){var t=[];return(0,bt.Vn)(u,{Directive:function(s){t.push(s.name.value)}}),t}(t).some(function(s){return u.indexOf(s)>-1})}function Qi(u){return u&&vn(["client"],u)&&vn(["export"],u)}$(function(){return window.document.createElement}),$(function(){return navigator.userAgent.indexOf("jsdom")>=0});var zi=Object.prototype.hasOwnProperty;function zn(){for(var u=[],t=0;t<arguments.length;t++)u[t]=arguments[t];return yn(u)}function yn(u){var t=u[0]||{},s=u.length;if(s>1)for(var c=new dr,D=1;D<s;++D)t=c.merge(t,u[D]);return t}var Hi=function(u,t,s){return this.merge(u[s],t[s])},dr=function(){function u(t){void 0===t&&(t=Hi),this.reconciler=t,this.isObject=ot,this.pastCopies=new Set}return u.prototype.merge=function(t,s){for(var c=this,D=[],N=2;N<arguments.length;N++)D[N-2]=arguments[N];return ot(s)&&ot(t)?(Object.keys(s).forEach(function(z){if(zi.call(t,z)){var se=t[z];if(s[z]!==se){var we=c.reconciler.apply(c,je([t,s,z],D,!1));we!==se&&((t=c.shallowCopyForMerge(t))[z]=we)}}else(t=c.shallowCopyForMerge(t))[z]=s[z]}),t):s},u.prototype.shallowCopyForMerge=function(t){return ot(t)&&(this.pastCopies.has(t)||(t=Array.isArray(t)?t.slice(0):w({__proto__:Object.getPrototypeOf(t)},t),this.pastCopies.add(t))),t},u}(),ht=Object.prototype.hasOwnProperty;function mn(u,t){var s=u.__typename,c=u.id,D=u._id;if("string"==typeof s&&(t&&(t.keyObject=void 0!==c?{id:c}:void 0!==D?{_id:D}:void 0),void 0===c&&(c=D),void 0!==c))return"".concat(s,":").concat("number"==typeof c||"string"==typeof c?c:JSON.stringify(c))}var Hn={dataIdFromObject:mn,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Gn(u){var t=u.canonizeResults;return void 0===t?Hn.canonizeResults:t}var Yn=/^[_a-z][_0-9a-z]*/i;function Wt(u){var t=u.match(Yn);return t?t[0]:u}function gn(u,t,s){return!!ot(t)&&(ct(t)?t.every(function(c){return gn(u,c,s)}):u.selections.every(function(c){if(At(c)&&$r(c,s)){var D=kt(c);return ht.call(t,D)&&(!c.selectionSet||gn(c.selectionSet,t[D],s))}return!0}))}function vr(u){return ot(u)&&!et(u)&&!ct(u)}var En,_n,ct=function(u){return Array.isArray(u)},bn=function(){function u(){this.known=new(Bi?WeakSet:Set),this.pool=new Yr.B(Zt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return u.prototype.isKnown=function(t){return ot(t)&&this.known.has(t)},u.prototype.pass=function(t){if(ot(t)){var s=function $i(u){return ot(u)?ct(u)?u.slice(0):w({__proto__:Object.getPrototypeOf(u)},u):u}(t);return this.passes.set(s,t),s}return t},u.prototype.admit=function(t){var s=this;if(ot(t)){var c=this.passes.get(t);if(c)return c;switch(Object.getPrototypeOf(t)){case Array.prototype:if(this.known.has(t))return t;var N=t.map(this.admit,this);return(z=this.pool.lookupArray(N)).array||(this.known.add(z.array=N),__DEV__&&Object.freeze(N)),z.array;case null:case Object.prototype:if(this.known.has(t))return t;var se=Object.getPrototypeOf(t),we=[se],ve=this.sortedKeys(t);we.push(ve.json);var z,Ae=we.length;if(ve.sorted.forEach(function(ke){we.push(s.admit(t[ke]))}),!(z=this.pool.lookupArray(we)).object){var De=z.object=Object.create(se);this.known.add(De),ve.sorted.forEach(function(ke,Be){De[ke]=we[Ae+Be]}),__DEV__&&Object.freeze(De)}return z.object}}return t},u.prototype.sortedKeys=function(t){var s=Object.keys(t),c=this.pool.lookupArray(s);if(!c.keys){s.sort();var D=JSON.stringify(s);(c.keys=this.keysByJSON.get(D))||this.keysByJSON.set(D,c.keys={sorted:s,json:D})}return c.keys},u}(),er=Object.assign(function(u){if(ot(u)){void 0===En&&Jn();var t=En.admit(u),s=_n.get(t);return void 0===s&&_n.set(t,s=JSON.stringify(t)),s}return JSON.stringify(u)},{reset:Jn});function Jn(){En=new bn,_n=new(Zt?WeakMap:Map)}function wn(u,t,s){return new nt(function(c){var D=c.next,N=c.error,z=c.complete,se=0,we=!1,ve={then:function(ke){return new Promise(function(Be){return Be(ke())})}};function Ae(ke,Be){return ke?function(Le){++se;var Ve=function(){return ke(Le)};ve=ve.then(Ve,Ve).then(function(Qe){--se,D&&D.call(c,Qe),we&&De.complete()},function(Qe){throw--se,Qe}).catch(function(Qe){N&&N.call(c,Qe)})}:function(Le){return Be&&Be.call(c,Le)}}var De={next:Ae(t,D),error:Ae(s,N),complete:function(){we=!0,se||z&&z.call(c)}},Te=u.subscribe(De);return function(){return Te.unsubscribe()}})}function Xr(u){return u.errors&&u.errors.length>0||!1}function $n(u,t,s){var c=0;return u.forEach(function(D,N){t.call(this,D,N,u)&&(u[c++]=D)},s),u.length=c,u}var Xn={kind:"Field",name:{kind:"Name",value:"__typename"}};function Zn(u,t){return u.selectionSet.selections.every(function(s){return"FragmentSpread"===s.kind&&Zn(t[s.name.value],t)})}function Sn(u){return Zn(Ft(u)||function Kr(u){__DEV__?ie("Document"===u.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):ie("Document"===u.kind,48),__DEV__?ie(u.definitions.length<=1,"Fragment must have exactly one definition."):ie(u.definitions.length<=1,49);var t=u.definitions[0];return __DEV__?ie("FragmentDefinition"===t.kind,"Must be a fragment definition."):ie("FragmentDefinition"===t.kind,50),t}(u),Ht(Lt(u)))?null:u}function On(u){return function(s){return u.some(function(c){return c.name&&c.name===s.name.value||c.test&&c.test(s)})}}function ei(u,t){var s=Object.create(null),c=[],D=Object.create(null),N=[],z=Sn((0,bt.Vn)(t,{Variable:{enter:function(se,we,ve){"VariableDefinition"!==ve.kind&&(s[se.name.value]=!0)}},Field:{enter:function(se){if(u&&se.directives&&u.some(function(ve){return ve.remove})&&se.directives&&se.directives.some(On(u)))return se.arguments&&se.arguments.forEach(function(ve){"Variable"===ve.value.kind&&c.push({name:ve.value.name.value})}),se.selectionSet&&ti(se.selectionSet).forEach(function(ve){N.push({name:ve.name.value})}),null}},FragmentSpread:{enter:function(se){D[se.name.value]=!0}},Directive:{enter:function(se){if(On(u)(se))return null}}}));return z&&$n(c,function(se){return!!se.name&&!s[se.name]}).length&&(z=function na(u,t){var s=function ra(u){return function(s){return u.some(function(c){return s.value&&"Variable"===s.value.kind&&s.value.name&&(c.name===s.value.name.value||c.test&&c.test(s))})}}(u);return Sn((0,bt.Vn)(t,{OperationDefinition:{enter:function(c){return w(w({},c),{variableDefinitions:c.variableDefinitions?c.variableDefinitions.filter(function(D){return!u.some(function(N){return N.name===D.variable.name.value})}):[]})}},Field:{enter:function(c){var D=u.some(function(z){return z.remove});if(D){var N=0;if(c.arguments&&c.arguments.forEach(function(z){s(z)&&(N+=1)}),1===N)return null}}},Argument:{enter:function(c){if(s(c))return null}}}))}(c,z)),z&&$n(N,function(se){return!!se.name&&!D[se.name]}).length&&(z=function ia(u,t){function s(c){if(u.some(function(D){return D.name===c.name.value}))return null}return Sn((0,bt.Vn)(t,{FragmentSpread:{enter:s},FragmentDefinition:{enter:s}}))}(N,z)),z}var An=Object.assign(function(u){return(0,bt.Vn)(u,{SelectionSet:{enter:function(t,s,c){if(!c||"OperationDefinition"!==c.kind){var D=t.selections;if(D&&!D.some(function(se){return At(se)&&("__typename"===se.name.value||0===se.name.value.lastIndexOf("__",0))})){var z=c;if(!(At(z)&&z.directives&&z.directives.some(function(se){return"export"===se.name.value})))return w(w({},t),{selections:je(je([],D,!0),[Xn],!1)})}}}}})},{added:function(u){return u===Xn}}),Xi={test:function(u){var t="connection"===u.name.value;return t&&(!u.arguments||!u.arguments.some(function(s){return"key"===s.name.value}))&&__DEV__&&ie.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}};function ti(u){var t=[];return u.selections.forEach(function(s){(At(s)||Qr(s))&&s.selectionSet?ti(s.selectionSet).forEach(function(c){return t.push(c)}):"FragmentSpread"===s.kind&&t.push(s)}),t}function aa(u){return"query"===Yt(u).operation?u:(0,bt.Vn)(u,{OperationDefinition:{enter:function(D){return w(w({},D),{operation:"query"})}}})}var ri=new Map;function xn(u){var t=ri.get(u)||1;return ri.set(u,t+1),"".concat(u,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Rr(u,t,s){var c=[];u.forEach(function(D){return D[t]&&c.push(D)}),c.forEach(function(D){return D[t](s)})}function ni(u){function t(s){Object.defineProperty(u,s,{value:nt})}return ji&&Symbol.species&&t(Symbol.species),t("@@species"),u}function ii(u){return u&&"function"==typeof u.then}var Ir=function(u){function t(s){var c=u.call(this,function(D){return c.addObserver(D),function(){return c.removeObserver(D)}})||this;return c.observers=new Set,c.addCount=0,c.promise=new Promise(function(D,N){c.resolve=D,c.reject=N}),c.handlers={next:function(D){null!==c.sub&&(c.latest=["next",D],Rr(c.observers,"next",D))},error:function(D){var N=c.sub;null!==N&&(N&&setTimeout(function(){return N.unsubscribe()}),c.sub=null,c.latest=["error",D],c.reject(D),Rr(c.observers,"error",D))},complete:function(){var D=c.sub;if(null!==D){var N=c.sources.shift();N?ii(N)?N.then(function(z){return c.sub=z.subscribe(c.handlers)}):c.sub=N.subscribe(c.handlers):(D&&setTimeout(function(){return D.unsubscribe()}),c.sub=null,c.latest&&"next"===c.latest[0]?c.resolve(c.latest[1]):c.resolve(),Rr(c.observers,"complete"))}}},c.cancel=function(D){c.reject(D),c.sources=[],c.handlers.complete()},c.promise.catch(function(D){}),"function"==typeof s&&(s=[new nt(s)]),ii(s)?s.then(function(D){return c.start(D)},c.handlers.error):c.start(s),c}return K(t,u),t.prototype.start=function(s){void 0===this.sub&&(this.sources=Array.from(s),this.handlers.complete())},t.prototype.deliverLastMessage=function(s){if(this.latest){var c=this.latest[0],D=s[c];D&&D.call(s,this.latest[1]),null===this.sub&&"next"===c&&s.complete&&s.complete()}},t.prototype.addObserver=function(s){this.observers.has(s)||(this.deliverLastMessage(s),this.observers.add(s),++this.addCount)},t.prototype.removeObserver=function(s,c){this.observers.delete(s)&&--this.addCount<1&&!c&&this.handlers.complete()},t.prototype.cleanup=function(s){var c=this,D=!1,N=function(){D||(D=!0,c.observers.delete(z),s())},z={next:N,error:N,complete:N},se=this.addCount;this.addObserver(z),this.addCount=se},t}(nt);function tr(u){return Array.isArray(u)&&u.length>0}function ai(u){return u.hasOwnProperty("graphQLErrors")}ni(Ir);var sa=function(u){var t="";return(tr(u.graphQLErrors)||tr(u.clientErrors))&&(u.graphQLErrors||[]).concat(u.clientErrors||[]).forEach(function(c){t+="".concat(c?c.message:"Error message not found.","\n")}),u.networkError&&(t+="".concat(u.networkError.message,"\n")),t=t.replace(/\n$/,"")},rr=function(u){function t(s){var c=s.graphQLErrors,D=s.clientErrors,N=s.networkError,z=s.errorMessage,se=s.extraInfo,we=u.call(this,z)||this;return we.graphQLErrors=c||[],we.clientErrors=D||[],we.networkError=N||null,we.message=z||sa(we),we.extraInfo=se,we.__proto__=t.prototype,we}return K(t,u),t}(Error),rt=(()=>(function(u){u[u.loading=1]="loading",u[u.setVariables=2]="setVariables",u[u.fetchMore=3]="fetchMore",u[u.refetch=4]="refetch",u[u.poll=6]="poll",u[u.ready=7]="ready",u[u.error=8]="error"}(rt||(rt={})),rt))();function Pr(u){return!!u&&u<7}var ua=Object.prototype.toString;function oi(u){return Tn(u)}function Tn(u,t){switch(ua.call(u)){case"[object Array]":if((t=t||new Map).has(u))return t.get(u);var s=u.slice(0);return t.set(u,s),s.forEach(function(D,N){s[N]=Tn(D,t)}),s;case"[object Object]":if((t=t||new Map).has(u))return t.get(u);var c=Object.create(Object.getPrototypeOf(u));return t.set(u,c),Object.keys(u).forEach(function(D){c[D]=Tn(u[D],t)}),c;default:return u}}var ca=Object.assign,fa=Object.hasOwnProperty,Zr=function(u){function t(s){var c=s.queryManager,D=s.queryInfo,N=s.options,z=u.call(this,function(Ve){try{var Qe=Ve._subscription._observer;Qe&&!Qe.error&&(Qe.error=la)}catch{}var $e=!z.observers.size;z.observers.add(Ve);var We=z.last;return We&&We.error?Ve.error&&Ve.error(We.error):We&&We.result&&Ve.next&&Ve.next(We.result),$e&&z.reobserve().catch(function(){}),function(){z.observers.delete(Ve)&&!z.observers.size&&z.tearDownQuery()}})||this;z.observers=new Set,z.subscriptions=new Set,z.queryInfo=D,z.queryManager=c,z.isTornDown=!1;var se=c.defaultOptions.watchQuery,ve=(void 0===se?{}:se).fetchPolicy,Ae=void 0===ve?"cache-first":ve,De=N.fetchPolicy,Te=void 0===De?Ae:De,ke=N.initialFetchPolicy,Be=void 0===ke?"standby"===Te?Ae:Te:ke;z.options=w(w({},N),{initialFetchPolicy:Be,fetchPolicy:Te}),z.queryId=D.queryId||c.generateQueryId();var Le=Ft(z.query);return z.queryName=Le&&Le.name&&Le.name.value,z}return K(t,u),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var s=this;return new Promise(function(c,D){var N={next:function(se){c(se),s.observers.delete(N),s.observers.size||s.queryManager.removeQuery(s.queryId),setTimeout(function(){z.unsubscribe()},0)},error:D},z=s.subscribe(N)})},t.prototype.getCurrentResult=function(s){void 0===s&&(s=!0);var c=this.getLastResult(!0),D=this.queryInfo.networkStatus||c&&c.networkStatus||rt.ready,N=w(w({},c),{loading:Pr(D),networkStatus:D}),z=this.options.fetchPolicy,se=void 0===z?"cache-first":z;if("network-only"!==se&&"no-cache"!==se&&"standby"!==se&&!this.queryManager.transform(this.options.query).hasForcedResolvers){var we=this.queryInfo.getDiff();(we.complete||this.options.returnPartialData)&&(N.data=we.result),(0,lt.D)(N.data,{})&&(N.data=void 0),we.complete?(delete N.partial,we.complete&&N.networkStatus===rt.loading&&("cache-first"===se||"cache-only"===se)&&(N.networkStatus=rt.ready,N.loading=!1)):N.partial=!0,__DEV__&&!we.complete&&!this.options.partialRefetch&&!N.loading&&!N.data&&!N.error&&ui(we.missing)}return s&&this.updateLastResult(N),N},t.prototype.isDifferentFromLastResult=function(s){return!this.last||!(0,lt.D)(this.last.result,s)},t.prototype.getLast=function(s,c){var D=this.last;if(D&&D[s]&&(!c||(0,lt.D)(D.variables,this.variables)))return D[s]},t.prototype.getLastResult=function(s){return this.getLast("result",s)},t.prototype.getLastError=function(s){return this.getLast("error",s)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(s){var c,D={pollInterval:0},N=this.options.fetchPolicy;if(D.fetchPolicy="cache-and-network"===N?N:"no-cache"===N?"no-cache":"network-only",__DEV__&&s&&fa.call(s,"variables")){var z=xr(this.query),se=z.variableDefinitions;(!se||!se.some(function(we){return"variables"===we.variable.name.value}))&&__DEV__&&ie.warn("Called refetch(".concat(JSON.stringify(s),") for query ").concat((null===(c=z.name)||void 0===c?void 0:c.value)||JSON.stringify(z),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return s&&!(0,lt.D)(this.options.variables,s)&&(D.variables=this.options.variables=w(w({},this.options.variables),s)),this.queryInfo.resetLastWrite(),this.reobserve(D,rt.refetch)},t.prototype.fetchMore=function(s){var c=this,D=w(w({},s.query?s:w(w(w(w({},this.options),{query:this.query}),s),{variables:w(w({},this.options.variables),s.variables)})),{fetchPolicy:"no-cache"}),N=this.queryManager.generateQueryId(),z=this.queryInfo,se=z.networkStatus;z.networkStatus=rt.fetchMore,D.notifyOnNetworkStatusChange&&this.observe();var we=new Set;return this.queryManager.fetchQuery(N,D,rt.fetchMore).then(function(ve){return c.queryManager.removeQuery(N),z.networkStatus===rt.fetchMore&&(z.networkStatus=se),c.queryManager.cache.batch({update:function(Ae){var De=s.updateQuery;De?Ae.updateQuery({query:c.query,variables:c.variables,returnPartialData:!0,optimistic:!1},function(Te){return De(Te,{fetchMoreResult:ve.data,variables:D.variables})}):Ae.writeQuery({query:D.query,variables:D.variables,data:ve.data})},onWatchUpdated:function(Ae){we.add(Ae.query)}}),ve}).finally(function(){we.has(c.query)||si(c)})},t.prototype.subscribeToMore=function(s){var c=this,D=this.queryManager.startGraphQLSubscription({query:s.document,variables:s.variables,context:s.context}).subscribe({next:function(N){var z=s.updateQuery;z&&c.updateQuery(function(se,we){return z(se,{subscriptionData:N,variables:we.variables})})},error:function(N){s.onError?s.onError(N):__DEV__&&ie.error("Unhandled GraphQL subscription error",N)}});return this.subscriptions.add(D),function(){c.subscriptions.delete(D)&&D.unsubscribe()}},t.prototype.setOptions=function(s){return this.reobserve(s)},t.prototype.setVariables=function(s){return(0,lt.D)(this.variables,s)?this.observers.size?this.result():Promise.resolve():(this.options.variables=s,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:s},rt.setVariables):Promise.resolve())},t.prototype.updateQuery=function(s){var c=this.queryManager,N=s(c.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});N&&(c.cache.writeQuery({query:this.options.query,data:N,variables:this.variables}),c.broadcastQueries())},t.prototype.startPolling=function(s){this.options.pollInterval=s,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(s,c){if(c.nextFetchPolicy){var D=c.fetchPolicy,N=void 0===D?"cache-first":D,z=c.initialFetchPolicy,se=void 0===z?N:z;"standby"===N||(c.fetchPolicy="function"==typeof c.nextFetchPolicy?c.nextFetchPolicy(N,{reason:s,options:c,observable:this,initialFetchPolicy:se}):"variables-changed"===s?se:c.nextFetchPolicy)}return c.fetchPolicy},t.prototype.fetch=function(s,c){return this.queryManager.setObservableQuery(this),this.queryManager.fetchQueryObservable(this.queryId,s,c)},t.prototype.updatePolling=function(){var s=this;if(!this.queryManager.ssrMode){var D=this.pollingInfo,N=this.options.pollInterval;if(!N)return void(D&&(clearTimeout(D.timeout),delete this.pollingInfo));if(!D||D.interval!==N){__DEV__?ie(N,"Attempted to start a polling query without a polling interval."):ie(N,10),(D||(this.pollingInfo={})).interval=N;var se=function(){s.pollingInfo&&(Pr(s.queryInfo.networkStatus)?we():s.reobserve({fetchPolicy:"network-only"},rt.poll).then(we,we))},we=function(){var ve=s.pollingInfo;ve&&(clearTimeout(ve.timeout),ve.timeout=setTimeout(se,ve.interval))};we()}}},t.prototype.updateLastResult=function(s,c){return void 0===c&&(c=this.variables),this.last=w(w({},this.last),{result:this.queryManager.assumeImmutableResults?s:oi(s),variables:c}),tr(s.errors)||delete this.last.error,this.last},t.prototype.reobserve=function(s,c){var D=this;this.isTornDown=!1;var N=c===rt.refetch||c===rt.fetchMore||c===rt.poll,z=this.options.variables,se=this.options.fetchPolicy,we=Jr(this.options,s||{}),ve=N?we:ca(this.options,we);N||(this.updatePolling(),s&&s.variables&&!(0,lt.D)(s.variables,z)&&"standby"!==ve.fetchPolicy&&ve.fetchPolicy===se&&(this.applyNextFetchPolicy("variables-changed",ve),void 0===c&&(c=rt.setVariables)));var Ae=ve.variables&&w({},ve.variables),De=this.fetch(ve,c),Te={next:function(ke){D.reportResult(ke,Ae)},error:function(ke){D.reportError(ke,Ae)}};return N||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=De,this.observer=Te),De.addObserver(Te),De.promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(s,c){var D=this.getLastError();(D||this.isDifferentFromLastResult(s))&&((D||!s.partial||this.options.returnPartialData)&&this.updateLastResult(s,c),Rr(this.observers,"next",s))},t.prototype.reportError=function(s,c){var D=w(w({},this.getLastResult()),{error:s,errors:s.graphQLErrors,networkStatus:rt.error,loading:!1});this.updateLastResult(D,c),Rr(this.observers,"error",this.last.error=s)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(s){return s.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(nt);function si(u){var t=u.options,s=t.fetchPolicy,c=t.nextFetchPolicy;return"cache-and-network"===s||"network-only"===s?u.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=c,"function"==typeof c?c.apply(this,arguments):s}}):u.reobserve()}function la(u){__DEV__&&ie.error("Unhandled error",u.message,u.stack)}function ui(u){__DEV__&&u&&__DEV__&&ie.debug("Missing cache result fields: ".concat(JSON.stringify(u)),u)}ni(Zr);var yr=y(40245),Cn=new(y(62966).g7),ci=new WeakMap;function Dr(u){var t=ci.get(u);return t||ci.set(u,t={vars:new Set,dep:(0,yr.dP)()}),t}function fi(u){Dr(u).vars.forEach(function(t){return t.forgetCache(u)})}function li(u){var t=new Set,s=new Set,c=function(N){if(arguments.length>0){if(u!==N){u=N,t.forEach(function(we){Dr(we).dep.dirty(c),function da(u){u.broadcastWatches&&u.broadcastWatches()}(we)});var z=Array.from(s);s.clear(),z.forEach(function(we){return we(u)})}}else{var se=Cn.getValue();se&&(D(se),Dr(se).dep(c))}return u};c.onNextChange=function(N){return s.add(N),function(){s.delete(N)}};var D=c.attachCache=function(N){return t.add(N),Dr(N).vars.add(c),c};return c.forgetCache=function(N){return t.delete(N)},c}var hi=function(){function u(t){var c=t.client,D=t.resolvers,N=t.fragmentMatcher;this.cache=t.cache,c&&(this.client=c),D&&this.addResolvers(D),N&&this.setFragmentMatcher(N)}return u.prototype.addResolvers=function(t){var s=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach(function(c){s.resolvers=zn(s.resolvers,c)}):this.resolvers=zn(this.resolvers,t)},u.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},u.prototype.getResolvers=function(){return this.resolvers||{}},u.prototype.runResolvers=function(t){var s=t.document,c=t.remoteResult,D=t.context,N=t.variables,z=t.onlyRunForcedResolvers,se=void 0!==z&&z;return me(this,void 0,void 0,function(){return Re(this,function(we){return s?[2,this.resolveDocument(s,c.data,D,N,this.fragmentMatcher,se).then(function(ve){return w(w({},c),{data:ve.result})})]:[2,c]})})},u.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},u.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},u.prototype.clientQuery=function(t){return vn(["client"],t)&&this.resolvers?t:null},u.prototype.serverQuery=function(t){return function oa(u){fr(u);var t=ei([{test:function(s){return"client"===s.name.value},remove:!0}],u);return t&&(t=(0,bt.Vn)(t,{FragmentDefinition:{enter:function(s){if(s.selectionSet&&s.selectionSet.selections.every(function(D){return At(D)&&"__typename"===D.name.value}))return null}}})),t}(t)},u.prototype.prepareContext=function(t){var s=this.cache;return w(w({},t),{cache:s,getCacheKey:function(c){return s.identify(c)}})},u.prototype.addExportedVariables=function(t,s,c){return void 0===s&&(s={}),void 0===c&&(c={}),me(this,void 0,void 0,function(){return Re(this,function(D){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,s)||{},this.prepareContext(c),s).then(function(N){return w(w({},s),N.exportedVariables)})]:[2,w({},s)]})})},u.prototype.shouldForceResolvers=function(t){var s=!1;return(0,bt.Vn)(t,{Directive:{enter:function(c){if("client"===c.name.value&&c.arguments&&(s=c.arguments.some(function(D){return"always"===D.name.value&&"BooleanValue"===D.value.kind&&!0===D.value.value})))return bt.$_}}}),s},u.prototype.buildRootValueFromCache=function(t,s){return this.cache.diff({query:aa(t),variables:s,returnPartialData:!0,optimistic:!1}).result},u.prototype.resolveDocument=function(t,s,c,D,N,z){return void 0===c&&(c={}),void 0===D&&(D={}),void 0===N&&(N=function(){return!0}),void 0===z&&(z=!1),me(this,void 0,void 0,function(){var se,we,ve,Ae,De,Te,ke,Be,Le;return Re(this,function(Ve){return se=Yt(t),we=Lt(t),ve=Ht(we),De=(Ae=se.operation)?Ae.charAt(0).toUpperCase()+Ae.slice(1):"Query",ke=(Te=this).cache,Be=Te.client,Le={fragmentMap:ve,context:w(w({},c),{cache:ke,client:Be}),variables:D,fragmentMatcher:N,defaultOperationType:De,exportedVariables:{},onlyRunForcedResolvers:z},[2,this.resolveSelectionSet(se.selectionSet,s,Le).then(function(Qe){return{result:Qe,exportedVariables:Le.exportedVariables}})]})})},u.prototype.resolveSelectionSet=function(t,s,c){return me(this,void 0,void 0,function(){var D,N,z,se,ve=this;return Re(this,function(Ae){return D=c.fragmentMap,N=c.context,z=c.variables,se=[s],[2,Promise.all(t.selections.map(function(De){return me(ve,void 0,void 0,function(){var Te;return Re(this,function(Be){return $r(De,z)?At(De)?[2,this.resolveField(De,s,c).then(function(Le){var Ve;typeof Le<"u"&&se.push(((Ve={})[kt(De)]=Le,Ve))})]:(Qr(De)?Te=De:(Te=D[De.name.value],__DEV__?ie(Te,"No fragment named ".concat(De.name.value)):ie(Te,9)),Te&&Te.typeCondition&&c.fragmentMatcher(s,Te.typeCondition.name.value,N)?[2,this.resolveSelectionSet(Te.selectionSet,s,c).then(function(Le){se.push(Le)})]:[2]):[2]})})})).then(function(){return yn(se)})]})})},u.prototype.resolveField=function(t,s,c){return me(this,void 0,void 0,function(){var D,N,z,se,we,ve,Ae,De,Te,ke=this;return Re(this,function(Be){return D=c.variables,N=t.name.value,z=kt(t),se=N!==z,we=s[z]||s[N],ve=Promise.resolve(we),(!c.onlyRunForcedResolvers||this.shouldForceResolvers(t))&&(Ae=s.__typename||c.defaultOperationType,(De=this.resolvers&&this.resolvers[Ae])&&(Te=De[se?N:z])&&(ve=Promise.resolve(Cn.withValue(this.cache,Te,[s,Gt(t,D),c.context,{field:t,fragmentMap:c.fragmentMap}])))),[2,ve.then(function(Le){return void 0===Le&&(Le=we),t.directives&&t.directives.forEach(function(Ve){"export"===Ve.name.value&&Ve.arguments&&Ve.arguments.forEach(function(Qe){"as"===Qe.name.value&&"StringValue"===Qe.value.kind&&(c.exportedVariables[Qe.value.value]=Le)})}),t.selectionSet&&null!=Le?Array.isArray(Le)?ke.resolveSubSelectedArray(t,Le,c):t.selectionSet?ke.resolveSelectionSet(t.selectionSet,Le,c):void 0:Le})]})})},u.prototype.resolveSubSelectedArray=function(t,s,c){var D=this;return Promise.all(s.map(function(N){return null===N?null:Array.isArray(N)?D.resolveSubSelectedArray(t,N,c):t.selectionSet?D.resolveSelectionSet(t.selectionSet,N,c):void 0}))},u}(),mr=new(Zt?WeakMap:Map);function Rn(u,t){var s=u[t];"function"==typeof s&&(u[t]=function(){return mr.set(u,(mr.get(u)+1)%1e15),s.apply(this,arguments)})}function pi(u){u.notifyTimeout&&(clearTimeout(u.notifyTimeout),u.notifyTimeout=void 0)}var In=function(){function u(t,s){void 0===s&&(s=t.generateQueryId()),this.queryId=s,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var c=this.cache=t.cache;mr.has(c)||(mr.set(c,0),Rn(c,"evict"),Rn(c,"modify"),Rn(c,"reset"))}return u.prototype.init=function(t){var s=t.networkStatus||rt.loading;return this.variables&&this.networkStatus!==rt.loading&&!(0,lt.D)(this.variables,t.variables)&&(s=rt.setVariables),(0,lt.D)(t.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:t.document,variables:t.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:s}),t.observableQuery&&this.setObservableQuery(t.observableQuery),t.lastRequestId&&(this.lastRequestId=t.lastRequestId),this},u.prototype.reset=function(){pi(this),this.lastDiff=void 0,this.dirty=!1},u.prototype.getDiff=function(t){void 0===t&&(t=this.variables);var s=this.getDiffOptions(t);if(this.lastDiff&&(0,lt.D)(s,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=t);var c=this.observableQuery;if(c&&"no-cache"===c.options.fetchPolicy)return{complete:!1};var D=this.cache.diff(s);return this.updateLastDiff(D,s),D},u.prototype.updateLastDiff=function(t,s){this.lastDiff=t?{diff:t,options:s||this.getDiffOptions()}:void 0},u.prototype.getDiffOptions=function(t){var s;return void 0===t&&(t=this.variables),{query:this.document,variables:t,returnPartialData:!0,optimistic:!0,canonizeResults:null===(s=this.observableQuery)||void 0===s?void 0:s.options.canonizeResults}},u.prototype.setDiff=function(t){var s=this,c=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(t),!this.dirty&&!(0,lt.D)(c&&c.result,t&&t.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return s.notify()},0)))},u.prototype.setObservableQuery=function(t){var s=this;t!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=t,t?(t.queryInfo=this,this.listeners.add(this.oqListener=function(){s.getDiff().fromOptimisticTransaction?t.observe():si(t)})):delete this.oqListener)},u.prototype.notify=function(){var t=this;pi(this),this.shouldNotify()&&this.listeners.forEach(function(s){return s(t)}),this.dirty=!1},u.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Pr(this.networkStatus)&&this.observableQuery){var t=this.observableQuery.options.fetchPolicy;if("cache-only"!==t&&"cache-and-network"!==t)return!1}return!0},u.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=u.prototype.cancel,this.subscriptions.forEach(function(s){return s.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},u.prototype.cancel=function(){},u.prototype.updateWatch=function(t){var s=this;void 0===t&&(t=this.variables);var c=this.observableQuery;if(!c||"no-cache"!==c.options.fetchPolicy){var D=w(w({},this.getDiffOptions(t)),{watcher:this,callback:function(N){return s.setDiff(N)}});(!this.lastWatch||!(0,lt.D)(D,this.lastWatch))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=D))}},u.prototype.resetLastWrite=function(){this.lastWrite=void 0},u.prototype.shouldWrite=function(t,s){var c=this.lastWrite;return!(c&&c.dmCount===mr.get(this.cache)&&(0,lt.D)(s,c.variables)&&(0,lt.D)(t.data,c.result.data))},u.prototype.markResult=function(t,s,c){var D=this;this.graphQLErrors=tr(t.errors)?t.errors:[],this.reset(),"no-cache"===s.fetchPolicy?this.updateLastDiff({result:t.data,complete:!0},this.getDiffOptions(s.variables)):0!==c&&(Pn(t,s.errorPolicy)?this.cache.performTransaction(function(N){if(D.shouldWrite(t,s.variables))N.writeQuery({query:D.document,data:t.data,variables:s.variables,overwrite:1===c}),D.lastWrite={result:t,variables:s.variables,dmCount:mr.get(D.cache)};else if(D.lastDiff&&D.lastDiff.diff.complete)return void(t.data=D.lastDiff.diff.result);var z=D.getDiffOptions(s.variables),se=N.diff(z);D.stopped||D.updateWatch(s.variables),D.updateLastDiff(se,z),se.complete&&(t.data=se.result)}):this.lastWrite=void 0)},u.prototype.markReady=function(){return this.networkError=null,this.networkStatus=rt.ready},u.prototype.markError=function(t){return this.networkStatus=rt.error,this.lastWrite=void 0,this.reset(),t.graphQLErrors&&(this.graphQLErrors=t.graphQLErrors),t.networkError&&(this.networkError=t.networkError),t},u}();function Pn(u,t){void 0===t&&(t="none");var s="ignore"===t||"all"===t,c=!Xr(u);return!c&&s&&u.data&&(c=!0),c}var va=Object.prototype.hasOwnProperty,ya=function(){function u(t){var s=t.cache,c=t.link,D=t.defaultOptions,N=t.queryDeduplication,z=void 0!==N&&N,se=t.onBroadcast,we=t.ssrMode,ve=void 0!==we&&we,Ae=t.clientAwareness,De=void 0===Ae?{}:Ae,Te=t.localState,ke=t.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(Zt?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=s,this.link=c,this.defaultOptions=D||Object.create(null),this.queryDeduplication=z,this.clientAwareness=De,this.localState=Te||new hi({cache:s}),this.ssrMode=ve,this.assumeImmutableResults=!!ke,(this.onBroadcast=se)&&(this.mutationStore=Object.create(null))}return u.prototype.stop=function(){var t=this;this.queries.forEach(function(s,c){t.stopQueryNoBroadcast(c)}),this.cancelPendingFetches(__DEV__?new J("QueryManager stopped while query was in flight"):new J(11))},u.prototype.cancelPendingFetches=function(t){this.fetchCancelFns.forEach(function(s){return s(t)}),this.fetchCancelFns.clear()},u.prototype.mutate=function(t){var s,c,D=t.mutation,N=t.variables,z=t.optimisticResponse,se=t.updateQueries,we=t.refetchQueries,ve=void 0===we?[]:we,Ae=t.awaitRefetchQueries,De=void 0!==Ae&&Ae,Te=t.update,ke=t.onQueryUpdated,Be=t.fetchPolicy,Le=void 0===Be?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.fetchPolicy)||"network-only":Be,Ve=t.errorPolicy,Qe=void 0===Ve?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.errorPolicy)||"none":Ve,$e=t.keepRootFields,We=t.context;return me(this,void 0,void 0,function(){var He,Ze,Ye;return Re(this,function(Je){switch(Je.label){case 0:return __DEV__?ie(D,"mutation option is required. You must specify your GraphQL document in the mutation option."):ie(D,12),__DEV__?ie("network-only"===Le||"no-cache"===Le,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):ie("network-only"===Le||"no-cache"===Le,13),He=this.generateMutationId(),D=this.transform(D).document,N=this.getVariables(D,N),this.transform(D).hasClientExports?[4,this.localState.addExportedVariables(D,N,We)]:[3,2];case 1:N=Je.sent(),Je.label=2;case 2:return Ze=this.mutationStore&&(this.mutationStore[He]={mutation:D,variables:N,loading:!0,error:null}),z&&this.markMutationOptimistic(z,{mutationId:He,document:D,variables:N,fetchPolicy:Le,errorPolicy:Qe,context:We,updateQueries:se,update:Te,keepRootFields:$e}),this.broadcastQueries(),Ye=this,[2,new Promise(function(it,Et){return wn(Ye.getObservableFromLink(D,w(w({},We),{optimisticResponse:z}),N,!1),function(st){if(Xr(st)&&"none"===Qe)throw new rr({graphQLErrors:st.errors});Ze&&(Ze.loading=!1,Ze.error=null);var Nt=w({},st);return"function"==typeof ve&&(ve=ve(Nt)),"ignore"===Qe&&Xr(Nt)&&delete Nt.errors,Ye.markMutationResult({mutationId:He,result:Nt,document:D,variables:N,fetchPolicy:Le,errorPolicy:Qe,context:We,update:Te,updateQueries:se,awaitRefetchQueries:De,refetchQueries:ve,removeOptimistic:z?He:void 0,onQueryUpdated:ke,keepRootFields:$e})}).subscribe({next:function(st){Ye.broadcastQueries(),it(st)},error:function(st){Ze&&(Ze.loading=!1,Ze.error=st),z&&Ye.cache.removeOptimistic(He),Ye.broadcastQueries(),Et(st instanceof rr?st:new rr({networkError:st}))}})})]}})})},u.prototype.markMutationResult=function(t,s){var c=this;void 0===s&&(s=this.cache);var D=t.result,N=[],z="no-cache"===t.fetchPolicy;if(!z&&Pn(D,t.errorPolicy)){N.push({result:D.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables});var se=t.updateQueries;se&&this.queries.forEach(function(ve,Ae){var De=ve.observableQuery,Te=De&&De.queryName;if(Te&&va.call(se,Te)){var ke=se[Te],Be=c.queries.get(Ae),Le=Be.document,Ve=Be.variables,Qe=s.diff({query:Le,variables:Ve,returnPartialData:!0,optimistic:!1}),$e=Qe.result;if(Qe.complete&&$e){var He=ke($e,{mutationResult:D,queryName:Le&&lr(Le)||void 0,queryVariables:Ve});He&&N.push({result:He,dataId:"ROOT_QUERY",query:Le,variables:Ve})}}})}if(N.length>0||t.refetchQueries||t.update||t.onQueryUpdated||t.removeOptimistic){var we=[];if(this.refetchQueries({updateCache:function(ve){z||N.forEach(function(Te){return ve.write(Te)});var Ae=t.update;if(Ae){if(!z){var De=ve.diff({id:"ROOT_MUTATION",query:c.transform(t.document).asQuery,variables:t.variables,optimistic:!1,returnPartialData:!0});De.complete&&(D=w(w({},D),{data:De.result}))}Ae(ve,D,{context:t.context,variables:t.variables})}!z&&!t.keepRootFields&&ve.modify({id:"ROOT_MUTATION",fields:function(Te,ke){return"__typename"===ke.fieldName?Te:ke.DELETE}})},include:t.refetchQueries,optimistic:!1,removeOptimistic:t.removeOptimistic,onQueryUpdated:t.onQueryUpdated||null}).forEach(function(ve){return we.push(ve)}),t.awaitRefetchQueries||t.onQueryUpdated)return Promise.all(we).then(function(){return D})}return Promise.resolve(D)},u.prototype.markMutationOptimistic=function(t,s){var c=this,D="function"==typeof t?t(s.variables):t;return this.cache.recordOptimisticTransaction(function(N){try{c.markMutationResult(w(w({},s),{result:{data:D}}),N)}catch(z){__DEV__&&ie.error(z)}},s.mutationId)},u.prototype.fetchQuery=function(t,s,c){return this.fetchQueryObservable(t,s,c).promise},u.prototype.getQueryStore=function(){var t=Object.create(null);return this.queries.forEach(function(s,c){t[c]={variables:s.variables,networkStatus:s.networkStatus,networkError:s.networkError,graphQLErrors:s.graphQLErrors}}),t},u.prototype.resetErrors=function(t){var s=this.queries.get(t);s&&(s.networkError=void 0,s.graphQLErrors=[])},u.prototype.transform=function(t){var s=this.transformCache;if(!s.has(t)){var c=this.cache.transformDocument(t),D=function Zi(u){return ei([Xi],fr(u))}(this.cache.transformForLink(c)),N=this.localState.clientQuery(c),z=D&&this.localState.serverQuery(D),se={document:c,hasClientExports:Qi(c),hasForcedResolvers:this.localState.shouldForceResolvers(c),clientQuery:N,serverQuery:z,defaultVars:Tr(Ft(c)),asQuery:w(w({},c),{definitions:c.definitions.map(function(ve){return"OperationDefinition"===ve.kind&&"query"!==ve.operation?w(w({},ve),{operation:"query"}):ve})})},we=function(ve){ve&&!s.has(ve)&&s.set(ve,se)};we(t),we(c),we(N),we(z)}return s.get(t)},u.prototype.getVariables=function(t,s){return w(w({},this.transform(t).defaultVars),s)},u.prototype.watchQuery=function(t){typeof(t=w(w({},t),{variables:this.getVariables(t.query,t.variables)})).notifyOnNetworkStatusChange>"u"&&(t.notifyOnNetworkStatusChange=!1);var s=new In(this),c=new Zr({queryManager:this,queryInfo:s,options:t});return this.queries.set(c.queryId,s),s.init({document:c.query,observableQuery:c,variables:c.variables}),c},u.prototype.query=function(t,s){var c=this;return void 0===s&&(s=this.generateQueryId()),__DEV__?ie(t.query,"query option is required. You must specify your GraphQL document in the query option."):ie(t.query,14),__DEV__?ie("Document"===t.query.kind,'You must wrap the query string in a "gql" tag.'):ie("Document"===t.query.kind,15),__DEV__?ie(!t.returnPartialData,"returnPartialData option only supported on watchQuery."):ie(!t.returnPartialData,16),__DEV__?ie(!t.pollInterval,"pollInterval option only supported on watchQuery."):ie(!t.pollInterval,17),this.fetchQuery(s,t).finally(function(){return c.stopQuery(s)})},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(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},u.prototype.stopQueryInStoreNoBroadcast=function(t){var s=this.queries.get(t);s&&s.stop()},u.prototype.clearStore=function(t){return void 0===t&&(t={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new J("Store reset while query was in flight (not completed in link chain)"):new J(18)),this.queries.forEach(function(s){s.observableQuery?s.networkStatus=rt.loading:s.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(t)},u.prototype.getObservableQueries=function(t){var s=this;void 0===t&&(t="active");var c=new Map,D=new Map,N=new Set;return Array.isArray(t)&&t.forEach(function(z){"string"==typeof z?D.set(z,!1):function un(u){return ot(u)&&"Document"===u.kind&&Array.isArray(u.definitions)}(z)?D.set(s.transform(z).document,!1):ot(z)&&z.query&&N.add(z)}),this.queries.forEach(function(z,se){var we=z.observableQuery,ve=z.document;if(we){if("all"===t)return void c.set(se,we);var Ae=we.queryName;if("standby"===we.options.fetchPolicy||"active"===t&&!we.hasObservers())return;("active"===t||Ae&&D.has(Ae)||ve&&D.has(ve))&&(c.set(se,we),Ae&&D.set(Ae,!0),ve&&D.set(ve,!0))}}),N.size&&N.forEach(function(z){var se=xn("legacyOneTimeQuery"),we=s.getQuery(se).init({document:z.query,variables:z.variables}),ve=new Zr({queryManager:s,queryInfo:we,options:w(w({},z),{fetchPolicy:"network-only"})});ie(ve.queryId===se),we.setObservableQuery(ve),c.set(se,ve)}),__DEV__&&D.size&&D.forEach(function(z,se){z||__DEV__&&ie.warn("Unknown query ".concat("string"==typeof se?"named ":"").concat(JSON.stringify(se,null,2)," requested in refetchQueries options.include array"))}),c},u.prototype.reFetchObservableQueries=function(t){var s=this;void 0===t&&(t=!1);var c=[];return this.getObservableQueries(t?"all":"active").forEach(function(D,N){var z=D.options.fetchPolicy;D.resetLastResults(),(t||"standby"!==z&&"cache-only"!==z)&&c.push(D.refetch()),s.getQuery(N).setDiff(null)}),this.broadcastQueries(),Promise.all(c)},u.prototype.setObservableQuery=function(t){this.getQuery(t.queryId).setObservableQuery(t)},u.prototype.startGraphQLSubscription=function(t){var s=this,c=t.query,D=t.fetchPolicy,N=t.errorPolicy,z=t.variables,se=t.context,we=void 0===se?{}:se;c=this.transform(c).document,z=this.getVariables(c,z);var ve=function(De){return s.getObservableFromLink(c,we,De).map(function(Te){if("no-cache"!==D&&(Pn(Te,N)&&s.cache.write({query:c,result:Te.data,dataId:"ROOT_SUBSCRIPTION",variables:De}),s.broadcastQueries()),Xr(Te))throw new rr({graphQLErrors:Te.errors});return Te})};if(this.transform(c).hasClientExports){var Ae=this.localState.addExportedVariables(c,z,we).then(ve);return new nt(function(De){var Te=null;return Ae.then(function(ke){return Te=ke.subscribe(De)},De.error),function(){return Te&&Te.unsubscribe()}})}return ve(z)},u.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},u.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},u.prototype.removeQuery=function(t){this.fetchCancelFns.delete(t),this.queries.has(t)&&(this.getQuery(t).stop(),this.queries.delete(t))},u.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(t){return t.notify()})},u.prototype.getLocalState=function(){return this.localState},u.prototype.getObservableFromLink=function(t,s,c,D){var z,N=this;void 0===D&&(D=null!==(z=s?.queryDeduplication)&&void 0!==z?z:this.queryDeduplication);var se,we=this.transform(t).serverQuery;if(we){var Ae=this.inFlightLinkObservables,De=this.link,Te={query:we,variables:c,operationName:lr(we)||void 0,context:this.prepareContext(w(w({},s),{forceFetch:!D}))};if(s=Te.context,D){var ke=Ae.get(we)||new Map;Ae.set(we,ke);var Be=er(c);if(!(se=ke.get(Be))){var Le=new Ir([$t(De,Te)]);ke.set(Be,se=Le),Le.cleanup(function(){ke.delete(Be)&&ke.size<1&&Ae.delete(we)})}}else se=new Ir([$t(De,Te)])}else se=new Ir([nt.of({data:{}})]),s=this.prepareContext(s);var Ve=this.transform(t).clientQuery;return Ve&&(se=wn(se,function(Qe){return N.localState.runResolvers({document:Ve,remoteResult:Qe,context:s,variables:c})})),se},u.prototype.getResultsFromLink=function(t,s,c){var D=t.lastRequestId=this.generateRequestId();return wn(this.getObservableFromLink(t.document,c.context,c.variables),function(N){var z=tr(N.errors);if(D>=t.lastRequestId){if(z&&"none"===c.errorPolicy)throw t.markError(new rr({graphQLErrors:N.errors}));t.markResult(N,c,s),t.markReady()}var se={data:N.data,loading:!1,networkStatus:rt.ready};return z&&"ignore"!==c.errorPolicy&&(se.errors=N.errors,se.networkStatus=rt.error),se},function(N){var z=ai(N)?N:new rr({networkError:N});throw D>=t.lastRequestId&&t.markError(z),z})},u.prototype.fetchQueryObservable=function(t,s,c){var D=this;void 0===c&&(c=rt.loading);var N=this.transform(s.query).document,z=this.getVariables(N,s.variables),se=this.getQuery(t),we=this.defaultOptions.watchQuery,ve=s.fetchPolicy,De=s.errorPolicy,ke=s.returnPartialData,Le=s.notifyOnNetworkStatusChange,Qe=s.context,We=Object.assign({},s,{query:N,variables:z,fetchPolicy:void 0===ve?we&&we.fetchPolicy||"cache-first":ve,errorPolicy:void 0===De?we&&we.errorPolicy||"none":De,returnPartialData:void 0!==ke&&ke,notifyOnNetworkStatusChange:void 0!==Le&&Le,context:void 0===Qe?{}:Qe}),He=function(Je){We.variables=Je;var it=D.fetchQueryByPolicy(se,We,c);return"standby"!==We.fetchPolicy&&it.length>0&&se.observableQuery&&se.observableQuery.applyNextFetchPolicy("after-fetch",s),it},Ze=function(){return D.fetchCancelFns.delete(t)};this.fetchCancelFns.set(t,function(Je){Ze(),setTimeout(function(){return Ye.cancel(Je)})});var Ye=new Ir(this.transform(We.query).hasClientExports?this.localState.addExportedVariables(We.query,We.variables,We.context).then(He):He(We.variables));return Ye.promise.then(Ze,Ze),Ye},u.prototype.refetchQueries=function(t){var s=this,c=t.updateCache,D=t.include,N=t.optimistic,z=void 0!==N&&N,se=t.removeOptimistic,we=void 0===se?z?xn("refetchQueries"):void 0:se,ve=t.onQueryUpdated,Ae=new Map;D&&this.getObservableQueries(D).forEach(function(Te,ke){Ae.set(ke,{oq:Te,lastDiff:s.getQuery(ke).getDiff()})});var De=new Map;return c&&this.cache.batch({update:c,optimistic:z&&we||!1,removeOptimistic:we,onWatchUpdated:function(Te,ke,Be){var Le=Te.watcher instanceof In&&Te.watcher.observableQuery;if(Le){if(ve){Ae.delete(Le.queryId);var Ve=ve(Le,ke,Be);return!0===Ve&&(Ve=Le.refetch()),!1!==Ve&&De.set(Le,Ve),Ve}null!==ve&&Ae.set(Le.queryId,{oq:Le,lastDiff:Be,diff:ke})}}}),Ae.size&&Ae.forEach(function(Te,ke){var Qe,Be=Te.oq,Le=Te.lastDiff,Ve=Te.diff;if(ve){if(!Ve){var $e=Be.queryInfo;$e.reset(),Ve=$e.getDiff()}Qe=ve(Be,Ve,Le)}(!ve||!0===Qe)&&(Qe=Be.refetch()),!1!==Qe&&De.set(Be,Qe),ke.indexOf("legacyOneTimeQuery")>=0&&s.stopQueryNoBroadcast(ke)}),we&&this.cache.removeOptimistic(we),De},u.prototype.fetchQueryByPolicy=function(t,s,c){var D=this,N=s.query,z=s.variables,se=s.fetchPolicy,we=s.refetchWritePolicy,ve=s.errorPolicy,Ae=s.returnPartialData,De=s.context,Te=s.notifyOnNetworkStatusChange,ke=t.networkStatus;t.init({document:this.transform(N).document,variables:z,networkStatus:c});var Be=function(){return t.getDiff(z)},Le=function(He,Ze){void 0===Ze&&(Ze=t.networkStatus||rt.loading);var Ye=He.result;__DEV__&&!Ae&&!(0,lt.D)(Ye,{})&&ui(He.missing);var Je=function(it){return nt.of(w({data:it,loading:Pr(Ze),networkStatus:Ze},He.complete?null:{partial:!0}))};return Ye&&D.transform(N).hasForcedResolvers?D.localState.runResolvers({document:N,remoteResult:{data:Ye},context:De,variables:z,onlyRunForcedResolvers:!0}).then(function(it){return Je(it.data||void 0)}):Je(Ye)},Ve="no-cache"===se?0:c===rt.refetch&&"merge"!==we?1:2,Qe=function(){return D.getResultsFromLink(t,Ve,{variables:z,context:De,fetchPolicy:se,errorPolicy:ve})},$e=Te&&"number"==typeof ke&&ke!==c&&Pr(c);switch(se){default:case"cache-first":return(We=Be()).complete?[Le(We,t.markReady())]:Ae||$e?[Le(We),Qe()]:[Qe()];case"cache-and-network":var We;return(We=Be()).complete||Ae||$e?[Le(We),Qe()]:[Qe()];case"cache-only":return[Le(Be(),t.markReady())];case"network-only":return $e?[Le(Be()),Qe()]:[Qe()];case"no-cache":return $e?[Le(t.getDiff()),Qe()]:[Qe()];case"standby":return[]}},u.prototype.getQuery=function(t){return t&&!this.queries.has(t)&&this.queries.set(t,new In(this,t)),this.queries.get(t)},u.prototype.prepareContext=function(t){void 0===t&&(t={});var s=this.localState.prepareContext(t);return w(w({},s),{clientAwareness:this.clientAwareness})},u}();function en(u,t){return Jr(u,t,t.variables&&{variables:w(w({},u&&u.variables),t.variables)})}var Dn,di=!1,ma=function(){function u(t){var s=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var c=t.uri,z=t.cache,se=t.ssrMode,we=void 0!==se&&se,ve=t.ssrForceFetchDelay,Ae=void 0===ve?0:ve,De=t.connectToDevTools,Te=void 0===De?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:De,ke=t.queryDeduplication,Be=void 0===ke||ke,Le=t.defaultOptions,Ve=t.assumeImmutableResults,Qe=void 0!==Ve&&Ve,$e=t.resolvers,We=t.typeDefs,He=t.fragmentMatcher,Ze=t.name,Ye=t.version,Je=t.link;if(Je||(Je=c?new qn({uri:c,credentials:t.credentials,headers:t.headers}):gt.empty()),!z)throw __DEV__?new J("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new J(7);if(this.link=Je,this.cache=z,this.disableNetworkFetches=we||Ae>0,this.queryDeduplication=Be,this.defaultOptions=Le||Object.create(null),this.typeDefs=We,Ae&&setTimeout(function(){return s.disableNetworkFetches=!1},Ae),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),Te&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!di&&__DEV__&&(di=!0,typeof window<"u"&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var it=window.navigator,Et=it&&it.userAgent,st=void 0;"string"==typeof Et&&(Et.indexOf("Chrome/")>-1?st="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":Et.indexOf("Firefox/")>-1&&(st="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),st&&__DEV__&&ie.log("Download the Apollo DevTools for a better development experience: "+st)}this.version=Cr,this.localState=new hi({cache:z,client:this,resolvers:$e,fragmentMatcher:He}),this.queryManager=new ya({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:Be,ssrMode:we,clientAwareness:{name:Ze,version:Ye},localState:this.localState,assumeImmutableResults:Qe,onBroadcast:Te?function(){s.devToolsHookCb&&s.devToolsHookCb({action:{},state:{queries:s.queryManager.getQueryStore(),mutations:s.queryManager.mutationStore||{}},dataWithOptimisticResults:s.cache.extract(!0)})}:void 0})}return u.prototype.stop=function(){this.queryManager.stop()},u.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=en(this.defaultOptions.watchQuery,t)),this.disableNetworkFetches&&("network-only"===t.fetchPolicy||"cache-and-network"===t.fetchPolicy)&&(t=w(w({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},u.prototype.query=function(t){return this.defaultOptions.query&&(t=en(this.defaultOptions.query,t)),__DEV__?ie("cache-and-network"!==t.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):ie("cache-and-network"!==t.fetchPolicy,8),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=w(w({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},u.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=en(this.defaultOptions.mutate,t)),this.queryManager.mutate(t)},u.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},u.prototype.readQuery=function(t,s){return void 0===s&&(s=!1),this.cache.readQuery(t,s)},u.prototype.readFragment=function(t,s){return void 0===s&&(s=!1),this.cache.readFragment(t,s)},u.prototype.writeQuery=function(t){this.cache.writeQuery(t),this.queryManager.broadcastQueries()},u.prototype.writeFragment=function(t){this.cache.writeFragment(t),this.queryManager.broadcastQueries()},u.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},u.prototype.__requestRaw=function(t){return $t(this.link,t)},u.prototype.resetStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(t.resetStoreCallbacks.map(function(s){return s()}))}).then(function(){return t.reFetchObservableQueries()})},u.prototype.clearStore=function(){var t=this;return Promise.resolve().then(function(){return t.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(t.clearStoreCallbacks.map(function(s){return s()}))})},u.prototype.onResetStore=function(t){var s=this;return this.resetStoreCallbacks.push(t),function(){s.resetStoreCallbacks=s.resetStoreCallbacks.filter(function(c){return c!==t})}},u.prototype.onClearStore=function(t){var s=this;return this.clearStoreCallbacks.push(t),function(){s.clearStoreCallbacks=s.clearStoreCallbacks.filter(function(c){return c!==t})}},u.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},u.prototype.refetchQueries=function(t){var s=this.queryManager.refetchQueries(t),c=[],D=[];s.forEach(function(z,se){c.push(se),D.push(z)});var N=Promise.all(D);return N.queries=c,N.results=D,N.catch(function(z){__DEV__&&ie.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(z))}),N},u.prototype.getObservableQueries=function(t){return void 0===t&&(t="active"),this.queryManager.getObservableQueries(t)},u.prototype.extract=function(t){return this.cache.extract(t)},u.prototype.restore=function(t){return this.cache.restore(t)},u.prototype.addResolvers=function(t){this.localState.addResolvers(t)},u.prototype.setResolvers=function(t){this.localState.setResolvers(t)},u.prototype.getResolvers=function(){return this.localState.getResolvers()},u.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},u.prototype.setLink=function(t){this.link=this.queryManager.link=t},u}();Dn||(Dn={});var vi=function(){function u(){this.getFragmentDoc=(0,yr.re)(sn)}return u.prototype.batch=function(t){var D,s=this;return this.performTransaction(function(){return D=t.update(s)},"string"==typeof t.optimistic?t.optimistic:!1===t.optimistic?null:void 0),D},u.prototype.recordOptimisticTransaction=function(t,s){this.performTransaction(t,s)},u.prototype.transformDocument=function(t){return t},u.prototype.identify=function(t){},u.prototype.gc=function(){return[]},u.prototype.modify=function(t){return!1},u.prototype.transformForLink=function(t){return t},u.prototype.readQuery=function(t,s){return void 0===s&&(s=!!t.optimistic),this.read(w(w({},t),{rootId:t.id||"ROOT_QUERY",optimistic:s}))},u.prototype.readFragment=function(t,s){return void 0===s&&(s=!!t.optimistic),this.read(w(w({},t),{query:this.getFragmentDoc(t.fragment,t.fragmentName),rootId:t.id,optimistic:s}))},u.prototype.writeQuery=function(t){var s=t.id,c=t.data,D=f(t,["id","data"]);return this.write(Object.assign(D,{dataId:s||"ROOT_QUERY",result:c}))},u.prototype.writeFragment=function(t){var s=t.id,c=t.data,D=t.fragment,N=t.fragmentName,z=f(t,["id","data","fragment","fragmentName"]);return this.write(Object.assign(z,{query:this.getFragmentDoc(D,N),dataId:s,result:c}))},u.prototype.updateQuery=function(t,s){return this.batch({update:function(c){var D=c.readQuery(t),N=s(D);return null==N?D:(c.writeQuery(w(w({},t),{data:N})),N)}})},u.prototype.updateFragment=function(t,s){return this.batch({update:function(c){var D=c.readFragment(t),N=s(D);return null==N?D:(c.writeFragment(w(w({},t),{data:N})),N)}})},u}(),Mn=function u(t,s,c,D){this.message=t,this.path=s,this.query=c,this.variables=D};function kn(u){return __DEV__&&function ga(u){var t=new Set([u]);return t.forEach(function(s){ot(s)&&function ba(u){if(__DEV__&&!Object.isFrozen(u))try{Object.freeze(u)}catch(t){if(t instanceof TypeError)return null;throw t}return u}(s)===s&&Object.getOwnPropertyNames(s).forEach(function(c){ot(s[c])&&t.add(s[c])})}),u}(u),u}var tn=Object.create(null),Fn=function(){return tn},yi=Object.create(null),Mr=function(){function u(t,s){var c=this;this.policies=t,this.group=s,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(D,N){return kn(et(D)?c.get(D.__ref,N):D&&D[N])},this.canRead=function(D){return et(D)?c.has(D.__ref):"object"==typeof D},this.toReference=function(D,N){if("string"==typeof D)return It(D);if(et(D))return D;var z=c.policies.identify(D)[0];if(z){var se=It(z);return N&&c.merge(z,D),se}}}return u.prototype.toObject=function(){return w({},this.data)},u.prototype.has=function(t){return void 0!==this.lookup(t,!0)},u.prototype.get=function(t,s){if(this.group.depend(t,s),ht.call(this.data,t)){var c=this.data[t];if(c&&ht.call(c,s))return c[s]}return"__typename"===s&&ht.call(this.policies.rootTypenamesById,t)?this.policies.rootTypenamesById[t]:this instanceof Qt?this.parent.get(t,s):void 0},u.prototype.lookup=function(t,s){return s&&this.group.depend(t,"__exists"),ht.call(this.data,t)?this.data[t]:this instanceof Qt?this.parent.lookup(t,s):this.policies.rootTypenamesById[t]?Object.create(null):void 0},u.prototype.merge=function(t,s){var D,c=this;et(t)&&(t=t.__ref),et(s)&&(s=s.__ref);var N="string"==typeof t?this.lookup(D=t):t,z="string"==typeof s?this.lookup(D=s):s;if(z){__DEV__?ie("string"==typeof D,"store.merge expects a string ID"):ie("string"==typeof D,1);var se=new dr(_a).merge(N,z);if(this.data[D]=se,se!==N&&(delete this.refs[D],this.group.caching)){var we=Object.create(null);N||(we.__exists=1),Object.keys(z).forEach(function(ve){if(!N||N[ve]!==se[ve]){we[ve]=1;var Ae=Wt(ve);Ae!==ve&&!c.policies.hasKeyArgs(se.__typename,Ae)&&(we[Ae]=1),void 0===se[ve]&&!(c instanceof Qt)&&delete se[ve]}}),we.__typename&&!(N&&N.__typename)&&this.policies.rootTypenamesById[D]===se.__typename&&delete we.__typename,Object.keys(we).forEach(function(ve){return c.group.dirty(D,ve)})}}},u.prototype.modify=function(t,s){var c=this,D=this.lookup(t);if(D){var N=Object.create(null),z=!1,se=!0,we={DELETE:tn,INVALIDATE:yi,isReference:et,toReference:this.toReference,canRead:this.canRead,readField:function(ve,Ae){return c.policies.readField("string"==typeof ve?{fieldName:ve,from:Ae||It(t)}:ve,{store:c})}};if(Object.keys(D).forEach(function(ve){var Ae=Wt(ve),De=D[ve];if(void 0!==De){var Te="function"==typeof s?s:s[ve]||s[Ae];if(Te){var ke=Te===Fn?tn:Te(kn(De),w(w({},we),{fieldName:Ae,storeFieldName:ve,storage:c.getStorage(t,ve)}));ke===yi?c.group.dirty(t,ve):(ke===tn&&(ke=void 0),ke!==De&&(N[ve]=ke,z=!0,De=ke))}void 0!==De&&(se=!1)}}),z)return this.merge(t,N),se&&(this instanceof Qt?this.data[t]=void 0:delete this.data[t],this.group.dirty(t,"__exists")),!0}return!1},u.prototype.delete=function(t,s,c){var D,N=this.lookup(t);if(N){var z=this.getFieldValue(N,"__typename"),se=s&&c?this.policies.getStoreFieldName({typename:z,fieldName:s,args:c}):s;return this.modify(t,se?((D={})[se]=Fn,D):Fn)}return!1},u.prototype.evict=function(t,s){var c=!1;return t.id&&(ht.call(this.data,t.id)&&(c=this.delete(t.id,t.fieldName,t.args)),this instanceof Qt&&this!==s&&(c=this.parent.evict(t,s)||c),(t.fieldName||c)&&this.group.dirty(t.id,t.fieldName||"__exists")),c},u.prototype.clear=function(){this.replace(null)},u.prototype.extract=function(){var t=this,s=this.toObject(),c=[];return this.getRootIdSet().forEach(function(D){ht.call(t.policies.rootTypenamesById,D)||c.push(D)}),c.length&&(s.__META={extraRootIds:c.sort()}),s},u.prototype.replace=function(t){var s=this;if(Object.keys(this.data).forEach(function(N){t&&ht.call(t,N)||s.delete(N)}),t){var c=t.__META,D=f(t,["__META"]);Object.keys(D).forEach(function(N){s.merge(N,D[N])}),c&&c.extraRootIds.forEach(this.retain,this)}},u.prototype.retain=function(t){return this.rootIds[t]=(this.rootIds[t]||0)+1},u.prototype.release=function(t){if(this.rootIds[t]>0){var s=--this.rootIds[t];return s||delete this.rootIds[t],s}return 0},u.prototype.getRootIdSet=function(t){return void 0===t&&(t=new Set),Object.keys(this.rootIds).forEach(t.add,t),this instanceof Qt?this.parent.getRootIdSet(t):Object.keys(this.policies.rootTypenamesById).forEach(t.add,t),t},u.prototype.gc=function(){var t=this,s=this.getRootIdSet(),c=this.toObject();s.forEach(function(z){ht.call(c,z)&&(Object.keys(t.findChildRefIds(z)).forEach(s.add,s),delete c[z])});var D=Object.keys(c);if(D.length){for(var N=this;N instanceof Qt;)N=N.parent;D.forEach(function(z){return N.delete(z)})}return D},u.prototype.findChildRefIds=function(t){if(!ht.call(this.refs,t)){var s=this.refs[t]=Object.create(null),c=this.data[t];if(!c)return s;var D=new Set([c]);D.forEach(function(N){et(N)&&(s[N.__ref]=!0),ot(N)&&Object.keys(N).forEach(function(z){var se=N[z];ot(se)&&D.add(se)})})}return this.refs[t]},u.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},u}(),mi=function(){function u(t,s){void 0===s&&(s=null),this.caching=t,this.parent=s,this.d=null,this.resetCaching()}return u.prototype.resetCaching=function(){this.d=this.caching?(0,yr.dP)():null,this.keyMaker=new Yr.B(Zt)},u.prototype.depend=function(t,s){if(this.d){this.d(Ln(t,s));var c=Wt(s);c!==s&&this.d(Ln(t,c)),this.parent&&this.parent.depend(t,s)}},u.prototype.dirty=function(t,s){this.d&&this.d.dirty(Ln(t,s),"__exists"===s?"forget":"setDirty")},u}();function Ln(u,t){return t+"#"+u}function gi(u,t){kr(u)&&u.group.depend(t,"__exists")}!function(u){var t=function(s){function c(D){var z=D.resultCaching,we=D.seed,ve=s.call(this,D.policies,new mi(void 0===z||z))||this;return ve.stump=new Ea(ve),ve.storageTrie=new Yr.B(Zt),we&&ve.replace(we),ve}return K(c,s),c.prototype.addLayer=function(D,N){return this.stump.addLayer(D,N)},c.prototype.removeLayer=function(){return this},c.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},c}(u);u.Root=t}(Mr||(Mr={}));var Qt=function(u){function t(s,c,D,N){var z=u.call(this,c.policies,N)||this;return z.id=s,z.parent=c,z.replay=D,z.group=N,D(z),z}return K(t,u),t.prototype.addLayer=function(s,c){return new t(s,this,c,this.group)},t.prototype.removeLayer=function(s){var c=this,D=this.parent.removeLayer(s);return s===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(N){var z=c.data[N],se=D.lookup(N);se?z?z!==se&&Object.keys(z).forEach(function(we){(0,lt.D)(z[we],se[we])||c.group.dirty(N,we)}):(c.group.dirty(N,"__exists"),Object.keys(se).forEach(function(we){c.group.dirty(N,we)})):c.delete(N)}),D):D===this.parent?this:D.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return w(w({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(s){var c=this.parent.findChildRefIds(s);return ht.call(this.data,s)?w(w({},c),u.prototype.findChildRefIds.call(this,s)):c},t.prototype.getStorage=function(){for(var s=this.parent;s.parent;)s=s.parent;return s.getStorage.apply(s,arguments)},t}(Mr),Ea=function(u){function t(s){return u.call(this,"EntityStore.Stump",s,function(){},new mi(s.group.caching,s.group))||this}return K(t,u),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(Qt);function _a(u,t,s){var c=u[s],D=t[s];return(0,lt.D)(c,D)?c:D}function kr(u){return!!(u instanceof Mr&&u.group.caching)}function bi(u){return[u.selectionSet,u.objectOrReference,u.context,u.context.canonizeResults]}var wa=function(){function u(t){var s=this;this.knownResults=new(Zt?WeakMap:Map),this.config=Jr(t,{addTypename:!1!==t.addTypename,canonizeResults:Gn(t)}),this.canon=t.canon||new bn,this.executeSelectionSet=(0,yr.re)(function(c){var D,N=c.context.canonizeResults,z=bi(c);z[3]=!N;var se=(D=s.executeSelectionSet).peek.apply(D,z);return se?N?w(w({},se),{result:s.canon.admit(se.result)}):se:(gi(c.context.store,c.enclosingRef.__ref),s.execSelectionSetImpl(c))},{max:this.config.resultCacheMaxSize,keyArgs:bi,makeCacheKey:function(c,D,N,z){if(kr(N.store))return N.store.makeCacheKey(c,et(D)?D.__ref:D,N.varString,z)}}),this.executeSubSelectedArray=(0,yr.re)(function(c){return gi(c.context.store,c.enclosingRef.__ref),s.execSubSelectedArrayImpl(c)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(c){var D=c.field,N=c.array,z=c.context;if(kr(z.store))return z.store.makeCacheKey(D,N,z.varString)}})}return u.prototype.resetCanon=function(){this.canon=new bn},u.prototype.diffQueryAgainstStore=function(t){var s=t.store,c=t.query,D=t.rootId,N=void 0===D?"ROOT_QUERY":D,z=t.variables,se=t.returnPartialData,we=void 0===se||se,ve=t.canonizeResults,Ae=void 0===ve?this.config.canonizeResults:ve,De=this.config.cache.policies;z=w(w({},Tr(xr(c))),z);var Be,Te=It(N),ke=this.executeSelectionSet({selectionSet:Yt(c).selectionSet,objectOrReference:Te,enclosingRef:Te,context:{store:s,query:c,policies:De,variables:z,varString:er(z),canonizeResults:Ae,fragmentMap:Ht(Lt(c))}});if(ke.missing&&(Be=[new Mn(Sa(ke.missing),ke.missing,c,z)],!we))throw Be[0];return{result:ke.result,complete:!Be,missing:Be}},u.prototype.isFresh=function(t,s,c,D){if(kr(D.store)&&this.knownResults.get(t)===c){var N=this.executeSelectionSet.peek(c,s,D,this.canon.isKnown(t));if(N&&t===N.result)return!0}return!1},u.prototype.execSelectionSetImpl=function(t){var s=this,c=t.selectionSet,D=t.objectOrReference,N=t.enclosingRef,z=t.context;if(et(D)&&!z.policies.rootTypenamesById[D.__ref]&&!z.store.has(D.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(D.__ref," object")};var Te,se=z.variables,we=z.policies,Ae=z.store.getFieldValue(D,"__typename"),De=[],ke=new dr;function Be(We,He){var Ze;return We.missing&&(Te=ke.merge(Te,((Ze={})[He]=We.missing,Ze))),We.result}this.config.addTypename&&"string"==typeof Ae&&!we.rootIdsByTypename[Ae]&&De.push({__typename:Ae});var Le=new Set(c.selections);Le.forEach(function(We){var He,Ze;if($r(We,se))if(At(We)){var Ye=we.readField({fieldName:We.name.value,field:We,variables:z.variables,from:D},z),Je=kt(We);void 0===Ye?An.added(We)||(Te=ke.merge(Te,((He={})[Je]="Can't find field '".concat(We.name.value,"' on ").concat(et(D)?D.__ref+" object":"object "+JSON.stringify(D,null,2)),He))):ct(Ye)?Ye=Be(s.executeSubSelectedArray({field:We,array:Ye,enclosingRef:N,context:z}),Je):We.selectionSet?null!=Ye&&(Ye=Be(s.executeSelectionSet({selectionSet:We.selectionSet,objectOrReference:Ye,enclosingRef:et(Ye)?Ye:N,context:z}),Je)):z.canonizeResults&&(Ye=s.canon.pass(Ye)),void 0!==Ye&&De.push(((Ze={})[Je]=Ye,Ze))}else{var it=ur(We,z.fragmentMap);it&&we.fragmentMatches(it,Ae)&&it.selectionSet.selections.forEach(Le.add,Le)}});var Qe={result:yn(De),missing:Te},$e=z.canonizeResults?this.canon.admit(Qe):kn(Qe);return $e.result&&this.knownResults.set($e.result,c),$e},u.prototype.execSubSelectedArrayImpl=function(t){var se,s=this,c=t.field,D=t.array,N=t.enclosingRef,z=t.context,we=new dr;function ve(Ae,De){var Te;return Ae.missing&&(se=we.merge(se,((Te={})[De]=Ae.missing,Te))),Ae.result}return c.selectionSet&&(D=D.filter(z.store.canRead)),D=D.map(function(Ae,De){return null===Ae?null:ct(Ae)?ve(s.executeSubSelectedArray({field:c,array:Ae,enclosingRef:N,context:z}),De):c.selectionSet?ve(s.executeSelectionSet({selectionSet:c.selectionSet,objectOrReference:Ae,enclosingRef:et(Ae)?Ae:N,context:z}),De):(__DEV__&&function Oa(u,t,s){if(!t.selectionSet){var c=new Set([s]);c.forEach(function(D){ot(D)&&(__DEV__?ie(!et(D),"Missing selection set for object of type ".concat(function Yi(u,t){return et(t)?u.get(t.__ref,"__typename"):t&&t.__typename}(u,D)," returned for query field ").concat(t.name.value)):ie(!et(D),5),Object.values(D).forEach(c.add,c))})}}(z.store,c,Ae),Ae)}),{result:z.canonizeResults?this.canon.admit(D):D,missing:se}},u}();function Sa(u){try{JSON.stringify(u,function(t,s){if("string"==typeof s)throw s;return s})}catch(t){return t}}var Ei=Object.create(null);function Nn(u){var t=JSON.stringify(u);return Ei[t]||(Ei[t]=Object.create(null))}function _i(u){var t=Nn(u);return t.keyFieldsFn||(t.keyFieldsFn=function(s,c){var D=function(z,se){return c.readField(se,z)},N=c.keyObject=Bn(u,function(z){var se=gr(c.storeObject,z,D);return void 0===se&&s!==c.storeObject&&ht.call(s,z[0])&&(se=gr(s,z,Oi)),__DEV__?ie(void 0!==se,"Missing field '".concat(z.join("."),"' while extracting keyFields from ").concat(JSON.stringify(s))):ie(void 0!==se,2),se});return"".concat(c.typename,":").concat(JSON.stringify(N))})}function wi(u){var t=Nn(u);return t.keyArgsFn||(t.keyArgsFn=function(s,c){var D=c.field,N=c.variables,z=c.fieldName,se=Bn(u,function(ve){var Ae=ve[0],De=Ae.charAt(0);if("@"!==De)if("$"!==De){if(s)return gr(s,ve)}else{var Le=Ae.slice(1);if(N&&ht.call(N,Le)){var Ve=ve.slice(0);return Ve[0]=Le,gr(N,Ve)}}else if(D&&tr(D.directives)){var Te=Ae.slice(1),ke=D.directives.find(function(Qe){return Qe.name.value===Te}),Be=ke&&Gt(ke,N);return Be&&gr(Be,ve.slice(1))}}),we=JSON.stringify(se);return(s||"{}"!==we)&&(z+=":"+we),z})}function Bn(u,t){var s=new dr;return Si(u).reduce(function(c,D){var N,z=t(D);if(void 0!==z){for(var se=D.length-1;se>=0;--se)(N={})[D[se]]=z,z=N;c=s.merge(c,z)}return c},Object.create(null))}function Si(u){var t=Nn(u);if(!t.paths){var s=t.paths=[],c=[];u.forEach(function(D,N){ct(D)?(Si(D).forEach(function(z){return s.push(c.concat(z))}),c.length=0):(c.push(D),ct(u[N+1])||(s.push(c.slice(0)),c.length=0))})}return t.paths}function Oi(u,t){return u[t]}function gr(u,t,s){return s=s||Oi,Ai(t.reduce(function c(D,N){return ct(D)?D.map(function(z){return c(z,N)}):D&&s(D,N)},u))}function Ai(u){return ot(u)?ct(u)?u.map(Ai):Bn(Object.keys(u).sort(),function(t){return gr(u,t)}):u}function jn(u){return void 0!==u.args?u.args:u.field?Gt(u.field,u.variables):null}Or.setStringify(er);var xa=function(){},xi=function(u,t){return t.fieldName},Ti=function(u,t,s){return(0,s.mergeObjects)(u,t)},Ci=function(u,t){return t},Ta=function(){function u(t){this.config=t,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=w({dataIdFromObject:mn},t),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),t.possibleTypes&&this.addPossibleTypes(t.possibleTypes),t.typePolicies&&this.addTypePolicies(t.typePolicies)}return u.prototype.identify=function(t,s){var c,D=this,N=s&&(s.typename||(null===(c=s.storeObject)||void 0===c?void 0:c.__typename))||t.__typename;if(N===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var we,z=s&&s.storeObject||t,se=w(w({},s),{typename:N,storeObject:z,readField:s&&s.readField||function(){var Te=Un(arguments,z);return D.readField(Te,{store:D.cache.data,variables:Te.variables})}}),ve=N&&this.getTypePolicy(N),Ae=ve&&ve.keyFn||this.config.dataIdFromObject;Ae;){var De=Ae(t,se);if(!ct(De)){we=De;break}Ae=_i(De)}return we=we?String(we):void 0,se.keyObject?[we,se.keyObject]:[we]},u.prototype.addTypePolicies=function(t){var s=this;Object.keys(t).forEach(function(c){var D=t[c],N=D.queryType,z=D.mutationType,se=D.subscriptionType,we=f(D,["queryType","mutationType","subscriptionType"]);N&&s.setRootTypename("Query",c),z&&s.setRootTypename("Mutation",c),se&&s.setRootTypename("Subscription",c),ht.call(s.toBeAdded,c)?s.toBeAdded[c].push(we):s.toBeAdded[c]=[we]})},u.prototype.updateTypePolicy=function(t,s){var c=this,D=this.getTypePolicy(t),N=s.keyFields,z=s.fields;function se(we,ve){we.merge="function"==typeof ve?ve:!0===ve?Ti:!1===ve?Ci:we.merge}se(D,s.merge),D.keyFn=!1===N?xa:ct(N)?_i(N):"function"==typeof N?N:D.keyFn,z&&Object.keys(z).forEach(function(we){var ve=c.getFieldPolicy(t,we,!0),Ae=z[we];if("function"==typeof Ae)ve.read=Ae;else{var De=Ae.keyArgs,Te=Ae.read,ke=Ae.merge;ve.keyFn=!1===De?xi:ct(De)?wi(De):"function"==typeof De?De:ve.keyFn,"function"==typeof Te&&(ve.read=Te),se(ve,ke)}ve.read&&ve.merge&&(ve.keyFn=ve.keyFn||xi)})},u.prototype.setRootTypename=function(t,s){void 0===s&&(s=t);var c="ROOT_"+t.toUpperCase(),D=this.rootTypenamesById[c];s!==D&&(__DEV__?ie(!D||D===t,"Cannot change root ".concat(t," __typename more than once")):ie(!D||D===t,3),D&&delete this.rootIdsByTypename[D],this.rootIdsByTypename[s]=c,this.rootTypenamesById[c]=s)},u.prototype.addPossibleTypes=function(t){var s=this;this.usingPossibleTypes=!0,Object.keys(t).forEach(function(c){s.getSupertypeSet(c,!0),t[c].forEach(function(D){s.getSupertypeSet(D,!0).add(c);var N=D.match(Yn);(!N||N[0]!==D)&&s.fuzzySubtypes.set(D,new RegExp(D))})})},u.prototype.getTypePolicy=function(t){var s=this;if(!ht.call(this.typePolicies,t)){var c=this.typePolicies[t]=Object.create(null);c.fields=Object.create(null);var D=this.supertypeMap.get(t);D&&D.size&&D.forEach(function(z){var se=s.getTypePolicy(z),we=se.fields,ve=f(se,["fields"]);Object.assign(c,ve),Object.assign(c.fields,we)})}var N=this.toBeAdded[t];return N&&N.length&&N.splice(0).forEach(function(z){s.updateTypePolicy(t,z)}),this.typePolicies[t]},u.prototype.getFieldPolicy=function(t,s,c){if(t){var D=this.getTypePolicy(t).fields;return D[s]||c&&(D[s]=Object.create(null))}},u.prototype.getSupertypeSet=function(t,s){var c=this.supertypeMap.get(t);return!c&&s&&this.supertypeMap.set(t,c=new Set),c},u.prototype.fragmentMatches=function(t,s,c,D){var N=this;if(!t.typeCondition)return!0;if(!s)return!1;var z=t.typeCondition.name.value;if(s===z)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(z))for(var se=this.getSupertypeSet(s,!0),we=[se],ve=function(Be){var Le=N.getSupertypeSet(Be,!1);Le&&Le.size&&we.indexOf(Le)<0&&we.push(Le)},Ae=!(!c||!this.fuzzySubtypes.size),De=!1,Te=0;Te<we.length;++Te){var ke=we[Te];if(ke.has(z))return se.has(z)||(De&&__DEV__&&ie.warn("Inferring subtype ".concat(s," of supertype ").concat(z)),se.add(z)),!0;ke.forEach(ve),Ae&&Te===we.length-1&&gn(t.selectionSet,c,D)&&(Ae=!1,De=!0,this.fuzzySubtypes.forEach(function(Be,Le){var Ve=s.match(Be);Ve&&Ve[0]===s&&ve(Le)}))}return!1},u.prototype.hasKeyArgs=function(t,s){var c=this.getFieldPolicy(t,s,!1);return!(!c||!c.keyFn)},u.prototype.getStoreFieldName=function(t){var N,s=t.typename,c=t.fieldName,D=this.getFieldPolicy(s,c,!1),z=D&&D.keyFn;if(z&&s)for(var se={typename:s,fieldName:c,field:t.field||null,variables:t.variables},we=jn(t);z;){var ve=z(we,se);if(!ct(ve)){N=ve||c;break}z=wi(ve)}return void 0===N&&(N=t.field?function Vr(u,t){var s=null;u.directives&&(s={},u.directives.forEach(function(D){s[D.name.value]={},D.arguments&&D.arguments.forEach(function(N){return Mt(s[D.name.value],N.name,N.value,t)})}));var c=null;return u.arguments&&u.arguments.length&&(c={},u.arguments.forEach(function(D){return Mt(c,D.name,D.value,t)})),Or(u.name.value,c,s)}(t.field,t.variables):Or(c,jn(t))),!1===N?c:c===Wt(N)?N:c+":"+N},u.prototype.readField=function(t,s){var c=t.from;if(c&&(t.field||t.fieldName)){if(void 0===t.typename){var N=s.store.getFieldValue(c,"__typename");N&&(t.typename=N)}var z=this.getStoreFieldName(t),se=Wt(z),we=s.store.getFieldValue(c,z),ve=this.getFieldPolicy(t.typename,se,!1),Ae=ve&&ve.read;if(Ae){var De=Ri(this,c,t,s,s.store.getStorage(et(c)?c.__ref:c,z));return Cn.withValue(this.cache,Ae,[we,De])}return we}},u.prototype.getReadFunction=function(t,s){var c=this.getFieldPolicy(t,s,!1);return c&&c.read},u.prototype.getMergeFunction=function(t,s,c){var D=this.getFieldPolicy(t,s,!1),N=D&&D.merge;return!N&&c&&(N=(D=this.getTypePolicy(c))&&D.merge),N},u.prototype.runMergeFunction=function(t,s,c,D,N){var z=c.field,se=c.typename,we=c.merge;return we===Ti?Ii(D.store)(t,s):we===Ci?s:(D.overwrite&&(t=void 0),we(t,s,Ri(this,void 0,{typename:se,fieldName:z.name.value,field:z,variables:D.variables},D,N||Object.create(null))))},u}();function Ri(u,t,s,c,D){var N=u.getStoreFieldName(s),z=Wt(N),se=s.variables||c.variables,we=c.store,ve=we.toReference,Ae=we.canRead;return{args:jn(s),field:s.field||null,fieldName:z,storeFieldName:N,variables:se,isReference:et,toReference:ve,storage:D,cache:u.cache,canRead:Ae,readField:function(){return u.readField(Un(arguments,t,se),c)},mergeObjects:Ii(c.store)}}function Un(u,t,s){var z,c=u[0];return"string"==typeof c?z={fieldName:c,from:u.length>1?u[1]:t}:(z=w({},c),ht.call(z,"from")||(z.from=t)),__DEV__&&void 0===z.from&&__DEV__&&ie.warn("Undefined 'from' passed to readField with arguments ".concat(function Aa(u){var t=xn("stringifyForDisplay");return JSON.stringify(u,function(s,c){return void 0===c?t:c}).split(JSON.stringify(t)).join("<undefined>")}(Array.from(u)))),void 0===z.variables&&(z.variables=s),z}function Ii(u){return function(s,c){if(ct(s)||ct(c))throw __DEV__?new J("Cannot automatically merge arrays"):new J(4);if(ot(s)&&ot(c)){var D=u.getFieldValue(s,"__typename"),N=u.getFieldValue(c,"__typename");if(D&&N&&D!==N)return c;if(et(s)&&vr(c))return u.merge(s.__ref,c),s;if(vr(s)&&et(c))return u.merge(s,c.__ref),c;if(vr(s)&&vr(c))return w(w({},s),c)}return c}}function Vn(u,t,s){var c="".concat(t).concat(s),D=u.flavors.get(c);return D||u.flavors.set(c,D=u.clientOnly===t&&u.deferred===s?u:w(w({},u),{clientOnly:t,deferred:s})),D}var Ca=function(){function u(t,s){this.cache=t,this.reader=s}return u.prototype.writeToStore=function(t,s){var c=this,D=s.query,N=s.result,z=s.dataId,se=s.variables,we=s.overwrite,ve=Ft(D),Ae=function Ji(){return new dr}();se=w(w({},Tr(ve)),se);var De={store:t,written:Object.create(null),merge:function(ke,Be){return Ae.merge(ke,Be)},variables:se,varString:er(se),fragmentMap:Ht(Lt(D)),overwrite:!!we,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map},Te=this.processSelectionSet({result:N||Object.create(null),dataId:z,selectionSet:ve.selectionSet,mergeTree:{map:new Map},context:De});if(!et(Te))throw __DEV__?new J("Could not identify object ".concat(JSON.stringify(N))):new J(6);return De.incomingById.forEach(function(ke,Be){var Le=ke.storeObject,Ve=ke.mergeTree,Qe=ke.fieldNodeSet,$e=It(Be);if(Ve&&Ve.map.size){var We=c.applyMerges(Ve,$e,Le,De);if(et(We))return;Le=We}if(__DEV__&&!De.overwrite){var He=Object.create(null);Qe.forEach(function(Je){Je.selectionSet&&(He[Je.name.value]=!0)}),Object.keys(Le).forEach(function(Je){(function(Je){return!0===He[Wt(Je)]})(Je)&&!function(Je){var it=Ve&&Ve.map.get(Je);return Boolean(it&&it.info&&it.info.merge)}(Je)&&function Ra(u,t,s,c){var D=function(De){var Te=c.getFieldValue(De,s);return"object"==typeof Te&&Te},N=D(u);if(N){var z=D(t);if(z&&!et(N)&&!(0,lt.D)(N,z)&&!Object.keys(N).every(function(De){return void 0!==c.getFieldValue(z,De)})){var se=c.getFieldValue(u,"__typename")||c.getFieldValue(t,"__typename"),we=Wt(s),ve="".concat(se,".").concat(we);if(!ki.has(ve)){ki.add(ve);var Ae=[];!ct(N)&&!ct(z)&&[N,z].forEach(function(De){var Te=c.getFieldValue(De,"__typename");"string"==typeof Te&&!Ae.includes(Te)&&Ae.push(Te)}),__DEV__&&ie.warn("Cache data may be lost when replacing the ".concat(we," field of a ").concat(se," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(Ae.length?"either ensure all objects of type "+Ae.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(ve," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(N).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(z).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}($e,Le,Je,De.store)})}t.merge(Be,Le)}),t.retain(Te.__ref),Te},u.prototype.processSelectionSet=function(t){var s=this,c=t.dataId,D=t.result,N=t.selectionSet,z=t.context,se=t.mergeTree,we=this.cache.policies,ve=Object.create(null),Ae=c&&we.rootTypenamesById[c]||Ar(D,N,z.fragmentMap)||c&&z.store.get(c,"__typename");"string"==typeof Ae&&(ve.__typename=Ae);var De=function(){var We=Un(arguments,ve,z.variables);if(et(We.from)){var He=z.incomingById.get(We.from.__ref);if(He){var Ze=we.readField(w(w({},We),{from:He.storeObject}),z);if(void 0!==Ze)return Ze}}return we.readField(We,z)},Te=new Set;this.flattenFields(N,D,z,Ae).forEach(function(We,He){var Ze,Ye=kt(He),Je=D[Ye];if(Te.add(He),void 0!==Je){var it=we.getStoreFieldName({typename:Ae,fieldName:He.name.value,field:He,variables:We.variables}),Et=Di(se,it),st=s.processFieldValue(Je,He,He.selectionSet?Vn(We,!1,!1):We,Et),Nt=void 0;He.selectionSet&&(et(st)||vr(st))&&(Nt=De("__typename",st));var nn=we.getMergeFunction(Ae,He.name.value,Nt);nn?Et.info={field:He,typename:Ae,merge:nn}:Mi(se,it),ve=We.merge(ve,((Ze={})[it]=st,Ze))}else __DEV__&&!We.clientOnly&&!We.deferred&&!An.added(He)&&!we.getReadFunction(Ae,He.name.value)&&__DEV__&&ie.error("Missing field '".concat(kt(He),"' while writing result ").concat(JSON.stringify(D,null,2)).substring(0,1e3))});try{var ke=we.identify(D,{typename:Ae,selectionSet:N,fragmentMap:z.fragmentMap,storeObject:ve,readField:De}),Le=ke[1];c=c||ke[0],Le&&(ve=z.merge(ve,Le))}catch(We){if(!c)throw We}if("string"==typeof c){var Ve=It(c),Qe=z.written[c]||(z.written[c]=[]);if(Qe.indexOf(N)>=0||(Qe.push(N),this.reader&&this.reader.isFresh(D,Ve,N,z)))return Ve;var $e=z.incomingById.get(c);return $e?($e.storeObject=z.merge($e.storeObject,ve),$e.mergeTree=Wn($e.mergeTree,se),Te.forEach(function(We){return $e.fieldNodeSet.add(We)})):z.incomingById.set(c,{storeObject:ve,mergeTree:rn(se)?void 0:se,fieldNodeSet:Te}),Ve}return ve},u.prototype.processFieldValue=function(t,s,c,D){var N=this;return s.selectionSet&&null!==t?ct(t)?t.map(function(z,se){var we=N.processFieldValue(z,s,c,Di(D,se));return Mi(D,se),we}):this.processSelectionSet({result:t,selectionSet:s.selectionSet,context:c,mergeTree:D}):__DEV__?oi(t):t},u.prototype.flattenFields=function(t,s,c,D){void 0===D&&(D=Ar(s,t,c.fragmentMap));var N=new Map,z=this.cache.policies,se=new Yr.B(!1);return function we(ve,Ae){var De=se.lookup(ve,Ae.clientOnly,Ae.deferred);De.visited||(De.visited=!0,ve.selections.forEach(function(Te){if($r(Te,c.variables)){var ke=Ae.clientOnly,Be=Ae.deferred;if(!(ke&&Be)&&tr(Te.directives)&&Te.directives.forEach(function(Qe){var $e=Qe.name.value;if("client"===$e&&(ke=!0),"defer"===$e){var We=Gt(Qe,c.variables);(!We||!1!==We.if)&&(Be=!0)}}),At(Te)){var Le=N.get(Te);Le&&(ke=ke&&Le.clientOnly,Be=Be&&Le.deferred),N.set(Te,Vn(c,ke,Be))}else{var Ve=ur(Te,c.fragmentMap);Ve&&z.fragmentMatches(Ve,D,s,c.variables)&&we(Ve.selectionSet,Vn(c,ke,Be))}}}))}(t,c),N},u.prototype.applyMerges=function(t,s,c,D,N){var z,se=this;if(t.map.size&&!et(c)){var we=ct(c)||!et(s)&&!vr(s)?void 0:s,ve=c;we&&!N&&(N=[et(we)?we.__ref:we]);var Ae,De=function(Te,ke){return ct(Te)?"number"==typeof ke?Te[ke]:void 0:D.store.getFieldValue(Te,String(ke))};t.map.forEach(function(Te,ke){var Be=De(we,ke),Le=De(ve,ke);if(void 0!==Le){N&&N.push(ke);var Ve=se.applyMerges(Te,Be,Le,D,N);Ve!==Le&&(Ae=Ae||new Map).set(ke,Ve),N&&ie(N.pop()===ke)}}),Ae&&(c=ct(ve)?ve.slice(0):w({},ve),Ae.forEach(function(Te,ke){c[ke]=Te}))}return t.info?this.cache.policies.runMergeFunction(s,c,t.info,D,N&&(z=D.store).getStorage.apply(z,N)):c},u}(),Pi=[];function Di(u,t){var s=u.map;return s.has(t)||s.set(t,Pi.pop()||{map:new Map}),s.get(t)}function Wn(u,t){if(u===t||!t||rn(t))return u;if(!u||rn(u))return t;var s=u.info&&t.info?w(w({},u.info),t.info):u.info||t.info,c=u.map.size&&t.map.size,N={info:s,map:c?new Map:u.map.size?u.map:t.map};if(c){var z=new Set(t.map.keys());u.map.forEach(function(se,we){N.map.set(we,Wn(se,t.map.get(we))),z.delete(we)}),z.forEach(function(se){N.map.set(se,Wn(t.map.get(se),u.map.get(se)))})}return N}function rn(u){return!u||!(u.info||u.map.size)}function Mi(u,t){var s=u.map,c=s.get(t);c&&rn(c)&&(Pi.push(c),s.delete(t))}var ki=new Set,Ia=function(u){function t(s){void 0===s&&(s={});var c=u.call(this)||this;return c.watches=new Set,c.typenameDocumentCache=new Map,c.makeVar=li,c.txCount=0,c.config=function Gi(u){return Jr(Hn,u)}(s),c.addTypename=!!c.config.addTypename,c.policies=new Ta({cache:c,dataIdFromObject:c.config.dataIdFromObject,possibleTypes:c.config.possibleTypes,typePolicies:c.config.typePolicies}),c.init(),c}return K(t,u),t.prototype.init=function(){var s=this.data=new Mr.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=s.stump,this.resetResultCache()},t.prototype.resetResultCache=function(s){var c=this,D=this.storeReader;this.storeWriter=new Ca(this,this.storeReader=new wa({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Gn(this.config),canon:s?void 0:D&&D.canon})),this.maybeBroadcastWatch=(0,yr.re)(function(N,z){return c.broadcastWatch(N,z)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(N){var z=N.optimistic?c.optimisticData:c.data;if(kr(z))return z.makeCacheKey(N.query,N.callback,er({optimistic:N.optimistic,rootId:N.rootId,variables:N.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(N){return N.resetCaching()})},t.prototype.restore=function(s){return this.init(),s&&this.data.replace(s),this},t.prototype.extract=function(s){return void 0===s&&(s=!1),(s?this.optimisticData:this.data).extract()},t.prototype.read=function(s){var c=s.returnPartialData,D=void 0!==c&&c;try{return this.storeReader.diffQueryAgainstStore(w(w({},s),{store:s.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:D})).result||null}catch(N){if(N instanceof Mn)return null;throw N}},t.prototype.write=function(s){try{return++this.txCount,this.storeWriter.writeToStore(this.data,s)}finally{!--this.txCount&&!1!==s.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(s){if(ht.call(s,"id")&&!s.id)return!1;var c=s.optimistic?this.optimisticData:this.data;try{return++this.txCount,c.modify(s.id||"ROOT_QUERY",s.fields)}finally{!--this.txCount&&!1!==s.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(s){return this.storeReader.diffQueryAgainstStore(w(w({},s),{store:s.optimistic?this.optimisticData:this.data,rootId:s.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(s){var c=this;return this.watches.size||function pa(u){Dr(u).vars.forEach(function(t){return t.attachCache(u)})}(this),this.watches.add(s),s.immediate&&this.maybeBroadcastWatch(s),function(){c.watches.delete(s)&&!c.watches.size&&fi(c),c.maybeBroadcastWatch.forget(s)}},t.prototype.gc=function(s){er.reset();var c=this.optimisticData.gc();return s&&!this.txCount&&(s.resetResultCache?this.resetResultCache(s.resetResultIdentities):s.resetResultIdentities&&this.storeReader.resetCanon()),c},t.prototype.retain=function(s,c){return(c?this.optimisticData:this.data).retain(s)},t.prototype.release=function(s,c){return(c?this.optimisticData:this.data).release(s)},t.prototype.identify=function(s){if(et(s))return s.__ref;try{return this.policies.identify(s)[0]}catch(c){__DEV__&&ie.warn(c)}},t.prototype.evict=function(s){if(!s.id){if(ht.call(s,"id"))return!1;s=w(w({},s),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(s,this.data)}finally{!--this.txCount&&!1!==s.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(s){var c=this;return this.init(),er.reset(),s&&s.discardWatches?(this.watches.forEach(function(D){return c.maybeBroadcastWatch.forget(D)}),this.watches.clear(),fi(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(s){var c=this.optimisticData.removeLayer(s);c!==this.optimisticData&&(this.optimisticData=c,this.broadcastWatches())},t.prototype.batch=function(s){var ve,c=this,D=s.update,N=s.optimistic,z=void 0===N||N,se=s.removeOptimistic,we=s.onWatchUpdated,Ae=function(Te){var Be=c.data,Le=c.optimisticData;++c.txCount,Te&&(c.data=c.optimisticData=Te);try{return ve=D(c)}finally{--c.txCount,c.data=Be,c.optimisticData=Le}},De=new Set;return we&&!this.txCount&&this.broadcastWatches(w(w({},s),{onWatchUpdated:function(Te){return De.add(Te),!1}})),"string"==typeof z?this.optimisticData=this.optimisticData.addLayer(z,Ae):!1===z?Ae(this.data):Ae(),"string"==typeof se&&(this.optimisticData=this.optimisticData.removeLayer(se)),we&&De.size?(this.broadcastWatches(w(w({},s),{onWatchUpdated:function(Te,ke){var Be=we.call(this,Te,ke);return!1!==Be&&De.delete(Te),Be}})),De.size&&De.forEach(function(Te){return c.maybeBroadcastWatch.dirty(Te)})):this.broadcastWatches(s),ve},t.prototype.performTransaction=function(s,c){return this.batch({update:s,optimistic:c||null!==c})},t.prototype.transformDocument=function(s){if(this.addTypename){var c=this.typenameDocumentCache.get(s);return c||(c=An(s),this.typenameDocumentCache.set(s,c),this.typenameDocumentCache.set(c,c)),c}return s},t.prototype.broadcastWatches=function(s){var c=this;this.txCount||this.watches.forEach(function(D){return c.maybeBroadcastWatch(D,s)})},t.prototype.broadcastWatch=function(s,c){var D=s.lastDiff,N=this.diff(s);c&&(s.optimistic&&"string"==typeof c.optimistic&&(N.fromOptimisticTransaction=!0),c.onWatchUpdated&&!1===c.onWatchUpdated.call(this,s,N,D))||(!D||!(0,lt.D)(D.result,N.result))&&s.callback(s.lastDiff=N,D)},t}(vi),Pa=gt.empty,Da=gt.from,Ma=gt.split,ka=gt.concat;function Fa(u){var t=!1;return new Promise(function(s,c){u.subscribe({next:function(D){t?__DEV__&&ie.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,s(D))},error:c})})}function La(u){return new nt(function(t){u.then(function(s){t.next(s),t.complete()}).catch(t.error.bind(t))})}var Fr=y(74109);ue(B?"log":"silent")},7535:le=>{"use strict";le.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"}}')},79476:le=>{"use strict";le.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2014-06-30","endpointPrefix":"cognito-identity","jsonVersion":"1.1","protocol":"json","serviceFullName":"Amazon Cognito Identity","serviceId":"Cognito Identity","signatureVersion":"v4","targetPrefix":"AWSCognitoIdentityService","uid":"cognito-identity-2014-06-30"},"operations":{"CreateIdentityPool":{"input":{"type":"structure","required":["IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"output":{"shape":"Sk"}},"DeleteIdentities":{"input":{"type":"structure","required":["IdentityIdsToDelete"],"members":{"IdentityIdsToDelete":{"type":"list","member":{}}}},"output":{"type":"structure","members":{"UnprocessedIdentityIds":{"type":"list","member":{"type":"structure","members":{"IdentityId":{},"ErrorCode":{}}}}}}},"DeleteIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}}},"DescribeIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{}}},"output":{"shape":"Sv"}},"DescribeIdentityPool":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"shape":"Sk"}},"GetCredentialsForIdentity":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"CustomRoleArn":{}}},"output":{"type":"structure","members":{"IdentityId":{},"Credentials":{"type":"structure","members":{"AccessKeyId":{},"SecretKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}}}},"authtype":"none"},"GetId":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"AccountId":{},"IdentityPoolId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{}}},"authtype":"none"},"GetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"GetOpenIdToken":{"input":{"type":"structure","required":["IdentityId"],"members":{"IdentityId":{},"Logins":{"shape":"S10"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}},"authtype":"none"},"GetOpenIdTokenForDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId","Logins"],"members":{"IdentityPoolId":{},"IdentityId":{},"Logins":{"shape":"S10"},"PrincipalTags":{"shape":"S1s"},"TokenDuration":{"type":"long"}}},"output":{"type":"structure","members":{"IdentityId":{},"Token":{}}}},"GetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"ListIdentities":{"input":{"type":"structure","required":["IdentityPoolId","MaxResults"],"members":{"IdentityPoolId":{},"MaxResults":{"type":"integer"},"NextToken":{},"HideDisabled":{"type":"boolean"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"Identities":{"type":"list","member":{"shape":"Sv"}},"NextToken":{}}}},"ListIdentityPools":{"input":{"type":"structure","required":["MaxResults"],"members":{"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityPools":{"type":"list","member":{"type":"structure","members":{"IdentityPoolId":{},"IdentityPoolName":{}}}},"NextToken":{}}}},"ListTagsForResource":{"input":{"type":"structure","required":["ResourceArn"],"members":{"ResourceArn":{}}},"output":{"type":"structure","members":{"Tags":{"shape":"Sh"}}}},"LookupDeveloperIdentity":{"input":{"type":"structure","required":["IdentityPoolId"],"members":{"IdentityPoolId":{},"IdentityId":{},"DeveloperUserIdentifier":{},"MaxResults":{"type":"integer"},"NextToken":{}}},"output":{"type":"structure","members":{"IdentityId":{},"DeveloperUserIdentifierList":{"type":"list","member":{}},"NextToken":{}}}},"MergeDeveloperIdentities":{"input":{"type":"structure","required":["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],"members":{"SourceUserIdentifier":{},"DestinationUserIdentifier":{},"DeveloperProviderName":{},"IdentityPoolId":{}}},"output":{"type":"structure","members":{"IdentityId":{}}}},"SetIdentityPoolRoles":{"input":{"type":"structure","required":["IdentityPoolId","Roles"],"members":{"IdentityPoolId":{},"Roles":{"shape":"S1c"},"RoleMappings":{"shape":"S1e"}}}},"SetPrincipalTagAttributeMap":{"input":{"type":"structure","required":["IdentityPoolId","IdentityProviderName"],"members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}},"output":{"type":"structure","members":{"IdentityPoolId":{},"IdentityProviderName":{},"UseDefaults":{"type":"boolean"},"PrincipalTags":{"shape":"S1s"}}}},"TagResource":{"input":{"type":"structure","required":["ResourceArn","Tags"],"members":{"ResourceArn":{},"Tags":{"shape":"Sh"}}},"output":{"type":"structure","members":{}}},"UnlinkDeveloperIdentity":{"input":{"type":"structure","required":["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],"members":{"IdentityId":{},"IdentityPoolId":{},"DeveloperProviderName":{},"DeveloperUserIdentifier":{}}}},"UnlinkIdentity":{"input":{"type":"structure","required":["IdentityId","Logins","LoginsToRemove"],"members":{"IdentityId":{},"Logins":{"shape":"S10"},"LoginsToRemove":{"shape":"Sw"}}},"authtype":"none"},"UntagResource":{"input":{"type":"structure","required":["ResourceArn","TagKeys"],"members":{"ResourceArn":{},"TagKeys":{"type":"list","member":{}}}},"output":{"type":"structure","members":{}}},"UpdateIdentityPool":{"input":{"shape":"Sk"},"output":{"shape":"Sk"}}},"shapes":{"S5":{"type":"map","key":{},"value":{}},"S9":{"type":"list","member":{}},"Sb":{"type":"list","member":{"type":"structure","members":{"ProviderName":{},"ClientId":{},"ServerSideTokenCheck":{"type":"boolean"}}}},"Sg":{"type":"list","member":{}},"Sh":{"type":"map","key":{},"value":{}},"Sk":{"type":"structure","required":["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],"members":{"IdentityPoolId":{},"IdentityPoolName":{},"AllowUnauthenticatedIdentities":{"type":"boolean"},"AllowClassicFlow":{"type":"boolean"},"SupportedLoginProviders":{"shape":"S5"},"DeveloperProviderName":{},"OpenIdConnectProviderARNs":{"shape":"S9"},"CognitoIdentityProviders":{"shape":"Sb"},"SamlProviderARNs":{"shape":"Sg"},"IdentityPoolTags":{"shape":"Sh"}}},"Sv":{"type":"structure","members":{"IdentityId":{},"Logins":{"shape":"Sw"},"CreationDate":{"type":"timestamp"},"LastModifiedDate":{"type":"timestamp"}}},"Sw":{"type":"list","member":{}},"S10":{"type":"map","key":{},"value":{}},"S1c":{"type":"map","key":{},"value":{}},"S1e":{"type":"map","key":{},"value":{"type":"structure","required":["Type"],"members":{"Type":{},"AmbiguousRoleResolution":{},"RulesConfiguration":{"type":"structure","required":["Rules"],"members":{"Rules":{"type":"list","member":{"type":"structure","required":["Claim","MatchType","Value","RoleARN"],"members":{"Claim":{},"MatchType":{},"Value":{},"RoleARN":{}}}}}}}}},"S1s":{"type":"map","key":{},"value":{}}}}')},85464:le=>{"use strict";le.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},6839:le=>{"use strict";le.exports=JSON.parse('{"acm":{"name":"ACM","cors":true},"apigateway":{"name":"APIGateway","cors":true},"applicationautoscaling":{"prefix":"application-autoscaling","name":"ApplicationAutoScaling","cors":true},"appstream":{"name":"AppStream"},"autoscaling":{"name":"AutoScaling","cors":true},"batch":{"name":"Batch"},"budgets":{"name":"Budgets"},"clouddirectory":{"name":"CloudDirectory","versions":["2016-05-10*"]},"cloudformation":{"name":"CloudFormation","cors":true},"cloudfront":{"name":"CloudFront","versions":["2013-05-12*","2013-11-11*","2014-05-31*","2014-10-21*","2014-11-06*","2015-04-17*","2015-07-27*","2015-09-17*","2016-01-13*","2016-01-28*","2016-08-01*","2016-08-20*","2016-09-07*","2016-09-29*","2016-11-25*","2017-03-25*","2017-10-30*","2018-06-18*","2018-11-05*","2019-03-26*"],"cors":true},"cloudhsm":{"name":"CloudHSM","cors":true},"cloudsearch":{"name":"CloudSearch"},"cloudsearchdomain":{"name":"CloudSearchDomain"},"cloudtrail":{"name":"CloudTrail","cors":true},"cloudwatch":{"prefix":"monitoring","name":"CloudWatch","cors":true},"cloudwatchevents":{"prefix":"events","name":"CloudWatchEvents","versions":["2014-02-03*"],"cors":true},"cloudwatchlogs":{"prefix":"logs","name":"CloudWatchLogs","cors":true},"codebuild":{"name":"CodeBuild","cors":true},"codecommit":{"name":"CodeCommit","cors":true},"codedeploy":{"name":"CodeDeploy","cors":true},"codepipeline":{"name":"CodePipeline","cors":true},"cognitoidentity":{"prefix":"cognito-identity","name":"CognitoIdentity","cors":true},"cognitoidentityserviceprovider":{"prefix":"cognito-idp","name":"CognitoIdentityServiceProvider","cors":true},"cognitosync":{"prefix":"cognito-sync","name":"CognitoSync","cors":true},"configservice":{"prefix":"config","name":"ConfigService","cors":true},"cur":{"name":"CUR","cors":true},"datapipeline":{"name":"DataPipeline"},"devicefarm":{"name":"DeviceFarm","cors":true},"directconnect":{"name":"DirectConnect","cors":true},"directoryservice":{"prefix":"ds","name":"DirectoryService"},"discovery":{"name":"Discovery"},"dms":{"name":"DMS"},"dynamodb":{"name":"DynamoDB","cors":true},"dynamodbstreams":{"prefix":"streams.dynamodb","name":"DynamoDBStreams","cors":true},"ec2":{"name":"EC2","versions":["2013-06-15*","2013-10-15*","2014-02-01*","2014-05-01*","2014-06-15*","2014-09-01*","2014-10-01*","2015-03-01*","2015-04-15*","2015-10-01*","2016-04-01*","2016-09-15*"],"cors":true},"ecr":{"name":"ECR","cors":true},"ecs":{"name":"ECS","cors":true},"efs":{"prefix":"elasticfilesystem","name":"EFS","cors":true},"elasticache":{"name":"ElastiCache","versions":["2012-11-15*","2014-03-24*","2014-07-15*","2014-09-30*"],"cors":true},"elasticbeanstalk":{"name":"ElasticBeanstalk","cors":true},"elb":{"prefix":"elasticloadbalancing","name":"ELB","cors":true},"elbv2":{"prefix":"elasticloadbalancingv2","name":"ELBv2","cors":true},"emr":{"prefix":"elasticmapreduce","name":"EMR","cors":true},"es":{"name":"ES"},"elastictranscoder":{"name":"ElasticTranscoder","cors":true},"firehose":{"name":"Firehose","cors":true},"gamelift":{"name":"GameLift","cors":true},"glacier":{"name":"Glacier"},"health":{"name":"Health"},"iam":{"name":"IAM","cors":true},"importexport":{"name":"ImportExport"},"inspector":{"name":"Inspector","versions":["2015-08-18*"],"cors":true},"iot":{"name":"Iot","cors":true},"iotdata":{"prefix":"iot-data","name":"IotData","cors":true},"kinesis":{"name":"Kinesis","cors":true},"kinesisanalytics":{"name":"KinesisAnalytics"},"kms":{"name":"KMS","cors":true},"lambda":{"name":"Lambda","cors":true},"lexruntime":{"prefix":"runtime.lex","name":"LexRuntime","cors":true},"lightsail":{"name":"Lightsail"},"machinelearning":{"name":"MachineLearning","cors":true},"marketplacecommerceanalytics":{"name":"MarketplaceCommerceAnalytics","cors":true},"marketplacemetering":{"prefix":"meteringmarketplace","name":"MarketplaceMetering"},"mturk":{"prefix":"mturk-requester","name":"MTurk","cors":true},"mobileanalytics":{"name":"MobileAnalytics","cors":true},"opsworks":{"name":"OpsWorks","cors":true},"opsworkscm":{"name":"OpsWorksCM"},"organizations":{"name":"Organizations"},"pinpoint":{"name":"Pinpoint"},"polly":{"name":"Polly","cors":true},"rds":{"name":"RDS","versions":["2014-09-01*"],"cors":true},"redshift":{"name":"Redshift","cors":true},"rekognition":{"name":"Rekognition","cors":true},"resourcegroupstaggingapi":{"name":"ResourceGroupsTaggingAPI"},"route53":{"name":"Route53","cors":true},"route53domains":{"name":"Route53Domains","cors":true},"s3":{"name":"S3","dualstackAvailable":true,"cors":true},"s3control":{"name":"S3Control","dualstackAvailable":true,"xmlNoDefaultLists":true},"servicecatalog":{"name":"ServiceCatalog","cors":true},"ses":{"prefix":"email","name":"SES","cors":true},"shield":{"name":"Shield"},"simpledb":{"prefix":"sdb","name":"SimpleDB"},"sms":{"name":"SMS"},"snowball":{"name":"Snowball"},"sns":{"name":"SNS","cors":true},"sqs":{"name":"SQS","cors":true},"ssm":{"name":"SSM","cors":true},"storagegateway":{"name":"StorageGateway","cors":true},"stepfunctions":{"prefix":"states","name":"StepFunctions"},"sts":{"name":"STS","cors":true},"support":{"name":"Support"},"swf":{"name":"SWF"},"xray":{"name":"XRay","cors":true},"waf":{"name":"WAF","cors":true},"wafregional":{"prefix":"waf-regional","name":"WAFRegional"},"workdocs":{"name":"WorkDocs","cors":true},"workspaces":{"name":"WorkSpaces"},"codestar":{"name":"CodeStar"},"lexmodelbuildingservice":{"prefix":"lex-models","name":"LexModelBuildingService","cors":true},"marketplaceentitlementservice":{"prefix":"entitlement.marketplace","name":"MarketplaceEntitlementService"},"athena":{"name":"Athena","cors":true},"greengrass":{"name":"Greengrass"},"dax":{"name":"DAX"},"migrationhub":{"prefix":"AWSMigrationHub","name":"MigrationHub"},"cloudhsmv2":{"name":"CloudHSMV2","cors":true},"glue":{"name":"Glue"},"mobile":{"name":"Mobile"},"pricing":{"name":"Pricing","cors":true},"costexplorer":{"prefix":"ce","name":"CostExplorer","cors":true},"mediaconvert":{"name":"MediaConvert"},"medialive":{"name":"MediaLive"},"mediapackage":{"name":"MediaPackage"},"mediastore":{"name":"MediaStore"},"mediastoredata":{"prefix":"mediastore-data","name":"MediaStoreData","cors":true},"appsync":{"name":"AppSync"},"guardduty":{"name":"GuardDuty"},"mq":{"name":"MQ"},"comprehend":{"name":"Comprehend","cors":true},"iotjobsdataplane":{"prefix":"iot-jobs-data","name":"IoTJobsDataPlane"},"kinesisvideoarchivedmedia":{"prefix":"kinesis-video-archived-media","name":"KinesisVideoArchivedMedia","cors":true},"kinesisvideomedia":{"prefix":"kinesis-video-media","name":"KinesisVideoMedia","cors":true},"kinesisvideo":{"name":"KinesisVideo","cors":true},"sagemakerruntime":{"prefix":"runtime.sagemaker","name":"SageMakerRuntime"},"sagemaker":{"name":"SageMaker"},"translate":{"name":"Translate","cors":true},"resourcegroups":{"prefix":"resource-groups","name":"ResourceGroups","cors":true},"alexaforbusiness":{"name":"AlexaForBusiness"},"cloud9":{"name":"Cloud9"},"serverlessapplicationrepository":{"prefix":"serverlessrepo","name":"ServerlessApplicationRepository"},"servicediscovery":{"name":"ServiceDiscovery"},"workmail":{"name":"WorkMail"},"autoscalingplans":{"prefix":"autoscaling-plans","name":"AutoScalingPlans"},"transcribeservice":{"prefix":"transcribe","name":"TranscribeService"},"connect":{"name":"Connect","cors":true},"acmpca":{"prefix":"acm-pca","name":"ACMPCA"},"fms":{"name":"FMS"},"secretsmanager":{"name":"SecretsManager","cors":true},"iotanalytics":{"name":"IoTAnalytics","cors":true},"iot1clickdevicesservice":{"prefix":"iot1click-devices","name":"IoT1ClickDevicesService"},"iot1clickprojects":{"prefix":"iot1click-projects","name":"IoT1ClickProjects"},"pi":{"name":"PI"},"neptune":{"name":"Neptune"},"mediatailor":{"name":"MediaTailor"},"eks":{"name":"EKS"},"macie":{"name":"Macie"},"dlm":{"name":"DLM"},"signer":{"name":"Signer"},"chime":{"name":"Chime"},"pinpointemail":{"prefix":"pinpoint-email","name":"PinpointEmail"},"ram":{"name":"RAM"},"route53resolver":{"name":"Route53Resolver"},"pinpointsmsvoice":{"prefix":"sms-voice","name":"PinpointSMSVoice"},"quicksight":{"name":"QuickSight"},"rdsdataservice":{"prefix":"rds-data","name":"RDSDataService"},"amplify":{"name":"Amplify"},"datasync":{"name":"DataSync"},"robomaker":{"name":"RoboMaker"},"transfer":{"name":"Transfer"},"globalaccelerator":{"name":"GlobalAccelerator"},"comprehendmedical":{"name":"ComprehendMedical","cors":true},"kinesisanalyticsv2":{"name":"KinesisAnalyticsV2"},"mediaconnect":{"name":"MediaConnect"},"fsx":{"name":"FSx"},"securityhub":{"name":"SecurityHub"},"appmesh":{"name":"AppMesh","versions":["2018-10-01*"]},"licensemanager":{"prefix":"license-manager","name":"LicenseManager"},"kafka":{"name":"Kafka"},"apigatewaymanagementapi":{"name":"ApiGatewayManagementApi"},"apigatewayv2":{"name":"ApiGatewayV2"},"docdb":{"name":"DocDB"},"backup":{"name":"Backup"},"worklink":{"name":"WorkLink"},"textract":{"name":"Textract"},"managedblockchain":{"name":"ManagedBlockchain"},"mediapackagevod":{"prefix":"mediapackage-vod","name":"MediaPackageVod"},"groundstation":{"name":"GroundStation"},"iotthingsgraph":{"name":"IoTThingsGraph"},"iotevents":{"name":"IoTEvents"},"ioteventsdata":{"prefix":"iotevents-data","name":"IoTEventsData"},"personalize":{"name":"Personalize","cors":true},"personalizeevents":{"prefix":"personalize-events","name":"PersonalizeEvents","cors":true},"personalizeruntime":{"prefix":"personalize-runtime","name":"PersonalizeRuntime","cors":true},"applicationinsights":{"prefix":"application-insights","name":"ApplicationInsights"},"servicequotas":{"prefix":"service-quotas","name":"ServiceQuotas"},"ec2instanceconnect":{"prefix":"ec2-instance-connect","name":"EC2InstanceConnect"},"eventbridge":{"name":"EventBridge"},"lakeformation":{"name":"LakeFormation"},"forecastservice":{"prefix":"forecast","name":"ForecastService","cors":true},"forecastqueryservice":{"prefix":"forecastquery","name":"ForecastQueryService","cors":true},"qldb":{"name":"QLDB"},"qldbsession":{"prefix":"qldb-session","name":"QLDBSession"},"workmailmessageflow":{"name":"WorkMailMessageFlow"},"codestarnotifications":{"prefix":"codestar-notifications","name":"CodeStarNotifications"},"savingsplans":{"name":"SavingsPlans"},"sso":{"name":"SSO"},"ssooidc":{"prefix":"sso-oidc","name":"SSOOIDC"},"marketplacecatalog":{"prefix":"marketplace-catalog","name":"MarketplaceCatalog"},"dataexchange":{"name":"DataExchange"},"sesv2":{"name":"SESV2"},"migrationhubconfig":{"prefix":"migrationhub-config","name":"MigrationHubConfig"},"connectparticipant":{"name":"ConnectParticipant"},"appconfig":{"name":"AppConfig"},"iotsecuretunneling":{"name":"IoTSecureTunneling"},"wafv2":{"name":"WAFV2"},"elasticinference":{"prefix":"elastic-inference","name":"ElasticInference"},"imagebuilder":{"name":"Imagebuilder"},"schemas":{"name":"Schemas"},"accessanalyzer":{"name":"AccessAnalyzer"},"codegurureviewer":{"prefix":"codeguru-reviewer","name":"CodeGuruReviewer"},"codeguruprofiler":{"name":"CodeGuruProfiler"},"computeoptimizer":{"prefix":"compute-optimizer","name":"ComputeOptimizer"},"frauddetector":{"name":"FraudDetector"},"kendra":{"name":"Kendra"},"networkmanager":{"name":"NetworkManager"},"outposts":{"name":"Outposts"},"augmentedairuntime":{"prefix":"sagemaker-a2i-runtime","name":"AugmentedAIRuntime"},"ebs":{"name":"EBS"},"kinesisvideosignalingchannels":{"prefix":"kinesis-video-signaling","name":"KinesisVideoSignalingChannels","cors":true},"detective":{"name":"Detective"},"codestarconnections":{"prefix":"codestar-connections","name":"CodeStarconnections"},"synthetics":{"name":"Synthetics"},"iotsitewise":{"name":"IoTSiteWise"},"macie2":{"name":"Macie2"},"codeartifact":{"name":"CodeArtifact"},"honeycode":{"name":"Honeycode"},"ivs":{"name":"IVS"},"braket":{"name":"Braket"},"identitystore":{"name":"IdentityStore"},"appflow":{"name":"Appflow"},"redshiftdata":{"prefix":"redshift-data","name":"RedshiftData"},"ssoadmin":{"prefix":"sso-admin","name":"SSOAdmin"},"timestreamquery":{"prefix":"timestream-query","name":"TimestreamQuery"},"timestreamwrite":{"prefix":"timestream-write","name":"TimestreamWrite"},"s3outposts":{"name":"S3Outposts"},"databrew":{"name":"DataBrew"},"servicecatalogappregistry":{"prefix":"servicecatalog-appregistry","name":"ServiceCatalogAppRegistry"},"networkfirewall":{"prefix":"network-firewall","name":"NetworkFirewall"},"mwaa":{"name":"MWAA"},"amplifybackend":{"name":"AmplifyBackend"},"appintegrations":{"name":"AppIntegrations"},"connectcontactlens":{"prefix":"connect-contact-lens","name":"ConnectContactLens"},"devopsguru":{"prefix":"devops-guru","name":"DevOpsGuru"},"ecrpublic":{"prefix":"ecr-public","name":"ECRPUBLIC"},"lookoutvision":{"name":"LookoutVision"},"sagemakerfeaturestoreruntime":{"prefix":"sagemaker-featurestore-runtime","name":"SageMakerFeatureStoreRuntime"},"customerprofiles":{"prefix":"customer-profiles","name":"CustomerProfiles"},"auditmanager":{"name":"AuditManager"},"emrcontainers":{"prefix":"emr-containers","name":"EMRcontainers"},"healthlake":{"name":"HealthLake"},"sagemakeredge":{"prefix":"sagemaker-edge","name":"SagemakerEdge"},"amp":{"name":"Amp"},"greengrassv2":{"name":"GreengrassV2"},"iotdeviceadvisor":{"name":"IotDeviceAdvisor"},"iotfleethub":{"name":"IoTFleetHub"},"iotwireless":{"name":"IoTWireless"},"location":{"name":"Location","cors":true},"wellarchitected":{"name":"WellArchitected"},"lexmodelsv2":{"prefix":"models.lex.v2","name":"LexModelsV2"},"lexruntimev2":{"prefix":"runtime.lex.v2","name":"LexRuntimeV2","cors":true},"fis":{"name":"Fis"},"lookoutmetrics":{"name":"LookoutMetrics"},"mgn":{"name":"Mgn"},"lookoutequipment":{"name":"LookoutEquipment"},"nimble":{"name":"Nimble"},"finspace":{"name":"Finspace"},"finspacedata":{"prefix":"finspace-data","name":"Finspacedata"},"ssmcontacts":{"prefix":"ssm-contacts","name":"SSMContacts"},"ssmincidents":{"prefix":"ssm-incidents","name":"SSMIncidents"},"applicationcostprofiler":{"name":"ApplicationCostProfiler"},"apprunner":{"name":"AppRunner"},"proton":{"name":"Proton"},"route53recoverycluster":{"prefix":"route53-recovery-cluster","name":"Route53RecoveryCluster"},"route53recoverycontrolconfig":{"prefix":"route53-recovery-control-config","name":"Route53RecoveryControlConfig"},"route53recoveryreadiness":{"prefix":"route53-recovery-readiness","name":"Route53RecoveryReadiness"},"chimesdkidentity":{"prefix":"chime-sdk-identity","name":"ChimeSDKIdentity"},"chimesdkmessaging":{"prefix":"chime-sdk-messaging","name":"ChimeSDKMessaging"},"snowdevicemanagement":{"prefix":"snow-device-management","name":"SnowDeviceManagement"},"memorydb":{"name":"MemoryDB"},"opensearch":{"name":"OpenSearch"},"kafkaconnect":{"name":"KafkaConnect"},"voiceid":{"prefix":"voice-id","name":"VoiceID"},"wisdom":{"name":"Wisdom"},"account":{"name":"Account"},"cloudcontrol":{"name":"CloudControl"},"grafana":{"name":"Grafana"},"panorama":{"name":"Panorama"},"chimesdkmeetings":{"prefix":"chime-sdk-meetings","name":"ChimeSDKMeetings"},"resiliencehub":{"name":"Resiliencehub"},"migrationhubstrategy":{"name":"MigrationHubStrategy"},"appconfigdata":{"name":"AppConfigData"},"drs":{"name":"Drs"},"migrationhubrefactorspaces":{"prefix":"migration-hub-refactor-spaces","name":"MigrationHubRefactorSpaces"},"evidently":{"name":"Evidently"},"inspector2":{"name":"Inspector2"},"rbin":{"name":"Rbin"},"rum":{"name":"RUM"},"backupgateway":{"prefix":"backup-gateway","name":"BackupGateway"},"iottwinmaker":{"name":"IoTTwinMaker"},"workspacesweb":{"prefix":"workspaces-web","name":"WorkSpacesWeb"},"amplifyuibuilder":{"name":"AmplifyUIBuilder"},"keyspaces":{"name":"Keyspaces"},"billingconductor":{"name":"Billingconductor"},"gamesparks":{"name":"GameSparks"},"pinpointsmsvoicev2":{"prefix":"pinpoint-sms-voice-v2","name":"PinpointSMSVoiceV2"},"ivschat":{"name":"Ivschat"},"chimesdkmediapipelines":{"prefix":"chime-sdk-media-pipelines","name":"ChimeSDKMediaPipelines"},"emrserverless":{"prefix":"emr-serverless","name":"EMRServerless"},"m2":{"name":"M2"},"connectcampaigns":{"name":"ConnectCampaigns"},"redshiftserverless":{"prefix":"redshift-serverless","name":"RedshiftServerless"},"rolesanywhere":{"name":"RolesAnywhere"},"licensemanagerusersubscriptions":{"prefix":"license-manager-user-subscriptions","name":"LicenseManagerUserSubscriptions"}}')},3554:le=>{"use strict";le.exports=JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2011-06-15","endpointPrefix":"sts","globalEndpoint":"sts.amazonaws.com","protocol":"query","serviceAbbreviation":"AWS STS","serviceFullName":"AWS Security Token Service","serviceId":"STS","signatureVersion":"v4","uid":"sts-2011-06-15","xmlNamespace":"https://sts.amazonaws.com/doc/2011-06-15/"},"operations":{"AssumeRole":{"input":{"type":"structure","required":["RoleArn","RoleSessionName"],"members":{"RoleArn":{},"RoleSessionName":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"},"TransitiveTagKeys":{"type":"list","member":{}},"ExternalId":{},"SerialNumber":{},"TokenCode":{},"SourceIdentity":{}}},"output":{"resultWrapper":"AssumeRoleResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"SourceIdentity":{}}}},"AssumeRoleWithSAML":{"input":{"type":"structure","required":["RoleArn","PrincipalArn","SAMLAssertion"],"members":{"RoleArn":{},"PrincipalArn":{},"SAMLAssertion":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithSAMLResult","type":"structure","members":{"Credentials":{"shape":"Si"},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Subject":{},"SubjectType":{},"Issuer":{},"Audience":{},"NameQualifier":{},"SourceIdentity":{}}}},"AssumeRoleWithWebIdentity":{"input":{"type":"structure","required":["RoleArn","RoleSessionName","WebIdentityToken"],"members":{"RoleArn":{},"RoleSessionName":{},"WebIdentityToken":{},"ProviderId":{},"PolicyArns":{"shape":"S4"},"Policy":{},"DurationSeconds":{"type":"integer"}}},"output":{"resultWrapper":"AssumeRoleWithWebIdentityResult","type":"structure","members":{"Credentials":{"shape":"Si"},"SubjectFromWebIdentityToken":{},"AssumedRoleUser":{"shape":"Sn"},"PackedPolicySize":{"type":"integer"},"Provider":{},"Audience":{},"SourceIdentity":{}}}},"DecodeAuthorizationMessage":{"input":{"type":"structure","required":["EncodedMessage"],"members":{"EncodedMessage":{}}},"output":{"resultWrapper":"DecodeAuthorizationMessageResult","type":"structure","members":{"DecodedMessage":{}}}},"GetAccessKeyInfo":{"input":{"type":"structure","required":["AccessKeyId"],"members":{"AccessKeyId":{}}},"output":{"resultWrapper":"GetAccessKeyInfoResult","type":"structure","members":{"Account":{}}}},"GetCallerIdentity":{"input":{"type":"structure","members":{}},"output":{"resultWrapper":"GetCallerIdentityResult","type":"structure","members":{"UserId":{},"Account":{},"Arn":{}}}},"GetFederationToken":{"input":{"type":"structure","required":["Name"],"members":{"Name":{},"Policy":{},"PolicyArns":{"shape":"S4"},"DurationSeconds":{"type":"integer"},"Tags":{"shape":"S8"}}},"output":{"resultWrapper":"GetFederationTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"},"FederatedUser":{"type":"structure","required":["FederatedUserId","Arn"],"members":{"FederatedUserId":{},"Arn":{}}},"PackedPolicySize":{"type":"integer"}}}},"GetSessionToken":{"input":{"type":"structure","members":{"DurationSeconds":{"type":"integer"},"SerialNumber":{},"TokenCode":{}}},"output":{"resultWrapper":"GetSessionTokenResult","type":"structure","members":{"Credentials":{"shape":"Si"}}}}},"shapes":{"S4":{"type":"list","member":{"type":"structure","members":{"arn":{}}}},"S8":{"type":"list","member":{"type":"structure","required":["Key","Value"],"members":{"Key":{},"Value":{}}}},"Si":{"type":"structure","required":["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],"members":{"AccessKeyId":{},"SecretAccessKey":{},"SessionToken":{},"Expiration":{"type":"timestamp"}}},"Sn":{"type":"structure","required":["AssumedRoleId","Arn"],"members":{"AssumedRoleId":{},"Arn":{}}}}}')},31152:le=>{"use strict";le.exports={o:{}}},85595:le=>{"use strict";le.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":"usIso","us-isob-*/*":"usIsob","*/budgets":"globalSSL","*/cloudfront":"globalSSL","*/sts":"globalSSL","*/importexport":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2","globalEndpoint":true},"*/route53":"globalSSL","cn-*/route53":{"endpoint":"{service}.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-northwest-1"},"us-gov-*/route53":"globalGovCloud","us-iso-*/route53":{"endpoint":"{service}.c2s.ic.gov","globalEndpoint":true,"signingRegion":"us-iso-east-1"},"us-isob-*/route53":{"endpoint":"{service}.sc2s.sgov.gov","globalEndpoint":true,"signingRegion":"us-isob-east-1"},"*/waf":"globalSSL","*/iam":"globalSSL","cn-*/iam":{"endpoint":"{service}.cn-north-1.amazonaws.com.cn","globalEndpoint":true,"signingRegion":"cn-north-1"},"us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{"endpoint":"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3signature","us-west-1/s3":"s3signature","us-west-2/s3":"s3signature","eu-west-1/s3":"s3signature","ap-southeast-1/s3":"s3signature","ap-southeast-2/s3":"s3signature","ap-northeast-1/s3":"s3signature","sa-east-1/s3":"s3signature","us-east-1/s3":{"endpoint":"{service}.amazonaws.com","signatureVersion":"s3"},"us-east-1/sdb":{"endpoint":"{service}.amazonaws.com","signatureVersion":"v2"},"*/sdb":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"v2"}},"fipsRules":{"*/*":"fipsStandard","us-gov-*/*":"fipsStandard","us-iso-*/*":{"endpoint":"{service}-fips.{region}.c2s.ic.gov"},"us-iso-*/dms":"usIso","us-isob-*/*":{"endpoint":"{service}-fips.{region}.sc2s.sgov.gov"},"us-isob-*/dms":"usIsob","cn-*/*":{"endpoint":"{service}-fips.{region}.amazonaws.com.cn"},"*/api.ecr":"fips.api.ecr","*/api.sagemaker":"fips.api.sagemaker","*/batch":"fipsDotPrefix","*/eks":"fipsDotPrefix","*/models.lex":"fips.models.lex","*/runtime.lex":"fips.runtime.lex","*/runtime.sagemaker":{"endpoint":"runtime-fips.sagemaker.{region}.amazonaws.com"},"*/iam":"fipsWithoutRegion","*/route53":"fipsWithoutRegion","*/transcribe":"fipsDotPrefix","*/waf":"fipsWithoutRegion","us-gov-*/transcribe":"fipsDotPrefix","us-gov-*/api.ecr":"fips.api.ecr","us-gov-*/api.sagemaker":"fips.api.sagemaker","us-gov-*/models.lex":"fips.models.lex","us-gov-*/runtime.lex":"fips.runtime.lex","us-gov-*/acm-pca":"fipsWithServiceOnly","us-gov-*/batch":"fipsWithServiceOnly","us-gov-*/config":"fipsWithServiceOnly","us-gov-*/eks":"fipsWithServiceOnly","us-gov-*/elasticmapreduce":"fipsWithServiceOnly","us-gov-*/identitystore":"fipsWithServiceOnly","us-gov-*/dynamodb":"fipsWithServiceOnly","us-gov-*/elasticloadbalancing":"fipsWithServiceOnly","us-gov-*/guardduty":"fipsWithServiceOnly","us-gov-*/monitoring":"fipsWithServiceOnly","us-gov-*/resource-groups":"fipsWithServiceOnly","us-gov-*/runtime.sagemaker":"fipsWithServiceOnly","us-gov-*/servicecatalog-appregistry":"fipsWithServiceOnly","us-gov-*/servicequotas":"fipsWithServiceOnly","us-gov-*/ssm":"fipsWithServiceOnly","us-gov-*/sts":"fipsWithServiceOnly","us-gov-*/support":"fipsWithServiceOnly","us-gov-west-1/states":"fipsWithServiceOnly","us-iso-east-1/elasticfilesystem":{"endpoint":"elasticfilesystem-fips.{region}.c2s.ic.gov"},"us-gov-west-1/organizations":"fipsWithServiceOnly","us-gov-west-1/route53":{"endpoint":"route53.us-gov.amazonaws.com"}},"dualstackRules":{"*/*":{"endpoint":"{service}.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackLegacy","cn-*/s3":"dualstackLegacyCn","*/s3-control":"dualstackLegacy","cn-*/s3-control":"dualstackLegacyCn","ap-south-1/ec2":"dualstackLegacyEc2","eu-west-1/ec2":"dualstackLegacyEc2","sa-east-1/ec2":"dualstackLegacyEc2","us-east-1/ec2":"dualstackLegacyEc2","us-east-2/ec2":"dualstackLegacyEc2","us-west-2/ec2":"dualstackLegacyEc2"},"dualstackFipsRules":{"*/*":{"endpoint":"{service}-fips.{region}.api.aws"},"cn-*/*":{"endpoint":"{service}-fips.{region}.api.amazonwebservices.com.cn"},"*/s3":"dualstackFipsLegacy","cn-*/s3":"dualstackFipsLegacyCn","*/s3-control":"dualstackFipsLegacy","cn-*/s3-control":"dualstackFipsLegacyCn"},"patterns":{"globalSSL":{"endpoint":"https://{service}.amazonaws.com","globalEndpoint":true,"signingRegion":"us-east-1"},"globalGovCloud":{"endpoint":"{service}.us-gov.amazonaws.com","globalEndpoint":true,"signingRegion":"us-gov-west-1"},"s3signature":{"endpoint":"{service}.{region}.amazonaws.com","signatureVersion":"s3"},"usIso":{"endpoint":"{service}.{region}.c2s.ic.gov"},"usIsob":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"fipsStandard":{"endpoint":"{service}-fips.{region}.amazonaws.com"},"fipsDotPrefix":{"endpoint":"fips.{service}.{region}.amazonaws.com"},"fipsWithoutRegion":{"endpoint":"{service}-fips.amazonaws.com"},"fips.api.ecr":{"endpoint":"ecr-fips.{region}.amazonaws.com"},"fips.api.sagemaker":{"endpoint":"api-fips.sagemaker.{region}.amazonaws.com"},"fips.models.lex":{"endpoint":"models-fips.lex.{region}.amazonaws.com"},"fips.runtime.lex":{"endpoint":"runtime-fips.lex.{region}.amazonaws.com"},"fipsWithServiceOnly":{"endpoint":"{service}.{region}.amazonaws.com"},"dualstackLegacy":{"endpoint":"{service}.dualstack.{region}.amazonaws.com"},"dualstackLegacyCn":{"endpoint":"{service}.dualstack.{region}.amazonaws.com.cn"},"dualstackFipsLegacy":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com"},"dualstackFipsLegacyCn":{"endpoint":"{service}-fips.dualstack.{region}.amazonaws.com.cn"},"dualstackLegacyEc2":{"endpoint":"api.ec2.{region}.aws"}}}')},44226:le=>{"use strict";le.exports=JSON.parse('{"name":"aws-appsync-auth-link","version":"3.0.4","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-sdk":"^2.814.0","debug":"2.6.9"},"devDependencies":{"@apollo/client":"^3.2.0"},"peerDependencies":{"@apollo/client":"3.x"}}')}}]);
|