altair-static 4.0.9 → 4.2.0

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.
Files changed (88) hide show
  1. package/build/dist/108.js +1 -0
  2. package/build/dist/283.js +1 -0
  3. package/build/dist/379.js +1 -0
  4. package/build/dist/3rdpartylicenses.txt +52 -156
  5. package/build/dist/471.js +1 -0
  6. package/build/dist/527.js +1 -0
  7. package/build/dist/604.js +1 -0
  8. package/build/dist/672.js +1 -0
  9. package/build/dist/709.js +1 -0
  10. package/build/dist/729.js +1 -0
  11. package/build/dist/747.js +1 -0
  12. package/build/dist/790.js +1 -0
  13. package/build/dist/794.js +1 -0
  14. package/build/dist/866.js +1 -0
  15. package/build/dist/873.js +1 -0
  16. package/build/dist/934.js +1 -0
  17. package/build/dist/assets/i18n/ach-UG.json +157 -153
  18. package/build/dist/assets/i18n/cs-CZ.json +4 -0
  19. package/build/dist/assets/i18n/da-DK.json +4 -0
  20. package/build/dist/assets/i18n/de-DE.json +4 -0
  21. package/build/dist/assets/i18n/default.json +4 -0
  22. package/build/dist/assets/i18n/en-US.json +4 -0
  23. package/build/dist/assets/i18n/es-ES.json +4 -0
  24. package/build/dist/assets/i18n/fi-FI.json +4 -0
  25. package/build/dist/assets/i18n/fr-FR.json +4 -0
  26. package/build/dist/assets/i18n/hu-HU.json +4 -0
  27. package/build/dist/assets/i18n/it-IT.json +4 -0
  28. package/build/dist/assets/i18n/ja-JP.json +4 -0
  29. package/build/dist/assets/i18n/ko-KR.json +4 -0
  30. package/build/dist/assets/i18n/nl-NL.json +4 -0
  31. package/build/dist/assets/i18n/no-NO.json +4 -0
  32. package/build/dist/assets/i18n/pl-PL.json +4 -0
  33. package/build/dist/assets/i18n/pt-BR.json +4 -0
  34. package/build/dist/assets/i18n/pt-PT.json +4 -0
  35. package/build/dist/assets/i18n/ro-RO.json +4 -0
  36. package/build/dist/assets/i18n/ru-RU.json +30 -26
  37. package/build/dist/assets/i18n/sr-SP.json +4 -0
  38. package/build/dist/assets/i18n/sv-SE.json +4 -0
  39. package/build/dist/assets/i18n/tr-TR.json +4 -0
  40. package/build/dist/assets/i18n/uk-UA.json +4 -0
  41. package/build/dist/assets/i18n/vi-VN.json +4 -0
  42. package/build/dist/assets/i18n/zh-CN.json +12 -8
  43. package/build/dist/assets/i18n/zh-TW.json +4 -0
  44. package/build/dist/index.html +3 -3
  45. package/build/dist/main.js +1 -0
  46. package/build/dist/polyfills.js +1 -0
  47. package/build/dist/runtime.js +1 -0
  48. package/build/dist/styles.css +2 -2
  49. package/build/index.js +21 -28
  50. package/build/index.js.map +1 -1
  51. package/build/index.test.js +23 -13
  52. package/build/index.test.js.map +1 -1
  53. package/build/utils/get-altair-html.js +3 -3
  54. package/build/utils/get-altair-html.js.map +1 -1
  55. package/build/utils/get-dist.js +2 -2
  56. package/build/utils/get-dist.js.map +1 -1
  57. package/package.json +4 -4
  58. package/tsconfig.json +1 -1
  59. package/build/dist/0-es2018.worker.js +0 -1
  60. package/build/dist/0-es5.worker.js +0 -1
  61. package/build/dist/1-es2018.js +0 -1
  62. package/build/dist/1-es5.js +0 -1
  63. package/build/dist/10-es2018.js +0 -1
  64. package/build/dist/10-es5.js +0 -1
  65. package/build/dist/11-es2018.js +0 -1
  66. package/build/dist/11-es5.js +0 -1
  67. package/build/dist/12-es2018.js +0 -1
  68. package/build/dist/12-es5.js +0 -1
  69. package/build/dist/13-es2018.js +0 -1
  70. package/build/dist/13-es5.js +0 -1
  71. package/build/dist/14-es2018.js +0 -1
  72. package/build/dist/14-es5.js +0 -1
  73. package/build/dist/15-es2018.js +0 -1
  74. package/build/dist/15-es5.js +0 -1
  75. package/build/dist/2-es2018.js +0 -1
  76. package/build/dist/2-es5.js +0 -1
  77. package/build/dist/7-es2018.js +0 -1
  78. package/build/dist/7-es5.js +0 -1
  79. package/build/dist/8-es2018.js +0 -1
  80. package/build/dist/8-es5.js +0 -1
  81. package/build/dist/9-es2018.js +0 -1
  82. package/build/dist/9-es5.js +0 -1
  83. package/build/dist/main-es2018.js +0 -1
  84. package/build/dist/main-es5.js +0 -1
  85. package/build/dist/polyfills-es2018.js +0 -1
  86. package/build/dist/polyfills-es5.js +0 -1
  87. package/build/dist/runtime-es2018.js +0 -1
  88. package/build/dist/runtime-es5.js +0 -1
@@ -0,0 +1 @@
1
+ (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[794],{5794:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.AppSyncSubscriptionProvider=void 0;const n=s(71251),y=s(52999),l=s(11984),e=s(37490),t=s(52247),a=s(63262);I.AppSyncSubscriptionProvider=class extends n.SubscriptionProvider{execute(i){const c=this.connectionParams.aws_appsync_graphqlEndpoint,d=this.connectionParams.aws_appsync_region,g={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},p=t.ApolloLink.from([l.createAuthLink({url:c,region:d,auth:g}),e.createSubscriptionHandshakeLink({url:c,region:d,auth:g})]),S=new t.ApolloClient({link:p,cache:new t.InMemoryCache}).subscribe({query:a.parse(i.query),variables:i.variables});return new y.Observable(b=>{this.subscription=S.subscribe({next:(...A)=>b.next(...A),error:(...A)=>b.error(...A),complete:()=>b.complete()})})}close(){var i,c;(null==(i=this.subscription)?void 0:i.closed)&&(null==(c=this.subscription)||c.unsubscribe())}}},17629:(J,I,s)=>{"use strict";s.d(I,{R:()=>l});var n=s(6462),y=s(50216),l=function(){function e(){this.getFragmentDoc=(0,n.re)(y.Yk)}return e.prototype.recordOptimisticTransaction=function(t,a){this.performTransaction(t,a)},e.prototype.transformDocument=function(t){return t},e.prototype.identify=function(t){},e.prototype.gc=function(){return[]},e.prototype.modify=function(t){return!1},e.prototype.transformForLink=function(t){return t},e.prototype.readQuery=function(t,a){return void 0===a&&(a=!!t.optimistic),this.read({rootId:t.id||"ROOT_QUERY",query:t.query,variables:t.variables,returnPartialData:t.returnPartialData,optimistic:a})},e.prototype.readFragment=function(t,a){return void 0===a&&(a=!!t.optimistic),this.read({query:this.getFragmentDoc(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,returnPartialData:t.returnPartialData,optimistic:a})},e.prototype.writeQuery=function(t){return this.write({dataId:t.id||"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables,broadcast:t.broadcast})},e.prototype.writeFragment=function(t){return this.write({dataId:t.id,result:t.data,variables:t.variables,query:this.getFragmentDoc(t.fragment,t.fragmentName),broadcast:t.broadcast})},e}()},43015:(J,I,s)=>{"use strict";var n;s.d(I,{C:()=>n}),n||(n={})},73860:(J,I,s)=>{"use strict";s.d(I,{y:()=>n});var n=function(l,e,t,a,o){this.message=l,this.path=e,this.query=t,this.clientOnly=a,this.variables=o}},3916:(J,I,s)=>{"use strict";s.d(I,{RI:()=>e,$O:()=>a,E_:()=>o,RC:()=>r,j:()=>i,ig:()=>c});var n=s(30534),y=s(17334),l=s(2456),e=Object.prototype.hasOwnProperty,a=/^[_a-z][_0-9a-z]*/i;function o(d){var g=d.match(a);return g?g[0]:d}function r(d,g,p){return!(!g||"object"!=typeof g)&&(Array.isArray(g)?g.every(function(T){return r(d,T,p)}):d.selections.every(function(T){if((0,n.My)(T)&&(0,y.LZ)(T,p)){var S=(0,n.u2)(T);return e.call(g,S)&&(!T.selectionSet||r(T.selectionSet,g[S],p))}return!0}))}function i(d){return null!==d&&"object"==typeof d&&!(0,n.Yk)(d)&&!Array.isArray(d)}function c(){return new l.w0}},41695:(J,I,s)=>{"use strict";s.d(I,{h:()=>k});var K,C,n=s(48399),y=s(6462),l=s(17629),e=s(73860),t=s(30534),a=s(52107),o=s(70977),r=s(83368),i=s(50216),c=s(17334),d=s(2456),g=s(38546),b=s(73005),A=s(3916),x=Object.create(null),G=function(){return x},W=Object.create(null),H=function(){function K(C,f){var O=this;this.policies=C,this.group=f,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(E,M){return(0,t.Yk)(E)?O.get(E.__ref,M):E&&E[M]},this.canRead=function(E){return(0,t.Yk)(E)?O.has(E.__ref):"object"==typeof E},this.toReference=function(E,M){if("string"==typeof E)return(0,t.kQ)(E);if((0,t.Yk)(E))return E;var j=O.policies.identify(E)[0];if(j){var q=(0,t.kQ)(j);return M&&O.merge(j,E),q}}}return K.prototype.toObject=function(){return(0,n.pi)({},this.data)},K.prototype.has=function(C){return void 0!==this.lookup(C,!0)},K.prototype.get=function(C,f){if(this.group.depend(C,f),A.RI.call(this.data,C)){var O=this.data[C];if(O&&A.RI.call(O,f))return O[f]}return"__typename"===f&&A.RI.call(this.policies.rootTypenamesById,C)?this.policies.rootTypenamesById[C]:this instanceof w?this.parent.get(C,f):void 0},K.prototype.lookup=function(C,f){return f&&this.group.depend(C,"__exists"),A.RI.call(this.data,C)?this.data[C]:this instanceof w?this.parent.lookup(C,f):this.policies.rootTypenamesById[C]?Object.create(null):void 0},K.prototype.merge=function(C,f){var O=this,E=this.lookup(C),M=new d.w0(u).merge(E,f);if(this.data[C]=M,M!==E&&(delete this.refs[C],this.group.caching)){var j=Object.create(null);E||(j.__exists=1),Object.keys(f).forEach(function(q){if(!E||E[q]!==M[q]){j[q]=1;var ne=(0,A.E_)(q);ne!==q&&!O.policies.hasKeyArgs(M.__typename,ne)&&(j[ne]=1),void 0===M[q]&&!(O instanceof w)&&delete M[q]}}),Object.keys(j).forEach(function(q){return O.group.dirty(C,q)})}},K.prototype.modify=function(C,f){var O=this,E=this.lookup(C);if(E){var M=Object.create(null),j=!1,q=!0,ne={DELETE:x,INVALIDATE:W,isReference:t.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(oe,de){return O.policies.readField("string"==typeof oe?{fieldName:oe,from:de||(0,t.kQ)(C)}:oe,{store:O})}};if(Object.keys(E).forEach(function(oe){var de=(0,A.E_)(oe),ve=E[oe];if(void 0!==ve){var be="function"==typeof f?f:f[oe]||f[de];if(be){var me=be===G?x:be(ve,(0,n.pi)((0,n.pi)({},ne),{fieldName:de,storeFieldName:oe,storage:O.getStorage(C,oe)}));me===W?O.group.dirty(C,oe):(me===x&&(me=void 0),me!==ve&&(M[oe]=me,j=!0,ve=me))}void 0!==ve&&(q=!1)}}),j)return this.merge(C,M),q&&(this instanceof w?this.data[C]=void 0:delete this.data[C],this.group.dirty(C,"__exists")),!0}return!1},K.prototype.delete=function(C,f,O){var E,M=this.lookup(C);if(M){var j=this.getFieldValue(M,"__typename"),q=f&&O?this.policies.getStoreFieldName({typename:j,fieldName:f,args:O}):f;return this.modify(C,q?((E={})[q]=G,E):G)}return!1},K.prototype.evict=function(C){var f=!1;return C.id&&(A.RI.call(this.data,C.id)&&(f=this.delete(C.id,C.fieldName,C.args)),this instanceof w&&(f=this.parent.evict(C)||f),(C.fieldName||f)&&this.group.dirty(C.id,C.fieldName||"__exists")),f},K.prototype.clear=function(){this.replace(null)},K.prototype.extract=function(){var C=this,f=this.toObject(),O=[];return this.getRootIdSet().forEach(function(E){A.RI.call(C.policies.rootTypenamesById,E)||O.push(E)}),O.length&&(f.__META={extraRootIds:O.sort()}),f},K.prototype.replace=function(C){var f=this;if(Object.keys(this.data).forEach(function(M){C&&A.RI.call(C,M)||f.delete(M)}),C){var O=C.__META,E=(0,n._T)(C,["__META"]);Object.keys(E).forEach(function(M){f.merge(M,E[M])}),O&&O.extraRootIds.forEach(this.retain,this)}},K.prototype.retain=function(C){return this.rootIds[C]=(this.rootIds[C]||0)+1},K.prototype.release=function(C){if(this.rootIds[C]>0){var f=--this.rootIds[C];return f||delete this.rootIds[C],f}return 0},K.prototype.getRootIdSet=function(C){return void 0===C&&(C=new Set),Object.keys(this.rootIds).forEach(C.add,C),this instanceof w?this.parent.getRootIdSet(C):Object.keys(this.policies.rootTypenamesById).forEach(C.add,C),C},K.prototype.gc=function(){var C=this,f=this.getRootIdSet(),O=this.toObject();f.forEach(function(j){A.RI.call(O,j)&&(Object.keys(C.findChildRefIds(j)).forEach(f.add,f),delete O[j])});var E=Object.keys(O);if(E.length){for(var M=this;M instanceof w;)M=M.parent;E.forEach(function(j){return M.delete(j)})}return E},K.prototype.findChildRefIds=function(C){if(!A.RI.call(this.refs,C)){var f=this.refs[C]=Object.create(null),O=new Set([this.data[C]]),E=function(M){return null!==M&&"object"==typeof M};O.forEach(function(M){(0,t.Yk)(M)?f[M.__ref]=!0:E(M)&&Object.values(M).filter(E).forEach(O.add,O)})}return this.refs[C]},K.prototype.makeCacheKey=function(){for(var C=[],f=0;f<arguments.length;f++)C[f]=arguments[f];return this.group.keyMaker.lookupArray(C)},K}(),B=function(){function K(C){this.caching=C,this.d=null,this.keyMaker=new y.Gl(b.m),this.d=C?(0,y.dP)():null}return K.prototype.depend=function(C,f){if(this.d){this.d(m(C,f));var O=(0,A.E_)(f);O!==f&&this.d(m(C,O))}},K.prototype.dirty=function(C,f){this.d&&this.d.dirty(m(C,f))},K}();function m(K,C){return C+"#"+K}C=function(f){function O(E){var j=E.resultCaching,q=void 0===j||j,ne=E.seed,oe=f.call(this,E.policies,new B(q))||this;return oe.storageTrie=new y.Gl(b.m),oe.sharedLayerGroup=new B(q),ne&&oe.replace(ne),oe}return(0,n.ZT)(O,f),O.prototype.addLayer=function(E,M){return new w(E,this,M,this.sharedLayerGroup)},O.prototype.removeLayer=function(){return this},O.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},O}(K=H||(H={})),K.Root=C;var w=function(K){function C(f,O,E,M){var j=K.call(this,O.policies,M)||this;return j.id=f,j.parent=O,j.replay=E,j.group=M,E(j),j}return(0,n.ZT)(C,K),C.prototype.addLayer=function(f,O){return new C(f,this,O,this.group)},C.prototype.removeLayer=function(f){var O=this,E=this.parent.removeLayer(f);return f===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(M){O.data[M]!==E.lookup(M)&&O.delete(M)}),E):E===this.parent?this:E.addLayer(this.id,this.replay)},C.prototype.toObject=function(){return(0,n.pi)((0,n.pi)({},this.parent.toObject()),this.data)},C.prototype.findChildRefIds=function(f){var O=this.parent.findChildRefIds(f);return A.RI.call(this.data,f)?(0,n.pi)((0,n.pi)({},O),K.prototype.findChildRefIds.call(this,f)):O},C.prototype.getStorage=function(){for(var f=this.parent;f.parent;)f=f.parent;return f.getStorage.apply(f,arguments)},C}(H);function u(K,C,f){var O=K[f],E=C[f];return(0,g.D)(O,E)?O:E}function v(K){return!!(K instanceof H&&K.group.caching)}function h(K,C){return new e.y(K.message,C.path.slice(),C.query,C.clientOnly,C.variables)}var R=function(){function K(C){var f=this;this.config=C,this.executeSelectionSet=(0,y.re)(function(O){return f.execSelectionSetImpl(O)},{keyArgs:function(O){return[O.selectionSet,O.objectOrReference,O.context]},makeCacheKey:function(O,E,M){if(v(M.store))return M.store.makeCacheKey(O,(0,t.Yk)(E)?E.__ref:E,M.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,y.re)(function(O){return f.execSubSelectedArrayImpl(O)},{makeCacheKey:function(O){var E=O.field,M=O.array,j=O.context;if(v(j.store))return j.store.makeCacheKey(E,M,j.varString)}}),this.config=(0,n.pi)({addTypename:!0},C)}return K.prototype.diffQueryAgainstStore=function(C){var f=C.store,O=C.query,E=C.rootId,M=void 0===E?"ROOT_QUERY":E,j=C.variables,q=C.returnPartialData,ne=void 0===q||q,oe=this.config.cache.policies;j=(0,n.pi)((0,n.pi)({},(0,r.O4)((0,r.iW)(O))),j);var de=this.executeSelectionSet({selectionSet:(0,r.p$)(O).selectionSet,objectOrReference:(0,t.kQ)(M),context:{store:f,query:O,policies:oe,variables:j,varString:JSON.stringify(j),fragmentMap:(0,i.F)((0,r.kU)(O)),path:[],clientOnly:!1}}),ve=de.missing&&de.missing.length>0;if(ve&&!ne)throw de.missing[0];return{result:de.result,missing:de.missing,complete:!ve}},K.prototype.isFresh=function(C,f,O,E){if(v(E.store)&&this.knownResults.get(C)===O){var M=this.executeSelectionSet.peek(O,f,E);if(M&&C===M.result)return!0}return!1},K.prototype.execSelectionSetImpl=function(C){var f=this,O=C.selectionSet,E=C.objectOrReference,M=C.context;if((0,t.Yk)(E)&&!M.policies.rootTypenamesById[E.__ref]&&!M.store.has(E.__ref))return{result:{},missing:[h(new o.ej(4),M)]};var j=M.variables,q=M.policies,oe=[],de={result:null},ve=M.store.getFieldValue(E,"__typename");function be(){return de.missing||(de.missing=[])}function me(F){var _;return F.missing&&(_=be()).push.apply(_,F.missing),F.result}this.config.addTypename&&"string"==typeof ve&&!q.rootIdsByTypename[ve]&&oe.push({__typename:ve});var ge=new Set(O.selections);return ge.forEach(function(F){var _;if((0,c.LZ)(F,j))if((0,t.My)(F)){var D=q.readField({fieldName:F.name.value,field:F,variables:M.variables,from:E},M),X=(0,t.u2)(F);M.path.push(X);var le=M.clientOnly;M.clientOnly=le||!(!F.directives||!F.directives.some(function(L){return"client"===L.name.value})),void 0===D?a.Gw.added(F)||be().push(h(new o.ej(5),M)):Array.isArray(D)?D=me(f.executeSubSelectedArray({field:F,array:D,context:M})):F.selectionSet&&null!=D&&(D=me(f.executeSelectionSet({selectionSet:F.selectionSet,objectOrReference:D,context:M}))),void 0!==D&&oe.push(((_={})[X]=D,_)),M.clientOnly=le,(0,o.kG)(M.path.pop()===X)}else{var Se=(0,i.hi)(F,M.fragmentMap);Se&&q.fragmentMatches(Se,ve)&&Se.selectionSet.selections.forEach(ge.add,ge)}}),de.result=(0,d.bw)(oe),this.knownResults.set(de.result,O),de},K.prototype.execSubSelectedArrayImpl=function(C){var j,f=this,O=C.field,E=C.array,M=C.context;function q(ne,oe){return ne.missing&&(j=j||[]).push.apply(j,ne.missing),(0,o.kG)(M.path.pop()===oe),ne.result}return O.selectionSet&&(E=E.filter(M.store.canRead)),{result:E=E.map(function(ne,oe){return null===ne?null:(M.path.push(oe),Array.isArray(ne)?q(f.executeSubSelectedArray({field:O,array:ne,context:M}),oe):O.selectionSet?q(f.executeSelectionSet({selectionSet:O.selectionSet,objectOrReference:ne,context:M}),oe):((0,o.kG)(M.path.pop()===oe),ne))}),missing:j}},K}(),P=function(){function K(C,f){this.cache=C,this.reader=f}return K.prototype.writeToStore=function(C){var f=C.query,O=C.result,E=C.dataId,M=C.store,j=C.variables,q=(0,r.$H)(f),ne=(0,A.ig)();j=(0,n.pi)((0,n.pi)({},(0,r.O4)(q)),j);var oe=this.processSelectionSet({result:O||Object.create(null),dataId:E,selectionSet:q.selectionSet,mergeTree:{map:new Map},context:{store:M,written:Object.create(null),merge:function(de,ve){return ne.merge(de,ve)},variables:j,varString:JSON.stringify(j),fragmentMap:(0,i.F)((0,r.kU)(f))}});if(!(0,t.Yk)(oe))throw new o.ej(7);return M.retain(oe.__ref),oe},K.prototype.processSelectionSet=function(C){var f=this,O=C.dataId,E=C.result,M=C.selectionSet,j=C.context,q=C.mergeTree,ne=this.cache.policies,oe=ne.identify(E,M,j.fragmentMap),ve=oe[1];if("string"==typeof(O=O||oe[0])){var be=j.written[O]||(j.written[O]=[]),me=(0,t.kQ)(O);if(be.indexOf(M)>=0||(be.push(M),this.reader&&this.reader.isFresh(E,me,M,j)))return me}var ge=Object.create(null);ve&&(ge=j.merge(ge,ve));var F=O&&ne.rootTypenamesById[O]||(0,t.qw)(E,M,j.fragmentMap)||O&&j.store.get(O,"__typename");"string"==typeof F&&(ge.__typename=F);var _=new Set(M.selections);if(_.forEach(function(L){var ie;if((0,c.LZ)(L,j.variables))if((0,t.My)(L)){var se=(0,t.u2)(L),he=E[se];if(void 0!==he){var ye=ne.getStoreFieldName({typename:F,fieldName:L.name.value,field:L,variables:j.variables}),Oe=Z(q,ye),Le=f.processFieldValue(he,L,j,Oe),We=L.selectionSet&&j.store.getFieldValue(Le,"__typename")||void 0,qe=ne.getMergeFunction(F,L.name.value,We);qe?Oe.info={field:L,typename:F,merge:qe}:ue(q,ye),ge=j.merge(ge,((ie={})[ye]=Le,ie))}else if(ne.usingPossibleTypes&&!(0,c.FS)(["defer","client"],L))throw new o.ej(8)}else{var st=(0,i.hi)(L,j.fragmentMap);st&&ne.fragmentMatches(st,F,E,j.variables)&&st.selectionSet.selections.forEach(_.add,_)}}),"string"==typeof O){var D=(0,t.kQ)(O);return q.map.size&&(ge=this.applyMerges(q,D,ge,j)),j.store.merge(O,ge),D}return ge},K.prototype.processFieldValue=function(C,f,O,E){var M=this;return f.selectionSet&&null!==C?Array.isArray(C)?C.map(function(j,q){var ne=M.processFieldValue(j,f,O,Z(E,q));return ue(E,q),ne}):this.processSelectionSet({result:C,selectionSet:f.selectionSet,context:O,mergeTree:E}):C},K.prototype.applyMerges=function(C,f,O,E,M){var j,q=this;if(C.map.size&&!(0,t.Yk)(O)){var ne=Array.isArray(O)||!(0,t.Yk)(f)&&!(0,A.j)(f)?void 0:f,oe=O;ne&&!M&&(M=[(0,t.Yk)(ne)?ne.__ref:ne]);var de,ve=function(be,me){return Array.isArray(be)?"number"==typeof me?be[me]:void 0:E.store.getFieldValue(be,String(me))};C.map.forEach(function(be,me){M&&M.push(me);var ge=ve(ne,me),F=ve(oe,me),_=q.applyMerges(be,ge,F,E,M);_!==F&&(de=de||new Map).set(me,_),M&&(0,o.kG)(M.pop()===me)}),de&&(O=Array.isArray(oe)?oe.slice(0):(0,n.pi)({},oe),de.forEach(function(be,me){O[me]=be}))}return C.info?this.cache.policies.runMergeFunction(f,O,C.info,E,M&&(j=E.store).getStorage.apply(j,M)):O},K}(),U=[];function Z(K,C){var f=K.map;return f.has(C)||f.set(C,U.pop()||{map:new Map}),f.get(C)}function ue(K,C){var f=K.map,O=f.get(C);O&&!O.info&&!O.map.size&&(U.push(O),f.delete(C))}new Set;var ee=s(71883),Y=s(37691),Q={dataIdFromObject:Y.u,addTypename:!0,resultCaching:!0,typePolicies:{}},k=function(K){function C(f){void 0===f&&(f={});var O=K.call(this)||this;return O.watches=new Set,O.typenameDocumentCache=new Map,O.makeVar=ee.QS,O.txCount=0,O.maybeBroadcastWatch=(0,y.re)(function(E,M){return O.broadcastWatch.call(O,E,!!M)},{makeCacheKey:function(E){var M=E.optimistic?O.optimisticData:O.data;if(v(M))return M.makeCacheKey(E.query,E.callback,JSON.stringify({optimistic:E.optimistic,rootId:E.rootId,variables:E.variables}))}}),O.watchDep=(0,y.dP)(),O.config=(0,n.pi)((0,n.pi)({},Q),f),O.addTypename=!!O.config.addTypename,O.policies=new Y.r({cache:O,dataIdFromObject:O.config.dataIdFromObject,possibleTypes:O.config.possibleTypes,typePolicies:O.config.typePolicies}),O.data=new H.Root({policies:O.policies,resultCaching:O.config.resultCaching}),O.optimisticData=O.data,O.storeWriter=new P(O,O.storeReader=new R({cache:O,addTypename:O.addTypename})),O}return(0,n.ZT)(C,K),C.prototype.restore=function(f){return f&&this.data.replace(f),this},C.prototype.extract=function(f){return void 0===f&&(f=!1),(f?this.optimisticData:this.data).extract()},C.prototype.read=function(f){var O=f.returnPartialData,E=void 0!==O&&O;try{return this.storeReader.diffQueryAgainstStore({store:f.optimistic?this.optimisticData:this.data,query:f.query,variables:f.variables,rootId:f.rootId,config:this.config,returnPartialData:E}).result||null}catch(M){if(M instanceof e.y)return null;throw M}},C.prototype.write=function(f){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:f.query,result:f.result,dataId:f.dataId,variables:f.variables})}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},C.prototype.modify=function(f){if(A.RI.call(f,"id")&&!f.id)return!1;var O=f.optimistic?this.optimisticData:this.data;try{return++this.txCount,O.modify(f.id||"ROOT_QUERY",f.fields)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},C.prototype.diff=function(f){return this.storeReader.diffQueryAgainstStore({store:f.optimistic?this.optimisticData:this.data,rootId:f.id||"ROOT_QUERY",query:f.query,variables:f.variables,returnPartialData:f.returnPartialData,config:this.config})},C.prototype.watch=function(f){var O=this;return this.watches.size||(0,ee._v)(this),this.watches.add(f),f.immediate&&this.maybeBroadcastWatch(f),function(){O.watches.delete(f)&&!O.watches.size&&(0,ee.li)(O),O.watchDep.dirty(f),O.maybeBroadcastWatch.forget(f)}},C.prototype.gc=function(){return this.optimisticData.gc()},C.prototype.retain=function(f,O){return(O?this.optimisticData:this.data).retain(f)},C.prototype.release=function(f,O){return(O?this.optimisticData:this.data).release(f)},C.prototype.identify=function(f){return(0,t.Yk)(f)?f.__ref:this.policies.identify(f)[0]},C.prototype.evict=function(f){if(!f.id){if(A.RI.call(f,"id"))return!1;f=(0,n.pi)((0,n.pi)({},f),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(f)}finally{!--this.txCount&&!1!==f.broadcast&&this.broadcastWatches()}},C.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},C.prototype.removeOptimistic=function(f){var O=this.optimisticData.removeLayer(f);O!==this.optimisticData&&(this.optimisticData=O,this.broadcastWatches())},C.prototype.performTransaction=function(f,O){var E=this,M=function(q){var oe=E.data,de=E.optimisticData;++E.txCount,q&&(E.data=E.optimisticData=q);try{f(E)}finally{--E.txCount,E.data=oe,E.optimisticData=de}},j=!1;"string"==typeof O?(this.optimisticData=this.optimisticData.addLayer(O,M),j=!0):null===O?M(this.data):M(),this.broadcastWatches(j)},C.prototype.transformDocument=function(f){if(this.addTypename){var O=this.typenameDocumentCache.get(f);return O||(O=(0,a.Gw)(f),this.typenameDocumentCache.set(f,O),this.typenameDocumentCache.set(O,O)),O}return f},C.prototype.broadcastWatches=function(f){var O=this;this.txCount||this.watches.forEach(function(E){return O.maybeBroadcastWatch(E,f)})},C.prototype.broadcastWatch=function(f,O){this.watchDep.dirty(f),this.watchDep(f);var E=this.diff({query:f.query,variables:f.variables,optimistic:f.optimistic});f.optimistic&&O&&(E.fromOptimisticTransaction=!0),f.callback(E)},C}(l.R)},37691:(J,I,s)=>{"use strict";s.d(I,{u:()=>c,r:()=>S});var n=s(48399),y=s(6462),l=s(70977),e=s(30534),t=s(73005),a=s(50216),o=s(3916),r=s(71883);function i(B){return void 0!==B.args?B.args:B.field?(0,e.NC)(B.field,B.variables):null}var c=function(B,m){var w=B.__typename,u=B.id,v=B._id;if("string"==typeof w&&(m&&(m.keyObject=void 0!==u?{id:u}:void 0!==v?{_id:v}:void 0),void 0===u&&(u=v),void 0!==u))return w+":"+("number"==typeof u||"string"==typeof u?u:JSON.stringify(u))},d=function(){},g=function(B,m){return m.fieldName},p=function(B,m,w){return(0,w.mergeObjects)(B,m)},T=function(B,m){return m},S=function(){function B(m){this.config=m,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,n.pi)({dataIdFromObject:c},m),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),m.possibleTypes&&this.addPossibleTypes(m.possibleTypes),m.typePolicies&&this.addTypePolicies(m.typePolicies)}return B.prototype.identify=function(m,w,u){var v=w&&u?(0,e.qw)(m,w,u):m.__typename;if(v===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var R,h={typename:v,selectionSet:w,fragmentMap:u},N=v&&this.getTypePolicy(v),P=N&&N.keyFn||this.config.dataIdFromObject;P;){var U=P(m,h);if(!Array.isArray(U)){R=U;break}P=G(U)}return R=R?String(R):void 0,h.keyObject?[R,h.keyObject]:[R]},B.prototype.addTypePolicies=function(m){var w=this;Object.keys(m).forEach(function(u){var v=m[u],h=v.queryType,R=v.mutationType,N=v.subscriptionType,P=(0,n._T)(v,["queryType","mutationType","subscriptionType"]);h&&w.setRootTypename("Query",u),R&&w.setRootTypename("Mutation",u),N&&w.setRootTypename("Subscription",u),o.RI.call(w.toBeAdded,u)?w.toBeAdded[u].push(P):w.toBeAdded[u]=[P]})},B.prototype.updateTypePolicy=function(m,w){var u=this,v=this.getTypePolicy(m),h=w.keyFields,R=w.fields;function N(P,U){P.merge="function"==typeof U?U:!0===U?p:!1===U?T:P.merge}N(v,w.merge),v.keyFn=!1===h?d:Array.isArray(h)?G(h):"function"==typeof h?h:v.keyFn,R&&Object.keys(R).forEach(function(P){var U=u.getFieldPolicy(m,P,!0),Z=R[P];if("function"==typeof Z)U.read=Z;else{var ue=Z.keyArgs,V=Z.read,re=Z.merge;U.keyFn=!1===ue?g:Array.isArray(ue)?x(ue):"function"==typeof ue?ue:U.keyFn,"function"==typeof V&&(U.read=V),N(U,re)}U.read&&U.merge&&(U.keyFn=U.keyFn||g)})},B.prototype.setRootTypename=function(m,w){void 0===w&&(w=m);var u="ROOT_"+m.toUpperCase(),v=this.rootTypenamesById[u];w!==v&&((0,l.kG)(!v||v===m,1),v&&delete this.rootIdsByTypename[v],this.rootIdsByTypename[w]=u,this.rootTypenamesById[u]=w)},B.prototype.addPossibleTypes=function(m){var w=this;this.usingPossibleTypes=!0,Object.keys(m).forEach(function(u){w.getSupertypeSet(u,!0),m[u].forEach(function(v){w.getSupertypeSet(v,!0).add(u);var h=v.match(o.$O);(!h||h[0]!==v)&&w.fuzzySubtypes.set(v,new RegExp(v))})})},B.prototype.getTypePolicy=function(m){var w=this;if(!o.RI.call(this.typePolicies,m)){var u=this.typePolicies[m]=Object.create(null);u.fields=Object.create(null);var v=this.supertypeMap.get(m);v&&v.size&&v.forEach(function(R){var N=w.getTypePolicy(R),P=N.fields,U=(0,n._T)(N,["fields"]);Object.assign(u,U),Object.assign(u.fields,P)})}var h=this.toBeAdded[m];return h&&h.length&&h.splice(0).forEach(function(R){w.updateTypePolicy(m,R)}),this.typePolicies[m]},B.prototype.getFieldPolicy=function(m,w,u){if(m){var v=this.getTypePolicy(m).fields;return v[w]||u&&(v[w]=Object.create(null))}},B.prototype.getSupertypeSet=function(m,w){var u=this.supertypeMap.get(m);return!u&&w&&this.supertypeMap.set(m,u=new Set),u},B.prototype.fragmentMatches=function(m,w,u,v){var h=this;if(!m.typeCondition)return!0;if(!w)return!1;var R=m.typeCondition.name.value;if(w===R)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(R))for(var N=this.getSupertypeSet(w,!0),P=[N],U=function(ee){var Y=h.getSupertypeSet(ee,!1);Y&&Y.size&&P.indexOf(Y)<0&&P.push(Y)},Z=!(!u||!this.fuzzySubtypes.size),V=0;V<P.length;++V){var re=P[V];if(re.has(R))return N.has(R)||N.add(R),!0;re.forEach(U),Z&&V===P.length-1&&(0,o.RC)(m.selectionSet,u,v)&&(Z=!1,this.fuzzySubtypes.forEach(function(ee,Y){var Q=w.match(ee);Q&&Q[0]===w&&U(Y)}))}return!1},B.prototype.hasKeyArgs=function(m,w){var u=this.getFieldPolicy(m,w,!1);return!(!u||!u.keyFn)},B.prototype.getStoreFieldName=function(m){var h,w=m.typename,u=m.fieldName,v=this.getFieldPolicy(w,u,!1),R=v&&v.keyFn;if(R&&w)for(var N={typename:w,fieldName:u,field:m.field||null,variables:m.variables},P=i(m);R;){var U=R(P,N);if(!Array.isArray(U)){h=U||u;break}R=x(U)}return void 0===h&&(h=m.field?(0,e.vf)(m.field,m.variables):(0,e.PT)(u,i(m))),!1===h?u:u===(0,o.E_)(h)?h:u+":"+h},B.prototype.readField=function(m,w){var u=m.from;if(u&&(m.field||m.fieldName)){if(void 0===m.typename){var h=w.store.getFieldValue(u,"__typename");h&&(m.typename=h)}var R=this.getStoreFieldName(m),N=(0,o.E_)(R),P=w.store.getFieldValue(u,R),U=this.getFieldPolicy(m.typename,N,!1),Z=U&&U.read;if(Z){var ue=b(this,u,m,w,w.store.getStorage((0,e.Yk)(u)?u.__ref:u,R));return r.ab.withValue(this.cache,Z,[P,ue])}return P}},B.prototype.getMergeFunction=function(m,w,u){var v=this.getFieldPolicy(m,w,!1),h=v&&v.merge;return!h&&u&&(h=(v=this.getTypePolicy(u))&&v.merge),h},B.prototype.runMergeFunction=function(m,w,u,v,h){var R=u.field,N=u.typename,P=u.merge;return P===p?A(v.store.getFieldValue)(m,w):P===T?w:P(m,w,b(this,void 0,{typename:N,fieldName:R.name.value,field:R,variables:v.variables},v,h||Object.create(null)))},B}();function b(B,m,w,u,v){var h=B.getStoreFieldName(w),R=(0,o.E_)(h),N=w.variables||u.variables,P=u.store,U=P.getFieldValue,Z=P.toReference,ue=P.canRead;return{args:i(w),field:w.field||null,fieldName:R,storeFieldName:h,variables:N,isReference:e.Yk,toReference:Z,storage:v,cache:B.cache,canRead:ue,readField:function(V,re){var ee="string"==typeof V?{fieldName:V,from:re}:(0,n.pi)({},V);return void 0===ee.from&&(ee.from=m),void 0===ee.variables&&(ee.variables=N),B.readField(ee,u)},mergeObjects:A(U)}}function A(B){return function(w,u){if(Array.isArray(w)||Array.isArray(u))throw new l.ej(2);if(w&&"object"==typeof w&&u&&"object"==typeof u){var v=B(w,"__typename"),h=B(u,"__typename");return v&&h&&v!==h||!(0,o.j)(w)||!(0,o.j)(u)?u:(0,n.pi)((0,n.pi)({},w),u)}return u}}function x(B){return function(m,w){return m?w.fieldName+":"+JSON.stringify(H(m,B,!1)):w.fieldName}}function G(B){var m=new y.Gl(t.m);return function(w,u){var v;if(u.selectionSet&&u.fragmentMap){var h=m.lookupArray([u.selectionSet,u.fragmentMap]);v=h.aliasMap||(h.aliasMap=W(u.selectionSet,u.fragmentMap))}var R=u.keyObject=H(w,B,!0,v);return u.typename+":"+JSON.stringify(R)}}function W(B,m){var w=Object.create(null),u=new Set([B]);return u.forEach(function(v){v.selections.forEach(function(h){if((0,e.My)(h)){if(h.alias){var R=h.alias.value,N=h.name.value;N!==R&&((w.aliases||(w.aliases=Object.create(null)))[N]=R)}h.selectionSet&&((w.subsets||(w.subsets=Object.create(null)))[h.name.value]=W(h.selectionSet,m))}else{var Z=(0,a.hi)(h,m);Z&&u.add(Z.selectionSet)}})}),w}function H(B,m,w,u){var h,v=Object.create(null);return m.forEach(function(R){if(Array.isArray(R)){if("string"==typeof h){var N=u&&u.subsets;v[h]=H(B[h],R,w,N&&N[h])}}else{var U=u&&u.aliases,Z=U&&U[R]||R;o.RI.call(B,Z)?v[h=R]=B[Z]:((0,l.kG)(!w,3),h=void 0)}}),v}},71883:(J,I,s)=>{"use strict";s.d(I,{ab:()=>l,li:()=>a,_v:()=>o,QS:()=>r});var n=s(6462),l=new(s(83403).g7),e=new WeakMap;function t(c){var d=e.get(c);return d||e.set(c,d={vars:new Set,dep:(0,n.dP)()}),d}function a(c){t(c).vars.forEach(function(d){return d.forgetCache(c)})}function o(c){t(c).vars.forEach(function(d){return d.attachCache(c)})}function r(c){var d=new Set,g=new Set,p=function(S){if(arguments.length>0){if(c!==S){c=S,d.forEach(function(x){t(x).dep.dirty(p),i(x)});var b=Array.from(g);g.clear(),b.forEach(function(x){return x(c)})}}else{var A=l.getValue();A&&(T(A),t(A).dep(p))}return c};p.onNextChange=function(S){return g.add(S),function(){g.delete(S)}};var T=p.attachCache=function(S){return d.add(S),t(S).vars.add(p),p};return p.forgetCache=function(S){return d.delete(S)},p}function i(c){c.broadcastWatches&&c.broadcastWatches()}},12536:()=>{},43303:(J,I,s)=>{"use strict";s.d(I,{f:()=>K,J:()=>k});var n=s(48399),y=s(70977),l=s(80704),e=s(19717),t=s(85025),o=s(80257),r=s(38546),i=s(73005);function c(C){return C.errors&&C.errors.length>0||!1}var d=s(20283),g=s(83368),p=s(52107),T=s(17334),S=s(42677),b=s.n(S),A=s(62954),x=s(1313);function G(C){return C&&"function"==typeof C.then}var W=function(C){function f(O){var E=C.call(this,function(M){return E.addObserver(M),function(){return E.removeObserver(M)}})||this;return E.observers=new Set,E.addCount=0,E.promise=new Promise(function(M,j){E.resolve=M,E.reject=j}),E.handlers={next:function(M){null!==E.sub&&(E.latest=["next",M],(0,A.p)(E.observers,"next",M))},error:function(M){var j=E.sub;null!==j&&(j&&Promise.resolve().then(function(){return j.unsubscribe()}),E.sub=null,E.latest=["error",M],E.reject(M),(0,A.p)(E.observers,"error",M))},complete:function(){if(null!==E.sub){var M=E.sources.shift();M?G(M)?M.then(function(j){return E.sub=j.subscribe(E.handlers)}):E.sub=M.subscribe(E.handlers):(E.sub=null,E.latest&&"next"===E.latest[0]?E.resolve(E.latest[1]):E.resolve(),(0,A.p)(E.observers,"complete"))}}},E.cancel=function(M){E.reject(M),E.sources=[],E.handlers.complete()},E.promise.catch(function(M){}),"function"==typeof O&&(O=[new(b())(O)]),G(O)?O.then(function(M){return E.start(M)},E.handlers.error):E.start(O),E}return(0,n.ZT)(f,C),f.prototype.start=function(O){void 0===this.sub&&(this.sources=Array.from(O),this.handlers.complete())},f.prototype.deliverLastMessage=function(O){if(this.latest){var E=this.latest[0],M=O[E];M&&M.call(O,this.latest[1]),null===this.sub&&"next"===E&&O.complete&&O.complete()}},f.prototype.addObserver=function(O){this.observers.has(O)||(this.deliverLastMessage(O),this.observers.add(O),++this.addCount)},f.prototype.removeObserver=function(O,E){this.observers.delete(O)&&--this.addCount<1&&!E&&this.handlers.error(new Error("Observable cancelled prematurely"))},f.prototype.cleanup=function(O){var E=this,M=!1,j=function(){M||(M=!0,E.observers.delete(q),O())},q={next:j,error:j,complete:j},ne=this.addCount;this.addObserver(q),this.addCount=ne},f}(b());function H(C,f,O){return new(b())(function(E){var M=E.next,j=E.error,q=E.complete,ne=0,oe=!1,de={then:function(ge){return new Promise(function(F){return F(ge())})}};function ve(ge,F){return ge?function(_){++ne;var D=function(){return ge(_)};de=de.then(D,D).then(function(X){--ne,M&&M.call(E,X),oe&&be.complete()},function(X){throw--ne,X}).catch(function(X){j&&j.call(E,X)})}:function(_){return F&&F.call(E,_)}}var be={next:ve(f,M),error:ve(O,j),complete:function(){oe=!0,ne||q&&q.call(E)}},me=C.subscribe(be);return function(){return me.unsubscribe()}})}(0,x.D)(W);var B=s(4549),m=s(40939),w=s(75832),u=s(86729),v=s(2456),h=s(50216),R=s(30534),N=s(71883),P=function(){function C(f){var E=f.client,M=f.resolvers,j=f.fragmentMatcher;this.cache=f.cache,E&&(this.client=E),M&&this.addResolvers(M),j&&this.setFragmentMatcher(j)}return C.prototype.addResolvers=function(f){var O=this;this.resolvers=this.resolvers||{},Array.isArray(f)?f.forEach(function(E){O.resolvers=(0,v.Ee)(O.resolvers,E)}):this.resolvers=(0,v.Ee)(this.resolvers,f)},C.prototype.setResolvers=function(f){this.resolvers={},this.addResolvers(f)},C.prototype.getResolvers=function(){return this.resolvers||{}},C.prototype.runResolvers=function(f){var O=f.document,E=f.remoteResult,M=f.context,j=f.variables,q=f.onlyRunForcedResolvers,ne=void 0!==q&&q;return(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(oe){return O?[2,this.resolveDocument(O,E.data,M,j,this.fragmentMatcher,ne).then(function(de){return(0,n.pi)((0,n.pi)({},E),{data:de.result})})]:[2,E]})})},C.prototype.setFragmentMatcher=function(f){this.fragmentMatcher=f},C.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},C.prototype.clientQuery=function(f){return(0,T.FS)(["client"],f)&&this.resolvers?f:null},C.prototype.serverQuery=function(f){return(0,p.ob)(f)},C.prototype.prepareContext=function(f){var O=this.cache;return(0,n.pi)((0,n.pi)({},f),{cache:O,getCacheKey:function(E){return O.identify(E)}})},C.prototype.addExportedVariables=function(f,O,E){return void 0===O&&(O={}),void 0===E&&(E={}),(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(M){return f?[2,this.resolveDocument(f,this.buildRootValueFromCache(f,O)||{},this.prepareContext(E),O).then(function(j){return(0,n.pi)((0,n.pi)({},O),j.exportedVariables)})]:[2,(0,n.pi)({},O)]})})},C.prototype.shouldForceResolvers=function(f){var O=!1;return(0,u.Vn)(f,{Directive:{enter:function(E){if("client"===E.name.value&&E.arguments&&(O=E.arguments.some(function(M){return"always"===M.name.value&&"BooleanValue"===M.value.kind&&!0===M.value.value})))return u.$_}}}),O},C.prototype.buildRootValueFromCache=function(f,O){return this.cache.diff({query:(0,p.aL)(f),variables:O,returnPartialData:!0,optimistic:!1}).result},C.prototype.resolveDocument=function(f,O,E,M,j,q){return void 0===E&&(E={}),void 0===M&&(M={}),void 0===j&&(j=function(){return!0}),void 0===q&&(q=!1),(0,n.mG)(this,void 0,void 0,function(){var ne,oe,de,ve,be,me,ge,F,_;return(0,n.Jh)(this,function(D){return ne=(0,g.p$)(f),oe=(0,g.kU)(f),de=(0,h.F)(oe),be=(ve=ne.operation)?ve.charAt(0).toUpperCase()+ve.slice(1):"Query",ge=(me=this).cache,F=me.client,_={fragmentMap:de,context:(0,n.pi)((0,n.pi)({},E),{cache:ge,client:F}),variables:M,fragmentMatcher:j,defaultOperationType:be,exportedVariables:{},onlyRunForcedResolvers:q},[2,this.resolveSelectionSet(ne.selectionSet,O,_).then(function(X){return{result:X,exportedVariables:_.exportedVariables}})]})})},C.prototype.resolveSelectionSet=function(f,O,E){return(0,n.mG)(this,void 0,void 0,function(){var M,j,q,ne,de=this;return(0,n.Jh)(this,function(ve){return M=E.fragmentMap,j=E.context,q=E.variables,ne=[O],[2,Promise.all(f.selections.map(function(be){return(0,n.mG)(de,void 0,void 0,function(){var me;return(0,n.Jh)(this,function(F){return(0,T.LZ)(be,q)?(0,R.My)(be)?[2,this.resolveField(be,O,E).then(function(_){var D;void 0!==_&&ne.push(((D={})[(0,R.u2)(be)]=_,D))})]:((0,R.Ao)(be)?me=be:(0,y.kG)(me=M[be.name.value],11),me&&me.typeCondition&&E.fragmentMatcher(O,me.typeCondition.name.value,j)?[2,this.resolveSelectionSet(me.selectionSet,O,E).then(function(_){ne.push(_)})]:[2]):[2]})})})).then(function(){return(0,v.bw)(ne)})]})})},C.prototype.resolveField=function(f,O,E){return(0,n.mG)(this,void 0,void 0,function(){var M,j,q,ne,oe,de,ve,be,me,ge=this;return(0,n.Jh)(this,function(F){return M=E.variables,j=f.name.value,q=(0,R.u2)(f),ne=j!==q,oe=O[q]||O[j],de=Promise.resolve(oe),(!E.onlyRunForcedResolvers||this.shouldForceResolvers(f))&&(ve=O.__typename||E.defaultOperationType,(be=this.resolvers&&this.resolvers[ve])&&(me=be[ne?j:q])&&(de=Promise.resolve(N.ab.withValue(this.cache,me,[O,(0,R.NC)(f,M),E.context,{field:f,fragmentMap:E.fragmentMap}])))),[2,de.then(function(_){return void 0===_&&(_=oe),f.directives&&f.directives.forEach(function(D){"export"===D.name.value&&D.arguments&&D.arguments.forEach(function(X){"as"===X.name.value&&"StringValue"===X.value.kind&&(E.exportedVariables[X.value.value]=_)})}),f.selectionSet&&null!=_?Array.isArray(_)?ge.resolveSubSelectedArray(f,_,E):f.selectionSet?ge.resolveSelectionSet(f.selectionSet,_,E):void 0:_})]})})},C.prototype.resolveSubSelectedArray=function(f,O,E){var M=this;return Promise.all(O.map(function(j){return null===j?null:Array.isArray(j)?M.resolveSubSelectedArray(f,j,E):f.selectionSet?M.resolveSelectionSet(f.selectionSet,j,E):void 0}))},C}(),U=new(i.m?WeakMap:Map);function Z(C,f){var O=C[f];"function"==typeof O&&(C[f]=function(){return U.set(C,(U.get(C)+1)%1e15),O.apply(this,arguments)})}function ue(C){C.notifyTimeout&&(clearTimeout(C.notifyTimeout),C.notifyTimeout=void 0)}var V=function(){function C(f){this.cache=f,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,U.has(f)||(U.set(f,0),Z(f,"evict"),Z(f,"modify"),Z(f,"reset"))}return C.prototype.init=function(f){var O=f.networkStatus||w.I.loading;return this.variables&&this.networkStatus!==w.I.loading&&!(0,r.D)(this.variables,f.variables)&&(O=w.I.setVariables),(0,r.D)(f.variables,this.variables)||(this.diff=null),Object.assign(this,{document:f.document,variables:f.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:O}),f.observableQuery&&this.setObservableQuery(f.observableQuery),f.lastRequestId&&(this.lastRequestId=f.lastRequestId),this},C.prototype.reset=function(){ue(this),this.diff=null,this.dirty=!1},C.prototype.getDiff=function(f){return void 0===f&&(f=this.variables),this.diff&&(0,r.D)(f,this.variables)?this.diff:(this.updateWatch(this.variables=f),this.diff=this.cache.diff({query:this.document,variables:f,returnPartialData:!0,optimistic:!0}))},C.prototype.setDiff=function(f){var O=this,E=this.diff;this.diff=f,!this.dirty&&(f&&f.result)!==(E&&E.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return O.notify()},0)))},C.prototype.setObservableQuery=function(f){var O=this;f!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=f,f?(f.queryInfo=this,this.listeners.add(this.oqListener=function(){O.getDiff().fromOptimisticTransaction?f.observe():f.reobserve()})):delete this.oqListener)},C.prototype.notify=function(){var f=this;ue(this),this.shouldNotify()&&this.listeners.forEach(function(O){return O(f)}),this.dirty=!1},C.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,w.O)(this.networkStatus)&&this.observableQuery){var f=this.observableQuery.options.fetchPolicy;if("cache-only"!==f&&"cache-and-network"!==f)return!1}return!0},C.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(O){return O.unsubscribe()});var f=this.observableQuery;f&&f.stopPolling()}},C.prototype.cancel=function(){},C.prototype.updateWatch=function(f){var O=this;void 0===f&&(f=this.variables);var E=this.observableQuery;E&&"no-cache"===E.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,r.D)(f,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:f,optimistic:!0,callback:function(M){return O.setDiff(M)}}))},C.prototype.shouldWrite=function(f,O){var E=this.lastWrite;return!(E&&E.dmCount===U.get(this.cache)&&(0,r.D)(O,E.variables)&&(0,r.D)(f.data,E.result.data))},C.prototype.markResult=function(f,O,E){var M=this;this.graphQLErrors=(0,d.O)(f.errors)?f.errors:[],this.reset(),"no-cache"===O.fetchPolicy?this.diff={result:f.data,complete:!0}:!this.stopped&&E&&(re(f,O.errorPolicy)?this.cache.performTransaction(function(j){if(M.shouldWrite(f,O.variables))j.writeQuery({query:M.document,data:f.data,variables:O.variables}),M.lastWrite={result:f,variables:O.variables,dmCount:U.get(M.cache)};else if(M.diff&&M.diff.complete)return void(f.data=M.diff.result);var q=j.diff({query:M.document,variables:O.variables,returnPartialData:!0,optimistic:!0});M.stopped||M.updateWatch(O.variables),M.diff=q,q.complete&&(f.data=q.result)}):this.lastWrite=void 0)},C.prototype.markReady=function(){return this.networkError=null,this.networkStatus=w.I.ready},C.prototype.markError=function(f){return this.networkStatus=w.I.error,this.lastWrite=void 0,this.reset(),f.graphQLErrors&&(this.graphQLErrors=f.graphQLErrors),f.networkError&&(this.networkError=f.networkError),f},C}();function re(C,f){void 0===f&&(f="none");var O="ignore"===f||"all"===f,E=!c(C);return!E&&O&&C.data&&(E=!0),E}var ee=Object.prototype.hasOwnProperty,Y=function(){function C(f){var O=f.cache,E=f.link,M=f.queryDeduplication,j=void 0!==M&&M,q=f.onBroadcast,ne=f.ssrMode,oe=void 0!==ne&&ne,de=f.clientAwareness,ve=void 0===de?{}:de,be=f.localState,me=f.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(i.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=O,this.link=E,this.queryDeduplication=j,this.clientAwareness=ve,this.localState=be||new P({cache:O}),this.ssrMode=oe,this.assumeImmutableResults=!!me,(this.onBroadcast=q)&&(this.mutationStore=Object.create(null))}return C.prototype.stop=function(){var f=this;this.queries.forEach(function(O,E){f.stopQueryNoBroadcast(E)}),this.cancelPendingFetches(new y.ej(12))},C.prototype.cancelPendingFetches=function(f){this.fetchCancelFns.forEach(function(O){return O(f)}),this.fetchCancelFns.clear()},C.prototype.mutate=function(f){var O=f.mutation,E=f.variables,M=f.optimisticResponse,j=f.updateQueries,q=f.refetchQueries,ne=void 0===q?[]:q,oe=f.awaitRefetchQueries,de=void 0!==oe&&oe,ve=f.update,be=f.errorPolicy,me=void 0===be?"none":be,ge=f.fetchPolicy,F=f.context,_=void 0===F?{}:F;return(0,n.mG)(this,void 0,void 0,function(){var D,X,le;return(0,n.Jh)(this,function(Se){switch(Se.label){case 0:return(0,y.kG)(O,13),(0,y.kG)(!ge||"no-cache"===ge,14),D=this.generateMutationId(),O=this.transform(O).document,E=this.getVariables(O,E),this.transform(O).hasClientExports?[4,this.localState.addExportedVariables(O,E,_)]:[3,2];case 1:E=Se.sent(),Se.label=2;case 2:return X=this.mutationStore&&(this.mutationStore[D]={mutation:O,variables:E,loading:!0,error:null}),M&&this.markMutationOptimistic(M,{mutationId:D,document:O,variables:E,errorPolicy:me,updateQueries:j,update:ve}),this.broadcastQueries(),le=this,[2,new Promise(function(L,ie){var se,he;le.getObservableFromLink(O,(0,n.pi)((0,n.pi)({},_),{optimisticResponse:M}),E,!1).subscribe({next:function(ye){if(c(ye)&&"none"===me)he=new B.c({graphQLErrors:ye.errors});else{if(X&&(X.loading=!1,X.error=null),"no-cache"!==ge)try{le.markMutationResult({mutationId:D,result:ye,document:O,variables:E,errorPolicy:me,updateQueries:j,update:ve})}catch(Oe){return void(he=new B.c({networkError:Oe}))}se=ye}},error:function(ye){X&&(X.loading=!1,X.error=ye),M&&le.cache.removeOptimistic(D),le.broadcastQueries(),ie(new B.c({networkError:ye}))},complete:function(){if(he&&X&&(X.loading=!1,X.error=he),M&&le.cache.removeOptimistic(D),le.broadcastQueries(),he)ie(he);else{"function"==typeof ne&&(ne=ne(se));var ye=[];(0,d.O)(ne)&&ne.forEach(function(Oe){if("string"==typeof Oe)le.queries.forEach(function(We){var qe=We.observableQuery;qe&&qe.hasObservers()&&qe.queryName===Oe&&ye.push(qe.refetch())});else{var Le={query:Oe.query,variables:Oe.variables,fetchPolicy:"network-only"};Oe.context&&(Le.context=Oe.context),ye.push(le.query(Le))}}),Promise.all(de?ye:[]).then(function(){"ignore"===me&&se&&c(se)&&delete se.errors,L(se)},ie)}}})})]}})})},C.prototype.markMutationResult=function(f,O){var E=this;if(void 0===O&&(O=this.cache),re(f.result,f.errorPolicy)){var M=[{result:f.result.data,dataId:"ROOT_MUTATION",query:f.document,variables:f.variables}],j=f.updateQueries;j&&this.queries.forEach(function(q,ne){var oe=q.observableQuery,de=oe&&oe.queryName;if(de&&ee.call(j,de)){var ve=j[de],be=E.queries.get(ne),me=be.document,ge=be.variables,F=O.diff({query:me,variables:ge,returnPartialData:!0,optimistic:!1}),_=F.result;if(F.complete&&_){var X=ve(_,{mutationResult:f.result,queryName:me&&(0,g.rY)(me)||void 0,queryVariables:ge});X&&M.push({result:X,dataId:"ROOT_QUERY",query:me,variables:ge})}}}),O.performTransaction(function(q){M.forEach(function(oe){return q.write(oe)});var ne=f.update;ne&&ne(q,f.result)},null)}},C.prototype.markMutationOptimistic=function(f,O){var E=this,M="function"==typeof f?f(O.variables):f;return this.cache.recordOptimisticTransaction(function(j){try{E.markMutationResult((0,n.pi)((0,n.pi)({},O),{result:{data:M}}),j)}catch(q){}},O.mutationId)},C.prototype.fetchQuery=function(f,O,E){return this.fetchQueryObservable(f,O,E).promise},C.prototype.getQueryStore=function(){var f=Object.create(null);return this.queries.forEach(function(O,E){f[E]={variables:O.variables,networkStatus:O.networkStatus,networkError:O.networkError,graphQLErrors:O.graphQLErrors}}),f},C.prototype.resetErrors=function(f){var O=this.queries.get(f);O&&(O.networkError=void 0,O.graphQLErrors=[])},C.prototype.transform=function(f){var O=this.transformCache;if(!O.has(f)){var E=this.cache.transformDocument(f),M=(0,p.Fo)(this.cache.transformForLink(E)),j=this.localState.clientQuery(E),q=M&&this.localState.serverQuery(M),ne={document:E,hasClientExports:(0,T.mj)(E),hasForcedResolvers:this.localState.shouldForceResolvers(E),clientQuery:j,serverQuery:q,defaultVars:(0,g.O4)((0,g.$H)(E))},oe=function(de){de&&!O.has(de)&&O.set(de,ne)};oe(f),oe(E),oe(j),oe(q)}return O.get(f)},C.prototype.getVariables=function(f,O){return(0,n.pi)((0,n.pi)({},this.transform(f).defaultVars),O)},C.prototype.watchQuery=function(f){void 0===(f=(0,n.pi)((0,n.pi)({},f),{variables:this.getVariables(f.query,f.variables)})).notifyOnNetworkStatusChange&&(f.notifyOnNetworkStatusChange=!1);var O=new V(this.cache),E=new m.u({queryManager:this,queryInfo:O,options:f});return this.queries.set(E.queryId,O),O.init({document:f.query,observableQuery:E,variables:f.variables}),E},C.prototype.query=function(f){var O=this;(0,y.kG)(f.query,15),(0,y.kG)("Document"===f.query.kind,16),(0,y.kG)(!f.returnPartialData,17),(0,y.kG)(!f.pollInterval,18);var E=this.generateQueryId();return this.fetchQuery(E,f).finally(function(){return O.stopQuery(E)})},C.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},C.prototype.generateRequestId=function(){return this.requestIdCounter++},C.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},C.prototype.stopQueryInStore=function(f){this.stopQueryInStoreNoBroadcast(f),this.broadcastQueries()},C.prototype.stopQueryInStoreNoBroadcast=function(f){var O=this.queries.get(f);O&&O.stop()},C.prototype.clearStore=function(){return this.cancelPendingFetches(new y.ej(19)),this.queries.forEach(function(f){f.observableQuery?f.networkStatus=w.I.loading:f.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},C.prototype.resetStore=function(){var f=this;return this.clearStore().then(function(){return f.reFetchObservableQueries()})},C.prototype.reFetchObservableQueries=function(f){var O=this;void 0===f&&(f=!1);var E=[];return this.queries.forEach(function(M,j){var q=M.observableQuery;if(q&&q.hasObservers()){var ne=q.options.fetchPolicy;q.resetLastResults(),"cache-only"!==ne&&(f||"standby"!==ne)&&E.push(q.refetch()),O.getQuery(j).setDiff(null)}}),this.broadcastQueries(),Promise.all(E)},C.prototype.setObservableQuery=function(f){this.getQuery(f.queryId).setObservableQuery(f)},C.prototype.startGraphQLSubscription=function(f){var O=this,E=f.query,M=f.fetchPolicy,j=f.errorPolicy,q=f.variables,ne=f.context,oe=void 0===ne?{}:ne;E=this.transform(E).document,q=this.getVariables(E,q);var de=function(be){return O.getObservableFromLink(E,oe,be,!1).map(function(me){if("no-cache"!==M&&(re(me,j)&&O.cache.write({query:E,result:me.data,dataId:"ROOT_SUBSCRIPTION",variables:be}),O.broadcastQueries()),c(me))throw new B.c({graphQLErrors:me.errors});return me})};if(this.transform(E).hasClientExports){var ve=this.localState.addExportedVariables(E,q,oe).then(de);return new(b())(function(be){var me=null;return ve.then(function(ge){return me=ge.subscribe(be)},be.error),function(){return me&&me.unsubscribe()}})}return de(q)},C.prototype.stopQuery=function(f){this.stopQueryNoBroadcast(f),this.broadcastQueries()},C.prototype.stopQueryNoBroadcast=function(f){this.stopQueryInStoreNoBroadcast(f),this.removeQuery(f)},C.prototype.removeQuery=function(f){this.fetchCancelFns.delete(f),this.getQuery(f).stop(),this.queries.delete(f)},C.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(f){return f.notify()})},C.prototype.getLocalState=function(){return this.localState},C.prototype.getObservableFromLink=function(f,O,E,M){var q,j=this;void 0===M&&(M=null!==(q=null==O?void 0:O.queryDeduplication)&&void 0!==q?q:this.queryDeduplication);var ne,oe=this.transform(f).serverQuery;if(oe){var ve=this.inFlightLinkObservables,be=this.link,me={query:oe,variables:E,operationName:(0,g.rY)(oe)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},O),{forceFetch:!M}))};if(O=me.context,M){var ge=ve.get(oe)||new Map;ve.set(oe,ge);var F=JSON.stringify(E);if(!(ne=ge.get(F))){var _=new W([(0,e.h)(be,me)]);ge.set(F,ne=_),_.cleanup(function(){ge.delete(F)&&ge.size<1&&ve.delete(oe)})}}else ne=new W([(0,e.h)(be,me)])}else ne=new W([b().of({data:{}})]),O=this.prepareContext(O);var D=this.transform(f).clientQuery;return D&&(ne=H(ne,function(X){return j.localState.runResolvers({document:D,remoteResult:X,context:O,variables:E})})),ne},C.prototype.getResultsFromLink=function(f,O,E){var M=f.lastRequestId=this.generateRequestId();return H(this.getObservableFromLink(f.document,E.context,E.variables),function(j){var q=(0,d.O)(j.errors);if(M>=f.lastRequestId){if(q&&"none"===E.errorPolicy)throw f.markError(new B.c({graphQLErrors:j.errors}));f.markResult(j,E,O),f.markReady()}var ne={data:j.data,loading:!1,networkStatus:f.networkStatus||w.I.ready};return q&&"ignore"!==E.errorPolicy&&(ne.errors=j.errors),ne},function(j){var q=(0,B.M)(j)?j:new B.c({networkError:j});throw M>=f.lastRequestId&&f.markError(q),q})},C.prototype.fetchQueryObservable=function(f,O,E){var M=this;void 0===E&&(E=w.I.loading);var j=this.transform(O.query).document,q=this.getVariables(j,O.variables),ne=this.getQuery(f),oe=ne.networkStatus,de=O.fetchPolicy,ve=void 0===de?"cache-first":de,be=O.errorPolicy,me=void 0===be?"none":be,ge=O.returnPartialData,F=void 0!==ge&&ge,_=O.notifyOnNetworkStatusChange,D=void 0!==_&&_,X=O.context,le=void 0===X?{}:X;("cache-first"===ve||"cache-and-network"===ve||"network-only"===ve||"no-cache"===ve)&&D&&"number"==typeof oe&&oe!==E&&(0,w.O)(E)&&("cache-first"!==ve&&(ve="cache-and-network"),F=!0);var L=Object.assign({},O,{query:j,variables:q,fetchPolicy:ve,errorPolicy:me,returnPartialData:F,notifyOnNetworkStatusChange:D,context:le}),ie=function(he){return L.variables=he,M.fetchQueryByPolicy(ne,L,E)};this.fetchCancelFns.set(f,function(he){Promise.resolve().then(function(){return se.cancel(he)})});var se=new W(this.transform(L.query).hasClientExports?this.localState.addExportedVariables(L.query,L.variables,L.context).then(ie):ie(L.variables));return se.cleanup(function(){M.fetchCancelFns.delete(f);var he=O.nextFetchPolicy;he&&(O.nextFetchPolicy=void 0,O.fetchPolicy="function"==typeof he?he.call(O,O.fetchPolicy||"cache-first"):he)}),se},C.prototype.fetchQueryByPolicy=function(f,O,E){var M=this,j=O.query,q=O.variables,ne=O.fetchPolicy,oe=O.errorPolicy,de=O.returnPartialData,ve=O.context;f.init({document:j,variables:q,networkStatus:E});var be=function(){return f.getDiff(q)},me=function(_,D){void 0===D&&(D=f.networkStatus||w.I.loading);var X=_.result,le=function(Se){return b().of((0,n.pi)({data:Se,loading:(0,w.O)(D),networkStatus:D},_.complete?null:{partial:!0}))};return M.transform(j).hasForcedResolvers?M.localState.runResolvers({document:j,remoteResult:{data:X},context:ve,variables:q,onlyRunForcedResolvers:!0}).then(function(Se){return le(Se.data)}):le(X)},ge=function(_){return M.getResultsFromLink(f,_,{variables:q,context:ve,fetchPolicy:ne,errorPolicy:oe})};switch(ne){default:case"cache-first":return(F=be()).complete?[me(F,f.markReady())]:de?[me(F),ge(!0)]:[ge(!0)];case"cache-and-network":var F;return(F=be()).complete||de?[me(F),ge(!0)]:[ge(!0)];case"cache-only":return[me(be(),f.markReady())];case"network-only":return[ge(!0)];case"no-cache":return[ge(!1)];case"standby":return[]}},C.prototype.getQuery=function(f){return f&&!this.queries.has(f)&&this.queries.set(f,new V(this.cache)),this.queries.get(f)},C.prototype.prepareContext=function(f){void 0===f&&(f={});var O=this.localState.prepareContext(f);return(0,n.pi)((0,n.pi)({},O),{clientAwareness:this.clientAwareness})},C}();function k(C,f){return(0,t.o)(C,f,f.variables&&{variables:(0,n.pi)((0,n.pi)({},C.variables),f.variables)})}var K=function(){function C(f){var O=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var E=f.uri,q=f.cache,ne=f.ssrMode,oe=void 0!==ne&&ne,de=f.ssrForceFetchDelay,ve=void 0===de?0:de,be=f.connectToDevTools,me=void 0===be?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:be,ge=f.queryDeduplication,F=void 0===ge||ge,_=f.defaultOptions,D=f.assumeImmutableResults,X=void 0!==D&&D,le=f.resolvers,Se=f.typeDefs,L=f.fragmentMatcher,ie=f.name,se=f.version,he=f.link;if(he||(he=E?new o.u({uri:E,credentials:f.credentials,headers:f.headers}):l.i.empty()),!q)throw new y.ej(9);this.link=he,this.cache=q,this.disableNetworkFetches=oe||ve>0,this.queryDeduplication=F,this.defaultOptions=_||{},this.typeDefs=Se,ve&&setTimeout(function(){return O.disableNetworkFetches=!1},ve),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 P({cache:q,client:this,resolvers:le,fragmentMatcher:L}),this.queryManager=new Y({cache:this.cache,link:this.link,queryDeduplication:F,ssrMode:oe,clientAwareness:{name:ie,version:se},localState:this.localState,assumeImmutableResults:X,onBroadcast:me?function(){O.devToolsHookCb&&O.devToolsHookCb({action:{},state:{queries:O.queryManager.getQueryStore(),mutations:O.queryManager.mutationStore||{}},dataWithOptimisticResults:O.cache.extract(!0)})}:void 0})}return C.prototype.stop=function(){this.queryManager.stop()},C.prototype.watchQuery=function(f){return this.defaultOptions.watchQuery&&(f=k(this.defaultOptions.watchQuery,f)),this.disableNetworkFetches&&("network-only"===f.fetchPolicy||"cache-and-network"===f.fetchPolicy)&&(f=(0,n.pi)((0,n.pi)({},f),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(f)},C.prototype.query=function(f){return this.defaultOptions.query&&(f=k(this.defaultOptions.query,f)),(0,y.kG)("cache-and-network"!==f.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===f.fetchPolicy&&(f=(0,n.pi)((0,n.pi)({},f),{fetchPolicy:"cache-first"})),this.queryManager.query(f)},C.prototype.mutate=function(f){return this.defaultOptions.mutate&&(f=k(this.defaultOptions.mutate,f)),this.queryManager.mutate(f)},C.prototype.subscribe=function(f){return this.queryManager.startGraphQLSubscription(f)},C.prototype.readQuery=function(f,O){return void 0===O&&(O=!1),this.cache.readQuery(f,O)},C.prototype.readFragment=function(f,O){return void 0===O&&(O=!1),this.cache.readFragment(f,O)},C.prototype.writeQuery=function(f){this.cache.writeQuery(f),this.queryManager.broadcastQueries()},C.prototype.writeFragment=function(f){this.cache.writeFragment(f),this.queryManager.broadcastQueries()},C.prototype.__actionHookForDevTools=function(f){this.devToolsHookCb=f},C.prototype.__requestRaw=function(f){return(0,e.h)(this.link,f)},C.prototype.resetStore=function(){var f=this;return Promise.resolve().then(function(){return f.queryManager.clearStore()}).then(function(){return Promise.all(f.resetStoreCallbacks.map(function(O){return O()}))}).then(function(){return f.reFetchObservableQueries()})},C.prototype.clearStore=function(){var f=this;return Promise.resolve().then(function(){return f.queryManager.clearStore()}).then(function(){return Promise.all(f.clearStoreCallbacks.map(function(O){return O()}))})},C.prototype.onResetStore=function(f){var O=this;return this.resetStoreCallbacks.push(f),function(){O.resetStoreCallbacks=O.resetStoreCallbacks.filter(function(E){return E!==f})}},C.prototype.onClearStore=function(f){var O=this;return this.clearStoreCallbacks.push(f),function(){O.clearStoreCallbacks=O.clearStoreCallbacks.filter(function(E){return E!==f})}},C.prototype.reFetchObservableQueries=function(f){return this.queryManager.reFetchObservableQueries(f)},C.prototype.extract=function(f){return this.cache.extract(f)},C.prototype.restore=function(f){return this.cache.restore(f)},C.prototype.addResolvers=function(f){this.localState.addResolvers(f)},C.prototype.setResolvers=function(f){this.localState.setResolvers(f)},C.prototype.getResolvers=function(){return this.localState.getResolvers()},C.prototype.setLocalStateFragmentMatcher=function(f){this.localState.setFragmentMatcher(f)},C.prototype.setLink=function(f){this.link=this.queryManager.link=f},C}()},40939:(J,I,s)=>{"use strict";s.d(I,{u:()=>A});var n=s(48399),y=s(70977),l=s(38546),e=s(75832),t=Object.prototype.toString;function a(G){return o(G)}function o(G,W){switch(t.call(G)){case"[object Array]":if((W=W||new Map).has(G))return W.get(G);var H=G.slice(0);return W.set(G,H),H.forEach(function(m,w){H[w]=o(m,W)}),H;case"[object Object]":if((W=W||new Map).has(G))return W.get(G);var B=Object.create(Object.getPrototypeOf(G));return W.set(G,B),Object.keys(G).forEach(function(m){B[m]=o(G[m],W)}),B;default:return G}}var r=s(62954),i=s(83368),c=s(20283),d=s(42677),g=s.n(d),p=s(1313),T=s(85025),S=function(){function G(W,H,B,m){this.observer=W,this.options=H,this.fetch=B,this.shouldFetch=m}return G.prototype.reobserve=function(W,H){W?this.updateOptions(W):this.updatePolling();var B=this.fetch(this.options,H);return this.concast&&this.concast.removeObserver(this.observer,!0),B.addObserver(this.observer),(this.concast=B).promise},G.prototype.updateOptions=function(W){return Object.assign(this.options,(0,T.o)(W)),this.updatePolling(),this},G.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())},G.prototype.updatePolling=function(){var W=this,B=this.pollingInfo,m=this.options.pollInterval;if(m){if((!B||B.interval!==m)&&((0,y.kG)(m,20),!1!==this.shouldFetch)){(B||(this.pollingInfo={})).interval=m;var u=function(){W.pollingInfo&&(W.shouldFetch&&W.shouldFetch()?W.reobserve({fetchPolicy:"network-only",nextFetchPolicy:W.options.fetchPolicy||"cache-first"},e.I.poll).then(v,v):v())},v=function(){var h=W.pollingInfo;h&&(clearTimeout(h.timeout),h.timeout=setTimeout(u,h.interval))};v()}}else B&&(clearTimeout(B.timeout),delete this.pollingInfo)},G}(),A=function(G){function W(H){var B=H.queryManager,m=H.queryInfo,w=H.options,u=G.call(this,function(h){return u.onSubscribe(h)})||this;u.observers=new Set,u.subscriptions=new Set,u.observer={next:function(h){(u.lastError||u.isDifferentFromLastResult(h))&&(u.updateLastResult(h),(0,r.p)(u.observers,"next",h))},error:function(h){u.updateLastResult((0,n.pi)((0,n.pi)({},u.lastResult),{error:h,errors:h.graphQLErrors,networkStatus:e.I.error,loading:!1})),(0,r.p)(u.observers,"error",u.lastError=h)}},u.isTornDown=!1,u.options=w,u.queryId=B.generateQueryId();var v=(0,i.$H)(w.query);return u.queryName=v&&v.name&&v.name.value,u.queryManager=B,u.queryInfo=m,u}return(0,n.ZT)(W,G),Object.defineProperty(W.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),W.prototype.result=function(){var H=this;return new Promise(function(B,m){var w={next:function(v){B(v),H.observers.delete(w),H.observers.size||H.queryManager.removeQuery(H.queryId),setTimeout(function(){u.unsubscribe()},0)},error:m},u=H.subscribe(w)})},W.prototype.getCurrentResult=function(H){void 0===H&&(H=!0);var B=this.lastResult,m=this.queryInfo.networkStatus||B&&B.networkStatus||e.I.ready,w=(0,n.pi)((0,n.pi)({},B),{loading:(0,e.O)(m),networkStatus:m});if(this.isTornDown)return w;var u=this.options.fetchPolicy,v=void 0===u?"cache-first":u;if("no-cache"===v||"network-only"===v)delete w.partial;else if(!w.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var h=this.queryInfo.getDiff();w.data=h.complete||this.options.returnPartialData?h.result:void 0,h.complete?(w.networkStatus===e.I.loading&&("cache-first"===v||"cache-only"===v)&&(w.networkStatus=e.I.ready,w.loading=!1),delete w.partial):w.partial=!0}return H&&this.updateLastResult(w),w},W.prototype.isDifferentFromLastResult=function(H){return!(0,l.D)(this.lastResultSnapshot,H)},W.prototype.getLastResult=function(){return this.lastResult},W.prototype.getLastError=function(){return this.lastError},W.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},W.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},W.prototype.refetch=function(H){var B={pollInterval:0},m=this.options.fetchPolicy;return"no-cache"!==m&&"cache-and-network"!==m&&(B.fetchPolicy="network-only",B.nextFetchPolicy=m||"cache-first"),H&&!(0,l.D)(this.options.variables,H)&&(B.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),H)),this.newReobserver(!1).reobserve(B,e.I.refetch)},W.prototype.fetchMore=function(H){var B=this,m=(0,n.pi)((0,n.pi)({},H.query?H:(0,n.pi)((0,n.pi)((0,n.pi)({},this.options),H),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),H.variables)})),{fetchPolicy:"no-cache"}),w=this.queryManager.generateQueryId();return m.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=e.I.fetchMore,this.observe()),this.queryManager.fetchQuery(w,m,e.I.fetchMore).then(function(u){var v=u.data,h=H.updateQuery;return h?B.updateQuery(function(R){return h(R,{fetchMoreResult:v,variables:m.variables})}):B.queryManager.cache.writeQuery({query:m.query,variables:m.variables,data:v}),u}).finally(function(){B.queryManager.stopQuery(w),B.reobserve()})},W.prototype.subscribeToMore=function(H){var B=this,m=this.queryManager.startGraphQLSubscription({query:H.document,variables:H.variables,context:H.context}).subscribe({next:function(w){var u=H.updateQuery;u&&B.updateQuery(function(v,h){return u(v,{subscriptionData:w,variables:h.variables})})},error:function(w){H.onError&&H.onError(w)}});return this.subscriptions.add(m),function(){B.subscriptions.delete(m)&&m.unsubscribe()}},W.prototype.setOptions=function(H){return this.reobserve(H)},W.prototype.setVariables=function(H){if((0,l.D)(this.variables,H))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=H,!this.observers.size)return Promise.resolve();var B=this.options.fetchPolicy,m=void 0===B?"cache-first":B,w={fetchPolicy:m,variables:H};return"cache-first"!==m&&"no-cache"!==m&&"network-only"!==m&&(w.fetchPolicy="cache-and-network",w.nextFetchPolicy=m),this.reobserve(w,e.I.setVariables)},W.prototype.updateQuery=function(H){var B,m=this.queryManager,u=H(m.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(B=this.lastResult)||void 0===B?void 0:B.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});u&&(m.cache.writeQuery({query:this.options.query,data:u,variables:this.variables}),m.broadcastQueries())},W.prototype.startPolling=function(H){this.getReobserver().updateOptions({pollInterval:H})},W.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},W.prototype.updateLastResult=function(H){var B=this.lastResult;return this.lastResult=H,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?H:a(H),(0,c.O)(H.errors)||delete this.lastError,B},W.prototype.onSubscribe=function(H){var B=this;if(H===this.observer)return function(){};try{var m=H._subscription._observer;m&&!m.error&&(m.error=x)}catch(u){}var w=!this.observers.size;return this.observers.add(H),this.lastError?H.error&&H.error(this.lastError):this.lastResult&&H.next&&H.next(this.lastResult),w&&this.reobserve().catch(function(u){}),function(){B.observers.delete(H)&&!B.observers.size&&B.tearDownQuery()}},W.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},W.prototype.newReobserver=function(H){var B=this,w=this.queryManager,u=this.queryId;return w.setObservableQuery(this),new S(this.observer,H?this.options:(0,n.pi)({},this.options),function(v,h){return w.setObservableQuery(B),w.fetchQueryObservable(u,v,h)},!w.ssrMode&&function(){return!(0,e.O)(B.queryInfo.networkStatus)})},W.prototype.reobserve=function(H,B){return this.isTornDown=!1,this.getReobserver().reobserve(H,B)},W.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},W.prototype.hasObservers=function(){return this.observers.size>0},W.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(H){return H.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},W}(g());function x(G){}(0,p.D)(A)},52247:(J,I,s)=>{"use strict";s.r(I),s.d(I,{ApolloClient:()=>n.f,mergeOptions:()=>n.J,ObservableQuery:()=>y.u,NetworkStatus:()=>l.I,isApolloError:()=>o.M,ApolloError:()=>o.c,Cache:()=>r.C,ApolloCache:()=>i.R,InMemoryCache:()=>c.h,MissingFieldError:()=>d.y,defaultDataIdFromObject:()=>g.u,makeVar:()=>p.QS,HttpLink:()=>A.uG,checkFetcher:()=>A.U2,createHttpLink:()=>A.LQ,createSignalIfSupported:()=>A.$g,fallbackHttpConfig:()=>A.SC,parseAndCheckHttpResponse:()=>A.dO,rewriteURIForGET:()=>A.Hg,selectHttpOptionsAndBody:()=>A.E4,selectURI:()=>A.rg,serializeFetchParameter:()=>A.gE,fromError:()=>x.Q,toPromise:()=>G.V,fromPromise:()=>W.p,throwServerError:()=>H.P,Observable:()=>m.a,isReference:()=>w.Yk,makeReference:()=>w.kQ,setLogVerbosity:()=>u.U6,gql:()=>v.ZP,resetCaches:()=>v.HW,disableFragmentWarnings:()=>v._t,enableExperimentalFragmentVariables:()=>v.wO,disableExperimentalFragmentVariables:()=>v.J9});var n=s(43303),y=s(40939),l=s(75832),e=s(11844),a={};for(const h in e)["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(h)<0&&(a[h]=()=>e[h]);s.d(I,a);var o=s(4549),r=s(43015),i=s(17629),c=s(41695),d=s(73860),g=s(37691),p=s(71883),T=s(12536);a={};for(const h 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(h)<0&&(a[h]=()=>T[h]);s.d(I,a);var b=s(96436);a={};for(const h 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(h)<0&&(a[h]=()=>b[h]);s.d(I,a);var A=s(87449),x=s(11055),G=s(10893),W=s(87768),H=s(9360),B=s(42677),m=s.n(B),w=s(30534),u=s(70977),v=s(92886);(0,u.U6)("log")},75832:(J,I,s)=>{"use strict";s.d(I,{I:()=>n,O:()=>y});var n=(()=>{return(l=n||(n={}))[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",n;var l})();function y(l){return!!l&&l<7}},11844:()=>{},4549:(J,I,s)=>{"use strict";s.d(I,{M:()=>l,c:()=>t});var n=s(48399),y=s(20283);function l(a){return a.hasOwnProperty("graphQLErrors")}var t=function(a){function o(r){var i=r.graphQLErrors,c=r.networkError,d=r.errorMessage,g=r.extraInfo,p=a.call(this,d)||this;return p.graphQLErrors=i||[],p.networkError=c||null,p.message=d||function(a){var o="";return(0,y.O)(a.graphQLErrors)&&a.graphQLErrors.forEach(function(r){o+=(r?r.message:"Error message not found.")+"\n"}),a.networkError&&(o+=a.networkError.message+"\n"),o=o.replace(/\n$/,"")}(p),p.extraInfo=g,p.__proto__=o.prototype,p}return(0,n.ZT)(o,a),o}(Error)},43821:(J,I,s)=>{"use strict";s.r(I);var n=s(52247),y={};for(const e in n)"default"!==e&&(y[e]=()=>n[e]);s.d(I,y);var l=s(11076);y={};for(const e in l)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables","HttpLink","checkFetcher","createHttpLink","createSignalIfSupported","fallbackHttpConfig","parseAndCheckHttpResponse","rewriteURIForGET","selectHttpOptionsAndBody","selectURI","serializeFetchParameter"].indexOf(e)<0&&(y[e]=()=>l[e]);s.d(I,y)},42753:(J,I,s)=>{"use strict";s.r(I),s.d(I,{setContext:()=>t});var n=s(48399),y=s(80704),l=s(42677),e=s.n(l);function t(a){return new y.i(function(o,r){var i=(0,n._T)(o,[]);return new(e())(function(c){var d;return Promise.resolve(i).then(function(g){return a(g,o.getContext())}).then(o.setContext).then(function(){d=r(o).subscribe({next:c.next.bind(c),error:c.error.bind(c),complete:c.complete.bind(c)})}).catch(c.error.bind(c)),function(){d&&d.unsubscribe()}})})}},80704:(J,I,s)=>{"use strict";s.d(I,{i:()=>p});var T,n=s(48399),y=s(70977),l=s(42677),e=s.n(l),a=s(83368);function i(T,S){return S?S(T):e().of()}function c(T){return"function"==typeof T?new p(T):T}function d(T){return T.request.length<=1}T=Error,(0,n.ZT)(function(b,A){var x=T.call(this,b)||this;return x.link=A,x},T);var p=function(){function T(S){S&&(this.request=S)}return T.empty=function(){return new T(function(){return e().of()})},T.from=function(S){return 0===S.length?T.empty():S.map(c).reduce(function(b,A){return b.concat(A)})},T.split=function(S,b,A){var x=c(b),G=c(A||new T(i));return d(x)&&d(G)?new T(function(W){return S(W)?x.request(W)||e().of():G.request(W)||e().of()}):new T(function(W,H){return S(W)?x.request(W,H)||e().of():G.request(W,H)||e().of()})},T.execute=function(S,b){return S.request(function(T,S){var b=(0,n.pi)({},T);return Object.defineProperty(S,"setContext",{enumerable:!1,value:function(G){b=(0,n.pi)((0,n.pi)({},b),"function"==typeof G?G(b):G)}}),Object.defineProperty(S,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},b)}}),S}(b.context,function(T){var S={variables:T.variables||{},extensions:T.extensions||{},operationName:T.operationName,query:T.query};return S.operationName||(S.operationName="string"!=typeof S.query?(0,a.rY)(S.query)||void 0:""),S}(function(T){for(var S=["query","operationName","variables","extensions","context"],b=0,A=Object.keys(T);b<A.length;b++)if(S.indexOf(A[b])<0)throw new y.ej(26);return T}(b))))||e().of()},T.concat=function(S,b){var A=c(S);if(d(A))return A;var x=c(b);return d(x)?new T(function(G){return A.request(G,function(W){return x.request(W)||e().of()})||e().of()}):new T(function(G,W){return A.request(G,function(H){return x.request(H,W)||e().of()})||e().of()})},T.prototype.split=function(S,b,A){return this.concat(T.split(S,b,A||new T(i)))},T.prototype.concat=function(S){return T.concat(this,S)},T.prototype.request=function(S,b){throw new y.ej(21)},T.prototype.onError=function(S,b){if(b&&b.error)return b.error(S),!1;throw S},T.prototype.setOnError=function(S){return this.onError=S,this},T}()},9838:(J,I,s)=>{"use strict";s.d(I,{z:()=>y});var y=s(80704).i.concat},48876:(J,I,s)=>{"use strict";s.d(I,{c:()=>y});var y=s(80704).i.empty},19717:(J,I,s)=>{"use strict";s.d(I,{h:()=>y});var y=s(80704).i.execute},41129:(J,I,s)=>{"use strict";s.d(I,{D:()=>y});var y=s(80704).i.from},96436:(J,I,s)=>{"use strict";s.r(I),s.d(I,{empty:()=>n.c,from:()=>y.D,split:()=>l.V,concat:()=>e.z,execute:()=>t.h,ApolloLink:()=>a.i});var n=s(48876),y=s(41129),l=s(5650),e=s(9838),t=s(19717),a=s(80704),o=s(43737),i={};for(const c in o)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(c)<0&&(i[c]=()=>o[c]);s.d(I,i)},5650:(J,I,s)=>{"use strict";s.d(I,{V:()=>y});var y=s(80704).i.split},43737:()=>{},80257:(J,I,s)=>{"use strict";s.d(I,{u:()=>e});var n=s(48399),y=s(80704),l=s(32352),e=function(t){function a(o){void 0===o&&(o={});var r=t.call(this,(0,l.L)(o).request)||this;return r.options=o,r}return(0,n.ZT)(a,t),a}(y.i)},98228:(J,I,s)=>{"use strict";s.d(I,{U:()=>y});var n=s(70977),y=function(l){if(!l&&"undefined"==typeof fetch)throw new n.ej(22)}},32352:(J,I,s)=>{"use strict";s.d(I,{L:()=>T});var n=s(48399),y=s(86729),l=s(80704),e=s(42677),t=s.n(e),a=s(5838),o=s(33585),r=s(66465),i=s(98228),c=s(57957),d=s(13604),g=s(67776),p=s(11055),T=function(S){void 0===S&&(S={});var b=S.uri,A=void 0===b?"/graphql":b,x=S.fetch,G=S.includeExtensions,W=S.useGETForQueries,H=S.includeUnusedVariables,B=void 0!==H&&H,m=(0,n._T)(S,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,i.U)(x),x||(x=fetch);var w={http:{includeExtensions:G},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new l.i(function(u){var v=(0,o.r)(u,A),h=u.getContext(),R={};if(h.clientAwareness){var N=h.clientAwareness,P=N.name,U=N.version;P&&(R["apollographql-client-name"]=P),U&&(R["apollographql-client-version"]=U)}var Q,Z=(0,n.pi)((0,n.pi)({},R),h.headers),V=(0,c.E)(u,c.S,w,{http:h.http,options:h.fetchOptions,credentials:h.credentials,headers:Z}),re=V.options,ee=V.body;if(ee.variables&&!B){var Y=new Set(Object.keys(ee.variables));(0,y.Vn)(u.query,{Variable:function(j,q,ne){ne&&"VariableDefinition"!==ne.kind&&Y.delete(j.name.value)}}),Y.size&&(ee.variables=(0,n.pi)({},ee.variables),Y.forEach(function(j){delete ee.variables[j]}))}if(!re.signal){var k=(0,d.$)();(Q=k.controller)&&(re.signal=k.signal)}if(W&&!u.query.definitions.some(function(j){return"OperationDefinition"===j.kind&&"mutation"===j.operation})&&(re.method="GET"),"GET"===re.method){var O=(0,g.H)(v,ee),E=O.newURI,M=O.parseError;if(M)return(0,p.Q)(M);v=E}else try{re.body=(0,a.g)(ee,"Payload")}catch(j){return(0,p.Q)(j)}return new(t())(function(j){return x(v,re).then(function(q){return u.setContext({response:q}),q}).then((0,r.d)(u)).then(function(q){return j.next(q),j.complete(),q}).catch(function(q){"AbortError"!==q.name&&(q.result&&q.result.errors&&q.result.data&&j.next(q.result),j.error(q))}),function(){Q&&Q.abort()}})})}},13604:(J,I,s)=>{"use strict";s.d(I,{$:()=>n});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var y=new AbortController;return{controller:y,signal:y.signal}}},87449:(J,I,s)=>{"use strict";s.d(I,{dO:()=>n.d,gE:()=>y.g,SC:()=>l.S,E4:()=>l.E,U2:()=>e.U,$g:()=>t.$,rg:()=>a.r,LQ:()=>o.L,uG:()=>r.u,Hg:()=>i.H});var n=s(66465),y=s(5838),l=s(57957),e=s(98228),t=s(13604),a=s(33585),o=s(32352),r=s(80257),i=s(67776)},66465:(J,I,s)=>{"use strict";s.d(I,{d:()=>l});var n=s(9360),y=Object.prototype.hasOwnProperty;function l(e){return function(t){return t.text().then(function(a){try{return JSON.parse(a)}catch(r){var o=r;throw o.name="ServerParseError",o.response=t,o.statusCode=t.status,o.bodyText=a,o}}).then(function(a){return t.status>=300&&(0,n.P)(t,a,"Response not successful: Received status code "+t.status),!Array.isArray(a)&&!y.call(a,"data")&&!y.call(a,"errors")&&(0,n.P)(t,a,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(o){return o.operationName}):e.operationName)+"'."),a})}}},67776:(J,I,s)=>{"use strict";s.d(I,{H:()=>y});var n=s(5838);function y(l,e){var t=[],a=function(T,S){t.push(T+"="+encodeURIComponent(S))};if("query"in e&&a("query",e.query),e.operationName&&a("operationName",e.operationName),e.variables){var o=void 0;try{o=(0,n.g)(e.variables,"Variables map")}catch(T){return{parseError:T}}a("variables",o)}if(e.extensions){var r=void 0;try{r=(0,n.g)(e.extensions,"Extensions map")}catch(T){return{parseError:T}}a("extensions",r)}var i="",c=l,d=l.indexOf("#");-1!==d&&(i=l.substr(d),c=l.substr(0,d));var g=-1===c.indexOf("?")?"?":"&";return{newURI:c+g+t.join("&")+i}}},57957:(J,I,s)=>{"use strict";s.d(I,{S:()=>a,E:()=>o});var n=s(48399),y=s(71352),a={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},o=function(r,i){for(var c=[],d=2;d<arguments.length;d++)c[d-2]=arguments[d];var g=(0,n.pi)((0,n.pi)({},i.options),{headers:i.headers,credentials:i.credentials}),p=i.http||{};c.forEach(function(G){g=(0,n.pi)((0,n.pi)((0,n.pi)({},g),G.options),{headers:(0,n.pi)((0,n.pi)({},g.headers),G.headers)}),G.credentials&&(g.credentials=G.credentials),p=(0,n.pi)((0,n.pi)({},p),G.http)});var T=r.operationName,S=r.extensions,b=r.variables,A=r.query,x={operationName:T,variables:b};return p.includeExtensions&&(x.extensions=S),p.includeQuery&&(x.query=(0,y.print)(A)),{options:g,body:x}}},33585:(J,I,s)=>{"use strict";s.d(I,{r:()=>n});var n=function(y,l){return y.getContext().uri||("function"==typeof l?l(y):l||"/graphql")}},5838:(J,I,s)=>{"use strict";s.d(I,{g:()=>y});var n=s(70977),y=function(l,e){var t;try{t=JSON.stringify(l)}catch(o){var a=new n.ej(23);throw a.parseError=o,a}return t}},11055:(J,I,s)=>{"use strict";s.d(I,{Q:()=>l});var n=s(42677),y=s.n(n);function l(e){return new(y())(function(t){t.error(e)})}},87768:(J,I,s)=>{"use strict";s.d(I,{p:()=>l});var n=s(42677),y=s.n(n);function l(e){return new(y())(function(t){e.then(function(a){t.next(a),t.complete()}).catch(t.error.bind(t))})}},9360:(J,I,s)=>{"use strict";s.d(I,{P:()=>n});var n=function(y,l,e){var t=new Error(e);throw t.name="ServerError",t.response=y,t.statusCode=y.status,t.result=l,t}},10893:(J,I,s)=>{"use strict";function y(l){var e=!1;return new Promise(function(t,a){l.subscribe({next:function(o){e||(e=!0,t(o))},error:a})})}s.d(I,{V:()=>y}),s(70977)},6462:(J,I,s)=>{"use strict";s.d(I,{Gl:()=>t,dP:()=>Y,re:()=>C});var n=function(){return Object.create(null)},y=Array.prototype,l=y.forEach,e=y.slice,t=function(){function f(O,E){void 0===O&&(O=!0),void 0===E&&(E=n),this.weakness=O,this.makeData=E}return f.prototype.lookup=function(){for(var O=[],E=0;E<arguments.length;E++)O[E]=arguments[E];return this.lookupArray(O)},f.prototype.lookupArray=function(O){var E=this;return l.call(O,function(M){return E=E.getChildTrie(M)}),E.data||(E.data=this.makeData(e.call(O)))},f.prototype.getChildTrie=function(O){var E=this.weakness&&function(f){switch(typeof f){case"object":if(null===f)break;case"function":return!0}return!1}(O)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),M=E.get(O);return M||E.set(O,M=new f(this.weakness,this.makeData)),M},f}(),o=s(83403);function r(){}var d,i=function(){function f(O,E){void 0===O&&(O=1/0),void 0===E&&(E=r),this.max=O,this.dispose=E,this.map=new Map,this.newest=null,this.oldest=null}return f.prototype.has=function(O){return this.map.has(O)},f.prototype.get=function(O){var E=this.getNode(O);return E&&E.value},f.prototype.getNode=function(O){var E=this.map.get(O);if(E&&E!==this.newest){var M=E.older,j=E.newer;j&&(j.older=M),M&&(M.newer=j),E.older=this.newest,E.older.newer=E,E.newer=null,this.newest=E,E===this.oldest&&(this.oldest=j)}return E},f.prototype.set=function(O,E){var M=this.getNode(O);return M?M.value=E:(M={key:O,value:E,newer:null,older:this.newest},this.newest&&(this.newest.newer=M),this.newest=M,this.oldest=this.oldest||M,this.map.set(O,M),M.value)},f.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},f.prototype.delete=function(O){var E=this.map.get(O);return!!E&&(E===this.newest&&(this.newest=E.older),E===this.oldest&&(this.oldest=E.newer),E.newer&&(E.newer.older=E.older),E.older&&(E.older.newer=E.newer),this.map.delete(O),this.dispose(E.value,O),!0)},f}(),c=new o.g7,g=Object.prototype.hasOwnProperty,p=void 0===(d=Array.from)?function(f){var O=[];return f.forEach(function(E){return O.push(E)}),O}:d;function T(f){var O=f.unsubscribe;"function"==typeof O&&(f.unsubscribe=void 0,O())}var S=[];function A(f,O){if(!f)throw new Error(O||"assertion failure")}function G(f){switch(f.length){case 0:throw new Error("unknown value");case 1:return f[0];case 2:throw f[1]}}var H=function(){function f(O){this.fn=O,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++f.count}return f.prototype.peek=function(){if(1===this.value.length&&!u(this))return B(this),this.value[0]},f.prototype.recompute=function(O){return A(!this.recomputing,"already recomputing"),B(this),u(this)?function(f,O){return ue(f),c.withValue(f,w,[f,O]),function(f,O){if("function"==typeof f.subscribe)try{T(f),f.unsubscribe=f.subscribe.apply(null,O)}catch(E){return f.setDirty(),!1}return!0}(f,O)&&function(f){f.dirty=!1,!u(f)&&R(f)}(f),G(f.value)}(this,O):G(this.value)},f.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,h(this),T(this))},f.prototype.dispose=function(){var O=this;this.setDirty(),ue(this),N(this,function(E,M){E.setDirty(),V(E,O)})},f.prototype.forget=function(){this.dispose()},f.prototype.dependOn=function(O){O.add(this),this.deps||(this.deps=S.pop()||new Set),this.deps.add(O)},f.prototype.forgetDeps=function(){var O=this;this.deps&&(p(this.deps).forEach(function(E){return E.delete(O)}),this.deps.clear(),S.push(this.deps),this.deps=null)},f.count=0,f}();function B(f){var O=c.getValue();if(O)return f.parents.add(O),O.childValues.has(f)||O.childValues.set(f,[]),u(f)?P(O,f):U(O,f),O}function w(f,O){f.recomputing=!0,f.value.length=0;try{f.value[0]=f.fn.apply(null,O)}catch(E){f.value[1]=E}f.recomputing=!1}function u(f){return f.dirty||!(!f.dirtyChildren||!f.dirtyChildren.size)}function h(f){N(f,P)}function R(f){N(f,U)}function N(f,O){var E=f.parents.size;if(E)for(var M=p(f.parents),j=0;j<E;++j)O(M[j],f)}function P(f,O){A(f.childValues.has(O)),A(u(O));var E=!u(f);if(f.dirtyChildren){if(f.dirtyChildren.has(O))return}else f.dirtyChildren=S.pop()||new Set;f.dirtyChildren.add(O),E&&h(f)}function U(f,O){A(f.childValues.has(O)),A(!u(O));var E=f.childValues.get(O);0===E.length?f.childValues.set(O,function(f){return f.slice(0)}(O.value)):function(f,O){var E=f.length;return E>0&&E===O.length&&f[E-1]===O[E-1]}(E,O.value)||f.setDirty(),Z(f,O),!u(f)&&R(f)}function Z(f,O){var E=f.dirtyChildren;E&&(E.delete(O),0===E.size&&(S.length<100&&S.push(E),f.dirtyChildren=null))}function ue(f){f.childValues.size>0&&f.childValues.forEach(function(O,E){V(f,E)}),f.forgetDeps(),A(null===f.dirtyChildren)}function V(f,O){O.parents.delete(f),f.childValues.delete(O),Z(f,O)}var ee={setDirty:!0,dispose:!0,forget:!0};function Y(f){var O=new Map,E=f&&f.subscribe;function M(j){var q=c.getValue();if(q){var ne=O.get(j);ne||O.set(j,ne=new Set),q.dependOn(ne),"function"==typeof E&&(T(ne),ne.unsubscribe=E(j))}}return M.dirty=function(q,ne){var oe=O.get(q);if(oe){var de=ne&&g.call(ee,ne)?ne:"setDirty";p(oe).forEach(function(ve){return ve[de]()}),O.delete(q),T(oe)}},M}function Q(){var f=new t("function"==typeof WeakMap);return function(){return f.lookupArray(arguments)}}Q();var K=new Set;function C(f,O){void 0===O&&(O=Object.create(null));var E=new i(O.max||Math.pow(2,16),function(ve){return ve.dispose()}),M=O.keyArgs,j=O.makeCacheKey||Q(),q=function(){var ve=j.apply(null,M?M.apply(null,arguments):arguments);if(void 0===ve)return f.apply(null,arguments);var be=E.get(ve);be||(E.set(ve,be=new H(f)),be.subscribe=O.subscribe,be.forget=function(){return E.delete(ve)});var me=be.recompute(Array.prototype.slice.call(arguments));return E.set(ve,be),K.add(E),c.hasValue()||(K.forEach(function(ge){return ge.clean()}),K.clear()),me};function ne(ve){var be=E.get(ve);be&&be.setDirty()}function oe(ve){var be=E.get(ve);if(be)return be.peek()}function de(ve){return E.delete(ve)}return Object.defineProperty(q,"size",{get:function(){return E.map.size},configurable:!1,enumerable:!1}),q.dirtyKey=ne,q.dirty=function(){ne(j.apply(null,arguments))},q.peekKey=oe,q.peek=function(){return oe(j.apply(null,arguments))},q.forgetKey=de,q.forget=function(){return de(j.apply(null,arguments))},q.makeCacheKey=j,q.getKey=M?function(){return j.apply(null,M.apply(null,arguments))}:j,Object.freeze(q)}},70977:(J,I,s)=>{"use strict";s.d(I,{ej:()=>P,kG:()=>U,U6:()=>re});var n=function(k,K){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,f){C.__proto__=f}||function(C,f){for(var O in f)Object.prototype.hasOwnProperty.call(f,O)&&(C[O]=f[O])})(k,K)},h="Invariant Violation",R=Object.setPrototypeOf,N=void 0===R?function(k,K){return k.__proto__=K,k}:R,P=function(k){function K(C){void 0===C&&(C=h);var f=k.call(this,"number"==typeof C?h+": "+C+" (see https://github.com/apollographql/invariant-packages)":C)||this;return f.framesToPop=1,f.name=h,N(f,K.prototype),f}return function(k,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function C(){this.constructor=k}n(k,K),k.prototype=null===K?Object.create(K):(C.prototype=K.prototype,new C)}(K,k),K}(Error);function U(k,K){if(!k)throw new P(K)}var k,Z=["log","warn","error","silent"],ue=Z.indexOf("log");function V(k){return function(){if(Z.indexOf(k)>=ue)return console[k].apply(console,arguments)}}function re(k){var K=Z[ue];return ue=Math.max(0,Z.indexOf(k)),K}(k=U||(U={})).log=V("log"),k.warn=V("warn"),k.error=V("error"),"object"==typeof process&&"object"==typeof process.env&&process},61397:(J,I,s)=>{"use strict";s.d(I,{a:()=>e});var n=s(3904),y=s(70977),l=s(93409),e=function(t){var a=(0,l.K)();return n.createElement(a.Consumer,null,function(o){return(0,y.kG)(o&&o.client,27),t.children(o.client)})}},93409:(J,I,s)=>{"use strict";s.d(I,{K:()=>e,Z:()=>e});var n=s(3904),l=new(s(73005).m?WeakMap:Map);function e(){var t=l.get(n.createContext);return t||((t=n.createContext({})).displayName="ApolloContext",l.set(n.createContext,t)),t}},15177:(J,I,s)=>{"use strict";s.d(I,{e:()=>e});var n=s(3904),y=s(70977),l=s(93409),e=function(t){var a=t.client,o=t.children,r=(0,l.K)();return n.createElement(r.Consumer,null,function(i){return void 0===i&&(i={}),a&&i.client!==a&&(i=Object.assign({},i,{client:a})),(0,y.kG)(i.client,28),n.createElement(r.Provider,{value:i},o)})}},11771:(J,I,s)=>{"use strict";s.d(I,{xJ:()=>e,td:()=>T,Db:()=>A,aM:()=>x,lY:()=>H,mU:()=>W});var n=s(3904),y=s(70977),l=s(93409);function e(){var B=n.useContext((0,l.K)()).client;return(0,y.kG)(B,33),B}var t=s(48399),a=s(38546),o=s(4549),r=s(75832),i=s(57209),c=function(){function B(m,w){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=m||{},this.context=w||{}}return B.prototype.getOptions=function(){return this.options},B.prototype.setOptions=function(m,w){void 0===w&&(w=!1),w&&!(0,a.D)(this.options,m)&&(this.previousOptions=this.options),this.options=m},B.prototype.unmount=function(){this.isMounted=!1},B.prototype.refreshClient=function(){var m=this.options&&this.options.client||this.context&&this.context.client;(0,y.kG)(!!m,29);var w=!1;return m!==this.client&&(w=!0,this.client=m,this.cleanup()),{client:this.client,isNew:w}},B.prototype.verifyDocumentType=function(m,w){var u=(0,i.E2)(m);(0,i.mw)(w),(0,i.mw)(u.type),(0,y.kG)(u.type===w,30)},B}(),d=function(B){function m(w){var h=w.onNewData,R=B.call(this,w.options,w.context)||this;return R.runLazy=!1,R.previous=Object.create(null),R.runLazyQuery=function(N){R.cleanup(),R.runLazy=!0,R.lazyOptions=N,R.onNewData()},R.getQueryResult=function(){var N=R.observableQueryFields(),P=R.getOptions();if(P.skip)N=(0,t.pi)((0,t.pi)({},N),{data:void 0,error:void 0,loading:!1,networkStatus:r.I.ready,called:!0});else if(R.currentObservable){var U=R.currentObservable.getCurrentResult(),Z=U.data,ue=U.loading,V=U.partial,re=U.networkStatus,ee=U.errors,Y=U.error;if(ee&&ee.length>0&&(Y=new o.c({graphQLErrors:ee})),N=(0,t.pi)((0,t.pi)({},N),{data:Z,loading:ue,networkStatus:re,error:Y,called:!0}),!ue)if(Y)Object.assign(N,{data:(R.currentObservable.getLastResult()||{}).data});else{var Q=R.currentObservable.options.fetchPolicy;if(P.partialRefetch&&V&&(!Z||0===Object.keys(Z).length)&&"cache-only"!==Q)return Object.assign(N,{loading:!0,networkStatus:r.I.loading}),N.refetch(),N}}N.client=R.client,R.setOptions(P,!0);var K=R.previous.result;return R.previous.loading=K&&K.loading||!1,N.previousData=K&&(K.data||K.previousData),R.previous.result=N,R.currentObservable&&R.currentObservable.resetQueryStoreErrors(),N},R.obsRefetch=function(N){var P;return null===(P=R.currentObservable)||void 0===P?void 0:P.refetch(N)},R.obsFetchMore=function(N){return R.currentObservable.fetchMore(N)},R.obsUpdateQuery=function(N){return R.currentObservable.updateQuery(N)},R.obsStartPolling=function(N){var P;null===(P=R.currentObservable)||void 0===P||P.startPolling(N)},R.obsStopPolling=function(){var N;null===(N=R.currentObservable)||void 0===N||N.stopPolling()},R.obsSubscribeToMore=function(N){return R.currentObservable.subscribeToMore(N)},R.onNewData=h,R}return(0,t.ZT)(m,B),m.prototype.execute=function(){this.refreshClient();var w=this.getOptions(),u=w.skip,v=w.query;return(u||v!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!u),this.previous.query=v),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},m.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:r.I.ready,called:!1,data:void 0}]},m.prototype.fetchData=function(){var w=this,u=this.getOptions();return!u.skip&&!1!==u.ssr&&new Promise(function(v){return w.startQuerySubscription(v)})},m.prototype.afterExecute=function(w){var u=(void 0===w?{}:w).lazy,v=void 0!==u&&u;return this.isMounted=!0,(!v||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},m.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},m.prototype.getOptions=function(){var w=B.prototype.getOptions.call(this);return this.lazyOptions&&(w.variables=(0,t.pi)((0,t.pi)({},w.variables),this.lazyOptions.variables),w.context=(0,t.pi)((0,t.pi)({},w.context),this.lazyOptions.context)),this.runLazy&&delete w.skip,w},m.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},m.prototype.getExecuteResult=function(){var w=this.getQueryResult();return this.startQuerySubscription(),w},m.prototype.getExecuteSsrResult=function(){var w=this.getOptions(),v=w.skip,h=!1===w.ssr,R=this.refreshClient().client.disableNetworkFetches,N=(0,t.pi)({loading:!0,networkStatus:r.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(h&&(this.ssrInitiated()||R))return this.previous.result=N,N;if(this.ssrInitiated()){var P=this.getQueryResult()||N;return P.loading&&!v&&this.context.renderPromises.addQueryPromise(this,function(){return null}),P}},m.prototype.prepareObservableQueryOptions=function(){var w=this.getOptions();this.verifyDocumentType(w.query,i.n_.Query);var u=w.displayName||"Query";return this.ssrInitiated()&&("network-only"===w.fetchPolicy||"cache-and-network"===w.fetchPolicy)&&(w.fetchPolicy="cache-first"),(0,t.pi)((0,t.pi)({},w),{displayName:u,context:w.context})},m.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var w=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,t.pi)((0,t.pi)({},w),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,t.pi)({},w)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,w)}},m.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var w=(0,t.pi)((0,t.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,a.D)(w,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=w,this.currentObservable.setOptions(w).catch(function(){}))}}else this.initializeObservableQuery()},m.prototype.startQuerySubscription=function(w){var u=this;void 0===w&&(w=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(v){var P=u.previous.result;P&&P.loading===v.loading&&P.networkStatus===v.networkStatus&&(0,a.D)(P.data,v.data)||w()},error:function(v){if(u.resubscribeToQuery(),!v.hasOwnProperty("graphQLErrors"))throw v;var h=u.previous.result;(h&&h.loading||!(0,a.D)(v,u.previous.error))&&(u.previous.error=v,w())}}))},m.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var w=this.currentObservable;if(w){var u=w.getLastError(),v=w.getLastResult();w.resetLastResults(),this.startQuerySubscription(),Object.assign(w,{lastError:u,lastResult:v})}},m.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var w=this.previous.result,u=w.data,h=w.error;if(!w.loading){var R=this.getOptions(),P=R.variables,U=R.onCompleted,Z=R.onError,ue=R.skip;if(this.previousOptions&&!this.previous.loading&&(0,a.D)(this.previousOptions.query,R.query)&&(0,a.D)(this.previousOptions.variables,P))return;!U||h||ue?Z&&h&&Z(h):U(u)}}},m.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},m.prototype.removeObservable=function(w){this.currentObservable&&(this.currentObservable.tearDownQuery(),w&&delete this.currentObservable)},m.prototype.observableQueryFields=function(){var w;return{variables:null===(w=this.currentObservable)||void 0===w?void 0:w.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},m}(c);function p(B,m,w){void 0===w&&(w=!1);var u=(0,n.useContext)((0,l.K)()),v=(0,n.useReducer)(function(re){return re+1},0),h=v[0],R=v[1],N=m?(0,t.pi)((0,t.pi)({},m),{query:B}):{query:B},P=(0,n.useRef)(),U=P.current||(P.current=new d({options:N,context:u,onNewData:function(){U.ssrInitiated()?R():Promise.resolve().then(function(){return P.current&&R()})}}));U.setOptions(N),U.context=u;var ue=function(B,m){var w=(0,n.useRef)();return(!w.current||!(0,a.D)(m,w.current.key))&&(w.current={key:m,value:B()}),w.current.value}(function(){return w?U.executeLazy():U.execute()},{options:(0,t.pi)((0,t.pi)({},N),{onError:void 0,onCompleted:void 0}),context:u,tick:h}),V=w?ue[1]:ue;return(0,n.useEffect)(function(){return function(){return U.cleanup()}},[]),(0,n.useEffect)(function(){return U.afterExecute({lazy:w})},[V.loading,V.networkStatus,V.error,V.data]),ue}function T(B,m){return p(B,m,!0)}var S=s(43303),b=function(B){function m(w){var u=w.options,h=w.result,R=w.setResult,N=B.call(this,u,w.context)||this;return N.runMutation=function(P){void 0===P&&(P={}),N.onMutationStart();var U=N.generateNewMutationId();return N.mutate(P).then(function(Z){return N.onMutationCompleted(Z,U),Z}).catch(function(Z){var ue=N.getOptions().onError;if(N.onMutationError(Z,U),ue)return ue(Z),{data:void 0,errors:Z};throw Z})},N.verifyDocumentType(u.mutation,i.n_.Mutation),N.result=h,N.setResult=R,N.mostRecentMutationId=0,N}return(0,t.ZT)(m,B),m.prototype.execute=function(w){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,i.n_.Mutation),[this.runMutation,(0,t.pi)((0,t.pi)({},w),{client:this.refreshClient().client})]},m.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},m.prototype.cleanup=function(){},m.prototype.mutate=function(w){return this.refreshClient().client.mutate((0,S.J)(this.getOptions(),w))},m.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},m.prototype.onMutationCompleted=function(w,u){var v=this.getOptions(),h=v.onCompleted,R=v.ignoreResults,N=w.data,P=w.errors,U=P&&P.length>0?new o.c({graphQLErrors:P}):void 0;this.isMostRecentMutation(u)&&!R&&this.updateResult({called:!0,loading:!1,data:N,error:U}),h&&h(N)},m.prototype.onMutationError=function(w,u){this.isMostRecentMutation(u)&&this.updateResult({loading:!1,error:w,data:void 0,called:!0})},m.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},m.prototype.isMostRecentMutation=function(w){return this.mostRecentMutationId===w},m.prototype.updateResult=function(w){if(this.isMounted&&(!this.previousResult||!(0,a.D)(this.previousResult,w)))return this.setResult(w),this.previousResult=w,w},m}(c);function A(B,m){var w=(0,n.useContext)((0,l.K)()),u=(0,n.useState)({called:!1,loading:!1}),v=u[0],h=u[1],R=m?(0,t.pi)((0,t.pi)({},m),{mutation:B}):{mutation:B},N=(0,n.useRef)(),U=(N.current||(N.current=new b({options:R,context:w,result:v,setResult:h})),N.current);return U.setOptions(R),U.context=w,(0,n.useEffect)(function(){return U.afterExecute()}),U.execute(v)}function x(B,m){return p(B,m,!1)}var G=function(B){function m(w){var u=w.options,h=w.setResult,R=B.call(this,u,w.context)||this;return R.currentObservable={},R.setResult=h,R.initialize(u),R}return(0,t.ZT)(m,B),m.prototype.execute=function(w){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var u=w;this.refreshClient().isNew&&(u=this.getLoadingResult());var v=this.getOptions().shouldResubscribe;return"function"==typeof v&&(v=!!v(this.getOptions())),!1!==v&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,a.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),u=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,t.pi)((0,t.pi)({},u),{variables:this.getOptions().variables})},m.prototype.afterExecute=function(){this.isMounted=!0},m.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},m.prototype.initialize=function(w){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:w.subscription,variables:w.variables,fetchPolicy:w.fetchPolicy,context:w.context}))},m.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)}))},m.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},m.prototype.updateResult=function(w){this.isMounted&&this.setResult(w)},m.prototype.updateCurrentData=function(w){var u=this.getOptions().onSubscriptionData;this.updateResult({data:w.data,loading:!1,error:void 0}),u&&u({client:this.refreshClient().client,subscriptionData:w})},m.prototype.updateError=function(w){this.updateResult({error:w,loading:!1})},m.prototype.completeSubscription=function(){var w=this;Promise.resolve().then(function(){var u=w.getOptions().onSubscriptionComplete;u&&u(),w.endSubscription()})},m.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},m}(c);function W(B,m){var w=(0,n.useContext)((0,l.K)()),u=m?(0,t.pi)((0,t.pi)({},m),{subscription:B}):{subscription:B},v=(0,n.useState)({loading:!u.skip,error:void 0,data:void 0}),h=v[0],R=v[1],N=(0,n.useRef)(),U=(N.current||(N.current=new G({options:u,context:w,setResult:R})),N.current);return U.setOptions(u,!0),U.context=w,(0,n.useEffect)(function(){return U.afterExecute()}),(0,n.useEffect)(function(){return U.cleanup.bind(U)},[]),U.execute(h)}function H(B){var m=B(),w=(0,n.useState)(m)[1];return(0,n.useEffect)(function(){var u=B();if(m===u)return B.onNextChange(w);w(u)},[m]),m}},11076:(J,I,s)=>{"use strict";s.r(I),s.d(I,{ApolloProvider:()=>n.e,ApolloConsumer:()=>y.a,getApolloContext:()=>l.K,resetApolloContext:()=>l.Z,useApolloClient:()=>e.xJ,useLazyQuery:()=>e.td,useMutation:()=>e.Db,useQuery:()=>e.aM,useReactiveVar:()=>e.lY,useSubscription:()=>e.mU,DocumentType:()=>t.n_,operationName:()=>t.mw,parser:()=>t.E2});var n=s(15177),y=s(61397),l=s(93409),e=s(11771),t=s(57209),a=s(28944),r={};for(const i in a)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(i)<0&&(r[i]=()=>a[i]);s.d(I,r)},57209:(J,I,s)=>{"use strict";s.d(I,{n_:()=>y,mw:()=>e,E2:()=>t});var n=s(70977),y=(()=>{return(a=y||(y={}))[a.Query=0]="Query",a[a.Mutation=1]="Mutation",a[a.Subscription=2]="Subscription",y;var a})(),l=new Map;function e(a){var o;switch(a){case y.Query:o="Query";break;case y.Mutation:o="Mutation";break;case y.Subscription:o="Subscription"}return o}function t(a){var i,o=l.get(a);if(o)return o;(0,n.kG)(!!a&&!!a.kind,34);var d=a.definitions.filter(function(x){return"FragmentDefinition"===x.kind}),g=a.definitions.filter(function(x){return"OperationDefinition"===x.kind&&"query"===x.operation}),p=a.definitions.filter(function(x){return"OperationDefinition"===x.kind&&"mutation"===x.operation}),T=a.definitions.filter(function(x){return"OperationDefinition"===x.kind&&"subscription"===x.operation});(0,n.kG)(!d.length||g.length||p.length||T.length,35),(0,n.kG)(g.length+p.length+T.length<=1,36),i=g.length?y.Query:y.Mutation,!g.length&&!p.length&&(i=y.Subscription);var S=g.length?g:p.length?p:T;(0,n.kG)(1===S.length,37);var b=S[0],A={name:b.name&&"Name"===b.name.kind?b.name.value:"data",type:i,variables:b.variableDefinitions||[]};return l.set(a,A),A}},28944:()=>{},20283:(J,I,s)=>{"use strict";function n(y){return Array.isArray(y)&&y.length>0}s.d(I,{O:()=>n})},73005:(J,I,s)=>{"use strict";s.d(I,{m:()=>n});var n="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},85025:(J,I,s)=>{"use strict";function n(){for(var y=[],l=0;l<arguments.length;l++)y[l]=arguments[l];var e=Object.create(null);return y.forEach(function(t){!t||Object.keys(t).forEach(function(a){var o=t[a];void 0!==o&&(e[a]=o)})}),e}s.d(I,{o:()=>n})},2456:(J,I,s)=>{"use strict";s.d(I,{Ee:()=>l,bw:()=>e,w0:()=>o});var n=s(48399),y=Object.prototype.hasOwnProperty;function l(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e(r)}function e(r){var i=r[0]||{},c=r.length;if(c>1)for(var d=new o,g=1;g<c;++g)i=d.merge(i,r[g]);return i}function t(r){return null!==r&&"object"==typeof r}var a=function(r,i,c){return this.merge(r[c],i[c])},o=function(){function r(i){void 0===i&&(i=a),this.reconciler=i,this.isObject=t,this.pastCopies=new Set}return r.prototype.merge=function(i,c){for(var d=this,g=[],p=2;p<arguments.length;p++)g[p-2]=arguments[p];return t(c)&&t(i)?(Object.keys(c).forEach(function(T){if(y.call(i,T)){var S=i[T];if(c[T]!==S){var b=d.reconciler.apply(d,(0,n.pr)([i,c,T],g));b!==S&&((i=d.shallowCopyForMerge(i))[T]=b)}}else(i=d.shallowCopyForMerge(i))[T]=c[T]}),i):c},r.prototype.shallowCopyForMerge=function(i){return t(i)&&!this.pastCopies.has(i)&&(i=Array.isArray(i)?i.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i)),i},r}()},17334:(J,I,s)=>{"use strict";s.d(I,{LZ:()=>l,FS:()=>t,mj:()=>a});var n=s(86729),y=s(70977);function l(i,c){var d=i.directives;return!d||!d.length||function(i){var c=[];return i&&i.length&&i.forEach(function(d){if(function(i){var c=i.name.value;return"skip"===c||"include"===c}(d)){var g=d.arguments;(0,y.kG)(g&&1===g.length,39);var T=g[0];(0,y.kG)(T.name&&"if"===T.name.value,40);var S=T.value;(0,y.kG)(S&&("Variable"===S.kind||"BooleanValue"===S.kind),41),c.push({directive:d,ifArgument:T})}}),c}(d).every(function(g){var p=g.directive,T=g.ifArgument,S=!1;return"Variable"===T.value.kind?(0,y.kG)(void 0!==(S=c&&c[T.value.name.value]),38):S=T.value.value,"skip"===p.name.value?!S:S})}function t(i,c){return function(i){var c=[];return(0,n.Vn)(i,{Directive:function(d){c.push(d.name.value)}}),c}(c).some(function(d){return i.indexOf(d)>-1})}function a(i){return i&&t(["client"],i)&&t(["export"],i)}},50216:(J,I,s)=>{"use strict";s.d(I,{Yk:()=>l,F:()=>e,hi:()=>t});var n=s(48399),y=s(70977);function l(a,o){var r=o,i=[];return a.definitions.forEach(function(d){if("OperationDefinition"===d.kind)throw new y.ej(42);"FragmentDefinition"===d.kind&&i.push(d)}),void 0===r&&((0,y.kG)(1===i.length,43),r=i[0].name.value),(0,n.pi)((0,n.pi)({},a),{definitions:(0,n.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],a.definitions)})}function e(a){void 0===a&&(a=[]);var o={};return a.forEach(function(r){o[r.name.value]=r}),o}function t(a,o){switch(a.kind){case"InlineFragment":return a;case"FragmentSpread":var r=o&&o[a.name.value];return(0,y.kG)(r,44),r;default:return null}}},83368:(J,I,s)=>{"use strict";s.d(I,{A$:()=>l,$H:()=>e,rY:()=>t,kU:()=>a,iW:()=>o,pD:()=>r,p$:()=>i,O4:()=>c});var n=s(70977),y=s(30534);function l(d){(0,n.kG)(d&&"Document"===d.kind,45);var g=d.definitions.filter(function(p){return"FragmentDefinition"!==p.kind}).map(function(p){if("OperationDefinition"!==p.kind)throw new n.ej(46);return p});return(0,n.kG)(g.length<=1,47),d}function e(d){return l(d),d.definitions.filter(function(g){return"OperationDefinition"===g.kind})[0]}function t(d){return d.definitions.filter(function(g){return"OperationDefinition"===g.kind&&g.name}).map(function(g){return g.name.value})[0]||null}function a(d){return d.definitions.filter(function(g){return"FragmentDefinition"===g.kind})}function o(d){var g=e(d);return(0,n.kG)(g&&"query"===g.operation,48),g}function r(d){(0,n.kG)("Document"===d.kind,49),(0,n.kG)(d.definitions.length<=1,50);var g=d.definitions[0];return(0,n.kG)("FragmentDefinition"===g.kind,51),g}function i(d){l(d);for(var g,p=0,T=d.definitions;p<T.length;p++){var S=T[p];if("OperationDefinition"===S.kind){var b=S.operation;if("query"===b||"mutation"===b||"subscription"===b)return S}"FragmentDefinition"===S.kind&&!g&&(g=S)}if(g)return g;throw new n.ej(52)}function c(d){var g=Object.create(null),p=d&&d.variableDefinitions;return p&&p.length&&p.forEach(function(T){T.defaultValue&&(0,y.vb)(g,T.variable.name,T.defaultValue)}),g}},30534:(J,I,s)=>{"use strict";s.d(I,{kQ:()=>t,Yk:()=>a,vb:()=>b,vf:()=>A,PT:()=>G,NC:()=>W,u2:()=>H,qw:()=>B,My:()=>m,Ao:()=>w});var n=s(75616),y=s.n(n),l=s(70977),e=s(50216);function t(u){return{__ref:String(u)}}function a(u){return Boolean(u&&"object"==typeof u&&"string"==typeof u.__ref)}function b(u,v,h,R){if(function(u){return"IntValue"===u.kind}(h)||function(u){return"FloatValue"===u.kind}(h))u[v.value]=Number(h.value);else if(function(u){return"BooleanValue"===u.kind}(h)||function(u){return"StringValue"===u.kind}(h))u[v.value]=h.value;else if(function(u){return"ObjectValue"===u.kind}(h)){var N={};h.fields.map(function(U){return b(N,U.name,U.value,R)}),u[v.value]=N}else if(function(u){return"Variable"===u.kind}(h))u[v.value]=(R||{})[h.name.value];else if(function(u){return"ListValue"===u.kind}(h))u[v.value]=h.values.map(function(U){var Z={};return b(Z,v,U,R),Z[v.value]});else if(function(u){return"EnumValue"===u.kind}(h))u[v.value]=h.value;else{if(!function(u){return"NullValue"===u.kind}(h))throw new l.ej(53);u[v.value]=null}}function A(u,v){var h=null;u.directives&&(h={},u.directives.forEach(function(N){h[N.name.value]={},N.arguments&&N.arguments.forEach(function(P){return b(h[N.name.value],P.name,P.value,v)})}));var R=null;return u.arguments&&u.arguments.length&&(R={},u.arguments.forEach(function(N){return b(R,N.name,N.value,v)})),G(u.name.value,R,h)}var x=["connection","include","skip","client","rest","export"];function G(u,v,h){if(v&&h&&h.connection&&h.connection.key){if(h.connection.filter&&h.connection.filter.length>0){var R=h.connection.filter?h.connection.filter:[];R.sort();var N={};return R.forEach(function(Z){N[Z]=v[Z]}),h.connection.key+"("+JSON.stringify(N)+")"}return h.connection.key}var P=u;if(v){var U=y()(v);P+="("+U+")"}return h&&Object.keys(h).forEach(function(Z){-1===x.indexOf(Z)&&(h[Z]&&Object.keys(h[Z]).length?P+="@"+Z+"("+JSON.stringify(h[Z])+")":P+="@"+Z)}),P}function W(u,v){if(u.arguments&&u.arguments.length){var h={};return u.arguments.forEach(function(R){return b(h,R.name,R.value,v)}),h}return null}function H(u){return u.alias?u.alias.value:u.name.value}function B(u,v,h){if("string"==typeof u.__typename)return u.__typename;for(var R=0,N=v.selections;R<N.length;R++){var P=N[R];if(m(P)){if("__typename"===P.name.value)return u[H(P)]}else{var U=B(u,(0,e.hi)(P,h).selectionSet,h);if("string"==typeof U)return U}}}function m(u){return"Field"===u.kind}function w(u){return"InlineFragment"===u.kind}},52107:(J,I,s)=>{"use strict";s.d(I,{Gw:()=>p,aL:()=>B,ob:()=>m,Fo:()=>S});var n=s(48399),y=s(86729),e=(s(70977),s(83368));function t(w,u,v){var h=0;return w.forEach(function(R,N){u.call(this,R,N,w)&&(w[h++]=R)},v),w.length=h,w}var a=s(30534),o=s(50216),r={kind:"Field",name:{kind:"Name",value:"__typename"}};function i(w,u){return w.selectionSet.selections.every(function(v){return"FragmentSpread"===v.kind&&i(u[v.name.value],u)})}function c(w){return i((0,e.$H)(w)||(0,e.pD)(w),(0,o.F)((0,e.kU)(w)))?null:w}function d(w){return function(v){return w.some(function(h){return h.name&&h.name===v.name.value||h.test&&h.test(v)})}}function g(w,u){var v=Object.create(null),h=[],R=Object.create(null),N=[],P=c((0,y.Vn)(u,{Variable:{enter:function(U,Z,ue){"VariableDefinition"!==ue.kind&&(v[U.name.value]=!0)}},Field:{enter:function(U){if(w&&U.directives&&w.some(function(ue){return ue.remove})&&U.directives&&U.directives.some(d(w)))return U.arguments&&U.arguments.forEach(function(ue){"Variable"===ue.value.kind&&h.push({name:ue.value.name.value})}),U.selectionSet&&H(U.selectionSet).forEach(function(ue){N.push({name:ue.name.value})}),null}},FragmentSpread:{enter:function(U){R[U.name.value]=!0}},Directive:{enter:function(U){if(d(w)(U))return null}}}));return P&&t(h,function(U){return!!U.name&&!v[U.name]}).length&&(P=function(w,u){var v=function(w){return function(v){return w.some(function(h){return v.value&&"Variable"===v.value.kind&&v.value.name&&(h.name===v.value.name.value||h.test&&h.test(v))})}}(w);return c((0,y.Vn)(u,{OperationDefinition:{enter:function(h){return(0,n.pi)((0,n.pi)({},h),{variableDefinitions:h.variableDefinitions?h.variableDefinitions.filter(function(R){return!w.some(function(N){return N.name===R.variable.name.value})}):[]})}},Field:{enter:function(h){if(w.some(function(P){return P.remove})){var N=0;if(h.arguments&&h.arguments.forEach(function(P){v(P)&&(N+=1)}),1===N)return null}}},Argument:{enter:function(h){if(v(h))return null}}}))}(h,P)),P&&t(N,function(U){return!!U.name&&!R[U.name]}).length&&(P=function(w,u){function v(h){if(w.some(function(R){return R.name===h.name.value}))return null}return c((0,y.Vn)(u,{FragmentSpread:{enter:v},FragmentDefinition:{enter:v}}))}(N,P)),P}function p(w){return(0,y.Vn)((0,e.A$)(w),{SelectionSet:{enter:function(u,v,h){if(!h||"OperationDefinition"!==h.kind){var R=u.selections;if(R&&!R.some(function(U){return(0,a.My)(U)&&("__typename"===U.name.value||0===U.name.value.lastIndexOf("__",0))})){var P=h;if(!((0,a.My)(P)&&P.directives&&P.directives.some(function(U){return"export"===U.name.value})))return(0,n.pi)((0,n.pi)({},u),{selections:(0,n.pr)(R,[r])})}}}}})}p.added=function(w){return w===r};var T={test:function(w){var u="connection"===w.name.value;return u&&(!w.arguments||w.arguments.some(function(v){return"key"===v.name.value})),u}};function S(w){return g([T],(0,e.A$)(w))}function H(w){var u=[];return w.selections.forEach(function(v){((0,a.My)(v)||(0,a.Ao)(v))&&v.selectionSet?H(v.selectionSet).forEach(function(h){return u.push(h)}):"FragmentSpread"===v.kind&&u.push(v)}),u}function B(w){return"query"===(0,e.p$)(w).operation?w:(0,y.Vn)(w,{OperationDefinition:{enter:function(R){return(0,n.pi)((0,n.pi)({},R),{operation:"query"})}}})}function m(w){(0,e.A$)(w);var u=g([{test:function(v){return"client"===v.name.value},remove:!0}],w);return u&&(u=(0,y.Vn)(u,{FragmentDefinition:{enter:function(v){if(v.selectionSet&&v.selectionSet.selections.every(function(R){return(0,a.My)(R)&&"__typename"===R.name.value}))return null}}})),u}},62954:(J,I,s)=>{"use strict";function n(y,l,e){var t=[];y.forEach(function(a){return a[l]&&t.push(a)}),t.forEach(function(a){return a[l](e)})}s.d(I,{p:()=>n})},1313:(J,I,s)=>{"use strict";s.d(I,{D:()=>l});var n=s(42677),y=s.n(n);function l(e){function t(a){Object.defineProperty(e,a,{value:y()})}return"function"==typeof Symbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},83403:(J,I,s)=>{"use strict";s.d(I,{g7:()=>o});var n=null,y={},l=1,t="@wry/context:Slot",a=Array,o=a[t]||function(){var S=function(){function S(){this.id=["slot",l++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return S.prototype.hasValue=function(){for(var b=n;b;b=b.parent)if(this.id in b.slots){var A=b.slots[this.id];if(A===y)break;return b!==n&&(n.slots[this.id]=A),!0}return n&&(n.slots[this.id]=y),!1},S.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},S.prototype.withValue=function(b,A,x,G){var W,H=((W={__proto__:null})[this.id]=b,W),B=n;n={parent:B,slots:H};try{return A.apply(G,x)}finally{n=B}},S.bind=function(b){var A=n;return function(){var x=n;try{return n=A,b.apply(this,arguments)}finally{n=x}}},S.noContext=function(b,A,x){if(!n)return b.apply(x,A);var G=n;try{return n=null,b.apply(x,A)}finally{n=G}},S}();try{Object.defineProperty(a,t,{value:a[t]=S,enumerable:!1,writable:!1,configurable:!1})}finally{return S}}()},38546:(J,I,s)=>{"use strict";s.d(I,{D:()=>a});var n=Object.prototype,y=n.toString,l=n.hasOwnProperty,e=Function.prototype.toString,t=new Map;function a(T,S){try{return o(T,S)}finally{t.clear()}}function o(T,S){if(T===S)return!0;var b=y.call(T);if(b!==y.call(S))return!1;switch(b){case"[object Array]":if(T.length!==S.length)return!1;case"[object Object]":if(g(T,S))return!0;var x=r(T),G=r(S),W=x.length;if(W!==G.length)return!1;for(var H=0;H<W;++H)if(!l.call(S,x[H]))return!1;for(H=0;H<W;++H){var B=x[H];if(!o(T[B],S[B]))return!1}return!0;case"[object Error]":return T.name===S.name&&T.message===S.message;case"[object Number]":if(T!=T)return S!=S;case"[object Boolean]":case"[object Date]":return+T==+S;case"[object RegExp]":case"[object String]":return T==""+S;case"[object Map]":case"[object Set]":if(T.size!==S.size)return!1;if(g(T,S))return!0;for(var m=T.entries(),w="[object Map]"===b;;){var u=m.next();if(u.done)break;var v=u.value,h=v[0],R=v[1];if(!S.has(h)||w&&!o(R,S.get(h)))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]":T=new Uint8Array(T),S=new Uint8Array(S);case"[object DataView]":var N=T.byteLength;if(N===S.byteLength)for(;N--&&T[N]===S[N];);return-1===N;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var P=e.call(T);return P===e.call(S)&&!function(T,S){var b=T.length-S.length;return b>=0&&T.indexOf(S,b)===b}(P,c)}return!1}function r(T){return Object.keys(T).filter(i,T)}function i(T){return void 0!==this[T]}var c="{ [native code] }";function g(T,S){var b=t.get(T);if(b){if(b.has(S))return!0}else t.set(T,b=new Set);return b.add(S),!1}},98007:(J,I,s)=>{"use strict";s.r(I),s.d(I,{addTypenameToDocument:()=>ht,argumentsObjectFromField:()=>Y,assign:()=>ge,buildQueryFromSelectionSet:()=>mt,canUseWeakMap:()=>yt,checkDocument:()=>_,cloneDeep:()=>Tt,createFragmentMap:()=>he,getDefaultValues:()=>ye,getDirectiveInfoFromField:()=>j,getDirectiveNames:()=>ne,getDirectivesFromDocument:()=>It,getEnv:()=>Pt,getFragmentDefinition:()=>ie,getFragmentDefinitions:()=>Se,getFragmentQueryDocument:()=>me,getInclusionDirectives:()=>be,getMainDefinition:()=>se,getMutationDefinition:()=>F,getOperationDefinition:()=>D,getOperationDefinitionOrDie:()=>X,getOperationName:()=>le,getQueryDefinition:()=>L,getStoreKeyName:()=>ee,graphQLResultHasError:()=>er,hasClientExports:()=>de,hasDirectives:()=>oe,isDevelopment:()=>Xt,isEnv:()=>Mt,isEqual:()=>x,isField:()=>k,isIdValue:()=>C,isInlineFragment:()=>K,isJsonValue:()=>O,isNumberValue:()=>m,isProduction:()=>ze,isScalarValue:()=>B,isTest:()=>jt,maybeDeepFreeze:()=>tr,mergeDeep:()=>fr,mergeDeepArray:()=>Vt,removeArgumentsFromDocument:()=>_t,removeClientSetsFromDocument:()=>wt,removeConnectionDirectiveFromDocument:()=>Ct,removeDirectivesFromDocument:()=>Be,removeFragmentSpreadFromDocument:()=>at,resultKeyNameFromField:()=>Q,shouldInclude:()=>q,storeKeyNameFromField:()=>V,stripSymbols:()=>hr,toIdValue:()=>f,tryFunctionOrLogError:()=>$t,valueFromNode:()=>M,valueToObjectRepresentation:()=>ue,variablesInOperation:()=>Oe,warnOnceInDevelopment:()=>lr});var $,n=s(86729),y=s(48399),l="Invariant Violation",e=Object.setPrototypeOf,t=void 0===e?function($,fe){return $.__proto__=fe,$}:e,a=function($){function fe(pe){void 0===pe&&(pe=l);var Ae=$.call(this,"number"==typeof pe?l+": "+pe+" (see https://github.com/apollographql/invariant-packages)":pe)||this;return Ae.framesToPop=1,Ae.name=l,t(Ae,fe.prototype),Ae}return(0,y.ZT)(fe,$),fe}(Error);function o($,fe){if(!$)throw new a(fe)}function r($){return function(){return console[$].apply(console,arguments)}}($=o||(o={})).warn=r("warn"),$.error=r("error");var i={env:{}};if("object"==typeof process)i=process;else try{Function("stub","process = stub")(i)}catch($){}var g=s(75616),p=s.n(g),T=Object.prototype,S=T.toString,b=T.hasOwnProperty,A=new Map;function x($,fe){try{return G($,fe)}finally{A.clear()}}function G($,fe){if($===fe)return!0;var pe=S.call($);if(pe!==S.call(fe))return!1;switch(pe){case"[object Array]":if($.length!==fe.length)return!1;case"[object Object]":if(W($,fe))return!0;var Re=Object.keys($),ke=Object.keys(fe),Ge=Re.length;if(Ge!==ke.length)return!1;for(var je=0;je<Ge;++je)if(!b.call(fe,Re[je]))return!1;for(je=0;je<Ge;++je){var ot=Re[je];if(!G($[ot],fe[ot]))return!1}return!0;case"[object Error]":return $.name===fe.name&&$.message===fe.message;case"[object Number]":if($!=$)return fe!=fe;case"[object Boolean]":case"[object Date]":return+$==+fe;case"[object RegExp]":case"[object String]":return $==""+fe;case"[object Map]":case"[object Set]":if($.size!==fe.size)return!1;if(W($,fe))return!0;for(var pt=$.entries(),nr="[object Map]"===pe;;){var ir=pt.next();if(ir.done)break;var Kt=ir.value,ar=Kt[0],pr=Kt[1];if(!fe.has(ar)||nr&&!G(pr,fe.get(ar)))return!1}return!0}return!1}function W($,fe){var pe=A.get($);if(pe){if(pe.has(fe))return!0}else A.set($,pe=new Set);return pe.add(fe),!1}function B($){return["StringValue","BooleanValue","EnumValue"].indexOf($.kind)>-1}function m($){return["IntValue","FloatValue"].indexOf($.kind)>-1}function ue($,fe,pe,Ae){if(function($){return"IntValue"===$.kind}(pe)||function($){return"FloatValue"===$.kind}(pe))$[fe.value]=Number(pe.value);else if(function($){return"BooleanValue"===$.kind}(pe)||function($){return"StringValue"===$.kind}(pe))$[fe.value]=pe.value;else if(function($){return"ObjectValue"===$.kind}(pe)){var Re={};pe.fields.map(function(Ge){return ue(Re,Ge.name,Ge.value,Ae)}),$[fe.value]=Re}else if(function($){return"Variable"===$.kind}(pe))$[fe.value]=(Ae||{})[pe.name.value];else if(function($){return"ListValue"===$.kind}(pe))$[fe.value]=pe.values.map(function(Ge){var je={};return ue(je,fe,Ge,Ae),je[fe.value]});else if(function($){return"EnumValue"===$.kind}(pe))$[fe.value]=pe.value;else{if(!function($){return"NullValue"===$.kind}(pe))throw new a(17);$[fe.value]=null}}function V($,fe){var pe=null;$.directives&&(pe={},$.directives.forEach(function(Re){pe[Re.name.value]={},Re.arguments&&Re.arguments.forEach(function(ke){return ue(pe[Re.name.value],ke.name,ke.value,fe)})}));var Ae=null;return $.arguments&&$.arguments.length&&(Ae={},$.arguments.forEach(function(Re){return ue(Ae,Re.name,Re.value,fe)})),ee($.name.value,Ae,pe)}var re=["connection","include","skip","client","rest","export"];function ee($,fe,pe){if(pe&&pe.connection&&pe.connection.key){if(pe.connection.filter&&pe.connection.filter.length>0){var Ae=pe.connection.filter?pe.connection.filter:[];Ae.sort();var Re=fe,ke={};return Ae.forEach(function(ot){ke[ot]=Re[ot]}),pe.connection.key+"("+JSON.stringify(ke)+")"}return pe.connection.key}var Ge=$;if(fe){var je=p()(fe);Ge+="("+je+")"}return pe&&Object.keys(pe).forEach(function(ot){-1===re.indexOf(ot)&&(pe[ot]&&Object.keys(pe[ot]).length?Ge+="@"+ot+"("+JSON.stringify(pe[ot])+")":Ge+="@"+ot)}),Ge}function Y($,fe){if($.arguments&&$.arguments.length){var pe={};return $.arguments.forEach(function(Ae){return ue(pe,Ae.name,Ae.value,fe)}),pe}return null}function Q($){return $.alias?$.alias.value:$.name.value}function k($){return"Field"===$.kind}function K($){return"InlineFragment"===$.kind}function C($){return $&&"id"===$.type&&"boolean"==typeof $.generated}function f($,fe){return void 0===fe&&(fe=!1),(0,y.pi)({type:"id",generated:fe},"string"==typeof $?{id:$,typename:void 0}:$)}function O($){return null!=$&&"object"==typeof $&&"json"===$.type}function E($){throw new a(18)}function M($,fe){switch(void 0===fe&&(fe=E),$.kind){case"Variable":return fe($);case"NullValue":return null;case"IntValue":return parseInt($.value,10);case"FloatValue":return parseFloat($.value);case"ListValue":return $.values.map(function(Ge){return M(Ge,fe)});case"ObjectValue":for(var pe={},Ae=0,Re=$.fields;Ae<Re.length;Ae++){var ke=Re[Ae];pe[ke.name.value]=M(ke.value,fe)}return pe;default:return $.value}}function j($,fe){if($.directives&&$.directives.length){var pe={};return $.directives.forEach(function(Ae){pe[Ae.name.value]=Y(Ae,fe)}),pe}return null}function q($,fe){return void 0===fe&&(fe={}),be($.directives).every(function(pe){var Ae=pe.directive,Re=pe.ifArgument,ke=!1;return"Variable"===Re.value.kind?o(void 0!==(ke=fe[Re.value.name.value]),13):ke=Re.value.value,"skip"===Ae.name.value?!ke:ke})}function ne($){var fe=[];return(0,n.Vn)($,{Directive:function(pe){fe.push(pe.name.value)}}),fe}function oe($,fe){return ne(fe).some(function(pe){return $.indexOf(pe)>-1})}function de($){return $&&oe(["client"],$)&&oe(["export"],$)}function ve($){var fe=$.name.value;return"skip"===fe||"include"===fe}function be($){return $?$.filter(ve).map(function(fe){var pe=fe.arguments;o(pe&&1===pe.length,14);var Re=pe[0];o(Re.name&&"if"===Re.name.value,15);var ke=Re.value;return o(ke&&("Variable"===ke.kind||"BooleanValue"===ke.kind),16),{directive:fe,ifArgument:Re}}):[]}function me($,fe){var pe=fe,Ae=[];return $.definitions.forEach(function(ke){if("OperationDefinition"===ke.kind)throw new a(11);"FragmentDefinition"===ke.kind&&Ae.push(ke)}),void 0===pe&&(o(1===Ae.length,12),pe=Ae[0].name.value),(0,y.pi)((0,y.pi)({},$),{definitions:(0,y.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:pe}}]}}],$.definitions)})}function ge($){for(var fe=[],pe=1;pe<arguments.length;pe++)fe[pe-1]=arguments[pe];return fe.forEach(function(Ae){null==Ae||Object.keys(Ae).forEach(function(Re){$[Re]=Ae[Re]})}),$}function F($){_($);var fe=$.definitions.filter(function(pe){return"OperationDefinition"===pe.kind&&"mutation"===pe.operation})[0];return o(fe,1),fe}function _($){return o($&&"Document"===$.kind,2),o($.definitions.filter(function(pe){return"FragmentDefinition"!==pe.kind}).map(function(pe){if("OperationDefinition"!==pe.kind)throw new a(3);return pe}).length<=1,4),$}function D($){return _($),$.definitions.filter(function(fe){return"OperationDefinition"===fe.kind})[0]}function X($){var fe=D($);return o(fe,5),fe}function le($){return $.definitions.filter(function(fe){return"OperationDefinition"===fe.kind&&fe.name}).map(function(fe){return fe.name.value})[0]||null}function Se($){return $.definitions.filter(function(fe){return"FragmentDefinition"===fe.kind})}function L($){var fe=D($);return o(fe&&"query"===fe.operation,6),fe}function ie($){o("Document"===$.kind,7),o($.definitions.length<=1,8);var fe=$.definitions[0];return o("FragmentDefinition"===fe.kind,9),fe}function se($){_($);for(var fe,pe=0,Ae=$.definitions;pe<Ae.length;pe++){var Re=Ae[pe];if("OperationDefinition"===Re.kind){var ke=Re.operation;if("query"===ke||"mutation"===ke||"subscription"===ke)return Re}"FragmentDefinition"===Re.kind&&!fe&&(fe=Re)}if(fe)return fe;throw new a(10)}function he($){void 0===$&&($=[]);var fe={};return $.forEach(function(pe){fe[pe.name.value]=pe}),fe}function ye($){if($&&$.variableDefinitions&&$.variableDefinitions.length){var fe=$.variableDefinitions.filter(function(pe){return pe.defaultValue}).map(function(pe){var ke={};return ue(ke,pe.variable.name,pe.defaultValue),ke});return ge.apply(void 0,(0,y.pr)([{}],fe))}return{}}function Oe($){var fe=new Set;if($.variableDefinitions)for(var pe=0,Ae=$.variableDefinitions;pe<Ae.length;pe++)fe.add(Ae[pe].variable.name.value);return fe}function Le($,fe,pe){var Ae=0;return $.forEach(function(Re,ke){fe.call(this,Re,ke,$)&&($[Ae++]=Re)},pe),$.length=Ae,$}var We={kind:"Field",name:{kind:"Name",value:"__typename"}};function qe($,fe){return $.selectionSet.selections.every(function(pe){return"FragmentSpread"===pe.kind&&qe(fe[pe.name.value],fe)})}function st($){return qe(D($)||ie($),he(Se($)))?null:$}function et($){return function(pe){return $.some(function(Ae){return Ae.name&&Ae.name===pe.name.value||Ae.test&&Ae.test(pe)})}}function Be($,fe){var pe=Object.create(null),Ae=[],Re=Object.create(null),ke=[],Ge=st((0,n.Vn)(fe,{Variable:{enter:function(je,ot,pt){"VariableDefinition"!==pt.kind&&(pe[je.name.value]=!0)}},Field:{enter:function(je){if($&&je.directives&&$.some(function(pt){return pt.remove})&&je.directives&&je.directives.some(et($)))return je.arguments&&je.arguments.forEach(function(pt){"Variable"===pt.value.kind&&Ae.push({name:pt.value.name.value})}),je.selectionSet&&$e(je.selectionSet).forEach(function(pt){ke.push({name:pt.name.value})}),null}},FragmentSpread:{enter:function(je){Re[je.name.value]=!0}},Directive:{enter:function(je){if(et($)(je))return null}}}));return Ge&&Le(Ae,function(je){return!pe[je.name]}).length&&(Ge=_t(Ae,Ge)),Ge&&Le(ke,function(je){return!Re[je.name]}).length&&(Ge=at(ke,Ge)),Ge}function ht($){return(0,n.Vn)(_($),{SelectionSet:{enter:function(fe,pe,Ae){if(!Ae||"OperationDefinition"!==Ae.kind){var Re=fe.selections;if(Re&&!Re.some(function(je){return k(je)&&("__typename"===je.name.value||0===je.name.value.lastIndexOf("__",0))})){var Ge=Ae;if(!(k(Ge)&&Ge.directives&&Ge.directives.some(function(je){return"export"===je.name.value})))return(0,y.pi)((0,y.pi)({},fe),{selections:(0,y.pr)(Re,[We])})}}}}})}var Bt={test:function($){var fe="connection"===$.name.value;return fe&&(!$.arguments||$.arguments.some(function(pe){return"key"===pe.name.value})),fe}};function Ct($){return Be([Bt],_($))}function At($,fe,pe){return void 0===pe&&(pe=!0),fe&&fe.selections&&fe.selections.some(function(Ae){return Ot($,Ae,pe)})}function Ot($,fe,pe){return void 0===pe&&(pe=!0),!k(fe)||!!fe.directives&&(fe.directives.some(et($))||pe&&At($,fe.selectionSet,pe))}function It($,fe){var pe;return _(fe),st((0,n.Vn)(fe,{SelectionSet:{enter:function(Ae,Re,ke,Ge){var je=Ge.join("-");if(!pe||je===pe||!je.startsWith(pe)){if(Ae.selections){var ot=Ae.selections.filter(function(pt){return Ot($,pt)});return At($,Ae,!1)&&(pe=je),(0,y.pi)((0,y.pi)({},Ae),{selections:ot})}return null}}}}))}function _t($,fe){var pe=function($){return function(pe){return $.some(function(Ae){return pe.value&&"Variable"===pe.value.kind&&pe.value.name&&(Ae.name===pe.value.name.value||Ae.test&&Ae.test(pe))})}}($);return st((0,n.Vn)(fe,{OperationDefinition:{enter:function(Ae){return(0,y.pi)((0,y.pi)({},Ae),{variableDefinitions:Ae.variableDefinitions.filter(function(Re){return!$.some(function(ke){return ke.name===Re.variable.name.value})})})}},Field:{enter:function(Ae){if($.some(function(Ge){return Ge.remove})){var ke=0;if(Ae.arguments.forEach(function(Ge){pe(Ge)&&(ke+=1)}),1===ke)return null}}},Argument:{enter:function(Ae){if(pe(Ae))return null}}}))}function at($,fe){function pe(Ae){if($.some(function(Re){return Re.name===Ae.name.value}))return null}return st((0,n.Vn)(fe,{FragmentSpread:{enter:pe},FragmentDefinition:{enter:pe}}))}function $e($){var fe=[];return $.selections.forEach(function(pe){(k(pe)||K(pe))&&pe.selectionSet?$e(pe.selectionSet).forEach(function(Ae){return fe.push(Ae)}):"FragmentSpread"===pe.kind&&fe.push(pe)}),fe}function mt($){return"query"===se($).operation?$:(0,n.Vn)($,{OperationDefinition:{enter:function(Re){return(0,y.pi)((0,y.pi)({},Re),{operation:"query"})}}})}function wt($){_($);var fe=Be([{test:function(pe){return"client"===pe.name.value},remove:!0}],$);return fe&&(fe=(0,n.Vn)(fe,{FragmentDefinition:{enter:function(pe){if(pe.selectionSet&&pe.selectionSet.selections.every(function(Re){return k(Re)&&"__typename"===Re.name.value}))return null}}})),fe}var yt="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Dt=Object.prototype.toString;function Tt($){return dt($,new Map)}function dt($,fe){switch(Dt.call($)){case"[object Array]":if(fe.has($))return fe.get($);var pe=$.slice(0);return fe.set($,pe),pe.forEach(function(Re,ke){pe[ke]=dt(Re,fe)}),pe;case"[object Object]":if(fe.has($))return fe.get($);var Ae=Object.create(Object.getPrototypeOf($));return fe.set($,Ae),Object.keys($).forEach(function(Re){Ae[Re]=dt($[Re],fe)}),Ae;default:return $}}function Pt(){return"undefined"!=typeof process?"production":"development"}function Mt($){return Pt()===$}function ze(){return!0===Mt("production")}function Xt(){return!0===Mt("development")}function jt(){return!0===Mt("test")}function $t($){try{return $()}catch(fe){console.error&&console.error(fe)}}function er($){return $.errors&&$.errors.length}function Nt($){return Object.freeze($),Object.getOwnPropertyNames($).forEach(function(fe){null!==$[fe]&&("object"==typeof $[fe]||"function"==typeof $[fe])&&!Object.isFrozen($[fe])&&Nt($[fe])}),$}function tr($){return!Xt()&&!jt()||"function"==typeof Symbol&&"string"==typeof Symbol("")?$:Nt($)}var gt=Object.prototype.hasOwnProperty;function fr(){for(var $=[],fe=0;fe<arguments.length;fe++)$[fe]=arguments[fe];return Vt($)}function Vt($){var fe=$[0]||{},pe=$.length;if(pe>1){var Ae=[];fe=Ut(fe,Ae);for(var Re=1;Re<pe;++Re)fe=Wt(fe,$[Re],Ae)}return fe}function rr($){return null!==$&&"object"==typeof $}function Wt($,fe,pe){return rr(fe)&&rr($)?(Object.isExtensible&&!Object.isExtensible($)&&($=Ut($,pe)),Object.keys(fe).forEach(function(Ae){var Re=fe[Ae];if(gt.call($,Ae)){var ke=$[Ae];Re!==ke&&($[Ae]=Wt(Ut(ke,pe),Re,pe))}else $[Ae]=Re}),$):fe}function Ut($,fe){return null!==$&&"object"==typeof $&&fe.indexOf($)<0&&($=Array.isArray($)?$.slice(0):(0,y.pi)({__proto__:Object.getPrototypeOf($)},$),fe.push($)),$}var tt=Object.create({});function lr($,fe){void 0===fe&&(fe="warn"),!ze()&&!tt[$]&&(jt()||(tt[$]=!0),"error"===fe?console.error($):console.warn($))}function hr($){return JSON.parse(JSON.stringify($))}},83280:function(J,I,s){"use strict";var x,n=this&&this.__extends||(x=function(G,W){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,B){H.__proto__=B}||function(H,B){for(var m in B)B.hasOwnProperty(m)&&(H[m]=B[m])})(G,W)},function(G,W){function H(){this.constructor=G}x(G,W),G.prototype=null===W?Object.create(W):(H.prototype=W.prototype,new H)}),y=this&&this.__assign||function(){return(y=Object.assign||function(x){for(var G,W=1,H=arguments.length;W<H;W++)for(var B in G=arguments[W])Object.prototype.hasOwnProperty.call(G,B)&&(x[B]=G[B]);return x}).apply(this,arguments)},l=this&&this.__awaiter||function(x,G,W,H){return new(W||(W=Promise))(function(m,w){function u(R){try{h(H.next(R))}catch(N){w(N)}}function v(R){try{h(H.throw(R))}catch(N){w(N)}}function h(R){R.done?m(R.value):function(m){return m instanceof W?m:new W(function(w){w(m)})}(R.value).then(u,v)}h((H=H.apply(x,G||[])).next())})},e=this&&this.__generator||function(x,G){var H,B,m,w,W={label:0,sent:function(){if(1&m[0])throw m[1];return m[1]},trys:[],ops:[]};return w={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function u(h){return function(R){return function(h){if(H)throw new TypeError("Generator is already executing.");for(;W;)try{if(H=1,B&&(m=2&h[0]?B.return:h[0]?B.throw||((m=B.return)&&m.call(B),0):B.next)&&!(m=m.call(B,h[1])).done)return m;switch(B=0,m&&(h=[2&h[0],m.value]),h[0]){case 0:case 1:m=h;break;case 4:return W.label++,{value:h[1],done:!1};case 5:W.label++,B=h[1],h=[0];continue;case 7:h=W.ops.pop(),W.trys.pop();continue;default:if(!(m=(m=W.trys).length>0&&m[m.length-1])&&(6===h[0]||2===h[0])){W=0;continue}if(3===h[0]&&(!m||h[1]>m[0]&&h[1]<m[3])){W.label=h[1];break}if(6===h[0]&&W.label<m[1]){W.label=m[1],m=h;break}if(m&&W.label<m[2]){W.label=m[2],W.ops.push(h);break}m[2]&&W.ops.pop(),W.trys.pop();continue}h=G.call(x,W)}catch(R){h=[6,R],B=0}finally{H=m=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([h,R])}}};Object.defineProperty(I,"__esModule",{value:!0});var g,t=s(43821),a=s(71352),o=s(9585),r=s(53408),i=s(85058),c=s(44226);I.USER_AGENT_HEADER="x-amz-user-agent",I.USER_AGENT="aws-amplify/"+c.version+(i.userAgent&&" ")+i.userAgent,function(x){x.NONE="NONE",x.API_KEY="API_KEY",x.AWS_IAM="AWS_IAM",x.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",x.OPENID_CONNECT="OPENID_CONNECT"}(g=I.AUTH_TYPE||(I.AUTH_TYPE={}));var p=function(x){function G(W){var H=x.call(this)||this;return H.link=I.authLink(W),H}return n(G,x),G.prototype.request=function(W,H){return this.link.request(W,H)},G}(t.ApolloLink);I.AuthLink=p;var T=function(x,G,W){var H=void 0===x?{header:"",value:""}:x,B=H.header,m=H.value;return l(void 0,void 0,void 0,function(){var w,u,h,R,N;return e(this,function(P){switch(P.label){case 0:return w=G.getContext(),u=y(y({},w.headers),((R={})[I.USER_AGENT_HEADER]=I.USER_AGENT,R)),B&&m?"function"!=typeof m?[3,2]:[4,m.call(void 0)]:[3,5];case 1:return h=P.sent(),[3,4];case 2:return[4,m];case 3:h=P.sent(),P.label=4;case 4:u=y(((N={})[B]=h,N),u),P.label=5;case 5:return G.setContext(y(y({},w),{headers:u})),[2,W(G)]}})})};I.authLink=function(x){var G=x.url,W=x.region,H=x.auth,B=(void 0===H?{}:H).type,m=x.auth;return new t.ApolloLink(function(w,u){return new t.Observable(function(v){var h,R;switch(B){case g.NONE:R=T(void 0,w,u);break;case g.AWS_IAM:var N=m.credentials;R=function(x,G,W){var H=x.credentials,B=x.region,m=x.url;return l(void 0,void 0,void 0,function(){var w,u,v,h,R,N,P,U,Z,ue,V,re,ee;return e(this,function(Y){switch(Y.label){case 0:return w="appsync",u=G.getContext(),(v="function"==typeof H?H.call():H||{})&&"function"==typeof v.getPromise?[4,v.getPromise()]:[3,2];case 1:Y.sent(),Y.label=2;case 2:return[4,v];case 3:return h=Y.sent(),R=h.accessKeyId,N=h.secretAccessKey,P=h.sessionToken,U=r.parse(m),Z=U.host,ue=U.path,V=y(y({},b(G,{})),{service:w,region:B,url:m,host:Z,path:ue}),re=o.Signer.sign(V,{access_key:R,secret_key:N,session_token:P}).headers,G.setContext(y(y({},u),{headers:y(y(y({},u.headers),re),(ee={},ee[I.USER_AGENT_HEADER]=I.USER_AGENT,ee))})),[2,W(G)]}})})}({credentials:void 0===N?{}:N,region:W,url:G},w,u);break;case g.API_KEY:var U=m.apiKey;R=T({header:"X-Api-Key",value:void 0===U?"":U},w,u);break;case g.AMAZON_COGNITO_USER_POOLS:case g.OPENID_CONNECT:var ue=m.jwtToken;R=T({header:"Authorization",value:void 0===ue?"":ue},w,u);break;default:throw new Error("Invalid AUTH_TYPE: "+m.type)}return R.then(function(ee){h=ee.subscribe({next:v.next.bind(v),error:v.error.bind(v),complete:v.complete.bind(v)})}),function(){h&&h.unsubscribe()}})})};var b=function(x,G){var B=x.query,m={operationName:x.operationName,variables:A(x.variables),query:a.print(B)};return y(y({body:JSON.stringify(m),method:"POST"},G),{headers:y({accept:"*/*","content-type":"application/json; charset=UTF-8"},G.headers)})},A=function(x){return Object.keys(x).filter(function(G){return!G.startsWith("@@")}).reduce(function(G,W){return G[W]=x[W],G},{})}},11984:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var n=s(83280);I.AuthLink=n.AuthLink,I.AUTH_TYPE=n.AUTH_TYPE,I.USER_AGENT_HEADER=n.USER_AGENT_HEADER,I.USER_AGENT=n.USER_AGENT,I.createAuthLink=function(l){return new n.AuthLink({url:l.url,region:l.region,auth:l.auth})};var y=s(9585);I.Signer=y.Signer},85058:(J,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.userAgent=""},9585:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),function(y){for(var l in y)I.hasOwnProperty(l)||(I[l]=y[l])}(s(10365))},10365:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),global.Buffer=global.Buffer||s(2341).lW;var n=s(53408),y=s(18426).util.crypto,l=function(b,A,x){return void 0===x&&(x=""),y.lib.createHmac("sha256",b).update(A,"utf8").digest(x)},e=function(b){return b=b||"",y.createHash("sha256").update(b,"utf8").digest("hex")},t=function(b){return b&&0!==Object.keys(b).length?Object.keys(b).map(function(A){return{key:A.toLowerCase(),value:b[A]?b[A].trim().replace(/\s+/g," "):""}}).sort(function(A,x){return A.key<x.key?-1:1}).map(function(A){return A.key+":"+A.value}).join("\n")+"\n":""},a=function(b){return Object.keys(b).map(function(A){return A.toLowerCase()}).sort().join(";")},T=function(b,A,x){void 0===x&&(x=null),b.headers=b.headers||{};var W=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),H=W.substr(0,8),B="AWS4-HMAC-SHA256",m=n.parse(b.url);b.headers.host=m.host,b.headers["x-amz-date"]=W,A.session_token&&(b.headers["X-Amz-Security-Token"]=A.session_token);var w=function(b){var A=n.parse(b.url);return[b.method||"/",A.path,A.query,t(b.headers),a(b.headers),e(b.body)].join("\n")}(b),u=function(b,A,x){return[b,A,x,"aws4_request"].join("/")}(H,(x=x||function(b){var W=(n.parse(b.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===W[1]&&(W=W.reverse()),{service:b.service||W[0],region:b.region||W[1]}}(b)).region,x.service),v=function(b,A,x,G){return[b,x,G,e(A)].join("\n")}(B,w,W,u),R=function(b,A){return l(b,A,"hex")}(function(b,A,x){void 0===b&&(b="");var W=l("AWS4"+b,A),H=l(W,x.region),B=l(H,x.service);return l(B,"aws4_request")}(A.secret_key,H,x),v),N=function(b,A,x,G,W){return void 0===A&&(A=""),["AWS4-HMAC-SHA256 Credential="+A+"/"+x,"SignedHeaders="+G,"Signature="+W].join(", ")}(0,A.access_key,u,a(b.headers),R);return b.headers.Authorization=N,b},S=function(){function b(){}return b.sign=T,b}();I.Signer=S,I.default=S},37490:function(J,I,s){"use strict";var n=this&&this.__rest||function(r,i){var c={};for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&i.indexOf(d)<0&&(c[d]=r[d]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var g=0;for(d=Object.getOwnPropertySymbols(r);g<d.length;g++)i.indexOf(d[g])<0&&Object.prototype.propertyIsEnumerable.call(r,d[g])&&(c[d[g]]=r[d[g]])}return c};Object.defineProperty(I,"__esModule",{value:!0});var y=s(45597);I.CONTROL_EVENTS_KEY=y.CONTROL_EVENTS_KEY;var l=s(43821),e=s(98007),t=s(71797),a=s(34003);I.createSubscriptionHandshakeLink=function(r,i){var c,d;return"string"==typeof r?(c=i||l.createHttpLink({uri:r}),d=l.ApolloLink.from([new t.NonTerminatingLink("controlMessages",{link:new l.ApolloLink(function(p,T){return new l.Observable(function(S){var b,A=p.variables,x=y.CONTROL_EVENTS_KEY,G=A[x],W=n(A,["symbol"==typeof x?x:x+""]);return void 0!==G&&(p.variables=W),S.next(((b={})[y.CONTROL_EVENTS_KEY]=G,b)),function(){}})})}),new t.NonTerminatingLink("subsInfo",{link:c}),new y.SubscriptionHandshakeLink("subsInfo")])):(c=i||l.createHttpLink({uri:r.url}),d=new a.AppSyncRealTimeSubscriptionHandshakeLink(r)),l.ApolloLink.split(function(p){var S=e.getMainDefinition(p.query);return"OperationDefinition"===S.kind&&"subscription"===S.operation},d,c)}},71797:function(J,I,s){"use strict";var r,n=this&&this.__extends||(r=function(i,c){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,g){d.__proto__=g}||function(d,g){for(var p in g)g.hasOwnProperty(p)&&(d[p]=g[p])})(i,c)},function(i,c){function d(){this.constructor=i}r(i,c),i.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}),y=this&&this.__assign||function(){return(y=Object.assign||function(r){for(var i,c=1,d=arguments.length;c<d;c++)for(var g in i=arguments[c])Object.prototype.hasOwnProperty.call(i,g)&&(r[g]=i[g]);return r}).apply(this,arguments)},l=this&&this.__awaiter||function(r,i,c,d){return new(c||(c=Promise))(function(p,T){function S(x){try{A(d.next(x))}catch(G){T(G)}}function b(x){try{A(d.throw(x))}catch(G){T(G)}}function A(x){x.done?p(x.value):function(p){return p instanceof c?p:new c(function(T){T(p)})}(x.value).then(S,b)}A((d=d.apply(r,i||[])).next())})},e=this&&this.__generator||function(r,i){var d,g,p,T,c={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return T={next:S(0),throw:S(1),return:S(2)},"function"==typeof Symbol&&(T[Symbol.iterator]=function(){return this}),T;function S(A){return function(x){return function(A){if(d)throw new TypeError("Generator is already executing.");for(;c;)try{if(d=1,g&&(p=2&A[0]?g.return:A[0]?g.throw||((p=g.return)&&p.call(g),0):g.next)&&!(p=p.call(g,A[1])).done)return p;switch(g=0,p&&(A=[2&A[0],p.value]),A[0]){case 0:case 1:p=A;break;case 4:return c.label++,{value:A[1],done:!1};case 5:c.label++,g=A[1],A=[0];continue;case 7:A=c.ops.pop(),c.trys.pop();continue;default:if(!(p=(p=c.trys).length>0&&p[p.length-1])&&(6===A[0]||2===A[0])){c=0;continue}if(3===A[0]&&(!p||A[1]>p[0]&&A[1]<p[3])){c.label=A[1];break}if(6===A[0]&&c.label<p[1]){c.label=p[1],p=A;break}if(p&&c.label<p[2]){c.label=p[2],c.ops.push(A);break}p[2]&&c.ops.pop(),c.trys.pop();continue}A=i.call(r,c)}catch(x){A=[6,x],g=0}finally{d=p=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,x])}}};Object.defineProperty(I,"__esModule",{value:!0});var t=s(43821),a=s(42753),o=function(r){function i(c,d){var g=d.link,p=r.call(this)||this;return p.contextKey=c,p.link=g,p}return n(i,r),i.prototype.request=function(c,d){var g=this;return a.setContext(function(p,T){return l(g,void 0,void 0,function(){var S,b,A=this;return e(this,function(x){switch(x.label){case 0:return[4,new Promise(function(G,W){A.link.request(c).subscribe({next:G,error:W})})];case 1:return S=x.sent(),[2,y(y({},T),(b={},b[this.contextKey]=S,b))]}})})}).request(c,d)},i}(t.ApolloLink);I.NonTerminatingLink=o},34003:function(J,I,s){"use strict";var H,n=this&&this.__extends||(H=function(B,m){return(H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,u){w.__proto__=u}||function(w,u){for(var v in u)u.hasOwnProperty(v)&&(w[v]=u[v])})(B,m)},function(B,m){function w(){this.constructor=B}H(B,m),B.prototype=null===m?Object.create(m):(w.prototype=m.prototype,new w)}),y=this&&this.__assign||function(){return(y=Object.assign||function(H){for(var B,m=1,w=arguments.length;m<w;m++)for(var u in B=arguments[m])Object.prototype.hasOwnProperty.call(B,u)&&(H[u]=B[u]);return H}).apply(this,arguments)},l=this&&this.__awaiter||function(H,B,m,w){return new(m||(m=Promise))(function(v,h){function R(U){try{P(w.next(U))}catch(Z){h(Z)}}function N(U){try{P(w.throw(U))}catch(Z){h(Z)}}function P(U){U.done?v(U.value):function(v){return v instanceof m?v:new m(function(h){h(v)})}(U.value).then(R,N)}P((w=w.apply(H,B||[])).next())})},e=this&&this.__generator||function(H,B){var w,u,v,h,m={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return h={next:R(0),throw:R(1),return:R(2)},"function"==typeof Symbol&&(h[Symbol.iterator]=function(){return this}),h;function R(P){return function(U){return function(P){if(w)throw new TypeError("Generator is already executing.");for(;m;)try{if(w=1,u&&(v=2&P[0]?u.return:P[0]?u.throw||((v=u.return)&&v.call(u),0):u.next)&&!(v=v.call(u,P[1])).done)return v;switch(u=0,v&&(P=[2&P[0],v.value]),P[0]){case 0:case 1:v=P;break;case 4:return m.label++,{value:P[1],done:!1};case 5:m.label++,u=P[1],P=[0];continue;case 7:P=m.ops.pop(),m.trys.pop();continue;default:if(!(v=(v=m.trys).length>0&&v[v.length-1])&&(6===P[0]||2===P[0])){m=0;continue}if(3===P[0]&&(!v||P[1]>v[0]&&P[1]<v[3])){m.label=P[1];break}if(6===P[0]&&m.label<v[1]){m.label=v[1],v=P;break}if(v&&m.label<v[2]){m.label=v[2],m.ops.push(P);break}v[2]&&m.ops.pop(),m.trys.pop();continue}P=B.call(H,m)}catch(U){P=[6,U],u=0}finally{w=v=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([P,U])}}};Object.defineProperty(I,"__esModule",{value:!0});var t=s(43821),a=s(94464),o=s(11984),r=s(63262),i=s(53408),c=s(86347),d=s(60103),g=s(89256),p=a.rootLogger.extend("subscriptions");I.CONTROL_EVENTS_KEY="@@controlEvents";var T=[400,401,403],b={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},G=3e5,W=function(H){function B(m){var w=m.url,u=m.region,v=m.auth,h=H.call(this)||this;return h.socketStatus=d.SOCKET_STATUS.CLOSED,h.keepAliveTimeout=G,h.subscriptionObserverMap=new Map,h.promiseArray=[],h.url=w,h.region=u,h.auth=v,h}return n(B,H),B.prototype.request=function(m){var w,u=this,v=m.query,h=m.variables,R=m.getContext(),N=R.controlMessages,P=I.CONTROL_EVENTS_KEY,U=(void 0===N?(w={},w[I.CONTROL_EVENTS_KEY]=void 0,w):N)[P],Z=R.headers;return new t.Observable(function(ue){if(u.url){var V=c.v4(),re={appSyncGraphqlEndpoint:u.url,authenticationType:u.auth.type,query:r.print(v),region:u.region,graphql_headers:function(){return Z},variables:h,apiKey:u.auth.type===o.AUTH_TYPE.API_KEY?u.auth.apiKey:"",credentials:u.auth.type===o.AUTH_TYPE.AWS_IAM?u.auth.credentials:null,jwtToken:u.auth.type===o.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||u.auth.type===o.AUTH_TYPE.OPENID_CONNECT?u.auth.jwtToken:null};return u._startSubscriptionWithAWSAppSyncRealTime({options:re,observer:ue,subscriptionId:V}),function(){return l(u,void 0,void 0,function(){return e(this,function(Y){try{if(this._verifySubscriptionAlreadyStarted(V),this.subscriptionObserverMap.get(V).subscriptionState!==d.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(V)}catch(Q){return this._removeSubscriptionObserver(V),[2]}return[2]})})}}ue.error({errors:[y({},new r.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),ue.complete()}).filter(function(ue){var V=ue.extensions,re=(void 0===V?{}:V).controlMsgType;return!0===U||!(void 0!==(void 0===re?void 0:re))})},B.prototype._verifySubscriptionAlreadyStarted=function(m){return l(this,void 0,void 0,function(){var u=this;return e(this,function(v){return this.subscriptionObserverMap.get(m).subscriptionState===d.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(h,R){var N=u.subscriptionObserverMap.get(m);u.subscriptionObserverMap.set(m,{observer:N.observer,subscriptionState:N.subscriptionState,variables:N.variables,query:N.query,subscriptionReadyCallback:h,subscriptionFailedCallback:R})})]:[2]})})},B.prototype._sendUnsubscriptionMessage=function(m){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===d.SOCKET_STATUS.READY){var u=JSON.stringify({id:m,type:d.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(u),this._removeSubscriptionObserver(m)}}catch(v){p({err:v})}},B.prototype._removeSubscriptionObserver=function(m){this.subscriptionObserverMap.delete(m),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},B.prototype._closeSocketWhenFlushed=function(){p("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId),this.awsRealTimeSocket?this.awsRealTimeSocket.bufferedAmount>0?setTimeout(this._closeSocketWhenFlushed.bind(this),1e3):(this.awsRealTimeSocket.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED):this.socketStatus=d.SOCKET_STATUS.CLOSED},B.prototype._startSubscriptionWithAWSAppSyncRealTime=function(m){var w=m.options,u=m.observer,v=m.subscriptionId;return l(this,void 0,void 0,function(){var h,R,N,P,U,Z,ue,V,re,ee,Y,Q,k,K,C,f,O,E,M,j,ne,oe,be,me=this;return e(this,function(ge){switch(ge.label){case 0:return h=w.appSyncGraphqlEndpoint,R=w.authenticationType,U=w.apiKey,Z=w.region,V=void 0===(ue=w.graphql_headers)?function(){return{}}:ue,re=w.credentials,ee=w.jwtToken,Q={query:N=w.query,variables:P=w.variables},this.subscriptionObserverMap.set(v,{observer:u,query:N,variables:P,subscriptionState:Y=d.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),k=JSON.stringify(Q),C=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:U,appSyncGraphqlEndpoint:h,authenticationType:R,payload:k,canonicalUri:"",region:Z,credentials:re,jwtToken:ee})];case 1:return f=[y.apply(void 0,C.concat([ge.sent()]))],[4,V()];case 2:K=y.apply(void 0,[y.apply(void 0,f.concat([ge.sent()])),(be={},be[o.USER_AGENT_HEADER]=o.USER_AGENT,be)]),O={id:v,payload:{data:k,extensions:{authorization:y({},K)}},type:d.MESSAGE_TYPES.GQL_START},E=JSON.stringify(O),ge.label=3;case 3:return ge.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:U,appSyncGraphqlEndpoint:h,authenticationType:R,region:Z,credentials:re,jwtToken:ee})];case 4:return ge.sent(),[3,6];case 5:return M=ge.sent(),u.error({errors:[y({},new r.GraphQLError("Connection failed: "+(void 0===(j=M.message)?"":j)))]}),u.complete(),"function"==typeof(ne=(this.subscriptionObserverMap.get(v)||{}).subscriptionFailedCallback)&&ne(),[2];case 6:return oe=this.subscriptionObserverMap.get(v),this.subscriptionObserverMap.set(v,{observer:u,subscriptionState:Y,variables:P,query:N,subscriptionReadyCallback:oe.subscriptionReadyCallback,subscriptionFailedCallback:oe.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){me._timeoutStartSubscriptionAck.call(me,v)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(E),[2]}})})},B.prototype._initializeWebSocketConnection=function(m){var w=this,u=m.appSyncGraphqlEndpoint,v=m.authenticationType,h=m.apiKey,R=m.region,N=m.credentials,P=m.jwtToken;if(this.socketStatus!==d.SOCKET_STATUS.READY)return new Promise(function(U,Z){return l(w,void 0,void 0,function(){var ue,V,re,ee,Y,Q,k,C;return e(this,function(f){switch(f.label){case 0:if(this.promiseArray.push({res:U,rej:Z}),this.socketStatus!==d.SOCKET_STATUS.CLOSED)return[3,5];f.label=1;case 1:return f.trys.push([1,4,,5]),this.socketStatus=d.SOCKET_STATUS.CONNECTING,ue=B._discoverAppSyncRealTimeEndpoint(this.url),V="{}",Y=(ee=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:v,payload:V,canonicalUri:"/connect",apiKey:h,appSyncGraphqlEndpoint:u,region:R,credentials:N,jwtToken:P})];case 2:return re=Y.apply(ee,[f.sent()]),Q=Buffer.from(re).toString("base64"),k=Buffer.from(V).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:ue+"?header="+Q+"&payload="+k})];case 3:return f.sent(),this.promiseArray.forEach(function(O){var E=O.res;p("Notifying connection successful"),E()}),this.socketStatus=d.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return C=f.sent(),this.promiseArray.forEach(function(O){return(0,O.rej)(C)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=d.SOCKET_STATUS.CLOSED,[3,5];case 5:return[2]}})})})},B.prototype._awsRealTimeHeaderBasedAuth=function(m){var w=m.authenticationType,u=m.payload,v=m.canonicalUri,h=m.appSyncGraphqlEndpoint,R=m.apiKey,N=m.region,P=m.credentials,U=m.jwtToken;return l(this,void 0,void 0,function(){var Z,ue,V;return e(this,function(ee){switch(ee.label){case 0:return Z={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(ue=Z[w])?(p("Authentication type "+w+" not supported"),[2,{}]):(V=i.parse(h).host,[4,ue({payload:u,canonicalUri:v,appSyncGraphqlEndpoint:h,apiKey:R,region:N,host:V,credentials:P,jwtToken:U})]);case 1:return[2,ee.sent()]}})})},B.prototype._awsRealTimeOPENIDHeader=function(m){var w=m.host,u=m.jwtToken;return l(this,void 0,void 0,function(){var v,h;return e(this,function(R){switch(R.label){case 0:return v={},"function"!=typeof u?[3,2]:[4,u.call(void 0)];case 1:return h=R.sent(),[3,4];case 2:return[4,u];case 3:h=R.sent(),R.label=4;case 4:return[2,(v.Authorization=h,v.host=w,v)]}})})},B.prototype._awsRealTimeApiKeyHeader=function(m){var w=m.apiKey,u=m.host;return l(this,void 0,void 0,function(){var v,h;return e(this,function(R){return v=new Date,h=v.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:u,"x-amz-date":h,"x-api-key":w}]})})},B.prototype._awsRealTimeIAMHeader=function(m){var w=m.payload,u=m.canonicalUri,v=m.appSyncGraphqlEndpoint,h=m.region,R=m.credentials;return l(this,void 0,void 0,function(){var N,P,U,re,ee;return e(this,function(Q){switch(Q.label){case 0:return N={region:h,service:"appsync"},(P="function"==typeof R?R.call():R||{})&&"function"==typeof P.getPromise?[4,P.getPromise()]:[3,2];case 1:Q.sent(),Q.label=2;case 2:if(!P)throw new Error("No credentials");return[4,P];case 3:return U=Q.sent(),re={access_key:U.accessKeyId,secret_key:U.secretAccessKey,session_token:U.sessionToken},ee={url:""+v+u,body:w,method:"POST",headers:y({},b)},[2,o.Signer.sign(ee,re,N).headers]}})})},B.prototype._initializeRetryableHandshake=function(m){var w=m.awsRealTimeUrl;return l(this,void 0,void 0,function(){return e(this,function(u){switch(u.label){case 0:return p("Initializaling retryable Handshake"),[4,g.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:w}])];case 1:return u.sent(),[2]}})})},B.prototype._initializeHandshake=function(m){var w=m.awsRealTimeUrl;return l(this,void 0,void 0,function(){var u,v,R=this;return e(this,function(N){switch(N.label){case 0:p("Initializing handshake "+w),N.label=1;case 1:return N.trys.push([1,4,,5]),[4,new Promise(function(P,U){var Z=B.createWebSocket(w,"graphql-ws");Z.onerror=function(){p("WebSocket connection error")},Z.onclose=function(){U(new Error("Connection handshake error"))},Z.onopen=function(){return R.awsRealTimeSocket=Z,P()}})];case 2:return N.sent(),[4,new Promise(function(P,U){var Z=!1;R.awsRealTimeSocket.onerror=function(re){p("WebSocket closed "+JSON.stringify(re))},R.awsRealTimeSocket.onclose=function(re){p("WebSocket closed "+re.reason),U(new Error(JSON.stringify(re)))},R.awsRealTimeSocket.onmessage=function(re){p("subscription message from AWS AppSyncRealTime: "+re.data+" ");var ee=JSON.parse(re.data),Y=ee.type,Q=ee.payload,k=(void 0===Q?{}:Q).connectionTimeoutMs;if(Y===d.MESSAGE_TYPES.GQL_CONNECTION_ACK)return Z=!0,R.keepAliveTimeout=void 0===k?G:k,R.awsRealTimeSocket.onmessage=R._handleIncomingSubscriptionMessage.bind(R),R.awsRealTimeSocket.onerror=function(oe){p(oe),R._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},R.awsRealTimeSocket.onclose=function(oe){p("WebSocket closed "+oe.reason),R._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},void P("Cool, connected to AWS AppSyncRealTime");if(Y===d.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var C=ee.payload,f=(void 0===C?{}:C).errors,O=(void 0===f?[]:f)[0],E=void 0===O?{}:O,M=E.errorType,q=E.errorCode;U({errorType:void 0===M?"":M,errorCode:void 0===q?0:q})}},R.awsRealTimeSocket.send(JSON.stringify({type:d.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout(function(){Z||U(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}.bind(R),15e3)})];case 3:return N.sent(),[3,5];case 4:throw u=N.sent(),v=u.errorType,T.indexOf(u.errorCode)>=0?new g.NonRetryableError(v):v?new Error(v):u;case 5:return[2]}})})},B.prototype._handleIncomingSubscriptionMessage=function(m){p("subscription message from AWS AppSync RealTime: "+m.data);var w=JSON.parse(m.data),u=w.id,v=void 0===u?"":u,h=w.payload,R=w.type,N=this.subscriptionObserverMap.get(v)||{},P=N.observer,U=void 0===P?null:P,Z=N.query,ue=void 0===Z?"":Z,V=N.variables,re=void 0===V?{}:V,ee=N.startAckTimeoutId,Y=void 0===ee?0:ee,Q=N.subscriptionReadyCallback,k=void 0===Q?null:Q,K=N.subscriptionFailedCallback,C=void 0===K?null:K;if(p({id:v,observer:U,query:ue,variables:re}),R===d.MESSAGE_TYPES.GQL_DATA&&h&&h.data)U?U.next(h):p("observer not found for id: "+v);else{if(R===d.MESSAGE_TYPES.GQL_START_ACK)return p("subscription ready for "+JSON.stringify({query:ue,variables:re})),"function"==typeof k&&k(),clearTimeout(Y),U?U.next({data:h,extensions:{controlMsgType:"CONNECTED"}}):p("observer not found for id: "+v),void this.subscriptionObserverMap.set(v,{observer:U,query:ue,variables:re,startAckTimeoutId:null,subscriptionState:d.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:k,subscriptionFailedCallback:C});if(R===d.MESSAGE_TYPES.GQL_CONNECTION_KEEP_ALIVE)return clearTimeout(this.keepAliveTimeoutId),void(this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,d.CONTROL_MSG.TIMEOUT_DISCONNECT),this.keepAliveTimeout));R===d.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(v,{observer:U,query:ue,variables:re,startAckTimeoutId:Y,subscriptionReadyCallback:k,subscriptionFailedCallback:C,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),U.error({errors:[y({},new r.GraphQLError("Connection failed: "+JSON.stringify(h)))]}),clearTimeout(Y),U.complete(),"function"==typeof C&&C())}},B.prototype._errorDisconnect=function(m){p("Disconnect error: "+m),this.subscriptionObserverMap.forEach(function(w){var u=w.observer;u&&!u.closed&&u.error({errors:[y({},new r.GraphQLError(m))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=d.SOCKET_STATUS.CLOSED},B.prototype._timeoutStartSubscriptionAck=function(m){var w=this.subscriptionObserverMap.get(m)||{},u=w.observer,v=w.query,h=w.variables;!u||(this.subscriptionObserverMap.set(m,{observer:u,query:v,variables:h,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),u&&!u.closed&&(u.error({errors:[y({},new r.GraphQLError("Subscription timeout "+JSON.stringify({query:v,variables:h})))]}),u.complete()),p("timeoutStartSubscription",JSON.stringify({query:v,variables:h})))},B.createWebSocket=function(m,w){return new WebSocket(m,w)},B._discoverAppSyncRealTimeEndpoint=function(m){return m.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},B}(t.ApolloLink);I.AppSyncRealTimeSubscriptionHandshakeLink=W},45597:function(J,I,s){"use strict";var p,n=this&&this.__extends||(p=function(T,S){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,A){b.__proto__=A}||function(b,A){for(var x in A)A.hasOwnProperty(x)&&(b[x]=A[x])})(T,S)},function(T,S){function b(){this.constructor=T}p(T,S),T.prototype=null===S?Object.create(S):(b.prototype=S.prototype,new b)}),y=this&&this.__assign||function(){return(y=Object.assign||function(p){for(var T,S=1,b=arguments.length;S<b;S++)for(var A in T=arguments[S])Object.prototype.hasOwnProperty.call(T,A)&&(p[A]=T[A]);return p}).apply(this,arguments)},l=this&&this.__awaiter||function(p,T,S,b){return new(S||(S=Promise))(function(x,G){function W(m){try{B(b.next(m))}catch(w){G(w)}}function H(m){try{B(b.throw(m))}catch(w){G(w)}}function B(m){m.done?x(m.value):function(x){return x instanceof S?x:new S(function(G){G(x)})}(m.value).then(W,H)}B((b=b.apply(p,T||[])).next())})},e=this&&this.__generator||function(p,T){var b,A,x,G,S={label:0,sent:function(){if(1&x[0])throw x[1];return x[1]},trys:[],ops:[]};return G={next:W(0),throw:W(1),return:W(2)},"function"==typeof Symbol&&(G[Symbol.iterator]=function(){return this}),G;function W(B){return function(m){return function(B){if(b)throw new TypeError("Generator is already executing.");for(;S;)try{if(b=1,A&&(x=2&B[0]?A.return:B[0]?A.throw||((x=A.return)&&x.call(A),0):A.next)&&!(x=x.call(A,B[1])).done)return x;switch(A=0,x&&(B=[2&B[0],x.value]),B[0]){case 0:case 1:x=B;break;case 4:return S.label++,{value:B[1],done:!1};case 5:S.label++,A=B[1],B=[0];continue;case 7:B=S.ops.pop(),S.trys.pop();continue;default:if(!(x=(x=S.trys).length>0&&x[x.length-1])&&(6===B[0]||2===B[0])){S=0;continue}if(3===B[0]&&(!x||B[1]>x[0]&&B[1]<x[3])){S.label=B[1];break}if(6===B[0]&&S.label<x[1]){S.label=x[1],x=B;break}if(x&&S.label<x[2]){S.label=x[2],S.ops.push(B);break}x[2]&&S.ops.pop(),S.trys.pop();continue}B=T.call(p,S)}catch(m){B=[6,m],A=0}finally{b=x=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([B,m])}}},t=this&&this.__rest||function(p,T){var S={};for(var b in p)Object.prototype.hasOwnProperty.call(p,b)&&T.indexOf(b)<0&&(S[b]=p[b]);if(null!=p&&"function"==typeof Object.getOwnPropertySymbols){var A=0;for(b=Object.getOwnPropertySymbols(p);A<b.length;A++)T.indexOf(b[A])<0&&Object.prototype.propertyIsEnumerable.call(p,b[A])&&(S[b[A]]=p[b[A]])}return S};Object.defineProperty(I,"__esModule",{value:!0});var a=s(43821),o=s(94464),r=s(28715),i=s(98007),c=o.rootLogger.extend("subscriptions"),d=c.extend("mqtt");I.CONTROL_EVENTS_KEY="@@controlEvents";var g=function(p){function T(S){var b=p.call(this)||this;return b.topicObservers=new Map,b.clientObservers=new Map,b.onMessage=function(A,x,G){var W=JSON.parse(x),H=b.topicObservers.get(A),B=G.reduce(function(m,w){return m[w]=m[w]||null,m},W.data||{});c("Message received",{data:B,topic:A,observers:H}),H.forEach(function(m){try{m.next(y(y({},W),{data:B}))}catch(w){c(w)}})},b.subsInfoContextKey=S,b}return n(T,p),T.prototype.request=function(S){var b,A=this,x=S.getContext(),W=x[this.subsInfoContextKey],H=x.controlMessages,B=I.CONTROL_EVENTS_KEY,m=(void 0===H?(b={},b[I.CONTROL_EVENTS_KEY]=void 0,b):H)[B],w=W.extensions,u=(void 0===w?{subscription:{newSubscriptions:{},mqttConnections:[]}}:w).subscription,v=u.newSubscriptions,h=u.mqttConnections,R=W.errors,N=void 0===R?[]:R;if(N&&N.length)return new a.Observable(function(ue){return ue.error(new a.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:N},graphQLErrors:N})),function(){}});var P=Object.keys(v).map(function(ue){return v[ue].topic}),U=new Set(P.filter(function(ue){return A.topicObservers.has(ue)})),Z=new Set(P.filter(function(ue){return!U.has(ue)}));return new a.Observable(function(ue){U.forEach(function(re){A.topicObservers.get(re).add(ue);var ee=Array.from(A.topicObservers.get(re)).find(function(){return!0}),Y=Array.from(A.clientObservers).find(function(Q){return Q[1].observers.has(ee)})[0];A.clientObservers.get(Y).observers.add(ue)});var V=h.filter(function(re){return re.topics.some(function(ee){return Z.has(ee)})}).map(function(re){var ee=re.topics,Y=t(re,["topics"]);return y(y({},Y),{topics:ee.filter(function(Q){return Z.has(Q)})})});return A.connectNewClients(V,ue,S),function(){Array.from(A.clientObservers).filter(function(ee){return ee[1].observers.has(ue)}).forEach(function(ee){return A.clientObservers.get(ee[0]).observers.delete(ue)}),A.clientObservers.forEach(function(ee){var Q=ee.client;0===ee.observers.size&&(Q.isConnected()&&Q.disconnect(),A.clientObservers.delete(Q.clientId))}),A.clientObservers=new Map(Array.from(A.clientObservers).filter(function(ee){return ee[1].observers.size>0})),A.topicObservers.forEach(function(ee){return ee.delete(ue)}),A.topicObservers=new Map(Array.from(A.topicObservers).filter(function(ee){return ee[1].size>0}))}}).filter(function(ue){var V=ue.extensions,re=(void 0===V?{}:V).controlMsgType;return!0===m||!(void 0!==(void 0===re?void 0:re))})},T.prototype.connectNewClients=function(S,b,A){return l(this,void 0,void 0,function(){var G,W,H,B=this;return e(this,function(m){return G=i.getMainDefinition(A.query).selectionSet.selections.map(function(w){return w.name.value}),W=Promise.all(S.map(function(w){return B.connectNewClient(w,b,G)})),H=G.reduce(function(w,u){return w[u]=w[u]||null,w},{}),b.next({data:H,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:S}}}),[2,W]})})},T.prototype.connectNewClient=function(S,b,A){return l(this,void 0,void 0,function(){var x,G,W,H,B=this;return e(this,function(m){switch(m.label){case 0:return W=S.topics,(H=new r.Client(G=S.url,x=S.client)).trace=d.bind(null,x),H.onConnectionLost=function(w){var u=w.errorCode,v=t(w,["errorCode"]);0!==u&&W.forEach(function(h){B.topicObservers.has(h)&&B.topicObservers.get(h).forEach(function(R){return R.error(y(y({},v),{permanent:!0}))})}),W.forEach(function(h){return B.topicObservers.delete(h)})},H.onMessageArrived=function(w){return B.onMessage(w.destinationName,w.payloadString,A)},[4,new Promise(function(w,u){H.connect({useSSL:0===G.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return w(H)},onFailure:u})})];case 1:return m.sent(),[4,this.subscribeToTopics(H,W,b)];case 2:return m.sent(),[2,H]}})})},T.prototype.subscribeToTopics=function(S,b,A){var x=this;return Promise.all(b.map(function(G){return x.subscribeToTopic(S,G,A)}))},T.prototype.subscribeToTopic=function(S,b,A){var x=this;return new Promise(function(G,W){S.subscribe(b,{onSuccess:function(){x.topicObservers.has(b)||x.topicObservers.set(b,new Set),x.clientObservers.has(S.clientId)||x.clientObservers.set(S.clientId,{client:S,observers:new Set}),x.topicObservers.get(b).add(A),x.clientObservers.get(S.clientId).observers.add(A),G(b)},onFailure:W})})},T}(a.ApolloLink);I.SubscriptionHandshakeLink=g},60103:(J,I)=>{"use strict";var e;Object.defineProperty(I,"__esModule",{value:!0}),(e=I.SUBSCRIPTION_STATUS||(I.SUBSCRIPTION_STATUS={}))[e.PENDING=0]="PENDING",e[e.CONNECTED=1]="CONNECTED",e[e.FAILED=2]="FAILED",function(e){e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"}(I.SOCKET_STATUS||(I.SOCKET_STATUS={})),function(e){e.GQL_CONNECTION_INIT="connection_init",e.GQL_CONNECTION_ERROR="connection_error",e.GQL_CONNECTION_ACK="connection_ack",e.GQL_START="start",e.GQL_START_ACK="start_ack",e.GQL_DATA="data",e.GQL_CONNECTION_KEEP_ALIVE="ka",e.GQL_STOP="stop",e.GQL_COMPLETE="complete",e.GQL_ERROR="error"}(I.MESSAGE_TYPES||(I.MESSAGE_TYPES={})),function(e){e.CONNECTION_CLOSED="Connection closed",e.TIMEOUT_DISCONNECT="Timeout disconnect",e.SUBSCRIPTION_ACK="Subscription ack"}(I.CONTROL_MSG||(I.CONTROL_MSG={}))},94464:(J,I,s)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var n=s(40913);I.rootLogger=n.default},40913:function(J,I,s){"use strict";var n=this&&this.__spreadArrays||function(){for(var t=0,a=0,o=arguments.length;a<o;a++)t+=arguments[a].length;var r=Array(t),i=0;for(a=0;a<o;a++)for(var c=arguments[a],d=0,g=c.length;d<g;d++,i++)r[i]=c[d];return r};Object.defineProperty(I,"__esModule",{value:!0});var y=s(65771),l=y.default("aws-appsync"),e=function(t){void 0===t&&(t="");var a=t?n(this.namespace.split(":"),[t]).join(":"):this.namespace,o=y.default(a);return o.extend=e.bind(o),o};l.extend=e.bind(l),I.default=l},89256:function(J,I,s){"use strict";var d,n=this&&this.__extends||(d=function(g,p){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,S){T.__proto__=S}||function(T,S){for(var b in S)S.hasOwnProperty(b)&&(T[b]=S[b])})(g,p)},function(g,p){function T(){this.constructor=g}d(g,p),g.prototype=null===p?Object.create(p):(T.prototype=p.prototype,new T)}),y=this&&this.__awaiter||function(d,g,p,T){return new(p||(p=Promise))(function(b,A){function x(H){try{W(T.next(H))}catch(B){A(B)}}function G(H){try{W(T.throw(H))}catch(B){A(B)}}function W(H){H.done?b(H.value):function(b){return b instanceof p?b:new p(function(A){A(b)})}(H.value).then(x,G)}W((T=T.apply(d,g||[])).next())})},l=this&&this.__generator||function(d,g){var T,S,b,A,p={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return A={next:x(0),throw:x(1),return:x(2)},"function"==typeof Symbol&&(A[Symbol.iterator]=function(){return this}),A;function x(W){return function(H){return function(W){if(T)throw new TypeError("Generator is already executing.");for(;p;)try{if(T=1,S&&(b=2&W[0]?S.return:W[0]?S.throw||((b=S.return)&&b.call(S),0):S.next)&&!(b=b.call(S,W[1])).done)return b;switch(S=0,b&&(W=[2&W[0],b.value]),W[0]){case 0:case 1:b=W;break;case 4:return p.label++,{value:W[1],done:!1};case 5:p.label++,S=W[1],W=[0];continue;case 7:W=p.ops.pop(),p.trys.pop();continue;default:if(!(b=(b=p.trys).length>0&&b[b.length-1])&&(6===W[0]||2===W[0])){p=0;continue}if(3===W[0]&&(!b||W[1]>b[0]&&W[1]<b[3])){p.label=W[1];break}if(6===W[0]&&p.label<b[1]){p.label=b[1],b=W;break}if(b&&p.label<b[2]){p.label=b[2],p.ops.push(W);break}b[2]&&p.ops.pop(),p.trys.pop();continue}W=g.call(d,p)}catch(H){W=[6,H],S=0}finally{T=b=0}if(5&W[0])throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}([W,H])}}};Object.defineProperty(I,"__esModule",{value:!0});var t=s(94464).rootLogger.extend("retry"),o=function(d){function g(p){var T=d.call(this,p)||this;return T.nonRetryable=!0,T}return n(g,d),g}(Error);function i(d,g,p,T){return void 0===T&&(T=1),y(this,void 0,void 0,function(){var S,b;return l(this,function(A){switch(A.label){case 0:t("Attempt #"+T+" for this vars: "+JSON.stringify(g)),A.label=1;case 1:return A.trys.push([1,3,,8]),[4,d.apply(void 0,g)];case 2:return A.sent(),[3,8];case 3:if(S=A.sent(),t("error "+S),function(d){return d&&d.nonRetryable}(S))throw t("non retryable error"),S;return b=p(T,g,S),t("retryIn ",b),!1===b?[3,6]:[4,new Promise(function(x){return setTimeout(x,b)})];case 4:return A.sent(),[4,i(d,g,p,T+1)];case 5:return[2,A.sent()];case 6:throw S;case 7:return[3,8];case 8:return[2]}})})}I.NonRetryableError=o,I.retry=i,I.jitteredExponentialRetry=function(d,g,p){return void 0===p&&(p=5e3),i(d,g,function(d){return function(T){var S=100*Math.pow(2,T)+100*Math.random();return!(S>d)&&S}}(p))}},28715:function(J){var s;J.exports=s=function(n){var v,l=n.localStorage||(v={},{setItem:function(h,R){v[h]=R},getItem:function(h){return v[h]},removeItem:function(h){delete v[h]}}),e_CONNECT=1,e_CONNACK=2,e_PUBLISH=3,e_PUBACK=4,e_PUBREC=5,e_PUBREL=6,e_PUBCOMP=7,e_SUBSCRIBE=8,e_SUBACK=9,e_UNSUBSCRIBE=10,e_UNSUBACK=11,e_PINGREQ=12,e_PINGRESP=13,e_DISCONNECT=14,t=function(v,h){for(var R in v)if(v.hasOwnProperty(R)){if(!h.hasOwnProperty(R)){var N="Unknown property, "+R+". Valid properties are:";for(var P in h)h.hasOwnProperty(P)&&(N=N+" "+P);throw new Error(N)}if(typeof v[R]!==h[R])throw new Error(i(o.INVALID_TYPE,[typeof v[R],R]))}},a=function(v,h){return function(){return v.apply(h,arguments)}},o={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}."}},r={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},i=function(v,h){var R=v.text;if(h)for(var N,P,U=0;U<h.length;U++)if((P=R.indexOf(N="{"+U+"}"))>0){var Z=R.substring(0,P),ue=R.substring(P+N.length);R=Z+h[U]+ue}return R},c=[0,6,77,81,73,115,100,112,3],d=[0,4,77,81,84,84,4],g=function(v,h){for(var R in this.type=v,h)h.hasOwnProperty(R)&&(this[R]=h[R])};function p(v,h){var R=h,N=v[h],P=N>>4,U=N&=15;h+=1;var Z,ue=0,V=1;do{if(h==v.length)return[null,R];ue+=(127&(Z=v[h++]))*V,V*=128}while(0!=(128&Z));var re=h+ue;if(re>v.length)return[null,R];var ee=new g(P);switch(P){case e_CONNACK:1&v[h++]&&(ee.sessionPresent=!0),ee.returnCode=v[h++];break;case e_PUBLISH:var Q=U>>1&3,k=b(v,h),K=W(v,h+=2,k);h+=k,Q>0&&(ee.messageIdentifier=b(v,h),h+=2);var C=new s.Message(v.subarray(h,re));1==(1&U)&&(C.retained=!0),8==(8&U)&&(C.duplicate=!0),C.qos=Q,C.destinationName=K,ee.payloadMessage=C;break;case e_PUBACK:case e_PUBREC:case e_PUBREL:case e_PUBCOMP:case e_UNSUBACK:ee.messageIdentifier=b(v,h);break;case e_SUBACK:ee.messageIdentifier=b(v,h),ee.returnCode=v.subarray(h+=2,re)}return[ee,re]}function T(v,h,R){return h[R++]=v>>8,h[R++]=v%256,R}function S(v,h,R,N){return G(v,R,N=T(h,R,N)),N+h}function b(v,h){return 256*v[h]+v[h+1]}function x(v){for(var h=0,R=0;R<v.length;R++){var N=v.charCodeAt(R);N>2047?(55296<=N&&N<=56319&&(R++,h++),h+=3):N>127?h+=2:h++}return h}function G(v,h,R){for(var N=R,P=0;P<v.length;P++){var U=v.charCodeAt(P);if(55296<=U&&U<=56319){var Z=v.charCodeAt(++P);if(isNaN(Z))throw new Error(i(o.MALFORMED_UNICODE,[U,Z]));U=Z-56320+(U-55296<<10)+65536}U<=127?h[N++]=U:U<=2047?(h[N++]=U>>6&31|192,h[N++]=63&U|128):U<=65535?(h[N++]=U>>12&15|224,h[N++]=U>>6&63|128,h[N++]=63&U|128):(h[N++]=U>>18&7|240,h[N++]=U>>12&63|128,h[N++]=U>>6&63|128,h[N++]=63&U|128)}return h}function W(v,h,R){for(var P,N="",U=h;U<h+R;){var Z=v[U++];if(Z<128)P=Z;else{var ue=v[U++]-128;if(ue<0)throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),""]));if(Z<224)P=64*(Z-192)+ue;else{var V=v[U++]-128;if(V<0)throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),V.toString(16)]));if(Z<240)P=4096*(Z-224)+64*ue+V;else{var re=v[U++]-128;if(re<0)throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),V.toString(16),re.toString(16)]));if(!(Z<248))throw new Error(i(o.MALFORMED_UTF,[Z.toString(16),ue.toString(16),V.toString(16),re.toString(16)]));P=262144*(Z-240)+4096*ue+64*V+re}}}P>65535&&(P-=65536,N+=String.fromCharCode(55296+(P>>10)),P=56320+(1023&P)),N+=String.fromCharCode(P)}return N}g.prototype.encode=function(){var P,v=(15&this.type)<<4,h=0,R=[],N=0;switch(void 0!==this.messageIdentifier&&(h+=2),this.type){case e_CONNECT:switch(this.mqttVersion){case 3:h+=c.length+3;break;case 4:h+=d.length+3}h+=x(this.clientId)+2,void 0!==this.willMessage&&(h+=x(this.willMessage.destinationName)+2,(P=this.willMessage.payloadBytes)instanceof Uint8Array||(P=new Uint8Array(Z)),h+=P.byteLength+2),void 0!==this.userName&&(h+=x(this.userName)+2),void 0!==this.password&&(h+=x(this.password)+2);break;case e_SUBSCRIBE:v|=2;for(var U=0;U<this.topics.length;U++)R[U]=x(this.topics[U]),h+=R[U]+2;h+=this.requestedQos.length;break;case e_UNSUBSCRIBE:for(v|=2,U=0;U<this.topics.length;U++)R[U]=x(this.topics[U]),h+=R[U]+2;break;case e_PUBREL:v|=2;break;case e_PUBLISH:this.payloadMessage.duplicate&&(v|=8),v=v|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(v|=1),h+=(N=x(this.payloadMessage.destinationName))+2;var Z=this.payloadMessage.payloadBytes;h+=Z.byteLength,Z instanceof ArrayBuffer?Z=new Uint8Array(Z):Z instanceof Uint8Array||(Z=new Uint8Array(Z.buffer))}var ue=function(v){var h=new Array(1),R=0;do{var N=v%128;(v>>=7)>0&&(N|=128),h[R++]=N}while(v>0&&R<4);return h}(h),V=ue.length+1,re=new ArrayBuffer(h+V),ee=new Uint8Array(re);if(ee[0]=v,ee.set(ue,1),this.type==e_PUBLISH)V=S(this.payloadMessage.destinationName,N,ee,V);else if(this.type==e_CONNECT){switch(this.mqttVersion){case 3:ee.set(c,V),V+=c.length;break;case 4:ee.set(d,V),V+=d.length}var Y=0;this.cleanSession&&(Y=2),void 0!==this.willMessage&&(Y|=4,Y|=this.willMessage.qos<<3,this.willMessage.retained&&(Y|=32)),void 0!==this.userName&&(Y|=128),void 0!==this.password&&(Y|=64),ee[V++]=Y,V=T(this.keepAliveInterval,ee,V)}switch(void 0!==this.messageIdentifier&&(V=T(this.messageIdentifier,ee,V)),this.type){case e_CONNECT:V=S(this.clientId,x(this.clientId),ee,V),void 0!==this.willMessage&&(V=S(this.willMessage.destinationName,x(this.willMessage.destinationName),ee,V),V=T(P.byteLength,ee,V),ee.set(P,V),V+=P.byteLength),void 0!==this.userName&&(V=S(this.userName,x(this.userName),ee,V)),void 0!==this.password&&(V=S(this.password,x(this.password),ee,V));break;case e_PUBLISH:ee.set(Z,V);break;case e_SUBSCRIBE:for(U=0;U<this.topics.length;U++)V=S(this.topics[U],R[U],ee,V),ee[V++]=this.requestedQos[U];break;case e_UNSUBSCRIBE:for(U=0;U<this.topics.length;U++)V=S(this.topics[U],R[U],ee,V)}return re};var H=function(v,h){this._client=v,this._keepAliveInterval=1e3*h,this.isReset=!1;var R=new g(e_PINGREQ).encode(),N=function(U){return function(){return P.apply(U)}},P=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(R),this.timeout=setTimeout(N(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(o.PING_TIMEOUT.code,i(o.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(N(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},B=function(v,h,R,N){var U,Z,ue;h||(h=30),this.timeout=setTimeout((U=R,Z=v,ue=N,function(){return U.apply(Z,ue)}),1e3*h),this.cancel=function(){clearTimeout(this.timeout)}},m=function(v,h,R,N,P){if(!("WebSocket"in n)||null===n.WebSocket)throw new Error(i(o.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in n)||null===n.ArrayBuffer)throw new Error(i(o.UNSUPPORTED,["ArrayBuffer"]));for(var U in this._trace("Paho.Client",v,h,R,N,P),this.host=h,this.port=R,this.path=N,this.uri=v,this.clientId=P,this._wsuri=null,this._localKey=h+":"+R+("/mqtt"!=N?":"+N:"")+":"+P+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,l)(0===U.indexOf("Sent:"+this._localKey)||0===U.indexOf("Received:"+this._localKey))&&this.restore(U)};m.prototype.host=null,m.prototype.port=null,m.prototype.path=null,m.prototype.uri=null,m.prototype.clientId=null,m.prototype.socket=null,m.prototype.connected=!1,m.prototype.maxMessageIdentifier=65536,m.prototype.connectOptions=null,m.prototype.hostIndex=null,m.prototype.onConnected=null,m.prototype.onConnectionLost=null,m.prototype.onMessageDelivered=null,m.prototype.onMessageArrived=null,m.prototype.traceFunction=null,m.prototype._msg_queue=null,m.prototype._buffered_msg_queue=null,m.prototype._connectTimeout=null,m.prototype.sendPinger=null,m.prototype.receivePinger=null,m.prototype._reconnectInterval=1,m.prototype._reconnecting=!1,m.prototype._reconnectTimeout=null,m.prototype.disconnectedPublishing=!1,m.prototype.disconnectedBufferSize=5e3,m.prototype.receiveBuffer=null,m.prototype._traceBuffer=null,m.prototype._MAX_TRACE_ENTRIES=100,m.prototype.connect=function(v){var h=this._traceMask(v,"password");if(this._trace("Client.connect",h,this.socket,this.connected),this.connected)throw new Error(i(o.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(i(o.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=v,this._reconnectInterval=1,this._reconnecting=!1,v.uris?(this.hostIndex=0,this._doConnect(v.uris[0])):this._doConnect(this.uri)},m.prototype.subscribe=function(v,h){if(this._trace("Client.subscribe",v,h),!this.connected)throw new Error(i(o.INVALID_STATE,["not connected"]));var R=new g(e_SUBSCRIBE);R.topics=[v],R.requestedQos=void 0!==h.qos?[h.qos]:[0],h.onSuccess&&(R.onSuccess=function(N){h.onSuccess({invocationContext:h.invocationContext,grantedQos:N})}),h.onFailure&&(R.onFailure=function(N){h.onFailure({invocationContext:h.invocationContext,errorCode:N,errorMessage:i(N)})}),h.timeout&&(R.timeOut=new B(this,h.timeout,h.onFailure,[{invocationContext:h.invocationContext,errorCode:o.SUBSCRIBE_TIMEOUT.code,errorMessage:i(o.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(R),this._schedule_message(R)},m.prototype.unsubscribe=function(v,h){if(this._trace("Client.unsubscribe",v,h),!this.connected)throw new Error(i(o.INVALID_STATE,["not connected"]));var R=new g(e_UNSUBSCRIBE);R.topics=[v],h.onSuccess&&(R.callback=function(){h.onSuccess({invocationContext:h.invocationContext})}),h.timeout&&(R.timeOut=new B(this,h.timeout,h.onFailure,[{invocationContext:h.invocationContext,errorCode:o.UNSUBSCRIBE_TIMEOUT.code,errorMessage:i(o.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(R),this._schedule_message(R)},m.prototype.send=function(v){this._trace("Client.send",v);var h=new g(e_PUBLISH);if(h.payloadMessage=v,this.connected)v.qos>0?this._requires_ack(h):this.onMessageDelivered&&(this._notify_msg_sent[h]=this.onMessageDelivered(h.payloadMessage)),this._schedule_message(h);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(i(o.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(i(o.BUFFER_FULL,[this.disconnectedBufferSize]));v.qos>0?this._requires_ack(h):(h.sequence=++this._sequence,this._buffered_msg_queue.unshift(h))}},m.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw new Error(i(o.INVALID_STATE,["not connecting or connected"]));var v=new g(e_DISCONNECT);this._notify_msg_sent[v]=a(this._disconnected,this),this._schedule_message(v)},m.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var v in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",v,this._sentMessages[v]);for(var v in this._receivedMessages)this._trace("_receivedMessages ",v,this._receivedMessages[v]);return this._traceBuffer}},m.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},m.prototype.stopTrace=function(){delete this._traceBuffer},m.prototype._doConnect=function(v){if(this.connectOptions.useSSL){var h=v.split(":");h[0]="wss",v=h.join(":")}this._wsuri=v,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(v,["mqttv3.1"]):new WebSocket(v,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=a(this._on_socket_open,this),this.socket.onmessage=a(this._on_socket_message,this),this.socket.onerror=a(this._on_socket_error,this),this.socket.onclose=a(this._on_socket_close,this),this.sendPinger=new H(this,this.connectOptions.keepAliveInterval),this.receivePinger=new H(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new B(this,this.connectOptions.timeout,this._disconnected,[o.CONNECT_TIMEOUT.code,i(o.CONNECT_TIMEOUT)])},m.prototype._schedule_message=function(v){this._msg_queue.unshift(v),this.connected&&this._process_queue()},m.prototype.store=function(v,h){var R={type:h.type,messageIdentifier:h.messageIdentifier,version:1};switch(h.type){case e_PUBLISH:h.pubRecReceived&&(R.pubRecReceived=!0),R.payloadMessage={};for(var N="",P=h.payloadMessage.payloadBytes,U=0;U<P.length;U++)P[U]<=15?N=N+"0"+P[U].toString(16):N+=P[U].toString(16);R.payloadMessage.payloadHex=N,R.payloadMessage.qos=h.payloadMessage.qos,R.payloadMessage.destinationName=h.payloadMessage.destinationName,h.payloadMessage.duplicate&&(R.payloadMessage.duplicate=!0),h.payloadMessage.retained&&(R.payloadMessage.retained=!0),0===v.indexOf("Sent:")&&(void 0===h.sequence&&(h.sequence=++this._sequence),R.sequence=h.sequence);break;default:throw Error(i(o.INVALID_STORED_DATA,[v+this._localKey+h.messageIdentifier,R]))}l.setItem(v+this._localKey+h.messageIdentifier,JSON.stringify(R))},m.prototype.restore=function(v){var h=l.getItem(v),R=JSON.parse(h),N=new g(R.type,R);switch(R.type){case e_PUBLISH:for(var P=R.payloadMessage.payloadHex,U=new ArrayBuffer(P.length/2),Z=new Uint8Array(U),ue=0;P.length>=2;){var V=parseInt(P.substring(0,2),16);P=P.substring(2,P.length),Z[ue++]=V}var re=new s.Message(Z);re.qos=R.payloadMessage.qos,re.destinationName=R.payloadMessage.destinationName,R.payloadMessage.duplicate&&(re.duplicate=!0),R.payloadMessage.retained&&(re.retained=!0),N.payloadMessage=re;break;default:throw Error(i(o.INVALID_STORED_DATA,[v,h]))}0===v.indexOf("Sent:"+this._localKey)?(N.payloadMessage.duplicate=!0,this._sentMessages[N.messageIdentifier]=N):0===v.indexOf("Received:"+this._localKey)&&(this._receivedMessages[N.messageIdentifier]=N)},m.prototype._process_queue=function(){for(var v=null;v=this._msg_queue.pop();)this._socket_send(v),this._notify_msg_sent[v]&&(this._notify_msg_sent[v](),delete this._notify_msg_sent[v])},m.prototype._requires_ack=function(v){var h=Object.keys(this._sentMessages).length;if(h>this.maxMessageIdentifier)throw Error("Too many messages:"+h);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;v.messageIdentifier=this._message_identifier,this._sentMessages[v.messageIdentifier]=v,v.type===e_PUBLISH&&this.store("Sent:",v),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},m.prototype._on_socket_open=function(){var v=new g(e_CONNECT,this.connectOptions);v.clientId=this.clientId,this._socket_send(v)},m.prototype._on_socket_message=function(v){this._trace("Client._on_socket_message",v.data);for(var h=this._deframeMessages(v.data),R=0;R<h.length;R+=1)this._handleMessage(h[R])},m.prototype._deframeMessages=function(v){var h=new Uint8Array(v),R=[];if(this.receiveBuffer){var N=new Uint8Array(this.receiveBuffer.length+h.length);N.set(this.receiveBuffer),N.set(h,this.receiveBuffer.length),h=N,delete this.receiveBuffer}try{for(var P=0;P<h.length;){var U=p(h,P),Z=U[0];if(P=U[1],null===Z)break;R.push(Z)}P<h.length&&(this.receiveBuffer=h.subarray(P))}catch(V){var ue="undefined"==V.hasOwnProperty("stack")?V.stack.toString():"No Error Stack Available";return void this._disconnected(o.INTERNAL_ERROR.code,i(o.INTERNAL_ERROR,[V.message,ue]))}return R},m.prototype._handleMessage=function(v){this._trace("Client._handleMessage",v);try{switch(v.type){case e_CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var h in this._sentMessages)l.removeItem("Sent:"+this._localKey+(re=this._sentMessages[h]).messageIdentifier);for(var h in this._sentMessages={},this._receivedMessages)l.removeItem("Received:"+this._localKey+(ee=this._receivedMessages[h]).messageIdentifier);this._receivedMessages={}}if(0!==v.returnCode){this._disconnected(o.CONNACK_RETURNCODE.code,i(o.CONNACK_RETURNCODE,[v.returnCode,r[v.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var R=[];for(var N in this._sentMessages)this._sentMessages.hasOwnProperty(N)&&R.push(this._sentMessages[N]);if(this._buffered_msg_queue.length>0)for(var P=null;P=this._buffered_msg_queue.pop();)R.push(P),this.onMessageDelivered&&(this._notify_msg_sent[P]=this.onMessageDelivered(P.payloadMessage));R=R.sort(function(k,K){return k.sequence-K.sequence});for(var U=0,Z=R.length;U<Z;U++)if((re=R[U]).type==e_PUBLISH&&re.pubRecReceived){var ue=new g(e_PUBREL,{messageIdentifier:re.messageIdentifier});this._schedule_message(ue)}else this._schedule_message(re);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var V=!1;this._reconnecting&&(V=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(V,this._wsuri),this._process_queue();break;case e_PUBLISH:this._receivePublish(v);break;case e_PUBACK:(re=this._sentMessages[v.messageIdentifier])&&(delete this._sentMessages[v.messageIdentifier],l.removeItem("Sent:"+this._localKey+v.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(re.payloadMessage));break;case e_PUBREC:(re=this._sentMessages[v.messageIdentifier])&&(re.pubRecReceived=!0,ue=new g(e_PUBREL,{messageIdentifier:v.messageIdentifier}),this.store("Sent:",re),this._schedule_message(ue));break;case e_PUBREL:var ee=this._receivedMessages[v.messageIdentifier];l.removeItem("Received:"+this._localKey+v.messageIdentifier),ee&&(this._receiveMessage(ee),delete this._receivedMessages[v.messageIdentifier]);var Y=new g(e_PUBCOMP,{messageIdentifier:v.messageIdentifier});this._schedule_message(Y);break;case e_PUBCOMP:var re=this._sentMessages[v.messageIdentifier];delete this._sentMessages[v.messageIdentifier],l.removeItem("Sent:"+this._localKey+v.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(re.payloadMessage);break;case e_SUBACK:(re=this._sentMessages[v.messageIdentifier])&&(re.timeOut&&re.timeOut.cancel(),128===v.returnCode[0]?re.onFailure&&re.onFailure(v.returnCode):re.onSuccess&&re.onSuccess(v.returnCode),delete this._sentMessages[v.messageIdentifier]);break;case e_UNSUBACK:(re=this._sentMessages[v.messageIdentifier])&&(re.timeOut&&re.timeOut.cancel(),re.callback&&re.callback(),delete this._sentMessages[v.messageIdentifier]);break;case e_PINGRESP:this.sendPinger.reset();break;case e_DISCONNECT:this._disconnected(o.INVALID_MQTT_MESSAGE_TYPE.code,i(o.INVALID_MQTT_MESSAGE_TYPE,[v.type]));break;default:this._disconnected(o.INVALID_MQTT_MESSAGE_TYPE.code,i(o.INVALID_MQTT_MESSAGE_TYPE,[v.type]))}}catch(k){var Q="undefined"==k.hasOwnProperty("stack")?k.stack.toString():"No Error Stack Available";return void this._disconnected(o.INTERNAL_ERROR.code,i(o.INTERNAL_ERROR,[k.message,Q]))}},m.prototype._on_socket_error=function(v){this._reconnecting||this._disconnected(o.SOCKET_ERROR.code,i(o.SOCKET_ERROR,[v.data]))},m.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(o.SOCKET_CLOSE.code,i(o.SOCKET_CLOSE))},m.prototype._socket_send=function(v){if(1==v.type){var h=this._traceMask(v,"password");this._trace("Client._socket_send",h)}else this._trace("Client._socket_send",v);this.socket.send(v.encode()),this.sendPinger.reset()},m.prototype._receivePublish=function(v){switch(v.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(v);break;case 1:var h=new g(e_PUBACK,{messageIdentifier:v.messageIdentifier});this._schedule_message(h),this._receiveMessage(v);break;case 2:this._receivedMessages[v.messageIdentifier]=v,this.store("Received:",v);var R=new g(e_PUBREC,{messageIdentifier:v.messageIdentifier});this._schedule_message(R);break;default:throw Error("Invaild qos="+v.payloadMessage.qos)}},m.prototype._receiveMessage=function(v){this.onMessageArrived&&this.onMessageArrived(v.payloadMessage)},m.prototype._connected=function(v,h){this.onConnected&&this.onConnected(v,h)},m.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))},m.prototype._disconnected=function(v,h){if(this._trace("Client._disconnected",v,h),void 0!==v&&this._reconnecting)this._reconnectTimeout=new B(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===v&&(v=o.OK.code,h=i(o.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:v,errorMessage:h,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),v!==o.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:v,errorMessage:h})},m.prototype._trace=function(){if(this.traceFunction){var v=Array.prototype.slice.call(arguments);for(var h in v)void 0!==v[h]&&v.splice(h,1,JSON.stringify(v[h]));var R=v.join("");this.traceFunction({severity:"Debug",message:R})}if(null!==this._traceBuffer){h=0;for(var N=arguments.length;h<N;h++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===h||void 0===arguments[h]?arguments[h]:" "+JSON.stringify(arguments[h]))}},m.prototype._traceMask=function(v,h){var R={};for(var N in v)v.hasOwnProperty(N)&&(R[N]=N==h?"******":v[N]);return R};var u=function(v){var h;if(!("string"==typeof v||v instanceof ArrayBuffer||ArrayBuffer.isView(v)&&!(v instanceof DataView)))throw i(o.INVALID_ARGUMENT,[v,"newPayload"]);h=v;var R,N=0,P=!1,U=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof h?h:W(h,0,h.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof h){var Z=new ArrayBuffer(x(h)),ue=new Uint8Array(Z);return G(h,ue,0),ue}return h}},destinationName:{enumerable:!0,get:function(){return R},set:function(Z){if("string"!=typeof Z)throw new Error(i(o.INVALID_ARGUMENT,[Z,"newDestinationName"]));R=Z}},qos:{enumerable:!0,get:function(){return N},set:function(Z){if(0!==Z&&1!==Z&&2!==Z)throw new Error("Invalid argument:"+Z);N=Z}},retained:{enumerable:!0,get:function(){return P},set:function(Z){if("boolean"!=typeof Z)throw new Error(i(o.INVALID_ARGUMENT,[Z,"newRetained"]));P=Z}},topic:{enumerable:!0,get:function(){return R},set:function(Z){R=Z}},duplicate:{enumerable:!0,get:function(){return U},set:function(Z){U=Z}}})};return{Client:function(v,h,R,N){var P;if("string"!=typeof v)throw new Error(i(o.INVALID_TYPE,[typeof v,"host"]));if(2==arguments.length){N=h;var U=(P=v).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!U)throw new Error(i(o.INVALID_ARGUMENT,[v,"host"]));v=U[4]||U[2],h=parseInt(U[7]),R=U[8]}else{if(3==arguments.length&&(N=R,R="/mqtt"),"number"!=typeof h||h<0)throw new Error(i(o.INVALID_TYPE,[typeof h,"port"]));if("string"!=typeof R)throw new Error(i(o.INVALID_TYPE,[typeof R,"path"]));var Z=-1!==v.indexOf(":")&&"["!==v.slice(0,1)&&"]"!==v.slice(-1);P="ws://"+(Z?"["+v+"]":v)+":"+h+R}for(var ue=0,V=0;V<N.length;V++){var re=N.charCodeAt(V);55296<=re&&re<=56319&&V++,ue++}if("string"!=typeof N||ue>65535)throw new Error(i(o.INVALID_ARGUMENT,[N,"clientId"]));var ee=new m(P,v,h,R,N);Object.defineProperties(this,{host:{get:function(){return v},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},port:{get:function(){return h},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},path:{get:function(){return R},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},uri:{get:function(){return P},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return ee.clientId},set:function(){throw new Error(i(o.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return ee.onConnected},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onConnected"]));ee.onConnected=Y}},disconnectedPublishing:{get:function(){return ee.disconnectedPublishing},set:function(Y){ee.disconnectedPublishing=Y}},disconnectedBufferSize:{get:function(){return ee.disconnectedBufferSize},set:function(Y){ee.disconnectedBufferSize=Y}},onConnectionLost:{get:function(){return ee.onConnectionLost},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onConnectionLost"]));ee.onConnectionLost=Y}},onMessageDelivered:{get:function(){return ee.onMessageDelivered},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onMessageDelivered"]));ee.onMessageDelivered=Y}},onMessageArrived:{get:function(){return ee.onMessageArrived},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onMessageArrived"]));ee.onMessageArrived=Y}},trace:{get:function(){return ee.traceFunction},set:function(Y){if("function"!=typeof Y)throw new Error(i(o.INVALID_TYPE,[typeof Y,"onTrace"]));ee.traceFunction=Y}}}),this.connect=function(Y){if(t(Y=Y||{},{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===Y.keepAliveInterval&&(Y.keepAliveInterval=60),Y.mqttVersion>4||Y.mqttVersion<3)throw new Error(i(o.INVALID_ARGUMENT,[Y.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===Y.mqttVersion?(Y.mqttVersionExplicit=!1,Y.mqttVersion=4):Y.mqttVersionExplicit=!0,void 0!==Y.password&&void 0===Y.userName)throw new Error(i(o.INVALID_ARGUMENT,[Y.password,"connectOptions.password"]));if(Y.willMessage){if(!(Y.willMessage instanceof u))throw new Error(i(o.INVALID_TYPE,[Y.willMessage,"connectOptions.willMessage"]));if(Y.willMessage.stringPayload=null,void 0===Y.willMessage.destinationName)throw new Error(i(o.INVALID_TYPE,[typeof Y.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===Y.cleanSession&&(Y.cleanSession=!0),Y.hosts){if(!(Y.hosts instanceof Array))throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts,"connectOptions.hosts"]));if(Y.hosts.length<1)throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts,"connectOptions.hosts"]));for(var Q=!1,k=0;k<Y.hosts.length;k++){if("string"!=typeof Y.hosts[k])throw new Error(i(o.INVALID_TYPE,[typeof Y.hosts[k],"connectOptions.hosts["+k+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(Y.hosts[k])){if(0===k)Q=!0;else if(!Q)throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts[k],"connectOptions.hosts["+k+"]"]))}else if(Q)throw new Error(i(o.INVALID_ARGUMENT,[Y.hosts[k],"connectOptions.hosts["+k+"]"]))}if(Q)Y.uris=Y.hosts;else{if(!Y.ports)throw new Error(i(o.INVALID_ARGUMENT,[Y.ports,"connectOptions.ports"]));if(!(Y.ports instanceof Array))throw new Error(i(o.INVALID_ARGUMENT,[Y.ports,"connectOptions.ports"]));if(Y.hosts.length!==Y.ports.length)throw new Error(i(o.INVALID_ARGUMENT,[Y.ports,"connectOptions.ports"]));for(Y.uris=[],k=0;k<Y.hosts.length;k++){if("number"!=typeof Y.ports[k]||Y.ports[k]<0)throw new Error(i(o.INVALID_TYPE,[typeof Y.ports[k],"connectOptions.ports["+k+"]"]));var K=Y.hosts[k],C=Y.ports[k],f=-1!==K.indexOf(":");Y.uris.push(P="ws://"+(f?"["+K+"]":K)+":"+C+R)}}}ee.connect(Y)},this.subscribe=function(Y,Q){if("string"!=typeof Y)throw new Error("Invalid argument:"+Y);if(t(Q=Q||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Q.timeout&&!Q.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(void 0!==Q.qos&&0!==Q.qos&&1!==Q.qos&&2!==Q.qos)throw new Error(i(o.INVALID_ARGUMENT,[Q.qos,"subscribeOptions.qos"]));ee.subscribe(Y,Q)},this.unsubscribe=function(Y,Q){if("string"!=typeof Y)throw new Error("Invalid argument:"+Y);if(t(Q=Q||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),Q.timeout&&!Q.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");ee.unsubscribe(Y,Q)},this.send=function(Y,Q,k,K){var C;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(Y instanceof u)&&"string"!=typeof Y)throw new Error("Invalid argument:"+typeof Y);if(void 0===(C=Y).destinationName)throw new Error(i(o.INVALID_ARGUMENT,[C.destinationName,"Message.destinationName"]));ee.send(C)}else(C=new u(Q)).destinationName=Y,arguments.length>=3&&(C.qos=k),arguments.length>=4&&(C.retained=K),ee.send(C)},this.publish=function(Y,Q,k,K){var C;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(Y instanceof u)&&"string"!=typeof Y)throw new Error("Invalid argument:"+typeof Y);if(void 0===(C=Y).destinationName)throw new Error(i(o.INVALID_ARGUMENT,[C.destinationName,"Message.destinationName"]));ee.send(C)}else(C=new u(Q)).destinationName=Y,arguments.length>=3&&(C.qos=k),arguments.length>=4&&(C.retained=K),ee.send(C)},this.disconnect=function(){ee.disconnect()},this.getTraceLog=function(){return ee.getTraceLog()},this.startTrace=function(){ee.startTrace()},this.stopTrace=function(){ee.stopTrace()},this.isConnected=function(){return ee.connected}},Message:u}}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},18426:(J,I,s)=>{s(12885);var n=s(72338);"undefined"!=typeof window&&(window.AWS=n),J.exports=n,"undefined"!=typeof self&&(self.AWS=n)},83073:(J,I,s)=>{s(12885);var n=s(72338),y=n.Service,l=n.apiLoader;l.services.cognitoidentity={},n.CognitoIdentity=y.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(l.services.cognitoidentity,"2014-06-30",{get:function(){var t=s(46933);return t.paginators=s(13428).o,t},enumerable:!0,configurable:!0}),J.exports=n.CognitoIdentity},84032:(J,I,s)=>{s(12885);var n=s(72338),y=n.Service,l=n.apiLoader;l.services.sts={},n.STS=y.defineService("sts",["2011-06-15"]),s(25974),Object.defineProperty(l.services.sts,"2011-06-15",{get:function(){var t=s(42369);return t.paginators=s(14819).o,t},enumerable:!0,configurable:!0}),J.exports=n.STS},29956:J=>{function I(s,n){if(!I.services.hasOwnProperty(s))throw new Error("InvalidService: Failed to load api for "+s);return I.services[s][n]}I.services={},J.exports=I},85856:(J,I,s)=>{var n=s(28325),y=s(24593),l=s(7095),e=s(288);J.exports={createHash:function(a){if("md5"===(a=a.toLowerCase()))return new y;if("sha256"===a)return new e;if("sha1"===a)return new l;throw new Error("Hash algorithm "+a+" is not supported in the browser SDK")},createHmac:function(a,o){if("md5"===(a=a.toLowerCase()))return new n(y,o);if("sha256"===a)return new n(e,o);if("sha1"===a)return new n(l,o);throw new Error("HMAC algorithm "+a+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},75513:(J,I,s)=>{var n=s(2341).lW;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(t){return y.indexOf(Object.prototype.toString.call(t))>-1});var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];J.exports={isEmptyData:function(t){return"string"==typeof t?0===t.length:0===t.byteLength},convertToBuffer:function(t){return"string"==typeof t&&(t=new n(t,"utf8")),ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}}},28325:(J,I,s)=>{var n=s(75513);function y(e,t){this.hash=new e,this.outer=new e;var a=function(e,t){var a=n.convertToBuffer(t);if(a.byteLength>e.BLOCK_SIZE){var o=new e;o.update(a),a=o.digest()}var r=new Uint8Array(e.BLOCK_SIZE);return r.set(a),r}(e,t),o=new Uint8Array(e.BLOCK_SIZE);o.set(a);for(var r=0;r<e.BLOCK_SIZE;r++)a[r]^=54,o[r]^=92;for(this.hash.update(a),this.outer.update(o),r=0;r<a.byteLength;r++)a[r]=0}J.exports=y,y.prototype.update=function(e){if(n.isEmptyData(e)||this.error)return this;try{this.hash.update(n.convertToBuffer(e))}catch(t){this.error=t}return this},y.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},24593:(J,I,s)=>{var n=s(75513),y=s(2341).lW;function a(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function o(g,p,T,S,b,A){return((p=(p+g&4294967295)+(S+A&4294967295)&4294967295)<<b|p>>>32-b)+T&4294967295}function r(g,p,T,S,b,A,x){return o(p&T|~p&S,g,p,b,A,x)}function i(g,p,T,S,b,A,x){return o(p&S|T&~S,g,p,b,A,x)}function c(g,p,T,S,b,A,x){return o(p^T^S,g,p,b,A,x)}function d(g,p,T,S,b,A,x){return o(T^(p|~S),g,p,b,A,x)}J.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(g){if(n.isEmptyData(g))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var p=n.convertToBuffer(g),T=0,S=p.byteLength;for(this.bytesHashed+=S;S>0;)this.buffer.setUint8(this.bufferLength++,p[T++]),S--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(g){if(!this.finished){var p=this,T=p.buffer,S=p.bufferLength,A=8*p.bytesHashed;if(T.setUint8(this.bufferLength++,128),S%64>=56){for(var x=this.bufferLength;x<64;x++)T.setUint8(x,0);this.hashBuffer(),this.bufferLength=0}for(x=this.bufferLength;x<56;x++)T.setUint8(x,0);T.setUint32(56,A>>>0,!0),T.setUint32(60,Math.floor(A/4294967296),!0),this.hashBuffer(),this.finished=!0}var G=new DataView(new ArrayBuffer(16));for(x=0;x<4;x++)G.setUint32(4*x,this.state[x],!0);var W=new y(G.buffer,G.byteOffset,G.byteLength);return g?W.toString(g):W},a.prototype.hashBuffer=function(){var p=this.buffer,T=this.state,S=T[0],b=T[1],A=T[2],x=T[3];S=r(S,b,A,x,p.getUint32(0,!0),7,3614090360),x=r(x,S,b,A,p.getUint32(4,!0),12,3905402710),A=r(A,x,S,b,p.getUint32(8,!0),17,606105819),b=r(b,A,x,S,p.getUint32(12,!0),22,3250441966),S=r(S,b,A,x,p.getUint32(16,!0),7,4118548399),x=r(x,S,b,A,p.getUint32(20,!0),12,1200080426),A=r(A,x,S,b,p.getUint32(24,!0),17,2821735955),b=r(b,A,x,S,p.getUint32(28,!0),22,4249261313),S=r(S,b,A,x,p.getUint32(32,!0),7,1770035416),x=r(x,S,b,A,p.getUint32(36,!0),12,2336552879),A=r(A,x,S,b,p.getUint32(40,!0),17,4294925233),b=r(b,A,x,S,p.getUint32(44,!0),22,2304563134),S=r(S,b,A,x,p.getUint32(48,!0),7,1804603682),x=r(x,S,b,A,p.getUint32(52,!0),12,4254626195),A=r(A,x,S,b,p.getUint32(56,!0),17,2792965006),S=i(S,b=r(b,A,x,S,p.getUint32(60,!0),22,1236535329),A,x,p.getUint32(4,!0),5,4129170786),x=i(x,S,b,A,p.getUint32(24,!0),9,3225465664),A=i(A,x,S,b,p.getUint32(44,!0),14,643717713),b=i(b,A,x,S,p.getUint32(0,!0),20,3921069994),S=i(S,b,A,x,p.getUint32(20,!0),5,3593408605),x=i(x,S,b,A,p.getUint32(40,!0),9,38016083),A=i(A,x,S,b,p.getUint32(60,!0),14,3634488961),b=i(b,A,x,S,p.getUint32(16,!0),20,3889429448),S=i(S,b,A,x,p.getUint32(36,!0),5,568446438),x=i(x,S,b,A,p.getUint32(56,!0),9,3275163606),A=i(A,x,S,b,p.getUint32(12,!0),14,4107603335),b=i(b,A,x,S,p.getUint32(32,!0),20,1163531501),S=i(S,b,A,x,p.getUint32(52,!0),5,2850285829),x=i(x,S,b,A,p.getUint32(8,!0),9,4243563512),A=i(A,x,S,b,p.getUint32(28,!0),14,1735328473),S=c(S,b=i(b,A,x,S,p.getUint32(48,!0),20,2368359562),A,x,p.getUint32(20,!0),4,4294588738),x=c(x,S,b,A,p.getUint32(32,!0),11,2272392833),A=c(A,x,S,b,p.getUint32(44,!0),16,1839030562),b=c(b,A,x,S,p.getUint32(56,!0),23,4259657740),S=c(S,b,A,x,p.getUint32(4,!0),4,2763975236),x=c(x,S,b,A,p.getUint32(16,!0),11,1272893353),A=c(A,x,S,b,p.getUint32(28,!0),16,4139469664),b=c(b,A,x,S,p.getUint32(40,!0),23,3200236656),S=c(S,b,A,x,p.getUint32(52,!0),4,681279174),x=c(x,S,b,A,p.getUint32(0,!0),11,3936430074),A=c(A,x,S,b,p.getUint32(12,!0),16,3572445317),b=c(b,A,x,S,p.getUint32(24,!0),23,76029189),S=c(S,b,A,x,p.getUint32(36,!0),4,3654602809),x=c(x,S,b,A,p.getUint32(48,!0),11,3873151461),A=c(A,x,S,b,p.getUint32(60,!0),16,530742520),S=d(S,b=c(b,A,x,S,p.getUint32(8,!0),23,3299628645),A,x,p.getUint32(0,!0),6,4096336452),x=d(x,S,b,A,p.getUint32(28,!0),10,1126891415),A=d(A,x,S,b,p.getUint32(56,!0),15,2878612391),b=d(b,A,x,S,p.getUint32(20,!0),21,4237533241),S=d(S,b,A,x,p.getUint32(48,!0),6,1700485571),x=d(x,S,b,A,p.getUint32(12,!0),10,2399980690),A=d(A,x,S,b,p.getUint32(40,!0),15,4293915773),b=d(b,A,x,S,p.getUint32(4,!0),21,2240044497),S=d(S,b,A,x,p.getUint32(32,!0),6,1873313359),x=d(x,S,b,A,p.getUint32(60,!0),10,4264355552),A=d(A,x,S,b,p.getUint32(24,!0),15,2734768916),b=d(b,A,x,S,p.getUint32(52,!0),21,1309151649),S=d(S,b,A,x,p.getUint32(16,!0),6,4149444226),x=d(x,S,b,A,p.getUint32(44,!0),10,3174756917),A=d(A,x,S,b,p.getUint32(8,!0),15,718787259),b=d(b,A,x,S,p.getUint32(36,!0),21,3951481745),T[0]=S+T[0]&4294967295,T[1]=b+T[1]&4294967295,T[2]=A+T[2]&4294967295,T[3]=x+T[3]&4294967295}},7095:(J,I,s)=>{var n=s(2341).lW,y=s(75513);function r(){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),J.exports=r,r.BLOCK_SIZE=64,r.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(y.isEmptyData(i))return this;var c=(i=y.convertToBuffer(i)).length;this.totalLength+=8*c;for(var d=0;d<c;d++)this.write(i[d]);return this},r.prototype.write=function(c){this.block[this.offset]|=(255&c)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},r.prototype.digest=function(i){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(var c=24;c>=0;c-=8)this.write(this.totalLength>>c);var d=new n(20),g=new DataView(d.buffer);return g.setUint32(0,this.h0,!1),g.setUint32(4,this.h1,!1),g.setUint32(8,this.h2,!1),g.setUint32(12,this.h3,!1),g.setUint32(16,this.h4,!1),i?d.toString(i):d},r.prototype.processBlock=function(){for(var c=16;c<80;c++){var d=this.block[c-3]^this.block[c-8]^this.block[c-14]^this.block[c-16];this.block[c]=d<<1|d>>>31}var A,x,g=this.h0,p=this.h1,T=this.h2,S=this.h3,b=this.h4;for(c=0;c<80;c++){c<20?(A=S^p&(T^S),x=1518500249):c<40?(A=p^T^S,x=1859775393):c<60?(A=p&T|S&(p|T),x=2400959708):(A=p^T^S,x=3395469782);var G=(g<<5|g>>>27)+A+b+x+(0|this.block[c]);b=S,S=T,T=p<<30|p>>>2,p=g,g=G}for(this.h0=this.h0+g|0,this.h1=this.h1+p|0,this.h2=this.h2+T|0,this.h3=this.h3+S|0,this.h4=this.h4+b|0,this.offset=0,c=0;c<16;c++)this.block[c]=0}},288:(J,I,s)=>{var n=s(2341).lW,y=s(75513),t=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]),o=Math.pow(2,53)-1;function r(){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}J.exports=r,r.BLOCK_SIZE=64,r.prototype.update=function(i){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(y.isEmptyData(i))return this;var c=0,d=(i=y.convertToBuffer(i)).byteLength;if(this.bytesHashed+=d,8*this.bytesHashed>o)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;d>0;)this.buffer[this.bufferLength++]=i[c++],d--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},r.prototype.digest=function(i){if(!this.finished){var c=8*this.bytesHashed,d=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),g=this.bufferLength;if(d.setUint8(this.bufferLength++,128),g%64>=56){for(var p=this.bufferLength;p<64;p++)d.setUint8(p,0);this.hashBuffer(),this.bufferLength=0}for(p=this.bufferLength;p<56;p++)d.setUint8(p,0);d.setUint32(56,Math.floor(c/4294967296),!0),d.setUint32(60,c),this.hashBuffer(),this.finished=!0}var T=new n(32);for(p=0;p<8;p++)T[4*p]=this.state[p]>>>24&255,T[4*p+1]=this.state[p]>>>16&255,T[4*p+2]=this.state[p]>>>8&255,T[4*p+3]=this.state[p]>>>0&255;return i?T.toString(i):T},r.prototype.hashBuffer=function(){for(var c=this.buffer,d=this.state,g=d[0],p=d[1],T=d[2],S=d[3],b=d[4],A=d[5],x=d[6],G=d[7],W=0;W<64;W++){if(W<16)this.temp[W]=(255&c[4*W])<<24|(255&c[4*W+1])<<16|(255&c[4*W+2])<<8|255&c[4*W+3];else{var H=this.temp[W-2];this.temp[W]=(((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+this.temp[W-7]|0)+((((H=this.temp[W-15])>>>7|H<<25)^(H>>>18|H<<14)^H>>>3)+this.temp[W-16]|0)}var w=(((b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&A^~b&x)|0)+(G+(t[W]+this.temp[W]|0)|0)|0,u=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&p^g&T^p&T)|0;G=x,x=A,A=b,b=S+w|0,S=T,T=p,p=g,g=w+u|0}d[0]+=g,d[1]+=p,d[2]+=T,d[3]+=S,d[4]+=b,d[5]+=A,d[6]+=x,d[7]+=G}},12885:(J,I,s)=>{var n=s(84964);n.crypto.lib=s(85856),n.Buffer=s(2341).lW,n.url=s(73934),n.querystring=s(93143),n.realClock=s(43984),n.environment="js",n.createEventStream=s(67681).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var y=s(72338);if(J.exports=y,s(43981),s(92567),s(25658),s(54876),s(19e3),s(6932),s(21640),y.XML.Parser=s(681),s(68214),void 0===l)var l={browser:!0}},91654:(J,I,s)=>{var y,n=s(72338);s(43981),s(92567),n.Config=n.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),n.util.each.call(this,this.keys,function(t,a){this.set(t,e[t],a)})},getCredentials:function(e){var c,t=this;function a(c){e(c,c?null:t.credentials)}function o(c,d){return new n.util.error(d||new Error,{code:"CredentialsError",message:c,name:"CredentialsError"})}t.credentials?"function"==typeof t.credentials.get?t.credentials.get(function(c){c&&(c=o("Could not load credentials from "+t.credentials.constructor.name,c)),a(c)}):(c=null,(!t.credentials.accessKeyId||!t.credentials.secretAccessKey)&&(c=o("Missing credentials")),a(c)):t.credentialProvider?t.credentialProvider.resolve(function(c,d){c&&(c=o("Could not load credentials from any providers",c)),t.credentials=d,a(c)}):a(o("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),n.util.each.call(this,e,function(a,o){(t||Object.prototype.hasOwnProperty.call(this.keys,a)||n.Service.hasService(a))&&this.set(a,o)})},loadFromPath:function(e){this.clear();var t=JSON.parse(n.util.readFileSync(e)),a=new n.FileSystemCredentials(e),o=new n.CredentialProviderChain;return o.providers.unshift(a),o.resolve(function(r,i){if(r)throw r;t.credentials=i}),this.constructor(t),this},clear:function(){n.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function(e,t,a){void 0===t?(void 0===a&&(a=this.keys[e]),this[e]="function"==typeof a?a.call(this):a):this[e]="httpOptions"===e&&this[e]?n.util.merge(this[e],t):t},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"},extractCredentials:function(e){return e.accessKeyId&&e.secretAccessKey&&((e=n.util.copy(e)).credentials=new n.Credentials(e)),e},setPromisesDependency:function(e){y=e,null===e&&"function"==typeof Promise&&(y=Promise);var t=[n.Request,n.Credentials,n.CredentialProviderChain];n.S3&&(t.push(n.S3),n.S3.ManagedUpload&&t.push(n.S3.ManagedUpload)),n.util.addPromises(t,y)},getPromisesDependency:function(){return y}}),n.config=new n.Config},98914:(J,I,s)=>{var n=s(72338);function y(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}J.exports=function(e,t){var a;if((e=e||{})[t.clientConfig]&&(a=y(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'}))||!n.util.isNode())return a;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(a=y(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return a;var r={};try{r=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(d){}return r&&Object.prototype.hasOwnProperty.call(r,t.sharedConfig)&&(a=y(r[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+r[t.sharedConfig]+'".'})),a}},72338:(J,I,s)=>{var n={util:s(84964)};({}).toString(),J.exports=n,n.util.update(n,{VERSION:"2.931.0",Signers:{},Protocol:{Json:s(80537),Query:s(78298),Rest:s(51888),RestJson:s(10673),RestXml:s(68683)},XML:{Builder:s(39244),Parser:null},JSON:{Builder:s(70720),Parser:s(46179)},Model:{Api:s(68734),Operation:s(65105),Shape:s(74822),Paginator:s(68140),ResourceWaiter:s(72820)},apiLoader:s(29956),EndpointCache:s(28937).$}),s(31893),s(70014),s(91654),s(99794),s(23758),s(60782),s(53871),s(11277),s(15198),s(65758),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",function(){return new n.EndpointCache(n.config.endpointCacheSize)},!0)},43981:(J,I,s)=>{var n=s(72338);n.Credentials=n.util.inherit({constructor:function(){if(n.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=n.util.date.getDate().getTime(),e=new Date(l+1e3*this.expiryWindow);return!!(this.expireTime&&e>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(l){var e=this;this.needsRefresh()?this.refresh(function(t){t||(e.expired=!1),l&&l(t)}):l&&l()},refresh:function(l){this.expired=!1,l()},coalesceRefresh:function(l,e){var t=this;1===t.refreshCallbacks.push(l)&&t.load(function(o){n.util.arrayEach(t.refreshCallbacks,function(r){e?r(o):n.util.defer(function(){r(o)})}),t.refreshCallbacks.length=0})},load:function(l){l()}}),n.Credentials.addPromisesToClass=function(l){this.prototype.getPromise=n.util.promisifyMethod("get",l),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",l)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},54876:(J,I,s)=>{var n=s(72338),y=s(84032);n.ChainableTemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),e=e||{},this.errorCode="ChainableTemporaryCredentialsProviderFailure",this.expired=!0,this.tokenCodeFn=null;var t=n.util.copy(e.params)||{};if(t.RoleArn&&(t.RoleSessionName=t.RoleSessionName||"temporary-credentials"),t.SerialNumber){if(!e.tokenCodeFn||"function"!=typeof e.tokenCodeFn)throw new n.util.error(new Error("tokenCodeFn must be a function when params.SerialNumber is given"),{code:this.errorCode});this.tokenCodeFn=e.tokenCodeFn}var a=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new y(a)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,a=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(o,r){var i={};o?e(o):(r&&(i.TokenCode=r),t.service[a](i,function(c,d){c||t.service.credentialsFrom(d,t),e(c)}))})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(a,o){if(a){var r=a;return a instanceof Error&&(r=a.message),void e(n.util.error(new Error("Error fetching MFA token: "+r),{code:t.errorCode}))}e(null,o)}):e(null)}})},6932:(J,I,s)=>{var n=s(72338),y=s(83073),l=s(84032);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(t,a){n.Credentials.call(this),this.expired=!0,this.params=t,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(a||{}),this.loadCachedId();var o=this;Object.defineProperty(this,"identityId",{get:function(){return o.loadCachedId(),o._identityId||o.params.IdentityId},set:function(r){o._identityId=r}})},refresh:function(t){this.coalesceRefresh(t||n.util.fn.callback)},load:function(t){var a=this;a.createClients(),a.data=null,a._identityId=null,a.getId(function(o){o?(a.clearIdOnNotAuthorized(o),t(o)):a.params.RoleArn?a.getCredentialsFromSTS(t):a.getCredentialsForIdentity(t)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var t=this.params.IdentityPoolId,a=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+t+a],delete this.storage[this.localStorageKey.providers+t+a]},clearIdOnNotAuthorized:function(t){"NotAuthorizedException"==t.code&&this.clearCachedId()},getId:function(t){var a=this;if("string"==typeof a.params.IdentityId)return t(null,a.params.IdentityId);a.cognito.getId(function(o,r){!o&&r.IdentityId?(a.params.IdentityId=r.IdentityId,t(null,r.IdentityId)):t(o)})},loadCredentials:function(t,a){!t||!a||(a.expired=!1,a.accessKeyId=t.Credentials.AccessKeyId,a.secretAccessKey=t.Credentials.SecretKey,a.sessionToken=t.Credentials.SessionToken,a.expireTime=t.Credentials.Expiration)},getCredentialsForIdentity:function(t){var a=this;a.cognito.getCredentialsForIdentity(function(o,r){o?a.clearIdOnNotAuthorized(o):(a.cacheId(r),a.data=r,a.loadCredentials(a.data,a)),t(o)})},getCredentialsFromSTS:function(t){var a=this;a.cognito.getOpenIdToken(function(o,r){o?(a.clearIdOnNotAuthorized(o),t(o)):(a.cacheId(r),a.params.WebIdentityToken=r.Token,a.webIdentityCredentials.refresh(function(i){i||(a.data=a.webIdentityCredentials.data,a.sts.credentialsFrom(a.data,a)),t(i)}))})},loadCachedId:function(){var t=this;if(n.util.isBrowser()&&!t.params.IdentityId){var a=t.getStorage("id");if(a&&t.params.Logins){var o=Object.keys(t.params.Logins);0!==(t.getStorage("providers")||"").split(",").filter(function(c){return-1!==o.indexOf(c)}).length&&(t.params.IdentityId=a)}else a&&(t.params.IdentityId=a)}},createClients:function(){var e=this._clientConfig;if(this.webIdentityCredentials=this.webIdentityCredentials||new n.WebIdentityCredentials(this.params,e),!this.cognito){var t=n.util.merge({},e);t.params=this.params,this.cognito=new y(t)}this.sts=this.sts||new l(e)},cacheId:function(t){this._identityId=t.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",t.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(t){return this.storage[this.localStorageKey[t]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(t,a){try{this.storage[this.localStorageKey[t]+this.params.IdentityPoolId+(this.params.LoginId||"")]=a}catch(o){}},storage:function(){try{var e=n.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{};return e["aws.test-storage"]="foobar",delete e["aws.test-storage"],e}catch(t){return{}}}()})},92567:(J,I,s)=>{var n=s(72338);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(l){this.providers=l||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(l){var e=this;if(0===e.providers.length)return l(new Error("No providers")),e;if(1===e.resolveCallbacks.push(l)){let r=function(i,c){if(!i&&c||t===a.length)return n.util.arrayEach(e.resolveCallbacks,function(g){g(i,c)}),void(e.resolveCallbacks.length=0);var d=a[t++];(c="function"==typeof d?d.call():d).get?c.get(function(g){r(g,g?null:c)}):r(null,c)};var t=0,a=e.providers.slice(0);r()}return e}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(l){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",l)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},21640:(J,I,s)=>{var n=s(72338),y=s(84032);n.SAMLCredentials=n.util.inherit(n.Credentials,{constructor:function(e){n.Credentials.call(this),this.expired=!0,this.params=e},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithSAML(function(a,o){a||t.service.credentialsFrom(o,t),e(a)})},createClients:function(){this.service=this.service||new y({params:this.params})}})},25658:(J,I,s)=>{var n=s(72338),y=s(84032);n.TemporaryCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.loadMasterCredentials(t),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.masterCredentials.get(function(){t.service.config.credentials=t.masterCredentials,(t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken).call(t.service,function(o,r){o||t.service.credentialsFrom(r,t),e(o)})})},loadMasterCredentials:function(e){for(this.masterCredentials=e||n.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials;"function"!=typeof this.masterCredentials.get&&(this.masterCredentials=new n.Credentials(this.masterCredentials))},createClients:function(){this.service=this.service||new y({params:this.params})}})},19e3:(J,I,s)=>{var n=s(72338),y=s(84032);n.WebIdentityCredentials=n.util.inherit(n.Credentials,{constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null,this._clientConfig=n.util.copy(t||{})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.service.assumeRoleWithWebIdentity(function(a,o){t.data=null,a||(t.data=o,t.service.credentialsFrom(o,t)),e(a)})},createClients:function(){if(!this.service){var l=n.util.merge({},this._clientConfig);l.params=this.params,this.service=new y(l)}}})},73157:(J,I,s)=>{var n=s(72338),y=s(84964),l=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function e(b){var A=b.service,x=A.api||{},W={};return A.config.region&&(W.region=A.config.region),x.serviceId&&(W.serviceId=x.serviceId),A.config.credentials.accessKeyId&&(W.accessKeyId=A.config.credentials.accessKeyId),W}function t(b,A,x){!x||null==A||"structure"===x.type&&x.required&&x.required.length>0&&y.arrayEach(x.required,function(G){var W=x.members[G];!0===W.endpointDiscoveryId?b[W.isLocationName?W.name:G]=String(A[G]):t(b,A[G],W)})}function a(b,A){var x={};return t(x,b.params,A),x}function o(b){var A=b.service,x=A.api,G=x.operations?x.operations[b.operation]:void 0,H=a(b,G?G.input:void 0),B=e(b);Object.keys(H).length>0&&(B=y.update(B,H),G&&(B.operation=G.name));var m=n.endpointCache.get(B);if(!m||1!==m.length||""!==m[0].Address)if(m&&m.length>0)b.httpRequest.updateEndpoint(m[0].Address);else{var w=A.makeRequest(x.endpointOperation,{Operation:G.name,Identifiers:H});c(w),w.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),w.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(B,[{Address:"",CachePeriodInMinutes:1}]),w.send(function(u,v){v&&v.Endpoints?n.endpointCache.put(B,v.Endpoints):u&&n.endpointCache.put(B,[{Address:"",CachePeriodInMinutes:1}])})}}var r={};function i(b,A){var x=b.service,G=x.api,W=G.operations?G.operations[b.operation]:void 0,B=a(b,W?W.input:void 0),m=e(b);Object.keys(B).length>0&&(m=y.update(m,B),W&&(m.operation=W.name));var w=n.EndpointCache.getKeyString(m),u=n.endpointCache.get(w);if(u&&1===u.length&&""===u[0].Address)return r[w]||(r[w]=[]),void r[w].push({request:b,callback:A});if(u&&u.length>0)b.httpRequest.updateEndpoint(u[0].Address),A();else{var v=x.makeRequest(G.endpointOperation,{Operation:W.name,Identifiers:B});v.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),c(v),n.endpointCache.put(w,[{Address:"",CachePeriodInMinutes:60}]),v.send(function(h,R){h?(b.response.error=y.error(h,{retryable:!1}),n.endpointCache.remove(m),r[w]&&(y.arrayEach(r[w],function(P){P.request.response.error=y.error(h,{retryable:!1}),P.callback()}),delete r[w])):R&&(n.endpointCache.put(w,R.Endpoints),b.httpRequest.updateEndpoint(R.Endpoints[0].Address),r[w])&&(y.arrayEach(r[w],function(U){U.request.httpRequest.updateEndpoint(R.Endpoints[0].Address),U.callback()}),delete r[w]),A()})}}function c(b){var x=b.service.api.apiVersion;x&&!b.httpRequest.headers["x-amz-api-version"]&&(b.httpRequest.headers["x-amz-api-version"]=x)}function d(b){var A=b.error;if(A&&("InvalidEndpointException"===A.code||421===b.httpResponse.statusCode)){var G=b.request,W=G.service.api.operations||{},B=a(G,W[G.operation]?W[G.operation].input:void 0),m=e(G);Object.keys(B).length>0&&(m=y.update(m,B),W[G.operation]&&(m.operation=W[G.operation].name)),n.endpointCache.remove(m)}}function p(b){return["false","0"].indexOf(b)>=0}J.exports={discoverEndpoint:function(b,A){var x=b.service||{};if(function(b){if(b._originalConfig&&b._originalConfig.endpoint&&!0===b._originalConfig.endpointDiscoveryEnabled)throw y.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(n.config.endpoint||(n.config[b.serviceIdentifier]||{}).endpoint||b._originalConfig&&b._originalConfig.endpoint)}(x)||b.isPresigned())return A();var W=(x.api.operations||{})[b.operation],H=W?W.endpointDiscoveryRequired:"NULL",B=function(b){var A=b.service||{};if(void 0!==A.config.endpointDiscoveryEnabled)return A.config.endpointDiscoveryEnabled;if(!y.isBrowser()){for(var x=0;x<l.length;x++){var G=l[x];if(Object.prototype.hasOwnProperty.call(process.env,G)){if(""===process.env[G]||void 0===process.env[G])throw y.error(new Error,{code:"ConfigurationException",message:"environmental variable "+G+" cannot be set to nothing"});return!p(process.env[G])}}var W={};try{W=n.util.iniLoader?n.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[n.util.sharedConfigFileEnv]}):{}}catch(B){}var H=W[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(H,"endpoint_discovery_enabled")){if(void 0===H.endpoint_discovery_enabled)throw y.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!p(H.endpoint_discovery_enabled)}}}(b),m=x.api.hasRequiredEndpointDiscovery;switch((B||m)&&b.httpRequest.appendToUserAgent("endpoint-discovery"),H){case"OPTIONAL":(B||m)&&(o(b),b.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d)),A();break;case"REQUIRED":if(!1===B){b.response.error=y.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+x.api.className+"."+b.operation+"() requires it. Please check your configurations."}),A();break}b.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",d),i(b,A);break;case"NULL":default:A()}},requiredDiscoverEndpoint:i,optionalDiscoverEndpoint:o,marshallCustomIdentifiers:a,getCacheKey:e,invalidateCachedEndpoint:d}},67681:(J,I,s)=>{var n=s(36262).eventMessageChunker,y=s(26505).parseEvent;J.exports={createEventStream:function(e,t,a){for(var o=n(e),r=[],i=0;i<o.length;i++)r.push(y(t,o[i],a));return r}}},36262:J=>{J.exports={eventMessageChunker:function(s){for(var n=[],y=0;y<s.length;){var l=s.readInt32BE(y),e=s.slice(y,l+y);y+=l,n.push(e)}return n}}},57976:(J,I,s)=>{var n=s(72338).util,y=n.buffer.toBuffer;function l(t){if(8!==t.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(t)||(t=y(t)),this.bytes=t}function e(t){for(var a=0;a<8;a++)t[a]^=255;for(a=7;a>-1&&(t[a]++,0===t[a]);a--);}l.fromNumber=function(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var a=new Uint8Array(8),o=7,r=Math.abs(Math.round(t));o>-1&&r>0;o--,r/=256)a[o]=r;return t<0&&e(a),new l(a)},l.prototype.valueOf=function(){var t=this.bytes.slice(0),a=128&t[0];return a&&e(t),parseInt(t.toString("hex"),16)*(a?-1:1)},l.prototype.toString=function(){return String(this.valueOf())},J.exports={Int64:l}},26505:(J,I,s)=>{var n=s(86147).parseMessage;J.exports={parseEvent:function(e,t,a){var o=n(t),r=o.headers[":message-type"];if(r){if("error"===r.value)throw function(e){var t=e.headers[":error-code"],a=e.headers[":error-message"],o=new Error(a.value||a);return o.code=o.name=t.value||t,o}(o);if("event"!==r.value)return}var i=o.headers[":event-type"],c=a.members[i.value];if(c){var d={},g=c.eventPayloadMemberName;if(g){var p=c.members[g];d[g]="binary"===p.type?o.body:e.parse(o.body.toString(),p)}for(var T=c.eventHeaderMemberNames,S=0;S<T.length;S++){var b=T[S];o.headers[b]&&(d[b]=c.members[b].toType(o.headers[b].value))}var A={};return A[i.value]=d,A}}}},86147:(J,I,s)=>{var n=s(57976).Int64,y=s(30483).splitMessage,l="boolean";function g(T){for(var S={},b=0;b<T.length;){var A=T.readUInt8(b++),x=T.slice(b,b+A).toString();switch(b+=A,T.readUInt8(b++)){case 0:S[x]={type:l,value:!0};break;case 1:S[x]={type:l,value:!1};break;case 2:S[x]={type:"byte",value:T.readInt8(b++)};break;case 3:S[x]={type:"short",value:T.readInt16BE(b)},b+=2;break;case 4:S[x]={type:"integer",value:T.readInt32BE(b)},b+=4;break;case 5:S[x]={type:"long",value:new n(T.slice(b,b+8))},b+=8;break;case 6:var G=T.readUInt16BE(b);S[x]={type:"binary",value:T.slice(b+=2,b+G)},b+=G;break;case 7:var W=T.readUInt16BE(b);S[x]={type:"string",value:T.slice(b+=2,b+W).toString()},b+=W;break;case 8:S[x]={type:"timestamp",value:new Date(new n(T.slice(b,b+8)).valueOf())},b+=8;break;case 9:var H=T.slice(b,b+16).toString("hex");b+=16,S[x]={type:"uuid",value:H.substr(0,8)+"-"+H.substr(8,4)+"-"+H.substr(12,4)+"-"+H.substr(16,4)+"-"+H.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return S}J.exports={parseMessage:function(T){var S=y(T);return{headers:g(S.headers),body:S.body}}}},30483:(J,I,s)=>{var n=s(72338).util,y=n.buffer.toBuffer;J.exports={splitMessage:function(r){if(n.Buffer.isBuffer(r)||(r=y(r)),r.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(r.length!==r.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var i=r.readUInt32BE(8);if(i!==n.crypto.crc32(r.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+i+") does not match the calculated CRC32 checksum.");var c=r.readUInt32BE(r.length-4);if(c!==n.crypto.crc32(r.slice(0,r.length-4)))throw new Error("The message checksum did not match the expected value of "+c);var g=12+r.readUInt32BE(4);return{headers:r.slice(12,g),body:r.slice(g,r.length-4)}}}},23758:(J,I,s)=>{var n=s(72338),y=s(31893),l=s(73157).discoverEndpoint;n.EventListeners={Core:{}},n.EventListeners={Core:(new y).addNamedListeners(function(t,a){a("VALIDATE_CREDENTIALS","validate",function(i,c){if(!i.service.api.signatureVersion&&!i.service.config.signatureVersion)return c();i.service.config.getCredentials(function(d){d&&(i.response.error=n.util.error(d,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),c()})}),t("VALIDATE_REGION","validate",function(i){if(!i.service.isGlobalEndpoint){var c=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);i.service.config.region?c.test(i.service.config.region)||(i.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):i.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),t("BUILD_IDEMPOTENCY_TOKENS","validate",function(i){if(i.service.api.operations){var c=i.service.api.operations[i.operation];if(c){var d=c.idempotentMembers;if(d.length){for(var g=n.util.copy(i.params),p=0,T=d.length;p<T;p++)g[d[p]]||(g[d[p]]=n.util.uuid.v4());i.params=g}}}}),t("VALIDATE_PARAMETERS","validate",function(i){if(i.service.api.operations){var c=i.service.api.operations[i.operation].input;new n.ParamValidator(i.service.config.paramValidation).validate(c,i.params)}}),t("COMPUTE_CHECKSUM","afterBuild",function(i){if(i.service.api.operations){var c=i.service.api.operations[i.operation];if(c){var d=i.httpRequest.body,g=d&&(n.util.Buffer.isBuffer(d)||"string"==typeof d),p=i.httpRequest.headers;if(c.httpChecksumRequired&&i.service.config.computeChecksums&&g&&i.service.getSignerClass(i)===n.Signers.V4&&!p["Content-MD5"]){var T=n.util.crypto.md5(d,"base64");p["Content-MD5"]=T}}}}),a("COMPUTE_SHA256","afterBuild",function(i,c){if(i.haltHandlersOnError(),i.service.api.operations){var d=i.service.api.operations[i.operation],g=d?d.authtype:"";if(!i.service.api.signatureVersion&&!g&&!i.service.config.signatureVersion)return c();if(i.service.getSignerClass(i)===n.Signers.V4){var p=i.httpRequest.body||"";if(g.indexOf("unsigned-body")>=0)return i.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",c();n.util.computeSha256(p,function(T,S){T?c(T):(i.httpRequest.headers["X-Amz-Content-Sha256"]=S,c())})}else c()}}),t("SET_CONTENT_LENGTH","afterBuild",function(i){var c=function(t){if(!t.service.api.operations)return"";var a=t.service.api.operations[t.operation];return a?a.authtype:""}(i),d=n.util.getRequestPayloadShape(i);if(void 0===i.httpRequest.headers["Content-Length"])try{var g=n.util.string.byteLength(i.httpRequest.body);i.httpRequest.headers["Content-Length"]=g}catch(p){if(d&&d.isStreaming){if(d.requiresLength)throw p;if(c.indexOf("unsigned-body")>=0)return void(i.httpRequest.headers["Transfer-Encoding"]="chunked");throw p}throw p}}),t("SET_HTTP_HOST","afterBuild",function(i){i.httpRequest.headers.Host=i.httpRequest.endpoint.host}),t("RESTART","restart",function(){var i=this.response.error;!i||!i.retryable||(this.httpRequest=new n.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),a("DISCOVER_ENDPOINT","sign",l,!0),a("SIGN","sign",function(i,c){var d=i.service,p=(i.service.api.operations||{})[i.operation];if(!(d.api.signatureVersion||p&&p.authtype||d.config.signatureVersion))return c();d.config.getCredentials(function(S,b){if(S)return i.response.error=S,c();try{var A=d.getSkewCorrectedDate(),G=new(d.getSignerClass(i))(i.httpRequest,d.getSigningName(i),{signatureCache:d.config.signatureCache,operation:p,signatureVersion:d.api.signatureVersion});G.setServiceClientId(d._clientId),delete i.httpRequest.headers.Authorization,delete i.httpRequest.headers.Date,delete i.httpRequest.headers["X-Amz-Date"],G.addAuthorization(b,A),i.signedAt=A}catch(W){i.response.error=W}c()})}),t("VALIDATE_RESPONSE","validateResponse",function(i){this.service.successfulResponse(i,this)?(i.data={},i.error=null):(i.data=null,i.error=n.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),a("SEND","send",function(i,c){function d(b){i.httpResponse.stream=b;var A=i.request.httpRequest.stream,x=i.request.service,H=x.api.operations[i.request.operation]||{};b.on("headers",function(m,w,u){if(i.request.emit("httpHeaders",[m,w,i,u]),!i.httpResponse.streaming)if(2===n.HttpClient.streamsApiVersion){if(H.hasEventOutput&&x.successfulResponse(i))return i.request.emit("httpDone"),void c();b.on("readable",function(){var h=b.read();null!==h&&i.request.emit("httpData",[h,i])})}else b.on("data",function(h){i.request.emit("httpData",[h,i])})}),b.on("end",function(){if(!A||!A.didCallback){if(2===n.HttpClient.streamsApiVersion&&H.hasEventOutput&&x.successfulResponse(i))return;i.request.emit("httpDone"),c()}})}function p(b){"RequestAbortedError"!==b.code&&(b=n.util.error(b,{code:"TimeoutError"===b.code?b.code:"NetworkingError",region:i.request.httpRequest.region,hostname:i.request.httpRequest.endpoint.hostname,retryable:!0})),i.error=b,i.request.emit("httpError",[i.error,i],function(){c()})}function T(){var b=n.HttpClient.getInstance(),A=i.request.service.config.httpOptions||{};try{!function(b){b.on("sendProgress",function(x){i.request.emit("httpUploadProgress",[x,i])}),b.on("receiveProgress",function(x){i.request.emit("httpDownloadProgress",[x,i])})}(b.handleRequest(i.request.httpRequest,A,d,p))}catch(G){p(G)}}i.httpResponse._abortCallback=c,i.error=null,i.data=null,(i.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(b){b?c(b):T()}):T()}),t("HTTP_HEADERS","httpHeaders",function(i,c,d,g){d.httpResponse.statusCode=i,d.httpResponse.statusMessage=g,d.httpResponse.headers=c,d.httpResponse.body=n.util.buffer.toBuffer(""),d.httpResponse.buffers=[],d.httpResponse.numBytes=0;var p=c.date||c.Date,T=d.request.service;if(p){var S=Date.parse(p);T.config.correctClockSkew&&T.isClockSkewed(S)&&T.applyClockOffset(S)}}),t("HTTP_DATA","httpData",function(i,c){i&&(n.util.isNode()&&(c.httpResponse.numBytes+=i.length,c.request.emit("httpDownloadProgress",[{loaded:c.httpResponse.numBytes,total:c.httpResponse.headers["content-length"]},c])),c.httpResponse.buffers.push(n.util.buffer.toBuffer(i)))}),t("HTTP_DONE","httpDone",function(i){if(i.httpResponse.buffers&&i.httpResponse.buffers.length>0){var c=n.util.buffer.concat(i.httpResponse.buffers);i.httpResponse.body=c}delete i.httpResponse.numBytes,delete i.httpResponse.buffers}),t("FINALIZE_ERROR","retry",function(i){i.httpResponse.statusCode&&(i.error.statusCode=i.httpResponse.statusCode,void 0===i.error.retryable&&(i.error.retryable=this.service.retryableError(i.error,this)))}),t("INVALIDATE_CREDENTIALS","retry",function(i){if(i.error)switch(i.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":i.error.retryable=!0,i.request.service.config.credentials.expired=!0}}),t("EXPIRED_SIGNATURE","retry",function(i){var c=i.error;!c||"string"==typeof c.code&&"string"==typeof c.message&&c.code.match(/Signature/)&&c.message.match(/expired/)&&(i.error.retryable=!0)}),t("CLOCK_SKEWED","retry",function(i){!i.error||this.service.clockSkewError(i.error)&&this.service.config.correctClockSkew&&(i.error.retryable=!0)}),t("REDIRECT","retry",function(i){i.error&&i.error.statusCode>=300&&i.error.statusCode<400&&i.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(i.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,i.error.redirect=!0,i.error.retryable=!0)}),t("RETRY_CHECK","retry",function(i){i.error&&(i.error.redirect&&i.redirectCount<i.maxRedirects?i.error.retryDelay=0:i.retryCount<i.maxRetries&&(i.error.retryDelay=this.service.retryDelays(i.retryCount,i.error)||0))}),a("RESET_RETRY_STATE","afterRetry",function(i,c){var d,g=!1;i.error&&(d=i.error.retryDelay||0,i.error.retryable&&i.retryCount<i.maxRetries?(i.retryCount++,g=!0):i.error.redirect&&i.redirectCount<i.maxRedirects&&(i.redirectCount++,g=!0)),g&&d>=0?(i.error=null,setTimeout(c,d)):c()})}),CorePost:(new y).addNamedListeners(function(t){t("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),t("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),t("ENOTFOUND_ERROR","httpError",function(o){var c;"NetworkingError"===o.code&&("ENOTFOUND"===(c=o).errno||"number"==typeof c.errno&&"function"==typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(c.errno)>=0))&&(this.response.error=n.util.error(new Error("Inaccessible host: `"+o.hostname+"'. This service may not be available in the `"+o.region+"' region."),{code:"UnknownEndpoint",region:o.region,hostname:o.hostname,retryable:!0,originalError:o}))})}),Logger:(new y).addNamedListeners(function(t){t("LOG_REQUEST","complete",function(o){var r=o.request,i=r.service.config.logger;if(i){var g=function(){var T=(o.request.service.getSkewCorrectedDate().getTime()-r.startTime.getTime())/1e3,S=!!i.isTTY,b=o.httpResponse.statusCode,A=r.params;r.service.api.operations&&r.service.api.operations[r.operation]&&r.service.api.operations[r.operation].input&&(A=c(r.service.api.operations[r.operation].input,r.params));var G=s(55620).inspect(A,!0,null),W="";return S&&(W+="\x1b[33m"),W+="[AWS "+r.service.serviceIdentifier+" "+b,W+=" "+T.toString()+"s "+o.retryCount+" retries]",S&&(W+="\x1b[0;1m"),W+=" "+n.util.string.lowerFirst(r.operation),W+="("+G+")",S&&(W+="\x1b[0m"),W}();"function"==typeof i.log?i.log(g):"function"==typeof i.write&&i.write(g+"\n")}function c(p,T){if(!T)return T;if(p.isSensitive)return"***SensitiveInformation***";switch(p.type){case"structure":var S={};return n.util.each(T,function(x,G){S[x]=Object.prototype.hasOwnProperty.call(p.members,x)?c(p.members[x],G):G}),S;case"list":var b=[];return n.util.arrayEach(T,function(x,G){b.push(c(p.member,x))}),b;case"map":var A={};return n.util.each(T,function(x,G){A[x]=c(p.value,G)}),A;default:return T}}})}),Json:(new y).addNamedListeners(function(t){var a=s(80537);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),Rest:(new y).addNamedListeners(function(t){var a=s(51888);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),RestJson:(new y).addNamedListeners(function(t){var a=s(10673);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),RestXml:(new y).addNamedListeners(function(t){var a=s(68683);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)}),Query:(new y).addNamedListeners(function(t){var a=s(78298);t("BUILD","build",a.buildRequest),t("EXTRACT_DATA","extractData",a.extractData),t("EXTRACT_ERROR","extractError",a.extractError)})}},99794:(J,I,s)=>{var n=s(72338),y=n.util.inherit;n.Endpoint=y({constructor:function(e,t){if(n.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return n.util.copy(e);e.match(/^http/)||(e=((t&&void 0!==t.sslEnabled?t.sslEnabled:n.config.sslEnabled)?"https":"http")+"://"+e),n.util.update(this,n.util.urlParse(e)),this.port=this.port?parseInt(this.port,10):"https:"===this.protocol?443:80}}),n.HttpRequest=y({constructor:function(e,t){e=new n.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=n.util.userAgent()},getUserAgentHeaderName:function(){return(n.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(e){"string"==typeof e&&e&&(this._userAgent+=" "+e),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var e=this.path.split("?",2)[1];return e?(e=n.util.queryStringParse(e),n.util.queryParamsToString(e)):""},updateEndpoint:function(e){var t=new n.Endpoint(e);this.endpoint=t,this.path=t.path||"/",this.headers.Host&&(this.headers.Host=t.host)}}),n.HttpResponse=y({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}}),n.HttpClient=y({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},68214:(J,I,s)=>{var n=s(72338),y=s(14943).EventEmitter;s(99794),n.XHRClient=n.util.inherit({handleRequest:function(e,t,a,o){var r=this,i=e.endpoint,c=new y,d=i.protocol+"//"+i.hostname;80!==i.port&&443!==i.port&&(d+=":"+i.port),d+=e.path;var g=new XMLHttpRequest,p=!1;e.stream=g,g.addEventListener("readystatechange",function(){try{if(0===g.status)return}catch(T){return}this.readyState>=this.HEADERS_RECEIVED&&!p&&(c.statusCode=g.status,c.headers=r.parseHeaders(g.getAllResponseHeaders()),c.emit("headers",c.statusCode,c.headers,g.statusText),p=!0),this.readyState===this.DONE&&r.finishRequest(g,c)},!1),g.upload.addEventListener("progress",function(T){c.emit("sendProgress",T)}),g.addEventListener("progress",function(T){c.emit("receiveProgress",T)},!1),g.addEventListener("timeout",function(){o(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),g.addEventListener("error",function(){o(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),g.addEventListener("abort",function(){o(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),a(c),g.open(e.method,d,!1!==t.xhrAsync),n.util.each(e.headers,function(T,S){"Content-Length"!==T&&"User-Agent"!==T&&"Host"!==T&&g.setRequestHeader(T,S)}),t.timeout&&!1!==t.xhrAsync&&(g.timeout=t.timeout),t.xhrWithCredentials&&(g.withCredentials=!0);try{g.responseType="arraybuffer"}catch(T){}try{e.body?g.send(e.body):g.send()}catch(T){if(!e.body||"object"!=typeof e.body.buffer)throw T;g.send(e.body.buffer)}return c},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),function(a){var o=a.split(":",1)[0],r=a.substring(o.length+2);o.length>0&&(t[o.toLowerCase()]=r)}),t},finishRequest:function(e,t){var a;if("arraybuffer"===e.responseType&&e.response){var o=e.response;a=new n.util.Buffer(o.byteLength);for(var r=new Uint8Array(o),i=0;i<a.length;++i)a[i]=r[i]}try{!a&&"string"==typeof e.responseText&&(a=new n.util.Buffer(e.responseText))}catch(c){}a&&t.emit("data",a),t.emit("end")}}),n.HttpClient.prototype=n.XHRClient.prototype,n.HttpClient.streamsApiVersion=1},70720:(J,I,s)=>{var n=s(84964);function y(){}function l(r,i){if(i&&null!=r)switch(i.type){case"structure":return function(r,i){var c={};return n.each(r,function(d,g){var p=i.members[d];if(p){if("body"!==p.location)return;var T=p.isLocationName?p.name:d,S=l(g,p);void 0!==S&&(c[T]=S)}}),c}(r,i);case"map":return function(r,i){var c={};return n.each(r,function(d,g){var p=l(g,i.value);void 0!==p&&(c[d]=p)}),c}(r,i);case"list":return function(r,i){var c=[];return n.arrayEach(r,function(d){var g=l(d,i.member);void 0!==g&&c.push(g)}),c}(r,i);default:return function(r,i){return i.toWireFormat(r)}(r,i)}}y.prototype.build=function(r,i){return JSON.stringify(l(r,i))},J.exports=y},46179:(J,I,s)=>{var n=s(84964);function y(){}function l(r,i){if(i&&void 0!==r)switch(i.type){case"structure":return function(r,i){if(null!=r){var c={};return n.each(i.members,function(g,p){var T=p.isLocationName?p.name:g;if(Object.prototype.hasOwnProperty.call(r,T)){var b=l(r[T],p);void 0!==b&&(c[g]=b)}}),c}}(r,i);case"map":return function(r,i){if(null!=r){var c={};return n.each(r,function(d,g){var p=l(g,i.value);c[d]=void 0===p?null:p}),c}}(r,i);case"list":return function(r,i){if(null!=r){var c=[];return n.arrayEach(r,function(d){var g=l(d,i.member);c.push(void 0===g?null:g)}),c}}(r,i);default:return function(r,i){return i.toType(r)}(r,i)}}y.prototype.parse=function(r,i){return l(JSON.parse(r),i)},J.exports=y},68734:(J,I,s)=>{var n=s(50767),y=s(65105),l=s(74822),e=s(68140),t=s(72820),a=s(65359),o=s(84964),r=o.property,i=o.memoizedProperty;J.exports=function(d,g){var p=this;d=d||{},(g=g||{}).api=this,d.metadata=d.metadata||{};var T=g.serviceIdentifier;delete g.serviceIdentifier,r(this,"isApi",!0,!1),r(this,"apiVersion",d.metadata.apiVersion),r(this,"endpointPrefix",d.metadata.endpointPrefix),r(this,"signingName",d.metadata.signingName),r(this,"globalEndpoint",d.metadata.globalEndpoint),r(this,"signatureVersion",d.metadata.signatureVersion),r(this,"jsonVersion",d.metadata.jsonVersion),r(this,"targetPrefix",d.metadata.targetPrefix),r(this,"protocol",d.metadata.protocol),r(this,"timestampFormat",d.metadata.timestampFormat),r(this,"xmlNamespaceUri",d.metadata.xmlNamespace),r(this,"abbreviation",d.metadata.serviceAbbreviation),r(this,"fullName",d.metadata.serviceFullName),r(this,"serviceId",d.metadata.serviceId),T&&a[T]&&r(this,"xmlNoDefaultLists",a[T].xmlNoDefaultLists,!1),i(this,"className",function(){var b=d.metadata.serviceAbbreviation||d.metadata.serviceFullName;return b?("ElasticLoadBalancing"===(b=b.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(b="ELB"),b):null}),r(this,"operations",new n(d.operations,g,function(b,A){return new y(b,A,g)},o.string.lowerFirst,function(b,A){!0===A.endpointoperation&&r(p,"endpointOperation",o.string.lowerFirst(b)),A.endpointdiscovery&&!p.hasRequiredEndpointDiscovery&&r(p,"hasRequiredEndpointDiscovery",!0===A.endpointdiscovery.required)})),r(this,"shapes",new n(d.shapes,g,function(b,A){return l.create(A,g)})),r(this,"paginators",new n(d.paginators,g,function(b,A){return new e(b,A,g)})),r(this,"waiters",new n(d.waiters,g,function(b,A){return new t(b,A,g)},o.string.lowerFirst)),g.documentation&&(r(this,"documentation",d.documentation),r(this,"documentationUrl",d.documentationUrl))}},50767:(J,I,s)=>{var n=s(84964).memoizedProperty;function y(e,t,a,o){n(this,o(e),function(){return a(e,t)})}J.exports=function(e,t,a,o,r){for(var c in o=o||String,e)Object.prototype.hasOwnProperty.call(e,c)&&(y.call(this,c,e[c],a,o),r&&r(c,e[c]))}},65105:(J,I,s)=>{var n=s(74822),y=s(84964),l=y.property,e=y.memoizedProperty;J.exports=function(o,r,i){var c=this;i=i||{},l(this,"name",r.name||o),l(this,"api",i.api,!1),r.http=r.http||{},l(this,"endpoint",r.endpoint),l(this,"httpMethod",r.http.method||"POST"),l(this,"httpPath",r.http.requestUri||"/"),l(this,"authtype",r.authtype||""),l(this,"endpointDiscoveryRequired",r.endpointdiscovery?r.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),l(this,"httpChecksumRequired",r.httpChecksumRequired,!1),e(this,"input",function(){return r.input?n.create(r.input,i):new n.create({type:"structure"},i)}),e(this,"output",function(){return r.output?n.create(r.output,i):new n.create({type:"structure"},i)}),e(this,"errors",function(){var d=[];if(!r.errors)return null;for(var g=0;g<r.errors.length;g++)d.push(n.create(r.errors[g],i));return d}),e(this,"paginator",function(){return i.api.paginators[o]}),i.documentation&&(l(this,"documentation",r.documentation),l(this,"documentationUrl",r.documentationUrl)),e(this,"idempotentMembers",function(){var d=[],g=c.input,p=g.members;if(!g.members)return d;for(var T in p)!p.hasOwnProperty(T)||!0===p[T].isIdempotent&&d.push(T);return d}),e(this,"hasEventOutput",function(){return function(o){var r=o.members,i=o.payload;if(!o.members)return!1;if(i)return r[i].isEventStream;for(var d in r)if(!r.hasOwnProperty(d)&&!0===r[d].isEventStream)return!0;return!1}(c.output)})}},68140:(J,I,s)=>{var n=s(84964).property;J.exports=function(l,e){n(this,"inputToken",e.input_token),n(this,"limitKey",e.limit_key),n(this,"moreResults",e.more_results),n(this,"outputToken",e.output_token),n(this,"resultKey",e.result_key)}},72820:(J,I,s)=>{var n=s(84964),y=n.property;J.exports=function(e,t,a){a=a||{},y(this,"name",e),y(this,"api",a.api,!1),t.operation&&y(this,"operation",n.string.lowerFirst(t.operation));var o=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(i){var c=t[i];c&&y(o,i,c)})}},74822:(J,I,s)=>{var n=s(50767),y=s(84964);function l(A,x,G){null!=G&&y.property.apply(this,arguments)}function e(A,x){A.constructor.prototype[x]||y.memoizedProperty.apply(this,arguments)}function t(A,x,G){x=x||{},l(this,"shape",A.shape),l(this,"api",x.api,!1),l(this,"type",A.type),l(this,"enum",A.enum),l(this,"min",A.min),l(this,"max",A.max),l(this,"pattern",A.pattern),l(this,"location",A.location||this.location||"body"),l(this,"name",this.name||A.xmlName||A.queryName||A.locationName||G),l(this,"isStreaming",A.streaming||this.isStreaming||!1),l(this,"requiresLength",A.requiresLength,!1),l(this,"isComposite",A.isComposite||!1),l(this,"isShape",!0,!1),l(this,"isQueryName",Boolean(A.queryName),!1),l(this,"isLocationName",Boolean(A.locationName),!1),l(this,"isIdempotent",!0===A.idempotencyToken),l(this,"isJsonValue",!0===A.jsonvalue),l(this,"isSensitive",!0===A.sensitive||A.prototype&&!0===A.prototype.sensitive),l(this,"isEventStream",Boolean(A.eventstream),!1),l(this,"isEvent",Boolean(A.event),!1),l(this,"isEventPayload",Boolean(A.eventpayload),!1),l(this,"isEventHeader",Boolean(A.eventheader),!1),l(this,"isTimestampFormatSet",Boolean(A.timestampFormat)||A.prototype&&!0===A.prototype.isTimestampFormatSet,!1),l(this,"endpointDiscoveryId",Boolean(A.endpointdiscoveryid),!1),l(this,"hostLabel",Boolean(A.hostLabel),!1),x.documentation&&(l(this,"documentation",A.documentation),l(this,"documentationUrl",A.documentationUrl)),A.xmlAttribute&&l(this,"isXmlAttribute",A.xmlAttribute||!1),l(this,"defaultValue",null),this.toWireFormat=function(W){return null==W?"":W},this.toType=function(W){return W}}function a(A){t.apply(this,arguments),l(this,"isComposite",!0),A.flattened&&l(this,"flattened",A.flattened||!1)}function o(A,x){var G=this,W=null,H=!this.isShape;a.apply(this,arguments),H&&(l(this,"defaultValue",function(){return{}}),l(this,"members",{}),l(this,"memberNames",[]),l(this,"required",[]),l(this,"isRequired",function(){return!1})),A.members&&(l(this,"members",new n(A.members,x,function(B,m){return t.create(m,x,B)})),e(this,"memberNames",function(){return A.xmlOrder||Object.keys(A.members)}),A.event&&(e(this,"eventPayloadMemberName",function(){for(var B=G.members,m=G.memberNames,w=0,u=m.length;w<u;w++)if(B[m[w]].isEventPayload)return m[w]}),e(this,"eventHeaderMemberNames",function(){for(var B=G.members,m=G.memberNames,w=[],u=0,v=m.length;u<v;u++)B[m[u]].isEventHeader&&w.push(m[u]);return w}))),A.required&&(l(this,"required",A.required),l(this,"isRequired",function(B){if(!W){W={};for(var m=0;m<A.required.length;m++)W[A.required[m]]=!0}return W[B]},!1,!0)),l(this,"resultWrapper",A.resultWrapper||null),A.payload&&l(this,"payload",A.payload),"string"==typeof A.xmlNamespace?l(this,"xmlNamespaceUri",A.xmlNamespace):"object"==typeof A.xmlNamespace&&(l(this,"xmlNamespacePrefix",A.xmlNamespace.prefix),l(this,"xmlNamespaceUri",A.xmlNamespace.uri))}function r(A,x){var G=this,W=!this.isShape;if(a.apply(this,arguments),W&&l(this,"defaultValue",function(){return[]}),A.member&&e(this,"member",function(){return t.create(A.member,x)}),this.flattened){var H=this.name;e(this,"name",function(){return G.member.name||H})}}function i(A,x){var G=!this.isShape;a.apply(this,arguments),G&&(l(this,"defaultValue",function(){return{}}),l(this,"key",t.create({type:"string"},x)),l(this,"value",t.create({type:"string"},x))),A.key&&e(this,"key",function(){return t.create(A.key,x)}),A.value&&e(this,"value",function(){return t.create(A.value,x)})}function d(){t.apply(this,arguments);var A=["rest-xml","query","ec2"];this.toType=function(x){return x=this.api&&A.indexOf(this.api.protocol)>-1?x||"":x,this.isJsonValue?JSON.parse(x):x&&"function"==typeof x.toString?x.toString():x},this.toWireFormat=function(x){return this.isJsonValue?JSON.stringify(x):x}}function T(){t.apply(this,arguments),this.toType=function(A){var x=y.base64.decode(A);if(this.isSensitive&&y.isNode()&&"function"==typeof y.Buffer.alloc){var G=y.Buffer.alloc(x.length,x);x.fill(0),x=G}return x},this.toWireFormat=y.base64.encode}function S(){T.apply(this,arguments)}function b(){t.apply(this,arguments),this.toType=function(A){return"boolean"==typeof A?A:null==A?null:"true"===A}}t.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},t.types={structure:o,list:r,map:i,boolean:b,timestamp:function(A){var x=this;if(t.apply(this,arguments),A.timestampFormat)l(this,"timestampFormat",A.timestampFormat);else if(x.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(G){return null==G?null:"function"==typeof G.toUTCString?G:"string"==typeof G||"number"==typeof G?y.date.parseTimestamp(G):null},this.toWireFormat=function(G){return y.date.format(G,x.timestampFormat)}},float:function(){t.apply(this,arguments),this.toType=function(A){return null==A?null:parseFloat(A)},this.toWireFormat=this.toType},integer:function(){t.apply(this,arguments),this.toType=function(A){return null==A?null:parseInt(A,10)},this.toWireFormat=this.toType},string:d,base64:S,binary:T},t.resolve=function(x,G){if(x.shape){var W=G.api.shapes[x.shape];if(!W)throw new Error("Cannot find shape reference: "+x.shape);return W}return null},t.create=function(x,G,W){if(x.isShape)return x;var H=t.resolve(x,G);if(H){var B=Object.keys(x);G.documentation||(B=B.filter(function(u){return!u.match(/documentation/)}));var m=function(){H.constructor.call(this,x,G,W)};return m.prototype=H,new m}x.type||(x.type=x.members?"structure":x.member?"list":x.key?"map":"string");var w=x.type;if(t.normalizedTypes[x.type]&&(x.type=t.normalizedTypes[x.type]),t.types[x.type])return new t.types[x.type](x,G,W);throw new Error("Unrecognized shape type: "+w)},t.shapes={StructureShape:o,ListShape:r,MapShape:i,StringShape:d,BooleanShape:b,Base64Shape:S},J.exports=t},65758:(J,I,s)=>{var n=s(72338);n.ParamValidator=n.util.inherit({constructor:function(l){(!0===l||void 0===l)&&(l={min:!0}),this.validation=l},validate:function(l,e,t){if(this.errors=[],this.validateMember(l,e||{},t||"params"),this.errors.length>1){var a=this.errors.join("\n* ");throw a="There were "+this.errors.length+" validation errors:\n* "+a,n.util.error(new Error(a),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(l,e){this.errors.push(n.util.error(new Error(e),{code:l}))},validateStructure:function(l,e,t){this.validateType(e,t,["object"],"structure");for(var a,o=0;l.required&&o<l.required.length;o++)null==e[a=l.required[o]]&&this.fail("MissingRequiredParameter","Missing required key '"+a+"' in "+t);for(a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=e[a],c=l.members[a];if(void 0!==c){var d=[t,a].join(".");this.validateMember(c,i,d)}else null!=i&&this.fail("UnexpectedParameter","Unexpected key '"+a+"' found in "+t)}return!0},validateMember:function(l,e,t){switch(l.type){case"structure":return this.validateStructure(l,e,t);case"list":return this.validateList(l,e,t);case"map":return this.validateMap(l,e,t);default:return this.validateScalar(l,e,t)}},validateList:function(l,e,t){if(this.validateType(e,t,[Array])){this.validateRange(l,e.length,t,"list member count");for(var a=0;a<e.length;a++)this.validateMember(l.member,e[a],t+"["+a+"]")}},validateMap:function(l,e,t){if(this.validateType(e,t,["object"],"map")){var a=0;for(var o in e)!Object.prototype.hasOwnProperty.call(e,o)||(this.validateMember(l.key,o,t+"[key='"+o+"']"),this.validateMember(l.value,e[o],t+"['"+o+"']"),a++);this.validateRange(l,a,t,"map member count")}},validateScalar:function(l,e,t){switch(l.type){case null:case void 0:case"string":return this.validateString(l,e,t);case"base64":case"binary":return this.validatePayload(e,t);case"integer":case"float":return this.validateNumber(l,e,t);case"boolean":return this.validateType(e,t,["boolean"]);case"timestamp":return this.validateType(e,t,[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 "+t)}},validateString:function(l,e,t){var a=["string"];l.isJsonValue&&(a=a.concat(["number","object","boolean"])),null!==e&&this.validateType(e,t,a)&&(this.validateEnum(l,e,t),this.validateRange(l,e.length,t,"string length"),this.validatePattern(l,e,t),this.validateUri(l,e,t))},validateUri:function(l,e,t){"uri"===l.location&&0===e.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+e+'" for '+t)},validatePattern:function(l,e,t){this.validation.pattern&&void 0!==l.pattern&&(new RegExp(l.pattern).test(e)||this.fail("PatternMatchError",'Provided value "'+e+'" does not match regex pattern /'+l.pattern+"/ for "+t))},validateRange:function(l,e,t,a){this.validation.min&&void 0!==l.min&&e<l.min&&this.fail("MinRangeError","Expected "+a+" >= "+l.min+", but found "+e+" for "+t),this.validation.max&&void 0!==l.max&&e>l.max&&this.fail("MaxRangeError","Expected "+a+" <= "+l.max+", but found "+e+" for "+t)},validateEnum:function(l,e,t){this.validation.enum&&void 0!==l.enum&&-1===l.enum.indexOf(e)&&this.fail("EnumError","Found string value of "+e+", but expected "+l.enum.join("|")+" for "+t)},validateType:function(l,e,t,a){if(null==l)return!1;for(var o=!1,r=0;r<t.length;r++){if("string"==typeof t[r]){if(typeof l===t[r])return!0}else if(t[r]instanceof RegExp){if((l||"").toString().match(t[r]))return!0}else{if(l instanceof t[r]||n.util.isType(l,t[r]))return!0;!a&&!o&&(t=t.slice()),t[r]=n.util.typeName(t[r])}o=!0}var i=a;i||(i=t.join(", ").replace(/,([^,]+)$/,", or$1"));var c=i.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+e+" to be a"+c+" "+i),!1},validateNumber:function(l,e,t){if(null!=e){if("string"==typeof e){var a=parseFloat(e);a.toString()===e&&(e=a)}this.validateType(e,t,["number"])&&this.validateRange(l,e,t,"numeric value")}},validatePayload:function(l,e){if(null!=l&&"string"!=typeof l&&(!l||"number"!=typeof l.byteLength)){if(n.util.isNode()){var t=n.util.stream.Stream;if(n.util.Buffer.isBuffer(l)||l instanceof t)return}else if(void 0!==typeof Blob&&l instanceof Blob)return;var a=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(l)for(var o=0;o<a.length;o++)if(n.util.isType(l,a[o])||n.util.typeName(l.constructor)===a[o])return;this.fail("InvalidParameterType","Expected "+e+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},26545:(J,I,s)=>{var n=s(84964),y=s(72338);J.exports={populateHostPrefix:function(r){if(!r.service.config.hostPrefixEnabled)return r;var c=r.service.api.operations[r.operation];if(function(r){var i=r.service.api,c=i.operations[r.operation],d=i.endpointOperation&&i.endpointOperation===n.string.lowerFirst(c.name);return"NULL"!==c.endpointDiscoveryRequired||!0===d}(r))return r;if(c.endpoint&&c.endpoint.hostPrefix){var g=function(r,i,c){return n.each(c.members,function(d,g){if(!0===g.hostLabel){if("string"!=typeof i[d]||""===i[d])throw n.error(new Error,{message:"Parameter "+d+" should be a non-empty string.",code:"InvalidParameter"});var p=new RegExp("\\{"+d+"\\}","g");r=r.replace(p,i[d])}}),r}(c.endpoint.hostPrefix,r.params,c.input);(function(r,i){r.host&&(r.host=i+r.host),r.hostname&&(r.hostname=i+r.hostname)})(r.httpRequest.endpoint,g),function(r){var i=r.split("."),c=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;n.arrayEach(i,function(d){if(!d.length||d.length<1||d.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!c.test(d))throw y.util.error(new Error,{code:"ValidationError",message:d+" is not hostname compatible."})})}(r.httpRequest.endpoint.hostname)}return r}}},80537:(J,I,s)=>{var n=s(84964),y=s(70720),l=s(46179),e=s(26545).populateHostPrefix;J.exports={buildRequest:function(r){var i=r.httpRequest,c=r.service.api,d=c.targetPrefix+"."+c.operations[r.operation].name,g=c.jsonVersion||"1.0",p=c.operations[r.operation].input,T=new y;1===g&&(g="1.0"),i.body=T.build(r.params||{},p),i.headers["Content-Type"]="application/x-amz-json-"+g,i.headers["X-Amz-Target"]=d,e(r)},extractError:function(r){var i={},c=r.httpResponse;if(i.code=c.headers["x-amzn-errortype"]||"UnknownError","string"==typeof i.code&&(i.code=i.code.split(":")[0]),c.body.length>0)try{var d=JSON.parse(c.body.toString()),g=d.__type||d.code||d.Code;g&&(i.code=g.split("#").pop()),i.message="RequestEntityTooLarge"===i.code?"Request body must be less than 1 MB":d.message||d.Message||null}catch(p){i.statusCode=c.statusCode,i.message=c.statusMessage}else i.statusCode=c.statusCode,i.message=c.statusCode.toString();r.error=n.error(new Error,i)},extractData:function(r){var i=r.httpResponse.body.toString()||"{}";if(!1===r.request.service.config.convertResponseTypes)r.data=JSON.parse(i);else{var d=r.request.service.api.operations[r.request.operation].output||{},g=new l;r.data=g.parse(i,d)}}}},78298:(J,I,s)=>{var n=s(72338),y=s(84964),l=s(75277),e=s(74822),t=s(26545).populateHostPrefix;J.exports={buildRequest:function(i){var c=i.service.api.operations[i.operation],d=i.httpRequest;d.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",d.params={Version:i.service.api.apiVersion,Action:c.name},(new l).serialize(i.params,c.input,function(p,T){d.params[p]=T}),d.body=y.queryParamsToString(d.params),t(i)},extractError:function(i){var c,d=i.httpResponse.body.toString();if(d.match("<UnknownOperationException"))c={Code:"UnknownOperation",Message:"Unknown operation "+i.request.operation};else try{c=(new n.XML.Parser).parse(d)}catch(g){c={Code:i.httpResponse.statusCode,Message:i.httpResponse.statusMessage}}c.requestId&&!i.requestId&&(i.requestId=c.requestId),c.Errors&&(c=c.Errors),c.Error&&(c=c.Error),i.error=y.error(new Error,c.Code?{code:c.Code,message:c.Message}:{code:i.httpResponse.statusCode,message:null})},extractData:function(i){var c=i.request,g=c.service.api.operations[c.operation].output||{},p=g;if(p.resultWrapper){var T=e.create({type:"structure"});T.members[p.resultWrapper]=g,T.memberNames=[p.resultWrapper],y.property(g,"name",g.resultWrapper),g=T}var S=new n.XML.Parser;if(g&&g.members&&!g.members._XAMZRequestId){var b=e.create({type:"string"},{api:{protocol:"query"}},"requestId");g.members._XAMZRequestId=b}var A=S.parse(i.httpResponse.body.toString(),g);i.requestId=A._XAMZRequestId||A.requestId,A._XAMZRequestId&&delete A._XAMZRequestId,p.resultWrapper&&A[p.resultWrapper]&&(y.update(A,A[p.resultWrapper]),delete A[p.resultWrapper]),i.data=A}}},51888:(J,I,s)=>{var n=s(84964),y=s(26545).populateHostPrefix;function e(c,d,g,p){var T=[c,d].join("/");T=T.replace(/\/+/g,"/");var S={},b=!1;if(n.each(g.members,function(x,G){var W=p[x];if(null!=W)if("uri"===G.location){var H=new RegExp("\\{"+G.name+"(\\+)?\\}");T=T.replace(H,function(B,m){return(m?n.uriEscapePath:n.uriEscape)(String(W))})}else"querystring"===G.location&&(b=!0,"list"===G.type?S[G.name]=W.map(function(B){return n.uriEscape(G.member.toWireFormat(B).toString())}):"map"===G.type?n.each(W,function(B,m){S[B]=Array.isArray(m)?m.map(function(w){return n.uriEscape(String(w))}):n.uriEscape(String(m))}):S[G.name]=n.uriEscape(G.toWireFormat(W).toString()))}),b){T+=T.indexOf("?")>=0?"&":"?";var A=[];n.arrayEach(Object.keys(S).sort(),function(x){Array.isArray(S[x])||(S[x]=[S[x]]);for(var G=0;G<S[x].length;G++)A.push(n.uriEscape(String(x))+"="+S[x][G])}),T+=A.join("&")}return T}J.exports={buildRequest:function(c){(function(c){c.httpRequest.method=c.service.api.operations[c.operation].httpMethod})(c),function(c){var d=c.service.api.operations[c.operation],p=e(c.httpRequest.endpoint.path,d.httpPath,d.input,c.params);c.httpRequest.path=p}(c),function(c){n.each(c.service.api.operations[c.operation].input.members,function(g,p){var T=c.params[g];null!=T&&("headers"===p.location&&"map"===p.type?n.each(T,function(S,b){c.httpRequest.headers[p.name+S]=b}):"header"===p.location&&(T=p.toWireFormat(T).toString(),p.isJsonValue&&(T=n.base64.encode(T)),c.httpRequest.headers[p.name]=T))})}(c),y(c)},extractError:function(){},extractData:function(c){var d=c.request,g={},p=c.httpResponse,S=d.service.api.operations[d.operation].output,b={};n.each(p.headers,function(A,x){b[A.toLowerCase()]=x}),n.each(S.members,function(A,x){var G=(x.name||A).toLowerCase();if("headers"===x.location&&"map"===x.type){g[A]={};var H=new RegExp("^"+(x.isLocationName?x.name:"")+"(.+)","i");n.each(p.headers,function(m,w){var u=m.match(H);null!==u&&(g[A][u[1]]=w)})}else if("header"===x.location){if(void 0!==b[G]){var B=x.isJsonValue?n.base64.decode(b[G]):b[G];g[A]=x.toType(B)}}else"statusCode"===x.location&&(g[A]=parseInt(p.statusCode,10))}),c.data=g},generateURI:e}},10673:(J,I,s)=>{var n=s(84964),y=s(51888),l=s(80537),e=s(70720),t=s(46179);function o(d,g){d.httpRequest.headers["Content-Type"]||(d.httpRequest.headers["Content-Type"]=g?"binary/octet-stream":"application/json")}J.exports={buildRequest:function(d){y.buildRequest(d),["HEAD","DELETE"].indexOf(d.httpRequest.method)<0&&function(d){var g=new e,p=d.service.api.operations[d.operation].input;if(p.payload){var T,S=p.members[p.payload];if(void 0===(T=d.params[p.payload]))return;"structure"===S.type?(d.httpRequest.body=g.build(T,S),o(d)):(d.httpRequest.body=T,("binary"===S.type||S.isStreaming)&&o(d,!0))}else{var b=g.build(d.params,p);("{}"!==b||"GET"!==d.httpRequest.method)&&(d.httpRequest.body=b),o(d)}}(d)},extractError:function(d){l.extractError(d)},extractData:function(d){y.extractData(d);var g=d.request,T=g.service.api.operations[g.operation].output||{};if(T.payload){var A=T.members[T.payload],x=d.httpResponse.body;if(A.isEventStream)S=new t,d.data[payload]=n.createEventStream(2===AWS.HttpClient.streamsApiVersion?d.httpResponse.stream:x,S,A);else if("structure"===A.type||"list"===A.type){var S=new t;d.data[T.payload]=S.parse(x,A)}else d.data[T.payload]="binary"===A.type||A.isStreaming?x:A.toType(x)}else{var G=d.data;l.extractData(d),d.data=n.merge(G,d.data)}}}},68683:(J,I,s)=>{var n=s(72338),y=s(84964),l=s(51888);J.exports={buildRequest:function(r){l.buildRequest(r),["GET","HEAD"].indexOf(r.httpRequest.method)<0&&function(r){var i=r.service.api.operations[r.operation].input,c=new n.XML.Builder,d=r.params,g=i.payload;if(g){var p=i.members[g];if(void 0===(d=d[g]))return;r.httpRequest.body="structure"===p.type?c.toXML(d,p,p.name,!0):d}else r.httpRequest.body=c.toXML(d,i,i.name||i.shape||y.string.upperFirst(r.operation)+"Request")}(r)},extractError:function(r){var i;l.extractError(r);try{i=(new n.XML.Parser).parse(r.httpResponse.body.toString())}catch(c){i={Code:r.httpResponse.statusCode,Message:r.httpResponse.statusMessage}}i.Errors&&(i=i.Errors),i.Error&&(i=i.Error),r.error=y.error(new Error,i.Code?{code:i.Code,message:i.Message}:{code:r.httpResponse.statusCode,message:null})},extractData:function(r){l.extractData(r);var i,c=r.request,d=r.httpResponse.body,p=c.service.api.operations[c.operation].output,S=p.payload;if(S){var b=p.members[S];b.isEventStream?(i=new n.XML.Parser,r.data[S]=y.createEventStream(2===n.HttpClient.streamsApiVersion?r.httpResponse.stream:r.httpResponse.body,i,b)):"structure"===b.type?(i=new n.XML.Parser,r.data[S]=i.parse(d.toString(),b)):r.data[S]="binary"===b.type||b.isStreaming?d:b.toType(d)}else if(d.length>0){var A=(i=new n.XML.Parser).parse(d.toString(),p);y.update(r.data,A)}}}},75277:(J,I,s)=>{var n=s(84964);function y(){}function l(r){return r.isQueryName||"ec2"!==r.api.protocol?r.name:r.name[0].toUpperCase()+r.name.substr(1)}function e(r,i,c,d){n.each(c.members,function(g,p){var T=i[g];if(null!=T){var S=l(p);o(S=r?r+"."+S:S,T,p,d)}})}function o(r,i,c,d){null!=i&&("structure"===c.type?e(r,i,c,d):"list"===c.type?function(r,i,c,d){var g=c.member||{};0!==i.length?n.arrayEach(i,function(p,T){var S="."+(T+1);if("ec2"===c.api.protocol)S+="";else if(c.flattened){if(g.name){var b=r.split(".");b.pop(),b.push(l(g)),r=b.join(".")}}else S="."+(g.name?g.name:"member")+S;o(r+S,p,g,d)}):d.call(this,r,null)}(r,i,c,d):"map"===c.type?function(r,i,c,d){var g=1;n.each(i,function(p,T){var b=(c.flattened?".":".entry.")+g+++".",x=b+(c.value.name||"value");o(r+(b+(c.key.name||"key")),p,c.key,d),o(r+x,T,c.value,d)})}(r,i,c,d):d(r,c.toWireFormat(i).toString()))}y.prototype.serialize=function(r,i,c){e("",r,i,c)},J.exports=y},43984:J=>{J.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},32313:(J,I,s)=>{var n=s(84964),y=s(50261);function t(r,i){n.each(i,function(c,d){"globalEndpoint"!==c&&null==r.config[c]&&(r.config[c]=d)})}J.exports={configureEndpoint:function(r){for(var i=function(r){var i=r.config.region,c=function(r){if(!r)return null;var i=r.split("-");return i.length<3?null:i.slice(0,i.length-2).join("-")+"-*"}(i),d=r.api.endpointPrefix;return[[i,d],[c,d],[i,"*"],[c,"*"],["*",d],["*","*"]].map(function(g){return g[0]&&g[1]?g.join("/"):null})}(r),c=0;c<i.length;c++){var d=i[c];if(d&&Object.prototype.hasOwnProperty.call(y.rules,d)){var g=y.rules[d];return"string"==typeof g&&(g=y.patterns[g]),r.config.useDualstack&&n.isDualstackAvailable(r)&&((g=n.copy(g)).endpoint=g.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),r.isGlobalEndpoint=!!g.globalEndpoint,g.signingRegion&&(r.signingRegion=g.signingRegion),g.signatureVersion||(g.signatureVersion="v4"),void t(r,g)}}},getEndpointSuffix:function(r){for(var i={"^(us|eu|ap|sa|ca|me)\\-\\w+\\-\\d+$":"amazonaws.com","^cn\\-\\w+\\-\\d+$":"amazonaws.com.cn","^us\\-gov\\-\\w+\\-\\d+$":"amazonaws.com","^us\\-iso\\-\\w+\\-\\d+$":"c2s.ic.gov","^us\\-isob\\-\\w+\\-\\d+$":"sc2s.sgov.gov"},d=Object.keys(i),g=0;g<d.length;g++){var p=RegExp(d[g]),T=i[d[g]];if(p.test(r))return T}return"amazonaws.com"}}},60782:(J,I,s)=>{var n=s(72338),y=s(18730),l=n.util.inherit,e=n.util.domain,t=s(94443),a={success:1,error:1,complete:1},r=new y;r.setupStates=function(){var i=function(c,d){var g=this;g._haltHandlersOnError=!1,g.emit(g._asm.currentState,function(p){if(p)if(function(i){return Object.prototype.hasOwnProperty.call(a,i._asm.currentState)}(g)){if(!(e&&g.domain instanceof e.Domain))throw p;p.domainEmitter=g,p.domain=g.domain,p.domainThrown=!1,g.domain.emit("error",p)}else g.response.error=p,d(p);else d(g.response.error)})};this.addState("validate","build","error",i),this.addState("build","afterBuild","restart",i),this.addState("afterBuild","sign","restart",i),this.addState("sign","send","retry",i),this.addState("retry","afterRetry","afterRetry",i),this.addState("afterRetry","sign","error",i),this.addState("send","validateResponse","retry",i),this.addState("validateResponse","extractData","extractError",i),this.addState("extractError","extractData","retry",i),this.addState("extractData","success","retry",i),this.addState("restart","build","error",i),this.addState("success","complete","complete",i),this.addState("error","complete","complete",i),this.addState("complete",null,null,i)},r.setupStates(),n.Request=l({constructor:function(c,d,g){var p=c.endpoint,T=c.config.region,S=c.config.customUserAgent;c.isGlobalEndpoint&&(T=c.signingRegion?c.signingRegion:"us-east-1"),this.domain=e&&e.active,this.service=c,this.operation=d,this.params=g||{},this.httpRequest=new n.HttpRequest(p,T),this.httpRequest.appendToUserAgent(S),this.startTime=c.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new y(r.states,"validate"),this._haltHandlersOnError=!1,n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(c){return c&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(d){c.call(d,d.error,d.data)})),this.runTo(),this.response},build:function(c){return this.runTo("send",c)},runTo:function(c,d){return this._asm.runTo(c,d,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(d){d.error=n.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(c){c=n.util.fn.makeAsync(c,3),this.on("complete",function d(g){c.call(g,g.error,g.data,function(p){!1!==p&&(g.hasNextPage()?g.nextPage().on("complete",d).send():c.call(g,null,null,n.util.fn.noop))})}).send()},eachItem:function(c){var d=this;this.eachPage(function(p,T){if(p)return c(p,null);if(null===T)return c(null,null);var b=d.service.paginationConfig(d.operation).resultKey;Array.isArray(b)&&(b=b[0]);var A=t.search(T,b),x=!0;return n.util.arrayEach(A,function(G){if(!1===(x=c(null,G)))return n.util.abort}),x})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var c=n.util.stream,d=this,g=null;return 2===n.HttpClient.streamsApiVersion?(g=new c.PassThrough,process.nextTick(function(){d.send()})):((g=new c.Stream).readable=!0,g.sent=!1,g.on("newListener",function(p){!g.sent&&"data"===p&&(g.sent=!0,process.nextTick(function(){d.send()}))})),this.on("error",function(p){g.emit("error",p)}),this.on("httpHeaders",function(T,S,b){if(T<300){d.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),d.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),d.on("httpError",function(w){b.error=w,b.error.retryable=!1});var x,A=!1;if("HEAD"!==d.httpRequest.method&&(x=parseInt(S["content-length"],10)),void 0!==x&&!isNaN(x)&&x>=0){A=!0;var G=0}var W=function(){A&&G!==x?g.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+G+" of "+x+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?g.end():g.emit("end")},H=b.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(A){var B=new c.PassThrough;B._write=function(m){return m&&m.length&&(G+=m.length),c.PassThrough.prototype._write.apply(this,arguments)},B.on("end",W),g.on("error",function(m){A=!1,H.unpipe(B),B.emit("end"),B.end()}),H.pipe(B).pipe(g,{end:!1})}else H.pipe(g);else A&&H.on("data",function(m){m&&m.length&&(G+=m.length)}),H.on("data",function(m){g.emit("data",m)}),H.on("end",W);H.on("error",function(m){A=!1,g.emit("error",m)})}}),g},emitEvent:function(c,d,g){"function"==typeof d&&(g=d,d=null),g||(g=function(){}),d||(d=this.eventParameters(c,this.response)),n.SequentialExecutor.prototype.emit.call(this,c,d,function(T){T&&(this.response.error=T),g.call(this,T)})},eventParameters:function(c){switch(c){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(c,d){return!d&&"function"==typeof c&&(d=c,c=null),(new n.Signers.Presign).sign(this.toGet(),c,d)},isPresigned:function(){return Object.prototype.hasOwnProperty.call(this.httpRequest.headers,"presigned-expires")},toUnauthenticated:function(){return this._unAuthenticated=!0,this.removeListener("validate",n.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",n.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(c){c.httpRequest.method="GET",c.httpRequest.path=c.service.endpoint.path+"?"+c.httpRequest.body,c.httpRequest.body="",delete c.httpRequest.headers["Content-Length"],delete c.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(c){this.prototype.promise=function(){var g=this;return this.httpRequest.appendToUserAgent("promise"),new c(function(p,T){g.on("complete",function(S){S.error?T(S.error):p(Object.defineProperty(S.data||{},"$response",{value:S}))}),g.runTo()})}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},11277:(J,I,s)=>{var n=s(72338),y=n.util.inherit,l=s(94443);function e(t){var a=t.request._waiter,r=!1,i="retry";a.config.acceptors.forEach(function(c){if(!r){var d=a.matchers[c.matcher];d&&d(t,c.expected,c.argument)&&(r=!0,i=c.state)}}),!r&&t.error&&(i="failure"),"success"===i?a.setSuccess(t):a.setError(t,"retry"===i)}n.ResourceWaiter=y({constructor:function(a,o){this.service=a,this.state=o,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(t,a,o){try{var r=l.search(t.data,o)}catch(i){return!1}return l.strictDeepEqual(r,a)},pathAll:function(t,a,o){try{var r=l.search(t.data,o)}catch(d){return!1}Array.isArray(r)||(r=[r]);var i=r.length;if(!i)return!1;for(var c=0;c<i;c++)if(!l.strictDeepEqual(r[c],a))return!1;return!0},pathAny:function(t,a,o){try{var r=l.search(t.data,o)}catch(d){return!1}Array.isArray(r)||(r=[r]);for(var i=r.length,c=0;c<i;c++)if(l.strictDeepEqual(r[c],a))return!0;return!1},status:function(t,a){var o=t.httpResponse.statusCode;return"number"==typeof o&&o===a},error:function(t,a){return"string"==typeof a&&t.error?a===t.error.code:a===!!t.error}},listeners:(new n.SequentialExecutor).addNamedListeners(function(t){t("RETRY_CHECK","retry",function(a){a.error&&"ResourceNotReady"===a.error.code&&(a.error.retryDelay=1e3*(a.request._waiter.config.delay||0))}),t("CHECK_OUTPUT","extractData",e),t("CHECK_ERROR","extractError",e)}),wait:function(a,o){"function"==typeof a&&(o=a,a=void 0),a&&a.$waiter&&("number"==typeof(a=n.util.copy(a)).$waiter.delay&&(this.config.delay=a.$waiter.delay),"number"==typeof a.$waiter.maxAttempts&&(this.config.maxAttempts=a.$waiter.maxAttempts),delete a.$waiter);var r=this.service.makeRequest(this.config.operation,a);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),o&&r.send(o),r},setSuccess:function(a){a.error=null,a.data=a.data||{},a.request.removeAllListeners("extractData")},setError:function(a,o){a.data=null,a.error=n.util.error(a.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:o})},loadWaiterConfig:function(a){if(!this.service.api.waiters[a])throw new n.util.error(new Error,{code:"StateNotFoundError",message:"State "+a+" not found."});this.config=n.util.copy(this.service.api.waiters[a])}})},53871:(J,I,s)=>{var n=s(72338),y=n.util.inherit,l=s(94443);n.Response=y({constructor:function(t){this.request=t,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,t&&(this.maxRetries=t.service.numRetries(),this.maxRedirects=t.service.config.maxRedirects)},nextPage:function(t){var a,o=this.request.service,r=this.request.operation;try{a=o.paginationConfig(r,!0)}catch(g){this.error=g}if(!this.hasNextPage()){if(t)t(this.error,null);else if(this.error)throw this.error;return null}var i=n.util.copy(this.request.params);if(this.nextPageTokens){var c=a.inputToken;"string"==typeof c&&(c=[c]);for(var d=0;d<c.length;d++)i[c[d]]=this.nextPageTokens[d];return o.makeRequest(this.request.operation,i,t)}return t?t(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 t=this.request.service.paginationConfig(this.request.operation);if(!t)return this.nextPageTokens;if(this.nextPageTokens=null,t.moreResults&&!l.search(this.data,t.moreResults))return this.nextPageTokens;var a=t.outputToken;return"string"==typeof a&&(a=[a]),n.util.arrayEach.call(this,a,function(o){var r=l.search(this.data,o);r&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(r))}),this.nextPageTokens}})},31893:(J,I,s)=>{var n=s(72338);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(l){return this._events[l]?this._events[l].slice(0):[]},on:function(l,e,t){return this._events[l]?t?this._events[l].unshift(e):this._events[l].push(e):this._events[l]=[e],this},onAsync:function(l,e,t){return e._isAsync=!0,this.on(l,e,t)},removeListener:function(l,e){var t=this._events[l];if(t){for(var a=t.length,o=-1,r=0;r<a;++r)t[r]===e&&(o=r);o>-1&&t.splice(o,1)}return this},removeAllListeners:function(l){return l?delete this._events[l]:this._events={},this},emit:function(l,e,t){t||(t=function(){});var a=this.listeners(l),o=a.length;return this.callListeners(a,e,t),o>0},callListeners:function(l,e,t,a){var o=this,r=a||null;function i(d){if(d&&(r=n.util.error(r||new Error,d),o._haltHandlersOnError))return t.call(o,r);o.callListeners(l,e,t,r)}for(;l.length>0;){var c=l.shift();if(c._isAsync)return void c.apply(o,e.concat([i]));try{c.apply(o,e)}catch(d){r=n.util.error(r||new Error,d)}if(r&&o._haltHandlersOnError)return void t.call(o,r)}t.call(o,r)},addListeners:function(l){var e=this;return l._events&&(l=l._events),n.util.each(l,function(t,a){"function"==typeof a&&(a=[a]),n.util.arrayEach(a,function(o){e.on(t,o)})}),e},addNamedListener:function(l,e,t,a){return this[l]=t,this.addListener(e,t,a),this},addNamedAsyncListener:function(l,e,t,a){return t._isAsync=!0,this.addNamedListener(l,e,t,a)},addNamedListeners:function(l){var e=this;return l(function(){e.addNamedListener.apply(e,arguments)},function(){e.addNamedAsyncListener.apply(e,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,J.exports=n.SequentialExecutor},70014:(J,I,s)=>{var n=s(72338),y=s(68734),l=s(32313),e=n.util.inherit,t=0;n.Service=e({constructor:function(o){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var r=this.loadServiceClass(o||{});if(r){var i=n.util.copy(o),c=new r(o);return Object.defineProperty(c,"_originalConfig",{get:function(){return i},enumerable:!1,configurable:!0}),c._clientId=++t,c}this.initialize(o)},initialize:function(o){var r=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),r&&this.config.update(r,!0),o&&this.config.update(o,!0),this.validateService(),this.config.endpoint||l.configureEndpoint(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint),n.SequentialExecutor.call(this),n.Service.addDefaultMonitoringListeners(this),(this.config.clientSideMonitoring||n.Service._clientSideMonitoring)&&this.publisher){var i=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(d){process.nextTick(function(){i.eventHandler(d)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(d){process.nextTick(function(){i.eventHandler(d)})})}},validateService:function(){},loadServiceClass:function(o){var r=o;if(n.util.isEmpty(this.api)){if(r.apiConfig)return n.Service.defineServiceApi(this.constructor,r.apiConfig);if(this.constructor.services){(r=new n.Config(n.config)).update(o,!0);var i=r.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(i=i||r.apiVersion)}return null}return null},getLatestServiceClass:function(o){return o=this.getLatestServiceVersion(o),null===this.constructor.services[o]&&n.Service.defineServiceApi(this.constructor,o),this.constructor.services[o]},getLatestServiceVersion:function(o){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(o?n.util.isType(o,Date)&&(o=n.util.date.iso8601(o).split("T")[0]):o="latest",Object.hasOwnProperty(this.constructor.services,o))return o;for(var r=Object.keys(this.constructor.services).sort(),i=null,c=r.length-1;c>=0;c--)if("*"!==r[c][r[c].length-1]&&(i=r[c]),r[c].substr(0,10)<=o)return i;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+o+"'")},api:{},defaultRetryCount:3,customizeRequests:function(o){if(o){if("function"!=typeof o)throw new Error("Invalid callback type '"+typeof o+"' provided in customizeRequests");this.customRequestHandler=o}else this.customRequestHandler=null},makeRequest:function(o,r,i){if("function"==typeof r&&(i=r,r=null),r=r||{},this.config.params){var c=this.api.operations[o];c&&(r=n.util.copy(r),n.util.each(this.config.params,function(g,p){c.input.members[g]&&null==r[g]&&(r[g]=p)}))}var d=new n.Request(this,o,r);return this.addAllRequestListeners(d),this.attachMonitoringEmitter(d),i&&d.send(i),d},makeUnauthenticatedRequest:function(o,r,i){"function"==typeof r&&(i=r,r={});var c=this.makeRequest(o,r).toUnauthenticated();return i?c.send(i):c},waitFor:function(o,r,i){return new n.ResourceWaiter(this,o).wait(r,i)},addAllRequestListeners:function(o){for(var r=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],i=0;i<r.length;i++)r[i]&&o.addListeners(r[i]);this.config.paramValidation||o.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&o.addListeners(n.EventListeners.Logger),this.setupRequestListeners(o),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(o),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(o)},apiCallEvent:function(o){var r=o.service.api.operations[o.operation],i={Type:"ApiCall",Api:r?r.name:o.operation,Version:1,Service:o.service.api.serviceId||o.service.api.endpointPrefix,Region:o.httpRequest.region,MaxRetriesExceeded:0,UserAgent:o.httpRequest.getUserAgent()},c=o.response;if(c.httpResponse.statusCode&&(i.FinalHttpStatusCode=c.httpResponse.statusCode),c.error){var d=c.error;c.httpResponse.statusCode>299?(d.code&&(i.FinalAwsException=d.code),d.message&&(i.FinalAwsExceptionMessage=d.message)):((d.code||d.name)&&(i.FinalSdkException=d.code||d.name),d.message&&(i.FinalSdkExceptionMessage=d.message))}return i},apiAttemptEvent:function(o){var r=o.service.api.operations[o.operation],i={Type:"ApiCallAttempt",Api:r?r.name:o.operation,Version:1,Service:o.service.api.serviceId||o.service.api.endpointPrefix,Fqdn:o.httpRequest.endpoint.hostname,UserAgent:o.httpRequest.getUserAgent()},c=o.response;return c.httpResponse.statusCode&&(i.HttpStatusCode=c.httpResponse.statusCode),!o._unAuthenticated&&o.service.config.credentials&&o.service.config.credentials.accessKeyId&&(i.AccessKey=o.service.config.credentials.accessKeyId),c.httpResponse.headers&&(o.httpRequest.headers["x-amz-security-token"]&&(i.SessionToken=o.httpRequest.headers["x-amz-security-token"]),c.httpResponse.headers["x-amzn-requestid"]&&(i.XAmznRequestId=c.httpResponse.headers["x-amzn-requestid"]),c.httpResponse.headers["x-amz-request-id"]&&(i.XAmzRequestId=c.httpResponse.headers["x-amz-request-id"]),c.httpResponse.headers["x-amz-id-2"]&&(i.XAmzId2=c.httpResponse.headers["x-amz-id-2"])),i},attemptFailEvent:function(o){var r=this.apiAttemptEvent(o),i=o.response,c=i.error;return i.httpResponse.statusCode>299?(c.code&&(r.AwsException=c.code),c.message&&(r.AwsExceptionMessage=c.message)):((c.code||c.name)&&(r.SdkException=c.code||c.name),c.message&&(r.SdkExceptionMessage=c.message)),r},attachMonitoringEmitter:function(o){var r,i,c,d,p,T,g=0,S=this;o.on("validate",function(){d=n.util.realClock.now(),T=Date.now()},!0),o.on("sign",function(){i=n.util.realClock.now(),r=Date.now(),p=o.httpRequest.region,g++},!0),o.on("validateResponse",function(){c=Math.round(n.util.realClock.now()-i)}),o.addNamedListener("API_CALL_ATTEMPT","success",function(){var x=S.apiAttemptEvent(o);x.Timestamp=r,x.AttemptLatency=c>=0?c:0,x.Region=p,S.emit("apiCallAttempt",[x])}),o.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var x=S.attemptFailEvent(o);x.Timestamp=r,c=c||Math.round(n.util.realClock.now()-i),x.AttemptLatency=c>=0?c:0,x.Region=p,S.emit("apiCallAttempt",[x])}),o.addNamedListener("API_CALL","complete",function(){var x=S.apiCallEvent(o);if(x.AttemptCount=g,!(x.AttemptCount<=0)){x.Timestamp=T;var G=Math.round(n.util.realClock.now()-d);x.Latency=G>=0?G:0;var W=o.response;W.error&&W.error.retryable&&"number"==typeof W.retryCount&&"number"==typeof W.maxRetries&&W.retryCount>=W.maxRetries&&(x.MaxRetriesExceeded=1),S.emit("apiCall",[x])}})},setupRequestListeners:function(o){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(o){var i=null,c="";return o&&(c=(i=(o.service.api.operations||{})[o.operation]||null)?i.authtype:""),n.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===c||"v4-unsigned-body"===c?"v4":this.api.signatureVersion)},serviceInterface:function(){switch(this.api.protocol){case"ec2":case"query":return n.EventListeners.Query;case"json":return n.EventListeners.Json;case"rest-json":return n.EventListeners.RestJson;case"rest-xml":return n.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function(o){return o.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(o,r){return n.util.calculateRetryDelay(o,this.config.retryDelayOptions,r)},retryableError:function(o){return!!(this.timeoutError(o)||this.networkingError(o)||this.expiredCredentialsError(o)||this.throttledError(o)||o.statusCode>=500)},networkingError:function(o){return"NetworkingError"===o.code},timeoutError:function(o){return"TimeoutError"===o.code},expiredCredentialsError:function(o){return"ExpiredTokenException"===o.code},clockSkewError:function(o){switch(o.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(o){o&&(this.config.systemClockOffset=o-Date.now())},isClockSkewed:function(o){if(o)return Math.abs(this.getSkewCorrectedDate().getTime()-o)>=3e5},throttledError:function(o){if(429===o.statusCode)return!0;switch(o.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(o){if("string"!=typeof o)return o;var r=o;return(r=(r=r.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(o){this.endpoint=new n.Endpoint(o,this.config)},paginationConfig:function(o,r){var i=this.api.operations[o].paginator;if(!i){if(r){var c=new Error;throw n.util.error(c,"No pagination configuration for "+o)}return null}return i}}),n.util.update(n.Service,{defineMethods:function(o){n.util.each(o.prototype.api.operations,function(i){o.prototype[i]||(o.prototype[i]="none"===o.prototype.api.operations[i].authtype?function(d,g){return this.makeUnauthenticatedRequest(i,d,g)}:function(d,g){return this.makeRequest(i,d,g)})})},defineService:function(o,r,i){n.Service._serviceMap[o]=!0,Array.isArray(r)||(i=r,r=[]);var c=e(n.Service,i||{});if("string"==typeof o?(n.Service.addVersions(c,r),c.serviceIdentifier=c.serviceIdentifier||o):(c.prototype.api=o,n.Service.defineMethods(c)),n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var g=n.util.clientSideMonitoring.Publisher,T=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new g(T),T.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(c.prototype),n.Service.addDefaultMonitoringListeners(c.prototype),c},addVersions:function(o,r){Array.isArray(r)||(r=[r]),o.services=o.services||{};for(var i=0;i<r.length;i++)void 0===o.services[r[i]]&&(o.services[r[i]]=null);o.apiVersions=Object.keys(o.services).sort()},defineServiceApi:function(o,r,i){var c=e(o,{serviceIdentifier:o.serviceIdentifier});function d(g){c.prototype.api=g.isApi?g:new y(g,{serviceIdentifier:o.serviceIdentifier})}if("string"==typeof r){if(i)d(i);else try{d(n.apiLoader(o.serviceIdentifier,r))}catch(g){throw n.util.error(g,{message:"Could not find API configuration "+o.serviceIdentifier+"-"+r})}Object.prototype.hasOwnProperty.call(o.services,r)||(o.apiVersions=o.apiVersions.concat(r).sort()),o.services[r]=c}else d(r);return n.Service.defineMethods(c),c},hasService:function(a){return Object.prototype.hasOwnProperty.call(n.Service._serviceMap,a)},addDefaultMonitoringListeners:function(o){o.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(i){var c=Object.getPrototypeOf(o);c._events&&c.emit("apiCallAttempt",[i])}),o.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(i){var c=Object.getPrototypeOf(o);c._events&&c.emit("apiCall",[i])})},_serviceMap:{}}),n.util.mixin(n.Service,n.SequentialExecutor),J.exports=n.Service},25974:(J,I,s)=>{var n=s(72338),y=s(98914);n.util.update(n.STS.prototype,{credentialsFrom:function(a,o){return a?(o||(o=new n.TemporaryCredentials),o.expired=!1,o.accessKeyId=a.Credentials.AccessKeyId,o.secretAccessKey=a.Credentials.SecretAccessKey,o.sessionToken=a.Credentials.SessionToken,o.expireTime=a.Credentials.Expiration,o):null},assumeRoleWithWebIdentity:function(a,o){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",a,o)},assumeRoleWithSAML:function(a,o){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",a,o)},setupRequestListeners:function(a){a.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(a){var o=a.service,r=o.config;if(r.stsRegionalEndpoints=y(o._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&o.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var i=r.endpoint.indexOf(".amazonaws.com"),c=r.endpoint.substring(0,i)+"."+r.region+r.endpoint.substring(i);a.httpRequest.updateEndpoint(c),a.httpRequest.region=r.region}}})},57345:(J,I,s)=>{var n=s(72338),l="presigned-expires";function e(a){var o=a.httpRequest.headers[l],r=a.service.getSignerClass(a);if(delete a.httpRequest.headers["User-Agent"],delete a.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(o>604800)throw n.util.error(new Error,{code:"InvalidExpiryTime",message:"Presigning does not support expiry time greater than a week with SigV4 signing.",retryable:!1});a.httpRequest.headers[l]=o}else{if(r!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});var c=a.service?a.service.getSkewCorrectedDate():n.util.date.getDate();a.httpRequest.headers[l]=parseInt(n.util.date.unixTimestamp(c)+o,10).toString()}}function t(a){var o=a.httpRequest.endpoint,r=n.util.urlParse(a.httpRequest.path),i={};r.search&&(i=n.util.queryStringParse(r.search.substr(1)));var c=a.httpRequest.headers.Authorization.split(" ");if("AWS"===c[0])c=c[1].split(":"),i.Signature=c.pop(),i.AWSAccessKeyId=c.join(":"),n.util.each(a.httpRequest.headers,function(p,T){p===l&&(p="Expires"),0===p.indexOf("x-amz-meta-")&&(delete i[p],p=p.toLowerCase()),i[p]=T}),delete a.httpRequest.headers[l],delete i.Authorization,delete i.Host;else if("AWS4-HMAC-SHA256"===c[0]){c.shift();var g=c.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];i["X-Amz-Signature"]=g,delete i.Expires}o.pathname=r.pathname,o.search=n.util.queryParamsToString(i)}n.Signers.Presign=(0,n.util.inherit)({sign:function(o,r,i){if(o.httpRequest.headers[l]=r||3600,o.on("build",e),o.on("sign",t),o.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),o.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),o.emit("beforePresign",[o]),!i){if(o.build(),o.response.error)throw o.response.error;return n.util.urlFormat(o.httpRequest.endpoint)}o.build(function(){this.response.error?i(this.response.error):i(null,n.util.urlFormat(o.httpRequest.endpoint))})}}),J.exports=n.Signers.Presign},15198:(J,I,s)=>{var n=s(72338);n.Signers.RequestSigner=(0,n.util.inherit)({constructor:function(e){this.request=e},setServiceClientId:function(e){this.serviceClientId=e},getServiceClientId:function(){return this.serviceClientId}}),n.Signers.RequestSigner.getVersion=function(e){switch(e){case"v2":return n.Signers.V2;case"v3":return n.Signers.V3;case"s3v4":case"v4":return n.Signers.V4;case"s3":return n.Signers.S3;case"v3https":return n.Signers.V3Https}throw new Error("Unknown signing version "+e)},s(44508),s(70434),s(62189),s(28479),s(27531),s(57345)},27531:(J,I,s)=>{var n=s(72338);n.Signers.S3=(0,n.util.inherit)(n.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(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=n.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var a=this.sign(e.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+e.accessKeyId+":"+a},stringToSign:function(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var a=this.canonicalizedAmzHeaders();return a&&t.push(a),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,function(a){a.match(/^x-amz-/i)&&e.push(a)}),e.sort(function(a,o){return a.toLowerCase()<o.toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(a){t.push(a.toLowerCase()+":"+String(this.request.headers[a]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),o=t[1],r="";if(e.virtualHostedBucket&&(r+="/"+e.virtualHostedBucket),r+=t[0],o){var i=[];n.util.arrayEach.call(this,o.split("&"),function(c){var d=c.split("=")[0],g=c.split("=")[1];if(this.subResources[d]||this.responseHeaders[d]){var p={name:d};void 0!==g&&(p.value=this.subResources[d]?g:decodeURIComponent(g)),i.push(p)}}),i.sort(function(c,d){return c.name<d.name?-1:1}),i.length&&(o=[],n.util.arrayEach(i,function(c){o.push(void 0===c.value?c.name:c.name+"="+c.value)}),r+="?"+o.join("&"))}return r},sign:function(e,t){return n.util.crypto.hmac(e,t,"base64","sha1")}}),J.exports=n.Signers.S3},44508:(J,I,s)=>{var n=s(72338);n.Signers.V2=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var a=this.request;a.params.Timestamp=n.util.date.iso8601(t),a.params.SignatureVersion="2",a.params.SignatureMethod="HmacSHA256",a.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(a.params.SecurityToken=e.sessionToken),delete a.params.Signature,a.params.Signature=this.signature(e),a.body=n.util.queryParamsToString(a.params),a.headers["Content-Length"]=a.body.length},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(n.util.queryParamsToString(this.request.params)),e.join("\n")}}),J.exports=n.Signers.V2},70434:(J,I,s)=>{var n=s(72338);n.Signers.V3=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){var a=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=a,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,a)},authorization:function(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function(){var e=[];return n.util.arrayEach(this.headersToSign(),function(a){e.push(a.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(o){t.push(o.toLowerCase().trim()+":"+String(e[o]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(a){("Host"===a||"Content-Encoding"===a||a.match(/^X-Amz/i))&&e.push(a)}),e},signature:function(e){return n.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),n.util.crypto.sha256(e.join("\n"))}}),J.exports=n.Signers.V3},62189:(J,I,s)=>{var n=s(72338),y=n.util.inherit;s(70434),n.Signers.V3Https=y(n.Signers.V3,{authorization:function(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function(){return this.request.headers["X-Amz-Date"]}}),J.exports=n.Signers.V3Https},28479:(J,I,s)=>{var n=s(72338),y=s(68703),e="presigned-expires";n.Signers.V4=(0,n.util.inherit)(n.Signers.RequestSigner,{constructor:function(a,o,r){n.Signers.RequestSigner.call(this,a),this.serviceName=o,this.signatureCache="boolean"!=typeof(r=r||{}).signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(a,o){var r=n.util.date.iso8601(o).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(a,r):this.addHeaders(a,r),this.request.headers.Authorization=this.authorization(a,r)},addHeaders:function(a,o){this.request.headers["X-Amz-Date"]=o,a.sessionToken&&(this.request.headers["x-amz-security-token"]=a.sessionToken)},updateForPresigned:function(a,o){var r=this.credentialString(o),i={"X-Amz-Date":o,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":a.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[e],"X-Amz-SignedHeaders":this.signedHeaders()};a.sessionToken&&(i["X-Amz-Security-Token"]=a.sessionToken),this.request.headers["Content-Type"]&&(i["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(i["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(i["Cache-Control"]=this.request.headers["Cache-Control"]),n.util.each.call(this,this.request.headers,function(d,g){if(d!==e&&this.isSignableHeader(d)){var p=d.toLowerCase();0===p.indexOf("x-amz-meta-")?i[p]=g:0===p.indexOf("x-amz-")&&(i[d]=g)}});var c=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=c+n.util.queryParamsToString(i)},authorization:function(a,o){var r=[],i=this.credentialString(o);return r.push(this.algorithm+" Credential="+a.accessKeyId+"/"+i),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(a,o)),r.join(", ")},signature:function(a,o){var r=y.getSigningKey(a,o.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(o),"hex")},stringToSign:function(a){var o=[];return o.push("AWS4-HMAC-SHA256"),o.push(a),o.push(this.credentialString(a)),o.push(this.hexEncodedHash(this.canonicalString())),o.join("\n")},canonicalString:function(){var a=[],o=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(o=n.util.uriEscapePath(o)),a.push(this.request.method),a.push(o),a.push(this.request.search()),a.push(this.canonicalHeaders()+"\n"),a.push(this.signedHeaders()),a.push(this.hexEncodedBodyHash()),a.join("\n")},canonicalHeaders:function(){var a=[];n.util.each.call(this,this.request.headers,function(r,i){a.push([r,i])}),a.sort(function(r,i){return r[0].toLowerCase()<i[0].toLowerCase()?-1:1});var o=[];return n.util.arrayEach.call(this,a,function(r){var i=r[0].toLowerCase();if(this.isSignableHeader(i)){var c=r[1];if(null==c||"function"!=typeof c.toString)throw n.util.error(new Error("Header "+i+" contains invalid value"),{code:"InvalidHeader"});o.push(i+":"+this.canonicalHeaderValues(c.toString()))}}),o.join("\n")},canonicalHeaderValues:function(a){return a.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var a=[];return n.util.each.call(this,this.request.headers,function(o){o=o.toLowerCase(),this.isSignableHeader(o)&&a.push(o)}),a.sort().join(";")},credentialString:function(a){return y.createScope(a.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(a){return n.util.crypto.sha256(a,"hex")},hexEncodedBodyHash:function(){var a=this.request;return this.isPresigned()&&"s3"===this.serviceName&&!a.body?"UNSIGNED-PAYLOAD":a.headers["X-Amz-Content-Sha256"]?a.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",e,"expect","x-amzn-trace-id"],isSignableHeader:function(a){return 0===a.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(a)<0},isPresigned:function(){return!!this.request.headers[e]}}),J.exports=n.Signers.V4},68703:(J,I,s)=>{var n=s(72338),y={},l=[],t="aws4_request";J.exports={createScope:function(o,r,i){return[o.substr(0,8),r,i,t].join("/")},getSigningKey:function(o,r,i,c,d){var p=[n.util.crypto.hmac(o.secretAccessKey,o.accessKeyId,"base64"),r,i,c].join("_");if((d=!1!==d)&&p in y)return y[p];var T=n.util.crypto.hmac("AWS4"+o.secretAccessKey,r,"buffer"),S=n.util.crypto.hmac(T,i,"buffer"),b=n.util.crypto.hmac(S,c,"buffer"),A=n.util.crypto.hmac(b,t,"buffer");return d&&(y[p]=A,l.push(p),l.length>50&&delete y[l.shift()]),A},emptyCache:function(){y={},l=[]}}},18730:J=>{function I(s,n){this.currentState=n||null,this.states=s||{}}I.prototype.runTo=function(n,y,l,e){"function"==typeof n&&(e=l,l=y,y=n,n=null);var t=this,a=t.states[t.currentState];a.fn.call(l||t,e,function(o){if(o){if(!a.fail)return y?y.call(l,o):null;t.currentState=a.fail}else{if(!a.accept)return y?y.call(l):null;t.currentState=a.accept}if(t.currentState===n)return y?y.call(l,o):null;t.runTo(n,y,l,o)})},I.prototype.addState=function(n,y,l,e){return"function"==typeof y?(e=y,y=null,l=null):"function"==typeof l&&(e=l,l=null),this.currentState||(this.currentState=n),this.states[n]={accept:y,fail:l,fn:e},this},J.exports=I},84964:(J,I,s)=>{var n,y={environment:"nodejs",engine:function(){if(y.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var e=process.platform+"/"+process.version;return process.env.AWS_EXECUTION_ENV&&(e+=" exec-env/"+process.env.AWS_EXECUTION_ENV),e},userAgent:function(){var e=y.environment,t="aws-sdk-"+e+"/"+s(72338).VERSION;return"nodejs"===e&&(t+=" "+y.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(a){return"%"+a.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return y.arrayEach(e.split("/"),function(a){t.push(y.uriEscape(a))}),t.join("/")},urlParse:function(e){return y.url.parse(e)},urlFormat:function(e){return y.url.format(e)},queryStringParse:function(e){return y.querystring.parse(e)},queryParamsToString:function(e){var t=[],a=y.uriEscape,o=Object.keys(e).sort();return y.arrayEach(o,function(r){var i=e[r],c=a(r),d=c+"=";if(Array.isArray(i)){var g=[];y.arrayEach(i,function(p){g.push(a(p))}),d=c+"="+g.sort().join("&"+c+"=")}else null!=i&&(d=c+"="+a(i));t.push(d)}),t.join("&")},readFileSync:function(e){return y.isBrowser()?null:s(94659).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw y.error(new Error("Cannot base64 encode number "+e));return null==e?e:y.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw y.error(new Error("Cannot base64 decode number "+e));return null==e?e:y.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(l,e){return"function"==typeof y.Buffer.from&&y.Buffer.from!==Uint8Array.from?y.Buffer.from(l,e):new y.Buffer(l,e)},alloc:function(l,e,t){if("number"!=typeof l)throw new Error("size passed to alloc must be a number.");if("function"==typeof y.Buffer.alloc)return y.Buffer.alloc(l,e,t);var a=new y.Buffer(l);return void 0!==e&&"function"==typeof a.fill&&a.fill(e,void 0,void 0,t),a},toStream:function(e){y.Buffer.isBuffer(e)||(e=y.buffer.toBuffer(e));var t=new y.stream.Readable,a=0;return t._read=function(o){if(a>=e.length)return t.push(null);var r=a+o;r>e.length&&(r=e.length),t.push(e.slice(a,r)),a=r},t},concat:function(l){var a,o,e=0,t=0;for(o=0;o<l.length;o++)e+=l[o].length;for(a=y.buffer.alloc(e),o=0;o<l.length;o++)l[o].copy(a,t),t+=l[o].length;return a}},string:{byteLength:function(e){if(null==e)return 0;if("string"==typeof e&&(e=y.buffer.toBuffer(e)),"number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"==typeof e.path)return s(94659).lstatSync(e.path).size;throw y.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function(e){var t,a={};return y.arrayEach(e.split(/\r?\n/),function(o){var r=(o=o.split(/(^|\s)[;#]/)[0]).match(/^\s*\[([^\[\]]+)\]\s*$/);if(r){if("__proto__"===(t=r[1])||"__proto__"===t.split(/\s/)[1])throw y.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var i=o.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);i&&(a[t]=a[t]||{},a[t][i[1]]=i[2])}}),a}},fn:{noop:function(){},callback:function(l){if(l)throw l},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var a=Array.prototype.slice.call(arguments,0),o=a.pop(),r=e.apply(null,a);o(r)}}},date:{getDate:function(){return n||(n=s(72338)),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=y.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=y.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=y.date.getDate()),e.getTime()/1e3},from:function(e){return"number"==typeof e?new Date(1e3*e):new Date(e)},format:function(e,t){return t||(t="iso8601"),y.date[t](y.date.from(e))},parseTimestamp:function(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw y.error(new Error("unhandled timestamp format: "+e),{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(e){var t=y.crypto.crc32Table,a=-1;"string"==typeof e&&(e=y.buffer.toBuffer(e));for(var o=0;o<e.length;o++)a=a>>>8^t[255&(a^e.readUInt8(o))];return(-1^a)>>>0},hmac:function(e,t,a,o){return a||(a="binary"),"buffer"===a&&(a=void 0),o||(o="sha256"),"string"==typeof t&&(t=y.buffer.toBuffer(t)),y.crypto.lib.createHmac(o,e).update(t).digest(a)},md5:function(e,t,a){return y.crypto.hash("md5",e,t,a)},sha256:function(e,t,a){return y.crypto.hash("sha256",e,t,a)},hash:function(l,e,t,a){var o=y.crypto.createHash(l);t||(t="binary"),"buffer"===t&&(t=void 0),"string"==typeof e&&(e=y.buffer.toBuffer(e));var r=y.arraySliceFn(e),i=y.Buffer.isBuffer(e);if(y.isBrowser()&&"undefined"!=typeof ArrayBuffer&&e&&e.buffer instanceof ArrayBuffer&&(i=!0),a&&"object"==typeof e&&"function"==typeof e.on&&!i)e.on("data",function(T){o.update(T)}),e.on("error",function(T){a(T)}),e.on("end",function(){a(null,o.digest(t))});else{if(!a||!r||i||"undefined"==typeof FileReader){y.isBrowser()&&"object"==typeof e&&!i&&(e=new y.Buffer(new Uint8Array(e)));var p=o.update(e).digest(t);return a&&a(null,p),p}var c=0,g=new FileReader;g.onerror=function(){a(new Error("Failed to read data."))},g.onload=function(){var T=new y.Buffer(new Uint8Array(g.result));o.update(T),c+=T.length,g._continueReading()},g._continueReading=function(){if(c>=e.size)a(null,o.digest(t));else{var T=c+524288;T>e.size&&(T=e.size),g.readAsArrayBuffer(r.call(e,c,T))}},g._continueReading()}},toHex:function(e){for(var t=[],a=0;a<e.length;a++)t.push(("0"+e.charCodeAt(a).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return y.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t.call(this,a,e[a])===y.abort)break},arrayEach:function(e,t){for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t.call(this,e[a],parseInt(a,10))===y.abort)break},update:function(e,t){return y.each(t,function(o,r){e[o]=r}),e},merge:function(e,t){return y.update(y.copy(e),t)},copy:function(e){if(null==e)return e;var t={};for(var a in e)t[a]=e[a];return t},isEmpty:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},arraySliceFn:function(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function(e,t){return"function"==typeof t&&(t=y.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function(e){if(Object.prototype.hasOwnProperty.call(e,"name"))return e.name;var t=e.toString(),a=t.match(/^\s*function (.+)\(/);return a?a[1]:t},error:function(e,t){var a=null;return"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&((a=y.copy(e)).message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(y.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=String(t&&t.name||e.name||e.code||"Error"),e.time=new Date,a&&(e.originalError=a),e},inherit:function(e,t){var a=null;if(void 0===t)t=e,e=Object,a={};else{var o=function(){};o.prototype=e.prototype,a=new o}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=a,y.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var a in arguments[t].prototype){var o=arguments[t].prototype[a];"constructor"!==a&&(e.prototype[a]=o)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&y.arrayEach(t,function(a){Object.defineProperty(e,a,{enumerable:!1,writable:!0,configurable:!0})})},property:function(e,t,a,o,r){var i={configurable:!0,enumerable:void 0===o||o};"function"!=typeof a||r?(i.value=a,i.writable=!0):i.get=a,Object.defineProperty(e,t,i)},memoizedProperty:function(e,t,a,o){var r=null;y.property(e,t,function(){return null===r&&(r=a()),r},o)},hoistPayloadMember:function(e){var t=e.request,o=t.service.api.operations[t.operation],r=o.output;r.payload&&!o.hasEventOutput&&"structure"===r.members[r.payload].type&&y.each(e.data[r.payload],function(d,g){y.property(e.data,d,g,!1)})},computeSha256:function(e,t){if(y.isNode()){var a=y.stream.Stream,o=s(94659);if("function"==typeof a&&e instanceof a){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));var r={};"number"==typeof e.start&&(r.start=e.start),"number"==typeof e.end&&(r.end=e.end),e=o.createReadStream(e.path,r)}}y.crypto.sha256(e,"hex",function(i,c){i?t(i):t(null,c)})},isClockSkewed:function(e){if(e)return y.property(n.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),n.config.isClockSkewed},applyClockOffset:function(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)},addPromises:function(e,t){var a=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(a=!0),Array.isArray(e)||(e=[e]);for(var o=0;o<e.length;o++){var r=e[o];a?r.deletePromisesFromClass&&r.deletePromisesFromClass():r.addPromisesToClass&&r.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var o=this,r=Array.prototype.slice.call(arguments);return new t(function(i,c){r.push(function(d,g){d?c(d):i(g)}),o[e].apply(o,r)})}},isDualstackAvailable:function(e){if(!e)return!1;var t=s(65359);return"string"!=typeof e&&(e=e.serviceIdentifier),!("string"!=typeof e||!t.hasOwnProperty(e)||!t[e].dualstackAvailable)},calculateRetryDelay:function(e,t,a){t||(t={});var o=t.customBackoff||null;if("function"==typeof o)return o(e,a);var r="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*r)},handleRequestWithRetries:function(e,t,a){t||(t={});var o=n.HttpClient.getInstance(),r=t.httpOptions||{},i=0,c=function(g){var p=t.maxRetries||0;if(g&&"TimeoutError"===g.code&&(g.retryable=!0),g&&g.retryable&&i<p){var T=y.calculateRetryDelay(i,t.retryDelayOptions,g);if(T>=0)return i++,void setTimeout(d,T+(g.retryAfter||0))}a(g)},d=function(){var g="";o.handleRequest(e,r,function(p){p.on("data",function(T){g+=T.toString()}),p.on("end",function(){var T=p.statusCode;if(T<300)a(null,g);else{var S=1e3*parseInt(p.headers["retry-after"],10)||0,b=y.error(new Error,{statusCode:T,retryable:T>=500||429===T});S&&b.retryable&&(b.retryAfter=S),c(b)}})},c)};n.util.defer(d)},uuid:{v4:function(){return s(29459).v4()}},convertPayloadToString:function(e){var t=e.request,o=t.service.api.operations[t.operation].output||{};o.payload&&e.data[o.payload]&&(e.data[o.payload]=e.data[o.payload].toString())},defer:function(e){"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick(e):"function"==typeof setImmediate?setImmediate(e):setTimeout(e,0)},getRequestPayloadShape:function(e){var t=e.service.api.operations;if(t){var a=(t||{})[e.operation];if(a&&a.input&&a.input.payload)return a.input.members[a.input.payload]}},getProfilesFromSharedConfig:function(e,t){var a={},o={};process.env[y.configOptInEnv]&&(o=e.loadFrom({isConfig:!0,filename:process.env[y.sharedConfigFileEnv]}));var r={};try{r=e.loadFrom({filename:t||process.env[y.configOptInEnv]&&process.env[y.sharedCredentialsFileEnv]})}catch(g){if(!process.env[y.configOptInEnv])throw g}for(var i=0,c=Object.keys(o);i<c.length;i++)a[c[i]]=d(a[c[i]]||{},o[c[i]]);for(i=0,c=Object.keys(r);i<c.length;i++)a[c[i]]=d(a[c[i]]||{},r[c[i]]);return a;function d(g,p){for(var T=0,S=Object.keys(p);T<S.length;T++)g[S[T]]=p[S[T]];return g}},ARN:{validate:function(e){return e&&0===e.indexOf("arn:")&&e.split(":").length>=6},parse:function(e){var t=e.split(":");return{partition:t[1],service:t[2],region:t[3],accountId:t[4],resource:t.slice(5).join(":")}},build:function(e){if(void 0===e.service||void 0===e.region||void 0===e.accountId||void 0===e.resource)throw y.error(new Error("Input ARN object is invalid"));return"arn:"+(e.partition||"aws")+":"+e.service+":"+e.region+":"+e.accountId+":"+e.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};J.exports=y},681:(J,I,s)=>{var n=s(84964),y=s(74822);function l(){}function e(d,g){for(var p=d.getElementsByTagName(g),T=0,S=p.length;T<S;T++)if(p[T].parentNode===d)return p[T]}function t(d,g){switch(g||(g={}),g.type){case"structure":return a(d,g);case"map":return function(d,g){for(var p={},T=g.key.name||"key",S=g.value.name||"value",b=g.flattened?g.name:"entry",A=d.firstElementChild;A;){if(A.nodeName===b){var x=e(A,T).textContent,G=e(A,S);p[x]=t(G,g.value)}A=A.nextElementSibling}return p}(d,g);case"list":return function(d,g){for(var p=[],T=g.flattened?g.name:g.member.name||"member",S=d.firstElementChild;S;)S.nodeName===T&&p.push(t(S,g.member)),S=S.nextElementSibling;return p}(d,g);case void 0:case null:return function(d){if(null==d)return"";if(!d.firstElementChild)return null===d.parentNode.parentNode?{}:0===d.childNodes.length?"":d.textContent;for(var g={type:"structure",members:{}},p=d.firstElementChild;p;){var T=p.nodeName;Object.prototype.hasOwnProperty.call(g.members,T)?g.members[T].type="list":g.members[T]={name:T},p=p.nextElementSibling}return a(d,g)}(d);default:return function(d,g){if(d.getAttribute){var p=d.getAttribute("encoding");"base64"===p&&(g=new y.create({type:p}))}var T=d.textContent;return""===T&&(T=null),"function"==typeof g.toType?g.toType(T):T}(d,g)}}function a(d,g){var p={};return null===d||n.each(g.members,function(T,S){if(S.isXmlAttribute)Object.prototype.hasOwnProperty.call(d.attributes,S.name)&&(p[T]=t({textContent:d.attributes[S.name].value},S));else{var A=S.flattened?d:e(d,S.name);A?p[T]=t(A,S):!S.flattened&&"list"===S.type&&!g.api.xmlNoDefaultLists&&(p[T]=S.defaultValue)}}),p}l.prototype.parse=function(d,g){if(""===d.replace(/^\s+/,""))return{};var p,T;try{if(window.DOMParser){try{p=(new DOMParser).parseFromString(d,"text/xml")}catch(W){throw n.error(new Error("Parse error in document"),{originalError:W,code:"XMLParserError",retryable:!0})}if(null===p.documentElement)throw n.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var b=p.getElementsByTagName("parsererror")[0];if(b&&(b.parentNode===p||"body"===b.parentNode.nodeName||b.parentNode.parentNode===p||"body"===b.parentNode.parentNode.nodeName)){var A=b.getElementsByTagName("div")[0]||b;throw n.error(new Error(A.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((p=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!p.loadXML(d))throw n.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(W){T=W}if(p&&p.documentElement&&!T){var x=t(p.documentElement,g),G=e(p.documentElement,"ResponseMetadata");return G&&(x.ResponseMetadata=t(G,{})),x}if(T)throw n.error(T||new Error,{code:"XMLParserError",retryable:!0});return{}},J.exports=l},39244:(J,I,s)=>{var n=s(84964),y=s(51980).XmlNode,l=s(59758).XmlText;function e(){}function t(d,g,p){switch(p.type){case"structure":return function(d,g,p){n.arrayEach(p.memberNames,function(T){var S=p.members[T];if("body"===S.location){var b=g[T],A=S.name;if(null!=b)if(S.isXmlAttribute)d.addAttribute(A,b);else if(S.flattened)t(d,b,S);else{var x=new y(A);d.addChildNode(x),c(x,S),t(x,b,S)}}})}(d,g,p);case"map":return function(d,g,p){var T=p.key.name||"key",S=p.value.name||"value";n.each(g,function(b,A){var x=new y(p.flattened?p.name:"entry");d.addChildNode(x);var G=new y(T),W=new y(S);x.addChildNode(G),x.addChildNode(W),t(G,b,p.key),t(W,A,p.value)})}(d,g,p);case"list":return function(d,g,p){n.arrayEach(g,p.flattened?function(T){var b=new y(p.member.name||p.name);d.addChildNode(b),t(b,T,p.member)}:function(T){var b=new y(p.member.name||"member");d.addChildNode(b),t(b,T,p.member)})}(d,g,p);default:return function(d,g,p){d.addChildNode(new l(p.toWireFormat(g)))}(d,g,p)}}function c(d,g,p){var T,S="xmlns";g.xmlNamespaceUri?(T=g.xmlNamespaceUri,g.xmlNamespacePrefix&&(S+=":"+g.xmlNamespacePrefix)):p&&g.api.xmlNamespaceUri&&(T=g.api.xmlNamespaceUri),T&&d.addAttribute(S,T)}e.prototype.toXML=function(d,g,p,T){var S=new y(p);return c(S,g,!0),t(S,d,g),S.children.length>0||T?S.toString():""},J.exports=e},70801:J=>{J.exports={escapeAttribute:function(s){return s.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},98394:J=>{J.exports={escapeElement:function(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}}},51980:(J,I,s)=>{var n=s(70801).escapeAttribute;function y(l,e){void 0===e&&(e=[]),this.name=l,this.children=e,this.attributes={}}y.prototype.addAttribute=function(l,e){return this.attributes[l]=e,this},y.prototype.addChildNode=function(l){return this.children.push(l),this},y.prototype.removeAttribute=function(l){return delete this.attributes[l],this},y.prototype.toString=function(){for(var l=Boolean(this.children.length),e="<"+this.name,t=this.attributes,a=0,o=Object.keys(t);a<o.length;a++){var r=o[a],i=t[r];null!=i&&(e+=" "+r+'="'+n(""+i)+'"')}return e+(l?">"+this.children.map(function(c){return c.toString()}).join("")+"</"+this.name+">":"/>")},J.exports={XmlNode:y}},59758:(J,I,s)=>{var n=s(98394).escapeElement;function y(l){this.value=l}y.prototype.toString=function(){return n(""+this.value)},J.exports={XmlText:y}},73934:(J,I,s)=>{var n=s(61920);function y(){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}I.parse=A,I.resolve=function(u,v){return A(u,!1,!0).resolve(v)},I.resolveObject=function(u,v){return u?A(u,!1,!0).resolveObject(v):v},I.format=function(u){return H(u)&&(u=A(u)),u instanceof y?u.format():y.prototype.format.call(u)},I.Url=y;var l=/^([a-z0-9.+-]+:)/i,e=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),o=["'"].concat(a),r=["%","/","?",";","#"].concat(o),i=["/","?","#"],d=/^[a-z0-9A-Z_-]{0,63}$/,g=/^([a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},T={javascript:!0,"javascript:":!0},S={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=s(93143);function A(u,v,h){if(u&&B(u)&&u instanceof y)return u;var R=new y;return R.parse(u,v,h),R}function H(u){return"string"==typeof u}function B(u){return"object"==typeof u&&null!==u}function m(u){return null===u}y.prototype.parse=function(u,v,h){if(!H(u))throw new TypeError("Parameter 'url' must be a string, not "+typeof u);var R=u;R=R.trim();var N=l.exec(R);if(N){var P=(N=N[0]).toLowerCase();this.protocol=P,R=R.substr(N.length)}if(h||N||R.match(/^\/\/[^@\/]+@[^@\/]+/)){var U="//"===R.substr(0,2);U&&(!N||!T[N])&&(R=R.substr(2),this.slashes=!0)}if(!T[N]&&(U||N&&!S[N])){for(var Z=-1,ue=0;ue<i.length;ue++)-1!==(V=R.indexOf(i[ue]))&&(-1===Z||V<Z)&&(Z=V);var re,ee;for(-1!==(ee=-1===Z?R.lastIndexOf("@"):R.lastIndexOf("@",Z))&&(re=R.slice(0,ee),R=R.slice(ee+1),this.auth=decodeURIComponent(re)),Z=-1,ue=0;ue<r.length;ue++){var V;-1!==(V=R.indexOf(r[ue]))&&(-1===Z||V<Z)&&(Z=V)}-1===Z&&(Z=R.length),this.host=R.slice(0,Z),R=R.slice(Z),this.parseHost(),this.hostname=this.hostname||"";var Y="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!Y)for(var Q=this.hostname.split(/\./),k=(ue=0,Q.length);ue<k;ue++){var K=Q[ue];if(K&&!K.match(d)){for(var C="",f=0,O=K.length;f<O;f++)K.charCodeAt(f)>127?C+="x":C+=K[f];if(!C.match(d)){var E=Q.slice(0,ue),M=Q.slice(ue+1),j=K.match(g);j&&(E.push(j[1]),M.unshift(j[2])),M.length&&(R="/"+M.join(".")+R),this.hostname=E.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!Y){var q=this.hostname.split("."),ne=[];for(ue=0;ue<q.length;++ue)ne.push((oe=q[ue]).match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(oe):oe);this.hostname=ne.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,Y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==R[0]&&(R="/"+R))}if(!p[P])for(ue=0,k=o.length;ue<k;ue++){var be=o[ue],me=encodeURIComponent(be);me===be&&(me=escape(be)),R=R.split(be).join(me)}var ge=R.indexOf("#");-1!==ge&&(this.hash=R.substr(ge),R=R.slice(0,ge));var oe,F=R.indexOf("?");return-1!==F?(this.search=R.substr(F),this.query=R.substr(F+1),v&&(this.query=b.parse(this.query)),R=R.slice(0,F)):v&&(this.search="",this.query={}),R&&(this.pathname=R),S[P]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(oe=this.search||"")),this.href=this.format(),this},y.prototype.format=function(){var u=this.auth||"";u&&(u=(u=encodeURIComponent(u)).replace(/%3A/i,":"),u+="@");var v=this.protocol||"",h=this.pathname||"",R=this.hash||"",N=!1,P="";this.host?N=u+this.host:this.hostname&&(N=u+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(N+=":"+this.port)),this.query&&B(this.query)&&Object.keys(this.query).length&&(P=b.stringify(this.query));var U=this.search||P&&"?"+P||"";return v&&":"!==v.substr(-1)&&(v+=":"),this.slashes||(!v||S[v])&&!1!==N?(N="//"+(N||""),h&&"/"!==h.charAt(0)&&(h="/"+h)):N||(N=""),R&&"#"!==R.charAt(0)&&(R="#"+R),U&&"?"!==U.charAt(0)&&(U="?"+U),v+N+(h=h.replace(/[?#]/g,function(Z){return encodeURIComponent(Z)}))+(U=U.replace("#","%23"))+R},y.prototype.resolve=function(u){return this.resolveObject(A(u,!1,!0)).format()},y.prototype.resolveObject=function(u){if(H(u)){var v=new y;v.parse(u,!1,!0),u=v}var h=new y;if(Object.keys(this).forEach(function(O){h[O]=this[O]},this),h.hash=u.hash,""===u.href)return h.href=h.format(),h;if(u.slashes&&!u.protocol)return Object.keys(u).forEach(function(O){"protocol"!==O&&(h[O]=u[O])}),S[h.protocol]&&h.hostname&&!h.pathname&&(h.path=h.pathname="/"),h.href=h.format(),h;if(u.protocol&&u.protocol!==h.protocol){if(!S[u.protocol])return Object.keys(u).forEach(function(O){h[O]=u[O]}),h.href=h.format(),h;if(h.protocol=u.protocol,u.host||T[u.protocol])h.pathname=u.pathname;else{for(var re=(u.pathname||"").split("/");re.length&&!(u.host=re.shift()););u.host||(u.host=""),u.hostname||(u.hostname=""),""!==re[0]&&re.unshift(""),re.length<2&&re.unshift(""),h.pathname=re.join("/")}return h.search=u.search,h.query=u.query,h.host=u.host||"",h.auth=u.auth,h.hostname=u.hostname||u.host,h.port=u.port,(h.pathname||h.search)&&(h.path=(h.pathname||"")+(h.search||"")),h.slashes=h.slashes||u.slashes,h.href=h.format(),h}var P=h.pathname&&"/"===h.pathname.charAt(0),U=u.host||u.pathname&&"/"===u.pathname.charAt(0),Z=U||P||h.host&&u.pathname,ue=Z,V=h.pathname&&h.pathname.split("/")||[],ee=(re=u.pathname&&u.pathname.split("/")||[],h.protocol&&!S[h.protocol]);if(ee&&(h.hostname="",h.port=null,h.host&&(""===V[0]?V[0]=h.host:V.unshift(h.host)),h.host="",u.protocol&&(u.hostname=null,u.port=null,u.host&&(""===re[0]?re[0]=u.host:re.unshift(u.host)),u.host=null),Z=Z&&(""===re[0]||""===V[0])),U)h.host=u.host||""===u.host?u.host:h.host,h.hostname=u.hostname||""===u.hostname?u.hostname:h.hostname,h.search=u.search,h.query=u.query,V=re;else if(re.length)V||(V=[]),V.pop(),V=V.concat(re),h.search=u.search,h.query=u.query;else if(!function(u){return null==u}(u.search))return ee&&(h.hostname=h.host=V.shift(),(Y=!!(h.host&&h.host.indexOf("@")>0)&&h.host.split("@"))&&(h.auth=Y.shift(),h.host=h.hostname=Y.shift())),h.search=u.search,h.query=u.query,(!m(h.pathname)||!m(h.search))&&(h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")),h.href=h.format(),h;if(!V.length)return h.pathname=null,h.path=h.search?"/"+h.search:null,h.href=h.format(),h;for(var Q=V.slice(-1)[0],k=(h.host||u.host)&&("."===Q||".."===Q)||""===Q,K=0,C=V.length;C>=0;C--)"."==(Q=V[C])?V.splice(C,1):".."===Q?(V.splice(C,1),K++):K&&(V.splice(C,1),K--);if(!Z&&!ue)for(;K--;K)V.unshift("..");Z&&""!==V[0]&&(!V[0]||"/"!==V[0].charAt(0))&&V.unshift(""),k&&"/"!==V.join("/").substr(-1)&&V.push("");var Y,f=""===V[0]||V[0]&&"/"===V[0].charAt(0);return ee&&(h.hostname=h.host=f?"":V.length?V.shift():"",(Y=!!(h.host&&h.host.indexOf("@")>0)&&h.host.split("@"))&&(h.auth=Y.shift(),h.host=h.hostname=Y.shift())),(Z=Z||h.host&&V.length)&&!f&&V.unshift(""),V.length?h.pathname=V.join("/"):(h.pathname=null,h.path=null),(!m(h.pathname)||!m(h.search))&&(h.path=(h.pathname?h.pathname:"")+(h.search?h.search:"")),h.auth=u.auth||h.auth,h.slashes=h.slashes||u.slashes,h.href=h.format(),h},y.prototype.parseHost=function(){var u=this.host,v=e.exec(u);v&&(":"!==(v=v[0])&&(this.port=v.substr(1)),u=u.substr(0,u.length-v.length)),u&&(this.hostname=u)}},29459:(J,I,s)=>{var n=s(80122),y=s(70879),l=y;l.v1=n,l.v4=y,J.exports=l},70157:J=>{for(var I=[],s=0;s<256;++s)I[s]=(s+256).toString(16).substr(1);J.exports=function(y,l){var e=l||0;return[I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],"-",I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]],I[y[e++]]].join("")}},60109:J=>{var I="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(I){var s=new Uint8Array(16);J.exports=function(){return I(s),s}}else{var n=new Array(16);J.exports=function(){for(var e,l=0;l<16;l++)0==(3&l)&&(e=4294967296*Math.random()),n[l]=e>>>((3&l)<<3)&255;return n}}},80122:(J,I,s)=>{var l,e,n=s(60109),y=s(70157),t=0,a=0;J.exports=function(r,i,c){var d=i&&c||0,g=i||[],p=(r=r||{}).node||l,T=void 0!==r.clockseq?r.clockseq:e;if(null==p||null==T){var S=n();null==p&&(p=l=[1|S[0],S[1],S[2],S[3],S[4],S[5]]),null==T&&(T=e=16383&(S[6]<<8|S[7]))}var b=void 0!==r.msecs?r.msecs:(new Date).getTime(),A=void 0!==r.nsecs?r.nsecs:a+1,x=b-t+(A-a)/1e4;if(x<0&&void 0===r.clockseq&&(T=T+1&16383),(x<0||b>t)&&void 0===r.nsecs&&(A=0),A>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");t=b,a=A,e=T;var G=(1e4*(268435455&(b+=122192928e5))+A)%4294967296;g[d++]=G>>>24&255,g[d++]=G>>>16&255,g[d++]=G>>>8&255,g[d++]=255&G;var W=b/4294967296*1e4&268435455;g[d++]=W>>>8&255,g[d++]=255&W,g[d++]=W>>>24&15|16,g[d++]=W>>>16&255,g[d++]=T>>>8|128,g[d++]=255&T;for(var H=0;H<6;++H)g[d+H]=p[H];return i||y(g)}},70879:(J,I,s)=>{var n=s(60109),y=s(70157);J.exports=function(e,t,a){var o=t&&a||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var r=(e=e||{}).random||(e.rng||n)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t)for(var i=0;i<16;++i)t[o+i]=r[i];return t||y(r)}},28937:(J,I,s)=>{"use strict";var y=s(561),e=function(){function t(a){void 0===a&&(a=1e3),this.maxSize=a,this.cache=new y.LRUCache(a)}return Object.defineProperty(t.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),t.prototype.put=function(a,o){var r="string"!=typeof a?t.getKeyString(a):a,i=this.populateValue(o);this.cache.put(r,i)},t.prototype.get=function(a){var o="string"!=typeof a?t.getKeyString(a):a,r=Date.now(),i=this.cache.get(o);if(i){for(var c=i.length-1;c>=0;c--)i[c].Expire<r&&i.splice(c,1);if(0===i.length)return void this.cache.remove(o)}return i},t.getKeyString=function(a){for(var o=[],r=Object.keys(a).sort(),i=0;i<r.length;i++){var c=r[i];void 0!==a[c]&&o.push(a[c])}return o.join(" ")},t.prototype.populateValue=function(a){var o=Date.now();return a.map(function(r){return{Address:r.Address||"",Expire:o+60*(r.CachePeriodInMinutes||1)*1e3}})},t.prototype.empty=function(){this.cache.empty()},t.prototype.remove=function(a){var o="string"!=typeof a?t.getKeyString(a):a;this.cache.remove(o)},t}();I.$=e},561:(J,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var s=function(l,e){this.key=l,this.value=e},n=function(){function y(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(y.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),y.prototype.prependToList=function(l){this.headerNode?(this.headerNode.prev=l,l.next=this.headerNode):this.tailNode=l,this.headerNode=l,this.size++},y.prototype.removeFromTail=function(){if(this.tailNode){var l=this.tailNode,e=l.prev;return e&&(e.next=void 0),l.prev=void 0,this.tailNode=e,this.size--,l}},y.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--},y.prototype.get=function(l){if(this.nodeMap[l]){var e=this.nodeMap[l];return this.detachFromList(e),this.prependToList(e),e.value}},y.prototype.remove=function(l){this.nodeMap[l]&&(this.detachFromList(this.nodeMap[l]),delete this.nodeMap[l])},y.prototype.put=function(l,e){if(this.nodeMap[l])this.remove(l);else if(this.size===this.sizeLimit){var t=this.removeFromTail();delete this.nodeMap[t.key]}var o=new s(l,e);this.nodeMap[l]=o,this.prependToList(o)},y.prototype.empty=function(){for(var l=Object.keys(this.nodeMap),e=0;e<l.length;e++){var t=l[e];this.detachFromList(this.nodeMap[t]),delete this.nodeMap[t]}},y}();I.LRUCache=n},61210:(J,I)=>{"use strict";I.byteLength=function(p){var T=a(p),b=T[1];return 3*(T[0]+b)/4-b},I.toByteArray=function(p){var T,H,S=a(p),b=S[0],A=S[1],x=new y(function(p,T,S){return 3*(T+S)/4-S}(0,b,A)),G=0,W=A>0?b-4:b;for(H=0;H<W;H+=4)T=n[p.charCodeAt(H)]<<18|n[p.charCodeAt(H+1)]<<12|n[p.charCodeAt(H+2)]<<6|n[p.charCodeAt(H+3)],x[G++]=T>>16&255,x[G++]=T>>8&255,x[G++]=255&T;return 2===A&&(T=n[p.charCodeAt(H)]<<2|n[p.charCodeAt(H+1)]>>4,x[G++]=255&T),1===A&&(T=n[p.charCodeAt(H)]<<10|n[p.charCodeAt(H+1)]<<4|n[p.charCodeAt(H+2)]>>2,x[G++]=T>>8&255,x[G++]=255&T),x},I.fromByteArray=function(p){for(var T,S=p.length,b=S%3,A=[],x=16383,G=0,W=S-b;G<W;G+=x)A.push(d(p,G,G+x>W?W:G+x));return 1===b?A.push(s[(T=p[S-1])>>2]+s[T<<4&63]+"=="):2===b&&A.push(s[(T=(p[S-2]<<8)+p[S-1])>>10]+s[T>>4&63]+s[T<<2&63]+"="),A.join("")};for(var s=[],n=[],y="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,t=l.length;e<t;++e)s[e]=l[e],n[l.charCodeAt(e)]=e;function a(p){var T=p.length;if(T%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var S=p.indexOf("=");return-1===S&&(S=T),[S,S===T?0:4-S%4]}function c(p){return s[p>>18&63]+s[p>>12&63]+s[p>>6&63]+s[63&p]}function d(p,T,S){for(var A=[],x=T;x<S;x+=3)A.push(c((p[x]<<16&16711680)+(p[x+1]<<8&65280)+(255&p[x+2])));return A.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2341:(J,I,s)=>{"use strict";var y=s(61210),l=s(18427),e=s(50130);function a(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(F,_){if(a()<_)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(F=new Uint8Array(_)).__proto__=r.prototype:(null===F&&(F=new r(_)),F.length=_),F}function r(F,_,D){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(F,_,D);if("number"==typeof F){if("string"==typeof _)throw new Error("If encoding is specified then the first argument must be a string");return g(this,F)}return i(this,F,_,D)}function i(F,_,D,X){if("number"==typeof _)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&_ instanceof ArrayBuffer?function(F,_,D,X){if(D<0||_.byteLength<D)throw new RangeError("'offset' is out of bounds");if(_.byteLength<D+(X||0))throw new RangeError("'length' is out of bounds");return _=void 0===D&&void 0===X?new Uint8Array(_):void 0===X?new Uint8Array(_,D):new Uint8Array(_,D,X),r.TYPED_ARRAY_SUPPORT?(F=_).__proto__=r.prototype:F=T(F,_),F}(F,_,D,X):"string"==typeof _?function(F,_,D){if(("string"!=typeof D||""===D)&&(D="utf8"),!r.isEncoding(D))throw new TypeError('"encoding" must be a valid string encoding');var X=0|G(_,D),le=(F=o(F,X)).write(_,D);return le!==X&&(F=F.slice(0,le)),F}(F,_,D):function(F,_){if(r.isBuffer(_)){var D=0|A(_.length);return 0===(F=o(F,D)).length||_.copy(F,0,0,D),F}if(_){if("undefined"!=typeof ArrayBuffer&&_.buffer instanceof ArrayBuffer||"length"in _)return"number"!=typeof _.length||function(F){return F!=F}(_.length)?o(F,0):T(F,_);if("Buffer"===_.type&&e(_.data))return T(F,_.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(F,_)}function c(F){if("number"!=typeof F)throw new TypeError('"size" argument must be a number');if(F<0)throw new RangeError('"size" argument must not be negative')}function g(F,_){if(c(_),F=o(F,_<0?0:0|A(_)),!r.TYPED_ARRAY_SUPPORT)for(var D=0;D<_;++D)F[D]=0;return F}function T(F,_){var D=_.length<0?0:0|A(_.length);F=o(F,D);for(var X=0;X<D;X+=1)F[X]=255&_[X];return F}function A(F){if(F>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|F}function G(F,_){if(r.isBuffer(F))return F.length;if("undefined"!=typeof ArrayBuffer&&"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 X=!1;;)switch(_){case"ascii":case"latin1":case"binary":return D;case"utf8":case"utf-8":case void 0:return oe(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*D;case"hex":return D>>>1;case"base64":return be(F).length;default:if(X)return oe(F).length;_=(""+_).toLowerCase(),X=!0}}function W(F,_,D){var X=!1;if((void 0===_||_<0)&&(_=0),_>this.length||((void 0===D||D>this.length)&&(D=this.length),D<=0)||(D>>>=0)<=(_>>>=0))return"";for(F||(F="utf8");;)switch(F){case"hex":return ee(this,_,D);case"utf8":case"utf-8":return U(this,_,D);case"ascii":return V(this,_,D);case"latin1":case"binary":return re(this,_,D);case"base64":return P(this,_,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y(this,_,D);default:if(X)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),X=!0}}function H(F,_,D){var X=F[_];F[_]=F[D],F[D]=X}function B(F,_,D,X,le){if(0===F.length)return-1;if("string"==typeof D?(X=D,D=0):D>2147483647?D=2147483647:D<-2147483648&&(D=-2147483648),D=+D,isNaN(D)&&(D=le?0:F.length-1),D<0&&(D=F.length+D),D>=F.length){if(le)return-1;D=F.length-1}else if(D<0){if(!le)return-1;D=0}if("string"==typeof _&&(_=r.from(_,X)),r.isBuffer(_))return 0===_.length?-1:m(F,_,D,X,le);if("number"==typeof _)return _&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?le?Uint8Array.prototype.indexOf.call(F,_,D):Uint8Array.prototype.lastIndexOf.call(F,_,D):m(F,[_],D,X,le);throw new TypeError("val must be string, number or Buffer")}function m(F,_,D,X,le){var he,Se=1,L=F.length,ie=_.length;if(void 0!==X&&("ucs2"===(X=String(X).toLowerCase())||"ucs-2"===X||"utf16le"===X||"utf-16le"===X)){if(F.length<2||_.length<2)return-1;Se=2,L/=2,ie/=2,D/=2}function se(We,qe){return 1===Se?We[qe]:We.readUInt16BE(qe*Se)}if(le){var ye=-1;for(he=D;he<L;he++)if(se(F,he)===se(_,-1===ye?0:he-ye)){if(-1===ye&&(ye=he),he-ye+1===ie)return ye*Se}else-1!==ye&&(he-=he-ye),ye=-1}else for(D+ie>L&&(D=L-ie),he=D;he>=0;he--){for(var Oe=!0,Le=0;Le<ie;Le++)if(se(F,he+Le)!==se(_,Le)){Oe=!1;break}if(Oe)return he}return-1}function w(F,_,D,X){D=Number(D)||0;var le=F.length-D;X?(X=Number(X))>le&&(X=le):X=le;var Se=_.length;if(Se%2!=0)throw new TypeError("Invalid hex string");X>Se/2&&(X=Se/2);for(var L=0;L<X;++L){var ie=parseInt(_.substr(2*L,2),16);if(isNaN(ie))return L;F[D+L]=ie}return L}function u(F,_,D,X){return me(oe(_,F.length-D),F,D,X)}function v(F,_,D,X){return me(function(F){for(var _=[],D=0;D<F.length;++D)_.push(255&F.charCodeAt(D));return _}(_),F,D,X)}function h(F,_,D,X){return v(F,_,D,X)}function R(F,_,D,X){return me(be(_),F,D,X)}function N(F,_,D,X){return me(function(F,_){for(var D,X,Se=[],L=0;L<F.length&&!((_-=2)<0);++L)X=(D=F.charCodeAt(L))>>8,Se.push(D%256),Se.push(X);return Se}(_,F.length-D),F,D,X)}function P(F,_,D){return y.fromByteArray(0===_&&D===F.length?F:F.slice(_,D))}function U(F,_,D){D=Math.min(F.length,D);for(var X=[],le=_;le<D;){var se,he,ye,Oe,Se=F[le],L=null,ie=Se>239?4:Se>223?3:Se>191?2:1;if(le+ie<=D)switch(ie){case 1:Se<128&&(L=Se);break;case 2:128==(192&(se=F[le+1]))&&(Oe=(31&Se)<<6|63&se)>127&&(L=Oe);break;case 3:he=F[le+2],128==(192&(se=F[le+1]))&&128==(192&he)&&(Oe=(15&Se)<<12|(63&se)<<6|63&he)>2047&&(Oe<55296||Oe>57343)&&(L=Oe);break;case 4:he=F[le+2],ye=F[le+3],128==(192&(se=F[le+1]))&&128==(192&he)&&128==(192&ye)&&(Oe=(15&Se)<<18|(63&se)<<12|(63&he)<<6|63&ye)>65535&&Oe<1114112&&(L=Oe)}null===L?(L=65533,ie=1):L>65535&&(X.push((L-=65536)>>>10&1023|55296),L=56320|1023&L),X.push(L),le+=ie}return function(F){var _=F.length;if(_<=Z)return String.fromCharCode.apply(String,F);for(var D="",X=0;X<_;)D+=String.fromCharCode.apply(String,F.slice(X,X+=Z));return D}(X)}I.lW=r,I.h2=50,r.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function(){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}}(),a(),r.poolSize=8192,r._augment=function(F){return F.__proto__=r.prototype,F},r.from=function(F,_,D){return i(null,F,_,D)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(F,_,D){return function(F,_,D,X){return c(_),_<=0?o(F,_):void 0!==D?"string"==typeof X?o(F,_).fill(D,X):o(F,_).fill(D):o(F,_)}(null,F,_,D)},r.allocUnsafe=function(F){return g(null,F)},r.allocUnsafeSlow=function(F){return g(null,F)},r.isBuffer=function(_){return!(null==_||!_._isBuffer)},r.compare=function(_,D){if(!r.isBuffer(_)||!r.isBuffer(D))throw new TypeError("Arguments must be Buffers");if(_===D)return 0;for(var X=_.length,le=D.length,Se=0,L=Math.min(X,le);Se<L;++Se)if(_[Se]!==D[Se]){X=_[Se],le=D[Se];break}return X<le?-1:le<X?1:0},r.isEncoding=function(_){switch(String(_).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}},r.concat=function(_,D){if(!e(_))throw new TypeError('"list" argument must be an Array of Buffers');if(0===_.length)return r.alloc(0);var X;if(void 0===D)for(D=0,X=0;X<_.length;++X)D+=_[X].length;var le=r.allocUnsafe(D),Se=0;for(X=0;X<_.length;++X){var L=_[X];if(!r.isBuffer(L))throw new TypeError('"list" argument must be an Array of Buffers');L.copy(le,Se),Se+=L.length}return le},r.byteLength=G,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var _=this.length;if(_%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var D=0;D<_;D+=2)H(this,D,D+1);return this},r.prototype.swap32=function(){var _=this.length;if(_%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var D=0;D<_;D+=4)H(this,D,D+3),H(this,D+1,D+2);return this},r.prototype.swap64=function(){var _=this.length;if(_%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var D=0;D<_;D+=8)H(this,D,D+7),H(this,D+1,D+6),H(this,D+2,D+5),H(this,D+3,D+4);return this},r.prototype.toString=function(){var _=0|this.length;return 0===_?"":0===arguments.length?U(this,0,_):W.apply(this,arguments)},r.prototype.equals=function(_){if(!r.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_||0===r.compare(this,_)},r.prototype.inspect=function(){var _="",D=I.h2;return this.length>0&&(_=this.toString("hex",0,D).match(/.{2}/g).join(" "),this.length>D&&(_+=" ... ")),"<Buffer "+_+">"},r.prototype.compare=function(_,D,X,le,Se){if(!r.isBuffer(_))throw new TypeError("Argument must be a Buffer");if(void 0===D&&(D=0),void 0===X&&(X=_?_.length:0),void 0===le&&(le=0),void 0===Se&&(Se=this.length),D<0||X>_.length||le<0||Se>this.length)throw new RangeError("out of range index");if(le>=Se&&D>=X)return 0;if(le>=Se)return-1;if(D>=X)return 1;if(this===_)return 0;for(var L=(Se>>>=0)-(le>>>=0),ie=(X>>>=0)-(D>>>=0),se=Math.min(L,ie),he=this.slice(le,Se),ye=_.slice(D,X),Oe=0;Oe<se;++Oe)if(he[Oe]!==ye[Oe]){L=he[Oe],ie=ye[Oe];break}return L<ie?-1:ie<L?1:0},r.prototype.includes=function(_,D,X){return-1!==this.indexOf(_,D,X)},r.prototype.indexOf=function(_,D,X){return B(this,_,D,X,!0)},r.prototype.lastIndexOf=function(_,D,X){return B(this,_,D,X,!1)},r.prototype.write=function(_,D,X,le){if(void 0===D)le="utf8",X=this.length,D=0;else if(void 0===X&&"string"==typeof D)le=D,X=this.length,D=0;else{if(!isFinite(D))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");D|=0,isFinite(X)?(X|=0,void 0===le&&(le="utf8")):(le=X,X=void 0)}var Se=this.length-D;if((void 0===X||X>Se)&&(X=Se),_.length>0&&(X<0||D<0)||D>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var L=!1;;)switch(le){case"hex":return w(this,_,D,X);case"utf8":case"utf-8":return u(this,_,D,X);case"ascii":return v(this,_,D,X);case"latin1":case"binary":return h(this,_,D,X);case"base64":return R(this,_,D,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,_,D,X);default:if(L)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),L=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;function V(F,_,D){var X="";D=Math.min(F.length,D);for(var le=_;le<D;++le)X+=String.fromCharCode(127&F[le]);return X}function re(F,_,D){var X="";D=Math.min(F.length,D);for(var le=_;le<D;++le)X+=String.fromCharCode(F[le]);return X}function ee(F,_,D){var X=F.length;(!_||_<0)&&(_=0),(!D||D<0||D>X)&&(D=X);for(var le="",Se=_;Se<D;++Se)le+=ne(F[Se]);return le}function Y(F,_,D){for(var X=F.slice(_,D),le="",Se=0;Se<X.length;Se+=2)le+=String.fromCharCode(X[Se]+256*X[Se+1]);return le}function Q(F,_,D){if(F%1!=0||F<0)throw new RangeError("offset is not uint");if(F+_>D)throw new RangeError("Trying to access beyond buffer length")}function k(F,_,D,X,le,Se){if(!r.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>le||_<Se)throw new RangeError('"value" argument is out of bounds');if(D+X>F.length)throw new RangeError("Index out of range")}function K(F,_,D,X){_<0&&(_=65535+_+1);for(var le=0,Se=Math.min(F.length-D,2);le<Se;++le)F[D+le]=(_&255<<8*(X?le:1-le))>>>8*(X?le:1-le)}function C(F,_,D,X){_<0&&(_=4294967295+_+1);for(var le=0,Se=Math.min(F.length-D,4);le<Se;++le)F[D+le]=_>>>8*(X?le:3-le)&255}function f(F,_,D,X,le,Se){if(D+X>F.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("Index out of range")}function O(F,_,D,X,le){return le||f(F,0,D,4),l.write(F,_,D,X,23,4),D+4}function E(F,_,D,X,le){return le||f(F,0,D,8),l.write(F,_,D,X,52,8),D+8}r.prototype.slice=function(_,D){var le,X=this.length;if((_=~~_)<0?(_+=X)<0&&(_=0):_>X&&(_=X),(D=void 0===D?X:~~D)<0?(D+=X)<0&&(D=0):D>X&&(D=X),D<_&&(D=_),r.TYPED_ARRAY_SUPPORT)(le=this.subarray(_,D)).__proto__=r.prototype;else{var Se=D-_;le=new r(Se,void 0);for(var L=0;L<Se;++L)le[L]=this[L+_]}return le},r.prototype.readUIntLE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=this[_],Se=1,L=0;++L<D&&(Se*=256);)le+=this[_+L]*Se;return le},r.prototype.readUIntBE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=this[_+--D],Se=1;D>0&&(Se*=256);)le+=this[_+--D]*Se;return le},r.prototype.readUInt8=function(_,D){return D||Q(_,1,this.length),this[_]},r.prototype.readUInt16LE=function(_,D){return D||Q(_,2,this.length),this[_]|this[_+1]<<8},r.prototype.readUInt16BE=function(_,D){return D||Q(_,2,this.length),this[_]<<8|this[_+1]},r.prototype.readUInt32LE=function(_,D){return D||Q(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+16777216*this[_+3]},r.prototype.readUInt32BE=function(_,D){return D||Q(_,4,this.length),16777216*this[_]+(this[_+1]<<16|this[_+2]<<8|this[_+3])},r.prototype.readIntLE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=this[_],Se=1,L=0;++L<D&&(Se*=256);)le+=this[_+L]*Se;return le>=(Se*=128)&&(le-=Math.pow(2,8*D)),le},r.prototype.readIntBE=function(_,D,X){_|=0,D|=0,X||Q(_,D,this.length);for(var le=D,Se=1,L=this[_+--le];le>0&&(Se*=256);)L+=this[_+--le]*Se;return L>=(Se*=128)&&(L-=Math.pow(2,8*D)),L},r.prototype.readInt8=function(_,D){return D||Q(_,1,this.length),128&this[_]?-1*(255-this[_]+1):this[_]},r.prototype.readInt16LE=function(_,D){D||Q(_,2,this.length);var X=this[_]|this[_+1]<<8;return 32768&X?4294901760|X:X},r.prototype.readInt16BE=function(_,D){D||Q(_,2,this.length);var X=this[_+1]|this[_]<<8;return 32768&X?4294901760|X:X},r.prototype.readInt32LE=function(_,D){return D||Q(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},r.prototype.readInt32BE=function(_,D){return D||Q(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},r.prototype.readFloatLE=function(_,D){return D||Q(_,4,this.length),l.read(this,_,!0,23,4)},r.prototype.readFloatBE=function(_,D){return D||Q(_,4,this.length),l.read(this,_,!1,23,4)},r.prototype.readDoubleLE=function(_,D){return D||Q(_,8,this.length),l.read(this,_,!0,52,8)},r.prototype.readDoubleBE=function(_,D){return D||Q(_,8,this.length),l.read(this,_,!1,52,8)},r.prototype.writeUIntLE=function(_,D,X,le){_=+_,D|=0,X|=0,le||k(this,_,D,X,Math.pow(2,8*X)-1,0);var L=1,ie=0;for(this[D]=255&_;++ie<X&&(L*=256);)this[D+ie]=_/L&255;return D+X},r.prototype.writeUIntBE=function(_,D,X,le){_=+_,D|=0,X|=0,le||k(this,_,D,X,Math.pow(2,8*X)-1,0);var L=X-1,ie=1;for(this[D+L]=255&_;--L>=0&&(ie*=256);)this[D+L]=_/ie&255;return D+X},r.prototype.writeUInt8=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,1,255,0),r.TYPED_ARRAY_SUPPORT||(_=Math.floor(_)),this[D]=255&_,D+1},r.prototype.writeUInt16LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[D]=255&_,this[D+1]=_>>>8):K(this,_,D,!0),D+2},r.prototype.writeUInt16BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>8,this[D+1]=255&_):K(this,_,D,!1),D+2},r.prototype.writeUInt32LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[D+3]=_>>>24,this[D+2]=_>>>16,this[D+1]=_>>>8,this[D]=255&_):C(this,_,D,!0),D+4},r.prototype.writeUInt32BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>24,this[D+1]=_>>>16,this[D+2]=_>>>8,this[D+3]=255&_):C(this,_,D,!1),D+4},r.prototype.writeIntLE=function(_,D,X,le){if(_=+_,D|=0,!le){var Se=Math.pow(2,8*X-1);k(this,_,D,X,Se-1,-Se)}var L=0,ie=1,se=0;for(this[D]=255&_;++L<X&&(ie*=256);)_<0&&0===se&&0!==this[D+L-1]&&(se=1),this[D+L]=(_/ie>>0)-se&255;return D+X},r.prototype.writeIntBE=function(_,D,X,le){if(_=+_,D|=0,!le){var Se=Math.pow(2,8*X-1);k(this,_,D,X,Se-1,-Se)}var L=X-1,ie=1,se=0;for(this[D+L]=255&_;--L>=0&&(ie*=256);)_<0&&0===se&&0!==this[D+L+1]&&(se=1),this[D+L]=(_/ie>>0)-se&255;return D+X},r.prototype.writeInt8=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,1,127,-128),r.TYPED_ARRAY_SUPPORT||(_=Math.floor(_)),_<0&&(_=255+_+1),this[D]=255&_,D+1},r.prototype.writeInt16LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[D]=255&_,this[D+1]=_>>>8):K(this,_,D,!0),D+2},r.prototype.writeInt16BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>8,this[D+1]=255&_):K(this,_,D,!1),D+2},r.prototype.writeInt32LE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[D]=255&_,this[D+1]=_>>>8,this[D+2]=_>>>16,this[D+3]=_>>>24):C(this,_,D,!0),D+4},r.prototype.writeInt32BE=function(_,D,X){return _=+_,D|=0,X||k(this,_,D,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),r.TYPED_ARRAY_SUPPORT?(this[D]=_>>>24,this[D+1]=_>>>16,this[D+2]=_>>>8,this[D+3]=255&_):C(this,_,D,!1),D+4},r.prototype.writeFloatLE=function(_,D,X){return O(this,_,D,!0,X)},r.prototype.writeFloatBE=function(_,D,X){return O(this,_,D,!1,X)},r.prototype.writeDoubleLE=function(_,D,X){return E(this,_,D,!0,X)},r.prototype.writeDoubleBE=function(_,D,X){return E(this,_,D,!1,X)},r.prototype.copy=function(_,D,X,le){if(X||(X=0),!le&&0!==le&&(le=this.length),D>=_.length&&(D=_.length),D||(D=0),le>0&&le<X&&(le=X),le===X||0===_.length||0===this.length)return 0;if(D<0)throw new RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw new RangeError("sourceStart out of bounds");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),_.length-D<le-X&&(le=_.length-D+X);var L,Se=le-X;if(this===_&&X<D&&D<le)for(L=Se-1;L>=0;--L)_[L+D]=this[L+X];else if(Se<1e3||!r.TYPED_ARRAY_SUPPORT)for(L=0;L<Se;++L)_[L+D]=this[L+X];else Uint8Array.prototype.set.call(_,this.subarray(X,X+Se),D);return Se},r.prototype.fill=function(_,D,X,le){if("string"==typeof _){if("string"==typeof D?(le=D,D=0,X=this.length):"string"==typeof X&&(le=X,X=this.length),1===_.length){var Se=_.charCodeAt(0);Se<256&&(_=Se)}if(void 0!==le&&"string"!=typeof le)throw new TypeError("encoding must be a string");if("string"==typeof le&&!r.isEncoding(le))throw new TypeError("Unknown encoding: "+le)}else"number"==typeof _&&(_&=255);if(D<0||this.length<D||this.length<X)throw new RangeError("Out of range index");if(X<=D)return this;var L;if(D>>>=0,X=void 0===X?this.length:X>>>0,_||(_=0),"number"==typeof _)for(L=D;L<X;++L)this[L]=_;else{var ie=r.isBuffer(_)?_:oe(new r(_,le).toString()),se=ie.length;for(L=0;L<X-D;++L)this[L+D]=ie[L%se]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function ne(F){return F<16?"0"+F.toString(16):F.toString(16)}function oe(F,_){_=_||1/0;for(var D,X=F.length,le=null,Se=[],L=0;L<X;++L){if((D=F.charCodeAt(L))>55295&&D<57344){if(!le){if(D>56319){(_-=3)>-1&&Se.push(239,191,189);continue}if(L+1===X){(_-=3)>-1&&Se.push(239,191,189);continue}le=D;continue}if(D<56320){(_-=3)>-1&&Se.push(239,191,189),le=D;continue}D=65536+(le-55296<<10|D-56320)}else le&&(_-=3)>-1&&Se.push(239,191,189);if(le=null,D<128){if((_-=1)<0)break;Se.push(D)}else if(D<2048){if((_-=2)<0)break;Se.push(D>>6|192,63&D|128)}else if(D<65536){if((_-=3)<0)break;Se.push(D>>12|224,D>>6&63|128,63&D|128)}else{if(!(D<1114112))throw new Error("Invalid code point");if((_-=4)<0)break;Se.push(D>>18|240,D>>12&63|128,D>>6&63|128,63&D|128)}}return Se}function be(F){return y.toByteArray(function(F){if((F=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")}(F).replace(M,"")).length<2)return"";for(;F.length%4!=0;)F+="=";return F}(F))}function me(F,_,D,X){for(var le=0;le<X&&!(le+D>=_.length||le>=F.length);++le)_[le+D]=F[le];return le}},18427:(J,I)=>{I.read=function(s,n,y,l,e){var t,a,o=8*e-l-1,r=(1<<o)-1,i=r>>1,c=-7,d=y?e-1:0,g=y?-1:1,p=s[n+d];for(d+=g,t=p&(1<<-c)-1,p>>=-c,c+=o;c>0;t=256*t+s[n+d],d+=g,c-=8);for(a=t&(1<<-c)-1,t>>=-c,c+=l;c>0;a=256*a+s[n+d],d+=g,c-=8);if(0===t)t=1-i;else{if(t===r)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,l),t-=i}return(p?-1:1)*a*Math.pow(2,t-l)},I.write=function(s,n,y,l,e,t){var a,o,r,i=8*t-e-1,c=(1<<i)-1,d=c>>1,g=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,p=l?0:t-1,T=l?1:-1,S=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(o=isNaN(n)?1:0,a=c):(a=Math.floor(Math.log(n)/Math.LN2),n*(r=Math.pow(2,-a))<1&&(a--,r*=2),(n+=a+d>=1?g/r:g*Math.pow(2,1-d))*r>=2&&(a++,r/=2),a+d>=c?(o=0,a=c):a+d>=1?(o=(n*r-1)*Math.pow(2,e),a+=d):(o=n*Math.pow(2,d-1)*Math.pow(2,e),a=0));e>=8;s[y+p]=255&o,p+=T,o/=256,e-=8);for(a=a<<e|o,i+=e;i>0;s[y+p]=255&a,p+=T,a/=256,i-=8);s[y+p-T]|=128*S}},43653:(J,I,s)=>{"use strict";var n=s(62976),y=s(67043),l=y(n("String.prototype.indexOf"));J.exports=function(t,a){var o=n(t,!!a);return"function"==typeof o&&l(t,".prototype.")>-1?y(o):o}},67043:(J,I,s)=>{"use strict";var n=s(4738),y=s(62976),l=y("%Function.prototype.apply%"),e=y("%Function.prototype.call%"),t=y("%Reflect.apply%",!0)||n.call(e,l),a=y("%Object.getOwnPropertyDescriptor%",!0),o=y("%Object.defineProperty%",!0),r=y("%Math.max%");if(o)try{o({},"a",{value:1})}catch(c){o=null}J.exports=function(d){var g=t(n,e,arguments);if(a&&o){var p=a(g,"length");p.configurable&&o(g,"length",{value:1+r(0,d.length-(arguments.length-1))})}return g};var i=function(){return t(n,l,arguments)};o?o(J.exports,"apply",{value:i}):J.exports.apply=i},65771:(J,I,s)=>{function t(){var o;try{o=I.storage.debug}catch(r){}return!o&&"undefined"!=typeof process&&"env"in process&&(o=process.env.DEBUG),o}(I=J.exports=s(15578)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},I.formatArgs=function(o){var r=this.useColors;if(o[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+o[0]+(r?"%c ":" ")+"+"+I.humanize(this.diff),r){var i="color: "+this.color;o.splice(1,0,i,"color: inherit");var c=0,d=0;o[0].replace(/%[a-zA-Z%]/g,function(g){"%%"!==g&&(c++,"%c"===g&&(d=c))}),o.splice(d,0,i)}},I.save=function(o){try{null==o?I.storage.removeItem("debug"):I.storage.debug=o}catch(r){}},I.load=t,I.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},I.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(o){}}(),I.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],I.formatters.j=function(o){try{return JSON.stringify(o)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}},I.enable(t())},15578:(J,I,s)=>{var n;function l(r){function i(){if(i.enabled){var c=i,d=+new Date,g=d-(n||d);c.diff=g,c.prev=n,c.curr=d,n=d;for(var p=new Array(arguments.length),T=0;T<p.length;T++)p[T]=arguments[T];p[0]=I.coerce(p[0]),"string"!=typeof p[0]&&p.unshift("%O");var S=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,function(A,x){if("%%"===A)return A;S++;var G=I.formatters[x];return"function"==typeof G&&(A=G.call(c,p[S]),p.splice(S,1),S--),A}),I.formatArgs.call(c,p);var b=i.log||I.log||console.log.bind(console);b.apply(c,p)}}return i.namespace=r,i.enabled=I.enabled(r),i.useColors=I.useColors(),i.color=function(r){var c,i=0;for(c in r)i=(i<<5)-i+r.charCodeAt(c),i|=0;return I.colors[Math.abs(i)%I.colors.length]}(r),"function"==typeof I.init&&I.init(i),i}(I=J.exports=l.debug=l.default=l).coerce=function(r){return r instanceof Error?r.stack||r.message:r},I.disable=function(){I.enable("")},I.enable=function(r){I.save(r),I.names=[],I.skips=[];for(var i=("string"==typeof r?r:"").split(/[\s,]+/),c=i.length,d=0;d<c;d++)!i[d]||("-"===(r=i[d].replace(/\*/g,".*?"))[0]?I.skips.push(new RegExp("^"+r.substr(1)+"$")):I.names.push(new RegExp("^"+r+"$")))},I.enabled=function(r){var i,c;for(i=0,c=I.skips.length;i<c;i++)if(I.skips[i].test(r))return!1;for(i=0,c=I.names.length;i<c;i++)if(I.names[i].test(r))return!0;return!1},I.humanize=s(67659),I.names=[],I.skips=[],I.formatters={}},14943:J=>{function I(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function s(e){return"function"==typeof e}function y(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}J.exports=I,I.EventEmitter=I,I.prototype._events=void 0,I.prototype._maxListeners=void 0,I.defaultMaxListeners=10,I.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},I.prototype.emit=function(e){var t,a,o,r,i,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||y(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var d=new Error('Uncaught, unspecified "error" event. ('+t+")");throw d.context=t,d}if(l(a=this._events[e]))return!1;if(s(a))switch(arguments.length){case 1:a.call(this);break;case 2:a.call(this,arguments[1]);break;case 3:a.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),a.apply(this,r)}else if(y(a))for(r=Array.prototype.slice.call(arguments,1),o=(c=a.slice()).length,i=0;i<o;i++)c[i].apply(this,r);return!0},I.prototype.on=I.prototype.addListener=function(e,t){var a;if(!s(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,s(t.listener)?t.listener:t),this._events[e]?y(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,y(this._events[e])&&!this._events[e].warned&&(a=l(this._maxListeners)?I.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},I.prototype.once=function(e,t){if(!s(t))throw TypeError("listener must be a function");var a=!1;function o(){this.removeListener(e,o),a||(a=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},I.prototype.removeListener=function(e,t){var a,o,r,i;if(!s(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=(a=this._events[e]).length,o=-1,a===t||s(a.listener)&&a.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(y(a)){for(i=r;i-- >0;)if(a[i]===t||a[i].listener&&a[i].listener===t){o=i;break}if(o<0)return this;1===a.length?(a.length=0,delete this._events[e]):a.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},I.prototype.removeAllListeners=function(e){var t,a;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(s(a=this._events[e]))this.removeListener(e,a);else if(a)for(;a.length;)this.removeListener(e,a[a.length-1]);return delete this._events[e],this},I.prototype.listeners=function(e){return this._events&&this._events[e]?s(this._events[e])?[this._events[e]]:this._events[e].slice():[]},I.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(s(t))return 1;if(t)return t.length}return 0},I.listenerCount=function(e,t){return e.listenerCount(t)}},75616:J=>{"use strict";J.exports=function(I,s){s||(s={}),"function"==typeof s&&(s={cmp:s});var e,n="boolean"==typeof s.cycles&&s.cycles,y=s.cmp&&(e=s.cmp,function(t){return function(a,o){return e({key:a,value:t[a]},{key:o,value:t[o]})}}),l=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var a,o;if(Array.isArray(t)){for(o="[",a=0;a<t.length;a++)a&&(o+=","),o+=e(t[a])||"null";return o+"]"}if(null===t)return"null";if(-1!==l.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var r=l.push(t)-1,i=Object.keys(t).sort(y&&y(t));for(o="",a=0;a<i.length;a++){var c=i[a],d=e(t[c]);!d||(o&&(o+=","),o+=JSON.stringify(c)+":"+d)}return l.splice(r,1),"{"+o+"}"}}(I)}},88146:J=>{var I=Object.prototype.hasOwnProperty,s=Object.prototype.toString;J.exports=function(y,l,e){if("[object Function]"!==s.call(l))throw new TypeError("iterator must be a function");var t=y.length;if(t===+t)for(var a=0;a<t;a++)l.call(e,y[a],a,y);else for(var o in y)I.call(y,o)&&l.call(e,y[o],o,y)}},50145:J=>{"use strict";var I="Function.prototype.bind called on incompatible ",s=Array.prototype.slice,n=Object.prototype.toString,y="[object Function]";J.exports=function(e){var t=this;if("function"!=typeof t||n.call(t)!==y)throw new TypeError(I+t);for(var o,a=s.call(arguments,1),r=function(){if(this instanceof o){var p=t.apply(this,a.concat(s.call(arguments)));return Object(p)===p?p:this}return t.apply(e,a.concat(s.call(arguments)))},i=Math.max(0,t.length-a.length),c=[],d=0;d<i;d++)c.push("$"+d);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(r),t.prototype){var g=function(){};g.prototype=t.prototype,o.prototype=new g,g.prototype=null}return o}},4738:(J,I,s)=>{"use strict";var n=s(50145);J.exports=Function.prototype.bind||n},62976:(J,I,s)=>{"use strict";var n,y=SyntaxError,l=Function,e=TypeError,t=function(v){try{return l('"use strict"; return ('+v+").constructor;")()}catch(h){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(v){a=null}var o=function(){throw new e},r=a?function(){try{return o}catch(v){try{return a(arguments,"callee").get}catch(h){return o}}}():o,i=s(22452)(),c=Object.getPrototypeOf||function(v){return v.__proto__},d={},g="undefined"==typeof Uint8Array?n:c(Uint8Array),p={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":i?c([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":i?c(c([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&i?c((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&i?c((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":i?c(""[Symbol.iterator]()):n,"%Symbol%":i?Symbol:n,"%SyntaxError%":y,"%ThrowTypeError%":r,"%TypedArray%":g,"%TypeError%":e,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},T=function v(h){var R;if("%AsyncFunction%"===h)R=t("async function () {}");else if("%GeneratorFunction%"===h)R=t("function* () {}");else if("%AsyncGeneratorFunction%"===h)R=t("async function* () {}");else if("%AsyncGenerator%"===h){var N=v("%AsyncGeneratorFunction%");N&&(R=N.prototype)}else if("%AsyncIteratorPrototype%"===h){var P=v("%AsyncGenerator%");P&&(R=c(P.prototype))}return p[h]=R,R},S={"%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"]},b=s(4738),A=s(59704),x=b.call(Function.call,Array.prototype.concat),G=b.call(Function.apply,Array.prototype.splice),W=b.call(Function.call,String.prototype.replace),H=b.call(Function.call,String.prototype.slice),B=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,m=/\\(\\)?/g,w=function(h){var R=H(h,0,1),N=H(h,-1);if("%"===R&&"%"!==N)throw new y("invalid intrinsic syntax, expected closing `%`");if("%"===N&&"%"!==R)throw new y("invalid intrinsic syntax, expected opening `%`");var P=[];return W(h,B,function(U,Z,ue,V){P[P.length]=ue?W(V,m,"$1"):Z||U}),P},u=function(h,R){var P,N=h;if(A(S,N)&&(N="%"+(P=S[N])[0]+"%"),A(p,N)){var U=p[N];if(U===d&&(U=T(N)),void 0===U&&!R)throw new e("intrinsic "+h+" exists, but is not available. Please file an issue!");return{alias:P,name:N,value:U}}throw new y("intrinsic "+h+" does not exist!")};J.exports=function(h,R){if("string"!=typeof h||0===h.length)throw new e("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof R)throw new e('"allowMissing" argument must be a boolean');var N=w(h),P=N.length>0?N[0]:"",U=u("%"+P+"%",R),Z=U.name,ue=U.value,V=!1,re=U.alias;re&&(P=re[0],G(N,x([0,1],re)));for(var ee=1,Y=!0;ee<N.length;ee+=1){var Q=N[ee],k=H(Q,0,1),K=H(Q,-1);if(('"'===k||"'"===k||"`"===k||'"'===K||"'"===K||"`"===K)&&k!==K)throw new y("property names with quotes must have matching quotes");if(("constructor"===Q||!Y)&&(V=!0),A(p,Z="%"+(P+="."+Q)+"%"))ue=p[Z];else if(null!=ue){if(!(Q in ue)){if(!R)throw new e("base intrinsic for "+h+" exists, but the property is not available.");return}if(a&&ee+1>=N.length){var C=a(ue,Q);ue=(Y=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:ue[Q]}else Y=A(ue,Q),ue=ue[Q];Y&&!V&&(p[Z]=ue)}}return ue}},92886:(J,I,s)=>{"use strict";s.d(I,{ZP:()=>O,J9:()=>C,_t:()=>k,wO:()=>K,HW:()=>Q});var l=function(){return(l=Object.assign||function(M){for(var j,q=1,ne=arguments.length;q<ne;q++)for(var oe in j=arguments[q])Object.prototype.hasOwnProperty.call(j,oe)&&(M[oe]=j[oe]);return M}).apply(this,arguments)},h=s(51724),R=new Map,N=new Map,P=!0,U=!1;function Z(E){return E.replace(/[\s,]+/g," ").trim()}function ee(E){var M=Z(E);if(!R.has(M)){var j=(0,h.Qc)(E,{experimentalFragmentVariables:U});if(!j||"Document"!==j.kind)throw new Error("Not a valid GraphQL document.");R.set(M,function(E){var M=new Set(E.definitions);M.forEach(function(q){q.loc&&delete q.loc,Object.keys(q).forEach(function(ne){var oe=q[ne];oe&&"object"==typeof oe&&M.add(oe)})});var j=E.loc;return j&&(delete j.startToken,delete j.endToken),E}(function(E){var M=new Set,j=[];return E.definitions.forEach(function(q){if("FragmentDefinition"===q.kind){var ne=q.name.value,oe=function(E){return Z(E.source.body.substring(E.start,E.end))}(q.loc),de=N.get(ne);de&&!de.has(oe)?P&&console.warn("Warning: fragment with name "+ne+" 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"):de||N.set(ne,de=new Set),de.add(oe),M.has(oe)||(M.add(oe),j.push(q))}else j.push(q)}),l(l({},E),{definitions:j})}(j)))}return R.get(M)}function Y(E){for(var M=[],j=1;j<arguments.length;j++)M[j-1]=arguments[j];"string"==typeof E&&(E=[E]);var q=E[0];return M.forEach(function(ne,oe){q+=ne&&"Document"===ne.kind?ne.loc.source.body:ne,q+=E[oe+1]}),ee(q)}function Q(){R.clear(),N.clear()}function k(){P=!1}function K(){U=!0}function C(){U=!1}var E,f_gql=Y,f_resetCaches=Q,f_disableFragmentWarnings=k,f_enableExperimentalFragmentVariables=K,f_disableExperimentalFragmentVariables=C;(E=Y||(Y={})).gql=f_gql,E.resetCaches=f_resetCaches,E.disableFragmentWarnings=f_disableFragmentWarnings,E.enableExperimentalFragmentVariables=f_enableExperimentalFragmentVariables,E.disableExperimentalFragmentVariables=f_disableExperimentalFragmentVariables,Y.default=Y;const O=Y},22452:(J,I,s)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,y=s(66203);J.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&y()}},66203:J=>{"use strict";J.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var s={},n=Symbol("test"),y=Object(n);if("string"==typeof n||"[object Symbol]"!==Object.prototype.toString.call(n)||"[object Symbol]"!==Object.prototype.toString.call(y))return!1;for(n in s[n]=42,s)return!1;if("function"==typeof Object.keys&&0!==Object.keys(s).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(s).length)return!1;var e=Object.getOwnPropertySymbols(s);if(1!==e.length||e[0]!==n||!Object.prototype.propertyIsEnumerable.call(s,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var t=Object.getOwnPropertyDescriptor(s,n);if(42!==t.value||!0!==t.enumerable)return!1}return!0}},59704:(J,I,s)=>{"use strict";var n=s(4738);J.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},13057:J=>{J.exports="function"==typeof Object.create?function(s,n){n&&(s.super_=n,s.prototype=Object.create(n.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}))}:function(s,n){if(n){s.super_=n;var y=function(){};y.prototype=n.prototype,s.prototype=new y,s.prototype.constructor=s}}},66651:(J,I,s)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=s(43653)("Object.prototype.toString"),e=function(r){return!(n&&r&&"object"==typeof r&&Symbol.toStringTag in r)&&"[object Arguments]"===l(r)},t=function(r){return!!e(r)||null!==r&&"object"==typeof r&&"number"==typeof r.length&&r.length>=0&&"[object Array]"!==l(r)&&"[object Function]"===l(r.callee)},a=function(){return e(arguments)}();e.isLegacyArguments=t,J.exports=a?e:t},80142:J=>{"use strict";var t,I=Object.prototype.toString,s=Function.prototype.toString,n=/^\s*(?:function)?\*/,y="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=Object.getPrototypeOf;J.exports=function(o){if("function"!=typeof o)return!1;if(n.test(s.call(o)))return!0;if(!y)return"[object GeneratorFunction]"===I.call(o);if(!l)return!1;if(void 0===t){var i=function(){if(!y)return!1;try{return Function("return function*() {}")()}catch(a){}}();t=!!i&&l(i)}return l(o)===t}},65504:(J,I,s)=>{"use strict";var n=s(88146),y=s(54674),l=s(43653),e=l("Object.prototype.toString"),a=s(22452)()&&"symbol"==typeof Symbol.toStringTag,o=y(),r=l("Array.prototype.indexOf",!0)||function(S,b){for(var A=0;A<S.length;A+=1)if(S[A]===b)return A;return-1},i=l("String.prototype.slice"),c={},d=s(35887),g=Object.getPrototypeOf;a&&d&&g&&n(o,function(T){var S=new global[T];if(!(Symbol.toStringTag in S))throw new EvalError("this engine has support for Symbol.toStringTag, but "+T+" does not have the property! Please report this.");var b=g(S),A=d(b,Symbol.toStringTag);if(!A){var x=g(b);A=d(x,Symbol.toStringTag)}c[T]=A.get}),J.exports=function(S){if(!S||"object"!=typeof S)return!1;if(!a){var b=i(e(S),8,-1);return r(o,b)>-1}return!!d&&function(S){var b=!1;return n(c,function(A,x){if(!b)try{b=A.call(S)===x}catch(G){}}),b}(S)}},50130:J=>{var I={}.toString;J.exports=Array.isArray||function(s){return"[object Array]"==I.call(s)}},94443:(J,I)=>{!function(s){"use strict";function n(L){return null!==L&&"[object Array]"===Object.prototype.toString.call(L)}function y(L){return null!==L&&"[object Object]"===Object.prototype.toString.call(L)}function l(L,ie){if(L===ie)return!0;if(Object.prototype.toString.call(L)!==Object.prototype.toString.call(ie))return!1;if(!0===n(L)){if(L.length!==ie.length)return!1;for(var he=0;he<L.length;he++)if(!1===l(L[he],ie[he]))return!1;return!0}if(!0===y(L)){var ye={};for(var Oe in L)if(hasOwnProperty.call(L,Oe)){if(!1===l(L[Oe],ie[Oe]))return!1;ye[Oe]=!0}for(var Le in ie)if(hasOwnProperty.call(ie,Le)&&!0!==ye[Le])return!1;return!0}return!1}function e(L){if(""===L||!1===L||null===L)return!0;if(n(L)&&0===L.length)return!0;if(y(L)){for(var ie in L)if(L.hasOwnProperty(ie))return!1;return!0}return!1}var o;o="function"==typeof String.prototype.trimLeft?function(L){return L.trimLeft()}:function(L){return L.match(/^\s*(.*)/)[1]};var r=0,c=2,x="EOF",G="UnquotedIdentifier",W="QuotedIdentifier",H="Rbracket",B="Rparen",m="Comma",w="Colon",u="Rbrace",v="Number",h="Current",R="Expref",N="Pipe",U="And",Z="EQ",V="LT",Y="NE",Q="Flatten",k="Star",K="Filter",C="Dot",f="Not",O="Lbrace",E="Lbracket",M="Lparen",j="Literal",q={".":C,"*":k,",":m,":":w,"{":O,"}":u,"]":H,"(":M,")":B,"@":h},ne={"<":!0,">":!0,"=":!0,"!":!0},oe={" ":!0,"\t":!0,"\n":!0};function de(L){return L>="a"&&L<="z"||L>="A"&&L<="Z"||"_"===L}function ve(L){return L>="0"&&L<="9"||"-"===L}function be(L){return L>="a"&&L<="z"||L>="A"&&L<="Z"||L>="0"&&L<="9"||"_"===L}function me(){}me.prototype={tokenize:function(L){var se,he,ye,ie=[];for(this._current=0;this._current<L.length;)if(de(L[this._current]))se=this._current,he=this._consumeUnquotedIdentifier(L),ie.push({type:G,value:he,start:se});else if(void 0!==q[L[this._current]])ie.push({type:q[L[this._current]],value:L[this._current],start:this._current}),this._current++;else if(ve(L[this._current]))ye=this._consumeNumber(L),ie.push(ye);else if("["===L[this._current])ye=this._consumeLBracket(L),ie.push(ye);else if('"'===L[this._current])se=this._current,he=this._consumeQuotedIdentifier(L),ie.push({type:W,value:he,start:se});else if("'"===L[this._current])se=this._current,he=this._consumeRawStringLiteral(L),ie.push({type:j,value:he,start:se});else if("`"===L[this._current]){se=this._current;var Oe=this._consumeLiteral(L);ie.push({type:j,value:Oe,start:se})}else if(void 0!==ne[L[this._current]])ie.push(this._consumeOperator(L));else if(void 0!==oe[L[this._current]])this._current++;else if("&"===L[this._current])se=this._current,this._current++,"&"===L[this._current]?(this._current++,ie.push({type:U,value:"&&",start:se})):ie.push({type:R,value:"&",start:se});else{if("|"!==L[this._current]){var Le=new Error("Unknown character:"+L[this._current]);throw Le.name="LexerError",Le}se=this._current,this._current++,"|"===L[this._current]?(this._current++,ie.push({type:"Or",value:"||",start:se})):ie.push({type:N,value:"|",start:se})}return ie},_consumeUnquotedIdentifier:function(L){var ie=this._current;for(this._current++;this._current<L.length&&be(L[this._current]);)this._current++;return L.slice(ie,this._current)},_consumeQuotedIdentifier:function(L){var ie=this._current;this._current++;for(var se=L.length;'"'!==L[this._current]&&this._current<se;){var he=this._current;"\\"!==L[he]||"\\"!==L[he+1]&&'"'!==L[he+1]?he++:he+=2,this._current=he}return this._current++,JSON.parse(L.slice(ie,this._current))},_consumeRawStringLiteral:function(L){var ie=this._current;this._current++;for(var se=L.length;"'"!==L[this._current]&&this._current<se;){var he=this._current;"\\"!==L[he]||"\\"!==L[he+1]&&"'"!==L[he+1]?he++:he+=2,this._current=he}return this._current++,L.slice(ie+1,this._current-1).replace("\\'","'")},_consumeNumber:function(L){var ie=this._current;this._current++;for(var se=L.length;ve(L[this._current])&&this._current<se;)this._current++;var he=parseInt(L.slice(ie,this._current));return{type:v,value:he,start:ie}},_consumeLBracket:function(L){var ie=this._current;return this._current++,"?"===L[this._current]?(this._current++,{type:K,value:"[?",start:ie}):"]"===L[this._current]?(this._current++,{type:Q,value:"[]",start:ie}):{type:E,value:"[",start:ie}},_consumeOperator:function(L){var ie=this._current,se=L[ie];return this._current++,"!"===se?"="===L[this._current]?(this._current++,{type:Y,value:"!=",start:ie}):{type:f,value:"!",start:ie}:"<"===se?"="===L[this._current]?(this._current++,{type:"LTE",value:"<=",start:ie}):{type:V,value:"<",start:ie}:">"===se?"="===L[this._current]?(this._current++,{type:"GTE",value:">=",start:ie}):{type:"GT",value:">",start:ie}:"="===se&&"="===L[this._current]?(this._current++,{type:Z,value:"==",start:ie}):void 0},_consumeLiteral:function(L){this._current++;for(var he,ie=this._current,se=L.length;"`"!==L[this._current]&&this._current<se;){var ye=this._current;"\\"!==L[ye]||"\\"!==L[ye+1]&&"`"!==L[ye+1]?ye++:ye+=2,this._current=ye}var Oe=o(L.slice(ie,this._current));return Oe=Oe.replace("\\`","`"),he=this._looksLikeJSON(Oe)?JSON.parse(Oe):JSON.parse('"'+Oe+'"'),this._current++,he},_looksLikeJSON:function(L){if(""===L)return!1;if('[{"'.indexOf(L[0])>=0)return!0;if(["true","false","null"].indexOf(L)>=0)return!0;if(!("-0123456789".indexOf(L[0])>=0))return!1;try{return JSON.parse(L),!0}catch(ye){return!1}}};var ge={};function F(){}function _(L){this.runtime=L}function D(L){this._interpreter=L,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[r]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[r]}]},contains:{_func:this._functionContains,_signature:[{types:[c,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[c]},{types:[c]}]},floor:{_func:this._functionFloor,_signature:[{types:[r]}]},length:{_func:this._functionLength,_signature:[{types:[c,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:[c]},{types:[c]}]},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:[c]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[c,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}]}}}ge[x]=0,ge[G]=0,ge[W]=0,ge[H]=0,ge[B]=0,ge[m]=0,ge[u]=0,ge[v]=0,ge[h]=0,ge[R]=0,ge[N]=1,ge.Or=2,ge[U]=3,ge.EQ=5,ge.GT=5,ge.LT=5,ge.GTE=5,ge.LTE=5,ge.NE=5,ge[Q]=9,ge[k]=20,ge[K]=21,ge[C]=40,ge[f]=45,ge[O]=50,ge[E]=55,ge[M]=60,F.prototype={parse:function(L){this._loadTokens(L),this.index=0;var ie=this.expression(0);if(this._lookahead(0)!==x){var se=this._lookaheadToken(0),he=new Error("Unexpected token type: "+se.type+", value: "+se.value);throw he.name="ParserError",he}return ie},_loadTokens:function(L){var se=(new me).tokenize(L);se.push({type:x,value:"",start:L.length}),this.tokens=se},expression:function(L){var ie=this._lookaheadToken(0);this._advance();for(var se=this.nud(ie),he=this._lookahead(0);L<ge[he];)this._advance(),se=this.led(he,se),he=this._lookahead(0);return se},_lookahead:function(L){return this.tokens[this.index+L].type},_lookaheadToken:function(L){return this.tokens[this.index+L]},_advance:function(){this.index++},nud:function(L){var se,he;switch(L.type){case j:return{type:"Literal",value:L.value};case G:return{type:"Field",name:L.value};case W:var ye={type:"Field",name:L.value};if(this._lookahead(0)===M)throw new Error("Quoted identifier not allowed for function names.");return ye;case f:return{type:"NotExpression",children:[se=this.expression(ge.Not)]};case k:return se=null,{type:"ValueProjection",children:[{type:"Identity"},se=this._lookahead(0)===H?{type:"Identity"}:this._parseProjectionRHS(ge.Star)]};case K:return this.led(L.type,{type:"Identity"});case O:return this._parseMultiselectHash();case Q:return{type:"Projection",children:[{type:Q,children:[{type:"Identity"}]},se=this._parseProjectionRHS(ge.Flatten)]};case E:return this._lookahead(0)===v||this._lookahead(0)===w?(se=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},se)):this._lookahead(0)===k&&this._lookahead(1)===H?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},se=this._parseProjectionRHS(ge.Star)]}):this._parseMultiselectList();case h:return{type:h};case R:return{type:"ExpressionReference",children:[he=this.expression(ge.Expref)]};case M:for(var Oe=[];this._lookahead(0)!==B;)this._lookahead(0)===h?(he={type:h},this._advance()):he=this.expression(0),Oe.push(he);return this._match(B),Oe[0];default:this._errorToken(L)}},led:function(L,ie){var se;switch(L){case C:var he=ge.Dot;return this._lookahead(0)!==k?{type:"Subexpression",children:[ie,se=this._parseDotRHS(he)]}:(this._advance(),{type:"ValueProjection",children:[ie,se=this._parseProjectionRHS(he)]});case N:return se=this.expression(ge.Pipe),{type:N,children:[ie,se]};case"Or":return{type:"OrExpression",children:[ie,se=this.expression(ge.Or)]};case U:return{type:"AndExpression",children:[ie,se=this.expression(ge.And)]};case M:for(var Le,ye=ie.name,Oe=[];this._lookahead(0)!==B;)this._lookahead(0)===h?(Le={type:h},this._advance()):Le=this.expression(0),this._lookahead(0)===m&&this._match(m),Oe.push(Le);return this._match(B),{type:"Function",name:ye,children:Oe};case K:var qe=this.expression(0);return this._match(H),{type:"FilterProjection",children:[ie,se=this._lookahead(0)===Q?{type:"Identity"}:this._parseProjectionRHS(ge.Filter),qe]};case Q:return{type:"Projection",children:[{type:Q,children:[ie]},this._parseProjectionRHS(ge.Flatten)]};case Z:case Y:case"GT":case"GTE":case V:case"LTE":return this._parseComparator(ie,L);case E:var Be=this._lookaheadToken(0);return Be.type===v||Be.type===w?(se=this._parseIndexExpression(),this._projectIfSlice(ie,se)):(this._match(k),this._match(H),{type:"Projection",children:[ie,se=this._parseProjectionRHS(ge.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(L){if(this._lookahead(0)!==L){var ie=this._lookaheadToken(0),se=new Error("Expected "+L+", got: "+ie.type);throw se.name="ParserError",se}this._advance()},_errorToken:function(L){var ie=new Error("Invalid token ("+L.type+'): "'+L.value+'"');throw ie.name="ParserError",ie},_parseIndexExpression:function(){if(this._lookahead(0)===w||this._lookahead(1)===w)return this._parseSliceExpression();var L={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(H),L},_projectIfSlice:function(L,ie){var se={type:"IndexExpression",children:[L,ie]};return"Slice"===ie.type?{type:"Projection",children:[se,this._parseProjectionRHS(ge.Star)]}:se},_parseSliceExpression:function(){for(var L=[null,null,null],ie=0,se=this._lookahead(0);se!==H&&ie<3;){if(se===w)ie++,this._advance();else{if(se!==v){var he=this._lookahead(0),ye=new Error("Syntax error, unexpected token: "+he.value+"("+he.type+")");throw ye.name="Parsererror",ye}L[ie]=this._lookaheadToken(0).value,this._advance()}se=this._lookahead(0)}return this._match(H),{type:"Slice",children:L}},_parseComparator:function(L,ie){return{type:"Comparator",name:ie,children:[L,this.expression(ge[ie])]}},_parseDotRHS:function(L){var ie=this._lookahead(0);return[G,W,k].indexOf(ie)>=0?this.expression(L):ie===E?(this._match(E),this._parseMultiselectList()):ie===O?(this._match(O),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(L){var ie;if(ge[this._lookahead(0)]<10)ie={type:"Identity"};else if(this._lookahead(0)===E)ie=this.expression(L);else if(this._lookahead(0)===K)ie=this.expression(L);else{if(this._lookahead(0)!==C){var se=this._lookaheadToken(0),he=new Error("Sytanx error, unexpected token: "+se.value+"("+se.type+")");throw he.name="ParserError",he}this._match(C),ie=this._parseDotRHS(L)}return ie},_parseMultiselectList:function(){for(var L=[];this._lookahead(0)!==H;){var ie=this.expression(0);if(L.push(ie),this._lookahead(0)===m&&(this._match(m),this._lookahead(0)===H))throw new Error("Unexpected token Rbracket")}return this._match(H),{type:"MultiSelectList",children:L}},_parseMultiselectHash:function(){for(var se,he,ye,L=[],ie=[G,W];;){if(se=this._lookaheadToken(0),ie.indexOf(se.type)<0)throw new Error("Expecting an identifier token, got: "+se.type);if(he=se.value,this._advance(),this._match(w),ye=this.expression(0),L.push({type:"KeyValuePair",name:he,value:ye}),this._lookahead(0)===m)this._match(m);else if(this._lookahead(0)===u){this._match(u);break}}return{type:"MultiSelectHash",children:L}}},_.prototype={search:function(L,ie){return this.visit(L,ie)},visit:function(L,ie){var se,he,ye,Oe,Le,We,qe,et,Be;switch(L.type){case"Field":return null===ie?null:y(ie)?void 0===(We=ie[L.name])?null:We:null;case"Subexpression":for(ye=this.visit(L.children[0],ie),Be=1;Be<L.children.length;Be++)if(null===(ye=this.visit(L.children[1],ye)))return null;return ye;case"IndexExpression":return qe=this.visit(L.children[0],ie),this.visit(L.children[1],qe);case"Index":if(!n(ie))return null;var ht=L.value;return ht<0&&(ht=ie.length+ht),void 0===(ye=ie[ht])&&(ye=null),ye;case"Slice":if(!n(ie))return null;var Bt=L.children.slice(0),Ct=this.computeSliceParams(ie.length,Bt),At=Ct[0],Ot=Ct[1],It=Ct[2];if(ye=[],It>0)for(Be=At;Be<Ot;Be+=It)ye.push(ie[Be]);else for(Be=At;Be>Ot;Be+=It)ye.push(ie[Be]);return ye;case"Projection":var lt=this.visit(L.children[0],ie);if(!n(lt))return null;for(et=[],Be=0;Be<lt.length;Be++)null!==(he=this.visit(L.children[1],lt[Be]))&&et.push(he);return et;case"ValueProjection":if(!y(lt=this.visit(L.children[0],ie)))return null;et=[];var _t=function(L){for(var ie=Object.keys(L),se=[],he=0;he<ie.length;he++)se.push(L[ie[he]]);return se}(lt);for(Be=0;Be<_t.length;Be++)null!==(he=this.visit(L.children[1],_t[Be]))&&et.push(he);return et;case"FilterProjection":if(!n(lt=this.visit(L.children[0],ie)))return null;var at=[],$e=[];for(Be=0;Be<lt.length;Be++)e(se=this.visit(L.children[2],lt[Be]))||at.push(lt[Be]);for(var mt=0;mt<at.length;mt++)null!==(he=this.visit(L.children[1],at[mt]))&&$e.push(he);return $e;case"Comparator":switch(Oe=this.visit(L.children[0],ie),Le=this.visit(L.children[1],ie),L.name){case Z:ye=l(Oe,Le);break;case Y:ye=!l(Oe,Le);break;case"GT":ye=Oe>Le;break;case"GTE":ye=Oe>=Le;break;case V:ye=Oe<Le;break;case"LTE":ye=Oe<=Le;break;default:throw new Error("Unknown comparator: "+L.name)}return ye;case Q:var wt=this.visit(L.children[0],ie);if(!n(wt))return null;var yt=[];for(Be=0;Be<wt.length;Be++)n(he=wt[Be])?yt.push.apply(yt,he):yt.push(he);return yt;case"Identity":return ie;case"MultiSelectList":if(null===ie)return null;for(et=[],Be=0;Be<L.children.length;Be++)et.push(this.visit(L.children[Be],ie));return et;case"MultiSelectHash":if(null===ie)return null;var Dt;for(et={},Be=0;Be<L.children.length;Be++)et[(Dt=L.children[Be]).name]=this.visit(Dt.value,ie);return et;case"OrExpression":return e(se=this.visit(L.children[0],ie))&&(se=this.visit(L.children[1],ie)),se;case"AndExpression":return!0===e(Oe=this.visit(L.children[0],ie))?Oe:this.visit(L.children[1],ie);case"NotExpression":return e(Oe=this.visit(L.children[0],ie));case"Literal":return L.value;case N:return qe=this.visit(L.children[0],ie),this.visit(L.children[1],qe);case h:return ie;case"Function":var Tt=[];for(Be=0;Be<L.children.length;Be++)Tt.push(this.visit(L.children[Be],ie));return this.runtime.callFunction(L.name,Tt);case"ExpressionReference":var dt=L.children[0];return dt.jmespathType=R,dt;default:throw new Error("Unknown node type: "+L.type)}},computeSliceParams:function(L,ie){var se=ie[0],he=ie[1],ye=ie[2],Oe=[null,null,null];if(null===ye)ye=1;else if(0===ye){var Le=new Error("Invalid slice, step cannot be 0");throw Le.name="RuntimeError",Le}var We=ye<0;return se=null===se?We?L-1:0:this.capSliceRange(L,se,ye),he=null===he?We?-1:L:this.capSliceRange(L,he,ye),Oe[0]=se,Oe[1]=he,Oe[2]=ye,Oe},capSliceRange:function(L,ie,se){return ie<0?(ie+=L)<0&&(ie=se<0?-1:0):ie>=L&&(ie=se<0?L-1:L),ie}},D.prototype={callFunction:function(L,ie){var se=this.functionTable[L];if(void 0===se)throw new Error("Unknown function: "+L+"()");return this._validateArgs(L,ie,se._signature),se._func.call(this,ie)},_validateArgs:function(L,ie,se){var he;if(se[se.length-1].variadic){if(ie.length<se.length)throw he=1===se.length?" argument":" arguments",new Error("ArgumentError: "+L+"() takes at least"+se.length+he+" but received "+ie.length)}else if(ie.length!==se.length)throw he=1===se.length?" argument":" arguments",new Error("ArgumentError: "+L+"() takes "+se.length+he+" but received "+ie.length);for(var ye,Oe,Le,We=0;We<se.length;We++){Le=!1,ye=se[We].types,Oe=this._getTypeName(ie[We]);for(var qe=0;qe<ye.length;qe++)if(this._typeMatches(Oe,ye[qe],ie[We])){Le=!0;break}if(!Le)throw new Error("TypeError: "+L+"() expected argument "+(We+1)+" to be type "+ye+" but received type "+Oe+" instead.")}},_typeMatches:function(L,ie,se){if(1===ie)return!0;if(9!==ie&&8!==ie&&3!==ie)return L===ie;if(3===ie)return 3===L;if(3===L){var he;8===ie?he=r:9===ie&&(he=c);for(var ye=0;ye<se.length;ye++)if(!this._typeMatches(this._getTypeName(se[ye]),he,se[ye]))return!1;return!0}},_getTypeName:function(L){switch(Object.prototype.toString.call(L)){case"[object String]":return c;case"[object Number]":return r;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return L.jmespathType===R?6:4}},_functionStartsWith:function(L){return 0===L[0].lastIndexOf(L[1])},_functionEndsWith:function(L){var ie=L[0],se=L[1];return-1!==ie.indexOf(se,ie.length-se.length)},_functionReverse:function(L){if(this._getTypeName(L[0])===c){for(var se=L[0],he="",ye=se.length-1;ye>=0;ye--)he+=se[ye];return he}var Oe=L[0].slice(0);return Oe.reverse(),Oe},_functionAbs:function(L){return Math.abs(L[0])},_functionCeil:function(L){return Math.ceil(L[0])},_functionAvg:function(L){for(var ie=0,se=L[0],he=0;he<se.length;he++)ie+=se[he];return ie/se.length},_functionContains:function(L){return L[0].indexOf(L[1])>=0},_functionFloor:function(L){return Math.floor(L[0])},_functionLength:function(L){return y(L[0])?Object.keys(L[0]).length:L[0].length},_functionMap:function(L){for(var ie=[],se=this._interpreter,he=L[0],ye=L[1],Oe=0;Oe<ye.length;Oe++)ie.push(se.visit(he,ye[Oe]));return ie},_functionMerge:function(L){for(var ie={},se=0;se<L.length;se++){var he=L[se];for(var ye in he)ie[ye]=he[ye]}return ie},_functionMax:function(L){if(L[0].length>0){if(this._getTypeName(L[0][0])===r)return Math.max.apply(Math,L[0]);for(var se=L[0],he=se[0],ye=1;ye<se.length;ye++)he.localeCompare(se[ye])<0&&(he=se[ye]);return he}return null},_functionMin:function(L){if(L[0].length>0){if(this._getTypeName(L[0][0])===r)return Math.min.apply(Math,L[0]);for(var se=L[0],he=se[0],ye=1;ye<se.length;ye++)se[ye].localeCompare(he)<0&&(he=se[ye]);return he}return null},_functionSum:function(L){for(var ie=0,se=L[0],he=0;he<se.length;he++)ie+=se[he];return ie},_functionType:function(L){switch(this._getTypeName(L[0])){case r:return"number";case c:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(L){return Object.keys(L[0])},_functionValues:function(L){for(var ie=L[0],se=Object.keys(ie),he=[],ye=0;ye<se.length;ye++)he.push(ie[se[ye]]);return he},_functionJoin:function(L){return L[1].join(L[0])},_functionToArray:function(L){return 3===this._getTypeName(L[0])?L[0]:[L[0]]},_functionToString:function(L){return this._getTypeName(L[0])===c?L[0]:JSON.stringify(L[0])},_functionToNumber:function(L){var se,ie=this._getTypeName(L[0]);return ie===r?L[0]:ie!==c||(se=+L[0],isNaN(se))?null:se},_functionNotNull:function(L){for(var ie=0;ie<L.length;ie++)if(7!==this._getTypeName(L[ie]))return L[ie];return null},_functionSort:function(L){var ie=L[0].slice(0);return ie.sort(),ie},_functionSortBy:function(L){var ie=L[0].slice(0);if(0===ie.length)return ie;var se=this._interpreter,he=L[1],ye=this._getTypeName(se.visit(he,ie[0]));if([r,c].indexOf(ye)<0)throw new Error("TypeError");for(var Oe=this,Le=[],We=0;We<ie.length;We++)Le.push([We,ie[We]]);Le.sort(function(st,et){var Be=se.visit(he,st[1]),ht=se.visit(he,et[1]);if(Oe._getTypeName(Be)!==ye)throw new Error("TypeError: expected "+ye+", received "+Oe._getTypeName(Be));if(Oe._getTypeName(ht)!==ye)throw new Error("TypeError: expected "+ye+", received "+Oe._getTypeName(ht));return Be>ht?1:Be<ht?-1:st[0]-et[0]});for(var qe=0;qe<Le.length;qe++)ie[qe]=Le[qe][1];return ie},_functionMaxBy:function(L){for(var Oe,Le,se=L[0],he=this.createKeyFunction(L[1],[r,c]),ye=-1/0,We=0;We<se.length;We++)(Le=he(se[We]))>ye&&(ye=Le,Oe=se[We]);return Oe},_functionMinBy:function(L){for(var Oe,Le,se=L[0],he=this.createKeyFunction(L[1],[r,c]),ye=1/0,We=0;We<se.length;We++)(Le=he(se[We]))<ye&&(ye=Le,Oe=se[We]);return Oe},createKeyFunction:function(L,ie){var se=this,he=this._interpreter;return function(Oe){var Le=he.visit(L,Oe);if(ie.indexOf(se._getTypeName(Le))<0){var We="TypeError: expected one of "+ie+", received "+se._getTypeName(Le);throw new Error(We)}return Le}}},s.tokenize=function(L){return(new me).tokenize(L)},s.compile=function(L){return(new F).parse(L)},s.search=function(L,ie){var se=new F,he=new D,ye=new _(he);he._interpreter=ye;var Oe=se.parse(ie);return ye.search(Oe,L)},s.strictDeepEqual=l}(I)},67659:J=>{var I=1e3,s=60*I,n=60*s,y=24*n;function o(r,i,c){if(!(r<i))return r<1.5*i?Math.floor(r/i)+" "+c:Math.ceil(r/i)+" "+c+"s"}J.exports=function(r,i){i=i||{};var c=typeof r;if("string"===c&&r.length>0)return function(r){if(!((r=String(r)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(r);if(i){var c=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*c;case"days":case"day":case"d":return c*y;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*s;case"seconds":case"second":case"secs":case"sec":case"s":return c*I;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}}}(r);if("number"===c&&!1===isNaN(r))return i.long?function(r){return o(r,y,"day")||o(r,n,"hour")||o(r,s,"minute")||o(r,I,"second")||r+" ms"}(r):function(r){return r>=y?Math.round(r/y)+"d":r>=n?Math.round(r/n)+"h":r>=s?Math.round(r/s)+"m":r>=I?Math.round(r/I)+"s":r+"ms"}(r);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))}},14572:J=>{"use strict";var I=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function y(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}J.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(i){return t[i]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(i){r[i]=i}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var a,r,o=y(e),i=1;i<arguments.length;i++){for(var c in a=Object(arguments[i]))s.call(a,c)&&(o[c]=a[c]);if(I){r=I(a);for(var d=0;d<r.length;d++)n.call(a,r[d])&&(o[r[d]]=a[r[d]])}}return o}},61920:function(J,I,s){var n;J=s.nmd(J),function(y){"object"==typeof global&&global;var a,o=2147483647,r=36,b=/^xn--/,A=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=Math.floor,B=String.fromCharCode;function w(ee){throw RangeError(G[ee])}function u(ee,Y){for(var Q=ee.length,k=[];Q--;)k[Q]=Y(ee[Q]);return k}function v(ee,Y){var Q=ee.split("@"),k="";return Q.length>1&&(k=Q[0]+"@",ee=Q[1]),k+u((ee=ee.replace(x,".")).split("."),Y).join(".")}function h(ee){for(var K,C,Y=[],Q=0,k=ee.length;Q<k;)(K=ee.charCodeAt(Q++))>=55296&&K<=56319&&Q<k?56320==(64512&(C=ee.charCodeAt(Q++)))?Y.push(((1023&K)<<10)+(1023&C)+65536):(Y.push(K),Q--):Y.push(K);return Y}function R(ee){return u(ee,function(Y){var Q="";return Y>65535&&(Q+=B((Y-=65536)>>>10&1023|55296),Y=56320|1023&Y),Q+B(Y)}).join("")}function N(ee){return ee-48<10?ee-22:ee-65<26?ee-65:ee-97<26?ee-97:r}function P(ee,Y){return ee+22+75*(ee<26)-((0!=Y)<<5)}function U(ee,Y,Q){var k=0;for(ee=Q?H(ee/700):ee>>1,ee+=H(ee/Y);ee>455;k+=r)ee=H(ee/35);return H(k+36*ee/(ee+38))}function Z(ee){var k,O,E,M,j,q,ne,oe,de,ve,Y=[],Q=ee.length,K=0,C=128,f=72;for((O=ee.lastIndexOf("-"))<0&&(O=0),E=0;E<O;++E)ee.charCodeAt(E)>=128&&w("not-basic"),Y.push(ee.charCodeAt(E));for(M=O>0?O+1:0;M<Q;){for(j=K,q=1,ne=r;M>=Q&&w("invalid-input"),((oe=N(ee.charCodeAt(M++)))>=r||oe>H((o-K)/q))&&w("overflow"),K+=oe*q,!(oe<(de=ne<=f?1:ne>=f+26?26:ne-f));ne+=r)q>H(o/(ve=r-de))&&w("overflow"),q*=ve;f=U(K-j,k=Y.length+1,0==j),H(K/k)>o-C&&w("overflow"),C+=H(K/k),K%=k,Y.splice(K++,0,C)}return R(Y)}function ue(ee){var Y,Q,k,K,C,f,O,E,M,j,q,oe,de,ve,be,ne=[];for(oe=(ee=h(ee)).length,Y=128,Q=0,C=72,f=0;f<oe;++f)(q=ee[f])<128&&ne.push(B(q));for(k=K=ne.length,K&&ne.push("-");k<oe;){for(O=o,f=0;f<oe;++f)(q=ee[f])>=Y&&q<O&&(O=q);for(O-Y>H((o-Q)/(de=k+1))&&w("overflow"),Q+=(O-Y)*de,Y=O,f=0;f<oe;++f)if((q=ee[f])<Y&&++Q>o&&w("overflow"),q==Y){for(E=Q,M=r;!(E<(j=M<=C?1:M>=C+26?26:M-C));M+=r)ne.push(B(P(j+(be=E-j)%(ve=r-j),0))),E=H(be/ve);ne.push(B(P(E,0))),C=U(Q,de,k==K),Q=0,++k}++Q,++Y}return ne.join("")}a={version:"1.3.2",ucs2:{decode:h,encode:R},decode:Z,encode:ue,toASCII:function(ee){return v(ee,function(Y){return A.test(Y)?"xn--"+ue(Y):Y})},toUnicode:function(ee){return v(ee,function(Y){return b.test(Y)?Z(Y.slice(4).toLowerCase()):Y})}},void 0!==(n=function(){return a}.call(I,s,I,J))&&(J.exports=n)}()},28378:J=>{"use strict";function I(s,n){return Object.prototype.hasOwnProperty.call(s,n)}J.exports=function(s,n,y,l){y=y||"=";var e={};if("string"!=typeof s||0===s.length)return e;var t=/\+/g;s=s.split(n=n||"&");var a=1e3;l&&"number"==typeof l.maxKeys&&(a=l.maxKeys);var o=s.length;a>0&&o>a&&(o=a);for(var r=0;r<o;++r){var d,g,p,T,i=s[r].replace(t,"%20"),c=i.indexOf(y);c>=0?(d=i.substr(0,c),g=i.substr(c+1)):(d=i,g=""),p=decodeURIComponent(d),T=decodeURIComponent(g),I(e,p)?Array.isArray(e[p])?e[p].push(T):e[p]=[e[p],T]:e[p]=T}return e}},22089:J=>{"use strict";var I=function(s){switch(typeof s){case"string":return s;case"boolean":return s?"true":"false";case"number":return isFinite(s)?s:"";default:return""}};J.exports=function(s,n,y,l){return n=n||"&",y=y||"=",null===s&&(s=void 0),"object"==typeof s?Object.keys(s).map(function(e){var t=encodeURIComponent(I(e))+y;return Array.isArray(s[e])?s[e].map(function(a){return t+encodeURIComponent(I(a))}).join(n):t+encodeURIComponent(I(s[e]))}).join(n):l?encodeURIComponent(I(l))+y+encodeURIComponent(I(s)):""}},93143:(J,I,s)=>{"use strict";I.decode=I.parse=s(28378),I.encode=I.stringify=s(22089)},12261:(J,I,s)=>{"use strict";var n=s(14572),y=60103,l=60106;I.Fragment=60107,I.StrictMode=60108,I.Profiler=60114;var e=60109,t=60110,a=60112;I.Suspense=60113;var o=60115,r=60116;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;y=i("react.element"),l=i("react.portal"),I.Fragment=i("react.fragment"),I.StrictMode=i("react.strict_mode"),I.Profiler=i("react.profiler"),e=i("react.provider"),t=i("react.context"),a=i("react.forward_ref"),I.Suspense=i("react.suspense"),o=i("react.memo"),r=i("react.lazy")}var c="function"==typeof Symbol&&Symbol.iterator;function g(V){for(var re="https://reactjs.org/docs/error-decoder.html?invariant="+V,ee=1;ee<arguments.length;ee++)re+="&args[]="+encodeURIComponent(arguments[ee]);return"Minified React error #"+V+"; visit "+re+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T={};function S(V,re,ee){this.props=V,this.context=re,this.refs=T,this.updater=ee||p}function b(){}function A(V,re,ee){this.props=V,this.context=re,this.refs=T,this.updater=ee||p}S.prototype.isReactComponent={},S.prototype.setState=function(V,re){if("object"!=typeof V&&"function"!=typeof V&&null!=V)throw Error(g(85));this.updater.enqueueSetState(this,V,re,"setState")},S.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")},b.prototype=S.prototype;var x=A.prototype=new b;x.constructor=A,n(x,S.prototype),x.isPureReactComponent=!0;var G={current:null},W=Object.prototype.hasOwnProperty,H={key:!0,ref:!0,__self:!0,__source:!0};function B(V,re,ee){var Y,Q={},k=null,K=null;if(null!=re)for(Y in void 0!==re.ref&&(K=re.ref),void 0!==re.key&&(k=""+re.key),re)W.call(re,Y)&&!H.hasOwnProperty(Y)&&(Q[Y]=re[Y]);var C=arguments.length-2;if(1===C)Q.children=ee;else if(1<C){for(var f=Array(C),O=0;O<C;O++)f[O]=arguments[O+2];Q.children=f}if(V&&V.defaultProps)for(Y in C=V.defaultProps)void 0===Q[Y]&&(Q[Y]=C[Y]);return{$$typeof:y,type:V,key:k,ref:K,props:Q,_owner:G.current}}function w(V){return"object"==typeof V&&null!==V&&V.$$typeof===y}var v=/\/+/g;function h(V,re){return"object"==typeof V&&null!==V&&null!=V.key?function(V){var re={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(ee){return re[ee]})}(""+V.key):re.toString(36)}function R(V,re,ee,Y,Q){var k=typeof V;("undefined"===k||"boolean"===k)&&(V=null);var K=!1;if(null===V)K=!0;else switch(k){case"string":case"number":K=!0;break;case"object":switch(V.$$typeof){case y:case l:K=!0}}if(K)return Q=Q(K=V),V=""===Y?"."+h(K,0):Y,Array.isArray(Q)?(ee="",null!=V&&(ee=V.replace(v,"$&/")+"/"),R(Q,re,ee,"",function(O){return O})):null!=Q&&(w(Q)&&(Q=function(V,re){return{$$typeof:y,type:V.type,key:re,ref:V.ref,props:V.props,_owner:V._owner}}(Q,ee+(!Q.key||K&&K.key===Q.key?"":(""+Q.key).replace(v,"$&/")+"/")+V)),re.push(Q)),1;if(K=0,Y=""===Y?".":Y+":",Array.isArray(V))for(var C=0;C<V.length;C++){var f=Y+h(k=V[C],C);K+=R(k,re,ee,f,Q)}else if("function"==typeof(f=function(V){return null===V||"object"!=typeof V?null:"function"==typeof(V=c&&V[c]||V["@@iterator"])?V:null}(V)))for(V=f.call(V),C=0;!(k=V.next()).done;)K+=R(k=k.value,re,ee,f=Y+h(k,C++),Q);else if("object"===k)throw re=""+V,Error(g(31,"[object Object]"===re?"object with keys {"+Object.keys(V).join(", ")+"}":re));return K}function N(V,re,ee){if(null==V)return V;var Y=[],Q=0;return R(V,Y,"","",function(k){return re.call(ee,k,Q++)}),Y}function P(V){if(-1===V._status){var re=V._result;re=re(),V._status=0,V._result=re,re.then(function(ee){0===V._status&&(ee=ee.default,V._status=1,V._result=ee)},function(ee){0===V._status&&(V._status=2,V._result=ee)})}if(1===V._status)return V._result;throw V._result}var U={current:null};function Z(){var V=U.current;if(null===V)throw Error(g(321));return V}var ue={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:n};I.Children={map:N,forEach:function(V,re,ee){N(V,function(){re.apply(this,arguments)},ee)},count:function(V){var re=0;return N(V,function(){re++}),re},toArray:function(V){return N(V,function(re){return re})||[]},only:function(V){if(!w(V))throw Error(g(143));return V}},I.Component=S,I.PureComponent=A,I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ue,I.cloneElement=function(V,re,ee){if(null==V)throw Error(g(267,V));var Y=n({},V.props),Q=V.key,k=V.ref,K=V._owner;if(null!=re){if(void 0!==re.ref&&(k=re.ref,K=G.current),void 0!==re.key&&(Q=""+re.key),V.type&&V.type.defaultProps)var C=V.type.defaultProps;for(f in re)W.call(re,f)&&!H.hasOwnProperty(f)&&(Y[f]=void 0===re[f]&&void 0!==C?C[f]:re[f])}var f=arguments.length-2;if(1===f)Y.children=ee;else if(1<f){C=Array(f);for(var O=0;O<f;O++)C[O]=arguments[O+2];Y.children=C}return{$$typeof:y,type:V.type,key:Q,ref:k,props:Y,_owner:K}},I.createContext=function(V,re){return void 0===re&&(re=null),(V={$$typeof:t,_calculateChangedBits:re,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:e,_context:V},V.Consumer=V},I.createElement=B,I.createFactory=function(V){var re=B.bind(null,V);return re.type=V,re},I.createRef=function(){return{current:null}},I.forwardRef=function(V){return{$$typeof:a,render:V}},I.isValidElement=w,I.lazy=function(V){return{$$typeof:r,_payload:{_status:-1,_result:V},_init:P}},I.memo=function(V,re){return{$$typeof:o,type:V,compare:void 0===re?null:re}},I.useCallback=function(V,re){return Z().useCallback(V,re)},I.useContext=function(V,re){return Z().useContext(V,re)},I.useDebugValue=function(){},I.useEffect=function(V,re){return Z().useEffect(V,re)},I.useImperativeHandle=function(V,re,ee){return Z().useImperativeHandle(V,re,ee)},I.useLayoutEffect=function(V,re){return Z().useLayoutEffect(V,re)},I.useMemo=function(V,re){return Z().useMemo(V,re)},I.useReducer=function(V,re,ee){return Z().useReducer(V,re,ee)},I.useRef=function(V){return Z().useRef(V)},I.useState=function(V){return Z().useState(V)},I.version="17.0.2"},3904:(J,I,s)=>{"use strict";J.exports=s(12261)},53408:(J,I,s)=>{"use strict";var n=s(61920),y=s(47430);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}I.parse=G,I.resolve=function(m,w){return G(m,!1,!0).resolve(w)},I.resolveObject=function(m,w){return m?G(m,!1,!0).resolveObject(w):w},I.format=function(m){return y.isString(m)&&(m=G(m)),m instanceof l?m.format():l.prototype.format.call(m)},I.Url=l;var e=/^([a-z0-9.+-]+:)/i,t=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),i=["'"].concat(r),c=["%","/","?",";","#"].concat(i),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,T=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},A={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=s(93143);function G(m,w,u){if(m&&y.isObject(m)&&m instanceof l)return m;var v=new l;return v.parse(m,w,u),v}l.prototype.parse=function(m,w,u){if(!y.isString(m))throw new TypeError("Parameter 'url' must be a string, not "+typeof m);var v=m.indexOf("?"),h=-1!==v&&v<m.indexOf("#")?"?":"#",R=m.split(h);R[0]=R[0].replace(/\\/g,"/");var P=m=R.join(h);if(P=P.trim(),!u&&1===m.split("#").length){var U=a.exec(P);if(U)return this.path=P,this.href=P,this.pathname=U[1],U[2]?(this.search=U[2],this.query=w?x.parse(this.search.substr(1)):this.search.substr(1)):w&&(this.search="",this.query={}),this}var Z=e.exec(P);if(Z){var ue=(Z=Z[0]).toLowerCase();this.protocol=ue,P=P.substr(Z.length)}if(u||Z||P.match(/^\/\/[^@\/]+@[^@\/]+/)){var V="//"===P.substr(0,2);V&&(!Z||!b[Z])&&(P=P.substr(2),this.slashes=!0)}if(!b[Z]&&(V||Z&&!A[Z])){for(var re=-1,ee=0;ee<d.length;ee++)-1!==(Y=P.indexOf(d[ee]))&&(-1===re||Y<re)&&(re=Y);var Q,k;for(-1!==(k=-1===re?P.lastIndexOf("@"):P.lastIndexOf("@",re))&&(Q=P.slice(0,k),P=P.slice(k+1),this.auth=decodeURIComponent(Q)),re=-1,ee=0;ee<c.length;ee++){var Y;-1!==(Y=P.indexOf(c[ee]))&&(-1===re||Y<re)&&(re=Y)}-1===re&&(re=P.length),this.host=P.slice(0,re),P=P.slice(re),this.parseHost(),this.hostname=this.hostname||"";var K="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!K)for(var C=this.hostname.split(/\./),f=(ee=0,C.length);ee<f;ee++){var O=C[ee];if(O&&!O.match(p)){for(var E="",M=0,j=O.length;M<j;M++)O.charCodeAt(M)>127?E+="x":E+=O[M];if(!E.match(p)){var q=C.slice(0,ee),ne=C.slice(ee+1),oe=O.match(T);oe&&(q.push(oe[1]),ne.unshift(oe[2])),ne.length&&(P="/"+ne.join(".")+P),this.hostname=q.join(".");break}}}this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),K||(this.hostname=n.toASCII(this.hostname)),this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,K&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==P[0]&&(P="/"+P))}if(!S[ue])for(ee=0,f=i.length;ee<f;ee++){var be=i[ee];if(-1!==P.indexOf(be)){var me=encodeURIComponent(be);me===be&&(me=escape(be)),P=P.split(be).join(me)}}var ge=P.indexOf("#");-1!==ge&&(this.hash=P.substr(ge),P=P.slice(0,ge));var F=P.indexOf("?");return-1!==F?(this.search=P.substr(F),this.query=P.substr(F+1),w&&(this.query=x.parse(this.query)),P=P.slice(0,F)):w&&(this.search="",this.query={}),P&&(this.pathname=P),A[ue]&&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 m=this.auth||"";m&&(m=(m=encodeURIComponent(m)).replace(/%3A/i,":"),m+="@");var w=this.protocol||"",u=this.pathname||"",v=this.hash||"",h=!1,R="";this.host?h=m+this.host:this.hostname&&(h=m+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(h+=":"+this.port)),this.query&&y.isObject(this.query)&&Object.keys(this.query).length&&(R=x.stringify(this.query));var N=this.search||R&&"?"+R||"";return w&&":"!==w.substr(-1)&&(w+=":"),this.slashes||(!w||A[w])&&!1!==h?(h="//"+(h||""),u&&"/"!==u.charAt(0)&&(u="/"+u)):h||(h=""),v&&"#"!==v.charAt(0)&&(v="#"+v),N&&"?"!==N.charAt(0)&&(N="?"+N),w+h+(u=u.replace(/[?#]/g,function(P){return encodeURIComponent(P)}))+(N=N.replace("#","%23"))+v},l.prototype.resolve=function(m){return this.resolveObject(G(m,!1,!0)).format()},l.prototype.resolveObject=function(m){if(y.isString(m)){var w=new l;w.parse(m,!1,!0),m=w}for(var u=new l,v=Object.keys(this),h=0;h<v.length;h++){var R=v[h];u[R]=this[R]}if(u.hash=m.hash,""===m.href)return u.href=u.format(),u;if(m.slashes&&!m.protocol){for(var N=Object.keys(m),P=0;P<N.length;P++){var U=N[P];"protocol"!==U&&(u[U]=m[U])}return A[u.protocol]&&u.hostname&&!u.pathname&&(u.path=u.pathname="/"),u.href=u.format(),u}if(m.protocol&&m.protocol!==u.protocol){if(!A[m.protocol]){for(var Z=Object.keys(m),ue=0;ue<Z.length;ue++){var V=Z[ue];u[V]=m[V]}return u.href=u.format(),u}if(u.protocol=m.protocol,m.host||b[m.protocol])u.pathname=m.pathname;else{for(var f=(m.pathname||"").split("/");f.length&&!(m.host=f.shift()););m.host||(m.host=""),m.hostname||(m.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),u.pathname=f.join("/")}return u.search=m.search,u.query=m.query,u.host=m.host||"",u.auth=m.auth,u.hostname=m.hostname||m.host,u.port=m.port,(u.pathname||u.search)&&(u.path=(u.pathname||"")+(u.search||"")),u.slashes=u.slashes||m.slashes,u.href=u.format(),u}var Y=u.pathname&&"/"===u.pathname.charAt(0),Q=m.host||m.pathname&&"/"===m.pathname.charAt(0),k=Q||Y||u.host&&m.pathname,K=k,C=u.pathname&&u.pathname.split("/")||[],O=(f=m.pathname&&m.pathname.split("/")||[],u.protocol&&!A[u.protocol]);if(O&&(u.hostname="",u.port=null,u.host&&(""===C[0]?C[0]=u.host:C.unshift(u.host)),u.host="",m.protocol&&(m.hostname=null,m.port=null,m.host&&(""===f[0]?f[0]=m.host:f.unshift(m.host)),m.host=null),k=k&&(""===f[0]||""===C[0])),Q)u.host=m.host||""===m.host?m.host:u.host,u.hostname=m.hostname||""===m.hostname?m.hostname:u.hostname,u.search=m.search,u.query=m.query,C=f;else if(f.length)C||(C=[]),C.pop(),C=C.concat(f),u.search=m.search,u.query=m.query;else if(!y.isNullOrUndefined(m.search))return O&&(u.hostname=u.host=C.shift(),(E=!!(u.host&&u.host.indexOf("@")>0)&&u.host.split("@"))&&(u.auth=E.shift(),u.host=u.hostname=E.shift())),u.search=m.search,u.query=m.query,(!y.isNull(u.pathname)||!y.isNull(u.search))&&(u.path=(u.pathname?u.pathname:"")+(u.search?u.search:"")),u.href=u.format(),u;if(!C.length)return u.pathname=null,u.path=u.search?"/"+u.search:null,u.href=u.format(),u;for(var M=C.slice(-1)[0],j=(u.host||m.host||C.length>1)&&("."===M||".."===M)||""===M,q=0,ne=C.length;ne>=0;ne--)"."===(M=C[ne])?C.splice(ne,1):".."===M?(C.splice(ne,1),q++):q&&(C.splice(ne,1),q--);if(!k&&!K)for(;q--;q)C.unshift("..");k&&""!==C[0]&&(!C[0]||"/"!==C[0].charAt(0))&&C.unshift(""),j&&"/"!==C.join("/").substr(-1)&&C.push("");var E,oe=""===C[0]||C[0]&&"/"===C[0].charAt(0);return O&&(u.hostname=u.host=oe?"":C.length?C.shift():"",(E=!!(u.host&&u.host.indexOf("@")>0)&&u.host.split("@"))&&(u.auth=E.shift(),u.host=u.hostname=E.shift())),(k=k||u.host&&C.length)&&!oe&&C.unshift(""),C.length?u.pathname=C.join("/"):(u.pathname=null,u.path=null),(!y.isNull(u.pathname)||!y.isNull(u.search))&&(u.path=(u.pathname?u.pathname:"")+(u.search?u.search:"")),u.auth=m.auth||u.auth,u.slashes=u.slashes||m.slashes,u.href=u.format(),u},l.prototype.parseHost=function(){var m=this.host,w=t.exec(m);w&&(":"!==(w=w[0])&&(this.port=w.substr(1)),m=m.substr(0,m.length-w.length)),m&&(this.hostname=m)}},47430:J=>{"use strict";J.exports={isString:function(I){return"string"==typeof I},isObject:function(I){return"object"==typeof I&&null!==I},isNull:function(I){return null===I},isNullOrUndefined:function(I){return null==I}}},63488:J=>{J.exports=function(s){return s&&"object"==typeof s&&"function"==typeof s.copy&&"function"==typeof s.fill&&"function"==typeof s.readUInt8}},48563:(J,I,s)=>{"use strict";var n=s(66651),y=s(80142),l=s(53353),e=s(65504);function t(F){return F.call.bind(F)}var a="undefined"!=typeof BigInt,o="undefined"!=typeof Symbol,r=t(Object.prototype.toString),i=t(Number.prototype.valueOf),c=t(String.prototype.valueOf),d=t(Boolean.prototype.valueOf);if(a)var g=t(BigInt.prototype.valueOf);if(o)var p=t(Symbol.prototype.valueOf);function T(F,_){if("object"!=typeof F)return!1;try{return _(F),!0}catch(D){return!1}}function R(F){return"[object Map]"===r(F)}function P(F){return"[object Set]"===r(F)}function Z(F){return"[object WeakMap]"===r(F)}function V(F){return"[object WeakSet]"===r(F)}function ee(F){return"[object ArrayBuffer]"===r(F)}function Y(F){return"undefined"!=typeof ArrayBuffer&&(ee.working?ee(F):F instanceof ArrayBuffer)}function Q(F){return"[object DataView]"===r(F)}function k(F){return"undefined"!=typeof DataView&&(Q.working?Q(F):F instanceof DataView)}I.isArgumentsObject=n,I.isGeneratorFunction=y,I.isTypedArray=e,I.isPromise=function(F){return"undefined"!=typeof Promise&&F instanceof Promise||null!==F&&"object"==typeof F&&"function"==typeof F.then&&"function"==typeof F.catch},I.isArrayBufferView=function(F){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(F):e(F)||k(F)},I.isUint8Array=function(F){return"Uint8Array"===l(F)},I.isUint8ClampedArray=function(F){return"Uint8ClampedArray"===l(F)},I.isUint16Array=function(F){return"Uint16Array"===l(F)},I.isUint32Array=function(F){return"Uint32Array"===l(F)},I.isInt8Array=function(F){return"Int8Array"===l(F)},I.isInt16Array=function(F){return"Int16Array"===l(F)},I.isInt32Array=function(F){return"Int32Array"===l(F)},I.isFloat32Array=function(F){return"Float32Array"===l(F)},I.isFloat64Array=function(F){return"Float64Array"===l(F)},I.isBigInt64Array=function(F){return"BigInt64Array"===l(F)},I.isBigUint64Array=function(F){return"BigUint64Array"===l(F)},R.working="undefined"!=typeof Map&&R(new Map),I.isMap=function(F){return"undefined"!=typeof Map&&(R.working?R(F):F instanceof Map)},P.working="undefined"!=typeof Set&&P(new Set),I.isSet=function(F){return"undefined"!=typeof Set&&(P.working?P(F):F instanceof Set)},Z.working="undefined"!=typeof WeakMap&&Z(new WeakMap),I.isWeakMap=function(F){return"undefined"!=typeof WeakMap&&(Z.working?Z(F):F instanceof WeakMap)},V.working="undefined"!=typeof WeakSet&&V(new WeakSet),I.isWeakSet=function(F){return V(F)},ee.working="undefined"!=typeof ArrayBuffer&&ee(new ArrayBuffer),I.isArrayBuffer=Y,Q.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&Q(new DataView(new ArrayBuffer(1),0,1)),I.isDataView=k;var K="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function C(F){return"[object SharedArrayBuffer]"===r(F)}function f(F){return void 0!==K&&(void 0===C.working&&(C.working=C(new K)),C.working?C(F):F instanceof K)}function ne(F){return T(F,i)}function oe(F){return T(F,c)}function de(F){return T(F,d)}function ve(F){return a&&T(F,g)}function be(F){return o&&T(F,p)}I.isSharedArrayBuffer=f,I.isAsyncFunction=function(F){return"[object AsyncFunction]"===r(F)},I.isMapIterator=function(F){return"[object Map Iterator]"===r(F)},I.isSetIterator=function(F){return"[object Set Iterator]"===r(F)},I.isGeneratorObject=function(F){return"[object Generator]"===r(F)},I.isWebAssemblyCompiledModule=function(F){return"[object WebAssembly.Module]"===r(F)},I.isNumberObject=ne,I.isStringObject=oe,I.isBooleanObject=de,I.isBigIntObject=ve,I.isSymbolObject=be,I.isBoxedPrimitive=function(F){return ne(F)||oe(F)||de(F)||ve(F)||be(F)},I.isAnyArrayBuffer=function(F){return"undefined"!=typeof Uint8Array&&(Y(F)||f(F))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(F){Object.defineProperty(I,F,{enumerable:!1,value:function(){throw new Error(F+" is not supported in userland")}})})},55620:(J,I,s)=>{var n=Object.getOwnPropertyDescriptors||function(k){for(var K=Object.keys(k),C={},f=0;f<K.length;f++)C[K[f]]=Object.getOwnPropertyDescriptor(k,K[f]);return C},y=/%[sdj%]/g;I.format=function(Q){if(!H(Q)){for(var k=[],K=0;K<arguments.length;K++)k.push(a(arguments[K]));return k.join(" ")}K=1;for(var C=arguments,f=C.length,O=String(Q).replace(y,function(M){if("%%"===M)return"%";if(K>=f)return M;switch(M){case"%s":return String(C[K++]);case"%d":return Number(C[K++]);case"%j":try{return JSON.stringify(C[K++])}catch(j){return"[Circular]"}default:return M}}),E=C[K];K<f;E=C[++K])x(E)||!u(E)?O+=" "+E:O+=" "+a(E);return O},I.deprecate=function(Q,k){if("undefined"!=typeof process&&!0===process.noDeprecation)return Q;if("undefined"==typeof process)return function(){return I.deprecate(Q,k).apply(this,arguments)};var K=!1;return function(){if(!K){if(process.throwDeprecation)throw new Error(k);process.traceDeprecation?console.trace(k):console.error(k),K=!0}return Q.apply(this,arguments)}};var l={},e=/^$/;if(process.env.NODE_DEBUG){var t=process.env.NODE_DEBUG;t=t.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),e=new RegExp("^"+t+"$","i")}function a(Q,k){var K={seen:[],stylize:r};return arguments.length>=3&&(K.depth=arguments[2]),arguments.length>=4&&(K.colors=arguments[3]),A(k)?K.showHidden=k:k&&I._extend(K,k),m(K.showHidden)&&(K.showHidden=!1),m(K.depth)&&(K.depth=2),m(K.colors)&&(K.colors=!1),m(K.customInspect)&&(K.customInspect=!0),K.colors&&(K.stylize=o),c(K,Q,K.depth)}function o(Q,k){var K=a.styles[k];return K?"\x1b["+a.colors[K][0]+"m"+Q+"\x1b["+a.colors[K][1]+"m":Q}function r(Q,k){return Q}function c(Q,k,K){if(Q.customInspect&&k&&R(k.inspect)&&k.inspect!==I.inspect&&(!k.constructor||k.constructor.prototype!==k)){var C=k.inspect(K,Q);return H(C)||(C=c(Q,C,K)),C}var f=function(Q,k){if(m(k))return Q.stylize("undefined","undefined");if(H(k)){var K="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Q.stylize(K,"string")}return W(k)?Q.stylize(""+k,"number"):A(k)?Q.stylize(""+k,"boolean"):x(k)?Q.stylize("null","null"):void 0}(Q,k);if(f)return f;var O=Object.keys(k),E=function(Q){var k={};return Q.forEach(function(K,C){k[K]=!0}),k}(O);if(Q.showHidden&&(O=Object.getOwnPropertyNames(k)),h(k)&&(O.indexOf("message")>=0||O.indexOf("description")>=0))return g(k);if(0===O.length){if(R(k))return Q.stylize("[Function"+(k.name?": "+k.name:"")+"]","special");if(w(k))return Q.stylize(RegExp.prototype.toString.call(k),"regexp");if(v(k))return Q.stylize(Date.prototype.toString.call(k),"date");if(h(k))return g(k)}var de,j="",q=!1,ne=["{","}"];return b(k)&&(q=!0,ne=["[","]"]),R(k)&&(j=" [Function"+(k.name?": "+k.name:"")+"]"),w(k)&&(j=" "+RegExp.prototype.toString.call(k)),v(k)&&(j=" "+Date.prototype.toUTCString.call(k)),h(k)&&(j=" "+g(k)),0!==O.length||q&&0!=k.length?K<0?w(k)?Q.stylize(RegExp.prototype.toString.call(k),"regexp"):Q.stylize("[Object]","special"):(Q.seen.push(k),de=q?function(Q,k,K,C,f){for(var O=[],E=0,M=k.length;E<M;++E)V(k,String(E))?O.push(T(Q,k,K,C,String(E),!0)):O.push("");return f.forEach(function(j){j.match(/^\d+$/)||O.push(T(Q,k,K,C,j,!0))}),O}(Q,k,K,E,O):O.map(function(ve){return T(Q,k,K,E,ve,q)}),Q.seen.pop(),function(Q,k,K){return Q.reduce(function(O,E){return E.indexOf("\n"),O+E.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?K[0]+(""===k?"":k+"\n ")+" "+Q.join(",\n ")+" "+K[1]:K[0]+k+" "+Q.join(", ")+" "+K[1]}(de,j,ne)):ne[0]+j+ne[1]}function g(Q){return"["+Error.prototype.toString.call(Q)+"]"}function T(Q,k,K,C,f,O){var E,M,j;if((j=Object.getOwnPropertyDescriptor(k,f)||{value:k[f]}).get?M=Q.stylize(j.set?"[Getter/Setter]":"[Getter]","special"):j.set&&(M=Q.stylize("[Setter]","special")),V(C,f)||(E="["+f+"]"),M||(Q.seen.indexOf(j.value)<0?(M=x(K)?c(Q,j.value,null):c(Q,j.value,K-1)).indexOf("\n")>-1&&(M=O?M.split("\n").map(function(q){return" "+q}).join("\n").substr(2):"\n"+M.split("\n").map(function(q){return" "+q}).join("\n")):M=Q.stylize("[Circular]","special")),m(E)){if(O&&f.match(/^\d+$/))return M;(E=JSON.stringify(""+f)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(E=E.substr(1,E.length-2),E=Q.stylize(E,"name")):(E=E.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),E=Q.stylize(E,"string"))}return E+": "+M}function b(Q){return Array.isArray(Q)}function A(Q){return"boolean"==typeof Q}function x(Q){return null===Q}function W(Q){return"number"==typeof Q}function H(Q){return"string"==typeof Q}function m(Q){return void 0===Q}function w(Q){return u(Q)&&"[object RegExp]"===P(Q)}function u(Q){return"object"==typeof Q&&null!==Q}function v(Q){return u(Q)&&"[object Date]"===P(Q)}function h(Q){return u(Q)&&("[object Error]"===P(Q)||Q instanceof Error)}function R(Q){return"function"==typeof Q}function P(Q){return Object.prototype.toString.call(Q)}function U(Q){return Q<10?"0"+Q.toString(10):Q.toString(10)}I.debuglog=function(Q){if(Q=Q.toUpperCase(),!l[Q])if(e.test(Q)){var k=process.pid;l[Q]=function(){var K=I.format.apply(I,arguments);console.error("%s %d: %s",Q,k,K)}}else l[Q]=function(){};return l[Q]},I.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},I.types=s(48563),I.isArray=b,I.isBoolean=A,I.isNull=x,I.isNullOrUndefined=function(Q){return null==Q},I.isNumber=W,I.isString=H,I.isSymbol=function(Q){return"symbol"==typeof Q},I.isUndefined=m,I.isRegExp=w,I.types.isRegExp=w,I.isObject=u,I.isDate=v,I.types.isDate=v,I.isError=h,I.types.isNativeError=h,I.isFunction=R,I.isPrimitive=function(Q){return null===Q||"boolean"==typeof Q||"number"==typeof Q||"string"==typeof Q||"symbol"==typeof Q||void 0===Q},I.isBuffer=s(63488);var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ue(){var Q=new Date,k=[U(Q.getHours()),U(Q.getMinutes()),U(Q.getSeconds())].join(":");return[Q.getDate(),Z[Q.getMonth()],k].join(" ")}function V(Q,k){return Object.prototype.hasOwnProperty.call(Q,k)}I.log=function(){console.log("%s - %s",ue(),I.format.apply(I,arguments))},I.inherits=s(13057),I._extend=function(Q,k){if(!k||!u(k))return Q;for(var K=Object.keys(k),C=K.length;C--;)Q[K[C]]=k[K[C]];return Q};var re="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function ee(Q,k){if(!Q){var K=new Error("Promise was rejected with a falsy value");K.reason=Q,Q=K}return k(Q)}I.promisify=function(k){if("function"!=typeof k)throw new TypeError('The "original" argument must be of type Function');if(re&&k[re]){var K;if("function"!=typeof(K=k[re]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(K,re,{value:K,enumerable:!1,writable:!1,configurable:!0}),K}function K(){for(var C,f,O=new Promise(function(j,q){C=j,f=q}),E=[],M=0;M<arguments.length;M++)E.push(arguments[M]);E.push(function(j,q){j?f(j):C(q)});try{k.apply(this,E)}catch(j){f(j)}return O}return Object.setPrototypeOf(K,Object.getPrototypeOf(k)),re&&Object.defineProperty(K,re,{value:K,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(K,n(k))},I.promisify.custom=re,I.callbackify=function(Q){if("function"!=typeof Q)throw new TypeError('The "original" argument must be of type Function');function k(){for(var K=[],C=0;C<arguments.length;C++)K.push(arguments[C]);var f=K.pop();if("function"!=typeof f)throw new TypeError("The last argument must be of type Function");var O=this,E=function(){return f.apply(O,arguments)};Q.apply(this,K).then(function(M){process.nextTick(E.bind(null,null,M))},function(M){process.nextTick(ee.bind(null,M,E))})}return Object.setPrototypeOf(k,Object.getPrototypeOf(Q)),Object.defineProperties(k,n(Q)),k}},53353:(J,I,s)=>{"use strict";var n=s(88146),y=s(54674),l=s(43653),e=l("Object.prototype.toString"),a=s(22452)()&&"symbol"==typeof Symbol.toStringTag,o=y(),r=l("String.prototype.slice"),i={},c=s(35887),d=Object.getPrototypeOf;a&&c&&d&&n(o,function(T){if("function"==typeof global[T]){var S=new global[T];if(!(Symbol.toStringTag in S))throw new EvalError("this engine has support for Symbol.toStringTag, but "+T+" does not have the property! Please report this.");var b=d(S),A=c(b,Symbol.toStringTag);if(!A){var x=d(b);A=c(x,Symbol.toStringTag)}i[T]=A.get}});var p=s(65504);J.exports=function(S){return!!p(S)&&(a?function(S){var b=!1;return n(i,function(A,x){if(!b)try{var G=A.call(S);G===x&&(b=G)}catch(W){}}),b}(S):r(e(S),8,-1))}},42677:(J,I,s)=>{J.exports=s(70057).Observable},70057:(J,I)=>{"use strict";function n(m,w){if(!(m instanceof w))throw new TypeError("Cannot call a class as a function")}function y(m,w){for(var u=0;u<w.length;u++){var v=w[u];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,v.key,v)}}function l(m,w,u){return w&&y(m.prototype,w),u&&y(m,u),m}I.Observable=void 0;var e=function(){return"function"==typeof Symbol},t=function(m){return e()&&Boolean(Symbol[m])},a=function(m){return t(m)?Symbol[m]:"@@"+m};e()&&!t("observable")&&(Symbol.observable=Symbol("observable"));var o=a("iterator"),r=a("observable"),i=a("species");function c(m,w){var u=m[w];if(null!=u){if("function"!=typeof u)throw new TypeError(u+" is not a function");return u}}function d(m){var w=m.constructor;return void 0!==w&&null===(w=w[i])&&(w=void 0),void 0!==w?w:B}function p(m){p.log?p.log(m):setTimeout(function(){throw m})}function T(m){Promise.resolve().then(function(){try{m()}catch(w){p(w)}})}function S(m){var w=m._cleanup;if(void 0!==w&&(m._cleanup=void 0,w))try{if("function"==typeof w)w();else{var u=c(w,"unsubscribe");u&&u.call(w)}}catch(v){p(v)}}function b(m){m._observer=void 0,m._queue=void 0,m._state="closed"}function x(m,w,u){m._state="running";var v=m._observer;try{var h=c(v,w);switch(w){case"next":h&&h.call(v,u);break;case"error":if(b(m),!h)throw u;h.call(v,u);break;case"complete":b(m),h&&h.call(v)}}catch(R){p(R)}"closed"===m._state?S(m):"running"===m._state&&(m._state="ready")}function G(m,w,u){if("closed"!==m._state){if("buffering"===m._state)return void m._queue.push({type:w,value:u});if("ready"!==m._state)return m._state="buffering",m._queue=[{type:w,value:u}],void T(function(){return function(m){var w=m._queue;if(w){m._queue=void 0,m._state="ready";for(var u=0;u<w.length&&(x(m,w[u].type,w[u].value),"closed"!==m._state);++u);}}(m)});x(m,w,u)}}var W=function(){function m(w,u){n(this,m),this._cleanup=void 0,this._observer=w,this._queue=void 0,this._state="initializing";var v=new H(this);try{this._cleanup=u.call(void 0,v)}catch(h){v.error(h)}"initializing"===this._state&&(this._state="ready")}return l(m,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(b(this),S(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),m}(),H=function(){function m(w){n(this,m),this._subscription=w}return l(m,[{key:"next",value:function(u){G(this._subscription,"next",u)}},{key:"error",value:function(u){G(this._subscription,"error",u)}},{key:"complete",value:function(){G(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),m}(),B=function(){function m(w){if(n(this,m),!(this instanceof m))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof w)throw new TypeError("Observable initializer must be a function");this._subscriber=w}return l(m,[{key:"subscribe",value:function(u){return("object"!=typeof u||null===u)&&(u={next:u,error:arguments[1],complete:arguments[2]}),new W(u,this._subscriber)}},{key:"forEach",value:function(u){var v=this;return new Promise(function(h,R){if("function"==typeof u)var P=v.subscribe({next:function(U){try{u(U,N)}catch(Z){R(Z),P.unsubscribe()}},error:R,complete:h});else R(new TypeError(u+" is not a function"));function N(){P.unsubscribe(),h()}})}},{key:"map",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(d(this))(function(R){return v.subscribe({next:function(N){try{N=u(N)}catch(P){return R.error(P)}R.next(N)},error:function(N){R.error(N)},complete:function(){R.complete()}})})}},{key:"filter",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");return new(d(this))(function(R){return v.subscribe({next:function(N){try{if(!u(N))return}catch(P){return R.error(P)}R.next(N)},error:function(N){R.error(N)},complete:function(){R.complete()}})})}},{key:"reduce",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var h=d(this),R=arguments.length>1,N=!1,P=arguments[1],U=P;return new h(function(Z){return v.subscribe({next:function(ue){var V=!N;if(N=!0,!V||R)try{U=u(U,ue)}catch(re){return Z.error(re)}else U=ue},error:function(ue){Z.error(ue)},complete:function(){if(!N&&!R)return Z.error(new TypeError("Cannot reduce an empty sequence"));Z.next(U),Z.complete()}})})}},{key:"concat",value:function(){for(var u=this,v=arguments.length,h=new Array(v),R=0;R<v;R++)h[R]=arguments[R];var N=d(this);return new N(function(P){var U,Z=0;return function ue(V){U=V.subscribe({next:function(re){P.next(re)},error:function(re){P.error(re)},complete:function(){Z===h.length?(U=void 0,P.complete()):ue(N.from(h[Z++]))}})}(u),function(){U&&(U.unsubscribe(),U=void 0)}})}},{key:"flatMap",value:function(u){var v=this;if("function"!=typeof u)throw new TypeError(u+" is not a function");var h=d(this);return new h(function(R){var N=[],P=v.subscribe({next:function(Z){if(u)try{Z=u(Z)}catch(V){return R.error(V)}var ue=h.from(Z).subscribe({next:function(V){R.next(V)},error:function(V){R.error(V)},complete:function(){var V=N.indexOf(ue);V>=0&&N.splice(V,1),U()}});N.push(ue)},error:function(Z){R.error(Z)},complete:function(){U()}});function U(){P.closed&&0===N.length&&R.complete()}return function(){N.forEach(function(Z){return Z.unsubscribe()}),P.unsubscribe()}})}},{key:r,value:function(){return this}}],[{key:"from",value:function(u){var v="function"==typeof this?this:m;if(null==u)throw new TypeError(u+" is not an object");var h=c(u,r);if(h){var R=h.call(u);if(Object(R)!==R)throw new TypeError(R+" is not an object");return function(m){return m instanceof B}(R)&&R.constructor===v?R:new v(function(N){return R.subscribe(N)})}if(t("iterator")&&(h=c(u,o)))return new v(function(N){T(function(){if(!N.closed){var P=!0,U=!1,Z=void 0;try{for(var V,ue=h.call(u)[Symbol.iterator]();!(P=(V=ue.next()).done);P=!0)if(N.next(V.value),N.closed)return}catch(ee){U=!0,Z=ee}finally{try{!P&&null!=ue.return&&ue.return()}finally{if(U)throw Z}}N.complete()}})});if(Array.isArray(u))return new v(function(N){T(function(){if(!N.closed){for(var P=0;P<u.length;++P)if(N.next(u[P]),N.closed)return;N.complete()}})});throw new TypeError(u+" is not observable")}},{key:"of",value:function(){for(var u=arguments.length,v=new Array(u),h=0;h<u;h++)v[h]=arguments[h];var R="function"==typeof this?this:m;return new R(function(N){T(function(){if(!N.closed){for(var P=0;P<v.length;++P)if(N.next(v[P]),N.closed)return;N.complete()}})})}},{key:i,get:function(){return this}}]),m}();I.Observable=B,e()&&Object.defineProperty(B,Symbol("extensions"),{value:{symbol:r,hostReportError:p},configurable:!0})},48399:(J,I,s)=>{"use strict";s.d(I,{ZT:()=>y,pi:()=>l,_T:()=>e,mG:()=>r,Jh:()=>i,pr:()=>S});var n=function(u,v){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,R){h.__proto__=R}||function(h,R){for(var N in R)R.hasOwnProperty(N)&&(h[N]=R[N])})(u,v)};function y(u,v){function h(){this.constructor=u}n(u,v),u.prototype=null===v?Object.create(v):(h.prototype=v.prototype,new h)}var l=function(){return(l=Object.assign||function(v){for(var h,R=1,N=arguments.length;R<N;R++)for(var P in h=arguments[R])Object.prototype.hasOwnProperty.call(h,P)&&(v[P]=h[P]);return v}).apply(this,arguments)};function e(u,v){var h={};for(var R in u)Object.prototype.hasOwnProperty.call(u,R)&&v.indexOf(R)<0&&(h[R]=u[R]);if(null!=u&&"function"==typeof Object.getOwnPropertySymbols){var N=0;for(R=Object.getOwnPropertySymbols(u);N<R.length;N++)v.indexOf(R[N])<0&&Object.prototype.propertyIsEnumerable.call(u,R[N])&&(h[R[N]]=u[R[N]])}return h}function r(u,v,h,R){return new(h||(h=Promise))(function(P,U){function Z(re){try{V(R.next(re))}catch(ee){U(ee)}}function ue(re){try{V(R.throw(re))}catch(ee){U(ee)}}function V(re){re.done?P(re.value):function(P){return P instanceof h?P:new h(function(U){U(P)})}(re.value).then(Z,ue)}V((R=R.apply(u,v||[])).next())})}function i(u,v){var R,N,P,U,h={label:0,sent:function(){if(1&P[0])throw P[1];return P[1]},trys:[],ops:[]};return U={next:Z(0),throw:Z(1),return:Z(2)},"function"==typeof Symbol&&(U[Symbol.iterator]=function(){return this}),U;function Z(V){return function(re){return function(V){if(R)throw new TypeError("Generator is already executing.");for(;h;)try{if(R=1,N&&(P=2&V[0]?N.return:V[0]?N.throw||((P=N.return)&&P.call(N),0):N.next)&&!(P=P.call(N,V[1])).done)return P;switch(N=0,P&&(V=[2&V[0],P.value]),V[0]){case 0:case 1:P=V;break;case 4:return h.label++,{value:V[1],done:!1};case 5:h.label++,N=V[1],V=[0];continue;case 7:V=h.ops.pop(),h.trys.pop();continue;default:if(!(P=(P=h.trys).length>0&&P[P.length-1])&&(6===V[0]||2===V[0])){h=0;continue}if(3===V[0]&&(!P||V[1]>P[0]&&V[1]<P[3])){h.label=V[1];break}if(6===V[0]&&h.label<P[1]){h.label=P[1],P=V;break}if(P&&h.label<P[2]){h.label=P[2],h.ops.push(V);break}P[2]&&h.ops.pop(),h.trys.pop();continue}V=v.call(u,h)}catch(re){V=[6,re],N=0}finally{R=P=0}if(5&V[0])throw V[1];return{value:V[0]?V[1]:void 0,done:!0}}([V,re])}}}function S(){for(var u=0,v=0,h=arguments.length;v<h;v++)u+=arguments[v].length;var R=Array(u),N=0;for(v=0;v<h;v++)for(var P=arguments[v],U=0,Z=P.length;U<Z;U++,N++)R[N]=P[U];return R}},94659:()=>{},54674:J=>{"use strict";var I=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];J.exports=function(){for(var n=[],y=0;y<I.length;y++)"function"==typeof global[I[y]]&&(n[n.length]=I[y]);return n}},35887:(J,I,s)=>{"use strict";var y=s(62976)("%Object.getOwnPropertyDescriptor%");if(y)try{y([],"length")}catch(l){y=null}J.exports=y},63262:(J,I,s)=>{"use strict";s.r(I),s.d(I,{BREAK:()=>m.$_,BreakingChangeType:()=>nt,DEFAULT_DEPRECATION_REASON:()=>g.SY,DangerousChangeType:()=>Et,DirectiveLocation:()=>u.B,ExecutableDefinitionsRule:()=>ee.i,FieldsOnCorrectTypeRule:()=>Y.A,FragmentsOnCompositeTypesRule:()=>Q.T,GraphQLBoolean:()=>T.EZ,GraphQLDeprecatedDirective:()=>g.fg,GraphQLDirective:()=>g.NZ,GraphQLEnumType:()=>p.mR,GraphQLError:()=>U._,GraphQLFloat:()=>T.av,GraphQLID:()=>T.km,GraphQLIncludeDirective:()=>g.Yf,GraphQLInputObjectType:()=>p.sR,GraphQLInt:()=>T._o,GraphQLInterfaceType:()=>p.oW,GraphQLList:()=>p.p2,GraphQLNonNull:()=>p.bM,GraphQLObjectType:()=>p.h6,GraphQLScalarType:()=>p.n2,GraphQLSchema:()=>d.XO,GraphQLSkipDirective:()=>g.QE,GraphQLSpecifiedByDirective:()=>g.df,GraphQLString:()=>T.kH,GraphQLUnionType:()=>p.Gp,Kind:()=>w.h,KnownArgumentNamesRule:()=>k.e,KnownDirectivesRule:()=>K.J,KnownFragmentNamesRule:()=>C.a,KnownTypeNamesRule:()=>f.I,Lexer:()=>W.h,Location:()=>b.Ye,LoneAnonymousOperationRule:()=>O.F,LoneSchemaDefinitionRule:()=>ie.t,NoDeprecatedCustomRule:()=>Z,NoFragmentCyclesRule:()=>E.H,NoSchemaIntrospectionCustomRule:()=>ue,NoUndefinedVariablesRule:()=>M.$,NoUnusedFragmentsRule:()=>j.J,NoUnusedVariablesRule:()=>q.p,OverlappingFieldsCanBeMergedRule:()=>ne.y,PossibleFragmentSpreadsRule:()=>oe.a,PossibleTypeExtensionsRule:()=>We.g,ProvidedRequiredArgumentsRule:()=>de.s,ScalarLeafsRule:()=>ve.O,SchemaMetaFieldDef:()=>S.Az,SingleFieldSubscriptionsRule:()=>be.Z,Source:()=>A.H,Token:()=>b.WU,TokenKind:()=>H.T,TypeInfo:()=>Ir.a,TypeKind:()=>S.zU,TypeMetaFieldDef:()=>S.tF,TypeNameMetaFieldDef:()=>S.hU,UniqueArgumentNamesRule:()=>me.L,UniqueDirectiveNamesRule:()=>Le.o,UniqueDirectivesPerLocationRule:()=>ge.k,UniqueEnumValueNamesRule:()=>ye.L,UniqueFieldDefinitionNamesRule:()=>Oe.y,UniqueFragmentNamesRule:()=>F.N,UniqueInputFieldNamesRule:()=>_.P,UniqueOperationNamesRule:()=>D.H,UniqueOperationTypesRule:()=>se.q,UniqueTypeNamesRule:()=>he.P,UniqueVariableNamesRule:()=>X.H,ValidationContext:()=>V._t,ValuesOfCorrectTypeRule:()=>le.j,VariablesAreInputTypesRule:()=>Se.I,VariablesInAllowedPositionRule:()=>L.w,__Directive:()=>S.l3,__DirectiveLocation:()=>S.x2,__EnumValue:()=>S.jT,__Field:()=>S.e_,__InputValue:()=>S.XQ,__Schema:()=>S.TK,__Type:()=>S.qz,__TypeKind:()=>S.PX,assertAbstractType:()=>p.fU,assertCompositeType:()=>p.M_,assertDirective:()=>g.CO,assertEnumType:()=>p.Zu,assertInputObjectType:()=>p.U8,assertInputType:()=>p.qT,assertInterfaceType:()=>p.k2,assertLeafType:()=>p.H5,assertListType:()=>p.kS,assertNamedType:()=>p.rM,assertNonNullType:()=>p.E$,assertNullableType:()=>p.i_,assertObjectType:()=>p.Z6,assertOutputType:()=>p.Gt,assertScalarType:()=>p.Pt,assertSchema:()=>d.EO,assertType:()=>p.p_,assertUnionType:()=>p.rc,assertValidName:()=>_r.k,assertValidSchema:()=>a.J,assertWrappingType:()=>p.vX,astFromValue:()=>Ae.J,buildASTSchema:()=>Vt,buildClientSchema:()=>Dt,buildSchema:()=>rr,coerceInputValue:()=>hn.K,concatAST:()=>Qr,createSourceEventStream:()=>N.z,defaultFieldResolver:()=>o.El,defaultTypeResolver:()=>o.mn,doTypesOverlap:()=>yr.zR,execute:()=>o.ht,executeSync:()=>o.p0,extendSchema:()=>jt,findBreakingChanges:()=>Xr,findDangerousChanges:()=>$r,findDeprecatedUsages:()=>sn,formatError:()=>st,getDescription:()=>gt,getDirectiveValues:()=>R.zu,getIntrospectionQuery:()=>At,getLocation:()=>x.k,getNamedType:()=>p.xC,getNullableType:()=>p.tf,getOperationAST:()=>un.getOperationAST,getOperationRootType:()=>cn.J,getVisitFn:()=>m.CK,graphql:()=>r,graphqlSync:()=>i,introspectionFromSchema:()=>_t,introspectionTypes:()=>S.nL,isAbstractType:()=>p.m0,isCompositeType:()=>p.Gv,isDefinitionNode:()=>v.Ir,isDirective:()=>g.wX,isEnumType:()=>p.EM,isEqualType:()=>yr._7,isExecutableDefinitionNode:()=>v.Wk,isInputObjectType:()=>p.hL,isInputType:()=>p.j$,isInterfaceType:()=>p.oT,isIntrospectionType:()=>S.s9,isLeafType:()=>p.UT,isListType:()=>p.HG,isNamedType:()=>p.Zs,isNonNullType:()=>p.zM,isNullableType:()=>p.zP,isObjectType:()=>p.lp,isOutputType:()=>p.SZ,isRequiredArgument:()=>p.dK,isRequiredInputField:()=>p.Wd,isScalarType:()=>p.KA,isSchema:()=>d.nN,isSelectionNode:()=>v.pO,isSpecifiedDirective:()=>g.xg,isSpecifiedScalarType:()=>T.u1,isType:()=>p.P9,isTypeDefinitionNode:()=>v.zT,isTypeExtensionNode:()=>v.D$,isTypeNode:()=>v.VB,isTypeSubTypeOf:()=>yr.uJ,isTypeSystemDefinitionNode:()=>v.G4,isTypeSystemExtensionNode:()=>v.aU,isUnionType:()=>p.EN,isValidNameError:()=>_r.u,isValueNode:()=>v.nr,isWrappingType:()=>p.fw,lexicographicSortSchema:()=>hr,locatedError:()=>Be.y,parse:()=>e.Qc,parseType:()=>e.gZ,parseValue:()=>e.H2,print:()=>B.print,printError:()=>U.O,printIntrospectionSchema:()=>ke,printLocation:()=>G.Q,printSchema:()=>Re,printSourceLocation:()=>G.z,printType:()=>nr,responsePathAsArray:()=>h.N,separateOperations:()=>qr,specifiedDirectives:()=>g.V4,specifiedRules:()=>re.i,specifiedScalarTypes:()=>T.HS,stripIgnoredCharacters:()=>Yr,subscribe:()=>N.L,syntaxError:()=>et.h,typeFromAST:()=>fn._,validate:()=>t.Gu,validateSchema:()=>a.F,valueFromAST:()=>yt.u,valueFromASTUntyped:()=>ln.M,version:()=>n,versionInfo:()=>y,visit:()=>m.Vn,visitInParallel:()=>m.j1,visitWithTypeInfo:()=>Ir.y});var n="15.5.1",y=Object.freeze({major:15,minor:5,patch:1,preReleaseTag:null}),l=s(22938),e=s(51724),t=s(48682),a=s(27352),o=s(98001);function r(z,te,ae,ce,Ee,xe,Ce,De){var Pe=arguments;return new Promise(function(Ke){return Ke(c(1===Pe.length?z:{schema:z,source:te,rootValue:ae,contextValue:ce,variableValues:Ee,operationName:xe,fieldResolver:Ce,typeResolver:De}))})}function i(z,te,ae,ce,Ee,xe,Ce,De){var Pe=c(1===arguments.length?z:{schema:z,source:te,rootValue:ae,contextValue:ce,variableValues:Ee,operationName:xe,fieldResolver:Ce,typeResolver:De});if((0,l.Z)(Pe))throw new Error("GraphQL execution failed to complete synchronously.");return Pe}function c(z){var Ne,te=z.schema,ae=z.source,ce=z.rootValue,Ee=z.contextValue,xe=z.variableValues,Ce=z.operationName,De=z.fieldResolver,Pe=z.typeResolver,Ke=(0,a.F)(te);if(Ke.length>0)return{errors:Ke};try{Ne=(0,e.Qc)(ae)}catch(Ie){return{errors:[Ie]}}var Fe=(0,t.Gu)(te,Ne);return Fe.length>0?{errors:Fe}:(0,o.ht)({schema:te,document:Ne,rootValue:ce,contextValue:Ee,variableValues:xe,operationName:Ce,fieldResolver:De,typeResolver:Pe})}var d=s(39939),g=s(38273),p=s(16626),T=s(65615),S=s(39765),b=s(31279),A=s(99921),x=s(74051),G=s(83346),W=s(90550),H=s(92495),B=s(71352),m=s(86729),w=s(87948),u=s(52194),v=s(32766),h=s(35081),R=s(90350),N=s(86403),P=s(34248),U=s(89790);function Z(z){return{Field:function(ae){var ce=z.getFieldDef(),Ee=null==ce?void 0:ce.deprecationReason;if(ce&&null!=Ee){var xe=z.getParentType();null!=xe||(0,P.Z)(0),z.reportError(new U._("The field ".concat(xe.name,".").concat(ce.name," is deprecated. ").concat(Ee),ae))}},Argument:function(ae){var ce=z.getArgument(),Ee=null==ce?void 0:ce.deprecationReason;if(ce&&null!=Ee){var xe=z.getDirective();if(null!=xe)z.reportError(new U._('Directive "@'.concat(xe.name,'" argument "').concat(ce.name,'" is deprecated. ').concat(Ee),ae));else{var Ce=z.getParentType(),De=z.getFieldDef();null!=Ce&&null!=De||(0,P.Z)(0),z.reportError(new U._('Field "'.concat(Ce.name,".").concat(De.name,'" argument "').concat(ce.name,'" is deprecated. ').concat(Ee),ae))}}},ObjectField:function(ae){var ce=(0,p.xC)(z.getParentInputType());if((0,p.hL)(ce)){var Ee=ce.getFields()[ae.name.value],xe=null==Ee?void 0:Ee.deprecationReason;null!=xe&&z.reportError(new U._("The input field ".concat(ce.name,".").concat(Ee.name," is deprecated. ").concat(xe),ae))}},EnumValue:function(ae){var ce=z.getEnumValue(),Ee=null==ce?void 0:ce.deprecationReason;if(ce&&null!=Ee){var xe=(0,p.xC)(z.getInputType());null!=xe||(0,P.Z)(0),z.reportError(new U._('The enum value "'.concat(xe.name,".").concat(ce.name,'" is deprecated. ').concat(Ee),ae))}}}}function ue(z){return{Field:function(ae){var ce=(0,p.xC)(z.getType());ce&&(0,S.s9)(ce)&&z.reportError(new U._('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(ae.name.value,'".'),ae))}}}var V=s(68371),re=s(89512),ee=s(58610),Y=s(57634),Q=s(53503),k=s(51126),K=s(84815),C=s(73131),f=s(11339),O=s(47239),E=s(27694),M=s(68246),j=s(82279),q=s(58159),ne=s(6786),oe=s(58229),de=s(85934),ve=s(21318),be=s(8833),me=s(25755),ge=s(11004),F=s(84673),_=s(7220),D=s(13903),X=s(98504),le=s(42597),Se=s(4566),L=s(15839),ie=s(17775),se=s(64404),he=s(94121),ye=s(39409),Oe=s(86373),Le=s(84174),We=s(58592),qe=s(60488);function st(z){var te;z||(0,qe.Z)(0,"Received null or undefined error.");var ae=null!==(te=z.message)&&void 0!==te?te:"An unknown error occurred.",ce=z.locations,Ee=z.path,xe=z.extensions;return xe?{message:ae,locations:ce,path:Ee,extensions:xe}:{message:ae,locations:ce,path:Ee}}var et=s(73153),Be=s(40748);function ht(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function Ct(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function At(z){var te=function(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?ht(Object(ae),!0).forEach(function(ce){Ct(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):ht(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},z),ae=te.descriptions?"description":"",ce=te.specifiedByUrl?"specifiedByUrl":"",Ee=te.directiveIsRepeatable?"isRepeatable":"";function Ce(De){return te.inputValueDeprecation?De:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(te.schemaDescription?ae:"","\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(ae,"\n ").concat(Ee,"\n locations\n args").concat(Ce("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(ae,"\n ").concat(ce,"\n fields(includeDeprecated: true) {\n name\n ").concat(ae,"\n args").concat(Ce("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(Ce("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(ae,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(ae,"\n type { ...TypeRef }\n defaultValue\n ").concat(Ce("isDeprecated"),"\n ").concat(Ce("deprecationReason"),"\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n ")}function Ot(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function lt(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function _t(z,te){var ae=function(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Ot(Object(ae),!0).forEach(function(ce){lt(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Ot(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},te),ce=(0,e.Qc)(At(ae)),Ee=(0,o.p0)({schema:z,document:ce});return!Ee.errors&&Ee.data||(0,P.Z)(0),Ee.data}var at=s(28441),$e=s(95897),mt=s(74039),wt=s(67650),yt=s(7903);function Dt(z,te){(0,wt.Z)(z)&&(0,wt.Z)(z.__schema)||(0,qe.Z)(0,'Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: '.concat((0,$e.Z)(z),"."));for(var ae=z.__schema,ce=(0,mt.Z)(ae.types,function(Te){return Te.name},function(Te){return function(Te){if(null!=Te&&null!=Te.name&&null!=Te.kind)switch(Te.kind){case S.zU.SCALAR:return function(Te){return new p.n2({name:Te.name,description:Te.description,specifiedByUrl:Te.specifiedByUrl})}(Te);case S.zU.OBJECT:return function(Te){return new p.h6({name:Te.name,description:Te.description,interfaces:function(){return rt(Te)},fields:function(){return Qt(Te)}})}(Te);case S.zU.INTERFACE:return function(Te){return new p.oW({name:Te.name,description:Te.description,interfaces:function(){return rt(Te)},fields:function(){return Qt(Te)}})}(Te);case S.zU.UNION:return function(Te){if(!Te.possibleTypes){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing possibleTypes: ".concat(He,"."))}return new p.Gp({name:Te.name,description:Te.description,types:function(){return Te.possibleTypes.map(Ve)}})}(Te);case S.zU.ENUM:return function(Te){if(!Te.enumValues){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing enumValues: ".concat(He,"."))}return new p.mR({name:Te.name,description:Te.description,values:(0,mt.Z)(Te.enumValues,function(it){return it.name},function(it){return{description:it.description,deprecationReason:it.deprecationReason}})})}(Te);case S.zU.INPUT_OBJECT:return function(Te){if(!Te.inputFields){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing inputFields: ".concat(He,"."))}return new p.sR({name:Te.name,description:Te.description,fields:function(){return qt(Te.inputFields)}})}(Te)}var He=(0,$e.Z)(Te);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(He,"."))}(Te)}),Ee=0,xe=[].concat(T.HS,S.nL);Ee<xe.length;Ee++){var Ce=xe[Ee];ce[Ce.name]&&(ce[Ce.name]=Ce)}var De=ae.queryType?Ve(ae.queryType):null,Pe=ae.mutationType?Ve(ae.mutationType):null,Ke=ae.subscriptionType?Ve(ae.subscriptionType):null,Ne=ae.directives?ae.directives.map(function(Te){if(!Te.args){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing directive args: ".concat(He,"."))}if(!Te.locations){var it=(0,$e.Z)(Te);throw new Error("Introspection result missing directive locations: ".concat(it,"."))}return new g.NZ({name:Te.name,description:Te.description,isRepeatable:Te.isRepeatable,locations:Te.locations.slice(),args:qt(Te.args)})}):[];return new d.XO({description:ae.description,query:De,mutation:Pe,subscription:Ke,types:(0,at.Z)(ce),directives:Ne,assumeValid:null==te?void 0:te.assumeValid});function Fe(Te){if(Te.kind===S.zU.LIST){var He=Te.ofType;if(!He)throw new Error("Decorated type deeper than introspection query.");return new p.p2(Fe(He))}if(Te.kind===S.zU.NON_NULL){var it=Te.ofType;if(!it)throw new Error("Decorated type deeper than introspection query.");var kt=Fe(it);return new p.bM((0,p.i_)(kt))}return Ie(Te)}function Ie(Te){var He=Te.name;if(!He)throw new Error("Unknown type reference: ".concat((0,$e.Z)(Te),"."));var it=ce[He];if(!it)throw new Error("Invalid or incomplete schema, unknown type: ".concat(He,". Ensure that a full introspection query is used in order to build a client schema."));return it}function Ve(Te){return(0,p.Z6)(Ie(Te))}function Ye(Te){return(0,p.k2)(Ie(Te))}function rt(Te){if(null===Te.interfaces&&Te.kind===S.zU.INTERFACE)return[];if(!Te.interfaces){var He=(0,$e.Z)(Te);throw new Error("Introspection result missing interfaces: ".concat(He,"."))}return Te.interfaces.map(Ye)}function Qt(Te){if(!Te.fields)throw new Error("Introspection result missing fields: ".concat((0,$e.Z)(Te),"."));return(0,mt.Z)(Te.fields,function(He){return He.name},or)}function or(Te){var He=Fe(Te.type);if(!(0,p.SZ)(He)){var it=(0,$e.Z)(He);throw new Error("Introspection must provide output type for fields, but received: ".concat(it,"."))}if(!Te.args){var kt=(0,$e.Z)(Te);throw new Error("Introspection result missing field args: ".concat(kt,"."))}return{description:Te.description,deprecationReason:Te.deprecationReason,type:He,args:qt(Te.args)}}function qt(Te){return(0,mt.Z)(Te,function(He){return He.name},Lt)}function Lt(Te){var He=Fe(Te.type);if(!(0,p.j$)(He)){var it=(0,$e.Z)(He);throw new Error("Introspection must provide input type for arguments, but received: ".concat(it,"."))}var kt=null!=Te.defaultValue?(0,yt.u)((0,e.H2)(Te.defaultValue),He):void 0;return{description:Te.description,type:He,defaultValue:kt,deprecationReason:Te.deprecationReason}}}var Tt=s(87943),dt=s(19560),Pt=s(33951);function Mt(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function ze(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Mt(Object(ae),!0).forEach(function(ce){Xt(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Mt(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}function Xt(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function jt(z,te,ae){(0,d.EO)(z),null!=te&&te.kind===w.h.DOCUMENT||(0,qe.Z)(0,"Must provide valid Document AST."),!0!==(null==ae?void 0:ae.assumeValid)&&!0!==(null==ae?void 0:ae.assumeValidSDL)&&(0,t.ED)(te,z);var ce=z.toConfig(),Ee=$t(ce,te,ae);return ce===Ee?z:new d.XO(Ee)}function $t(z,te,ae){for(var ce,Ee,xe,Ce,Ne,De=[],Pe=Object.create(null),Ke=[],Fe=[],Ie=0,Ve=te.definitions;Ie<Ve.length;Ie++){var Ye=Ve[Ie];if(Ye.kind===w.h.SCHEMA_DEFINITION)Ne=Ye;else if(Ye.kind===w.h.SCHEMA_EXTENSION)Fe.push(Ye);else if((0,v.zT)(Ye))De.push(Ye);else if((0,v.D$)(Ye)){var ut=Ye.name.value,ct=Pe[ut];Pe[ut]=ct?ct.concat([Ye]):[Ye]}else Ye.kind===w.h.DIRECTIVE_DEFINITION&&Ke.push(Ye)}if(0===Object.keys(Pe).length&&0===De.length&&0===Ke.length&&0===Fe.length&&null==Ne)return z;for(var rt=Object.create(null),ft=0,xt=z.types;ft<xt.length;ft++){var Ft=xt[ft];rt[Ft.name]=(0,S.s9)(we=Ft)||(0,T.u1)(we)?we:(0,p.KA)(we)?function(we){for(var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[],Qe=_e.specifiedByUrl,Je=0;Je<Me.length;Je++){var Ze;Qe=null!==(Ze=tr(Me[Je]))&&void 0!==Ze?Ze:Qe}return new p.n2(ze(ze({},_e),{},{specifiedByUrl:Qe,extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.lp)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.h6(ze(ze({},_e),{},{interfaces:function(){return[].concat(we.getInterfaces().map(St),cr(Me))},fields:function(){return ze(ze({},(0,dt.Z)(_e.fields,Dr)),ur(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.oT)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.oW(ze(ze({},_e),{},{interfaces:function(){return[].concat(we.getInterfaces().map(St),cr(Me))},fields:function(){return ze(ze({},(0,dt.Z)(_e.fields,Dr)),ur(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.EN)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.Gp(ze(ze({},_e),{},{types:function(){return[].concat(we.getTypes().map(St),kr(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.EM)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[we.name])&&void 0!==Ue?Ue:[];return new p.mR(ze(ze({},_e),{},{values:ze(ze({},_e.values),Lr(Me)),extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):(0,p.hL)(we)?function(we){var Ue,_e=we.toConfig(),Me=null!==(Ue=Pe[_e.name])&&void 0!==Ue?Ue:[];return new p.sR(ze(ze({},_e),{},{fields:function(){return ze(ze({},(0,dt.Z)(_e.fields,function(Je){return ze(ze({},Je),{},{type:Lt(Je.type)})})),Fr(Me))},extensionASTNodes:_e.extensionASTNodes.concat(Me)}))}(we):void(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(we))}for(var we,Rt=0;Rt<De.length;Rt++){var zt,Qt=De[Rt],or=Qt.name.value;rt[or]=null!==(zt=er[or])&&void 0!==zt?zt:gn(Qt)}var qt=ze(ze({query:z.query&&St(z.query),mutation:z.mutation&&St(z.mutation),subscription:z.subscription&&St(z.subscription)},Ne&&Mr([Ne])),Mr(Fe));return ze(ze({description:null===(ce=Ne)||void 0===ce||null===(Ee=ce.description)||void 0===Ee?void 0:Ee.value},qt),{},{types:(0,at.Z)(rt),directives:[].concat(z.directives.map(function(we){var Ue=we.toConfig();return new g.NZ(ze(ze({},Ue),{},{args:(0,dt.Z)(Ue.args,Pr)}))}),Ke.map(function(we){var Ue=we.locations.map(function(_e){return _e.value});return new g.NZ({name:we.name.value,description:gt(we,ae),locations:Ue,isRepeatable:we.repeatable,args:Nr(we.arguments),astNode:we})})),extensions:void 0,astNode:null!==(xe=Ne)&&void 0!==xe?xe:z.astNode,extensionASTNodes:z.extensionASTNodes.concat(Fe),assumeValid:null!==(Ce=null==ae?void 0:ae.assumeValid)&&void 0!==Ce&&Ce});function Lt(we){return(0,p.HG)(we)?new p.p2(Lt(we.ofType)):(0,p.zM)(we)?new p.bM(Lt(we.ofType)):St(we)}function St(we){return rt[we.name]}function Dr(we){return ze(ze({},we),{},{type:Lt(we.type),args:(0,dt.Z)(we.args,Pr)})}function Pr(we){return ze(ze({},we),{},{type:Lt(we.type)})}function Mr(we){for(var Ue={},_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].operationTypes)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze];Ue[Xe.operation]=sr(Xe.type)}return Ue}function sr(we){var Ue,_e=we.name.value,Me=null!==(Ue=er[_e])&&void 0!==Ue?Ue:rt[_e];if(void 0===Me)throw new Error('Unknown type: "'.concat(_e,'".'));return Me}function Yt(we){return we.kind===w.h.LIST_TYPE?new p.p2(Yt(we.type)):we.kind===w.h.NON_NULL_TYPE?new p.bM(Yt(we.type)):sr(we)}function ur(we){for(var Ue=Object.create(null),_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].fields)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze];Ue[Xe.name.value]={type:Yt(Xe.type),description:gt(Xe,ae),args:Nr(Xe.arguments),deprecationReason:Nt(Xe),astNode:Xe}}return Ue}function Nr(we){for(var Ue=null!=we?we:[],_e=Object.create(null),Me=0;Me<Ue.length;Me++){var Qe=Ue[Me],Je=Yt(Qe.type);_e[Qe.name.value]={type:Je,description:gt(Qe,ae),defaultValue:(0,yt.u)(Qe.defaultValue,Je),deprecationReason:Nt(Qe),astNode:Qe}}return _e}function Fr(we){for(var Ue=Object.create(null),_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].fields)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze],Jt=Yt(Xe.type);Ue[Xe.name.value]={type:Jt,description:gt(Xe,ae),defaultValue:(0,yt.u)(Xe.defaultValue,Jt),deprecationReason:Nt(Xe),astNode:Xe}}return Ue}function Lr(we){for(var Ue=Object.create(null),_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].values)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++){var Xe=Je[Ze];Ue[Xe.name.value]={description:gt(Xe,ae),deprecationReason:Nt(Xe),astNode:Xe}}return Ue}function cr(we){for(var Ue=[],_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].interfaces)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++)Ue.push(sr(Je[Ze]));return Ue}function kr(we){for(var Ue=[],_e=0;_e<we.length;_e++)for(var Me,Je=null!==(Me=we[_e].types)&&void 0!==Me?Me:[],Ze=0;Ze<Je.length;Ze++)Ue.push(sr(Je[Ze]));return Ue}function gn(we){var Ue,_e=we.name.value,Me=gt(we,ae),Qe=null!==(Ue=Pe[_e])&&void 0!==Ue?Ue:[];switch(we.kind){case w.h.OBJECT_TYPE_DEFINITION:var Je=Qe,Ze=[we].concat(Je);return new p.h6({name:_e,description:Me,interfaces:function(){return cr(Ze)},fields:function(){return ur(Ze)},astNode:we,extensionASTNodes:Je});case w.h.INTERFACE_TYPE_DEFINITION:var Xe=Qe,Jt=[we].concat(Xe);return new p.oW({name:_e,description:Me,interfaces:function(){return cr(Jt)},fields:function(){return ur(Jt)},astNode:we,extensionASTNodes:Xe});case w.h.ENUM_TYPE_DEFINITION:var Ur=Qe,En=[we].concat(Ur);return new p.mR({name:_e,description:Me,values:Lr(En),astNode:we,extensionASTNodes:Ur});case w.h.UNION_TYPE_DEFINITION:var Br=Qe,bn=[we].concat(Br);return new p.Gp({name:_e,description:Me,types:function(){return kr(bn)},astNode:we,extensionASTNodes:Br});case w.h.SCALAR_TYPE_DEFINITION:var Sn=Qe;return new p.n2({name:_e,description:Me,specifiedByUrl:tr(we),astNode:we,extensionASTNodes:Sn});case w.h.INPUT_OBJECT_TYPE_DEFINITION:var jr=Qe,An=[we].concat(jr);return new p.sR({name:_e,description:Me,fields:function(){return Fr(An)},astNode:we,extensionASTNodes:jr})}(0,P.Z)(0,"Unexpected type definition node: "+(0,$e.Z)(we))}}var er=(0,Tt.Z)(T.HS.concat(S.nL),function(z){return z.name});function Nt(z){var te=(0,R.zu)(g.fg,z);return null==te?void 0:te.reason}function tr(z){var te=(0,R.zu)(g.df,z);return null==te?void 0:te.url}function gt(z,te){if(z.description)return z.description.value;if(!0===(null==te?void 0:te.commentDescriptions)){var ae=function(z){var te=z.loc;if(te){for(var ae=[],ce=te.startToken.prev;null!=ce&&ce.kind===H.T.COMMENT&&ce.next&&ce.prev&&ce.line+1===ce.next.line&&ce.line!==ce.prev.line;){var Ee=String(ce.value);ae.push(Ee),ce=ce.prev}return ae.length>0?ae.reverse().join("\n"):void 0}}(z);if(void 0!==ae)return(0,Pt.W7)("\n"+ae)}}function Vt(z,te){null!=z&&z.kind===w.h.DOCUMENT||(0,qe.Z)(0,"Must provide valid Document AST."),!0!==(null==te?void 0:te.assumeValid)&&!0!==(null==te?void 0:te.assumeValidSDL)&&(0,t.zo)(z);var ce=$t({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},z,te);if(null==ce.astNode)for(var Ee=0,xe=ce.types;Ee<xe.length;Ee++){var Ce=xe[Ee];switch(Ce.name){case"Query":ce.query=Ce;break;case"Mutation":ce.mutation=Ce;break;case"Subscription":ce.subscription=Ce}}for(var De=ce.directives,Pe=function(Fe){var Ie=g.V4[Fe];De.every(function(Ve){return Ve.name!==Ie.name})&&De.push(Ie)},Ke=0;Ke<g.V4.length;Ke++)Pe(Ke);return new d.XO(ce)}function rr(z,te){return Vt((0,e.Qc)(z,{noLocation:null==te?void 0:te.noLocation,allowLegacySDLEmptyFields:null==te?void 0:te.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==te?void 0:te.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==te?void 0:te.experimentalFragmentVariables}),{commentDescriptions:null==te?void 0:te.commentDescriptions,assumeValidSDL:null==te?void 0:te.assumeValidSDL,assumeValid:null==te?void 0:te.assumeValid})}var Wt=s(22307);function Ut(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function tt(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Ut(Object(ae),!0).forEach(function(ce){lr(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Ut(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}function lr(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}function hr(z){var te=z.toConfig(),ae=(0,mt.Z)(fe(te.types),function(Ie){return Ie.name},function(Ie){if((0,p.KA)(Ie)||(0,S.s9)(Ie))return Ie;if((0,p.lp)(Ie)){var Ve=Ie.toConfig();return new p.h6(tt(tt({},Ve),{},{interfaces:function(){return Ne(Ve.interfaces)},fields:function(){return Pe(Ve.fields)}}))}if((0,p.oT)(Ie)){var Ye=Ie.toConfig();return new p.oW(tt(tt({},Ye),{},{interfaces:function(){return Ne(Ye.interfaces)},fields:function(){return Pe(Ye.fields)}}))}if((0,p.EN)(Ie)){var ut=Ie.toConfig();return new p.Gp(tt(tt({},ut),{},{types:function(){return Ne(ut.types)}}))}if((0,p.EM)(Ie)){var ct=Ie.toConfig();return new p.mR(tt(tt({},ct),{},{values:$(ct.values)}))}if((0,p.hL)(Ie)){var rt=Ie.toConfig();return new p.sR(tt(tt({},rt),{},{fields:function(){return function(Ie){return $(Ie,function(Ve){return tt(tt({},Ve),{},{type:ce(Ve.type)})})}(rt.fields)}}))}(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(Ie))});return new d.XO(tt(tt({},te),{},{types:(0,at.Z)(ae),directives:fe(te.directives).map(function(Ie){var Ve=Ie.toConfig();return new g.NZ(tt(tt({},Ve),{},{locations:pe(Ve.locations,function(Ye){return Ye}),args:De(Ve.args)}))}),query:xe(te.query),mutation:xe(te.mutation),subscription:xe(te.subscription)}));function ce(Ie){return(0,p.HG)(Ie)?new p.p2(ce(Ie.ofType)):(0,p.zM)(Ie)?new p.bM(ce(Ie.ofType)):Ee(Ie)}function Ee(Ie){return ae[Ie.name]}function xe(Ie){return Ie&&Ee(Ie)}function De(Ie){return $(Ie,function(Ve){return tt(tt({},Ve),{},{type:ce(Ve.type)})})}function Pe(Ie){return $(Ie,function(Ve){return tt(tt({},Ve),{},{type:ce(Ve.type),args:De(Ve.args)})})}function Ne(Ie){return fe(Ie).map(Ee)}}function $(z,te){for(var ae=Object.create(null),ce=pe(Object.keys(z),function(De){return De}),Ee=0;Ee<ce.length;Ee++){var xe=ce[Ee],Ce=z[xe];ae[xe]=te?te(Ce):Ce}return ae}function fe(z){return pe(z,function(te){return te.name})}function pe(z,te){return z.slice().sort(function(ae,ce){var Ee=te(ae),xe=te(ce);return(0,Wt.Z)(Ee,xe)})}var Ae=s(33525);function Re(z,te){return je(z,function(ae){return!(0,g.xg)(ae)},Ge,te)}function ke(z,te){return je(z,g.xg,S.s9,te)}function Ge(z){return!(0,T.u1)(z)&&!(0,S.s9)(z)}function je(z,te,ae,ce){var Ee=z.getDirectives().filter(te),xe=(0,at.Z)(z.getTypeMap()).filter(ae);return[ot(z)].concat(Ee.map(function(Ce){return function(z,te){return vt(te,z)+"directive @"+z.name+Er(te,z.args)+(z.isRepeatable?" repeatable":"")+" on "+z.locations.join(" | ")}(Ce,ce)}),xe.map(function(Ce){return nr(Ce,ce)})).filter(Boolean).join("\n\n")+"\n"}function ot(z){if(null!=z.description||!function(z){var te=z.getQueryType();if(te&&"Query"!==te.name)return!1;var ae=z.getMutationType();if(ae&&"Mutation"!==ae.name)return!1;var ce=z.getSubscriptionType();return!(ce&&"Subscription"!==ce.name)}(z)){var te=[],ae=z.getQueryType();ae&&te.push(" query: ".concat(ae.name));var ce=z.getMutationType();ce&&te.push(" mutation: ".concat(ce.name));var Ee=z.getSubscriptionType();return Ee&&te.push(" subscription: ".concat(Ee.name)),vt({},z)+"schema {\n".concat(te.join("\n"),"\n}")}}function nr(z,te){return(0,p.KA)(z)?function(z,te){return vt(te,z)+"scalar ".concat(z.name)+function(z){if(null==z.specifiedByUrl)return"";var ae=(0,Ae.J)(z.specifiedByUrl,T.kH);return ae||(0,P.Z)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,B.print)(ae)+")"}(z)}(z,te):(0,p.lp)(z)?function(z,te){return vt(te,z)+"type ".concat(z.name)+Kt(z)+gr(te,z)}(z,te):(0,p.oT)(z)?function(z,te){return vt(te,z)+"interface ".concat(z.name)+Kt(z)+gr(te,z)}(z,te):(0,p.EN)(z)?function(z,te){var ae=z.getTypes(),ce=ae.length?" = "+ae.join(" | "):"";return vt(te,z)+"union "+z.name+ce}(z,te):(0,p.EM)(z)?function(z,te){var ae=z.getValues().map(function(ce,Ee){return vt(te,ce," ",!Ee)+" "+ce.name+mr(ce.deprecationReason)});return vt(te,z)+"enum ".concat(z.name)+dr(ae)}(z,te):(0,p.hL)(z)?function(z,te){var ae=(0,at.Z)(z.getFields()).map(function(ce,Ee){return vt(te,ce," ",!Ee)+" "+vr(ce)});return vt(te,z)+"input ".concat(z.name)+dr(ae)}(z,te):void(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(z))}function Kt(z){var te=z.getInterfaces();return te.length?" implements "+te.map(function(ae){return ae.name}).join(" & "):""}function gr(z,te){return dr((0,at.Z)(te.getFields()).map(function(ce,Ee){return vt(z,ce," ",!Ee)+" "+ce.name+Er(z,ce.args," ")+": "+String(ce.type)+mr(ce.deprecationReason)}))}function dr(z){return 0!==z.length?" {\n"+z.join("\n")+"\n}":""}function Er(z,te){var ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===te.length?"":te.every(function(ce){return!ce.description})?"("+te.map(vr).join(", ")+")":"(\n"+te.map(function(ce,Ee){return vt(z,ce," "+ae,!Ee)+" "+ae+vr(ce)}).join("\n")+"\n"+ae+")"}function vr(z){var te=(0,Ae.J)(z.defaultValue,z.type),ae=z.name+": "+String(z.type);return te&&(ae+=" = ".concat((0,B.print)(te))),ae+mr(z.deprecationReason)}function mr(z){if(null==z)return"";var te=(0,Ae.J)(z,T.kH);return te&&z!==g.SY?" @deprecated(reason: "+(0,B.print)(te)+")":" @deprecated"}function vt(z,te){var ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",ce=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],Ee=te.description;if(null==Ee)return"";if(!0===(null==z?void 0:z.commentDescriptions))return zr(Ee,ae,ce);var xe=Ee.length>70,Ce=(0,Pt.LZ)(Ee,"",xe),De=ae&&!ce?"\n"+ae:ae;return De+Ce.replace(/\n/g,"\n"+ae)+"\n"}function zr(z,te,ae){return(te&&!ae?"\n":"")+z.split("\n").map(function(xe){return te+(""!==xe?"# "+xe:"#")}).join("\n")+"\n"}function Qr(z){for(var te=[],ae=0;ae<z.length;ae++)te=te.concat(z[ae].definitions);return{kind:"Document",definitions:te}}function qr(z){for(var te=[],ae=Object.create(null),ce=0,Ee=z.definitions;ce<Ee.length;ce++){var xe=Ee[ce];switch(xe.kind){case w.h.OPERATION_DEFINITION:te.push(xe);break;case w.h.FRAGMENT_DEFINITION:ae[xe.name.value]=Sr(xe.selectionSet)}}for(var Ce=Object.create(null),De=function(Ne){for(var Fe=te[Ne],Ie=new Set,Ve=0,Ye=Sr(Fe.selectionSet);Ve<Ye.length;Ve++)br(Ie,ae,Ye[Ve]);Ce[Fe.name?Fe.name.value:""]={kind:w.h.DOCUMENT,definitions:z.definitions.filter(function(rt){return rt===Fe||rt.kind===w.h.FRAGMENT_DEFINITION&&Ie.has(rt.name.value)})}},Pe=0;Pe<te.length;Pe++)De(Pe);return Ce}function br(z,te,ae){if(!z.has(ae)){z.add(ae);var ce=te[ae];if(void 0!==ce)for(var Ee=0;Ee<ce.length;Ee++)br(z,te,ce[Ee])}}function Sr(z){var te=[];return(0,m.Vn)(z,{FragmentSpread:function(ce){te.push(ce.name.value)}}),te}function Yr(z){for(var te=(0,A.T)(z)?z:new A.H(z),ae=te.body,ce=new W.h(te),Ee="",xe=!1;ce.advance().kind!==H.T.EOF;){var Ce=ce.token,De=Ce.kind,Pe=!(0,W.u)(Ce.kind);xe&&(Pe||Ce.kind===H.T.SPREAD)&&(Ee+=" ");var Ke=ae.slice(Ce.start,Ce.end);Ee+=De===H.T.BLOCK_STRING?Jr(Ke):Ke,xe=Pe}return Ee}function Jr(z){var te=z.slice(3,-3),ae=(0,Pt.W7)(te);(0,Pt.Z2)(ae)>0&&(ae="\n"+ae);var ce=ae[ae.length-1];return('"'===ce&&'\\"""'!==ae.slice(-4)||"\\"===ce)&&(ae+="\n"),'"""'+ae+'"""'}function Ar(z,te){var ae=Object.keys(z);if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(z);te&&(ce=ce.filter(function(Ee){return Object.getOwnPropertyDescriptor(z,Ee).enumerable})),ae.push.apply(ae,ce)}return ae}function Or(z){for(var te=1;te<arguments.length;te++){var ae=null!=arguments[te]?arguments[te]:{};te%2?Ar(Object(ae),!0).forEach(function(ce){Zr(z,ce,ae[ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(ae)):Ar(Object(ae)).forEach(function(ce){Object.defineProperty(z,ce,Object.getOwnPropertyDescriptor(ae,ce))})}return z}function Zr(z,te,ae){return te in z?Object.defineProperty(z,te,{value:ae,enumerable:!0,configurable:!0,writable:!0}):z[te]=ae,z}var nt=Object.freeze({TYPE_REMOVED:"TYPE_REMOVED",TYPE_CHANGED_KIND:"TYPE_CHANGED_KIND",TYPE_REMOVED_FROM_UNION:"TYPE_REMOVED_FROM_UNION",VALUE_REMOVED_FROM_ENUM:"VALUE_REMOVED_FROM_ENUM",REQUIRED_INPUT_FIELD_ADDED:"REQUIRED_INPUT_FIELD_ADDED",IMPLEMENTED_INTERFACE_REMOVED:"IMPLEMENTED_INTERFACE_REMOVED",FIELD_REMOVED:"FIELD_REMOVED",FIELD_CHANGED_KIND:"FIELD_CHANGED_KIND",REQUIRED_ARG_ADDED:"REQUIRED_ARG_ADDED",ARG_REMOVED:"ARG_REMOVED",ARG_CHANGED_KIND:"ARG_CHANGED_KIND",DIRECTIVE_REMOVED:"DIRECTIVE_REMOVED",DIRECTIVE_ARG_REMOVED:"DIRECTIVE_ARG_REMOVED",REQUIRED_DIRECTIVE_ARG_ADDED:"REQUIRED_DIRECTIVE_ARG_ADDED",DIRECTIVE_REPEATABLE_REMOVED:"DIRECTIVE_REPEATABLE_REMOVED",DIRECTIVE_LOCATION_REMOVED:"DIRECTIVE_LOCATION_REMOVED"}),Et=Object.freeze({VALUE_ADDED_TO_ENUM:"VALUE_ADDED_TO_ENUM",TYPE_ADDED_TO_UNION:"TYPE_ADDED_TO_UNION",OPTIONAL_INPUT_FIELD_ADDED:"OPTIONAL_INPUT_FIELD_ADDED",OPTIONAL_ARG_ADDED:"OPTIONAL_ARG_ADDED",IMPLEMENTED_INTERFACE_ADDED:"IMPLEMENTED_INTERFACE_ADDED",ARG_DEFAULT_VALUE_CHANGE:"ARG_DEFAULT_VALUE_CHANGE"});function Xr(z,te){return wr(z,te).filter(function(ce){return ce.type in nt})}function $r(z,te){return wr(z,te).filter(function(ce){return ce.type in Et})}function wr(z,te){return[].concat(function(z,te){for(var ae=[],ce=bt((0,at.Z)(z.getTypeMap()),(0,at.Z)(te.getTypeMap())),Ee=0,xe=ce.removed;Ee<xe.length;Ee++){var Ce=xe[Ee];ae.push({type:nt.TYPE_REMOVED,description:(0,T.u1)(Ce)?"Standard scalar ".concat(Ce.name," was removed because it is not referenced anymore."):"".concat(Ce.name," was removed.")})}for(var De=0,Pe=ce.persisted;De<Pe.length;De++){var Ke=Pe[De],Ne=Ke[0],Fe=Ke[1];(0,p.EM)(Ne)&&(0,p.EM)(Fe)?ae.push.apply(ae,an(Ne,Fe)):(0,p.EN)(Ne)&&(0,p.EN)(Fe)?ae.push.apply(ae,nn(Ne,Fe)):(0,p.hL)(Ne)&&(0,p.hL)(Fe)?ae.push.apply(ae,rn(Ne,Fe)):(0,p.lp)(Ne)&&(0,p.lp)(Fe)||(0,p.oT)(Ne)&&(0,p.oT)(Fe)?ae.push.apply(ae,xr(Ne,Fe).concat(Tr(Ne,Fe))):Ne.constructor!==Fe.constructor&&ae.push({type:nt.TYPE_CHANGED_KIND,description:"".concat(Ne.name," changed from ")+"".concat(Rr(Ne)," to ").concat(Rr(Fe),".")})}return ae}(z,te),function(z,te){for(var ae=[],ce=bt(z.getDirectives(),te.getDirectives()),Ee=0,xe=ce.removed;Ee<xe.length;Ee++)ae.push({type:nt.DIRECTIVE_REMOVED,description:"".concat(xe[Ee].name," was removed.")});for(var De=0,Pe=ce.persisted;De<Pe.length;De++){for(var Ke=Pe[De],Ne=Ke[0],Fe=Ke[1],Ie=bt(Ne.args,Fe.args),Ve=0,Ye=Ie.added;Ve<Ye.length;Ve++){var ut=Ye[Ve];(0,p.dK)(ut)&&ae.push({type:nt.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(ut.name," on directive ").concat(Ne.name," was added.")})}for(var ct=0,rt=Ie.removed;ct<rt.length;ct++)ae.push({type:nt.DIRECTIVE_ARG_REMOVED,description:"".concat(rt[ct].name," was removed from ").concat(Ne.name,".")});Ne.isRepeatable&&!Fe.isRepeatable&&ae.push({type:nt.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(Ne.name,".")});for(var xt=0,Ft=Ne.locations;xt<Ft.length;xt++){var Rt=Ft[xt];-1===Fe.locations.indexOf(Rt)&&ae.push({type:nt.DIRECTIVE_LOCATION_REMOVED,description:"".concat(Rt," was removed from ").concat(Ne.name,".")})}}return ae}(z,te))}function rn(z,te){for(var ae=[],ce=bt((0,at.Z)(z.getFields()),(0,at.Z)(te.getFields())),Ee=0,xe=ce.added;Ee<xe.length;Ee++){var Ce=xe[Ee];(0,p.Wd)(Ce)?ae.push({type:nt.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(Ce.name," on input type ").concat(z.name," was added.")}):ae.push({type:Et.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(Ce.name," on input type ").concat(z.name," was added.")})}for(var De=0,Pe=ce.removed;De<Pe.length;De++){var Ke=Pe[De];ae.push({type:nt.FIELD_REMOVED,description:"".concat(z.name,".").concat(Ke.name," was removed.")})}for(var Ne=0,Fe=ce.persisted;Ne<Fe.length;Ne++){var Ie=Fe[Ne],Ve=Ie[0],Ye=Ie[1];Ht(Ve.type,Ye.type)||ae.push({type:nt.FIELD_CHANGED_KIND,description:"".concat(z.name,".").concat(Ve.name," changed type from ")+"".concat(String(Ve.type)," to ").concat(String(Ye.type),".")})}return ae}function nn(z,te){for(var ae=[],ce=bt(z.getTypes(),te.getTypes()),Ee=0,xe=ce.added;Ee<xe.length;Ee++)ae.push({type:Et.TYPE_ADDED_TO_UNION,description:"".concat(xe[Ee].name," was added to union type ").concat(z.name,".")});for(var De=0,Pe=ce.removed;De<Pe.length;De++)ae.push({type:nt.TYPE_REMOVED_FROM_UNION,description:"".concat(Pe[De].name," was removed from union type ").concat(z.name,".")});return ae}function an(z,te){for(var ae=[],ce=bt(z.getValues(),te.getValues()),Ee=0,xe=ce.added;Ee<xe.length;Ee++)ae.push({type:Et.VALUE_ADDED_TO_ENUM,description:"".concat(xe[Ee].name," was added to enum type ").concat(z.name,".")});for(var De=0,Pe=ce.removed;De<Pe.length;De++)ae.push({type:nt.VALUE_REMOVED_FROM_ENUM,description:"".concat(Pe[De].name," was removed from enum type ").concat(z.name,".")});return ae}function Tr(z,te){for(var ae=[],ce=bt(z.getInterfaces(),te.getInterfaces()),Ee=0,xe=ce.added;Ee<xe.length;Ee++)ae.push({type:Et.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(xe[Ee].name," added to interfaces implemented by ").concat(z.name,".")});for(var De=0,Pe=ce.removed;De<Pe.length;De++){var Ke=Pe[De];ae.push({type:nt.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(z.name," no longer implements interface ").concat(Ke.name,".")})}return ae}function xr(z,te){for(var ae=[],ce=bt((0,at.Z)(z.getFields()),(0,at.Z)(te.getFields())),Ee=0,xe=ce.removed;Ee<xe.length;Ee++){var Ce=xe[Ee];ae.push({type:nt.FIELD_REMOVED,description:"".concat(z.name,".").concat(Ce.name," was removed.")})}for(var De=0,Pe=ce.persisted;De<Pe.length;De++){var Ke=Pe[De],Ne=Ke[0],Fe=Ke[1];ae.push.apply(ae,on(z,Ne,Fe)),Gt(Ne.type,Fe.type)||ae.push({type:nt.FIELD_CHANGED_KIND,description:"".concat(z.name,".").concat(Ne.name," changed type from ")+"".concat(String(Ne.type)," to ").concat(String(Fe.type),".")})}return ae}function on(z,te,ae){for(var ce=[],Ee=bt(te.args,ae.args),xe=0,Ce=Ee.removed;xe<Ce.length;xe++){var De=Ce[xe];ce.push({type:nt.ARG_REMOVED,description:"".concat(z.name,".").concat(te.name," arg ").concat(De.name," was removed.")})}for(var Pe=0,Ke=Ee.persisted;Pe<Ke.length;Pe++){var Ne=Ke[Pe],Fe=Ne[0],Ie=Ne[1];if(Ht(Fe.type,Ie.type)){if(void 0!==Fe.defaultValue)if(void 0===Ie.defaultValue)ce.push({type:Et.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(z.name,".").concat(te.name," arg ").concat(Fe.name," defaultValue was removed.")});else{var Ye=Cr(Fe.defaultValue,Fe.type),ut=Cr(Ie.defaultValue,Ie.type);Ye!==ut&&ce.push({type:Et.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(z.name,".").concat(te.name," arg ").concat(Fe.name," has changed defaultValue from ").concat(Ye," to ").concat(ut,".")})}}else ce.push({type:nt.ARG_CHANGED_KIND,description:"".concat(z.name,".").concat(te.name," arg ").concat(Fe.name," has changed type from ")+"".concat(String(Fe.type)," to ").concat(String(Ie.type),".")})}for(var ct=0,rt=Ee.added;ct<rt.length;ct++){var ft=rt[ct];(0,p.dK)(ft)?ce.push({type:nt.REQUIRED_ARG_ADDED,description:"A required arg ".concat(ft.name," on ").concat(z.name,".").concat(te.name," was added.")}):ce.push({type:Et.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(ft.name," on ").concat(z.name,".").concat(te.name," was added.")})}return ce}function Gt(z,te){return(0,p.HG)(z)?(0,p.HG)(te)&&Gt(z.ofType,te.ofType)||(0,p.zM)(te)&&Gt(z,te.ofType):(0,p.zM)(z)?(0,p.zM)(te)&&Gt(z.ofType,te.ofType):(0,p.Zs)(te)&&z.name===te.name||(0,p.zM)(te)&&Gt(z,te.ofType)}function Ht(z,te){return(0,p.HG)(z)?(0,p.HG)(te)&&Ht(z.ofType,te.ofType):(0,p.zM)(z)?(0,p.zM)(te)&&Ht(z.ofType,te.ofType)||!(0,p.zM)(te)&&Ht(z.ofType,te):(0,p.Zs)(te)&&z.name===te.name}function Rr(z){return(0,p.KA)(z)?"a Scalar type":(0,p.lp)(z)?"an Object type":(0,p.oT)(z)?"an Interface type":(0,p.EN)(z)?"a Union type":(0,p.EM)(z)?"an Enum type":(0,p.hL)(z)?"an Input type":void(0,P.Z)(0,"Unexpected type: "+(0,$e.Z)(z))}function Cr(z,te){var ae=(0,Ae.J)(z,te);null!=ae||(0,P.Z)(0);var ce=(0,m.Vn)(ae,{ObjectValue:function(xe){var Ce=[].concat(xe.fields);return Ce.sort(function(De,Pe){return(0,Wt.Z)(De.name.value,Pe.name.value)}),Or(Or({},xe),{},{fields:Ce})}});return(0,B.print)(ce)}function bt(z,te){for(var ae=[],ce=[],Ee=[],xe=(0,Tt.Z)(z,function(Ie){return Ie.name}),Ce=(0,Tt.Z)(te,function(Ie){return Ie.name}),De=0;De<z.length;De++){var Pe=z[De],Ke=Ce[Pe.name];void 0===Ke?ce.push(Pe):Ee.push([Pe,Ke])}for(var Ne=0;Ne<te.length;Ne++){var Fe=te[Ne];void 0===xe[Fe.name]&&ae.push(Fe)}return{added:ae,persisted:Ee,removed:ce}}function sn(z,te){return(0,t.Gu)(z,te,[Z])}var un=s(69251),cn=s(95769),fn=s(53854),ln=s(47582),Ir=s(12940),hn=s(15754),yr=s(95880),_r=s(47557)},44226:J=>{"use strict";J.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"}}')},46933:J=>{"use strict";J.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":{}}}}')},13428:J=>{"use strict";J.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},65359:J=>{"use strict";J.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"},"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"}}')},42369:J=>{"use strict";J.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":{}}}}}')},14819:J=>{"use strict";J.exports={o:{}}},50261:J=>{"use strict";J.exports=JSON.parse('{"rules":{"*/*":{"endpoint":"{service}.{region}.amazonaws.com"},"cn-*/*":{"endpoint":"{service}.{region}.amazonaws.com.cn"},"us-iso-*/*":{"endpoint":"{service}.{region}.c2s.ic.gov"},"us-isob-*/*":{"endpoint":"{service}.{region}.sc2s.sgov.gov"},"*/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","*/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"}},"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"}}}')}}]);