altair-static 8.2.0 → 8.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/dist/635.js DELETED
@@ -1,5 +0,0 @@
1
-
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8ebbb19f-a97a-57a9-a2d7-e7f544957d6b")}catch(e){}}();
3
- (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[635],{15510:(W,w,c)=>{"use strict";c.d(w,{k:()=>l});var a=c(31092),g=c(91779),l=function(){function t(){this.getFragmentDoc=(0,a.LV)(g.ct)}return t.prototype.recordOptimisticTransaction=function(r,i){this.performTransaction(r,i)},t.prototype.transformDocument=function(r){return r},t.prototype.identify=function(r){},t.prototype.gc=function(){return[]},t.prototype.modify=function(r){return!1},t.prototype.transformForLink=function(r){return r},t.prototype.readQuery=function(r,i){return void 0===i&&(i=!!r.optimistic),this.read({rootId:r.id||"ROOT_QUERY",query:r.query,variables:r.variables,returnPartialData:r.returnPartialData,optimistic:i})},t.prototype.readFragment=function(r,i){return void 0===i&&(i=!!r.optimistic),this.read({query:this.getFragmentDoc(r.fragment,r.fragmentName),variables:r.variables,rootId:r.id,returnPartialData:r.returnPartialData,optimistic:i})},t.prototype.writeQuery=function(r){return this.write({dataId:r.id||"ROOT_QUERY",result:r.data,query:r.query,variables:r.variables,broadcast:r.broadcast})},t.prototype.writeFragment=function(r){return this.write({dataId:r.id,result:r.data,variables:r.variables,query:this.getFragmentDoc(r.fragment,r.fragmentName),broadcast:r.broadcast})},t}()},28240:(W,w,c)=>{"use strict";var a;c.d(w,{l:()=>a}),a||(a={})},48833:(W,w,c)=>{"use strict";c.d(w,{Z:()=>a});var a=function(){return function g(l,t,r,i,s){this.message=l,this.path=t,this.query=r,this.clientOnly=i,this.variables=s}}()},40054:(W,w,c)=>{"use strict";c.d(w,{$3:()=>t,T9:()=>e,d1:()=>n,gk:()=>i,iJ:()=>s,mv:()=>o});var a=c(23718),g=c(30310),l=c(71318),t=Object.prototype.hasOwnProperty,i=/^[_a-z][_0-9a-z]*/i;function s(u){var p=u.match(i);return p?p[0]:u}function e(u,p,f){return!(!p||"object"!=typeof p)&&(Array.isArray(p)?p.every(function(E){return e(u,E,f)}):u.selections.every(function(E){if((0,a.dt)(E)&&(0,g.MS)(E,f)){var b=(0,a.ue)(E);return t.call(p,b)&&(!E.selectionSet||e(E.selectionSet,p[b],f))}return!0}))}function n(u){return null!==u&&"object"==typeof u&&!(0,a.A_)(u)&&!Array.isArray(u)}function o(){return new l.ZI}},18111:(W,w,c)=>{"use strict";c.d(w,{D:()=>$});var X,M,a=c(40909),g=c(31092),l=c(15510),t=c(48833),r=c(23718),i=c(20794),s=c(9685),e=c(47436),n=c(91779),o=c(30310),u=c(71318),p=c(11618),y=c(77919),d=c(40054),m=Object.create(null),x=function(){return m},I=Object.create(null),L=function(){function X(M,S){var T=this;this.policies=M,this.group=S,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(k,K){return(0,r.A_)(k)?T.get(k.__ref,K):k&&k[K]},this.canRead=function(k){return(0,r.A_)(k)?T.has(k.__ref):"object"==typeof k},this.toReference=function(k,K){if("string"==typeof k)return(0,r.WU)(k);if((0,r.A_)(k))return k;var ee=T.policies.identify(k)[0];if(ee){var ne=(0,r.WU)(ee);return K&&T.merge(ee,k),ne}}}return X.prototype.toObject=function(){return(0,a.__assign)({},this.data)},X.prototype.has=function(M){return void 0!==this.lookup(M,!0)},X.prototype.get=function(M,S){if(this.group.depend(M,S),d.$3.call(this.data,M)){var T=this.data[M];if(T&&d.$3.call(T,S))return T[S]}return"__typename"===S&&d.$3.call(this.policies.rootTypenamesById,M)?this.policies.rootTypenamesById[M]:this instanceof O?this.parent.get(M,S):void 0},X.prototype.lookup=function(M,S){return S&&this.group.depend(M,"__exists"),d.$3.call(this.data,M)?this.data[M]:this instanceof O?this.parent.lookup(M,S):this.policies.rootTypenamesById[M]?Object.create(null):void 0},X.prototype.merge=function(M,S){var T=this,k=this.lookup(M),K=new u.ZI(h).merge(k,S);if(this.data[M]=K,K!==k&&(delete this.refs[M],this.group.caching)){var ee=Object.create(null);k||(ee.__exists=1),Object.keys(S).forEach(function(ne){if(!k||k[ne]!==K[ne]){ee[ne]=1;var se=(0,d.iJ)(ne);se!==ne&&!T.policies.hasKeyArgs(K.__typename,se)&&(ee[se]=1),void 0===K[ne]&&!(T instanceof O)&&delete K[ne]}}),Object.keys(ee).forEach(function(ne){return T.group.dirty(M,ne)})}},X.prototype.modify=function(M,S){var T=this,k=this.lookup(M);if(k){var K=Object.create(null),ee=!1,ne=!0,se={DELETE:m,INVALIDATE:I,isReference:r.A_,toReference:this.toReference,canRead:this.canRead,readField:function(ce,ve){return T.policies.readField("string"==typeof ce?{fieldName:ce,from:ve||(0,r.WU)(M)}:ce,{store:T})}};if(Object.keys(k).forEach(function(ce){var ve=(0,d.iJ)(ce),de=k[ce];if(void 0!==de){var pe="function"==typeof S?S:S[ce]||S[ve];if(pe){var me=pe===x?m:pe(de,(0,a.__assign)((0,a.__assign)({},se),{fieldName:ve,storeFieldName:ce,storage:T.getStorage(M,ce)}));me===I?T.group.dirty(M,ce):(me===m&&(me=void 0),me!==de&&(K[ce]=me,ee=!0,de=me))}void 0!==de&&(ne=!1)}}),ee)return this.merge(M,K),ne&&(this instanceof O?this.data[M]=void 0:delete this.data[M],this.group.dirty(M,"__exists")),!0}return!1},X.prototype.delete=function(M,S,T){var k,K=this.lookup(M);if(K){var ee=this.getFieldValue(K,"__typename"),ne=S&&T?this.policies.getStoreFieldName({typename:ee,fieldName:S,args:T}):S;return this.modify(M,ne?((k={})[ne]=x,k):x)}return!1},X.prototype.evict=function(M){var S=!1;return M.id&&(d.$3.call(this.data,M.id)&&(S=this.delete(M.id,M.fieldName,M.args)),this instanceof O&&(S=this.parent.evict(M)||S),(M.fieldName||S)&&this.group.dirty(M.id,M.fieldName||"__exists")),S},X.prototype.clear=function(){this.replace(null)},X.prototype.extract=function(){var M=this,S=this.toObject(),T=[];return this.getRootIdSet().forEach(function(k){d.$3.call(M.policies.rootTypenamesById,k)||T.push(k)}),T.length&&(S.__META={extraRootIds:T.sort()}),S},X.prototype.replace=function(M){var S=this;if(Object.keys(this.data).forEach(function(K){M&&d.$3.call(M,K)||S.delete(K)}),M){var T=M.__META,k=(0,a.__rest)(M,["__META"]);Object.keys(k).forEach(function(K){S.merge(K,k[K])}),T&&T.extraRootIds.forEach(this.retain,this)}},X.prototype.retain=function(M){return this.rootIds[M]=(this.rootIds[M]||0)+1},X.prototype.release=function(M){if(this.rootIds[M]>0){var S=--this.rootIds[M];return S||delete this.rootIds[M],S}return 0},X.prototype.getRootIdSet=function(M){return void 0===M&&(M=new Set),Object.keys(this.rootIds).forEach(M.add,M),this instanceof O?this.parent.getRootIdSet(M):Object.keys(this.policies.rootTypenamesById).forEach(M.add,M),M},X.prototype.gc=function(){var M=this,S=this.getRootIdSet(),T=this.toObject();S.forEach(function(ee){d.$3.call(T,ee)&&(Object.keys(M.findChildRefIds(ee)).forEach(S.add,S),delete T[ee])});var k=Object.keys(T);if(k.length){for(var K=this;K instanceof O;)K=K.parent;k.forEach(function(ee){return K.delete(ee)})}return k},X.prototype.findChildRefIds=function(M){if(!d.$3.call(this.refs,M)){var S=this.refs[M]=Object.create(null),T=new Set([this.data[M]]),k=function(K){return null!==K&&"object"==typeof K};T.forEach(function(K){(0,r.A_)(K)?S[K.__ref]=!0:k(K)&&Object.values(K).filter(k).forEach(T.add,T)})}return this.refs[M]},X.prototype.makeCacheKey=function(){for(var M=[],S=0;S<arguments.length;S++)M[S]=arguments[S];return this.group.keyMaker.lookupArray(M)},X}(),R=function(){function X(M){this.caching=M,this.d=null,this.keyMaker=new g.oZ(y.e),this.d=M?(0,g.yN)():null}return X.prototype.depend=function(M,S){if(this.d){this.d(_(M,S));var T=(0,d.iJ)(S);T!==S&&this.d(_(M,T))}},X.prototype.dirty=function(M,S){this.d&&this.d.dirty(_(M,S))},X}();function _(X,M){return M+"#"+X}M=function(S){function T(k){var ee=k.resultCaching,ne=void 0===ee||ee,se=k.seed,ce=S.call(this,k.policies,new R(ne))||this;return ce.storageTrie=new g.oZ(y.e),ce.sharedLayerGroup=new R(ne),se&&ce.replace(se),ce}return(0,a.__extends)(T,S),T.prototype.addLayer=function(k,K){return new O(k,this,K,this.sharedLayerGroup)},T.prototype.removeLayer=function(){return this},T.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},T}(X=L||(L={})),X.Root=M;var O=function(X){function M(S,T,k,K){var ee=X.call(this,T.policies,K)||this;return ee.id=S,ee.parent=T,ee.replay=k,ee.group=K,k(ee),ee}return(0,a.__extends)(M,X),M.prototype.addLayer=function(S,T){return new M(S,this,T,this.group)},M.prototype.removeLayer=function(S){var T=this,k=this.parent.removeLayer(S);return S===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(K){T.data[K]!==k.lookup(K)&&T.delete(K)}),k):k===this.parent?this:k.addLayer(this.id,this.replay)},M.prototype.toObject=function(){return(0,a.__assign)((0,a.__assign)({},this.parent.toObject()),this.data)},M.prototype.findChildRefIds=function(S){var T=this.parent.findChildRefIds(S);return d.$3.call(this.data,S)?(0,a.__assign)((0,a.__assign)({},T),X.prototype.findChildRefIds.call(this,S)):T},M.prototype.getStorage=function(){for(var S=this.parent;S.parent;)S=S.parent;return S.getStorage.apply(S,arguments)},M}(L);function h(X,M,S){var T=X[S],k=M[S];return(0,p.L)(T,k)?T:k}function A(X){return!!(X instanceof L&&X.group.caching)}function v(X,M){return new t.Z(X.message,M.path.slice(),M.query,M.clientOnly,M.variables)}var C=function(){function X(M){var S=this;this.config=M,this.executeSelectionSet=(0,g.LV)(function(T){return S.execSelectionSetImpl(T)},{keyArgs:function(T){return[T.selectionSet,T.objectOrReference,T.context]},makeCacheKey:function(T,k,K){if(A(K.store))return K.store.makeCacheKey(T,(0,r.A_)(k)?k.__ref:k,K.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,g.LV)(function(T){return S.execSubSelectedArrayImpl(T)},{makeCacheKey:function(T){var k=T.field,K=T.array,ee=T.context;if(A(ee.store))return ee.store.makeCacheKey(k,K,ee.varString)}}),this.config=(0,a.__assign)({addTypename:!0},M)}return X.prototype.diffQueryAgainstStore=function(M){var S=M.store,T=M.query,k=M.rootId,K=void 0===k?"ROOT_QUERY":k,ee=M.variables,ne=M.returnPartialData,se=void 0===ne||ne,ce=this.config.cache.policies;ee=(0,a.__assign)((0,a.__assign)({},(0,e.wY)((0,e.AT)(T))),ee);var ve=this.executeSelectionSet({selectionSet:(0,e.Vn)(T).selectionSet,objectOrReference:(0,r.WU)(K),context:{store:S,query:T,policies:ce,variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,n.JG)((0,e.zK)(T)),path:[],clientOnly:!1}}),de=ve.missing&&ve.missing.length>0;if(de&&!se)throw ve.missing[0];return{result:ve.result,missing:ve.missing,complete:!de}},X.prototype.isFresh=function(M,S,T,k){if(A(k.store)&&this.knownResults.get(M)===T){var K=this.executeSelectionSet.peek(T,S,k);if(K&&M===K.result)return!0}return!1},X.prototype.execSelectionSetImpl=function(M){var S=this,T=M.selectionSet,k=M.objectOrReference,K=M.context;if((0,r.A_)(k)&&!K.policies.rootTypenamesById[k.__ref]&&!K.store.has(k.__ref))return{result:{},missing:[v(new s.zU(4),K)]};var ee=K.variables,ne=K.policies,ce=[],ve={result:null},de=K.store.getFieldValue(k,"__typename");function pe(){return ve.missing||(ve.missing=[])}function me(F){var P;return F.missing&&(P=pe()).push.apply(P,F.missing),F.result}this.config.addTypename&&"string"==typeof de&&!ne.rootIdsByTypename[de]&&ce.push({__typename:de});var ge=new Set(T.selections);return ge.forEach(function(F){var P;if((0,o.MS)(F,ee))if((0,r.dt)(F)){var D=ne.readField({fieldName:F.name.value,field:F,variables:K.variables,from:k},K),G=(0,r.ue)(F);K.path.push(G);var ae=K.clientOnly;K.clientOnly=ae||!(!F.directives||!F.directives.some(function(le){return"client"===le.name.value})),void 0===D?i.XY.added(F)||pe().push(v(new s.zU(5),K)):Array.isArray(D)?D=me(S.executeSubSelectedArray({field:F,array:D,context:K})):F.selectionSet&&null!=D&&(D=me(S.executeSelectionSet({selectionSet:F.selectionSet,objectOrReference:D,context:K}))),void 0!==D&&ce.push(((P={})[G]=D,P)),K.clientOnly=ae,(0,s.V1)(K.path.pop()===G)}else{var he=(0,n.HQ)(F,K.fragmentMap);he&&ne.fragmentMatches(he,de)&&he.selectionSet.selections.forEach(ge.add,ge)}}),ve.result=(0,u.IM)(ce),this.knownResults.set(ve.result,T),ve},X.prototype.execSubSelectedArrayImpl=function(M){var ee,S=this,T=M.field,k=M.array,K=M.context;function ne(se,ce){return se.missing&&(ee=ee||[]).push.apply(ee,se.missing),(0,s.V1)(K.path.pop()===ce),se.result}return T.selectionSet&&(k=k.filter(K.store.canRead)),{result:k=k.map(function(se,ce){return null===se?null:(K.path.push(ce),Array.isArray(se)?ne(S.executeSubSelectedArray({field:T,array:se,context:K}),ce):T.selectionSet?ne(S.executeSelectionSet({selectionSet:T.selectionSet,objectOrReference:se,context:K}),ce):((0,s.V1)(K.path.pop()===ce),se))}),missing:ee}},X}(),N=function(){function X(M,S){this.cache=M,this.reader=S}return X.prototype.writeToStore=function(M){var S=M.query,T=M.result,k=M.dataId,K=M.store,ee=M.variables,ne=(0,e.Vu)(S),se=(0,d.mv)();ee=(0,a.__assign)((0,a.__assign)({},(0,e.wY)(ne)),ee);var ce=this.processSelectionSet({result:T||Object.create(null),dataId:k,selectionSet:ne.selectionSet,mergeTree:{map:new Map},context:{store:K,written:Object.create(null),merge:function(ve,de){return se.merge(ve,de)},variables:ee,varString:JSON.stringify(ee),fragmentMap:(0,n.JG)((0,e.zK)(S))}});if(!(0,r.A_)(ce))throw new s.zU(7);return K.retain(ce.__ref),ce},X.prototype.processSelectionSet=function(M){var S=this,T=M.dataId,k=M.result,K=M.selectionSet,ee=M.context,ne=M.mergeTree,se=this.cache.policies,ce=se.identify(k,K,ee.fragmentMap),de=ce[1];if("string"==typeof(T=T||ce[0])){var pe=ee.written[T]||(ee.written[T]=[]),me=(0,r.WU)(T);if(pe.indexOf(K)>=0||(pe.push(K),this.reader&&this.reader.isFresh(k,me,K,ee)))return me}var ge=Object.create(null);de&&(ge=ee.merge(ge,de));var F=T&&se.rootTypenamesById[T]||(0,r.D$)(k,K,ee.fragmentMap)||T&&ee.store.get(T,"__typename");"string"==typeof F&&(ge.__typename=F);var P=new Set(K.selections);if(P.forEach(function(le){var V;if((0,o.MS)(le,ee.variables))if((0,r.dt)(le)){var Z=(0,r.ue)(le),te=k[Z];if(typeof te<"u"){var oe=se.getStoreFieldName({typename:F,fieldName:le.name.value,field:le,variables:ee.variables}),fe=Y(ne,oe),be=S.processFieldValue(te,le,ee,fe),Se=le.selectionSet&&ee.store.getFieldValue(be,"__typename")||void 0,we=se.getMergeFunction(F,le.name.value,Se);we?fe.info={field:le,typename:F,merge:we}:re(ne,oe),ge=ee.merge(ge,((V={})[oe]=be,V))}else if(se.usingPossibleTypes&&!(0,o.d8)(["defer","client"],le))throw new s.zU(8)}else{var Ce=(0,n.HQ)(le,ee.fragmentMap);Ce&&se.fragmentMatches(Ce,F,k,ee.variables)&&Ce.selectionSet.selections.forEach(P.add,P)}}),"string"==typeof T){var D=(0,r.WU)(T);return ne.map.size&&(ge=this.applyMerges(ne,D,ge,ee)),ee.store.merge(T,ge),D}return ge},X.prototype.processFieldValue=function(M,S,T,k){var K=this;return S.selectionSet&&null!==M?Array.isArray(M)?M.map(function(ee,ne){var se=K.processFieldValue(ee,S,T,Y(k,ne));return re(k,ne),se}):this.processSelectionSet({result:M,selectionSet:S.selectionSet,context:T,mergeTree:k}):M},X.prototype.applyMerges=function(M,S,T,k,K){var ee,ne=this;if(M.map.size&&!(0,r.A_)(T)){var se=Array.isArray(T)||!(0,r.A_)(S)&&!(0,d.d1)(S)?void 0:S,ce=T;se&&!K&&(K=[(0,r.A_)(se)?se.__ref:se]);var ve,de=function(pe,me){return Array.isArray(pe)?"number"==typeof me?pe[me]:void 0:k.store.getFieldValue(pe,String(me))};M.map.forEach(function(pe,me){K&&K.push(me);var ge=de(se,me),F=de(ce,me),P=ne.applyMerges(pe,ge,F,k,K);P!==F&&(ve=ve||new Map).set(me,P),K&&(0,s.V1)(K.pop()===me)}),ve&&(T=Array.isArray(ce)?ce.slice(0):(0,a.__assign)({},ce),ve.forEach(function(pe,me){T[me]=pe}))}return M.info?this.cache.policies.runMergeFunction(S,T,M.info,k,K&&(ee=k.store).getStorage.apply(ee,K)):T},X}(),j=[];function Y(X,M){var S=X.map;return S.has(M)||S.set(M,j.pop()||{map:new Map}),S.get(M)}function re(X,M){var S=X.map,T=S.get(M);T&&!T.info&&!T.map.size&&(j.push(T),S.delete(M))}var Q=c(81734),H=c(4049),z={dataIdFromObject:H.o,addTypename:!0,resultCaching:!0,typePolicies:{}},$=function(X){function M(S){void 0===S&&(S={});var T=X.call(this)||this;return T.watches=new Set,T.typenameDocumentCache=new Map,T.makeVar=Q.UT,T.txCount=0,T.maybeBroadcastWatch=(0,g.LV)(function(k,K){return T.broadcastWatch.call(T,k,!!K)},{makeCacheKey:function(k){var K=k.optimistic?T.optimisticData:T.data;if(A(K))return K.makeCacheKey(k.query,k.callback,JSON.stringify({optimistic:k.optimistic,rootId:k.rootId,variables:k.variables}))}}),T.watchDep=(0,g.yN)(),T.config=(0,a.__assign)((0,a.__assign)({},z),S),T.addTypename=!!T.config.addTypename,T.policies=new H.l({cache:T,dataIdFromObject:T.config.dataIdFromObject,possibleTypes:T.config.possibleTypes,typePolicies:T.config.typePolicies}),T.data=new L.Root({policies:T.policies,resultCaching:T.config.resultCaching}),T.optimisticData=T.data,T.storeWriter=new N(T,T.storeReader=new C({cache:T,addTypename:T.addTypename})),T}return(0,a.__extends)(M,X),M.prototype.restore=function(S){return S&&this.data.replace(S),this},M.prototype.extract=function(S){return void 0===S&&(S=!1),(S?this.optimisticData:this.data).extract()},M.prototype.read=function(S){var T=S.returnPartialData,k=void 0!==T&&T;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:k}).result||null}catch(K){if(K instanceof t.Z)return null;throw K}},M.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()}},M.prototype.modify=function(S){if(d.$3.call(S,"id")&&!S.id)return!1;var T=S.optimistic?this.optimisticData:this.data;try{return++this.txCount,T.modify(S.id||"ROOT_QUERY",S.fields)}finally{! --this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},M.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})},M.prototype.watch=function(S){var T=this;return this.watches.size||(0,Q.MS)(this),this.watches.add(S),S.immediate&&this.maybeBroadcastWatch(S),function(){T.watches.delete(S)&&!T.watches.size&&(0,Q.WR)(T),T.watchDep.dirty(S),T.maybeBroadcastWatch.forget(S)}},M.prototype.gc=function(){return this.optimisticData.gc()},M.prototype.retain=function(S,T){return(T?this.optimisticData:this.data).retain(S)},M.prototype.release=function(S,T){return(T?this.optimisticData:this.data).release(S)},M.prototype.identify=function(S){return(0,r.A_)(S)?S.__ref:this.policies.identify(S)[0]},M.prototype.evict=function(S){if(!S.id){if(d.$3.call(S,"id"))return!1;S=(0,a.__assign)((0,a.__assign)({},S),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(S)}finally{! --this.txCount&&!1!==S.broadcast&&this.broadcastWatches()}},M.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},M.prototype.removeOptimistic=function(S){var T=this.optimisticData.removeLayer(S);T!==this.optimisticData&&(this.optimisticData=T,this.broadcastWatches())},M.prototype.performTransaction=function(S,T){var k=this,K=function(ne){var ce=k.data,ve=k.optimisticData;++k.txCount,ne&&(k.data=k.optimisticData=ne);try{S(k)}finally{--k.txCount,k.data=ce,k.optimisticData=ve}},ee=!1;"string"==typeof T?(this.optimisticData=this.optimisticData.addLayer(T,K),ee=!0):null===T?K(this.data):K(),this.broadcastWatches(ee)},M.prototype.transformDocument=function(S){if(this.addTypename){var T=this.typenameDocumentCache.get(S);return T||(T=(0,i.XY)(S),this.typenameDocumentCache.set(S,T),this.typenameDocumentCache.set(T,T)),T}return S},M.prototype.broadcastWatches=function(S){var T=this;this.txCount||this.watches.forEach(function(k){return T.maybeBroadcastWatch(k,S)})},M.prototype.broadcastWatch=function(S,T){this.watchDep.dirty(S),this.watchDep(S);var k=this.diff({query:S.query,variables:S.variables,optimistic:S.optimistic});S.optimistic&&T&&(k.fromOptimisticTransaction=!0),S.callback(k)},M}(l.k)},4049:(W,w,c)=>{"use strict";c.d(w,{l:()=>b,o:()=>o});var a=c(40909),g=c(31092),l=c(9685),t=c(23718),r=c(77919),i=c(91779),s=c(40054),e=c(81734);function n(R){return void 0!==R.args?R.args:R.field?(0,t.MB)(R.field,R.variables):null}var o=function(R,_){var O=R.__typename,h=R.id,A=R._id;if("string"==typeof O&&(_&&(_.keyObject=void 0!==h?{id:h}:void 0!==A?{_id:A}:void 0),void 0===h&&(h=A),void 0!==h))return O+":"+("number"==typeof h||"string"==typeof h?h:JSON.stringify(h))},u=function(){},p=function(R,_){return _.fieldName},f=function(R,_,O){return(0,O.mergeObjects)(R,_)},E=function(R,_){return _},b=function(){function R(_){this.config=_,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.__assign)({dataIdFromObject:o},_),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),_.possibleTypes&&this.addPossibleTypes(_.possibleTypes),_.typePolicies&&this.addTypePolicies(_.typePolicies)}return R.prototype.identify=function(_,O,h){var A=O&&h?(0,t.D$)(_,O,h):_.__typename;if(A===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var C,v={typename:A,selectionSet:O,fragmentMap:h},U=A&&this.getTypePolicy(A),N=U&&U.keyFn||this.config.dataIdFromObject;N;){var j=N(_,v);if(!Array.isArray(j)){C=j;break}N=x(j)}return C=C?String(C):void 0,v.keyObject?[C,v.keyObject]:[C]},R.prototype.addTypePolicies=function(_){var O=this;Object.keys(_).forEach(function(h){var A=_[h],v=A.queryType,C=A.mutationType,U=A.subscriptionType,N=(0,a.__rest)(A,["queryType","mutationType","subscriptionType"]);v&&O.setRootTypename("Query",h),C&&O.setRootTypename("Mutation",h),U&&O.setRootTypename("Subscription",h),s.$3.call(O.toBeAdded,h)?O.toBeAdded[h].push(N):O.toBeAdded[h]=[N]})},R.prototype.updateTypePolicy=function(_,O){var h=this,A=this.getTypePolicy(_),v=O.keyFields,C=O.fields;function U(N,j){N.merge="function"==typeof j?j:!0===j?f:!1===j?E:N.merge}U(A,O.merge),A.keyFn=!1===v?u:Array.isArray(v)?x(v):"function"==typeof v?v:A.keyFn,C&&Object.keys(C).forEach(function(N){var j=h.getFieldPolicy(_,N,!0),Y=C[N];if("function"==typeof Y)j.read=Y;else{var re=Y.keyArgs,B=Y.read,J=Y.merge;j.keyFn=!1===re?p:Array.isArray(re)?m(re):"function"==typeof re?re:j.keyFn,"function"==typeof B&&(j.read=B),U(j,J)}j.read&&j.merge&&(j.keyFn=j.keyFn||p)})},R.prototype.setRootTypename=function(_,O){void 0===O&&(O=_);var h="ROOT_"+_.toUpperCase(),A=this.rootTypenamesById[h];O!==A&&((0,l.V1)(!A||A===_,1),A&&delete this.rootIdsByTypename[A],this.rootIdsByTypename[O]=h,this.rootTypenamesById[h]=O)},R.prototype.addPossibleTypes=function(_){var O=this;this.usingPossibleTypes=!0,Object.keys(_).forEach(function(h){O.getSupertypeSet(h,!0),_[h].forEach(function(A){O.getSupertypeSet(A,!0).add(h);var v=A.match(s.gk);(!v||v[0]!==A)&&O.fuzzySubtypes.set(A,new RegExp(A))})})},R.prototype.getTypePolicy=function(_){var O=this;if(!s.$3.call(this.typePolicies,_)){var h=this.typePolicies[_]=Object.create(null);h.fields=Object.create(null);var A=this.supertypeMap.get(_);A&&A.size&&A.forEach(function(C){var U=O.getTypePolicy(C),N=U.fields,j=(0,a.__rest)(U,["fields"]);Object.assign(h,j),Object.assign(h.fields,N)})}var v=this.toBeAdded[_];return v&&v.length&&v.splice(0).forEach(function(C){O.updateTypePolicy(_,C)}),this.typePolicies[_]},R.prototype.getFieldPolicy=function(_,O,h){if(_){var A=this.getTypePolicy(_).fields;return A[O]||h&&(A[O]=Object.create(null))}},R.prototype.getSupertypeSet=function(_,O){var h=this.supertypeMap.get(_);return!h&&O&&this.supertypeMap.set(_,h=new Set),h},R.prototype.fragmentMatches=function(_,O,h,A){var v=this;if(!_.typeCondition)return!0;if(!O)return!1;var C=_.typeCondition.name.value;if(O===C)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(C))for(var U=this.getSupertypeSet(O,!0),N=[U],j=function(Q){var H=v.getSupertypeSet(Q,!1);H&&H.size&&N.indexOf(H)<0&&N.push(H)},Y=!(!h||!this.fuzzySubtypes.size),B=0;B<N.length;++B){var J=N[B];if(J.has(C))return U.has(C)||U.add(C),!0;J.forEach(j),Y&&B===N.length-1&&(0,s.T9)(_.selectionSet,h,A)&&(Y=!1,this.fuzzySubtypes.forEach(function(Q,H){var z=O.match(Q);z&&z[0]===O&&j(H)}))}return!1},R.prototype.hasKeyArgs=function(_,O){var h=this.getFieldPolicy(_,O,!1);return!(!h||!h.keyFn)},R.prototype.getStoreFieldName=function(_){var v,O=_.typename,h=_.fieldName,A=this.getFieldPolicy(O,h,!1),C=A&&A.keyFn;if(C&&O)for(var U={typename:O,fieldName:h,field:_.field||null,variables:_.variables},N=n(_);C;){var j=C(N,U);if(!Array.isArray(j)){v=j||h;break}C=m(j)}return void 0===v&&(v=_.field?(0,t.Ii)(_.field,_.variables):(0,t.o5)(h,n(_))),!1===v?h:h===(0,s.iJ)(v)?v:h+":"+v},R.prototype.readField=function(_,O){var h=_.from;if(h&&(_.field||_.fieldName)){if(void 0===_.typename){var v=O.store.getFieldValue(h,"__typename");v&&(_.typename=v)}var C=this.getStoreFieldName(_),U=(0,s.iJ)(C),N=O.store.getFieldValue(h,C),j=this.getFieldPolicy(_.typename,U,!1),Y=j&&j.read;if(Y){var re=y(this,h,_,O,O.store.getStorage((0,t.A_)(h)?h.__ref:h,C));return e.bl.withValue(this.cache,Y,[N,re])}return N}},R.prototype.getMergeFunction=function(_,O,h){var A=this.getFieldPolicy(_,O,!1),v=A&&A.merge;return!v&&h&&(v=(A=this.getTypePolicy(h))&&A.merge),v},R.prototype.runMergeFunction=function(_,O,h,A,v){var C=h.field,U=h.typename,N=h.merge;return N===f?d(A.store.getFieldValue)(_,O):N===E?O:N(_,O,y(this,void 0,{typename:U,fieldName:C.name.value,field:C,variables:A.variables},A,v||Object.create(null)))},R}();function y(R,_,O,h,A){var v=R.getStoreFieldName(O),C=(0,s.iJ)(v),U=O.variables||h.variables,N=h.store,j=N.getFieldValue,Y=N.toReference,re=N.canRead;return{args:n(O),field:O.field||null,fieldName:C,storeFieldName:v,variables:U,isReference:t.A_,toReference:Y,storage:A,cache:R.cache,canRead:re,readField:function(B,J){var Q="string"==typeof B?{fieldName:B,from:J}:(0,a.__assign)({},B);return void 0===Q.from&&(Q.from=_),void 0===Q.variables&&(Q.variables=U),R.readField(Q,h)},mergeObjects:d(j)}}function d(R){return function(O,h){if(Array.isArray(O)||Array.isArray(h))throw new l.zU(2);if(O&&"object"==typeof O&&h&&"object"==typeof h){var A=R(O,"__typename"),v=R(h,"__typename");return A&&v&&A!==v||!(0,s.d1)(O)||!(0,s.d1)(h)?h:(0,a.__assign)((0,a.__assign)({},O),h)}return h}}function m(R){return function(_,O){return _?O.fieldName+":"+JSON.stringify(L(_,R,!1)):O.fieldName}}function x(R){var _=new g.oZ(r.e);return function(O,h){var A;if(h.selectionSet&&h.fragmentMap){var v=_.lookupArray([h.selectionSet,h.fragmentMap]);A=v.aliasMap||(v.aliasMap=I(h.selectionSet,h.fragmentMap))}var C=h.keyObject=L(O,R,!0,A);return h.typename+":"+JSON.stringify(C)}}function I(R,_){var O=Object.create(null),h=new Set([R]);return h.forEach(function(A){A.selections.forEach(function(v){if((0,t.dt)(v)){if(v.alias){var C=v.alias.value,U=v.name.value;U!==C&&((O.aliases||(O.aliases=Object.create(null)))[U]=C)}v.selectionSet&&((O.subsets||(O.subsets=Object.create(null)))[v.name.value]=I(v.selectionSet,_))}else{var Y=(0,i.HQ)(v,_);Y&&h.add(Y.selectionSet)}})}),O}function L(R,_,O,h){var v,A=Object.create(null);return _.forEach(function(C){if(Array.isArray(C)){if("string"==typeof v){var U=h&&h.subsets;A[v]=L(R[v],C,O,U&&U[v])}}else{var j=h&&h.aliases,Y=j&&j[C]||C;s.$3.call(R,Y)?A[v=C]=R[Y]:((0,l.V1)(!O,3),v=void 0)}}),A}},81734:(W,w,c)=>{"use strict";c.d(w,{MS:()=>s,UT:()=>e,WR:()=>i,bl:()=>l});var a=c(31092),l=new(c(35365).DX),t=new WeakMap;function r(o){var u=t.get(o);return u||t.set(o,u={vars:new Set,dep:(0,a.yN)()}),u}function i(o){r(o).vars.forEach(function(u){return u.forgetCache(o)})}function s(o){r(o).vars.forEach(function(u){return u.attachCache(o)})}function e(o){var u=new Set,p=new Set,f=function(b){if(arguments.length>0){if(o!==b){o=b,u.forEach(function(m){r(m).dep.dirty(f),function n(o){o.broadcastWatches&&o.broadcastWatches()}(m)});var y=Array.from(p);p.clear(),y.forEach(function(m){return m(o)})}}else{var d=l.getValue();d&&(E(d),r(d).dep(f))}return o};f.onNextChange=function(b){return p.add(b),function(){p.delete(b)}};var E=f.attachCache=function(b){return u.add(b),r(b).vars.add(f),f};return f.forgetCache=function(b){return u.delete(b)},f}},80462:()=>{},24060:(W,w,c)=>{"use strict";c.d(w,{R:()=>X,l:()=>$});var a=c(40909),g=c(9685),l=c(8347),t=c(70069),r=c(86421),s=c(26253),e=c(11618),n=c(77919);function o(M){return M.errors&&M.errors.length>0||!1}var u=c(26576),p=c(47436),f=c(20794),E=c(30310),b=c(70822),y=c.n(b),d=c(36490),m=c(26071);function x(M){return M&&"function"==typeof M.then}var I=function(M){function S(T){var k=M.call(this,function(K){return k.addObserver(K),function(){return k.removeObserver(K)}})||this;return k.observers=new Set,k.addCount=0,k.promise=new Promise(function(K,ee){k.resolve=K,k.reject=ee}),k.handlers={next:function(K){null!==k.sub&&(k.latest=["next",K],(0,d.w)(k.observers,"next",K))},error:function(K){var ee=k.sub;null!==ee&&(ee&&Promise.resolve().then(function(){return ee.unsubscribe()}),k.sub=null,k.latest=["error",K],k.reject(K),(0,d.w)(k.observers,"error",K))},complete:function(){if(null!==k.sub){var K=k.sources.shift();K?x(K)?K.then(function(ee){return k.sub=ee.subscribe(k.handlers)}):k.sub=K.subscribe(k.handlers):(k.sub=null,k.latest&&"next"===k.latest[0]?k.resolve(k.latest[1]):k.resolve(),(0,d.w)(k.observers,"complete"))}}},k.cancel=function(K){k.reject(K),k.sources=[],k.handlers.complete()},k.promise.catch(function(K){}),"function"==typeof T&&(T=[new(y())(T)]),x(T)?T.then(function(K){return k.start(K)},k.handlers.error):k.start(T),k}return(0,a.__extends)(S,M),S.prototype.start=function(T){void 0===this.sub&&(this.sources=Array.from(T),this.handlers.complete())},S.prototype.deliverLastMessage=function(T){if(this.latest){var k=this.latest[0],K=T[k];K&&K.call(T,this.latest[1]),null===this.sub&&"next"===k&&T.complete&&T.complete()}},S.prototype.addObserver=function(T){this.observers.has(T)||(this.deliverLastMessage(T),this.observers.add(T),++this.addCount)},S.prototype.removeObserver=function(T,k){this.observers.delete(T)&&--this.addCount<1&&!k&&this.handlers.error(new Error("Observable cancelled prematurely"))},S.prototype.cleanup=function(T){var k=this,K=!1,ee=function(){K||(K=!0,k.observers.delete(ne),T())},ne={next:ee,error:ee,complete:ee},se=this.addCount;this.addObserver(ne),this.addCount=se},S}(y());function L(M,S,T){return new(y())(function(k){var K=k.next,ee=k.error,ne=k.complete,se=0,ce=!1,ve={then:function(ge){return new Promise(function(F){return F(ge())})}};function de(ge,F){return ge?function(P){++se;var D=function(){return ge(P)};ve=ve.then(D,D).then(function(G){--se,K&&K.call(k,G),ce&&pe.complete()},function(G){throw--se,G}).catch(function(G){ee&&ee.call(k,G)})}:function(P){return F&&F.call(k,P)}}var pe={next:de(S,K),error:de(T,ee),complete:function(){ce=!0,se||ne&&ne.call(k)}},me=M.subscribe(pe);return function(){return me.unsubscribe()}})}(0,m.r)(I);var R=c(12943),_=c(45688),O=c(74083),h=c(16651),A=c(71318),v=c(91779),C=c(23718),U=c(81734),N=function(){function M(S){var k=S.client,K=S.resolvers,ee=S.fragmentMatcher;this.cache=S.cache,k&&(this.client=k),K&&this.addResolvers(K),ee&&this.setFragmentMatcher(ee)}return M.prototype.addResolvers=function(S){var T=this;this.resolvers=this.resolvers||{},Array.isArray(S)?S.forEach(function(k){T.resolvers=(0,A.D9)(T.resolvers,k)}):this.resolvers=(0,A.D9)(this.resolvers,S)},M.prototype.setResolvers=function(S){this.resolvers={},this.addResolvers(S)},M.prototype.getResolvers=function(){return this.resolvers||{}},M.prototype.runResolvers=function(S){var T=S.document,k=S.remoteResult,K=S.context,ee=S.variables,ne=S.onlyRunForcedResolvers,se=void 0!==ne&&ne;return(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(ce){return T?[2,this.resolveDocument(T,k.data,K,ee,this.fragmentMatcher,se).then(function(ve){return(0,a.__assign)((0,a.__assign)({},k),{data:ve.result})})]:[2,k]})})},M.prototype.setFragmentMatcher=function(S){this.fragmentMatcher=S},M.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},M.prototype.clientQuery=function(S){return(0,E.d8)(["client"],S)&&this.resolvers?S:null},M.prototype.serverQuery=function(S){return(0,f.er)(S)},M.prototype.prepareContext=function(S){var T=this.cache;return(0,a.__assign)((0,a.__assign)({},S),{cache:T,getCacheKey:function(k){return T.identify(k)}})},M.prototype.addExportedVariables=function(S,T,k){return void 0===T&&(T={}),void 0===k&&(k={}),(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(K){return S?[2,this.resolveDocument(S,this.buildRootValueFromCache(S,T)||{},this.prepareContext(k),T).then(function(ee){return(0,a.__assign)((0,a.__assign)({},T),ee.exportedVariables)})]:[2,(0,a.__assign)({},T)]})})},M.prototype.shouldForceResolvers=function(S){var T=!1;return(0,h.YR)(S,{Directive:{enter:function(k){if("client"===k.name.value&&k.arguments&&(T=k.arguments.some(function(K){return"always"===K.name.value&&"BooleanValue"===K.value.kind&&!0===K.value.value})))return h.sP}}}),T},M.prototype.buildRootValueFromCache=function(S,T){return this.cache.diff({query:(0,f.zc)(S),variables:T,returnPartialData:!0,optimistic:!1}).result},M.prototype.resolveDocument=function(S,T,k,K,ee,ne){return void 0===k&&(k={}),void 0===K&&(K={}),void 0===ee&&(ee=function(){return!0}),void 0===ne&&(ne=!1),(0,a.__awaiter)(this,void 0,void 0,function(){var se,ce,ve,de,pe,me,ge,F,P;return(0,a.__generator)(this,function(D){return se=(0,p.Vn)(S),ce=(0,p.zK)(S),ve=(0,v.JG)(ce),pe=(de=se.operation)?de.charAt(0).toUpperCase()+de.slice(1):"Query",ge=(me=this).cache,F=me.client,P={fragmentMap:ve,context:(0,a.__assign)((0,a.__assign)({},k),{cache:ge,client:F}),variables:K,fragmentMatcher:ee,defaultOperationType:pe,exportedVariables:{},onlyRunForcedResolvers:ne},[2,this.resolveSelectionSet(se.selectionSet,T,P).then(function(G){return{result:G,exportedVariables:P.exportedVariables}})]})})},M.prototype.resolveSelectionSet=function(S,T,k){return(0,a.__awaiter)(this,void 0,void 0,function(){var K,ee,ne,se,ve=this;return(0,a.__generator)(this,function(de){return K=k.fragmentMap,ee=k.context,ne=k.variables,se=[T],[2,Promise.all(S.selections.map(function(pe){return(0,a.__awaiter)(ve,void 0,void 0,function(){var me;return(0,a.__generator)(this,function(F){return(0,E.MS)(pe,ne)?(0,C.dt)(pe)?[2,this.resolveField(pe,T,k).then(function(P){var D;typeof P<"u"&&se.push(((D={})[(0,C.ue)(pe)]=P,D))})]:((0,C.kd)(pe)?me=pe:(0,g.V1)(me=K[pe.name.value],11),me&&me.typeCondition&&k.fragmentMatcher(T,me.typeCondition.name.value,ee)?[2,this.resolveSelectionSet(me.selectionSet,T,k).then(function(P){se.push(P)})]:[2]):[2]})})})).then(function(){return(0,A.IM)(se)})]})})},M.prototype.resolveField=function(S,T,k){return(0,a.__awaiter)(this,void 0,void 0,function(){var K,ee,ne,se,ce,ve,de,pe,me,ge=this;return(0,a.__generator)(this,function(F){return K=k.variables,ee=S.name.value,ne=(0,C.ue)(S),se=ee!==ne,ce=T[ne]||T[ee],ve=Promise.resolve(ce),(!k.onlyRunForcedResolvers||this.shouldForceResolvers(S))&&(de=T.__typename||k.defaultOperationType,(pe=this.resolvers&&this.resolvers[de])&&(me=pe[se?ee:ne])&&(ve=Promise.resolve(U.bl.withValue(this.cache,me,[T,(0,C.MB)(S,K),k.context,{field:S,fragmentMap:k.fragmentMap}])))),[2,ve.then(function(P){return void 0===P&&(P=ce),S.directives&&S.directives.forEach(function(D){"export"===D.name.value&&D.arguments&&D.arguments.forEach(function(G){"as"===G.name.value&&"StringValue"===G.value.kind&&(k.exportedVariables[G.value.value]=P)})}),S.selectionSet&&null!=P?Array.isArray(P)?ge.resolveSubSelectedArray(S,P,k):S.selectionSet?ge.resolveSelectionSet(S.selectionSet,P,k):void 0:P})]})})},M.prototype.resolveSubSelectedArray=function(S,T,k){var K=this;return Promise.all(T.map(function(ee){return null===ee?null:Array.isArray(ee)?K.resolveSubSelectedArray(S,ee,k):S.selectionSet?K.resolveSelectionSet(S.selectionSet,ee,k):void 0}))},M}(),j=new(n.e?WeakMap:Map);function Y(M,S){var T=M[S];"function"==typeof T&&(M[S]=function(){return j.set(M,(j.get(M)+1)%1e15),T.apply(this,arguments)})}function re(M){M.notifyTimeout&&(clearTimeout(M.notifyTimeout),M.notifyTimeout=void 0)}var B=function(){function M(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),Y(S,"evict"),Y(S,"modify"),Y(S,"reset"))}return M.prototype.init=function(S){var T=S.networkStatus||O.p.loading;return this.variables&&this.networkStatus!==O.p.loading&&!(0,e.L)(this.variables,S.variables)&&(T=O.p.setVariables),(0,e.L)(S.variables,this.variables)||(this.diff=null),Object.assign(this,{document:S.document,variables:S.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:T}),S.observableQuery&&this.setObservableQuery(S.observableQuery),S.lastRequestId&&(this.lastRequestId=S.lastRequestId),this},M.prototype.reset=function(){re(this),this.diff=null,this.dirty=!1},M.prototype.getDiff=function(S){return void 0===S&&(S=this.variables),this.diff&&(0,e.L)(S,this.variables)?this.diff:(this.updateWatch(this.variables=S),this.diff=this.cache.diff({query:this.document,variables:S,returnPartialData:!0,optimistic:!0}))},M.prototype.setDiff=function(S){var T=this,k=this.diff;this.diff=S,!this.dirty&&(S&&S.result)!==(k&&k.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return T.notify()},0)))},M.prototype.setObservableQuery=function(S){var T=this;S!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=S,S?(S.queryInfo=this,this.listeners.add(this.oqListener=function(){T.getDiff().fromOptimisticTransaction?S.observe():S.reobserve()})):delete this.oqListener)},M.prototype.notify=function(){var S=this;re(this),this.shouldNotify()&&this.listeners.forEach(function(T){return T(S)}),this.dirty=!1},M.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,O.b)(this.networkStatus)&&this.observableQuery){var S=this.observableQuery.options.fetchPolicy;if("cache-only"!==S&&"cache-and-network"!==S)return!1}return!0},M.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(T){return T.unsubscribe()});var S=this.observableQuery;S&&S.stopPolling()}},M.prototype.cancel=function(){},M.prototype.updateWatch=function(S){var T=this;void 0===S&&(S=this.variables);var k=this.observableQuery;k&&"no-cache"===k.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,e.L)(S,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:S,optimistic:!0,callback:function(K){return T.setDiff(K)}}))},M.prototype.shouldWrite=function(S,T){var k=this.lastWrite;return!(k&&k.dmCount===j.get(this.cache)&&(0,e.L)(T,k.variables)&&(0,e.L)(S.data,k.result.data))},M.prototype.markResult=function(S,T,k){var K=this;this.graphQLErrors=(0,u.E)(S.errors)?S.errors:[],this.reset(),"no-cache"===T.fetchPolicy?this.diff={result:S.data,complete:!0}:!this.stopped&&k&&(J(S,T.errorPolicy)?this.cache.performTransaction(function(ee){if(K.shouldWrite(S,T.variables))ee.writeQuery({query:K.document,data:S.data,variables:T.variables}),K.lastWrite={result:S,variables:T.variables,dmCount:j.get(K.cache)};else if(K.diff&&K.diff.complete)return void(S.data=K.diff.result);var ne=ee.diff({query:K.document,variables:T.variables,returnPartialData:!0,optimistic:!0});K.stopped||K.updateWatch(T.variables),K.diff=ne,ne.complete&&(S.data=ne.result)}):this.lastWrite=void 0)},M.prototype.markReady=function(){return this.networkError=null,this.networkStatus=O.p.ready},M.prototype.markError=function(S){return this.networkStatus=O.p.error,this.lastWrite=void 0,this.reset(),S.graphQLErrors&&(this.graphQLErrors=S.graphQLErrors),S.networkError&&(this.networkError=S.networkError),S},M}();function J(M,S){void 0===S&&(S="none");var T="ignore"===S||"all"===S,k=!o(M);return!k&&T&&M.data&&(k=!0),k}var Q=Object.prototype.hasOwnProperty,H=function(){function M(S){var T=S.cache,k=S.link,K=S.queryDeduplication,ee=void 0!==K&&K,ne=S.onBroadcast,se=S.ssrMode,ce=void 0!==se&&se,ve=S.clientAwareness,de=void 0===ve?{}:ve,pe=S.localState,me=S.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(n.e?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=T,this.link=k,this.queryDeduplication=ee,this.clientAwareness=de,this.localState=pe||new N({cache:T}),this.ssrMode=ce,this.assumeImmutableResults=!!me,(this.onBroadcast=ne)&&(this.mutationStore=Object.create(null))}return M.prototype.stop=function(){var S=this;this.queries.forEach(function(T,k){S.stopQueryNoBroadcast(k)}),this.cancelPendingFetches(new g.zU(12))},M.prototype.cancelPendingFetches=function(S){this.fetchCancelFns.forEach(function(T){return T(S)}),this.fetchCancelFns.clear()},M.prototype.mutate=function(S){var T=S.mutation,k=S.variables,K=S.optimisticResponse,ee=S.updateQueries,ne=S.refetchQueries,se=void 0===ne?[]:ne,ce=S.awaitRefetchQueries,ve=void 0!==ce&&ce,de=S.update,pe=S.errorPolicy,me=void 0===pe?"none":pe,ge=S.fetchPolicy,F=S.context,P=void 0===F?{}:F;return(0,a.__awaiter)(this,void 0,void 0,function(){var D,G,ae;return(0,a.__generator)(this,function(he){switch(he.label){case 0:return(0,g.V1)(T,13),(0,g.V1)(!ge||"no-cache"===ge,14),D=this.generateMutationId(),T=this.transform(T).document,k=this.getVariables(T,k),this.transform(T).hasClientExports?[4,this.localState.addExportedVariables(T,k,P)]:[3,2];case 1:k=he.sent(),he.label=2;case 2:return G=this.mutationStore&&(this.mutationStore[D]={mutation:T,variables:k,loading:!0,error:null}),K&&this.markMutationOptimistic(K,{mutationId:D,document:T,variables:k,errorPolicy:me,updateQueries:ee,update:de}),this.broadcastQueries(),ae=this,[2,new Promise(function(le,V){var Z,te;ae.getObservableFromLink(T,(0,a.__assign)((0,a.__assign)({},P),{optimisticResponse:K}),k,!1).subscribe({next:function(oe){if(o(oe)&&"none"===me)te=new R.K({graphQLErrors:oe.errors});else{if(G&&(G.loading=!1,G.error=null),"no-cache"!==ge)try{ae.markMutationResult({mutationId:D,result:oe,document:T,variables:k,errorPolicy:me,updateQueries:ee,update:de})}catch(fe){return void(te=new R.K({networkError:fe}))}Z=oe}},error:function(oe){G&&(G.loading=!1,G.error=oe),K&&ae.cache.removeOptimistic(D),ae.broadcastQueries(),V(new R.K({networkError:oe}))},complete:function(){if(te&&G&&(G.loading=!1,G.error=te),K&&ae.cache.removeOptimistic(D),ae.broadcastQueries(),te)V(te);else{"function"==typeof se&&(se=se(Z));var oe=[];(0,u.E)(se)&&se.forEach(function(fe){if("string"==typeof fe)ae.queries.forEach(function(Se){var we=Se.observableQuery;we&&we.hasObservers()&&we.queryName===fe&&oe.push(we.refetch())});else{var be={query:fe.query,variables:fe.variables,fetchPolicy:"network-only"};fe.context&&(be.context=fe.context),oe.push(ae.query(be))}}),Promise.all(ve?oe:[]).then(function(){"ignore"===me&&Z&&o(Z)&&delete Z.errors,le(Z)},V)}}})})]}})})},M.prototype.markMutationResult=function(S,T){var k=this;if(void 0===T&&(T=this.cache),J(S.result,S.errorPolicy)){var K=[{result:S.result.data,dataId:"ROOT_MUTATION",query:S.document,variables:S.variables}],ee=S.updateQueries;ee&&this.queries.forEach(function(ne,se){var ce=ne.observableQuery,ve=ce&&ce.queryName;if(ve&&Q.call(ee,ve)){var de=ee[ve],pe=k.queries.get(se),me=pe.document,ge=pe.variables,F=T.diff({query:me,variables:ge,returnPartialData:!0,optimistic:!1}),P=F.result;if(F.complete&&P){var G=de(P,{mutationResult:S.result,queryName:me&&(0,p.n4)(me)||void 0,queryVariables:ge});G&&K.push({result:G,dataId:"ROOT_QUERY",query:me,variables:ge})}}}),T.performTransaction(function(ne){K.forEach(function(ce){return ne.write(ce)});var se=S.update;se&&se(ne,S.result)},null)}},M.prototype.markMutationOptimistic=function(S,T){var k=this,K="function"==typeof S?S(T.variables):S;return this.cache.recordOptimisticTransaction(function(ee){try{k.markMutationResult((0,a.__assign)((0,a.__assign)({},T),{result:{data:K}}),ee)}catch{}},T.mutationId)},M.prototype.fetchQuery=function(S,T,k){return this.fetchQueryObservable(S,T,k).promise},M.prototype.getQueryStore=function(){var S=Object.create(null);return this.queries.forEach(function(T,k){S[k]={variables:T.variables,networkStatus:T.networkStatus,networkError:T.networkError,graphQLErrors:T.graphQLErrors}}),S},M.prototype.resetErrors=function(S){var T=this.queries.get(S);T&&(T.networkError=void 0,T.graphQLErrors=[])},M.prototype.transform=function(S){var T=this.transformCache;if(!T.has(S)){var k=this.cache.transformDocument(S),K=(0,f.hX)(this.cache.transformForLink(k)),ee=this.localState.clientQuery(k),ne=K&&this.localState.serverQuery(K),se={document:k,hasClientExports:(0,E.f2)(k),hasForcedResolvers:this.localState.shouldForceResolvers(k),clientQuery:ee,serverQuery:ne,defaultVars:(0,p.wY)((0,p.Vu)(k))},ce=function(ve){ve&&!T.has(ve)&&T.set(ve,se)};ce(S),ce(k),ce(ee),ce(ne)}return T.get(S)},M.prototype.getVariables=function(S,T){return(0,a.__assign)((0,a.__assign)({},this.transform(S).defaultVars),T)},M.prototype.watchQuery=function(S){typeof(S=(0,a.__assign)((0,a.__assign)({},S),{variables:this.getVariables(S.query,S.variables)})).notifyOnNetworkStatusChange>"u"&&(S.notifyOnNetworkStatusChange=!1);var T=new B(this.cache),k=new _.U({queryManager:this,queryInfo:T,options:S});return this.queries.set(k.queryId,T),T.init({document:S.query,observableQuery:k,variables:S.variables}),k},M.prototype.query=function(S){var T=this;(0,g.V1)(S.query,15),(0,g.V1)("Document"===S.query.kind,16),(0,g.V1)(!S.returnPartialData,17),(0,g.V1)(!S.pollInterval,18);var k=this.generateQueryId();return this.fetchQuery(k,S).finally(function(){return T.stopQuery(k)})},M.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},M.prototype.generateRequestId=function(){return this.requestIdCounter++},M.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},M.prototype.stopQueryInStore=function(S){this.stopQueryInStoreNoBroadcast(S),this.broadcastQueries()},M.prototype.stopQueryInStoreNoBroadcast=function(S){var T=this.queries.get(S);T&&T.stop()},M.prototype.clearStore=function(){return this.cancelPendingFetches(new g.zU(19)),this.queries.forEach(function(S){S.observableQuery?S.networkStatus=O.p.loading:S.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},M.prototype.resetStore=function(){var S=this;return this.clearStore().then(function(){return S.reFetchObservableQueries()})},M.prototype.reFetchObservableQueries=function(S){var T=this;void 0===S&&(S=!1);var k=[];return this.queries.forEach(function(K,ee){var ne=K.observableQuery;if(ne&&ne.hasObservers()){var se=ne.options.fetchPolicy;ne.resetLastResults(),"cache-only"!==se&&(S||"standby"!==se)&&k.push(ne.refetch()),T.getQuery(ee).setDiff(null)}}),this.broadcastQueries(),Promise.all(k)},M.prototype.setObservableQuery=function(S){this.getQuery(S.queryId).setObservableQuery(S)},M.prototype.startGraphQLSubscription=function(S){var T=this,k=S.query,K=S.fetchPolicy,ee=S.errorPolicy,ne=S.variables,se=S.context,ce=void 0===se?{}:se;k=this.transform(k).document,ne=this.getVariables(k,ne);var ve=function(pe){return T.getObservableFromLink(k,ce,pe,!1).map(function(me){if("no-cache"!==K&&(J(me,ee)&&T.cache.write({query:k,result:me.data,dataId:"ROOT_SUBSCRIPTION",variables:pe}),T.broadcastQueries()),o(me))throw new R.K({graphQLErrors:me.errors});return me})};if(this.transform(k).hasClientExports){var de=this.localState.addExportedVariables(k,ne,ce).then(ve);return new(y())(function(pe){var me=null;return de.then(function(ge){return me=ge.subscribe(pe)},pe.error),function(){return me&&me.unsubscribe()}})}return ve(ne)},M.prototype.stopQuery=function(S){this.stopQueryNoBroadcast(S),this.broadcastQueries()},M.prototype.stopQueryNoBroadcast=function(S){this.stopQueryInStoreNoBroadcast(S),this.removeQuery(S)},M.prototype.removeQuery=function(S){this.fetchCancelFns.delete(S),this.getQuery(S).stop(),this.queries.delete(S)},M.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(S){return S.notify()})},M.prototype.getLocalState=function(){return this.localState},M.prototype.getObservableFromLink=function(S,T,k,K){var ne,ee=this;void 0===K&&(K=null!==(ne=T?.queryDeduplication)&&void 0!==ne?ne:this.queryDeduplication);var se,ce=this.transform(S).serverQuery;if(ce){var de=this.inFlightLinkObservables,pe=this.link,me={query:ce,variables:k,operationName:(0,p.n4)(ce)||void 0,context:this.prepareContext((0,a.__assign)((0,a.__assign)({},T),{forceFetch:!K}))};if(T=me.context,K){var ge=de.get(ce)||new Map;de.set(ce,ge);var F=JSON.stringify(k);if(!(se=ge.get(F))){var P=new I([(0,t.g)(pe,me)]);ge.set(F,se=P),P.cleanup(function(){ge.delete(F)&&ge.size<1&&de.delete(ce)})}}else se=new I([(0,t.g)(pe,me)])}else se=new I([y().of({data:{}})]),T=this.prepareContext(T);var D=this.transform(S).clientQuery;return D&&(se=L(se,function(G){return ee.localState.runResolvers({document:D,remoteResult:G,context:T,variables:k})})),se},M.prototype.getResultsFromLink=function(S,T,k){var K=S.lastRequestId=this.generateRequestId();return L(this.getObservableFromLink(S.document,k.context,k.variables),function(ee){var ne=(0,u.E)(ee.errors);if(K>=S.lastRequestId){if(ne&&"none"===k.errorPolicy)throw S.markError(new R.K({graphQLErrors:ee.errors}));S.markResult(ee,k,T),S.markReady()}var se={data:ee.data,loading:!1,networkStatus:S.networkStatus||O.p.ready};return ne&&"ignore"!==k.errorPolicy&&(se.errors=ee.errors),se},function(ee){var ne=(0,R.M)(ee)?ee:new R.K({networkError:ee});throw K>=S.lastRequestId&&S.markError(ne),ne})},M.prototype.fetchQueryObservable=function(S,T,k){var K=this;void 0===k&&(k=O.p.loading);var ee=this.transform(T.query).document,ne=this.getVariables(ee,T.variables),se=this.getQuery(S),ce=se.networkStatus,ve=T.fetchPolicy,de=void 0===ve?"cache-first":ve,pe=T.errorPolicy,me=void 0===pe?"none":pe,ge=T.returnPartialData,F=void 0!==ge&&ge,P=T.notifyOnNetworkStatusChange,D=void 0!==P&&P,G=T.context,ae=void 0===G?{}:G;("cache-first"===de||"cache-and-network"===de||"network-only"===de||"no-cache"===de)&&D&&"number"==typeof ce&&ce!==k&&(0,O.b)(k)&&("cache-first"!==de&&(de="cache-and-network"),F=!0);var le=Object.assign({},T,{query:ee,variables:ne,fetchPolicy:de,errorPolicy:me,returnPartialData:F,notifyOnNetworkStatusChange:D,context:ae}),V=function(te){return le.variables=te,K.fetchQueryByPolicy(se,le,k)};this.fetchCancelFns.set(S,function(te){Promise.resolve().then(function(){return Z.cancel(te)})});var Z=new I(this.transform(le.query).hasClientExports?this.localState.addExportedVariables(le.query,le.variables,le.context).then(V):V(le.variables));return Z.cleanup(function(){K.fetchCancelFns.delete(S);var te=T.nextFetchPolicy;te&&(T.nextFetchPolicy=void 0,T.fetchPolicy="function"==typeof te?te.call(T,T.fetchPolicy||"cache-first"):te)}),Z},M.prototype.fetchQueryByPolicy=function(S,T,k){var K=this,ee=T.query,ne=T.variables,se=T.fetchPolicy,ce=T.errorPolicy,ve=T.returnPartialData,de=T.context;S.init({document:ee,variables:ne,networkStatus:k});var pe=function(){return S.getDiff(ne)},me=function(P,D){void 0===D&&(D=S.networkStatus||O.p.loading);var G=P.result,ae=function(he){return y().of((0,a.__assign)({data:he,loading:(0,O.b)(D),networkStatus:D},P.complete?null:{partial:!0}))};return K.transform(ee).hasForcedResolvers?K.localState.runResolvers({document:ee,remoteResult:{data:G},context:de,variables:ne,onlyRunForcedResolvers:!0}).then(function(he){return ae(he.data)}):ae(G)},ge=function(P){return K.getResultsFromLink(S,P,{variables:ne,context:de,fetchPolicy:se,errorPolicy:ce})};switch(se){default:case"cache-first":return(F=pe()).complete?[me(F,S.markReady())]:ve?[me(F),ge(!0)]:[ge(!0)];case"cache-and-network":var F;return(F=pe()).complete||ve?[me(F),ge(!0)]:[ge(!0)];case"cache-only":return[me(pe(),S.markReady())];case"network-only":return[ge(!0)];case"no-cache":return[ge(!1)];case"standby":return[]}},M.prototype.getQuery=function(S){return S&&!this.queries.has(S)&&this.queries.set(S,new B(this.cache)),this.queries.get(S)},M.prototype.prepareContext=function(S){void 0===S&&(S={});var T=this.localState.prepareContext(S);return(0,a.__assign)((0,a.__assign)({},T),{clientAwareness:this.clientAwareness})},M}();function $(M,S){return(0,r.o)(M,S,S.variables&&{variables:(0,a.__assign)((0,a.__assign)({},M.variables),S.variables)})}var X=function(){function M(S){var T=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var k=S.uri,ne=S.cache,se=S.ssrMode,ce=void 0!==se&&se,ve=S.ssrForceFetchDelay,de=void 0===ve?0:ve,pe=S.connectToDevTools,me=void 0===pe?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:pe,ge=S.queryDeduplication,F=void 0===ge||ge,P=S.defaultOptions,D=S.assumeImmutableResults,G=void 0!==D&&D,ae=S.resolvers,he=S.typeDefs,le=S.fragmentMatcher,V=S.name,Z=S.version,te=S.link;if(te||(te=k?new s.P({uri:k,credentials:S.credentials,headers:S.headers}):l.C.empty()),!ne)throw new g.zU(9);this.link=te,this.cache=ne,this.disableNetworkFetches=ce||de>0,this.queryDeduplication=F,this.defaultOptions=P||{},this.typeDefs=he,de&&setTimeout(function(){return T.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),me&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new N({cache:ne,client:this,resolvers:ae,fragmentMatcher:le}),this.queryManager=new H({cache:this.cache,link:this.link,queryDeduplication:F,ssrMode:ce,clientAwareness:{name:V,version:Z},localState:this.localState,assumeImmutableResults:G,onBroadcast:me?function(){T.devToolsHookCb&&T.devToolsHookCb({action:{},state:{queries:T.queryManager.getQueryStore(),mutations:T.queryManager.mutationStore||{}},dataWithOptimisticResults:T.cache.extract(!0)})}:void 0})}return M.prototype.stop=function(){this.queryManager.stop()},M.prototype.watchQuery=function(S){return this.defaultOptions.watchQuery&&(S=$(this.defaultOptions.watchQuery,S)),this.disableNetworkFetches&&("network-only"===S.fetchPolicy||"cache-and-network"===S.fetchPolicy)&&(S=(0,a.__assign)((0,a.__assign)({},S),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(S)},M.prototype.query=function(S){return this.defaultOptions.query&&(S=$(this.defaultOptions.query,S)),(0,g.V1)("cache-and-network"!==S.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===S.fetchPolicy&&(S=(0,a.__assign)((0,a.__assign)({},S),{fetchPolicy:"cache-first"})),this.queryManager.query(S)},M.prototype.mutate=function(S){return this.defaultOptions.mutate&&(S=$(this.defaultOptions.mutate,S)),this.queryManager.mutate(S)},M.prototype.subscribe=function(S){return this.queryManager.startGraphQLSubscription(S)},M.prototype.readQuery=function(S,T){return void 0===T&&(T=!1),this.cache.readQuery(S,T)},M.prototype.readFragment=function(S,T){return void 0===T&&(T=!1),this.cache.readFragment(S,T)},M.prototype.writeQuery=function(S){this.cache.writeQuery(S),this.queryManager.broadcastQueries()},M.prototype.writeFragment=function(S){this.cache.writeFragment(S),this.queryManager.broadcastQueries()},M.prototype.__actionHookForDevTools=function(S){this.devToolsHookCb=S},M.prototype.__requestRaw=function(S){return(0,t.g)(this.link,S)},M.prototype.resetStore=function(){var S=this;return Promise.resolve().then(function(){return S.queryManager.clearStore()}).then(function(){return Promise.all(S.resetStoreCallbacks.map(function(T){return T()}))}).then(function(){return S.reFetchObservableQueries()})},M.prototype.clearStore=function(){var S=this;return Promise.resolve().then(function(){return S.queryManager.clearStore()}).then(function(){return Promise.all(S.clearStoreCallbacks.map(function(T){return T()}))})},M.prototype.onResetStore=function(S){var T=this;return this.resetStoreCallbacks.push(S),function(){T.resetStoreCallbacks=T.resetStoreCallbacks.filter(function(k){return k!==S})}},M.prototype.onClearStore=function(S){var T=this;return this.clearStoreCallbacks.push(S),function(){T.clearStoreCallbacks=T.clearStoreCallbacks.filter(function(k){return k!==S})}},M.prototype.reFetchObservableQueries=function(S){return this.queryManager.reFetchObservableQueries(S)},M.prototype.extract=function(S){return this.cache.extract(S)},M.prototype.restore=function(S){return this.cache.restore(S)},M.prototype.addResolvers=function(S){this.localState.addResolvers(S)},M.prototype.setResolvers=function(S){this.localState.setResolvers(S)},M.prototype.getResolvers=function(){return this.localState.getResolvers()},M.prototype.setLocalStateFragmentMatcher=function(S){this.localState.setFragmentMatcher(S)},M.prototype.setLink=function(S){this.link=this.queryManager.link=S},M}()},45688:(W,w,c)=>{"use strict";c.d(w,{U:()=>d});var a=c(40909),g=c(9685),l=c(11618),t=c(74083),r=c(36490),i=c(47436),s=Object.prototype.toString;function e(x){return n(x)}function n(x,I){switch(s.call(x)){case"[object Array]":if((I=I||new Map).has(x))return I.get(x);var L=x.slice(0);return I.set(x,L),L.forEach(function(_,O){L[O]=n(_,I)}),L;case"[object Object]":if((I=I||new Map).has(x))return I.get(x);var R=Object.create(Object.getPrototypeOf(x));return I.set(x,R),Object.keys(x).forEach(function(_){R[_]=n(x[_],I)}),R;default:return x}}var o=c(26576),u=c(70822),p=c.n(u),f=c(26071),E=c(86421),b=function(){function x(I,L,R,_){this.observer=I,this.options=L,this.fetch=R,this.shouldFetch=_}return x.prototype.reobserve=function(I,L){I?this.updateOptions(I):this.updatePolling();var R=this.fetch(this.options,L);return this.concast&&this.concast.removeObserver(this.observer,!0),R.addObserver(this.observer),(this.concast=R).promise},x.prototype.updateOptions=function(I){return Object.assign(this.options,(0,E.o)(I)),this.updatePolling(),this},x.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())},x.prototype.updatePolling=function(){var I=this,R=this.pollingInfo,_=this.options.pollInterval;if(_){if((!R||R.interval!==_)&&((0,g.V1)(_,20),!1!==this.shouldFetch)){(R||(this.pollingInfo={})).interval=_;var h=function(){I.pollingInfo&&(I.shouldFetch&&I.shouldFetch()?I.reobserve({fetchPolicy:"network-only",nextFetchPolicy:I.options.fetchPolicy||"cache-first"},t.p.poll).then(A,A):A())},A=function(){var v=I.pollingInfo;v&&(clearTimeout(v.timeout),v.timeout=setTimeout(h,v.interval))};A()}}else R&&(clearTimeout(R.timeout),delete this.pollingInfo)},x}(),d=function(x){function I(L){var R=L.queryManager,_=L.queryInfo,O=L.options,h=x.call(this,function(v){return h.onSubscribe(v)})||this;h.observers=new Set,h.subscriptions=new Set,h.observer={next:function(v){(h.lastError||h.isDifferentFromLastResult(v))&&(h.updateLastResult(v),(0,r.w)(h.observers,"next",v))},error:function(v){h.updateLastResult((0,a.__assign)((0,a.__assign)({},h.lastResult),{error:v,errors:v.graphQLErrors,networkStatus:t.p.error,loading:!1})),(0,r.w)(h.observers,"error",h.lastError=v)}},h.isTornDown=!1,h.options=O,h.queryId=R.generateQueryId();var A=(0,i.Vu)(O.query);return h.queryName=A&&A.name&&A.name.value,h.queryManager=R,h.queryInfo=_,h}return(0,a.__extends)(I,x),Object.defineProperty(I.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),I.prototype.result=function(){var L=this;return new Promise(function(R,_){var O={next:function(A){R(A),L.observers.delete(O),L.observers.size||L.queryManager.removeQuery(L.queryId),setTimeout(function(){h.unsubscribe()},0)},error:_},h=L.subscribe(O)})},I.prototype.getCurrentResult=function(L){void 0===L&&(L=!0);var R=this.lastResult,_=this.queryInfo.networkStatus||R&&R.networkStatus||t.p.ready,O=(0,a.__assign)((0,a.__assign)({},R),{loading:(0,t.b)(_),networkStatus:_});if(this.isTornDown)return O;var h=this.options.fetchPolicy,A=void 0===h?"cache-first":h;if("no-cache"===A||"network-only"===A)delete O.partial;else if(!O.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var v=this.queryInfo.getDiff();O.data=v.complete||this.options.returnPartialData?v.result:void 0,v.complete?(O.networkStatus===t.p.loading&&("cache-first"===A||"cache-only"===A)&&(O.networkStatus=t.p.ready,O.loading=!1),delete O.partial):O.partial=!0}return L&&this.updateLastResult(O),O},I.prototype.isDifferentFromLastResult=function(L){return!(0,l.L)(this.lastResultSnapshot,L)},I.prototype.getLastResult=function(){return this.lastResult},I.prototype.getLastError=function(){return this.lastError},I.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},I.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},I.prototype.refetch=function(L){var R={pollInterval:0},_=this.options.fetchPolicy;return"no-cache"!==_&&"cache-and-network"!==_&&(R.fetchPolicy="network-only",R.nextFetchPolicy=_||"cache-first"),L&&!(0,l.L)(this.options.variables,L)&&(R.variables=this.options.variables=(0,a.__assign)((0,a.__assign)({},this.options.variables),L)),this.newReobserver(!1).reobserve(R,t.p.refetch)},I.prototype.fetchMore=function(L){var R=this,_=(0,a.__assign)((0,a.__assign)({},L.query?L:(0,a.__assign)((0,a.__assign)((0,a.__assign)({},this.options),L),{variables:(0,a.__assign)((0,a.__assign)({},this.options.variables),L.variables)})),{fetchPolicy:"no-cache"}),O=this.queryManager.generateQueryId();return _.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=t.p.fetchMore,this.observe()),this.queryManager.fetchQuery(O,_,t.p.fetchMore).then(function(h){var A=h.data,v=L.updateQuery;return v?R.updateQuery(function(C){return v(C,{fetchMoreResult:A,variables:_.variables})}):R.queryManager.cache.writeQuery({query:_.query,variables:_.variables,data:A}),h}).finally(function(){R.queryManager.stopQuery(O),R.reobserve()})},I.prototype.subscribeToMore=function(L){var R=this,_=this.queryManager.startGraphQLSubscription({query:L.document,variables:L.variables,context:L.context}).subscribe({next:function(O){var h=L.updateQuery;h&&R.updateQuery(function(A,v){return h(A,{subscriptionData:O,variables:v.variables})})},error:function(O){L.onError&&L.onError(O)}});return this.subscriptions.add(_),function(){R.subscriptions.delete(_)&&_.unsubscribe()}},I.prototype.setOptions=function(L){return this.reobserve(L)},I.prototype.setVariables=function(L){if((0,l.L)(this.variables,L))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=L,!this.observers.size)return Promise.resolve();var R=this.options.fetchPolicy,_=void 0===R?"cache-first":R,O={fetchPolicy:_,variables:L};return"cache-first"!==_&&"no-cache"!==_&&"network-only"!==_&&(O.fetchPolicy="cache-and-network",O.nextFetchPolicy=_),this.reobserve(O,t.p.setVariables)},I.prototype.updateQuery=function(L){var R,_=this.queryManager,h=L(_.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(R=this.lastResult)||void 0===R?void 0:R.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});h&&(_.cache.writeQuery({query:this.options.query,data:h,variables:this.variables}),_.broadcastQueries())},I.prototype.startPolling=function(L){this.getReobserver().updateOptions({pollInterval:L})},I.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},I.prototype.updateLastResult=function(L){var R=this.lastResult;return this.lastResult=L,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?L:e(L),(0,o.E)(L.errors)||delete this.lastError,R},I.prototype.onSubscribe=function(L){var R=this;if(L===this.observer)return function(){};try{var _=L._subscription._observer;_&&!_.error&&(_.error=m)}catch{}var O=!this.observers.size;return this.observers.add(L),this.lastError?L.error&&L.error(this.lastError):this.lastResult&&L.next&&L.next(this.lastResult),O&&this.reobserve().catch(function(h){}),function(){R.observers.delete(L)&&!R.observers.size&&R.tearDownQuery()}},I.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},I.prototype.newReobserver=function(L){var R=this,O=this.queryManager,h=this.queryId;return O.setObservableQuery(this),new b(this.observer,L?this.options:(0,a.__assign)({},this.options),function(A,v){return O.setObservableQuery(R),O.fetchQueryObservable(h,A,v)},!O.ssrMode&&function(){return!(0,t.b)(R.queryInfo.networkStatus)})},I.prototype.reobserve=function(L,R){return this.isTornDown=!1,this.getReobserver().reobserve(L,R)},I.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},I.prototype.hasObservers=function(){return this.observers.size>0},I.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(L){return L.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},I}(p());function m(x){}(0,f.r)(d)},99311:(W,w,c)=>{"use strict";c.r(w),c.d(w,{ApolloCache:()=>e.k,ApolloClient:()=>a.R,ApolloError:()=>i.K,Cache:()=>s.l,HttpLink:()=>d.PR,InMemoryCache:()=>n.D,MissingFieldError:()=>o.Z,NetworkStatus:()=>l.p,Observable:()=>_.a,ObservableQuery:()=>g.U,checkFetcher:()=>d.Sl,createHttpLink:()=>d.$9,createSignalIfSupported:()=>d.Sg,defaultDataIdFromObject:()=>u.o,disableExperimentalFragmentVariables:()=>A.qj,disableFragmentWarnings:()=>A.gi,enableExperimentalFragmentVariables:()=>A.VC,fallbackHttpConfig:()=>d.R4,fromError:()=>m.N,fromPromise:()=>I.S,gql:()=>A.Ay,isApolloError:()=>i.M,isReference:()=>O.A_,makeReference:()=>O.WU,makeVar:()=>p.UT,mergeOptions:()=>a.l,parseAndCheckHttpResponse:()=>d.OQ,resetCaches:()=>A.Nh,rewriteURIForGET:()=>d.EQ,selectHttpOptionsAndBody:()=>d.Wz,selectURI:()=>d.zX,serializeFetchParameter:()=>d.Ye,setLogVerbosity:()=>h.Q9,throwServerError:()=>L.A,toPromise:()=>x.h});var a=c(24060),g=c(45688),l=c(74083),t=c(40518),y={};for(const v in t)["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&&(y[v]=()=>t[v]);c.d(w,y);var i=c(12943),s=c(28240),e=c(15510),n=c(18111),o=c(48833),u=c(4049),p=c(81734),f=c(80462);y={};for(const v in f)["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&&(y[v]=()=>f[v]);c.d(w,y);var b=c(86806);y={};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&&(y[v]=()=>b[v]);c.d(w,y);var d=c(71817),m=c(6848),x=c(60864),I=c(21943),L=c(11311),R=c(70822),_=c.n(R),O=c(23718),h=c(9685),A=c(8089);(0,h.Q9)("log")},74083:(W,w,c)=>{"use strict";c.d(w,{b:()=>g,p:()=>a});var a=function(l){return l[l.loading=1]="loading",l[l.setVariables=2]="setVariables",l[l.fetchMore=3]="fetchMore",l[l.refetch=4]="refetch",l[l.poll=6]="poll",l[l.ready=7]="ready",l[l.error=8]="error",l}(a||{});function g(l){return!!l&&l<7}},40518:()=>{},12943:(W,w,c)=>{"use strict";c.d(w,{K:()=>r,M:()=>l});var a=c(40909),g=c(26576);function l(i){return i.hasOwnProperty("graphQLErrors")}var r=function(i){function s(e){var n=e.graphQLErrors,o=e.networkError,u=e.errorMessage,p=e.extraInfo,f=i.call(this,u)||this;return f.graphQLErrors=n||[],f.networkError=o||null,f.message=u||function(i){var s="";return(0,g.E)(i.graphQLErrors)&&i.graphQLErrors.forEach(function(e){s+=(e?e.message:"Error message not found.")+"\n"}),i.networkError&&(s+=i.networkError.message+"\n"),s=s.replace(/\n$/,"")}(f),f.extraInfo=p,f.__proto__=s.prototype,f}return(0,a.__extends)(s,i),s}(Error)},4751:(W,w,c)=>{"use strict";c.r(w);var a=c(99311),l={};for(const t in a)"default"!==t&&(l[t]=()=>a[t]);c.d(w,l);var g=c(17615);l={};for(const t in g)["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(t)<0&&(l[t]=()=>g[t]);c.d(w,l)},66288:(W,w,c)=>{"use strict";c.r(w),c.d(w,{setContext:()=>r});var a=c(40909),g=c(8347),l=c(70822),t=c.n(l);function r(i){return new g.C(function(s,e){var n=(0,a.__rest)(s,[]);return new(t())(function(o){var u;return Promise.resolve(n).then(function(p){return i(p,s.getContext())}).then(s.setContext).then(function(){u=e(s).subscribe({next:o.next.bind(o),error:o.error.bind(o),complete:o.complete.bind(o)})}).catch(o.error.bind(o)),function(){u&&u.unsubscribe()}})})}},8347:(W,w,c)=>{"use strict";c.d(w,{C:()=>f});var E,a=c(40909),g=c(9685),l=c(70822),t=c.n(l),i=c(47436);function n(E,b){return b?b(E):t().of()}function o(E){return"function"==typeof E?new f(E):E}function u(E){return E.request.length<=1}E=Error,(0,a.__extends)(function b(y,d){var m=E.call(this,y)||this;return m.link=d,m},E);var f=function(){function E(b){b&&(this.request=b)}return E.empty=function(){return new E(function(){return t().of()})},E.from=function(b){return 0===b.length?E.empty():b.map(o).reduce(function(y,d){return y.concat(d)})},E.split=function(b,y,d){var m=o(y),x=o(d||new E(n));return u(m)&&u(x)?new E(function(I){return b(I)?m.request(I)||t().of():x.request(I)||t().of()}):new E(function(I,L){return b(I)?m.request(I,L)||t().of():x.request(I,L)||t().of()})},E.execute=function(b,y){return b.request(function r(E,b){var y=(0,a.__assign)({},E);return Object.defineProperty(b,"setContext",{enumerable:!1,value:function(x){y=(0,a.__assign)((0,a.__assign)({},y),"function"==typeof x?x(y):x)}}),Object.defineProperty(b,"getContext",{enumerable:!1,value:function(){return(0,a.__assign)({},y)}}),b}(y.context,function s(E){var b={variables:E.variables||{},extensions:E.extensions||{},operationName:E.operationName,query:E.query};return b.operationName||(b.operationName="string"!=typeof b.query?(0,i.n4)(b.query)||void 0:""),b}(function e(E){for(var b=["query","operationName","variables","extensions","context"],y=0,d=Object.keys(E);y<d.length;y++)if(b.indexOf(d[y])<0)throw new g.zU(26);return E}(y))))||t().of()},E.concat=function(b,y){var d=o(b);if(u(d))return d;var m=o(y);return u(m)?new E(function(x){return d.request(x,function(I){return m.request(I)||t().of()})||t().of()}):new E(function(x,I){return d.request(x,function(L){return m.request(L,I)||t().of()})||t().of()})},E.prototype.split=function(b,y,d){return this.concat(E.split(b,y,d||new E(n)))},E.prototype.concat=function(b){return E.concat(this,b)},E.prototype.request=function(b,y){throw new g.zU(21)},E.prototype.onError=function(b,y){if(y&&y.error)return y.error(b),!1;throw b},E.prototype.setOnError=function(b){return this.onError=b,this},E}()},76820:(W,w,c)=>{"use strict";c.d(w,{x:()=>g});var g=c(8347).C.concat},23091:(W,w,c)=>{"use strict";c.d(w,{I:()=>g});var g=c(8347).C.empty},70069:(W,w,c)=>{"use strict";c.d(w,{g:()=>g});var g=c(8347).C.execute},1376:(W,w,c)=>{"use strict";c.d(w,{H:()=>g});var g=c(8347).C.from},86806:(W,w,c)=>{"use strict";c.r(w),c.d(w,{ApolloLink:()=>i.C,concat:()=>t.x,empty:()=>a.I,execute:()=>r.g,from:()=>g.H,split:()=>l.l});var a=c(23091),g=c(1376),l=c(81286),t=c(76820),r=c(70069),i=c(8347),s=c(61387),n={};for(const o in s)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(o)<0&&(n[o]=()=>s[o]);c.d(w,n)},81286:(W,w,c)=>{"use strict";c.d(w,{l:()=>g});var g=c(8347).C.split},61387:()=>{},26253:(W,w,c)=>{"use strict";c.d(w,{P:()=>t});var a=c(40909),g=c(8347),l=c(70145),t=function(r){function i(s){void 0===s&&(s={});var e=r.call(this,(0,l.$)(s).request)||this;return e.options=s,e}return(0,a.__extends)(i,r),i}(g.C)},38922:(W,w,c)=>{"use strict";c.d(w,{S:()=>g});var a=c(9685),g=function(l){if(!l&&typeof fetch>"u")throw new a.zU(22)}},70145:(W,w,c)=>{"use strict";c.d(w,{$:()=>E});var a=c(40909),g=c(16651),l=c(8347),t=c(70822),r=c.n(t),i=c(87332),s=c(91835),e=c(70010),n=c(38922),o=c(66422),u=c(82750),p=c(65822),f=c(6848),E=function(b){void 0===b&&(b={});var y=b.uri,d=void 0===y?"/graphql":y,m=b.fetch,x=b.includeExtensions,I=b.useGETForQueries,L=b.includeUnusedVariables,R=void 0!==L&&L,_=(0,a.__rest)(b,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,n.S)(m),m||(m=fetch);var O={http:{includeExtensions:x},options:_.fetchOptions,credentials:_.credentials,headers:_.headers};return new l.C(function(h){var A=(0,s.z)(h,d),v=h.getContext(),C={};if(v.clientAwareness){var U=v.clientAwareness,N=U.name,j=U.version;N&&(C["apollographql-client-name"]=N),j&&(C["apollographql-client-version"]=j)}var z,Y=(0,a.__assign)((0,a.__assign)({},C),v.headers),B=(0,o.W)(h,o.R,O,{http:v.http,options:v.fetchOptions,credentials:v.credentials,headers:Y}),J=B.options,Q=B.body;if(Q.variables&&!R){var H=new Set(Object.keys(Q.variables));(0,g.YR)(h.query,{Variable:function(ee,ne,se){se&&"VariableDefinition"!==se.kind&&H.delete(ee.name.value)}}),H.size&&(Q.variables=(0,a.__assign)({},Q.variables),H.forEach(function(ee){delete Q.variables[ee]}))}if(!J.signal){var $=(0,u.S)();(z=$.controller)&&(J.signal=$.signal)}if(I&&!h.query.definitions.some(function(ee){return"OperationDefinition"===ee.kind&&"mutation"===ee.operation})&&(J.method="GET"),"GET"===J.method){var T=(0,p.E)(A,Q),k=T.newURI,K=T.parseError;if(K)return(0,f.N)(K);A=k}else try{J.body=(0,i.Y)(Q,"Payload")}catch(ee){return(0,f.N)(ee)}return new(r())(function(ee){return m(A,J).then(function(ne){return h.setContext({response:ne}),ne}).then((0,e.O)(h)).then(function(ne){return ee.next(ne),ee.complete(),ne}).catch(function(ne){"AbortError"!==ne.name&&(ne.result&&ne.result.errors&&ne.result.data&&ee.next(ne.result),ee.error(ne))}),function(){z&&z.abort()}})})}},82750:(W,w,c)=>{"use strict";c.d(w,{S:()=>a});var a=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var g=new AbortController;return{controller:g,signal:g.signal}}},71817:(W,w,c)=>{"use strict";c.d(w,{$9:()=>s.$,EQ:()=>n.E,OQ:()=>a.O,PR:()=>e.P,R4:()=>l.R,Sg:()=>r.S,Sl:()=>t.S,Wz:()=>l.W,Ye:()=>g.Y,zX:()=>i.z});var a=c(70010),g=c(87332),l=c(66422),t=c(38922),r=c(82750),i=c(91835),s=c(70145),e=c(26253),n=c(65822)},70010:(W,w,c)=>{"use strict";c.d(w,{O:()=>l});var a=c(11311),g=Object.prototype.hasOwnProperty;function l(t){return function(r){return r.text().then(function(i){try{return JSON.parse(i)}catch(e){var s=e;throw s.name="ServerParseError",s.response=r,s.statusCode=r.status,s.bodyText=i,s}}).then(function(i){return r.status>=300&&(0,a.A)(r,i,"Response not successful: Received status code "+r.status),!Array.isArray(i)&&!g.call(i,"data")&&!g.call(i,"errors")&&(0,a.A)(r,i,"Server response was missing for query '"+(Array.isArray(t)?t.map(function(s){return s.operationName}):t.operationName)+"'."),i})}}},65822:(W,w,c)=>{"use strict";c.d(w,{E:()=>g});var a=c(87332);function g(l,t){var r=[],i=function(E,b){r.push(E+"="+encodeURIComponent(b))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var s=void 0;try{s=(0,a.Y)(t.variables,"Variables map")}catch(E){return{parseError:E}}i("variables",s)}if(t.extensions){var e=void 0;try{e=(0,a.Y)(t.extensions,"Extensions map")}catch(E){return{parseError:E}}i("extensions",e)}var n="",o=l,u=l.indexOf("#");-1!==u&&(n=l.substr(u),o=l.substr(0,u));var p=-1===o.indexOf("?")?"?":"&";return{newURI:o+p+r.join("&")+n}}},66422:(W,w,c)=>{"use strict";c.d(w,{R:()=>i,W:()=>s});var a=c(40909),g=c(4645),i={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,n){for(var o=[],u=2;u<arguments.length;u++)o[u-2]=arguments[u];var p=(0,a.__assign)((0,a.__assign)({},n.options),{headers:n.headers,credentials:n.credentials}),f=n.http||{};o.forEach(function(x){p=(0,a.__assign)((0,a.__assign)((0,a.__assign)({},p),x.options),{headers:(0,a.__assign)((0,a.__assign)({},p.headers),x.headers)}),x.credentials&&(p.credentials=x.credentials),f=(0,a.__assign)((0,a.__assign)({},f),x.http)});var d=e.query,m={operationName:e.operationName,variables:e.variables};return f.includeExtensions&&(m.extensions=e.extensions),f.includeQuery&&(m.query=(0,g.print)(d)),{options:p,body:m}}},91835:(W,w,c)=>{"use strict";c.d(w,{z:()=>a});var a=function(g,l){return g.getContext().uri||("function"==typeof l?l(g):l||"/graphql")}},87332:(W,w,c)=>{"use strict";c.d(w,{Y:()=>g});var a=c(9685),g=function(l,t){var r;try{r=JSON.stringify(l)}catch(s){var i=new a.zU(23);throw i.parseError=s,i}return r}},6848:(W,w,c)=>{"use strict";c.d(w,{N:()=>l});var a=c(70822),g=c.n(a);function l(t){return new(g())(function(r){r.error(t)})}},21943:(W,w,c)=>{"use strict";c.d(w,{S:()=>l});var a=c(70822),g=c.n(a);function l(t){return new(g())(function(r){t.then(function(i){r.next(i),r.complete()}).catch(r.error.bind(r))})}},11311:(W,w,c)=>{"use strict";c.d(w,{A:()=>a});var a=function(g,l,t){var r=new Error(t);throw r.name="ServerError",r.response=g,r.statusCode=g.status,r.result=l,r}},60864:(W,w,c)=>{"use strict";function g(l){var t=!1;return new Promise(function(r,i){l.subscribe({next:function(s){t||(t=!0,r(s))},error:i})})}c.d(w,{h:()=>g}),c(9685)},15676:(W,w,c)=>{"use strict";c.d(w,{Y:()=>t});var a=c(54760),g=c(9685),l=c(79857),t=function(r){var i=(0,l.l)();return a.createElement(i.Consumer,null,function(s){return(0,g.V1)(s&&s.client,27),r.children(s.client)})}},79857:(W,w,c)=>{"use strict";c.d(w,{E:()=>t,l:()=>t});var a=c(54760),l=new(c(77919).e?WeakMap:Map);function t(){var r=l.get(a.createContext);return r||((r=a.createContext({})).displayName="ApolloContext",l.set(a.createContext,r)),r}},34489:(W,w,c)=>{"use strict";c.d(w,{X:()=>t});var a=c(54760),g=c(9685),l=c(79857),t=function(r){var i=r.client,s=r.children,e=(0,l.l)();return a.createElement(e.Consumer,null,function(n){return void 0===n&&(n={}),i&&n.client!==i&&(n=Object.assign({},n,{client:i})),(0,g.V1)(n.client,28),a.createElement(e.Provider,{value:n},s)})}},40178:(W,w,c)=>{"use strict";c.d(w,{mK:()=>t,_l:()=>E,n_:()=>d,IT:()=>m,qs:()=>L,Rs:()=>I});var a=c(54760),g=c(9685),l=c(79857);function t(){var R=a.useContext((0,l.l)()).client;return(0,g.V1)(R,33),R}var r=c(40909),i=c(11618),s=c(12943),e=c(74083),n=c(52935),o=function(){function R(_,O){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=_||{},this.context=O||{}}return R.prototype.getOptions=function(){return this.options},R.prototype.setOptions=function(_,O){void 0===O&&(O=!1),O&&!(0,i.L)(this.options,_)&&(this.previousOptions=this.options),this.options=_},R.prototype.unmount=function(){this.isMounted=!1},R.prototype.refreshClient=function(){var _=this.options&&this.options.client||this.context&&this.context.client;(0,g.V1)(!!_,29);var O=!1;return _!==this.client&&(O=!0,this.client=_,this.cleanup()),{client:this.client,isNew:O}},R.prototype.verifyDocumentType=function(_,O){var h=(0,n.K3)(_);(0,n.Xn)(O),(0,n.Xn)(h.type),(0,g.V1)(h.type===O,30)},R}(),u=function(R){function _(O){var v=O.onNewData,C=R.call(this,O.options,O.context)||this;return C.runLazy=!1,C.previous=Object.create(null),C.runLazyQuery=function(U){C.cleanup(),C.runLazy=!0,C.lazyOptions=U,C.onNewData()},C.getQueryResult=function(){var U=C.observableQueryFields(),N=C.getOptions();if(N.skip)U=(0,r.__assign)((0,r.__assign)({},U),{data:void 0,error:void 0,loading:!1,networkStatus:e.p.ready,called:!0});else if(C.currentObservable){var j=C.currentObservable.getCurrentResult(),Y=j.data,re=j.loading,B=j.partial,J=j.networkStatus,Q=j.errors,H=j.error;if(Q&&Q.length>0&&(H=new s.K({graphQLErrors:Q})),U=(0,r.__assign)((0,r.__assign)({},U),{data:Y,loading:re,networkStatus:J,error:H,called:!0}),!re)if(H)Object.assign(U,{data:(C.currentObservable.getLastResult()||{}).data});else{var z=C.currentObservable.options.fetchPolicy;if(N.partialRefetch&&B&&(!Y||0===Object.keys(Y).length)&&"cache-only"!==z)return Object.assign(U,{loading:!0,networkStatus:e.p.loading}),U.refetch(),U}}U.client=C.client,C.setOptions(N,!0);var X=C.previous.result;return C.previous.loading=X&&X.loading||!1,U.previousData=X&&(X.data||X.previousData),C.previous.result=U,C.currentObservable&&C.currentObservable.resetQueryStoreErrors(),U},C.obsRefetch=function(U){var N;return null===(N=C.currentObservable)||void 0===N?void 0:N.refetch(U)},C.obsFetchMore=function(U){return C.currentObservable.fetchMore(U)},C.obsUpdateQuery=function(U){return C.currentObservable.updateQuery(U)},C.obsStartPolling=function(U){var N;null===(N=C.currentObservable)||void 0===N||N.startPolling(U)},C.obsStopPolling=function(){var U;null===(U=C.currentObservable)||void 0===U||U.stopPolling()},C.obsSubscribeToMore=function(U){return C.currentObservable.subscribeToMore(U)},C.onNewData=v,C}return(0,r.__extends)(_,R),_.prototype.execute=function(){this.refreshClient();var O=this.getOptions(),h=O.skip,A=O.query;return(h||A!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!h),this.previous.query=A),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},_.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:e.p.ready,called:!1,data:void 0}]},_.prototype.fetchData=function(){var O=this,h=this.getOptions();return!h.skip&&!1!==h.ssr&&new Promise(function(A){return O.startQuerySubscription(A)})},_.prototype.afterExecute=function(O){var h=(void 0===O?{}:O).lazy,A=void 0!==h&&h;return this.isMounted=!0,(!A||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},_.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},_.prototype.getOptions=function(){var O=R.prototype.getOptions.call(this);return this.lazyOptions&&(O.variables=(0,r.__assign)((0,r.__assign)({},O.variables),this.lazyOptions.variables),O.context=(0,r.__assign)((0,r.__assign)({},O.context),this.lazyOptions.context)),this.runLazy&&delete O.skip,O},_.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},_.prototype.getExecuteResult=function(){var O=this.getQueryResult();return this.startQuerySubscription(),O},_.prototype.getExecuteSsrResult=function(){var O=this.getOptions(),A=O.skip,v=!1===O.ssr,C=this.refreshClient().client.disableNetworkFetches,U=(0,r.__assign)({loading:!0,networkStatus:e.p.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(v&&(this.ssrInitiated()||C))return this.previous.result=U,U;if(this.ssrInitiated()){var N=this.getQueryResult()||U;return N.loading&&!A&&this.context.renderPromises.addQueryPromise(this,function(){return null}),N}},_.prototype.prepareObservableQueryOptions=function(){var O=this.getOptions();this.verifyDocumentType(O.query,n.KG.Query);var h=O.displayName||"Query";return this.ssrInitiated()&&("network-only"===O.fetchPolicy||"cache-and-network"===O.fetchPolicy)&&(O.fetchPolicy="cache-first"),(0,r.__assign)((0,r.__assign)({},O),{displayName:h,context:O.context})},_.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var O=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,r.__assign)((0,r.__assign)({},O),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,r.__assign)({},O)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,O)}},_.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var O=(0,r.__assign)((0,r.__assign)({},this.prepareObservableQueryOptions()),{children:null});(0,i.L)(O,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=O,this.currentObservable.setOptions(O).catch(function(){}))}}else this.initializeObservableQuery()},_.prototype.startQuerySubscription=function(O){var h=this;void 0===O&&(O=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(A){var N=h.previous.result;N&&N.loading===A.loading&&N.networkStatus===A.networkStatus&&(0,i.L)(N.data,A.data)||O()},error:function(A){if(h.resubscribeToQuery(),!A.hasOwnProperty("graphQLErrors"))throw A;var v=h.previous.result;(v&&v.loading||!(0,i.L)(A,h.previous.error))&&(h.previous.error=A,O())}}))},_.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var O=this.currentObservable;if(O){var h=O.getLastError(),A=O.getLastResult();O.resetLastResults(),this.startQuerySubscription(),Object.assign(O,{lastError:h,lastResult:A})}},_.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var O=this.previous.result,h=O.data,v=O.error;if(!O.loading){var C=this.getOptions(),N=C.variables,j=C.onCompleted,Y=C.onError,re=C.skip;if(this.previousOptions&&!this.previous.loading&&(0,i.L)(this.previousOptions.query,C.query)&&(0,i.L)(this.previousOptions.variables,N))return;!j||v||re?Y&&v&&Y(v):j(h)}}},_.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},_.prototype.removeObservable=function(O){this.currentObservable&&(this.currentObservable.tearDownQuery(),O&&delete this.currentObservable)},_.prototype.observableQueryFields=function(){var O;return{variables:null===(O=this.currentObservable)||void 0===O?void 0:O.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},_}(o);function f(R,_,O){void 0===O&&(O=!1);var h=(0,a.useContext)((0,l.l)()),A=(0,a.useReducer)(function(J){return J+1},0),v=A[0],C=A[1],U=_?(0,r.__assign)((0,r.__assign)({},_),{query:R}):{query:R},N=(0,a.useRef)(),j=N.current||(N.current=new u({options:U,context:h,onNewData:function(){j.ssrInitiated()?C():Promise.resolve().then(function(){return N.current&&C()})}}));j.setOptions(U),j.context=h;var re=function p(R,_){var O=(0,a.useRef)();return(!O.current||!(0,i.L)(_,O.current.key))&&(O.current={key:_,value:R()}),O.current.value}(function(){return O?j.executeLazy():j.execute()},{options:(0,r.__assign)((0,r.__assign)({},U),{onError:void 0,onCompleted:void 0}),context:h,tick:v}),B=O?re[1]:re;return(0,a.useEffect)(function(){return function(){return j.cleanup()}},[]),(0,a.useEffect)(function(){return j.afterExecute({lazy:O})},[B.loading,B.networkStatus,B.error,B.data]),re}function E(R,_){return f(R,_,!0)}var b=c(24060),y=function(R){function _(O){var h=O.options,v=O.result,C=O.setResult,U=R.call(this,h,O.context)||this;return U.runMutation=function(N){void 0===N&&(N={}),U.onMutationStart();var j=U.generateNewMutationId();return U.mutate(N).then(function(Y){return U.onMutationCompleted(Y,j),Y}).catch(function(Y){var re=U.getOptions().onError;if(U.onMutationError(Y,j),re)return re(Y),{data:void 0,errors:Y};throw Y})},U.verifyDocumentType(h.mutation,n.KG.Mutation),U.result=v,U.setResult=C,U.mostRecentMutationId=0,U}return(0,r.__extends)(_,R),_.prototype.execute=function(O){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,n.KG.Mutation),[this.runMutation,(0,r.__assign)((0,r.__assign)({},O),{client:this.refreshClient().client})]},_.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},_.prototype.cleanup=function(){},_.prototype.mutate=function(O){return this.refreshClient().client.mutate((0,b.l)(this.getOptions(),O))},_.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},_.prototype.onMutationCompleted=function(O,h){var A=this.getOptions(),v=A.onCompleted,C=A.ignoreResults,U=O.data,N=O.errors,j=N&&N.length>0?new s.K({graphQLErrors:N}):void 0;this.isMostRecentMutation(h)&&!C&&this.updateResult({called:!0,loading:!1,data:U,error:j}),v&&v(U)},_.prototype.onMutationError=function(O,h){this.isMostRecentMutation(h)&&this.updateResult({loading:!1,error:O,data:void 0,called:!0})},_.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},_.prototype.isMostRecentMutation=function(O){return this.mostRecentMutationId===O},_.prototype.updateResult=function(O){if(this.isMounted&&(!this.previousResult||!(0,i.L)(this.previousResult,O)))return this.setResult(O),this.previousResult=O,O},_}(o);function d(R,_){var O=(0,a.useContext)((0,l.l)()),h=(0,a.useState)({called:!1,loading:!1}),A=h[0],v=h[1],C=_?(0,r.__assign)((0,r.__assign)({},_),{mutation:R}):{mutation:R},U=(0,a.useRef)(),j=function N(){return U.current||(U.current=new y({options:C,context:O,result:A,setResult:v})),U.current}();return j.setOptions(C),j.context=O,(0,a.useEffect)(function(){return j.afterExecute()}),j.execute(A)}function m(R,_){return f(R,_,!1)}var x=function(R){function _(O){var h=O.options,v=O.setResult,C=R.call(this,h,O.context)||this;return C.currentObservable={},C.setResult=v,C.initialize(h),C}return(0,r.__extends)(_,R),_.prototype.execute=function(O){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var h=O;this.refreshClient().isNew&&(h=this.getLoadingResult());var A=this.getOptions().shouldResubscribe;return"function"==typeof A&&(A=!!A(this.getOptions())),!1!==A&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,i.L)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),h=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,r.__assign)((0,r.__assign)({},h),{variables:this.getOptions().variables})},_.prototype.afterExecute=function(){this.isMounted=!0},_.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},_.prototype.initialize=function(O){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:O.subscription,variables:O.variables,fetchPolicy:O.fetchPolicy,context:O.context}))},_.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)}))},_.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},_.prototype.updateResult=function(O){this.isMounted&&this.setResult(O)},_.prototype.updateCurrentData=function(O){var h=this.getOptions().onSubscriptionData;this.updateResult({data:O.data,loading:!1,error:void 0}),h&&h({client:this.refreshClient().client,subscriptionData:O})},_.prototype.updateError=function(O){this.updateResult({error:O,loading:!1})},_.prototype.completeSubscription=function(){var O=this;Promise.resolve().then(function(){var h=O.getOptions().onSubscriptionComplete;h&&h(),O.endSubscription()})},_.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},_}(o);function I(R,_){var O=(0,a.useContext)((0,l.l)()),h=_?(0,r.__assign)((0,r.__assign)({},_),{subscription:R}):{subscription:R},A=(0,a.useState)({loading:!h.skip,error:void 0,data:void 0}),v=A[0],C=A[1],U=(0,a.useRef)(),j=function N(){return U.current||(U.current=new x({options:h,context:O,setResult:C})),U.current}();return j.setOptions(h,!0),j.context=O,(0,a.useEffect)(function(){return j.afterExecute()}),(0,a.useEffect)(function(){return j.cleanup.bind(j)},[]),j.execute(v)}function L(R){var _=R(),O=(0,a.useState)(_)[1];return(0,a.useEffect)(function(){var h=R();if(_===h)return R.onNextChange(O);O(h)},[_]),_}},17615:(W,w,c)=>{"use strict";c.r(w),c.d(w,{ApolloConsumer:()=>g.Y,ApolloProvider:()=>a.X,DocumentType:()=>r.KG,getApolloContext:()=>l.l,operationName:()=>r.Xn,parser:()=>r.K3,resetApolloContext:()=>l.E,useApolloClient:()=>t.mK,useLazyQuery:()=>t._l,useMutation:()=>t.n_,useQuery:()=>t.IT,useReactiveVar:()=>t.qs,useSubscription:()=>t.Rs});var a=c(34489),g=c(15676),l=c(79857),t=c(40178),r=c(52935),i=c(47932),e={};for(const n in i)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(n)<0&&(e[n]=()=>i[n]);c.d(w,e)},52935:(W,w,c)=>{"use strict";c.d(w,{K3:()=>r,KG:()=>g,Xn:()=>t});var a=c(9685),g=function(i){return i[i.Query=0]="Query",i[i.Mutation=1]="Mutation",i[i.Subscription=2]="Subscription",i}(g||{}),l=new Map;function t(i){var s;switch(i){case g.Query:s="Query";break;case g.Mutation:s="Mutation";break;case g.Subscription:s="Subscription"}return s}function r(i){var n,s=l.get(i);if(s)return s;(0,a.V1)(!!i&&!!i.kind,34);var u=i.definitions.filter(function(m){return"FragmentDefinition"===m.kind}),p=i.definitions.filter(function(m){return"OperationDefinition"===m.kind&&"query"===m.operation}),f=i.definitions.filter(function(m){return"OperationDefinition"===m.kind&&"mutation"===m.operation}),E=i.definitions.filter(function(m){return"OperationDefinition"===m.kind&&"subscription"===m.operation});(0,a.V1)(!u.length||p.length||f.length||E.length,35),(0,a.V1)(p.length+f.length+E.length<=1,36),n=p.length?g.Query:g.Mutation,!p.length&&!f.length&&(n=g.Subscription);var b=p.length?p:f.length?f:E;(0,a.V1)(1===b.length,37);var y=b[0],d={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:n,variables:y.variableDefinitions||[]};return l.set(i,d),d}},47932:()=>{},26576:(W,w,c)=>{"use strict";function a(g){return Array.isArray(g)&&g.length>0}c.d(w,{E:()=>a})},77919:(W,w,c)=>{"use strict";c.d(w,{e:()=>a});var a="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},86421:(W,w,c)=>{"use strict";function a(){for(var g=[],l=0;l<arguments.length;l++)g[l]=arguments[l];var t=Object.create(null);return g.forEach(function(r){r&&Object.keys(r).forEach(function(i){var s=r[i];void 0!==s&&(t[i]=s)})}),t}c.d(w,{o:()=>a})},71318:(W,w,c)=>{"use strict";c.d(w,{D9:()=>l,IM:()=>t,ZI:()=>s});var a=c(40909),g=Object.prototype.hasOwnProperty;function l(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t(e)}function t(e){var n=e[0]||{},o=e.length;if(o>1)for(var u=new s,p=1;p<o;++p)n=u.merge(n,e[p]);return n}function r(e){return null!==e&&"object"==typeof e}var i=function(e,n,o){return this.merge(e[o],n[o])},s=function(){function e(n){void 0===n&&(n=i),this.reconciler=n,this.isObject=r,this.pastCopies=new Set}return e.prototype.merge=function(n,o){for(var u=this,p=[],f=2;f<arguments.length;f++)p[f-2]=arguments[f];return r(o)&&r(n)?(Object.keys(o).forEach(function(E){if(g.call(n,E)){var b=n[E];if(o[E]!==b){var y=u.reconciler.apply(u,(0,a.__spreadArrays)([n,o,E],p));y!==b&&((n=u.shallowCopyForMerge(n))[E]=y)}}else(n=u.shallowCopyForMerge(n))[E]=o[E]}),n):o},e.prototype.shallowCopyForMerge=function(n){return r(n)&&!this.pastCopies.has(n)&&(n=Array.isArray(n)?n.slice(0):(0,a.__assign)({__proto__:Object.getPrototypeOf(n)},n),this.pastCopies.add(n)),n},e}()},30310:(W,w,c)=>{"use strict";c.d(w,{MS:()=>l,d8:()=>r,f2:()=>i});var a=c(16651),g=c(9685);function l(n,o){var u=n.directives;return!u||!u.length||function e(n){var o=[];return n&&n.length&&n.forEach(function(u){if(function s(n){var o=n.name.value;return"skip"===o||"include"===o}(u)){var p=u.arguments;(0,g.V1)(p&&1===p.length,39);var E=p[0];(0,g.V1)(E.name&&"if"===E.name.value,40);var b=E.value;(0,g.V1)(b&&("Variable"===b.kind||"BooleanValue"===b.kind),41),o.push({directive:u,ifArgument:E})}}),o}(u).every(function(p){var f=p.directive,E=p.ifArgument,b=!1;return"Variable"===E.value.kind?(0,g.V1)(void 0!==(b=o&&o[E.value.name.value]),38):b=E.value.value,"skip"===f.name.value?!b:b})}function r(n,o){return function t(n){var o=[];return(0,a.YR)(n,{Directive:function(u){o.push(u.name.value)}}),o}(o).some(function(u){return n.indexOf(u)>-1})}function i(n){return n&&r(["client"],n)&&r(["export"],n)}},91779:(W,w,c)=>{"use strict";c.d(w,{HQ:()=>r,JG:()=>t,ct:()=>l});var a=c(40909),g=c(9685);function l(i,s){var e=s,n=[];return i.definitions.forEach(function(u){if("OperationDefinition"===u.kind)throw new g.zU(42);"FragmentDefinition"===u.kind&&n.push(u)}),typeof e>"u"&&((0,g.V1)(1===n.length,43),e=n[0].name.value),(0,a.__assign)((0,a.__assign)({},i),{definitions:(0,a.__spreadArrays)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:e}}]}}],i.definitions)})}function t(i){void 0===i&&(i=[]);var s={};return i.forEach(function(e){s[e.name.value]=e}),s}function r(i,s){switch(i.kind){case"InlineFragment":return i;case"FragmentSpread":var e=s&&s[i.name.value];return(0,g.V1)(e,44),e;default:return null}}},47436:(W,w,c)=>{"use strict";c.d(w,{AT:()=>s,E4:()=>e,Vn:()=>n,Vu:()=>t,n4:()=>r,sw:()=>l,wY:()=>o,zK:()=>i});var a=c(9685),g=c(23718);function l(u){(0,a.V1)(u&&"Document"===u.kind,45);var p=u.definitions.filter(function(f){return"FragmentDefinition"!==f.kind}).map(function(f){if("OperationDefinition"!==f.kind)throw new a.zU(46);return f});return(0,a.V1)(p.length<=1,47),u}function t(u){return l(u),u.definitions.filter(function(p){return"OperationDefinition"===p.kind})[0]}function r(u){return u.definitions.filter(function(p){return"OperationDefinition"===p.kind&&p.name}).map(function(p){return p.name.value})[0]||null}function i(u){return u.definitions.filter(function(p){return"FragmentDefinition"===p.kind})}function s(u){var p=t(u);return(0,a.V1)(p&&"query"===p.operation,48),p}function e(u){(0,a.V1)("Document"===u.kind,49),(0,a.V1)(u.definitions.length<=1,50);var p=u.definitions[0];return(0,a.V1)("FragmentDefinition"===p.kind,51),p}function n(u){l(u);for(var p,f=0,E=u.definitions;f<E.length;f++){var b=E[f];if("OperationDefinition"===b.kind){var y=b.operation;if("query"===y||"mutation"===y||"subscription"===y)return b}"FragmentDefinition"===b.kind&&!p&&(p=b)}if(p)return p;throw new a.zU(52)}function o(u){var p=Object.create(null),f=u&&u.variableDefinitions;return f&&f.length&&f.forEach(function(E){E.defaultValue&&(0,g.J)(p,E.variable.name,E.defaultValue)}),p}},23718:(W,w,c)=>{"use strict";c.d(w,{A_:()=>i,D$:()=>R,Ii:()=>d,J:()=>y,MB:()=>I,WU:()=>r,dt:()=>_,kd:()=>O,o5:()=>x,ue:()=>L});var a=c(25635),g=c.n(a),l=c(9685),t=c(91779);function r(h){return{__ref:String(h)}}function i(h){return!(!h||"object"!=typeof h||"string"!=typeof h.__ref)}function y(h,A,v,C){if(function n(h){return"IntValue"===h.kind}(v)||function o(h){return"FloatValue"===h.kind}(v))h[A.value]=Number(v.value);else if(function e(h){return"BooleanValue"===h.kind}(v)||function s(h){return"StringValue"===h.kind}(v))h[A.value]=v.value;else if(function p(h){return"ObjectValue"===h.kind}(v)){var U={};v.fields.map(function(j){return y(U,j.name,j.value,C)}),h[A.value]=U}else if(function u(h){return"Variable"===h.kind}(v))h[A.value]=(C||{})[v.name.value];else if(function f(h){return"ListValue"===h.kind}(v))h[A.value]=v.values.map(function(j){var Y={};return y(Y,A,j,C),Y[A.value]});else if(function E(h){return"EnumValue"===h.kind}(v))h[A.value]=v.value;else{if(!function b(h){return"NullValue"===h.kind}(v))throw new l.zU(53);h[A.value]=null}}function d(h,A){var v=null;h.directives&&(v={},h.directives.forEach(function(U){v[U.name.value]={},U.arguments&&U.arguments.forEach(function(N){return y(v[U.name.value],N.name,N.value,A)})}));var C=null;return h.arguments&&h.arguments.length&&(C={},h.arguments.forEach(function(U){return y(C,U.name,U.value,A)})),x(h.name.value,C,v)}var m=["connection","include","skip","client","rest","export"];function x(h,A,v){if(A&&v&&v.connection&&v.connection.key){if(v.connection.filter&&v.connection.filter.length>0){var C=v.connection.filter?v.connection.filter:[];C.sort();var U={};return C.forEach(function(Y){U[Y]=A[Y]}),v.connection.key+"("+JSON.stringify(U)+")"}return v.connection.key}var N=h;if(A){var j=g()(A);N+="("+j+")"}return v&&Object.keys(v).forEach(function(Y){-1===m.indexOf(Y)&&(v[Y]&&Object.keys(v[Y]).length?N+="@"+Y+"("+JSON.stringify(v[Y])+")":N+="@"+Y)}),N}function I(h,A){if(h.arguments&&h.arguments.length){var v={};return h.arguments.forEach(function(C){return y(v,C.name,C.value,A)}),v}return null}function L(h){return h.alias?h.alias.value:h.name.value}function R(h,A,v){if("string"==typeof h.__typename)return h.__typename;for(var C=0,U=A.selections;C<U.length;C++){var N=U[C];if(_(N)){if("__typename"===N.name.value)return h[L(N)]}else{var j=R(h,(0,t.HQ)(N,v).selectionSet,v);if("string"==typeof j)return j}}}function _(h){return"Field"===h.kind}function O(h){return"InlineFragment"===h.kind}},20794:(W,w,c)=>{"use strict";c.d(w,{XY:()=>f,zc:()=>R,er:()=>_,hX:()=>b});var a=c(40909),g=c(16651),t=(c(9685),c(47436));function r(O,h,A){var v=0;return O.forEach(function(C,U){h.call(this,C,U,O)&&(O[v++]=C)},A),O.length=v,O}var i=c(23718),s=c(91779),e={kind:"Field",name:{kind:"Name",value:"__typename"}};function n(O,h){return O.selectionSet.selections.every(function(A){return"FragmentSpread"===A.kind&&n(h[A.name.value],h)})}function o(O){return n((0,t.Vu)(O)||(0,t.E4)(O),(0,s.JG)((0,t.zK)(O)))?null:O}function u(O){return function(A){return O.some(function(v){return v.name&&v.name===A.name.value||v.test&&v.test(A)})}}function p(O,h){var A=Object.create(null),v=[],C=Object.create(null),U=[],N=o((0,g.YR)(h,{Variable:{enter:function(j,Y,re){"VariableDefinition"!==re.kind&&(A[j.name.value]=!0)}},Field:{enter:function(j){if(O&&j.directives&&O.some(function(re){return re.remove})&&j.directives&&j.directives.some(u(O)))return j.arguments&&j.arguments.forEach(function(re){"Variable"===re.value.kind&&v.push({name:re.value.name.value})}),j.selectionSet&&L(j.selectionSet).forEach(function(re){U.push({name:re.name.value})}),null}},FragmentSpread:{enter:function(j){C[j.name.value]=!0}},Directive:{enter:function(j){if(u(O)(j))return null}}}));return N&&r(v,function(j){return!!j.name&&!A[j.name]}).length&&(N=function x(O,h){var A=function m(O){return function(A){return O.some(function(v){return A.value&&"Variable"===A.value.kind&&A.value.name&&(v.name===A.value.name.value||v.test&&v.test(A))})}}(O);return o((0,g.YR)(h,{OperationDefinition:{enter:function(v){return(0,a.__assign)((0,a.__assign)({},v),{variableDefinitions:v.variableDefinitions?v.variableDefinitions.filter(function(C){return!O.some(function(U){return U.name===C.variable.name.value})}):[]})}},Field:{enter:function(v){var C=O.some(function(N){return N.remove});if(C){var U=0;if(v.arguments&&v.arguments.forEach(function(N){A(N)&&(U+=1)}),1===U)return null}}},Argument:{enter:function(v){if(A(v))return null}}}))}(v,N)),N&&r(U,function(j){return!!j.name&&!C[j.name]}).length&&(N=function I(O,h){function A(v){if(O.some(function(C){return C.name===v.name.value}))return null}return o((0,g.YR)(h,{FragmentSpread:{enter:A},FragmentDefinition:{enter:A}}))}(U,N)),N}function f(O){return(0,g.YR)((0,t.sw)(O),{SelectionSet:{enter:function(h,A,v){if(!v||"OperationDefinition"!==v.kind){var C=h.selections;if(C&&!C.some(function(j){return(0,i.dt)(j)&&("__typename"===j.name.value||0===j.name.value.lastIndexOf("__",0))})){var N=v;if(!((0,i.dt)(N)&&N.directives&&N.directives.some(function(j){return"export"===j.name.value})))return(0,a.__assign)((0,a.__assign)({},h),{selections:(0,a.__spreadArrays)(C,[e])})}}}}})}f.added=function(O){return O===e};var E={test:function(O){var h="connection"===O.name.value;return h&&(!O.arguments||O.arguments.some(function(A){return"key"===A.name.value})),h}};function b(O){return p([E],(0,t.sw)(O))}function L(O){var h=[];return O.selections.forEach(function(A){((0,i.dt)(A)||(0,i.kd)(A))&&A.selectionSet?L(A.selectionSet).forEach(function(v){return h.push(v)}):"FragmentSpread"===A.kind&&h.push(A)}),h}function R(O){return"query"===(0,t.Vn)(O).operation?O:(0,g.YR)(O,{OperationDefinition:{enter:function(C){return(0,a.__assign)((0,a.__assign)({},C),{operation:"query"})}}})}function _(O){(0,t.sw)(O);var h=p([{test:function(A){return"client"===A.name.value},remove:!0}],O);return h&&(h=(0,g.YR)(h,{FragmentDefinition:{enter:function(A){if(A.selectionSet&&A.selectionSet.selections.every(function(C){return(0,i.dt)(C)&&"__typename"===C.name.value}))return null}}})),h}},36490:(W,w,c)=>{"use strict";function a(g,l,t){var r=[];g.forEach(function(i){return i[l]&&r.push(i)}),r.forEach(function(i){return i[l](t)})}c.d(w,{w:()=>a})},26071:(W,w,c)=>{"use strict";c.d(w,{r:()=>l});var a=c(70822),g=c.n(a);function l(t){function r(i){Object.defineProperty(t,i,{value:g()})}return"function"==typeof Symbol&&Symbol.species&&r(Symbol.species),r("@@species"),t}},22635:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.RawSha256=void 0;var a=c(38259),g=function(){function l(){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 l.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,i=t.byteLength;if(this.bytesHashed+=i,8*this.bytesHashed>a.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=t[r++],i--,this.bufferLength===a.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},l.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%a.BLOCK_SIZE>=a.BLOCK_SIZE-8){for(var s=this.bufferLength;s<a.BLOCK_SIZE;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<a.BLOCK_SIZE-8;s++)r.setUint8(s,0);r.setUint32(a.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),r.setUint32(a.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}var e=new Uint8Array(a.DIGEST_LENGTH);for(s=0;s<8;s++)e[4*s]=this.state[s]>>>24&255,e[4*s+1]=this.state[s]>>>16&255,e[4*s+2]=this.state[s]>>>8&255,e[4*s+3]=this.state[s]>>>0&255;return e},l.prototype.hashBuffer=function(){for(var r=this.buffer,i=this.state,s=i[0],e=i[1],n=i[2],o=i[3],u=i[4],p=i[5],f=i[6],E=i[7],b=0;b<a.BLOCK_SIZE;b++){if(b<16)this.temp[b]=(255&r[4*b])<<24|(255&r[4*b+1])<<16|(255&r[4*b+2])<<8|255&r[4*b+3];else{var y=this.temp[b-2];this.temp[b]=(((y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+this.temp[b-7]|0)+((((y=this.temp[b-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3)+this.temp[b-16]|0)}var x=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&p^~u&f)|0)+(E+(a.KEY[b]+this.temp[b]|0)|0)|0,I=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&e^s&n^e&n)|0;E=f,f=p,p=u,u=o+x|0,o=n,n=e,e=s,s=x+I|0}i[0]+=s,i[1]+=e,i[2]+=n,i[3]+=o,i[4]+=u,i[5]+=p,i[6]+=f,i[7]+=E},l}();w.RawSha256=g},38259:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.MAX_HASHABLE_LENGTH=w.INIT=w.KEY=w.DIGEST_LENGTH=w.BLOCK_SIZE=void 0,w.BLOCK_SIZE=64,w.DIGEST_LENGTH=32,w.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]),w.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],w.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},99554:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),(0,c(40909).__exportStar)(c(4636),w)},4636:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Sha256=void 0;var a=c(40909),g=c(38259),l=c(22635),t=c(57450),r=function(){function s(e){if(this.hash=new l.RawSha256,e){this.outer=new l.RawSha256;var n=function i(s){var e=(0,t.convertToBuffer)(s);if(e.byteLength>g.BLOCK_SIZE){var n=new l.RawSha256;n.update(e),e=n.digest()}var o=new Uint8Array(g.BLOCK_SIZE);return o.set(e),o}(e),o=new Uint8Array(g.BLOCK_SIZE);o.set(n);for(var u=0;u<g.BLOCK_SIZE;u++)n[u]^=54,o[u]^=92;for(this.hash.update(n),this.outer.update(o),u=0;u<n.byteLength;u++)n[u]=0}}return s.prototype.update=function(e){if(!(0,t.isEmptyData)(e)&&!this.error)try{this.hash.update((0,t.convertToBuffer)(e))}catch(n){this.error=n}},s.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()},s.prototype.digest=function(){return(0,a.__awaiter)(this,void 0,void 0,function(){return(0,a.__generator)(this,function(e){return[2,this.digestSync()]})})},s}();w.Sha256=r},41210:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.convertToBuffer=void 0;var a=c(31983),g=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:a.fromUtf8;w.convertToBuffer=function l(t){return t instanceof Uint8Array?t:"string"==typeof t?g(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}},57450:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.uint32ArrayFrom=w.numToUint8=w.isEmptyData=w.convertToBuffer=void 0;var a=c(41210);Object.defineProperty(w,"convertToBuffer",{enumerable:!0,get:function(){return a.convertToBuffer}});var g=c(25131);Object.defineProperty(w,"isEmptyData",{enumerable:!0,get:function(){return g.isEmptyData}});var l=c(23663);Object.defineProperty(w,"numToUint8",{enumerable:!0,get:function(){return l.numToUint8}});var t=c(52848);Object.defineProperty(w,"uint32ArrayFrom",{enumerable:!0,get:function(){return t.uint32ArrayFrom}})},25131:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.isEmptyData=void 0,w.isEmptyData=function c(a){return"string"==typeof a?0===a.length:0===a.byteLength}},23663:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.numToUint8=void 0,w.numToUint8=function c(a){return new Uint8Array([(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a])}},52848:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.uint32ArrayFrom=void 0,w.uint32ArrayFrom=function c(a){if(!Array.from){for(var g=new Uint32Array(a.length);0<a.length;)g[0]=a[0];return g}return Uint32Array.from(a)}},51475:(W,w,c)=>{"use strict";c.d(w,{n:()=>i});for(var a={},g={},l=0;l<256;l++){var t=l.toString(16).toLowerCase();1===t.length&&(t="0".concat(t)),a[l]=t,g[t]=l}function i(s){for(var e="",n=0;n<s.byteLength;n++)e+=a[s[n]];return e}},31983:(W,w,c)=>{"use strict";c.r(w),c.d(w,{fromUtf8:()=>r,toUtf8:()=>i});var r=function(s){return"function"==typeof TextEncoder?function l(s){return(new TextEncoder).encode(s)}(s):function(s){for(var e=[],n=0,o=s.length;n<o;n++){var u=s.charCodeAt(n);if(u<128)e.push(u);else if(u<2048)e.push(u>>6|192,63&u|128);else if(n+1<s.length&&55296==(64512&u)&&56320==(64512&s.charCodeAt(n+1))){var p=65536+((1023&u)<<10)+(1023&s.charCodeAt(++n));e.push(p>>18|240,p>>12&63|128,p>>6&63|128,63&p|128)}else e.push(u>>12|224,u>>6&63|128,63&u|128)}return Uint8Array.from(e)}(s)},i=function(s){return"function"==typeof TextDecoder?function t(s){return new TextDecoder("utf-8").decode(s)}(s):function(s){for(var e="",n=0,o=s.length;n<o;n++){var u=s[n];if(u<128)e+=String.fromCharCode(u);else if(192<=u&&u<224){var p=s[++n];e+=String.fromCharCode((31&u)<<6|63&p)}else if(240<=u&&u<365){var E="%"+[u,s[++n],s[++n],s[++n]].map(function(b){return b.toString(16)}).join("%");e+=decodeURIComponent(E)}else e+=String.fromCharCode((15&u)<<12|(63&s[++n])<<6|63&s[++n])}return e}(s)}},35365:(W,w,c)=>{"use strict";c.d(w,{DX:()=>s});var a=null,g={},l=1,r="@wry/context:Slot",i=Array,s=i[r]||function(){var b=function(){function b(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return b.prototype.hasValue=function(){for(var y=a;y;y=y.parent)if(this.id in y.slots){var d=y.slots[this.id];if(d===g)break;return y!==a&&(a.slots[this.id]=d),!0}return a&&(a.slots[this.id]=g),!1},b.prototype.getValue=function(){if(this.hasValue())return a.slots[this.id]},b.prototype.withValue=function(y,d,m,x){var I,L=((I={__proto__:null})[this.id]=y,I),R=a;a={parent:R,slots:L};try{return d.apply(x,m)}finally{a=R}},b.bind=function(y){var d=a;return function(){var m=a;try{return a=d,y.apply(this,arguments)}finally{a=m}}},b.noContext=function(y,d,m){if(!a)return y.apply(m,d);var x=a;try{return a=null,y.apply(m,d)}finally{a=x}},b}();try{Object.defineProperty(i,r,{value:i[r]=b,enumerable:!1,writable:!1,configurable:!1})}finally{return b}}()},11618:(W,w,c)=>{"use strict";c.d(w,{L:()=>i});var a=Object.prototype,g=a.toString,l=a.hasOwnProperty,t=Function.prototype.toString,r=new Map;function i(f,E){try{return s(f,E)}finally{r.clear()}}function s(f,E){if(f===E)return!0;var b=g.call(f);if(b!==g.call(E))return!1;switch(b){case"[object Array]":if(f.length!==E.length)return!1;case"[object Object]":if(p(f,E))return!0;var d=e(f),m=e(E),x=d.length;if(x!==m.length)return!1;for(var I=0;I<x;++I)if(!l.call(E,d[I]))return!1;for(I=0;I<x;++I){var L=d[I];if(!s(f[L],E[L]))return!1}return!0;case"[object Error]":return f.name===E.name&&f.message===E.message;case"[object Number]":if(f!=f)return E!=E;case"[object Boolean]":case"[object Date]":return+f==+E;case"[object RegExp]":case"[object String]":return f==""+E;case"[object Map]":case"[object Set]":if(f.size!==E.size)return!1;if(p(f,E))return!0;for(var R=f.entries(),_="[object Map]"===b;;){var O=R.next();if(O.done)break;var h=O.value,A=h[0],v=h[1];if(!E.has(A)||_&&!s(v,E.get(A)))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]":f=new Uint8Array(f),E=new Uint8Array(E);case"[object DataView]":var C=f.byteLength;if(C===E.byteLength)for(;C--&&f[C]===E[C];);return-1===C;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var U=t.call(f);return U===t.call(E)&&!function u(f,E){var b=f.length-E.length;return b>=0&&f.indexOf(E,b)===b}(U,o)}return!1}function e(f){return Object.keys(f).filter(n,f)}function n(f){return void 0!==this[f]}var o="{ [native code] }";function p(f,E){var b=r.get(f);if(b){if(b.has(E))return!0}else r.set(f,b=new Set);return b.add(E),!1}},23301:(W,w,c)=>{"use strict";c.r(w),c.d(w,{addTypenameToDocument:()=>Ae,argumentsObjectFromField:()=>H,assign:()=>ge,buildQueryFromSelectionSet:()=>Qe,canUseWeakMap:()=>We,checkDocument:()=>P,cloneDeep:()=>Ke,createFragmentMap:()=>te,getDefaultValues:()=>oe,getDirectiveInfoFromField:()=>ee,getDirectiveNames:()=>se,getDirectivesFromDocument:()=>ze,getEnv:()=>He,getFragmentDefinition:()=>V,getFragmentDefinitions:()=>he,getFragmentQueryDocument:()=>me,getInclusionDirectives:()=>pe,getMainDefinition:()=>Z,getMutationDefinition:()=>F,getOperationDefinition:()=>D,getOperationDefinitionOrDie:()=>G,getOperationName:()=>ae,getQueryDefinition:()=>le,getStoreKeyName:()=>Q,graphQLResultHasError:()=>ut,hasClientExports:()=>ve,hasDirectives:()=>ce,isDevelopment:()=>Xe,isEnv:()=>Ge,isEqual:()=>m,isField:()=>$,isIdValue:()=>M,isInlineFragment:()=>X,isJsonValue:()=>T,isNumberValue:()=>_,isProduction:()=>$e,isScalarValue:()=>R,isTest:()=>Ye,maybeDeepFreeze:()=>ct,mergeDeep:()=>lt,mergeDeepArray:()=>et,removeArgumentsFromDocument:()=>Ie,removeClientSetsFromDocument:()=>Ve,removeConnectionDirectiveFromDocument:()=>qe,removeDirectivesFromDocument:()=>Te,removeFragmentSpreadFromDocument:()=>je,resultKeyNameFromField:()=>z,shouldInclude:()=>ne,storeKeyNameFromField:()=>B,stripSymbols:()=>dt,toIdValue:()=>S,tryFunctionOrLogError:()=>ot,valueFromNode:()=>K,valueToObjectRepresentation:()=>re,variablesInOperation:()=>fe,warnOnceInDevelopment:()=>ht});var q,a=c(16651),g=c(40909),l="Invariant Violation",t=Object.setPrototypeOf,r=void 0===t?function(q,ie){return q.__proto__=ie,q}:t,i=function(q){function ie(ue){void 0===ue&&(ue=l);var ye=q.call(this,"number"==typeof ue?l+": "+ue+" (see https://github.com/apollographql/invariant-packages)":ue)||this;return ye.framesToPop=1,ye.name=l,r(ye,ie.prototype),ye}return(0,g.__extends)(ie,q),ie}(Error);function s(q,ie){if(!q)throw new i(ie)}function e(q){return function(){return console[q].apply(console,arguments)}}(q=s||(s={})).warn=e("warn"),q.error=e("error");var n={env:{}};if("object"==typeof process)n=process;else try{Function("stub","process = stub")(n)}catch{}var p=c(25635),f=c.n(p),E=Object.prototype,b=E.toString,y=E.hasOwnProperty,d=new Map;function m(q,ie){try{return x(q,ie)}finally{d.clear()}}function x(q,ie){if(q===ie)return!0;var ue=b.call(q);if(ue!==b.call(ie))return!1;switch(ue){case"[object Array]":if(q.length!==ie.length)return!1;case"[object Object]":if(I(q,ie))return!0;var Ee=Object.keys(q),_e=Object.keys(ie),xe=Ee.length;if(xe!==_e.length)return!1;for(var Oe=0;Oe<xe;++Oe)if(!y.call(ie,Ee[Oe]))return!1;for(Oe=0;Oe<xe;++Oe){var Re=Ee[Oe];if(!x(q[Re],ie[Re]))return!1}return!0;case"[object Error]":return q.name===ie.name&&q.message===ie.message;case"[object Number]":if(q!=q)return ie!=ie;case"[object Boolean]":case"[object Date]":return+q==+ie;case"[object RegExp]":case"[object String]":return q==""+ie;case"[object Map]":case"[object Set]":if(q.size!==ie.size)return!1;if(I(q,ie))return!0;for(var De=q.entries(),pt="[object Map]"===ue;;){var it=De.next();if(it.done)break;var at=it.value,st=at[0],vt=at[1];if(!ie.has(st)||pt&&!x(vt,ie.get(st)))return!1}return!0}return!1}function I(q,ie){var ue=d.get(q);if(ue){if(ue.has(ie))return!0}else d.set(q,ue=new Set);return ue.add(ie),!1}function R(q){return["StringValue","BooleanValue","EnumValue"].indexOf(q.kind)>-1}function _(q){return["IntValue","FloatValue"].indexOf(q.kind)>-1}function re(q,ie,ue,ye){if(function A(q){return"IntValue"===q.kind}(ue)||function v(q){return"FloatValue"===q.kind}(ue))q[ie.value]=Number(ue.value);else if(function h(q){return"BooleanValue"===q.kind}(ue)||function O(q){return"StringValue"===q.kind}(ue))q[ie.value]=ue.value;else if(function U(q){return"ObjectValue"===q.kind}(ue)){var Ee={};ue.fields.map(function(xe){return re(Ee,xe.name,xe.value,ye)}),q[ie.value]=Ee}else if(function C(q){return"Variable"===q.kind}(ue))q[ie.value]=(ye||{})[ue.name.value];else if(function N(q){return"ListValue"===q.kind}(ue))q[ie.value]=ue.values.map(function(xe){var Oe={};return re(Oe,ie,xe,ye),Oe[ie.value]});else if(function j(q){return"EnumValue"===q.kind}(ue))q[ie.value]=ue.value;else{if(!function Y(q){return"NullValue"===q.kind}(ue))throw new i(17);q[ie.value]=null}}function B(q,ie){var ue=null;q.directives&&(ue={},q.directives.forEach(function(Ee){ue[Ee.name.value]={},Ee.arguments&&Ee.arguments.forEach(function(_e){return re(ue[Ee.name.value],_e.name,_e.value,ie)})}));var ye=null;return q.arguments&&q.arguments.length&&(ye={},q.arguments.forEach(function(Ee){return re(ye,Ee.name,Ee.value,ie)})),Q(q.name.value,ye,ue)}var J=["connection","include","skip","client","rest","export"];function Q(q,ie,ue){if(ue&&ue.connection&&ue.connection.key){if(ue.connection.filter&&ue.connection.filter.length>0){var ye=ue.connection.filter?ue.connection.filter:[];ye.sort();var Ee=ie,_e={};return ye.forEach(function(Re){_e[Re]=Ee[Re]}),ue.connection.key+"("+JSON.stringify(_e)+")"}return ue.connection.key}var xe=q;if(ie){var Oe=f()(ie);xe+="("+Oe+")"}return ue&&Object.keys(ue).forEach(function(Re){-1===J.indexOf(Re)&&(ue[Re]&&Object.keys(ue[Re]).length?xe+="@"+Re+"("+JSON.stringify(ue[Re])+")":xe+="@"+Re)}),xe}function H(q,ie){if(q.arguments&&q.arguments.length){var ue={};return q.arguments.forEach(function(ye){return re(ue,ye.name,ye.value,ie)}),ue}return null}function z(q){return q.alias?q.alias.value:q.name.value}function $(q){return"Field"===q.kind}function X(q){return"InlineFragment"===q.kind}function M(q){return q&&"id"===q.type&&"boolean"==typeof q.generated}function S(q,ie){return void 0===ie&&(ie=!1),(0,g.__assign)({type:"id",generated:ie},"string"==typeof q?{id:q,typename:void 0}:q)}function T(q){return null!=q&&"object"==typeof q&&"json"===q.type}function k(q){throw new i(18)}function K(q,ie){switch(void 0===ie&&(ie=k),q.kind){case"Variable":return ie(q);case"NullValue":return null;case"IntValue":return parseInt(q.value,10);case"FloatValue":return parseFloat(q.value);case"ListValue":return q.values.map(function(xe){return K(xe,ie)});case"ObjectValue":for(var ue={},ye=0,Ee=q.fields;ye<Ee.length;ye++){var _e=Ee[ye];ue[_e.name.value]=K(_e.value,ie)}return ue;default:return q.value}}function ee(q,ie){if(q.directives&&q.directives.length){var ue={};return q.directives.forEach(function(ye){ue[ye.name.value]=H(ye,ie)}),ue}return null}function ne(q,ie){return void 0===ie&&(ie={}),pe(q.directives).every(function(ue){var ye=ue.directive,Ee=ue.ifArgument,_e=!1;return"Variable"===Ee.value.kind?s(void 0!==(_e=ie[Ee.value.name.value]),13):_e=Ee.value.value,"skip"===ye.name.value?!_e:_e})}function se(q){var ie=[];return(0,a.YR)(q,{Directive:function(ue){ie.push(ue.name.value)}}),ie}function ce(q,ie){return se(ie).some(function(ue){return q.indexOf(ue)>-1})}function ve(q){return q&&ce(["client"],q)&&ce(["export"],q)}function de(q){var ie=q.name.value;return"skip"===ie||"include"===ie}function pe(q){return q?q.filter(de).map(function(ie){var ue=ie.arguments;s(ue&&1===ue.length,14);var Ee=ue[0];s(Ee.name&&"if"===Ee.name.value,15);var _e=Ee.value;return s(_e&&("Variable"===_e.kind||"BooleanValue"===_e.kind),16),{directive:ie,ifArgument:Ee}}):[]}function me(q,ie){var ue=ie,ye=[];return q.definitions.forEach(function(_e){if("OperationDefinition"===_e.kind)throw new i(11);"FragmentDefinition"===_e.kind&&ye.push(_e)}),typeof ue>"u"&&(s(1===ye.length,12),ue=ye[0].name.value),(0,g.__assign)((0,g.__assign)({},q),{definitions:(0,g.__spreadArrays)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:ue}}]}}],q.definitions)})}function ge(q){for(var ie=[],ue=1;ue<arguments.length;ue++)ie[ue-1]=arguments[ue];return ie.forEach(function(ye){typeof ye>"u"||null===ye||Object.keys(ye).forEach(function(Ee){q[Ee]=ye[Ee]})}),q}function F(q){P(q);var ie=q.definitions.filter(function(ue){return"OperationDefinition"===ue.kind&&"mutation"===ue.operation})[0];return s(ie,1),ie}function P(q){return s(q&&"Document"===q.kind,2),s(q.definitions.filter(function(ue){return"FragmentDefinition"!==ue.kind}).map(function(ue){if("OperationDefinition"!==ue.kind)throw new i(3);return ue}).length<=1,4),q}function D(q){return P(q),q.definitions.filter(function(ie){return"OperationDefinition"===ie.kind})[0]}function G(q){var ie=D(q);return s(ie,5),ie}function ae(q){return q.definitions.filter(function(ie){return"OperationDefinition"===ie.kind&&ie.name}).map(function(ie){return ie.name.value})[0]||null}function he(q){return q.definitions.filter(function(ie){return"FragmentDefinition"===ie.kind})}function le(q){var ie=D(q);return s(ie&&"query"===ie.operation,6),ie}function V(q){s("Document"===q.kind,7),s(q.definitions.length<=1,8);var ie=q.definitions[0];return s("FragmentDefinition"===ie.kind,9),ie}function Z(q){P(q);for(var ie,ue=0,ye=q.definitions;ue<ye.length;ue++){var Ee=ye[ue];if("OperationDefinition"===Ee.kind){var _e=Ee.operation;if("query"===_e||"mutation"===_e||"subscription"===_e)return Ee}"FragmentDefinition"===Ee.kind&&!ie&&(ie=Ee)}if(ie)return ie;throw new i(10)}function te(q){void 0===q&&(q=[]);var ie={};return q.forEach(function(ue){ie[ue.name.value]=ue}),ie}function oe(q){if(q&&q.variableDefinitions&&q.variableDefinitions.length){var ie=q.variableDefinitions.filter(function(ue){return ue.defaultValue}).map(function(ue){var _e={};return re(_e,ue.variable.name,ue.defaultValue),_e});return ge.apply(void 0,(0,g.__spreadArrays)([{}],ie))}return{}}function fe(q){var ie=new Set;if(q.variableDefinitions)for(var ue=0,ye=q.variableDefinitions;ue<ye.length;ue++)ie.add(ye[ue].variable.name.value);return ie}function be(q,ie,ue){var ye=0;return q.forEach(function(Ee,_e){ie.call(this,Ee,_e,q)&&(q[ye++]=Ee)},ue),q.length=ye,q}var Se={kind:"Field",name:{kind:"Name",value:"__typename"}};function we(q,ie){return q.selectionSet.selections.every(function(ue){return"FragmentSpread"===ue.kind&&we(ie[ue.name.value],ie)})}function Ce(q){return we(D(q)||V(q),te(he(q)))?null:q}function Pe(q){return function(ue){return q.some(function(ye){return ye.name&&ye.name===ue.name.value||ye.test&&ye.test(ue)})}}function Te(q,ie){var ue=Object.create(null),ye=[],Ee=Object.create(null),_e=[],xe=Ce((0,a.YR)(ie,{Variable:{enter:function(Oe,Re,De){"VariableDefinition"!==De.kind&&(ue[Oe.name.value]=!0)}},Field:{enter:function(Oe){if(q&&Oe.directives&&q.some(function(De){return De.remove})&&Oe.directives&&Oe.directives.some(Pe(q)))return Oe.arguments&&Oe.arguments.forEach(function(De){"Variable"===De.value.kind&&ye.push({name:De.value.name.value})}),Oe.selectionSet&&Le(Oe.selectionSet).forEach(function(De){_e.push({name:De.name.value})}),null}},FragmentSpread:{enter:function(Oe){Ee[Oe.name.value]=!0}},Directive:{enter:function(Oe){if(Pe(q)(Oe))return null}}}));return xe&&be(ye,function(Oe){return!ue[Oe.name]}).length&&(xe=Ie(ye,xe)),xe&&be(_e,function(Oe){return!Ee[Oe.name]}).length&&(xe=je(_e,xe)),xe}function Ae(q){return(0,a.YR)(P(q),{SelectionSet:{enter:function(ie,ue,ye){if(!ye||"OperationDefinition"!==ye.kind){var Ee=ie.selections;if(Ee&&!Ee.some(function(Oe){return $(Oe)&&("__typename"===Oe.name.value||0===Oe.name.value.lastIndexOf("__",0))})){var xe=ye;if(!($(xe)&&xe.directives&&xe.directives.some(function(Oe){return"export"===Oe.name.value})))return(0,g.__assign)((0,g.__assign)({},ie),{selections:(0,g.__spreadArrays)(Ee,[Se])})}}}}})}var Me={test:function(q){var ie="connection"===q.name.value;return ie&&(!q.arguments||q.arguments.some(function(ue){return"key"===ue.name.value})),ie}};function qe(q){return Te([Me],P(q))}function ke(q,ie,ue){return void 0===ue&&(ue=!0),ie&&ie.selections&&ie.selections.some(function(ye){return Ue(q,ye,ue)})}function Ue(q,ie,ue){return void 0===ue&&(ue=!0),!$(ie)||!!ie.directives&&(ie.directives.some(Pe(q))||ue&&ke(q,ie.selectionSet,ue))}function ze(q,ie){var ue;return P(ie),Ce((0,a.YR)(ie,{SelectionSet:{enter:function(ye,Ee,_e,xe){var Oe=xe.join("-");if(!ue||Oe===ue||!Oe.startsWith(ue)){if(ye.selections){var Re=ye.selections.filter(function(De){return Ue(q,De)});return ke(q,ye,!1)&&(ue=Oe),(0,g.__assign)((0,g.__assign)({},ye),{selections:Re})}return null}}}}))}function Ie(q,ie){var ue=function Be(q){return function(ue){return q.some(function(ye){return ue.value&&"Variable"===ue.value.kind&&ue.value.name&&(ye.name===ue.value.name.value||ye.test&&ye.test(ue))})}}(q);return Ce((0,a.YR)(ie,{OperationDefinition:{enter:function(ye){return(0,g.__assign)((0,g.__assign)({},ye),{variableDefinitions:ye.variableDefinitions.filter(function(Ee){return!q.some(function(_e){return _e.name===Ee.variable.name.value})})})}},Field:{enter:function(ye){if(q.some(function(xe){return xe.remove})){var _e=0;if(ye.arguments.forEach(function(xe){ue(xe)&&(_e+=1)}),1===_e)return null}}},Argument:{enter:function(ye){if(ue(ye))return null}}}))}function je(q,ie){function ue(ye){if(q.some(function(Ee){return Ee.name===ye.name.value}))return null}return Ce((0,a.YR)(ie,{FragmentSpread:{enter:ue},FragmentDefinition:{enter:ue}}))}function Le(q){var ie=[];return q.selections.forEach(function(ue){($(ue)||X(ue))&&ue.selectionSet?Le(ue.selectionSet).forEach(function(ye){return ie.push(ye)}):"FragmentSpread"===ue.kind&&ie.push(ue)}),ie}function Qe(q){return"query"===Z(q).operation?q:(0,a.YR)(q,{OperationDefinition:{enter:function(Ee){return(0,g.__assign)((0,g.__assign)({},Ee),{operation:"query"})}}})}function Ve(q){P(q);var ie=Te([{test:function(ue){return"client"===ue.name.value},remove:!0}],q);return ie&&(ie=(0,a.YR)(ie,{FragmentDefinition:{enter:function(ue){if(ue.selectionSet&&ue.selectionSet.selections.every(function(Ee){return $(Ee)&&"__typename"===Ee.name.value}))return null}}})),ie}var We="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Fe=Object.prototype.toString;function Ke(q){return Ne(q,new Map)}function Ne(q,ie){switch(Fe.call(q)){case"[object Array]":if(ie.has(q))return ie.get(q);var ue=q.slice(0);return ie.set(q,ue),ue.forEach(function(Ee,_e){ue[_e]=Ne(Ee,ie)}),ue;case"[object Object]":if(ie.has(q))return ie.get(q);var ye=Object.create(Object.getPrototypeOf(q));return ie.set(q,ye),Object.keys(q).forEach(function(Ee){ye[Ee]=Ne(q[Ee],ie)}),ye;default:return q}}function He(){return typeof process<"u"?"production":"development"}function Ge(q){return He()===q}function $e(){return!0===Ge("production")}function Xe(){return!0===Ge("development")}function Ye(){return!0===Ge("test")}function ot(q){try{return q()}catch(ie){console.error&&console.error(ie)}}function ut(q){return q.errors&&q.errors.length}function Ze(q){return Object.freeze(q),Object.getOwnPropertyNames(q).forEach(function(ie){null!==q[ie]&&("object"==typeof q[ie]||"function"==typeof q[ie])&&!Object.isFrozen(q[ie])&&Ze(q[ie])}),q}function ct(q){return!Xe()&&!Ye()||"function"==typeof Symbol&&"string"==typeof Symbol("")?q:Ze(q)}var ft=Object.prototype.hasOwnProperty;function lt(){for(var q=[],ie=0;ie<arguments.length;ie++)q[ie]=arguments[ie];return et(q)}function et(q){var ie=q[0]||{},ue=q.length;if(ue>1){var ye=[];ie=Je(ie,ye);for(var Ee=1;Ee<ue;++Ee)ie=rt(ie,q[Ee],ye)}return ie}function tt(q){return null!==q&&"object"==typeof q}function rt(q,ie,ue){return tt(ie)&&tt(q)?(Object.isExtensible&&!Object.isExtensible(q)&&(q=Je(q,ue)),Object.keys(ie).forEach(function(ye){var Ee=ie[ye];if(ft.call(q,ye)){var _e=q[ye];Ee!==_e&&(q[ye]=rt(Je(_e,ue),Ee,ue))}else q[ye]=Ee}),q):ie}function Je(q,ie){return null!==q&&"object"==typeof q&&ie.indexOf(q)<0&&(q=Array.isArray(q)?q.slice(0):(0,g.__assign)({__proto__:Object.getPrototypeOf(q)},q),ie.push(q)),q}var nt=Object.create({});function ht(q,ie){void 0===ie&&(ie="warn"),!$e()&&!nt[q]&&(Ye()||(nt[q]=!0),"error"===ie?console.error(q):console.warn(q))}function dt(q){return JSON.parse(JSON.stringify(q))}},68946:function(W,w,c){"use strict";var a=this&&this.__extends||function(){var m=function(x,I){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,R){L.__proto__=R}||function(L,R){for(var _ in R)R.hasOwnProperty(_)&&(L[_]=R[_])})(x,I)};return function(x,I){function L(){this.constructor=x}m(x,I),x.prototype=null===I?Object.create(I):(L.prototype=I.prototype,new L)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(m){for(var x,I=1,L=arguments.length;I<L;I++)for(var R in x=arguments[I])Object.prototype.hasOwnProperty.call(x,R)&&(m[R]=x[R]);return m},g.apply(this,arguments)},l=this&&this.__awaiter||function(m,x,I,L){return new(I||(I=Promise))(function(_,O){function h(C){try{v(L.next(C))}catch(U){O(U)}}function A(C){try{v(L.throw(C))}catch(U){O(U)}}function v(C){C.done?_(C.value):function R(_){return _ instanceof I?_:new I(function(O){O(_)})}(C.value).then(h,A)}v((L=L.apply(m,x||[])).next())})},t=this&&this.__generator||function(m,x){var L,R,_,O,I={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return O={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(O[Symbol.iterator]=function(){return this}),O;function h(v){return function(C){return function A(v){if(L)throw new TypeError("Generator is already executing.");for(;I;)try{if(L=1,R&&(_=2&v[0]?R.return:v[0]?R.throw||((_=R.return)&&_.call(R),0):R.next)&&!(_=_.call(R,v[1])).done)return _;switch(R=0,_&&(v=[2&v[0],_.value]),v[0]){case 0:case 1:_=v;break;case 4:return I.label++,{value:v[1],done:!1};case 5:I.label++,R=v[1],v=[0];continue;case 7:v=I.ops.pop(),I.trys.pop();continue;default:if(!(_=(_=I.trys).length>0&&_[_.length-1])&&(6===v[0]||2===v[0])){I=0;continue}if(3===v[0]&&(!_||v[1]>_[0]&&v[1]<_[3])){I.label=v[1];break}if(6===v[0]&&I.label<_[1]){I.label=_[1],_=v;break}if(_&&I.label<_[2]){I.label=_[2],I.ops.push(v);break}_[2]&&I.ops.pop(),I.trys.pop();continue}v=x.call(m,I)}catch(C){v=[6,C],R=0}finally{L=_=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,C])}}};Object.defineProperty(w,"__esModule",{value:!0});var p,m,r=c(4751),i=c(4645),s=c(35514),e=c(46121),n=c(56068),o=c(37432);w.USER_AGENT_HEADER="x-amz-user-agent",w.USER_AGENT="aws-amplify/"+o.version+(n.userAgent&&" ")+n.userAgent,(m=p=w.AUTH_TYPE||(w.AUTH_TYPE={})).NONE="NONE",m.API_KEY="API_KEY",m.AWS_IAM="AWS_IAM",m.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",m.OPENID_CONNECT="OPENID_CONNECT";var f=function(m){function x(I){var L=m.call(this)||this;return L.link=w.authLink(I),L}return a(x,m),x.prototype.request=function(I,L){return this.link.request(I,L)},x}(r.ApolloLink);w.AuthLink=f;var E=function(m,x,I){var L=void 0===m?{header:"",value:""}:m,R=L.header,_=L.value;return l(void 0,void 0,void 0,function(){var O,h,v,C,U;return t(this,function(N){switch(N.label){case 0:return O=x.getContext(),h=g(g({},O.headers),((C={})[w.USER_AGENT_HEADER]=w.USER_AGENT,C)),R&&_?"function"!=typeof _?[3,2]:[4,_.call(void 0)]:[3,5];case 1:return v=N.sent(),[3,4];case 2:return[4,_];case 3:v=N.sent(),N.label=4;case 4:h=g(((U={})[R]=v,U),h),N.label=5;case 5:return x.setContext(g(g({},O),{headers:h})),[2,I(x)]}})})};w.authLink=function(m){var x=m.url,I=m.region,L=m.auth,R=(void 0===L?{}:L).type,_=m.auth;return new r.ApolloLink(function(O,h){return new r.Observable(function(A){var v,C;switch(R){case p.NONE:C=E(void 0,O,h);break;case p.AWS_IAM:var U=_.credentials;C=function(m,x,I){var L=m.credentials,R=m.region,_=m.url;return l(void 0,void 0,void 0,function(){var O,h,A,v,C,U,N,j,Y,re,B,J,Q;return t(this,function(H){switch(H.label){case 0:return O="appsync",h=x.getContext(),(A="function"==typeof L?L.call():L||{})&&"function"==typeof A.getPromise?[4,A.getPromise()]:[3,2];case 1:H.sent(),H.label=2;case 2:return[4,A];case 3:return v=H.sent(),C=v.accessKeyId,U=v.secretAccessKey,N=v.sessionToken,j=e.parse(_),Y=j.host,re=j.path,B=g(g({},y(x,{})),{service:O,region:R,url:_,host:Y,path:re}),J=s.Signer.sign(B,{access_key:C,secret_key:U,session_token:N}).headers,x.setContext(g(g({},h),{headers:g(g(g({},h.headers),J),(Q={},Q[w.USER_AGENT_HEADER]=w.USER_AGENT,Q))})),[2,I(x)]}})})}({credentials:void 0===U?{}:U,region:I,url:x},O,h);break;case p.API_KEY:var j=_.apiKey;C=E({header:"X-Api-Key",value:void 0===j?"":j},O,h);break;case p.AMAZON_COGNITO_USER_POOLS:case p.OPENID_CONNECT:var re=_.jwtToken;C=E({header:"Authorization",value:void 0===re?"":re},O,h);break;default:throw new Error("Invalid AUTH_TYPE: "+_.type)}return C.then(function(Q){v=Q.subscribe({next:A.next.bind(A),error:A.error.bind(A),complete:A.complete.bind(A)})}),function(){v&&v.unsubscribe()}})})};var y=function(m,x){var R=m.query,_={operationName:m.operationName,variables:d(m.variables),query:i.print(R)};return g(g({body:JSON.stringify(_),method:"POST"},x),{headers:g({accept:"*/*","content-type":"application/json; charset=UTF-8"},x.headers)})},d=function(m){return Object.keys(m).filter(function(x){return!x.startsWith("@@")}).reduce(function(x,I){return x[I]=m[I],x},{})}},86487:(W,w,c)=>{"use strict";var g=c(68946);w.rO=function(t){return new g.AuthLink({url:t.url,region:t.region,auth:t.auth})},c(35514)},56068:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.userAgent=""},35514:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),function a(g){for(var l in g)w.hasOwnProperty(l)||(w[l]=g[l])}(c(4226))},4226:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),global.Buffer=global.Buffer||c(90243).hp;var a=c(46121),g=c(76919).util.crypto,l=function(y,d,m){return void 0===m&&(m=""),g.lib.createHmac("sha256",y).update(d,"utf8").digest(m)},t=function(y){return y=y||"",g.createHash("sha256").update(y,"utf8").digest("hex")},r=function(y){return y&&0!==Object.keys(y).length?Object.keys(y).map(function(d){return{key:d.toLowerCase(),value:y[d]?y[d].trim().replace(/\s+/g," "):""}}).sort(function(d,m){return d.key<m.key?-1:1}).map(function(d){return d.key+":"+d.value}).join("\n")+"\n":""},i=function(y){return Object.keys(y).map(function(d){return d.toLowerCase()}).sort().join(";")},E=function(y,d,m){void 0===m&&(m=null),y.headers=y.headers||{};var I=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),L=I.substr(0,8),R="AWS4-HMAC-SHA256",_=a.parse(y.url);y.headers.host=_.host,y.headers["x-amz-date"]=I,d.session_token&&(y.headers["X-Amz-Security-Token"]=d.session_token);var O=function(y){var d=a.parse(y.url);return[y.method||"/",d.path,d.query,r(y.headers),i(y.headers),t(y.body)].join("\n")}(y);m=m||function(y){var I=(a.parse(y.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===I[1]&&(I=I.reverse()),{service:y.service||I[0],region:y.region||I[1]}}(y);var h=function(y,d,m){return[y,d,m,"aws4_request"].join("/")}(L,m.region,m.service),A=function(y,d,m,x){return[y,m,x,t(d)].join("\n")}(R,O,I,h),v=function(y,d,m){void 0===y&&(y="");var I=l("AWS4"+y,d),L=l(I,m.region),R=l(L,m.service);return l(R,"aws4_request")}(d.secret_key,L,m),C=function(y,d){return l(y,d,"hex")}(v,A),U=function(y,d,m,x,I){return void 0===d&&(d=""),[y+" Credential="+d+"/"+m,"SignedHeaders="+x,"Signature="+I].join(", ")}(R,d.access_key,h,i(y.headers),C);return y.headers.Authorization=U,y},b=function(){function y(){}return y.sign=E,y}();w.Signer=b,w.default=b},86456:function(W,w,c){"use strict";var a=this&&this.__extends||function(){var m=function(x,I){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,R){L.__proto__=R}||function(L,R){for(var _ in R)R.hasOwnProperty(_)&&(L[_]=R[_])})(x,I)};return function(x,I){function L(){this.constructor=x}m(x,I),x.prototype=null===I?Object.create(I):(L.prototype=I.prototype,new L)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(m){for(var x,I=1,L=arguments.length;I<L;I++)for(var R in x=arguments[I])Object.prototype.hasOwnProperty.call(x,R)&&(m[R]=x[R]);return m},g.apply(this,arguments)},l=this&&this.__awaiter||function(m,x,I,L){return new(I||(I=Promise))(function(_,O){function h(C){try{v(L.next(C))}catch(U){O(U)}}function A(C){try{v(L.throw(C))}catch(U){O(U)}}function v(C){C.done?_(C.value):function R(_){return _ instanceof I?_:new I(function(O){O(_)})}(C.value).then(h,A)}v((L=L.apply(m,x||[])).next())})},t=this&&this.__generator||function(m,x){var L,R,_,O,I={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return O={next:h(0),throw:h(1),return:h(2)},"function"==typeof Symbol&&(O[Symbol.iterator]=function(){return this}),O;function h(v){return function(C){return function A(v){if(L)throw new TypeError("Generator is already executing.");for(;I;)try{if(L=1,R&&(_=2&v[0]?R.return:v[0]?R.throw||((_=R.return)&&_.call(R),0):R.next)&&!(_=_.call(R,v[1])).done)return _;switch(R=0,_&&(v=[2&v[0],_.value]),v[0]){case 0:case 1:_=v;break;case 4:return I.label++,{value:v[1],done:!1};case 5:I.label++,R=v[1],v=[0];continue;case 7:v=I.ops.pop(),I.trys.pop();continue;default:if(!(_=(_=I.trys).length>0&&_[_.length-1])&&(6===v[0]||2===v[0])){I=0;continue}if(3===v[0]&&(!_||v[1]>_[0]&&v[1]<_[3])){I.label=v[1];break}if(6===v[0]&&I.label<_[1]){I.label=_[1],_=v;break}if(_&&I.label<_[2]){I.label=_[2],I.ops.push(v);break}_[2]&&I.ops.pop(),I.trys.pop();continue}v=x.call(m,I)}catch(C){v=[6,C],R=0}finally{L=_=0}if(5&v[0])throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}([v,C])}}};Object.defineProperty(w,"__esModule",{value:!0});var p,m,r=c(99311),i=c(4645),s=c(26812),e=c(46121),n=c(6826),o=c(45442);w.USER_AGENT_HEADER="x-amz-user-agent",w.USER_AGENT="aws-amplify/"+o.version+(n.userAgent&&" ")+n.userAgent,(m=p=w.AUTH_TYPE||(w.AUTH_TYPE={})).NONE="NONE",m.API_KEY="API_KEY",m.AWS_IAM="AWS_IAM",m.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",m.OPENID_CONNECT="OPENID_CONNECT",m.AWS_LAMBDA="AWS_LAMBDA";var f=function(m){function x(I){var L=m.call(this)||this;return L.link=w.authLink(I),L}return a(x,m),x.prototype.request=function(I,L){return this.link.request(I,L)},x}(r.ApolloLink);w.AuthLink=f;var E=function(m,x,I){var L=void 0===m?{header:"",value:""}:m,R=L.header,_=L.value;return l(void 0,void 0,void 0,function(){var O,h,v,C,U;return t(this,function(N){switch(N.label){case 0:return O=x.getContext(),h=g(g({},O.headers),((C={})[w.USER_AGENT_HEADER]=w.USER_AGENT,C)),R&&_?"function"!=typeof _?[3,2]:[4,_.call(void 0)]:[3,5];case 1:return v=N.sent(),[3,4];case 2:return[4,_];case 3:v=N.sent(),N.label=4;case 4:h=g(((U={})[R]=v,U),h),N.label=5;case 5:return x.setContext(g(g({},O),{headers:h})),[2,I(x)]}})})};w.authLink=function(m){var x=m.url,I=m.region,L=m.auth,R=(void 0===L?{}:L).type,_=m.auth;return new r.ApolloLink(function(O,h){return new r.Observable(function(A){var v,C;switch(R){case p.NONE:C=E(void 0,O,h);break;case p.AWS_IAM:var U=_.credentials;C=function(m,x,I){var L=m.credentials,R=m.region,_=m.url;return l(void 0,void 0,void 0,function(){var O,h,A,v,C,U,N,j,Y,re,B,J,Q;return t(this,function(H){switch(H.label){case 0:return O="appsync",h=x.getContext(),(A="function"==typeof L?L.call():L||{})&&"function"==typeof A.getPromise?[4,A.getPromise()]:[3,2];case 1:H.sent(),H.label=2;case 2:return[4,A];case 3:return v=H.sent(),C=v.accessKeyId,U=v.secretAccessKey,N=v.sessionToken,j=e.parse(_),Y=j.host,re=j.path,B=g(g({},y(x,{})),{service:O,region:R,url:_,host:Y,path:re}),J=s.Signer.sign(B,{access_key:C,secret_key:U,session_token:N}).headers,x.setContext(g(g({},h),{headers:g(g(g({},h.headers),J),(Q={},Q[w.USER_AGENT_HEADER]=w.USER_AGENT,Q))})),[2,I(x)]}})})}({credentials:void 0===U?{}:U,region:I,url:x},O,h);break;case p.API_KEY:var j=_.apiKey;C=E({header:"X-Api-Key",value:void 0===j?"":j},O,h);break;case p.AMAZON_COGNITO_USER_POOLS:case p.OPENID_CONNECT:var re=_.jwtToken;C=E({header:"Authorization",value:void 0===re?"":re},O,h);break;case p.AWS_LAMBDA:var J=_.token;C=E({header:"Authorization",value:void 0===J?"":J},O,h);break;default:throw new Error("Invalid AUTH_TYPE: "+_.type)}return C.then(function(z){v=z.subscribe({next:A.next.bind(A),error:A.error.bind(A),complete:A.complete.bind(A)})}),function(){v&&v.unsubscribe()}})})};var y=function(m,x){var R=m.query,_={operationName:m.operationName,variables:d(m.variables),query:i.print(R)};return g(g({body:JSON.stringify(_),method:"POST"},x),{headers:g({accept:"*/*","content-type":"application/json; charset=UTF-8"},x.headers)})},d=function(m){return Object.keys(m).filter(function(x){return!x.startsWith("@@")}).reduce(function(x,I){return x[I]=m[I],x},{})}},37345:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var a=c(86456);w.AuthLink=a.AuthLink,w.AUTH_TYPE=a.AUTH_TYPE,w.USER_AGENT_HEADER=a.USER_AGENT_HEADER,w.USER_AGENT=a.USER_AGENT,w.createAuthLink=function(l){return new a.AuthLink({url:l.url,region:l.region,auth:l.auth})};var g=c(26812);w.Signer=g.Signer},6826:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.userAgent=""},26812:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),function a(g){for(var l in g)w.hasOwnProperty(l)||(w[l]=g[l])}(c(35908))},35908:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),global.Buffer=global.Buffer||c(90243).hp;var a=c(46121),g=c(99554).Sha256,l=c(51475).n,t=function(d,m,x){void 0===x&&(x="");var I=new g(d);I.update(m);var L=I.digestSync();return"hex"===x?l(L):L},r=function(d){var m=d||"",x=new g;return x.update(m),l(x.digestSync())},i=function(d){return d&&0!==Object.keys(d).length?Object.keys(d).map(function(m){return{key:m.toLowerCase(),value:d[m]?d[m].trim().replace(/\s+/g," "):""}}).sort(function(m,x){return m.key<x.key?-1:1}).map(function(m){return m.key+":"+m.value}).join("\n")+"\n":""},s=function(d){return Object.keys(d).map(function(m){return m.toLowerCase()}).sort().join(";")},b=function(d,m,x){void 0===x&&(x=null),d.headers=d.headers||{};var L=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),R=L.substr(0,8),_="AWS4-HMAC-SHA256",O=a.parse(d.url);d.headers.host=O.host,d.headers["x-amz-date"]=L,m.session_token&&(d.headers["X-Amz-Security-Token"]=m.session_token);var h=function(d){var m=a.parse(d.url);return[d.method||"/",m.path,m.query,i(d.headers),s(d.headers),r(d.body)].join("\n")}(d);x=x||function(d){var L=(a.parse(d.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===L[1]&&(L=L.reverse()),{service:d.service||L[0],region:d.region||L[1]}}(d);var A=function(d,m,x){return[d,m,x,"aws4_request"].join("/")}(R,x.region,x.service),v=function(d,m,x,I){return[d,x,I,r(m)].join("\n")}(_,h,L,A),C=function(d,m,x){void 0===d&&(d="");var L=t("AWS4"+d,m),R=t(L,x.region),_=t(R,x.service);return t(_,"aws4_request")}(m.secret_key,R,x),U=function(d,m){return t(d,m,"hex")}(C,v),N=function(d,m,x,I,L){return void 0===m&&(m=""),[d+" Credential="+m+"/"+x,"SignedHeaders="+I,"Signature="+L].join(", ")}(_,m.access_key,A,s(d.headers),U);return d.headers.Authorization=N,d},y=function(){function d(){}return d.sign=b,d}();w.Signer=y,w.default=y},77172:function(W,w,c){"use strict";var a=this&&this.__rest||function(e,n){var o={};for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&n.indexOf(u)<0&&(o[u]=e[u]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var p=0;for(u=Object.getOwnPropertySymbols(e);p<u.length;p++)n.indexOf(u[p])<0&&Object.prototype.propertyIsEnumerable.call(e,u[p])&&(o[u[p]]=e[u[p]])}return o};Object.defineProperty(w,"__esModule",{value:!0});var g=c(97416);w.CONTROL_EVENTS_KEY=g.CONTROL_EVENTS_KEY;var l=c(4751),t=c(23301),r=c(99999),i=c(14334);w.createSubscriptionHandshakeLink=function s(e,n){var o,u;return"string"==typeof e?(o=n||l.createHttpLink({uri:e}),u=l.ApolloLink.from([new r.NonTerminatingLink("controlMessages",{link:new l.ApolloLink(function(f,E){return new l.Observable(function(b){var y,d=f.variables,m=g.CONTROL_EVENTS_KEY,x=d[m],I=a(d,["symbol"==typeof m?m:m+""]);return typeof x<"u"&&(f.variables=I),b.next(((y={})[g.CONTROL_EVENTS_KEY]=x,y)),function(){}})})}),new r.NonTerminatingLink("subsInfo",{link:o}),new g.SubscriptionHandshakeLink("subsInfo")])):(o=n||l.createHttpLink({uri:e.url}),u=new i.AppSyncRealTimeSubscriptionHandshakeLink(e)),l.ApolloLink.split(function(f){var b=t.getMainDefinition(f.query);return"OperationDefinition"===b.kind&&"subscription"===b.operation},u,o)}},99999:function(W,w,c){"use strict";var a=this&&this.__extends||function(){var e=function(n,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,p){u.__proto__=p}||function(u,p){for(var f in p)p.hasOwnProperty(f)&&(u[f]=p[f])})(n,o)};return function(n,o){function u(){this.constructor=n}e(n,o),n.prototype=null===o?Object.create(o):(u.prototype=o.prototype,new u)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(e){for(var n,o=1,u=arguments.length;o<u;o++)for(var p in n=arguments[o])Object.prototype.hasOwnProperty.call(n,p)&&(e[p]=n[p]);return e},g.apply(this,arguments)},l=this&&this.__awaiter||function(e,n,o,u){return new(o||(o=Promise))(function(f,E){function b(m){try{d(u.next(m))}catch(x){E(x)}}function y(m){try{d(u.throw(m))}catch(x){E(x)}}function d(m){m.done?f(m.value):function p(f){return f instanceof o?f:new o(function(E){E(f)})}(m.value).then(b,y)}d((u=u.apply(e,n||[])).next())})},t=this&&this.__generator||function(e,n){var u,p,f,E,o={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return E={next:b(0),throw:b(1),return:b(2)},"function"==typeof Symbol&&(E[Symbol.iterator]=function(){return this}),E;function b(d){return function(m){return function y(d){if(u)throw new TypeError("Generator is already executing.");for(;o;)try{if(u=1,p&&(f=2&d[0]?p.return:d[0]?p.throw||((f=p.return)&&f.call(p),0):p.next)&&!(f=f.call(p,d[1])).done)return f;switch(p=0,f&&(d=[2&d[0],f.value]),d[0]){case 0:case 1:f=d;break;case 4:return o.label++,{value:d[1],done:!1};case 5:o.label++,p=d[1],d=[0];continue;case 7:d=o.ops.pop(),o.trys.pop();continue;default:if(!(f=(f=o.trys).length>0&&f[f.length-1])&&(6===d[0]||2===d[0])){o=0;continue}if(3===d[0]&&(!f||d[1]>f[0]&&d[1]<f[3])){o.label=d[1];break}if(6===d[0]&&o.label<f[1]){o.label=f[1],f=d;break}if(f&&o.label<f[2]){o.label=f[2],o.ops.push(d);break}f[2]&&o.ops.pop(),o.trys.pop();continue}d=n.call(e,o)}catch(m){d=[6,m],p=0}finally{u=f=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([d,m])}}};Object.defineProperty(w,"__esModule",{value:!0});var r=c(4751),i=c(66288),s=function(e){function n(o,u){var p=u.link,f=e.call(this)||this;return f.contextKey=o,f.link=p,f}return a(n,e),n.prototype.request=function(o,u){var p=this;return i.setContext(function(f,E){return l(p,void 0,void 0,function(){var b,y,d=this;return t(this,function(m){switch(m.label){case 0:return[4,new Promise(function(x,I){d.link.request(o).subscribe({next:x,error:I})})];case 1:return b=m.sent(),[2,g(g({},E),(y={},y[this.contextKey]=b,y))]}})})}).request(o,u)},n}(r.ApolloLink);w.NonTerminatingLink=s},14334:function(W,w,c){"use strict";var a=this&&this.__extends||function(){var L=function(R,_){return(L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,h){O.__proto__=h}||function(O,h){for(var A in h)h.hasOwnProperty(A)&&(O[A]=h[A])})(R,_)};return function(R,_){function O(){this.constructor=R}L(R,_),R.prototype=null===_?Object.create(_):(O.prototype=_.prototype,new O)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(L){for(var R,_=1,O=arguments.length;_<O;_++)for(var h in R=arguments[_])Object.prototype.hasOwnProperty.call(R,h)&&(L[h]=R[h]);return L},g.apply(this,arguments)},l=this&&this.__awaiter||function(L,R,_,O){return new(_||(_=Promise))(function(A,v){function C(j){try{N(O.next(j))}catch(Y){v(Y)}}function U(j){try{N(O.throw(j))}catch(Y){v(Y)}}function N(j){j.done?A(j.value):function h(A){return A instanceof _?A:new _(function(v){v(A)})}(j.value).then(C,U)}N((O=O.apply(L,R||[])).next())})},t=this&&this.__generator||function(L,R){var O,h,A,v,_={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return v={next:C(0),throw:C(1),return:C(2)},"function"==typeof Symbol&&(v[Symbol.iterator]=function(){return this}),v;function C(N){return function(j){return function U(N){if(O)throw new TypeError("Generator is already executing.");for(;_;)try{if(O=1,h&&(A=2&N[0]?h.return:N[0]?h.throw||((A=h.return)&&A.call(h),0):h.next)&&!(A=A.call(h,N[1])).done)return A;switch(h=0,A&&(N=[2&N[0],A.value]),N[0]){case 0:case 1:A=N;break;case 4:return _.label++,{value:N[1],done:!1};case 5:_.label++,h=N[1],N=[0];continue;case 7:N=_.ops.pop(),_.trys.pop();continue;default:if(!(A=(A=_.trys).length>0&&A[A.length-1])&&(6===N[0]||2===N[0])){_=0;continue}if(3===N[0]&&(!A||N[1]>A[0]&&N[1]<A[3])){_.label=N[1];break}if(6===N[0]&&_.label<A[1]){_.label=A[1],A=N;break}if(A&&_.label<A[2]){_.label=A[2],_.ops.push(N);break}A[2]&&_.ops.pop(),_.trys.pop();continue}N=R.call(L,_)}catch(j){N=[6,j],h=0}finally{O=A=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([N,j])}}};Object.defineProperty(w,"__esModule",{value:!0});var r=c(4751),i=c(49030),s=c(37345),e=c(17895),n=c(46121),o=c(99707),u=c(96362),p=c(32804),f=i.rootLogger.extend("subscriptions");w.CONTROL_EVENTS_KEY="@@controlEvents";var E=[400,401,403],y={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},x=3e5,I=function(L){function R(_){var O=_.url,h=_.region,A=_.auth,v=L.call(this)||this;return v.socketStatus=u.SOCKET_STATUS.CLOSED,v.keepAliveTimeout=x,v.subscriptionObserverMap=new Map,v.promiseArray=[],v.url=O,v.region=h,v.auth=A,v}return a(R,L),R.prototype.request=function(_){var O,h=this,A=_.query,v=_.variables,C=_.getContext(),U=C.controlMessages,N=w.CONTROL_EVENTS_KEY,j=(void 0===U?(O={},O[w.CONTROL_EVENTS_KEY]=void 0,O):U)[N],Y=C.headers;return new r.Observable(function(re){if(h.url){var B=o.v4(),J={appSyncGraphqlEndpoint:h.url,authenticationType:h.auth.type,query:e.print(A),region:h.region,graphql_headers:function(){return Y},variables:v,apiKey:h.auth.type===s.AUTH_TYPE.API_KEY?h.auth.apiKey:"",credentials:h.auth.type===s.AUTH_TYPE.AWS_IAM?h.auth.credentials:null,jwtToken:h.auth.type===s.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||h.auth.type===s.AUTH_TYPE.OPENID_CONNECT?h.auth.jwtToken:null};return h._startSubscriptionWithAWSAppSyncRealTime({options:J,observer:re,subscriptionId:B}),function(){return l(h,void 0,void 0,function(){return t(this,function(H){try{if(this._verifySubscriptionAlreadyStarted(B),this.subscriptionObserverMap.get(B).subscriptionState!==u.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(B)}catch{return this._removeSubscriptionObserver(B),[2]}return[2]})})}}re.error({errors:[g({},new e.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),re.complete()}).filter(function(re){var B=re.extensions,J=(void 0===B?{}:B).controlMsgType;return!0===j||!(typeof(void 0===J?void 0:J)<"u")})},R.prototype._verifySubscriptionAlreadyStarted=function(_){return l(this,void 0,void 0,function(){var h=this;return t(this,function(A){return this.subscriptionObserverMap.get(_).subscriptionState===u.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(v,C){var U=h.subscriptionObserverMap.get(_);h.subscriptionObserverMap.set(_,{observer:U.observer,subscriptionState:U.subscriptionState,variables:U.variables,query:U.query,subscriptionReadyCallback:v,subscriptionFailedCallback:C})})]:[2]})})},R.prototype._sendUnsubscriptionMessage=function(_){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===u.SOCKET_STATUS.READY){var h=JSON.stringify({id:_,type:u.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(h),this._removeSubscriptionObserver(_)}}catch(A){f({err:A})}},R.prototype._removeSubscriptionObserver=function(_){this.subscriptionObserverMap.delete(_),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},R.prototype._closeSocketWhenFlushed=function(){f("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=u.SOCKET_STATUS.CLOSED):this.socketStatus=u.SOCKET_STATUS.CLOSED},R.prototype._startSubscriptionWithAWSAppSyncRealTime=function(_){var O=_.options,h=_.observer,A=_.subscriptionId;return l(this,void 0,void 0,function(){var v,C,U,N,j,Y,re,B,J,Q,H,z,$,X,M,S,T,k,K,ee,se,ce,pe,me=this;return t(this,function(ge){switch(ge.label){case 0:return v=O.appSyncGraphqlEndpoint,C=O.authenticationType,j=O.apiKey,Y=O.region,B=void 0===(re=O.graphql_headers)?function(){return{}}:re,J=O.credentials,Q=O.jwtToken,z={query:U=O.query,variables:N=O.variables},this.subscriptionObserverMap.set(A,{observer:h,query:U,variables:N,subscriptionState:H=u.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),$=JSON.stringify(z),M=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:j,appSyncGraphqlEndpoint:v,authenticationType:C,payload:$,canonicalUri:"",region:Y,credentials:J,jwtToken:Q})];case 1:return S=[g.apply(void 0,M.concat([ge.sent()]))],[4,B()];case 2:X=g.apply(void 0,[g.apply(void 0,S.concat([ge.sent()])),(pe={},pe[s.USER_AGENT_HEADER]=s.USER_AGENT,pe)]),T={id:A,payload:{data:$,extensions:{authorization:g({},X)}},type:u.MESSAGE_TYPES.GQL_START},k=JSON.stringify(T),ge.label=3;case 3:return ge.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:j,appSyncGraphqlEndpoint:v,authenticationType:C,region:Y,credentials:J,jwtToken:Q})];case 4:return ge.sent(),[3,6];case 5:return K=ge.sent(),h.error({errors:[g({},new e.GraphQLError("Connection failed: "+(void 0===(ee=K.message)?"":ee)))]}),h.complete(),"function"==typeof(se=(this.subscriptionObserverMap.get(A)||{}).subscriptionFailedCallback)&&se(),[2];case 6:return ce=this.subscriptionObserverMap.get(A),this.subscriptionObserverMap.set(A,{observer:h,subscriptionState:H,variables:N,query:U,subscriptionReadyCallback:ce.subscriptionReadyCallback,subscriptionFailedCallback:ce.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){me._timeoutStartSubscriptionAck.call(me,A)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(k),[2]}})})},R.prototype._initializeWebSocketConnection=function(_){var O=this,h=_.appSyncGraphqlEndpoint,A=_.authenticationType,v=_.apiKey,C=_.region,U=_.credentials,N=_.jwtToken;if(this.socketStatus!==u.SOCKET_STATUS.READY)return new Promise(function(j,Y){return l(O,void 0,void 0,function(){var re,B,J,Q,H,z,$,M;return t(this,function(S){switch(S.label){case 0:if(this.promiseArray.push({res:j,rej:Y}),this.socketStatus!==u.SOCKET_STATUS.CLOSED)return[3,5];S.label=1;case 1:return S.trys.push([1,4,,5]),this.socketStatus=u.SOCKET_STATUS.CONNECTING,re=R._discoverAppSyncRealTimeEndpoint(this.url),B="{}",H=(Q=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:A,payload:B,canonicalUri:"/connect",apiKey:v,appSyncGraphqlEndpoint:h,region:C,credentials:U,jwtToken:N})];case 2:return J=H.apply(Q,[S.sent()]),z=Buffer.from(J).toString("base64"),$=Buffer.from(B).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:re+"?header="+z+"&payload="+$})];case 3:return S.sent(),this.promiseArray.forEach(function(T){var k=T.res;f("Notifying connection successful"),k()}),this.socketStatus=u.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return M=S.sent(),this.promiseArray.forEach(function(T){return(0,T.rej)(M)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=u.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},R.prototype._awsRealTimeHeaderBasedAuth=function(_){var O=_.authenticationType,h=_.payload,A=_.canonicalUri,v=_.appSyncGraphqlEndpoint,C=_.apiKey,U=_.region,N=_.credentials,j=_.jwtToken;return l(this,void 0,void 0,function(){var Y,re,B;return t(this,function(Q){switch(Q.label){case 0:return Y={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(re=Y[O])?(f("Authentication type "+O+" not supported"),[2,{}]):(B=n.parse(v).host,[4,re({payload:h,canonicalUri:A,appSyncGraphqlEndpoint:v,apiKey:C,region:U,host:B,credentials:N,jwtToken:j})]);case 1:return[2,Q.sent()]}})})},R.prototype._awsRealTimeOPENIDHeader=function(_){var O=_.host,h=_.jwtToken;return l(this,void 0,void 0,function(){var A,v;return t(this,function(C){switch(C.label){case 0:return A={},"function"!=typeof h?[3,2]:[4,h.call(void 0)];case 1:return v=C.sent(),[3,4];case 2:return[4,h];case 3:v=C.sent(),C.label=4;case 4:return[2,(A.Authorization=v,A.host=O,A)]}})})},R.prototype._awsRealTimeApiKeyHeader=function(_){var O=_.apiKey,h=_.host;return l(this,void 0,void 0,function(){var v;return t(this,function(C){return v=(new Date).toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:h,"x-amz-date":v,"x-api-key":O}]})})},R.prototype._awsRealTimeIAMHeader=function(_){var O=_.payload,h=_.canonicalUri,A=_.appSyncGraphqlEndpoint,v=_.region,C=_.credentials;return l(this,void 0,void 0,function(){var U,N,j,J,Q;return t(this,function(z){switch(z.label){case 0:return U={region:v,service:"appsync"},(N="function"==typeof C?C.call():C||{})&&"function"==typeof N.getPromise?[4,N.getPromise()]:[3,2];case 1:z.sent(),z.label=2;case 2:if(!N)throw new Error("No credentials");return[4,N];case 3:return j=z.sent(),J={access_key:j.accessKeyId,secret_key:j.secretAccessKey,session_token:j.sessionToken},Q={url:""+A+h,body:O,method:"POST",headers:g({},y)},[2,s.Signer.sign(Q,J,U).headers]}})})},R.prototype._initializeRetryableHandshake=function(_){var O=_.awsRealTimeUrl;return l(this,void 0,void 0,function(){return t(this,function(h){switch(h.label){case 0:return f("Initializaling retryable Handshake"),[4,p.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:O}])];case 1:return h.sent(),[2]}})})},R.prototype._initializeHandshake=function(_){var O=_.awsRealTimeUrl;return l(this,void 0,void 0,function(){var h,A,C=this;return t(this,function(U){switch(U.label){case 0:f("Initializing handshake "+O),U.label=1;case 1:return U.trys.push([1,4,,5]),[4,new Promise(function(N,j){var Y=R.createWebSocket(O,"graphql-ws");Y.onerror=function(){f("WebSocket connection error")},Y.onclose=function(){j(new Error("Connection handshake error"))},Y.onopen=function(){return C.awsRealTimeSocket=Y,N()}})];case 2:return U.sent(),[4,new Promise(function(N,j){var Y=!1;C.awsRealTimeSocket.onerror=function(J){f("WebSocket closed "+JSON.stringify(J))},C.awsRealTimeSocket.onclose=function(J){f("WebSocket closed "+J.reason),j(new Error(JSON.stringify(J)))},C.awsRealTimeSocket.onmessage=function(J){f("subscription message from AWS AppSyncRealTime: "+J.data+" ");var Q=JSON.parse(J.data),H=Q.type,z=Q.payload,$=(void 0===z?{}:z).connectionTimeoutMs;if(H===u.MESSAGE_TYPES.GQL_CONNECTION_ACK)return Y=!0,C.keepAliveTimeout=void 0===$?x:$,C.awsRealTimeSocket.onmessage=C._handleIncomingSubscriptionMessage.bind(C),C.awsRealTimeSocket.onerror=function(ce){f(ce),C._errorDisconnect(u.CONTROL_MSG.CONNECTION_CLOSED)},C.awsRealTimeSocket.onclose=function(ce){f("WebSocket closed "+ce.reason),C._errorDisconnect(u.CONTROL_MSG.CONNECTION_CLOSED)},void N("Cool, connected to AWS AppSyncRealTime");if(H===u.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var M=Q.payload,S=(void 0===M?{}:M).errors,T=(void 0===S?[]:S)[0],k=void 0===T?{}:T,K=k.errorType,ne=k.errorCode;j({errorType:void 0===K?"":K,errorCode:void 0===ne?0:ne})}},C.awsRealTimeSocket.send(JSON.stringify({type:u.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function B(){Y||j(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(C),15e3)})];case 3:return U.sent(),[3,5];case 4:throw h=U.sent(),A=h.errorType,E.indexOf(h.errorCode)>=0?new p.NonRetryableError(A):A?new Error(A):h;case 5:return[2]}})})},R.prototype._handleIncomingSubscriptionMessage=function(_){f("subscription message from AWS AppSync RealTime: "+_.data);var O=JSON.parse(_.data),h=O.id,A=void 0===h?"":h,v=O.payload,C=O.type,U=this.subscriptionObserverMap.get(A)||{},N=U.observer,j=void 0===N?null:N,Y=U.query,re=void 0===Y?"":Y,B=U.variables,J=void 0===B?{}:B,Q=U.startAckTimeoutId,H=void 0===Q?0:Q,z=U.subscriptionReadyCallback,$=void 0===z?null:z,X=U.subscriptionFailedCallback,M=void 0===X?null:X;if(f({id:A,observer:j,query:re,variables:J}),C===u.MESSAGE_TYPES.GQL_DATA&&v&&v.data)j?j.next(v):f("observer not found for id: "+A);else{if(C===u.MESSAGE_TYPES.GQL_START_ACK)return f("subscription ready for "+JSON.stringify({query:re,variables:J})),"function"==typeof $&&$(),clearTimeout(H),j?j.next({data:v,extensions:{controlMsgType:"CONNECTED"}}):f("observer not found for id: "+A),void this.subscriptionObserverMap.set(A,{observer:j,query:re,variables:J,startAckTimeoutId:null,subscriptionState:u.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:$,subscriptionFailedCallback:M});if(C===u.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,u.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));C===u.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(A,{observer:j,query:re,variables:J,startAckTimeoutId:H,subscriptionReadyCallback:$,subscriptionFailedCallback:M,subscriptionState:u.SUBSCRIPTION_STATUS.FAILED}),j.error({errors:[g({},new e.GraphQLError("Connection failed: "+JSON.stringify(v)))]}),clearTimeout(H),j.complete(),"function"==typeof M&&M())}},R.prototype._errorDisconnect=function(_){f("Disconnect error: "+_),this.subscriptionObserverMap.forEach(function(O){var h=O.observer;h&&!h.closed&&h.error({errors:[g({},new e.GraphQLError(_))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=u.SOCKET_STATUS.CLOSED},R.prototype._timeoutStartSubscriptionAck=function(_){var O=this.subscriptionObserverMap.get(_)||{},h=O.observer,A=O.query,v=O.variables;h&&(this.subscriptionObserverMap.set(_,{observer:h,query:A,variables:v,subscriptionState:u.SUBSCRIPTION_STATUS.FAILED}),h&&!h.closed&&(h.error({errors:[g({},new e.GraphQLError("Subscription timeout "+JSON.stringify({query:A,variables:v})))]}),h.complete()),f("timeoutStartSubscription",JSON.stringify({query:A,variables:v})))},R.createWebSocket=function(_,O){return new WebSocket(_,O)},R._discoverAppSyncRealTimeEndpoint=function(_){return _.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},R}(r.ApolloLink);w.AppSyncRealTimeSubscriptionHandshakeLink=I},97416:function(W,w,c){"use strict";var a=this&&this.__extends||function(){var f=function(E,b){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,d){y.__proto__=d}||function(y,d){for(var m in d)d.hasOwnProperty(m)&&(y[m]=d[m])})(E,b)};return function(E,b){function y(){this.constructor=E}f(E,b),E.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)}}(),g=this&&this.__assign||function(){return g=Object.assign||function(f){for(var E,b=1,y=arguments.length;b<y;b++)for(var d in E=arguments[b])Object.prototype.hasOwnProperty.call(E,d)&&(f[d]=E[d]);return f},g.apply(this,arguments)},l=this&&this.__awaiter||function(f,E,b,y){return new(b||(b=Promise))(function(m,x){function I(_){try{R(y.next(_))}catch(O){x(O)}}function L(_){try{R(y.throw(_))}catch(O){x(O)}}function R(_){_.done?m(_.value):function d(m){return m instanceof b?m:new b(function(x){x(m)})}(_.value).then(I,L)}R((y=y.apply(f,E||[])).next())})},t=this&&this.__generator||function(f,E){var y,d,m,x,b={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return x={next:I(0),throw:I(1),return:I(2)},"function"==typeof Symbol&&(x[Symbol.iterator]=function(){return this}),x;function I(R){return function(_){return function L(R){if(y)throw new TypeError("Generator is already executing.");for(;b;)try{if(y=1,d&&(m=2&R[0]?d.return:R[0]?d.throw||((m=d.return)&&m.call(d),0):d.next)&&!(m=m.call(d,R[1])).done)return m;switch(d=0,m&&(R=[2&R[0],m.value]),R[0]){case 0:case 1:m=R;break;case 4:return b.label++,{value:R[1],done:!1};case 5:b.label++,d=R[1],R=[0];continue;case 7:R=b.ops.pop(),b.trys.pop();continue;default:if(!(m=(m=b.trys).length>0&&m[m.length-1])&&(6===R[0]||2===R[0])){b=0;continue}if(3===R[0]&&(!m||R[1]>m[0]&&R[1]<m[3])){b.label=R[1];break}if(6===R[0]&&b.label<m[1]){b.label=m[1],m=R;break}if(m&&b.label<m[2]){b.label=m[2],b.ops.push(R);break}m[2]&&b.ops.pop(),b.trys.pop();continue}R=E.call(f,b)}catch(_){R=[6,_],d=0}finally{y=m=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([R,_])}}},r=this&&this.__rest||function(f,E){var b={};for(var y in f)Object.prototype.hasOwnProperty.call(f,y)&&E.indexOf(y)<0&&(b[y]=f[y]);if(null!=f&&"function"==typeof Object.getOwnPropertySymbols){var d=0;for(y=Object.getOwnPropertySymbols(f);d<y.length;d++)E.indexOf(y[d])<0&&Object.prototype.propertyIsEnumerable.call(f,y[d])&&(b[y[d]]=f[y[d]])}return b};Object.defineProperty(w,"__esModule",{value:!0});var i=c(4751),s=c(49030),e=c(78528),n=c(23301),o=s.rootLogger.extend("subscriptions"),u=o.extend("mqtt");w.CONTROL_EVENTS_KEY="@@controlEvents";var p=function(f){function E(b){var y=f.call(this)||this;return y.topicObservers=new Map,y.clientObservers=new Map,y.onMessage=function(d,m,x){var I=JSON.parse(m),L=y.topicObservers.get(d),R=x.reduce(function(_,O){return _[O]=_[O]||null,_},I.data||{});o("Message received",{data:R,topic:d,observers:L}),L.forEach(function(_){try{_.next(g(g({},I),{data:R}))}catch(O){o(O)}})},y.subsInfoContextKey=b,y}return a(E,f),E.prototype.request=function(b){var y,d=this,m=b.getContext(),I=m[this.subsInfoContextKey],L=m.controlMessages,R=w.CONTROL_EVENTS_KEY,_=(void 0===L?(y={},y[w.CONTROL_EVENTS_KEY]=void 0,y):L)[R],O=I.extensions,h=(void 0===O?{subscription:{newSubscriptions:{},mqttConnections:[]}}:O).subscription,A=h.newSubscriptions,v=h.mqttConnections,C=I.errors,U=void 0===C?[]:C;if(U&&U.length)return new i.Observable(function(re){return re.error(new i.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:U},graphQLErrors:U})),function(){}});var N=Object.keys(A).map(function(re){return A[re].topic}),j=new Set(N.filter(function(re){return d.topicObservers.has(re)})),Y=new Set(N.filter(function(re){return!j.has(re)}));return new i.Observable(function(re){j.forEach(function(J){d.topicObservers.get(J).add(re);var Q=Array.from(d.topicObservers.get(J)).find(function(){return!0}),H=Array.from(d.clientObservers).find(function(z){return z[1].observers.has(Q)})[0];d.clientObservers.get(H).observers.add(re)});var B=v.filter(function(J){return J.topics.some(function(Q){return Y.has(Q)})}).map(function(J){var Q=J.topics,H=r(J,["topics"]);return g(g({},H),{topics:Q.filter(function(z){return Y.has(z)})})});return d.connectNewClients(B,re,b),function(){Array.from(d.clientObservers).filter(function(Q){return Q[1].observers.has(re)}).forEach(function(Q){return d.clientObservers.get(Q[0]).observers.delete(re)}),d.clientObservers.forEach(function(Q){var z=Q.client;0===Q.observers.size&&(z.isConnected()&&z.disconnect(),d.clientObservers.delete(z.clientId))}),d.clientObservers=new Map(Array.from(d.clientObservers).filter(function(Q){return Q[1].observers.size>0})),d.topicObservers.forEach(function(Q){return Q.delete(re)}),d.topicObservers=new Map(Array.from(d.topicObservers).filter(function(Q){return Q[1].size>0}))}}).filter(function(re){var B=re.extensions,J=(void 0===B?{}:B).controlMsgType;return!0===_||!(typeof(void 0===J?void 0:J)<"u")})},E.prototype.connectNewClients=function(b,y,d){return l(this,void 0,void 0,function(){var x,I,L,R=this;return t(this,function(_){return x=n.getMainDefinition(d.query).selectionSet.selections.map(function(O){return O.name.value}),I=Promise.all(b.map(function(O){return R.connectNewClient(O,y,x)})),L=x.reduce(function(O,h){return O[h]=O[h]||null,O},{}),y.next({data:L,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:b}}}),[2,I]})})},E.prototype.connectNewClient=function(b,y,d){return l(this,void 0,void 0,function(){var m,x,I,L,R=this;return t(this,function(_){switch(_.label){case 0:return I=b.topics,(L=new e.Client(x=b.url,m=b.client)).trace=u.bind(null,m),L.onConnectionLost=function(O){var h=O.errorCode,A=r(O,["errorCode"]);0!==h&&I.forEach(function(v){R.topicObservers.has(v)&&R.topicObservers.get(v).forEach(function(C){return C.error(g(g({},A),{permanent:!0}))})}),I.forEach(function(v){return R.topicObservers.delete(v)})},L.onMessageArrived=function(O){return R.onMessage(O.destinationName,O.payloadString,d)},[4,new Promise(function(O,h){L.connect({useSSL:0===x.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return O(L)},onFailure:h})})];case 1:return _.sent(),[4,this.subscribeToTopics(L,I,y)];case 2:return _.sent(),[2,L]}})})},E.prototype.subscribeToTopics=function(b,y,d){var m=this;return Promise.all(y.map(function(x){return m.subscribeToTopic(b,x,d)}))},E.prototype.subscribeToTopic=function(b,y,d){var m=this;return new Promise(function(x,I){b.subscribe(y,{onSuccess:function(){m.topicObservers.has(y)||m.topicObservers.set(y,new Set),m.clientObservers.has(b.clientId)||m.clientObservers.set(b.clientId,{client:b,observers:new Set}),m.topicObservers.get(y).add(d),m.clientObservers.get(b.clientId).observers.add(d),x(y)},onFailure:I})})},E}(i.ApolloLink);w.SubscriptionHandshakeLink=p},96362:(W,w)=>{"use strict";var t;Object.defineProperty(w,"__esModule",{value:!0}),(t=w.SUBSCRIPTION_STATUS||(w.SUBSCRIPTION_STATUS={}))[t.PENDING=0]="PENDING",t[t.CONNECTED=1]="CONNECTED",t[t.FAILED=2]="FAILED",function(t){t[t.CLOSED=0]="CLOSED",t[t.READY=1]="READY",t[t.CONNECTING=2]="CONNECTING"}(w.SOCKET_STATUS||(w.SOCKET_STATUS={})),function(t){t.GQL_CONNECTION_INIT="connection_init",t.GQL_CONNECTION_ERROR="connection_error",t.GQL_CONNECTION_ACK="connection_ack",t.GQL_START="start",t.GQL_START_ACK="start_ack",t.GQL_DATA="data",t.GQL_CONNECTION_KEEP_ALIVE="ka",t.GQL_STOP="stop",t.GQL_COMPLETE="complete",t.GQL_ERROR="error"}(w.MESSAGE_TYPES||(w.MESSAGE_TYPES={})),function(t){t.CONNECTION_CLOSED="Connection closed",t.TIMEOUT_DISCONNECT="Timeout disconnect",t.SUBSCRIPTION_ACK="Subscription ack"}(w.CONTROL_MSG||(w.CONTROL_MSG={}))},49030:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var a=c(82980);w.rootLogger=a.default},82980:function(W,w,c){"use strict";var a=this&&this.__spreadArrays||function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;var e=Array(r),n=0;for(i=0;i<s;i++)for(var o=arguments[i],u=0,p=o.length;u<p;u++,n++)e[n]=o[u];return e};Object.defineProperty(w,"__esModule",{value:!0});var g=c(52528),l=g.default("aws-appsync"),t=function(r){void 0===r&&(r="");var i=r?a(this.namespace.split(":"),[r]).join(":"):this.namespace,s=g.default(i);return s.extend=t.bind(s),s};l.extend=t.bind(l),w.default=l},32804:function(W,w,c){"use strict";var a=this&&this.__extends||function(){var u=function(p,f){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,b){E.__proto__=b}||function(E,b){for(var y in b)b.hasOwnProperty(y)&&(E[y]=b[y])})(p,f)};return function(p,f){function E(){this.constructor=p}u(p,f),p.prototype=null===f?Object.create(f):(E.prototype=f.prototype,new E)}}(),g=this&&this.__awaiter||function(u,p,f,E){return new(f||(f=Promise))(function(y,d){function m(L){try{I(E.next(L))}catch(R){d(R)}}function x(L){try{I(E.throw(L))}catch(R){d(R)}}function I(L){L.done?y(L.value):function b(y){return y instanceof f?y:new f(function(d){d(y)})}(L.value).then(m,x)}I((E=E.apply(u,p||[])).next())})},l=this&&this.__generator||function(u,p){var E,b,y,d,f={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return d={next:m(0),throw:m(1),return:m(2)},"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function m(I){return function(L){return function x(I){if(E)throw new TypeError("Generator is already executing.");for(;f;)try{if(E=1,b&&(y=2&I[0]?b.return:I[0]?b.throw||((y=b.return)&&y.call(b),0):b.next)&&!(y=y.call(b,I[1])).done)return y;switch(b=0,y&&(I=[2&I[0],y.value]),I[0]){case 0:case 1:y=I;break;case 4:return f.label++,{value:I[1],done:!1};case 5:f.label++,b=I[1],I=[0];continue;case 7:I=f.ops.pop(),f.trys.pop();continue;default:if(!(y=(y=f.trys).length>0&&y[y.length-1])&&(6===I[0]||2===I[0])){f=0;continue}if(3===I[0]&&(!y||I[1]>y[0]&&I[1]<y[3])){f.label=I[1];break}if(6===I[0]&&f.label<y[1]){f.label=y[1],y=I;break}if(y&&f.label<y[2]){f.label=y[2],f.ops.push(I);break}y[2]&&f.ops.pop(),f.trys.pop();continue}I=p.call(u,f)}catch(L){I=[6,L],b=0}finally{E=y=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([I,L])}}};Object.defineProperty(w,"__esModule",{value:!0});var r=c(49030).rootLogger.extend("retry"),s=function(u){function p(f){var E=u.call(this,f)||this;return E.nonRetryable=!0,E}return a(p,u),p}(Error);function n(u,p,f,E){return void 0===E&&(E=1),g(this,void 0,void 0,function(){var b,y;return l(this,function(d){switch(d.label){case 0:r("Attempt #"+E+" for this vars: "+JSON.stringify(p)),d.label=1;case 1:return d.trys.push([1,3,,8]),[4,u.apply(void 0,p)];case 2:return d.sent(),[3,8];case 3:if(b=d.sent(),r("error "+b),function(u){return u&&u.nonRetryable}(b))throw r("non retryable error"),b;return y=f(E,p,b),r("retryIn ",y),!1===y?[3,6]:[4,new Promise(function(m){return setTimeout(m,y)})];case 4:return d.sent(),[4,n(u,p,f,E+1)];case 5:return[2,d.sent()];case 6:throw b;case 7:return[3,8];case 8:return[2]}})})}w.NonRetryableError=s,w.retry=n,w.jitteredExponentialRetry=function(u,p,f){return void 0===f&&(f=5e3),n(u,p,function o(u){return function(E){var b=100*Math.pow(2,E)+100*Math.random();return!(b>u)&&b}}(f))}},78528:function(W){var c;W.exports=(c=function(a){var l=a.localStorage||function(){var A={};return{setItem:function(v,C){A[v]=C},getItem:function(v){return A[v]},removeItem:function(v){delete A[v]}}}(),t_CONNECT=1,t_CONNACK=2,t_PUBLISH=3,t_PUBACK=4,t_PUBREC=5,t_PUBREL=6,t_PUBCOMP=7,t_SUBSCRIBE=8,t_SUBACK=9,t_UNSUBSCRIBE=10,t_UNSUBACK=11,t_PINGREQ=12,t_PINGRESP=13,t_DISCONNECT=14,r=function(A,v){for(var C in A)if(A.hasOwnProperty(C)){if(!v.hasOwnProperty(C)){var U="Unknown property, "+C+". Valid properties are:";for(var N in v)v.hasOwnProperty(N)&&(U=U+" "+N);throw new Error(U)}if(typeof A[C]!==v[C])throw new Error(n(s.INVALID_TYPE,[typeof A[C],C]))}},i=function(A,v){return function(){return A.apply(v,arguments)}},s={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"},n=function(A,v){var C=A.text;if(v)for(var U,N,j=0;j<v.length;j++)if((N=C.indexOf(U="{"+j+"}"))>0){var Y=C.substring(0,N),re=C.substring(N+U.length);C=Y+v[j]+re}return C},o=[0,6,77,81,73,115,100,112,3],u=[0,4,77,81,84,84,4],p=function(A,v){for(var C in this.type=A,v)v.hasOwnProperty(C)&&(this[C]=v[C])};function f(A,v){var C=v,U=A[v],N=U>>4,j=U&=15;v+=1;var Y,re=0,B=1;do{if(v==A.length)return[null,C];re+=(127&(Y=A[v++]))*B,B*=128}while(128&Y);var J=v+re;if(J>A.length)return[null,C];var Q=new p(N);switch(N){case t_CONNACK:1&A[v++]&&(Q.sessionPresent=!0),Q.returnCode=A[v++];break;case t_PUBLISH:var z=j>>1&3,$=y(A,v),X=I(A,v+=2,$);v+=$,z>0&&(Q.messageIdentifier=y(A,v),v+=2);var M=new c.Message(A.subarray(v,J));!(1&~j)&&(M.retained=!0),!(8&~j)&&(M.duplicate=!0),M.qos=z,M.destinationName=X,Q.payloadMessage=M;break;case t_PUBACK:case t_PUBREC:case t_PUBREL:case t_PUBCOMP:case t_UNSUBACK:Q.messageIdentifier=y(A,v);break;case t_SUBACK:Q.messageIdentifier=y(A,v),Q.returnCode=A.subarray(v+=2,J)}return[Q,J]}function E(A,v,C){return v[C++]=A>>8,v[C++]=A%256,C}function b(A,v,C,U){return x(A,C,U=E(v,C,U)),U+v}function y(A,v){return 256*A[v]+A[v+1]}function m(A){for(var v=0,C=0;C<A.length;C++){var U=A.charCodeAt(C);U>2047?(55296<=U&&U<=56319&&(C++,v++),v+=3):U>127?v+=2:v++}return v}function x(A,v,C){for(var U=C,N=0;N<A.length;N++){var j=A.charCodeAt(N);if(55296<=j&&j<=56319){var Y=A.charCodeAt(++N);if(isNaN(Y))throw new Error(n(s.MALFORMED_UNICODE,[j,Y]));j=Y-56320+(j-55296<<10)+65536}j<=127?v[U++]=j:j<=2047?(v[U++]=j>>6&31|192,v[U++]=63&j|128):j<=65535?(v[U++]=j>>12&15|224,v[U++]=j>>6&63|128,v[U++]=63&j|128):(v[U++]=j>>18&7|240,v[U++]=j>>12&63|128,v[U++]=j>>6&63|128,v[U++]=63&j|128)}return v}function I(A,v,C){for(var N,U="",j=v;j<v+C;){var Y=A[j++];if(Y<128)N=Y;else{var re=A[j++]-128;if(re<0)throw new Error(n(s.MALFORMED_UTF,[Y.toString(16),re.toString(16),""]));if(Y<224)N=64*(Y-192)+re;else{var B=A[j++]-128;if(B<0)throw new Error(n(s.MALFORMED_UTF,[Y.toString(16),re.toString(16),B.toString(16)]));if(Y<240)N=4096*(Y-224)+64*re+B;else{var J=A[j++]-128;if(J<0)throw new Error(n(s.MALFORMED_UTF,[Y.toString(16),re.toString(16),B.toString(16),J.toString(16)]));if(!(Y<248))throw new Error(n(s.MALFORMED_UTF,[Y.toString(16),re.toString(16),B.toString(16),J.toString(16)]));N=262144*(Y-240)+4096*re+64*B+J}}}N>65535&&(N-=65536,U+=String.fromCharCode(55296+(N>>10)),N=56320+(1023&N)),U+=String.fromCharCode(N)}return U}p.prototype.encode=function(){var N,A=(15&this.type)<<4,v=0,C=[],U=0;switch(void 0!==this.messageIdentifier&&(v+=2),this.type){case t_CONNECT:switch(this.mqttVersion){case 3:v+=o.length+3;break;case 4:v+=u.length+3}v+=m(this.clientId)+2,void 0!==this.willMessage&&(v+=m(this.willMessage.destinationName)+2,(N=this.willMessage.payloadBytes)instanceof Uint8Array||(N=new Uint8Array(Y)),v+=N.byteLength+2),void 0!==this.userName&&(v+=m(this.userName)+2),void 0!==this.password&&(v+=m(this.password)+2);break;case t_SUBSCRIBE:A|=2;for(var j=0;j<this.topics.length;j++)C[j]=m(this.topics[j]),v+=C[j]+2;v+=this.requestedQos.length;break;case t_UNSUBSCRIBE:for(A|=2,j=0;j<this.topics.length;j++)C[j]=m(this.topics[j]),v+=C[j]+2;break;case t_PUBREL:A|=2;break;case t_PUBLISH:this.payloadMessage.duplicate&&(A|=8),A=A|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(A|=1),v+=(U=m(this.payloadMessage.destinationName))+2;var Y=this.payloadMessage.payloadBytes;v+=Y.byteLength,Y instanceof ArrayBuffer?Y=new Uint8Array(Y):Y instanceof Uint8Array||(Y=new Uint8Array(Y.buffer))}var re=function d(A){var v=new Array(1),C=0;do{var U=A%128;(A>>=7)>0&&(U|=128),v[C++]=U}while(A>0&&C<4);return v}(v),B=re.length+1,J=new ArrayBuffer(v+B),Q=new Uint8Array(J);if(Q[0]=A,Q.set(re,1),this.type==t_PUBLISH)B=b(this.payloadMessage.destinationName,U,Q,B);else if(this.type==t_CONNECT){switch(this.mqttVersion){case 3:Q.set(o,B),B+=o.length;break;case 4:Q.set(u,B),B+=u.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),Q[B++]=H,B=E(this.keepAliveInterval,Q,B)}switch(void 0!==this.messageIdentifier&&(B=E(this.messageIdentifier,Q,B)),this.type){case t_CONNECT:B=b(this.clientId,m(this.clientId),Q,B),void 0!==this.willMessage&&(B=b(this.willMessage.destinationName,m(this.willMessage.destinationName),Q,B),B=E(N.byteLength,Q,B),Q.set(N,B),B+=N.byteLength),void 0!==this.userName&&(B=b(this.userName,m(this.userName),Q,B)),void 0!==this.password&&(B=b(this.password,m(this.password),Q,B));break;case t_PUBLISH:Q.set(Y,B);break;case t_SUBSCRIBE:for(j=0;j<this.topics.length;j++)B=b(this.topics[j],C[j],Q,B),Q[B++]=this.requestedQos[j];break;case t_UNSUBSCRIBE:for(j=0;j<this.topics.length;j++)B=b(this.topics[j],C[j],Q,B)}return J};var L=function(A,v){this._client=A,this._keepAliveInterval=1e3*v,this.isReset=!1;var C=new p(t_PINGREQ).encode(),U=function(j){return function(){return N.apply(j)}},N=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(C),this.timeout=setTimeout(U(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(s.PING_TIMEOUT.code,n(s.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(U(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},R=function(A,v,C,U){var j,Y,re;v||(v=30),this.timeout=setTimeout((j=C,Y=A,re=U,function(){return j.apply(Y,re)}),1e3*v),this.cancel=function(){clearTimeout(this.timeout)}},_=function(A,v,C,U,N){if(!("WebSocket"in a)||null===a.WebSocket)throw new Error(n(s.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in a)||null===a.ArrayBuffer)throw new Error(n(s.UNSUPPORTED,["ArrayBuffer"]));for(var j in this._trace("Paho.Client",A,v,C,U,N),this.host=v,this.port=C,this.path=U,this.uri=A,this.clientId=N,this._wsuri=null,this._localKey=v+":"+C+("/mqtt"!=U?":"+U:"")+":"+N+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,l)(0===j.indexOf("Sent:"+this._localKey)||0===j.indexOf("Received:"+this._localKey))&&this.restore(j)};_.prototype.host=null,_.prototype.port=null,_.prototype.path=null,_.prototype.uri=null,_.prototype.clientId=null,_.prototype.socket=null,_.prototype.connected=!1,_.prototype.maxMessageIdentifier=65536,_.prototype.connectOptions=null,_.prototype.hostIndex=null,_.prototype.onConnected=null,_.prototype.onConnectionLost=null,_.prototype.onMessageDelivered=null,_.prototype.onMessageArrived=null,_.prototype.traceFunction=null,_.prototype._msg_queue=null,_.prototype._buffered_msg_queue=null,_.prototype._connectTimeout=null,_.prototype.sendPinger=null,_.prototype.receivePinger=null,_.prototype._reconnectInterval=1,_.prototype._reconnecting=!1,_.prototype._reconnectTimeout=null,_.prototype.disconnectedPublishing=!1,_.prototype.disconnectedBufferSize=5e3,_.prototype.receiveBuffer=null,_.prototype._traceBuffer=null,_.prototype._MAX_TRACE_ENTRIES=100,_.prototype.connect=function(A){var v=this._traceMask(A,"password");if(this._trace("Client.connect",v,this.socket,this.connected),this.connected)throw new Error(n(s.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(n(s.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=A,this._reconnectInterval=1,this._reconnecting=!1,A.uris?(this.hostIndex=0,this._doConnect(A.uris[0])):this._doConnect(this.uri)},_.prototype.subscribe=function(A,v){if(this._trace("Client.subscribe",A,v),!this.connected)throw new Error(n(s.INVALID_STATE,["not connected"]));var C=new p(t_SUBSCRIBE);C.topics=[A],C.requestedQos=void 0!==v.qos?[v.qos]:[0],v.onSuccess&&(C.onSuccess=function(U){v.onSuccess({invocationContext:v.invocationContext,grantedQos:U})}),v.onFailure&&(C.onFailure=function(U){v.onFailure({invocationContext:v.invocationContext,errorCode:U,errorMessage:n(U)})}),v.timeout&&(C.timeOut=new R(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:s.SUBSCRIBE_TIMEOUT.code,errorMessage:n(s.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(C),this._schedule_message(C)},_.prototype.unsubscribe=function(A,v){if(this._trace("Client.unsubscribe",A,v),!this.connected)throw new Error(n(s.INVALID_STATE,["not connected"]));var C=new p(t_UNSUBSCRIBE);C.topics=[A],v.onSuccess&&(C.callback=function(){v.onSuccess({invocationContext:v.invocationContext})}),v.timeout&&(C.timeOut=new R(this,v.timeout,v.onFailure,[{invocationContext:v.invocationContext,errorCode:s.UNSUBSCRIBE_TIMEOUT.code,errorMessage:n(s.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(C),this._schedule_message(C)},_.prototype.send=function(A){this._trace("Client.send",A);var v=new p(t_PUBLISH);if(v.payloadMessage=A,this.connected)A.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(n(s.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(n(s.BUFFER_FULL,[this.disconnectedBufferSize]));A.qos>0?this._requires_ack(v):(v.sequence=++this._sequence,this._buffered_msg_queue.unshift(v))}},_.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(n(s.INVALID_STATE,["not connecting or connected"]));var A=new p(t_DISCONNECT);this._notify_msg_sent[A]=i(this._disconnected,this),this._schedule_message(A)},_.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var A in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",A,this._sentMessages[A]);for(var A in this._receivedMessages)this._trace("_receivedMessages ",A,this._receivedMessages[A]);return this._traceBuffer}},_.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},_.prototype.stopTrace=function(){delete this._traceBuffer},_.prototype._doConnect=function(A){if(this.connectOptions.useSSL){var v=A.split(":");v[0]="wss",A=v.join(":")}this._wsuri=A,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(A,["mqttv3.1"]):new WebSocket(A,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=i(this._on_socket_open,this),this.socket.onmessage=i(this._on_socket_message,this),this.socket.onerror=i(this._on_socket_error,this),this.socket.onclose=i(this._on_socket_close,this),this.sendPinger=new L(this,this.connectOptions.keepAliveInterval),this.receivePinger=new L(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new R(this,this.connectOptions.timeout,this._disconnected,[s.CONNECT_TIMEOUT.code,n(s.CONNECT_TIMEOUT)])},_.prototype._schedule_message=function(A){this._msg_queue.unshift(A),this.connected&&this._process_queue()},_.prototype.store=function(A,v){var C={type:v.type,messageIdentifier:v.messageIdentifier,version:1};if(v.type!==t_PUBLISH)throw Error(n(s.INVALID_STORED_DATA,[A+this._localKey+v.messageIdentifier,C]));v.pubRecReceived&&(C.pubRecReceived=!0),C.payloadMessage={};for(var U="",N=v.payloadMessage.payloadBytes,j=0;j<N.length;j++)N[j]<=15?U=U+"0"+N[j].toString(16):U+=N[j].toString(16);C.payloadMessage.payloadHex=U,C.payloadMessage.qos=v.payloadMessage.qos,C.payloadMessage.destinationName=v.payloadMessage.destinationName,v.payloadMessage.duplicate&&(C.payloadMessage.duplicate=!0),v.payloadMessage.retained&&(C.payloadMessage.retained=!0),0===A.indexOf("Sent:")&&(void 0===v.sequence&&(v.sequence=++this._sequence),C.sequence=v.sequence),l.setItem(A+this._localKey+v.messageIdentifier,JSON.stringify(C))},_.prototype.restore=function(A){var v=l.getItem(A),C=JSON.parse(v),U=new p(C.type,C);if(C.type!==t_PUBLISH)throw Error(n(s.INVALID_STORED_DATA,[A,v]));for(var N=C.payloadMessage.payloadHex,j=new ArrayBuffer(N.length/2),Y=new Uint8Array(j),re=0;N.length>=2;){var B=parseInt(N.substring(0,2),16);N=N.substring(2,N.length),Y[re++]=B}var J=new c.Message(Y);J.qos=C.payloadMessage.qos,J.destinationName=C.payloadMessage.destinationName,C.payloadMessage.duplicate&&(J.duplicate=!0),C.payloadMessage.retained&&(J.retained=!0),U.payloadMessage=J,0===A.indexOf("Sent:"+this._localKey)?(U.payloadMessage.duplicate=!0,this._sentMessages[U.messageIdentifier]=U):0===A.indexOf("Received:"+this._localKey)&&(this._receivedMessages[U.messageIdentifier]=U)},_.prototype._process_queue=function(){for(var A=null;A=this._msg_queue.pop();)this._socket_send(A),this._notify_msg_sent[A]&&(this._notify_msg_sent[A](),delete this._notify_msg_sent[A])},_.prototype._requires_ack=function(A){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++;A.messageIdentifier=this._message_identifier,this._sentMessages[A.messageIdentifier]=A,A.type===t_PUBLISH&&this.store("Sent:",A),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},_.prototype._on_socket_open=function(){var A=new p(t_CONNECT,this.connectOptions);A.clientId=this.clientId,this._socket_send(A)},_.prototype._on_socket_message=function(A){this._trace("Client._on_socket_message",A.data);for(var v=this._deframeMessages(A.data),C=0;C<v.length;C+=1)this._handleMessage(v[C])},_.prototype._deframeMessages=function(A){var v=new Uint8Array(A),C=[];if(this.receiveBuffer){var U=new Uint8Array(this.receiveBuffer.length+v.length);U.set(this.receiveBuffer),U.set(v,this.receiveBuffer.length),v=U,delete this.receiveBuffer}try{for(var N=0;N<v.length;){var j=f(v,N),Y=j[0];if(N=j[1],null===Y)break;C.push(Y)}N<v.length&&(this.receiveBuffer=v.subarray(N))}catch(B){var re="undefined"==B.hasOwnProperty("stack")?B.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,n(s.INTERNAL_ERROR,[B.message,re]))}return C},_.prototype._handleMessage=function(A){this._trace("Client._handleMessage",A);try{switch(A.type){case t_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var v in this._sentMessages)l.removeItem("Sent:"+this._localKey+(H=this._sentMessages[v]).messageIdentifier);for(var v in this._sentMessages={},this._receivedMessages)l.removeItem("Received:"+this._localKey+(J=this._receivedMessages[v]).messageIdentifier);this._receivedMessages={}}if(0!==A.returnCode){this._disconnected(s.CONNACK_RETURNCODE.code,n(s.CONNACK_RETURNCODE,[A.returnCode,e[A.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var N=[];for(var C in this._sentMessages)this._sentMessages.hasOwnProperty(C)&&N.push(this._sentMessages[C]);if(this._buffered_msg_queue.length>0)for(var U=null;U=this._buffered_msg_queue.pop();)N.push(U),this.onMessageDelivered&&(this._notify_msg_sent[U]=this.onMessageDelivered(U.payloadMessage));N=N.sort(function($,X){return $.sequence-X.sequence});for(var j=0,Y=N.length;j<Y;j++)if((H=N[j]).type==t_PUBLISH&&H.pubRecReceived){var re=new p(t_PUBREL,{messageIdentifier:H.messageIdentifier});this._schedule_message(re)}else this._schedule_message(H);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var B=!1;this._reconnecting&&(B=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(B,this._wsuri),this._process_queue();break;case t_PUBLISH:this._receivePublish(A);break;case t_PUBACK:(H=this._sentMessages[A.messageIdentifier])&&(delete this._sentMessages[A.messageIdentifier],l.removeItem("Sent:"+this._localKey+A.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(H.payloadMessage));break;case t_PUBREC:(H=this._sentMessages[A.messageIdentifier])&&(H.pubRecReceived=!0,re=new p(t_PUBREL,{messageIdentifier:A.messageIdentifier}),this.store("Sent:",H),this._schedule_message(re));break;case t_PUBREL:var J=this._receivedMessages[A.messageIdentifier];l.removeItem("Received:"+this._localKey+A.messageIdentifier),J&&(this._receiveMessage(J),delete this._receivedMessages[A.messageIdentifier]);var Q=new p(t_PUBCOMP,{messageIdentifier:A.messageIdentifier});this._schedule_message(Q);break;case t_PUBCOMP:var H=this._sentMessages[A.messageIdentifier];delete this._sentMessages[A.messageIdentifier],l.removeItem("Sent:"+this._localKey+A.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(H.payloadMessage);break;case t_SUBACK:(H=this._sentMessages[A.messageIdentifier])&&(H.timeOut&&H.timeOut.cancel(),128===A.returnCode[0]?H.onFailure&&H.onFailure(A.returnCode):H.onSuccess&&H.onSuccess(A.returnCode),delete this._sentMessages[A.messageIdentifier]);break;case t_UNSUBACK:(H=this._sentMessages[A.messageIdentifier])&&(H.timeOut&&H.timeOut.cancel(),H.callback&&H.callback(),delete this._sentMessages[A.messageIdentifier]);break;case t_PINGRESP:this.sendPinger.reset();break;default:this._disconnected(s.INVALID_MQTT_MESSAGE_TYPE.code,n(s.INVALID_MQTT_MESSAGE_TYPE,[A.type]))}}catch($){var z="undefined"==$.hasOwnProperty("stack")?$.stack.toString():"No Error Stack Available";return void this._disconnected(s.INTERNAL_ERROR.code,n(s.INTERNAL_ERROR,[$.message,z]))}},_.prototype._on_socket_error=function(A){this._reconnecting||this._disconnected(s.SOCKET_ERROR.code,n(s.SOCKET_ERROR,[A.data]))},_.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(s.SOCKET_CLOSE.code,n(s.SOCKET_CLOSE))},_.prototype._socket_send=function(A){if(1==A.type){var v=this._traceMask(A,"password");this._trace("Client._socket_send",v)}else this._trace("Client._socket_send",A);this.socket.send(A.encode()),this.sendPinger.reset()},_.prototype._receivePublish=function(A){switch(A.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(A);break;case 1:var v=new p(t_PUBACK,{messageIdentifier:A.messageIdentifier});this._schedule_message(v),this._receiveMessage(A);break;case 2:this._receivedMessages[A.messageIdentifier]=A,this.store("Received:",A);var C=new p(t_PUBREC,{messageIdentifier:A.messageIdentifier});this._schedule_message(C);break;default:throw Error("Invaild qos="+A.payloadMessage.qos)}},_.prototype._receiveMessage=function(A){this.onMessageArrived&&this.onMessageArrived(A.payloadMessage)},_.prototype._connected=function(A,v){this.onConnected&&this.onConnected(A,v)},_.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))},_.prototype._disconnected=function(A,v){if(this._trace("Client._disconnected",A,v),void 0!==A&&this._reconnecting)this._reconnectTimeout=new R(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===A&&(A=s.OK.code,v=n(s.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:A,errorMessage:v,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),A!==s.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:A,errorMessage:v})},_.prototype._trace=function(){if(this.traceFunction){var A=Array.prototype.slice.call(arguments);for(var v in A)typeof A[v]<"u"&&A.splice(v,1,JSON.stringify(A[v]));var C=A.join("");this.traceFunction({severity:"Debug",message:C})}if(null!==this._traceBuffer){v=0;for(var U=arguments.length;v<U;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]))}},_.prototype._traceMask=function(A,v){var C={};for(var U in A)A.hasOwnProperty(U)&&(C[U]=U==v?"******":A[U]);return C};var h=function(A){var v;if(!("string"==typeof A||A instanceof ArrayBuffer||ArrayBuffer.isView(A)&&!(A instanceof DataView)))throw n(s.INVALID_ARGUMENT,[A,"newPayload"]);v=A;var C,U=0,N=!1,j=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof v?v:I(v,0,v.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof v){var Y=new ArrayBuffer(m(v)),re=new Uint8Array(Y);return x(v,re,0),re}return v}},destinationName:{enumerable:!0,get:function(){return C},set:function(Y){if("string"!=typeof Y)throw new Error(n(s.INVALID_ARGUMENT,[Y,"newDestinationName"]));C=Y}},qos:{enumerable:!0,get:function(){return U},set:function(Y){if(0!==Y&&1!==Y&&2!==Y)throw new Error("Invalid argument:"+Y);U=Y}},retained:{enumerable:!0,get:function(){return N},set:function(Y){if("boolean"!=typeof Y)throw new Error(n(s.INVALID_ARGUMENT,[Y,"newRetained"]));N=Y}},topic:{enumerable:!0,get:function(){return C},set:function(Y){C=Y}},duplicate:{enumerable:!0,get:function(){return j},set:function(Y){j=Y}}})};return{Client:function(A,v,C,U){var N;if("string"!=typeof A)throw new Error(n(s.INVALID_TYPE,[typeof A,"host"]));if(2==arguments.length){U=v;var j=(N=A).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!j)throw new Error(n(s.INVALID_ARGUMENT,[A,"host"]));A=j[4]||j[2],v=parseInt(j[7]),C=j[8]}else{if(3==arguments.length&&(U=C,C="/mqtt"),"number"!=typeof v||v<0)throw new Error(n(s.INVALID_TYPE,[typeof v,"port"]));if("string"!=typeof C)throw new Error(n(s.INVALID_TYPE,[typeof C,"path"]));var Y=-1!==A.indexOf(":")&&"["!==A.slice(0,1)&&"]"!==A.slice(-1);N="ws://"+(Y?"["+A+"]":A)+":"+v+C}for(var re=0,B=0;B<U.length;B++){var J=U.charCodeAt(B);55296<=J&&J<=56319&&B++,re++}if("string"!=typeof U||re>65535)throw new Error(n(s.INVALID_ARGUMENT,[U,"clientId"]));var Q=new _(N,A,v,C,U);Object.defineProperties(this,{host:{get:function(){return A},set:function(){throw new Error(n(s.UNSUPPORTED_OPERATION))}},port:{get:function(){return v},set:function(){throw new Error(n(s.UNSUPPORTED_OPERATION))}},path:{get:function(){return C},set:function(){throw new Error(n(s.UNSUPPORTED_OPERATION))}},uri:{get:function(){return N},set:function(){throw new Error(n(s.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return Q.clientId},set:function(){throw new Error(n(s.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return Q.onConnected},set:function(H){if("function"!=typeof H)throw new Error(n(s.INVALID_TYPE,[typeof H,"onConnected"]));Q.onConnected=H}},disconnectedPublishing:{get:function(){return Q.disconnectedPublishing},set:function(H){Q.disconnectedPublishing=H}},disconnectedBufferSize:{get:function(){return Q.disconnectedBufferSize},set:function(H){Q.disconnectedBufferSize=H}},onConnectionLost:{get:function(){return Q.onConnectionLost},set:function(H){if("function"!=typeof H)throw new Error(n(s.INVALID_TYPE,[typeof H,"onConnectionLost"]));Q.onConnectionLost=H}},onMessageDelivered:{get:function(){return Q.onMessageDelivered},set:function(H){if("function"!=typeof H)throw new Error(n(s.INVALID_TYPE,[typeof H,"onMessageDelivered"]));Q.onMessageDelivered=H}},onMessageArrived:{get:function(){return Q.onMessageArrived},set:function(H){if("function"!=typeof H)throw new Error(n(s.INVALID_TYPE,[typeof H,"onMessageArrived"]));Q.onMessageArrived=H}},trace:{get:function(){return Q.traceFunction},set:function(H){if("function"!=typeof H)throw new Error(n(s.INVALID_TYPE,[typeof H,"onTrace"]));Q.traceFunction=H}}}),this.connect=function(H){if(r(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(n(s.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(n(s.INVALID_ARGUMENT,[H.password,"connectOptions.password"]));if(H.willMessage){if(!(H.willMessage instanceof h))throw new Error(n(s.INVALID_TYPE,[H.willMessage,"connectOptions.willMessage"]));if(H.willMessage.stringPayload=null,typeof H.willMessage.destinationName>"u")throw new Error(n(s.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(n(s.INVALID_ARGUMENT,[H.hosts,"connectOptions.hosts"]));if(H.hosts.length<1)throw new Error(n(s.INVALID_ARGUMENT,[H.hosts,"connectOptions.hosts"]));for(var z=!1,$=0;$<H.hosts.length;$++){if("string"!=typeof H.hosts[$])throw new Error(n(s.INVALID_TYPE,[typeof H.hosts[$],"connectOptions.hosts["+$+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(H.hosts[$])){if(0===$)z=!0;else if(!z)throw new Error(n(s.INVALID_ARGUMENT,[H.hosts[$],"connectOptions.hosts["+$+"]"]))}else if(z)throw new Error(n(s.INVALID_ARGUMENT,[H.hosts[$],"connectOptions.hosts["+$+"]"]))}if(z)H.uris=H.hosts;else{if(!H.ports)throw new Error(n(s.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));if(!(H.ports instanceof Array))throw new Error(n(s.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));if(H.hosts.length!==H.ports.length)throw new Error(n(s.INVALID_ARGUMENT,[H.ports,"connectOptions.ports"]));for(H.uris=[],$=0;$<H.hosts.length;$++){if("number"!=typeof H.ports[$]||H.ports[$]<0)throw new Error(n(s.INVALID_TYPE,[typeof H.ports[$],"connectOptions.ports["+$+"]"]));var X=H.hosts[$],M=H.ports[$],S=-1!==X.indexOf(":");H.uris.push(N="ws://"+(S?"["+X+"]":X)+":"+M+C)}}}Q.connect(H)},this.subscribe=function(H,z){if("string"!=typeof H)throw new Error("Invalid argument:"+H);if(r(z=z||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),z.timeout&&!z.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(typeof z.qos<"u"&&0!==z.qos&&1!==z.qos&&2!==z.qos)throw new Error(n(s.INVALID_ARGUMENT,[z.qos,"subscribeOptions.qos"]));Q.subscribe(H,z)},this.unsubscribe=function(H,z){if("string"!=typeof H)throw new Error("Invalid argument:"+H);if(r(z=z||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),z.timeout&&!z.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");Q.unsubscribe(H,z)},this.send=function(H,z,$,X){var M;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(H instanceof h)&&"string"!=typeof H)throw new Error("Invalid argument:"+typeof H);if(typeof(M=H).destinationName>"u")throw new Error(n(s.INVALID_ARGUMENT,[M.destinationName,"Message.destinationName"]));Q.send(M)}else(M=new h(z)).destinationName=H,arguments.length>=3&&(M.qos=$),arguments.length>=4&&(M.retained=X),Q.send(M)},this.publish=function(H,z,$,X){var M;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(H instanceof h)&&"string"!=typeof H)throw new Error("Invalid argument:"+typeof H);if(typeof(M=H).destinationName>"u")throw new Error(n(s.INVALID_ARGUMENT,[M.destinationName,"Message.destinationName"]));Q.send(M)}else(M=new h(z)).destinationName=H,arguments.length>=3&&(M.qos=$),arguments.length>=4&&(M.retained=X),Q.send(M)},this.disconnect=function(){Q.disconnect()},this.getTraceLog=function(){return Q.getTraceLog()},this.startTrace=function(){Q.startTrace()},this.stopTrace=function(){Q.stopTrace()},this.isConnected=function(){return Q.connected}},Message:h}}(typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{}),c)},76919:(W,w,c)=>{c(72306);var a=c(78588);typeof window<"u"&&(window.AWS=a),W.exports=a,typeof self<"u"&&(self.AWS=a)},67337:(W,w,c)=>{c(72306);var a=c(78588),g=a.Service,l=a.apiLoader;l.services.cognitoidentity={},a.CognitoIdentity=g.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(l.services.cognitoidentity,"2014-06-30",{get:function(){var r=c(77691);return r.paginators=c(47577).X,r},enumerable:!0,configurable:!0}),W.exports=a.CognitoIdentity},19060:(W,w,c)=>{c(72306);var a=c(78588),g=a.Service,l=a.apiLoader;l.services.sts={},a.STS=g.defineService("sts",["2011-06-15"]),c(33400),Object.defineProperty(l.services.sts,"2011-06-15",{get:function(){var r=c(90549);return r.paginators=c(14039).X,r},enumerable:!0,configurable:!0}),W.exports=a.STS},72053:W=>{function w(c,a){if(!w.services.hasOwnProperty(c))throw new Error("InvalidService: Failed to load api for "+c);return w.services[c][a]}w.services={},W.exports=w},87599:(W,w,c)=>{var a=c(46512),g=c(11603),l=c(96414),t=c(33020);W.exports={createHash:function(i){if("md5"===(i=i.toLowerCase()))return new g;if("sha256"===i)return new t;if("sha1"===i)return new l;throw new Error("Hash algorithm "+i+" is not supported in the browser SDK")},createHmac:function(i,s){if("md5"===(i=i.toLowerCase()))return new a(g,s);if("sha256"===i)return new a(t,s);if("sha1"===i)return new a(l,s);throw new Error("HMAC algorithm "+i+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},17926:(W,w,c)=>{var a=c(90243).hp;typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView>"u"&&(ArrayBuffer.isView=function(r){return g.indexOf(Object.prototype.toString.call(r))>-1});var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];W.exports={isEmptyData:function l(r){return"string"==typeof r?0===r.length:0===r.byteLength},convertToBuffer:function t(r){return"string"==typeof r&&(r=new a(r,"utf8")),ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}}},46512:(W,w,c)=>{var a=c(17926);function g(t,r){this.hash=new t,this.outer=new t;var i=function l(t,r){var i=a.convertToBuffer(r);if(i.byteLength>t.BLOCK_SIZE){var s=new t;s.update(i),i=s.digest()}var e=new Uint8Array(t.BLOCK_SIZE);return e.set(i),e}(t,r),s=new Uint8Array(t.BLOCK_SIZE);s.set(i);for(var e=0;e<t.BLOCK_SIZE;e++)i[e]^=54,s[e]^=92;for(this.hash.update(i),this.outer.update(s),e=0;e<i.byteLength;e++)i[e]=0}W.exports=g,g.prototype.update=function(t){if(a.isEmptyData(t)||this.error)return this;try{this.hash.update(a.convertToBuffer(t))}catch(r){this.error=r}return this},g.prototype.digest=function(t){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(t)}},11603:(W,w,c)=>{var a=c(17926),g=c(90243).hp;function i(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(p,f,E,b,y,d){return((f=(f+p&4294967295)+(b+d&4294967295)&4294967295)<<y|f>>>32-y)+E&4294967295}function e(p,f,E,b,y,d,m){return s(f&E|~f&b,p,f,y,d,m)}function n(p,f,E,b,y,d,m){return s(f&b|E&~b,p,f,y,d,m)}function o(p,f,E,b,y,d,m){return s(f^E^b,p,f,y,d,m)}function u(p,f,E,b,y,d,m){return s(E^(f|~b),p,f,y,d,m)}W.exports=i,i.BLOCK_SIZE=64,i.prototype.update=function(p){if(a.isEmptyData(p))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var f=a.convertToBuffer(p),E=0,b=f.byteLength;for(this.bytesHashed+=b;b>0;)this.buffer.setUint8(this.bufferLength++,f[E++]),b--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},i.prototype.digest=function(p){if(!this.finished){var f=this,E=f.buffer,b=f.bufferLength,d=8*f.bytesHashed;if(E.setUint8(this.bufferLength++,128),b%64>=56){for(var m=this.bufferLength;m<64;m++)E.setUint8(m,0);this.hashBuffer(),this.bufferLength=0}for(m=this.bufferLength;m<56;m++)E.setUint8(m,0);E.setUint32(56,d>>>0,!0),E.setUint32(60,Math.floor(d/4294967296),!0),this.hashBuffer(),this.finished=!0}var x=new DataView(new ArrayBuffer(16));for(m=0;m<4;m++)x.setUint32(4*m,this.state[m],!0);var I=new g(x.buffer,x.byteOffset,x.byteLength);return p?I.toString(p):I},i.prototype.hashBuffer=function(){var f=this.buffer,E=this.state,b=E[0],y=E[1],d=E[2],m=E[3];b=e(b,y,d,m,f.getUint32(0,!0),7,3614090360),m=e(m,b,y,d,f.getUint32(4,!0),12,3905402710),d=e(d,m,b,y,f.getUint32(8,!0),17,606105819),y=e(y,d,m,b,f.getUint32(12,!0),22,3250441966),b=e(b,y,d,m,f.getUint32(16,!0),7,4118548399),m=e(m,b,y,d,f.getUint32(20,!0),12,1200080426),d=e(d,m,b,y,f.getUint32(24,!0),17,2821735955),y=e(y,d,m,b,f.getUint32(28,!0),22,4249261313),b=e(b,y,d,m,f.getUint32(32,!0),7,1770035416),m=e(m,b,y,d,f.getUint32(36,!0),12,2336552879),d=e(d,m,b,y,f.getUint32(40,!0),17,4294925233),y=e(y,d,m,b,f.getUint32(44,!0),22,2304563134),b=e(b,y,d,m,f.getUint32(48,!0),7,1804603682),m=e(m,b,y,d,f.getUint32(52,!0),12,4254626195),d=e(d,m,b,y,f.getUint32(56,!0),17,2792965006),b=n(b,y=e(y,d,m,b,f.getUint32(60,!0),22,1236535329),d,m,f.getUint32(4,!0),5,4129170786),m=n(m,b,y,d,f.getUint32(24,!0),9,3225465664),d=n(d,m,b,y,f.getUint32(44,!0),14,643717713),y=n(y,d,m,b,f.getUint32(0,!0),20,3921069994),b=n(b,y,d,m,f.getUint32(20,!0),5,3593408605),m=n(m,b,y,d,f.getUint32(40,!0),9,38016083),d=n(d,m,b,y,f.getUint32(60,!0),14,3634488961),y=n(y,d,m,b,f.getUint32(16,!0),20,3889429448),b=n(b,y,d,m,f.getUint32(36,!0),5,568446438),m=n(m,b,y,d,f.getUint32(56,!0),9,3275163606),d=n(d,m,b,y,f.getUint32(12,!0),14,4107603335),y=n(y,d,m,b,f.getUint32(32,!0),20,1163531501),b=n(b,y,d,m,f.getUint32(52,!0),5,2850285829),m=n(m,b,y,d,f.getUint32(8,!0),9,4243563512),d=n(d,m,b,y,f.getUint32(28,!0),14,1735328473),b=o(b,y=n(y,d,m,b,f.getUint32(48,!0),20,2368359562),d,m,f.getUint32(20,!0),4,4294588738),m=o(m,b,y,d,f.getUint32(32,!0),11,2272392833),d=o(d,m,b,y,f.getUint32(44,!0),16,1839030562),y=o(y,d,m,b,f.getUint32(56,!0),23,4259657740),b=o(b,y,d,m,f.getUint32(4,!0),4,2763975236),m=o(m,b,y,d,f.getUint32(16,!0),11,1272893353),d=o(d,m,b,y,f.getUint32(28,!0),16,4139469664),y=o(y,d,m,b,f.getUint32(40,!0),23,3200236656),b=o(b,y,d,m,f.getUint32(52,!0),4,681279174),m=o(m,b,y,d,f.getUint32(0,!0),11,3936430074),d=o(d,m,b,y,f.getUint32(12,!0),16,3572445317),y=o(y,d,m,b,f.getUint32(24,!0),23,76029189),b=o(b,y,d,m,f.getUint32(36,!0),4,3654602809),m=o(m,b,y,d,f.getUint32(48,!0),11,3873151461),d=o(d,m,b,y,f.getUint32(60,!0),16,530742520),b=u(b,y=o(y,d,m,b,f.getUint32(8,!0),23,3299628645),d,m,f.getUint32(0,!0),6,4096336452),m=u(m,b,y,d,f.getUint32(28,!0),10,1126891415),d=u(d,m,b,y,f.getUint32(56,!0),15,2878612391),y=u(y,d,m,b,f.getUint32(20,!0),21,4237533241),b=u(b,y,d,m,f.getUint32(48,!0),6,1700485571),m=u(m,b,y,d,f.getUint32(12,!0),10,2399980690),d=u(d,m,b,y,f.getUint32(40,!0),15,4293915773),y=u(y,d,m,b,f.getUint32(4,!0),21,2240044497),b=u(b,y,d,m,f.getUint32(32,!0),6,1873313359),m=u(m,b,y,d,f.getUint32(60,!0),10,4264355552),d=u(d,m,b,y,f.getUint32(24,!0),15,2734768916),y=u(y,d,m,b,f.getUint32(52,!0),21,1309151649),b=u(b,y,d,m,f.getUint32(16,!0),6,4149444226),m=u(m,b,y,d,f.getUint32(44,!0),10,3174756917),d=u(d,m,b,y,f.getUint32(8,!0),15,718787259),y=u(y,d,m,b,f.getUint32(36,!0),21,3951481745),E[0]=b+E[0]&4294967295,E[1]=y+E[1]&4294967295,E[2]=d+E[2]&4294967295,E[3]=m+E[3]&4294967295}},96414:(W,w,c)=>{var a=c(90243).hp,g=c(17926);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),W.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(g.isEmptyData(n))return this;var o=(n=g.convertToBuffer(n)).length;this.totalLength+=8*o;for(var u=0;u<o;u++)this.write(n[u]);return this},e.prototype.write=function(o){this.block[this.offset]|=(255&o)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},e.prototype.digest=function(n){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 o=24;o>=0;o-=8)this.write(this.totalLength>>o);var u=new a(20),p=new DataView(u.buffer);return p.setUint32(0,this.h0,!1),p.setUint32(4,this.h1,!1),p.setUint32(8,this.h2,!1),p.setUint32(12,this.h3,!1),p.setUint32(16,this.h4,!1),n?u.toString(n):u},e.prototype.processBlock=function(){for(var o=16;o<80;o++){var u=this.block[o-3]^this.block[o-8]^this.block[o-14]^this.block[o-16];this.block[o]=u<<1|u>>>31}var d,m,p=this.h0,f=this.h1,E=this.h2,b=this.h3,y=this.h4;for(o=0;o<80;o++){o<20?(d=b^f&(E^b),m=1518500249):o<40?(d=f^E^b,m=1859775393):o<60?(d=f&E|b&(f|E),m=2400959708):(d=f^E^b,m=3395469782);var x=(p<<5|p>>>27)+d+y+m+(0|this.block[o]);y=b,b=E,E=f<<30|f>>>2,f=p,p=x}for(this.h0=this.h0+p|0,this.h1=this.h1+f|0,this.h2=this.h2+E|0,this.h3=this.h3+b|0,this.h4=this.h4+y|0,this.offset=0,o=0;o<16;o++)this.block[o]=0}},33020:(W,w,c)=>{var a=c(90243).hp,g=c(17926),r=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]),s=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}W.exports=e,e.BLOCK_SIZE=64,e.prototype.update=function(n){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(g.isEmptyData(n))return this;var o=0,u=(n=g.convertToBuffer(n)).byteLength;if(this.bytesHashed+=u,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;u>0;)this.buffer[this.bufferLength++]=n[o++],u--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},e.prototype.digest=function(n){if(!this.finished){var o=8*this.bytesHashed,u=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),p=this.bufferLength;if(u.setUint8(this.bufferLength++,128),p%64>=56){for(var f=this.bufferLength;f<64;f++)u.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(f=this.bufferLength;f<56;f++)u.setUint8(f,0);u.setUint32(56,Math.floor(o/4294967296),!0),u.setUint32(60,o),this.hashBuffer(),this.finished=!0}var E=new a(32);for(f=0;f<8;f++)E[4*f]=this.state[f]>>>24&255,E[4*f+1]=this.state[f]>>>16&255,E[4*f+2]=this.state[f]>>>8&255,E[4*f+3]=this.state[f]>>>0&255;return n?E.toString(n):E},e.prototype.hashBuffer=function(){for(var o=this.buffer,u=this.state,p=u[0],f=u[1],E=u[2],b=u[3],y=u[4],d=u[5],m=u[6],x=u[7],I=0;I<64;I++){if(I<16)this.temp[I]=(255&o[4*I])<<24|(255&o[4*I+1])<<16|(255&o[4*I+2])<<8|255&o[4*I+3];else{var L=this.temp[I-2];this.temp[I]=(((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+this.temp[I-7]|0)+((((L=this.temp[I-15])>>>7|L<<25)^(L>>>18|L<<14)^L>>>3)+this.temp[I-16]|0)}var O=(((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&d^~y&m)|0)+(x+(r[I]+this.temp[I]|0)|0)|0,h=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&f^p&E^f&E)|0;x=m,m=d,d=y,y=b+O|0,b=E,E=f,f=p,p=O+h|0}u[0]+=p,u[1]+=f,u[2]+=E,u[3]+=b,u[4]+=y,u[5]+=d,u[6]+=m,u[7]+=x}},72306:(W,w,c)=>{var a=c(67355);a.crypto.lib=c(87599),a.Buffer=c(90243).hp,a.url=c(46899),a.querystring=c(62494),a.realClock=c(31550),a.environment="js",a.createEventStream=c(92005).createEventStream,a.isBrowser=function(){return!0},a.isNode=function(){return!1};var g=c(78588);if(W.exports=g,c(1945),c(63783),c(50396),c(7526),c(53136),c(12759),c(57868),g.XML.Parser=c(88587),c(94110),typeof l>"u")var l={browser:!0}},12505:(W,w,c)=>{var g,a=c(78588);c(1945),c(63783),a.Config=a.util.inherit({constructor:function(t){void 0===t&&(t={}),t=this.extractCredentials(t),a.util.each.call(this,this.keys,function(r,i){this.set(r,t[r],i)})},getCredentials:function(t){var r=this;function i(o){t(o,o?null:r.credentials)}function s(o,u){return new a.util.error(u||new Error,{code:"CredentialsError",message:o,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?function e(){r.credentials.get(function(o){o&&(o=s("Could not load credentials from "+r.credentials.constructor.name,o)),i(o)})}():function n(){var o=null;(!r.credentials.accessKeyId||!r.credentials.secretAccessKey)&&(o=s("Missing credentials")),i(o)}():r.credentialProvider?r.credentialProvider.resolve(function(o,u){o&&(o=s("Could not load credentials from any providers",o)),r.credentials=u,i(o)}):i(s("No credentials to load"))},update:function(t,r){r=r||!1,t=this.extractCredentials(t),a.util.each.call(this,t,function(i,s){(r||Object.prototype.hasOwnProperty.call(this.keys,i)||a.Service.hasService(i))&&this.set(i,s)})},loadFromPath:function(t){this.clear();var r=JSON.parse(a.util.readFileSync(t)),i=new a.FileSystemCredentials(t),s=new a.CredentialProviderChain;return s.providers.unshift(i),s.resolve(function(e,n){if(e)throw e;r.credentials=n}),this.constructor(r),this},clear:function(){a.util.each.call(this,this.keys,function(t){delete this[t]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(t,r,i){void 0===r?(void 0===i&&(i=this.keys[t]),this[t]="function"==typeof i?i.call(this):i):this[t]="httpOptions"===t&&this[t]?a.util.merge(this[t],r):r},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(t){return t.accessKeyId&&t.secretAccessKey&&((t=a.util.copy(t)).credentials=new a.Credentials(t)),t},setPromisesDependency:function(t){g=t,null===t&&"function"==typeof Promise&&(g=Promise);var r=[a.Request,a.Credentials,a.CredentialProviderChain];a.S3&&(r.push(a.S3),a.S3.ManagedUpload&&r.push(a.S3.ManagedUpload)),a.util.addPromises(r,g)},getPromisesDependency:function(){return g}}),a.config=new a.Config},9169:(W,w,c)=>{var a=c(78588);function g(t,r){if("string"==typeof t){if(["legacy","regional"].indexOf(t.toLowerCase())>=0)return t.toLowerCase();throw a.util.error(new Error,r)}}W.exports=function l(t,r){var i;if((t=t||{})[r.clientConfig]&&(i=g(t[r.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+r.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+t[r.clientConfig]+'".'}))||!a.util.isNode())return i;if(Object.prototype.hasOwnProperty.call(process.env,r.env)&&(i=g(process.env[r.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+r.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[r.env]+'".'})))return i;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,r.sharedConfig)&&(i=g(e[r.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+r.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+e[r.sharedConfig]+'".'})),i}},78588:(W,w,c)=>{var a={util:c(67355)};({}).toString(),W.exports=a,a.util.update(a,{VERSION:"2.1189.0",Signers:{},Protocol:{Json:c(86308),Query:c(21188),Rest:c(82624),RestJson:c(85161),RestXml:c(3494)},XML:{Builder:c(58350),Parser:null},JSON:{Builder:c(41009),Parser:c(48415)},Model:{Api:c(20781),Operation:c(16032),Shape:c(31800),Paginator:c(65937),ResourceWaiter:c(6646)},apiLoader:c(72053),EndpointCache:c(12009).k}),c(30658),c(53848),c(12505),c(10895),c(11025),c(49394),c(12028),c(97496),c(21815),c(75247),a.events=new a.SequentialExecutor,a.util.memoizedProperty(a,"endpointCache",function(){return new a.EndpointCache(a.config.endpointCacheSize)},!0)},1945:(W,w,c)=>{var a=c(78588);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 l=arguments[0].credentials||arguments[0];this.accessKeyId=l.accessKeyId,this.secretAccessKey=l.secretAccessKey,this.sessionToken=l.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var l=a.util.date.getDate().getTime(),t=new Date(l+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(l){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),l&&l(r)}):l&&l()},refresh:function(l){this.expired=!1,l()},coalesceRefresh:function(l,t){var r=this;1===r.refreshCallbacks.push(l)&&r.load(function(s){a.util.arrayEach(r.refreshCallbacks,function(e){t?e(s):a.util.defer(function(){e(s)})}),r.refreshCallbacks.length=0})},load:function(l){l()}}),a.Credentials.addPromisesToClass=function(l){this.prototype.getPromise=a.util.promisifyMethod("get",l),this.prototype.refreshPromise=a.util.promisifyMethod("refresh",l)},a.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},a.util.addPromises(a.Credentials)},7526:(W,w,c)=>{var a=c(78588),g=c(19060);a.ChainableTemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(t){a.Credentials.call(this),t=t||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var r=a.util.copy(t.params)||{};if(r.RoleArn&&(r.RoleSessionName=r.RoleSessionName||"temporary-credentials"),r.SerialNumber){if(!t.tokenCodeFn||"function"!=typeof t.tokenCodeFn)throw new a.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=t.tokenCodeFn}var i=a.util.merge({params:r,credentials:t.masterCredentials||a.config.credentials},t.stsConfig||{});this.service=new g(i)},refresh:function(t){this.coalesceRefresh(t||a.util.fn.callback)},load:function(t){var r=this,i=r.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(s,e){var n={};s?t(s):(e&&(n.TokenCode=e),r.service[i](n,function(o,u){o||r.service.credentialsFrom(u,r),t(o)}))})},getTokenCode:function(t){var r=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(i,s){if(i){var e=i;return i instanceof Error&&(e=i.message),void t(a.util.error(new Error("Error fetching MFA token: "+e),{code:r.errorCode}))}t(null,s)}):t(null)}})},12759:(W,w,c)=>{var a=c(78588),g=c(67337),l=c(19060);a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(r,i){a.Credentials.call(this),this.expired=!0,this.params=r,this.data=null,this._identityId=null,this._clientConfig=a.util.copy(i||{}),this.loadCachedId();var s=this;Object.defineProperty(this,"identityId",{get:function(){return s.loadCachedId(),s._identityId||s.params.IdentityId},set:function(e){s._identityId=e}})},refresh:function(r){this.coalesceRefresh(r||a.util.fn.callback)},load:function(r){var i=this;i.createClients(),i.data=null,i._identityId=null,i.getId(function(s){s?(i.clearIdOnNotAuthorized(s),r(s)):i.params.RoleArn?i.getCredentialsFromSTS(r):i.getCredentialsForIdentity(r)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var r=this.params.IdentityPoolId,i=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+r+i],delete this.storage[this.localStorageKey.providers+r+i]},clearIdOnNotAuthorized:function(r){"NotAuthorizedException"==r.code&&this.clearCachedId()},getId:function(r){var i=this;if("string"==typeof i.params.IdentityId)return r(null,i.params.IdentityId);i.cognito.getId(function(s,e){!s&&e.IdentityId?(i.params.IdentityId=e.IdentityId,r(null,e.IdentityId)):r(s)})},loadCredentials:function(r,i){!r||!i||(i.expired=!1,i.accessKeyId=r.Credentials.AccessKeyId,i.secretAccessKey=r.Credentials.SecretKey,i.sessionToken=r.Credentials.SessionToken,i.expireTime=r.Credentials.Expiration)},getCredentialsForIdentity:function(r){var i=this;i.cognito.getCredentialsForIdentity(function(s,e){s?i.clearIdOnNotAuthorized(s):(i.cacheId(e),i.data=e,i.loadCredentials(i.data,i)),r(s)})},getCredentialsFromSTS:function(r){var i=this;i.cognito.getOpenIdToken(function(s,e){s?(i.clearIdOnNotAuthorized(s),r(s)):(i.cacheId(e),i.params.WebIdentityToken=e.Token,i.webIdentityCredentials.refresh(function(n){n||(i.data=i.webIdentityCredentials.data,i.sts.credentialsFrom(i.data,i)),r(n)}))})},loadCachedId:function(){var r=this;if(a.util.isBrowser()&&!r.params.IdentityId){var i=r.getStorage("id");if(i&&r.params.Logins){var s=Object.keys(r.params.Logins);0!==(r.getStorage("providers")||"").split(",").filter(function(o){return-1!==s.indexOf(o)}).length&&(r.params.IdentityId=i)}else i&&(r.params.IdentityId=i)}},createClients:function(){var t=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params,t),!this.cognito){var r=a.util.merge({},t);r.params=this.params,this.cognito=new g(r)}this.sts=this.sts||new l(t)},cacheId:function(r){this._identityId=r.IdentityId,this.params.IdentityId=this._identityId,a.util.isBrowser()&&(this.setStorage("id",r.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(r){return this.storage[this.localStorageKey[r]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(r,i){try{this.storage[this.localStorageKey[r]+this.params.IdentityPoolId+(this.params.LoginId||"")]=i}catch{}},storage:function(){try{var t=a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return t["aws.test-storage"]="foobar",delete t["aws.test-storage"],t}catch{return{}}}()})},63783:(W,w,c)=>{var a=c(78588);a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function(l){this.providers=l||a.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(l){var t=this;if(0===t.providers.length)return l(new Error("No providers")),t;if(1===t.resolveCallbacks.push(l)){let e=function(n,o){if(!n&&o||r===i.length)return a.util.arrayEach(t.resolveCallbacks,function(p){p(n,o)}),void(t.resolveCallbacks.length=0);var u=i[r++];(o="function"==typeof u?u.call():u).get?o.get(function(p){e(p,p?null:o)}):e(null,o)};var r=0,i=t.providers.slice(0);e()}return t}}),a.CredentialProviderChain.defaultProviders=[],a.CredentialProviderChain.addPromisesToClass=function(l){this.prototype.resolvePromise=a.util.promisifyMethod("resolve",l)},a.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},a.util.addPromises(a.CredentialProviderChain)},57868:(W,w,c)=>{var a=c(78588),g=c(19060);a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function(t){a.Credentials.call(this),this.expired=!0,this.params=t},refresh:function(t){this.coalesceRefresh(t||a.util.fn.callback)},load:function(t){var r=this;r.createClients(),r.service.assumeRoleWithSAML(function(i,s){i||r.service.credentialsFrom(s,r),t(i)})},createClients:function(){this.service=this.service||new g({params:this.params})}})},50396:(W,w,c)=>{var a=c(78588),g=c(19060);a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function(t,r){a.Credentials.call(this),this.loadMasterCredentials(r),this.expired=!0,this.params=t||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(t){this.coalesceRefresh(t||a.util.fn.callback)},load:function(t){var r=this;r.createClients(),r.masterCredentials.get(function(){r.service.config.credentials=r.masterCredentials,(r.params.RoleArn?r.service.assumeRole:r.service.getSessionToken).call(r.service,function(s,e){s||r.service.credentialsFrom(e,r),t(s)})})},loadMasterCredentials:function(t){for(this.masterCredentials=t||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 g({params:this.params})}})},53136:(W,w,c)=>{var a=c(78588),g=c(19060);a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function(t,r){a.Credentials.call(this),this.expired=!0,this.params=t,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=a.util.copy(r||{})},refresh:function(t){this.coalesceRefresh(t||a.util.fn.callback)},load:function(t){var r=this;r.createClients(),r.service.assumeRoleWithWebIdentity(function(i,s){r.data=null,i||(r.data=s,r.service.credentialsFrom(s,r)),t(i)})},createClients:function(){if(!this.service){var l=a.util.merge({},this._clientConfig);l.params=this.params,this.service=new g(l)}}})},89082:(W,w,c)=>{var a=c(78588),g=c(67355),l=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function t(y){var d=y.service,m=d.api||{},I={};return d.config.region&&(I.region=d.config.region),m.serviceId&&(I.serviceId=m.serviceId),d.config.credentials.accessKeyId&&(I.accessKeyId=d.config.credentials.accessKeyId),I}function r(y,d,m){!m||null==d||"structure"===m.type&&m.required&&m.required.length>0&&g.arrayEach(m.required,function(x){var I=m.members[x];!0===I.endpointDiscoveryId?y[I.isLocationName?I.name:x]=String(d[x]):r(y,d[x],I)})}function i(y,d){var m={};return r(m,y.params,d),m}function s(y){var d=y.service,m=d.api,x=m.operations?m.operations[y.operation]:void 0,L=i(y,x?x.input:void 0),R=t(y);Object.keys(L).length>0&&(R=g.update(R,L),x&&(R.operation=x.name));var _=a.endpointCache.get(R);if(!_||1!==_.length||""!==_[0].Address)if(_&&_.length>0)y.httpRequest.updateEndpoint(_[0].Address);else{var O=d.makeRequest(m.endpointOperation,{Operation:x.name,Identifiers:L});o(O),O.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),O.removeListener("retry",a.EventListeners.Core.RETRY_CHECK),a.endpointCache.put(R,[{Address:"",CachePeriodInMinutes:1}]),O.send(function(h,A){A&&A.Endpoints?a.endpointCache.put(R,A.Endpoints):h&&a.endpointCache.put(R,[{Address:"",CachePeriodInMinutes:1}])})}}var e={};function n(y,d){var m=y.service,x=m.api,I=x.operations?x.operations[y.operation]:void 0,R=i(y,I?I.input:void 0),_=t(y);Object.keys(R).length>0&&(_=g.update(_,R),I&&(_.operation=I.name));var O=a.EndpointCache.getKeyString(_),h=a.endpointCache.get(O);if(h&&1===h.length&&""===h[0].Address)return e[O]||(e[O]=[]),void e[O].push({request:y,callback:d});if(h&&h.length>0)y.httpRequest.updateEndpoint(h[0].Address),d();else{var A=m.makeRequest(x.endpointOperation,{Operation:I.name,Identifiers:R});A.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),o(A),a.endpointCache.put(O,[{Address:"",CachePeriodInMinutes:60}]),A.send(function(v,C){v?(y.response.error=g.error(v,{retryable:!1}),a.endpointCache.remove(_),e[O]&&(g.arrayEach(e[O],function(N){N.request.response.error=g.error(v,{retryable:!1}),N.callback()}),delete e[O])):C&&(a.endpointCache.put(O,C.Endpoints),y.httpRequest.updateEndpoint(C.Endpoints[0].Address),e[O])&&(g.arrayEach(e[O],function(j){j.request.httpRequest.updateEndpoint(C.Endpoints[0].Address),j.callback()}),delete e[O]),d()})}}function o(y){var m=y.service.api.apiVersion;m&&!y.httpRequest.headers["x-amz-api-version"]&&(y.httpRequest.headers["x-amz-api-version"]=m)}function u(y){var d=y.error;if(d&&("InvalidEndpointException"===d.code||421===y.httpResponse.statusCode)){var x=y.request,I=x.service.api.operations||{},R=i(x,I[x.operation]?I[x.operation].input:void 0),_=t(x);Object.keys(R).length>0&&(_=g.update(_,R),I[x.operation]&&(_.operation=I[x.operation].name)),a.endpointCache.remove(_)}}function f(y){return["false","0"].indexOf(y)>=0}W.exports={discoverEndpoint:function b(y,d){var m=y.service||{};if(function p(y){if(y._originalConfig&&y._originalConfig.endpoint&&!0===y._originalConfig.endpointDiscoveryEnabled)throw g.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return!!(a.config.endpoint||(a.config[y.serviceIdentifier]||{}).endpoint||y._originalConfig&&y._originalConfig.endpoint)}(m)||y.isPresigned())return d();var I=(m.api.operations||{})[y.operation],L=I?I.endpointDiscoveryRequired:"NULL",R=function E(y){var d=y.service||{};if(void 0!==d.config.endpointDiscoveryEnabled)return d.config.endpointDiscoveryEnabled;if(!g.isBrowser()){for(var m=0;m<l.length;m++){var x=l[m];if(Object.prototype.hasOwnProperty.call(process.env,x)){if(""===process.env[x]||void 0===process.env[x])throw g.error(new Error,{code:"ConfigurationException",message:"environmental variable "+x+" cannot be set to nothing"});return!f(process.env[x])}}var I={};try{I=a.util.iniLoader?a.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[a.util.sharedConfigFileEnv]}):{}}catch{}var L=I[process.env.AWS_PROFILE||a.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(L,"endpoint_discovery_enabled")){if(void 0===L.endpoint_discovery_enabled)throw g.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!f(L.endpoint_discovery_enabled)}}}(y),_=m.api.hasRequiredEndpointDiscovery;switch((R||_)&&y.httpRequest.appendToUserAgent("endpoint-discovery"),L){case"OPTIONAL":(R||_)&&(s(y),y.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",u)),d();break;case"REQUIRED":if(!1===R){y.response.error=g.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+m.api.className+"."+y.operation+"() requires it. Please check your configurations."}),d();break}y.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",u),n(y,d);break;default:d()}},requiredDiscoverEndpoint:n,optionalDiscoverEndpoint:s,marshallCustomIdentifiers:i,getCacheKey:t,invalidateCachedEndpoint:u}},92005:(W,w,c)=>{var a=c(2002).eventMessageChunker,g=c(50637).parseEvent;W.exports={createEventStream:function l(t,r,i){for(var s=a(t),e=[],n=0;n<s.length;n++)e.push(g(r,s[n],i));return e}}},2002:W=>{W.exports={eventMessageChunker:function w(c){for(var a=[],g=0;g<c.length;){var l=c.readInt32BE(g),t=c.slice(g,l+g);g+=l,a.push(t)}return a}}},14744:(W,w,c)=>{var a=c(78588).util,g=a.buffer.toBuffer;function l(r){if(8!==r.length)throw new Error("Int64 buffers must be exactly 8 bytes");a.Buffer.isBuffer(r)||(r=g(r)),this.bytes=r}function t(r){for(var i=0;i<8;i++)r[i]^=255;for(i=7;i>-1&&(r[i]++,0===r[i]);i--);}l.fromNumber=function(r){if(r>0x8000000000000000||r<-0x8000000000000000)throw new Error(r+" is too large (or, if negative, too small) to represent as an Int64");for(var i=new Uint8Array(8),s=7,e=Math.abs(Math.round(r));s>-1&&e>0;s--,e/=256)i[s]=e;return r<0&&t(i),new l(i)},l.prototype.valueOf=function(){var r=this.bytes.slice(0),i=128&r[0];return i&&t(r),parseInt(r.toString("hex"),16)*(i?-1:1)},l.prototype.toString=function(){return String(this.valueOf())},W.exports={Int64:l}},50637:(W,w,c)=>{var a=c(3878).parseMessage;W.exports={parseEvent:function g(t,r,i){var s=a(r),e=s.headers[":message-type"];if(e){if("error"===e.value)throw function l(t){var r=t.headers[":error-code"],i=t.headers[":error-message"],s=new Error(i.value||i);return s.code=s.name=r.value||r,s}(s);if("event"!==e.value)return}var n=s.headers[":event-type"],o=i.members[n.value];if(o){var u={},p=o.eventPayloadMemberName;if(p){var f=o.members[p];u[p]="binary"===f.type?s.body:t.parse(s.body.toString(),f)}for(var E=o.eventHeaderMemberNames,b=0;b<E.length;b++){var y=E[b];s.headers[y]&&(u[y]=o.members[y].toType(s.headers[y].value))}var d={};return d[n.value]=u,d}}}},3878:(W,w,c)=>{var a=c(14744).Int64,g=c(36361).splitMessage,l="boolean";function p(E){for(var b={},y=0;y<E.length;){var d=E.readUInt8(y++),m=E.slice(y,y+d).toString();switch(y+=d,E.readUInt8(y++)){case 0:b[m]={type:l,value:!0};break;case 1:b[m]={type:l,value:!1};break;case 2:b[m]={type:"byte",value:E.readInt8(y++)};break;case 3:b[m]={type:"short",value:E.readInt16BE(y)},y+=2;break;case 4:b[m]={type:"integer",value:E.readInt32BE(y)},y+=4;break;case 5:b[m]={type:"long",value:new a(E.slice(y,y+8))},y+=8;break;case 6:var x=E.readUInt16BE(y);b[m]={type:"binary",value:E.slice(y+=2,y+x)},y+=x;break;case 7:var I=E.readUInt16BE(y);b[m]={type:"string",value:E.slice(y+=2,y+I).toString()},y+=I;break;case 8:b[m]={type:"timestamp",value:new Date(new a(E.slice(y,y+8)).valueOf())},y+=8;break;case 9:var L=E.slice(y,y+16).toString("hex");y+=16,b[m]={type:"uuid",value:L.substr(0,8)+"-"+L.substr(8,4)+"-"+L.substr(12,4)+"-"+L.substr(16,4)+"-"+L.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return b}W.exports={parseMessage:function f(E){var b=g(E);return{headers:p(b.headers),body:b.body}}}},36361:(W,w,c)=>{var a=c(78588).util,g=a.buffer.toBuffer;W.exports={splitMessage:function s(e){if(a.Buffer.isBuffer(e)||(e=g(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 n=e.readUInt32BE(8);if(n!==a.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+n+") does not match the calculated CRC32 checksum.");var o=e.readUInt32BE(e.length-4);if(o!==a.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+o);var p=12+e.readUInt32BE(4);return{headers:e.slice(12,p),body:e.slice(p,e.length-4)}}}},11025:(W,w,c)=>{var a=c(78588),g=c(30658),l=c(89082).discoverEndpoint;a.EventListeners={Core:{}},a.EventListeners={Core:(new g).addNamedListeners(function(r,i){i("VALIDATE_CREDENTIALS","validate",function(n,o){if(!n.service.api.signatureVersion&&!n.service.config.signatureVersion)return o();n.service.config.getCredentials(function(u){u&&(n.response.error=a.util.error(u,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),o()})}),r("VALIDATE_REGION","validate",function(n){if(!n.service.isGlobalEndpoint){var o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);n.service.config.region?o.test(n.service.config.region)||(n.response.error=a.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):n.response.error=a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),r("BUILD_IDEMPOTENCY_TOKENS","validate",function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation];if(o){var u=o.idempotentMembers;if(u.length){for(var p=a.util.copy(n.params),f=0,E=u.length;f<E;f++)p[u[f]]||(p[u[f]]=a.util.uuid.v4());n.params=p}}}}),r("VALIDATE_PARAMETERS","validate",function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation].input;new a.ParamValidator(n.service.config.paramValidation).validate(o,n.params)}}),r("COMPUTE_CHECKSUM","afterBuild",function(n){if(n.service.api.operations){var o=n.service.api.operations[n.operation];if(o){var u=n.httpRequest.body,p=u&&(a.util.Buffer.isBuffer(u)||"string"==typeof u),f=n.httpRequest.headers;if(o.httpChecksumRequired&&n.service.config.computeChecksums&&p&&!f["Content-MD5"]){var E=a.util.crypto.md5(u,"base64");f["Content-MD5"]=E}}}}),i("COMPUTE_SHA256","afterBuild",function(n,o){if(n.haltHandlersOnError(),n.service.api.operations){var u=n.service.api.operations[n.operation],p=u?u.authtype:"";if(!n.service.api.signatureVersion&&!p&&!n.service.config.signatureVersion)return o();if(n.service.getSignerClass(n)===a.Signers.V4){var f=n.httpRequest.body||"";if(p.indexOf("unsigned-body")>=0)return n.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",o();a.util.computeSha256(f,function(E,b){E?o(E):(n.httpRequest.headers["X-Amz-Content-Sha256"]=b,o())})}else o()}}),r("SET_CONTENT_LENGTH","afterBuild",function(n){var o=function t(r){if(!r.service.api.operations)return"";var i=r.service.api.operations[r.operation];return i?i.authtype:""}(n),u=a.util.getRequestPayloadShape(n);if(void 0===n.httpRequest.headers["Content-Length"])try{var p=a.util.string.byteLength(n.httpRequest.body);n.httpRequest.headers["Content-Length"]=p}catch(f){if(u&&u.isStreaming){if(u.requiresLength)throw f;if(o.indexOf("unsigned-body")>=0)return void(n.httpRequest.headers["Transfer-Encoding"]="chunked");throw f}throw f}}),r("SET_HTTP_HOST","afterBuild",function(n){n.httpRequest.headers.Host=n.httpRequest.endpoint.host}),r("SET_TRACE_ID","afterBuild",function(n){var o="X-Amzn-Trace-Id";if(a.util.isNode()&&!Object.hasOwnProperty.call(n.httpRequest.headers,o)){var f=process.env.AWS_LAMBDA_FUNCTION_NAME,E=process.env._X_AMZN_TRACE_ID;"string"==typeof f&&f.length>0&&"string"==typeof E&&E.length>0&&(n.httpRequest.headers[o]=E)}}),r("RESTART","restart",function(){var n=this.response.error;!n||!n.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)}),i("DISCOVER_ENDPOINT","sign",l,!0),i("SIGN","sign",function(n,o){var u=n.service,f=(n.service.api.operations||{})[n.operation];if(!(u.api.signatureVersion||f&&f.authtype||u.config.signatureVersion))return o();u.config.getCredentials(function(b,y){if(b)return n.response.error=b,o();try{var d=u.getSkewCorrectedDate(),x=new(u.getSignerClass(n))(n.httpRequest,u.getSigningName(n),{signatureCache:u.config.signatureCache,operation:f,signatureVersion:u.api.signatureVersion});x.setServiceClientId(u._clientId),delete n.httpRequest.headers.Authorization,delete n.httpRequest.headers.Date,delete n.httpRequest.headers["X-Amz-Date"],x.addAuthorization(y,d),n.signedAt=d}catch(I){n.response.error=I}o()})}),r("VALIDATE_RESPONSE","validateResponse",function(n){this.service.successfulResponse(n,this)?(n.data={},n.error=null):(n.data=null,n.error=a.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),r("ERROR","error",function(n,o){var u=o.request.service.api.errorCodeMapping;if(u&&n&&n.code){var p=u[n.code];p&&(o.error.code=p.code)}},!0),i("SEND","send",function(n,o){function u(y){n.httpResponse.stream=y;var d=n.request.httpRequest.stream,m=n.request.service,L=m.api.operations[n.request.operation]||{};y.on("headers",function(_,O,h){if(n.request.emit("httpHeaders",[_,O,n,h]),!n.httpResponse.streaming)if(2===a.HttpClient.streamsApiVersion){if(L.hasEventOutput&&m.successfulResponse(n))return n.request.emit("httpDone"),void o();y.on("readable",function(){var v=y.read();null!==v&&n.request.emit("httpData",[v,n])})}else y.on("data",function(v){n.request.emit("httpData",[v,n])})}),y.on("end",function(){if(!d||!d.didCallback){if(2===a.HttpClient.streamsApiVersion&&L.hasEventOutput&&m.successfulResponse(n))return;n.request.emit("httpDone"),o()}})}function f(y){"RequestAbortedError"!==y.code&&(y=a.util.error(y,{code:"TimeoutError"===y.code?y.code:"NetworkingError",region:n.request.httpRequest.region,hostname:n.request.httpRequest.endpoint.hostname,retryable:!0})),n.error=y,n.request.emit("httpError",[n.error,n],function(){o()})}function E(){var y=a.HttpClient.getInstance(),d=n.request.service.config.httpOptions||{};try{!function p(y){y.on("sendProgress",function(m){n.request.emit("httpUploadProgress",[m,n])}),y.on("receiveProgress",function(m){n.request.emit("httpDownloadProgress",[m,n])})}(y.handleRequest(n.request.httpRequest,d,u,f))}catch(x){f(x)}}n.httpResponse._abortCallback=o,n.error=null,n.data=null,(n.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(y){y?o(y):E()}):E()}),r("HTTP_HEADERS","httpHeaders",function(n,o,u,p){u.httpResponse.statusCode=n,u.httpResponse.statusMessage=p,u.httpResponse.headers=o,u.httpResponse.body=a.util.buffer.toBuffer(""),u.httpResponse.buffers=[],u.httpResponse.numBytes=0;var f=o.date||o.Date,E=u.request.service;if(f){var b=Date.parse(f);E.config.correctClockSkew&&E.isClockSkewed(b)&&E.applyClockOffset(b)}}),r("HTTP_DATA","httpData",function(n,o){n&&(a.util.isNode()&&(o.httpResponse.numBytes+=n.length,o.request.emit("httpDownloadProgress",[{loaded:o.httpResponse.numBytes,total:o.httpResponse.headers["content-length"]},o])),o.httpResponse.buffers.push(a.util.buffer.toBuffer(n)))}),r("HTTP_DONE","httpDone",function(n){if(n.httpResponse.buffers&&n.httpResponse.buffers.length>0){var o=a.util.buffer.concat(n.httpResponse.buffers);n.httpResponse.body=o}delete n.httpResponse.numBytes,delete n.httpResponse.buffers}),r("FINALIZE_ERROR","retry",function(n){n.httpResponse.statusCode&&(n.error.statusCode=n.httpResponse.statusCode,void 0===n.error.retryable&&(n.error.retryable=this.service.retryableError(n.error,this)))}),r("INVALIDATE_CREDENTIALS","retry",function(n){if(n.error)switch(n.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":n.error.retryable=!0,n.request.service.config.credentials.expired=!0}}),r("EXPIRED_SIGNATURE","retry",function(n){var o=n.error;o&&"string"==typeof o.code&&"string"==typeof o.message&&o.code.match(/Signature/)&&o.message.match(/expired/)&&(n.error.retryable=!0)}),r("CLOCK_SKEWED","retry",function(n){n.error&&this.service.clockSkewError(n.error)&&this.service.config.correctClockSkew&&(n.error.retryable=!0)}),r("REDIRECT","retry",function(n){n.error&&n.error.statusCode>=300&&n.error.statusCode<400&&n.httpResponse.headers.location&&(this.httpRequest.endpoint=new a.Endpoint(n.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,n.error.redirect=!0,n.error.retryable=!0)}),r("RETRY_CHECK","retry",function(n){n.error&&(n.error.redirect&&n.redirectCount<n.maxRedirects?n.error.retryDelay=0:n.retryCount<n.maxRetries&&(n.error.retryDelay=this.service.retryDelays(n.retryCount,n.error)||0))}),i("RESET_RETRY_STATE","afterRetry",function(n,o){var u,p=!1;n.error&&(u=n.error.retryDelay||0,n.error.retryable&&n.retryCount<n.maxRetries?(n.retryCount++,p=!0):n.error.redirect&&n.redirectCount<n.maxRedirects&&(n.redirectCount++,p=!0)),p&&u>=0?(n.error=null,setTimeout(o,u)):o()})}),CorePost:(new g).addNamedListeners(function(r){r("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),r("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),r("ENOTFOUND_ERROR","httpError",function(s){"NetworkingError"===s.code&&function e(o){return"ENOTFOUND"===o.errno||"number"==typeof o.errno&&"function"==typeof a.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(a.util.getSystemErrorName(o.errno)>=0)}(s)&&(this.response.error=a.util.error(new Error("Inaccessible host: `"+s.hostname+"' at port `"+s.port+"'. This service may not be available in the `"+s.region+"' region."),{code:"UnknownEndpoint",region:s.region,hostname:s.hostname,retryable:!0,originalError:s}))})}),Logger:(new g).addNamedListeners(function(r){r("LOG_REQUEST","complete",function(s){var e=s.request,n=e.service.config.logger;if(n){var p=function u(){var E=(s.request.service.getSkewCorrectedDate().getTime()-e.startTime.getTime())/1e3,b=!!n.isTTY,y=s.httpResponse.statusCode,d=e.params;e.service.api.operations&&e.service.api.operations[e.operation]&&e.service.api.operations[e.operation].input&&(d=o(e.service.api.operations[e.operation].input,e.params));var x=c(56180).inspect(d,!0,null),I="";return b&&(I+="\x1b[33m"),I+="[AWS "+e.service.serviceIdentifier+" "+y,I+=" "+E.toString()+"s "+s.retryCount+" retries]",b&&(I+="\x1b[0;1m"),I+=" "+a.util.string.lowerFirst(e.operation),I+="("+x+")",b&&(I+="\x1b[0m"),I}();"function"==typeof n.log?n.log(p):"function"==typeof n.write&&n.write(p+"\n")}function o(f,E){if(!E)return E;if(f.isSensitive)return"***SensitiveInformation***";switch(f.type){case"structure":var b={};return a.util.each(E,function(m,x){b[m]=Object.prototype.hasOwnProperty.call(f.members,m)?o(f.members[m],x):x}),b;case"list":var y=[];return a.util.arrayEach(E,function(m,x){y.push(o(f.member,m))}),y;case"map":var d={};return a.util.each(E,function(m,x){d[m]=o(f.value,x)}),d;default:return E}}})}),Json:(new g).addNamedListeners(function(r){var i=c(86308);r("BUILD","build",i.buildRequest),r("EXTRACT_DATA","extractData",i.extractData),r("EXTRACT_ERROR","extractError",i.extractError)}),Rest:(new g).addNamedListeners(function(r){var i=c(82624);r("BUILD","build",i.buildRequest),r("EXTRACT_DATA","extractData",i.extractData),r("EXTRACT_ERROR","extractError",i.extractError)}),RestJson:(new g).addNamedListeners(function(r){var i=c(85161);r("BUILD","build",i.buildRequest),r("EXTRACT_DATA","extractData",i.extractData),r("EXTRACT_ERROR","extractError",i.extractError)}),RestXml:(new g).addNamedListeners(function(r){var i=c(3494);r("BUILD","build",i.buildRequest),r("EXTRACT_DATA","extractData",i.extractData),r("EXTRACT_ERROR","extractError",i.extractError)}),Query:(new g).addNamedListeners(function(r){var i=c(21188);r("BUILD","build",i.buildRequest),r("EXTRACT_DATA","extractData",i.extractData),r("EXTRACT_ERROR","extractError",i.extractError)})}},10895:(W,w,c)=>{var a=c(78588),g=a.util.inherit;a.Endpoint=g({constructor:function(t,r){if(a.util.hideProperties(this,["slashes","auth","hash","search","query"]),typeof t>"u"||null===t)throw new Error("Invalid endpoint: "+t);if("string"!=typeof t)return a.util.copy(t);t.match(/^http/)||(t=((r&&void 0!==r.sslEnabled?r.sslEnabled:a.config.sslEnabled)?"https":"http")+"://"+t),a.util.update(this,a.util.urlParse(t)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),a.HttpRequest=g({constructor:function(t,r){t=new a.Endpoint(t),this.method="POST",this.path=t.path||"/",this.headers={},this.body="",this.endpoint=t,this.region=r,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(t){"string"==typeof t&&t&&(this._userAgent+=" "+t),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var t=this.path.split("?",2)[1];return t?(t=a.util.queryStringParse(t),a.util.queryParamsToString(t)):""},updateEndpoint:function(t){var r=new a.Endpoint(t);this.endpoint=r,this.path=r.path||"/",this.headers.Host&&(this.headers.Host=r.host)}}),a.HttpResponse=g({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=g({}),a.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},94110:(W,w,c)=>{var a=c(78588),g=c(97612).EventEmitter;c(10895),a.XHRClient=a.util.inherit({handleRequest:function(t,r,i,s){var e=this,n=t.endpoint,o=new g,u=n.protocol+"//"+n.hostname;80!==n.port&&443!==n.port&&(u+=":"+n.port),u+=t.path;var p=new XMLHttpRequest,f=!1;t.stream=p,p.addEventListener("readystatechange",function(){try{if(0===p.status)return}catch{return}this.readyState>=this.HEADERS_RECEIVED&&!f&&(o.statusCode=p.status,o.headers=e.parseHeaders(p.getAllResponseHeaders()),o.emit("headers",o.statusCode,o.headers,p.statusText),f=!0),this.readyState===this.DONE&&e.finishRequest(p,o)},!1),p.upload.addEventListener("progress",function(E){o.emit("sendProgress",E)}),p.addEventListener("progress",function(E){o.emit("receiveProgress",E)},!1),p.addEventListener("timeout",function(){s(a.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),p.addEventListener("error",function(){s(a.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),p.addEventListener("abort",function(){s(a.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),i(o),p.open(t.method,u,!1!==r.xhrAsync),a.util.each(t.headers,function(E,b){"Content-Length"!==E&&"User-Agent"!==E&&"Host"!==E&&p.setRequestHeader(E,b)}),r.timeout&&!1!==r.xhrAsync&&(p.timeout=r.timeout),r.xhrWithCredentials&&(p.withCredentials=!0);try{p.responseType="arraybuffer"}catch{}try{t.body?p.send(t.body):p.send()}catch(E){if(!t.body||"object"!=typeof t.body.buffer)throw E;p.send(t.body.buffer)}return o},parseHeaders:function(t){var r={};return a.util.arrayEach(t.split(/\r?\n/),function(i){var s=i.split(":",1)[0],e=i.substring(s.length+2);s.length>0&&(r[s.toLowerCase()]=e)}),r},finishRequest:function(t,r){var i;if("arraybuffer"===t.responseType&&t.response){var s=t.response;i=new a.util.Buffer(s.byteLength);for(var e=new Uint8Array(s),n=0;n<i.length;++n)i[n]=e[n]}try{!i&&"string"==typeof t.responseText&&(i=new a.util.Buffer(t.responseText))}catch{}i&&r.emit("data",i),r.emit("end")}}),a.HttpClient.prototype=a.XHRClient.prototype,a.HttpClient.streamsApiVersion=1},41009:(W,w,c)=>{var a=c(67355);function g(){}function l(e,n){if(n&&null!=e)switch(n.type){case"structure":return function t(e,n){if(n.isDocument)return e;var o={};return a.each(e,function(u,p){var f=n.members[u];if(f){if("body"!==f.location)return;var E=f.isLocationName?f.name:u,b=l(p,f);void 0!==b&&(o[E]=b)}}),o}(e,n);case"map":return function i(e,n){var o={};return a.each(e,function(u,p){var f=l(p,n.value);void 0!==f&&(o[u]=f)}),o}(e,n);case"list":return function r(e,n){var o=[];return a.arrayEach(e,function(u){var p=l(u,n.member);void 0!==p&&o.push(p)}),o}(e,n);default:return function s(e,n){return n.toWireFormat(e)}(e,n)}}g.prototype.build=function(e,n){return JSON.stringify(l(e,n))},W.exports=g},48415:(W,w,c)=>{var a=c(67355);function g(){}function l(e,n){if(n&&void 0!==e)switch(n.type){case"structure":return function t(e,n){if(null!=e){if(n.isDocument)return e;var o={};return a.each(n.members,function(p,f){var E=f.isLocationName?f.name:p;if(Object.prototype.hasOwnProperty.call(e,E)){var y=l(e[E],f);void 0!==y&&(o[p]=y)}}),o}}(e,n);case"map":return function i(e,n){if(null!=e){var o={};return a.each(e,function(u,p){var f=l(p,n.value);o[u]=void 0===f?null:f}),o}}(e,n);case"list":return function r(e,n){if(null!=e){var o=[];return a.arrayEach(e,function(u){var p=l(u,n.member);o.push(void 0===p?null:p)}),o}}(e,n);default:return function s(e,n){return n.toType(e)}(e,n)}}g.prototype.parse=function(e,n){return l(JSON.parse(e),n)},W.exports=g},20781:(W,w,c)=>{var a=c(50385),g=c(16032),l=c(31800),t=c(65937),r=c(6646),i=c(73459),s=c(67355),e=s.property,n=s.memoizedProperty;W.exports=function o(u,p){var f=this;u=u||{},(p=p||{}).api=this,u.metadata=u.metadata||{};var E=p.serviceIdentifier;delete p.serviceIdentifier,e(this,"isApi",!0,!1),e(this,"apiVersion",u.metadata.apiVersion),e(this,"endpointPrefix",u.metadata.endpointPrefix),e(this,"signingName",u.metadata.signingName),e(this,"globalEndpoint",u.metadata.globalEndpoint),e(this,"signatureVersion",u.metadata.signatureVersion),e(this,"jsonVersion",u.metadata.jsonVersion),e(this,"targetPrefix",u.metadata.targetPrefix),e(this,"protocol",u.metadata.protocol),e(this,"timestampFormat",u.metadata.timestampFormat),e(this,"xmlNamespaceUri",u.metadata.xmlNamespace),e(this,"abbreviation",u.metadata.serviceAbbreviation),e(this,"fullName",u.metadata.serviceFullName),e(this,"serviceId",u.metadata.serviceId),E&&i[E]&&e(this,"xmlNoDefaultLists",i[E].xmlNoDefaultLists,!1),n(this,"className",function(){var y=u.metadata.serviceAbbreviation||u.metadata.serviceFullName;return y?("ElasticLoadBalancing"===(y=y.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(y="ELB"),y):null}),e(this,"operations",new a(u.operations,p,function(y,d){return new g(y,d,p)},s.string.lowerFirst,function b(y,d){!0===d.endpointoperation&&e(f,"endpointOperation",s.string.lowerFirst(y)),d.endpointdiscovery&&!f.hasRequiredEndpointDiscovery&&e(f,"hasRequiredEndpointDiscovery",!0===d.endpointdiscovery.required)})),e(this,"shapes",new a(u.shapes,p,function(y,d){return l.create(d,p)})),e(this,"paginators",new a(u.paginators,p,function(y,d){return new t(y,d,p)})),e(this,"waiters",new a(u.waiters,p,function(y,d){return new r(y,d,p)},s.string.lowerFirst)),p.documentation&&(e(this,"documentation",u.documentation),e(this,"documentationUrl",u.documentationUrl)),e(this,"errorCodeMapping",u.awsQueryCompatible)}},50385:(W,w,c)=>{var a=c(67355).memoizedProperty;function g(t,r,i,s){a(this,s(t),function(){return i(t,r)})}W.exports=function l(t,r,i,s,e){for(var o in s=s||String,t)Object.prototype.hasOwnProperty.call(t,o)&&(g.call(this,o,t[o],i,s),e&&e(o,t[o]))}},16032:(W,w,c)=>{var a=c(31800),g=c(67355),l=g.property,t=g.memoizedProperty;W.exports=function r(s,e,n){var o=this;n=n||{},l(this,"name",e.name||s),l(this,"api",n.api,!1),e.http=e.http||{},l(this,"endpoint",e.endpoint),l(this,"httpMethod",e.http.method||"POST"),l(this,"httpPath",e.http.requestUri||"/"),l(this,"authtype",e.authtype||""),l(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),l(this,"httpChecksumRequired",e.httpChecksumRequired||e.httpChecksum&&e.httpChecksum.requestChecksumRequired,!1),t(this,"input",function(){return e.input?a.create(e.input,n):new a.create({type:"structure"},n)}),t(this,"output",function(){return e.output?a.create(e.output,n):new a.create({type:"structure"},n)}),t(this,"errors",function(){var p=[];if(!e.errors)return null;for(var f=0;f<e.errors.length;f++)p.push(a.create(e.errors[f],n));return p}),t(this,"paginator",function(){return n.api.paginators[s]}),n.documentation&&(l(this,"documentation",e.documentation),l(this,"documentationUrl",e.documentationUrl)),t(this,"idempotentMembers",function(){var p=[],f=o.input,E=f.members;if(!f.members)return p;for(var b in E)E.hasOwnProperty(b)&&!0===E[b].isIdempotent&&p.push(b);return p}),t(this,"hasEventOutput",function(){return function i(s){var e=s.members,n=s.payload;if(!s.members)return!1;if(n)return e[n].isEventStream;for(var u in e)if(!e.hasOwnProperty(u)&&!0===e[u].isEventStream)return!0;return!1}(o.output)})}},65937:(W,w,c)=>{var a=c(67355).property;W.exports=function g(l,t){a(this,"inputToken",t.input_token),a(this,"limitKey",t.limit_key),a(this,"moreResults",t.more_results),a(this,"outputToken",t.output_token),a(this,"resultKey",t.result_key)}},6646:(W,w,c)=>{var a=c(67355),g=a.property;W.exports=function l(t,r,i){i=i||{},g(this,"name",t),g(this,"api",i.api,!1),r.operation&&g(this,"operation",a.string.lowerFirst(r.operation));var s=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(n){var o=r[n];o&&g(s,n,o)})}},31800:(W,w,c)=>{var a=c(50385),g=c(67355);function l(d,m,x){null!=x&&g.property.apply(this,arguments)}function t(d,m){d.constructor.prototype[m]||g.memoizedProperty.apply(this,arguments)}function r(d,m,x){m=m||{},l(this,"shape",d.shape),l(this,"api",m.api,!1),l(this,"type",d.type),l(this,"enum",d.enum),l(this,"min",d.min),l(this,"max",d.max),l(this,"pattern",d.pattern),l(this,"location",d.location||this.location||"body"),l(this,"name",this.name||d.xmlName||d.queryName||d.locationName||x),l(this,"isStreaming",d.streaming||this.isStreaming||!1),l(this,"requiresLength",d.requiresLength,!1),l(this,"isComposite",d.isComposite||!1),l(this,"isShape",!0,!1),l(this,"isQueryName",!!d.queryName,!1),l(this,"isLocationName",!!d.locationName,!1),l(this,"isIdempotent",!0===d.idempotencyToken),l(this,"isJsonValue",!0===d.jsonvalue),l(this,"isSensitive",!0===d.sensitive||d.prototype&&!0===d.prototype.sensitive),l(this,"isEventStream",!!d.eventstream,!1),l(this,"isEvent",!!d.event,!1),l(this,"isEventPayload",!!d.eventpayload,!1),l(this,"isEventHeader",!!d.eventheader,!1),l(this,"isTimestampFormatSet",!!d.timestampFormat||d.prototype&&!0===d.prototype.isTimestampFormatSet,!1),l(this,"endpointDiscoveryId",!!d.endpointdiscoveryid,!1),l(this,"hostLabel",!!d.hostLabel,!1),m.documentation&&(l(this,"documentation",d.documentation),l(this,"documentationUrl",d.documentationUrl)),d.xmlAttribute&&l(this,"isXmlAttribute",d.xmlAttribute||!1),l(this,"defaultValue",null),this.toWireFormat=function(I){return I??""},this.toType=function(I){return I}}function i(d){r.apply(this,arguments),l(this,"isComposite",!0),d.flattened&&l(this,"flattened",d.flattened||!1)}function s(d,m){var x=this,I=null,L=!this.isShape;i.apply(this,arguments),L&&(l(this,"defaultValue",function(){return{}}),l(this,"members",{}),l(this,"memberNames",[]),l(this,"required",[]),l(this,"isRequired",function(){return!1}),l(this,"isDocument",!!d.document)),d.members&&(l(this,"members",new a(d.members,m,function(R,_){return r.create(_,m,R)})),t(this,"memberNames",function(){return d.xmlOrder||Object.keys(d.members)}),d.event&&(t(this,"eventPayloadMemberName",function(){for(var R=x.members,_=x.memberNames,O=0,h=_.length;O<h;O++)if(R[_[O]].isEventPayload)return _[O]}),t(this,"eventHeaderMemberNames",function(){for(var R=x.members,_=x.memberNames,O=[],h=0,A=_.length;h<A;h++)R[_[h]].isEventHeader&&O.push(_[h]);return O}))),d.required&&(l(this,"required",d.required),l(this,"isRequired",function(R){if(!I){I={};for(var _=0;_<d.required.length;_++)I[d.required[_]]=!0}return I[R]},!1,!0)),l(this,"resultWrapper",d.resultWrapper||null),d.payload&&l(this,"payload",d.payload),"string"==typeof d.xmlNamespace?l(this,"xmlNamespaceUri",d.xmlNamespace):"object"==typeof d.xmlNamespace&&(l(this,"xmlNamespacePrefix",d.xmlNamespace.prefix),l(this,"xmlNamespaceUri",d.xmlNamespace.uri))}function e(d,m){var x=this,I=!this.isShape;if(i.apply(this,arguments),I&&l(this,"defaultValue",function(){return[]}),d.member&&t(this,"member",function(){return r.create(d.member,m)}),this.flattened){var L=this.name;t(this,"name",function(){return x.member.name||L})}}function n(d,m){var x=!this.isShape;i.apply(this,arguments),x&&(l(this,"defaultValue",function(){return{}}),l(this,"key",r.create({type:"string"},m)),l(this,"value",r.create({type:"string"},m))),d.key&&t(this,"key",function(){return r.create(d.key,m)}),d.value&&t(this,"value",function(){return r.create(d.value,m)})}function u(){r.apply(this,arguments);var d=["rest-xml","query","ec2"];this.toType=function(m){return m=this.api&&d.indexOf(this.api.protocol)>-1?m||"":m,this.isJsonValue?JSON.parse(m):m&&"function"==typeof m.toString?m.toString():m},this.toWireFormat=function(m){return this.isJsonValue?JSON.stringify(m):m}}function E(){r.apply(this,arguments),this.toType=function(d){var m=g.base64.decode(d);if(this.isSensitive&&g.isNode()&&"function"==typeof g.Buffer.alloc){var x=g.Buffer.alloc(m.length,m);m.fill(0),m=x}return m},this.toWireFormat=g.base64.encode}function b(){E.apply(this,arguments)}function y(){r.apply(this,arguments),this.toType=function(d){return"boolean"==typeof d?d:null==d?null:"true"===d}}r.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},r.types={structure:s,list:e,map:n,boolean:y,timestamp:function o(d){var m=this;if(r.apply(this,arguments),d.timestampFormat)l(this,"timestampFormat",d.timestampFormat);else if(m.isTimestampFormatSet&&this.timestampFormat)l(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)l(this,"timestampFormat","rfc822");else if("querystring"===this.location)l(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":l(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":l(this,"timestampFormat","iso8601")}this.toType=function(x){return null==x?null:"function"==typeof x.toUTCString?x:"string"==typeof x||"number"==typeof x?g.date.parseTimestamp(x):null},this.toWireFormat=function(x){return g.date.format(x,m.timestampFormat)}},float:function p(){r.apply(this,arguments),this.toType=function(d){return null==d?null:parseFloat(d)},this.toWireFormat=this.toType},integer:function f(){r.apply(this,arguments),this.toType=function(d){return null==d?null:parseInt(d,10)},this.toWireFormat=this.toType},string:u,base64:b,binary:E},r.resolve=function(m,x){if(m.shape){var I=x.api.shapes[m.shape];if(!I)throw new Error("Cannot find shape reference: "+m.shape);return I}return null},r.create=function(m,x,I){if(m.isShape)return m;var L=r.resolve(m,x);if(L){var R=Object.keys(m);x.documentation||(R=R.filter(function(h){return!h.match(/documentation/)}));var _=function(){L.constructor.call(this,m,x,I)};return _.prototype=L,new _}m.type||(m.type=m.members?"structure":m.member?"list":m.key?"map":"string");var O=m.type;if(r.normalizedTypes[m.type]&&(m.type=r.normalizedTypes[m.type]),r.types[m.type])return new r.types[m.type](m,x,I);throw new Error("Unrecognized shape type: "+O)},r.shapes={StructureShape:s,ListShape:e,MapShape:n,StringShape:u,BooleanShape:y,Base64Shape:b},W.exports=r},75247:(W,w,c)=>{var a=c(78588);a.ParamValidator=a.util.inherit({constructor:function(l){(!0===l||void 0===l)&&(l={min:!0}),this.validation=l},validate:function(l,t,r){if(this.errors=[],this.validateMember(l,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,a.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(l,t){this.errors.push(a.util.error(new Error(t),{code:l}))},validateStructure:function(l,t,r){if(l.isDocument)return!0;this.validateType(t,r,["object"],"structure");for(var i,s=0;l.required&&s<l.required.length;s++)null==t[i=l.required[s]]&&this.fail("MissingRequiredParameter","Missing required key '"+i+"' in "+r);for(i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var n=t[i],o=l.members[i];if(void 0!==o){var u=[r,i].join(".");this.validateMember(o,n,u)}else null!=n&&this.fail("UnexpectedParameter","Unexpected key '"+i+"' found in "+r)}return!0},validateMember:function(l,t,r){switch(l.type){case"structure":return this.validateStructure(l,t,r);case"list":return this.validateList(l,t,r);case"map":return this.validateMap(l,t,r);default:return this.validateScalar(l,t,r)}},validateList:function(l,t,r){if(this.validateType(t,r,[Array])){this.validateRange(l,t.length,r,"list member count");for(var i=0;i<t.length;i++)this.validateMember(l.member,t[i],r+"["+i+"]")}},validateMap:function(l,t,r){if(this.validateType(t,r,["object"],"map")){var i=0;for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(this.validateMember(l.key,s,r+"[key='"+s+"']"),this.validateMember(l.value,t[s],r+"['"+s+"']"),i++);this.validateRange(l,i,r,"map member count")}},validateScalar:function(l,t,r){switch(l.type){case null:case void 0:case"string":return this.validateString(l,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(l,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[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 "+l.type+" for "+r)}},validateString:function(l,t,r){var i=["string"];l.isJsonValue&&(i=i.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,i)&&(this.validateEnum(l,t,r),this.validateRange(l,t.length,r,"string length"),this.validatePattern(l,t,r),this.validateUri(l,t,r))},validateUri:function(l,t,r){"uri"===l.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(l,t,r){this.validation.pattern&&void 0!==l.pattern&&(new RegExp(l.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+l.pattern+"/ for "+r))},validateRange:function(l,t,r,i){this.validation.min&&void 0!==l.min&&t<l.min&&this.fail("MinRangeError","Expected "+i+" >= "+l.min+", but found "+t+" for "+r),this.validation.max&&void 0!==l.max&&t>l.max&&this.fail("MaxRangeError","Expected "+i+" <= "+l.max+", but found "+t+" for "+r)},validateEnum:function(l,t,r){this.validation.enum&&void 0!==l.enum&&-1===l.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+l.enum.join("|")+" for "+r)},validateType:function(l,t,r,i){if(null==l)return!1;for(var s=!1,e=0;e<r.length;e++){if("string"==typeof r[e]){if(typeof l===r[e])return!0}else if(r[e]instanceof RegExp){if((l||"").toString().match(r[e]))return!0}else{if(l instanceof r[e]||a.util.isType(l,r[e]))return!0;!i&&!s&&(r=r.slice()),r[e]=a.util.typeName(r[e])}s=!0}var n=i;n||(n=r.join(", ").replace(/,([^,]+)$/,", or$1"));var o=n.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+o+" "+n),!1},validateNumber:function(l,t,r){if(null!=t){if("string"==typeof t){var i=parseFloat(t);i.toString()===t&&(t=i)}this.validateType(t,r,["number"])&&this.validateRange(l,t,r,"numeric value")}},validatePayload:function(l,t){if(null!=l&&"string"!=typeof l&&(!l||"number"!=typeof l.byteLength)){if(a.util.isNode()){var r=a.util.stream.Stream;if(a.util.Buffer.isBuffer(l)||l instanceof r)return}else if(void 0!==typeof Blob&&l instanceof Blob)return;var i=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(l)for(var s=0;s<i.length;s++)if(a.util.isType(l,i[s])||a.util.typeName(l.constructor)===i[s])return;this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},25609:(W,w,c)=>{var a=c(67355),g=c(78588);W.exports={populateHostPrefix:function l(e){if(!e.service.config.hostPrefixEnabled)return e;var o=e.service.api.operations[e.operation];if(function t(e){var n=e.service.api,o=n.operations[e.operation],u=n.endpointOperation&&n.endpointOperation===a.string.lowerFirst(o.name);return"NULL"!==o.endpointDiscoveryRequired||!0===u}(e))return e;if(o.endpoint&&o.endpoint.hostPrefix){var p=function r(e,n,o){return a.each(o.members,function(u,p){if(!0===p.hostLabel){if("string"!=typeof n[u]||""===n[u])throw a.error(new Error,{message:"Parameter "+u+" should be a non-empty string.",code:"InvalidParameter"});var f=new RegExp("\\{"+u+"\\}","g");e=e.replace(f,n[u])}}),e}(o.endpoint.hostPrefix,e.params,o.input);(function i(e,n){e.host&&(e.host=n+e.host),e.hostname&&(e.hostname=n+e.hostname)})(e.httpRequest.endpoint,p),function s(e){var n=e.split("."),o=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;a.arrayEach(n,function(u){if(!u.length||u.length<1||u.length>63)throw a.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!o.test(u))throw g.util.error(new Error,{code:"ValidationError",message:u+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},86308:(W,w,c)=>{var a=c(67355),g=c(41009),l=c(48415),t=c(25609).populateHostPrefix;W.exports={buildRequest:function r(e){var n=e.httpRequest,o=e.service.api,u=o.targetPrefix+"."+o.operations[e.operation].name,p=o.jsonVersion||"1.0",f=o.operations[e.operation].input,E=new g;1===p&&(p="1.0"),n.body=E.build(e.params||{},f),n.headers["Content-Type"]="application/x-amz-json-"+p,n.headers["X-Amz-Target"]=u,t(e)},extractError:function i(e){var n={},o=e.httpResponse;if(n.code=o.headers["x-amzn-errortype"]||"UnknownError","string"==typeof n.code&&(n.code=n.code.split(":")[0]),o.body.length>0)try{var u=JSON.parse(o.body.toString()),p=u.__type||u.code||u.Code;p&&(n.code=p.split("#").pop()),n.message="RequestEntityTooLarge"===n.code?"Request body must be less than 1 MB":u.message||u.Message||null}catch{n.statusCode=o.statusCode,n.message=o.statusMessage}else n.statusCode=o.statusCode,n.message=o.statusCode.toString();e.error=a.error(new Error,n)},extractData:function s(e){var n=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(n);else{var u=e.request.service.api.operations[e.request.operation].output||{},p=new l;e.data=p.parse(n,u)}}}},21188:(W,w,c)=>{var a=c(78588),g=c(67355),l=c(89705),t=c(31800),r=c(25609).populateHostPrefix;W.exports={buildRequest:function i(n){var o=n.service.api.operations[n.operation],u=n.httpRequest;u.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",u.params={Version:n.service.api.apiVersion,Action:o.name},(new l).serialize(n.params,o.input,function(f,E){u.params[f]=E}),u.body=g.queryParamsToString(u.params),r(n)},extractError:function s(n){var o,u=n.httpResponse.body.toString();if(u.match("<UnknownOperationException"))o={Code:"UnknownOperation",Message:"Unknown operation "+n.request.operation};else try{o=(new a.XML.Parser).parse(u)}catch{o={Code:n.httpResponse.statusCode,Message:n.httpResponse.statusMessage}}o.requestId&&!n.requestId&&(n.requestId=o.requestId),o.Errors&&(o=o.Errors),o.Error&&(o=o.Error),n.error=g.error(new Error,o.Code?{code:o.Code,message:o.Message}:{code:n.httpResponse.statusCode,message:null})},extractData:function e(n){var o=n.request,p=o.service.api.operations[o.operation].output||{},f=p;if(f.resultWrapper){var E=t.create({type:"structure"});E.members[f.resultWrapper]=p,E.memberNames=[f.resultWrapper],g.property(p,"name",p.resultWrapper),p=E}var b=new a.XML.Parser;if(p&&p.members&&!p.members._XAMZRequestId){var y=t.create({type:"string"},{api:{protocol:"query"}},"requestId");p.members._XAMZRequestId=y}var d=b.parse(n.httpResponse.body.toString(),p);n.requestId=d._XAMZRequestId||d.requestId,d._XAMZRequestId&&delete d._XAMZRequestId,f.resultWrapper&&d[f.resultWrapper]&&(g.update(d,d[f.resultWrapper]),delete d[f.resultWrapper]),n.data=d}}},82624:(W,w,c)=>{var a=c(67355),g=c(25609).populateHostPrefix;function t(o,u,p,f){var E=[o,u].join("/");E=E.replace(/\/+/g,"/");var b={},y=!1;if(a.each(p.members,function(m,x){var I=f[m];if(null!=I)if("uri"===x.location){var L=new RegExp("\\{"+x.name+"(\\+)?\\}");E=E.replace(L,function(R,_){return(_?a.uriEscapePath:a.uriEscape)(String(I))})}else"querystring"===x.location&&(y=!0,"list"===x.type?b[x.name]=I.map(function(R){return a.uriEscape(x.member.toWireFormat(R).toString())}):"map"===x.type?a.each(I,function(R,_){b[R]=Array.isArray(_)?_.map(function(O){return a.uriEscape(String(O))}):a.uriEscape(String(_))}):b[x.name]=a.uriEscape(x.toWireFormat(I).toString()))}),y){E+=E.indexOf("?")>=0?"&":"?";var d=[];a.arrayEach(Object.keys(b).sort(),function(m){Array.isArray(b[m])||(b[m]=[b[m]]);for(var x=0;x<b[m].length;x++)d.push(a.uriEscape(String(m))+"="+b[m][x])}),E+=d.join("&")}return E}W.exports={buildRequest:function s(o){(function l(o){o.httpRequest.method=o.service.api.operations[o.operation].httpMethod})(o),function r(o){var u=o.service.api.operations[o.operation],f=t(o.httpRequest.endpoint.path,u.httpPath,u.input,o.params);o.httpRequest.path=f}(o),function i(o){a.each(o.service.api.operations[o.operation].input.members,function(p,f){var E=o.params[p];null!=E&&("headers"===f.location&&"map"===f.type?a.each(E,function(b,y){o.httpRequest.headers[f.name+b]=y}):"header"===f.location&&(E=f.toWireFormat(E).toString(),f.isJsonValue&&(E=a.base64.encode(E)),o.httpRequest.headers[f.name]=E))})}(o),g(o)},extractError:function e(){},extractData:function n(o){var u=o.request,p={},f=o.httpResponse,b=u.service.api.operations[u.operation].output,y={};a.each(f.headers,function(d,m){y[d.toLowerCase()]=m}),a.each(b.members,function(d,m){var x=(m.name||d).toLowerCase();if("headers"===m.location&&"map"===m.type){p[d]={};var L=new RegExp("^"+(m.isLocationName?m.name:"")+"(.+)","i");a.each(f.headers,function(_,O){var h=_.match(L);null!==h&&(p[d][h[1]]=O)})}else if("header"===m.location){if(void 0!==y[x]){var R=m.isJsonValue?a.base64.decode(y[x]):y[x];p[d]=m.toType(R)}}else"statusCode"===m.location&&(p[d]=parseInt(f.statusCode,10))}),o.data=p},generateURI:t}},85161:(W,w,c)=>{var a=c(67355),g=c(82624),l=c(86308),t=c(41009),r=c(48415);function s(u,p){u.httpRequest.headers["Content-Type"]||(u.httpRequest.headers["Content-Type"]=p?"binary/octet-stream":"application/json")}W.exports={buildRequest:function e(u){g.buildRequest(u),["GET","HEAD","DELETE"].indexOf(u.httpRequest.method)<0&&function i(u){var p=new t,f=u.service.api.operations[u.operation].input;if(f.payload){var E,b=f.members[f.payload];E=u.params[f.payload],"structure"===b.type?(u.httpRequest.body=p.build(E||{},b),s(u)):void 0!==E&&(u.httpRequest.body=E,("binary"===b.type||b.isStreaming)&&s(u,!0))}else u.httpRequest.body=p.build(u.params,f),s(u)}(u)},extractError:function n(u){l.extractError(u)},extractData:function o(u){g.extractData(u);var p=u.request,E=p.service.api.operations[p.operation].output||{};if(E.payload){var d=E.members[E.payload],m=u.httpResponse.body;if(d.isEventStream)b=new r,u.data[payload]=a.createEventStream(2===AWS.HttpClient.streamsApiVersion?u.httpResponse.stream:m,b,d);else if("structure"===d.type||"list"===d.type){var b=new r;u.data[E.payload]=b.parse(m,d)}else u.data[E.payload]="binary"===d.type||d.isStreaming?m:d.toType(m)}else{var x=u.data;l.extractData(u),u.data=a.merge(x,u.data)}}}},3494:(W,w,c)=>{var a=c(78588),g=c(67355),l=c(82624);W.exports={buildRequest:function r(e){l.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function t(e){var n=e.service.api.operations[e.operation].input,o=new a.XML.Builder,u=e.params,p=n.payload;if(p){var f=n.members[p];if(void 0===(u=u[p]))return;e.httpRequest.body="structure"===f.type?o.toXML(u,f,f.name,!0):u}else e.httpRequest.body=o.toXML(u,n,n.name||n.shape||g.string.upperFirst(e.operation)+"Request")}(e)},extractError:function i(e){var n;l.extractError(e);try{n=(new a.XML.Parser).parse(e.httpResponse.body.toString())}catch{n={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}n.Errors&&(n=n.Errors),n.Error&&(n=n.Error),e.error=g.error(new Error,n.Code?{code:n.Code,message:n.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function s(e){l.extractData(e);var n,o=e.request,u=e.httpResponse.body,f=o.service.api.operations[o.operation].output,b=f.payload;if(b){var y=f.members[b];y.isEventStream?(n=new a.XML.Parser,e.data[b]=g.createEventStream(2===a.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,n,y)):"structure"===y.type?(n=new a.XML.Parser,e.data[b]=n.parse(u.toString(),y)):e.data[b]="binary"===y.type||y.isStreaming?u:y.toType(u)}else if(u.length>0){var d=(n=new a.XML.Parser).parse(u.toString(),f);g.update(e.data,d)}}}},89705:(W,w,c)=>{var a=c(67355);function g(){}function l(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function t(e,n,o,u){a.each(o.members,function(p,f){var E=n[p];if(null!=E){var b=l(f);s(b=e?e+"."+b:b,E,f,u)}})}function s(e,n,o,u){null!=n&&("structure"===o.type?t(e,n,o,u):"list"===o.type?function i(e,n,o,u){var p=o.member||{};0!==n.length?a.arrayEach(n,function(f,E){var b="."+(E+1);if("ec2"===o.api.protocol)b+="";else if(o.flattened){if(p.name){var y=e.split(".");y.pop(),y.push(l(p)),e=y.join(".")}}else b="."+(p.name?p.name:"member")+b;s(e+b,f,p,u)}):u.call(this,e,null)}(e,n,o,u):"map"===o.type?function r(e,n,o,u){var p=1;a.each(n,function(f,E){var y=(o.flattened?".":".entry.")+p+++".",m=y+(o.value.name||"value");s(e+(y+(o.key.name||"key")),f,o.key,u),s(e+m,E,o.value,u)})}(e,n,o,u):u(e,o.toWireFormat(n).toString()))}g.prototype.serialize=function(e,n,o){t("",e,n,o)},W.exports=g},31550:W=>{W.exports={now:function(){return typeof performance<"u"&&"function"==typeof performance.now?performance.now():Date.now()}}},90141:W=>{W.exports={isFipsRegion:function w(g){return"string"==typeof g&&(g.startsWith("fips-")||g.endsWith("-fips"))},isGlobalRegion:function c(g){return"string"==typeof g&&["aws-global","aws-us-gov-global"].includes(g)},getRealRegion:function a(g){return["fips-aws-global","aws-fips","aws-global"].includes(g)?"us-east-1":["fips-aws-us-gov-global","aws-us-gov-global"].includes(g)?"us-gov-west-1":g.replace(/fips-(dkr-|prod-)?|-fips/,"")}}},80344:(W,w,c)=>{var a=c(67355),g=c(27512);function r(e,n){a.each(n,function(o,u){"globalEndpoint"!==o&&null==e.config[o]&&(e.config[o]=u)})}W.exports={configureEndpoint:function i(e){for(var n=function t(e){var n=e.config.region,o=function l(e){if(!e)return null;var n=e.split("-");return n.length<3?null:n.slice(0,n.length-2).join("-")+"-*"}(n),u=e.api.endpointPrefix;return[[n,u],[o,u],[n,"*"],[o,"*"],["*",u],["*","*"]].map(function(p){return p[0]&&p[1]?p.join("/"):null})}(e),o=e.config.useFipsEndpoint,u=e.config.useDualstackEndpoint,p=0;p<n.length;p++){var f=n[p];if(f){var E=o?u?g.dualstackFipsRules:g.fipsRules:u?g.dualstackRules:g.rules;if(Object.prototype.hasOwnProperty.call(E,f)){var b=E[f];return"string"==typeof b&&(b=g.patterns[b]),e.isGlobalEndpoint=!!b.globalEndpoint,b.signingRegion&&(e.signingRegion=b.signingRegion),b.signatureVersion||(b.signatureVersion="v4"),void r(e,b)}}}},getEndpointSuffix:function s(e){for(var n={"^(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"},u=Object.keys(n),p=0;p<u.length;p++){var f=RegExp(u[p]),E=n[u[p]];if(f.test(e))return E}return"amazonaws.com"}}},49394:(W,w,c)=>{var a=c(78588),g=c(22324),l=a.util.inherit,t=a.util.domain,r=c(60079),i={success:1,error:1,complete:1},e=new g;e.setupStates=function(){var n=function(o,u){var p=this;p._haltHandlersOnError=!1,p.emit(p._asm.currentState,function(f){if(f)if(function s(n){return Object.prototype.hasOwnProperty.call(i,n._asm.currentState)}(p)){if(!(t&&p.domain instanceof t.Domain))throw f;f.domainEmitter=p,f.domain=p.domain,f.domainThrown=!1,p.domain.emit("error",f)}else p.response.error=f,u(f);else u(p.response.error)})};this.addState("validate","build","error",n),this.addState("build","afterBuild","restart",n),this.addState("afterBuild","sign","restart",n),this.addState("sign","send","retry",n),this.addState("retry","afterRetry","afterRetry",n),this.addState("afterRetry","sign","error",n),this.addState("send","validateResponse","retry",n),this.addState("validateResponse","extractData","extractError",n),this.addState("extractError","extractData","retry",n),this.addState("extractData","success","retry",n),this.addState("restart","build","error",n),this.addState("success","complete","complete",n),this.addState("error","complete","complete",n),this.addState("complete",null,null,n)},e.setupStates(),a.Request=l({constructor:function(o,u,p){var f=o.endpoint,E=o.config.region,b=o.config.customUserAgent;o.signingRegion?E=o.signingRegion:o.isGlobalEndpoint&&(E="us-east-1"),this.domain=t&&t.active,this.service=o,this.operation=u,this.params=p||{},this.httpRequest=new a.HttpRequest(f,E),this.httpRequest.appendToUserAgent(b),this.startTime=o.getSkewCorrectedDate(),this.response=new a.Response(this),this._asm=new g(e.states,"validate"),this._haltHandlersOnError=!1,a.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(o){return o&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(u){o.call(u,u.error,u.data)})),this.runTo(),this.response},build:function(o){return this.runTo("send",o)},runTo:function(o,u){return this._asm.runTo(o,u,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(u){u.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(o){o=a.util.fn.makeAsync(o,3),this.on("complete",function u(p){o.call(p,p.error,p.data,function(f){!1!==f&&(p.hasNextPage()?p.nextPage().on("complete",u).send():o.call(p,null,null,a.util.fn.noop))})}).send()},eachItem:function(o){var u=this;this.eachPage(function p(f,E){if(f)return o(f,null);if(null===E)return o(null,null);var y=u.service.paginationConfig(u.operation).resultKey;Array.isArray(y)&&(y=y[0]);var d=r.search(E,y),m=!0;return a.util.arrayEach(d,function(x){if(!1===(m=o(null,x)))return a.util.abort}),m})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var o=a.util.stream,u=this,p=null;return 2===a.HttpClient.streamsApiVersion?(p=new o.PassThrough,process.nextTick(function(){u.send()})):((p=new o.Stream).readable=!0,p.sent=!1,p.on("newListener",function(f){!p.sent&&"data"===f&&(p.sent=!0,process.nextTick(function(){u.send()}))})),this.on("error",function(f){p.emit("error",f)}),this.on("httpHeaders",function(E,b,y){if(E<300){u.removeListener("httpData",a.EventListeners.Core.HTTP_DATA),u.removeListener("httpError",a.EventListeners.Core.HTTP_ERROR),u.on("httpError",function(O){y.error=O,y.error.retryable=!1});var m,d=!1;if("HEAD"!==u.httpRequest.method&&(m=parseInt(b["content-length"],10)),void 0!==m&&!isNaN(m)&&m>=0){d=!0;var x=0}var I=function(){d&&x!==m?p.emit("error",a.util.error(new Error("Stream content length mismatch. Received "+x+" of "+m+" bytes."),{code:"StreamContentLengthMismatch"})):2===a.HttpClient.streamsApiVersion?p.end():p.emit("end")},L=y.httpResponse.createUnbufferedStream();if(2===a.HttpClient.streamsApiVersion)if(d){var R=new o.PassThrough;R._write=function(_){return _&&_.length&&(x+=_.length),o.PassThrough.prototype._write.apply(this,arguments)},R.on("end",I),p.on("error",function(_){d=!1,L.unpipe(R),R.emit("end"),R.end()}),L.pipe(R).pipe(p,{end:!1})}else L.pipe(p);else d&&L.on("data",function(_){_&&_.length&&(x+=_.length)}),L.on("data",function(_){p.emit("data",_)}),L.on("end",I);L.on("error",function(_){d=!1,p.emit("error",_)})}}),p},emitEvent:function(o,u,p){"function"==typeof u&&(p=u,u=null),p||(p=function(){}),u||(u=this.eventParameters(o,this.response)),a.SequentialExecutor.prototype.emit.call(this,o,u,function(E){E&&(this.response.error=E),p.call(this,E)})},eventParameters:function(o){switch(o){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(o,u){return!u&&"function"==typeof o&&(u=o,o=null),(new a.Signers.Presign).sign(this.toGet(),o,u)},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(o){o.httpRequest.method="GET",o.httpRequest.path=o.service.endpoint.path+"?"+o.httpRequest.body,o.httpRequest.body="",delete o.httpRequest.headers["Content-Length"],delete o.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),a.Request.addPromisesToClass=function(o){this.prototype.promise=function(){var p=this;return this.httpRequest.appendToUserAgent("promise"),new o(function(f,E){p.on("complete",function(b){b.error?E(b.error):f(Object.defineProperty(b.data||{},"$response",{value:b}))}),p.runTo()})}},a.Request.deletePromisesFromClass=function(){delete this.prototype.promise},a.util.addPromises(a.Request),a.util.mixin(a.Request,a.SequentialExecutor)},97496:(W,w,c)=>{var a=c(78588),g=a.util.inherit,l=c(60079);function t(r){var i=r.request._waiter,e=!1,n="retry";i.config.acceptors.forEach(function(o){if(!e){var u=i.matchers[o.matcher];u&&u(r,o.expected,o.argument)&&(e=!0,n=o.state)}}),!e&&r.error&&(n="failure"),"success"===n?i.setSuccess(r):i.setError(r,"retry"===n)}a.ResourceWaiter=g({constructor:function(i,s){this.service=i,this.state=s,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(r,i,s){try{var e=l.search(r.data,s)}catch{return!1}return l.strictDeepEqual(e,i)},pathAll:function(r,i,s){try{var e=l.search(r.data,s)}catch{return!1}Array.isArray(e)||(e=[e]);var n=e.length;if(!n)return!1;for(var o=0;o<n;o++)if(!l.strictDeepEqual(e[o],i))return!1;return!0},pathAny:function(r,i,s){try{var e=l.search(r.data,s)}catch{return!1}Array.isArray(e)||(e=[e]);for(var n=e.length,o=0;o<n;o++)if(l.strictDeepEqual(e[o],i))return!0;return!1},status:function(r,i){var s=r.httpResponse.statusCode;return"number"==typeof s&&s===i},error:function(r,i){return"string"==typeof i&&r.error?i===r.error.code:i===!!r.error}},listeners:(new a.SequentialExecutor).addNamedListeners(function(r){r("RETRY_CHECK","retry",function(i){i.error&&"ResourceNotReady"===i.error.code&&(i.error.retryDelay=1e3*(i.request._waiter.config.delay||0))}),r("CHECK_OUTPUT","extractData",t),r("CHECK_ERROR","extractError",t)}),wait:function(i,s){"function"==typeof i&&(s=i,i=void 0),i&&i.$waiter&&("number"==typeof(i=a.util.copy(i)).$waiter.delay&&(this.config.delay=i.$waiter.delay),"number"==typeof i.$waiter.maxAttempts&&(this.config.maxAttempts=i.$waiter.maxAttempts),delete i.$waiter);var e=this.service.makeRequest(this.config.operation,i);return e._waiter=this,e.response.maxRetries=this.config.maxAttempts,e.addListeners(this.listeners),s&&e.send(s),e},setSuccess:function(i){i.error=null,i.data=i.data||{},i.request.removeAllListeners("extractData")},setError:function(i,s){i.data=null,i.error=a.util.error(i.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:s})},loadWaiterConfig:function(i){if(!this.service.api.waiters[i])throw new a.util.error(new Error,{code:"StateNotFoundError",message:"State "+i+" not found."});this.config=a.util.copy(this.service.api.waiters[i])}})},12028:(W,w,c)=>{var a=c(78588),g=a.util.inherit,l=c(60079);a.Response=g({constructor:function(r){this.request=r,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new a.HttpResponse,r&&(this.maxRetries=r.service.numRetries(),this.maxRedirects=r.service.config.maxRedirects)},nextPage:function(r){var i,s=this.request.service,e=this.request.operation;try{i=s.paginationConfig(e,!0)}catch(p){this.error=p}if(!this.hasNextPage()){if(r)r(this.error,null);else if(this.error)throw this.error;return null}var n=a.util.copy(this.request.params);if(this.nextPageTokens){var o=i.inputToken;"string"==typeof o&&(o=[o]);for(var u=0;u<o.length;u++)n[o[u]]=this.nextPageTokens[u];return s.makeRequest(this.request.operation,n,r)}return r?r(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 r=this.request.service.paginationConfig(this.request.operation);if(!r)return this.nextPageTokens;if(this.nextPageTokens=null,r.moreResults&&!l.search(this.data,r.moreResults))return this.nextPageTokens;var i=r.outputToken;return"string"==typeof i&&(i=[i]),a.util.arrayEach.call(this,i,function(s){var e=l.search(this.data,s);e&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(e))}),this.nextPageTokens}})},30658:(W,w,c)=>{var a=c(78588);a.SequentialExecutor=a.util.inherit({constructor:function(){this._events={}},listeners:function(l){return this._events[l]?this._events[l].slice(0):[]},on:function(l,t,r){return this._events[l]?r?this._events[l].unshift(t):this._events[l].push(t):this._events[l]=[t],this},onAsync:function(l,t,r){return t._isAsync=!0,this.on(l,t,r)},removeListener:function(l,t){var r=this._events[l];if(r){for(var i=r.length,s=-1,e=0;e<i;++e)r[e]===t&&(s=e);s>-1&&r.splice(s,1)}return this},removeAllListeners:function(l){return l?delete this._events[l]:this._events={},this},emit:function(l,t,r){r||(r=function(){});var i=this.listeners(l),s=i.length;return this.callListeners(i,t,r),s>0},callListeners:function(l,t,r,i){var s=this,e=i||null;function n(u){if(u&&(e=a.util.error(e||new Error,u),s._haltHandlersOnError))return r.call(s,e);s.callListeners(l,t,r,e)}for(;l.length>0;){var o=l.shift();if(o._isAsync)return void o.apply(s,t.concat([n]));try{o.apply(s,t)}catch(u){e=a.util.error(e||new Error,u)}if(e&&s._haltHandlersOnError)return void r.call(s,e)}r.call(s,e)},addListeners:function(l){var t=this;return l._events&&(l=l._events),a.util.each(l,function(r,i){"function"==typeof i&&(i=[i]),a.util.arrayEach(i,function(s){t.on(r,s)})}),t},addNamedListener:function(l,t,r,i){return this[l]=r,this.addListener(t,r,i),this},addNamedAsyncListener:function(l,t,r,i){return r._isAsync=!0,this.addNamedListener(l,t,r,i)},addNamedListeners:function(l){var t=this;return l(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),a.SequentialExecutor.prototype.addListener=a.SequentialExecutor.prototype.on,W.exports=a.SequentialExecutor},53848:(W,w,c)=>{var a=c(78588),g=c(20781),l=c(80344),t=a.util.inherit,r=0,i=c(90141);a.Service=t({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 n=e.region;i.isFipsRegion(n)&&(e.region=i.getRealRegion(n),e.useFipsEndpoint=!0),i.isGlobalRegion(n)&&(e.region=i.getRealRegion(n))}"boolean"==typeof e.useDualstack&&"boolean"!=typeof e.useDualstackEndpoint&&(e.useDualstackEndpoint=e.useDualstack)}var o=this.loadServiceClass(e||{});if(o){var u=a.util.copy(e),p=new o(e);return Object.defineProperty(p,"_originalConfig",{get:function(){return u},enumerable:!1,configurable:!0}),p._clientId=++r,p}this.initialize(e)},initialize:function(e){var n=a.config[this.serviceIdentifier];if(this.config=new a.Config(a.config),n&&this.config.update(n,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||l.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 o=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(p){process.nextTick(function(){o.eventHandler(p)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(p){process.nextTick(function(){o.eventHandler(p)})})}},validateService:function(){},loadServiceClass:function(e){var n=e;if(a.util.isEmpty(this.api)){if(n.apiConfig)return a.Service.defineServiceApi(this.constructor,n.apiConfig);if(this.constructor.services){(n=new a.Config(a.config)).update(e,!0);var o=n.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(o=o||n.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 n=Object.keys(this.constructor.services).sort(),o=null,u=n.length-1;u>=0;u--)if("*"!==n[u][n[u].length-1]&&(o=n[u]),n[u].substr(0,10)<=e)return o;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,n,o){if("function"==typeof n&&(o=n,n=null),n=n||{},this.config.params){var u=this.api.operations[e];u&&(n=a.util.copy(n),a.util.each(this.config.params,function(f,E){u.input.members[f]&&null==n[f]&&(n[f]=E)}))}var p=new a.Request(this,e,n);return this.addAllRequestListeners(p),this.attachMonitoringEmitter(p),o&&p.send(o),p},makeUnauthenticatedRequest:function(e,n,o){"function"==typeof n&&(o=n,n={});var u=this.makeRequest(e,n).toUnauthenticated();return o?u.send(o):u},waitFor:function(e,n,o){return new a.ResourceWaiter(this,e).wait(n,o)},addAllRequestListeners:function(e){for(var n=[a.events,a.EventListeners.Core,this.serviceInterface(),a.EventListeners.CorePost],o=0;o<n.length;o++)n[o]&&e.addListeners(n[o]);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 n=e.service.api.operations[e.operation],o={Type:"ApiCall",Api:n?n.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},u=e.response;if(u.httpResponse.statusCode&&(o.FinalHttpStatusCode=u.httpResponse.statusCode),u.error){var p=u.error;u.httpResponse.statusCode>299?(p.code&&(o.FinalAwsException=p.code),p.message&&(o.FinalAwsExceptionMessage=p.message)):((p.code||p.name)&&(o.FinalSdkException=p.code||p.name),p.message&&(o.FinalSdkExceptionMessage=p.message))}return o},apiAttemptEvent:function(e){var n=e.service.api.operations[e.operation],o={Type:"ApiCallAttempt",Api:n?n.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},u=e.response;return u.httpResponse.statusCode&&(o.HttpStatusCode=u.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(o.AccessKey=e.service.config.credentials.accessKeyId),u.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(o.SessionToken=e.httpRequest.headers["x-amz-security-token"]),u.httpResponse.headers["x-amzn-requestid"]&&(o.XAmznRequestId=u.httpResponse.headers["x-amzn-requestid"]),u.httpResponse.headers["x-amz-request-id"]&&(o.XAmzRequestId=u.httpResponse.headers["x-amz-request-id"]),u.httpResponse.headers["x-amz-id-2"]&&(o.XAmzId2=u.httpResponse.headers["x-amz-id-2"])),o},attemptFailEvent:function(e){var n=this.apiAttemptEvent(e),o=e.response,u=o.error;return o.httpResponse.statusCode>299?(u.code&&(n.AwsException=u.code),u.message&&(n.AwsExceptionMessage=u.message)):((u.code||u.name)&&(n.SdkException=u.code||u.name),u.message&&(n.SdkExceptionMessage=u.message)),n},attachMonitoringEmitter:function(e){var n,o,u,p,E,b,f=0,y=this,d=!0;e.on("validate",function(){p=a.util.realClock.now(),b=Date.now()},d),e.on("sign",function(){o=a.util.realClock.now(),n=Date.now(),E=e.httpRequest.region,f++},d),e.on("validateResponse",function(){u=Math.round(a.util.realClock.now()-o)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var x=y.apiAttemptEvent(e);x.Timestamp=n,x.AttemptLatency=u>=0?u:0,x.Region=E,y.emit("apiCallAttempt",[x])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var x=y.attemptFailEvent(e);x.Timestamp=n,u=u||Math.round(a.util.realClock.now()-o),x.AttemptLatency=u>=0?u:0,x.Region=E,y.emit("apiCallAttempt",[x])}),e.addNamedListener("API_CALL","complete",function(){var x=y.apiCallEvent(e);if(x.AttemptCount=f,!(x.AttemptCount<=0)){x.Timestamp=b;var I=Math.round(a.util.realClock.now()-p);x.Latency=I>=0?I:0;var L=e.response;L.error&&L.error.retryable&&"number"==typeof L.retryCount&&"number"==typeof L.maxRetries&&L.retryCount>=L.maxRetries&&(x.MaxRetriesExceeded=1),y.emit("apiCall",[x])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var o=null,u="";return e&&(u=(o=(e.service.api.operations||{})[e.operation]||null)?o.authtype:""),a.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===u||"v4-unsigned-body"===u?"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,n){return a.util.calculateRetryDelay(e,this.config.retryDelayOptions,n)},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 n=e;return(n=(n=n.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,n){var o=this.api.operations[e].paginator;if(!o){if(n){var u=new Error;throw a.util.error(u,"No pagination configuration for "+e)}return null}return o}}),a.util.update(a.Service,{defineMethods:function(e){a.util.each(e.prototype.api.operations,function(o){e.prototype[o]||(e.prototype[o]="none"===e.prototype.api.operations[o].authtype?function(p,f){return this.makeUnauthenticatedRequest(o,p,f)}:function(p,f){return this.makeRequest(o,p,f)})})},defineService:function(e,n,o){a.Service._serviceMap[e]=!0,Array.isArray(n)||(o=n,n=[]);var u=t(a.Service,o||{});if("string"==typeof e?(a.Service.addVersions(u,n),u.serviceIdentifier=u.serviceIdentifier||e):(u.prototype.api=e,a.Service.defineMethods(u)),a.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&a.util.clientSideMonitoring){var f=a.util.clientSideMonitoring.Publisher,b=(0,a.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new f(b),b.enabled&&(a.Service._clientSideMonitoring=!0)}return a.SequentialExecutor.call(u.prototype),a.Service.addDefaultMonitoringListeners(u.prototype),u},addVersions:function(e,n){Array.isArray(n)||(n=[n]),e.services=e.services||{};for(var o=0;o<n.length;o++)void 0===e.services[n[o]]&&(e.services[n[o]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,n,o){var u=t(e,{serviceIdentifier:e.serviceIdentifier});function p(f){u.prototype.api=f.isApi?f:new g(f,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof n){if(o)p(o);else try{p(a.apiLoader(e.serviceIdentifier,n))}catch(f){throw a.util.error(f,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+n})}Object.prototype.hasOwnProperty.call(e.services,n)||(e.apiVersions=e.apiVersions.concat(n).sort()),e.services[n]=u}else p(n);return a.Service.defineMethods(u),u},hasService:function(s){return Object.prototype.hasOwnProperty.call(a.Service._serviceMap,s)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(o){var u=Object.getPrototypeOf(e);u._events&&u.emit("apiCallAttempt",[o])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(o){var u=Object.getPrototypeOf(e);u._events&&u.emit("apiCall",[o])})},_serviceMap:{}}),a.util.mixin(a.Service,a.SequentialExecutor),W.exports=a.Service},33400:(W,w,c)=>{var a=c(78588),g=c(9169);a.util.update(a.STS.prototype,{credentialsFrom:function(i,s){return i?(s||(s=new a.TemporaryCredentials),s.expired=!1,s.accessKeyId=i.Credentials.AccessKeyId,s.secretAccessKey=i.Credentials.SecretAccessKey,s.sessionToken=i.Credentials.SessionToken,s.expireTime=i.Credentials.Expiration,s):null},assumeRoleWithWebIdentity:function(i,s){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",i,s)},assumeRoleWithSAML:function(i,s){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",i,s)},setupRequestListeners:function(i){i.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(i){var s=i.service,e=s.config;if(e.stsRegionalEndpoints=g(s._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===e.stsRegionalEndpoints&&s.isGlobalEndpoint){if(!e.region)throw a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var n=e.endpoint.indexOf(".amazonaws.com"),o=e.endpoint.substring(0,n)+"."+e.region+e.endpoint.substring(n);i.httpRequest.updateEndpoint(o),i.httpRequest.region=e.region}}})},43339:(W,w,c)=>{var a=c(78588),l="presigned-expires";function t(i){var s=i.httpRequest.headers[l],e=i.service.getSignerClass(i);if(delete i.httpRequest.headers["User-Agent"],delete i.httpRequest.headers["X-Amz-User-Agent"],e===a.Signers.V4){if(s>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});i.httpRequest.headers[l]=s}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 o=i.service?i.service.getSkewCorrectedDate():a.util.date.getDate();i.httpRequest.headers[l]=parseInt(a.util.date.unixTimestamp(o)+s,10).toString()}}function r(i){var s=i.httpRequest.endpoint,e=a.util.urlParse(i.httpRequest.path),n={};e.search&&(n=a.util.queryStringParse(e.search.substr(1)));var o=i.httpRequest.headers.Authorization.split(" ");if("AWS"===o[0])o=o[1].split(":"),n.Signature=o.pop(),n.AWSAccessKeyId=o.join(":"),a.util.each(i.httpRequest.headers,function(f,E){f===l&&(f="Expires"),0===f.indexOf("x-amz-meta-")&&(delete n[f],f=f.toLowerCase()),n[f]=E}),delete i.httpRequest.headers[l],delete n.Authorization,delete n.Host;else if("AWS4-HMAC-SHA256"===o[0]){o.shift();var p=o.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];n["X-Amz-Signature"]=p,delete n.Expires}s.pathname=e.pathname,s.search=a.util.queryParamsToString(n)}a.Signers.Presign=(0,a.util.inherit)({sign:function(s,e,n){if(s.httpRequest.headers[l]=e||3600,s.on("build",t),s.on("sign",r),s.removeListener("afterBuild",a.EventListeners.Core.SET_CONTENT_LENGTH),s.removeListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256),s.emit("beforePresign",[s]),!n){if(s.build(),s.response.error)throw s.response.error;return a.util.urlFormat(s.httpRequest.endpoint)}s.build(function(){this.response.error?n(this.response.error):n(null,a.util.urlFormat(s.httpRequest.endpoint))})}}),W.exports=a.Signers.Presign},21815:(W,w,c)=>{var a=c(78588);a.Signers.RequestSigner=(0,a.util.inherit)({constructor:function(t){this.request=t},setServiceClientId:function(t){this.serviceClientId=t},getServiceClientId:function(){return this.serviceClientId}}),a.Signers.RequestSigner.getVersion=function(t){switch(t){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 "+t)},c(34147),c(36156),c(47059),c(27145),c(47037),c(43339)},47037:(W,w,c)=>{var a=c(78588);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(t,r){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=a.util.date.rfc822(r)),t.sessionToken&&(this.request.headers["x-amz-security-token"]=t.sessionToken);var i=this.sign(t.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+t.accessKeyId+":"+i},stringToSign:function(){var t=this.request,r=[];r.push(t.method),r.push(t.headers["Content-MD5"]||""),r.push(t.headers["Content-Type"]||""),r.push(t.headers["presigned-expires"]||"");var i=this.canonicalizedAmzHeaders();return i&&r.push(i),r.push(this.canonicalizedResource()),r.join("\n")},canonicalizedAmzHeaders:function(){var t=[];a.util.each(this.request.headers,function(i){i.match(/^x-amz-/i)&&t.push(i)}),t.sort(function(i,s){return i.toLowerCase()<s.toLowerCase()?-1:1});var r=[];return a.util.arrayEach.call(this,t,function(i){r.push(i.toLowerCase()+":"+String(this.request.headers[i]))}),r.join("\n")},canonicalizedResource:function(){var t=this.request,r=t.path.split("?"),s=r[1],e="";if(t.virtualHostedBucket&&(e+="/"+t.virtualHostedBucket),e+=r[0],s){var n=[];a.util.arrayEach.call(this,s.split("&"),function(o){var u=o.split("=")[0],p=o.split("=")[1];if(this.subResources[u]||this.responseHeaders[u]){var f={name:u};void 0!==p&&(f.value=this.subResources[u]?p:decodeURIComponent(p)),n.push(f)}}),n.sort(function(o,u){return o.name<u.name?-1:1}),n.length&&(s=[],a.util.arrayEach(n,function(o){s.push(void 0===o.value?o.name:o.name+"="+o.value)}),e+="?"+s.join("&"))}return e},sign:function(t,r){return a.util.crypto.hmac(t,r,"base64","sha1")}}),W.exports=a.Signers.S3},34147:(W,w,c)=>{var a=c(78588);a.Signers.V2=(0,a.util.inherit)(a.Signers.RequestSigner,{addAuthorization:function(t,r){r||(r=a.util.date.getDate());var i=this.request;i.params.Timestamp=a.util.date.iso8601(r),i.params.SignatureVersion="2",i.params.SignatureMethod="HmacSHA256",i.params.AWSAccessKeyId=t.accessKeyId,t.sessionToken&&(i.params.SecurityToken=t.sessionToken),delete i.params.Signature,i.params.Signature=this.signature(t),i.body=a.util.queryParamsToString(i.params),i.headers["Content-Length"]=i.body.length},signature:function(t){return a.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push(this.request.endpoint.host.toLowerCase()),t.push(this.request.pathname()),t.push(a.util.queryParamsToString(this.request.params)),t.join("\n")}}),W.exports=a.Signers.V2},36156:(W,w,c)=>{var a=c(78588);a.Signers.V3=(0,a.util.inherit)(a.Signers.RequestSigner,{addAuthorization:function(t,r){var i=a.util.date.rfc822(r);this.request.headers["X-Amz-Date"]=i,t.sessionToken&&(this.request.headers["x-amz-security-token"]=t.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(t,i)},authorization:function(t){return"AWS3 AWSAccessKeyId="+t.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(t)},signedHeaders:function(){var t=[];return a.util.arrayEach(this.headersToSign(),function(i){t.push(i.toLowerCase())}),t.sort().join(";")},canonicalHeaders:function(){var t=this.request.headers,r=[];return a.util.arrayEach(this.headersToSign(),function(s){r.push(s.toLowerCase().trim()+":"+String(t[s]).trim())}),r.sort().join("\n")+"\n"},headersToSign:function(){var t=[];return a.util.each(this.request.headers,function(i){("Host"===i||"Content-Encoding"===i||i.match(/^X-Amz/i))&&t.push(i)}),t},signature:function(t){return a.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push("/"),t.push(""),t.push(this.canonicalHeaders()),t.push(this.request.body),a.util.crypto.sha256(t.join("\n"))}}),W.exports=a.Signers.V3},47059:(W,w,c)=>{var a=c(78588),g=a.util.inherit;c(36156),a.Signers.V3Https=g(a.Signers.V3,{authorization:function(t){return"AWS3-HTTPS AWSAccessKeyId="+t.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(t)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),W.exports=a.Signers.V3Https},27145:(W,w,c)=>{var a=c(78588),g=c(69576),t="presigned-expires";a.Signers.V4=(0,a.util.inherit)(a.Signers.RequestSigner,{constructor:function(i,s,e){a.Signers.RequestSigner.call(this,i),this.serviceName=s,this.signatureCache="boolean"!=typeof(e=e||{}).signatureCache||e.signatureCache,this.operation=e.operation,this.signatureVersion=e.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(i,s){var e=a.util.date.iso8601(s).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(i,e):this.addHeaders(i,e),this.request.headers.Authorization=this.authorization(i,e)},addHeaders:function(i,s){this.request.headers["X-Amz-Date"]=s,i.sessionToken&&(this.request.headers["x-amz-security-token"]=i.sessionToken)},updateForPresigned:function(i,s){var e=this.credentialString(s),n={"X-Amz-Date":s,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":i.accessKeyId+"/"+e,"X-Amz-Expires":this.request.headers[t],"X-Amz-SignedHeaders":this.signedHeaders()};i.sessionToken&&(n["X-Amz-Security-Token"]=i.sessionToken),this.request.headers["Content-Type"]&&(n["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(n["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(n["Cache-Control"]=this.request.headers["Cache-Control"]),a.util.each.call(this,this.request.headers,function(u,p){if(u!==t&&this.isSignableHeader(u)){var f=u.toLowerCase();0===f.indexOf("x-amz-meta-")?n[f]=p:0===f.indexOf("x-amz-")&&(n[u]=p)}});var o=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=o+a.util.queryParamsToString(n)},authorization:function(i,s){var e=[],n=this.credentialString(s);return e.push(this.algorithm+" Credential="+i.accessKeyId+"/"+n),e.push("SignedHeaders="+this.signedHeaders()),e.push("Signature="+this.signature(i,s)),e.join(", ")},signature:function(i,s){var e=g.getSigningKey(i,s.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return a.util.crypto.hmac(e,this.stringToSign(s),"hex")},stringToSign:function(i){var s=[];return s.push("AWS4-HMAC-SHA256"),s.push(i),s.push(this.credentialString(i)),s.push(this.hexEncodedHash(this.canonicalString())),s.join("\n")},canonicalString:function(){var i=[],s=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(s=a.util.uriEscapePath(s)),i.push(this.request.method),i.push(s),i.push(this.request.search()),i.push(this.canonicalHeaders()+"\n"),i.push(this.signedHeaders()),i.push(this.hexEncodedBodyHash()),i.join("\n")},canonicalHeaders:function(){var i=[];a.util.each.call(this,this.request.headers,function(e,n){i.push([e,n])}),i.sort(function(e,n){return e[0].toLowerCase()<n[0].toLowerCase()?-1:1});var s=[];return a.util.arrayEach.call(this,i,function(e){var n=e[0].toLowerCase();if(this.isSignableHeader(n)){var o=e[1];if(typeof o>"u"||null===o||"function"!=typeof o.toString)throw a.util.error(new Error("Header "+n+" contains invalid value"),{code:"InvalidHeader"});s.push(n+":"+this.canonicalHeaderValues(o.toString()))}}),s.join("\n")},canonicalHeaderValues:function(i){return i.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var i=[];return a.util.each.call(this,this.request.headers,function(s){s=s.toLowerCase(),this.isSignableHeader(s)&&i.push(s)}),i.sort().join(";")},credentialString:function(i){return g.createScope(i.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(i){return a.util.crypto.sha256(i,"hex")},hexEncodedBodyHash:function(){var i=this.request;return this.isPresigned()&&["s3","s3-object-lambda"].indexOf(this.serviceName)>-1&&!i.body?"UNSIGNED-PAYLOAD":i.headers["X-Amz-Content-Sha256"]?i.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",t,"expect","x-amzn-trace-id"],isSignableHeader:function(i){return 0===i.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(i)<0},isPresigned:function(){return!!this.request.headers[t]}}),W.exports=a.Signers.V4},69576:(W,w,c)=>{var a=c(78588),g={},l=[],r="aws4_request";W.exports={createScope:function(s,e,n){return[s.substr(0,8),e,n,r].join("/")},getSigningKey:function(s,e,n,o,u){var f=[a.util.crypto.hmac(s.secretAccessKey,s.accessKeyId,"base64"),e,n,o].join("_");if((u=!1!==u)&&f in g)return g[f];var E=a.util.crypto.hmac("AWS4"+s.secretAccessKey,e,"buffer"),b=a.util.crypto.hmac(E,n,"buffer"),y=a.util.crypto.hmac(b,o,"buffer"),d=a.util.crypto.hmac(y,r,"buffer");return u&&(g[f]=d,l.push(f),l.length>50&&delete g[l.shift()]),d},emptyCache:function(){g={},l=[]}}},22324:W=>{function w(c,a){this.currentState=a||null,this.states=c||{}}w.prototype.runTo=function(a,g,l,t){"function"==typeof a&&(t=l,l=g,g=a,a=null);var r=this,i=r.states[r.currentState];i.fn.call(l||r,t,function(s){if(s){if(!i.fail)return g?g.call(l,s):null;r.currentState=i.fail}else{if(!i.accept)return g?g.call(l):null;r.currentState=i.accept}if(r.currentState===a)return g?g.call(l,s):null;r.runTo(a,g,l,s)})},w.prototype.addState=function(a,g,l,t){return"function"==typeof g?(t=g,g=null,l=null):"function"==typeof l&&(t=l,l=null),this.currentState||(this.currentState=a),this.states[a]={accept:g,fail:l,fn:t},this},W.exports=w},67355:(W,w,c)=>{var a,g={environment:"nodejs",engine:function(){if(g.isBrowser()&&typeof navigator<"u")return navigator.userAgent;var t=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(t+=" exec-env/"+process.env.AWS_EXECUTION_ENV),t},userAgent:function(){var t=g.environment,r="aws-sdk-"+t+"/"+c(78588).VERSION;return"nodejs"===t&&(r+=" "+g.engine()),r},uriEscape:function(t){var r=encodeURIComponent(t);return(r=r.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(i){return"%"+i.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(t){var r=[];return g.arrayEach(t.split("/"),function(i){r.push(g.uriEscape(i))}),r.join("/")},urlParse:function(t){return g.url.parse(t)},urlFormat:function(t){return g.url.format(t)},queryStringParse:function(t){return g.querystring.parse(t)},queryParamsToString:function(t){var r=[],i=g.uriEscape,s=Object.keys(t).sort();return g.arrayEach(s,function(e){var n=t[e],o=i(e),u=o+"=";if(Array.isArray(n)){var p=[];g.arrayEach(n,function(f){p.push(i(f))}),u=o+"="+p.sort().join("&"+o+"=")}else null!=n&&(u=o+"="+i(n));r.push(u)}),r.join("&")},readFileSync:function(t){return g.isBrowser()?null:c(47464).readFileSync(t,"utf-8")},base64:{encode:function(t){if("number"==typeof t)throw g.error(new Error("Cannot base64 encode number "+t));return null===t||typeof t>"u"?t:g.buffer.toBuffer(t).toString("base64")},decode:function(t){if("number"==typeof t)throw g.error(new Error("Cannot base64 decode number "+t));return null===t||typeof t>"u"?t:g.buffer.toBuffer(t,"base64")}},buffer:{toBuffer:function(l,t){return"function"==typeof g.Buffer.from&&g.Buffer.from!==Uint8Array.from?g.Buffer.from(l,t):new g.Buffer(l,t)},alloc:function(l,t,r){if("number"!=typeof l)throw new Error("size passed to alloc must be a number.");if("function"==typeof g.Buffer.alloc)return g.Buffer.alloc(l,t,r);var i=new g.Buffer(l);return void 0!==t&&"function"==typeof i.fill&&i.fill(t,void 0,void 0,r),i},toStream:function(t){g.Buffer.isBuffer(t)||(t=g.buffer.toBuffer(t));var r=new g.stream.Readable,i=0;return r._read=function(s){if(i>=t.length)return r.push(null);var e=i+s;e>t.length&&(e=t.length),r.push(t.slice(i,e)),i=e},r},concat:function(l){var i,s,t=0,r=0;for(s=0;s<l.length;s++)t+=l[s].length;for(i=g.buffer.alloc(t),s=0;s<l.length;s++)l[s].copy(i,r),r+=l[s].length;return i}},string:{byteLength:function(t){if(null==t)return 0;if("string"==typeof t&&(t=g.buffer.toBuffer(t)),"number"==typeof t.byteLength)return t.byteLength;if("number"==typeof t.length)return t.length;if("number"==typeof t.size)return t.size;if("string"==typeof t.path)return c(47464).lstatSync(t.path).size;throw g.error(new Error("Cannot determine length of "+t),{object:t})},upperFirst:function(t){return t[0].toUpperCase()+t.substr(1)},lowerFirst:function(t){return t[0].toLowerCase()+t.substr(1)}},ini:{parse:function(t){var r,i={};return g.arrayEach(t.split(/\r?\n/),function(s){if("["===(s=s.split(/(^|\s)[;#]/)[0].trim())[0]&&"]"===s[s.length-1]){if("__proto__"===(r=s.substring(1,s.length-1))||"__proto__"===r.split(/\s/)[1])throw g.error(new Error("Cannot load profile name '"+r+"' from shared ini file."))}else if(r){var n=s.indexOf("=");if(-1!==n&&0!==n&&n!==s.length-1){var f=s.substring(0,n).trim(),E=s.substring(n+1).trim();i[r]=i[r]||{},i[r][f]=E}}}),i}},fn:{noop:function(){},callback:function(l){if(l)throw l},makeAsync:function(t,r){return r&&r<=t.length?t:function(){var i=Array.prototype.slice.call(arguments,0);i.pop()(t.apply(null,i))}}},date:{getDate:function(){return a||(a=c(78588)),a.config.systemClockOffset?new Date((new Date).getTime()+a.config.systemClockOffset):new Date},iso8601:function(t){return void 0===t&&(t=g.date.getDate()),t.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(t){return void 0===t&&(t=g.date.getDate()),t.toUTCString()},unixTimestamp:function(t){return void 0===t&&(t=g.date.getDate()),t.getTime()/1e3},from:function(t){return"number"==typeof t?new Date(1e3*t):new Date(t)},format:function(t,r){return r||(r="iso8601"),g.date[r](g.date.from(t))},parseTimestamp:function(t){if("number"==typeof t)return new Date(1e3*t);if(t.match(/^\d+$/))return new Date(1e3*t);if(t.match(/^\d{4}/))return new Date(t);if(t.match(/^\w{3},/))return new Date(t);throw g.error(new Error("unhandled timestamp format: "+t),{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(t){var r=g.crypto.crc32Table,i=-1;"string"==typeof t&&(t=g.buffer.toBuffer(t));for(var s=0;s<t.length;s++)i=i>>>8^r[255&(i^t.readUInt8(s))];return~i>>>0},hmac:function(t,r,i,s){return i||(i="binary"),"buffer"===i&&(i=void 0),s||(s="sha256"),"string"==typeof r&&(r=g.buffer.toBuffer(r)),g.crypto.lib.createHmac(s,t).update(r).digest(i)},md5:function(t,r,i){return g.crypto.hash("md5",t,r,i)},sha256:function(t,r,i){return g.crypto.hash("sha256",t,r,i)},hash:function(l,t,r,i){var s=g.crypto.createHash(l);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=g.buffer.toBuffer(t));var e=g.arraySliceFn(t),n=g.Buffer.isBuffer(t);if(g.isBrowser()&&typeof ArrayBuffer<"u"&&t&&t.buffer instanceof ArrayBuffer&&(n=!0),i&&"object"==typeof t&&"function"==typeof t.on&&!n)t.on("data",function(E){s.update(E)}),t.on("error",function(E){i(E)}),t.on("end",function(){i(null,s.digest(r))});else{if(!(i&&e&&!n&&typeof FileReader<"u")){g.isBrowser()&&"object"==typeof t&&!n&&(t=new g.Buffer(new Uint8Array(t)));var f=s.update(t).digest(r);return i&&i(null,f),f}var o=0,p=new FileReader;p.onerror=function(){i(new Error("Failed to read data."))},p.onload=function(){var E=new g.Buffer(new Uint8Array(p.result));s.update(E),o+=E.length,p._continueReading()},p._continueReading=function(){if(o>=t.size)i(null,s.digest(r));else{var E=o+524288;E>t.size&&(E=t.size),p.readAsArrayBuffer(e.call(t,o,E))}},p._continueReading()}},toHex:function(t){for(var r=[],i=0;i<t.length;i++)r.push(("0"+t.charCodeAt(i).toString(16)).substr(-2,2));return r.join("")},createHash:function(t){return g.crypto.lib.createHash(t)}},abort:{},each:function(t,r){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&r.call(this,i,t[i])===g.abort)break},arrayEach:function(t,r){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&r.call(this,t[i],parseInt(i,10))===g.abort)break},update:function(t,r){return g.each(r,function(s,e){t[s]=e}),t},merge:function(t,r){return g.update(g.copy(t),r)},copy:function(t){if(null==t)return t;var r={};for(var i in t)r[i]=t[i];return r},isEmpty:function(t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))return!1;return!0},arraySliceFn:function(t){var r=t.slice||t.webkitSlice||t.mozSlice;return"function"==typeof r?r:null},isType:function(t,r){return"function"==typeof r&&(r=g.typeName(r)),Object.prototype.toString.call(t)==="[object "+r+"]"},typeName:function(t){if(Object.prototype.hasOwnProperty.call(t,"name"))return t.name;var r=t.toString(),i=r.match(/^\s*function (.+)\(/);return i?i[1]:r},error:function(t,r){var i=null;return"string"==typeof t.message&&""!==t.message&&("string"==typeof r||r&&r.message)&&((i=g.copy(t)).message=t.message),t.message=t.message||null,"string"==typeof r?t.message=r:"object"==typeof r&&null!==r&&(g.update(t,r),r.message&&(t.message=r.message),(r.code||r.name)&&(t.code=r.code||r.name),r.stack&&(t.stack=r.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(t,"name",{writable:!0,enumerable:!1}),Object.defineProperty(t,"message",{enumerable:!0})),t.name=String(r&&r.name||t.name||t.code||"Error"),t.time=new Date,i&&(t.originalError=i),t},inherit:function(t,r){var i=null;if(void 0===r)r=t,t=Object,i={};else{var s=function(){};s.prototype=t.prototype,i=new s}return r.constructor===Object&&(r.constructor=function(){if(t!==Object)return t.apply(this,arguments)}),r.constructor.prototype=i,g.update(r.constructor.prototype,r),r.constructor.__super__=t,r.constructor},mixin:function(){for(var t=arguments[0],r=1;r<arguments.length;r++)for(var i in arguments[r].prototype)"constructor"!==i&&(t.prototype[i]=arguments[r].prototype[i]);return t},hideProperties:function(t,r){"function"==typeof Object.defineProperty&&g.arrayEach(r,function(i){Object.defineProperty(t,i,{enumerable:!1,writable:!0,configurable:!0})})},property:function(t,r,i,s,e){var n={configurable:!0,enumerable:void 0===s||s};"function"!=typeof i||e?(n.value=i,n.writable=!0):n.get=i,Object.defineProperty(t,r,n)},memoizedProperty:function(t,r,i,s){var e=null;g.property(t,r,function(){return null===e&&(e=i()),e},s)},hoistPayloadMember:function(t){var r=t.request,s=r.service.api.operations[r.operation],e=s.output;e.payload&&!s.hasEventOutput&&"structure"===e.members[e.payload].type&&g.each(t.data[e.payload],function(u,p){g.property(t.data,u,p,!1)})},computeSha256:function(t,r){if(g.isNode()){var i=g.stream.Stream,s=c(47464);if("function"==typeof i&&t instanceof i){if("string"!=typeof t.path)return r(new Error("Non-file stream objects are not supported with SigV4"));var e={};"number"==typeof t.start&&(e.start=t.start),"number"==typeof t.end&&(e.end=t.end),t=s.createReadStream(t.path,e)}}g.crypto.sha256(t,"hex",function(n,o){n?r(n):r(null,o)})},isClockSkewed:function(t){if(t)return g.property(a.config,"isClockSkewed",Math.abs((new Date).getTime()-t)>=3e5,!1),a.config.isClockSkewed},applyClockOffset:function(t){t&&(a.config.systemClockOffset=t-(new Date).getTime())},extractRequestId:function(t){var r=t.httpResponse.headers["x-amz-request-id"]||t.httpResponse.headers["x-amzn-requestid"];!r&&t.data&&t.data.ResponseMetadata&&(r=t.data.ResponseMetadata.RequestId),r&&(t.requestId=r),t.error&&(t.error.requestId=r)},addPromises:function(t,r){var i=!1;void 0===r&&a&&a.config&&(r=a.config.getPromisesDependency()),void 0===r&&typeof Promise<"u"&&(r=Promise),"function"!=typeof r&&(i=!0),Array.isArray(t)||(t=[t]);for(var s=0;s<t.length;s++){var e=t[s];i?e.deletePromisesFromClass&&e.deletePromisesFromClass():e.addPromisesToClass&&e.addPromisesToClass(r)}},promisifyMethod:function(t,r){return function(){var s=this,e=Array.prototype.slice.call(arguments);return new r(function(n,o){e.push(function(u,p){u?o(u):n(p)}),s[t].apply(s,e)})}},isDualstackAvailable:function(t){if(!t)return!1;var r=c(73459);return"string"!=typeof t&&(t=t.serviceIdentifier),!("string"!=typeof t||!r.hasOwnProperty(t)||!r[t].dualstackAvailable)},calculateRetryDelay:function(t,r,i){r||(r={});var s=r.customBackoff||null;if("function"==typeof s)return s(t,i);var e="number"==typeof r.base?r.base:100;return Math.random()*(Math.pow(2,t)*e)},handleRequestWithRetries:function(t,r,i){r||(r={});var s=a.HttpClient.getInstance(),e=r.httpOptions||{},n=0,o=function(p){var f=r.maxRetries||0;if(p&&"TimeoutError"===p.code&&(p.retryable=!0),p&&p.retryable&&n<f){var E=g.calculateRetryDelay(n,r.retryDelayOptions,p);if(E>=0)return n++,void setTimeout(u,E+(p.retryAfter||0))}i(p)},u=function(){var p="";s.handleRequest(t,e,function(f){f.on("data",function(E){p+=E.toString()}),f.on("end",function(){var E=f.statusCode;if(E<300)i(null,p);else{var b=1e3*parseInt(f.headers["retry-after"],10)||0,y=g.error(new Error,{statusCode:E,retryable:E>=500||429===E});b&&y.retryable&&(y.retryAfter=b),o(y)}})},o)};a.util.defer(u)},uuid:{v4:function(){return c(12959).v4()}},convertPayloadToString:function(t){var r=t.request,s=r.service.api.operations[r.operation].output||{};s.payload&&t.data[s.payload]&&(t.data[s.payload]=t.data[s.payload].toString())},defer:function(t){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(t):"function"==typeof setImmediate?setImmediate(t):setTimeout(t,0)},getRequestPayloadShape:function(t){var r=t.service.api.operations;if(r){var i=(r||{})[t.operation];if(i&&i.input&&i.input.payload)return i.input.members[i.input.payload]}},getProfilesFromSharedConfig:function(t,r){var i={},s={};process.env[g.configOptInEnv]&&(s=t.loadFrom({isConfig:!0,filename:process.env[g.sharedConfigFileEnv]}));var e={};try{e=t.loadFrom({filename:r||process.env[g.configOptInEnv]&&process.env[g.sharedCredentialsFileEnv]})}catch(p){if(!process.env[g.configOptInEnv])throw p}for(var n=0,o=Object.keys(s);n<o.length;n++)i[o[n]]=u(i[o[n]]||{},s[o[n]]);for(n=0,o=Object.keys(e);n<o.length;n++)i[o[n]]=u(i[o[n]]||{},e[o[n]]);return i;function u(p,f){for(var E=0,b=Object.keys(f);E<b.length;E++)p[b[E]]=f[b[E]];return p}},ARN:{validate:function(t){return t&&0===t.indexOf("arn:")&&t.split(":").length>=6},parse:function(t){var r=t.split(":");return{partition:r[1],service:r[2],region:r[3],accountId:r[4],resource:r.slice(5).join(":")}},build:function(t){if(void 0===t.service||void 0===t.region||void 0===t.accountId||void 0===t.resource)throw g.error(new Error("Input ARN object is invalid"));return"arn:"+(t.partition||"aws")+":"+t.service+":"+t.region+":"+t.accountId+":"+t.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};W.exports=g},88587:(W,w,c)=>{var a=c(67355),g=c(31800);function l(){}function t(u,p){for(var f=u.getElementsByTagName(p),E=0,b=f.length;E<b;E++)if(f[E].parentNode===u)return f[E]}function r(u,p){switch(p||(p={}),p.type){case"structure":return i(u,p);case"map":return function s(u,p){for(var f={},E=p.key.name||"key",b=p.value.name||"value",y=p.flattened?p.name:"entry",d=u.firstElementChild;d;){if(d.nodeName===y){var m=t(d,E).textContent,x=t(d,b);f[m]=r(x,p.value)}d=d.nextElementSibling}return f}(u,p);case"list":return function e(u,p){for(var f=[],E=p.flattened?p.name:p.member.name||"member",b=u.firstElementChild;b;)b.nodeName===E&&f.push(r(b,p.member)),b=b.nextElementSibling;return f}(u,p);case void 0:case null:return function o(u){if(null==u)return"";if(!u.firstElementChild)return null===u.parentNode.parentNode?{}:0===u.childNodes.length?"":u.textContent;for(var p={type:"structure",members:{}},f=u.firstElementChild;f;){var E=f.nodeName;Object.prototype.hasOwnProperty.call(p.members,E)?p.members[E].type="list":p.members[E]={name:E},f=f.nextElementSibling}return i(u,p)}(u);default:return function n(u,p){if(u.getAttribute){var f=u.getAttribute("encoding");"base64"===f&&(p=new g.create({type:f}))}var E=u.textContent;return""===E&&(E=null),"function"==typeof p.toType?p.toType(E):E}(u,p)}}function i(u,p){var f={};return null===u||a.each(p.members,function(E,b){if(b.isXmlAttribute)Object.prototype.hasOwnProperty.call(u.attributes,b.name)&&(f[E]=r({textContent:u.attributes[b.name].value},b));else{var d=b.flattened?u:t(u,b.name);d?f[E]=r(d,b):!b.flattened&&"list"===b.type&&!p.api.xmlNoDefaultLists&&(f[E]=b.defaultValue)}}),f}l.prototype.parse=function(u,p){if(""===u.replace(/^\s+/,""))return{};var f,E;try{if(window.DOMParser){try{f=(new DOMParser).parseFromString(u,"text/xml")}catch(I){throw a.error(new Error("Parse error in document"),{originalError:I,code:"XMLParserError",retryable:!0})}if(null===f.documentElement)throw a.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var y=f.getElementsByTagName("parsererror")[0];if(y&&(y.parentNode===f||"body"===y.parentNode.nodeName||y.parentNode.parentNode===f||"body"===y.parentNode.parentNode.nodeName)){var d=y.getElementsByTagName("div")[0]||y;throw a.error(new Error(d.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((f=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!f.loadXML(u))throw a.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(I){E=I}if(f&&f.documentElement&&!E){var m=r(f.documentElement,p),x=t(f.documentElement,"ResponseMetadata");return x&&(m.ResponseMetadata=r(x,{})),m}if(E)throw a.error(E||new Error,{code:"XMLParserError",retryable:!0});return{}},W.exports=l},58350:(W,w,c)=>{var a=c(67355),g=c(96693).XmlNode,l=c(44718).XmlText;function t(){}function r(u,p,f){switch(f.type){case"structure":return function i(u,p,f){a.arrayEach(f.memberNames,function(E){var b=f.members[E];if("body"===b.location){var y=p[E],d=b.name;if(null!=y)if(b.isXmlAttribute)u.addAttribute(d,y);else if(b.flattened)r(u,y,b);else{var m=new g(d);u.addChildNode(m),o(m,b),r(m,y,b)}}})}(u,p,f);case"map":return function s(u,p,f){var E=f.key.name||"key",b=f.value.name||"value";a.each(p,function(y,d){var m=new g(f.flattened?f.name:"entry");u.addChildNode(m);var x=new g(E),I=new g(b);m.addChildNode(x),m.addChildNode(I),r(x,y,f.key),r(I,d,f.value)})}(u,p,f);case"list":return function e(u,p,f){a.arrayEach(p,f.flattened?function(E){var y=new g(f.member.name||f.name);u.addChildNode(y),r(y,E,f.member)}:function(E){var y=new g(f.member.name||"member");u.addChildNode(y),r(y,E,f.member)})}(u,p,f);default:return function n(u,p,f){u.addChildNode(new l(f.toWireFormat(p)))}(u,p,f)}}function o(u,p,f){var E,b="xmlns";p.xmlNamespaceUri?(E=p.xmlNamespaceUri,p.xmlNamespacePrefix&&(b+=":"+p.xmlNamespacePrefix)):f&&p.api.xmlNamespaceUri&&(E=p.api.xmlNamespaceUri),E&&u.addAttribute(b,E)}t.prototype.toXML=function(u,p,f,E){var b=new g(f);return o(b,p,!0),r(b,u,p),b.children.length>0||E?b.toString():""},W.exports=t},60559:W=>{W.exports={escapeAttribute:function w(c){return c.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},18935:W=>{W.exports={escapeElement:function w(c){return c.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}},96693:(W,w,c)=>{var a=c(60559).escapeAttribute;function g(l,t){void 0===t&&(t=[]),this.name=l,this.children=t,this.attributes={}}g.prototype.addAttribute=function(l,t){return this.attributes[l]=t,this},g.prototype.addChildNode=function(l){return this.children.push(l),this},g.prototype.removeAttribute=function(l){return delete this.attributes[l],this},g.prototype.toString=function(){for(var l=!!this.children.length,t="<"+this.name,r=this.attributes,i=0,s=Object.keys(r);i<s.length;i++){var e=s[i],n=r[e];typeof n<"u"&&null!==n&&(t+=" "+e+'="'+a(""+n)+'"')}return t+(l?">"+this.children.map(function(o){return o.toString()}).join("")+"</"+this.name+">":"/>")},W.exports={XmlNode:g}},44718:(W,w,c)=>{var a=c(18935).escapeElement;function g(l){this.value=l}g.prototype.toString=function(){return a(""+this.value)},W.exports={XmlText:g}},12009:(W,w,c)=>{"use strict";var g=c(99670),t=function(){function r(i){void 0===i&&(i=1e3),this.maxSize=i,this.cache=new g.LRUCache(i)}return Object.defineProperty(r.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),r.prototype.put=function(i,s){var e="string"!=typeof i?r.getKeyString(i):i,n=this.populateValue(s);this.cache.put(e,n)},r.prototype.get=function(i){var s="string"!=typeof i?r.getKeyString(i):i,e=Date.now(),n=this.cache.get(s);if(n){for(var o=n.length-1;o>=0;o--)n[o].Expire<e&&n.splice(o,1);if(0===n.length)return void this.cache.remove(s)}return n},r.getKeyString=function(i){for(var s=[],e=Object.keys(i).sort(),n=0;n<e.length;n++){var o=e[n];void 0!==i[o]&&s.push(i[o])}return s.join(" ")},r.prototype.populateValue=function(i){var s=Date.now();return i.map(function(e){return{Address:e.Address||"",Expire:s+60*(e.CachePeriodInMinutes||1)*1e3}})},r.prototype.empty=function(){this.cache.empty()},r.prototype.remove=function(i){var s="string"!=typeof i?r.getKeyString(i):i;this.cache.remove(s)},r}();w.k=t},99670:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var c=function(){return function g(l,t){this.key=l,this.value=t}}(),a=function(){function g(l){if(this.nodeMap={},this.size=0,"number"!=typeof l||l<1)throw new Error("Cache size can only be positive number");this.sizeLimit=l}return Object.defineProperty(g.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),g.prototype.prependToList=function(l){this.headerNode?(this.headerNode.prev=l,l.next=this.headerNode):this.tailNode=l,this.headerNode=l,this.size++},g.prototype.removeFromTail=function(){if(this.tailNode){var l=this.tailNode,t=l.prev;return t&&(t.next=void 0),l.prev=void 0,this.tailNode=t,this.size--,l}},g.prototype.detachFromList=function(l){this.headerNode===l&&(this.headerNode=l.next),this.tailNode===l&&(this.tailNode=l.prev),l.prev&&(l.prev.next=l.next),l.next&&(l.next.prev=l.prev),l.next=void 0,l.prev=void 0,this.size--},g.prototype.get=function(l){if(this.nodeMap[l]){var t=this.nodeMap[l];return this.detachFromList(t),this.prependToList(t),t.value}},g.prototype.remove=function(l){this.nodeMap[l]&&(this.detachFromList(this.nodeMap[l]),delete this.nodeMap[l])},g.prototype.put=function(l,t){if(this.nodeMap[l])this.remove(l);else if(this.size===this.sizeLimit){var r=this.removeFromTail();delete this.nodeMap[r.key]}var s=new c(l,t);this.nodeMap[l]=s,this.prependToList(s)},g.prototype.empty=function(){for(var l=Object.keys(this.nodeMap),t=0;t<l.length;t++){var r=l[t];this.detachFromList(this.nodeMap[r]),delete this.nodeMap[r]}},g}();w.LRUCache=a},19673:(W,w)=>{"use strict";w.byteLength=function s(f){var E=i(f),y=E[1];return 3*(E[0]+y)/4-y},w.toByteArray=function n(f){var E,L,b=i(f),y=b[0],d=b[1],m=new g(function e(f,E,b){return 3*(E+b)/4-b}(0,y,d)),x=0,I=d>0?y-4:y;for(L=0;L<I;L+=4)E=a[f.charCodeAt(L)]<<18|a[f.charCodeAt(L+1)]<<12|a[f.charCodeAt(L+2)]<<6|a[f.charCodeAt(L+3)],m[x++]=E>>16&255,m[x++]=E>>8&255,m[x++]=255&E;return 2===d&&(E=a[f.charCodeAt(L)]<<2|a[f.charCodeAt(L+1)]>>4,m[x++]=255&E),1===d&&(E=a[f.charCodeAt(L)]<<10|a[f.charCodeAt(L+1)]<<4|a[f.charCodeAt(L+2)]>>2,m[x++]=E>>8&255,m[x++]=255&E),m},w.fromByteArray=function p(f){for(var E,b=f.length,y=b%3,d=[],m=16383,x=0,I=b-y;x<I;x+=m)d.push(u(f,x,x+m>I?I:x+m));return 1===y?d.push(c[(E=f[b-1])>>2]+c[E<<4&63]+"=="):2===y&&d.push(c[(E=(f[b-2]<<8)+f[b-1])>>10]+c[E>>4&63]+c[E<<2&63]+"="),d.join("")};for(var c=[],a=[],g=typeof Uint8Array<"u"?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0;t<64;++t)c[t]=l[t],a[l.charCodeAt(t)]=t;function i(f){var E=f.length;if(E%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=f.indexOf("=");return-1===b&&(b=E),[b,b===E?0:4-b%4]}function o(f){return c[f>>18&63]+c[f>>12&63]+c[f>>6&63]+c[63&f]}function u(f,E,b){for(var d=[],m=E;m<b;m+=3)d.push(o((f[m]<<16&16711680)+(f[m+1]<<8&65280)+(255&f[m+2])));return d.join("")}a[45]=62,a[95]=63},90243:(W,w,c)=>{"use strict";var g=c(19673),l=c(13900),t=c(62441);function i(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(F,P){if(i()<P)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(F=new Uint8Array(P)).__proto__=e.prototype:(null===F&&(F=new e(P)),F.length=P),F}function e(F,P,D){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(F,P,D);if("number"==typeof F){if("string"==typeof P)throw new Error("If encoding is specified then the first argument must be a string");return p(this,F)}return n(this,F,P,D)}function n(F,P,D,G){if("number"==typeof P)throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&P instanceof ArrayBuffer?function b(F,P,D,G){if(D<0||P.byteLength<D)throw new RangeError("'offset' is out of bounds");if(P.byteLength<D+(G||0))throw new RangeError("'length' is out of bounds");return P=void 0===D&&void 0===G?new Uint8Array(P):void 0===G?new Uint8Array(P,D):new Uint8Array(P,D,G),e.TYPED_ARRAY_SUPPORT?(F=P).__proto__=e.prototype:F=E(F,P),F}(F,P,D,G):"string"==typeof P?function f(F,P,D){if(("string"!=typeof D||""===D)&&(D="utf8"),!e.isEncoding(D))throw new TypeError('"encoding" must be a valid string encoding');var G=0|x(P,D),ae=(F=s(F,G)).write(P,D);return ae!==G&&(F=F.slice(0,ae)),F}(F,P,D):function y(F,P){if(e.isBuffer(P)){var D=0|d(P.length);return 0===(F=s(F,D)).length||P.copy(F,0,0,D),F}if(P){if(typeof ArrayBuffer<"u"&&P.buffer instanceof ArrayBuffer||"length"in P)return"number"!=typeof P.length||function ge(F){return F!=F}(P.length)?s(F,0):E(F,P);if("Buffer"===P.type&&t(P.data))return E(F,P.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(F,P)}function o(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 p(F,P){if(o(P),F=s(F,P<0?0:0|d(P)),!e.TYPED_ARRAY_SUPPORT)for(var D=0;D<P;++D)F[D]=0;return F}function E(F,P){var D=P.length<0?0:0|d(P.length);F=s(F,D);for(var G=0;G<D;G+=1)F[G]=255&P[G];return F}function d(F){if(F>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|F}function x(F,P){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 D=F.length;if(0===D)return 0;for(var G=!1;;)switch(P){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":case void 0:return ce(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*D;case"hex":return D>>>1;case"base64":return pe(F).length;default:if(G)return ce(F).length;P=(""+P).toLowerCase(),G=!0}}function I(F,P,D){var G=!1;if((void 0===P||P<0)&&(P=0),P>this.length||((void 0===D||D>this.length)&&(D=this.length),D<=0)||(D>>>=0)<=(P>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return Q(this,P,D);case"utf8":case"utf-8":return j(this,P,D);case"ascii":return B(this,P,D);case"latin1":case"binary":return J(this,P,D);case"base64":return N(this,P,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,P,D);default:if(G)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),G=!0}}function L(F,P,D){var G=F[P];F[P]=F[D],F[D]=G}function R(F,P,D,G,ae){if(0===F.length)return-1;if("string"==typeof D?(G=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,isNaN(D)&&(D=ae?0:F.length-1),D<0&&(D=F.length+D),D>=F.length){if(ae)return-1;D=F.length-1}else if(D<0){if(!ae)return-1;D=0}if("string"==typeof P&&(P=e.from(P,G)),e.isBuffer(P))return 0===P.length?-1:_(F,P,D,G,ae);if("number"==typeof P)return P&=255,e.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?ae?Uint8Array.prototype.indexOf.call(F,P,D):Uint8Array.prototype.lastIndexOf.call(F,P,D):_(F,[P],D,G,ae);throw new TypeError("val must be string, number or Buffer")}function _(F,P,D,G,ae){var te,he=1,le=F.length,V=P.length;if(void 0!==G&&("ucs2"===(G=String(G).toLowerCase())||"ucs-2"===G||"utf16le"===G||"utf-16le"===G)){if(F.length<2||P.length<2)return-1;he=2,le/=2,V/=2,D/=2}function Z(Se,we){return 1===he?Se[we]:Se.readUInt16BE(we*he)}if(ae){var oe=-1;for(te=D;te<le;te++)if(Z(F,te)===Z(P,-1===oe?0:te-oe)){if(-1===oe&&(oe=te),te-oe+1===V)return oe*he}else-1!==oe&&(te-=te-oe),oe=-1}else for(D+V>le&&(D=le-V),te=D;te>=0;te--){for(var fe=!0,be=0;be<V;be++)if(Z(F,te+be)!==Z(P,be)){fe=!1;break}if(fe)return te}return-1}function O(F,P,D,G){D=Number(D)||0;var ae=F.length-D;G?(G=Number(G))>ae&&(G=ae):G=ae;var he=P.length;if(he%2!=0)throw new TypeError("Invalid hex string");G>he/2&&(G=he/2);for(var le=0;le<G;++le){var V=parseInt(P.substr(2*le,2),16);if(isNaN(V))return le;F[D+le]=V}return le}function h(F,P,D,G){return me(ce(P,F.length-D),F,D,G)}function A(F,P,D,G){return me(function ve(F){for(var P=[],D=0;D<F.length;++D)P.push(255&F.charCodeAt(D));return P}(P),F,D,G)}function v(F,P,D,G){return A(F,P,D,G)}function C(F,P,D,G){return me(pe(P),F,D,G)}function U(F,P,D,G){return me(function de(F,P){for(var D,G,he=[],le=0;le<F.length&&!((P-=2)<0);++le)G=(D=F.charCodeAt(le))>>8,he.push(D%256),he.push(G);return he}(P,F.length-D),F,D,G)}function N(F,P,D){return g.fromByteArray(0===P&&D===F.length?F:F.slice(P,D))}function j(F,P,D){D=Math.min(F.length,D);for(var G=[],ae=P;ae<D;){var Z,te,oe,fe,he=F[ae],le=null,V=he>239?4:he>223?3:he>191?2:1;if(ae+V<=D)switch(V){case 1:he<128&&(le=he);break;case 2:128==(192&(Z=F[ae+1]))&&(fe=(31&he)<<6|63&Z)>127&&(le=fe);break;case 3:te=F[ae+2],128==(192&(Z=F[ae+1]))&&128==(192&te)&&(fe=(15&he)<<12|(63&Z)<<6|63&te)>2047&&(fe<55296||fe>57343)&&(le=fe);break;case 4:te=F[ae+2],oe=F[ae+3],128==(192&(Z=F[ae+1]))&&128==(192&te)&&128==(192&oe)&&(fe=(15&he)<<18|(63&Z)<<12|(63&te)<<6|63&oe)>65535&&fe<1114112&&(le=fe)}null===le?(le=65533,V=1):le>65535&&(G.push((le-=65536)>>>10&1023|55296),le=56320|1023&le),G.push(le),ae+=V}return function re(F){var P=F.length;if(P<=Y)return String.fromCharCode.apply(String,F);for(var D="",G=0;G<P;)D+=String.fromCharCode.apply(String,F.slice(G,G+=Y));return D}(G)}w.hp=e,w.IS=50,e.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function r(){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}}(),i(),e.poolSize=8192,e._augment=function(F){return F.__proto__=e.prototype,F},e.from=function(F,P,D){return n(null,F,P,D)},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,P,D){return function u(F,P,D,G){return o(P),P<=0?s(F,P):void 0!==D?"string"==typeof G?s(F,P).fill(D,G):s(F,P).fill(D):s(F,P)}(null,F,P,D)},e.allocUnsafe=function(F){return p(null,F)},e.allocUnsafeSlow=function(F){return p(null,F)},e.isBuffer=function(P){return!(null==P||!P._isBuffer)},e.compare=function(P,D){if(!e.isBuffer(P)||!e.isBuffer(D))throw new TypeError("Arguments must be Buffers");if(P===D)return 0;for(var G=P.length,ae=D.length,he=0,le=Math.min(G,ae);he<le;++he)if(P[he]!==D[he]){G=P[he],ae=D[he];break}return G<ae?-1:ae<G?1:0},e.isEncoding=function(P){switch(String(P).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(P,D){if(!t(P))throw new TypeError('"list" argument must be an Array of Buffers');if(0===P.length)return e.alloc(0);var G;if(void 0===D)for(D=0,G=0;G<P.length;++G)D+=P[G].length;var ae=e.allocUnsafe(D),he=0;for(G=0;G<P.length;++G){var le=P[G];if(!e.isBuffer(le))throw new TypeError('"list" argument must be an Array of Buffers');le.copy(ae,he),he+=le.length}return ae},e.byteLength=x,e.prototype._isBuffer=!0,e.prototype.swap16=function(){var P=this.length;if(P%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var D=0;D<P;D+=2)L(this,D,D+1);return this},e.prototype.swap32=function(){var P=this.length;if(P%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var D=0;D<P;D+=4)L(this,D,D+3),L(this,D+1,D+2);return this},e.prototype.swap64=function(){var P=this.length;if(P%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var D=0;D<P;D+=8)L(this,D,D+7),L(this,D+1,D+6),L(this,D+2,D+5),L(this,D+3,D+4);return this},e.prototype.toString=function(){var P=0|this.length;return 0===P?"":0===arguments.length?j(this,0,P):I.apply(this,arguments)},e.prototype.equals=function(P){if(!e.isBuffer(P))throw new TypeError("Argument must be a Buffer");return this===P||0===e.compare(this,P)},e.prototype.inspect=function(){var P="",D=w.IS;return this.length>0&&(P=this.toString("hex",0,D).match(/.{2}/g).join(" "),this.length>D&&(P+=" ... ")),"<Buffer "+P+">"},e.prototype.compare=function(P,D,G,ae,he){if(!e.isBuffer(P))throw new TypeError("Argument must be a Buffer");if(void 0===D&&(D=0),void 0===G&&(G=P?P.length:0),void 0===ae&&(ae=0),void 0===he&&(he=this.length),D<0||G>P.length||ae<0||he>this.length)throw new RangeError("out of range index");if(ae>=he&&D>=G)return 0;if(ae>=he)return-1;if(D>=G)return 1;if(this===P)return 0;for(var le=(he>>>=0)-(ae>>>=0),V=(G>>>=0)-(D>>>=0),Z=Math.min(le,V),te=this.slice(ae,he),oe=P.slice(D,G),fe=0;fe<Z;++fe)if(te[fe]!==oe[fe]){le=te[fe],V=oe[fe];break}return le<V?-1:V<le?1:0},e.prototype.includes=function(P,D,G){return-1!==this.indexOf(P,D,G)},e.prototype.indexOf=function(P,D,G){return R(this,P,D,G,!0)},e.prototype.lastIndexOf=function(P,D,G){return R(this,P,D,G,!1)},e.prototype.write=function(P,D,G,ae){if(void 0===D)ae="utf8",G=this.length,D=0;else if(void 0===G&&"string"==typeof D)ae=D,G=this.length,D=0;else{if(!isFinite(D))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");D|=0,isFinite(G)?(G|=0,void 0===ae&&(ae="utf8")):(ae=G,G=void 0)}var he=this.length-D;if((void 0===G||G>he)&&(G=he),P.length>0&&(G<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");for(var le=!1;;)switch(ae){case"hex":return O(this,P,D,G);case"utf8":case"utf-8":return h(this,P,D,G);case"ascii":return A(this,P,D,G);case"latin1":case"binary":return v(this,P,D,G);case"base64":return C(this,P,D,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,P,D,G);default:if(le)throw new TypeError("Unknown encoding: "+ae);ae=(""+ae).toLowerCase(),le=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Y=4096;function B(F,P,D){var G="";D=Math.min(F.length,D);for(var ae=P;ae<D;++ae)G+=String.fromCharCode(127&F[ae]);return G}function J(F,P,D){var G="";D=Math.min(F.length,D);for(var ae=P;ae<D;++ae)G+=String.fromCharCode(F[ae]);return G}function Q(F,P,D){var G=F.length;(!P||P<0)&&(P=0),(!D||D<0||D>G)&&(D=G);for(var ae="",he=P;he<D;++he)ae+=se(F[he]);return ae}function H(F,P,D){for(var G=F.slice(P,D),ae="",he=0;he<G.length;he+=2)ae+=String.fromCharCode(G[he]+256*G[he+1]);return ae}function z(F,P,D){if(F%1!=0||F<0)throw new RangeError("offset is not uint");if(F+P>D)throw new RangeError("Trying to access beyond buffer length")}function $(F,P,D,G,ae,he){if(!e.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(P>ae||P<he)throw new RangeError('"value" argument is out of bounds');if(D+G>F.length)throw new RangeError("Index out of range")}function X(F,P,D,G){P<0&&(P=65535+P+1);for(var ae=0,he=Math.min(F.length-D,2);ae<he;++ae)F[D+ae]=(P&255<<8*(G?ae:1-ae))>>>8*(G?ae:1-ae)}function M(F,P,D,G){P<0&&(P=4294967295+P+1);for(var ae=0,he=Math.min(F.length-D,4);ae<he;++ae)F[D+ae]=P>>>8*(G?ae:3-ae)&255}function S(F,P,D,G,ae,he){if(D+G>F.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function T(F,P,D,G,ae){return ae||S(F,0,D,4),l.write(F,P,D,G,23,4),D+4}function k(F,P,D,G,ae){return ae||S(F,0,D,8),l.write(F,P,D,G,52,8),D+8}e.prototype.slice=function(P,D){var ae,G=this.length;if((P=~~P)<0?(P+=G)<0&&(P=0):P>G&&(P=G),(D=void 0===D?G:~~D)<0?(D+=G)<0&&(D=0):D>G&&(D=G),D<P&&(D=P),e.TYPED_ARRAY_SUPPORT)(ae=this.subarray(P,D)).__proto__=e.prototype;else{var he=D-P;ae=new e(he,void 0);for(var le=0;le<he;++le)ae[le]=this[le+P]}return ae},e.prototype.readUIntLE=function(P,D,G){P|=0,D|=0,G||z(P,D,this.length);for(var ae=this[P],he=1,le=0;++le<D&&(he*=256);)ae+=this[P+le]*he;return ae},e.prototype.readUIntBE=function(P,D,G){P|=0,D|=0,G||z(P,D,this.length);for(var ae=this[P+--D],he=1;D>0&&(he*=256);)ae+=this[P+--D]*he;return ae},e.prototype.readUInt8=function(P,D){return D||z(P,1,this.length),this[P]},e.prototype.readUInt16LE=function(P,D){return D||z(P,2,this.length),this[P]|this[P+1]<<8},e.prototype.readUInt16BE=function(P,D){return D||z(P,2,this.length),this[P]<<8|this[P+1]},e.prototype.readUInt32LE=function(P,D){return D||z(P,4,this.length),(this[P]|this[P+1]<<8|this[P+2]<<16)+16777216*this[P+3]},e.prototype.readUInt32BE=function(P,D){return D||z(P,4,this.length),16777216*this[P]+(this[P+1]<<16|this[P+2]<<8|this[P+3])},e.prototype.readIntLE=function(P,D,G){P|=0,D|=0,G||z(P,D,this.length);for(var ae=this[P],he=1,le=0;++le<D&&(he*=256);)ae+=this[P+le]*he;return ae>=(he*=128)&&(ae-=Math.pow(2,8*D)),ae},e.prototype.readIntBE=function(P,D,G){P|=0,D|=0,G||z(P,D,this.length);for(var ae=D,he=1,le=this[P+--ae];ae>0&&(he*=256);)le+=this[P+--ae]*he;return le>=(he*=128)&&(le-=Math.pow(2,8*D)),le},e.prototype.readInt8=function(P,D){return D||z(P,1,this.length),128&this[P]?-1*(255-this[P]+1):this[P]},e.prototype.readInt16LE=function(P,D){D||z(P,2,this.length);var G=this[P]|this[P+1]<<8;return 32768&G?4294901760|G:G},e.prototype.readInt16BE=function(P,D){D||z(P,2,this.length);var G=this[P+1]|this[P]<<8;return 32768&G?4294901760|G:G},e.prototype.readInt32LE=function(P,D){return D||z(P,4,this.length),this[P]|this[P+1]<<8|this[P+2]<<16|this[P+3]<<24},e.prototype.readInt32BE=function(P,D){return D||z(P,4,this.length),this[P]<<24|this[P+1]<<16|this[P+2]<<8|this[P+3]},e.prototype.readFloatLE=function(P,D){return D||z(P,4,this.length),l.read(this,P,!0,23,4)},e.prototype.readFloatBE=function(P,D){return D||z(P,4,this.length),l.read(this,P,!1,23,4)},e.prototype.readDoubleLE=function(P,D){return D||z(P,8,this.length),l.read(this,P,!0,52,8)},e.prototype.readDoubleBE=function(P,D){return D||z(P,8,this.length),l.read(this,P,!1,52,8)},e.prototype.writeUIntLE=function(P,D,G,ae){P=+P,D|=0,G|=0,ae||$(this,P,D,G,Math.pow(2,8*G)-1,0);var le=1,V=0;for(this[D]=255&P;++V<G&&(le*=256);)this[D+V]=P/le&255;return D+G},e.prototype.writeUIntBE=function(P,D,G,ae){P=+P,D|=0,G|=0,ae||$(this,P,D,G,Math.pow(2,8*G)-1,0);var le=G-1,V=1;for(this[D+le]=255&P;--le>=0&&(V*=256);)this[D+le]=P/V&255;return D+G},e.prototype.writeUInt8=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,1,255,0),e.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),this[D]=255&P,D+1},e.prototype.writeUInt16LE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[D]=255&P,this[D+1]=P>>>8):X(this,P,D,!0),D+2},e.prototype.writeUInt16BE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[D]=P>>>8,this[D+1]=255&P):X(this,P,D,!1),D+2},e.prototype.writeUInt32LE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[D+3]=P>>>24,this[D+2]=P>>>16,this[D+1]=P>>>8,this[D]=255&P):M(this,P,D,!0),D+4},e.prototype.writeUInt32BE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[D]=P>>>24,this[D+1]=P>>>16,this[D+2]=P>>>8,this[D+3]=255&P):M(this,P,D,!1),D+4},e.prototype.writeIntLE=function(P,D,G,ae){if(P=+P,D|=0,!ae){var he=Math.pow(2,8*G-1);$(this,P,D,G,he-1,-he)}var le=0,V=1,Z=0;for(this[D]=255&P;++le<G&&(V*=256);)P<0&&0===Z&&0!==this[D+le-1]&&(Z=1),this[D+le]=(P/V|0)-Z&255;return D+G},e.prototype.writeIntBE=function(P,D,G,ae){if(P=+P,D|=0,!ae){var he=Math.pow(2,8*G-1);$(this,P,D,G,he-1,-he)}var le=G-1,V=1,Z=0;for(this[D+le]=255&P;--le>=0&&(V*=256);)P<0&&0===Z&&0!==this[D+le+1]&&(Z=1),this[D+le]=(P/V|0)-Z&255;return D+G},e.prototype.writeInt8=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,1,127,-128),e.TYPED_ARRAY_SUPPORT||(P=Math.floor(P)),P<0&&(P=255+P+1),this[D]=255&P,D+1},e.prototype.writeInt16LE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[D]=255&P,this[D+1]=P>>>8):X(this,P,D,!0),D+2},e.prototype.writeInt16BE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[D]=P>>>8,this[D+1]=255&P):X(this,P,D,!1),D+2},e.prototype.writeInt32LE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[D]=255&P,this[D+1]=P>>>8,this[D+2]=P>>>16,this[D+3]=P>>>24):M(this,P,D,!0),D+4},e.prototype.writeInt32BE=function(P,D,G){return P=+P,D|=0,G||$(this,P,D,4,2147483647,-2147483648),P<0&&(P=4294967295+P+1),e.TYPED_ARRAY_SUPPORT?(this[D]=P>>>24,this[D+1]=P>>>16,this[D+2]=P>>>8,this[D+3]=255&P):M(this,P,D,!1),D+4},e.prototype.writeFloatLE=function(P,D,G){return T(this,P,D,!0,G)},e.prototype.writeFloatBE=function(P,D,G){return T(this,P,D,!1,G)},e.prototype.writeDoubleLE=function(P,D,G){return k(this,P,D,!0,G)},e.prototype.writeDoubleBE=function(P,D,G){return k(this,P,D,!1,G)},e.prototype.copy=function(P,D,G,ae){if(G||(G=0),!ae&&0!==ae&&(ae=this.length),D>=P.length&&(D=P.length),D||(D=0),ae>0&&ae<G&&(ae=G),ae===G||0===P.length||0===this.length)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw new RangeError("sourceStart out of bounds");if(ae<0)throw new RangeError("sourceEnd out of bounds");ae>this.length&&(ae=this.length),P.length-D<ae-G&&(ae=P.length-D+G);var le,he=ae-G;if(this===P&&G<D&&D<ae)for(le=he-1;le>=0;--le)P[le+D]=this[le+G];else if(he<1e3||!e.TYPED_ARRAY_SUPPORT)for(le=0;le<he;++le)P[le+D]=this[le+G];else Uint8Array.prototype.set.call(P,this.subarray(G,G+he),D);return he},e.prototype.fill=function(P,D,G,ae){if("string"==typeof P){if("string"==typeof D?(ae=D,D=0,G=this.length):"string"==typeof G&&(ae=G,G=this.length),1===P.length){var he=P.charCodeAt(0);he<256&&(P=he)}if(void 0!==ae&&"string"!=typeof ae)throw new TypeError("encoding must be a string");if("string"==typeof ae&&!e.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae)}else"number"==typeof P&&(P&=255);if(D<0||this.length<D||this.length<G)throw new RangeError("Out of range index");if(G<=D)return this;var le;if(D>>>=0,G=void 0===G?this.length:G>>>0,P||(P=0),"number"==typeof P)for(le=D;le<G;++le)this[le]=P;else{var V=e.isBuffer(P)?P:ce(new e(P,ae).toString()),Z=V.length;for(le=0;le<G-D;++le)this[le+D]=V[le%Z]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function se(F){return F<16?"0"+F.toString(16):F.toString(16)}function ce(F,P){P=P||1/0;for(var D,G=F.length,ae=null,he=[],le=0;le<G;++le){if((D=F.charCodeAt(le))>55295&&D<57344){if(!ae){if(D>56319){(P-=3)>-1&&he.push(239,191,189);continue}if(le+1===G){(P-=3)>-1&&he.push(239,191,189);continue}ae=D;continue}if(D<56320){(P-=3)>-1&&he.push(239,191,189),ae=D;continue}D=65536+(ae-55296<<10|D-56320)}else ae&&(P-=3)>-1&&he.push(239,191,189);if(ae=null,D<128){if((P-=1)<0)break;he.push(D)}else if(D<2048){if((P-=2)<0)break;he.push(D>>6|192,63&D|128)}else if(D<65536){if((P-=3)<0)break;he.push(D>>12|224,D>>6&63|128,63&D|128)}else{if(!(D<1114112))throw new Error("Invalid code point");if((P-=4)<0)break;he.push(D>>18|240,D>>12&63|128,D>>6&63|128,63&D|128)}}return he}function pe(F){return g.toByteArray(function ee(F){if((F=function ne(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(F).replace(K,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F}(F))}function me(F,P,D,G){for(var ae=0;ae<G&&!(ae+D>=P.length||ae>=F.length);++ae)P[ae+D]=F[ae];return ae}},40588:(W,w,c)=>{"use strict";var a=c(92293),g=c(23968),l=g(a("String.prototype.indexOf"));W.exports=function(r,i){var s=a(r,!!i);return"function"==typeof s&&l(r,".prototype.")>-1?g(s):s}},23968:(W,w,c)=>{"use strict";var a=c(90320),g=c(92293),l=c(27607),t=c(48842),r=g("%Function.prototype.apply%"),i=g("%Function.prototype.call%"),s=g("%Reflect.apply%",!0)||a.call(i,r),e=c(54609),n=g("%Math.max%");W.exports=function(p){if("function"!=typeof p)throw new t("a function is required");var f=s(a,i,arguments);return l(f,1+n(0,p.length-(arguments.length-1)),!0)};var o=function(){return s(a,r,arguments)};e?e(W.exports,"apply",{value:o}):W.exports.apply=o},52528:(W,w,c)=>{function r(){var s;try{s=w.storage.debug}catch{}return!s&&typeof process<"u"&&"env"in process&&(s=process.env.DEBUG),s}(w=W.exports=c(71323)).log=function l(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},w.formatArgs=function g(s){var e=this.useColors;if(s[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+s[0]+(e?"%c ":" ")+"+"+w.humanize(this.diff),e){var n="color: "+this.color;s.splice(1,0,n,"color: inherit");var o=0,u=0;s[0].replace(/%[a-zA-Z%]/g,function(p){"%%"!==p&&(o++,"%c"===p&&(u=o))}),s.splice(u,0,n)}},w.save=function t(s){try{null==s?w.storage.removeItem("debug"):w.storage.debug=s}catch{}},w.load=r,w.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+)/)},w.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:function i(){try{return window.localStorage}catch{}}(),w.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],w.formatters.j=function(s){try{return JSON.stringify(s)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},w.enable(r())},71323:(W,w,c)=>{var a;function l(e){function n(){if(n.enabled){var o=n,u=+new Date;o.diff=u-(a||u),o.prev=a,o.curr=u,a=u;for(var f=new Array(arguments.length),E=0;E<f.length;E++)f[E]=arguments[E];f[0]=w.coerce(f[0]),"string"!=typeof f[0]&&f.unshift("%O");var b=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,function(d,m){if("%%"===d)return d;b++;var x=w.formatters[m];return"function"==typeof x&&(d=x.call(o,f[b]),f.splice(b,1),b--),d}),w.formatArgs.call(o,f),(n.log||w.log||console.log.bind(console)).apply(o,f)}}return n.namespace=e,n.enabled=w.enabled(e),n.useColors=w.useColors(),n.color=function g(e){var o,n=0;for(o in e)n=(n<<5)-n+e.charCodeAt(o),n|=0;return w.colors[Math.abs(n)%w.colors.length]}(e),"function"==typeof w.init&&w.init(n),n}(w=W.exports=l.debug=l.default=l).coerce=function s(e){return e instanceof Error?e.stack||e.message:e},w.disable=function r(){w.enable("")},w.enable=function t(e){w.save(e),w.names=[],w.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length,u=0;u<o;u++)n[u]&&("-"===(e=n[u].replace(/\*/g,".*?"))[0]?w.skips.push(new RegExp("^"+e.substr(1)+"$")):w.names.push(new RegExp("^"+e+"$")))},w.enabled=function i(e){var n,o;for(n=0,o=w.skips.length;n<o;n++)if(w.skips[n].test(e))return!1;for(n=0,o=w.names.length;n<o;n++)if(w.names[n].test(e))return!0;return!1},w.humanize=c(4432),w.names=[],w.skips=[],w.formatters={}},26826:(W,w,c)=>{"use strict";var a=c(54609),g=c(58769),l=c(48842),t=c(16530);W.exports=function(i,s,e){if(!i||"object"!=typeof i&&"function"!=typeof i)throw new l("`obj` must be an object or a function`");if("string"!=typeof s&&"symbol"!=typeof s)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],f=!!t&&t(i,s);if(a)a(i,s,{configurable:null===u&&f?f.configurable:!u,enumerable:null===n&&f?f.enumerable:!n,value:e,writable:null===o&&f?f.writable:!o});else{if(!p&&(n||o||u))throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");i[s]=e}}},54609:(W,w,c)=>{"use strict";var g=c(92293)("%Object.defineProperty%",!0)||!1;if(g)try{g({},"a",{value:1})}catch{g=!1}W.exports=g},84584:W=>{"use strict";W.exports=EvalError},37084:W=>{"use strict";W.exports=Error},9265:W=>{"use strict";W.exports=RangeError},23169:W=>{"use strict";W.exports=ReferenceError},58769:W=>{"use strict";W.exports=SyntaxError},48842:W=>{"use strict";W.exports=TypeError},85466:W=>{"use strict";W.exports=URIError},97612:W=>{function w(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function c(t){return"function"==typeof t}function g(t){return"object"==typeof t&&null!==t}function l(t){return void 0===t}W.exports=w,w.EventEmitter=w,w.prototype._events=void 0,w.prototype._maxListeners=void 0,w.defaultMaxListeners=10,w.prototype.setMaxListeners=function(t){if(!function a(t){return"number"==typeof t}(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},w.prototype.emit=function(t){var r,i,s,e,n,o;if(this._events||(this._events={}),"error"===t&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if((r=arguments[1])instanceof Error)throw r;var u=new Error('Uncaught, unspecified "error" event. ('+r+")");throw u.context=r,u}if(l(i=this._events[t]))return!1;if(c(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:e=Array.prototype.slice.call(arguments,1),i.apply(this,e)}else if(g(i))for(e=Array.prototype.slice.call(arguments,1),s=(o=i.slice()).length,n=0;n<s;n++)o[n].apply(this,e);return!0},w.prototype.on=w.prototype.addListener=function(t,r){var i;if(!c(r))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,c(r.listener)?r.listener:r),this._events[t]?g(this._events[t])?this._events[t].push(r):this._events[t]=[this._events[t],r]:this._events[t]=r,g(this._events[t])&&!this._events[t].warned&&(i=l(this._maxListeners)?w.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},w.prototype.once=function(t,r){if(!c(r))throw TypeError("listener must be a function");var i=!1;function s(){this.removeListener(t,s),i||(i=!0,r.apply(this,arguments))}return s.listener=r,this.on(t,s),this},w.prototype.removeListener=function(t,r){var i,s,e,n;if(!c(r))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(e=(i=this._events[t]).length,s=-1,i===r||c(i.listener)&&i.listener===r)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,r);else if(g(i)){for(n=e;n-- >0;)if(i[n]===r||i[n].listener&&i[n].listener===r){s=n;break}if(s<0)return this;1===i.length?(i.length=0,delete this._events[t]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",t,r)}return this},w.prototype.removeAllListeners=function(t){var r,i;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(r in this._events)"removeListener"!==r&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events={},this}if(c(i=this._events[t]))this.removeListener(t,i);else if(i)for(;i.length;)this.removeListener(t,i[i.length-1]);return delete this._events[t],this},w.prototype.listeners=function(t){return this._events&&this._events[t]?c(this._events[t])?[this._events[t]]:this._events[t].slice():[]},w.prototype.listenerCount=function(t){if(this._events){var r=this._events[t];if(c(r))return 1;if(r)return r.length}return 0},w.listenerCount=function(t,r){return t.listenerCount(r)}},25635:W=>{"use strict";W.exports=function(w,c){c||(c={}),"function"==typeof c&&(c={cmp:c});var a="boolean"==typeof c.cycles&&c.cycles,g=c.cmp&&function(t){return function(r){return function(i,s){return t({key:i,value:r[i]},{key:s,value:r[s]})}}}(c.cmp),l=[];return function t(r){if(r&&r.toJSON&&"function"==typeof r.toJSON&&(r=r.toJSON()),void 0!==r){if("number"==typeof r)return isFinite(r)?""+r:"null";if("object"!=typeof r)return JSON.stringify(r);var i,s;if(Array.isArray(r)){for(s="[",i=0;i<r.length;i++)i&&(s+=","),s+=t(r[i])||"null";return s+"]"}if(null===r)return"null";if(-1!==l.indexOf(r)){if(a)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var e=l.push(r)-1,n=Object.keys(r).sort(g&&g(r));for(s="",i=0;i<n.length;i++){var o=n[i],u=t(r[o]);u&&(s&&(s+=","),s+=JSON.stringify(o)+":"+u)}return l.splice(e,1),"{"+s+"}"}}(w)}},21426:(W,w,c)=>{"use strict";var a=c(88448),g=Object.prototype.toString,l=Object.prototype.hasOwnProperty;W.exports=function(n,o,u){if(!a(o))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=u),"[object Array]"===g.call(n)?function(n,o,u){for(var p=0,f=n.length;p<f;p++)l.call(n,p)&&(null==u?o(n[p],p,n):o.call(u,n[p],p,n))}(n,o,p):"string"==typeof n?function(n,o,u){for(var p=0,f=n.length;p<f;p++)null==u?o(n.charAt(p),p,n):o.call(u,n.charAt(p),p,n)}(n,o,p):function(n,o,u){for(var p in n)l.call(n,p)&&(null==u?o(n[p],p,n):o.call(u,n[p],p,n))}(n,o,p)}},74100:W=>{"use strict";var c=Object.prototype.toString,a=Math.max,l=function(s,e){for(var n=[],o=0;o<s.length;o+=1)n[o]=s[o];for(var u=0;u<e.length;u+=1)n[u+s.length]=e[u];return n};W.exports=function(s){var e=this;if("function"!=typeof e||"[object Function]"!==c.apply(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var o,n=function(s){for(var n=[],o=1,u=0;o<s.length;o+=1,u+=1)n[u]=s[o];return n}(arguments),p=a(0,e.length-n.length),f=[],E=0;E<p;E++)f[E]="$"+E;if(o=Function("binder","return function ("+function(i){for(var e="",n=0;n<i.length;n+=1)e+=i[n],n+1<i.length&&(e+=",");return e}(f)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var y=e.apply(this,l(n,arguments));return Object(y)===y?y:this}return e.apply(s,l(n,arguments))}),e.prototype){var b=function(){};b.prototype=e.prototype,o.prototype=new b,b.prototype=null}return o}},90320:(W,w,c)=>{"use strict";var a=c(74100);W.exports=Function.prototype.bind||a},92293:(W,w,c)=>{"use strict";var a,g=c(37084),l=c(84584),t=c(9265),r=c(23169),i=c(58769),s=c(48842),e=c(85466),n=Function,o=function(B){try{return n('"use strict"; return ('+B+").constructor;")()}catch{}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch{u=null}var p=function(){throw new s},f=u?function(){try{return p}catch{try{return u(arguments,"callee").get}catch{return p}}}():p,E=c(51652)(),b=c(42798)(),y=Object.getPrototypeOf||(b?function(B){return B.__proto__}:null),d={},m=typeof Uint8Array>"u"||!y?a:y(Uint8Array),x={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?a:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?a:ArrayBuffer,"%ArrayIteratorPrototype%":E&&y?y([][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,"%BigInt64Array%":typeof BigInt64Array>"u"?a:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":g,"%eval%":eval,"%EvalError%":l,"%Float32Array%":typeof Float32Array>"u"?a:Float32Array,"%Float64Array%":typeof Float64Array>"u"?a:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?a:FinalizationRegistry,"%Function%":n,"%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%":E&&y?y(y([][Symbol.iterator]())):a,"%JSON%":"object"==typeof JSON?JSON:a,"%Map%":typeof Map>"u"?a:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!y?a:y((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%":t,"%ReferenceError%":r,"%Reflect%":typeof Reflect>"u"?a:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?a:Set,"%SetIteratorPrototype%":typeof Set>"u"||!E||!y?a:y((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&y?y(""[Symbol.iterator]()):a,"%Symbol%":E?Symbol:a,"%SyntaxError%":i,"%ThrowTypeError%":f,"%TypedArray%":m,"%TypeError%":s,"%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%":e,"%WeakMap%":typeof WeakMap>"u"?a:WeakMap,"%WeakRef%":typeof WeakRef>"u"?a:WeakRef,"%WeakSet%":typeof WeakSet>"u"?a:WeakSet};if(y)try{null.error}catch(B){var I=y(y(B));x["%Error.prototype%"]=I}var L=function B(J){var Q;if("%AsyncFunction%"===J)Q=o("async function () {}");else if("%GeneratorFunction%"===J)Q=o("function* () {}");else if("%AsyncGeneratorFunction%"===J)Q=o("async function* () {}");else if("%AsyncGenerator%"===J){var H=B("%AsyncGeneratorFunction%");H&&(Q=H.prototype)}else if("%AsyncIteratorPrototype%"===J){var z=B("%AsyncGenerator%");z&&y&&(Q=y(z.prototype))}return x[J]=Q,Q},R={__proto__:null,"%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"]},_=c(90320),O=c(69946),h=_.call(Function.call,Array.prototype.concat),A=_.call(Function.apply,Array.prototype.splice),v=_.call(Function.call,String.prototype.replace),C=_.call(Function.call,String.prototype.slice),U=_.call(Function.call,RegExp.prototype.exec),N=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,j=/\\(\\)?/g,re=function(J,Q){var z,H=J;if(O(R,H)&&(H="%"+(z=R[H])[0]+"%"),O(x,H)){var $=x[H];if($===d&&($=L(H)),typeof $>"u"&&!Q)throw new s("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:z,name:H,value:$}}throw new i("intrinsic "+J+" does not exist!")};W.exports=function(J,Q){if("string"!=typeof J||0===J.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof Q)throw new s('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,J))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var H=function(J){var Q=C(J,0,1),H=C(J,-1);if("%"===Q&&"%"!==H)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===H&&"%"!==Q)throw new i("invalid intrinsic syntax, expected opening `%`");var z=[];return v(J,N,function($,X,M,S){z[z.length]=M?v(S,j,"$1"):X||$}),z}(J),z=H.length>0?H[0]:"",$=re("%"+z+"%",Q),X=$.name,M=$.value,S=!1,T=$.alias;T&&(z=T[0],A(H,h([0,1],T)));for(var k=1,K=!0;k<H.length;k+=1){var ee=H[k],ne=C(ee,0,1),se=C(ee,-1);if(('"'===ne||"'"===ne||"`"===ne||'"'===se||"'"===se||"`"===se)&&ne!==se)throw new i("property names with quotes must have matching quotes");if(("constructor"===ee||!K)&&(S=!0),O(x,X="%"+(z+="."+ee)+"%"))M=x[X];else if(null!=M){if(!(ee in M)){if(!Q)throw new s("base intrinsic for "+J+" exists, but the property is not available.");return}if(u&&k+1>=H.length){var ce=u(M,ee);M=(K=!!ce)&&"get"in ce&&!("originalValue"in ce.get)?ce.get:M[ee]}else K=O(M,ee),M=M[ee];K&&!S&&(x[X]=M)}}return M}},16530:(W,w,c)=>{"use strict";var g=c(92293)("%Object.getOwnPropertyDescriptor%",!0);if(g)try{g([],"length")}catch{g=null}W.exports=g},8089:(W,w,c)=>{"use strict";c.d(w,{Ay:()=>m,Nh:()=>f,VC:()=>b,gi:()=>E,qj:()=>y});var a=c(29127),g=c(33662),l=new Map,t=new Map,r=!0,i=!1;function s(x){return x.replace(/[\s,]+/g," ").trim()}function u(x){var I=s(x);if(!l.has(I)){var L=(0,g.qg)(x,{experimentalFragmentVariables:i,allowLegacyFragmentVariables:i});if(!L||"Document"!==L.kind)throw new Error("Not a valid GraphQL document.");l.set(I,function o(x){var I=new Set(x.definitions);I.forEach(function(R){R.loc&&delete R.loc,Object.keys(R).forEach(function(_){var O=R[_];O&&"object"==typeof O&&I.add(O)})});var L=x.loc;return L&&(delete L.startToken,delete L.endToken),x}(function n(x){var I=new Set,L=[];return x.definitions.forEach(function(R){if("FragmentDefinition"===R.kind){var _=R.name.value,O=function e(x){return s(x.source.body.substring(x.start,x.end))}(R.loc),h=t.get(_);h&&!h.has(O)?r&&console.warn("Warning: fragment with name "+_+" 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"):h||t.set(_,h=new Set),h.add(O),I.has(O)||(I.add(O),L.push(R))}else L.push(R)}),(0,a.Cl)((0,a.Cl)({},x),{definitions:L})}(L)))}return l.get(I)}function p(x){for(var I=[],L=1;L<arguments.length;L++)I[L-1]=arguments[L];"string"==typeof x&&(x=[x]);var R=x[0];return I.forEach(function(_,O){R+=_&&"Document"===_.kind?_.loc.source.body:_,R+=x[O+1]}),u(R)}function f(){l.clear(),t.clear()}function E(){r=!1}function b(){i=!0}function y(){i=!1}var x,d_gql=p,d_resetCaches=f,d_disableFragmentWarnings=E,d_enableExperimentalFragmentVariables=b,d_disableExperimentalFragmentVariables=y;(x=p||(p={})).gql=d_gql,x.resetCaches=d_resetCaches,x.disableFragmentWarnings=d_disableFragmentWarnings,x.enableExperimentalFragmentVariables=d_enableExperimentalFragmentVariables,x.disableExperimentalFragmentVariables=d_disableExperimentalFragmentVariables,p.default=p;const m=p},80023:(W,w,c)=>{"use strict";var a=c(54609),g=function(){return!!a};g.hasArrayLengthDefineBug=function(){if(!a)return null;try{return 1!==a([],"length",{value:1}).length}catch{return!0}},W.exports=g},42798:W=>{"use strict";var w={__proto__:null,foo:{}},c=Object;W.exports=function(){return{__proto__:w}.foo===w.foo&&!(w instanceof c)}},51652:(W,w,c)=>{"use strict";var a=typeof Symbol<"u"&&Symbol,g=c(4182);W.exports=function(){return"function"==typeof a&&"function"==typeof Symbol&&"symbol"==typeof a("foo")&&"symbol"==typeof Symbol("bar")&&g()}},4182:W=>{"use strict";W.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var c={},a=Symbol("test"),g=Object(a);if("string"==typeof a||"[object Symbol]"!==Object.prototype.toString.call(a)||"[object Symbol]"!==Object.prototype.toString.call(g))return!1;for(a in c[a]=42,c)return!1;if("function"==typeof Object.keys&&0!==Object.keys(c).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(c).length)return!1;var t=Object.getOwnPropertySymbols(c);if(1!==t.length||t[0]!==a||!Object.prototype.propertyIsEnumerable.call(c,a))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(c,a);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},16075:(W,w,c)=>{"use strict";var a=c(4182);W.exports=function(){return a()&&!!Symbol.toStringTag}},69946:(W,w,c)=>{"use strict";var a=Function.prototype.call,g=Object.prototype.hasOwnProperty,l=c(90320);W.exports=l.call(a,g)},13900:(W,w)=>{w.read=function(c,a,g,l,t){var r,i,s=8*t-l-1,e=(1<<s)-1,n=e>>1,o=-7,u=g?t-1:0,p=g?-1:1,f=c[a+u];for(u+=p,r=f&(1<<-o)-1,f>>=-o,o+=s;o>0;r=256*r+c[a+u],u+=p,o-=8);for(i=r&(1<<-o)-1,r>>=-o,o+=l;o>0;i=256*i+c[a+u],u+=p,o-=8);if(0===r)r=1-n;else{if(r===e)return i?NaN:1/0*(f?-1:1);i+=Math.pow(2,l),r-=n}return(f?-1:1)*i*Math.pow(2,r-l)},w.write=function(c,a,g,l,t,r){var i,s,e,n=8*r-t-1,o=(1<<n)-1,u=o>>1,p=23===t?Math.pow(2,-24)-Math.pow(2,-77):0,f=l?0:r-1,E=l?1:-1,b=a<0||0===a&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(s=isNaN(a)?1:0,i=o):(i=Math.floor(Math.log(a)/Math.LN2),a*(e=Math.pow(2,-i))<1&&(i--,e*=2),(a+=i+u>=1?p/e:p*Math.pow(2,1-u))*e>=2&&(i++,e/=2),i+u>=o?(s=0,i=o):i+u>=1?(s=(a*e-1)*Math.pow(2,t),i+=u):(s=a*Math.pow(2,u-1)*Math.pow(2,t),i=0));t>=8;c[g+f]=255&s,f+=E,s/=256,t-=8);for(i=i<<t|s,n+=t;n>0;c[g+f]=255&i,f+=E,i/=256,n-=8);c[g+f-E]|=128*b}},13653:W=>{W.exports="function"==typeof Object.create?function(c,a){a&&(c.super_=a,c.prototype=Object.create(a.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}))}:function(c,a){if(a){c.super_=a;var g=function(){};g.prototype=a.prototype,c.prototype=new g,c.prototype.constructor=c}}},53361:W=>{"use strict";var w="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,c=Object.prototype.toString,a=function(r){return!(w&&r&&"object"==typeof r&&Symbol.toStringTag in r)&&"[object Arguments]"===c.call(r)},g=function(r){return!!a(r)||null!==r&&"object"==typeof r&&"number"==typeof r.length&&r.length>=0&&"[object Array]"!==c.call(r)&&"[object Function]"===c.call(r.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=g,W.exports=l?a:g},88448:W=>{"use strict";var a,g,w=Function.prototype.toString,c="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof c&&"function"==typeof Object.defineProperty)try{a=Object.defineProperty({},"length",{get:function(){throw g}}),g={},c(function(){throw 42},null,a)}catch(d){d!==g&&(c=null)}else c=null;var l=/^\s*class\b/,t=function(m){try{var x=w.call(m);return l.test(x)}catch{return!1}},r=function(m){try{return!t(m)&&(w.call(m),!0)}catch{return!1}},i=Object.prototype.toString,f="function"==typeof Symbol&&!!Symbol.toStringTag,E=!(0 in[,]),b=function(){return!1};if("object"==typeof document){var y=document.all;i.call(y)===i.call(document.all)&&(b=function(m){if((E||!m)&&(typeof m>"u"||"object"==typeof m))try{var x=i.call(m);return("[object HTMLAllCollection]"===x||"[object HTML document.all class]"===x||"[object HTMLCollection]"===x||"[object Object]"===x)&&null==m("")}catch{}return!1})}W.exports=c?function(m){if(b(m))return!0;if(!m||"function"!=typeof m&&"object"!=typeof m)return!1;try{c(m,null,a)}catch(x){if(x!==g)return!1}return!t(m)&&r(m)}:function(m){if(b(m))return!0;if(!m||"function"!=typeof m&&"object"!=typeof m)return!1;if(f)return r(m);if(t(m))return!1;var x=i.call(m);return!("[object Function]"!==x&&"[object GeneratorFunction]"!==x&&!/^\[object HTML/.test(x))&&r(m)}},46174:(W,w,c)=>{"use strict";var s,a=Object.prototype.toString,g=Function.prototype.toString,l=/^\s*(?:function)?\*/,t=c(16075)(),r=Object.getPrototypeOf;W.exports=function(n){if("function"!=typeof n)return!1;if(l.test(g.call(n)))return!0;if(!t)return"[object GeneratorFunction]"===a.call(n);if(!r)return!1;if(typeof s>"u"){var u=function(){if(!t)return!1;try{return Function("return function*() {}")()}catch{}}();s=!!u&&r(u)}return r(n)===s}},94345:(W,w,c)=>{"use strict";var a=c(21426),g=c(52365),l=c(40588),t=l("Object.prototype.toString"),r=c(16075)(),i=typeof globalThis>"u"?global:globalThis,s=g(),e=l("Array.prototype.indexOf",!0)||function(b,y){for(var d=0;d<b.length;d+=1)if(b[d]===y)return d;return-1},n=l("String.prototype.slice"),o={},u=c(43053),p=Object.getPrototypeOf;r&&u&&p&&a(s,function(E){var b=new i[E];if(Symbol.toStringTag in b){var y=p(b),d=u(y,Symbol.toStringTag);if(!d){var m=p(y);d=u(m,Symbol.toStringTag)}o[E]=d.get}}),W.exports=function(b){if(!b||"object"!=typeof b)return!1;if(!r||!(Symbol.toStringTag in b)){var y=n(t(b),8,-1);return e(s,y)>-1}return!!u&&function(b){var y=!1;return a(o,function(d,m){if(!y)try{y=d.call(b)===m}catch{}}),y}(b)}},62441:W=>{var w={}.toString;W.exports=Array.isArray||function(c){return"[object Array]"==w.call(c)}},60079:(W,w)=>{!function(c){"use strict";function a(V){return null!==V&&"[object Array]"===Object.prototype.toString.call(V)}function g(V){return null!==V&&"[object Object]"===Object.prototype.toString.call(V)}function l(V,Z){if(V===Z)return!0;if(Object.prototype.toString.call(V)!==Object.prototype.toString.call(Z))return!1;if(!0===a(V)){if(V.length!==Z.length)return!1;for(var oe=0;oe<V.length;oe++)if(!1===l(V[oe],Z[oe]))return!1;return!0}if(!0===g(V)){var fe={};for(var be in V)if(hasOwnProperty.call(V,be)){if(!1===l(V[be],Z[be]))return!1;fe[be]=!0}for(var Se in Z)if(hasOwnProperty.call(Z,Se)&&!0!==fe[Se])return!1;return!0}return!1}function t(V){if(""===V||!1===V||null===V)return!0;if(a(V)&&0===V.length)return!0;if(g(V)){for(var Z in V)if(V.hasOwnProperty(Z))return!1;return!0}return!1}var s;s="function"==typeof String.prototype.trimLeft?function(V){return V.trimLeft()}:function(V){return V.match(/^\s*(.*)/)[1]};var e=0,o=2,m={0:"number",1:"any",2:"string",3:"array",4:"object",5:"boolean",6:"expression",7:"null",8:"Array<number>",9:"Array<string>"},x="EOF",I="UnquotedIdentifier",L="QuotedIdentifier",R="Rbracket",_="Rparen",O="Comma",h="Colon",A="Rbrace",v="Number",C="Current",U="Expref",N="Pipe",j="Or",Y="And",B="GT",J="LT",Q="GTE",H="LTE",z="NE",$="Flatten",X="Star",M="Filter",S="Dot",T="Not",k="Lbrace",K="Lbracket",ee="Lparen",ne="Literal",se={".":S,"*":X,",":O,":":h,"{":k,"}":A,"]":R,"(":ee,")":_,"@":C},ce={"<":!0,">":!0,"=":!0,"!":!0},ve={" ":!0,"\t":!0,"\n":!0};function de(V){return V>="a"&&V<="z"||V>="A"&&V<="Z"||"_"===V}function pe(V){return V>="0"&&V<="9"||"-"===V}function me(V){return V>="a"&&V<="z"||V>="A"&&V<="Z"||V>="0"&&V<="9"||"_"===V}function ge(){}ge.prototype={tokenize:function(V){var te,oe,fe,Z=[];for(this._current=0;this._current<V.length;)if(de(V[this._current]))te=this._current,oe=this._consumeUnquotedIdentifier(V),Z.push({type:I,value:oe,start:te});else if(void 0!==se[V[this._current]])Z.push({type:se[V[this._current]],value:V[this._current],start:this._current}),this._current++;else if(pe(V[this._current]))fe=this._consumeNumber(V),Z.push(fe);else if("["===V[this._current])fe=this._consumeLBracket(V),Z.push(fe);else if('"'===V[this._current])te=this._current,oe=this._consumeQuotedIdentifier(V),Z.push({type:L,value:oe,start:te});else if("'"===V[this._current])te=this._current,oe=this._consumeRawStringLiteral(V),Z.push({type:ne,value:oe,start:te});else if("`"===V[this._current]){te=this._current;var be=this._consumeLiteral(V);Z.push({type:ne,value:be,start:te})}else if(void 0!==ce[V[this._current]])Z.push(this._consumeOperator(V));else if(void 0!==ve[V[this._current]])this._current++;else if("&"===V[this._current])te=this._current,this._current++,"&"===V[this._current]?(this._current++,Z.push({type:Y,value:"&&",start:te})):Z.push({type:U,value:"&",start:te});else{if("|"!==V[this._current]){var Se=new Error("Unknown character:"+V[this._current]);throw Se.name="LexerError",Se}te=this._current,this._current++,"|"===V[this._current]?(this._current++,Z.push({type:j,value:"||",start:te})):Z.push({type:N,value:"|",start:te})}return Z},_consumeUnquotedIdentifier:function(V){var Z=this._current;for(this._current++;this._current<V.length&&me(V[this._current]);)this._current++;return V.slice(Z,this._current)},_consumeQuotedIdentifier:function(V){var Z=this._current;this._current++;for(var te=V.length;'"'!==V[this._current]&&this._current<te;){var oe=this._current;"\\"!==V[oe]||"\\"!==V[oe+1]&&'"'!==V[oe+1]?oe++:oe+=2,this._current=oe}return this._current++,JSON.parse(V.slice(Z,this._current))},_consumeRawStringLiteral:function(V){var Z=this._current;this._current++;for(var te=V.length;"'"!==V[this._current]&&this._current<te;){var oe=this._current;"\\"!==V[oe]||"\\"!==V[oe+1]&&"'"!==V[oe+1]?oe++:oe+=2,this._current=oe}return this._current++,V.slice(Z+1,this._current-1).replace("\\'","'")},_consumeNumber:function(V){var Z=this._current;this._current++;for(var te=V.length;pe(V[this._current])&&this._current<te;)this._current++;var oe=parseInt(V.slice(Z,this._current));return{type:v,value:oe,start:Z}},_consumeLBracket:function(V){var Z=this._current;return this._current++,"?"===V[this._current]?(this._current++,{type:M,value:"[?",start:Z}):"]"===V[this._current]?(this._current++,{type:$,value:"[]",start:Z}):{type:K,value:"[",start:Z}},_consumeOperator:function(V){var Z=this._current,te=V[Z];return this._current++,"!"===te?"="===V[this._current]?(this._current++,{type:z,value:"!=",start:Z}):{type:T,value:"!",start:Z}:"<"===te?"="===V[this._current]?(this._current++,{type:H,value:"<=",start:Z}):{type:J,value:"<",start:Z}:">"===te?"="===V[this._current]?(this._current++,{type:Q,value:">=",start:Z}):{type:B,value:">",start:Z}:"="===te&&"="===V[this._current]?(this._current++,{type:"EQ",value:"==",start:Z}):void 0},_consumeLiteral:function(V){this._current++;for(var oe,Z=this._current,te=V.length;"`"!==V[this._current]&&this._current<te;){var fe=this._current;"\\"!==V[fe]||"\\"!==V[fe+1]&&"`"!==V[fe+1]?fe++:fe+=2,this._current=fe}var be=s(V.slice(Z,this._current));return be=be.replace("\\`","`"),oe=this._looksLikeJSON(be)?JSON.parse(be):JSON.parse('"'+be+'"'),this._current++,oe},_looksLikeJSON:function(V){if(""===V)return!1;if('[{"'.indexOf(V[0])>=0)return!0;if(["true","false","null"].indexOf(V)>=0)return!0;if(!("-0123456789".indexOf(V[0])>=0))return!1;try{return JSON.parse(V),!0}catch{return!1}}};var F={};function P(){}function D(V){this.runtime=V}function G(V){this._interpreter=V,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[e]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[e]}]},contains:{_func:this._functionContains,_signature:[{types:[o,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[o]},{types:[o]}]},floor:{_func:this._functionFloor,_signature:[{types:[e]}]},length:{_func:this._functionLength,_signature:[{types:[o,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[o]},{types:[o]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[o]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[o,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}F[x]=0,F[I]=0,F[L]=0,F[R]=0,F[_]=0,F[O]=0,F[A]=0,F[v]=0,F[C]=0,F[U]=0,F[N]=1,F[j]=2,F[Y]=3,F.EQ=5,F[B]=5,F[J]=5,F[Q]=5,F[H]=5,F[z]=5,F[$]=9,F[X]=20,F[M]=21,F[S]=40,F[T]=45,F[k]=50,F[K]=55,F[ee]=60,P.prototype={parse:function(V){this._loadTokens(V),this.index=0;var Z=this.expression(0);if(this._lookahead(0)!==x){var te=this._lookaheadToken(0),oe=new Error("Unexpected token type: "+te.type+", value: "+te.value);throw oe.name="ParserError",oe}return Z},_loadTokens:function(V){var te=(new ge).tokenize(V);te.push({type:x,value:"",start:V.length}),this.tokens=te},expression:function(V){var Z=this._lookaheadToken(0);this._advance();for(var te=this.nud(Z),oe=this._lookahead(0);V<F[oe];)this._advance(),te=this.led(oe,te),oe=this._lookahead(0);return te},_lookahead:function(V){return this.tokens[this.index+V].type},_lookaheadToken:function(V){return this.tokens[this.index+V]},_advance:function(){this.index++},nud:function(V){var te,oe;switch(V.type){case ne:return{type:"Literal",value:V.value};case I:return{type:"Field",name:V.value};case L:var fe={type:"Field",name:V.value};if(this._lookahead(0)===ee)throw new Error("Quoted identifier not allowed for function names.");return fe;case T:return{type:"NotExpression",children:[te=this.expression(F.Not)]};case X:return te=null,{type:"ValueProjection",children:[{type:"Identity"},te=this._lookahead(0)===R?{type:"Identity"}:this._parseProjectionRHS(F.Star)]};case M:return this.led(V.type,{type:"Identity"});case k:return this._parseMultiselectHash();case $:return{type:"Projection",children:[{type:$,children:[{type:"Identity"}]},te=this._parseProjectionRHS(F.Flatten)]};case K:return this._lookahead(0)===v||this._lookahead(0)===h?(te=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},te)):this._lookahead(0)===X&&this._lookahead(1)===R?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},te=this._parseProjectionRHS(F.Star)]}):this._parseMultiselectList();case C:return{type:C};case U:return{type:"ExpressionReference",children:[oe=this.expression(F.Expref)]};case ee:for(var be=[];this._lookahead(0)!==_;)this._lookahead(0)===C?(oe={type:C},this._advance()):oe=this.expression(0),be.push(oe);return this._match(_),be[0];default:this._errorToken(V)}},led:function(V,Z){var te;switch(V){case S:var oe=F.Dot;return this._lookahead(0)!==X?{type:"Subexpression",children:[Z,te=this._parseDotRHS(oe)]}:(this._advance(),{type:"ValueProjection",children:[Z,te=this._parseProjectionRHS(oe)]});case N:return te=this.expression(F.Pipe),{type:N,children:[Z,te]};case j:return{type:"OrExpression",children:[Z,te=this.expression(F.Or)]};case Y:return{type:"AndExpression",children:[Z,te=this.expression(F.And)]};case ee:for(var Se,fe=Z.name,be=[];this._lookahead(0)!==_;)this._lookahead(0)===C?(Se={type:C},this._advance()):Se=this.expression(0),this._lookahead(0)===O&&this._match(O),be.push(Se);return this._match(_),{type:"Function",name:fe,children:be};case M:var Ce=this.expression(0);return this._match(R),{type:"FilterProjection",children:[Z,te=this._lookahead(0)===$?{type:"Identity"}:this._parseProjectionRHS(F.Filter),Ce]};case $:return{type:"Projection",children:[{type:$,children:[Z]},this._parseProjectionRHS(F.Flatten)]};case"EQ":case z:case B:case Q:case J:case H:return this._parseComparator(Z,V);case K:var Ae=this._lookaheadToken(0);return Ae.type===v||Ae.type===h?(te=this._parseIndexExpression(),this._projectIfSlice(Z,te)):(this._match(X),this._match(R),{type:"Projection",children:[Z,te=this._parseProjectionRHS(F.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(V){if(this._lookahead(0)!==V){var Z=this._lookaheadToken(0),te=new Error("Expected "+V+", got: "+Z.type);throw te.name="ParserError",te}this._advance()},_errorToken:function(V){var Z=new Error("Invalid token ("+V.type+'): "'+V.value+'"');throw Z.name="ParserError",Z},_parseIndexExpression:function(){if(this._lookahead(0)===h||this._lookahead(1)===h)return this._parseSliceExpression();var V={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(R),V},_projectIfSlice:function(V,Z){var te={type:"IndexExpression",children:[V,Z]};return"Slice"===Z.type?{type:"Projection",children:[te,this._parseProjectionRHS(F.Star)]}:te},_parseSliceExpression:function(){for(var V=[null,null,null],Z=0,te=this._lookahead(0);te!==R&&Z<3;){if(te===h)Z++,this._advance();else{if(te!==v){var oe=this._lookahead(0),fe=new Error("Syntax error, unexpected token: "+oe.value+"("+oe.type+")");throw fe.name="Parsererror",fe}V[Z]=this._lookaheadToken(0).value,this._advance()}te=this._lookahead(0)}return this._match(R),{type:"Slice",children:V}},_parseComparator:function(V,Z){return{type:"Comparator",name:Z,children:[V,this.expression(F[Z])]}},_parseDotRHS:function(V){var Z=this._lookahead(0);return[I,L,X].indexOf(Z)>=0?this.expression(V):Z===K?(this._match(K),this._parseMultiselectList()):Z===k?(this._match(k),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(V){var Z;if(F[this._lookahead(0)]<10)Z={type:"Identity"};else if(this._lookahead(0)===K)Z=this.expression(V);else if(this._lookahead(0)===M)Z=this.expression(V);else{if(this._lookahead(0)!==S){var te=this._lookaheadToken(0),oe=new Error("Sytanx error, unexpected token: "+te.value+"("+te.type+")");throw oe.name="ParserError",oe}this._match(S),Z=this._parseDotRHS(V)}return Z},_parseMultiselectList:function(){for(var V=[];this._lookahead(0)!==R;){var Z=this.expression(0);if(V.push(Z),this._lookahead(0)===O&&(this._match(O),this._lookahead(0)===R))throw new Error("Unexpected token Rbracket")}return this._match(R),{type:"MultiSelectList",children:V}},_parseMultiselectHash:function(){for(var te,oe,fe,V=[],Z=[I,L];;){if(te=this._lookaheadToken(0),Z.indexOf(te.type)<0)throw new Error("Expecting an identifier token, got: "+te.type);if(oe=te.value,this._advance(),this._match(h),fe=this.expression(0),V.push({type:"KeyValuePair",name:oe,value:fe}),this._lookahead(0)===O)this._match(O);else if(this._lookahead(0)===A){this._match(A);break}}return{type:"MultiSelectHash",children:V}}},D.prototype={search:function(V,Z){return this.visit(V,Z)},visit:function(V,Z){var te,oe,fe,be,Se,we,Ce,Te,Ae;switch(V.type){case"Field":return null!==Z&&g(Z)?void 0===(we=Z[V.name])?null:we:null;case"Subexpression":for(fe=this.visit(V.children[0],Z),Ae=1;Ae<V.children.length;Ae++)if(null===(fe=this.visit(V.children[1],fe)))return null;return fe;case"IndexExpression":return Ce=this.visit(V.children[0],Z),this.visit(V.children[1],Ce);case"Index":if(!a(Z))return null;var Me=V.value;return Me<0&&(Me=Z.length+Me),void 0===(fe=Z[Me])&&(fe=null),fe;case"Slice":if(!a(Z))return null;var qe=V.children.slice(0),ke=this.computeSliceParams(Z.length,qe),Ue=ke[0],ze=ke[1],Be=ke[2];if(fe=[],Be>0)for(Ae=Ue;Ae<ze;Ae+=Be)fe.push(Z[Ae]);else for(Ae=Ue;Ae>ze;Ae+=Be)fe.push(Z[Ae]);return fe;case"Projection":var Ie=this.visit(V.children[0],Z);if(!a(Ie))return null;for(Te=[],Ae=0;Ae<Ie.length;Ae++)null!==(oe=this.visit(V.children[1],Ie[Ae]))&&Te.push(oe);return Te;case"ValueProjection":if(!g(Ie=this.visit(V.children[0],Z)))return null;Te=[];var je=function r(V){for(var Z=Object.keys(V),te=[],oe=0;oe<Z.length;oe++)te.push(V[Z[oe]]);return te}(Ie);for(Ae=0;Ae<je.length;Ae++)null!==(oe=this.visit(V.children[1],je[Ae]))&&Te.push(oe);return Te;case"FilterProjection":if(!a(Ie=this.visit(V.children[0],Z)))return null;var Le=[],Qe=[];for(Ae=0;Ae<Ie.length;Ae++)t(te=this.visit(V.children[2],Ie[Ae]))||Le.push(Ie[Ae]);for(var Ve=0;Ve<Le.length;Ve++)null!==(oe=this.visit(V.children[1],Le[Ve]))&&Qe.push(oe);return Qe;case"Comparator":switch(be=this.visit(V.children[0],Z),Se=this.visit(V.children[1],Z),V.name){case"EQ":fe=l(be,Se);break;case z:fe=!l(be,Se);break;case B:fe=be>Se;break;case Q:fe=be>=Se;break;case J:fe=be<Se;break;case H:fe=be<=Se;break;default:throw new Error("Unknown comparator: "+V.name)}return fe;case $:var We=this.visit(V.children[0],Z);if(!a(We))return null;var Fe=[];for(Ae=0;Ae<We.length;Ae++)a(oe=We[Ae])?Fe.push.apply(Fe,oe):Fe.push(oe);return Fe;case"Identity":return Z;case"MultiSelectList":if(null===Z)return null;for(Te=[],Ae=0;Ae<V.children.length;Ae++)Te.push(this.visit(V.children[Ae],Z));return Te;case"MultiSelectHash":if(null===Z)return null;var Ke;for(Te={},Ae=0;Ae<V.children.length;Ae++)Te[(Ke=V.children[Ae]).name]=this.visit(Ke.value,Z);return Te;case"OrExpression":return t(te=this.visit(V.children[0],Z))&&(te=this.visit(V.children[1],Z)),te;case"AndExpression":return!0===t(be=this.visit(V.children[0],Z))?be:this.visit(V.children[1],Z);case"NotExpression":return t(be=this.visit(V.children[0],Z));case"Literal":return V.value;case N:return Ce=this.visit(V.children[0],Z),this.visit(V.children[1],Ce);case C:return Z;case"Function":var Ne=[];for(Ae=0;Ae<V.children.length;Ae++)Ne.push(this.visit(V.children[Ae],Z));return this.runtime.callFunction(V.name,Ne);case"ExpressionReference":var He=V.children[0];return He.jmespathType=U,He;default:throw new Error("Unknown node type: "+V.type)}},computeSliceParams:function(V,Z){var te=Z[0],oe=Z[1],fe=Z[2],be=[null,null,null];if(null===fe)fe=1;else if(0===fe){var Se=new Error("Invalid slice, step cannot be 0");throw Se.name="RuntimeError",Se}var we=fe<0;return te=null===te?we?V-1:0:this.capSliceRange(V,te,fe),oe=null===oe?we?-1:V:this.capSliceRange(V,oe,fe),be[0]=te,be[1]=oe,be[2]=fe,be},capSliceRange:function(V,Z,te){return Z<0?(Z+=V)<0&&(Z=te<0?-1:0):Z>=V&&(Z=te<0?V-1:V),Z}},G.prototype={callFunction:function(V,Z){var te=this.functionTable[V];if(void 0===te)throw new Error("Unknown function: "+V+"()");return this._validateArgs(V,Z,te._signature),te._func.call(this,Z)},_validateArgs:function(V,Z,te){var oe;if(te[te.length-1].variadic){if(Z.length<te.length)throw oe=1===te.length?" argument":" arguments",new Error("ArgumentError: "+V+"() takes at least"+te.length+oe+" but received "+Z.length)}else if(Z.length!==te.length)throw oe=1===te.length?" argument":" arguments",new Error("ArgumentError: "+V+"() takes "+te.length+oe+" but received "+Z.length);for(var fe,be,Se,we=0;we<te.length;we++){Se=!1,fe=te[we].types,be=this._getTypeName(Z[we]);for(var Ce=0;Ce<fe.length;Ce++)if(this._typeMatches(be,fe[Ce],Z[we])){Se=!0;break}if(!Se){var Pe=fe.map(function(Te){return m[Te]}).join(",");throw new Error("TypeError: "+V+"() expected argument "+(we+1)+" to be type "+Pe+" but received type "+m[be]+" instead.")}}},_typeMatches:function(V,Z,te){if(1===Z)return!0;if(9!==Z&&8!==Z&&3!==Z)return V===Z;if(3===Z)return 3===V;if(3===V){var oe;8===Z?oe=e:9===Z&&(oe=o);for(var fe=0;fe<te.length;fe++)if(!this._typeMatches(this._getTypeName(te[fe]),oe,te[fe]))return!1;return!0}},_getTypeName:function(V){switch(Object.prototype.toString.call(V)){case"[object String]":return o;case"[object Number]":return e;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return V.jmespathType===U?6:4}},_functionStartsWith:function(V){return 0===V[0].lastIndexOf(V[1])},_functionEndsWith:function(V){var Z=V[0],te=V[1];return-1!==Z.indexOf(te,Z.length-te.length)},_functionReverse:function(V){if(this._getTypeName(V[0])===o){for(var te=V[0],oe="",fe=te.length-1;fe>=0;fe--)oe+=te[fe];return oe}var be=V[0].slice(0);return be.reverse(),be},_functionAbs:function(V){return Math.abs(V[0])},_functionCeil:function(V){return Math.ceil(V[0])},_functionAvg:function(V){for(var Z=0,te=V[0],oe=0;oe<te.length;oe++)Z+=te[oe];return Z/te.length},_functionContains:function(V){return V[0].indexOf(V[1])>=0},_functionFloor:function(V){return Math.floor(V[0])},_functionLength:function(V){return g(V[0])?Object.keys(V[0]).length:V[0].length},_functionMap:function(V){for(var Z=[],te=this._interpreter,oe=V[0],fe=V[1],be=0;be<fe.length;be++)Z.push(te.visit(oe,fe[be]));return Z},_functionMerge:function(V){for(var Z={},te=0;te<V.length;te++){var oe=V[te];for(var fe in oe)Z[fe]=oe[fe]}return Z},_functionMax:function(V){if(V[0].length>0){if(this._getTypeName(V[0][0])===e)return Math.max.apply(Math,V[0]);for(var te=V[0],oe=te[0],fe=1;fe<te.length;fe++)oe.localeCompare(te[fe])<0&&(oe=te[fe]);return oe}return null},_functionMin:function(V){if(V[0].length>0){if(this._getTypeName(V[0][0])===e)return Math.min.apply(Math,V[0]);for(var te=V[0],oe=te[0],fe=1;fe<te.length;fe++)te[fe].localeCompare(oe)<0&&(oe=te[fe]);return oe}return null},_functionSum:function(V){for(var Z=0,te=V[0],oe=0;oe<te.length;oe++)Z+=te[oe];return Z},_functionType:function(V){switch(this._getTypeName(V[0])){case e:return"number";case o:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(V){return Object.keys(V[0])},_functionValues:function(V){for(var Z=V[0],te=Object.keys(Z),oe=[],fe=0;fe<te.length;fe++)oe.push(Z[te[fe]]);return oe},_functionJoin:function(V){return V[1].join(V[0])},_functionToArray:function(V){return 3===this._getTypeName(V[0])?V[0]:[V[0]]},_functionToString:function(V){return this._getTypeName(V[0])===o?V[0]:JSON.stringify(V[0])},_functionToNumber:function(V){var te,Z=this._getTypeName(V[0]);return Z===e?V[0]:Z!==o||(te=+V[0],isNaN(te))?null:te},_functionNotNull:function(V){for(var Z=0;Z<V.length;Z++)if(7!==this._getTypeName(V[Z]))return V[Z];return null},_functionSort:function(V){var Z=V[0].slice(0);return Z.sort(),Z},_functionSortBy:function(V){var Z=V[0].slice(0);if(0===Z.length)return Z;var te=this._interpreter,oe=V[1],fe=this._getTypeName(te.visit(oe,Z[0]));if([e,o].indexOf(fe)<0)throw new Error("TypeError");for(var be=this,Se=[],we=0;we<Z.length;we++)Se.push([we,Z[we]]);Se.sort(function(Pe,Te){var Ae=te.visit(oe,Pe[1]),Me=te.visit(oe,Te[1]);if(be._getTypeName(Ae)!==fe)throw new Error("TypeError: expected "+fe+", received "+be._getTypeName(Ae));if(be._getTypeName(Me)!==fe)throw new Error("TypeError: expected "+fe+", received "+be._getTypeName(Me));return Ae>Me?1:Ae<Me?-1:Pe[0]-Te[0]});for(var Ce=0;Ce<Se.length;Ce++)Z[Ce]=Se[Ce][1];return Z},_functionMaxBy:function(V){for(var be,Se,te=V[0],oe=this.createKeyFunction(V[1],[e,o]),fe=-1/0,we=0;we<te.length;we++)(Se=oe(te[we]))>fe&&(fe=Se,be=te[we]);return be},_functionMinBy:function(V){for(var be,Se,te=V[0],oe=this.createKeyFunction(V[1],[e,o]),fe=1/0,we=0;we<te.length;we++)(Se=oe(te[we]))<fe&&(fe=Se,be=te[we]);return be},createKeyFunction:function(V,Z){var te=this,oe=this._interpreter;return function(be){var Se=oe.visit(V,be);if(Z.indexOf(te._getTypeName(Se))<0){var we="TypeError: expected one of "+Z+", received "+te._getTypeName(Se);throw new Error(we)}return Se}}},c.tokenize=function he(V){return(new ge).tokenize(V)},c.compile=function ae(V){return(new P).parse(V)},c.search=function le(V,Z){var te=new P,oe=new G,fe=new D(oe);oe._interpreter=fe;var be=te.parse(Z);return fe.search(be,V)},c.strictDeepEqual=l}(w)},4432:W=>{var w=1e3,c=60*w,a=60*c,g=24*a;function s(e,n,o){if(!(e<n))return e<1.5*n?Math.floor(e/n)+" "+o:Math.ceil(e/n)+" "+o+"s"}W.exports=function(e,n){n=n||{};var o=typeof e;if("string"===o&&e.length>0)return function t(e){if(!((e=String(e)).length>100)){var n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(n){var o=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"days":case"day":case"d":return o*g;case"hours":case"hour":case"hrs":case"hr":case"h":return o*a;case"minutes":case"minute":case"mins":case"min":case"m":return o*c;case"seconds":case"second":case"secs":case"sec":case"s":return o*w;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===o&&!1===isNaN(e))return n.long?function i(e){return s(e,g,"day")||s(e,a,"hour")||s(e,c,"minute")||s(e,w,"second")||e+" ms"}(e):function r(e){return e>=g?Math.round(e/g)+"d":e>=a?Math.round(e/a)+"h":e>=c?Math.round(e/c)+"m":e>=w?Math.round(e/w)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1144:W=>{"use strict";var w=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;W.exports=function l(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var r={},i=0;i<10;i++)r["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(r).map(function(n){return r[n]}).join(""))return!1;var e={};return"abcdefghijklmnopqrst".split("").forEach(function(n){e[n]=n}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},e)).join("")}catch{return!1}}()?Object.assign:function(t,r){for(var i,e,s=function g(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),n=1;n<arguments.length;n++){for(var o in i=Object(arguments[n]))c.call(i,o)&&(s[o]=i[o]);if(w){e=w(i);for(var u=0;u<e.length;u++)a.call(i,e[u])&&(s[e[u]]=i[e[u]])}}return s}},31092:(W,w,c)=>{"use strict";c.d(w,{oZ:()=>r,yN:()=>H,LV:()=>M});var a=function(){return Object.create(null)},g=Array.prototype,l=g.forEach,t=g.slice,r=function(){function S(T,k){void 0===T&&(T=!0),void 0===k&&(k=a),this.weakness=T,this.makeData=k}return S.prototype.lookup=function(){for(var T=[],k=0;k<arguments.length;k++)T[k]=arguments[k];return this.lookupArray(T)},S.prototype.lookupArray=function(T){var k=this;return l.call(T,function(K){return k=k.getChildTrie(K)}),k.data||(k.data=this.makeData(t.call(T)))},S.prototype.getChildTrie=function(T){var k=this.weakness&&function i(S){switch(typeof S){case"object":if(null===S)break;case"function":return!0}return!1}(T)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),K=k.get(T);return K||k.set(T,K=new S(this.weakness,this.makeData)),K},S}(),s=c(35365);function e(){}var u,n=function(){function S(T,k){void 0===T&&(T=1/0),void 0===k&&(k=e),this.max=T,this.dispose=k,this.map=new Map,this.newest=null,this.oldest=null}return S.prototype.has=function(T){return this.map.has(T)},S.prototype.get=function(T){var k=this.getNode(T);return k&&k.value},S.prototype.getNode=function(T){var k=this.map.get(T);if(k&&k!==this.newest){var K=k.older,ee=k.newer;ee&&(ee.older=K),K&&(K.newer=ee),k.older=this.newest,k.older.newer=k,k.newer=null,this.newest=k,k===this.oldest&&(this.oldest=ee)}return k},S.prototype.set=function(T,k){var K=this.getNode(T);return K?K.value=k:(K={key:T,value:k,newer:null,older:this.newest},this.newest&&(this.newest.newer=K),this.newest=K,this.oldest=this.oldest||K,this.map.set(T,K),K.value)},S.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},S.prototype.delete=function(T){var k=this.map.get(T);return!!k&&(k===this.newest&&(this.newest=k.older),k===this.oldest&&(this.oldest=k.newer),k.newer&&(k.newer.older=k.older),k.older&&(k.older.newer=k.newer),this.map.delete(T),this.dispose(k.value,T),!0)},S}(),o=new s.DX,p=Object.prototype.hasOwnProperty,f=void 0===(u=Array.from)?function(S){var T=[];return S.forEach(function(k){return T.push(k)}),T}:u;function E(S){var T=S.unsubscribe;"function"==typeof T&&(S.unsubscribe=void 0,T())}var b=[],y=100;function d(S,T){if(!S)throw new Error(T||"assertion failure")}function x(S){switch(S.length){case 0:throw new Error("unknown value");case 1:return S[0];case 2:throw S[1]}}var L=function(){function S(T){this.fn=T,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++S.count}return S.prototype.peek=function(){if(1===this.value.length&&!h(this))return R(this),this.value[0]},S.prototype.recompute=function(T){return d(!this.recomputing,"already recomputing"),R(this),h(this)?function _(S,T){return re(S),o.withValue(S,O,[S,T]),function J(S,T){if("function"==typeof S.subscribe)try{E(S),S.unsubscribe=S.subscribe.apply(null,T)}catch{return S.setDirty(),!1}return!0}(S,T)&&function A(S){S.dirty=!1,!h(S)&&C(S)}(S),x(S.value)}(this,T):x(this.value)},S.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,v(this),E(this))},S.prototype.dispose=function(){var T=this;this.setDirty(),re(this),U(this,function(k,K){k.setDirty(),B(k,T)})},S.prototype.forget=function(){this.dispose()},S.prototype.dependOn=function(T){T.add(this),this.deps||(this.deps=b.pop()||new Set),this.deps.add(T)},S.prototype.forgetDeps=function(){var T=this;this.deps&&(f(this.deps).forEach(function(k){return k.delete(T)}),this.deps.clear(),b.push(this.deps),this.deps=null)},S.count=0,S}();function R(S){var T=o.getValue();if(T)return S.parents.add(T),T.childValues.has(S)||T.childValues.set(S,[]),h(S)?N(T,S):j(T,S),T}function O(S,T){S.recomputing=!0,S.value.length=0;try{S.value[0]=S.fn.apply(null,T)}catch(k){S.value[1]=k}S.recomputing=!1}function h(S){return S.dirty||!(!S.dirtyChildren||!S.dirtyChildren.size)}function v(S){U(S,N)}function C(S){U(S,j)}function U(S,T){var k=S.parents.size;if(k)for(var K=f(S.parents),ee=0;ee<k;++ee)T(K[ee],S)}function N(S,T){d(S.childValues.has(T)),d(h(T));var k=!h(S);if(S.dirtyChildren){if(S.dirtyChildren.has(T))return}else S.dirtyChildren=b.pop()||new Set;S.dirtyChildren.add(T),k&&v(S)}function j(S,T){d(S.childValues.has(T)),d(!h(T));var k=S.childValues.get(T);0===k.length?S.childValues.set(T,function I(S){return S.slice(0)}(T.value)):function m(S,T){var k=S.length;return k>0&&k===T.length&&S[k-1]===T[k-1]}(k,T.value)||S.setDirty(),Y(S,T),!h(S)&&C(S)}function Y(S,T){var k=S.dirtyChildren;k&&(k.delete(T),0===k.size&&(b.length<y&&b.push(k),S.dirtyChildren=null))}function re(S){S.childValues.size>0&&S.childValues.forEach(function(T,k){B(S,k)}),S.forgetDeps(),d(null===S.dirtyChildren)}function B(S,T){T.parents.delete(S),S.childValues.delete(T),Y(S,T)}var Q={setDirty:!0,dispose:!0,forget:!0};function H(S){var T=new Map,k=S&&S.subscribe;function K(ee){var ne=o.getValue();if(ne){var se=T.get(ee);se||T.set(ee,se=new Set),ne.dependOn(se),"function"==typeof k&&(E(se),se.unsubscribe=k(ee))}}return K.dirty=function(ne,se){var ce=T.get(ne);if(ce){var ve=se&&p.call(Q,se)?se:"setDirty";f(ce).forEach(function(de){return de[ve]()}),T.delete(ne),E(ce)}},K}function z(){var S=new r("function"==typeof WeakMap);return function(){return S.lookupArray(arguments)}}z();var X=new Set;function M(S,T){void 0===T&&(T=Object.create(null));var k=new n(T.max||Math.pow(2,16),function(de){return de.dispose()}),K=T.keyArgs,ee=T.makeCacheKey||z(),ne=function(){var de=ee.apply(null,K?K.apply(null,arguments):arguments);if(void 0===de)return S.apply(null,arguments);var pe=k.get(de);pe||(k.set(de,pe=new L(S)),pe.subscribe=T.subscribe,pe.forget=function(){return k.delete(de)});var me=pe.recompute(Array.prototype.slice.call(arguments));return k.set(de,pe),X.add(k),o.hasValue()||(X.forEach(function(ge){return ge.clean()}),X.clear()),me};function se(de){var pe=k.get(de);pe&&pe.setDirty()}function ce(de){var pe=k.get(de);if(pe)return pe.peek()}function ve(de){return k.delete(de)}return Object.defineProperty(ne,"size",{get:function(){return k.map.size},configurable:!1,enumerable:!1}),ne.dirtyKey=se,ne.dirty=function(){se(ee.apply(null,arguments))},ne.peekKey=ce,ne.peek=function(){return ce(ee.apply(null,arguments))},ne.forgetKey=ve,ne.forget=function(){return ve(ee.apply(null,arguments))},ne.makeCacheKey=ee,ne.getKey=K?function(){return ee.apply(null,K.apply(null,arguments))}:ee,Object.freeze(ne)}},41331:function(W,w,c){var a;W=c.nmd(W),function(){"object"==typeof global&&global;var i,s=2147483647,e=36,o=26,u=38,p=700,y=/^xn--/,d=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=e-1,L=Math.floor,R=String.fromCharCode;function O(Q){throw RangeError(x[Q])}function h(Q,H){for(var z=Q.length,$=[];z--;)$[z]=H(Q[z]);return $}function A(Q,H){var z=Q.split("@"),$="";return z.length>1&&($=z[0]+"@",Q=z[1]),$+h((Q=Q.replace(m,".")).split("."),H).join(".")}function v(Q){for(var X,M,H=[],z=0,$=Q.length;z<$;)(X=Q.charCodeAt(z++))>=55296&&X<=56319&&z<$?56320==(64512&(M=Q.charCodeAt(z++)))?H.push(((1023&X)<<10)+(1023&M)+65536):(H.push(X),z--):H.push(X);return H}function C(Q){return h(Q,function(H){var z="";return H>65535&&(z+=R((H-=65536)>>>10&1023|55296),H=56320|1023&H),z+R(H)}).join("")}function U(Q){return Q-48<10?Q-22:Q-65<26?Q-65:Q-97<26?Q-97:e}function N(Q,H){return Q+22+75*(Q<26)-((0!=H)<<5)}function j(Q,H,z){var $=0;for(Q=z?L(Q/p):Q>>1,Q+=L(Q/H);Q>I*o>>1;$+=e)Q=L(Q/I);return L($+(I+1)*Q/(Q+u))}function Y(Q){var $,T,k,K,ee,ne,se,ce,ve,de,H=[],z=Q.length,X=0,M=128,S=72;for((T=Q.lastIndexOf("-"))<0&&(T=0),k=0;k<T;++k)Q.charCodeAt(k)>=128&&O("not-basic"),H.push(Q.charCodeAt(k));for(K=T>0?T+1:0;K<z;){for(ee=X,ne=1,se=e;K>=z&&O("invalid-input"),((ce=U(Q.charCodeAt(K++)))>=e||ce>L((s-X)/ne))&&O("overflow"),X+=ce*ne,!(ce<(ve=se<=S?1:se>=S+o?o:se-S));se+=e)ne>L(s/(de=e-ve))&&O("overflow"),ne*=de;S=j(X-ee,$=H.length+1,0==ee),L(X/$)>s-M&&O("overflow"),M+=L(X/$),X%=$,H.splice(X++,0,M)}return C(H)}function re(Q){var H,z,$,X,M,S,T,k,K,ee,ne,ce,ve,de,pe,se=[];for(ce=(Q=v(Q)).length,H=128,z=0,M=72,S=0;S<ce;++S)(ne=Q[S])<128&&se.push(R(ne));for($=X=se.length,X&&se.push("-");$<ce;){for(T=s,S=0;S<ce;++S)(ne=Q[S])>=H&&ne<T&&(T=ne);for(T-H>L((s-z)/(ve=$+1))&&O("overflow"),z+=(T-H)*ve,H=T,S=0;S<ce;++S)if((ne=Q[S])<H&&++z>s&&O("overflow"),ne==H){for(k=z,K=e;!(k<(ee=K<=M?1:K>=M+o?o:K-M));K+=e)se.push(R(N(ee+(pe=k-ee)%(de=e-ee),0))),k=L(pe/de);se.push(R(N(k,0))),M=j(z,ve,$==X),z=0,++$}++z,++H}return se.join("")}i={version:"1.3.2",ucs2:{decode:v,encode:C},decode:Y,encode:re,toASCII:function J(Q){return A(Q,function(H){return d.test(H)?"xn--"+re(H):H})},toUnicode:function B(Q){return A(Q,function(H){return y.test(H)?Y(H.slice(4).toLowerCase()):H})}},void 0!==(a=function(){return i}.call(w,c,w,W))&&(W.exports=a)}()},3394:W=>{"use strict";function w(c,a){return Object.prototype.hasOwnProperty.call(c,a)}W.exports=function(c,a,g,l){g=g||"=";var t={};if("string"!=typeof c||0===c.length)return t;var r=/\+/g;c=c.split(a=a||"&");var i=1e3;l&&"number"==typeof l.maxKeys&&(i=l.maxKeys);var s=c.length;i>0&&s>i&&(s=i);for(var e=0;e<s;++e){var u,p,f,E,n=c[e].replace(r,"%20"),o=n.indexOf(g);o>=0?(u=n.substr(0,o),p=n.substr(o+1)):(u=n,p=""),f=decodeURIComponent(u),E=decodeURIComponent(p),w(t,f)?Array.isArray(t[f])?t[f].push(E):t[f]=[t[f],E]:t[f]=E}return t}},78470:W=>{"use strict";var w=function(c){switch(typeof c){case"string":return c;case"boolean":return c?"true":"false";case"number":return isFinite(c)?c:"";default:return""}};W.exports=function(c,a,g,l){return a=a||"&",g=g||"=",null===c&&(c=void 0),"object"==typeof c?Object.keys(c).map(function(t){var r=encodeURIComponent(w(t))+g;return Array.isArray(c[t])?c[t].map(function(i){return r+encodeURIComponent(w(i))}).join(a):r+encodeURIComponent(w(c[t]))}).join(a):l?encodeURIComponent(w(l))+g+encodeURIComponent(w(c)):""}},62494:(W,w,c)=>{"use strict";w.decode=w.parse=c(3394),w.encode=w.stringify=c(78470)},79083:(W,w,c)=>{"use strict";var a=c(1144),g=60103,l=60106;w.Fragment=60107,w.StrictMode=60108,w.Profiler=60114;var t=60109,r=60110,i=60112;w.Suspense=60113;var s=60115,e=60116;if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;g=n("react.element"),l=n("react.portal"),w.Fragment=n("react.fragment"),w.StrictMode=n("react.strict_mode"),w.Profiler=n("react.profiler"),t=n("react.provider"),r=n("react.context"),i=n("react.forward_ref"),w.Suspense=n("react.suspense"),s=n("react.memo"),e=n("react.lazy")}var o="function"==typeof Symbol&&Symbol.iterator;function p(B){for(var J="https://reactjs.org/docs/error-decoder.html?invariant="+B,Q=1;Q<arguments.length;Q++)J+="&args[]="+encodeURIComponent(arguments[Q]);return"Minified React error #"+B+"; visit "+J+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function b(B,J,Q){this.props=B,this.context=J,this.refs=E,this.updater=Q||f}function y(){}function d(B,J,Q){this.props=B,this.context=J,this.refs=E,this.updater=Q||f}b.prototype.isReactComponent={},b.prototype.setState=function(B,J){if("object"!=typeof B&&"function"!=typeof B&&null!=B)throw Error(p(85));this.updater.enqueueSetState(this,B,J,"setState")},b.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")},y.prototype=b.prototype;var m=d.prototype=new y;m.constructor=d,a(m,b.prototype),m.isPureReactComponent=!0;var x={current:null},I=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};function R(B,J,Q){var H,z={},$=null,X=null;if(null!=J)for(H in void 0!==J.ref&&(X=J.ref),void 0!==J.key&&($=""+J.key),J)I.call(J,H)&&!L.hasOwnProperty(H)&&(z[H]=J[H]);var M=arguments.length-2;if(1===M)z.children=Q;else if(1<M){for(var S=Array(M),T=0;T<M;T++)S[T]=arguments[T+2];z.children=S}if(B&&B.defaultProps)for(H in M=B.defaultProps)void 0===z[H]&&(z[H]=M[H]);return{$$typeof:g,type:B,key:$,ref:X,props:z,_owner:x.current}}function O(B){return"object"==typeof B&&null!==B&&B.$$typeof===g}var A=/\/+/g;function v(B,J){return"object"==typeof B&&null!==B&&null!=B.key?function h(B){var J={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(Q){return J[Q]})}(""+B.key):J.toString(36)}function C(B,J,Q,H,z){var $=typeof B;("undefined"===$||"boolean"===$)&&(B=null);var X=!1;if(null===B)X=!0;else switch($){case"string":case"number":X=!0;break;case"object":switch(B.$$typeof){case g:case l:X=!0}}if(X)return z=z(X=B),B=""===H?"."+v(X,0):H,Array.isArray(z)?(Q="",null!=B&&(Q=B.replace(A,"$&/")+"/"),C(z,J,Q,"",function(T){return T})):null!=z&&(O(z)&&(z=function _(B,J){return{$$typeof:g,type:B.type,key:J,ref:B.ref,props:B.props,_owner:B._owner}}(z,Q+(!z.key||X&&X.key===z.key?"":(""+z.key).replace(A,"$&/")+"/")+B)),J.push(z)),1;if(X=0,H=""===H?".":H+":",Array.isArray(B))for(var M=0;M<B.length;M++){var S=H+v($=B[M],M);X+=C($,J,Q,S,z)}else if(S=function u(B){return null===B||"object"!=typeof B?null:"function"==typeof(B=o&&B[o]||B["@@iterator"])?B:null}(B),"function"==typeof S)for(B=S.call(B),M=0;!($=B.next()).done;)X+=C($=$.value,J,Q,S=H+v($,M++),z);else if("object"===$)throw J=""+B,Error(p(31,"[object Object]"===J?"object with keys {"+Object.keys(B).join(", ")+"}":J));return X}function U(B,J,Q){if(null==B)return B;var H=[],z=0;return C(B,H,"","",function($){return J.call(Q,$,z++)}),H}function N(B){if(-1===B._status){var J=B._result;J=J(),B._status=0,B._result=J,J.then(function(Q){0===B._status&&(Q=Q.default,B._status=1,B._result=Q)},function(Q){0===B._status&&(B._status=2,B._result=Q)})}if(1===B._status)return B._result;throw B._result}var j={current:null};function Y(){var B=j.current;if(null===B)throw Error(p(321));return B}var re={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:a};w.Children={map:U,forEach:function(B,J,Q){U(B,function(){J.apply(this,arguments)},Q)},count:function(B){var J=0;return U(B,function(){J++}),J},toArray:function(B){return U(B,function(J){return J})||[]},only:function(B){if(!O(B))throw Error(p(143));return B}},w.Component=b,w.PureComponent=d,w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,w.cloneElement=function(B,J,Q){if(null==B)throw Error(p(267,B));var H=a({},B.props),z=B.key,$=B.ref,X=B._owner;if(null!=J){if(void 0!==J.ref&&($=J.ref,X=x.current),void 0!==J.key&&(z=""+J.key),B.type&&B.type.defaultProps)var M=B.type.defaultProps;for(S in J)I.call(J,S)&&!L.hasOwnProperty(S)&&(H[S]=void 0===J[S]&&void 0!==M?M[S]:J[S])}var S=arguments.length-2;if(1===S)H.children=Q;else if(1<S){M=Array(S);for(var T=0;T<S;T++)M[T]=arguments[T+2];H.children=M}return{$$typeof:g,type:B.type,key:z,ref:$,props:H,_owner:X}},w.createContext=function(B,J){return void 0===J&&(J=null),(B={$$typeof:r,_calculateChangedBits:J,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:t,_context:B},B.Consumer=B},w.createElement=R,w.createFactory=function(B){var J=R.bind(null,B);return J.type=B,J},w.createRef=function(){return{current:null}},w.forwardRef=function(B){return{$$typeof:i,render:B}},w.isValidElement=O,w.lazy=function(B){return{$$typeof:e,_payload:{_status:-1,_result:B},_init:N}},w.memo=function(B,J){return{$$typeof:s,type:B,compare:void 0===J?null:J}},w.useCallback=function(B,J){return Y().useCallback(B,J)},w.useContext=function(B,J){return Y().useContext(B,J)},w.useDebugValue=function(){},w.useEffect=function(B,J){return Y().useEffect(B,J)},w.useImperativeHandle=function(B,J,Q){return Y().useImperativeHandle(B,J,Q)},w.useLayoutEffect=function(B,J){return Y().useLayoutEffect(B,J)},w.useMemo=function(B,J){return Y().useMemo(B,J)},w.useReducer=function(B,J,Q){return Y().useReducer(B,J,Q)},w.useRef=function(B){return Y().useRef(B)},w.useState=function(B){return Y().useState(B)},w.version="17.0.2"},54760:(W,w,c)=>{"use strict";W.exports=c(79083)},27607:(W,w,c)=>{"use strict";var a=c(92293),g=c(26826),l=c(80023)(),t=c(16530),r=c(48842),i=a("%Math.floor%");W.exports=function(e,n){if("function"!=typeof e)throw new r("`fn` is not a function");if("number"!=typeof n||n<0||n>4294967295||i(n)!==n)throw new r("`length` must be a positive 32-bit integer");var o=arguments.length>2&&!!arguments[2],u=!0,p=!0;if("length"in e&&t){var f=t(e,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(p=!1)}return(u||p||!o)&&(l?g(e,"length",n,!0,!0):g(e,"length",n)),e}},9685:(W,w,c)=>{"use strict";c.d(w,{Q9:()=>o,V1:()=>i,zU:()=>r});var a=c(29127),g="Invariant Violation",l=Object.setPrototypeOf,t=void 0===l?function(E,b){return E.__proto__=b,E}:l,r=function(E){function b(y){void 0===y&&(y=g);var d=E.call(this,"number"==typeof y?g+": "+y+" (see https://github.com/apollographql/invariant-packages)":y)||this;return d.framesToPop=1,d.name=g,t(d,b.prototype),d}return(0,a.C6)(b,E),b}(Error);function i(E,b){if(!E)throw new r(b)}var E,s=["log","warn","error","silent"],e=s.indexOf("log");function n(E){return function(){if(s.indexOf(E)>=e)return console[E].apply(console,arguments)}}function o(E){var b=s[e];return e=Math.max(0,s.indexOf(E)),b}(E=i||(i={})).log=n("log"),E.warn=n("warn"),E.error=n("error"),"object"==typeof process&&"object"==typeof process.env&&process},46899:(W,w,c)=>{var a=c(41331);function g(){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}w.parse=d,w.resolve=function x(h,A){return d(h,!1,!0).resolve(A)},w.resolveObject=function I(h,A){return h?d(h,!1,!0).resolveObject(A):A},w.format=function m(h){return L(h)&&(h=d(h)),h instanceof g?h.format():g.prototype.format.call(h)},w.Url=g;var l=/^([a-z0-9.+-]+:)/i,t=/:[0-9]*$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(i),e=["%","/","?",";","#"].concat(s),n=["/","?","#"],u=/^[a-z0-9A-Z_-]{0,63}$/,p=/^([a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=c(62494);function d(h,A,v){if(h&&R(h)&&h instanceof g)return h;var C=new g;return C.parse(h,A,v),C}function L(h){return"string"==typeof h}function R(h){return"object"==typeof h&&null!==h}function _(h){return null===h}g.prototype.parse=function(h,A,v){if(!L(h))throw new TypeError("Parameter 'url' must be a string, not "+typeof h);var C=h;C=C.trim();var U=l.exec(C);if(U){var N=(U=U[0]).toLowerCase();this.protocol=N,C=C.substr(U.length)}if(v||U||C.match(/^\/\/[^@\/]+@[^@\/]+/)){var j="//"===C.substr(0,2);j&&(!U||!E[U])&&(C=C.substr(2),this.slashes=!0)}if(!E[U]&&(j||U&&!b[U])){for(var Y=-1,re=0;re<n.length;re++)-1!==(B=C.indexOf(n[re]))&&(-1===Y||B<Y)&&(Y=B);var J,Q;for(-1!==(Q=-1===Y?C.lastIndexOf("@"):C.lastIndexOf("@",Y))&&(J=C.slice(0,Q),C=C.slice(Q+1),this.auth=decodeURIComponent(J)),Y=-1,re=0;re<e.length;re++){var B;-1!==(B=C.indexOf(e[re]))&&(-1===Y||B<Y)&&(Y=B)}-1===Y&&(Y=C.length),this.host=C.slice(0,Y),C=C.slice(Y),this.parseHost(),this.hostname=this.hostname||"";var H="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!H)for(var z=this.hostname.split(/\./),$=(re=0,z.length);re<$;re++){var X=z[re];if(X&&!X.match(u)){for(var M="",S=0,T=X.length;S<T;S++)X.charCodeAt(S)>127?M+="x":M+=X[S];if(!M.match(u)){var k=z.slice(0,re),K=z.slice(re+1),ee=X.match(p);ee&&(k.push(ee[1]),K.unshift(ee[2])),K.length&&(C="/"+K.join(".")+C),this.hostname=k.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!H){var ne=this.hostname.split("."),se=[];for(re=0;re<ne.length;++re)se.push((ce=ne[re]).match(/[^A-Za-z0-9_-]/)?"xn--"+a.encode(ce):ce);this.hostname=se.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==C[0]&&(C="/"+C))}if(!f[N])for(re=0,$=s.length;re<$;re++){var pe=s[re],me=encodeURIComponent(pe);me===pe&&(me=escape(pe)),C=C.split(pe).join(me)}var ge=C.indexOf("#");-1!==ge&&(this.hash=C.substr(ge),C=C.slice(0,ge));var ce,F=C.indexOf("?");return-1!==F?(this.search=C.substr(F),this.query=C.substr(F+1),A&&(this.query=y.parse(this.query)),C=C.slice(0,F)):A&&(this.search="",this.query={}),C&&(this.pathname=C),b[N]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(ce=this.search||"")),this.href=this.format(),this},g.prototype.format=function(){var h=this.auth||"";h&&(h=(h=encodeURIComponent(h)).replace(/%3A/i,":"),h+="@");var A=this.protocol||"",v=this.pathname||"",C=this.hash||"",U=!1,N="";this.host?U=h+this.host:this.hostname&&(U=h+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(U+=":"+this.port)),this.query&&R(this.query)&&Object.keys(this.query).length&&(N=y.stringify(this.query));var j=this.search||N&&"?"+N||"";return A&&":"!==A.substr(-1)&&(A+=":"),this.slashes||(!A||b[A])&&!1!==U?(U="//"+(U||""),v&&"/"!==v.charAt(0)&&(v="/"+v)):U||(U=""),C&&"#"!==C.charAt(0)&&(C="#"+C),j&&"?"!==j.charAt(0)&&(j="?"+j),A+U+(v=v.replace(/[?#]/g,function(Y){return encodeURIComponent(Y)}))+(j=j.replace("#","%23"))+C},g.prototype.resolve=function(h){return this.resolveObject(d(h,!1,!0)).format()},g.prototype.resolveObject=function(h){if(L(h)){var A=new g;A.parse(h,!1,!0),h=A}var v=new g;if(Object.keys(this).forEach(function(T){v[T]=this[T]},this),v.hash=h.hash,""===h.href)return v.href=v.format(),v;if(h.slashes&&!h.protocol)return Object.keys(h).forEach(function(T){"protocol"!==T&&(v[T]=h[T])}),b[v.protocol]&&v.hostname&&!v.pathname&&(v.path=v.pathname="/"),v.href=v.format(),v;if(h.protocol&&h.protocol!==v.protocol){if(!b[h.protocol])return Object.keys(h).forEach(function(T){v[T]=h[T]}),v.href=v.format(),v;if(v.protocol=h.protocol,h.host||E[h.protocol])v.pathname=h.pathname;else{for(var J=(h.pathname||"").split("/");J.length&&!(h.host=J.shift()););h.host||(h.host=""),h.hostname||(h.hostname=""),""!==J[0]&&J.unshift(""),J.length<2&&J.unshift(""),v.pathname=J.join("/")}return v.search=h.search,v.query=h.query,v.host=h.host||"",v.auth=h.auth,v.hostname=h.hostname||h.host,v.port=h.port,(v.pathname||v.search)&&(v.path=(v.pathname||"")+(v.search||"")),v.slashes=v.slashes||h.slashes,v.href=v.format(),v}var N=v.pathname&&"/"===v.pathname.charAt(0),j=h.host||h.pathname&&"/"===h.pathname.charAt(0),Y=j||N||v.host&&h.pathname,re=Y,B=v.pathname&&v.pathname.split("/")||[],Q=(J=h.pathname&&h.pathname.split("/")||[],v.protocol&&!b[v.protocol]);if(Q&&(v.hostname="",v.port=null,v.host&&(""===B[0]?B[0]=v.host:B.unshift(v.host)),v.host="",h.protocol&&(h.hostname=null,h.port=null,h.host&&(""===J[0]?J[0]=h.host:J.unshift(h.host)),h.host=null),Y=Y&&(""===J[0]||""===B[0])),j)v.host=h.host||""===h.host?h.host:v.host,v.hostname=h.hostname||""===h.hostname?h.hostname:v.hostname,v.search=h.search,v.query=h.query,B=J;else if(J.length)B||(B=[]),B.pop(),B=B.concat(J),v.search=h.search,v.query=h.query;else if(!function O(h){return null==h}(h.search))return Q&&(v.hostname=v.host=B.shift(),(H=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=H.shift(),v.host=v.hostname=H.shift())),v.search=h.search,v.query=h.query,(!_(v.pathname)||!_(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.href=v.format(),v;if(!B.length)return v.pathname=null,v.path=v.search?"/"+v.search:null,v.href=v.format(),v;for(var z=B.slice(-1)[0],$=(v.host||h.host)&&("."===z||".."===z)||""===z,X=0,M=B.length;M>=0;M--)"."==(z=B[M])?B.splice(M,1):".."===z?(B.splice(M,1),X++):X&&(B.splice(M,1),X--);if(!Y&&!re)for(;X--;X)B.unshift("..");Y&&""!==B[0]&&(!B[0]||"/"!==B[0].charAt(0))&&B.unshift(""),$&&"/"!==B.join("/").substr(-1)&&B.push("");var H,S=""===B[0]||B[0]&&"/"===B[0].charAt(0);return Q&&(v.hostname=v.host=S?"":B.length?B.shift():"",(H=!!(v.host&&v.host.indexOf("@")>0)&&v.host.split("@"))&&(v.auth=H.shift(),v.host=v.hostname=H.shift())),(Y=Y||v.host&&B.length)&&!S&&B.unshift(""),B.length?v.pathname=B.join("/"):(v.pathname=null,v.path=null),(!_(v.pathname)||!_(v.search))&&(v.path=(v.pathname?v.pathname:"")+(v.search?v.search:"")),v.auth=h.auth||v.auth,v.slashes=v.slashes||h.slashes,v.href=v.format(),v},g.prototype.parseHost=function(){var h=this.host,A=t.exec(h);A&&(":"!==(A=A[0])&&(this.port=A.substr(1)),h=h.substr(0,h.length-A.length)),h&&(this.hostname=h)}},46121:(W,w,c)=>{"use strict";var a=c(41331),g=c(74194);function l(){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}w.parse=x,w.resolve=function L(_,O){return x(_,!1,!0).resolve(O)},w.resolveObject=function R(_,O){return _?x(_,!1,!0).resolveObject(O):O},w.format=function I(_){return g.isString(_)&&(_=x(_)),_ instanceof l?_.format():l.prototype.format.call(_)},w.Url=l;var t=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),n=["'"].concat(e),o=["%","/","?",";","#"].concat(n),u=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,E=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},d={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=c(62494);function x(_,O,h){if(_&&g.isObject(_)&&_ instanceof l)return _;var A=new l;return A.parse(_,O,h),A}l.prototype.parse=function(_,O,h){if(!g.isString(_))throw new TypeError("Parameter 'url' must be a string, not "+typeof _);var A=_.indexOf("?"),v=-1!==A&&A<_.indexOf("#")?"?":"#",C=_.split(v);C[0]=C[0].replace(/\\/g,"/");var N=_=C.join(v);if(N=N.trim(),!h&&1===_.split("#").length){var j=i.exec(N);if(j)return this.path=N,this.href=N,this.pathname=j[1],j[2]?(this.search=j[2],this.query=O?m.parse(this.search.substr(1)):this.search.substr(1)):O&&(this.search="",this.query={}),this}var Y=t.exec(N);if(Y){var re=(Y=Y[0]).toLowerCase();this.protocol=re,N=N.substr(Y.length)}if(h||Y||N.match(/^\/\/[^@\/]+@[^@\/]+/)){var B="//"===N.substr(0,2);B&&(!Y||!y[Y])&&(N=N.substr(2),this.slashes=!0)}if(!y[Y]&&(B||Y&&!d[Y])){for(var J=-1,Q=0;Q<u.length;Q++)-1!==(H=N.indexOf(u[Q]))&&(-1===J||H<J)&&(J=H);var z,$;for(-1!==($=-1===J?N.lastIndexOf("@"):N.lastIndexOf("@",J))&&(z=N.slice(0,$),N=N.slice($+1),this.auth=decodeURIComponent(z)),J=-1,Q=0;Q<o.length;Q++){var H;-1!==(H=N.indexOf(o[Q]))&&(-1===J||H<J)&&(J=H)}-1===J&&(J=N.length),this.host=N.slice(0,J),N=N.slice(J),this.parseHost(),this.hostname=this.hostname||"";var X="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!X)for(var M=this.hostname.split(/\./),S=(Q=0,M.length);Q<S;Q++){var T=M[Q];if(T&&!T.match(f)){for(var k="",K=0,ee=T.length;K<ee;K++)T.charCodeAt(K)>127?k+="x":k+=T[K];if(!k.match(f)){var ne=M.slice(0,Q),se=M.slice(Q+1),ce=T.match(E);ce&&(ne.push(ce[1]),se.unshift(ce[2])),se.length&&(N="/"+se.join(".")+N),this.hostname=ne.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),X||(this.hostname=a.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,X&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==N[0]&&(N="/"+N))}if(!b[re])for(Q=0,S=n.length;Q<S;Q++){var pe=n[Q];if(-1!==N.indexOf(pe)){var me=encodeURIComponent(pe);me===pe&&(me=escape(pe)),N=N.split(pe).join(me)}}var ge=N.indexOf("#");-1!==ge&&(this.hash=N.substr(ge),N=N.slice(0,ge));var F=N.indexOf("?");return-1!==F?(this.search=N.substr(F),this.query=N.substr(F+1),O&&(this.query=m.parse(this.query)),N=N.slice(0,F)):O&&(this.search="",this.query={}),N&&(this.pathname=N),d[re]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},l.prototype.format=function(){var _=this.auth||"";_&&(_=(_=encodeURIComponent(_)).replace(/%3A/i,":"),_+="@");var O=this.protocol||"",h=this.pathname||"",A=this.hash||"",v=!1,C="";this.host?v=_+this.host:this.hostname&&(v=_+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(v+=":"+this.port)),this.query&&g.isObject(this.query)&&Object.keys(this.query).length&&(C=m.stringify(this.query));var U=this.search||C&&"?"+C||"";return O&&":"!==O.substr(-1)&&(O+=":"),this.slashes||(!O||d[O])&&!1!==v?(v="//"+(v||""),h&&"/"!==h.charAt(0)&&(h="/"+h)):v||(v=""),A&&"#"!==A.charAt(0)&&(A="#"+A),U&&"?"!==U.charAt(0)&&(U="?"+U),O+v+(h=h.replace(/[?#]/g,function(N){return encodeURIComponent(N)}))+(U=U.replace("#","%23"))+A},l.prototype.resolve=function(_){return this.resolveObject(x(_,!1,!0)).format()},l.prototype.resolveObject=function(_){if(g.isString(_)){var O=new l;O.parse(_,!1,!0),_=O}for(var h=new l,A=Object.keys(this),v=0;v<A.length;v++){var C=A[v];h[C]=this[C]}if(h.hash=_.hash,""===_.href)return h.href=h.format(),h;if(_.slashes&&!_.protocol){for(var U=Object.keys(_),N=0;N<U.length;N++){var j=U[N];"protocol"!==j&&(h[j]=_[j])}return d[h.protocol]&&h.hostname&&!h.pathname&&(h.path=h.pathname="/"),h.href=h.format(),h}if(_.protocol&&_.protocol!==h.protocol){if(!d[_.protocol]){for(var Y=Object.keys(_),re=0;re<Y.length;re++){var B=Y[re];h[B]=_[B]}return h.href=h.format(),h}if(h.protocol=_.protocol,_.host||y[_.protocol])h.pathname=_.pathname;else{for(var S=(_.pathname||"").split("/");S.length&&!(_.host=S.shift()););_.host||(_.host=""),_.hostname||(_.hostname=""),""!==S[0]&&S.unshift(""),S.length<2&&S.unshift(""),h.pathname=S.join("/")}return h.search=_.search,h.query=_.query,h.host=_.host||"",h.auth=_.auth,h.hostname=_.hostname||_.host,h.port=_.port,(h.pathname||h.search)&&(h.path=(h.pathname||"")+(h.search||"")),h.slashes=h.slashes||_.slashes,h.href=h.format(),h}var H=h.pathname&&"/"===h.pathname.charAt(0),z=_.host||_.pathname&&"/"===_.pathname.charAt(0),$=z||H||h.host&&_.pathname,X=$,M=h.pathname&&h.pathname.split("/")||[],T=(S=_.pathname&&_.pathname.split("/")||[],h.protocol&&!d[h.protocol]);if(T&&(h.hostname="",h.port=null,h.host&&(""===M[0]?M[0]=h.host:M.unshift(h.host)),h.host="",_.protocol&&(_.hostname=null,_.port=null,_.host&&(""===S[0]?S[0]=_.host:S.unshift(_.host)),_.host=null),$=$&&(""===S[0]||""===M[0])),z)h.host=_.host||""===_.host?_.host:h.host,h.hostname=_.hostname||""===_.hostname?_.hostname:h.hostname,h.search=_.search,h.query=_.query,M=S;else if(S.length)M||(M=[]),M.pop(),M=M.concat(S),h.search=_.search,h.query=_.query;else if(!g.isNullOrUndefined(_.search))return T&&(h.hostname=h.host=M.shift(),(k=!!(h.host&&h.host.indexOf("@")>0)&&h.host.split("@"))&&(h.auth=k.shift(),h.host=h.hostname=k.shift())),h.search=_.search,h.query=_.query,(!g.isNull(h.pathname)||!g.isNull(h.search))&&(h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")),h.href=h.format(),h;if(!M.length)return h.pathname=null,h.path=h.search?"/"+h.search:null,h.href=h.format(),h;for(var K=M.slice(-1)[0],ee=(h.host||_.host||M.length>1)&&("."===K||".."===K)||""===K,ne=0,se=M.length;se>=0;se--)"."===(K=M[se])?M.splice(se,1):".."===K?(M.splice(se,1),ne++):ne&&(M.splice(se,1),ne--);if(!$&&!X)for(;ne--;ne)M.unshift("..");$&&""!==M[0]&&(!M[0]||"/"!==M[0].charAt(0))&&M.unshift(""),ee&&"/"!==M.join("/").substr(-1)&&M.push("");var k,ce=""===M[0]||M[0]&&"/"===M[0].charAt(0);return T&&(h.hostname=h.host=ce?"":M.length?M.shift():"",(k=!!(h.host&&h.host.indexOf("@")>0)&&h.host.split("@"))&&(h.auth=k.shift(),h.host=h.hostname=k.shift())),($=$||h.host&&M.length)&&!ce&&M.unshift(""),M.length?h.pathname=M.join("/"):(h.pathname=null,h.path=null),(!g.isNull(h.pathname)||!g.isNull(h.search))&&(h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")),h.auth=_.auth||h.auth,h.slashes=h.slashes||_.slashes,h.href=h.format(),h},l.prototype.parseHost=function(){var _=this.host,O=r.exec(_);O&&(":"!==(O=O[0])&&(this.port=O.substr(1)),_=_.substr(0,_.length-O.length)),_&&(this.hostname=_)}},74194:W=>{"use strict";W.exports={isString:function(w){return"string"==typeof w},isObject:function(w){return"object"==typeof w&&null!==w},isNull:function(w){return null===w},isNullOrUndefined:function(w){return null==w}}},70156:W=>{W.exports=function(c){return c&&"object"==typeof c&&"function"==typeof c.copy&&"function"==typeof c.fill&&"function"==typeof c.readUInt8}},39031:(W,w,c)=>{"use strict";var a=c(53361),g=c(46174),l=c(32278),t=c(94345);function r(F){return F.call.bind(F)}var i=typeof BigInt<"u",s=typeof Symbol<"u",e=r(Object.prototype.toString),n=r(Number.prototype.valueOf),o=r(String.prototype.valueOf),u=r(Boolean.prototype.valueOf);if(i)var p=r(BigInt.prototype.valueOf);if(s)var f=r(Symbol.prototype.valueOf);function E(F,P){if("object"!=typeof F)return!1;try{return P(F),!0}catch{return!1}}function C(F){return"[object Map]"===e(F)}function N(F){return"[object Set]"===e(F)}function Y(F){return"[object WeakMap]"===e(F)}function B(F){return"[object WeakSet]"===e(F)}function Q(F){return"[object ArrayBuffer]"===e(F)}function H(F){return!(typeof ArrayBuffer>"u")&&(Q.working?Q(F):F instanceof ArrayBuffer)}function z(F){return"[object DataView]"===e(F)}function $(F){return!(typeof DataView>"u")&&(z.working?z(F):F instanceof DataView)}w.isArgumentsObject=a,w.isGeneratorFunction=g,w.isTypedArray=t,w.isPromise=function b(F){return typeof Promise<"u"&&F instanceof Promise||null!==F&&"object"==typeof F&&"function"==typeof F.then&&"function"==typeof F.catch},w.isArrayBufferView=function y(F){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(F):t(F)||$(F)},w.isUint8Array=function d(F){return"Uint8Array"===l(F)},w.isUint8ClampedArray=function m(F){return"Uint8ClampedArray"===l(F)},w.isUint16Array=function x(F){return"Uint16Array"===l(F)},w.isUint32Array=function I(F){return"Uint32Array"===l(F)},w.isInt8Array=function L(F){return"Int8Array"===l(F)},w.isInt16Array=function R(F){return"Int16Array"===l(F)},w.isInt32Array=function _(F){return"Int32Array"===l(F)},w.isFloat32Array=function O(F){return"Float32Array"===l(F)},w.isFloat64Array=function h(F){return"Float64Array"===l(F)},w.isBigInt64Array=function A(F){return"BigInt64Array"===l(F)},w.isBigUint64Array=function v(F){return"BigUint64Array"===l(F)},C.working=typeof Map<"u"&&C(new Map),w.isMap=function U(F){return!(typeof Map>"u")&&(C.working?C(F):F instanceof Map)},N.working=typeof Set<"u"&&N(new Set),w.isSet=function j(F){return!(typeof Set>"u")&&(N.working?N(F):F instanceof Set)},Y.working=typeof WeakMap<"u"&&Y(new WeakMap),w.isWeakMap=function re(F){return!(typeof WeakMap>"u")&&(Y.working?Y(F):F instanceof WeakMap)},B.working=typeof WeakSet<"u"&&B(new WeakSet),w.isWeakSet=function J(F){return B(F)},Q.working=typeof ArrayBuffer<"u"&&Q(new ArrayBuffer),w.isArrayBuffer=H,z.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&z(new DataView(new ArrayBuffer(1),0,1)),w.isDataView=$;var X=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function M(F){return"[object SharedArrayBuffer]"===e(F)}function S(F){return!(typeof X>"u")&&(typeof M.working>"u"&&(M.working=M(new X)),M.working?M(F):F instanceof X)}function se(F){return E(F,n)}function ce(F){return E(F,o)}function ve(F){return E(F,u)}function de(F){return i&&E(F,p)}function pe(F){return s&&E(F,f)}w.isSharedArrayBuffer=S,w.isAsyncFunction=function T(F){return"[object AsyncFunction]"===e(F)},w.isMapIterator=function k(F){return"[object Map Iterator]"===e(F)},w.isSetIterator=function K(F){return"[object Set Iterator]"===e(F)},w.isGeneratorObject=function ee(F){return"[object Generator]"===e(F)},w.isWebAssemblyCompiledModule=function ne(F){return"[object WebAssembly.Module]"===e(F)},w.isNumberObject=se,w.isStringObject=ce,w.isBooleanObject=ve,w.isBigIntObject=de,w.isSymbolObject=pe,w.isBoxedPrimitive=function me(F){return se(F)||ce(F)||ve(F)||de(F)||pe(F)},w.isAnyArrayBuffer=function ge(F){return typeof Uint8Array<"u"&&(H(F)||S(F))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(w,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})},56180:(W,w,c)=>{var a=Object.getOwnPropertyDescriptors||function($){for(var X=Object.keys($),M={},S=0;S<X.length;S++)M[X[S]]=Object.getOwnPropertyDescriptor($,X[S]);return M},g=/%[sdj%]/g;w.format=function(z){if(!L(z)){for(var $=[],X=0;X<arguments.length;X++)$.push(i(arguments[X]));return $.join(" ")}X=1;for(var M=arguments,S=M.length,T=String(z).replace(g,function(K){if("%%"===K)return"%";if(X>=S)return K;switch(K){case"%s":return String(M[X++]);case"%d":return Number(M[X++]);case"%j":try{return JSON.stringify(M[X++])}catch{return"[Circular]"}default:return K}}),k=M[X];X<S;k=M[++X])m(k)||!h(k)?T+=" "+k:T+=" "+i(k);return T},w.deprecate=function(z,$){if(typeof process<"u"&&!0===process.noDeprecation)return z;if(typeof process>"u")return function(){return w.deprecate(z,$).apply(this,arguments)};var X=!1;return function M(){if(!X){if(process.throwDeprecation)throw new Error($);process.traceDeprecation?console.trace($):console.error($),X=!0}return z.apply(this,arguments)}};var l={},t=/^$/;if(process.env.NODE_DEBUG){var r=process.env.NODE_DEBUG;r=r.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),t=new RegExp("^"+r+"$","i")}function i(z,$){var X={seen:[],stylize:e};return arguments.length>=3&&(X.depth=arguments[2]),arguments.length>=4&&(X.colors=arguments[3]),d($)?X.showHidden=$:$&&w._extend(X,$),_(X.showHidden)&&(X.showHidden=!1),_(X.depth)&&(X.depth=2),_(X.colors)&&(X.colors=!1),_(X.customInspect)&&(X.customInspect=!0),X.colors&&(X.stylize=s),o(X,z,X.depth)}function s(z,$){var X=i.styles[$];return X?"\x1b["+i.colors[X][0]+"m"+z+"\x1b["+i.colors[X][1]+"m":z}function e(z,$){return z}function o(z,$,X){if(z.customInspect&&$&&C($.inspect)&&$.inspect!==w.inspect&&(!$.constructor||$.constructor.prototype!==$)){var M=$.inspect(X,z);return L(M)||(M=o(z,M,X)),M}var S=function u(z,$){if(_($))return z.stylize("undefined","undefined");if(L($)){var X="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return z.stylize(X,"string")}return I($)?z.stylize(""+$,"number"):d($)?z.stylize(""+$,"boolean"):m($)?z.stylize("null","null"):void 0}(z,$);if(S)return S;var T=Object.keys($),k=function n(z){var $={};return z.forEach(function(X,M){$[X]=!0}),$}(T);if(z.showHidden&&(T=Object.getOwnPropertyNames($)),v($)&&(T.indexOf("message")>=0||T.indexOf("description")>=0))return p($);if(0===T.length){if(C($))return z.stylize("[Function"+($.name?": "+$.name:"")+"]","special");if(O($))return z.stylize(RegExp.prototype.toString.call($),"regexp");if(A($))return z.stylize(Date.prototype.toString.call($),"date");if(v($))return p($)}var ve,ee="",ne=!1,se=["{","}"];return y($)&&(ne=!0,se=["[","]"]),C($)&&(ee=" [Function"+($.name?": "+$.name:"")+"]"),O($)&&(ee=" "+RegExp.prototype.toString.call($)),A($)&&(ee=" "+Date.prototype.toUTCString.call($)),v($)&&(ee=" "+p($)),0!==T.length||ne&&0!=$.length?X<0?O($)?z.stylize(RegExp.prototype.toString.call($),"regexp"):z.stylize("[Object]","special"):(z.seen.push($),ve=ne?function f(z,$,X,M,S){for(var T=[],k=0,K=$.length;k<K;++k)B($,String(k))?T.push(E(z,$,X,M,String(k),!0)):T.push("");return S.forEach(function(ee){ee.match(/^\d+$/)||T.push(E(z,$,X,M,ee,!0))}),T}(z,$,X,k,T):T.map(function(de){return E(z,$,X,k,de,ne)}),z.seen.pop(),function b(z,$,X){var S=z.reduce(function(T,k){return k.indexOf("\n"),T+k.replace(/\u001b\[\d\d?m/g,"").length+1},0);return S>60?X[0]+(""===$?"":$+"\n ")+" "+z.join(",\n ")+" "+X[1]:X[0]+$+" "+z.join(", ")+" "+X[1]}(ve,ee,se)):se[0]+ee+se[1]}function p(z){return"["+Error.prototype.toString.call(z)+"]"}function E(z,$,X,M,S,T){var k,K,ee;if((ee=Object.getOwnPropertyDescriptor($,S)||{value:$[S]}).get?K=z.stylize(ee.set?"[Getter/Setter]":"[Getter]","special"):ee.set&&(K=z.stylize("[Setter]","special")),B(M,S)||(k="["+S+"]"),K||(z.seen.indexOf(ee.value)<0?(K=m(X)?o(z,ee.value,null):o(z,ee.value,X-1)).indexOf("\n")>-1&&(K=T?K.split("\n").map(function(ne){return" "+ne}).join("\n").slice(2):"\n"+K.split("\n").map(function(ne){return" "+ne}).join("\n")):K=z.stylize("[Circular]","special")),_(k)){if(T&&S.match(/^\d+$/))return K;(k=JSON.stringify(""+S)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(k=k.slice(1,-1),k=z.stylize(k,"name")):(k=k.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),k=z.stylize(k,"string"))}return k+": "+K}function y(z){return Array.isArray(z)}function d(z){return"boolean"==typeof z}function m(z){return null===z}function I(z){return"number"==typeof z}function L(z){return"string"==typeof z}function _(z){return void 0===z}function O(z){return h(z)&&"[object RegExp]"===N(z)}function h(z){return"object"==typeof z&&null!==z}function A(z){return h(z)&&"[object Date]"===N(z)}function v(z){return h(z)&&("[object Error]"===N(z)||z instanceof Error)}function C(z){return"function"==typeof z}function N(z){return Object.prototype.toString.call(z)}function j(z){return z<10?"0"+z.toString(10):z.toString(10)}w.debuglog=function(z){if(z=z.toUpperCase(),!l[z])if(t.test(z)){var $=process.pid;l[z]=function(){var X=w.format.apply(w,arguments);console.error("%s %d: %s",z,$,X)}}else l[z]=function(){};return l[z]},w.inspect=i,i.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]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},w.types=c(39031),w.isArray=y,w.isBoolean=d,w.isNull=m,w.isNullOrUndefined=function x(z){return null==z},w.isNumber=I,w.isString=L,w.isSymbol=function R(z){return"symbol"==typeof z},w.isUndefined=_,w.isRegExp=O,w.types.isRegExp=O,w.isObject=h,w.isDate=A,w.types.isDate=A,w.isError=v,w.types.isNativeError=v,w.isFunction=C,w.isPrimitive=function U(z){return null===z||"boolean"==typeof z||"number"==typeof z||"string"==typeof z||"symbol"==typeof z||typeof z>"u"},w.isBuffer=c(70156);var Y=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(z,$){return Object.prototype.hasOwnProperty.call(z,$)}w.log=function(){console.log("%s - %s",function re(){var z=new Date,$=[j(z.getHours()),j(z.getMinutes()),j(z.getSeconds())].join(":");return[z.getDate(),Y[z.getMonth()],$].join(" ")}(),w.format.apply(w,arguments))},w.inherits=c(13653),w._extend=function(z,$){if(!$||!h($))return z;for(var X=Object.keys($),M=X.length;M--;)z[X[M]]=$[X[M]];return z};var J=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function Q(z,$){if(!z){var X=new Error("Promise was rejected with a falsy value");X.reason=z,z=X}return $(z)}w.promisify=function($){if("function"!=typeof $)throw new TypeError('The "original" argument must be of type Function');if(J&&$[J]){var X;if("function"!=typeof(X=$[J]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(X,J,{value:X,enumerable:!1,writable:!1,configurable:!0}),X}function X(){for(var M,S,T=new Promise(function(ee,ne){M=ee,S=ne}),k=[],K=0;K<arguments.length;K++)k.push(arguments[K]);k.push(function(ee,ne){ee?S(ee):M(ne)});try{$.apply(this,k)}catch(ee){S(ee)}return T}return Object.setPrototypeOf(X,Object.getPrototypeOf($)),J&&Object.defineProperty(X,J,{value:X,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(X,a($))},w.promisify.custom=J,w.callbackify=function H(z){if("function"!=typeof z)throw new TypeError('The "original" argument must be of type Function');function $(){for(var X=[],M=0;M<arguments.length;M++)X.push(arguments[M]);var S=X.pop();if("function"!=typeof S)throw new TypeError("The last argument must be of type Function");var T=this,k=function(){return S.apply(T,arguments)};z.apply(this,X).then(function(K){process.nextTick(k.bind(null,null,K))},function(K){process.nextTick(Q.bind(null,K,k))})}return Object.setPrototypeOf($,Object.getPrototypeOf(z)),Object.defineProperties($,a(z)),$}},32462:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;for(var c=[],a=0;a<256;++a)c[a]=(a+256).toString(16).substr(1);w.default=function g(t,r){var i=r||0;return[c[t[i++]],c[t[i++]],c[t[i++]],c[t[i++]],"-",c[t[i++]],c[t[i++]],"-",c[t[i++]],c[t[i++]],"-",c[t[i++]],c[t[i++]],"-",c[t[i++]],c[t[i++]],c[t[i++]],c[t[i++]],c[t[i++]],c[t[i++]]].join("")}},12959:(W,w,c)=>{"use strict";Object.defineProperty(w,"v4",{enumerable:!0,get:function(){return t.default}});i(c(21598)),i(c(33396));var t=i(c(4737));i(c(50834));function i(s){return s&&s.__esModule?s:{default:s}}},14806:(W,w)=>{"use strict";function t(p,f){var E=(65535&p)+(65535&f);return(p>>16)+(f>>16)+(E>>16)<<16|65535&E}function i(p,f,E,b,y,d){return t(function r(p,f){return p<<f|p>>>32-f}(t(t(f,p),t(b,d)),y),E)}function s(p,f,E,b,y,d,m){return i(f&E|~f&b,p,f,y,d,m)}function e(p,f,E,b,y,d,m){return i(f&b|E&~b,p,f,y,d,m)}function n(p,f,E,b,y,d,m){return i(f^E^b,p,f,y,d,m)}function o(p,f,E,b,y,d,m){return i(E^(f|~b),p,f,y,d,m)}Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.default=function c(p){if("string"==typeof p){var f=unescape(encodeURIComponent(p));p=new Array(f.length);for(var E=0;E<f.length;E++)p[E]=f.charCodeAt(E)}return function a(p){var f,E,m,b=[],y=32*p.length,d="0123456789abcdef";for(f=0;f<y;f+=8)E=p[f>>5]>>>f%32&255,m=parseInt(d.charAt(E>>>4&15)+d.charAt(15&E),16),b.push(m);return b}(function g(p,f){p[f>>5]|=128<<f%32,p[14+(f+64>>>9<<4)]=f;var E,b,y,d,m,x=1732584193,I=-271733879,L=-1732584194,R=271733878;for(E=0;E<p.length;E+=16)b=x,y=I,d=L,m=R,x=s(x,I,L,R,p[E],7,-680876936),R=s(R,x,I,L,p[E+1],12,-389564586),L=s(L,R,x,I,p[E+2],17,606105819),I=s(I,L,R,x,p[E+3],22,-1044525330),x=s(x,I,L,R,p[E+4],7,-176418897),R=s(R,x,I,L,p[E+5],12,1200080426),L=s(L,R,x,I,p[E+6],17,-1473231341),I=s(I,L,R,x,p[E+7],22,-45705983),x=s(x,I,L,R,p[E+8],7,1770035416),R=s(R,x,I,L,p[E+9],12,-1958414417),L=s(L,R,x,I,p[E+10],17,-42063),I=s(I,L,R,x,p[E+11],22,-1990404162),x=s(x,I,L,R,p[E+12],7,1804603682),R=s(R,x,I,L,p[E+13],12,-40341101),L=s(L,R,x,I,p[E+14],17,-1502002290),x=e(x,I=s(I,L,R,x,p[E+15],22,1236535329),L,R,p[E+1],5,-165796510),R=e(R,x,I,L,p[E+6],9,-1069501632),L=e(L,R,x,I,p[E+11],14,643717713),I=e(I,L,R,x,p[E],20,-373897302),x=e(x,I,L,R,p[E+5],5,-701558691),R=e(R,x,I,L,p[E+10],9,38016083),L=e(L,R,x,I,p[E+15],14,-660478335),I=e(I,L,R,x,p[E+4],20,-405537848),x=e(x,I,L,R,p[E+9],5,568446438),R=e(R,x,I,L,p[E+14],9,-1019803690),L=e(L,R,x,I,p[E+3],14,-187363961),I=e(I,L,R,x,p[E+8],20,1163531501),x=e(x,I,L,R,p[E+13],5,-1444681467),R=e(R,x,I,L,p[E+2],9,-51403784),L=e(L,R,x,I,p[E+7],14,1735328473),x=n(x,I=e(I,L,R,x,p[E+12],20,-1926607734),L,R,p[E+5],4,-378558),R=n(R,x,I,L,p[E+8],11,-2022574463),L=n(L,R,x,I,p[E+11],16,1839030562),I=n(I,L,R,x,p[E+14],23,-35309556),x=n(x,I,L,R,p[E+1],4,-1530992060),R=n(R,x,I,L,p[E+4],11,1272893353),L=n(L,R,x,I,p[E+7],16,-155497632),I=n(I,L,R,x,p[E+10],23,-1094730640),x=n(x,I,L,R,p[E+13],4,681279174),R=n(R,x,I,L,p[E],11,-358537222),L=n(L,R,x,I,p[E+3],16,-722521979),I=n(I,L,R,x,p[E+6],23,76029189),x=n(x,I,L,R,p[E+9],4,-640364487),R=n(R,x,I,L,p[E+12],11,-421815835),L=n(L,R,x,I,p[E+15],16,530742520),x=o(x,I=n(I,L,R,x,p[E+2],23,-995338651),L,R,p[E],6,-198630844),R=o(R,x,I,L,p[E+7],10,1126891415),L=o(L,R,x,I,p[E+14],15,-1416354905),I=o(I,L,R,x,p[E+5],21,-57434055),x=o(x,I,L,R,p[E+12],6,1700485571),R=o(R,x,I,L,p[E+3],10,-1894986606),L=o(L,R,x,I,p[E+10],15,-1051523),I=o(I,L,R,x,p[E+1],21,-2054922799),x=o(x,I,L,R,p[E+8],6,1873313359),R=o(R,x,I,L,p[E+15],10,-30611744),L=o(L,R,x,I,p[E+6],15,-1560198380),I=o(I,L,R,x,p[E+13],21,1309151649),x=o(x,I,L,R,p[E+4],6,-145523070),R=o(R,x,I,L,p[E+11],10,-1120210379),L=o(L,R,x,I,p[E+2],15,718787259),I=o(I,L,R,x,p[E+9],21,-343485551),x=t(x,b),I=t(I,y),L=t(L,d),R=t(R,m);return[x,I,L,R]}(function l(p){var f,E=[];for(E[(p.length>>2)-1]=void 0,f=0;f<E.length;f+=1)E[f]=0;var b=8*p.length;for(f=0;f<b;f+=8)E[f>>5]|=(255&p[f/8])<<f%32;return E}(p),8*p.length))}},5507:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=function g(){if(!c)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(a)};var c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),a=new Uint8Array(16)},73611:(W,w)=>{"use strict";function c(t,r,i,s){switch(t){case 0:return r&i^~r&s;case 1:case 3:return r^i^s;case 2:return r&i^r&s^i&s}}function a(t,r){return t<<r|t>>>32-r}Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.default=function g(t){var r=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var s=unescape(encodeURIComponent(t));t=new Array(s.length);for(var e=0;e<s.length;e++)t[e]=s.charCodeAt(e)}t.push(128);var o=Math.ceil((t.length/4+2)/16),u=new Array(o);for(e=0;e<o;e++){u[e]=new Array(16);for(var p=0;p<16;p++)u[e][p]=t[64*e+4*p]<<24|t[64*e+4*p+1]<<16|t[64*e+4*p+2]<<8|t[64*e+4*p+3]}for(u[o-1][14]=8*(t.length-1)/Math.pow(2,32),u[o-1][14]=Math.floor(u[o-1][14]),u[o-1][15]=8*(t.length-1)&4294967295,e=0;e<o;e++){for(var f=new Array(80),E=0;E<16;E++)f[E]=u[e][E];for(E=16;E<80;E++)f[E]=a(f[E-3]^f[E-8]^f[E-14]^f[E-16],1);var b=i[0],y=i[1],d=i[2],m=i[3],x=i[4];for(E=0;E<80;E++){var I=Math.floor(E/20),L=a(b,5)+c(I,y,d,m)+x+r[I]+f[E]>>>0;x=m,m=d,d=a(y,30)>>>0,y=b,b=L}i[0]=i[0]+b>>>0,i[1]=i[1]+y>>>0,i[2]=i[2]+d>>>0,i[3]=i[3]+m>>>0,i[4]=i[4]+x>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},21598:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=l(c(5507)),g=l(c(32462));function l(o){return o&&o.__esModule?o:{default:o}}var t,r,i=0,s=0;w.default=function e(o,u,p){var f=u&&p||0,E=u||[],b=(o=o||{}).node||t,y=void 0!==o.clockseq?o.clockseq:r;if(null==b||null==y){var d=o.random||(o.rng||a.default)();null==b&&(b=t=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==y&&(y=r=16383&(d[6]<<8|d[7]))}var m=void 0!==o.msecs?o.msecs:(new Date).getTime(),x=void 0!==o.nsecs?o.nsecs:s+1,I=m-i+(x-s)/1e4;if(I<0&&void 0===o.clockseq&&(y=y+1&16383),(I<0||m>i)&&void 0===o.nsecs&&(x=0),x>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=m,s=x,r=y;var L=(1e4*(268435455&(m+=122192928e5))+x)%4294967296;E[f++]=L>>>24&255,E[f++]=L>>>16&255,E[f++]=L>>>8&255,E[f++]=255&L;var R=m/4294967296*1e4&268435455;E[f++]=R>>>8&255,E[f++]=255&R,E[f++]=R>>>24&15|16,E[f++]=R>>>16&255,E[f++]=y>>>8|128,E[f++]=255&y;for(var _=0;_<6;++_)E[f+_]=b[_];return u||(0,g.default)(E)}},33396:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=l(c(37729)),g=l(c(14806));function l(i){return i&&i.__esModule?i:{default:i}}var r=(0,a.default)("v3",48,g.default);w.default=r},37729:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=function s(e,n,o){var u=function(p,f,E,b){var y=E&&b||0;if("string"==typeof p&&(p=function t(e){e=unescape(encodeURIComponent(e));for(var n=new Array(e.length),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return n}(p)),"string"==typeof f&&(f=function l(e){var n=[];return e.replace(/[a-fA-F0-9]{2}/g,function(o){n.push(parseInt(o,16))}),n}(f)),!Array.isArray(p))throw TypeError("value must be an array of bytes");if(!Array.isArray(f)||16!==f.length)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var d=o(f.concat(p));if(d[6]=15&d[6]|n,d[8]=63&d[8]|128,E)for(var m=0;m<16;++m)E[y+m]=d[m];return E||(0,a.default)(d)};try{u.name=e}catch{}return u.DNS=r,u.URL=i,u},w.URL=w.DNS=void 0;var a=function g(e){return e&&e.__esModule?e:{default:e}}(c(32462));const r="6ba7b810-9dad-11d1-80b4-00c04fd430c8";w.DNS=r;const i="6ba7b811-9dad-11d1-80b4-00c04fd430c8";w.URL=i},4737:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=l(c(5507)),g=l(c(32462));function l(i){return i&&i.__esModule?i:{default:i}}w.default=function t(i,s,e){var n=s&&e||0;"string"==typeof i&&(s="binary"===i?new Array(16):null,i=null);var o=(i=i||{}).random||(i.rng||a.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,s)for(var u=0;u<16;++u)s[n+u]=o[u];return s||(0,g.default)(o)}},50834:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=l(c(37729)),g=l(c(73611));function l(i){return i&&i.__esModule?i:{default:i}}var r=(0,a.default)("v5",80,g.default);w.default=r},99707:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),Object.defineProperty(w,"NIL",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(w,"parse",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(w,"stringify",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(w,"v1",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(w,"v3",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(w,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(w,"v5",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(w,"validate",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(w,"version",{enumerable:!0,get:function(){return i.default}});var a=o(c(60146)),g=o(c(74856)),l=o(c(70909)),t=o(c(60990)),r=o(c(58396)),i=o(c(83923)),s=o(c(13841)),e=o(c(75514)),n=o(c(39716));function o(u){return u&&u.__esModule?u:{default:u}}},12435:(W,w)=>{"use strict";function g(f){return 14+(f+64>>>9<<4)+1}function r(f,E){const b=(65535&f)+(65535&E);return(f>>16)+(E>>16)+(b>>16)<<16|65535&b}function s(f,E,b,y,d,m){return r(function i(f,E){return f<<E|f>>>32-E}(r(r(E,f),r(y,m)),d),b)}function e(f,E,b,y,d,m,x){return s(E&b|~E&y,f,E,d,m,x)}function n(f,E,b,y,d,m,x){return s(E&y|b&~y,f,E,d,m,x)}function o(f,E,b,y,d,m,x){return s(E^b^y,f,E,d,m,x)}function u(f,E,b,y,d,m,x){return s(b^(E|~y),f,E,d,m,x)}Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.default=function c(f){if("string"==typeof f){const E=unescape(encodeURIComponent(f));f=new Uint8Array(E.length);for(let b=0;b<E.length;++b)f[b]=E.charCodeAt(b)}return function a(f){const E=[],b=32*f.length,y="0123456789abcdef";for(let d=0;d<b;d+=8){const m=f[d>>5]>>>d%32&255,x=parseInt(y.charAt(m>>>4&15)+y.charAt(15&m),16);E.push(x)}return E}(function l(f,E){f[E>>5]|=128<<E%32,f[g(E)-1]=E;let b=1732584193,y=-271733879,d=-1732584194,m=271733878;for(let x=0;x<f.length;x+=16){const I=b,L=y,R=d,_=m;b=e(b,y,d,m,f[x],7,-680876936),m=e(m,b,y,d,f[x+1],12,-389564586),d=e(d,m,b,y,f[x+2],17,606105819),y=e(y,d,m,b,f[x+3],22,-1044525330),b=e(b,y,d,m,f[x+4],7,-176418897),m=e(m,b,y,d,f[x+5],12,1200080426),d=e(d,m,b,y,f[x+6],17,-1473231341),y=e(y,d,m,b,f[x+7],22,-45705983),b=e(b,y,d,m,f[x+8],7,1770035416),m=e(m,b,y,d,f[x+9],12,-1958414417),d=e(d,m,b,y,f[x+10],17,-42063),y=e(y,d,m,b,f[x+11],22,-1990404162),b=e(b,y,d,m,f[x+12],7,1804603682),m=e(m,b,y,d,f[x+13],12,-40341101),d=e(d,m,b,y,f[x+14],17,-1502002290),y=e(y,d,m,b,f[x+15],22,1236535329),b=n(b,y,d,m,f[x+1],5,-165796510),m=n(m,b,y,d,f[x+6],9,-1069501632),d=n(d,m,b,y,f[x+11],14,643717713),y=n(y,d,m,b,f[x],20,-373897302),b=n(b,y,d,m,f[x+5],5,-701558691),m=n(m,b,y,d,f[x+10],9,38016083),d=n(d,m,b,y,f[x+15],14,-660478335),y=n(y,d,m,b,f[x+4],20,-405537848),b=n(b,y,d,m,f[x+9],5,568446438),m=n(m,b,y,d,f[x+14],9,-1019803690),d=n(d,m,b,y,f[x+3],14,-187363961),y=n(y,d,m,b,f[x+8],20,1163531501),b=n(b,y,d,m,f[x+13],5,-1444681467),m=n(m,b,y,d,f[x+2],9,-51403784),d=n(d,m,b,y,f[x+7],14,1735328473),y=n(y,d,m,b,f[x+12],20,-1926607734),b=o(b,y,d,m,f[x+5],4,-378558),m=o(m,b,y,d,f[x+8],11,-2022574463),d=o(d,m,b,y,f[x+11],16,1839030562),y=o(y,d,m,b,f[x+14],23,-35309556),b=o(b,y,d,m,f[x+1],4,-1530992060),m=o(m,b,y,d,f[x+4],11,1272893353),d=o(d,m,b,y,f[x+7],16,-155497632),y=o(y,d,m,b,f[x+10],23,-1094730640),b=o(b,y,d,m,f[x+13],4,681279174),m=o(m,b,y,d,f[x],11,-358537222),d=o(d,m,b,y,f[x+3],16,-722521979),y=o(y,d,m,b,f[x+6],23,76029189),b=o(b,y,d,m,f[x+9],4,-640364487),m=o(m,b,y,d,f[x+12],11,-421815835),d=o(d,m,b,y,f[x+15],16,530742520),y=o(y,d,m,b,f[x+2],23,-995338651),b=u(b,y,d,m,f[x],6,-198630844),m=u(m,b,y,d,f[x+7],10,1126891415),d=u(d,m,b,y,f[x+14],15,-1416354905),y=u(y,d,m,b,f[x+5],21,-57434055),b=u(b,y,d,m,f[x+12],6,1700485571),m=u(m,b,y,d,f[x+3],10,-1894986606),d=u(d,m,b,y,f[x+10],15,-1051523),y=u(y,d,m,b,f[x+1],21,-2054922799),b=u(b,y,d,m,f[x+8],6,1873313359),m=u(m,b,y,d,f[x+15],10,-30611744),d=u(d,m,b,y,f[x+6],15,-1560198380),y=u(y,d,m,b,f[x+13],21,1309151649),b=u(b,y,d,m,f[x+4],6,-145523070),m=u(m,b,y,d,f[x+11],10,-1120210379),d=u(d,m,b,y,f[x+2],15,718787259),y=u(y,d,m,b,f[x+9],21,-343485551),b=r(b,I),y=r(y,L),d=r(d,R),m=r(m,_)}return[b,y,d,m]}(function t(f){if(0===f.length)return[];const E=8*f.length,b=new Uint32Array(g(E));for(let y=0;y<E;y+=8)b[y>>5]|=(255&f[y/8])<<y%32;return b}(f),8*f.length))}},70856:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};w.default=a},58396:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.default="00000000-0000-0000-0000-000000000000"},39716:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=function g(r){return r&&r.__esModule?r:{default:r}}(c(13841));w.default=function l(r){if(!(0,a.default)(r))throw TypeError("Invalid UUID");let i;const s=new Uint8Array(16);return s[0]=(i=parseInt(r.slice(0,8),16))>>>24,s[1]=i>>>16&255,s[2]=i>>>8&255,s[3]=255&i,s[4]=(i=parseInt(r.slice(9,13),16))>>>8,s[5]=255&i,s[6]=(i=parseInt(r.slice(14,18),16))>>>8,s[7]=255&i,s[8]=(i=parseInt(r.slice(19,23),16))>>>8,s[9]=255&i,s[10]=(i=parseInt(r.slice(24,36),16))/1099511627776&255,s[11]=i/4294967296&255,s[12]=i>>>24&255,s[13]=i>>>16&255,s[14]=i>>>8&255,s[15]=255&i,s}},6420:(W,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},10942:(W,w)=>{"use strict";let c;Object.defineProperty(w,"__esModule",{value:!0}),w.default=function g(){if(!c&&(c=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(a)};const a=new Uint8Array(16)},71198:(W,w)=>{"use strict";function c(t,r,i,s){switch(t){case 0:return r&i^~r&s;case 1:case 3:return r^i^s;case 2:return r&i^r&s^i&s}}function a(t,r){return t<<r|t>>>32-r}Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.default=function g(t){const r=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){const o=unescape(encodeURIComponent(t));t=[];for(let u=0;u<o.length;++u)t.push(o.charCodeAt(u))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const e=Math.ceil((t.length/4+2)/16),n=new Array(e);for(let o=0;o<e;++o){const u=new Uint32Array(16);for(let p=0;p<16;++p)u[p]=t[64*o+4*p]<<24|t[64*o+4*p+1]<<16|t[64*o+4*p+2]<<8|t[64*o+4*p+3];n[o]=u}n[e-1][14]=8*(t.length-1)/Math.pow(2,32),n[e-1][14]=Math.floor(n[e-1][14]),n[e-1][15]=8*(t.length-1)&4294967295;for(let o=0;o<e;++o){const u=new Uint32Array(80);for(let d=0;d<16;++d)u[d]=n[o][d];for(let d=16;d<80;++d)u[d]=a(u[d-3]^u[d-8]^u[d-14]^u[d-16],1);let p=i[0],f=i[1],E=i[2],b=i[3],y=i[4];for(let d=0;d<80;++d){const m=Math.floor(d/20),x=a(p,5)+c(m,f,E,b)+y+r[m]+u[d]>>>0;y=b,b=E,E=a(f,30)>>>0,f=p,p=x}i[0]=i[0]+p>>>0,i[1]=i[1]+f>>>0,i[2]=i[2]+E>>>0,i[3]=i[3]+b>>>0,i[4]=i[4]+y>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]}},75514:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0,w.unsafeStringify=t;var a=function g(s){return s&&s.__esModule?s:{default:s}}(c(13841));const l=[];for(let s=0;s<256;++s)l.push((s+256).toString(16).slice(1));function t(s,e=0){return l[s[e+0]]+l[s[e+1]]+l[s[e+2]]+l[s[e+3]]+"-"+l[s[e+4]]+l[s[e+5]]+"-"+l[s[e+6]]+l[s[e+7]]+"-"+l[s[e+8]]+l[s[e+9]]+"-"+l[s[e+10]]+l[s[e+11]]+l[s[e+12]]+l[s[e+13]]+l[s[e+14]]+l[s[e+15]]}w.default=function r(s,e=0){const n=t(s,e);if(!(0,a.default)(n))throw TypeError("Stringified UUID is invalid");return n}},60146:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=function l(o){return o&&o.__esModule?o:{default:o}}(c(10942)),g=c(75514);let t,r,i=0,s=0;w.default=function e(o,u,p){let f=u&&p||0;const E=u||new Array(16);let b=(o=o||{}).node||t,y=void 0!==o.clockseq?o.clockseq:r;if(null==b||null==y){const R=o.random||(o.rng||a.default)();null==b&&(b=t=[1|R[0],R[1],R[2],R[3],R[4],R[5]]),null==y&&(y=r=16383&(R[6]<<8|R[7]))}let d=void 0!==o.msecs?o.msecs:Date.now(),m=void 0!==o.nsecs?o.nsecs:s+1;const x=d-i+(m-s)/1e4;if(x<0&&void 0===o.clockseq&&(y=y+1&16383),(x<0||d>i)&&void 0===o.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");i=d,s=m,r=y,d+=122192928e5;const I=(1e4*(268435455&d)+m)%4294967296;E[f++]=I>>>24&255,E[f++]=I>>>16&255,E[f++]=I>>>8&255,E[f++]=255&I;const L=d/4294967296*1e4&268435455;E[f++]=L>>>8&255,E[f++]=255&L,E[f++]=L>>>24&15|16,E[f++]=L>>>16&255,E[f++]=y>>>8|128,E[f++]=255&y;for(let R=0;R<6;++R)E[f+R]=b[R];return u||(0,g.unsafeStringify)(E)}},74856:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=l(c(85845)),g=l(c(12435));function l(i){return i&&i.__esModule?i:{default:i}}var r=(0,a.default)("v3",48,g.default);w.default=r},85845:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.URL=w.DNS=void 0,w.default=function s(e,n,o){function u(p,f,E,b){var y;if("string"==typeof p&&(p=function t(e){e=unescape(encodeURIComponent(e));const n=[];for(let o=0;o<e.length;++o)n.push(e.charCodeAt(o));return n}(p)),"string"==typeof f&&(f=(0,g.default)(f)),16!==(null===(y=f)||void 0===y?void 0:y.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let d=new Uint8Array(16+p.length);if(d.set(f),d.set(p,f.length),d=o(d),d[6]=15&d[6]|n,d[8]=63&d[8]|128,E){b=b||0;for(let m=0;m<16;++m)E[b+m]=d[m];return E}return(0,a.unsafeStringify)(d)}try{u.name=e}catch{}return u.DNS=r,u.URL=i,u};var a=c(75514),g=function l(e){return e&&e.__esModule?e:{default:e}}(c(39716));const r="6ba7b810-9dad-11d1-80b4-00c04fd430c8";w.DNS=r;const i="6ba7b811-9dad-11d1-80b4-00c04fd430c8";w.URL=i},70909:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=t(c(70856)),g=t(c(10942)),l=c(75514);function t(s){return s&&s.__esModule?s:{default:s}}w.default=function r(s,e,n){if(a.default.randomUUID&&!e&&!s)return a.default.randomUUID();const o=(s=s||{}).random||(s.rng||g.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(let u=0;u<16;++u)e[n+u]=o[u];return e}return(0,l.unsafeStringify)(o)}},60990:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=l(c(85845)),g=l(c(71198));function l(i){return i&&i.__esModule?i:{default:i}}var r=(0,a.default)("v5",80,g.default);w.default=r},13841:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=function g(r){return r&&r.__esModule?r:{default:r}}(c(6420));w.default=function l(r){return"string"==typeof r&&a.default.test(r)}},83923:(W,w,c)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.default=void 0;var a=function g(r){return r&&r.__esModule?r:{default:r}}(c(13841));w.default=function l(r){if(!(0,a.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}},32278:(W,w,c)=>{"use strict";var a=c(21426),g=c(52365),l=c(40588),t=l("Object.prototype.toString"),r=c(16075)(),i=typeof globalThis>"u"?global:globalThis,s=g(),e=l("String.prototype.slice"),n={},o=c(43053),u=Object.getPrototypeOf;r&&o&&u&&a(s,function(E){if("function"==typeof i[E]){var b=new i[E];if(Symbol.toStringTag in b){var y=u(b),d=o(y,Symbol.toStringTag);if(!d){var m=u(y);d=o(m,Symbol.toStringTag)}n[E]=d.get}}});var f=c(94345);W.exports=function(b){return!!f(b)&&(r&&Symbol.toStringTag in b?function(b){var y=!1;return a(n,function(d,m){if(!y)try{var x=d.call(b);x===m&&(y=x)}catch{}}),y}(b):e(t(b),8,-1))}},70822:(W,w,c)=>{W.exports=c(36129).Observable},36129:(W,w)=>{"use strict";function a(_,O){if(!(_ instanceof O))throw new TypeError("Cannot call a class as a function")}function g(_,O){for(var h=0;h<O.length;h++){var A=O[h];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(_,A.key,A)}}function l(_,O,h){return O&&g(_.prototype,O),h&&g(_,h),_}w.Observable=void 0;var t=function(){return"function"==typeof Symbol},r=function(_){return t()&&!!Symbol[_]},i=function(_){return r(_)?Symbol[_]:"@@"+_};t()&&!r("observable")&&(Symbol.observable=Symbol("observable"));var s=i("iterator"),e=i("observable"),n=i("species");function o(_,O){var h=_[O];if(null!=h){if("function"!=typeof h)throw new TypeError(h+" is not a function");return h}}function u(_){var O=_.constructor;return void 0!==O&&null===(O=O[n])&&(O=void 0),void 0!==O?O:R}function f(_){f.log?f.log(_):setTimeout(function(){throw _})}function E(_){Promise.resolve().then(function(){try{_()}catch(O){f(O)}})}function b(_){var O=_._cleanup;if(void 0!==O&&(_._cleanup=void 0,O))try{if("function"==typeof O)O();else{var h=o(O,"unsubscribe");h&&h.call(O)}}catch(A){f(A)}}function y(_){_._observer=void 0,_._queue=void 0,_._state="closed"}function m(_,O,h){_._state="running";var A=_._observer;try{var v=o(A,O);switch(O){case"next":v&&v.call(A,h);break;case"error":if(y(_),!v)throw h;v.call(A,h);break;case"complete":y(_),v&&v.call(A)}}catch(C){f(C)}"closed"===_._state?b(_):"running"===_._state&&(_._state="ready")}function x(_,O,h){if("closed"!==_._state){if("buffering"===_._state)return void _._queue.push({type:O,value:h});if("ready"!==_._state)return _._state="buffering",_._queue=[{type:O,value:h}],void E(function(){return function d(_){var O=_._queue;if(O){_._queue=void 0,_._state="ready";for(var h=0;h<O.length&&(m(_,O[h].type,O[h].value),"closed"!==_._state);++h);}}(_)});m(_,O,h)}}var I=function(){function _(O,h){a(this,_),this._cleanup=void 0,this._observer=O,this._queue=void 0,this._state="initializing";var A=new L(this);try{this._cleanup=h.call(void 0,A)}catch(v){A.error(v)}"initializing"===this._state&&(this._state="ready")}return l(_,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(y(this),b(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),_}(),L=function(){function _(O){a(this,_),this._subscription=O}return l(_,[{key:"next",value:function(h){x(this._subscription,"next",h)}},{key:"error",value:function(h){x(this._subscription,"error",h)}},{key:"complete",value:function(){x(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),_}(),R=function(){function _(O){if(a(this,_),!(this instanceof _))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof O)throw new TypeError("Observable initializer must be a function");this._subscriber=O}return l(_,[{key:"subscribe",value:function(h){return("object"!=typeof h||null===h)&&(h={next:h,error:arguments[1],complete:arguments[2]}),new I(h,this._subscriber)}},{key:"forEach",value:function(h){var A=this;return new Promise(function(v,C){if("function"==typeof h)var N=A.subscribe({next:function(j){try{h(j,U)}catch(Y){C(Y),N.unsubscribe()}},error:C,complete:v});else C(new TypeError(h+" is not a function"));function U(){N.unsubscribe(),v()}})}},{key:"map",value:function(h){var A=this;if("function"!=typeof h)throw new TypeError(h+" is not a function");return new(u(this))(function(C){return A.subscribe({next:function(U){try{U=h(U)}catch(N){return C.error(N)}C.next(U)},error:function(U){C.error(U)},complete:function(){C.complete()}})})}},{key:"filter",value:function(h){var A=this;if("function"!=typeof h)throw new TypeError(h+" is not a function");return new(u(this))(function(C){return A.subscribe({next:function(U){try{if(!h(U))return}catch(N){return C.error(N)}C.next(U)},error:function(U){C.error(U)},complete:function(){C.complete()}})})}},{key:"reduce",value:function(h){var A=this;if("function"!=typeof h)throw new TypeError(h+" is not a function");var v=u(this),C=arguments.length>1,U=!1,j=arguments[1];return new v(function(Y){return A.subscribe({next:function(re){var B=!U;if(U=!0,!B||C)try{j=h(j,re)}catch(J){return Y.error(J)}else j=re},error:function(re){Y.error(re)},complete:function(){if(!U&&!C)return Y.error(new TypeError("Cannot reduce an empty sequence"));Y.next(j),Y.complete()}})})}},{key:"concat",value:function(){for(var h=this,A=arguments.length,v=new Array(A),C=0;C<A;C++)v[C]=arguments[C];var U=u(this);return new U(function(N){var j,Y=0;return function re(B){j=B.subscribe({next:function(J){N.next(J)},error:function(J){N.error(J)},complete:function(){Y===v.length?(j=void 0,N.complete()):re(U.from(v[Y++]))}})}(h),function(){j&&(j.unsubscribe(),j=void 0)}})}},{key:"flatMap",value:function(h){var A=this;if("function"!=typeof h)throw new TypeError(h+" is not a function");var v=u(this);return new v(function(C){var U=[],N=A.subscribe({next:function(Y){if(h)try{Y=h(Y)}catch(B){return C.error(B)}var re=v.from(Y).subscribe({next:function(B){C.next(B)},error:function(B){C.error(B)},complete:function(){var B=U.indexOf(re);B>=0&&U.splice(B,1),j()}});U.push(re)},error:function(Y){C.error(Y)},complete:function(){j()}});function j(){N.closed&&0===U.length&&C.complete()}return function(){U.forEach(function(Y){return Y.unsubscribe()}),N.unsubscribe()}})}},{key:e,value:function(){return this}}],[{key:"from",value:function(h){var A="function"==typeof this?this:_;if(null==h)throw new TypeError(h+" is not an object");var v=o(h,e);if(v){var C=v.call(h);if(Object(C)!==C)throw new TypeError(C+" is not an object");return function p(_){return _ instanceof R}(C)&&C.constructor===A?C:new A(function(U){return C.subscribe(U)})}if(r("iterator")&&(v=o(h,s)))return new A(function(U){E(function(){if(!U.closed){var N=!0,j=!1,Y=void 0;try{for(var B,re=v.call(h)[Symbol.iterator]();!(N=(B=re.next()).done);N=!0)if(U.next(B.value),U.closed)return}catch(Q){j=!0,Y=Q}finally{try{!N&&null!=re.return&&re.return()}finally{if(j)throw Y}}U.complete()}})});if(Array.isArray(h))return new A(function(U){E(function(){if(!U.closed){for(var N=0;N<h.length;++N)if(U.next(h[N]),U.closed)return;U.complete()}})});throw new TypeError(h+" is not observable")}},{key:"of",value:function(){for(var h=arguments.length,A=new Array(h),v=0;v<h;v++)A[v]=arguments[v];return new("function"==typeof this?this:_)(function(U){E(function(){if(!U.closed){for(var N=0;N<A.length;++N)if(U.next(A[N]),U.closed)return;U.complete()}})})}},{key:n,get:function(){return this}}]),_}();w.Observable=R,t()&&Object.defineProperty(R,Symbol("extensions"),{value:{symbol:e,hostReportError:f},configurable:!0})},36635:(W,w,c)=>{"use strict";c.r(w),c.d(w,{AppSyncRequestHandler:()=>o});var a=c(57586),g=c(33662),l=c(86487),t=c(77172),i=c(99311),s=c(24060),e=c(18111),n=c(49601);class o{handle(p){return new a.c(f=>{const E="string"==typeof p.additionalParams?.aws_appsync_graphqlEndpoint?p.additionalParams.aws_appsync_graphqlEndpoint:"",b="string"==typeof p.additionalParams?.aws_appsync_region?p.additionalParams.aws_appsync_region:"",y={type:"string"==typeof p.additionalParams?.aws_appsync_authenticationType?p.additionalParams.aws_appsync_authenticationType:"",apiKey:"string"==typeof p.additionalParams?.aws_appsync_apiKey?p.additionalParams.aws_appsync_apiKey:"",jwtToken:"string"==typeof p.additionalParams?.aws_appsync_jwtToken?p.additionalParams.aws_appsync_jwtToken:""},d=i.ApolloLink.from([(0,l.rO)({url:E,region:b,auth:y}),(0,t.createSubscriptionHandshakeLink)({url:E,region:b,auth:y})]),m=new s.R({link:d,cache:new e.D}),x=Date.now();return this.subscription=m.subscribe({query:(0,g.qg)(p.query),variables:p.variables}).subscribe((0,n.G)(f,p.url,x)),()=>{this.destroy()}})}destroy(){this.subscription?.closed&&this.subscription?.unsubscribe()}}},40909:(W,w,c)=>{"use strict";c.r(w),c.d(w,{__assign:()=>l,__asyncDelegator:()=>m,__asyncGenerator:()=>d,__asyncValues:()=>x,__await:()=>y,__awaiter:()=>e,__classPrivateFieldGet:()=>_,__classPrivateFieldSet:()=>O,__createBinding:()=>o,__decorate:()=>r,__exportStar:()=>u,__extends:()=>g,__generator:()=>n,__importDefault:()=>R,__importStar:()=>L,__makeTemplateObject:()=>I,__metadata:()=>s,__param:()=>i,__read:()=>f,__rest:()=>t,__spread:()=>E,__spreadArrays:()=>b,__values:()=>p});var a=function(h,A){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,C){v.__proto__=C}||function(v,C){for(var U in C)C.hasOwnProperty(U)&&(v[U]=C[U])})(h,A)};function g(h,A){function v(){this.constructor=h}a(h,A),h.prototype=null===A?Object.create(A):(v.prototype=A.prototype,new v)}var l=function(){return l=Object.assign||function(A){for(var v,C=1,U=arguments.length;C<U;C++)for(var N in v=arguments[C])Object.prototype.hasOwnProperty.call(v,N)&&(A[N]=v[N]);return A},l.apply(this,arguments)};function t(h,A){var v={};for(var C in h)Object.prototype.hasOwnProperty.call(h,C)&&A.indexOf(C)<0&&(v[C]=h[C]);if(null!=h&&"function"==typeof Object.getOwnPropertySymbols){var U=0;for(C=Object.getOwnPropertySymbols(h);U<C.length;U++)A.indexOf(C[U])<0&&Object.prototype.propertyIsEnumerable.call(h,C[U])&&(v[C[U]]=h[C[U]])}return v}function r(h,A,v,C){var j,U=arguments.length,N=U<3?A:null===C?C=Object.getOwnPropertyDescriptor(A,v):C;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(h,A,v,C);else for(var Y=h.length-1;Y>=0;Y--)(j=h[Y])&&(N=(U<3?j(N):U>3?j(A,v,N):j(A,v))||N);return U>3&&N&&Object.defineProperty(A,v,N),N}function i(h,A){return function(v,C){A(v,C,h)}}function s(h,A){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(h,A)}function e(h,A,v,C){return new(v||(v=Promise))(function(N,j){function Y(J){try{B(C.next(J))}catch(Q){j(Q)}}function re(J){try{B(C.throw(J))}catch(Q){j(Q)}}function B(J){J.done?N(J.value):function U(N){return N instanceof v?N:new v(function(j){j(N)})}(J.value).then(Y,re)}B((C=C.apply(h,A||[])).next())})}function n(h,A){var C,U,N,j,v={label:0,sent:function(){if(1&N[0])throw N[1];return N[1]},trys:[],ops:[]};return j={next:Y(0),throw:Y(1),return:Y(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function Y(B){return function(J){return function re(B){if(C)throw new TypeError("Generator is already executing.");for(;v;)try{if(C=1,U&&(N=2&B[0]?U.return:B[0]?U.throw||((N=U.return)&&N.call(U),0):U.next)&&!(N=N.call(U,B[1])).done)return N;switch(U=0,N&&(B=[2&B[0],N.value]),B[0]){case 0:case 1:N=B;break;case 4:return v.label++,{value:B[1],done:!1};case 5:v.label++,U=B[1],B=[0];continue;case 7:B=v.ops.pop(),v.trys.pop();continue;default:if(!(N=(N=v.trys).length>0&&N[N.length-1])&&(6===B[0]||2===B[0])){v=0;continue}if(3===B[0]&&(!N||B[1]>N[0]&&B[1]<N[3])){v.label=B[1];break}if(6===B[0]&&v.label<N[1]){v.label=N[1],N=B;break}if(N&&v.label<N[2]){v.label=N[2],v.ops.push(B);break}N[2]&&v.ops.pop(),v.trys.pop();continue}B=A.call(h,v)}catch(J){B=[6,J],U=0}finally{C=N=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,J])}}}function o(h,A,v,C){void 0===C&&(C=v),h[C]=A[v]}function u(h,A){for(var v in h)"default"!==v&&!A.hasOwnProperty(v)&&(A[v]=h[v])}function p(h){var A="function"==typeof Symbol&&Symbol.iterator,v=A&&h[A],C=0;if(v)return v.call(h);if(h&&"number"==typeof h.length)return{next:function(){return h&&C>=h.length&&(h=void 0),{value:h&&h[C++],done:!h}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(h,A){var v="function"==typeof Symbol&&h[Symbol.iterator];if(!v)return h;var U,j,C=v.call(h),N=[];try{for(;(void 0===A||A-- >0)&&!(U=C.next()).done;)N.push(U.value)}catch(Y){j={error:Y}}finally{try{U&&!U.done&&(v=C.return)&&v.call(C)}finally{if(j)throw j.error}}return N}function E(){for(var h=[],A=0;A<arguments.length;A++)h=h.concat(f(arguments[A]));return h}function b(){for(var h=0,A=0,v=arguments.length;A<v;A++)h+=arguments[A].length;var C=Array(h),U=0;for(A=0;A<v;A++)for(var N=arguments[A],j=0,Y=N.length;j<Y;j++,U++)C[U]=N[j];return C}function y(h){return this instanceof y?(this.v=h,this):new y(h)}function d(h,A,v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,C=v.apply(h,A||[]),N=[];return U={},j("next"),j("throw"),j("return"),U[Symbol.asyncIterator]=function(){return this},U;function j(H){C[H]&&(U[H]=function(z){return new Promise(function($,X){N.push([H,z,$,X])>1||Y(H,z)})})}function Y(H,z){try{!function re(H){H.value instanceof y?Promise.resolve(H.value.v).then(B,J):Q(N[0][2],H)}(C[H](z))}catch($){Q(N[0][3],$)}}function B(H){Y("next",H)}function J(H){Y("throw",H)}function Q(H,z){H(z),N.shift(),N.length&&Y(N[0][0],N[0][1])}}function m(h){var A,v;return A={},C("next"),C("throw",function(U){throw U}),C("return"),A[Symbol.iterator]=function(){return this},A;function C(U,N){A[U]=h[U]?function(j){return(v=!v)?{value:y(h[U](j)),done:"return"===U}:N?N(j):j}:N}}function x(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,A=h[Symbol.asyncIterator];return A?A.call(h):(h=p(h),v={},C("next"),C("throw"),C("return"),v[Symbol.asyncIterator]=function(){return this},v);function C(N){v[N]=h[N]&&function(j){return new Promise(function(Y,re){!function U(N,j,Y,re){Promise.resolve(re).then(function(B){N({value:B,done:Y})},j)}(Y,re,(j=h[N](j)).done,j.value)})}}}function I(h,A){return Object.defineProperty?Object.defineProperty(h,"raw",{value:A}):h.raw=A,h}function L(h){if(h&&h.__esModule)return h;var A={};if(null!=h)for(var v in h)Object.hasOwnProperty.call(h,v)&&(A[v]=h[v]);return A.default=h,A}function R(h){return h&&h.__esModule?h:{default:h}}function _(h,A){if(!A.has(h))throw new TypeError("attempted to get private field on non-instance");return A.get(h)}function O(h,A,v){if(!A.has(h))throw new TypeError("attempted to set private field on non-instance");return A.set(h,v),v}},47464:()=>{},52365:W=>{"use strict";var w=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],c=typeof globalThis>"u"?global:globalThis;W.exports=function(){for(var g=[],l=0;l<w.length;l++)"function"==typeof c[w[l]]&&(g[g.length]=w[l]);return g}},43053:(W,w,c)=>{"use strict";W.exports=c(16530)},37432:W=>{"use strict";W.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"}}')},45442:W=>{"use strict";W.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"}}')},77691:W=>{"use strict";W.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":{}}}}')},47577:W=>{"use strict";W.exports=JSON.parse('{"X":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},73459:W=>{"use strict";W.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"}}')},90549:W=>{"use strict";W.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":{}}}}}')},14039:W=>{"use strict";W.exports={X:{}}},27512:W=>{"use strict";W.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"}}}')}}]);
4
- //# sourceMappingURL=635.js.map
5
- //# debugId=8ebbb19f-a97a-57a9-a2d7-e7f544957d6b