altair-static 4.0.10

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 (113) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1 -0
  4. package/build/dist/108-es2018.js +1 -0
  5. package/build/dist/108-es5.js +1 -0
  6. package/build/dist/283-es2018.js +1 -0
  7. package/build/dist/283-es5.js +1 -0
  8. package/build/dist/379-es2018.js +1 -0
  9. package/build/dist/379-es5.js +1 -0
  10. package/build/dist/3rdpartylicenses.txt +4095 -0
  11. package/build/dist/527-es2018.js +1 -0
  12. package/build/dist/527-es5.js +1 -0
  13. package/build/dist/604-es2018.js +1 -0
  14. package/build/dist/604-es5.js +1 -0
  15. package/build/dist/709-es2018.js +1 -0
  16. package/build/dist/709-es5.js +1 -0
  17. package/build/dist/747-es2018.js +1 -0
  18. package/build/dist/747-es5.js +1 -0
  19. package/build/dist/773-es2018.js +1 -0
  20. package/build/dist/773-es5.js +1 -0
  21. package/build/dist/790-es2018.js +1 -0
  22. package/build/dist/790-es5.js +1 -0
  23. package/build/dist/794-es2018.js +1 -0
  24. package/build/dist/794-es5.js +1 -0
  25. package/build/dist/866-es2018.js +1 -0
  26. package/build/dist/866-es5.js +1 -0
  27. package/build/dist/873-es2018.js +1 -0
  28. package/build/dist/873-es5.js +1 -0
  29. package/build/dist/934-es2018.js +1 -0
  30. package/build/dist/934-es5.js +1 -0
  31. package/build/dist/assets/i18n/README.md +1 -0
  32. package/build/dist/assets/i18n/ach-UG.json +155 -0
  33. package/build/dist/assets/i18n/ach.json +55 -0
  34. package/build/dist/assets/i18n/af-ZA.json +122 -0
  35. package/build/dist/assets/i18n/ar-SA.json +122 -0
  36. package/build/dist/assets/i18n/ca-ES.json +122 -0
  37. package/build/dist/assets/i18n/cn.json +64 -0
  38. package/build/dist/assets/i18n/cs-CZ.json +155 -0
  39. package/build/dist/assets/i18n/da-DK.json +155 -0
  40. package/build/dist/assets/i18n/de-DE.json +155 -0
  41. package/build/dist/assets/i18n/default.json +177 -0
  42. package/build/dist/assets/i18n/el-GR.json +122 -0
  43. package/build/dist/assets/i18n/en-US.json +155 -0
  44. package/build/dist/assets/i18n/en.json +75 -0
  45. package/build/dist/assets/i18n/es-ES.json +155 -0
  46. package/build/dist/assets/i18n/es.json +57 -0
  47. package/build/dist/assets/i18n/fi-FI.json +155 -0
  48. package/build/dist/assets/i18n/fr-FR.json +155 -0
  49. package/build/dist/assets/i18n/fr.json +57 -0
  50. package/build/dist/assets/i18n/he-IL.json +122 -0
  51. package/build/dist/assets/i18n/hu-HU.json +155 -0
  52. package/build/dist/assets/i18n/it-IT.json +155 -0
  53. package/build/dist/assets/i18n/ja-JP.json +155 -0
  54. package/build/dist/assets/i18n/ko-KR.json +155 -0
  55. package/build/dist/assets/i18n/nl-NL.json +155 -0
  56. package/build/dist/assets/i18n/no-NO.json +155 -0
  57. package/build/dist/assets/i18n/pl-PL.json +155 -0
  58. package/build/dist/assets/i18n/pt-BR.json +155 -0
  59. package/build/dist/assets/i18n/pt-PT.json +155 -0
  60. package/build/dist/assets/i18n/ro-RO.json +155 -0
  61. package/build/dist/assets/i18n/ru-RU.json +155 -0
  62. package/build/dist/assets/i18n/sr-SP.json +155 -0
  63. package/build/dist/assets/i18n/sv-SE.json +155 -0
  64. package/build/dist/assets/i18n/tr-TR.json +155 -0
  65. package/build/dist/assets/i18n/uk-UA.json +155 -0
  66. package/build/dist/assets/i18n/vi-VN.json +155 -0
  67. package/build/dist/assets/i18n/zh-CN.json +155 -0
  68. package/build/dist/assets/i18n/zh-TW.json +155 -0
  69. package/build/dist/assets/img/altair_logo.png +0 -0
  70. package/build/dist/assets/img/altair_logo_128.png +0 -0
  71. package/build/dist/assets/img/altair_logo_512.png +0 -0
  72. package/build/dist/assets/img/logo.png +0 -0
  73. package/build/dist/assets/img/logo.svg +31 -0
  74. package/build/dist/assets/img/logo_350.svg +28 -0
  75. package/build/dist/assets/img/play.svg +19 -0
  76. package/build/dist/favicon.ico +0 -0
  77. package/build/dist/index.html +40 -0
  78. package/build/dist/jetbrains-mono-all-400-normal.woff +0 -0
  79. package/build/dist/jetbrains-mono-cyrillic-400-normal.woff2 +0 -0
  80. package/build/dist/jetbrains-mono-cyrillic-ext-400-normal.woff2 +0 -0
  81. package/build/dist/jetbrains-mono-greek-400-normal.woff2 +0 -0
  82. package/build/dist/jetbrains-mono-latin-400-normal.woff2 +0 -0
  83. package/build/dist/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  84. package/build/dist/jetbrains-mono-vietnamese-400-normal.woff2 +0 -0
  85. package/build/dist/main-es2018.js +1 -0
  86. package/build/dist/main-es5.js +1 -0
  87. package/build/dist/polyfills-es2018.js +1 -0
  88. package/build/dist/polyfills-es5.js +1 -0
  89. package/build/dist/runtime-es2018.js +1 -0
  90. package/build/dist/runtime-es5.js +1 -0
  91. package/build/dist/styles.css +2 -0
  92. package/build/index.d.ts +25 -0
  93. package/build/index.js +74 -0
  94. package/build/index.js.map +1 -0
  95. package/build/index.test.d.ts +1 -0
  96. package/build/index.test.js +46 -0
  97. package/build/index.test.js.map +1 -0
  98. package/build/utils/get-altair-html.d.ts +1 -0
  99. package/build/utils/get-altair-html.js +10 -0
  100. package/build/utils/get-altair-html.js.map +1 -0
  101. package/build/utils/get-dist.d.ts +4 -0
  102. package/build/utils/get-dist.js +9 -0
  103. package/build/utils/get-dist.js.map +1 -0
  104. package/jest.config.js +12 -0
  105. package/package.json +47 -0
  106. package/scripts/prepare_dist.js +77 -0
  107. package/src/__snapshots__/index.test.ts.snap +66 -0
  108. package/src/index.html +40 -0
  109. package/src/index.test.ts +56 -0
  110. package/src/index.ts +84 -0
  111. package/src/utils/get-altair-html.ts +7 -0
  112. package/src/utils/get-dist.ts +6 -0
  113. package/tsconfig.json +19 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunkaltair_app=self.webpackChunkaltair_app||[]).push([[794],{5794:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AppSyncSubscriptionProvider=void 0;var o=r(71251),s=r(50591),a=r(11984),u=r(37490),c=r(52247),l=r(17450),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.execute=function(e){var t=this,r=this.connectionParams.aws_appsync_graphqlEndpoint,n=this.connectionParams.aws_appsync_region,i={type:this.connectionParams.aws_appsync_authenticationType,apiKey:this.connectionParams.aws_appsync_apiKey,jwtToken:this.connectionParams.aws_appsync_jwtToken},o=c.ApolloLink.from([a.createAuthLink({url:r,region:n,auth:i}),u.createSubscriptionHandshakeLink({url:r,region:n,auth:i})]),f=new c.ApolloClient({link:o,cache:new c.InMemoryCache}).subscribe({query:l.parse(e.query),variables:e.variables});return new s.Observable(function(e){t.subscription=f.subscribe({next:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next.apply(e,t)},error:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.error.apply(e,t)},complete:function(){return e.complete()}})})},t.prototype.close=function(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()},t}(o.SubscriptionProvider);t.AppSyncSubscriptionProvider=f},17629:function(e,t,r){"use strict";r.d(t,{R:function(){return o}});var n=r(6462),i=r(50216),o=function(){function e(){this.getFragmentDoc=(0,n.re)(i.Yk)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,returnPartialData:e.returnPartialData,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}()},43015:function(e,t,r){"use strict";var n;r.d(t,{C:function(){return n}}),n||(n={})},73860:function(e,t,r){"use strict";r.d(t,{y:function(){return n}});var n=function(e,t,r,n,i){this.message=e,this.path=t,this.query=r,this.clientOnly=n,this.variables=i}},3916:function(e,t,r){"use strict";r.d(t,{RI:function(){return s},$O:function(){return a},E_:function(){return u},RC:function(){return c},j:function(){return l},ig:function(){return f}});var n=r(30534),i=r(17334),o=r(2456),s=Object.prototype.hasOwnProperty,a=/^[_a-z][_0-9a-z]*/i;function u(e){var t=e.match(a);return t?t[0]:e}function c(e,t,r){return!(!t||"object"!=typeof t)&&(Array.isArray(t)?t.every(function(t){return c(e,t,r)}):e.selections.every(function(e){if((0,n.My)(e)&&(0,i.LZ)(e,r)){var o=(0,n.u2)(e);return s.call(t,o)&&(!e.selectionSet||c(e.selectionSet,t[o],r))}return!0}))}function l(e){return null!==e&&"object"==typeof e&&!(0,n.Yk)(e)&&!Array.isArray(e)}function f(){return new o.w0}},41695:function(e,t,r){"use strict";r.d(t,{h:function(){return q}});var n,i,o=r(48399),s=r(6462),a=r(17629),u=r(73860),c=r(30534),l=r(52107),f=r(70977),p=r(83368),h=r(50216),d=r(17334),y=r(2456),v=r(38546),m=r(73005),g=r(3916),b=Object.create(null),w=function(){return b},E=Object.create(null),S=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,c.Yk)(e)?r.get(e.__ref,t):e&&e[t]},this.canRead=function(e){return(0,c.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,c.kQ)(e);if((0,c.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,c.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),g.RI.call(this.data,e)){var r=this.data[e];if(r&&g.RI.call(r,t))return r[t]}return"__typename"===t&&g.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof A?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),g.RI.call(this.data,e)?this.data[e]:this instanceof A?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r=this,n=this.lookup(e),i=new y.w0(T).merge(n,t);if(this.data[e]=i,i!==n&&(delete this.refs[e],this.group.caching)){var o=Object.create(null);n||(o.__exists=1),Object.keys(t).forEach(function(e){if(!n||n[e]!==i[e]){o[e]=1;var t=(0,g.E_)(e);t!==e&&!r.policies.hasKeyArgs(i.__typename,t)&&(o[t]=1),void 0===i[e]&&!(r instanceof A)&&delete i[e]}}),Object.keys(o).forEach(function(t){return r.group.dirty(e,t)})}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),s=!1,a=!0,u={DELETE:b,INVALIDATE:E,isReference:c.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,c.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(c){var l=(0,g.E_)(c),f=n[c];if(void 0!==f){var p="function"==typeof t?t:t[c]||t[l];if(p){var h=p===w?b:p(f,(0,o.pi)((0,o.pi)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));h===E?r.group.dirty(e,c):(h===b&&(h=void 0),h!==f&&(i[c]=h,s=!0,f=h))}void 0!==f&&(a=!1)}}),s)return this.merge(e,i),a&&(this instanceof A?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=w,n):w)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(g.RI.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof A&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){g.RI.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&g.RI.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof A?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){g.RI.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof A;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!g.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=new Set([this.data[e]]),n=function(e){return null!==e&&"object"==typeof e};r.forEach(function(e){(0,c.Yk)(e)?t[e.__ref]=!0:n(e)&&Object.values(e).filter(n).forEach(r.add,r)})}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.group.keyMaker.lookupArray(e)},e}(),_=function(){function e(e){this.caching=e,this.d=null,this.keyMaker=new s.Gl(m.m),this.d=e?(0,s.dP)():null}return e.prototype.depend=function(e,t){if(this.d){this.d(O(e,t));var r=(0,g.E_)(t);r!==t&&this.d(O(e,r))}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(O(e,t))},e}();function O(e,t){return t+"#"+e}i=function(e){function t(t){var r=t.resultCaching,n=void 0===r||r,i=t.seed,o=e.call(this,t.policies,new _(n))||this;return o.storageTrie=new s.Gl(m.m),o.sharedLayerGroup=new _(n),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return new A(e,this,t,this.sharedLayerGroup)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=S||(S={})),n.Root=i;var A=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){t.data[e]!==r.lookup(e)&&t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return g.RI.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(S);function T(e,t,r){var n=e[r],i=t[r];return(0,v.D)(n,i)?n:i}function R(e){return!!(e instanceof S&&e.group.caching)}function I(e,t){return new u.y(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var k=function(){function e(e){var t=this;this.config=e,this.executeSelectionSet=(0,s.re)(function(e){return t.execSelectionSetImpl(e)},{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,r){if(R(r.store))return r.store.makeCacheKey(e,(0,c.Yk)(t)?t.__ref:t,r.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=(0,s.re)(function(e){return t.execSubSelectedArrayImpl(e)},{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(R(n.store))return n.store.makeCacheKey(t,r,n.varString)}}),this.config=(0,o.pi)({addTypename:!0},e)}return e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,s=e.variables,a=e.returnPartialData,u=void 0===a||a,l=this.config.cache.policies;s=(0,o.pi)((0,o.pi)({},(0,p.O4)((0,p.iW)(r))),s);var f=this.executeSelectionSet({selectionSet:(0,p.p$)(r).selectionSet,objectOrReference:(0,c.kQ)(i),context:{store:t,query:r,policies:l,variables:s,varString:JSON.stringify(s),fragmentMap:(0,h.F)((0,p.kU)(r)),path:[],clientOnly:!1}}),d=f.missing&&f.missing.length>0;if(d&&!u)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!d}},e.prototype.isFresh=function(e,t,r,n){if(R(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.context;if((0,c.Yk)(n)&&!i.policies.rootTypenamesById[n.__ref]&&!i.store.has(n.__ref))return{result:{},missing:[I(new f.ej(4),i)]};var o=i.variables,s=i.policies,a=[],u={result:null},p=i.store.getFieldValue(n,"__typename");function v(){return u.missing||(u.missing=[])}function m(e){var t;return e.missing&&(t=v()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"==typeof p&&!s.rootIdsByTypename[p]&&a.push({__typename:p});var g=new Set(r.selections);return g.forEach(function(e){var r;if((0,d.LZ)(e,o))if((0,c.My)(e)){var u=s.readField({fieldName:e.name.value,field:e,variables:i.variables,from:n},i),y=(0,c.u2)(e);i.path.push(y);var b=i.clientOnly;i.clientOnly=b||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value})),void 0===u?l.Gw.added(e)||v().push(I(new f.ej(5),i)):Array.isArray(u)?u=m(t.executeSubSelectedArray({field:e,array:u,context:i})):e.selectionSet&&null!=u&&(u=m(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:u,context:i}))),void 0!==u&&a.push(((r={})[y]=u,r)),i.clientOnly=b,(0,f.kG)(i.path.pop()===y)}else{var w=(0,h.hi)(e,i.fragmentMap);w&&s.fragmentMatches(w,p)&&w.selectionSet.selections.forEach(g.add,g)}}),u.result=(0,y.bw)(a),this.knownResults.set(u.result,r),u},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.context;function s(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),(0,f.kG)(o.path.pop()===r),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map(function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?s(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?s(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):((0,f.kG)(o.path.pop()===t),e))}),missing:t}},e}(),C=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,r=e.result,n=e.dataId,i=e.store,s=e.variables,a=(0,p.$H)(t),u=(0,g.ig)();s=(0,o.pi)((0,o.pi)({},(0,p.O4)(a)),s);var l=this.processSelectionSet({result:r||Object.create(null),dataId:n,selectionSet:a.selectionSet,mergeTree:{map:new Map},context:{store:i,written:Object.create(null),merge:function(e,t){return u.merge(e,t)},variables:s,varString:JSON.stringify(s),fragmentMap:(0,h.F)((0,p.kU)(t))}});if(!(0,c.Yk)(l))throw new f.ej(7);return i.retain(l.__ref),l},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,a=this.cache.policies,u=a.identify(n,i,o.fragmentMap),l=u[1];if("string"==typeof(r=r||u[0])){var p=o.written[r]||(o.written[r]=[]),y=(0,c.kQ)(r);if(p.indexOf(i)>=0||(p.push(i),this.reader&&this.reader.isFresh(n,y,i,o)))return y}var v=Object.create(null);l&&(v=o.merge(v,l));var m=r&&a.rootTypenamesById[r]||(0,c.qw)(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof m&&(v.__typename=m);var g=new Set(i.selections);if(g.forEach(function(e){var r;if((0,d.LZ)(e,o.variables))if((0,c.My)(e)){var i=(0,c.u2)(e),u=n[i];if(void 0!==u){var l=a.getStoreFieldName({typename:m,fieldName:e.name.value,field:e,variables:o.variables}),p=P(s,l),y=t.processFieldValue(u,e,o,p),b=e.selectionSet&&o.store.getFieldValue(y,"__typename")||void 0,w=a.getMergeFunction(m,e.name.value,b);w?p.info={field:e,typename:m,merge:w}:N(s,l),v=o.merge(v,((r={})[l]=y,r))}else if(a.usingPossibleTypes&&!(0,d.FS)(["defer","client"],e))throw new f.ej(8)}else{var E=(0,h.hi)(e,o.fragmentMap);E&&a.fragmentMatches(E,m,n,o.variables)&&E.selectionSet.selections.forEach(g.add,g)}}),"string"==typeof r){var b=(0,c.kQ)(r);return s.map.size&&(v=this.applyMerges(s,b,v,o)),o.store.merge(r,v),b}return v},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e,o){var s=i.processFieldValue(e,t,r,P(n,o));return N(n,o),s}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):e},e.prototype.applyMerges=function(e,t,r,n,i){var s,a=this;if(e.map.size&&!(0,c.Yk)(r)){var u=Array.isArray(r)||!(0,c.Yk)(t)&&!(0,g.j)(t)?void 0:t,l=r;u&&!i&&(i=[(0,c.Yk)(u)?u.__ref:u]);var p,h=function(e,t){return Array.isArray(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){i&&i.push(t);var r=h(u,t),o=h(l,t),s=a.applyMerges(e,r,o,n,i);s!==o&&(p=p||new Map).set(t,s),i&&(0,f.kG)(i.pop()===t)}),p&&(r=Array.isArray(l)?l.slice(0):(0,o.pi)({},l),p.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(s=n.store).getStorage.apply(s,i)):r},e}(),x=[];function P(e,t){var r=e.map;return r.has(t)||r.set(t,x.pop()||{map:new Map}),r.get(t)}function N(e,t){var r=e.map,n=r.get(t);n&&!n.info&&!n.map.size&&(x.push(n),r.delete(t))}new Set;var D=r(71883),M=r(37691),L={dataIdFromObject:M.u,addTypename:!0,resultCaching:!0,typePolicies:{}},q=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=D.QS,r.txCount=0,r.maybeBroadcastWatch=(0,s.re)(function(e,t){return r.broadcastWatch.call(r,e,!!t)},{makeCacheKey:function(e){var t=e.optimistic?r.optimisticData:r.data;if(R(t))return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:e.optimistic,rootId:e.rootId,variables:e.variables}))}}),r.watchDep=(0,s.dP)(),r.config=(0,o.pi)((0,o.pi)({},L),t),r.addTypename=!!r.config.addTypename,r.policies=new M.r({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.data=new S.Root({policies:r.policies,resultCaching:r.config.resultCaching}),r.optimisticData=r.data,r.storeWriter=new C(r,r.storeReader=new k({cache:r,addTypename:r.addTypename})),r}return(0,o.ZT)(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:r}).result||null}catch(n){if(n instanceof u.y)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.modify=function(e){if(g.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,D._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,D.li)(t),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return(0,c.Yk)(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(g.RI.call(e,"id"))return!1;e=(0,o.pi)((0,o.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{!--this.txCount&&!1!==e.broadcast&&this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var r=this,n=function(t){var n=r.data,i=r.optimisticData;++r.txCount,t&&(r.data=r.optimisticData=t);try{e(r)}finally{--r.txCount,r.data=n,r.optimisticData=i}},i=!1;"string"==typeof t?(this.optimisticData=this.optimisticData.addLayer(t,n),i=!0):null===t?n(this.data):n(),this.broadcastWatches(i)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=(0,l.Gw)(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(r.fromOptimisticTransaction=!0),e.callback(r)},t}(a.R)},37691:function(e,t,r){"use strict";r.d(t,{u:function(){return p},r:function(){return m}});var n=r(48399),i=r(6462),o=r(70977),s=r(30534),a=r(73005),u=r(50216),c=r(3916),l=r(71883);function f(e){return void 0!==e.args?e.args:e.field?(0,s.NC)(e.field,e.variables):null}var p=function(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return r+":"+("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))},h=function(){},d=function(e,t){return t.fieldName},y=function(e,t,r){return(0,r.mergeObjects)(e,t)},v=function(e,t){return t},m=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.pi)({dataIdFromObject:p},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,r){var n=t&&r?(0,s.qw)(e,t,r):e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var i,o={typename:n,selectionSet:t,fragmentMap:r},a=n&&this.getTypePolicy(n),u=a&&a.keyFn||this.config.dataIdFromObject;u;){var c=u(e,o);if(!Array.isArray(c)){i=c;break}u=E(c)}return i=i?String(i):void 0,o.keyObject?[i,o.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],o=i.queryType,s=i.mutationType,a=i.subscriptionType,u=(0,n._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),s&&t.setRootTypename("Mutation",r),a&&t.setRootTypename("Subscription",r),c.RI.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function s(e,t){e.merge="function"==typeof t?t:!0===t?y:!1===t?v:e.merge}s(n,t.merge),n.keyFn=!1===i?h:Array.isArray(i)?E(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var a=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===a?d:Array.isArray(a)?w(a):"function"==typeof a?a:n.keyFn,"function"==typeof u&&(n.read=u),s(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||d)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,o.kG)(!n||n===e,1),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(c.$O);(!n||n[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!c.RI.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields,s=(0,n._T)(i,["fields"]);Object.assign(r,s),Object.assign(r.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),a=[s],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&a.indexOf(t)<0&&a.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=0;f<a.length;++f){var p=a[f];if(p.has(o))return s.has(o)||s.add(o),!0;p.forEach(u),l&&f===a.length-1&&(0,c.RC)(e.selectionSet,r,n)&&(l=!1,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},u=f(e);o;){var l=o(u,a);if(!Array.isArray(l)){t=l||n;break}o=w(l)}return void 0===t&&(t=e.field?(0,s.vf)(e.field,e.variables):(0,s.PT)(n,f(e))),!1===t?n:n===(0,c.E_)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=(0,c.E_)(i),a=t.store.getFieldValue(r,i),u=this.getFieldPolicy(e.typename,o,!1),f=u&&u.read;if(f){var p=g(this,r,e,t,t.store.getStorage((0,s.Yk)(r)?r.__ref:r,i));return l.ab.withValue(this.cache,f,[a,p])}return a}},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,s=r.typename,a=r.merge;return a===y?b(n.store.getFieldValue)(e,t):a===v?t:a(e,t,g(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null)))},e}();function g(e,t,r,i,o){var a=e.getStoreFieldName(r),u=(0,c.E_)(a),l=r.variables||i.variables,p=i.store,h=p.getFieldValue,d=p.toReference,y=p.canRead;return{args:f(r),field:r.field||null,fieldName:u,storeFieldName:a,variables:l,isReference:s.Yk,toReference:d,storage:o,cache:e.cache,canRead:y,readField:function(r,o){var s="string"==typeof r?{fieldName:r,from:o}:(0,n.pi)({},r);return void 0===s.from&&(s.from=t),void 0===s.variables&&(s.variables=l),e.readField(s,i)},mergeObjects:b(h)}}function b(e){return function(t,r){if(Array.isArray(t)||Array.isArray(r))throw new o.ej(2);if(t&&"object"==typeof t&&r&&"object"==typeof r){var i=e(t,"__typename"),s=e(r,"__typename");return i&&s&&i!==s||!(0,c.j)(t)||!(0,c.j)(r)?r:(0,n.pi)((0,n.pi)({},t),r)}return r}}function w(e){return function(t,r){return t?r.fieldName+":"+JSON.stringify(_(t,e,!1)):r.fieldName}}function E(e){var t=new i.Gl(a.m);return function(r,n){var i;if(n.selectionSet&&n.fragmentMap){var o=t.lookupArray([n.selectionSet,n.fragmentMap]);i=o.aliasMap||(o.aliasMap=S(n.selectionSet,n.fragmentMap))}var s=n.keyObject=_(r,e,!0,i);return n.typename+":"+JSON.stringify(s)}}function S(e,t){var r=Object.create(null),n=new Set([e]);return n.forEach(function(e){e.selections.forEach(function(e){if((0,s.My)(e)){if(e.alias){var i=e.alias.value,o=e.name.value;o!==i&&((r.aliases||(r.aliases=Object.create(null)))[o]=i)}e.selectionSet&&((r.subsets||(r.subsets=Object.create(null)))[e.name.value]=S(e.selectionSet,t))}else{var a=(0,u.hi)(e,t);a&&n.add(a.selectionSet)}})}),r}function _(e,t,r,n){var i,s=Object.create(null);return t.forEach(function(t){if(Array.isArray(t)){if("string"==typeof i){var a=n&&n.subsets;s[i]=_(e[i],t,r,a&&a[i])}}else{var u=n&&n.aliases,l=u&&u[t]||t;c.RI.call(e,l)?s[i=t]=e[l]:((0,o.kG)(!r,3),i=void 0)}}),s}},71883:function(e,t,r){"use strict";r.d(t,{ab:function(){return i},li:function(){return a},_v:function(){return u},QS:function(){return c}});var n=r(6462),i=new(r(83403).g7),o=new WeakMap;function s(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function a(e){s(e).vars.forEach(function(t){return t.forgetCache(e)})}function u(e){s(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){s(e).dep.dirty(n),l(e)});var u=Array.from(r);r.clear(),u.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),s(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),s(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}function l(e){e.broadcastWatches&&e.broadcastWatches()}},12536:function(){},43303:function(e,t,r){"use strict";r.d(t,{f:function(){return F},J:function(){return U}});var n=r(48399),i=r(70977),o=r(80704),s=r(37592),a=r(85025),u=r(80257),c=r(38546),l=r(73005);function f(e){return e.errors&&e.errors.length>0||!1}var p=r(20283),h=r(83368),d=r(52107),y=r(17334),v=r(42677),m=r.n(v),g=r(62954),b=r(1313);function w(e){return e&&"function"==typeof e.then}var E=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.addCount=0,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],(0,g.p)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&Promise.resolve().then(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),(0,g.p)(r.observers,"error",e))},complete:function(){if(null!==r.sub){var e=r.sources.shift();e?w(e)?e.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=e.subscribe(r.handlers):(r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),(0,g.p)(r.observers,"complete"))}}},r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new(m())(t)]),w(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e),++this.addCount)},t.prototype.removeObserver=function(e,t){this.observers.delete(e)&&--this.addCount<1&&!t&&this.handlers.error(new Error("Observable cancelled prematurely"))},t.prototype.cleanup=function(e){var t=this,r=!1,n=function(){r||(r=!0,t.observers.delete(i),e())},i={next:n,error:n,complete:n},o=this.addCount;this.addObserver(i),this.addCount=o},t}(m());function S(e,t,r){return new(m())(function(n){var i=n.next,o=n.error,s=n.complete,a=0,u=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++a;var r=function(){return e(t)};c=c.then(r,r).then(function(e){--a,i&&i.call(n,e),u&&f.complete()},function(e){throw--a,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){u=!0,a||s&&s.call(n)}},p=e.subscribe(f);return function(){return p.unsubscribe()}})}(0,b.D)(E);var _=r(4549),O=r(40939),A=r(75832),T=r(86729),R=r(2456),I=r(50216),k=r(30534),C=r(71883),x=function(){function e(e){var t=e.client,r=e.resolvers,n=e.fragmentMatcher;this.cache=e.cache,t&&(this.client=t),r&&this.addResolvers(r),n&&this.setFragmentMatcher(n)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,R.Ee)(t.resolvers,e)}):this.resolvers=(0,R.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,a).then(function(e){return(0,n.pi)((0,n.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,y.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,d.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)})]:[2,(0,n.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,T.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return T.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,d.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),(0,n.mG)(this,void 0,void 0,function(){var a,u,c,l,f,p,d,y,v;return(0,n.Jh)(this,function(m){return a=(0,h.p$)(e),u=(0,h.kU)(e),c=(0,I.F)(u),f=(l=a.operation)?l.charAt(0).toUpperCase()+l.slice(1):"Query",d=(p=this).cache,y=p.client,v={fragmentMap:c,context:(0,n.pi)((0,n.pi)({},r),{cache:d,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:f,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return(0,n.mG)(this,void 0,void 0,function(){var o,s,a,u,c=this;return(0,n.Jh)(this,function(l){return o=r.fragmentMap,s=r.context,a=r.variables,u=[t],[2,Promise.all(e.selections.map(function(e){return(0,n.mG)(c,void 0,void 0,function(){var c;return(0,n.Jh)(this,function(n){return(0,y.LZ)(e,a)?(0,k.My)(e)?[2,this.resolveField(e,t,r).then(function(t){var r;void 0!==t&&u.push(((r={})[(0,k.u2)(e)]=t,r))})]:((0,k.Ao)(e)?c=e:(0,i.kG)(c=o[e.name.value],11),c&&c.typeCondition&&r.fragmentMatcher(t,c.typeCondition.name.value,s)?[2,this.resolveSelectionSet(c.selectionSet,t,r).then(function(e){u.push(e)})]:[2]):[2]})})})).then(function(){return(0,R.bw)(u)})]})})},e.prototype.resolveField=function(e,t,r){return(0,n.mG)(this,void 0,void 0,function(){var i,o,s,a,u,c,l,f,p,h=this;return(0,n.Jh)(this,function(n){return i=r.variables,o=e.name.value,s=(0,k.u2)(e),a=o!==s,u=t[s]||t[o],c=Promise.resolve(u),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(l=t.__typename||r.defaultOperationType,(f=this.resolvers&&this.resolvers[l])&&(p=f[a?o:s])&&(c=Promise.resolve(C.ab.withValue(this.cache,p,[t,(0,k.NC)(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,c.then(function(t){return void 0===t&&(t=u),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet&&null!=t?Array.isArray(t)?h.resolveSubSelectedArray(e,t,r):e.selectionSet?h.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}(),P=new(l.m?WeakMap:Map);function N(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return P.set(e,(P.get(e)+1)%1e15),r.apply(this,arguments)})}function D(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var M=function(){function e(e){this.cache=e,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,P.has(e)||(P.set(e,0),N(e,"evict"),N(e,"modify"),N(e,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||A.I.loading;return this.variables&&this.networkStatus!==A.I.loading&&!(0,c.D)(this.variables,e.variables)&&(t=A.I.setVariables),(0,c.D)(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){D(this),this.diff=null,this.dirty=!1},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&(0,c.D)(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,r=this.diff;this.diff=e,!this.dirty&&(e&&e.result)!==(r&&r.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;D(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,A.O)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),delete this.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var e=this.observableQuery;e&&e.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||(!this.lastWatch||this.lastWatch.query!==this.document||!(0,c.D)(e,this.lastWatch.variables))&&(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===P.get(this.cache)&&(0,c.D)(t,r.variables)&&(0,c.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=(0,p.O)(e.errors)?e.errors:[],this.reset(),"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:!this.stopped&&r&&(L(e,t.errorPolicy)?this.cache.performTransaction(function(r){if(n.shouldWrite(e,t.variables))r.writeQuery({query:n.document,data:e.data,variables:t.variables}),n.lastWrite={result:e,variables:t.variables,dmCount:P.get(n.cache)};else if(n.diff&&n.diff.complete)return void(e.data=n.diff.result);var i=r.diff({query:n.document,variables:t.variables,returnPartialData:!0,optimistic:!0});n.stopped||n.updateWatch(t.variables),n.diff=i,i.complete&&(e.data=i.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=A.I.ready},e.prototype.markError=function(e){return this.networkStatus=A.I.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function L(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!f(e);return!n&&r&&e.data&&(n=!0),n}var q=Object.prototype.hasOwnProperty,j=function(){function e(e){var t=e.cache,r=e.link,n=e.queryDeduplication,i=void 0!==n&&n,o=e.onBroadcast,s=e.ssrMode,a=void 0!==s&&s,u=e.clientAwareness,c=void 0===u?{}:u,f=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(l.m?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.queryDeduplication=i,this.clientAwareness=c,this.localState=f||new x({cache:t}),this.ssrMode=a,this.assumeImmutableResults=!!p,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(new i.ej(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,o=e.optimisticResponse,s=e.updateQueries,a=e.refetchQueries,u=void 0===a?[]:a,c=e.awaitRefetchQueries,l=void 0!==c&&c,h=e.update,d=e.errorPolicy,y=void 0===d?"none":d,v=e.fetchPolicy,m=e.context,g=void 0===m?{}:m;return(0,n.mG)(this,void 0,void 0,function(){var e,a,c;return(0,n.Jh)(this,function(d){switch(d.label){case 0:return(0,i.kG)(t,13),(0,i.kG)(!v||"no-cache"===v,14),e=this.generateMutationId(),t=this.transform(t).document,r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,g)]:[3,2];case 1:r=d.sent(),d.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[e]={mutation:t,variables:r,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:t,variables:r,errorPolicy:y,updateQueries:s,update:h}),this.broadcastQueries(),c=this,[2,new Promise(function(i,d){var m,b;c.getObservableFromLink(t,(0,n.pi)((0,n.pi)({},g),{optimisticResponse:o}),r,!1).subscribe({next:function(n){if(f(n)&&"none"===y)b=new _.c({graphQLErrors:n.errors});else{if(a&&(a.loading=!1,a.error=null),"no-cache"!==v)try{c.markMutationResult({mutationId:e,result:n,document:t,variables:r,errorPolicy:y,updateQueries:s,update:h})}catch(i){return void(b=new _.c({networkError:i}))}m=n}},error:function(t){a&&(a.loading=!1,a.error=t),o&&c.cache.removeOptimistic(e),c.broadcastQueries(),d(new _.c({networkError:t}))},complete:function(){if(b&&a&&(a.loading=!1,a.error=b),o&&c.cache.removeOptimistic(e),c.broadcastQueries(),b)d(b);else{"function"==typeof u&&(u=u(m));var t=[];(0,p.O)(u)&&u.forEach(function(e){if("string"==typeof e)c.queries.forEach(function(r){var n=r.observableQuery;n&&n.hasObservers()&&n.queryName===e&&t.push(n.refetch())});else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(c.query(r))}}),Promise.all(l?t:[]).then(function(){"ignore"===y&&m&&f(m)&&delete m.errors,i(m)},d)}}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;if(void 0===t&&(t=this.cache),L(e.result,e.errorPolicy)){var n=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],i=e.updateQueries;i&&this.queries.forEach(function(o,s){var a=o.observableQuery,u=a&&a.queryName;if(u&&q.call(i,u)){var c=i[u],l=r.queries.get(s),f=l.document,p=l.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),y=d.result;if(d.complete&&y){var v=c(y,{mutationResult:e.result,queryName:f&&(0,h.rY)(f)||void 0,queryVariables:p});v&&n.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}}),t.performTransaction(function(t){n.forEach(function(e){return t.write(e)});var r=e.update;r&&r(t,e.result)},null)}},e.prototype.markMutationOptimistic=function(e,t){var r=this,i="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:i}}),e)}catch(o){}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=(0,d.Fo)(this.cache.transformForLink(r)),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:(0,y.mj)(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:(0,h.O4)((0,h.$H)(r))},a=function(e){e&&!t.has(e)&&t.set(e,s)};a(e),a(r),a(i),a(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new M(this.cache),r=new O.u({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:e.query,observableQuery:r,variables:e.variables}),r},e.prototype.query=function(e){var t=this;(0,i.kG)(e.query,15),(0,i.kG)("Document"===e.query.kind,16),(0,i.kG)(!e.returnPartialData,17),(0,i.kG)(!e.pollInterval,18);var r=this.generateQueryId();return this.fetchQuery(r,e).finally(function(){return t.stopQuery(r)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new i.ej(19)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=A.I.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach(function(n,i){var o=n.observableQuery;if(o&&o.hasObservers()){var s=o.options.fetchPolicy;o.resetLastResults(),"cache-only"!==s&&(e||"standby"!==s)&&r.push(o.refetch()),t.getQuery(i).setDiff(null)}}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,s=e.context,a=void 0===s?{}:s;r=this.transform(r).document,o=this.getVariables(r,o);var u=function(e){return t.getObservableFromLink(r,a,e,!1).map(function(o){if("no-cache"!==n&&(L(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),f(o))throw new _.c({graphQLErrors:o.errors});return o})};if(this.transform(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,a).then(u);return new(m())(function(e){var t=null;return c.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).stop(),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,a=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var u,c=this.transform(e).serverQuery;if(c){var l=this.inFlightLinkObservables,f=this.link,p={query:c,variables:r,operationName:(0,h.rY)(c)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=p.context,i){var d=l.get(c)||new Map;l.set(c,d);var y=JSON.stringify(r);if(!(u=d.get(y))){var v=new E([(0,s.h)(f,p)]);d.set(y,u=v),v.cleanup(function(){d.delete(y)&&d.size<1&&l.delete(c)})}}else u=new E([(0,s.h)(f,p)])}else u=new E([m().of({data:{}})]),t=this.prepareContext(t);var g=this.transform(e).clientQuery;return g&&(u=S(u,function(e){return a.localState.runResolvers({document:g,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId();return S(this.getObservableFromLink(e.document,r.context,r.variables),function(i){var o=(0,p.O)(i.errors);if(n>=e.lastRequestId){if(o&&"none"===r.errorPolicy)throw e.markError(new _.c({graphQLErrors:i.errors}));e.markResult(i,r,t),e.markReady()}var s={data:i.data,loading:!1,networkStatus:e.networkStatus||A.I.ready};return o&&"ignore"!==r.errorPolicy&&(s.errors=i.errors),s},function(t){var r=(0,_.M)(t)?t:new _.c({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,t,r){var n=this;void 0===r&&(r=A.I.loading);var i=this.transform(t.query).document,o=this.getVariables(i,t.variables),s=this.getQuery(e),a=s.networkStatus,u=t.fetchPolicy,c=void 0===u?"cache-first":u,l=t.errorPolicy,f=void 0===l?"none":l,p=t.returnPartialData,h=void 0!==p&&p,d=t.notifyOnNetworkStatusChange,y=void 0!==d&&d,v=t.context,m=void 0===v?{}:v;("cache-first"===c||"cache-and-network"===c||"network-only"===c||"no-cache"===c)&&y&&"number"==typeof a&&a!==r&&(0,A.O)(r)&&("cache-first"!==c&&(c="cache-and-network"),h=!0);var g=Object.assign({},t,{query:i,variables:o,fetchPolicy:c,errorPolicy:f,returnPartialData:h,notifyOnNetworkStatusChange:y,context:m}),b=function(e){return g.variables=e,n.fetchQueryByPolicy(s,g,r)};this.fetchCancelFns.set(e,function(e){Promise.resolve().then(function(){return w.cancel(e)})});var w=new E(this.transform(g.query).hasClientExports?this.localState.addExportedVariables(g.query,g.variables,g.context).then(b):b(g.variables));return w.cleanup(function(){n.fetchCancelFns.delete(e);var r=t.nextFetchPolicy;r&&(t.nextFetchPolicy=void 0,t.fetchPolicy="function"==typeof r?r.call(t,t.fetchPolicy||"cache-first"):r)}),w},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,s=t.variables,a=t.fetchPolicy,u=t.errorPolicy,c=t.returnPartialData,l=t.context;e.init({document:o,variables:s,networkStatus:r});var f=function(){return e.getDiff(s)},p=function(t,r){void 0===r&&(r=e.networkStatus||A.I.loading);var a=t.result,u=function(e){return m().of((0,n.pi)({data:e,loading:(0,A.O)(r),networkStatus:r},t.complete?null:{partial:!0}))};return i.transform(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:a},context:l,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data)}):u(a)},h=function(t){return i.getResultsFromLink(e,t,{variables:s,context:l,fetchPolicy:a,errorPolicy:u})};switch(a){default:case"cache-first":return(d=f()).complete?[p(d,e.markReady())]:c?[p(d),h(!0)]:[h(!0)];case"cache-and-network":var d;return(d=f()).complete||c?[p(d),h(!0)]:[h(!0)];case"cache-only":return[p(f(),e.markReady())];case"network-only":return[h(!0)];case"no-cache":return[h(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new M(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}();function U(e,t){return(0,a.o)(e,t,t.variables&&{variables:(0,n.pi)((0,n.pi)({},e.variables),t.variables)})}var F=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.cache,s=e.ssrMode,a=void 0!==s&&s,c=e.ssrForceFetchDelay,l=void 0===c?0:c,f=e.connectToDevTools,p=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:f,h=e.queryDeduplication,d=void 0===h||h,y=e.defaultOptions,v=e.assumeImmutableResults,m=void 0!==v&&v,g=e.resolvers,b=e.typeDefs,w=e.fragmentMatcher,E=e.name,S=e.version,_=e.link;if(_||(_=r?new u.u({uri:r,credentials:e.credentials,headers:e.headers}):o.i.empty()),!n)throw new i.ej(9);this.link=_,this.cache=n,this.disableNetworkFetches=a||l>0,this.queryDeduplication=d,this.defaultOptions=y||{},this.typeDefs=b,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),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),p&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),this.version="3.3.20",this.localState=new x({cache:n,client:this,resolvers:g,fragmentMatcher:w}),this.queryManager=new j({cache:this.cache,link:this.link,queryDeduplication:d,ssrMode:a,clientAwareness:{name:E,version:S},localState:this.localState,assumeImmutableResults:m,onBroadcast:p?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=U(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=U(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=U(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return(0,s.h)(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},40939:function(e,t,r){"use strict";r.d(t,{u:function(){return g}});var n=r(48399),i=r(70977),o=r(38546),s=r(75832),a=Object.prototype.toString;function u(e){return c(e)}function c(e,t){switch(a.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=c(e,t)}),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=c(e[r],t)}),n;default:return e}}var l=r(62954),f=r(83368),p=r(20283),h=r(42677),d=r.n(h),y=r(1313),v=r(85025),m=function(){function e(e,t,r,n){this.observer=e,this.options=t,this.fetch=r,this.shouldFetch=n}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var r=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),r.addObserver(this.observer),(this.concast=r).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,(0,v.o)(e)),this.updatePolling(),this},e.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())},e.prototype.updatePolling=function(){var e=this,t=this.pollingInfo,r=this.options.pollInterval;if(r){if((!t||t.interval!==r)&&((0,i.kG)(r,20),!1!==this.shouldFetch)){(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},s.I.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)},e}(),g=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){return a.onSubscribe(e)})||this;a.observers=new Set,a.subscriptions=new Set,a.observer={next:function(e){(a.lastError||a.isDifferentFromLastResult(e))&&(a.updateLastResult(e),(0,l.p)(a.observers,"next",e))},error:function(e){a.updateLastResult((0,n.pi)((0,n.pi)({},a.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:s.I.error,loading:!1})),(0,l.p)(a.observers,"error",a.lastError=e)}},a.isTornDown=!1,a.options=o,a.queryId=r.generateQueryId();var u=(0,f.$H)(o.query);return a.queryName=u&&u.name&&u.name.value,a.queryManager=r,a.queryInfo=i,a}return(0,n.ZT)(t,e),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.lastResult,r=this.queryInfo.networkStatus||t&&t.networkStatus||s.I.ready,i=(0,n.pi)((0,n.pi)({},t),{loading:(0,s.O)(r),networkStatus:r});if(this.isTornDown)return i;var o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if("no-cache"===a||"network-only"===a)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var u=this.queryInfo.getDiff();i.data=u.complete||this.options.returnPartialData?u.result:void 0,u.complete?(i.networkStatus===s.I.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=s.I.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e){return!(0,o.D)(this.lastResultSnapshot,e)},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},r=this.options.fetchPolicy;return"no-cache"!==r&&"cache-and-network"!==r&&(t.fetchPolicy="network-only",t.nextFetchPolicy=r||"cache-first"),e&&!(0,o.D)(this.options.variables,e)&&(t.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),e)),this.newReobserver(!1).reobserve(t,s.I.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.pi)((0,n.pi)({},e.query?e:(0,n.pi)((0,n.pi)((0,n.pi)({},this.options),e),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return r.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=s.I.fetchMore,this.observe()),this.queryManager.fetchQuery(i,r,s.I.fetchMore).then(function(n){var i=n.data,o=e.updateQuery;return o?t.updateQuery(function(e){return o(e,{fetchMoreResult:i,variables:r.variables})}):t.queryManager.cache.writeQuery({query:r.query,variables:r.variables,data:i}),n}).finally(function(){t.queryManager.stopQuery(i),t.reobserve()})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){if((0,o.D)(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var t=this.options.fetchPolicy,r=void 0===t?"cache-first":t,n={fetchPolicy:r,variables:e};return"cache-first"!==r&&"no-cache"!==r&&"network-only"!==r&&(n.fetchPolicy="cache-and-network",n.nextFetchPolicy=r),this.reobserve(n,s.I.setVariables)},t.prototype.updateQuery=function(e){var t,r=this.queryManager,n=e(r.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(r.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),r.broadcastQueries())},t.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},t.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:u(e),(0,p.O)(e.errors)||delete this.lastError,t},t.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var r=e._subscription._observer;r&&!r.error&&(r.error=b)}catch(i){}var n=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),n&&this.reobserve().catch(function(e){}),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},t.prototype.newReobserver=function(e){var t=this,r=this.queryManager,i=this.queryId;return r.setObservableQuery(this),new m(this.observer,e?this.options:(0,n.pi)({},this.options),function(e,n){return r.setObservableQuery(t),r.fetchQueryObservable(i,e,n)},!r.ssrMode&&function(){return!(0,s.O)(t.queryInfo.networkStatus)})},t.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},t.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(d());function b(e){}(0,y.D)(g)},52247:function(e,t,r){"use strict";r.r(t),r.d(t,{ApolloClient:function(){return n.f},mergeOptions:function(){return n.J},ObservableQuery:function(){return i.u},NetworkStatus:function(){return o.I},isApolloError:function(){return c.M},ApolloError:function(){return c.c},Cache:function(){return l.C},ApolloCache:function(){return f.R},InMemoryCache:function(){return p.h},MissingFieldError:function(){return h.y},defaultDataIdFromObject:function(){return d.u},makeVar:function(){return y.QS},HttpLink:function(){return g.uG},checkFetcher:function(){return g.U2},createHttpLink:function(){return g.LQ},createSignalIfSupported:function(){return g.$g},fallbackHttpConfig:function(){return g.SC},parseAndCheckHttpResponse:function(){return g.dO},rewriteURIForGET:function(){return g.Hg},selectHttpOptionsAndBody:function(){return g.E4},selectURI:function(){return g.rg},serializeFetchParameter:function(){return g.gE},fromError:function(){return b.Q},toPromise:function(){return w.V},fromPromise:function(){return E.p},throwServerError:function(){return S.P},Observable:function(){return O.a},isReference:function(){return A.Yk},makeReference:function(){return A.kQ},setLogVerbosity:function(){return T.U6},gql:function(){return R.ZP},resetCaches:function(){return R.HW},disableFragmentWarnings:function(){return R._t},enableExperimentalFragmentVariables:function(){return R.wO},disableExperimentalFragmentVariables:function(){return R.J9}});var n=r(43303),i=r(40939),o=r(75832),s=r(11844),a={};for(var u in s)["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(u)<0&&(a[u]=(function(e){return s[e]}).bind(0,u));r.d(t,a);var c=r(4549),l=r(43015),f=r(17629),p=r(41695),h=r(73860),d=r(37691),y=r(71883),v=r(12536);for(var u in a={},v)["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(u)<0&&(a[u]=(function(e){return v[e]}).bind(0,u));r.d(t,a);var m=r(96436);for(var u in a={},m)["default","ApolloClient","mergeOptions","ObservableQuery","NetworkStatus","isApolloError","ApolloError","Cache","ApolloCache","InMemoryCache","MissingFieldError","defaultDataIdFromObject","makeVar","fromError","toPromise","fromPromise","throwServerError","Observable","isReference","makeReference","setLogVerbosity","gql","resetCaches","disableFragmentWarnings","enableExperimentalFragmentVariables","disableExperimentalFragmentVariables"].indexOf(u)<0&&(a[u]=(function(e){return m[e]}).bind(0,u));r.d(t,a);var g=r(87449),b=r(11055),w=r(10893),E=r(87768),S=r(9360),_=r(42677),O=r.n(_),A=r(30534),T=r(70977),R=r(92886);(0,T.U6)("log")},75832:function(e,t,r){"use strict";r.d(t,{I:function(){return n},O:function(){return i}});var n=(()=>{return(e=n||(n={}))[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error",n;var e})();function i(e){return!!e&&e<7}},11844:function(){},4549:function(e,t,r){"use strict";r.d(t,{M:function(){return o},c:function(){return s}});var n=r(48399),i=r(20283);function o(e){return e.hasOwnProperty("graphQLErrors")}var s=function(e){function t(r){var n=r.graphQLErrors,o=r.networkError,s=r.errorMessage,a=r.extraInfo,u=e.call(this,s)||this;return u.graphQLErrors=n||[],u.networkError=o||null,u.message=s||function(e){var t="";return(0,i.O)(e.graphQLErrors)&&e.graphQLErrors.forEach(function(e){t+=(e?e.message:"Error message not found.")+"\n"}),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")}(u),u.extraInfo=a,u.__proto__=t.prototype,u}return(0,n.ZT)(t,e),t}(Error)},43821:function(e,t,r){"use strict";r.r(t);var n=r(52247),i={};for(var o in n)"default"!==o&&(i[o]=(function(e){return n[e]}).bind(0,o));r.d(t,i);var s=r(11076);for(var o in i={},s)["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(o)<0&&(i[o]=(function(e){return s[e]}).bind(0,o));r.d(t,i)},42753:function(e,t,r){"use strict";r.r(t),r.d(t,{setContext:function(){return a}});var n=r(48399),i=r(80704),o=r(42677),s=r.n(o);function a(e){return new i.i(function(t,r){var i=(0,n._T)(t,[]);return new(s())(function(n){var o;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})}).catch(n.error.bind(n)),function(){o&&o.unsubscribe()}})})}},80704:function(e,t,r){"use strict";r.d(t,{i:function(){return p}});var n,i=r(48399),o=r(70977),s=r(42677),a=r.n(s),u=r(83368);function c(e,t){return t?t(e):a().of()}function l(e){return"function"==typeof e?new p(e):e}function f(e){return e.request.length<=1}n=Error,(0,i.ZT)(function(e,t){var r=n.call(this,e)||this;return r.link=t,r},n);var p=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return a().of()})},e.from=function(t){return 0===t.length?e.empty():t.map(l).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=l(r),o=l(n||new e(c));return f(i)&&f(o)?new e(function(e){return t(e)?i.request(e)||a().of():o.request(e)||a().of()}):new e(function(e,r){return t(e)?i.request(e,r)||a().of():o.request(e,r)||a().of()})},e.execute=function(e,t){return e.request(function(e,t){var r=(0,i.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=(0,i.pi)((0,i.pi)({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,i.pi)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,u.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++)if(t.indexOf(n[r])<0)throw new o.ej(26);return e}(t))))||a().of()},e.concat=function(t,r){var n=l(t);if(f(n))return n;var i=l(r);return f(i)?new e(function(e){return n.request(e,function(e){return i.request(e)||a().of()})||a().of()}):new e(function(e,t){return n.request(e,function(e){return i.request(e,t)||a().of()})||a().of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(c)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new o.ej(21)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},9838:function(e,t,r){"use strict";r.d(t,{z:function(){return n}});var n=r(80704).i.concat},48876:function(e,t,r){"use strict";r.d(t,{c:function(){return n}});var n=r(80704).i.empty},37592:function(e,t,r){"use strict";r.d(t,{h:function(){return n}});var n=r(80704).i.execute},41129:function(e,t,r){"use strict";r.d(t,{D:function(){return n}});var n=r(80704).i.from},96436:function(e,t,r){"use strict";r.r(t),r.d(t,{empty:function(){return n.c},from:function(){return i.D},split:function(){return o.V},concat:function(){return s.z},execute:function(){return a.h},ApolloLink:function(){return u.i}});var n=r(48876),i=r(41129),o=r(5650),s=r(9838),a=r(37592),u=r(80704),c=r(43737),l={};for(var f in c)["default","empty","from","split","concat","execute","ApolloLink"].indexOf(f)<0&&(l[f]=(function(e){return c[e]}).bind(0,f));r.d(t,l)},5650:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});var n=r(80704).i.split},43737:function(){},80257:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});var n=r(48399),i=r(80704),o=r(32352),s=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,o.L)(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},98228:function(e,t,r){"use strict";r.d(t,{U:function(){return i}});var n=r(70977),i=function(e){if(!e&&"undefined"==typeof fetch)throw new n.ej(22)}},32352:function(e,t,r){"use strict";r.d(t,{L:function(){return v}});var n=r(48399),i=r(86729),o=r(80704),s=r(42677),a=r.n(s),u=r(5838),c=r(33585),l=r(66465),f=r(98228),p=r(57957),h=r(13604),d=r(67776),y=r(11055),v=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,s=e.fetch,v=e.includeExtensions,m=e.useGETForQueries,g=e.includeUnusedVariables,b=void 0!==g&&g,w=(0,n._T)(e,["uri","fetch","includeExtensions","useGETForQueries","includeUnusedVariables"]);(0,f.U)(s),s||(s=fetch);var E={http:{includeExtensions:v},options:w.fetchOptions,credentials:w.credentials,headers:w.headers};return new o.i(function(e){var t=(0,c.r)(e,r),o=e.getContext(),f={};if(o.clientAwareness){var v=o.clientAwareness,g=v.name,w=v.version;g&&(f["apollographql-client-name"]=g),w&&(f["apollographql-client-version"]=w)}var S,_=(0,n.pi)((0,n.pi)({},f),o.headers),O=(0,p.E)(e,p.S,E,{http:o.http,options:o.fetchOptions,credentials:o.credentials,headers:_}),A=O.options,T=O.body;if(T.variables&&!b){var R=new Set(Object.keys(T.variables));(0,i.Vn)(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&R.delete(e.name.value)}}),R.size&&(T.variables=(0,n.pi)({},T.variables),R.forEach(function(e){delete T.variables[e]}))}if(!A.signal){var I=(0,h.$)();(S=I.controller)&&(A.signal=I.signal)}if(m&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(A.method="GET"),"GET"===A.method){var k=(0,d.H)(t,T),C=k.newURI,x=k.parseError;if(x)return(0,y.Q)(x);t=C}else try{A.body=(0,u.g)(T,"Payload")}catch(P){return(0,y.Q)(P)}return new(a())(function(r){return s(t,A).then(function(t){return e.setContext({response:t}),t}).then((0,l.d)(e)).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){S&&S.abort()}})})}},13604:function(e,t,r){"use strict";r.d(t,{$:function(){return n}});var n=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}}},87449:function(e,t,r){"use strict";r.d(t,{dO:function(){return n.d},gE:function(){return i.g},SC:function(){return o.S},E4:function(){return o.E},U2:function(){return s.U},$g:function(){return a.$},rg:function(){return u.r},LQ:function(){return c.L},uG:function(){return l.u},Hg:function(){return f.H}});var n=r(66465),i=r(5838),o=r(57957),s=r(98228),a=r(13604),u=r(33585),c=r(32352),l=r(80257),f=r(67776)},66465:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(9360),i=Object.prototype.hasOwnProperty;function o(e){return function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(n){var r=n;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,r}}).then(function(r){return t.status>=300&&(0,n.P)(t,r,"Response not successful: Received status code "+t.status),!Array.isArray(r)&&!i.call(r,"data")&&!i.call(r,"errors")&&(0,n.P)(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),r})}}},67776:function(e,t,r){"use strict";r.d(t,{H:function(){return i}});var n=r(5838);function i(e,t){var r=[],i=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,n.g)(t.variables,"Variables map")}catch(f){return{parseError:f}}i("variables",o)}if(t.extensions){var s=void 0;try{s=(0,n.g)(t.extensions,"Extensions map")}catch(f){return{parseError:f}}i("extensions",s)}var a="",u=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+r.join("&")+a}}},57957:function(e,t,r){"use strict";r.d(t,{S:function(){return o},E:function(){return s}});var n=r(48399),i=r(71352),o={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},s=function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var s=(0,n.pi)((0,n.pi)({},t.options),{headers:t.headers,credentials:t.credentials}),a=t.http||{};r.forEach(function(e){s=(0,n.pi)((0,n.pi)((0,n.pi)({},s),e.options),{headers:(0,n.pi)((0,n.pi)({},s.headers),e.headers)}),e.credentials&&(s.credentials=e.credentials),a=(0,n.pi)((0,n.pi)({},a),e.http)});var u=e.operationName,c=e.extensions,l=e.variables,f=e.query,p={operationName:u,variables:l};return a.includeExtensions&&(p.extensions=c),a.includeQuery&&(p.query=(0,i.print)(f)),{options:s,body:p}}},33585:function(e,t,r){"use strict";r.d(t,{r:function(){return n}});var n=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}},5838:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(70977),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(o){var i=new n.ej(23);throw i.parseError=o,i}return r}},11055:function(e,t,r){"use strict";r.d(t,{Q:function(){return o}});var n=r(42677),i=r.n(n);function o(e){return new(i())(function(t){t.error(e)})}},87768:function(e,t,r){"use strict";r.d(t,{p:function(){return o}});var n=r(42677),i=r.n(n);function o(e){return new(i())(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}},9360:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});var n=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},10893:function(e,t,r){"use strict";function n(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t||(t=!0,r(e))},error:n})})}r.d(t,{V:function(){return n}}),r(70977)},6462:function(e,t,r){"use strict";r.d(t,{Gl:function(){return a},dP:function(){return P},re:function(){return M}});var n=function(){return Object.create(null)},i=Array.prototype,o=i.forEach,s=i.slice,a=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=n),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return o.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(s.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}(),u=r(83403);function c(){}var l,f=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=c),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),p=new u.g7,h=Object.prototype.hasOwnProperty,d=void 0===(l=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:l;function y(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var v=[];function m(e,t){if(!e)throw new Error(t||"assertion failure")}function g(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var b=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!S(this))return w(this),this.value[0]},e.prototype.recompute=function(e){return m(!this.recomputing,"already recomputing"),w(this),S(this)?function(e,t){return k(e),p.withValue(e,E,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{y(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,!S(e)&&O(e)}(e),g(e.value)}(this,e):g(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,_(this),y(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),k(this),A(this,function(t,r){t.setDirty(),C(t,e)})},e.prototype.forget=function(){this.dispose()},e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=v.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(d(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),v.push(this.deps),this.deps=null)},e.count=0,e}();function w(e){var t=p.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),S(e)?T(t,e):R(t,e),t}function E(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function S(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function _(e){A(e,T)}function O(e){A(e,R)}function A(e,t){var r=e.parents.size;if(r)for(var n=d(e.parents),i=0;i<r;++i)t(n[i],e)}function T(e,t){m(e.childValues.has(t)),m(S(t));var r=!S(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=v.pop()||new Set;e.dirtyChildren.add(t),r&&_(e)}function R(e,t){m(e.childValues.has(t)),m(!S(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,function(e){return e.slice(0)}(t.value)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),I(e,t),!S(e)&&O(e)}function I(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(v.length<100&&v.push(r),e.dirtyChildren=null))}function k(e){e.childValues.size>0&&e.childValues.forEach(function(t,r){C(e,r)}),e.forgetDeps(),m(null===e.dirtyChildren)}function C(e,t){t.parents.delete(e),e.childValues.delete(t),I(e,t)}var x={setDirty:!0,dispose:!0,forget:!0};function P(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=p.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(y(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&h.call(x,r)?r:"setDirty";d(n).forEach(function(e){return e[i]()}),t.delete(e),y(n)}},n}function N(){var e=new a("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}N();var D=new Set;function M(e,t){void 0===t&&(t=Object.create(null));var r=new f(t.max||Math.pow(2,16),function(e){return e.dispose()}),n=t.keyArgs,i=t.makeCacheKey||N(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var s=r.get(o);s||(r.set(o,s=new b(e)),s.subscribe=t.subscribe,s.forget=function(){return r.delete(o)});var a=s.recompute(Array.prototype.slice.call(arguments));return r.set(o,s),D.add(r),p.hasValue()||(D.forEach(function(e){return e.clean()}),D.clear()),a};function s(e){var t=r.get(e);t&&t.setDirty()}function a(e){var t=r.get(e);if(t)return t.peek()}function u(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=s,o.dirty=function(){s(i.apply(null,arguments))},o.peekKey=a,o.peek=function(){return a(i.apply(null,arguments))},o.forgetKey=u,o.forget=function(){return u(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}},70977:function(e,t,r){"use strict";r.d(t,{ej:function(){return a},kG:function(){return u},U6:function(){return h}});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},i="Invariant Violation",o=Object.setPrototypeOf,s=void 0===o?function(e,t){return e.__proto__=t,e}:o,a=function(e){function t(r){void 0===r&&(r=i);var n=e.call(this,"number"==typeof r?i+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=i,s(n,t.prototype),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function u(e,t){if(!e)throw new a(t)}var c,l=["log","warn","error","silent"],f=l.indexOf("log");function p(e){return function(){if(l.indexOf(e)>=f)return console[e].apply(console,arguments)}}function h(e){var t=l[f];return f=Math.max(0,l.indexOf(e)),t}(c=u||(u={})).log=p("log"),c.warn=p("warn"),c.error=p("error"),"object"==typeof process&&"object"==typeof process.env&&process},61397:function(e,t,r){"use strict";r.d(t,{a:function(){return s}});var n=r(3904),i=r(70977),o=r(93409),s=function(e){var t=(0,o.K)();return n.createElement(t.Consumer,null,function(t){return(0,i.kG)(t&&t.client,27),e.children(t.client)})}},93409:function(e,t,r){"use strict";r.d(t,{K:function(){return o},Z:function(){return o}});var n=r(3904),i=new(r(73005).m?WeakMap:Map);function o(){var e=i.get(n.createContext);return e||((e=n.createContext({})).displayName="ApolloContext",i.set(n.createContext,e)),e}},15177:function(e,t,r){"use strict";r.d(t,{e:function(){return s}});var n=r(3904),i=r(70977),o=r(93409),s=function(e){var t=e.client,r=e.children,s=(0,o.K)();return n.createElement(s.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),(0,i.kG)(e.client,28),n.createElement(s.Provider,{value:e},r)})}},11771:function(e,t,r){"use strict";r.d(t,{xJ:function(){return s},td:function(){return y},Db:function(){return g},aM:function(){return b},lY:function(){return S},mU:function(){return E}});var n=r(3904),i=r(70977),o=r(93409);function s(){var e=n.useContext((0,o.K)()).client;return(0,i.kG)(e,33),e}var a=r(48399),u=r(38546),c=r(4549),l=r(75832),f=r(57209),p=function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!(0,u.D)(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;(0,i.kG)(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var r=(0,f.E2)(e);(0,f.mw)(t),(0,f.mw)(r.type),(0,i.kG)(r.type===t,30)},e}(),h=function(e){function t(t){var r=t.onNewData,n=e.call(this,t.options,t.context)||this;return n.runLazy=!1,n.previous=Object.create(null),n.runLazyQuery=function(e){n.cleanup(),n.runLazy=!0,n.lazyOptions=e,n.onNewData()},n.getQueryResult=function(){var e=n.observableQueryFields(),t=n.getOptions();if(t.skip)e=(0,a.pi)((0,a.pi)({},e),{data:void 0,error:void 0,loading:!1,networkStatus:l.I.ready,called:!0});else if(n.currentObservable){var r=n.currentObservable.getCurrentResult(),i=r.data,o=r.loading,s=r.partial,u=r.networkStatus,f=r.errors,p=r.error;if(f&&f.length>0&&(p=new c.c({graphQLErrors:f})),e=(0,a.pi)((0,a.pi)({},e),{data:i,loading:o,networkStatus:u,error:p,called:!0}),!o)if(p)Object.assign(e,{data:(n.currentObservable.getLastResult()||{}).data});else{var h=n.currentObservable.options.fetchPolicy;if(t.partialRefetch&&s&&(!i||0===Object.keys(i).length)&&"cache-only"!==h)return Object.assign(e,{loading:!0,networkStatus:l.I.loading}),e.refetch(),e}}e.client=n.client,n.setOptions(t,!0);var d=n.previous.result;return n.previous.loading=d&&d.loading||!1,e.previousData=d&&(d.data||d.previousData),n.previous.result=e,n.currentObservable&&n.currentObservable.resetQueryStoreErrors(),e},n.obsRefetch=function(e){var t;return null===(t=n.currentObservable)||void 0===t?void 0:t.refetch(e)},n.obsFetchMore=function(e){return n.currentObservable.fetchMore(e)},n.obsUpdateQuery=function(e){return n.currentObservable.updateQuery(e)},n.obsStartPolling=function(e){var t;null===(t=n.currentObservable)||void 0===t||t.startPolling(e)},n.obsStopPolling=function(){var e;null===(e=n.currentObservable)||void 0===e||e.stopPolling()},n.obsSubscribeToMore=function(e){return n.currentObservable.subscribeToMore(e)},n.onNewData=r,n}return(0,a.ZT)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,r=e.query;return(t||r!==this.previous.query)&&(this.removeQuerySubscription(),this.removeObservable(!t),this.previous.query=r),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:l.I.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise(function(t){return e.startQuerySubscription(t)})},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,r=void 0!==t&&t;return this.isMounted=!0,(!r||this.runLazy)&&this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),this.removeObservable(!0),delete this.previous.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=(0,a.pi)((0,a.pi)({},t.variables),this.lazyOptions.variables),t.context=(0,a.pi)((0,a.pi)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},t.prototype.getExecuteSsrResult=function(){var e=this.getOptions(),t=e.skip,r=!1===e.ssr,n=this.refreshClient().client.disableNetworkFetches,i=(0,a.pi)({loading:!0,networkStatus:l.I.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());if(r&&(this.ssrInitiated()||n))return this.previous.result=i,i;if(this.ssrInitiated()){var o=this.getQueryResult()||i;return o.loading&&!t&&this.context.renderPromises.addQueryPromise(this,function(){return null}),o}},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,f.n_.Query);var t=e.displayName||"Query";return this.ssrInitiated()&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e.fetchPolicy="cache-first"),(0,a.pi)((0,a.pi)({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previous.observableQueryOptions=(0,a.pi)((0,a.pi)({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery((0,a.pi)({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=(0,a.pi)((0,a.pi)({},this.prepareObservableQueryOptions()),{children:null});(0,u.D)(e,this.previous.observableQueryOptions)||(this.previous.observableQueryOptions=e,this.currentObservable.setOptions(e).catch(function(){}))}}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),!this.currentSubscription&&!this.getOptions().skip&&(this.currentSubscription=this.currentObservable.subscribe({next:function(r){var n=t.previous.result;n&&n.loading===r.loading&&n.networkStatus===r.networkStatus&&(0,u.D)(n.data,r.data)||e()},error:function(r){if(t.resubscribeToQuery(),!r.hasOwnProperty("graphQLErrors"))throw r;var n=t.previous.result;(n&&n.loading||!(0,u.D)(r,t.previous.error))&&(t.previous.error=r,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),r=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:r})}},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previous.result){var e=this.previous.result,t=e.data,r=e.error;if(!e.loading){var n=this.getOptions(),i=n.variables,o=n.onCompleted,s=n.onError,a=n.skip;if(this.previousOptions&&!this.previous.loading&&(0,u.D)(this.previousOptions.query,n.query)&&(0,u.D)(this.previousOptions.variables,i))return;!o||r||a?s&&r&&s(r):o(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.removeObservable=function(e){this.currentObservable&&(this.currentObservable.tearDownQuery(),e&&delete this.currentObservable)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSubscribeToMore}},t}(p);function d(e,t,r){void 0===r&&(r=!1);var i=(0,n.useContext)((0,o.K)()),s=(0,n.useReducer)(function(e){return e+1},0),c=s[0],l=s[1],f=t?(0,a.pi)((0,a.pi)({},t),{query:e}):{query:e},p=(0,n.useRef)(),d=p.current||(p.current=new h({options:f,context:i,onNewData:function(){d.ssrInitiated()?l():Promise.resolve().then(function(){return p.current&&l()})}}));d.setOptions(f),d.context=i;var y=function(e,t){var r=(0,n.useRef)();return(!r.current||!(0,u.D)(t,r.current.key))&&(r.current={key:t,value:e()}),r.current.value}(function(){return r?d.executeLazy():d.execute()},{options:(0,a.pi)((0,a.pi)({},f),{onError:void 0,onCompleted:void 0}),context:i,tick:c}),v=r?y[1]:y;return(0,n.useEffect)(function(){return function(){return d.cleanup()}},[]),(0,n.useEffect)(function(){return d.afterExecute({lazy:r})},[v.loading,v.networkStatus,v.error,v.data]),y}function y(e,t){return d(e,t,!0)}var v=r(43303),m=function(e){function t(t){var r=t.options,n=t.result,i=t.setResult,o=e.call(this,r,t.context)||this;return o.runMutation=function(e){void 0===e&&(e={}),o.onMutationStart();var t=o.generateNewMutationId();return o.mutate(e).then(function(e){return o.onMutationCompleted(e,t),e}).catch(function(e){var r=o.getOptions().onError;if(o.onMutationError(e,t),r)return r(e),{data:void 0,errors:e};throw e})},o.verifyDocumentType(r.mutation,f.n_.Mutation),o.result=n,o.setResult=i,o.mostRecentMutationId=0,o}return(0,a.ZT)(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,f.n_.Mutation),[this.runMutation,(0,a.pi)((0,a.pi)({},e),{client:this.refreshClient().client})]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){return this.refreshClient().client.mutate((0,v.J)(this.getOptions(),e))},t.prototype.onMutationStart=function(){!this.result.loading&&!this.getOptions().ignoreResults&&this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var r=this.getOptions(),n=r.onCompleted,i=r.ignoreResults,o=e.data,s=e.errors,a=s&&s.length>0?new c.c({graphQLErrors:s}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:a}),n&&n(o)},t.prototype.onMutationError=function(e,t){this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0})},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){if(this.isMounted&&(!this.previousResult||!(0,u.D)(this.previousResult,e)))return this.setResult(e),this.previousResult=e,e},t}(p);function g(e,t){var r=(0,n.useContext)((0,o.K)()),i=(0,n.useState)({called:!1,loading:!1}),s=i[0],u=i[1],c=t?(0,a.pi)((0,a.pi)({},t),{mutation:e}):{mutation:e},l=(0,n.useRef)(),f=(l.current||(l.current=new m({options:c,context:r,result:s,setResult:u})),l.current);return f.setOptions(c),f.context=r,(0,n.useEffect)(function(){return f.afterExecute()}),f.execute(s)}function b(e,t){return d(e,t,!1)}var w=function(e){function t(t){var r=t.options,n=t.setResult,i=e.call(this,r,t.context)||this;return i.currentObservable={},i.setResult=n,i.initialize(r),i}return(0,a.ZT)(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var r=this.getOptions().shouldResubscribe;return"function"==typeof r&&(r=!!r(this.getOptions())),!1!==r&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!(0,u.D)(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,a.pi)((0,a.pi)({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy,context:e.context}))},t.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)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this;Promise.resolve().then(function(){var t=e.getOptions().onSubscriptionComplete;t&&t(),e.endSubscription()})},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(p);function E(e,t){var r=(0,n.useContext)((0,o.K)()),i=t?(0,a.pi)((0,a.pi)({},t),{subscription:e}):{subscription:e},s=(0,n.useState)({loading:!i.skip,error:void 0,data:void 0}),u=s[0],c=s[1],l=(0,n.useRef)(),f=(l.current||(l.current=new w({options:i,context:r,setResult:c})),l.current);return f.setOptions(i,!0),f.context=r,(0,n.useEffect)(function(){return f.afterExecute()}),(0,n.useEffect)(function(){return f.cleanup.bind(f)},[]),f.execute(u)}function S(e){var t=e(),r=(0,n.useState)(t)[1];return(0,n.useEffect)(function(){var n=e();if(t===n)return e.onNextChange(r);r(n)},[t]),t}},11076:function(e,t,r){"use strict";r.r(t),r.d(t,{ApolloProvider:function(){return n.e},ApolloConsumer:function(){return i.a},getApolloContext:function(){return o.K},resetApolloContext:function(){return o.Z},useApolloClient:function(){return s.xJ},useLazyQuery:function(){return s.td},useMutation:function(){return s.Db},useQuery:function(){return s.aM},useReactiveVar:function(){return s.lY},useSubscription:function(){return s.mU},DocumentType:function(){return a.n_},operationName:function(){return a.mw},parser:function(){return a.E2}});var n=r(15177),i=r(61397),o=r(93409),s=r(11771),a=r(57209),u=r(28944),c={};for(var l in u)["default","ApolloProvider","ApolloConsumer","getApolloContext","resetApolloContext","DocumentType","operationName","parser","useApolloClient","useLazyQuery","useMutation","useQuery","useReactiveVar","useSubscription"].indexOf(l)<0&&(c[l]=(function(e){return u[e]}).bind(0,l));r.d(t,c)},57209:function(e,t,r){"use strict";r.d(t,{n_:function(){return i},mw:function(){return s},E2:function(){return a}});var n=r(70977),i=(()=>{return(e=i||(i={}))[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription",i;var e})(),o=new Map;function s(e){var t;switch(e){case i.Query:t="Query";break;case i.Mutation:t="Mutation";break;case i.Subscription:t="Subscription"}return t}function a(e){var t,r=o.get(e);if(r)return r;(0,n.kG)(!!e&&!!e.kind,34);var s=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind}),a=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"query"===e.operation}),u=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}),c=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation});(0,n.kG)(!s.length||a.length||u.length||c.length,35),(0,n.kG)(a.length+u.length+c.length<=1,36),t=a.length?i.Query:i.Mutation,!a.length&&!u.length&&(t=i.Subscription);var l=a.length?a:u.length?u:c;(0,n.kG)(1===l.length,37);var f=l[0],p={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:t,variables:f.variableDefinitions||[]};return o.set(e,p),p}},28944:function(){},20283:function(e,t,r){"use strict";function n(e){return Array.isArray(e)&&e.length>0}r.d(t,{O:function(){return n}})},73005:function(e,t,r){"use strict";r.d(t,{m:function(){return n}});var n="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product)},85025:function(e,t,r){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){!e||Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r}r.d(t,{o:function(){return n}})},2456:function(e,t,r){"use strict";r.d(t,{Ee:function(){return o},bw:function(){return s},w0:function(){return c}});var n=r(48399),i=Object.prototype.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}function a(e){return null!==e&&"object"==typeof e}var u=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=a,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return a(t)&&a(e)?(Object.keys(t).forEach(function(s){if(i.call(e,s)){var a=e[s];if(t[s]!==a){var u=r.reconciler.apply(r,(0,n.pr)([e,t,s],o));u!==a&&((e=r.shallowCopyForMerge(e))[s]=u)}}else(e=r.shallowCopyForMerge(e))[s]=t[s]}),e):t},e.prototype.shallowCopyForMerge=function(e){return a(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},17334:function(e,t,r){"use strict";r.d(t,{LZ:function(){return o},FS:function(){return s},mj:function(){return a}});var n=r(86729),i=r(70977);function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];return e&&e.length&&e.forEach(function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments;(0,i.kG)(r&&1===r.length,39);var n=r[0];(0,i.kG)(n.name&&"if"===n.name.value,40);var o=n.value;(0,i.kG)(o&&("Variable"===o.kind||"BooleanValue"===o.kind),41),t.push({directive:e,ifArgument:n})}}),t}(r).every(function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(0,i.kG)(void 0!==(o=t&&t[n.value.name.value]),38):o=n.value.value,"skip"===r.name.value?!o:o})}function s(e,t){return function(e){var t=[];return(0,n.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some(function(t){return e.indexOf(t)>-1})}function a(e){return e&&s(["client"],e)&&s(["export"],e)}},50216:function(e,t,r){"use strict";r.d(t,{Yk:function(){return o},F:function(){return s},hi:function(){return a}});var n=r(48399),i=r(70977);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new i.ej(42);"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&((0,i.kG)(1===o.length,43),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function s(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function a(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return(0,i.kG)(r,44),r;default:return null}}},83368:function(e,t,r){"use strict";r.d(t,{A$:function(){return o},$H:function(){return s},rY:function(){return a},kU:function(){return u},iW:function(){return c},pD:function(){return l},p$:function(){return f},O4:function(){return p}});var n=r(70977),i=r(30534);function o(e){(0,n.kG)(e&&"Document"===e.kind,45);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new n.ej(46);return e});return(0,n.kG)(t.length<=1,47),e}function s(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function a(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=s(e);return(0,n.kG)(t&&"query"===t.operation,48),t}function l(e){(0,n.kG)("Document"===e.kind,49),(0,n.kG)(e.definitions.length<=1,50);var t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,51),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var s=i[r];if("OperationDefinition"===s.kind){var a=s.operation;if("query"===a||"mutation"===a||"subscription"===a)return s}"FragmentDefinition"===s.kind&&!t&&(t=s)}if(t)return t;throw new n.ej(52)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},30534:function(e,t,r){"use strict";r.d(t,{kQ:function(){return a},Yk:function(){return u},vb:function(){return c},vf:function(){return l},PT:function(){return p},NC:function(){return h},u2:function(){return d},qw:function(){return y},My:function(){return v},Ao:function(){return m}});var n=r(75616),i=r.n(n),o=r(70977),s=r(50216);function a(e){return{__ref:String(e)}}function u(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function c(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return c(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r))e[t.value]=(n||{})[r.name.value];else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return c(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new o.ej(53);e[t.value]=null}}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){return c(r[e.name.value],n.name,n.value,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){return c(n,e.name,e.value,t)})),p(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export"];function p(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var o={};return n.forEach(function(e){o[e]=t[e]}),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var s=e;if(t){var a=i()(t);s+="("+a+")"}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?s+="@"+e+"("+JSON.stringify(r[e])+")":s+="@"+e)}),s}function h(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return c(r,e.name,e.value,t)}),r}return null}function d(e){return e.alias?e.alias.value:e.name.value}function y(e,t,r){if("string"==typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(v(o)){if("__typename"===o.name.value)return e[d(o)]}else{var a=y(e,(0,s.hi)(o,r).selectionSet,r);if("string"==typeof a)return a}}}function v(e){return"Field"===e.kind}function m(e){return"InlineFragment"===e.kind}},52107:function(e,t,r){"use strict";r.d(t,{Gw:function(){return d},aL:function(){return g},ob:function(){return b},Fo:function(){return v}});var n=r(48399),i=r(86729),o=(r(70977),r(83368));function s(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var a=r(30534),u=r(50216),c={kind:"Field",name:{kind:"Name",value:"__typename"}};function l(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&l(t[e.name.value],t)})}function f(e){return l((0,o.$H)(e)||(0,o.pD)(e),(0,u.F)((0,o.kU)(e)))?null:e}function p(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function h(e,t){var r=Object.create(null),o=[],a=Object.create(null),u=[],c=f((0,i.Vn)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(p(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&o.push({name:e.value.name.value})}),t.selectionSet&&m(t.selectionSet).forEach(function(e){u.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){a[e.name.value]=!0}},Directive:{enter:function(t){if(p(e)(t))return null}}}));return c&&s(o,function(e){return!!e.name&&!r[e.name]}).length&&(c=function(e,t){var r=function(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return f((0,i.Vn)(t,{OperationDefinition:{enter:function(t){return(0,n.pi)((0,n.pi)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments&&t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}(o,c)),c&&s(u,function(e){return!!e.name&&!a[e.name]}).length&&(c=function(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return f((0,i.Vn)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(u,c)),c}function d(e){return(0,i.Vn)((0,o.A$)(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var i=e.selections;if(i&&!i.some(function(e){return(0,a.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var o=r;if(!((0,a.My)(o)&&o.directives&&o.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.pr)(i,[c])})}}}}})}d.added=function(e){return e===c};var y={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function v(e){return h([y],(0,o.A$)(e))}function m(e){var t=[];return e.selections.forEach(function(e){((0,a.My)(e)||(0,a.Ao)(e))&&e.selectionSet?m(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function g(e){return"query"===(0,o.p$)(e).operation?e:(0,i.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function b(e){(0,o.A$)(e);var t=h([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,i.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return(0,a.My)(e)&&"__typename"===e.name.value}))return null}}})),t}},62954:function(e,t,r){"use strict";function n(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}r.d(t,{p:function(){return n}})},1313:function(e,t,r){"use strict";r.d(t,{D:function(){return o}});var n=r(42677),i=r.n(n);function o(e){function t(t){Object.defineProperty(e,t,{value:i()})}return"function"==typeof Symbol&&Symbol.species&&t(Symbol.species),t("@@species"),e}},83403:function(e,t,r){"use strict";r.d(t,{g7:function(){return u}});var n=null,i={},o=1,s="@wry/context:Slot",a=Array,u=a[s]||function(){var e=function(){function e(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=n;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1},e.prototype.getValue=function(){if(this.hasValue())return n.slots[this.id]},e.prototype.withValue=function(e,t,r,i){var o,s=((o={__proto__:null})[this.id]=e,o),a=n;n={parent:a,slots:s};try{return t.apply(i,r)}finally{n=a}},e.bind=function(e){var t=n;return function(){var r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}},e.noContext=function(e,t,r){if(!n)return e.apply(r,t);var i=n;try{return n=null,e.apply(r,t)}finally{n=i}},e}();try{Object.defineProperty(a,s,{value:a[s]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}()},38546:function(e,t,r){"use strict";r.d(t,{D:function(){return u}});var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,s=Function.prototype.toString,a=new Map;function u(e,t){try{return c(e,t)}finally{a.clear()}}function c(e,t){if(e===t)return!0;var r=i.call(e);if(r!==i.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(h(e,t))return!0;var n=l(e),a=l(t),u=n.length;if(u!==a.length)return!1;for(var f=0;f<u;++f)if(!o.call(t,n[f]))return!1;for(f=0;f<u;++f){var d=n[f];if(!c(e[d],t[d]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(h(e,t))return!0;for(var y=e.entries(),v="[object Map]"===r;;){var m=y.next();if(m.done)break;var g=m.value,b=g[0],w=g[1];if(!t.has(b)||v&&!c(w,t.get(b)))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]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var E=e.byteLength;if(E===t.byteLength)for(;E--&&e[E]===t[E];);return-1===E;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var S=s.call(e);return S===s.call(t)&&!function(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(S,p)}return!1}function l(e){return Object.keys(e).filter(f,e)}function f(e){return void 0!==this[e]}var p="{ [native code] }";function h(e,t){var r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}},98007:function(e,t,r){"use strict";r.r(t),r.d(t,{addTypenameToDocument:function(){return le},argumentsObjectFromField:function(){return I},assign:function(){return G},buildQueryFromSelectionSet:function(){return be},canUseWeakMap:function(){return Ee},checkDocument:function(){return W},cloneDeep:function(){return _e},createFragmentMap:function(){return te},getDefaultValues:function(){return re},getDirectiveInfoFromField:function(){return q},getDirectiveNames:function(){return U},getDirectivesFromDocument:function(){return ye},getEnv:function(){return Ae},getFragmentDefinition:function(){return X},getFragmentDefinitions:function(){return Z},getFragmentQueryDocument:function(){return z},getInclusionDirectives:function(){return Q},getMainDefinition:function(){return ee},getMutationDefinition:function(){return H},getOperationDefinition:function(){return K},getOperationDefinitionOrDie:function(){return Y},getOperationName:function(){return J},getQueryDefinition:function(){return $},getStoreKeyName:function(){return R},graphQLResultHasError:function(){return xe},hasClientExports:function(){return V},hasDirectives:function(){return F},isDevelopment:function(){return Ie},isEnv:function(){return Te},isEqual:function(){return b},isField:function(){return C},isIdValue:function(){return P},isInlineFragment:function(){return x},isJsonValue:function(){return D},isNumberValue:function(){return _},isProduction:function(){return Re},isScalarValue:function(){return S},isTest:function(){return ke},maybeDeepFreeze:function(){return Ne},mergeDeep:function(){return Me},mergeDeepArray:function(){return Le},removeArgumentsFromDocument:function(){return ve},removeClientSetsFromDocument:function(){return we},removeConnectionDirectiveFromDocument:function(){return pe},removeDirectivesFromDocument:function(){return ce},removeFragmentSpreadFromDocument:function(){return me},resultKeyNameFromField:function(){return k},shouldInclude:function(){return j},storeKeyNameFromField:function(){return A},stripSymbols:function(){return Be},toIdValue:function(){return N},tryFunctionOrLogError:function(){return Ce},valueFromNode:function(){return L},valueToObjectRepresentation:function(){return O},variablesInOperation:function(){return ne},warnOnceInDevelopment:function(){return Ve}});var n,i=r(86729),o=r(48399),s="Invariant Violation",a=Object.setPrototypeOf,u=void 0===a?function(e,t){return e.__proto__=t,e}:a,c=function(e){function t(r){void 0===r&&(r=s);var n=e.call(this,"number"==typeof r?s+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=s,u(n,t.prototype),n}return(0,o.ZT)(t,e),t}(Error);function l(e,t){if(!e)throw new c(t)}function f(e){return function(){return console[e].apply(console,arguments)}}(n=l||(l={})).warn=f("warn"),n.error=f("error");var p={env:{}};if("object"==typeof process)p=process;else try{Function("stub","process = stub")(p)}catch(n){}var h=r(75616),d=r.n(h),y=Object.prototype,v=y.toString,m=y.hasOwnProperty,g=new Map;function b(e,t){try{return w(e,t)}finally{g.clear()}}function w(e,t){if(e===t)return!0;var r=v.call(e);if(r!==v.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(E(e,t))return!0;var n=Object.keys(e),i=Object.keys(t),o=n.length;if(o!==i.length)return!1;for(var s=0;s<o;++s)if(!m.call(t,n[s]))return!1;for(s=0;s<o;++s){var a=n[s];if(!w(e[a],t[a]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(E(e,t))return!0;for(var u=e.entries(),c="[object Map]"===r;;){var l=u.next();if(l.done)break;var f=l.value,p=f[0],h=f[1];if(!t.has(p)||c&&!w(h,t.get(p)))return!1}return!0}return!1}function E(e,t){var r=g.get(e);if(r){if(r.has(t))return!0}else g.set(e,r=new Set);return r.add(t),!1}function S(e){return["StringValue","BooleanValue","EnumValue"].indexOf(e.kind)>-1}function _(e){return["IntValue","FloatValue"].indexOf(e.kind)>-1}function O(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return O(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r))e[t.value]=(n||{})[r.name.value];else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return O(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new c(17);e[t.value]=null}}function A(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){return O(r[e.name.value],n.name,n.value,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){return O(n,e.name,e.value,t)})),R(e.name.value,n,r)}var T=["connection","include","skip","client","rest","export"];function R(e,t,r){if(r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=t,o={};return n.forEach(function(e){o[e]=i[e]}),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var s=e;if(t){var a=d()(t);s+="("+a+")"}return r&&Object.keys(r).forEach(function(e){-1===T.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?s+="@"+e+"("+JSON.stringify(r[e])+")":s+="@"+e)}),s}function I(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return O(r,e.name,e.value,t)}),r}return null}function k(e){return e.alias?e.alias.value:e.name.value}function C(e){return"Field"===e.kind}function x(e){return"InlineFragment"===e.kind}function P(e){return e&&"id"===e.type&&"boolean"==typeof e.generated}function N(e,t){return void 0===t&&(t=!1),(0,o.pi)({type:"id",generated:t},"string"==typeof e?{id:e,typename:void 0}:e)}function D(e){return null!=e&&"object"==typeof e&&"json"===e.type}function M(e){throw new c(18)}function L(e,t){switch(void 0===t&&(t=M),e.kind){case"Variable":return t(e);case"NullValue":return null;case"IntValue":return parseInt(e.value,10);case"FloatValue":return parseFloat(e.value);case"ListValue":return e.values.map(function(e){return L(e,t)});case"ObjectValue":for(var r={},n=0,i=e.fields;n<i.length;n++){var o=i[n];r[o.name.value]=L(o.value,t)}return r;default:return e.value}}function q(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach(function(e){r[e.name.value]=I(e,t)}),r}return null}function j(e,t){return void 0===t&&(t={}),Q(e.directives).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?l(void 0!==(i=t[n.value.name.value]),13):i=n.value.value,"skip"===r.name.value?!i:i})}function U(e){var t=[];return(0,i.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}function F(e,t){return U(t).some(function(t){return e.indexOf(t)>-1})}function V(e){return e&&F(["client"],e)&&F(["export"],e)}function B(e){var t=e.name.value;return"skip"===t||"include"===t}function Q(e){return e?e.filter(B).map(function(e){var t=e.arguments;l(t&&1===t.length,14);var r=t[0];l(r.name&&"if"===r.name.value,15);var n=r.value;return l(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}}):[]}function z(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new c(11);"FragmentDefinition"===e.kind&&n.push(e)}),void 0===r&&(l(1===n.length,12),r=n[0].name.value),(0,o.pi)((0,o.pi)({},e),{definitions:(0,o.pr)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})}function G(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){null==t||Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}function H(e){W(e);var t=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})[0];return l(t,1),t}function W(e){return l(e&&"Document"===e.kind,2),l(e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new c(3);return e}).length<=1,4),e}function K(e){return W(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function Y(e){var t=K(e);return l(t,5),t}function J(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null}function Z(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function $(e){var t=K(e);return l(t&&"query"===t.operation,6),t}function X(e){l("Document"===e.kind,7),l(e.definitions.length<=1,8);var t=e.definitions[0];return l("FragmentDefinition"===t.kind,9),t}function ee(e){W(e);for(var t,r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"===i.kind&&!t&&(t=i)}if(t)return t;throw new c(10)}function te(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function re(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter(function(e){return e.defaultValue}).map(function(e){var t={};return O(t,e.variable.name,e.defaultValue),t});return G.apply(void 0,(0,o.pr)([{}],t))}return{}}function ne(e){var t=new Set;if(e.variableDefinitions)for(var r=0,n=e.variableDefinitions;r<n.length;r++)t.add(n[r].variable.name.value);return t}function ie(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var oe={kind:"Field",name:{kind:"Name",value:"__typename"}};function se(e,t){return e.selectionSet.selections.every(function(e){return"FragmentSpread"===e.kind&&se(t[e.name.value],t)})}function ae(e){return se(K(e)||X(e),te(Z(e)))?null:e}function ue(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function ce(e,t){var r=Object.create(null),n=[],o=Object.create(null),s=[],a=ae((0,i.Vn)(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&e.some(function(e){return e.remove})&&t.directives&&t.directives.some(ue(e)))return t.arguments&&t.arguments.forEach(function(e){"Variable"===e.value.kind&&n.push({name:e.value.name.value})}),t.selectionSet&&ge(t.selectionSet).forEach(function(e){s.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(ue(e)(t))return null}}}));return a&&ie(n,function(e){return!r[e.name]}).length&&(a=ve(n,a)),a&&ie(s,function(e){return!o[e.name]}).length&&(a=me(s,a)),a}function le(e){return(0,i.Vn)(W(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var n=e.selections;if(n&&!n.some(function(e){return C(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=r;if(!(C(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return(0,o.pi)((0,o.pi)({},e),{selections:(0,o.pr)(n,[oe])})}}}}})}var fe={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function pe(e){return ce([fe],W(e))}function he(e,t,r){return void 0===r&&(r=!0),t&&t.selections&&t.selections.some(function(t){return de(e,t,r)})}function de(e,t,r){return void 0===r&&(r=!0),!C(t)||!!t.directives&&(t.directives.some(ue(e))||r&&he(e,t.selectionSet,r))}function ye(e,t){var r;return W(t),ae((0,i.Vn)(t,{SelectionSet:{enter:function(t,n,i,s){var a=s.join("-");if(!r||a===r||!a.startsWith(r)){if(t.selections){var u=t.selections.filter(function(t){return de(e,t)});return he(e,t,!1)&&(r=a),(0,o.pi)((0,o.pi)({},t),{selections:u})}return null}}}}))}function ve(e,t){var r=function(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return ae((0,i.Vn)(t,{OperationDefinition:{enter:function(t){return(0,o.pi)((0,o.pi)({},t),{variableDefinitions:t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})})})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function me(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return ae((0,i.Vn)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function ge(e){var t=[];return e.selections.forEach(function(e){(C(e)||x(e))&&e.selectionSet?ge(e.selectionSet).forEach(function(e){return t.push(e)}):"FragmentSpread"===e.kind&&t.push(e)}),t}function be(e){return"query"===ee(e).operation?e:(0,i.Vn)(e,{OperationDefinition:{enter:function(e){return(0,o.pi)((0,o.pi)({},e),{operation:"query"})}}})}function we(e){W(e);var t=ce([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=(0,i.Vn)(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return C(e)&&"__typename"===e.name.value}))return null}}})),t}var Ee="function"==typeof WeakMap&&!("object"==typeof navigator&&"ReactNative"===navigator.product),Se=Object.prototype.toString;function _e(e){return Oe(e,new Map)}function Oe(e,t){switch(Se.call(e)){case"[object Array]":if(t.has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach(function(e,n){r[n]=Oe(e,t)}),r;case"[object Object]":if(t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach(function(r){n[r]=Oe(e[r],t)}),n;default:return e}}function Ae(){return"undefined"!=typeof process?"production":"development"}function Te(e){return Ae()===e}function Re(){return!0===Te("production")}function Ie(){return!0===Te("development")}function ke(){return!0===Te("test")}function Ce(e){try{return e()}catch(t){console.error&&console.error(t)}}function xe(e){return e.errors&&e.errors.length}function Pe(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){null!==e[t]&&("object"==typeof e[t]||"function"==typeof e[t])&&!Object.isFrozen(e[t])&&Pe(e[t])}),e}function Ne(e){return!Ie()&&!ke()||"function"==typeof Symbol&&"string"==typeof Symbol("")?e:Pe(e)}var De=Object.prototype.hasOwnProperty;function Me(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Le(e)}function Le(e){var t=e[0]||{},r=e.length;if(r>1){var n=[];t=Ue(t,n);for(var i=1;i<r;++i)t=je(t,e[i],n)}return t}function qe(e){return null!==e&&"object"==typeof e}function je(e,t,r){return qe(t)&&qe(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=Ue(e,r)),Object.keys(t).forEach(function(n){var i=t[n];if(De.call(e,n)){var o=e[n];i!==o&&(e[n]=je(Ue(o,r),i,r))}else e[n]=i}),e):t}function Ue(e,t){return null!==e&&"object"==typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}var Fe=Object.create({});function Ve(e,t){void 0===t&&(t="warn"),!Re()&&!Fe[e]&&(ke()||(Fe[e]=!0),"error"===t?console.error(e):console.warn(e))}function Be(e){return JSON.parse(JSON.stringify(e))}},83280:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var u,c=r(43821),l=r(71352),f=r(9585),p=r(53408),h=r(85058),d=r(44226);t.USER_AGENT_HEADER="x-amz-user-agent",t.USER_AGENT="aws-amplify/"+d.version+(h.userAgent&&" ")+h.userAgent,function(e){e.NONE="NONE",e.API_KEY="API_KEY",e.AWS_IAM="AWS_IAM",e.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",e.OPENID_CONNECT="OPENID_CONNECT"}(u=t.AUTH_TYPE||(t.AUTH_TYPE={}));var y=function(e){function r(r){var n=e.call(this)||this;return n.link=t.authLink(r),n}return i(r,e),r.prototype.request=function(e,t){return this.link.request(e,t)},r}(c.ApolloLink);t.AuthLink=y;var v=function(e,r,n){var i=void 0===e?{header:"",value:""}:e,u=i.header,c=i.value;return s(void 0,void 0,void 0,function(){var e,i,s,l,f;return a(this,function(a){switch(a.label){case 0:return e=r.getContext(),i=o(o({},e.headers),((l={})[t.USER_AGENT_HEADER]=t.USER_AGENT,l)),u&&c?"function"!=typeof c?[3,2]:[4,c.call(void 0)]:[3,5];case 1:return s=a.sent(),[3,4];case 2:return[4,c];case 3:s=a.sent(),a.label=4;case 4:i=o(((f={})[u]=s,f),i),a.label=5;case 5:return r.setContext(o(o({},e),{headers:i})),[2,n(r)]}})})};t.authLink=function(e){var r=e.url,n=e.region,i=e.auth,l=(void 0===i?{}:i).type,h=e.auth;return new c.ApolloLink(function(e,i){return new c.Observable(function(c){var d,y;switch(l){case u.NONE:y=v(void 0,e,i);break;case u.AWS_IAM:var g=h.credentials;y=function(e,r,n){var i=e.credentials,u=e.region,c=e.url;return s(void 0,void 0,void 0,function(){var e,s,l,h,d,y,v,g,b,w,E,S,_;return a(this,function(a){switch(a.label){case 0:return e="appsync",s=r.getContext(),(l="function"==typeof i?i.call():i||{})&&"function"==typeof l.getPromise?[4,l.getPromise()]:[3,2];case 1:a.sent(),a.label=2;case 2:return[4,l];case 3:return h=a.sent(),d=h.accessKeyId,y=h.secretAccessKey,v=h.sessionToken,g=p.parse(c),b=g.host,w=g.path,E=o(o({},m(r,{})),{service:e,region:u,url:c,host:b,path:w}),S=f.Signer.sign(E,{access_key:d,secret_key:y,session_token:v}).headers,r.setContext(o(o({},s),{headers:o(o(o({},s.headers),S),(_={},_[t.USER_AGENT_HEADER]=t.USER_AGENT,_))})),[2,n(r)]}})})}({credentials:void 0===g?{}:g,region:n,url:r},e,i);break;case u.API_KEY:var b=h.apiKey;y=v({header:"X-Api-Key",value:void 0===b?"":b},e,i);break;case u.AMAZON_COGNITO_USER_POOLS:case u.OPENID_CONNECT:var w=h.jwtToken;y=v({header:"Authorization",value:void 0===w?"":w},e,i);break;default:throw new Error("Invalid AUTH_TYPE: "+h.type)}return y.then(function(e){d=e.subscribe({next:c.next.bind(c),error:c.error.bind(c),complete:c.complete.bind(c)})}),function(){d&&d.unsubscribe()}})})};var m=function(e,t){var r=e.query,n={operationName:e.operationName,variables:g(e.variables),query:l.print(r)};return o(o({body:JSON.stringify(n),method:"POST"},t),{headers:o({accept:"*/*","content-type":"application/json; charset=UTF-8"},t.headers)})},g=function(e){return Object.keys(e).filter(function(e){return!e.startsWith("@@")}).reduce(function(t,r){return t[r]=e[r],t},{})}},11984:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(83280);t.AuthLink=n.AuthLink,t.AUTH_TYPE=n.AUTH_TYPE,t.USER_AGENT_HEADER=n.USER_AGENT_HEADER,t.USER_AGENT=n.USER_AGENT,t.createAuthLink=function(e){return new n.AuthLink({url:e.url,region:e.region,auth:e.auth})};var i=r(9585);t.Signer=i.Signer},85058:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userAgent=""},9585:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(10365))},10365:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),global.Buffer=global.Buffer||r(2341).lW;var n=r(53408),i=r(18426).util.crypto,o=function(e,t,r){return void 0===r&&(r=""),i.lib.createHmac("sha256",e).update(t,"utf8").digest(r)},s=function(e){return e=e||"",i.createHash("sha256").update(e,"utf8").digest("hex")},a=function(e){return e&&0!==Object.keys(e).length?Object.keys(e).map(function(t){return{key:t.toLowerCase(),value:e[t]?e[t].trim().replace(/\s+/g," "):""}}).sort(function(e,t){return e.key<t.key?-1:1}).map(function(e){return e.key+":"+e.value}).join("\n")+"\n":""},u=function(e){return Object.keys(e).map(function(e){return e.toLowerCase()}).sort().join(";")},c=function(e,t,r){void 0===r&&(r=null),e.headers=e.headers||{};var i=(new Date).toISOString().replace(/[:-]|\.\d{3}/g,""),c=i.substr(0,8),l="AWS4-HMAC-SHA256",f=n.parse(e.url);e.headers.host=f.host,e.headers["x-amz-date"]=i,t.session_token&&(e.headers["X-Amz-Security-Token"]=t.session_token);var p=function(e){var t=n.parse(e.url);return[e.method||"/",t.path,t.query,a(e.headers),u(e.headers),s(e.body)].join("\n")}(e),h=function(e,t,r){return[e,t,r,"aws4_request"].join("/")}(c,(r=r||function(e){var t=(n.parse(e.url).host.match(/([^.]+)\.(?:([^.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===t[1]&&(t=t.reverse()),{service:e.service||t[0],region:e.region||t[1]}}(e)).region,r.service),d=function(e,t,r,n){return[e,r,n,s(t)].join("\n")}(l,p,i,h),y=function(e,t){return o(e,t,"hex")}(function(e,t,r){void 0===e&&(e="");var n=o("AWS4"+e,t),i=o(n,r.region),s=o(i,r.service);return o(s,"aws4_request")}(t.secret_key,c,r),d),v=function(e,t,r,n,i){return void 0===t&&(t=""),["AWS4-HMAC-SHA256 Credential="+t+"/"+r,"SignedHeaders="+n,"Signature="+i].join(", ")}(0,t.access_key,h,u(e.headers),y);return e.headers.Authorization=v,e},l=function(){function e(){}return e.sign=c,e}();t.Signer=l,t.default=l},37490:function(e,t,r){"use strict";var n=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var i=r(45597);t.CONTROL_EVENTS_KEY=i.CONTROL_EVENTS_KEY;var o=r(43821),s=r(98007),a=r(71797),u=r(34003);t.createSubscriptionHandshakeLink=function(e,t){var r,c;return"string"==typeof e?(r=t||o.createHttpLink({uri:e}),c=o.ApolloLink.from([new a.NonTerminatingLink("controlMessages",{link:new o.ApolloLink(function(e,t){return new o.Observable(function(t){var r,o=e.variables,s=i.CONTROL_EVENTS_KEY,a=o[s],u=n(o,["symbol"==typeof s?s:s+""]);return void 0!==a&&(e.variables=u),t.next(((r={})[i.CONTROL_EVENTS_KEY]=a,r)),function(){}})})}),new a.NonTerminatingLink("subsInfo",{link:r}),new i.SubscriptionHandshakeLink("subsInfo")])):(r=t||o.createHttpLink({uri:e.url}),c=new u.AppSyncRealTimeSubscriptionHandshakeLink(e)),o.ApolloLink.split(function(e){var t=s.getMainDefinition(e.query);return"OperationDefinition"===t.kind&&"subscription"===t.operation},c,r)}},71797:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var u=r(43821),c=r(42753),l=function(e){function t(t,r){var n=r.link,i=e.call(this)||this;return i.contextKey=t,i.link=n,i}return i(t,e),t.prototype.request=function(e,t){var r=this;return c.setContext(function(t,n){return s(r,void 0,void 0,function(){var t,r,i=this;return a(this,function(s){switch(s.label){case 0:return[4,new Promise(function(t,r){i.link.request(e).subscribe({next:t,error:r})})];case 1:return t=s.sent(),[2,o(o({},n),(r={},r[this.contextKey]=t,r))]}})})}).request(e,t)},t}(u.ApolloLink);t.NonTerminatingLink=l},34003:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var u=r(43821),c=r(94464),l=r(11984),f=r(17450),p=r(53408),h=r(86347),d=r(60103),y=r(89256),v=c.rootLogger.extend("subscriptions");t.CONTROL_EVENTS_KEY="@@controlEvents";var m=[400,401,403],g={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},b=3e5,w=function(e){function r(t){var r=t.url,n=t.region,i=t.auth,o=e.call(this)||this;return o.socketStatus=d.SOCKET_STATUS.CLOSED,o.keepAliveTimeout=b,o.subscriptionObserverMap=new Map,o.promiseArray=[],o.url=r,o.region=n,o.auth=i,o}return i(r,e),r.prototype.request=function(e){var r,n=this,i=e.query,c=e.variables,p=e.getContext(),y=p.controlMessages,v=t.CONTROL_EVENTS_KEY,m=(void 0===y?(r={},r[t.CONTROL_EVENTS_KEY]=void 0,r):y)[v],g=p.headers;return new u.Observable(function(e){if(n.url){var t=h.v4(),r={appSyncGraphqlEndpoint:n.url,authenticationType:n.auth.type,query:f.print(i),region:n.region,graphql_headers:function(){return g},variables:c,apiKey:n.auth.type===l.AUTH_TYPE.API_KEY?n.auth.apiKey:"",credentials:n.auth.type===l.AUTH_TYPE.AWS_IAM?n.auth.credentials:null,jwtToken:n.auth.type===l.AUTH_TYPE.AMAZON_COGNITO_USER_POOLS||n.auth.type===l.AUTH_TYPE.OPENID_CONNECT?n.auth.jwtToken:null};return n._startSubscriptionWithAWSAppSyncRealTime({options:r,observer:e,subscriptionId:t}),function(){return s(n,void 0,void 0,function(){return a(this,function(e){try{if(this._verifySubscriptionAlreadyStarted(t),this.subscriptionObserverMap.get(t).subscriptionState!==d.SUBSCRIPTION_STATUS.CONNECTED)throw new Error("Subscription has failed, starting to remove subscription.");this._sendUnsubscriptionMessage(t)}catch(r){return this._removeSubscriptionObserver(t),[2]}return[2]})})}}e.error({errors:[o({},new f.GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),e.complete()}).filter(function(e){var t=e.extensions,r=(void 0===t?{}:t).controlMsgType;return!0===m||!(void 0!==(void 0===r?void 0:r))})},r.prototype._verifySubscriptionAlreadyStarted=function(e){return s(this,void 0,void 0,function(){var t=this;return a(this,function(r){return this.subscriptionObserverMap.get(e).subscriptionState===d.SUBSCRIPTION_STATUS.PENDING?[2,new Promise(function(r,n){var i=t.subscriptionObserverMap.get(e);t.subscriptionObserverMap.set(e,{observer:i.observer,subscriptionState:i.subscriptionState,variables:i.variables,query:i.query,subscriptionReadyCallback:r,subscriptionFailedCallback:n})})]:[2]})})},r.prototype._sendUnsubscriptionMessage=function(e){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===d.SOCKET_STATUS.READY){var t=JSON.stringify({id:e,type:d.MESSAGE_TYPES.GQL_STOP});this.awsRealTimeSocket.send(t),this._removeSubscriptionObserver(e)}}catch(r){v({err:r})}},r.prototype._removeSubscriptionObserver=function(e){this.subscriptionObserverMap.delete(e),0===this.subscriptionObserverMap.size&&this._closeSocketWhenFlushed()},r.prototype._closeSocketWhenFlushed=function(){v("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},r.prototype._startSubscriptionWithAWSAppSyncRealTime=function(e){var t=e.options,r=e.observer,n=e.subscriptionId;return s(this,void 0,void 0,function(){var e,i,s,u,c,p,h,y,v,m,g,b,w,E,S,_,O,A,T,R,I,k,C,x=this;return a(this,function(a){switch(a.label){case 0:return e=t.appSyncGraphqlEndpoint,i=t.authenticationType,c=t.apiKey,p=t.region,y=void 0===(h=t.graphql_headers)?function(){return{}}:h,v=t.credentials,m=t.jwtToken,b={query:s=t.query,variables:u=t.variables},this.subscriptionObserverMap.set(n,{observer:r,query:s,variables:u,subscriptionState:g=d.SUBSCRIPTION_STATUS.PENDING,startAckTimeoutId:null}),w=JSON.stringify(b),S=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:c,appSyncGraphqlEndpoint:e,authenticationType:i,payload:w,canonicalUri:"",region:p,credentials:v,jwtToken:m})];case 1:return _=[o.apply(void 0,S.concat([a.sent()]))],[4,y()];case 2:E=o.apply(void 0,[o.apply(void 0,_.concat([a.sent()])),(C={},C[l.USER_AGENT_HEADER]=l.USER_AGENT,C)]),O={id:n,payload:{data:w,extensions:{authorization:o({},E)}},type:d.MESSAGE_TYPES.GQL_START},A=JSON.stringify(O),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:c,appSyncGraphqlEndpoint:e,authenticationType:i,region:p,credentials:v,jwtToken:m})];case 4:return a.sent(),[3,6];case 5:return T=a.sent(),r.error({errors:[o({},new f.GraphQLError("Connection failed: "+(void 0===(R=T.message)?"":R)))]}),r.complete(),"function"==typeof(I=(this.subscriptionObserverMap.get(n)||{}).subscriptionFailedCallback)&&I(),[2];case 6:return k=this.subscriptionObserverMap.get(n),this.subscriptionObserverMap.set(n,{observer:r,subscriptionState:g,variables:u,query:s,subscriptionReadyCallback:k.subscriptionReadyCallback,subscriptionFailedCallback:k.subscriptionFailedCallback,startAckTimeoutId:setTimeout(function(){x._timeoutStartSubscriptionAck.call(x,n)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(A),[2]}})})},r.prototype._initializeWebSocketConnection=function(e){var t=this,n=e.appSyncGraphqlEndpoint,i=e.authenticationType,o=e.apiKey,u=e.region,c=e.credentials,l=e.jwtToken;if(this.socketStatus!==d.SOCKET_STATUS.READY)return new Promise(function(e,f){return s(t,void 0,void 0,function(){var t,s,p,h,y,m,g,b;return a(this,function(a){switch(a.label){case 0:if(this.promiseArray.push({res:e,rej:f}),this.socketStatus!==d.SOCKET_STATUS.CLOSED)return[3,5];a.label=1;case 1:return a.trys.push([1,4,,5]),this.socketStatus=d.SOCKET_STATUS.CONNECTING,t=r._discoverAppSyncRealTimeEndpoint(this.url),s="{}",y=(h=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:i,payload:s,canonicalUri:"/connect",apiKey:o,appSyncGraphqlEndpoint:n,region:u,credentials:c,jwtToken:l})];case 2:return p=y.apply(h,[a.sent()]),m=Buffer.from(p).toString("base64"),g=Buffer.from(s).toString("base64"),[4,this._initializeRetryableHandshake({awsRealTimeUrl:t+"?header="+m+"&payload="+g})];case 3:return a.sent(),this.promiseArray.forEach(function(e){var t=e.res;v("Notifying connection successful"),t()}),this.socketStatus=d.SOCKET_STATUS.READY,this.promiseArray=[],[3,5];case 4:return b=a.sent(),this.promiseArray.forEach(function(e){return(0,e.rej)(b)}),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]}})})})},r.prototype._awsRealTimeHeaderBasedAuth=function(e){var t=e.authenticationType,r=e.payload,n=e.canonicalUri,i=e.appSyncGraphqlEndpoint,o=e.apiKey,u=e.region,c=e.credentials,l=e.jwtToken;return s(this,void 0,void 0,function(){var e,s,f;return a(this,function(a){switch(a.label){case 0:return e={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(s=e[t])?(v("Authentication type "+t+" not supported"),[2,{}]):(f=p.parse(i).host,[4,s({payload:r,canonicalUri:n,appSyncGraphqlEndpoint:i,apiKey:o,region:u,host:f,credentials:c,jwtToken:l})]);case 1:return[2,a.sent()]}})})},r.prototype._awsRealTimeOPENIDHeader=function(e){var t=e.host,r=e.jwtToken;return s(this,void 0,void 0,function(){var e,n;return a(this,function(i){switch(i.label){case 0:return e={},"function"!=typeof r?[3,2]:[4,r.call(void 0)];case 1:return n=i.sent(),[3,4];case 2:return[4,r];case 3:n=i.sent(),i.label=4;case 4:return[2,(e.Authorization=n,e.host=t,e)]}})})},r.prototype._awsRealTimeApiKeyHeader=function(e){var t=e.apiKey,r=e.host;return s(this,void 0,void 0,function(){var e,n;return a(this,function(i){return e=new Date,n=e.toISOString().replace(/[:\-]|\.\d{3}/g,""),[2,{host:r,"x-amz-date":n,"x-api-key":t}]})})},r.prototype._awsRealTimeIAMHeader=function(e){var t=e.payload,r=e.canonicalUri,n=e.appSyncGraphqlEndpoint,i=e.region,u=e.credentials;return s(this,void 0,void 0,function(){var e,s,c,f,p;return a(this,function(a){switch(a.label){case 0:return e={region:i,service:"appsync"},(s="function"==typeof u?u.call():u||{})&&"function"==typeof s.getPromise?[4,s.getPromise()]:[3,2];case 1:a.sent(),a.label=2;case 2:if(!s)throw new Error("No credentials");return[4,s];case 3:return c=a.sent(),f={access_key:c.accessKeyId,secret_key:c.secretAccessKey,session_token:c.sessionToken},p={url:""+n+r,body:t,method:"POST",headers:o({},g)},[2,l.Signer.sign(p,f,e).headers]}})})},r.prototype._initializeRetryableHandshake=function(e){var t=e.awsRealTimeUrl;return s(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return v("Initializaling retryable Handshake"),[4,y.jitteredExponentialRetry(this._initializeHandshake.bind(this),[{awsRealTimeUrl:t}])];case 1:return e.sent(),[2]}})})},r.prototype._initializeHandshake=function(e){var t=e.awsRealTimeUrl;return s(this,void 0,void 0,function(){var e,n,i=this;return a(this,function(o){switch(o.label){case 0:v("Initializing handshake "+t),o.label=1;case 1:return o.trys.push([1,4,,5]),[4,new Promise(function(e,n){var o=r.createWebSocket(t,"graphql-ws");o.onerror=function(){v("WebSocket connection error")},o.onclose=function(){n(new Error("Connection handshake error"))},o.onopen=function(){return i.awsRealTimeSocket=o,e()}})];case 2:return o.sent(),[4,new Promise(function(e,t){var r=!1;i.awsRealTimeSocket.onerror=function(e){v("WebSocket closed "+JSON.stringify(e))},i.awsRealTimeSocket.onclose=function(e){v("WebSocket closed "+e.reason),t(new Error(JSON.stringify(e)))},i.awsRealTimeSocket.onmessage=function(n){v("subscription message from AWS AppSyncRealTime: "+n.data+" ");var o=JSON.parse(n.data),s=o.type,a=o.payload,u=(void 0===a?{}:a).connectionTimeoutMs;if(s===d.MESSAGE_TYPES.GQL_CONNECTION_ACK)return r=!0,i.keepAliveTimeout=void 0===u?b:u,i.awsRealTimeSocket.onmessage=i._handleIncomingSubscriptionMessage.bind(i),i.awsRealTimeSocket.onerror=function(e){v(e),i._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},i.awsRealTimeSocket.onclose=function(e){v("WebSocket closed "+e.reason),i._errorDisconnect(d.CONTROL_MSG.CONNECTION_CLOSED)},void e("Cool, connected to AWS AppSyncRealTime");if(s===d.MESSAGE_TYPES.GQL_CONNECTION_ERROR){var c=o.payload,l=(void 0===c?{}:c).errors,f=(void 0===l?[]:l)[0],p=void 0===f?{}:f,h=p.errorType,y=p.errorCode;t({errorType:void 0===h?"":h,errorCode:void 0===y?0:y})}},i.awsRealTimeSocket.send(JSON.stringify({type:d.MESSAGE_TYPES.GQL_CONNECTION_INIT})),setTimeout((function(){r||t(new Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}).bind(i),15e3)})];case 3:return o.sent(),[3,5];case 4:throw e=o.sent(),n=e.errorType,m.indexOf(e.errorCode)>=0?new y.NonRetryableError(n):n?new Error(n):e;case 5:return[2]}})})},r.prototype._handleIncomingSubscriptionMessage=function(e){v("subscription message from AWS AppSync RealTime: "+e.data);var t=JSON.parse(e.data),r=t.id,n=void 0===r?"":r,i=t.payload,s=t.type,a=this.subscriptionObserverMap.get(n)||{},u=a.observer,c=void 0===u?null:u,l=a.query,p=void 0===l?"":l,h=a.variables,y=void 0===h?{}:h,m=a.startAckTimeoutId,g=void 0===m?0:m,b=a.subscriptionReadyCallback,w=void 0===b?null:b,E=a.subscriptionFailedCallback,S=void 0===E?null:E;if(v({id:n,observer:c,query:p,variables:y}),s===d.MESSAGE_TYPES.GQL_DATA&&i&&i.data)c?c.next(i):v("observer not found for id: "+n);else{if(s===d.MESSAGE_TYPES.GQL_START_ACK)return v("subscription ready for "+JSON.stringify({query:p,variables:y})),"function"==typeof w&&w(),clearTimeout(g),c?c.next({data:i,extensions:{controlMsgType:"CONNECTED"}}):v("observer not found for id: "+n),void this.subscriptionObserverMap.set(n,{observer:c,query:p,variables:y,startAckTimeoutId:null,subscriptionState:d.SUBSCRIPTION_STATUS.CONNECTED,subscriptionReadyCallback:w,subscriptionFailedCallback:S});if(s===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));s===d.MESSAGE_TYPES.GQL_ERROR&&(this.subscriptionObserverMap.set(n,{observer:c,query:p,variables:y,startAckTimeoutId:g,subscriptionReadyCallback:w,subscriptionFailedCallback:S,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),c.error({errors:[o({},new f.GraphQLError("Connection failed: "+JSON.stringify(i)))]}),clearTimeout(g),c.complete(),"function"==typeof S&&S())}},r.prototype._errorDisconnect=function(e){v("Disconnect error: "+e),this.subscriptionObserverMap.forEach(function(t){var r=t.observer;r&&!r.closed&&r.error({errors:[o({},new f.GraphQLError(e))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=d.SOCKET_STATUS.CLOSED},r.prototype._timeoutStartSubscriptionAck=function(e){var t=this.subscriptionObserverMap.get(e)||{},r=t.observer,n=t.query,i=t.variables;!r||(this.subscriptionObserverMap.set(e,{observer:r,query:n,variables:i,subscriptionState:d.SUBSCRIPTION_STATUS.FAILED}),r&&!r.closed&&(r.error({errors:[o({},new f.GraphQLError("Subscription timeout "+JSON.stringify({query:n,variables:i})))]}),r.complete()),v("timeoutStartSubscription",JSON.stringify({query:n,variables:i})))},r.createWebSocket=function(e,t){return new WebSocket(e,t)},r._discoverAppSyncRealTimeEndpoint=function(e){return e.replace("https://","wss://").replace("http://","ws://").replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta")},r}(u.ApolloLink);t.AppSyncRealTimeSubscriptionHandshakeLink=w},45597:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}},u=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var c=r(43821),l=r(94464),f=r(28715),p=r(98007),h=l.rootLogger.extend("subscriptions"),d=h.extend("mqtt");t.CONTROL_EVENTS_KEY="@@controlEvents";var y=function(e){function r(t){var r=e.call(this)||this;return r.topicObservers=new Map,r.clientObservers=new Map,r.onMessage=function(e,t,n){var i=JSON.parse(t),s=r.topicObservers.get(e),a=n.reduce(function(e,t){return e[t]=e[t]||null,e},i.data||{});h("Message received",{data:a,topic:e,observers:s}),s.forEach(function(e){try{e.next(o(o({},i),{data:a}))}catch(t){h(t)}})},r.subsInfoContextKey=t,r}return i(r,e),r.prototype.request=function(e){var r,n=this,i=e.getContext(),s=i[this.subsInfoContextKey],a=i.controlMessages,l=t.CONTROL_EVENTS_KEY,f=(void 0===a?(r={},r[t.CONTROL_EVENTS_KEY]=void 0,r):a)[l],p=s.extensions,h=(void 0===p?{subscription:{newSubscriptions:{},mqttConnections:[]}}:p).subscription,d=h.newSubscriptions,y=h.mqttConnections,v=s.errors,m=void 0===v?[]:v;if(m&&m.length)return new c.Observable(function(e){return e.error(new c.ApolloError({errorMessage:"Error during subscription handshake",extraInfo:{errors:m},graphQLErrors:m})),function(){}});var g=Object.keys(d).map(function(e){return d[e].topic}),b=new Set(g.filter(function(e){return n.topicObservers.has(e)})),w=new Set(g.filter(function(e){return!b.has(e)}));return new c.Observable(function(t){b.forEach(function(e){n.topicObservers.get(e).add(t);var r=Array.from(n.topicObservers.get(e)).find(function(){return!0}),i=Array.from(n.clientObservers).find(function(e){return e[1].observers.has(r)})[0];n.clientObservers.get(i).observers.add(t)});var r=y.filter(function(e){return e.topics.some(function(e){return w.has(e)})}).map(function(e){var t=e.topics,r=u(e,["topics"]);return o(o({},r),{topics:t.filter(function(e){return w.has(e)})})});return n.connectNewClients(r,t,e),function(){Array.from(n.clientObservers).filter(function(e){return e[1].observers.has(t)}).forEach(function(e){return n.clientObservers.get(e[0]).observers.delete(t)}),n.clientObservers.forEach(function(e){var t=e.client;0===e.observers.size&&(t.isConnected()&&t.disconnect(),n.clientObservers.delete(t.clientId))}),n.clientObservers=new Map(Array.from(n.clientObservers).filter(function(e){return e[1].observers.size>0})),n.topicObservers.forEach(function(e){return e.delete(t)}),n.topicObservers=new Map(Array.from(n.topicObservers).filter(function(e){return e[1].size>0}))}}).filter(function(e){var t=e.extensions,r=(void 0===t?{}:t).controlMsgType;return!0===f||!(void 0!==(void 0===r?void 0:r))})},r.prototype.connectNewClients=function(e,t,r){return s(this,void 0,void 0,function(){var n,i,o,s=this;return a(this,function(a){return n=p.getMainDefinition(r.query).selectionSet.selections.map(function(e){return e.name.value}),i=Promise.all(e.map(function(e){return s.connectNewClient(e,t,n)})),o=n.reduce(function(e,t){return e[t]=e[t]||null,e},{}),t.next({data:o,extensions:{controlMsgType:"CONNECTED",controlMsgInfo:{connectionInfo:e}}}),[2,i]})})},r.prototype.connectNewClient=function(e,t,r){return s(this,void 0,void 0,function(){var n,i,s,c,l=this;return a(this,function(a){switch(a.label){case 0:return s=e.topics,(c=new f.Client(i=e.url,n=e.client)).trace=d.bind(null,n),c.onConnectionLost=function(e){var t=e.errorCode,r=u(e,["errorCode"]);0!==t&&s.forEach(function(e){l.topicObservers.has(e)&&l.topicObservers.get(e).forEach(function(e){return e.error(o(o({},r),{permanent:!0}))})}),s.forEach(function(e){return l.topicObservers.delete(e)})},c.onMessageArrived=function(e){return l.onMessage(e.destinationName,e.payloadString,r)},[4,new Promise(function(e,t){c.connect({useSSL:0===i.indexOf("wss://"),mqttVersion:3,onSuccess:function(){return e(c)},onFailure:t})})];case 1:return a.sent(),[4,this.subscribeToTopics(c,s,t)];case 2:return a.sent(),[2,c]}})})},r.prototype.subscribeToTopics=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return n.subscribeToTopic(e,t,r)}))},r.prototype.subscribeToTopic=function(e,t,r){var n=this;return new Promise(function(i,o){e.subscribe(t,{onSuccess:function(){n.topicObservers.has(t)||n.topicObservers.set(t,new Set),n.clientObservers.has(e.clientId)||n.clientObservers.set(e.clientId,{client:e,observers:new Set}),n.topicObservers.get(t).add(r),n.clientObservers.get(e.clientId).observers.add(r),i(t)},onFailure:o})})},r}(c.ApolloLink);t.SubscriptionHandshakeLink=y},60103:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),(r=t.SUBSCRIPTION_STATUS||(t.SUBSCRIPTION_STATUS={}))[r.PENDING=0]="PENDING",r[r.CONNECTED=1]="CONNECTED",r[r.FAILED=2]="FAILED",function(e){e[e.CLOSED=0]="CLOSED",e[e.READY=1]="READY",e[e.CONNECTING=2]="CONNECTING"}(t.SOCKET_STATUS||(t.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"}(t.MESSAGE_TYPES||(t.MESSAGE_TYPES={})),function(e){e.CONNECTION_CLOSED="Connection closed",e.TIMEOUT_DISCONNECT="Timeout disconnect",e.SUBSCRIPTION_ACK="Subscription ack"}(t.CONTROL_MSG||(t.CONTROL_MSG={}))},94464:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(40913);t.rootLogger=n.default},40913:function(e,t,r){"use strict";var n=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n};Object.defineProperty(t,"__esModule",{value:!0});var i=r(65771),o=i.default("aws-appsync"),s=function(e){void 0===e&&(e="");var t=e?n(this.namespace.split(":"),[e]).join(":"):this.namespace,r=i.default(t);return r.extend=s.bind(r),r};o.extend=s.bind(o),t.default=o},89256:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(94464).rootLogger.extend("retry"),u=function(e){function t(t){var r=e.call(this,t)||this;return r.nonRetryable=!0,r}return i(t,e),t}(Error);function c(e,t,r,n){return void 0===n&&(n=1),o(this,void 0,void 0,function(){var i,o;return s(this,function(s){switch(s.label){case 0:a("Attempt #"+n+" for this vars: "+JSON.stringify(t)),s.label=1;case 1:return s.trys.push([1,3,,8]),[4,e.apply(void 0,t)];case 2:return s.sent(),[3,8];case 3:if(i=s.sent(),a("error "+i),function(e){return e&&e.nonRetryable}(i))throw a("non retryable error"),i;return o=r(n,t,i),a("retryIn ",o),!1===o?[3,6]:[4,new Promise(function(e){return setTimeout(e,o)})];case 4:return s.sent(),[4,c(e,t,r,n+1)];case 5:return[2,s.sent()];case 6:throw i;case 7:return[3,8];case 8:return[2]}})})}t.NonRetryableError=u,t.retry=c,t.jitteredExponentialRetry=function(e,t,r){return void 0===r&&(r=5e3),c(e,t,function(e){return function(t){var r=100*Math.pow(2,t)+100*Math.random();return!(r>e)&&r}}(r))}},28715:function(e){var t;e.exports=t=function(e){var r,n=e.localStorage||(r={},{setItem:function(e,t){r[e]=t},getItem:function(e){return r[e]},removeItem:function(e){delete r[e]}}),i=1,o=2,s=3,a=4,u=5,c=6,l=7,f=8,p=9,h=10,d=11,y=12,v=13,m=14,g=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r)){var n="Unknown property, "+r+". Valid properties are:";for(var i in t)t.hasOwnProperty(i)&&(n=n+" "+i);throw new Error(n)}if(typeof e[r]!==t[r])throw new Error(S(w.INVALID_TYPE,[typeof e[r],r]))}},b=function(e,t){return function(){return e.apply(t,arguments)}},w={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},E={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},S=function(e,t){var r=e.text;if(t)for(var n,i,o=0;o<t.length;o++)if((i=r.indexOf(n="{"+o+"}"))>0){var s=r.substring(0,i),a=r.substring(i+n.length);r=s+t[o]+a}return r},_=[0,6,77,81,73,115,100,112,3],O=[0,4,77,81,84,84,4],A=function(e,t){for(var r in this.type=e,t)t.hasOwnProperty(r)&&(this[r]=t[r])};function T(e,r){var n=r,i=e[r],f=i>>4,h=i&=15;r+=1;var y,v=0,m=1;do{if(r==e.length)return[null,n];v+=(127&(y=e[r++]))*m,m*=128}while(0!=(128&y));var g=r+v;if(g>e.length)return[null,n];var b=new A(f);switch(f){case o:1&e[r++]&&(b.sessionPresent=!0),b.returnCode=e[r++];break;case s:var w=h>>1&3,E=k(e,r),S=P(e,r+=2,E);r+=E,w>0&&(b.messageIdentifier=k(e,r),r+=2);var _=new t.Message(e.subarray(r,g));1==(1&h)&&(_.retained=!0),8==(8&h)&&(_.duplicate=!0),_.qos=w,_.destinationName=S,b.payloadMessage=_;break;case a:case u:case c:case l:case d:b.messageIdentifier=k(e,r);break;case p:b.messageIdentifier=k(e,r),b.returnCode=e.subarray(r+=2,g)}return[b,g]}function R(e,t,r){return t[r++]=e>>8,t[r++]=e%256,r}function I(e,t,r,n){return x(e,r,n=R(t,r,n)),n+t}function k(e,t){return 256*e[t]+e[t+1]}function C(e){for(var t=0,r=0;r<e.length;r++){var n=e.charCodeAt(r);n>2047?(55296<=n&&n<=56319&&(r++,t++),t+=3):n>127?t+=2:t++}return t}function x(e,t,r){for(var n=r,i=0;i<e.length;i++){var o=e.charCodeAt(i);if(55296<=o&&o<=56319){var s=e.charCodeAt(++i);if(isNaN(s))throw new Error(S(w.MALFORMED_UNICODE,[o,s]));o=s-56320+(o-55296<<10)+65536}o<=127?t[n++]=o:o<=2047?(t[n++]=o>>6&31|192,t[n++]=63&o|128):o<=65535?(t[n++]=o>>12&15|224,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>18&7|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t}function P(e,t,r){for(var n,i="",o=t;o<t+r;){var s=e[o++];if(s<128)n=s;else{var a=e[o++]-128;if(a<0)throw new Error(S(w.MALFORMED_UTF,[s.toString(16),a.toString(16),""]));if(s<224)n=64*(s-192)+a;else{var u=e[o++]-128;if(u<0)throw new Error(S(w.MALFORMED_UTF,[s.toString(16),a.toString(16),u.toString(16)]));if(s<240)n=4096*(s-224)+64*a+u;else{var c=e[o++]-128;if(c<0)throw new Error(S(w.MALFORMED_UTF,[s.toString(16),a.toString(16),u.toString(16),c.toString(16)]));if(!(s<248))throw new Error(S(w.MALFORMED_UTF,[s.toString(16),a.toString(16),u.toString(16),c.toString(16)]));n=262144*(s-240)+4096*a+64*u+c}}}n>65535&&(n-=65536,i+=String.fromCharCode(55296+(n>>10)),n=56320+(1023&n)),i+=String.fromCharCode(n)}return i}A.prototype.encode=function(){var e,t=(15&this.type)<<4,r=0,n=[],o=0;switch(void 0!==this.messageIdentifier&&(r+=2),this.type){case i:switch(this.mqttVersion){case 3:r+=_.length+3;break;case 4:r+=O.length+3}r+=C(this.clientId)+2,void 0!==this.willMessage&&(r+=C(this.willMessage.destinationName)+2,(e=this.willMessage.payloadBytes)instanceof Uint8Array||(e=new Uint8Array(u)),r+=e.byteLength+2),void 0!==this.userName&&(r+=C(this.userName)+2),void 0!==this.password&&(r+=C(this.password)+2);break;case f:t|=2;for(var a=0;a<this.topics.length;a++)n[a]=C(this.topics[a]),r+=n[a]+2;r+=this.requestedQos.length;break;case h:for(t|=2,a=0;a<this.topics.length;a++)n[a]=C(this.topics[a]),r+=n[a]+2;break;case c:t|=2;break;case s:this.payloadMessage.duplicate&&(t|=8),t=t|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(t|=1),r+=(o=C(this.payloadMessage.destinationName))+2;var u=this.payloadMessage.payloadBytes;r+=u.byteLength,u instanceof ArrayBuffer?u=new Uint8Array(u):u instanceof Uint8Array||(u=new Uint8Array(u.buffer))}var l=function(e){var t=new Array(1),r=0;do{var n=e%128;(e>>=7)>0&&(n|=128),t[r++]=n}while(e>0&&r<4);return t}(r),p=l.length+1,d=new ArrayBuffer(r+p),y=new Uint8Array(d);if(y[0]=t,y.set(l,1),this.type==s)p=I(this.payloadMessage.destinationName,o,y,p);else if(this.type==i){switch(this.mqttVersion){case 3:y.set(_,p),p+=_.length;break;case 4:y.set(O,p),p+=O.length}var v=0;this.cleanSession&&(v=2),void 0!==this.willMessage&&(v|=4,v|=this.willMessage.qos<<3,this.willMessage.retained&&(v|=32)),void 0!==this.userName&&(v|=128),void 0!==this.password&&(v|=64),y[p++]=v,p=R(this.keepAliveInterval,y,p)}switch(void 0!==this.messageIdentifier&&(p=R(this.messageIdentifier,y,p)),this.type){case i:p=I(this.clientId,C(this.clientId),y,p),void 0!==this.willMessage&&(p=I(this.willMessage.destinationName,C(this.willMessage.destinationName),y,p),p=R(e.byteLength,y,p),y.set(e,p),p+=e.byteLength),void 0!==this.userName&&(p=I(this.userName,C(this.userName),y,p)),void 0!==this.password&&(p=I(this.password,C(this.password),y,p));break;case s:y.set(u,p);break;case f:for(a=0;a<this.topics.length;a++)p=I(this.topics[a],n[a],y,p),y[p++]=this.requestedQos[a];break;case h:for(a=0;a<this.topics.length;a++)p=I(this.topics[a],n[a],y,p)}return d};var N=function(e,t){this._client=e,this._keepAliveInterval=1e3*t,this.isReset=!1;var r=new A(y).encode(),n=function(e){return function(){return i.apply(e)}},i=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(w.PING_TIMEOUT.code,S(w.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)}},D=function(e,t,r,n){var i,o,s;t||(t=30),this.timeout=setTimeout((i=r,o=e,s=n,function(){return i.apply(o,s)}),1e3*t),this.cancel=function(){clearTimeout(this.timeout)}},M=function(t,r,i,o,s){if(!("WebSocket"in e)||null===e.WebSocket)throw new Error(S(w.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in e)||null===e.ArrayBuffer)throw new Error(S(w.UNSUPPORTED,["ArrayBuffer"]));for(var a in this._trace("Paho.Client",t,r,i,o,s),this.host=r,this.port=i,this.path=o,this.uri=t,this.clientId=s,this._wsuri=null,this._localKey=r+":"+i+("/mqtt"!=o?":"+o:"")+":"+s+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,n)(0===a.indexOf("Sent:"+this._localKey)||0===a.indexOf("Received:"+this._localKey))&&this.restore(a)};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(e){var t=this._traceMask(e,"password");if(this._trace("Client.connect",t,this.socket,this.connected),this.connected)throw new Error(S(w.INVALID_STATE,["already connected"]));if(this.socket)throw new Error(S(w.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=e,this._reconnectInterval=1,this._reconnecting=!1,e.uris?(this.hostIndex=0,this._doConnect(e.uris[0])):this._doConnect(this.uri)},M.prototype.subscribe=function(e,t){if(this._trace("Client.subscribe",e,t),!this.connected)throw new Error(S(w.INVALID_STATE,["not connected"]));var r=new A(f);r.topics=[e],r.requestedQos=void 0!==t.qos?[t.qos]:[0],t.onSuccess&&(r.onSuccess=function(e){t.onSuccess({invocationContext:t.invocationContext,grantedQos:e})}),t.onFailure&&(r.onFailure=function(e){t.onFailure({invocationContext:t.invocationContext,errorCode:e,errorMessage:S(e)})}),t.timeout&&(r.timeOut=new D(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:w.SUBSCRIBE_TIMEOUT.code,errorMessage:S(w.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(r),this._schedule_message(r)},M.prototype.unsubscribe=function(e,t){if(this._trace("Client.unsubscribe",e,t),!this.connected)throw new Error(S(w.INVALID_STATE,["not connected"]));var r=new A(h);r.topics=[e],t.onSuccess&&(r.callback=function(){t.onSuccess({invocationContext:t.invocationContext})}),t.timeout&&(r.timeOut=new D(this,t.timeout,t.onFailure,[{invocationContext:t.invocationContext,errorCode:w.UNSUBSCRIBE_TIMEOUT.code,errorMessage:S(w.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(r),this._schedule_message(r)},M.prototype.send=function(e){this._trace("Client.send",e);var t=new A(s);if(t.payloadMessage=e,this.connected)e.qos>0?this._requires_ack(t):this.onMessageDelivered&&(this._notify_msg_sent[t]=this.onMessageDelivered(t.payloadMessage)),this._schedule_message(t);else{if(!this._reconnecting||!this.disconnectedPublishing)throw new Error(S(w.INVALID_STATE,["not connected"]));if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw new Error(S(w.BUFFER_FULL,[this.disconnectedBufferSize]));e.qos>0?this._requires_ack(t):(t.sequence=++this._sequence,this._buffered_msg_queue.unshift(t))}},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(S(w.INVALID_STATE,["not connecting or connected"]));var e=new A(m);this._notify_msg_sent[e]=b(this._disconnected,this),this._schedule_message(e)},M.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var e in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",e,this._sentMessages[e]);for(var e in this._receivedMessages)this._trace("_receivedMessages ",e,this._receivedMessages[e]);return this._traceBuffer}},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(e){if(this.connectOptions.useSSL){var t=e.split(":");t[0]="wss",e=t.join(":")}this._wsuri=e,this.connected=!1,this.socket=this.connectOptions.mqttVersion<4?new WebSocket(e,["mqttv3.1"]):new WebSocket(e,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=b(this._on_socket_open,this),this.socket.onmessage=b(this._on_socket_message,this),this.socket.onerror=b(this._on_socket_error,this),this.socket.onclose=b(this._on_socket_close,this),this.sendPinger=new N(this,this.connectOptions.keepAliveInterval),this.receivePinger=new N(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new D(this,this.connectOptions.timeout,this._disconnected,[w.CONNECT_TIMEOUT.code,S(w.CONNECT_TIMEOUT)])},M.prototype._schedule_message=function(e){this._msg_queue.unshift(e),this.connected&&this._process_queue()},M.prototype.store=function(e,t){var r={type:t.type,messageIdentifier:t.messageIdentifier,version:1};switch(t.type){case s:t.pubRecReceived&&(r.pubRecReceived=!0),r.payloadMessage={};for(var i="",o=t.payloadMessage.payloadBytes,a=0;a<o.length;a++)o[a]<=15?i=i+"0"+o[a].toString(16):i+=o[a].toString(16);r.payloadMessage.payloadHex=i,r.payloadMessage.qos=t.payloadMessage.qos,r.payloadMessage.destinationName=t.payloadMessage.destinationName,t.payloadMessage.duplicate&&(r.payloadMessage.duplicate=!0),t.payloadMessage.retained&&(r.payloadMessage.retained=!0),0===e.indexOf("Sent:")&&(void 0===t.sequence&&(t.sequence=++this._sequence),r.sequence=t.sequence);break;default:throw Error(S(w.INVALID_STORED_DATA,[e+this._localKey+t.messageIdentifier,r]))}n.setItem(e+this._localKey+t.messageIdentifier,JSON.stringify(r))},M.prototype.restore=function(e){var r=n.getItem(e),i=JSON.parse(r),o=new A(i.type,i);switch(i.type){case s:for(var a=i.payloadMessage.payloadHex,u=new ArrayBuffer(a.length/2),c=new Uint8Array(u),l=0;a.length>=2;){var f=parseInt(a.substring(0,2),16);a=a.substring(2,a.length),c[l++]=f}var p=new t.Message(c);p.qos=i.payloadMessage.qos,p.destinationName=i.payloadMessage.destinationName,i.payloadMessage.duplicate&&(p.duplicate=!0),i.payloadMessage.retained&&(p.retained=!0),o.payloadMessage=p;break;default:throw Error(S(w.INVALID_STORED_DATA,[e,r]))}0===e.indexOf("Sent:"+this._localKey)?(o.payloadMessage.duplicate=!0,this._sentMessages[o.messageIdentifier]=o):0===e.indexOf("Received:"+this._localKey)&&(this._receivedMessages[o.messageIdentifier]=o)},M.prototype._process_queue=function(){for(var e=null;e=this._msg_queue.pop();)this._socket_send(e),this._notify_msg_sent[e]&&(this._notify_msg_sent[e](),delete this._notify_msg_sent[e])},M.prototype._requires_ack=function(e){var t=Object.keys(this._sentMessages).length;if(t>this.maxMessageIdentifier)throw Error("Too many messages:"+t);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;e.messageIdentifier=this._message_identifier,this._sentMessages[e.messageIdentifier]=e,e.type===s&&this.store("Sent:",e),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},M.prototype._on_socket_open=function(){var e=new A(i,this.connectOptions);e.clientId=this.clientId,this._socket_send(e)},M.prototype._on_socket_message=function(e){this._trace("Client._on_socket_message",e.data);for(var t=this._deframeMessages(e.data),r=0;r<t.length;r+=1)this._handleMessage(t[r])},M.prototype._deframeMessages=function(e){var t=new Uint8Array(e),r=[];if(this.receiveBuffer){var n=new Uint8Array(this.receiveBuffer.length+t.length);n.set(this.receiveBuffer),n.set(t,this.receiveBuffer.length),t=n,delete this.receiveBuffer}try{for(var i=0;i<t.length;){var o=T(t,i),s=o[0];if(i=o[1],null===s)break;r.push(s)}i<t.length&&(this.receiveBuffer=t.subarray(i))}catch(u){var a="undefined"==u.hasOwnProperty("stack")?u.stack.toString():"No Error Stack Available";return void this._disconnected(w.INTERNAL_ERROR.code,S(w.INTERNAL_ERROR,[u.message,a]))}return r},M.prototype._handleMessage=function(e){this._trace("Client._handleMessage",e);try{switch(e.type){case o:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var t in this._sentMessages)n.removeItem("Sent:"+this._localKey+(T=this._sentMessages[t]).messageIdentifier);for(var t in this._sentMessages={},this._receivedMessages)n.removeItem("Received:"+this._localKey+(_=this._receivedMessages[t]).messageIdentifier);this._receivedMessages={}}if(0!==e.returnCode){this._disconnected(w.CONNACK_RETURNCODE.code,S(w.CONNACK_RETURNCODE,[e.returnCode,E[e.returnCode]]));break}this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);var r=[];for(var i in this._sentMessages)this._sentMessages.hasOwnProperty(i)&&r.push(this._sentMessages[i]);if(this._buffered_msg_queue.length>0)for(var f=null;f=this._buffered_msg_queue.pop();)r.push(f),this.onMessageDelivered&&(this._notify_msg_sent[f]=this.onMessageDelivered(f.payloadMessage));r=r.sort(function(e,t){return e.sequence-t.sequence});for(var h=0,y=r.length;h<y;h++)if((T=r[h]).type==s&&T.pubRecReceived){var g=new A(c,{messageIdentifier:T.messageIdentifier});this._schedule_message(g)}else this._schedule_message(T);this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var b=!1;this._reconnecting&&(b=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(b,this._wsuri),this._process_queue();break;case s:this._receivePublish(e);break;case a:(T=this._sentMessages[e.messageIdentifier])&&(delete this._sentMessages[e.messageIdentifier],n.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(T.payloadMessage));break;case u:(T=this._sentMessages[e.messageIdentifier])&&(T.pubRecReceived=!0,g=new A(c,{messageIdentifier:e.messageIdentifier}),this.store("Sent:",T),this._schedule_message(g));break;case c:var _=this._receivedMessages[e.messageIdentifier];n.removeItem("Received:"+this._localKey+e.messageIdentifier),_&&(this._receiveMessage(_),delete this._receivedMessages[e.messageIdentifier]);var O=new A(l,{messageIdentifier:e.messageIdentifier});this._schedule_message(O);break;case l:var T=this._sentMessages[e.messageIdentifier];delete this._sentMessages[e.messageIdentifier],n.removeItem("Sent:"+this._localKey+e.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(T.payloadMessage);break;case p:(T=this._sentMessages[e.messageIdentifier])&&(T.timeOut&&T.timeOut.cancel(),128===e.returnCode[0]?T.onFailure&&T.onFailure(e.returnCode):T.onSuccess&&T.onSuccess(e.returnCode),delete this._sentMessages[e.messageIdentifier]);break;case d:(T=this._sentMessages[e.messageIdentifier])&&(T.timeOut&&T.timeOut.cancel(),T.callback&&T.callback(),delete this._sentMessages[e.messageIdentifier]);break;case v:this.sendPinger.reset();break;case m:this._disconnected(w.INVALID_MQTT_MESSAGE_TYPE.code,S(w.INVALID_MQTT_MESSAGE_TYPE,[e.type]));break;default:this._disconnected(w.INVALID_MQTT_MESSAGE_TYPE.code,S(w.INVALID_MQTT_MESSAGE_TYPE,[e.type]))}}catch(I){var R="undefined"==I.hasOwnProperty("stack")?I.stack.toString():"No Error Stack Available";return void this._disconnected(w.INTERNAL_ERROR.code,S(w.INTERNAL_ERROR,[I.message,R]))}},M.prototype._on_socket_error=function(e){this._reconnecting||this._disconnected(w.SOCKET_ERROR.code,S(w.SOCKET_ERROR,[e.data]))},M.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(w.SOCKET_CLOSE.code,S(w.SOCKET_CLOSE))},M.prototype._socket_send=function(e){if(1==e.type){var t=this._traceMask(e,"password");this._trace("Client._socket_send",t)}else this._trace("Client._socket_send",e);this.socket.send(e.encode()),this.sendPinger.reset()},M.prototype._receivePublish=function(e){switch(e.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(e);break;case 1:var t=new A(a,{messageIdentifier:e.messageIdentifier});this._schedule_message(t),this._receiveMessage(e);break;case 2:this._receivedMessages[e.messageIdentifier]=e,this.store("Received:",e);var r=new A(u,{messageIdentifier:e.messageIdentifier});this._schedule_message(r);break;default:throw Error("Invaild qos="+e.payloadMessage.qos)}},M.prototype._receiveMessage=function(e){this.onMessageArrived&&this.onMessageArrived(e.payloadMessage)},M.prototype._connected=function(e,t){this.onConnected&&this.onConnected(e,t)},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(e,t){if(this._trace("Client._disconnected",e,t),void 0!==e&&this._reconnecting)this._reconnectTimeout=new D(this,this._reconnectInterval,this._reconnect);else if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===e&&(e=w.OK.code,t=S(w.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:e,errorMessage:t,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),e!==w.OK.code&&this.connectOptions.reconnect)return this._reconnectInterval=1,void this._reconnect()}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:e,errorMessage:t})},M.prototype._trace=function(){if(this.traceFunction){var e=Array.prototype.slice.call(arguments);for(var t in e)void 0!==e[t]&&e.splice(t,1,JSON.stringify(e[t]));var r=e.join("");this.traceFunction({severity:"Debug",message:r})}if(null!==this._traceBuffer){t=0;for(var n=arguments.length;t<n;t++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),this._traceBuffer.push(0===t||void 0===arguments[t]?arguments[t]:" "+JSON.stringify(arguments[t]))}},M.prototype._traceMask=function(e,t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=n==t?"******":e[n]);return r};var L=function(e){var t;if(!("string"==typeof e||e instanceof ArrayBuffer||ArrayBuffer.isView(e)&&!(e instanceof DataView)))throw S(w.INVALID_ARGUMENT,[e,"newPayload"]);t=e;var r,n=0,i=!1,o=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof t?t:P(t,0,t.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"==typeof t){var e=new ArrayBuffer(C(t)),r=new Uint8Array(e);return x(t,r,0),r}return t}},destinationName:{enumerable:!0,get:function(){return r},set:function(e){if("string"!=typeof e)throw new Error(S(w.INVALID_ARGUMENT,[e,"newDestinationName"]));r=e}},qos:{enumerable:!0,get:function(){return n},set:function(e){if(0!==e&&1!==e&&2!==e)throw new Error("Invalid argument:"+e);n=e}},retained:{enumerable:!0,get:function(){return i},set:function(e){if("boolean"!=typeof e)throw new Error(S(w.INVALID_ARGUMENT,[e,"newRetained"]));i=e}},topic:{enumerable:!0,get:function(){return r},set:function(e){r=e}},duplicate:{enumerable:!0,get:function(){return o},set:function(e){o=e}}})};return{Client:function(e,t,r,n){var i;if("string"!=typeof e)throw new Error(S(w.INVALID_TYPE,[typeof e,"host"]));if(2==arguments.length){n=t;var o=(i=e).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(!o)throw new Error(S(w.INVALID_ARGUMENT,[e,"host"]));e=o[4]||o[2],t=parseInt(o[7]),r=o[8]}else{if(3==arguments.length&&(n=r,r="/mqtt"),"number"!=typeof t||t<0)throw new Error(S(w.INVALID_TYPE,[typeof t,"port"]));if("string"!=typeof r)throw new Error(S(w.INVALID_TYPE,[typeof r,"path"]));var s=-1!==e.indexOf(":")&&"["!==e.slice(0,1)&&"]"!==e.slice(-1);i="ws://"+(s?"["+e+"]":e)+":"+t+r}for(var a=0,u=0;u<n.length;u++){var c=n.charCodeAt(u);55296<=c&&c<=56319&&u++,a++}if("string"!=typeof n||a>65535)throw new Error(S(w.INVALID_ARGUMENT,[n,"clientId"]));var l=new M(i,e,t,r,n);Object.defineProperties(this,{host:{get:function(){return e},set:function(){throw new Error(S(w.UNSUPPORTED_OPERATION))}},port:{get:function(){return t},set:function(){throw new Error(S(w.UNSUPPORTED_OPERATION))}},path:{get:function(){return r},set:function(){throw new Error(S(w.UNSUPPORTED_OPERATION))}},uri:{get:function(){return i},set:function(){throw new Error(S(w.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return l.clientId},set:function(){throw new Error(S(w.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return l.onConnected},set:function(e){if("function"!=typeof e)throw new Error(S(w.INVALID_TYPE,[typeof e,"onConnected"]));l.onConnected=e}},disconnectedPublishing:{get:function(){return l.disconnectedPublishing},set:function(e){l.disconnectedPublishing=e}},disconnectedBufferSize:{get:function(){return l.disconnectedBufferSize},set:function(e){l.disconnectedBufferSize=e}},onConnectionLost:{get:function(){return l.onConnectionLost},set:function(e){if("function"!=typeof e)throw new Error(S(w.INVALID_TYPE,[typeof e,"onConnectionLost"]));l.onConnectionLost=e}},onMessageDelivered:{get:function(){return l.onMessageDelivered},set:function(e){if("function"!=typeof e)throw new Error(S(w.INVALID_TYPE,[typeof e,"onMessageDelivered"]));l.onMessageDelivered=e}},onMessageArrived:{get:function(){return l.onMessageArrived},set:function(e){if("function"!=typeof e)throw new Error(S(w.INVALID_TYPE,[typeof e,"onMessageArrived"]));l.onMessageArrived=e}},trace:{get:function(){return l.traceFunction},set:function(e){if("function"!=typeof e)throw new Error(S(w.INVALID_TYPE,[typeof e,"onTrace"]));l.traceFunction=e}}}),this.connect=function(e){if(g(e=e||{},{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===e.keepAliveInterval&&(e.keepAliveInterval=60),e.mqttVersion>4||e.mqttVersion<3)throw new Error(S(w.INVALID_ARGUMENT,[e.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===e.mqttVersion?(e.mqttVersionExplicit=!1,e.mqttVersion=4):e.mqttVersionExplicit=!0,void 0!==e.password&&void 0===e.userName)throw new Error(S(w.INVALID_ARGUMENT,[e.password,"connectOptions.password"]));if(e.willMessage){if(!(e.willMessage instanceof L))throw new Error(S(w.INVALID_TYPE,[e.willMessage,"connectOptions.willMessage"]));if(e.willMessage.stringPayload=null,void 0===e.willMessage.destinationName)throw new Error(S(w.INVALID_TYPE,[typeof e.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===e.cleanSession&&(e.cleanSession=!0),e.hosts){if(!(e.hosts instanceof Array))throw new Error(S(w.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));if(e.hosts.length<1)throw new Error(S(w.INVALID_ARGUMENT,[e.hosts,"connectOptions.hosts"]));for(var t=!1,n=0;n<e.hosts.length;n++){if("string"!=typeof e.hosts[n])throw new Error(S(w.INVALID_TYPE,[typeof e.hosts[n],"connectOptions.hosts["+n+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(e.hosts[n])){if(0===n)t=!0;else if(!t)throw new Error(S(w.INVALID_ARGUMENT,[e.hosts[n],"connectOptions.hosts["+n+"]"]))}else if(t)throw new Error(S(w.INVALID_ARGUMENT,[e.hosts[n],"connectOptions.hosts["+n+"]"]))}if(t)e.uris=e.hosts;else{if(!e.ports)throw new Error(S(w.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));if(!(e.ports instanceof Array))throw new Error(S(w.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));if(e.hosts.length!==e.ports.length)throw new Error(S(w.INVALID_ARGUMENT,[e.ports,"connectOptions.ports"]));for(e.uris=[],n=0;n<e.hosts.length;n++){if("number"!=typeof e.ports[n]||e.ports[n]<0)throw new Error(S(w.INVALID_TYPE,[typeof e.ports[n],"connectOptions.ports["+n+"]"]));var o=e.hosts[n],s=e.ports[n],a=-1!==o.indexOf(":");e.uris.push(i="ws://"+(a?"["+o+"]":o)+":"+s+r)}}}l.connect(e)},this.subscribe=function(e,t){if("string"!=typeof e)throw new Error("Invalid argument:"+e);if(g(t=t||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),t.timeout&&!t.onFailure)throw new Error("subscribeOptions.timeout specified with no onFailure callback.");if(void 0!==t.qos&&0!==t.qos&&1!==t.qos&&2!==t.qos)throw new Error(S(w.INVALID_ARGUMENT,[t.qos,"subscribeOptions.qos"]));l.subscribe(e,t)},this.unsubscribe=function(e,t){if("string"!=typeof e)throw new Error("Invalid argument:"+e);if(g(t=t||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),t.timeout&&!t.onFailure)throw new Error("unsubscribeOptions.timeout specified with no onFailure callback.");l.unsubscribe(e,t)},this.send=function(e,t,r,n){var i;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof L)&&"string"!=typeof e)throw new Error("Invalid argument:"+typeof e);if(void 0===(i=e).destinationName)throw new Error(S(w.INVALID_ARGUMENT,[i.destinationName,"Message.destinationName"]));l.send(i)}else(i=new L(t)).destinationName=e,arguments.length>=3&&(i.qos=r),arguments.length>=4&&(i.retained=n),l.send(i)},this.publish=function(e,t,r,n){var i;if(0===arguments.length)throw new Error("Invalid argument.length");if(1==arguments.length){if(!(e instanceof L)&&"string"!=typeof e)throw new Error("Invalid argument:"+typeof e);if(void 0===(i=e).destinationName)throw new Error(S(w.INVALID_ARGUMENT,[i.destinationName,"Message.destinationName"]));l.send(i)}else(i=new L(t)).destinationName=e,arguments.length>=3&&(i.qos=r),arguments.length>=4&&(i.retained=n),l.send(i)},this.disconnect=function(){l.disconnect()},this.getTraceLog=function(){return l.getTraceLog()},this.startTrace=function(){l.startTrace()},this.stopTrace=function(){l.stopTrace()},this.isConnected=function(){return l.connected}},Message:L}}("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},18426:function(e,t,r){r(12885);var n=r(72338);"undefined"!=typeof window&&(window.AWS=n),e.exports=n,"undefined"!=typeof self&&(self.AWS=n)},83073:function(e,t,r){r(12885);var n=r(72338),i=n.Service,o=n.apiLoader;o.services.cognitoidentity={},n.CognitoIdentity=i.defineService("cognitoidentity",["2014-06-30"]),Object.defineProperty(o.services.cognitoidentity,"2014-06-30",{get:function(){var e=r(46933);return e.paginators=r(13428).o,e},enumerable:!0,configurable:!0}),e.exports=n.CognitoIdentity},84032:function(e,t,r){r(12885);var n=r(72338),i=n.Service,o=n.apiLoader;o.services.sts={},n.STS=i.defineService("sts",["2011-06-15"]),r(25974),Object.defineProperty(o.services.sts,"2011-06-15",{get:function(){var e=r(42369);return e.paginators=r(14819).o,e},enumerable:!0,configurable:!0}),e.exports=n.STS},29956:function(e){function t(e,r){if(!t.services.hasOwnProperty(e))throw new Error("InvalidService: Failed to load api for "+e);return t.services[e][r]}t.services={},e.exports=t},85856:function(e,t,r){var n=r(28325),i=r(24593),o=r(7095),s=r(288);e.exports={createHash:function(e){if("md5"===(e=e.toLowerCase()))return new i;if("sha256"===e)return new s;if("sha1"===e)return new o;throw new Error("Hash algorithm "+e+" is not supported in the browser SDK")},createHmac:function(e,t){if("md5"===(e=e.toLowerCase()))return new n(i,t);if("sha256"===e)return new n(s,t);if("sha1"===e)return new n(o,t);throw new Error("HMAC algorithm "+e+" is not supported in the browser SDK")},createSign:function(){throw new Error("createSign is not implemented in the browser")}}},75513:function(e,t,r){var n=r(2341).lW;"undefined"!=typeof ArrayBuffer&&void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(e){return i.indexOf(Object.prototype.toString.call(e))>-1});var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];e.exports={isEmptyData:function(e){return"string"==typeof e?0===e.length:0===e.byteLength},convertToBuffer:function(e){return"string"==typeof e&&(e=new n(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}}},28325:function(e,t,r){var n=r(75513);function i(e,t){this.hash=new e,this.outer=new e;var r=function(e,t){var r=n.convertToBuffer(t);if(r.byteLength>e.BLOCK_SIZE){var i=new e;i.update(r),r=i.digest()}var o=new Uint8Array(e.BLOCK_SIZE);return o.set(r),o}(e,t),i=new Uint8Array(e.BLOCK_SIZE);i.set(r);for(var o=0;o<e.BLOCK_SIZE;o++)r[o]^=54,i[o]^=92;for(this.hash.update(r),this.outer.update(i),o=0;o<r.byteLength;o++)r[o]=0}e.exports=i,i.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},i.prototype.digest=function(e){return this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest(e)}},24593:function(e,t,r){var n=r(75513),i=r(2341).lW;function o(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}function s(e,t,r,n,i,o){return((t=(t+e&4294967295)+(n+o&4294967295)&4294967295)<<i|t>>>32-i)+r&4294967295}function a(e,t,r,n,i,o,a){return s(t&r|~t&n,e,t,i,o,a)}function u(e,t,r,n,i,o,a){return s(t&n|r&~n,e,t,i,o,a)}function c(e,t,r,n,i,o,a){return s(t^r^n,e,t,i,o,a)}function l(e,t,r,n,i,o,a){return s(r^(t|~n),e,t,i,o,a)}e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(n.isEmptyData(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=n.convertToBuffer(e),r=0,i=t.byteLength;for(this.bytesHashed+=i;i>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),i--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},o.prototype.digest=function(e){if(!this.finished){var t=this,r=t.buffer,n=t.bufferLength,o=8*t.bytesHashed;if(r.setUint8(this.bufferLength++,128),n%64>=56){for(var s=this.bufferLength;s<64;s++)r.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(s=this.bufferLength;s<56;s++)r.setUint8(s,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/4294967296),!0),this.hashBuffer(),this.finished=!0}var a=new DataView(new ArrayBuffer(16));for(s=0;s<4;s++)a.setUint32(4*s,this.state[s],!0);var u=new i(a.buffer,a.byteOffset,a.byteLength);return e?u.toString(e):u},o.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],o=t[3];r=a(r,n,i,o,e.getUint32(0,!0),7,3614090360),o=a(o,r,n,i,e.getUint32(4,!0),12,3905402710),i=a(i,o,r,n,e.getUint32(8,!0),17,606105819),n=a(n,i,o,r,e.getUint32(12,!0),22,3250441966),r=a(r,n,i,o,e.getUint32(16,!0),7,4118548399),o=a(o,r,n,i,e.getUint32(20,!0),12,1200080426),i=a(i,o,r,n,e.getUint32(24,!0),17,2821735955),n=a(n,i,o,r,e.getUint32(28,!0),22,4249261313),r=a(r,n,i,o,e.getUint32(32,!0),7,1770035416),o=a(o,r,n,i,e.getUint32(36,!0),12,2336552879),i=a(i,o,r,n,e.getUint32(40,!0),17,4294925233),n=a(n,i,o,r,e.getUint32(44,!0),22,2304563134),r=a(r,n,i,o,e.getUint32(48,!0),7,1804603682),o=a(o,r,n,i,e.getUint32(52,!0),12,4254626195),i=a(i,o,r,n,e.getUint32(56,!0),17,2792965006),r=u(r,n=a(n,i,o,r,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=u(o,r,n,i,e.getUint32(24,!0),9,3225465664),i=u(i,o,r,n,e.getUint32(44,!0),14,643717713),n=u(n,i,o,r,e.getUint32(0,!0),20,3921069994),r=u(r,n,i,o,e.getUint32(20,!0),5,3593408605),o=u(o,r,n,i,e.getUint32(40,!0),9,38016083),i=u(i,o,r,n,e.getUint32(60,!0),14,3634488961),n=u(n,i,o,r,e.getUint32(16,!0),20,3889429448),r=u(r,n,i,o,e.getUint32(36,!0),5,568446438),o=u(o,r,n,i,e.getUint32(56,!0),9,3275163606),i=u(i,o,r,n,e.getUint32(12,!0),14,4107603335),n=u(n,i,o,r,e.getUint32(32,!0),20,1163531501),r=u(r,n,i,o,e.getUint32(52,!0),5,2850285829),o=u(o,r,n,i,e.getUint32(8,!0),9,4243563512),i=u(i,o,r,n,e.getUint32(28,!0),14,1735328473),r=c(r,n=u(n,i,o,r,e.getUint32(48,!0),20,2368359562),i,o,e.getUint32(20,!0),4,4294588738),o=c(o,r,n,i,e.getUint32(32,!0),11,2272392833),i=c(i,o,r,n,e.getUint32(44,!0),16,1839030562),n=c(n,i,o,r,e.getUint32(56,!0),23,4259657740),r=c(r,n,i,o,e.getUint32(4,!0),4,2763975236),o=c(o,r,n,i,e.getUint32(16,!0),11,1272893353),i=c(i,o,r,n,e.getUint32(28,!0),16,4139469664),n=c(n,i,o,r,e.getUint32(40,!0),23,3200236656),r=c(r,n,i,o,e.getUint32(52,!0),4,681279174),o=c(o,r,n,i,e.getUint32(0,!0),11,3936430074),i=c(i,o,r,n,e.getUint32(12,!0),16,3572445317),n=c(n,i,o,r,e.getUint32(24,!0),23,76029189),r=c(r,n,i,o,e.getUint32(36,!0),4,3654602809),o=c(o,r,n,i,e.getUint32(48,!0),11,3873151461),i=c(i,o,r,n,e.getUint32(60,!0),16,530742520),r=l(r,n=c(n,i,o,r,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=l(o,r,n,i,e.getUint32(28,!0),10,1126891415),i=l(i,o,r,n,e.getUint32(56,!0),15,2878612391),n=l(n,i,o,r,e.getUint32(20,!0),21,4237533241),r=l(r,n,i,o,e.getUint32(48,!0),6,1700485571),o=l(o,r,n,i,e.getUint32(12,!0),10,2399980690),i=l(i,o,r,n,e.getUint32(40,!0),15,4293915773),n=l(n,i,o,r,e.getUint32(4,!0),21,2240044497),r=l(r,n,i,o,e.getUint32(32,!0),6,1873313359),o=l(o,r,n,i,e.getUint32(60,!0),10,4264355552),i=l(i,o,r,n,e.getUint32(24,!0),15,2734768916),n=l(n,i,o,r,e.getUint32(52,!0),21,1309151649),r=l(r,n,i,o,e.getUint32(16,!0),6,4149444226),o=l(o,r,n,i,e.getUint32(44,!0),10,3174756917),i=l(i,o,r,n,e.getUint32(8,!0),15,718787259),n=l(n,i,o,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295}},7095:function(e,t,r){var n=r(2341).lW,i=r(75513);function o(){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),e.exports=o,o.BLOCK_SIZE=64,o.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=(e=i.convertToBuffer(e)).length;this.totalLength+=8*t;for(var r=0;r<t;r++)this.write(e[r]);return this},o.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},o.prototype.digest=function(e){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 t=24;t>=0;t-=8)this.write(this.totalLength>>t);var r=new n(20),i=new DataView(r.buffer);return i.setUint32(0,this.h0,!1),i.setUint32(4,this.h1,!1),i.setUint32(8,this.h2,!1),i.setUint32(12,this.h3,!1),i.setUint32(16,this.h4,!1),e?r.toString(e):r},o.prototype.processBlock=function(){for(var e=16;e<80;e++){var t=this.block[e-3]^this.block[e-8]^this.block[e-14]^this.block[e-16];this.block[e]=t<<1|t>>>31}var r,n,i=this.h0,o=this.h1,s=this.h2,a=this.h3,u=this.h4;for(e=0;e<80;e++){e<20?(r=a^o&(s^a),n=1518500249):e<40?(r=o^s^a,n=1859775393):e<60?(r=o&s|a&(o|s),n=2400959708):(r=o^s^a,n=3395469782);var c=(i<<5|i>>>27)+r+u+n+(0|this.block[e]);u=a,a=s,s=o<<30|o>>>2,o=i,i=c}for(this.h0=this.h0+i|0,this.h1=this.h1+o|0,this.h2=this.h2+s|0,this.h3=this.h3+a|0,this.h4=this.h4+u|0,this.offset=0,e=0;e<16;e++)this.block[e]=0}},288:function(e,t,r){var n=r(2341).lW,i=r(75513),o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=Math.pow(2,53)-1;function a(){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}e.exports=a,a.BLOCK_SIZE=64,a.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if(i.isEmptyData(e))return this;var t=0,r=(e=i.convertToBuffer(e)).byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>s)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0);return this},a.prototype.digest=function(e){if(!this.finished){var t=8*this.bytesHashed,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(r.setUint8(this.bufferLength++,128),i%64>=56){for(var o=this.bufferLength;o<64;o++)r.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<56;o++)r.setUint8(o,0);r.setUint32(56,Math.floor(t/4294967296),!0),r.setUint32(60,t),this.hashBuffer(),this.finished=!0}var s=new n(32);for(o=0;o<8;o++)s[4*o]=this.state[o]>>>24&255,s[4*o+1]=this.state[o]>>>16&255,s[4*o+2]=this.state[o]>>>8&255,s[4*o+3]=this.state[o]>>>0&255;return e?s.toString(e):s},a.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],s=t[3],a=t[4],u=t[5],c=t[6],l=t[7],f=0;f<64;f++){if(f<16)this.temp[f]=(255&e[4*f])<<24|(255&e[4*f+1])<<16|(255&e[4*f+2])<<8|255&e[4*f+3];else{var p=this.temp[f-2];this.temp[f]=(((p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+this.temp[f-7]|0)+((((p=this.temp[f-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+this.temp[f-16]|0)}var h=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&u^~a&c)|0)+(l+(o[f]+this.temp[f]|0)|0)|0,d=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;l=c,c=u,u=a,a=s+h|0,s=i,i=n,n=r,r=h+d|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=s,t[4]+=a,t[5]+=u,t[6]+=c,t[7]+=l}},12885:function(e,t,r){var n=r(84964);n.crypto.lib=r(85856),n.Buffer=r(2341).lW,n.url=r(73934),n.querystring=r(93143),n.realClock=r(43984),n.environment="js",n.createEventStream=r(67681).createEventStream,n.isBrowser=function(){return!0},n.isNode=function(){return!1};var i=r(72338);if(e.exports=i,r(43981),r(92567),r(25658),r(54876),r(19e3),r(6932),r(21640),i.XML.Parser=r(681),r(68214),void 0===o)var o={browser:!0}},91654:function(e,t,r){var n,i=r(72338);r(43981),r(92567),i.Config=i.util.inherit({constructor:function(e){void 0===e&&(e={}),e=this.extractCredentials(e),i.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function(e){var t,r=this;function n(t){e(t,t?null:r.credentials)}function o(e,t){return new i.util.error(t||new Error,{code:"CredentialsError",message:e,name:"CredentialsError"})}r.credentials?"function"==typeof r.credentials.get?r.credentials.get(function(e){e&&(e=o("Could not load credentials from "+r.credentials.constructor.name,e)),n(e)}):(t=null,(!r.credentials.accessKeyId||!r.credentials.secretAccessKey)&&(t=o("Missing credentials")),n(t)):r.credentialProvider?r.credentialProvider.resolve(function(e,t){e&&(e=o("Could not load credentials from any providers",e)),r.credentials=t,n(e)}):n(o("No credentials to load"))},update:function(e,t){t=t||!1,e=this.extractCredentials(e),i.util.each.call(this,e,function(e,r){(t||Object.prototype.hasOwnProperty.call(this.keys,e)||i.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function(e){this.clear();var t=JSON.parse(i.util.readFileSync(e)),r=new i.FileSystemCredentials(e),n=new i.CredentialProviderChain;return n.providers.unshift(r),n.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function(){i.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,r){void 0===t?(void 0===r&&(r=this.keys[e]),this[e]="function"==typeof r?r.call(this):r):this[e]="httpOptions"===e&&this[e]?i.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=i.util.copy(e)).credentials=new i.Credentials(e)),e},setPromisesDependency:function(e){n=e,null===e&&"function"==typeof Promise&&(n=Promise);var t=[i.Request,i.Credentials,i.CredentialProviderChain];i.S3&&(t.push(i.S3),i.S3.ManagedUpload&&t.push(i.S3.ManagedUpload)),i.util.addPromises(t,n)},getPromisesDependency:function(){return n}}),i.config=new i.Config},98914:function(e,t,r){var n=r(72338);function i(e,t){if("string"==typeof e){if(["legacy","regional"].indexOf(e.toLowerCase())>=0)return e.toLowerCase();throw n.util.error(new Error,t)}}e.exports=function(e,t){var r;if((e=e||{})[t.clientConfig]&&(r=i(e[t.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+t.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+e[t.clientConfig]+'".'}))||!n.util.isNode())return r;if(Object.prototype.hasOwnProperty.call(process.env,t.env)&&(r=i(process.env[t.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+t.env+' environmental variable. Expect "legacy" or "regional". Got "'+process.env[t.env]+'".'})))return r;var o={};try{o=n.util.getProfilesFromSharedConfig(n.util.iniLoader)[process.env.AWS_PROFILE||n.util.defaultProfile]}catch(s){}return o&&Object.prototype.hasOwnProperty.call(o,t.sharedConfig)&&(r=i(o[t.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+t.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[t.sharedConfig]+'".'})),r}},72338:function(e,t,r){var n={util:r(84964)};({}).toString(),e.exports=n,n.util.update(n,{VERSION:"2.931.0",Signers:{},Protocol:{Json:r(80537),Query:r(78298),Rest:r(51888),RestJson:r(10673),RestXml:r(68683)},XML:{Builder:r(39244),Parser:null},JSON:{Builder:r(70720),Parser:r(46179)},Model:{Api:r(68734),Operation:r(65105),Shape:r(74822),Paginator:r(68140),ResourceWaiter:r(72820)},apiLoader:r(29956),EndpointCache:r(28937).$}),r(31893),r(70014),r(91654),r(99794),r(23758),r(60782),r(53871),r(11277),r(15198),r(65758),n.events=new n.SequentialExecutor,n.util.memoizedProperty(n,"endpointCache",function(){return new n.EndpointCache(n.config.endpointCacheSize)},!0)},43981:function(e,t,r){var n=r(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 e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var e=n.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return!!(this.expireTime&&t>this.expireTime)||this.expired||!this.accessKeyId||!this.secretAccessKey},get:function(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function(e){this.expired=!1,e()},coalesceRefresh:function(e,t){var r=this;1===r.refreshCallbacks.push(e)&&r.load(function(e){n.util.arrayEach(r.refreshCallbacks,function(r){t?r(e):n.util.defer(function(){r(e)})}),r.refreshCallbacks.length=0})},load:function(e){e()}}),n.Credentials.addPromisesToClass=function(e){this.prototype.getPromise=n.util.promisifyMethod("get",e),this.prototype.refreshPromise=n.util.promisifyMethod("refresh",e)},n.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},n.util.addPromises(n.Credentials)},54876:function(e,t,r){var n=r(72338),i=r(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 r=n.util.merge({params:t,credentials:e.masterCredentials||n.config.credentials},e.stsConfig||{});this.service=new i(r)},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this,r=t.service.config.params.RoleArn?"assumeRole":"getSessionToken";this.getTokenCode(function(n,i){var o={};n?e(n):(i&&(o.TokenCode=i),t.service[r](o,function(r,n){r||t.service.credentialsFrom(n,t),e(r)}))})},getTokenCode:function(e){var t=this;this.tokenCodeFn?this.tokenCodeFn(this.service.config.params.SerialNumber,function(r,i){if(r){var o=r;return r instanceof Error&&(o=r.message),void e(n.util.error(new Error("Error fetching MFA token: "+o),{code:t.errorCode}))}e(null,i)}):e(null)}})},6932:function(e,t,r){var n=r(72338),i=r(83073),o=r(84032);n.CognitoIdentityCredentials=n.util.inherit(n.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function(e,t){n.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this._identityId=null,this._clientConfig=n.util.copy(t||{}),this.loadCachedId();var r=this;Object.defineProperty(this,"identityId",{get:function(){return r.loadCachedId(),r._identityId||r.params.IdentityId},set:function(e){r._identityId=e}})},refresh:function(e){this.coalesceRefresh(e||n.util.fn.callback)},load:function(e){var t=this;t.createClients(),t.data=null,t._identityId=null,t.getId(function(r){r?(t.clearIdOnNotAuthorized(r),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function(){this._identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},clearIdOnNotAuthorized:function(e){"NotAuthorizedException"==e.code&&this.clearCachedId()},getId:function(e){var t=this;if("string"==typeof t.params.IdentityId)return e(null,t.params.IdentityId);t.cognito.getId(function(r,n){!r&&n.IdentityId?(t.params.IdentityId=n.IdentityId,e(null,n.IdentityId)):e(r)})},loadCredentials:function(e,t){!e||!t||(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,n){r?t.clearIdOnNotAuthorized(r):(t.cacheId(n),t.data=n,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function(e){var t=this;t.cognito.getOpenIdToken(function(r,n){r?(t.clearIdOnNotAuthorized(r),e(r)):(t.cacheId(n),t.params.WebIdentityToken=n.Token,t.webIdentityCredentials.refresh(function(r){r||(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function(){var e=this;if(n.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins);0!==(e.getStorage("providers")||"").split(",").filter(function(e){return-1!==r.indexOf(e)}).length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},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 i(t)}this.sts=this.sts||new o(e)},cacheId:function(e){this._identityId=e.IdentityId,this.params.IdentityId=this._identityId,n.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(r){}},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:function(e,t,r){var n=r(72338);n.CredentialProviderChain=n.util.inherit(n.Credentials,{constructor:function(e){this.providers=e||n.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(e){var t=this;if(0===t.providers.length)return e(new Error("No providers")),t;if(1===t.resolveCallbacks.push(e)){let e=function(o,s){if(!o&&s||r===i.length)return n.util.arrayEach(t.resolveCallbacks,function(e){e(o,s)}),void(t.resolveCallbacks.length=0);var a=i[r++];(s="function"==typeof a?a.call():a).get?s.get(function(t){e(t,t?null:s)}):e(null,s)};var r=0,i=t.providers.slice(0);e()}return t}}),n.CredentialProviderChain.defaultProviders=[],n.CredentialProviderChain.addPromisesToClass=function(e){this.prototype.resolvePromise=n.util.promisifyMethod("resolve",e)},n.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},n.util.addPromises(n.CredentialProviderChain)},21640:function(e,t,r){var n=r(72338),i=r(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(r,n){r||t.service.credentialsFrom(n,t),e(r)})},createClients:function(){this.service=this.service||new i({params:this.params})}})},25658:function(e,t,r){var n=r(72338),i=r(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(r,n){r||t.service.credentialsFrom(n,t),e(r)})})},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 i({params:this.params})}})},19e3:function(e,t,r){var n=r(72338),i=r(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(r,n){t.data=null,r||(t.data=n,t.service.credentialsFrom(n,t)),e(r)})},createClients:function(){if(!this.service){var e=n.util.merge({},this._clientConfig);e.params=this.params,this.service=new i(e)}}})},73157:function(e,t,r){var n=r(72338),i=r(84964),o=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"];function s(e){var t=e.service,r=t.api||{},n={};return t.config.region&&(n.region=t.config.region),r.serviceId&&(n.serviceId=r.serviceId),t.config.credentials.accessKeyId&&(n.accessKeyId=t.config.credentials.accessKeyId),n}function a(e,t,r){!r||null==t||"structure"===r.type&&r.required&&r.required.length>0&&i.arrayEach(r.required,function(n){var i=r.members[n];!0===i.endpointDiscoveryId?e[i.isLocationName?i.name:n]=String(t[n]):a(e,t[n],i)})}function u(e,t){var r={};return a(r,e.params,t),r}function c(e){var t=e.service,r=t.api,o=r.operations?r.operations[e.operation]:void 0,a=u(e,o?o.input:void 0),c=s(e);Object.keys(a).length>0&&(c=i.update(c,a),o&&(c.operation=o.name));var l=n.endpointCache.get(c);if(!l||1!==l.length||""!==l[0].Address)if(l&&l.length>0)e.httpRequest.updateEndpoint(l[0].Address);else{var f=t.makeRequest(r.endpointOperation,{Operation:o.name,Identifiers:a});p(f),f.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),f.removeListener("retry",n.EventListeners.Core.RETRY_CHECK),n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}]),f.send(function(e,t){t&&t.Endpoints?n.endpointCache.put(c,t.Endpoints):e&&n.endpointCache.put(c,[{Address:"",CachePeriodInMinutes:1}])})}}var l={};function f(e,t){var r=e.service,o=r.api,a=o.operations?o.operations[e.operation]:void 0,c=u(e,a?a.input:void 0),f=s(e);Object.keys(c).length>0&&(f=i.update(f,c),a&&(f.operation=a.name));var h=n.EndpointCache.getKeyString(f),d=n.endpointCache.get(h);if(d&&1===d.length&&""===d[0].Address)return l[h]||(l[h]=[]),void l[h].push({request:e,callback:t});if(d&&d.length>0)e.httpRequest.updateEndpoint(d[0].Address),t();else{var y=r.makeRequest(o.endpointOperation,{Operation:a.name,Identifiers:c});y.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),p(y),n.endpointCache.put(h,[{Address:"",CachePeriodInMinutes:60}]),y.send(function(r,o){r?(e.response.error=i.error(r,{retryable:!1}),n.endpointCache.remove(f),l[h]&&(i.arrayEach(l[h],function(e){e.request.response.error=i.error(r,{retryable:!1}),e.callback()}),delete l[h])):o&&(n.endpointCache.put(h,o.Endpoints),e.httpRequest.updateEndpoint(o.Endpoints[0].Address),l[h])&&(i.arrayEach(l[h],function(e){e.request.httpRequest.updateEndpoint(o.Endpoints[0].Address),e.callback()}),delete l[h]),t()})}}function p(e){var t=e.service.api.apiVersion;t&&!e.httpRequest.headers["x-amz-api-version"]&&(e.httpRequest.headers["x-amz-api-version"]=t)}function h(e){var t=e.error;if(t&&("InvalidEndpointException"===t.code||421===e.httpResponse.statusCode)){var r=e.request,o=r.service.api.operations||{},a=u(r,o[r.operation]?o[r.operation].input:void 0),c=s(r);Object.keys(a).length>0&&(c=i.update(c,a),o[r.operation]&&(c.operation=o[r.operation].name)),n.endpointCache.remove(c)}}function d(e){return["false","0"].indexOf(e)>=0}e.exports={discoverEndpoint:function(e,t){var r=e.service||{};if(function(e){if(e._originalConfig&&e._originalConfig.endpoint&&!0===e._originalConfig.endpointDiscoveryEnabled)throw i.error(new Error,{code:"ConfigurationException",message:"Custom endpoint is supplied; endpointDiscoveryEnabled must not be true."});return Boolean(n.config.endpoint||(n.config[e.serviceIdentifier]||{}).endpoint||e._originalConfig&&e._originalConfig.endpoint)}(r)||e.isPresigned())return t();var s=(r.api.operations||{})[e.operation],a=s?s.endpointDiscoveryRequired:"NULL",u=function(e){var t=e.service||{};if(void 0!==t.config.endpointDiscoveryEnabled)return t.config.endpointDiscoveryEnabled;if(!i.isBrowser()){for(var r=0;r<o.length;r++){var s=o[r];if(Object.prototype.hasOwnProperty.call(process.env,s)){if(""===process.env[s]||void 0===process.env[s])throw i.error(new Error,{code:"ConfigurationException",message:"environmental variable "+s+" cannot be set to nothing"});return!d(process.env[s])}}var a={};try{a=n.util.iniLoader?n.util.iniLoader.loadFrom({isConfig:!0,filename:process.env[n.util.sharedConfigFileEnv]}):{}}catch(u){}var c=a[process.env.AWS_PROFILE||n.util.defaultProfile]||{};if(Object.prototype.hasOwnProperty.call(c,"endpoint_discovery_enabled")){if(void 0===c.endpoint_discovery_enabled)throw i.error(new Error,{code:"ConfigurationException",message:"config file entry 'endpoint_discovery_enabled' cannot be set to nothing"});return!d(c.endpoint_discovery_enabled)}}}(e),l=r.api.hasRequiredEndpointDiscovery;switch((u||l)&&e.httpRequest.appendToUserAgent("endpoint-discovery"),a){case"OPTIONAL":(u||l)&&(c(e),e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h)),t();break;case"REQUIRED":if(!1===u){e.response.error=i.error(new Error,{code:"ConfigurationException",message:"Endpoint Discovery is disabled but "+r.api.className+"."+e.operation+"() requires it. Please check your configurations."}),t();break}e.addNamedListener("INVALIDATE_CACHED_ENDPOINTS","extractError",h),f(e,t);break;case"NULL":default:t()}},requiredDiscoverEndpoint:f,optionalDiscoverEndpoint:c,marshallCustomIdentifiers:u,getCacheKey:s,invalidateCachedEndpoint:h}},67681:function(e,t,r){var n=r(36262).eventMessageChunker,i=r(26505).parseEvent;e.exports={createEventStream:function(e,t,r){for(var o=n(e),s=[],a=0;a<o.length;a++)s.push(i(t,o[a],r));return s}}},36262:function(e){e.exports={eventMessageChunker:function(e){for(var t=[],r=0;r<e.length;){var n=e.readInt32BE(r),i=e.slice(r,n+r);r+=n,t.push(i)}return t}}},57976:function(e,t,r){var n=r(72338).util,i=n.buffer.toBuffer;function o(e){if(8!==e.length)throw new Error("Int64 buffers must be exactly 8 bytes");n.Buffer.isBuffer(e)||(e=i(e)),this.bytes=e}function s(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}o.fromNumber=function(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(e+" is too large (or, if negative, too small) to represent as an Int64");for(var t=new Uint8Array(8),r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&s(t),new o(t)},o.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&s(e),parseInt(e.toString("hex"),16)*(t?-1:1)},o.prototype.toString=function(){return String(this.valueOf())},e.exports={Int64:o}},26505:function(e,t,r){var n=r(86147).parseMessage;e.exports={parseEvent:function(e,t,r){var i=n(t),o=i.headers[":message-type"];if(o){if("error"===o.value)throw function(e){var t=e.headers[":error-code"],r=e.headers[":error-message"],n=new Error(r.value||r);return n.code=n.name=t.value||t,n}(i);if("event"!==o.value)return}var s=i.headers[":event-type"],a=r.members[s.value];if(a){var u={},c=a.eventPayloadMemberName;if(c){var l=a.members[c];u[c]="binary"===l.type?i.body:e.parse(i.body.toString(),l)}for(var f=a.eventHeaderMemberNames,p=0;p<f.length;p++){var h=f[p];i.headers[h]&&(u[h]=a.members[h].toType(i.headers[h].value))}var d={};return d[s.value]=u,d}}}},86147:function(e,t,r){var n=r(57976).Int64,i=r(30483).splitMessage,o="boolean";function s(e){for(var t={},r=0;r<e.length;){var i=e.readUInt8(r++),s=e.slice(r,r+i).toString();switch(r+=i,e.readUInt8(r++)){case 0:t[s]={type:o,value:!0};break;case 1:t[s]={type:o,value:!1};break;case 2:t[s]={type:"byte",value:e.readInt8(r++)};break;case 3:t[s]={type:"short",value:e.readInt16BE(r)},r+=2;break;case 4:t[s]={type:"integer",value:e.readInt32BE(r)},r+=4;break;case 5:t[s]={type:"long",value:new n(e.slice(r,r+8))},r+=8;break;case 6:var a=e.readUInt16BE(r);t[s]={type:"binary",value:e.slice(r+=2,r+a)},r+=a;break;case 7:var u=e.readUInt16BE(r);t[s]={type:"string",value:e.slice(r+=2,r+u).toString()},r+=u;break;case 8:t[s]={type:"timestamp",value:new Date(new n(e.slice(r,r+8)).valueOf())},r+=8;break;case 9:var c=e.slice(r,r+16).toString("hex");r+=16,t[s]={type:"uuid",value:c.substr(0,8)+"-"+c.substr(8,4)+"-"+c.substr(12,4)+"-"+c.substr(16,4)+"-"+c.substr(20)};break;default:throw new Error("Unrecognized header type tag")}}return t}e.exports={parseMessage:function(e){var t=i(e);return{headers:s(t.headers),body:t.body}}}},30483:function(e,t,r){var n=r(72338).util,i=n.buffer.toBuffer;e.exports={splitMessage:function(e){if(n.Buffer.isBuffer(e)||(e=i(e)),e.length<16)throw new Error("Provided message too short to accommodate event stream message overhead");if(e.length!==e.readUInt32BE(0))throw new Error("Reported message length does not match received message length");var t=e.readUInt32BE(8);if(t!==n.crypto.crc32(e.slice(0,8)))throw new Error("The prelude checksum specified in the message ("+t+") does not match the calculated CRC32 checksum.");var r=e.readUInt32BE(e.length-4);if(r!==n.crypto.crc32(e.slice(0,e.length-4)))throw new Error("The message checksum did not match the expected value of "+r);var o=12+e.readUInt32BE(4);return{headers:e.slice(12,o),body:e.slice(o,e.length-4)}}}},23758:function(e,t,r){var n=r(72338),i=r(31893),o=r(73157).discoverEndpoint;n.EventListeners={Core:{}},n.EventListeners={Core:(new i).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function(e,t){if(!e.service.api.signatureVersion&&!e.service.config.signatureVersion)return t();e.service.config.getCredentials(function(r){r&&(e.response.error=n.util.error(r,{code:"CredentialsError",message:"Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1"})),t()})}),e("VALIDATE_REGION","validate",function(e){if(!e.service.isGlobalEndpoint){var t=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);e.service.config.region?t.test(e.service.config.region)||(e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Invalid region in config"})):e.response.error=n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"})}}),e("BUILD_IDEMPOTENCY_TOKENS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=t.idempotentMembers;if(r.length){for(var i=n.util.copy(e.params),o=0,s=r.length;o<s;o++)i[r[o]]||(i[r[o]]=n.util.uuid.v4());e.params=i}}}}),e("VALIDATE_PARAMETERS","validate",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation].input;new n.ParamValidator(e.service.config.paramValidation).validate(t,e.params)}}),e("COMPUTE_CHECKSUM","afterBuild",function(e){if(e.service.api.operations){var t=e.service.api.operations[e.operation];if(t){var r=e.httpRequest.body,i=r&&(n.util.Buffer.isBuffer(r)||"string"==typeof r),o=e.httpRequest.headers;if(t.httpChecksumRequired&&e.service.config.computeChecksums&&i&&e.service.getSignerClass(e)===n.Signers.V4&&!o["Content-MD5"]){var s=n.util.crypto.md5(r,"base64");o["Content-MD5"]=s}}}}),t("COMPUTE_SHA256","afterBuild",function(e,t){if(e.haltHandlersOnError(),e.service.api.operations){var r=e.service.api.operations[e.operation],i=r?r.authtype:"";if(!e.service.api.signatureVersion&&!i&&!e.service.config.signatureVersion)return t();if(e.service.getSignerClass(e)===n.Signers.V4){var o=e.httpRequest.body||"";if(i.indexOf("unsigned-body")>=0)return e.httpRequest.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t();n.util.computeSha256(o,function(r,n){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=n,t())})}else t()}}),e("SET_CONTENT_LENGTH","afterBuild",function(e){var t=function(e){if(!e.service.api.operations)return"";var t=e.service.api.operations[e.operation];return t?t.authtype:""}(e),r=n.util.getRequestPayloadShape(e);if(void 0===e.httpRequest.headers["Content-Length"])try{var i=n.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=i}catch(o){if(r&&r.isStreaming){if(r.requiresLength)throw o;if(t.indexOf("unsigned-body")>=0)return void(e.httpRequest.headers["Transfer-Encoding"]="chunked");throw o}throw o}}),e("SET_HTTP_HOST","afterBuild",function(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function(){var e=this.response.error;!e||!e.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)}),t("DISCOVER_ENDPOINT","sign",o,!0),t("SIGN","sign",function(e,t){var r=e.service,n=(e.service.api.operations||{})[e.operation];if(!(r.api.signatureVersion||n&&n.authtype||r.config.signatureVersion))return t();r.config.getCredentials(function(i,o){if(i)return e.response.error=i,t();try{var s=r.getSkewCorrectedDate(),a=new(r.getSignerClass(e))(e.httpRequest,r.getSigningName(e),{signatureCache:r.config.signatureCache,operation:n,signatureVersion:r.api.signatureVersion});a.setServiceClientId(r._clientId),delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],a.addAuthorization(o,s),e.signedAt=s}catch(u){e.response.error=u}t()})}),e("VALIDATE_RESPONSE","validateResponse",function(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=n.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),t("SEND","send",function(e,t){function r(r){e.httpResponse.stream=r;var i=e.request.httpRequest.stream,o=e.request.service,s=o.api.operations[e.request.operation]||{};r.on("headers",function(i,a,u){if(e.request.emit("httpHeaders",[i,a,e,u]),!e.httpResponse.streaming)if(2===n.HttpClient.streamsApiVersion){if(s.hasEventOutput&&o.successfulResponse(e))return e.request.emit("httpDone"),void t();r.on("readable",function(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])})}else r.on("data",function(t){e.request.emit("httpData",[t,e])})}),r.on("end",function(){if(!i||!i.didCallback){if(2===n.HttpClient.streamsApiVersion&&s.hasEventOutput&&o.successfulResponse(e))return;e.request.emit("httpDone"),t()}})}function i(r){"RequestAbortedError"!==r.code&&(r=n.util.error(r,{code:"TimeoutError"===r.code?r.code:"NetworkingError",region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0})),e.error=r,e.request.emit("httpError",[e.error,e],function(){t()})}function o(){var t=n.HttpClient.getInstance(),o=e.request.service.config.httpOptions||{};try{!function(t){t.on("sendProgress",function(t){e.request.emit("httpUploadProgress",[t,e])}),t.on("receiveProgress",function(t){e.request.emit("httpDownloadProgress",[t,e])})}(t.handleRequest(e.request.httpRequest,o,r,i))}catch(s){i(s)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null,(e.request.service.getSkewCorrectedDate()-this.signedAt)/1e3>=600?this.emit("sign",[this],function(e){e?t(e):o()}):o()}),e("HTTP_HEADERS","httpHeaders",function(e,t,r,i){r.httpResponse.statusCode=e,r.httpResponse.statusMessage=i,r.httpResponse.headers=t,r.httpResponse.body=n.util.buffer.toBuffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var o=t.date||t.Date,s=r.request.service;if(o){var a=Date.parse(o);s.config.correctClockSkew&&s.isClockSkewed(a)&&s.applyClockOffset(a)}}),e("HTTP_DATA","httpData",function(e,t){e&&(n.util.isNode()&&(t.httpResponse.numBytes+=e.length,t.request.emit("httpDownloadProgress",[{loaded:t.httpResponse.numBytes,total:t.httpResponse.headers["content-length"]},t])),t.httpResponse.buffers.push(n.util.buffer.toBuffer(e)))}),e("HTTP_DONE","httpDone",function(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=n.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function(e){var t=e.error;!t||"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function(e){!e.error||this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&(e.error.retryable=!0)}),e("REDIRECT","retry",function(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new n.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount,e.error)||0))}),t("RESET_RETRY_STATE","afterRetry",function(e,t){var r,n=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,n=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,n=!0)),n&&r>=0?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new i).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",n.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",n.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function(e){var t;"NetworkingError"===e.code&&("ENOTFOUND"===(t=e).errno||"number"==typeof t.errno&&"function"==typeof n.util.getSystemErrorName&&["EAI_NONAME","EAI_NODATA"].indexOf(n.util.getSystemErrorName(t.errno)>=0))&&(this.response.error=n.util.error(new Error("Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region."),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e}))})}),Logger:(new i).addNamedListeners(function(e){e("LOG_REQUEST","complete",function(e){var t=e.request,i=t.service.config.logger;if(i){var o=function(){var o=(e.request.service.getSkewCorrectedDate().getTime()-t.startTime.getTime())/1e3,a=!!i.isTTY,u=e.httpResponse.statusCode,c=t.params;t.service.api.operations&&t.service.api.operations[t.operation]&&t.service.api.operations[t.operation].input&&(c=s(t.service.api.operations[t.operation].input,t.params));var l=r(55620).inspect(c,!0,null),f="";return a&&(f+="\x1b[33m"),f+="[AWS "+t.service.serviceIdentifier+" "+u,f+=" "+o.toString()+"s "+e.retryCount+" retries]",a&&(f+="\x1b[0;1m"),f+=" "+n.util.string.lowerFirst(t.operation),f+="("+l+")",a&&(f+="\x1b[0m"),f}();"function"==typeof i.log?i.log(o):"function"==typeof i.write&&i.write(o+"\n")}function s(e,t){if(!t)return t;if(e.isSensitive)return"***SensitiveInformation***";switch(e.type){case"structure":var r={};return n.util.each(t,function(t,n){r[t]=Object.prototype.hasOwnProperty.call(e.members,t)?s(e.members[t],n):n}),r;case"list":var i=[];return n.util.arrayEach(t,function(t,r){i.push(s(e.member,t))}),i;case"map":var o={};return n.util.each(t,function(t,r){o[t]=s(e.value,r)}),o;default:return t}}})}),Json:(new i).addNamedListeners(function(e){var t=r(80537);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Rest:(new i).addNamedListeners(function(e){var t=r(51888);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestJson:(new i).addNamedListeners(function(e){var t=r(10673);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),RestXml:(new i).addNamedListeners(function(e){var t=r(68683);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)}),Query:(new i).addNamedListeners(function(e){var t=r(78298);e("BUILD","build",t.buildRequest),e("EXTRACT_DATA","extractData",t.extractData),e("EXTRACT_ERROR","extractError",t.extractError)})}},99794:function(e,t,r){var n=r(72338),i=n.util.inherit;n.Endpoint=i({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=i({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=i({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=i({}),n.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},68214:function(e,t,r){var n=r(72338),i=r(14943).EventEmitter;r(99794),n.XHRClient=n.util.inherit({handleRequest:function(e,t,r,o){var s=this,a=e.endpoint,u=new i,c=a.protocol+"//"+a.hostname;80!==a.port&&443!==a.port&&(c+=":"+a.port),c+=e.path;var l=new XMLHttpRequest,f=!1;e.stream=l,l.addEventListener("readystatechange",function(){try{if(0===l.status)return}catch(e){return}this.readyState>=this.HEADERS_RECEIVED&&!f&&(u.statusCode=l.status,u.headers=s.parseHeaders(l.getAllResponseHeaders()),u.emit("headers",u.statusCode,u.headers,l.statusText),f=!0),this.readyState===this.DONE&&s.finishRequest(l,u)},!1),l.upload.addEventListener("progress",function(e){u.emit("sendProgress",e)}),l.addEventListener("progress",function(e){u.emit("receiveProgress",e)},!1),l.addEventListener("timeout",function(){o(n.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),l.addEventListener("error",function(){o(n.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),l.addEventListener("abort",function(){o(n.util.error(new Error("Request aborted"),{code:"RequestAbortedError"}))},!1),r(u),l.open(e.method,c,!1!==t.xhrAsync),n.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&l.setRequestHeader(e,t)}),t.timeout&&!1!==t.xhrAsync&&(l.timeout=t.timeout),t.xhrWithCredentials&&(l.withCredentials=!0);try{l.responseType="arraybuffer"}catch(p){}try{e.body?l.send(e.body):l.send()}catch(p){if(!e.body||"object"!=typeof e.body.buffer)throw p;l.send(e.body.buffer)}return u},parseHeaders:function(e){var t={};return n.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],n=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=n)}),t},finishRequest:function(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var i=e.response;r=new n.util.Buffer(i.byteLength);for(var o=new Uint8Array(i),s=0;s<r.length;++s)r[s]=o[s]}try{!r&&"string"==typeof e.responseText&&(r=new n.util.Buffer(e.responseText))}catch(a){}r&&t.emit("data",r),t.emit("end")}}),n.HttpClient.prototype=n.XHRClient.prototype,n.HttpClient.streamsApiVersion=1},70720:function(e,t,r){var n=r(84964);function i(){}function o(e,t){if(t&&null!=e)switch(t.type){case"structure":return function(e,t){var r={};return n.each(e,function(e,n){var i=t.members[e];if(i){if("body"!==i.location)return;var s=i.isLocationName?i.name:e,a=o(n,i);void 0!==a&&(r[s]=a)}}),r}(e,t);case"map":return function(e,t){var r={};return n.each(e,function(e,n){var i=o(n,t.value);void 0!==i&&(r[e]=i)}),r}(e,t);case"list":return function(e,t){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);void 0!==n&&r.push(n)}),r}(e,t);default:return function(e,t){return t.toWireFormat(e)}(e,t)}}i.prototype.build=function(e,t){return JSON.stringify(o(e,t))},e.exports=i},46179:function(e,t,r){var n=r(84964);function i(){}function o(e,t){if(t&&void 0!==e)switch(t.type){case"structure":return function(e,t){if(null!=e){var r={};return n.each(t.members,function(t,n){var i=n.isLocationName?n.name:t;if(Object.prototype.hasOwnProperty.call(e,i)){var s=o(e[i],n);void 0!==s&&(r[t]=s)}}),r}}(e,t);case"map":return function(e,t){if(null!=e){var r={};return n.each(e,function(e,n){var i=o(n,t.value);r[e]=void 0===i?null:i}),r}}(e,t);case"list":return function(e,t){if(null!=e){var r=[];return n.arrayEach(e,function(e){var n=o(e,t.member);r.push(void 0===n?null:n)}),r}}(e,t);default:return function(e,t){return t.toType(e)}(e,t)}}i.prototype.parse=function(e,t){return o(JSON.parse(e),t)},e.exports=i},68734:function(e,t,r){var n=r(50767),i=r(65105),o=r(74822),s=r(68140),a=r(72820),u=r(65359),c=r(84964),l=c.property,f=c.memoizedProperty;e.exports=function(e,t){var r=this;e=e||{},(t=t||{}).api=this,e.metadata=e.metadata||{};var p=t.serviceIdentifier;delete t.serviceIdentifier,l(this,"isApi",!0,!1),l(this,"apiVersion",e.metadata.apiVersion),l(this,"endpointPrefix",e.metadata.endpointPrefix),l(this,"signingName",e.metadata.signingName),l(this,"globalEndpoint",e.metadata.globalEndpoint),l(this,"signatureVersion",e.metadata.signatureVersion),l(this,"jsonVersion",e.metadata.jsonVersion),l(this,"targetPrefix",e.metadata.targetPrefix),l(this,"protocol",e.metadata.protocol),l(this,"timestampFormat",e.metadata.timestampFormat),l(this,"xmlNamespaceUri",e.metadata.xmlNamespace),l(this,"abbreviation",e.metadata.serviceAbbreviation),l(this,"fullName",e.metadata.serviceFullName),l(this,"serviceId",e.metadata.serviceId),p&&u[p]&&l(this,"xmlNoDefaultLists",u[p].xmlNoDefaultLists,!1),f(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?("ElasticLoadBalancing"===(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(t="ELB"),t):null}),l(this,"operations",new n(e.operations,t,function(e,r){return new i(e,r,t)},c.string.lowerFirst,function(e,t){!0===t.endpointoperation&&l(r,"endpointOperation",c.string.lowerFirst(e)),t.endpointdiscovery&&!r.hasRequiredEndpointDiscovery&&l(r,"hasRequiredEndpointDiscovery",!0===t.endpointdiscovery.required)})),l(this,"shapes",new n(e.shapes,t,function(e,r){return o.create(r,t)})),l(this,"paginators",new n(e.paginators,t,function(e,r){return new s(e,r,t)})),l(this,"waiters",new n(e.waiters,t,function(e,r){return new a(e,r,t)},c.string.lowerFirst)),t.documentation&&(l(this,"documentation",e.documentation),l(this,"documentationUrl",e.documentationUrl))}},50767:function(e,t,r){var n=r(84964).memoizedProperty;function i(e,t,r,i){n(this,i(e),function(){return r(e,t)})}e.exports=function(e,t,r,n,o){for(var s in n=n||String,e)Object.prototype.hasOwnProperty.call(e,s)&&(i.call(this,s,e[s],r,n),o&&o(s,e[s]))}},65105:function(e,t,r){var n=r(74822),i=r(84964),o=i.property,s=i.memoizedProperty;e.exports=function(e,t,r){var i=this;r=r||{},o(this,"name",t.name||e),o(this,"api",r.api,!1),t.http=t.http||{},o(this,"endpoint",t.endpoint),o(this,"httpMethod",t.http.method||"POST"),o(this,"httpPath",t.http.requestUri||"/"),o(this,"authtype",t.authtype||""),o(this,"endpointDiscoveryRequired",t.endpointdiscovery?t.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),o(this,"httpChecksumRequired",t.httpChecksumRequired,!1),s(this,"input",function(){return t.input?n.create(t.input,r):new n.create({type:"structure"},r)}),s(this,"output",function(){return t.output?n.create(t.output,r):new n.create({type:"structure"},r)}),s(this,"errors",function(){var e=[];if(!t.errors)return null;for(var i=0;i<t.errors.length;i++)e.push(n.create(t.errors[i],r));return e}),s(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(o(this,"documentation",t.documentation),o(this,"documentationUrl",t.documentationUrl)),s(this,"idempotentMembers",function(){var e=[],t=i.input,r=t.members;if(!t.members)return e;for(var n in r)!r.hasOwnProperty(n)||!0===r[n].isIdempotent&&e.push(n);return e}),s(this,"hasEventOutput",function(){return function(e){var t=e.members,r=e.payload;if(!e.members)return!1;if(r)return t[r].isEventStream;for(var n in t)if(!t.hasOwnProperty(n)&&!0===t[n].isEventStream)return!0;return!1}(i.output)})}},68140:function(e,t,r){var n=r(84964).property;e.exports=function(e,t){n(this,"inputToken",t.input_token),n(this,"limitKey",t.limit_key),n(this,"moreResults",t.more_results),n(this,"outputToken",t.output_token),n(this,"resultKey",t.result_key)}},72820:function(e,t,r){var n=r(84964),i=n.property;e.exports=function(e,t,r){r=r||{},i(this,"name",e),i(this,"api",r.api,!1),t.operation&&i(this,"operation",n.string.lowerFirst(t.operation));var o=this;["type","description","delay","maxAttempts","acceptors"].forEach(function(e){var r=t[e];r&&i(o,e,r)})}},74822:function(e,t,r){var n=r(50767),i=r(84964);function o(e,t,r){null!=r&&i.property.apply(this,arguments)}function s(e,t){e.constructor.prototype[t]||i.memoizedProperty.apply(this,arguments)}function a(e,t,r){t=t||{},o(this,"shape",e.shape),o(this,"api",t.api,!1),o(this,"type",e.type),o(this,"enum",e.enum),o(this,"min",e.min),o(this,"max",e.max),o(this,"pattern",e.pattern),o(this,"location",e.location||this.location||"body"),o(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),o(this,"isStreaming",e.streaming||this.isStreaming||!1),o(this,"requiresLength",e.requiresLength,!1),o(this,"isComposite",e.isComposite||!1),o(this,"isShape",!0,!1),o(this,"isQueryName",Boolean(e.queryName),!1),o(this,"isLocationName",Boolean(e.locationName),!1),o(this,"isIdempotent",!0===e.idempotencyToken),o(this,"isJsonValue",!0===e.jsonvalue),o(this,"isSensitive",!0===e.sensitive||e.prototype&&!0===e.prototype.sensitive),o(this,"isEventStream",Boolean(e.eventstream),!1),o(this,"isEvent",Boolean(e.event),!1),o(this,"isEventPayload",Boolean(e.eventpayload),!1),o(this,"isEventHeader",Boolean(e.eventheader),!1),o(this,"isTimestampFormatSet",Boolean(e.timestampFormat)||e.prototype&&!0===e.prototype.isTimestampFormatSet,!1),o(this,"endpointDiscoveryId",Boolean(e.endpointdiscoveryid),!1),o(this,"hostLabel",Boolean(e.hostLabel),!1),t.documentation&&(o(this,"documentation",e.documentation),o(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&o(this,"isXmlAttribute",e.xmlAttribute||!1),o(this,"defaultValue",null),this.toWireFormat=function(e){return null==e?"":e},this.toType=function(e){return e}}function u(e){a.apply(this,arguments),o(this,"isComposite",!0),e.flattened&&o(this,"flattened",e.flattened||!1)}function c(e,t){var r=this,i=null,c=!this.isShape;u.apply(this,arguments),c&&(o(this,"defaultValue",function(){return{}}),o(this,"members",{}),o(this,"memberNames",[]),o(this,"required",[]),o(this,"isRequired",function(){return!1})),e.members&&(o(this,"members",new n(e.members,t,function(e,r){return a.create(r,t,e)})),s(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)}),e.event&&(s(this,"eventPayloadMemberName",function(){for(var e=r.members,t=r.memberNames,n=0,i=t.length;n<i;n++)if(e[t[n]].isEventPayload)return t[n]}),s(this,"eventHeaderMemberNames",function(){for(var e=r.members,t=r.memberNames,n=[],i=0,o=t.length;i<o;i++)e[t[i]].isEventHeader&&n.push(t[i]);return n}))),e.required&&(o(this,"required",e.required),o(this,"isRequired",function(t){if(!i){i={};for(var r=0;r<e.required.length;r++)i[e.required[r]]=!0}return i[t]},!1,!0)),o(this,"resultWrapper",e.resultWrapper||null),e.payload&&o(this,"payload",e.payload),"string"==typeof e.xmlNamespace?o(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(o(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),o(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function l(e,t){var r=this,n=!this.isShape;if(u.apply(this,arguments),n&&o(this,"defaultValue",function(){return[]}),e.member&&s(this,"member",function(){return a.create(e.member,t)}),this.flattened){var i=this.name;s(this,"name",function(){return r.member.name||i})}}function f(e,t){var r=!this.isShape;u.apply(this,arguments),r&&(o(this,"defaultValue",function(){return{}}),o(this,"key",a.create({type:"string"},t)),o(this,"value",a.create({type:"string"},t))),e.key&&s(this,"key",function(){return a.create(e.key,t)}),e.value&&s(this,"value",function(){return a.create(e.value,t)})}function p(){a.apply(this,arguments);var e=["rest-xml","query","ec2"];this.toType=function(t){return t=this.api&&e.indexOf(this.api.protocol)>-1?t||"":t,this.isJsonValue?JSON.parse(t):t&&"function"==typeof t.toString?t.toString():t},this.toWireFormat=function(e){return this.isJsonValue?JSON.stringify(e):e}}function h(){a.apply(this,arguments),this.toType=function(e){var t=i.base64.decode(e);if(this.isSensitive&&i.isNode()&&"function"==typeof i.Buffer.alloc){var r=i.Buffer.alloc(t.length,t);t.fill(0),t=r}return t},this.toWireFormat=i.base64.encode}function d(){h.apply(this,arguments)}function y(){a.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null==e?null:"true"===e}}a.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},a.types={structure:c,list:l,map:f,boolean:y,timestamp:function(e){var t=this;if(a.apply(this,arguments),e.timestampFormat)o(this,"timestampFormat",e.timestampFormat);else if(t.isTimestampFormatSet&&this.timestampFormat)o(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)o(this,"timestampFormat","rfc822");else if("querystring"===this.location)o(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":o(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":o(this,"timestampFormat","iso8601")}this.toType=function(e){return null==e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?i.date.parseTimestamp(e):null},this.toWireFormat=function(e){return i.date.format(e,t.timestampFormat)}},float:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseFloat(e)},this.toWireFormat=this.toType},integer:function(){a.apply(this,arguments),this.toType=function(e){return null==e?null:parseInt(e,10)},this.toWireFormat=this.toType},string:p,base64:d,binary:h},a.resolve=function(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},a.create=function(e,t,r){if(e.isShape)return e;var n=a.resolve(e,t);if(n){var i=Object.keys(e);t.documentation||(i=i.filter(function(e){return!e.match(/documentation/)}));var o=function(){n.constructor.call(this,e,t,r)};return o.prototype=n,new o}e.type||(e.type=e.members?"structure":e.member?"list":e.key?"map":"string");var s=e.type;if(a.normalizedTypes[e.type]&&(e.type=a.normalizedTypes[e.type]),a.types[e.type])return new a.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+s)},a.shapes={StructureShape:c,ListShape:l,MapShape:f,StringShape:p,BooleanShape:y,Base64Shape:d},e.exports=a},65758:function(e,t,r){var n=r(72338);n.ParamValidator=n.util.inherit({constructor:function(e){(!0===e||void 0===e)&&(e={min:!0}),this.validation=e},validate:function(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var i=this.errors.join("\n* ");throw i="There were "+this.errors.length+" validation errors:\n* "+i,n.util.error(new Error(i),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function(e,t){this.errors.push(n.util.error(new Error(t),{code:e}))},validateStructure:function(e,t,r){this.validateType(t,r,["object"],"structure");for(var n,i=0;e.required&&i<e.required.length;i++)null==t[n=e.required[i]]&&this.fail("MissingRequiredParameter","Missing required key '"+n+"' in "+r);for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=t[n],s=e.members[n];if(void 0!==s){var a=[r,n].join(".");this.validateMember(s,o,a)}else null!=o&&this.fail("UnexpectedParameter","Unexpected key '"+n+"' found in "+r)}return!0},validateMember:function(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var n=0;n<t.length;n++)this.validateMember(e.member,t[n],r+"["+n+"]")}},validateMap:function(e,t,r){if(this.validateType(t,r,["object"],"map")){var n=0;for(var i in t)!Object.prototype.hasOwnProperty.call(t,i)||(this.validateMember(e.key,i,r+"[key='"+i+"']"),this.validateMember(e.value,t[i],r+"['"+i+"']"),n++);this.validateRange(e,n,r,"map member count")}},validateScalar:function(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function(e,t,r){var n=["string"];e.isJsonValue&&(n=n.concat(["number","object","boolean"])),null!==t&&this.validateType(t,r,n)&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r),this.validateUri(e,t,r))},validateUri:function(e,t,r){"uri"===e.location&&0===t.length&&this.fail("UriParameterError",'Expected uri parameter to have length >= 1, but found "'+t+'" for '+r)},validatePattern:function(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function(e,t,r,n){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+n+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+n+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function(e,t,r){this.validation.enum&&void 0!==e.enum&&-1===e.enum.indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e.enum.join("|")+" for "+r)},validateType:function(e,t,r,i){if(null==e)return!1;for(var o=!1,s=0;s<r.length;s++){if("string"==typeof r[s]){if(typeof e===r[s])return!0}else if(r[s]instanceof RegExp){if((e||"").toString().match(r[s]))return!0}else{if(e instanceof r[s]||n.util.isType(e,r[s]))return!0;!i&&!o&&(r=r.slice()),r[s]=n.util.typeName(r[s])}o=!0}var a=i;a||(a=r.join(", ").replace(/,([^,]+)$/,", or$1"));var u=a.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+u+" "+a),!1},validateNumber:function(e,t,r){if(null!=t){if("string"==typeof t){var n=parseFloat(t);n.toString()===t&&(t=n)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function(e,t){if(null!=e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(n.util.isNode()){var r=n.util.stream.Stream;if(n.util.Buffer.isBuffer(e)||e instanceof r)return}else if(void 0!==typeof Blob&&e instanceof Blob)return;var i=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var o=0;o<i.length;o++)if(n.util.isType(e,i[o])||n.util.typeName(e.constructor)===i[o])return;this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},26545:function(e,t,r){var n=r(84964),i=r(72338);e.exports={populateHostPrefix:function(e){if(!e.service.config.hostPrefixEnabled)return e;var t=e.service.api.operations[e.operation];if(function(e){var t=e.service.api,r=t.operations[e.operation],i=t.endpointOperation&&t.endpointOperation===n.string.lowerFirst(r.name);return"NULL"!==r.endpointDiscoveryRequired||!0===i}(e))return e;if(t.endpoint&&t.endpoint.hostPrefix){var r=function(e,t,r){return n.each(r.members,function(r,i){if(!0===i.hostLabel){if("string"!=typeof t[r]||""===t[r])throw n.error(new Error,{message:"Parameter "+r+" should be a non-empty string.",code:"InvalidParameter"});var o=new RegExp("\\{"+r+"\\}","g");e=e.replace(o,t[r])}}),e}(t.endpoint.hostPrefix,e.params,t.input);(function(e,t){e.host&&(e.host=t+e.host),e.hostname&&(e.hostname=t+e.hostname)})(e.httpRequest.endpoint,r),function(e){var t=e.split("."),r=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/;n.arrayEach(t,function(e){if(!e.length||e.length<1||e.length>63)throw n.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!r.test(e))throw i.util.error(new Error,{code:"ValidationError",message:e+" is not hostname compatible."})})}(e.httpRequest.endpoint.hostname)}return e}}},80537:function(e,t,r){var n=r(84964),i=r(70720),o=r(46179),s=r(26545).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.httpRequest,r=e.service.api,n=r.targetPrefix+"."+r.operations[e.operation].name,o=r.jsonVersion||"1.0",a=r.operations[e.operation].input,u=new i;1===o&&(o="1.0"),t.body=u.build(e.params||{},a),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=n,s(e)},extractError:function(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0)try{var i=JSON.parse(r.body.toString()),o=i.__type||i.code||i.Code;o&&(t.code=o.split("#").pop()),t.message="RequestEntityTooLarge"===t.code?"Request body must be less than 1 MB":i.message||i.Message||null}catch(s){t.statusCode=r.statusCode,t.message=r.statusMessage}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=n.error(new Error,t)},extractData:function(e){var t=e.httpResponse.body.toString()||"{}";if(!1===e.request.service.config.convertResponseTypes)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation].output||{},n=new o;e.data=n.parse(t,r)}}}},78298:function(e,t,r){var n=r(72338),i=r(84964),o=r(75277),s=r(74822),a=r(26545).populateHostPrefix;e.exports={buildRequest:function(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name},(new o).serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=i.queryParamsToString(r.params),a(e)},extractError:function(e){var t,r=e.httpResponse.body.toString();if(r.match("<UnknownOperationException"))t={Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation};else try{t=(new n.XML.Parser).parse(r)}catch(o){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),e.error=i.error(new Error,t.Code?{code:t.Code,message:t.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function(e){var t=e.request,r=t.service.api.operations[t.operation].output||{},o=r;if(o.resultWrapper){var a=s.create({type:"structure"});a.members[o.resultWrapper]=r,a.memberNames=[o.resultWrapper],i.property(r,"name",r.resultWrapper),r=a}var u=new n.XML.Parser;if(r&&r.members&&!r.members._XAMZRequestId){var c=s.create({type:"string"},{api:{protocol:"query"}},"requestId");r.members._XAMZRequestId=c}var l=u.parse(e.httpResponse.body.toString(),r);e.requestId=l._XAMZRequestId||l.requestId,l._XAMZRequestId&&delete l._XAMZRequestId,o.resultWrapper&&l[o.resultWrapper]&&(i.update(l,l[o.resultWrapper]),delete l[o.resultWrapper]),e.data=l}}},51888:function(e,t,r){var n=r(84964),i=r(26545).populateHostPrefix;function o(e,t,r,i){var o=[e,t].join("/");o=o.replace(/\/+/g,"/");var s={},a=!1;if(n.each(r.members,function(e,t){var r=i[e];if(null!=r)if("uri"===t.location){var u=new RegExp("\\{"+t.name+"(\\+)?\\}");o=o.replace(u,function(e,t){return(t?n.uriEscapePath:n.uriEscape)(String(r))})}else"querystring"===t.location&&(a=!0,"list"===t.type?s[t.name]=r.map(function(e){return n.uriEscape(t.member.toWireFormat(e).toString())}):"map"===t.type?n.each(r,function(e,t){s[e]=Array.isArray(t)?t.map(function(e){return n.uriEscape(String(e))}):n.uriEscape(String(t))}):s[t.name]=n.uriEscape(t.toWireFormat(r).toString()))}),a){o+=o.indexOf("?")>=0?"&":"?";var u=[];n.arrayEach(Object.keys(s).sort(),function(e){Array.isArray(s[e])||(s[e]=[s[e]]);for(var t=0;t<s[e].length;t++)u.push(n.uriEscape(String(e))+"="+s[e][t])}),o+=u.join("&")}return o}e.exports={buildRequest:function(e){(function(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod})(e),function(e){var t=e.service.api.operations[e.operation],r=o(e.httpRequest.endpoint.path,t.httpPath,t.input,e.params);e.httpRequest.path=r}(e),function(e){n.each(e.service.api.operations[e.operation].input.members,function(t,r){var i=e.params[t];null!=i&&("headers"===r.location&&"map"===r.type?n.each(i,function(t,n){e.httpRequest.headers[r.name+t]=n}):"header"===r.location&&(i=r.toWireFormat(i).toString(),r.isJsonValue&&(i=n.base64.encode(i)),e.httpRequest.headers[r.name]=i))})}(e),i(e)},extractError:function(){},extractData:function(e){var t=e.request,r={},i=e.httpResponse,o=t.service.api.operations[t.operation].output,s={};n.each(i.headers,function(e,t){s[e.toLowerCase()]=t}),n.each(o.members,function(e,t){var o=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var a=new RegExp("^"+(t.isLocationName?t.name:"")+"(.+)","i");n.each(i.headers,function(t,n){var i=t.match(a);null!==i&&(r[e][i[1]]=n)})}else if("header"===t.location){if(void 0!==s[o]){var u=t.isJsonValue?n.base64.decode(s[o]):s[o];r[e]=t.toType(u)}}else"statusCode"===t.location&&(r[e]=parseInt(i.statusCode,10))}),e.data=r},generateURI:o}},10673:function(e,t,r){var n=r(84964),i=r(51888),o=r(80537),s=r(70720),a=r(46179);function u(e,t){e.httpRequest.headers["Content-Type"]||(e.httpRequest.headers["Content-Type"]=t?"binary/octet-stream":"application/json")}e.exports={buildRequest:function(e){i.buildRequest(e),["HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&function(e){var t=new s,r=e.service.api.operations[e.operation].input;if(r.payload){var n,i=r.members[r.payload];if(void 0===(n=e.params[r.payload]))return;"structure"===i.type?(e.httpRequest.body=t.build(n,i),u(e)):(e.httpRequest.body=n,("binary"===i.type||i.isStreaming)&&u(e,!0))}else{var o=t.build(e.params,r);("{}"!==o||"GET"!==e.httpRequest.method)&&(e.httpRequest.body=o),u(e)}}(e)},extractError:function(e){o.extractError(e)},extractData:function(e){i.extractData(e);var t=e.request,r=t.service.api.operations[t.operation].output||{};if(r.payload){var s=r.members[r.payload],u=e.httpResponse.body;if(s.isEventStream)c=new a,e.data[payload]=n.createEventStream(2===AWS.HttpClient.streamsApiVersion?e.httpResponse.stream:u,c,s);else if("structure"===s.type||"list"===s.type){var c=new a;e.data[r.payload]=c.parse(u,s)}else e.data[r.payload]="binary"===s.type||s.isStreaming?u:s.toType(u)}else{var l=e.data;o.extractData(e),e.data=n.merge(l,e.data)}}}},68683:function(e,t,r){var n=r(72338),i=r(84964),o=r(51888);e.exports={buildRequest:function(e){o.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&function(e){var t=e.service.api.operations[e.operation].input,r=new n.XML.Builder,o=e.params,s=t.payload;if(s){var a=t.members[s];if(void 0===(o=o[s]))return;e.httpRequest.body="structure"===a.type?r.toXML(o,a,a.name,!0):o}else e.httpRequest.body=r.toXML(o,t,t.name||t.shape||i.string.upperFirst(e.operation)+"Request")}(e)},extractError:function(e){var t;o.extractError(e);try{t=(new n.XML.Parser).parse(e.httpResponse.body.toString())}catch(r){t={Code:e.httpResponse.statusCode,Message:e.httpResponse.statusMessage}}t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),e.error=i.error(new Error,t.Code?{code:t.Code,message:t.Message}:{code:e.httpResponse.statusCode,message:null})},extractData:function(e){o.extractData(e);var t,r=e.request,s=e.httpResponse.body,a=r.service.api.operations[r.operation].output,u=a.payload;if(u){var c=a.members[u];c.isEventStream?(t=new n.XML.Parser,e.data[u]=i.createEventStream(2===n.HttpClient.streamsApiVersion?e.httpResponse.stream:e.httpResponse.body,t,c)):"structure"===c.type?(t=new n.XML.Parser,e.data[u]=t.parse(s.toString(),c)):e.data[u]="binary"===c.type||c.isStreaming?s:c.toType(s)}else if(s.length>0){var l=(t=new n.XML.Parser).parse(s.toString(),a);i.update(e.data,l)}}}},75277:function(e,t,r){var n=r(84964);function i(){}function o(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function s(e,t,r,i){n.each(r.members,function(r,n){var s=t[r];if(null!=s){var u=o(n);a(u=e?e+"."+u:u,s,n,i)}})}function a(e,t,r,i){null!=t&&("structure"===r.type?s(e,t,r,i):"list"===r.type?function(e,t,r,i){var s=r.member||{};0!==t.length?n.arrayEach(t,function(t,n){var u="."+(n+1);if("ec2"===r.api.protocol)u+="";else if(r.flattened){if(s.name){var c=e.split(".");c.pop(),c.push(o(s)),e=c.join(".")}}else u="."+(s.name?s.name:"member")+u;a(e+u,t,s,i)}):i.call(this,e,null)}(e,t,r,i):"map"===r.type?function(e,t,r,i){var o=1;n.each(t,function(t,n){var s=(r.flattened?".":".entry.")+o+++".",u=s+(r.value.name||"value");a(e+(s+(r.key.name||"key")),t,r.key,i),a(e+u,n,r.value,i)})}(e,t,r,i):i(e,r.toWireFormat(t).toString()))}i.prototype.serialize=function(e,t,r){s("",e,t,r)},e.exports=i},43984:function(e){e.exports={now:function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()}}},32313:function(e,t,r){var n=r(84964),i=r(50261);function o(e,t){n.each(t,function(t,r){"globalEndpoint"!==t&&null==e.config[t]&&(e.config[t]=r)})}e.exports={configureEndpoint:function(e){for(var t=function(e){var t=e.config.region,r=function(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}(t),n=e.api.endpointPrefix;return[[t,n],[r,n],[t,"*"],[r,"*"],["*",n],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}(e),r=0;r<t.length;r++){var s=t[r];if(s&&Object.prototype.hasOwnProperty.call(i.rules,s)){var a=i.rules[s];return"string"==typeof a&&(a=i.patterns[a]),e.config.useDualstack&&n.isDualstackAvailable(e)&&((a=n.copy(a)).endpoint=a.endpoint.replace(/{service}\.({region}\.)?/,"{service}.dualstack.{region}.")),e.isGlobalEndpoint=!!a.globalEndpoint,a.signingRegion&&(e.signingRegion=a.signingRegion),a.signatureVersion||(a.signatureVersion="v4"),void o(e,a)}}},getEndpointSuffix:function(e){for(var t={"^(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"},r=Object.keys(t),n=0;n<r.length;n++){var i=RegExp(r[n]),o=t[r[n]];if(i.test(e))return o}return"amazonaws.com"}}},60782:function(e,t,r){var n=r(72338),i=r(18730),o=n.util.inherit,s=n.util.domain,a=r(94443),u={success:1,error:1,complete:1},c=new i;c.setupStates=function(){var e=function(e,t){var r=this;r._haltHandlersOnError=!1,r.emit(r._asm.currentState,function(e){if(e)if(function(e){return Object.prototype.hasOwnProperty.call(u,e._asm.currentState)}(r)){if(!(s&&r.domain instanceof s.Domain))throw e;e.domainEmitter=r,e.domain=r.domain,e.domainThrown=!1,r.domain.emit("error",e)}else r.response.error=e,t(e);else t(r.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},c.setupStates(),n.Request=o({constructor:function(e,t,r){var o=e.endpoint,a=e.config.region,u=e.config.customUserAgent;e.isGlobalEndpoint&&(a=e.signingRegion?e.signingRegion:"us-east-1"),this.domain=s&&s.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new n.HttpRequest(o,a),this.httpRequest.appendToUserAgent(u),this.startTime=e.getSkewCorrectedDate(),this.response=new n.Response(this),this._asm=new i(c.states,"validate"),this._haltHandlersOnError=!1,n.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function(e){return e&&(this.httpRequest.appendToUserAgent("callback"),this.on("complete",function(t){e.call(t,t.error,t.data)})),this.runTo(),this.response},build:function(e){return this.runTo("send",e)},runTo:function(e,t){return this._asm.runTo(e,t,this),this},abort:function(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function(e){e.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(e){e=n.util.fn.makeAsync(e,3),this.on("complete",function t(r){e.call(r,r.error,r.data,function(i){!1!==i&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,n.util.fn.noop))})}).send()},eachItem:function(e){var t=this;this.eachPage(function(r,i){if(r)return e(r,null);if(null===i)return e(null,null);var o=t.service.paginationConfig(t.operation).resultKey;Array.isArray(o)&&(o=o[0]);var s=a.search(i,o),u=!0;return n.util.arrayEach(s,function(t){if(!1===(u=e(null,t)))return n.util.abort}),u})},isPageable:function(){return!!this.service.paginationConfig(this.operation)},createReadStream:function(){var e=n.util.stream,t=this,r=null;return 2===n.HttpClient.streamsApiVersion?(r=new e.PassThrough,process.nextTick(function(){t.send()})):((r=new e.Stream).readable=!0,r.sent=!1,r.on("newListener",function(e){!r.sent&&"data"===e&&(r.sent=!0,process.nextTick(function(){t.send()}))})),this.on("error",function(e){r.emit("error",e)}),this.on("httpHeaders",function(i,o,s){if(i<300){t.removeListener("httpData",n.EventListeners.Core.HTTP_DATA),t.removeListener("httpError",n.EventListeners.Core.HTTP_ERROR),t.on("httpError",function(e){s.error=e,s.error.retryable=!1});var a,u=!1;if("HEAD"!==t.httpRequest.method&&(a=parseInt(o["content-length"],10)),void 0!==a&&!isNaN(a)&&a>=0){u=!0;var c=0}var l=function(){u&&c!==a?r.emit("error",n.util.error(new Error("Stream content length mismatch. Received "+c+" of "+a+" bytes."),{code:"StreamContentLengthMismatch"})):2===n.HttpClient.streamsApiVersion?r.end():r.emit("end")},f=s.httpResponse.createUnbufferedStream();if(2===n.HttpClient.streamsApiVersion)if(u){var p=new e.PassThrough;p._write=function(t){return t&&t.length&&(c+=t.length),e.PassThrough.prototype._write.apply(this,arguments)},p.on("end",l),r.on("error",function(e){u=!1,f.unpipe(p),p.emit("end"),p.end()}),f.pipe(p).pipe(r,{end:!1})}else f.pipe(r);else u&&f.on("data",function(e){e&&e.length&&(c+=e.length)}),f.on("data",function(e){r.emit("data",e)}),f.on("end",l);f.on("error",function(e){u=!1,r.emit("error",e)})}}),r},emitEvent:function(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response)),n.SequentialExecutor.prototype.emit.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function(e){switch(e){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(e,t){return!t&&"function"==typeof e&&(t=e,e=null),(new n.Signers.Presign).sign(this.toGet(),e,t)},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(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function(){this._haltHandlersOnError=!0}}),n.Request.addPromisesToClass=function(e){this.prototype.promise=function(){var t=this;return this.httpRequest.appendToUserAgent("promise"),new e(function(e,r){t.on("complete",function(t){t.error?r(t.error):e(Object.defineProperty(t.data||{},"$response",{value:t}))}),t.runTo()})}},n.Request.deletePromisesFromClass=function(){delete this.prototype.promise},n.util.addPromises(n.Request),n.util.mixin(n.Request,n.SequentialExecutor)},11277:function(e,t,r){var n=r(72338),i=n.util.inherit,o=r(94443);function s(e){var t=e.request._waiter,r=!1,n="retry";t.config.acceptors.forEach(function(i){if(!r){var o=t.matchers[i.matcher];o&&o(e,i.expected,i.argument)&&(r=!0,n=i.state)}}),!r&&e.error&&(n="failure"),"success"===n?t.setSuccess(e):t.setError(e,"retry"===n)}n.ResourceWaiter=i({constructor:function(e,t){this.service=e,this.state=t,this.loadWaiterConfig(this.state)},service:null,state:null,config:null,matchers:{path:function(e,t,r){try{var n=o.search(e.data,r)}catch(i){return!1}return o.strictDeepEqual(n,t)},pathAll:function(e,t,r){try{var n=o.search(e.data,r)}catch(a){return!1}Array.isArray(n)||(n=[n]);var i=n.length;if(!i)return!1;for(var s=0;s<i;s++)if(!o.strictDeepEqual(n[s],t))return!1;return!0},pathAny:function(e,t,r){try{var n=o.search(e.data,r)}catch(a){return!1}Array.isArray(n)||(n=[n]);for(var i=n.length,s=0;s<i;s++)if(o.strictDeepEqual(n[s],t))return!0;return!1},status:function(e,t){var r=e.httpResponse.statusCode;return"number"==typeof r&&r===t},error:function(e,t){return"string"==typeof t&&e.error?t===e.error.code:t===!!e.error}},listeners:(new n.SequentialExecutor).addNamedListeners(function(e){e("RETRY_CHECK","retry",function(e){e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*(e.request._waiter.config.delay||0))}),e("CHECK_OUTPUT","extractData",s),e("CHECK_ERROR","extractError",s)}),wait:function(e,t){"function"==typeof e&&(t=e,e=void 0),e&&e.$waiter&&("number"==typeof(e=n.util.copy(e)).$waiter.delay&&(this.config.delay=e.$waiter.delay),"number"==typeof e.$waiter.maxAttempts&&(this.config.maxAttempts=e.$waiter.maxAttempts),delete e.$waiter);var r=this.service.makeRequest(this.config.operation,e);return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.listeners),t&&r.send(t),r},setSuccess:function(e){e.error=null,e.data=e.data||{},e.request.removeAllListeners("extractData")},setError:function(e,t){e.data=null,e.error=n.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},loadWaiterConfig:function(e){if(!this.service.api.waiters[e])throw new n.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."});this.config=n.util.copy(this.service.api.waiters[e])}})},53871:function(e,t,r){var n=r(72338),i=n.util.inherit,o=r(94443);n.Response=i({constructor:function(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new n.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function(e){var t,r=this.request.service,i=this.request.operation;try{t=r.paginationConfig(i,!0)}catch(u){this.error=u}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var o=n.util.copy(this.request.params);if(this.nextPageTokens){var s=t.inputToken;"string"==typeof s&&(s=[s]);for(var a=0;a<s.length;a++)o[s[a]]=this.nextPageTokens[a];return r.makeRequest(this.request.operation,o,e)}return e?e(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 e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!o.search(this.data,e.moreResults))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),n.util.arrayEach.call(this,t,function(e){var t=o.search(this.data,e);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})},31893:function(e,t,r){var n=r(72338);n.SequentialExecutor=n.util.inherit({constructor:function(){this._events={}},listeners:function(e){return this._events[e]?this._events[e].slice(0):[]},on:function(e,t,r){return this._events[e]?r?this._events[e].unshift(t):this._events[e].push(t):this._events[e]=[t],this},onAsync:function(e,t,r){return t._isAsync=!0,this.on(e,t,r)},removeListener:function(e,t){var r=this._events[e];if(r){for(var n=r.length,i=-1,o=0;o<n;++o)r[o]===t&&(i=o);i>-1&&r.splice(i,1)}return this},removeAllListeners:function(e){return e?delete this._events[e]:this._events={},this},emit:function(e,t,r){r||(r=function(){});var n=this.listeners(e),i=n.length;return this.callListeners(n,t,r),i>0},callListeners:function(e,t,r,i){var o=this,s=i||null;function a(i){if(i&&(s=n.util.error(s||new Error,i),o._haltHandlersOnError))return r.call(o,s);o.callListeners(e,t,r,s)}for(;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(o,t.concat([a]));try{u.apply(o,t)}catch(c){s=n.util.error(s||new Error,c)}if(s&&o._haltHandlersOnError)return void r.call(o,s)}r.call(o,s)},addListeners:function(e){var t=this;return e._events&&(e=e._events),n.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),n.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function(e,t,r,n){return this[e]=r,this.addListener(t,r,n),this},addNamedAsyncListener:function(e,t,r,n){return r._isAsync=!0,this.addNamedListener(e,t,r,n)},addNamedListeners:function(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),n.SequentialExecutor.prototype.addListener=n.SequentialExecutor.prototype.on,e.exports=n.SequentialExecutor},70014:function(e,t,r){var n=r(72338),i=r(68734),o=r(32313),s=n.util.inherit,a=0;n.Service=s({constructor:function(e){if(!this.loadServiceClass)throw n.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});if(t){var r=n.util.copy(e),i=new t(e);return Object.defineProperty(i,"_originalConfig",{get:function(){return r},enumerable:!1,configurable:!0}),i._clientId=++a,i}this.initialize(e)},initialize:function(e){var t=n.config[this.serviceIdentifier];if(this.config=new n.Config(n.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||o.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 r=this.publisher;this.addNamedListener("PUBLISH_API_CALL","apiCall",function(e){process.nextTick(function(){r.eventHandler(e)})}),this.addNamedListener("PUBLISH_API_ATTEMPT","apiCallAttempt",function(e){process.nextTick(function(){r.eventHandler(e)})})}},validateService:function(){},loadServiceClass:function(e){var t=e;if(n.util.isEmpty(this.api)){if(t.apiConfig)return n.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){(t=new n.Config(n.config)).update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return this.getLatestServiceClass(r=r||t.apiVersion)}return null}return null},getLatestServiceClass:function(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&n.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?n.util.isType(e,Date)&&(e=n.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,i=t.length-1;i>=0;i--)if("*"!==t[i][t[i].length-1]&&(r=t[i]),t[i].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,customizeRequests:function(e){if(e){if("function"!=typeof e)throw new Error("Invalid callback type '"+typeof e+"' provided in customizeRequests");this.customRequestHandler=e}else this.customRequestHandler=null},makeRequest:function(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var i=this.api.operations[e];i&&(t=n.util.copy(t),n.util.each(this.config.params,function(e,r){i.input.members[e]&&null==t[e]&&(t[e]=r)}))}var o=new n.Request(this,e,t);return this.addAllRequestListeners(o),this.attachMonitoringEmitter(o),r&&o.send(r),o},makeUnauthenticatedRequest:function(e,t,r){"function"==typeof t&&(r=t,t={});var n=this.makeRequest(e,t).toUnauthenticated();return r?n.send(r):n},waitFor:function(e,t,r){return new n.ResourceWaiter(this,e).wait(t,r)},addAllRequestListeners:function(e){for(var t=[n.events,n.EventListeners.Core,this.serviceInterface(),n.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",n.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(n.EventListeners.Logger),this.setupRequestListeners(e),"function"==typeof this.constructor.prototype.customRequestHandler&&this.constructor.prototype.customRequestHandler(e),Object.prototype.hasOwnProperty.call(this,"customRequestHandler")&&"function"==typeof this.customRequestHandler&&this.customRequestHandler(e)},apiCallEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCall",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Region:e.httpRequest.region,MaxRetriesExceeded:0,UserAgent:e.httpRequest.getUserAgent()},n=e.response;if(n.httpResponse.statusCode&&(r.FinalHttpStatusCode=n.httpResponse.statusCode),n.error){var i=n.error;n.httpResponse.statusCode>299?(i.code&&(r.FinalAwsException=i.code),i.message&&(r.FinalAwsExceptionMessage=i.message)):((i.code||i.name)&&(r.FinalSdkException=i.code||i.name),i.message&&(r.FinalSdkExceptionMessage=i.message))}return r},apiAttemptEvent:function(e){var t=e.service.api.operations[e.operation],r={Type:"ApiCallAttempt",Api:t?t.name:e.operation,Version:1,Service:e.service.api.serviceId||e.service.api.endpointPrefix,Fqdn:e.httpRequest.endpoint.hostname,UserAgent:e.httpRequest.getUserAgent()},n=e.response;return n.httpResponse.statusCode&&(r.HttpStatusCode=n.httpResponse.statusCode),!e._unAuthenticated&&e.service.config.credentials&&e.service.config.credentials.accessKeyId&&(r.AccessKey=e.service.config.credentials.accessKeyId),n.httpResponse.headers&&(e.httpRequest.headers["x-amz-security-token"]&&(r.SessionToken=e.httpRequest.headers["x-amz-security-token"]),n.httpResponse.headers["x-amzn-requestid"]&&(r.XAmznRequestId=n.httpResponse.headers["x-amzn-requestid"]),n.httpResponse.headers["x-amz-request-id"]&&(r.XAmzRequestId=n.httpResponse.headers["x-amz-request-id"]),n.httpResponse.headers["x-amz-id-2"]&&(r.XAmzId2=n.httpResponse.headers["x-amz-id-2"])),r},attemptFailEvent:function(e){var t=this.apiAttemptEvent(e),r=e.response,n=r.error;return r.httpResponse.statusCode>299?(n.code&&(t.AwsException=n.code),n.message&&(t.AwsExceptionMessage=n.message)):((n.code||n.name)&&(t.SdkException=n.code||n.name),n.message&&(t.SdkExceptionMessage=n.message)),t},attachMonitoringEmitter:function(e){var t,r,i,o,s,a,u=0,c=this;e.on("validate",function(){o=n.util.realClock.now(),a=Date.now()},!0),e.on("sign",function(){r=n.util.realClock.now(),t=Date.now(),s=e.httpRequest.region,u++},!0),e.on("validateResponse",function(){i=Math.round(n.util.realClock.now()-r)}),e.addNamedListener("API_CALL_ATTEMPT","success",function(){var r=c.apiAttemptEvent(e);r.Timestamp=t,r.AttemptLatency=i>=0?i:0,r.Region=s,c.emit("apiCallAttempt",[r])}),e.addNamedListener("API_CALL_ATTEMPT_RETRY","retry",function(){var o=c.attemptFailEvent(e);o.Timestamp=t,i=i||Math.round(n.util.realClock.now()-r),o.AttemptLatency=i>=0?i:0,o.Region=s,c.emit("apiCallAttempt",[o])}),e.addNamedListener("API_CALL","complete",function(){var t=c.apiCallEvent(e);if(t.AttemptCount=u,!(t.AttemptCount<=0)){t.Timestamp=a;var r=Math.round(n.util.realClock.now()-o);t.Latency=r>=0?r:0;var i=e.response;i.error&&i.error.retryable&&"number"==typeof i.retryCount&&"number"==typeof i.maxRetries&&i.retryCount>=i.maxRetries&&(t.MaxRetriesExceeded=1),c.emit("apiCall",[t])}})},setupRequestListeners:function(e){},getSigningName:function(){return this.api.signingName||this.api.endpointPrefix},getSignerClass:function(e){var t=null,r="";return e&&(r=(t=(e.service.api.operations||{})[e.operation]||null)?t.authtype:""),n.Signers.RequestSigner.getVersion(this.config.signatureVersion?this.config.signatureVersion:"v4"===r||"v4-unsigned-body"===r?"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(e){return e.httpResponse.statusCode<300},numRetries:function(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function(e,t){return n.util.calculateRetryDelay(e,this.config.retryDelayOptions,t)},retryableError:function(e){return!!(this.timeoutError(e)||this.networkingError(e)||this.expiredCredentialsError(e)||this.throttledError(e)||e.statusCode>=500)},networkingError:function(e){return"NetworkingError"===e.code},timeoutError:function(e){return"TimeoutError"===e.code},expiredCredentialsError:function(e){return"ExpiredTokenException"===e.code},clockSkewError:function(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},getSkewCorrectedDate:function(){return new Date(Date.now()+this.config.systemClockOffset)},applyClockOffset:function(e){e&&(this.config.systemClockOffset=e-Date.now())},isClockSkewed:function(e){if(e)return Math.abs(this.getSkewCorrectedDate().getTime()-e)>=3e5},throttledError:function(e){if(429===e.statusCode)return!0;switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":case"RequestThrottledException":case"TooManyRequestsException":case"TransactionInProgressException":case"EC2ThrottledException":return!0;default:return!1}},endpointFromTemplate:function(e){if("string"!=typeof e)return e;var t=e;return(t=(t=t.replace(/\{service\}/g,this.api.endpointPrefix)).replace(/\{region\}/g,this.config.region)).replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function(e){this.endpoint=new n.Endpoint(e,this.config)},paginationConfig:function(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var i=new Error;throw n.util.error(i,"No pagination configuration for "+e)}return null}return r}}),n.util.update(n.Service,{defineMethods:function(e){n.util.each(e.prototype.api.operations,function(t){e.prototype[t]||(e.prototype[t]="none"===e.prototype.api.operations[t].authtype?function(e,r){return this.makeUnauthenticatedRequest(t,e,r)}:function(e,r){return this.makeRequest(t,e,r)})})},defineService:function(e,t,r){n.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var i=s(n.Service,r||{});if("string"==typeof e?(n.Service.addVersions(i,t),i.serviceIdentifier=i.serviceIdentifier||e):(i.prototype.api=e,n.Service.defineMethods(i)),n.SequentialExecutor.call(this.prototype),!this.prototype.publisher&&n.util.clientSideMonitoring){var o=n.util.clientSideMonitoring.Publisher,a=(0,n.util.clientSideMonitoring.configProvider)();this.prototype.publisher=new o(a),a.enabled&&(n.Service._clientSideMonitoring=!0)}return n.SequentialExecutor.call(i.prototype),n.Service.addDefaultMonitoringListeners(i.prototype),i},addVersions:function(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function(e,t,r){var o=s(e,{serviceIdentifier:e.serviceIdentifier});function a(t){o.prototype.api=t.isApi?t:new i(t,{serviceIdentifier:e.serviceIdentifier})}if("string"==typeof t){if(r)a(r);else try{a(n.apiLoader(e.serviceIdentifier,t))}catch(u){throw n.util.error(u,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}Object.prototype.hasOwnProperty.call(e.services,t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=o}else a(t);return n.Service.defineMethods(o),o},hasService:function(e){return Object.prototype.hasOwnProperty.call(n.Service._serviceMap,e)},addDefaultMonitoringListeners:function(e){e.addNamedListener("MONITOR_EVENTS_BUBBLE","apiCallAttempt",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCallAttempt",[t])}),e.addNamedListener("CALL_EVENTS_BUBBLE","apiCall",function(t){var r=Object.getPrototypeOf(e);r._events&&r.emit("apiCall",[t])})},_serviceMap:{}}),n.util.mixin(n.Service,n.SequentialExecutor),e.exports=n.Service},25974:function(e,t,r){var n=r(72338),i=r(98914);n.util.update(n.STS.prototype,{credentialsFrom:function(e,t){return e?(t||(t=new n.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)},setupRequestListeners:function(e){e.addListener("validate",this.optInRegionalEndpoint,!0)},optInRegionalEndpoint:function(e){var t=e.service,r=t.config;if(r.stsRegionalEndpoints=i(t._originalConfig,{env:"AWS_STS_REGIONAL_ENDPOINTS",sharedConfig:"sts_regional_endpoints",clientConfig:"stsRegionalEndpoints"}),"regional"===r.stsRegionalEndpoints&&t.isGlobalEndpoint){if(!r.region)throw n.util.error(new Error,{code:"ConfigError",message:"Missing region in config"});var o=r.endpoint.indexOf(".amazonaws.com"),s=r.endpoint.substring(0,o)+"."+r.region+r.endpoint.substring(o);e.httpRequest.updateEndpoint(s),e.httpRequest.region=r.region}}})},57345:function(e,t,r){var n=r(72338),i="presigned-expires";function o(e){var t=e.httpRequest.headers[i],r=e.service.getSignerClass(e);if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],r===n.Signers.V4){if(t>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});e.httpRequest.headers[i]=t}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 o=e.service?e.service.getSkewCorrectedDate():n.util.date.getDate();e.httpRequest.headers[i]=parseInt(n.util.date.unixTimestamp(o)+t,10).toString()}}function s(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),o={};r.search&&(o=n.util.queryStringParse(r.search.substr(1)));var s=e.httpRequest.headers.Authorization.split(" ");if("AWS"===s[0])s=s[1].split(":"),o.Signature=s.pop(),o.AWSAccessKeyId=s.join(":"),n.util.each(e.httpRequest.headers,function(e,t){e===i&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(delete o[e],e=e.toLowerCase()),o[e]=t}),delete e.httpRequest.headers[i],delete o.Authorization,delete o.Host;else if("AWS4-HMAC-SHA256"===s[0]){s.shift();var a=s.join(" ").match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];o["X-Amz-Signature"]=a,delete o.Expires}t.pathname=r.pathname,t.search=n.util.queryParamsToString(o)}n.Signers.Presign=(0,n.util.inherit)({sign:function(e,t,r){if(e.httpRequest.headers[i]=t||3600,e.on("build",o),e.on("sign",s),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))})}}),e.exports=n.Signers.Presign},15198:function(e,t,r){var n=r(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)},r(44508),r(70434),r(62189),r(28479),r(27531),r(57345)},27531:function(e,t,r){var n=r(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 r=this.sign(e.secretAccessKey,this.stringToSign());this.request.headers.Authorization="AWS "+e.accessKeyId+":"+r},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 r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function(){var e=[];n.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),t.join("\n")},canonicalizedResource:function(){var e=this.request,t=e.path.split("?"),r=t[1],i="";if(e.virtualHostedBucket&&(i+="/"+e.virtualHostedBucket),i+=t[0],r){var o=[];n.util.arrayEach.call(this,r.split("&"),function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var n={name:t};void 0!==r&&(n.value=this.subResources[t]?r:decodeURIComponent(r)),o.push(n)}}),o.sort(function(e,t){return e.name<t.name?-1:1}),o.length&&(r=[],n.util.arrayEach(o,function(e){r.push(void 0===e.value?e.name:e.name+"="+e.value)}),i+="?"+r.join("&"))}return i},sign:function(e,t){return n.util.crypto.hmac(e,t,"base64","sha1")}}),e.exports=n.Signers.S3},44508:function(e,t,r){var n=r(72338);n.Signers.V2=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){t||(t=n.util.date.getDate());var r=this.request;r.params.Timestamp=n.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=n.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.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")}}),e.exports=n.Signers.V2},70434:function(e,t,r){var n=r(72338);n.Signers.V3=(0,n.util.inherit)(n.Signers.RequestSigner,{addAuthorization:function(e,t){var r=n.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},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(t){e.push(t.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function(){var e=this.request.headers,t=[];return n.util.arrayEach(this.headersToSign(),function(r){t.push(r.toLowerCase().trim()+":"+String(e[r]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function(){var e=[];return n.util.each(this.request.headers,function(t){("Host"===t||"Content-Encoding"===t||t.match(/^X-Amz/i))&&e.push(t)}),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"))}}),e.exports=n.Signers.V3},62189:function(e,t,r){var n=r(72338),i=n.util.inherit;r(70434),n.Signers.V3Https=i(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"]}}),e.exports=n.Signers.V3Https},28479:function(e,t,r){var n=r(72338),i=r(68703),o="presigned-expires";n.Signers.V4=(0,n.util.inherit)(n.Signers.RequestSigner,{constructor:function(e,t,r){n.Signers.RequestSigner.call(this,e),this.serviceName=t,this.signatureCache="boolean"!=typeof(r=r||{}).signatureCache||r.signatureCache,this.operation=r.operation,this.signatureVersion=r.signatureVersion},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function(e,t){var r=n.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function(e,t){var r=this.credentialString(t),i={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[o],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(i["X-Amz-Security-Token"]=e.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(e,t){if(e!==o&&this.isSignableHeader(e)){var r=e.toLowerCase();0===r.indexOf("x-amz-meta-")?i[r]=t:0===r.indexOf("x-amz-")&&(i[e]=t)}});var s=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=s+n.util.queryParamsToString(i)},authorization:function(e,t){var r=[],n=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+n),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function(e,t){var r=i.getSigningKey(e,t.substr(0,8),this.request.region,this.serviceName,this.signatureCache);return n.util.crypto.hmac(r,this.stringToSign(t),"hex")},stringToSign:function(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&"s3v4"!==this.signatureVersion&&(t=n.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function(){var e=[];n.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1});var t=[];return n.util.arrayEach.call(this,e,function(e){var r=e[0].toLowerCase();if(this.isSignableHeader(r)){var i=e[1];if(null==i||"function"!=typeof i.toString)throw n.util.error(new Error("Header "+r+" contains invalid value"),{code:"InvalidHeader"});t.push(r+":"+this.canonicalHeaderValues(i.toString()))}}),t.join("\n")},canonicalHeaderValues:function(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function(){var e=[];return n.util.each.call(this,this.request.headers,function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)}),e.sort().join(";")},credentialString:function(e){return i.createScope(e.substr(0,8),this.request.region,this.serviceName)},hexEncodedHash:function(e){return n.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function(){var e=this.request;return this.isPresigned()&&"s3"===this.serviceName&&!e.body?"UNSIGNED-PAYLOAD":e.headers["X-Amz-Content-Sha256"]?e.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",o,"expect","x-amzn-trace-id"],isSignableHeader:function(e){return 0===e.toLowerCase().indexOf("x-amz-")||this.unsignableHeaders.indexOf(e)<0},isPresigned:function(){return!!this.request.headers[o]}}),e.exports=n.Signers.V4},68703:function(e,t,r){var n=r(72338),i={},o=[],s="aws4_request";e.exports={createScope:function(e,t,r){return[e.substr(0,8),t,r,s].join("/")},getSigningKey:function(e,t,r,a,u){var c=[n.util.crypto.hmac(e.secretAccessKey,e.accessKeyId,"base64"),t,r,a].join("_");if((u=!1!==u)&&c in i)return i[c];var l=n.util.crypto.hmac("AWS4"+e.secretAccessKey,t,"buffer"),f=n.util.crypto.hmac(l,r,"buffer"),p=n.util.crypto.hmac(f,a,"buffer"),h=n.util.crypto.hmac(p,s,"buffer");return u&&(i[c]=h,o.push(c),o.length>50&&delete i[o.shift()]),h},emptyCache:function(){i={},o=[]}}},18730:function(e){function t(e,t){this.currentState=t||null,this.states=e||{}}t.prototype.runTo=function(e,t,r,n){"function"==typeof e&&(n=r,r=t,t=e,e=null);var i=this,o=i.states[i.currentState];o.fn.call(r||i,n,function(n){if(n){if(!o.fail)return t?t.call(r,n):null;i.currentState=o.fail}else{if(!o.accept)return t?t.call(r):null;i.currentState=o.accept}if(i.currentState===e)return t?t.call(r,n):null;i.runTo(e,t,r,n)})},t.prototype.addState=function(e,t,r,n){return"function"==typeof t?(n=t,t=null,r=null):"function"==typeof r&&(n=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:n},this},e.exports=t},84964:function(e,t,r){var n,i={environment:"nodejs",engine:function(){if(i.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=i.environment,t="aws-sdk-"+e+"/"+r(72338).VERSION;return"nodejs"===e&&(t+=" "+i.engine()),t},uriEscape:function(e){var t=encodeURIComponent(e);return(t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function(e){var t=[];return i.arrayEach(e.split("/"),function(e){t.push(i.uriEscape(e))}),t.join("/")},urlParse:function(e){return i.url.parse(e)},urlFormat:function(e){return i.url.format(e)},queryStringParse:function(e){return i.querystring.parse(e)},queryParamsToString:function(e){var t=[],r=i.uriEscape,n=Object.keys(e).sort();return i.arrayEach(n,function(n){var o=e[n],s=r(n),a=s+"=";if(Array.isArray(o)){var u=[];i.arrayEach(o,function(e){u.push(r(e))}),a=s+"="+u.sort().join("&"+s+"=")}else null!=o&&(a=s+"="+r(o));t.push(a)}),t.join("&")},readFileSync:function(e){return i.isBrowser()?null:r(94659).readFileSync(e,"utf-8")},base64:{encode:function(e){if("number"==typeof e)throw i.error(new Error("Cannot base64 encode number "+e));return null==e?e:i.buffer.toBuffer(e).toString("base64")},decode:function(e){if("number"==typeof e)throw i.error(new Error("Cannot base64 decode number "+e));return null==e?e:i.buffer.toBuffer(e,"base64")}},buffer:{toBuffer:function(e,t){return"function"==typeof i.Buffer.from&&i.Buffer.from!==Uint8Array.from?i.Buffer.from(e,t):new i.Buffer(e,t)},alloc:function(e,t,r){if("number"!=typeof e)throw new Error("size passed to alloc must be a number.");if("function"==typeof i.Buffer.alloc)return i.Buffer.alloc(e,t,r);var n=new i.Buffer(e);return void 0!==t&&"function"==typeof n.fill&&n.fill(t,void 0,void 0,r),n},toStream:function(e){i.Buffer.isBuffer(e)||(e=i.buffer.toBuffer(e));var t=new i.stream.Readable,r=0;return t._read=function(n){if(r>=e.length)return t.push(null);var i=r+n;i>e.length&&(i=e.length),t.push(e.slice(r,i)),r=i},t},concat:function(e){var t,r,n=0,o=0;for(r=0;r<e.length;r++)n+=e[r].length;for(t=i.buffer.alloc(n),r=0;r<e.length;r++)e[r].copy(t,o),o+=e[r].length;return t}},string:{byteLength:function(e){if(null==e)return 0;if("string"==typeof e&&(e=i.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 r(94659).lstatSync(e.path).size;throw i.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,r={};return i.arrayEach(e.split(/\r?\n/),function(e){var n=(e=e.split(/(^|\s)[;#]/)[0]).match(/^\s*\[([^\[\]]+)\]\s*$/);if(n){if("__proto__"===(t=n[1])||"__proto__"===t.split(/\s/)[1])throw i.error(new Error("Cannot load profile name '"+t+"' from shared ini file."))}else if(t){var o=e.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);o&&(r[t]=r[t]||{},r[t][o[1]]=o[2])}}),r}},fn:{noop:function(){},callback:function(e){if(e)throw e},makeAsync:function(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0),r=t.pop(),n=e.apply(null,t);r(n)}}},date:{getDate:function(){return n||(n=r(72338)),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function(e){return void 0===e&&(e=i.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function(e){return void 0===e&&(e=i.date.getDate()),e.toUTCString()},unixTimestamp:function(e){return void 0===e&&(e=i.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"),i.date[t](i.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 i.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=i.crypto.crc32Table,r=-1;"string"==typeof e&&(e=i.buffer.toBuffer(e));for(var n=0;n<e.length;n++)r=r>>>8^t[255&(r^e.readUInt8(n))];return(-1^r)>>>0},hmac:function(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=i.buffer.toBuffer(t)),i.crypto.lib.createHmac(n,e).update(t).digest(r)},md5:function(e,t,r){return i.crypto.hash("md5",e,t,r)},sha256:function(e,t,r){return i.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,n){var o=i.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=i.buffer.toBuffer(t));var s=i.arraySliceFn(t),a=i.Buffer.isBuffer(t);if(i.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(a=!0),n&&"object"==typeof t&&"function"==typeof t.on&&!a)t.on("data",function(e){o.update(e)}),t.on("error",function(e){n(e)}),t.on("end",function(){n(null,o.digest(r))});else{if(!n||!s||a||"undefined"==typeof FileReader){i.isBrowser()&&"object"==typeof t&&!a&&(t=new i.Buffer(new Uint8Array(t)));var u=o.update(t).digest(r);return n&&n(null,u),u}var c=0,l=new FileReader;l.onerror=function(){n(new Error("Failed to read data."))},l.onload=function(){var e=new i.Buffer(new Uint8Array(l.result));o.update(e),c+=e.length,l._continueReading()},l._continueReading=function(){if(c>=t.size)n(null,o.digest(r));else{var e=c+524288;e>t.size&&(e=t.size),l.readAsArrayBuffer(s.call(t,c,e))}},l._continueReading()}},toHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function(e){return i.crypto.lib.createHash(e)}},abort:{},each:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.call(this,r,e[r])===i.abort)break},arrayEach:function(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.call(this,e[r],parseInt(r,10))===i.abort)break},update:function(e,t){return i.each(t,function(t,r){e[t]=r}),e},merge:function(e,t){return i.update(i.copy(e),t)},copy:function(e){if(null==e)return e;var t={};for(var r in e)t[r]=e[r];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=i.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(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function(e,t){var r=null;return"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&((r=i.copy(e)).message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(i.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,r&&(e.originalError=r),e},inherit:function(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var n=function(){};n.prototype=e.prototype,r=new n}return t.constructor===Object&&(t.constructor=function(){if(e!==Object)return e.apply(this,arguments)}),t.constructor.prototype=r,i.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 r in arguments[t].prototype){var n=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=n)}return e},hideProperties:function(e,t){"function"==typeof Object.defineProperty&&i.arrayEach(t,function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})})},property:function(e,t,r,n,i){var o={configurable:!0,enumerable:void 0===n||n};"function"!=typeof r||i?(o.value=r,o.writable=!0):o.get=r,Object.defineProperty(e,t,o)},memoizedProperty:function(e,t,r,n){var o=null;i.property(e,t,function(){return null===o&&(o=r()),o},n)},hoistPayloadMember:function(e){var t=e.request,r=t.service.api.operations[t.operation],n=r.output;n.payload&&!r.hasEventOutput&&"structure"===n.members[n.payload].type&&i.each(e.data[n.payload],function(t,r){i.property(e.data,t,r,!1)})},computeSha256:function(e,t){if(i.isNode()){var n=i.stream.Stream,o=r(94659);if("function"==typeof n&&e instanceof n){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));var s={};"number"==typeof e.start&&(s.start=e.start),"number"==typeof e.end&&(s.end=e.end),e=o.createReadStream(e.path,s)}}i.crypto.sha256(e,"hex",function(e,r){e?t(e):t(null,r)})},isClockSkewed:function(e){if(e)return i.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 r=!1;void 0===t&&n&&n.config&&(t=n.config.getPromisesDependency()),void 0===t&&"undefined"!=typeof Promise&&(t=Promise),"function"!=typeof t&&(r=!0),Array.isArray(e)||(e=[e]);for(var i=0;i<e.length;i++){var o=e[i];r?o.deletePromisesFromClass&&o.deletePromisesFromClass():o.addPromisesToClass&&o.addPromisesToClass(t)}},promisifyMethod:function(e,t){return function(){var r=this,n=Array.prototype.slice.call(arguments);return new t(function(t,i){n.push(function(e,r){e?i(e):t(r)}),r[e].apply(r,n)})}},isDualstackAvailable:function(e){if(!e)return!1;var t=r(65359);return"string"!=typeof e&&(e=e.serviceIdentifier),!("string"!=typeof e||!t.hasOwnProperty(e)||!t[e].dualstackAvailable)},calculateRetryDelay:function(e,t,r){t||(t={});var n=t.customBackoff||null;if("function"==typeof n)return n(e,r);var i="number"==typeof t.base?t.base:100;return Math.random()*(Math.pow(2,e)*i)},handleRequestWithRetries:function(e,t,r){t||(t={});var o=n.HttpClient.getInstance(),s=t.httpOptions||{},a=0,u=function(e){var n=t.maxRetries||0;if(e&&"TimeoutError"===e.code&&(e.retryable=!0),e&&e.retryable&&a<n){var o=i.calculateRetryDelay(a,t.retryDelayOptions,e);if(o>=0)return a++,void setTimeout(c,o+(e.retryAfter||0))}r(e)},c=function(){var t="";o.handleRequest(e,s,function(e){e.on("data",function(e){t+=e.toString()}),e.on("end",function(){var n=e.statusCode;if(n<300)r(null,t);else{var o=1e3*parseInt(e.headers["retry-after"],10)||0,s=i.error(new Error,{statusCode:n,retryable:n>=500||429===n});o&&s.retryable&&(s.retryAfter=o),u(s)}})},u)};n.util.defer(c)},uuid:{v4:function(){return r(29459).v4()}},convertPayloadToString:function(e){var t=e.request,r=t.service.api.operations[t.operation].output||{};r.payload&&e.data[r.payload]&&(e.data[r.payload]=e.data[r.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 r=(t||{})[e.operation];if(r&&r.input&&r.input.payload)return r.input.members[r.input.payload]}},getProfilesFromSharedConfig:function(e,t){var r={},n={};process.env[i.configOptInEnv]&&(n=e.loadFrom({isConfig:!0,filename:process.env[i.sharedConfigFileEnv]}));var o={};try{o=e.loadFrom({filename:t||process.env[i.configOptInEnv]&&process.env[i.sharedCredentialsFileEnv]})}catch(c){if(!process.env[i.configOptInEnv])throw c}for(var s=0,a=Object.keys(n);s<a.length;s++)r[a[s]]=u(r[a[s]]||{},n[a[s]]);for(s=0,a=Object.keys(o);s<a.length;s++)r[a[s]]=u(r[a[s]]||{},o[a[s]]);return r;function u(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++)e[n[r]]=t[n[r]];return e}},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 i.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"};e.exports=i},681:function(e,t,r){var n=r(84964),i=r(74822);function o(){}function s(e,t){for(var r=e.getElementsByTagName(t),n=0,i=r.length;n<i;n++)if(r[n].parentNode===e)return r[n]}function a(e,t){switch(t||(t={}),t.type){case"structure":return u(e,t);case"map":return function(e,t){for(var r={},n=t.key.name||"key",i=t.value.name||"value",o=t.flattened?t.name:"entry",u=e.firstElementChild;u;){if(u.nodeName===o){var c=s(u,n).textContent,l=s(u,i);r[c]=a(l,t.value)}u=u.nextElementSibling}return r}(e,t);case"list":return function(e,t){for(var r=[],n=t.flattened?t.name:t.member.name||"member",i=e.firstElementChild;i;)i.nodeName===n&&r.push(a(i,t.member)),i=i.nextElementSibling;return r}(e,t);case void 0:case null:return function(e){if(null==e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;for(var t={type:"structure",members:{}},r=e.firstElementChild;r;){var n=r.nodeName;Object.prototype.hasOwnProperty.call(t.members,n)?t.members[n].type="list":t.members[n]={name:n},r=r.nextElementSibling}return u(e,t)}(e);default:return function(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new i.create({type:r}))}var n=e.textContent;return""===n&&(n=null),"function"==typeof t.toType?t.toType(n):n}(e,t)}}function u(e,t){var r={};return null===e||n.each(t.members,function(n,i){if(i.isXmlAttribute)Object.prototype.hasOwnProperty.call(e.attributes,i.name)&&(r[n]=a({textContent:e.attributes[i.name].value},i));else{var o=i.flattened?e:s(e,i.name);o?r[n]=a(o,i):!i.flattened&&"list"===i.type&&!t.api.xmlNoDefaultLists&&(r[n]=i.defaultValue)}}),r}o.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,i;try{if(window.DOMParser){try{r=(new DOMParser).parseFromString(e,"text/xml")}catch(f){throw n.error(new Error("Parse error in document"),{originalError:f,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw n.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var o=r.getElementsByTagName("parsererror")[0];if(o&&(o.parentNode===r||"body"===o.parentNode.nodeName||o.parentNode.parentNode===r||"body"===o.parentNode.parentNode.nodeName)){var u=o.getElementsByTagName("div")[0]||o;throw n.error(new Error(u.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if((r=new window.ActiveXObject("Microsoft.XMLDOM")).async=!1,!r.loadXML(e))throw n.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(f){i=f}if(r&&r.documentElement&&!i){var c=a(r.documentElement,t),l=s(r.documentElement,"ResponseMetadata");return l&&(c.ResponseMetadata=a(l,{})),c}if(i)throw n.error(i||new Error,{code:"XMLParserError",retryable:!0});return{}},e.exports=o},39244:function(e,t,r){var n=r(84964),i=r(51980).XmlNode,o=r(59758).XmlText;function s(){}function a(e,t,r){switch(r.type){case"structure":return function(e,t,r){n.arrayEach(r.memberNames,function(n){var o=r.members[n];if("body"===o.location){var s=t[n],c=o.name;if(null!=s)if(o.isXmlAttribute)e.addAttribute(c,s);else if(o.flattened)a(e,s,o);else{var l=new i(c);e.addChildNode(l),u(l,o),a(l,s,o)}}})}(e,t,r);case"map":return function(e,t,r){var o=r.key.name||"key",s=r.value.name||"value";n.each(t,function(t,n){var u=new i(r.flattened?r.name:"entry");e.addChildNode(u);var c=new i(o),l=new i(s);u.addChildNode(c),u.addChildNode(l),a(c,t,r.key),a(l,n,r.value)})}(e,t,r);case"list":return function(e,t,r){n.arrayEach(t,r.flattened?function(t){var n=new i(r.member.name||r.name);e.addChildNode(n),a(n,t,r.member)}:function(t){var n=new i(r.member.name||"member");e.addChildNode(n),a(n,t,r.member)})}(e,t,r);default:return function(e,t,r){e.addChildNode(new o(r.toWireFormat(t)))}(e,t,r)}}function u(e,t,r){var n,i="xmlns";t.xmlNamespaceUri?(n=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(i+=":"+t.xmlNamespacePrefix)):r&&t.api.xmlNamespaceUri&&(n=t.api.xmlNamespaceUri),n&&e.addAttribute(i,n)}s.prototype.toXML=function(e,t,r,n){var o=new i(r);return u(o,t,!0),a(o,e,t),o.children.length>0||n?o.toString():""},e.exports=s},70801:function(e){e.exports={escapeAttribute:function(e){return e.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}}},98394:function(e){e.exports={escapeElement:function(e){return e.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:function(e,t,r){var n=r(70801).escapeAttribute;function i(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}i.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},i.prototype.addChildNode=function(e){return this.children.push(e),this},i.prototype.removeAttribute=function(e){return delete this.attributes[e],this},i.prototype.toString=function(){for(var e=Boolean(this.children.length),t="<"+this.name,r=this.attributes,i=0,o=Object.keys(r);i<o.length;i++){var s=o[i],a=r[s];null!=a&&(t+=" "+s+'="'+n(""+a)+'"')}return t+(e?">"+this.children.map(function(e){return e.toString()}).join("")+"</"+this.name+">":"/>")},e.exports={XmlNode:i}},59758:function(e,t,r){var n=r(98394).escapeElement;function i(e){this.value=e}i.prototype.toString=function(){return n(""+this.value)},e.exports={XmlText:i}},73934:function(e,t,r){var n=r(61920);function i(){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}t.parse=m,t.resolve=function(e,t){return m(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?m(e,!1,!0).resolveObject(t):t},t.format=function(e){return g(e)&&(e=m(e)),e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var o=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,a=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(a),c=["%","/","?",";","#"].concat(u),l=["/","?","#"],f=/^[a-z0-9A-Z_-]{0,63}$/,p=/^([a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=r(93143);function m(e,t,r){if(e&&b(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}function g(e){return"string"==typeof e}function b(e){return"object"==typeof e&&null!==e}function w(e){return null===e}i.prototype.parse=function(e,t,r){if(!g(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var s=o.exec(i);if(s){var a=(s=s[0]).toLowerCase();this.protocol=a,i=i.substr(s.length)}if(r||s||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var m="//"===i.substr(0,2);m&&(!s||!d[s])&&(i=i.substr(2),this.slashes=!0)}if(!d[s]&&(m||s&&!y[s])){for(var b=-1,w=0;w<l.length;w++)-1!==(_=i.indexOf(l[w]))&&(-1===b||_<b)&&(b=_);var E,S;for(-1!==(S=-1===b?i.lastIndexOf("@"):i.lastIndexOf("@",b))&&(E=i.slice(0,S),i=i.slice(S+1),this.auth=decodeURIComponent(E)),b=-1,w=0;w<c.length;w++){var _;-1!==(_=i.indexOf(c[w]))&&(-1===b||_<b)&&(b=_)}-1===b&&(b=i.length),this.host=i.slice(0,b),i=i.slice(b),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var A=this.hostname.split(/\./),T=(w=0,A.length);w<T;w++){var R=A[w];if(R&&!R.match(f)){for(var I="",k=0,C=R.length;k<C;k++)R.charCodeAt(k)>127?I+="x":I+=R[k];if(!I.match(f)){var x=A.slice(0,w),P=A.slice(w+1),N=R.match(p);N&&(x.push(N[1]),P.unshift(N[2])),P.length&&(i="/"+P.join(".")+i),this.hostname=x.join(".");break}}}if(this.hostname=this.hostname.length>255?"":this.hostname.toLowerCase(),!O){var D=this.hostname.split("."),M=[];for(w=0;w<D.length;++w)M.push((U=D[w]).match(/[^A-Za-z0-9_-]/)?"xn--"+n.encode(U):U);this.hostname=M.join(".")}this.host=(this.hostname||"")+(this.port?":"+this.port:""),this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==i[0]&&(i="/"+i))}if(!h[a])for(w=0,T=u.length;w<T;w++){var L=u[w],q=encodeURIComponent(L);q===L&&(q=escape(L)),i=i.split(L).join(q)}var j=i.indexOf("#");-1!==j&&(this.hash=i.substr(j),i=i.slice(0,j));var U,F=i.indexOf("?");return-1!==F?(this.search=i.substr(F),this.query=i.substr(F+1),t&&(this.query=v.parse(this.query)),i=i.slice(0,F)):t&&(this.search="",this.query={}),i&&(this.pathname=i),y[a]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(U=this.search||"")),this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&b(this.query)&&Object.keys(this.query).length&&(o=v.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(m(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(g(e)){var t=new i;t.parse(e,!1,!0),e=t}var r=new i;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),y[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!y[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||d[e.protocol])r.pathname=e.pathname;else{for(var n=(e.pathname||"").split("/");n.length&&!(e.host=n.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==n[0]&&n.unshift(""),n.length<2&&n.unshift(""),r.pathname=n.join("/")}return r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,(r.pathname||r.search)&&(r.path=(r.pathname||"")+(r.search||"")),r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var o=r.pathname&&"/"===r.pathname.charAt(0),s=e.host||e.pathname&&"/"===e.pathname.charAt(0),a=s||o||r.host&&e.pathname,u=a,c=r.pathname&&r.pathname.split("/")||[],l=(n=e.pathname&&e.pathname.split("/")||[],r.protocol&&!y[r.protocol]);if(l&&(r.hostname="",r.port=null,r.host&&(""===c[0]?c[0]=r.host:c.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===n[0]?n[0]=e.host:n.unshift(e.host)),e.host=null),a=a&&(""===n[0]||""===c[0])),s)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,c=n;else if(n.length)c||(c=[]),c.pop(),c=c.concat(n),r.search=e.search,r.query=e.query;else if(!function(e){return null==e}(e.search))return l&&(r.hostname=r.host=c.shift(),(m=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=m.shift(),r.host=r.hostname=m.shift())),r.search=e.search,r.query=e.query,(!w(r.pathname)||!w(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!c.length)return r.pathname=null,r.path=r.search?"/"+r.search:null,r.href=r.format(),r;for(var f=c.slice(-1)[0],p=(r.host||e.host)&&("."===f||".."===f)||""===f,h=0,v=c.length;v>=0;v--)"."==(f=c[v])?c.splice(v,1):".."===f?(c.splice(v,1),h++):h&&(c.splice(v,1),h--);if(!a&&!u)for(;h--;h)c.unshift("..");a&&""!==c[0]&&(!c[0]||"/"!==c[0].charAt(0))&&c.unshift(""),p&&"/"!==c.join("/").substr(-1)&&c.push("");var m,b=""===c[0]||c[0]&&"/"===c[0].charAt(0);return l&&(r.hostname=r.host=b?"":c.length?c.shift():"",(m=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=m.shift(),r.host=r.hostname=m.shift())),(a=a||r.host&&c.length)&&!b&&c.unshift(""),c.length?r.pathname=c.join("/"):(r.pathname=null,r.path=null),(!w(r.pathname)||!w(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},29459:function(e,t,r){var n=r(80122),i=r(70879),o=i;o.v1=n,o.v4=i,e.exports=o},70157:function(e){for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0;return[t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]]].join("")}},60109:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},80122:function(e,t,r){var n,i,o=r(60109),s=r(70157),a=0,u=0;e.exports=function(e,t,r){var c=t&&r||0,l=t||[],f=(e=e||{}).node||n,p=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==p){var h=o();null==f&&(f=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==p&&(p=i=16383&(h[6]<<8|h[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:u+1,v=d-a+(y-u)/1e4;if(v<0&&void 0===e.clockseq&&(p=p+1&16383),(v<0||d>a)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=d,u=y,i=p;var m=(1e4*(268435455&(d+=122192928e5))+y)%4294967296;l[c++]=m>>>24&255,l[c++]=m>>>16&255,l[c++]=m>>>8&255,l[c++]=255&m;var g=d/4294967296*1e4&268435455;l[c++]=g>>>8&255,l[c++]=255&g,l[c++]=g>>>24&15|16,l[c++]=g>>>16&255,l[c++]=p>>>8|128,l[c++]=255&p;for(var b=0;b<6;++b)l[c+b]=f[b];return t||s(l)}},70879:function(e,t,r){var n=r(60109),i=r(70157);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},28937:function(e,t,r){"use strict";var n=r(561),i=function(){function e(e){void 0===e&&(e=1e3),this.maxSize=e,this.cache=new n.LRUCache(e)}return Object.defineProperty(e.prototype,"size",{get:function(){return this.cache.length},enumerable:!0,configurable:!0}),e.prototype.put=function(t,r){var n="string"!=typeof t?e.getKeyString(t):t,i=this.populateValue(r);this.cache.put(n,i)},e.prototype.get=function(t){var r="string"!=typeof t?e.getKeyString(t):t,n=Date.now(),i=this.cache.get(r);if(i){for(var o=i.length-1;o>=0;o--)i[o].Expire<n&&i.splice(o,1);if(0===i.length)return void this.cache.remove(r)}return i},e.getKeyString=function(e){for(var t=[],r=Object.keys(e).sort(),n=0;n<r.length;n++){var i=r[n];void 0!==e[i]&&t.push(e[i])}return t.join(" ")},e.prototype.populateValue=function(e){var t=Date.now();return e.map(function(e){return{Address:e.Address||"",Expire:t+60*(e.CachePeriodInMinutes||1)*1e3}})},e.prototype.empty=function(){this.cache.empty()},e.prototype.remove=function(t){var r="string"!=typeof t?e.getKeyString(t):t;this.cache.remove(r)},e}();t.$=i},561:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.key=e,this.value=t},n=function(){function e(e){if(this.nodeMap={},this.size=0,"number"!=typeof e||e<1)throw new Error("Cache size can only be positive number");this.sizeLimit=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.size},enumerable:!0,configurable:!0}),e.prototype.prependToList=function(e){this.headerNode?(this.headerNode.prev=e,e.next=this.headerNode):this.tailNode=e,this.headerNode=e,this.size++},e.prototype.removeFromTail=function(){if(this.tailNode){var e=this.tailNode,t=e.prev;return t&&(t.next=void 0),e.prev=void 0,this.tailNode=t,this.size--,e}},e.prototype.detachFromList=function(e){this.headerNode===e&&(this.headerNode=e.next),this.tailNode===e&&(this.tailNode=e.prev),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.next=void 0,e.prev=void 0,this.size--},e.prototype.get=function(e){if(this.nodeMap[e]){var t=this.nodeMap[e];return this.detachFromList(t),this.prependToList(t),t.value}},e.prototype.remove=function(e){this.nodeMap[e]&&(this.detachFromList(this.nodeMap[e]),delete this.nodeMap[e])},e.prototype.put=function(e,t){if(this.nodeMap[e])this.remove(e);else if(this.size===this.sizeLimit){var n=this.removeFromTail();delete this.nodeMap[n.key]}var i=new r(e,t);this.nodeMap[e]=i,this.prependToList(i)},e.prototype.empty=function(){for(var e=Object.keys(this.nodeMap),t=0;t<e.length;t++){var r=e[t];this.detachFromList(this.nodeMap[r]),delete this.nodeMap[r]}},e}();t.LRUCache=n},61210:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[1];return 3*(t[0]+r)/4-r},t.toByteArray=function(e){var t,r,o=u(e),s=o[0],a=o[1],c=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),l=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=16383,a=0,u=n-i;a<u;a+=s)o.push(l(e,a,a+s>u?u:a+s));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function l(e,t,r){for(var n=[],i=t;i<r;i+=3)n.push(c((e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2])));return n.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},2341:function(e,t,r){"use strict";var n=r(61210),i=r(18427),o=r(50130);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),i=(e=a(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?a(e,0):p(e,t);if("Buffer"===t.type&&o(t.data))return p(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=a(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t){var r=t.length<0?0:0|h(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return B(e).length;default:if(n)return V(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return I(this,t,r);case"latin1":case"binary":return k(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var l=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*s}else-1!==l&&(o-=o-l),l=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var f=!0,p=0;p<u;p++)if(c(e,o+p)!==c(t,p)){f=!1;break}if(f)return o}return-1}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function w(e,t,r,n){return Q(V(t,e.length-r),e,r,n)}function E(e,t,r,n){return Q(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function S(e,t,r,n){return E(e,t,r,n)}function _(e,t,r,n){return Q(B(t),e,r,n)}function O(e,t,r,n){return Q(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,e.length-r),e,r,n)}function A(e,t,r){return n.fromByteArray(0===t&&r===e.length?e:e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:s=e[i+2],128==(192&(o=e[i+1]))&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:s=e[i+2],a=e[i+3],128==(192&(o=e[i+1]))&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(n.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=R));return r}(n)}t.lW=u,t.h2=50,u.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return l(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.h2;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),c=this.slice(n,i),l=e.slice(t,r),f=0;f<a;++f)if(c[f]!==l[f]){o=c[f],s=l[f];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return E(this,e,t,r);case"latin1":case"binary":return S(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function I(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function C(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=F(e[o]);return i}function x(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function D(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function M(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,o){return o||L(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function j(e,t,r,n,o){return o||L(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return j(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return j(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),!n&&0!==n&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=u.isBuffer(e)?e:V(new u(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function B(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}},18427:function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,c=u>>1,l=-7,f=r?i-1:0,p=r?-1:1,h=e[t+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+e[t+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),o-=c}return(h?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,d=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+h]=255&s,h+=d,s/=256,c-=8);e[r+h-d]|=128*y}},43653:function(e,t,r){"use strict";var n=r(62976),i=r(67043),o=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},67043:function(e,t,r){"use strict";var n=r(4738),i=r(62976),o=i("%Function.prototype.apply%"),s=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(s,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(p){c=null}e.exports=function(e){var t=a(n,s,arguments);if(u&&c){var r=u(t,"length");r.configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return a(n,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},65771:function(e,t,r){function n(){var e;try{e=t.storage.debug}catch(r){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=r(15578)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(r){}},t.load=n,t.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+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(n())},15578:function(e,t,r){var n;function i(e){function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var u=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,n){if("%%"===r)return r;u++;var i=t.formatters[n];return"function"==typeof i&&(r=i.call(e,s[u]),s.splice(u,1),u--),r}),t.formatArgs.call(e,s);var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)!r[i]||("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(67659),t.names=[],t.skips=[],t.formatters={}},14943:function(e){function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.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},t.prototype.emit=function(e){var t,o,s,a,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(i(o=this._events[e]))return!1;if(r(o))switch(arguments.length){case 1:o.call(this);break;case 2:o.call(this,arguments[1]);break;case 3:o.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),o.apply(this,a)}else if(n(o))for(a=Array.prototype.slice.call(arguments,1),s=(c=o.slice()).length,u=0;u<s;u++)c[u].apply(this,a);return!0},t.prototype.on=t.prototype.addListener=function(e,o){var s;if(!r(o))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(o.listener)?o.listener:o),this._events[e]?n(this._events[e])?this._events[e].push(o):this._events[e]=[this._events[e],o]:this._events[e]=o,n(this._events[e])&&!this._events[e].warned&&(s=i(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&s>0&&this._events[e].length>s&&(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},t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,o,s,a;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,o=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(a=s;a-- >0;)if(i[a]===t||i[a].listener&&i[a].listener===t){o=a;break}if(o<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;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(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},75616:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,n="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){return r({key:t,value:e[t]},{key:n,value:e[n]})}}),o=[];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 r,s;if(Array.isArray(t)){for(s="[",r=0;r<t.length;r++)r&&(s+=","),s+=e(t[r])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(s="",r=0;r<u.length;r++){var c=u[r],l=e(t[c]);!l||(s&&(s+=","),s+=JSON.stringify(c)+":"+l)}return o.splice(a,1),"{"+s+"}"}}(e)}},88146:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw new TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;s<o;s++)n.call(i,e[s],s,e);else for(var a in e)t.call(e,a)&&n.call(i,e[a],a,e)}},50145:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var o=this;if("function"!=typeof o||n.call(o)!==i)throw new TypeError(t+o);for(var s,a=r.call(arguments,1),u=function(){if(this instanceof s){var t=o.apply(this,a.concat(r.call(arguments)));return Object(t)===t?t:this}return o.apply(e,a.concat(r.call(arguments)))},c=Math.max(0,o.length-a.length),l=[],f=0;f<c;f++)l.push("$"+f);if(s=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),o.prototype){var p=function(){};p.prototype=o.prototype,s.prototype=new p,p.prototype=null}return s}},4738:function(e,t,r){"use strict";var n=r(50145);e.exports=Function.prototype.bind||n},62976:function(e,t,r){"use strict";var n,i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(I){u=null}var c=function(){throw new s},l=u?function(){try{return c}catch(I){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(22452)(),p=Object.getPrototypeOf||function(e){return e.__proto__},h={},d="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%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%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((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&&f?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":d,"%TypeError%":s,"%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},v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(r=p(i.prototype))}return y[t]=r,r},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=r(4738),b=r(59704),w=g.call(Function.call,Array.prototype.concat),E=g.call(Function.apply,Array.prototype.splice),S=g.call(Function.call,String.prototype.replace),_=g.call(Function.call,String.prototype.slice),O=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,T=function(e){var t=_(e,0,1),r=_(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,O,function(e,t,r,i){n[n.length]=r?S(i,A,"$1"):t||e}),n},R=function(e,t){var r,n=e;if(b(m,n)&&(n="%"+(r=m[n])[0]+"%"),b(y,n)){var o=y[n];if(o===h&&(o=v(n)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');var r=T(e),n=r.length>0?r[0]:"",o=R("%"+n+"%",t),a=o.name,c=o.value,l=!1,f=o.alias;f&&(n=f[0],E(r,w([0,1],f)));for(var p=1,h=!0;p<r.length;p+=1){var d=r[p],v=_(d,0,1),m=_(d,-1);if(('"'===v||"'"===v||"`"===v||'"'===m||"'"===m||"`"===m)&&v!==m)throw new i("property names with quotes must have matching quotes");if(("constructor"===d||!h)&&(l=!0),b(y,a="%"+(n+="."+d)+"%"))c=y[a];else if(null!=c){if(!(d in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var g=u(c,d);c=(h=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[d]}else h=b(c,d),c=c[d];h&&!l&&(y[a]=c)}}return c}},92886:function(e,t,r){"use strict";r.d(t,{ZP:function(){return S},J9:function(){return y},_t:function(){return h},wO:function(){return d},HW:function(){return p}});var n=function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=r(51724),o=new Map,s=new Map,a=!0,u=!1;function c(e){return e.replace(/[\s,]+/g," ").trim()}function l(e){var t=c(e);if(!o.has(t)){var r=(0,i.Qc)(e,{experimentalFragmentVariables:u});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");o.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)})});var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(function(e){var t=new Set,r=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=function(e){return c(e.source.body.substring(e.start,e.end))}(e.loc),o=s.get(n);o&&!o.has(i)?a&&console.warn("Warning: fragment with name "+n+" 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"):o||s.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e)}),n(n({},e),{definitions:r})}(r)))}return o.get(t)}function f(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach(function(t,r){n+=t&&"Document"===t.kind?t.loc.source.body:t,n+=e[r+1]}),l(n)}function p(){o.clear(),s.clear()}function h(){a=!1}function d(){u=!0}function y(){u=!1}var v,m=f,g=p,b=h,w=d,E=y;(v=f||(f={})).gql=m,v.resetCaches=g,v.disableFragmentWarnings=b,v.enableExperimentalFragmentVariables=w,v.disableExperimentalFragmentVariables=E,f.default=f;var S=f},22452:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(66203);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},66203:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},59704:function(e,t,r){"use strict";var n=r(4738);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},13057:function(e){e.exports="function"==typeof Object.create?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},66651:function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=r(43653)("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=a?o:s},80142:function(e){"use strict";var t,r=Object.prototype.toString,n=Function.prototype.toString,i=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(i.test(n.call(e)))return!0;if(!o)return"[object GeneratorFunction]"===r.call(e);if(!s)return!1;if(void 0===t){var a=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(e){}}();t=!!a&&s(a)}return s(e)===t}},65504:function(e,t,r){"use strict";var n=r(88146),i=r(54674),o=r(43653),s=o("Object.prototype.toString"),a=r(22452)()&&"symbol"==typeof Symbol.toStringTag,u=i(),c=o("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},l=o("String.prototype.slice"),f={},p=r(35887),h=Object.getPrototypeOf;a&&p&&h&&n(u,function(e){var t=new global[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=h(t),n=p(r,Symbol.toStringTag);if(!n){var i=h(r);n=p(i,Symbol.toStringTag)}f[e]=n.get}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a){var t=l(s(e),8,-1);return c(u,t)>-1}return!!p&&function(e){var t=!1;return n(f,function(r,n){if(!t)try{t=r.call(e)===n}catch(i){}}),t}(e)}},50130:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},94443:function(e,t){!function(e){"use strict";function t(e){return null!==e&&"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,i){if(e===i)return!0;if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(i))return!1;if(!0===t(e)){if(e.length!==i.length)return!1;for(var o=0;o<e.length;o++)if(!1===n(e[o],i[o]))return!1;return!0}if(!0===r(e)){var s={};for(var a in e)if(hasOwnProperty.call(e,a)){if(!1===n(e[a],i[a]))return!1;s[a]=!0}for(var u in i)if(hasOwnProperty.call(i,u)&&!0!==s[u])return!1;return!0}return!1}function i(e){if(""===e||!1===e||null===e)return!0;if(t(e)&&0===e.length)return!0;if(r(e)){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0}return!1}var o;o="function"==typeof String.prototype.trimLeft?function(e){return e.trimLeft()}:function(e){return e.match(/^\s*(.*)/)[1]};var s=0,a=2,u="EOF",c="UnquotedIdentifier",l="QuotedIdentifier",f="Rbracket",p="Rparen",h="Comma",d="Colon",y="Rbrace",v="Number",m="Current",g="Expref",b="Pipe",w="And",E="EQ",S="LT",_="NE",O="Flatten",A="Star",T="Filter",R="Dot",I="Not",k="Lbrace",C="Lbracket",x="Lparen",P="Literal",N={".":R,"*":A,",":h,":":d,"{":k,"}":y,"]":f,"(":x,")":p,"@":m},D={"<":!0,">":!0,"=":!0,"!":!0},M={" ":!0,"\t":!0,"\n":!0};function L(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e}function q(e){return e>="0"&&e<="9"||"-"===e}function j(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e}function U(){}U.prototype={tokenize:function(e){var t,r,n,i=[];for(this._current=0;this._current<e.length;)if(L(e[this._current]))t=this._current,r=this._consumeUnquotedIdentifier(e),i.push({type:c,value:r,start:t});else if(void 0!==N[e[this._current]])i.push({type:N[e[this._current]],value:e[this._current],start:this._current}),this._current++;else if(q(e[this._current]))n=this._consumeNumber(e),i.push(n);else if("["===e[this._current])n=this._consumeLBracket(e),i.push(n);else if('"'===e[this._current])t=this._current,r=this._consumeQuotedIdentifier(e),i.push({type:l,value:r,start:t});else if("'"===e[this._current])t=this._current,r=this._consumeRawStringLiteral(e),i.push({type:P,value:r,start:t});else if("`"===e[this._current]){t=this._current;var o=this._consumeLiteral(e);i.push({type:P,value:o,start:t})}else if(void 0!==D[e[this._current]])i.push(this._consumeOperator(e));else if(void 0!==M[e[this._current]])this._current++;else if("&"===e[this._current])t=this._current,this._current++,"&"===e[this._current]?(this._current++,i.push({type:w,value:"&&",start:t})):i.push({type:g,value:"&",start:t});else{if("|"!==e[this._current]){var s=new Error("Unknown character:"+e[this._current]);throw s.name="LexerError",s}t=this._current,this._current++,"|"===e[this._current]?(this._current++,i.push({type:"Or",value:"||",start:t})):i.push({type:b,value:"|",start:t})}return i},_consumeUnquotedIdentifier:function(e){var t=this._current;for(this._current++;this._current<e.length&&j(e[this._current]);)this._current++;return e.slice(t,this._current)},_consumeQuotedIdentifier:function(e){var t=this._current;this._current++;for(var r=e.length;'"'!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&'"'!==e[n+1]?n++:n+=2,this._current=n}return this._current++,JSON.parse(e.slice(t,this._current))},_consumeRawStringLiteral:function(e){var t=this._current;this._current++;for(var r=e.length;"'"!==e[this._current]&&this._current<r;){var n=this._current;"\\"!==e[n]||"\\"!==e[n+1]&&"'"!==e[n+1]?n++:n+=2,this._current=n}return this._current++,e.slice(t+1,this._current-1).replace("\\'","'")},_consumeNumber:function(e){var t=this._current;this._current++;for(var r=e.length;q(e[this._current])&&this._current<r;)this._current++;var n=parseInt(e.slice(t,this._current));return{type:v,value:n,start:t}},_consumeLBracket:function(e){var t=this._current;return this._current++,"?"===e[this._current]?(this._current++,{type:T,value:"[?",start:t}):"]"===e[this._current]?(this._current++,{type:O,value:"[]",start:t}):{type:C,value:"[",start:t}},_consumeOperator:function(e){var t=this._current,r=e[t];return this._current++,"!"===r?"="===e[this._current]?(this._current++,{type:_,value:"!=",start:t}):{type:I,value:"!",start:t}:"<"===r?"="===e[this._current]?(this._current++,{type:"LTE",value:"<=",start:t}):{type:S,value:"<",start:t}:">"===r?"="===e[this._current]?(this._current++,{type:"GTE",value:">=",start:t}):{type:"GT",value:">",start:t}:"="===r&&"="===e[this._current]?(this._current++,{type:E,value:"==",start:t}):void 0},_consumeLiteral:function(e){this._current++;for(var t,r=this._current,n=e.length;"`"!==e[this._current]&&this._current<n;){var i=this._current;"\\"!==e[i]||"\\"!==e[i+1]&&"`"!==e[i+1]?i++:i+=2,this._current=i}var s=o(e.slice(r,this._current));return s=s.replace("\\`","`"),t=this._looksLikeJSON(s)?JSON.parse(s):JSON.parse('"'+s+'"'),this._current++,t},_looksLikeJSON:function(e){if(""===e)return!1;if('[{"'.indexOf(e[0])>=0)return!0;if(["true","false","null"].indexOf(e)>=0)return!0;if(!("-0123456789".indexOf(e[0])>=0))return!1;try{return JSON.parse(e),!0}catch(t){return!1}}};var F={};function V(){}function B(e){this.runtime=e}function Q(e){this._interpreter=e,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[s]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[s]}]},contains:{_func:this._functionContains,_signature:[{types:[a,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[a]},{types:[a]}]},floor:{_func:this._functionFloor,_signature:[{types:[s]}]},length:{_func:this._functionLength,_signature:[{types:[a,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:[a]},{types:[a]}]},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:[a]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[a,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}F[u]=0,F[c]=0,F[l]=0,F[f]=0,F[p]=0,F[h]=0,F[y]=0,F[v]=0,F[m]=0,F[g]=0,F[b]=1,F.Or=2,F[w]=3,F.EQ=5,F.GT=5,F.LT=5,F.GTE=5,F.LTE=5,F.NE=5,F[O]=9,F[A]=20,F[T]=21,F[R]=40,F[I]=45,F[k]=50,F[C]=55,F[x]=60,V.prototype={parse:function(e){this._loadTokens(e),this.index=0;var t=this.expression(0);if(this._lookahead(0)!==u){var r=this._lookaheadToken(0),n=new Error("Unexpected token type: "+r.type+", value: "+r.value);throw n.name="ParserError",n}return t},_loadTokens:function(e){var t=(new U).tokenize(e);t.push({type:u,value:"",start:e.length}),this.tokens=t},expression:function(e){var t=this._lookaheadToken(0);this._advance();for(var r=this.nud(t),n=this._lookahead(0);e<F[n];)this._advance(),r=this.led(n,r),n=this._lookahead(0);return r},_lookahead:function(e){return this.tokens[this.index+e].type},_lookaheadToken:function(e){return this.tokens[this.index+e]},_advance:function(){this.index++},nud:function(e){var t,r;switch(e.type){case P:return{type:"Literal",value:e.value};case c:return{type:"Field",name:e.value};case l:var n={type:"Field",name:e.value};if(this._lookahead(0)===x)throw new Error("Quoted identifier not allowed for function names.");return n;case I:return{type:"NotExpression",children:[t=this.expression(F.Not)]};case A:return t=null,{type:"ValueProjection",children:[{type:"Identity"},t=this._lookahead(0)===f?{type:"Identity"}:this._parseProjectionRHS(F.Star)]};case T:return this.led(e.type,{type:"Identity"});case k:return this._parseMultiselectHash();case O:return{type:"Projection",children:[{type:O,children:[{type:"Identity"}]},t=this._parseProjectionRHS(F.Flatten)]};case C:return this._lookahead(0)===v||this._lookahead(0)===d?(t=this._parseIndexExpression(),this._projectIfSlice({type:"Identity"},t)):this._lookahead(0)===A&&this._lookahead(1)===f?(this._advance(),this._advance(),{type:"Projection",children:[{type:"Identity"},t=this._parseProjectionRHS(F.Star)]}):this._parseMultiselectList();case m:return{type:m};case g:return{type:"ExpressionReference",children:[r=this.expression(F.Expref)]};case x:for(var i=[];this._lookahead(0)!==p;)this._lookahead(0)===m?(r={type:m},this._advance()):r=this.expression(0),i.push(r);return this._match(p),i[0];default:this._errorToken(e)}},led:function(e,t){var r;switch(e){case R:var n=F.Dot;return this._lookahead(0)!==A?{type:"Subexpression",children:[t,r=this._parseDotRHS(n)]}:(this._advance(),{type:"ValueProjection",children:[t,r=this._parseProjectionRHS(n)]});case b:return r=this.expression(F.Pipe),{type:b,children:[t,r]};case"Or":return{type:"OrExpression",children:[t,r=this.expression(F.Or)]};case w:return{type:"AndExpression",children:[t,r=this.expression(F.And)]};case x:for(var i,o=t.name,s=[];this._lookahead(0)!==p;)this._lookahead(0)===m?(i={type:m},this._advance()):i=this.expression(0),this._lookahead(0)===h&&this._match(h),s.push(i);return this._match(p),{type:"Function",name:o,children:s};case T:var a=this.expression(0);return this._match(f),{type:"FilterProjection",children:[t,r=this._lookahead(0)===O?{type:"Identity"}:this._parseProjectionRHS(F.Filter),a]};case O:return{type:"Projection",children:[{type:O,children:[t]},this._parseProjectionRHS(F.Flatten)]};case E:case _:case"GT":case"GTE":case S:case"LTE":return this._parseComparator(t,e);case C:var u=this._lookaheadToken(0);return u.type===v||u.type===d?(r=this._parseIndexExpression(),this._projectIfSlice(t,r)):(this._match(A),this._match(f),{type:"Projection",children:[t,r=this._parseProjectionRHS(F.Star)]});default:this._errorToken(this._lookaheadToken(0))}},_match:function(e){if(this._lookahead(0)!==e){var t=this._lookaheadToken(0),r=new Error("Expected "+e+", got: "+t.type);throw r.name="ParserError",r}this._advance()},_errorToken:function(e){var t=new Error("Invalid token ("+e.type+'): "'+e.value+'"');throw t.name="ParserError",t},_parseIndexExpression:function(){if(this._lookahead(0)===d||this._lookahead(1)===d)return this._parseSliceExpression();var e={type:"Index",value:this._lookaheadToken(0).value};return this._advance(),this._match(f),e},_projectIfSlice:function(e,t){var r={type:"IndexExpression",children:[e,t]};return"Slice"===t.type?{type:"Projection",children:[r,this._parseProjectionRHS(F.Star)]}:r},_parseSliceExpression:function(){for(var e=[null,null,null],t=0,r=this._lookahead(0);r!==f&&t<3;){if(r===d)t++,this._advance();else{if(r!==v){var n=this._lookahead(0),i=new Error("Syntax error, unexpected token: "+n.value+"("+n.type+")");throw i.name="Parsererror",i}e[t]=this._lookaheadToken(0).value,this._advance()}r=this._lookahead(0)}return this._match(f),{type:"Slice",children:e}},_parseComparator:function(e,t){return{type:"Comparator",name:t,children:[e,this.expression(F[t])]}},_parseDotRHS:function(e){var t=this._lookahead(0);return[c,l,A].indexOf(t)>=0?this.expression(e):t===C?(this._match(C),this._parseMultiselectList()):t===k?(this._match(k),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(e){var t;if(F[this._lookahead(0)]<10)t={type:"Identity"};else if(this._lookahead(0)===C)t=this.expression(e);else if(this._lookahead(0)===T)t=this.expression(e);else{if(this._lookahead(0)!==R){var r=this._lookaheadToken(0),n=new Error("Sytanx error, unexpected token: "+r.value+"("+r.type+")");throw n.name="ParserError",n}this._match(R),t=this._parseDotRHS(e)}return t},_parseMultiselectList:function(){for(var e=[];this._lookahead(0)!==f;){var t=this.expression(0);if(e.push(t),this._lookahead(0)===h&&(this._match(h),this._lookahead(0)===f))throw new Error("Unexpected token Rbracket")}return this._match(f),{type:"MultiSelectList",children:e}},_parseMultiselectHash:function(){for(var e,t,r,n=[],i=[c,l];;){if(e=this._lookaheadToken(0),i.indexOf(e.type)<0)throw new Error("Expecting an identifier token, got: "+e.type);if(t=e.value,this._advance(),this._match(d),r=this.expression(0),n.push({type:"KeyValuePair",name:t,value:r}),this._lookahead(0)===h)this._match(h);else if(this._lookahead(0)===y){this._match(y);break}}return{type:"MultiSelectHash",children:n}}},B.prototype={search:function(e,t){return this.visit(e,t)},visit:function(e,o){var s,a,u,c,l,f,p,h,d;switch(e.type){case"Field":return null===o?null:r(o)?void 0===(f=o[e.name])?null:f:null;case"Subexpression":for(u=this.visit(e.children[0],o),d=1;d<e.children.length;d++)if(null===(u=this.visit(e.children[1],u)))return null;return u;case"IndexExpression":return p=this.visit(e.children[0],o),this.visit(e.children[1],p);case"Index":if(!t(o))return null;var y=e.value;return y<0&&(y=o.length+y),void 0===(u=o[y])&&(u=null),u;case"Slice":if(!t(o))return null;var v=e.children.slice(0),w=this.computeSliceParams(o.length,v),A=w[0],T=w[1],R=w[2];if(u=[],R>0)for(d=A;d<T;d+=R)u.push(o[d]);else for(d=A;d>T;d+=R)u.push(o[d]);return u;case"Projection":var I=this.visit(e.children[0],o);if(!t(I))return null;for(h=[],d=0;d<I.length;d++)null!==(a=this.visit(e.children[1],I[d]))&&h.push(a);return h;case"ValueProjection":if(!r(I=this.visit(e.children[0],o)))return null;h=[];var k=function(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;n++)r.push(e[t[n]]);return r}(I);for(d=0;d<k.length;d++)null!==(a=this.visit(e.children[1],k[d]))&&h.push(a);return h;case"FilterProjection":if(!t(I=this.visit(e.children[0],o)))return null;var C=[],x=[];for(d=0;d<I.length;d++)i(s=this.visit(e.children[2],I[d]))||C.push(I[d]);for(var P=0;P<C.length;P++)null!==(a=this.visit(e.children[1],C[P]))&&x.push(a);return x;case"Comparator":switch(c=this.visit(e.children[0],o),l=this.visit(e.children[1],o),e.name){case E:u=n(c,l);break;case _:u=!n(c,l);break;case"GT":u=c>l;break;case"GTE":u=c>=l;break;case S:u=c<l;break;case"LTE":u=c<=l;break;default:throw new Error("Unknown comparator: "+e.name)}return u;case O:var N=this.visit(e.children[0],o);if(!t(N))return null;var D=[];for(d=0;d<N.length;d++)t(a=N[d])?D.push.apply(D,a):D.push(a);return D;case"Identity":return o;case"MultiSelectList":if(null===o)return null;for(h=[],d=0;d<e.children.length;d++)h.push(this.visit(e.children[d],o));return h;case"MultiSelectHash":if(null===o)return null;var M;for(h={},d=0;d<e.children.length;d++)h[(M=e.children[d]).name]=this.visit(M.value,o);return h;case"OrExpression":return i(s=this.visit(e.children[0],o))&&(s=this.visit(e.children[1],o)),s;case"AndExpression":return!0===i(c=this.visit(e.children[0],o))?c:this.visit(e.children[1],o);case"NotExpression":return i(c=this.visit(e.children[0],o));case"Literal":return e.value;case b:return p=this.visit(e.children[0],o),this.visit(e.children[1],p);case m:return o;case"Function":var L=[];for(d=0;d<e.children.length;d++)L.push(this.visit(e.children[d],o));return this.runtime.callFunction(e.name,L);case"ExpressionReference":var q=e.children[0];return q.jmespathType=g,q;default:throw new Error("Unknown node type: "+e.type)}},computeSliceParams:function(e,t){var r=t[0],n=t[1],i=t[2],o=[null,null,null];if(null===i)i=1;else if(0===i){var s=new Error("Invalid slice, step cannot be 0");throw s.name="RuntimeError",s}var a=i<0;return r=null===r?a?e-1:0:this.capSliceRange(e,r,i),n=null===n?a?-1:e:this.capSliceRange(e,n,i),o[0]=r,o[1]=n,o[2]=i,o},capSliceRange:function(e,t,r){return t<0?(t+=e)<0&&(t=r<0?-1:0):t>=e&&(t=r<0?e-1:e),t}},Q.prototype={callFunction:function(e,t){var r=this.functionTable[e];if(void 0===r)throw new Error("Unknown function: "+e+"()");return this._validateArgs(e,t,r._signature),r._func.call(this,t)},_validateArgs:function(e,t,r){var n;if(r[r.length-1].variadic){if(t.length<r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes at least"+r.length+n+" but received "+t.length)}else if(t.length!==r.length)throw n=1===r.length?" argument":" arguments",new Error("ArgumentError: "+e+"() takes "+r.length+n+" but received "+t.length);for(var i,o,s,a=0;a<r.length;a++){s=!1,i=r[a].types,o=this._getTypeName(t[a]);for(var u=0;u<i.length;u++)if(this._typeMatches(o,i[u],t[a])){s=!0;break}if(!s)throw new Error("TypeError: "+e+"() expected argument "+(a+1)+" to be type "+i+" but received type "+o+" instead.")}},_typeMatches:function(e,t,r){if(1===t)return!0;if(9!==t&&8!==t&&3!==t)return e===t;if(3===t)return 3===e;if(3===e){var n;8===t?n=s:9===t&&(n=a);for(var i=0;i<r.length;i++)if(!this._typeMatches(this._getTypeName(r[i]),n,r[i]))return!1;return!0}},_getTypeName:function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return a;case"[object Number]":return s;case"[object Array]":return 3;case"[object Boolean]":return 5;case"[object Null]":return 7;case"[object Object]":return e.jmespathType===g?6:4}},_functionStartsWith:function(e){return 0===e[0].lastIndexOf(e[1])},_functionEndsWith:function(e){var t=e[0],r=e[1];return-1!==t.indexOf(r,t.length-r.length)},_functionReverse:function(e){if(this._getTypeName(e[0])===a){for(var t=e[0],r="",n=t.length-1;n>=0;n--)r+=t[n];return r}var i=e[0].slice(0);return i.reverse(),i},_functionAbs:function(e){return Math.abs(e[0])},_functionCeil:function(e){return Math.ceil(e[0])},_functionAvg:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t/r.length},_functionContains:function(e){return e[0].indexOf(e[1])>=0},_functionFloor:function(e){return Math.floor(e[0])},_functionLength:function(e){return r(e[0])?Object.keys(e[0]).length:e[0].length},_functionMap:function(e){for(var t=[],r=this._interpreter,n=e[0],i=e[1],o=0;o<i.length;o++)t.push(r.visit(n,i[o]));return t},_functionMerge:function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];for(var i in n)t[i]=n[i]}return t},_functionMax:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===s)return Math.max.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)r.localeCompare(t[n])<0&&(r=t[n]);return r}return null},_functionMin:function(e){if(e[0].length>0){if(this._getTypeName(e[0][0])===s)return Math.min.apply(Math,e[0]);for(var t=e[0],r=t[0],n=1;n<t.length;n++)t[n].localeCompare(r)<0&&(r=t[n]);return r}return null},_functionSum:function(e){for(var t=0,r=e[0],n=0;n<r.length;n++)t+=r[n];return t},_functionType:function(e){switch(this._getTypeName(e[0])){case s:return"number";case a:return"string";case 3:return"array";case 4:return"object";case 5:return"boolean";case 6:return"expref";case 7:return"null"}},_functionKeys:function(e){return Object.keys(e[0])},_functionValues:function(e){for(var t=e[0],r=Object.keys(t),n=[],i=0;i<r.length;i++)n.push(t[r[i]]);return n},_functionJoin:function(e){return e[1].join(e[0])},_functionToArray:function(e){return 3===this._getTypeName(e[0])?e[0]:[e[0]]},_functionToString:function(e){return this._getTypeName(e[0])===a?e[0]:JSON.stringify(e[0])},_functionToNumber:function(e){var t,r=this._getTypeName(e[0]);return r===s?e[0]:r!==a||(t=+e[0],isNaN(t))?null:t},_functionNotNull:function(e){for(var t=0;t<e.length;t++)if(7!==this._getTypeName(e[t]))return e[t];return null},_functionSort:function(e){var t=e[0].slice(0);return t.sort(),t},_functionSortBy:function(e){var t=e[0].slice(0);if(0===t.length)return t;var r=this._interpreter,n=e[1],i=this._getTypeName(r.visit(n,t[0]));if([s,a].indexOf(i)<0)throw new Error("TypeError");for(var o=this,u=[],c=0;c<t.length;c++)u.push([c,t[c]]);u.sort(function(e,t){var s=r.visit(n,e[1]),a=r.visit(n,t[1]);if(o._getTypeName(s)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(s));if(o._getTypeName(a)!==i)throw new Error("TypeError: expected "+i+", received "+o._getTypeName(a));return s>a?1:s<a?-1:e[0]-t[0]});for(var l=0;l<u.length;l++)t[l]=u[l][1];return t},_functionMaxBy:function(e){for(var t,r,n=e[0],i=this.createKeyFunction(e[1],[s,a]),o=-1/0,u=0;u<n.length;u++)(r=i(n[u]))>o&&(o=r,t=n[u]);return t},_functionMinBy:function(e){for(var t,r,n=e[0],i=this.createKeyFunction(e[1],[s,a]),o=1/0,u=0;u<n.length;u++)(r=i(n[u]))<o&&(o=r,t=n[u]);return t},createKeyFunction:function(e,t){var r=this,n=this._interpreter;return function(i){var o=n.visit(e,i);if(t.indexOf(r._getTypeName(o))<0){var s="TypeError: expected one of "+t+", received "+r._getTypeName(o);throw new Error(s)}return o}}},e.tokenize=function(e){return(new U).tokenize(e)},e.compile=function(e){return(new V).parse(e)},e.search=function(e,t){var r=new V,n=new Q,i=new B(n);n._interpreter=i;var o=r.parse(t);return i.search(o,e)},e.strictDeepEqual=n}(t)},67659:function(e){var t=1e3,r=60*t,n=60*r,i=24*n;function o(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}e.exports=function(e,s){s=s||{};var a=typeof e;if("string"===a&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*n;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===a&&!1===isNaN(e))return s.long?function(e){return o(e,i,"day")||o(e,n,"hour")||o(e,r,"minute")||o(e,t,"second")||e+" ms"}(e):function(e){return e>=i?Math.round(e/i)+"d":e>=n?Math.round(e/n)+"h":e>=r?Math.round(e/r)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},14572:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var s,a,u=i(e),c=1;c<arguments.length;c++){for(var l in s=Object(arguments[c]))r.call(s,l)&&(u[l]=s[l]);if(t){a=t(s);for(var f=0;f<a.length;f++)n.call(s,a[f])&&(u[a[f]]=s[a[f]])}}return u}},61920:function(e,t,r){var n;e=r.nmd(e),function(i){"object"==typeof global&&global;var o,s=2147483647,a=36,u=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function d(e){throw RangeError(f[e])}function y(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+y((e=e.replace(l,".")).split("."),t).join(".")}function m(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function g(e){return y(e,function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)}).join("")}function b(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:a}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=a)e=p(e/35);return p(n+36*e/(e+38))}function S(e){var t,r,n,i,o,u,c,l,f,h,y=[],v=e.length,m=0,w=128,S=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&d("not-basic"),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=m,u=1,c=a;i>=v&&d("invalid-input"),((l=b(e.charCodeAt(i++)))>=a||l>p((s-m)/u))&&d("overflow"),m+=l*u,!(l<(f=c<=S?1:c>=S+26?26:c-S));c+=a)u>p(s/(h=a-f))&&d("overflow"),u*=h;S=E(m-o,t=y.length+1,0==o),p(m/t)>s-w&&d("overflow"),w+=p(m/t),m%=t,y.splice(m++,0,w)}return g(y)}function _(e){var t,r,n,i,o,u,c,l,f,y,v,g,b,S,_,O=[];for(g=(e=m(e)).length,t=128,r=0,o=72,u=0;u<g;++u)(v=e[u])<128&&O.push(h(v));for(n=i=O.length,i&&O.push("-");n<g;){for(c=s,u=0;u<g;++u)(v=e[u])>=t&&v<c&&(c=v);for(c-t>p((s-r)/(b=n+1))&&d("overflow"),r+=(c-t)*b,t=c,u=0;u<g;++u)if((v=e[u])<t&&++r>s&&d("overflow"),v==t){for(l=r,f=a;!(l<(y=f<=o?1:f>=o+26?26:f-o));f+=a)O.push(h(w(y+(_=l-y)%(S=a-y),0))),l=p(_/S);O.push(h(w(l,0))),o=E(r,b,n==i),r=0,++n}++r,++t}return O.join("")}o={version:"1.3.2",ucs2:{decode:m,encode:g},decode:S,encode:_,toASCII:function(e){return v(e,function(e){return c.test(e)?"xn--"+_(e):e})},toUnicode:function(e){return v(e,function(e){return u.test(e)?S(e.slice(4).toLowerCase()):e})}},void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)}()},28378:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,n,i){n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var s=/\+/g;e=e.split(r=r||"&");var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var u=e.length;a>0&&u>a&&(u=a);for(var c=0;c<u;++c){var l,f,p,h,d=e[c].replace(s,"%20"),y=d.indexOf(n);y>=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),p=decodeURIComponent(l),h=decodeURIComponent(f),t(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o}},22089:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map(function(e){return o+encodeURIComponent(t(e))}).join(r):o+encodeURIComponent(t(e[i]))}).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},93143:function(e,t,r){"use strict";t.decode=t.parse=r(28378),t.encode=t.stringify=r(22089)},12261:function(e,t,r){"use strict";var n=r(14572),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var s=60109,a=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),s=f("react.provider"),a=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}function m(){}function g(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||d}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var b=g.prototype=new m;b.constructor=g,n(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,r){var n,o={},s=null,a=null;if(null!=t)for(n in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(s=""+t.key),t)E.call(t,n)&&!S.hasOwnProperty(n)&&(o[n]=t[n]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(n in u=e.defaultProps)void 0===o[n]&&(o[n]=u[n]);return{$$typeof:i,type:e,key:s,ref:a,props:o,_owner:w.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var A=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function R(e,t,r,n,s){var a=typeof e;("undefined"===a||"boolean"===a)&&(e=null);var u=!1;if(null===e)u=!0;else switch(a){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return s=s(u=e),e=""===n?"."+T(u,0):n,Array.isArray(s)?(r="",null!=e&&(r=e.replace(A,"$&/")+"/"),R(s,t,r,"",function(e){return e})):null!=s&&(O(s)&&(s=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(s,r+(!s.key||u&&u.key===s.key?"":(""+s.key).replace(A,"$&/")+"/")+e)),t.push(s)),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+T(a=e[c],c);u+=R(a,t,r,l,s)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),c=0;!(a=e.next()).done;)u+=R(a=a.value,t,r,l=n+T(a,c++),s);else if("object"===a)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function I(e,t,r){if(null==e)return e;var n=[],i=0;return R(e,n,"","",function(e){return t.call(r,e,i++)}),n}function k(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}if(1===e._status)return e._result;throw e._result}var C={current:null};function x(){var e=C.current;if(null===e)throw Error(h(321));return e}var P={ReactCurrentDispatcher:C,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:I,forEach:function(e,t,r){I(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,r){if(null==e)throw Error(h(267,e));var o=n({},e.props),s=e.key,a=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,u=w.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)E.call(t,l)&&!S.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:s,ref:a,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:k}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return x().useCallback(e,t)},t.useContext=function(e,t){return x().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return x().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return x().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return x().useLayoutEffect(e,t)},t.useMemo=function(e,t){return x().useMemo(e,t)},t.useReducer=function(e,t,r){return x().useReducer(e,t,r)},t.useRef=function(e){return x().useRef(e)},t.useState=function(e){return x().useState(e)},t.version="17.0.2"},3904:function(e,t,r){"use strict";e.exports=r(12261)},53408:function(e,t,r){"use strict";var n=r(61920),i=r(47430);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){return i.isString(e)&&(e=b(e)),e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=r(93143);function b(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o<e.indexOf("#")?"?":"#",c=e.split(a);c[0]=c[0].replace(/\\/g,"/");var b=e=c.join(a);if(b=b.trim(),!r&&1===e.split("#").length){var w=u.exec(b);if(w)return this.path=b,this.href=b,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=s.exec(b);if(E){var S=(E=E[0]).toLowerCase();this.protocol=S,b=b.substr(E.length)}if(r||E||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var _="//"===b.substr(0,2);_&&(!E||!v[E])&&(b=b.substr(2),this.slashes=!0)}if(!v[E]&&(_||E&&!m[E])){for(var O=-1,A=0;A<p.length;A++)-1!==(I=b.indexOf(p[A]))&&(-1===O||I<O)&&(O=I);var T,R;for(-1!==(R=-1===O?b.lastIndexOf("@"):b.lastIndexOf("@",O))&&(T=b.slice(0,R),b=b.slice(R+1),this.auth=decodeURIComponent(T)),O=-1,A=0;A<f.length;A++){var I;-1!==(I=b.indexOf(f[A]))&&(-1===O||I<O)&&(O=I)}-1===O&&(O=b.length),this.host=b.slice(0,O),b=b.slice(O),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(/\./),x=(A=0,C.length);A<x;A++){var P=C[A];if(P&&!P.match(h)){for(var N="",D=0,M=P.length;D<M;D++)P.charCodeAt(D)>127?N+="x":N+=P[D];if(!N.match(h)){var L=C.slice(0,A),q=C.slice(A+1),j=P.match(d);j&&(L.push(j[1]),q.unshift(j[2])),q.length&&(b="/"+q.join(".")+b),this.hostname=L.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),"/"!==b[0]&&(b="/"+b))}if(!y[S])for(A=0,x=l.length;A<x;A++){var U=l[A];if(-1!==b.indexOf(U)){var F=encodeURIComponent(U);F===U&&(F=escape(U)),b=b.split(U).join(F)}}var V=b.indexOf("#");-1!==V&&(this.hash=b.substr(V),b=b.slice(0,V));var B=b.indexOf("?");return-1!==B?(this.search=b.substr(B),this.query=b.substr(B+1),t&&(this.query=g.parse(this.query)),b=b.slice(0,B)):t&&(this.search="",this.query={}),b&&(this.pathname=b),m[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(this.path=(this.pathname||"")+(this.search||"")),this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=g.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var l=u[c];"protocol"!==l&&(r[l]=e[l])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol]){for(var f=Object.keys(e),p=0;p<f.length;p++){var h=f[p];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.join("/")}return r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,(r.pathname||r.search)&&(r.path=(r.pathname||"")+(r.search||"")),r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var y=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),b=g||y||r.host&&e.pathname,w=b,E=r.pathname&&r.pathname.split("/")||[],S=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===E[0]?E[0]=r.host:E.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),b=b&&(""===d[0]||""===E[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,E=d;else if(d.length)E||(E=[]),E.pop(),E=E.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search))return S&&(r.hostname=r.host=E.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,(!i.isNull(r.pathname)||!i.isNull(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!E.length)return r.pathname=null,r.path=r.search?"/"+r.search:null,r.href=r.format(),r;for(var _=E.slice(-1)[0],O=(r.host||e.host||E.length>1)&&("."===_||".."===_)||""===_,A=0,T=E.length;T>=0;T--)"."===(_=E[T])?E.splice(T,1):".."===_?(E.splice(T,1),A++):A&&(E.splice(T,1),A--);if(!b&&!w)for(;A--;A)E.unshift("..");b&&""!==E[0]&&(!E[0]||"/"!==E[0].charAt(0))&&E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var R,I=""===E[0]||E[0]&&"/"===E[0].charAt(0);return S&&(r.hostname=r.host=I?"":E.length?E.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(b=b||r.host&&E.length)&&!I&&E.unshift(""),E.length?r.pathname=E.join("/"):(r.pathname=null,r.path=null),(!i.isNull(r.pathname)||!i.isNull(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},47430:function(e){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},63488:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},48563:function(e,t,r){"use strict";var n=r(66651),i=r(80142),o=r(53353),s=r(65504);function a(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=a(Object.prototype.toString),f=a(Number.prototype.valueOf),p=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(u)var d=a(BigInt.prototype.valueOf);if(c)var y=a(Symbol.prototype.valueOf);function v(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function m(e){return"[object Map]"===l(e)}function g(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function E(e){return"[object ArrayBuffer]"===l(e)}function S(e){return"undefined"!=typeof ArrayBuffer&&(E.working?E(e):e instanceof ArrayBuffer)}function _(e){return"[object DataView]"===l(e)}function O(e){return"undefined"!=typeof DataView&&(_.working?_(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=s,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||O(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!=typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!=typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},E.working="undefined"!=typeof ArrayBuffer&&E(new ArrayBuffer),t.isArrayBuffer=S,_.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&_(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=O;var A="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function T(e){return"[object SharedArrayBuffer]"===l(e)}function R(e){return void 0!==A&&(void 0===T.working&&(T.working=T(new A)),T.working?T(e):e instanceof A)}function I(e){return v(e,f)}function k(e){return v(e,p)}function C(e){return v(e,h)}function x(e){return u&&v(e,d)}function P(e){return c&&v(e,y)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=I,t.isStringObject=k,t.isBooleanObject=C,t.isBigIntObject=x,t.isSymbolObject=P,t.isBoxedPrimitive=function(e){return I(e)||k(e)||C(e)||x(e)||P(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(S(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},55620:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(u(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),a=n[r];r<o;a=n[++r])v(a)||!E(a)?s+=" "+a:s+=" "+u(a);return s},t.deprecate=function(e,r){if("undefined"!=typeof process&&!0===process.noDeprecation)return e;if("undefined"==typeof process)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var o={},s=/^$/;if(process.env.NODE_DEBUG){var a=process.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function u(e,r){var n={seen:[],stylize:l};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),y(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),f(n,e,n.depth)}function c(e,t){var r=u.styles[t];return r?"\x1b["+u.colors[r][0]+"m"+e+"\x1b["+u.colors[r][1]+"m":e}function l(e,t){return e}function f(e,r,n){if(e.customInspect&&r&&O(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=f(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return m(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),_(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(r);if(0===s.length){if(O(r))return e.stylize("[Function"+(r.name?": "+r.name:"")+"]","special");if(w(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return e.stylize(Date.prototype.toString.call(r),"date");if(_(r))return p(r)}var u,c="",l=!1,E=["{","}"];return d(r)&&(l=!0,E=["[","]"]),O(r)&&(c=" [Function"+(r.name?": "+r.name:"")+"]"),w(r)&&(c=" "+RegExp.prototype.toString.call(r)),S(r)&&(c=" "+Date.prototype.toUTCString.call(r)),_(r)&&(c=" "+p(r)),0!==s.length||l&&0!=r.length?n<0?w(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=l?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)k(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}(e,r,n,a,s):s.map(function(t){return h(e,r,n,a,t,l)}),e.seen.pop(),function(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,c,E)):E[0]+c+E[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=e.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),k(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=v(r)?f(e,u.value,null):f(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function v(e){return null===e}function m(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function w(e){return E(e)&&"[object RegExp]"===A(e)}function E(e){return"object"==typeof e&&null!==e}function S(e){return E(e)&&"[object Date]"===A(e)}function _(e){return E(e)&&("[object Error]"===A(e)||e instanceof Error)}function O(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!o[e])if(s.test(e)){var r=process.pid;o[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else o[e]=function(){};return o[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(48563),t.isArray=d,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=w,t.types.isRegExp=w,t.isObject=E,t.isDate=S,t.types.isDate=S,t.isError=_,t.types.isNativeError=_,t.isFunction=O,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(63488);var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",I(),t.format.apply(t,arguments))},t.inherits=r(13057),t._extend=function(e,t){if(!t||!E(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var C="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(C&&e[C]){var t;if("function"!=typeof(t=e[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(s){r(s)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),C&&Object.defineProperty(t,C,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=C,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var i=this,o=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){process.nextTick(o.bind(null,null,e))},function(e){process.nextTick(x.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}},53353:function(e,t,r){"use strict";var n=r(88146),i=r(54674),o=r(43653),s=o("Object.prototype.toString"),a=r(22452)()&&"symbol"==typeof Symbol.toStringTag,u=i(),c=o("String.prototype.slice"),l={},f=r(35887),p=Object.getPrototypeOf;a&&f&&p&&n(u,function(e){if("function"==typeof global[e]){var t=new global[e];if(!(Symbol.toStringTag in t))throw new EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var r=p(t),n=f(r,Symbol.toStringTag);if(!n){var i=p(r);n=f(i,Symbol.toStringTag)}l[e]=n.get}});var h=r(65504);e.exports=function(e){return!!h(e)&&(a?function(e){var t=!1;return n(l,function(r,n){if(!t)try{var i=r.call(e);i===n&&(t=i)}catch(o){}}),t}(e):c(s(e),8,-1))}},42677:function(e,t,r){e.exports=r(70057).Observable},70057:function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}t.Observable=void 0;var o=function(){return"function"==typeof Symbol},s=function(e){return o()&&Boolean(Symbol[e])},a=function(e){return s(e)?Symbol[e]:"@@"+e};o()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=a("iterator"),c=a("observable"),l=a("species");function f(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function p(e){var t=e.constructor;return void 0!==t&&null===(t=t[l])&&(t=void 0),void 0!==t?t:E}function h(e){h.log?h.log(e):setTimeout(function(){throw e})}function d(e){Promise.resolve().then(function(){try{e()}catch(t){h(t)}})}function y(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=f(t,"unsubscribe");r&&r.call(t)}}catch(n){h(n)}}function v(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function m(e,t,r){e._state="running";var n=e._observer;try{var i=f(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(v(e),!i)throw r;i.call(n,r);break;case"complete":v(e),i&&i.call(n)}}catch(o){h(o)}"closed"===e._state?y(e):"running"===e._state&&(e._state="ready")}function g(e,t,r){if("closed"!==e._state){if("buffering"===e._state)return void e._queue.push({type:t,value:r});if("ready"!==e._state)return e._state="buffering",e._queue=[{type:t,value:r}],void d(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(m(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});m(e,t,r)}}var b=function(){function e(t,n){r(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new w(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}"initializing"===this._state&&(this._state="ready")}return i(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(v(this),y(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),w=function(){function e(t){r(this,e),this._subscription=t}return i(e,[{key:"next",value:function(e){g(this._subscription,"next",e)}},{key:"error",value:function(e){g(this._subscription,"error",e)}},{key:"complete",value:function(){g(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),E=function(){function e(t){if(r(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return i(e,[{key:"subscribe",value:function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new b(e,this._subscriber)}},{key:"forEach",value:function(e){var t=this;return new Promise(function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(r){n(r),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}})}},{key:"map",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})}},{key:"filter",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(p(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})}},{key:"reduce",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=p(this),n=arguments.length>1,i=!1,o=arguments[1],s=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{s=e(s,t)}catch(a){return r.error(a)}else s=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(s),r.complete()}})})}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=p(this);return new i(function(t){var n,o=0;return function e(s){n=s.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})}},{key:"flatMap",value:function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=p(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(a){return n.error(a)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=f(t,c);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(e){return e instanceof E}(i)&&i.constructor===r?i:new r(function(e){return i.subscribe(e)})}if(s("iterator")&&(n=f(t,u)))return new r(function(e){d(function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var s,a=n.call(t)[Symbol.iterator]();!(r=(s=a.next()).done);r=!0)if(e.next(s.value),e.closed)return}catch(u){i=!0,o=u}finally{try{!r&&null!=a.return&&a.return()}finally{if(i)throw o}}e.complete()}})});if(Array.isArray(t))return new r(function(e){d(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="function"==typeof this?this:e;return new i(function(e){d(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})}},{key:l,get:function(){return this}}]),e}();t.Observable=E,o()&&Object.defineProperty(E,Symbol("extensions"),{value:{symbol:c,hostReportError:h},configurable:!0})},48399:function(e,t,r){"use strict";r.d(t,{ZT:function(){return i},pi:function(){return o},_T:function(){return s},mG:function(){return a},Jh:function(){return u},pr:function(){return c}});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function s(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function a(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r(function(t){t(e)})}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())})}function u(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function c(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,i++)n[i]=o[s];return n}},94659:function(){},54674:function(e){"use strict";var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"];e.exports=function(){for(var e=[],r=0;r<t.length;r++)"function"==typeof global[t[r]]&&(e[e.length]=t[r]);return e}},35887:function(e,t,r){"use strict";var n=r(62976)("%Object.getOwnPropertyDescriptor%");if(n)try{n([],"length")}catch(i){n=null}e.exports=n},17450:function(e,t,r){"use strict";r.r(t),r.d(t,{BREAK:function(){return A.$_},BreakingChangeType:function(){return At},DEFAULT_DEPRECATION_REASON:function(){return d.SY},DangerousChangeType:function(){return Tt},DirectiveLocation:function(){return R.B},ExecutableDefinitionsRule:function(){return j.i},FieldsOnCorrectTypeRule:function(){return U.A},FragmentsOnCompositeTypesRule:function(){return F.T},GraphQLBoolean:function(){return v.EZ},GraphQLDeprecatedDirective:function(){return d.fg},GraphQLDirective:function(){return d.NZ},GraphQLEnumType:function(){return y.mR},GraphQLError:function(){return N._},GraphQLFloat:function(){return v.av},GraphQLID:function(){return v.km},GraphQLIncludeDirective:function(){return d.Yf},GraphQLInputObjectType:function(){return y.sR},GraphQLInt:function(){return v._o},GraphQLInterfaceType:function(){return y.oW},GraphQLList:function(){return y.p2},GraphQLNonNull:function(){return y.bM},GraphQLObjectType:function(){return y.h6},GraphQLScalarType:function(){return y.n2},GraphQLSchema:function(){return h.XO},GraphQLSkipDirective:function(){return d.QE},GraphQLSpecifiedByDirective:function(){return d.df},GraphQLString:function(){return v.kH},GraphQLUnionType:function(){return y.Gp},Kind:function(){return T.h},KnownArgumentNamesRule:function(){return V.e},KnownDirectivesRule:function(){return B.J},KnownFragmentNamesRule:function(){return Q.a},KnownTypeNamesRule:function(){return z.I},Lexer:function(){return S.h},Location:function(){return g.Ye},LoneAnonymousOperationRule:function(){return G.F},LoneSchemaDefinitionRule:function(){return le.t},NoDeprecatedCustomRule:function(){return D},NoFragmentCyclesRule:function(){return H.H},NoSchemaIntrospectionCustomRule:function(){return M},NoUndefinedVariablesRule:function(){return W.$},NoUnusedFragmentsRule:function(){return K.J},NoUnusedVariablesRule:function(){return Y.p},OverlappingFieldsCanBeMergedRule:function(){return J.y},PossibleFragmentSpreadsRule:function(){return Z.a},PossibleTypeExtensionsRule:function(){return ve.g},ProvidedRequiredArgumentsRule:function(){return $.s},ScalarLeafsRule:function(){return X.O},SchemaMetaFieldDef:function(){return m.Az},SingleFieldSubscriptionsRule:function(){return ee.Z},Source:function(){return b.H},Token:function(){return g.WU},TokenKind:function(){return _.T},TypeInfo:function(){return Ht.a},TypeKind:function(){return m.zU},TypeMetaFieldDef:function(){return m.tF},TypeNameMetaFieldDef:function(){return m.hU},UniqueArgumentNamesRule:function(){return te.L},UniqueDirectiveNamesRule:function(){return ye.o},UniqueDirectivesPerLocationRule:function(){return re.k},UniqueEnumValueNamesRule:function(){return he.L},UniqueFieldDefinitionNamesRule:function(){return de.y},UniqueFragmentNamesRule:function(){return ne.N},UniqueInputFieldNamesRule:function(){return ie.P},UniqueOperationNamesRule:function(){return oe.H},UniqueOperationTypesRule:function(){return fe.q},UniqueTypeNamesRule:function(){return pe.P},UniqueVariableNamesRule:function(){return se.H},ValidationContext:function(){return L._t},ValuesOfCorrectTypeRule:function(){return ae.j},VariablesAreInputTypesRule:function(){return ue.I},VariablesInAllowedPositionRule:function(){return ce.w},__Directive:function(){return m.l3},__DirectiveLocation:function(){return m.x2},__EnumValue:function(){return m.jT},__Field:function(){return m.e_},__InputValue:function(){return m.XQ},__Schema:function(){return m.TK},__Type:function(){return m.qz},__TypeKind:function(){return m.PX},assertAbstractType:function(){return y.fU},assertCompositeType:function(){return y.M_},assertDirective:function(){return d.CO},assertEnumType:function(){return y.Zu},assertInputObjectType:function(){return y.U8},assertInputType:function(){return y.qT},assertInterfaceType:function(){return y.k2},assertLeafType:function(){return y.H5},assertListType:function(){return y.kS},assertNamedType:function(){return y.rM},assertNonNullType:function(){return y.E$},assertNullableType:function(){return y.i_},assertObjectType:function(){return y.Z6},assertOutputType:function(){return y.Gt},assertScalarType:function(){return y.Pt},assertSchema:function(){return h.EO},assertType:function(){return y.p_},assertUnionType:function(){return y.rc},assertValidName:function(){return Yt.k},assertValidSchema:function(){return u.J},assertWrappingType:function(){return y.vX},astFromValue:function(){return tt.J},buildASTSchema:function(){return Ge},buildClientSchema:function(){return Pe},buildSchema:function(){return He},coerceInputValue:function(){return Wt.K},concatAST:function(){return vt},createSourceEventStream:function(){return x.z},defaultFieldResolver:function(){return c.El},defaultTypeResolver:function(){return c.mn},doTypesOverlap:function(){return Kt.zR},execute:function(){return c.ht},executeSync:function(){return c.p0},extendSchema:function(){return Ue},findBreakingChanges:function(){return Rt},findDangerousChanges:function(){return It},findDeprecatedUsages:function(){return Vt},formatError:function(){return ge},getDescription:function(){return ze},getDirectiveValues:function(){return C.zu},getIntrospectionQuery:function(){return _e},getLocation:function(){return w.k},getNamedType:function(){return y.xC},getNullableType:function(){return y.tf},getOperationAST:function(){return Bt.getOperationAST},getOperationRootType:function(){return Qt.J},getVisitFn:function(){return A.CK},graphql:function(){return l},graphqlSync:function(){return f},introspectionFromSchema:function(){return Te},introspectionTypes:function(){return m.nL},isAbstractType:function(){return y.m0},isCompositeType:function(){return y.Gv},isDefinitionNode:function(){return I.Ir},isDirective:function(){return d.wX},isEnumType:function(){return y.EM},isEqualType:function(){return Kt._7},isExecutableDefinitionNode:function(){return I.Wk},isInputObjectType:function(){return y.hL},isInputType:function(){return y.j$},isInterfaceType:function(){return y.oT},isIntrospectionType:function(){return m.s9},isLeafType:function(){return y.UT},isListType:function(){return y.HG},isNamedType:function(){return y.Zs},isNonNullType:function(){return y.zM},isNullableType:function(){return y.zP},isObjectType:function(){return y.lp},isOutputType:function(){return y.SZ},isRequiredArgument:function(){return y.dK},isRequiredInputField:function(){return y.Wd},isScalarType:function(){return y.KA},isSchema:function(){return h.nN},isSelectionNode:function(){return I.pO},isSpecifiedDirective:function(){return d.xg},isSpecifiedScalarType:function(){return v.u1},isType:function(){return y.P9},isTypeDefinitionNode:function(){return I.zT},isTypeExtensionNode:function(){return I.D$},isTypeNode:function(){return I.VB},isTypeSubTypeOf:function(){return Kt.uJ},isTypeSystemDefinitionNode:function(){return I.G4},isTypeSystemExtensionNode:function(){return I.aU},isUnionType:function(){return y.EN},isValidNameError:function(){return Yt.u},isValueNode:function(){return I.nr},isWrappingType:function(){return y.fw},lexicographicSortSchema:function(){return Ze},locatedError:function(){return we.y},parse:function(){return s.Qc},parseType:function(){return s.gZ},parseValue:function(){return s.H2},print:function(){return O.print},printError:function(){return N.O},printIntrospectionSchema:function(){return nt},printLocation:function(){return E.Q},printSchema:function(){return rt},printSourceLocation:function(){return E.z},printType:function(){return at},responsePathAsArray:function(){return k.N},separateOperations:function(){return mt},specifiedDirectives:function(){return d.V4},specifiedRules:function(){return q.i},specifiedScalarTypes:function(){return v.HS},stripIgnoredCharacters:function(){return wt},subscribe:function(){return x.L},syntaxError:function(){return be.h},typeFromAST:function(){return zt._},validate:function(){return a.Gu},validateSchema:function(){return u.F},valueFromAST:function(){return xe.u},valueFromASTUntyped:function(){return Gt.M},version:function(){return n},versionInfo:function(){return i},visit:function(){return A.Vn},visitInParallel:function(){return A.j1},visitWithTypeInfo:function(){return Ht.y}});var n="15.5.1",i=Object.freeze({major:15,minor:5,patch:1,preReleaseTag:null}),o=r(22938),s=r(51724),a=r(48682),u=r(27352),c=r(98001);function l(e,t,r,n,i,o,s,a){var u=arguments;return new Promise(function(c){return c(p(1===u.length?e:{schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:o,fieldResolver:s,typeResolver:a}))})}function f(e,t,r,n,i,s,a,u){var c=p(1===arguments.length?e:{schema:e,source:t,rootValue:r,contextValue:n,variableValues:i,operationName:s,fieldResolver:a,typeResolver:u});if((0,o.Z)(c))throw new Error("GraphQL execution failed to complete synchronously.");return c}function p(e){var t,r=e.schema,n=e.source,i=e.rootValue,o=e.contextValue,l=e.variableValues,f=e.operationName,p=e.fieldResolver,h=e.typeResolver,d=(0,u.F)(r);if(d.length>0)return{errors:d};try{t=(0,s.Qc)(n)}catch(v){return{errors:[v]}}var y=(0,a.Gu)(r,t);return y.length>0?{errors:y}:(0,c.ht)({schema:r,document:t,rootValue:i,contextValue:o,variableValues:l,operationName:f,fieldResolver:p,typeResolver:h})}var h=r(39939),d=r(38273),y=r(16626),v=r(65615),m=r(39765),g=r(31279),b=r(99921),w=r(74051),E=r(83346),S=r(90550),_=r(92495),O=r(71352),A=r(86729),T=r(87948),R=r(52194),I=r(32766),k=r(35081),C=r(90350),x=r(86403),P=r(34248),N=r(89790);function D(e){return{Field:function(t){var r=e.getFieldDef(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){var i=e.getParentType();null!=i||(0,P.Z)(0),e.reportError(new N._("The field ".concat(i.name,".").concat(r.name," is deprecated. ").concat(n),t))}},Argument:function(t){var r=e.getArgument(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){var i=e.getDirective();if(null!=i)e.reportError(new N._('Directive "@'.concat(i.name,'" argument "').concat(r.name,'" is deprecated. ').concat(n),t));else{var o=e.getParentType(),s=e.getFieldDef();null!=o&&null!=s||(0,P.Z)(0),e.reportError(new N._('Field "'.concat(o.name,".").concat(s.name,'" argument "').concat(r.name,'" is deprecated. ').concat(n),t))}}},ObjectField:function(t){var r=(0,y.xC)(e.getParentInputType());if((0,y.hL)(r)){var n=r.getFields()[t.name.value],i=null==n?void 0:n.deprecationReason;null!=i&&e.reportError(new N._("The input field ".concat(r.name,".").concat(n.name," is deprecated. ").concat(i),t))}},EnumValue:function(t){var r=e.getEnumValue(),n=null==r?void 0:r.deprecationReason;if(r&&null!=n){var i=(0,y.xC)(e.getInputType());null!=i||(0,P.Z)(0),e.reportError(new N._('The enum value "'.concat(i.name,".").concat(r.name,'" is deprecated. ').concat(n),t))}}}}function M(e){return{Field:function(t){var r=(0,y.xC)(e.getType());r&&(0,m.s9)(r)&&e.reportError(new N._('GraphQL introspection has been disabled, but the requested query contained the field "'.concat(t.name.value,'".'),t))}}}var L=r(68371),q=r(89512),j=r(58610),U=r(57634),F=r(53503),V=r(51126),B=r(84815),Q=r(73131),z=r(11339),G=r(47239),H=r(27694),W=r(68246),K=r(82279),Y=r(58159),J=r(6786),Z=r(58229),$=r(85934),X=r(21318),ee=r(8833),te=r(25755),re=r(11004),ne=r(84673),ie=r(7220),oe=r(13903),se=r(98504),ae=r(42597),ue=r(4566),ce=r(15839),le=r(17775),fe=r(64404),pe=r(94121),he=r(39409),de=r(86373),ye=r(84174),ve=r(58592),me=r(60488);function ge(e){var t;e||(0,me.Z)(0,"Received null or undefined error.");var r=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",n=e.locations,i=e.path,o=e.extensions;return o?{message:r,locations:n,path:i,extensions:o}:{message:r,locations:n,path:i}}var be=r(73153),we=r(40748);function Ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(r),!0).forEach(function(t){Se(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ee(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1},e),r=t.descriptions?"description":"",n=t.specifiedByUrl?"specifiedByUrl":"",i=t.directiveIsRepeatable?"isRepeatable":"";function o(e){return t.inputValueDeprecation?e:""}return"\n query IntrospectionQuery {\n __schema {\n ".concat(t.schemaDescription?r:"","\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ").concat(r,"\n ").concat(i,"\n locations\n args").concat(o("(includeDeprecated: true)")," {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ").concat(r,"\n ").concat(n,"\n fields(includeDeprecated: true) {\n name\n ").concat(r,"\n args").concat(o("(includeDeprecated: true)")," {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields").concat(o("(includeDeprecated: true)")," {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ").concat(r,"\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ").concat(r,"\n type { ...TypeRef }\n defaultValue\n ").concat(o("isDeprecated"),"\n ").concat(o("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 Oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Te(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(r),!0).forEach(function(t){Ae(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oe(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0},t),n=(0,s.Qc)(_e(r)),i=(0,c.p0)({schema:e,document:n});return!i.errors&&i.data||(0,P.Z)(0),i.data}var Re=r(28441),Ie=r(95897),ke=r(74039),Ce=r(67650),xe=r(7903);function Pe(e,t){(0,Ce.Z)(e)&&(0,Ce.Z)(e.__schema)||(0,me.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,Ie.Z)(e),"."));for(var r=e.__schema,n=(0,ke.Z)(r.types,function(e){return e.name},function(e){return function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case m.zU.SCALAR:return function(e){return new y.n2({name:e.name,description:e.description,specifiedByUrl:e.specifiedByUrl})}(e);case m.zU.OBJECT:return function(e){return new y.h6({name:e.name,description:e.description,interfaces:function(){return E(e)},fields:function(){return S(e)}})}(e);case m.zU.INTERFACE:return function(e){return new y.oW({name:e.name,description:e.description,interfaces:function(){return E(e)},fields:function(){return S(e)}})}(e);case m.zU.UNION:return function(e){if(!e.possibleTypes){var t=(0,Ie.Z)(e);throw new Error("Introspection result missing possibleTypes: ".concat(t,"."))}return new y.Gp({name:e.name,description:e.description,types:function(){return e.possibleTypes.map(b)}})}(e);case m.zU.ENUM:return function(e){if(!e.enumValues){var t=(0,Ie.Z)(e);throw new Error("Introspection result missing enumValues: ".concat(t,"."))}return new y.mR({name:e.name,description:e.description,values:(0,ke.Z)(e.enumValues,function(e){return e.name},function(e){return{description:e.description,deprecationReason:e.deprecationReason}})})}(e);case m.zU.INPUT_OBJECT:return function(e){if(!e.inputFields){var t=(0,Ie.Z)(e);throw new Error("Introspection result missing inputFields: ".concat(t,"."))}return new y.sR({name:e.name,description:e.description,fields:function(){return O(e.inputFields)}})}(e)}var t=(0,Ie.Z)(e);throw new Error("Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ".concat(t,"."))}(e)}),i=0,o=[].concat(v.HS,m.nL);i<o.length;i++){var a=o[i];n[a.name]&&(n[a.name]=a)}var u=r.queryType?b(r.queryType):null,c=r.mutationType?b(r.mutationType):null,l=r.subscriptionType?b(r.subscriptionType):null,f=r.directives?r.directives.map(function(e){if(!e.args){var t=(0,Ie.Z)(e);throw new Error("Introspection result missing directive args: ".concat(t,"."))}if(!e.locations){var r=(0,Ie.Z)(e);throw new Error("Introspection result missing directive locations: ".concat(r,"."))}return new d.NZ({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:O(e.args)})}):[];return new h.XO({description:r.description,query:u,mutation:c,subscription:l,types:(0,Re.Z)(n),directives:f,assumeValid:null==t?void 0:t.assumeValid});function p(e){if(e.kind===m.zU.LIST){var t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new y.p2(p(t))}if(e.kind===m.zU.NON_NULL){var r=e.ofType;if(!r)throw new Error("Decorated type deeper than introspection query.");var n=p(r);return new y.bM((0,y.i_)(n))}return g(e)}function g(e){var t=e.name;if(!t)throw new Error("Unknown type reference: ".concat((0,Ie.Z)(e),"."));var r=n[t];if(!r)throw new Error("Invalid or incomplete schema, unknown type: ".concat(t,". Ensure that a full introspection query is used in order to build a client schema."));return r}function b(e){return(0,y.Z6)(g(e))}function w(e){return(0,y.k2)(g(e))}function E(e){if(null===e.interfaces&&e.kind===m.zU.INTERFACE)return[];if(!e.interfaces){var t=(0,Ie.Z)(e);throw new Error("Introspection result missing interfaces: ".concat(t,"."))}return e.interfaces.map(w)}function S(e){if(!e.fields)throw new Error("Introspection result missing fields: ".concat((0,Ie.Z)(e),"."));return(0,ke.Z)(e.fields,function(e){return e.name},_)}function _(e){var t=p(e.type);if(!(0,y.SZ)(t)){var r=(0,Ie.Z)(t);throw new Error("Introspection must provide output type for fields, but received: ".concat(r,"."))}if(!e.args){var n=(0,Ie.Z)(e);throw new Error("Introspection result missing field args: ".concat(n,"."))}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:O(e.args)}}function O(e){return(0,ke.Z)(e,function(e){return e.name},A)}function A(e){var t=p(e.type);if(!(0,y.j$)(t)){var r=(0,Ie.Z)(t);throw new Error("Introspection must provide input type for arguments, but received: ".concat(r,"."))}var n=null!=e.defaultValue?(0,xe.u)((0,s.H2)(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}var Ne=r(87943),De=r(19560),Me=r(33951);function Le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function qe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(r),!0).forEach(function(t){je(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ue(e,t,r){(0,h.EO)(e),null!=t&&t.kind===T.h.DOCUMENT||(0,me.Z)(0,"Must provide valid Document AST."),!0!==(null==r?void 0:r.assumeValid)&&!0!==(null==r?void 0:r.assumeValidSDL)&&(0,a.ED)(t,e);var n=e.toConfig(),i=Fe(n,t,r);return n===i?e:new h.XO(i)}function Fe(e,t,r){for(var n,i,o,s,a,u=[],c=Object.create(null),l=[],f=[],p=0,h=t.definitions;p<h.length;p++){var g=h[p];if(g.kind===T.h.SCHEMA_DEFINITION)a=g;else if(g.kind===T.h.SCHEMA_EXTENSION)f.push(g);else if((0,I.zT)(g))u.push(g);else if((0,I.D$)(g)){var b=g.name.value,w=c[b];c[b]=w?w.concat([g]):[g]}else g.kind===T.h.DIRECTIVE_DEFINITION&&l.push(g)}if(0===Object.keys(c).length&&0===u.length&&0===l.length&&0===f.length&&null==a)return e;for(var E=Object.create(null),S=0,_=e.types;S<_.length;S++){var O=_[S];E[O.name]=(0,m.s9)(A=O)||(0,v.u1)(A)?A:(0,y.KA)(A)?function(e){for(var t,r=e.toConfig(),n=null!==(t=c[r.name])&&void 0!==t?t:[],i=r.specifiedByUrl,o=0;o<n.length;o++){var s;i=null!==(s=Qe(n[o]))&&void 0!==s?s:i}return new y.n2(qe(qe({},r),{},{specifiedByUrl:i,extensionASTNodes:r.extensionASTNodes.concat(n)}))}(A):(0,y.lp)(A)?function(e){var t,r=e.toConfig(),n=null!==(t=c[r.name])&&void 0!==t?t:[];return new y.h6(qe(qe({},r),{},{interfaces:function(){return[].concat(e.getInterfaces().map(M),G(n))},fields:function(){return qe(qe({},(0,De.Z)(r.fields,L)),V(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(A):(0,y.oT)(A)?function(e){var t,r=e.toConfig(),n=null!==(t=c[r.name])&&void 0!==t?t:[];return new y.oW(qe(qe({},r),{},{interfaces:function(){return[].concat(e.getInterfaces().map(M),G(n))},fields:function(){return qe(qe({},(0,De.Z)(r.fields,L)),V(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(A):(0,y.EN)(A)?function(e){var t,r=e.toConfig(),n=null!==(t=c[r.name])&&void 0!==t?t:[];return new y.Gp(qe(qe({},r),{},{types:function(){return[].concat(e.getTypes().map(M),H(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(A):(0,y.EM)(A)?function(e){var t,r=e.toConfig(),n=null!==(t=c[e.name])&&void 0!==t?t:[];return new y.mR(qe(qe({},r),{},{values:qe(qe({},r.values),z(n)),extensionASTNodes:r.extensionASTNodes.concat(n)}))}(A):(0,y.hL)(A)?function(e){var t,r=e.toConfig(),n=null!==(t=c[r.name])&&void 0!==t?t:[];return new y.sR(qe(qe({},r),{},{fields:function(){return qe(qe({},(0,De.Z)(r.fields,function(e){return qe(qe({},e),{},{type:D(e.type)})})),Q(n))},extensionASTNodes:r.extensionASTNodes.concat(n)}))}(A):void(0,P.Z)(0,"Unexpected type: "+(0,Ie.Z)(A))}for(var A,R=0;R<u.length;R++){var k,C=u[R],x=C.name.value;E[x]=null!==(k=Ve[x])&&void 0!==k?k:W(C)}var N=qe(qe({query:e.query&&M(e.query),mutation:e.mutation&&M(e.mutation),subscription:e.subscription&&M(e.subscription)},a&&j([a])),j(f));return qe(qe({description:null===(n=a)||void 0===n||null===(i=n.description)||void 0===i?void 0:i.value},N),{},{types:(0,Re.Z)(E),directives:[].concat(e.directives.map(function(e){var t=e.toConfig();return new d.NZ(qe(qe({},t),{},{args:(0,De.Z)(t.args,q)}))}),l.map(function(e){var t=e.locations.map(function(e){return e.value});return new d.NZ({name:e.name.value,description:ze(e,r),locations:t,isRepeatable:e.repeatable,args:B(e.arguments),astNode:e})})),extensions:void 0,astNode:null!==(o=a)&&void 0!==o?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(f),assumeValid:null!==(s=null==r?void 0:r.assumeValid)&&void 0!==s&&s});function D(e){return(0,y.HG)(e)?new y.p2(D(e.ofType)):(0,y.zM)(e)?new y.bM(D(e.ofType)):M(e)}function M(e){return E[e.name]}function L(e){return qe(qe({},e),{},{type:D(e.type),args:(0,De.Z)(e.args,q)})}function q(e){return qe(qe({},e),{},{type:D(e.type)})}function j(e){for(var t={},r=0;r<e.length;r++)for(var n,i=null!==(n=e[r].operationTypes)&&void 0!==n?n:[],o=0;o<i.length;o++){var s=i[o];t[s.operation]=U(s.type)}return t}function U(e){var t,r=e.name.value,n=null!==(t=Ve[r])&&void 0!==t?t:E[r];if(void 0===n)throw new Error('Unknown type: "'.concat(r,'".'));return n}function F(e){return e.kind===T.h.LIST_TYPE?new y.p2(F(e.type)):e.kind===T.h.NON_NULL_TYPE?new y.bM(F(e.type)):U(e)}function V(e){for(var t=Object.create(null),n=0;n<e.length;n++)for(var i,o=null!==(i=e[n].fields)&&void 0!==i?i:[],s=0;s<o.length;s++){var a=o[s];t[a.name.value]={type:F(a.type),description:ze(a,r),args:B(a.arguments),deprecationReason:Be(a),astNode:a}}return t}function B(e){for(var t=null!=e?e:[],n=Object.create(null),i=0;i<t.length;i++){var o=t[i],s=F(o.type);n[o.name.value]={type:s,description:ze(o,r),defaultValue:(0,xe.u)(o.defaultValue,s),deprecationReason:Be(o),astNode:o}}return n}function Q(e){for(var t=Object.create(null),n=0;n<e.length;n++)for(var i,o=null!==(i=e[n].fields)&&void 0!==i?i:[],s=0;s<o.length;s++){var a=o[s],u=F(a.type);t[a.name.value]={type:u,description:ze(a,r),defaultValue:(0,xe.u)(a.defaultValue,u),deprecationReason:Be(a),astNode:a}}return t}function z(e){for(var t=Object.create(null),n=0;n<e.length;n++)for(var i,o=null!==(i=e[n].values)&&void 0!==i?i:[],s=0;s<o.length;s++){var a=o[s];t[a.name.value]={description:ze(a,r),deprecationReason:Be(a),astNode:a}}return t}function G(e){for(var t=[],r=0;r<e.length;r++)for(var n,i=null!==(n=e[r].interfaces)&&void 0!==n?n:[],o=0;o<i.length;o++)t.push(U(i[o]));return t}function H(e){for(var t=[],r=0;r<e.length;r++)for(var n,i=null!==(n=e[r].types)&&void 0!==n?n:[],o=0;o<i.length;o++)t.push(U(i[o]));return t}function W(e){var t,n=e.name.value,i=ze(e,r),o=null!==(t=c[n])&&void 0!==t?t:[];switch(e.kind){case T.h.OBJECT_TYPE_DEFINITION:var s=o,a=[e].concat(s);return new y.h6({name:n,description:i,interfaces:function(){return G(a)},fields:function(){return V(a)},astNode:e,extensionASTNodes:s});case T.h.INTERFACE_TYPE_DEFINITION:var u=o,l=[e].concat(u);return new y.oW({name:n,description:i,interfaces:function(){return G(l)},fields:function(){return V(l)},astNode:e,extensionASTNodes:u});case T.h.ENUM_TYPE_DEFINITION:var f=o,p=[e].concat(f);return new y.mR({name:n,description:i,values:z(p),astNode:e,extensionASTNodes:f});case T.h.UNION_TYPE_DEFINITION:var h=o,d=[e].concat(h);return new y.Gp({name:n,description:i,types:function(){return H(d)},astNode:e,extensionASTNodes:h});case T.h.SCALAR_TYPE_DEFINITION:var v=o;return new y.n2({name:n,description:i,specifiedByUrl:Qe(e),astNode:e,extensionASTNodes:v});case T.h.INPUT_OBJECT_TYPE_DEFINITION:var m=o,g=[e].concat(m);return new y.sR({name:n,description:i,fields:function(){return Q(g)},astNode:e,extensionASTNodes:m})}(0,P.Z)(0,"Unexpected type definition node: "+(0,Ie.Z)(e))}}var Ve=(0,Ne.Z)(v.HS.concat(m.nL),function(e){return e.name});function Be(e){var t=(0,C.zu)(d.fg,e);return null==t?void 0:t.reason}function Qe(e){var t=(0,C.zu)(d.df,e);return null==t?void 0:t.url}function ze(e,t){if(e.description)return e.description.value;if(!0===(null==t?void 0:t.commentDescriptions)){var r=function(e){var t=e.loc;if(t){for(var r=[],n=t.startToken.prev;null!=n&&n.kind===_.T.COMMENT&&n.next&&n.prev&&n.line+1===n.next.line&&n.line!==n.prev.line;){var i=String(n.value);r.push(i),n=n.prev}return r.length>0?r.reverse().join("\n"):void 0}}(e);if(void 0!==r)return(0,Me.W7)("\n"+r)}}function Ge(e,t){null!=e&&e.kind===T.h.DOCUMENT||(0,me.Z)(0,"Must provide valid Document AST."),!0!==(null==t?void 0:t.assumeValid)&&!0!==(null==t?void 0:t.assumeValidSDL)&&(0,a.zo)(e);var r=Fe({description:void 0,types:[],directives:[],extensions:void 0,extensionASTNodes:[],assumeValid:!1},e,t);if(null==r.astNode)for(var n=0,i=r.types;n<i.length;n++){var o=i[n];switch(o.name){case"Query":r.query=o;break;case"Mutation":r.mutation=o;break;case"Subscription":r.subscription=o}}for(var s=r.directives,u=function(e){var t=d.V4[e];s.every(function(e){return e.name!==t.name})&&s.push(t)},c=0;c<d.V4.length;c++)u(c);return new h.XO(r)}function He(e,t){return Ge((0,s.Qc)(e,{noLocation:null==t?void 0:t.noLocation,allowLegacySDLEmptyFields:null==t?void 0:t.allowLegacySDLEmptyFields,allowLegacySDLImplementsInterfaces:null==t?void 0:t.allowLegacySDLImplementsInterfaces,experimentalFragmentVariables:null==t?void 0:t.experimentalFragmentVariables}),{commentDescriptions:null==t?void 0:t.commentDescriptions,assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}var We=r(22307);function Ke(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(r),!0).forEach(function(t){Je(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ke(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Je(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ze(e){var t=e.toConfig(),r=(0,ke.Z)(Xe(t.types),function(e){return e.name},function(e){if((0,y.KA)(e)||(0,m.s9)(e))return e;if((0,y.lp)(e)){var t=e.toConfig();return new y.h6(Ye(Ye({},t),{},{interfaces:function(){return u(t.interfaces)},fields:function(){return a(t.fields)}}))}if((0,y.oT)(e)){var r=e.toConfig();return new y.oW(Ye(Ye({},r),{},{interfaces:function(){return u(r.interfaces)},fields:function(){return a(r.fields)}}))}if((0,y.EN)(e)){var i=e.toConfig();return new y.Gp(Ye(Ye({},i),{},{types:function(){return u(i.types)}}))}if((0,y.EM)(e)){var o=e.toConfig();return new y.mR(Ye(Ye({},o),{},{values:$e(o.values)}))}if((0,y.hL)(e)){var s=e.toConfig();return new y.sR(Ye(Ye({},s),{},{fields:function(){return function(e){return $e(e,function(e){return Ye(Ye({},e),{},{type:n(e.type)})})}(s.fields)}}))}(0,P.Z)(0,"Unexpected type: "+(0,Ie.Z)(e))});return new h.XO(Ye(Ye({},t),{},{types:(0,Re.Z)(r),directives:Xe(t.directives).map(function(e){var t=e.toConfig();return new d.NZ(Ye(Ye({},t),{},{locations:et(t.locations,function(e){return e}),args:s(t.args)}))}),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)}));function n(e){return(0,y.HG)(e)?new y.p2(n(e.ofType)):(0,y.zM)(e)?new y.bM(n(e.ofType)):i(e)}function i(e){return r[e.name]}function o(e){return e&&i(e)}function s(e){return $e(e,function(e){return Ye(Ye({},e),{},{type:n(e.type)})})}function a(e){return $e(e,function(e){return Ye(Ye({},e),{},{type:n(e.type),args:s(e.args)})})}function u(e){return Xe(e).map(i)}}function $e(e,t){for(var r=Object.create(null),n=et(Object.keys(e),function(e){return e}),i=0;i<n.length;i++){var o=n[i],s=e[o];r[o]=t?t(s):s}return r}function Xe(e){return et(e,function(e){return e.name})}function et(e,t){return e.slice().sort(function(e,r){var n=t(e),i=t(r);return(0,We.Z)(n,i)})}var tt=r(33525);function rt(e,t){return ot(e,function(e){return!(0,d.xg)(e)},it,t)}function nt(e,t){return ot(e,d.xg,m.s9,t)}function it(e){return!(0,v.u1)(e)&&!(0,m.s9)(e)}function ot(e,t,r,n){var i=e.getDirectives().filter(t),o=(0,Re.Z)(e.getTypeMap()).filter(r);return[st(e)].concat(i.map(function(e){return function(e,t){return dt(t,e)+"directive @"+e.name+ft(t,e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e,n)}),o.map(function(e){return at(e,n)})).filter(Boolean).join("\n\n")+"\n"}function st(e){if(null!=e.description||!function(e){var t=e.getQueryType();if(t&&"Query"!==t.name)return!1;var r=e.getMutationType();if(r&&"Mutation"!==r.name)return!1;var n=e.getSubscriptionType();return!(n&&"Subscription"!==n.name)}(e)){var t=[],r=e.getQueryType();r&&t.push(" query: ".concat(r.name));var n=e.getMutationType();n&&t.push(" mutation: ".concat(n.name));var i=e.getSubscriptionType();return i&&t.push(" subscription: ".concat(i.name)),dt({},e)+"schema {\n".concat(t.join("\n"),"\n}")}}function at(e,t){return(0,y.KA)(e)?function(e,t){return dt(t,e)+"scalar ".concat(e.name)+function(e){if(null==e.specifiedByUrl)return"";var t=(0,tt.J)(e.specifiedByUrl,v.kH);return t||(0,P.Z)(0,"Unexpected null value returned from `astFromValue` for specifiedByUrl")," @specifiedBy(url: "+(0,O.print)(t)+")"}(e)}(e,t):(0,y.lp)(e)?function(e,t){return dt(t,e)+"type ".concat(e.name)+ut(e)+ct(t,e)}(e,t):(0,y.oT)(e)?function(e,t){return dt(t,e)+"interface ".concat(e.name)+ut(e)+ct(t,e)}(e,t):(0,y.EN)(e)?function(e,t){var r=e.getTypes(),n=r.length?" = "+r.join(" | "):"";return dt(t,e)+"union "+e.name+n}(e,t):(0,y.EM)(e)?function(e,t){var r=e.getValues().map(function(e,r){return dt(t,e," ",!r)+" "+e.name+ht(e.deprecationReason)});return dt(t,e)+"enum ".concat(e.name)+lt(r)}(e,t):(0,y.hL)(e)?function(e,t){var r=(0,Re.Z)(e.getFields()).map(function(e,r){return dt(t,e," ",!r)+" "+pt(e)});return dt(t,e)+"input ".concat(e.name)+lt(r)}(e,t):void(0,P.Z)(0,"Unexpected type: "+(0,Ie.Z)(e))}function ut(e){var t=e.getInterfaces();return t.length?" implements "+t.map(function(e){return e.name}).join(" & "):""}function ct(e,t){return lt((0,Re.Z)(t.getFields()).map(function(t,r){return dt(e,t," ",!r)+" "+t.name+ft(e,t.args," ")+": "+String(t.type)+ht(t.deprecationReason)}))}function lt(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function ft(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return 0===t.length?"":t.every(function(e){return!e.description})?"("+t.map(pt).join(", ")+")":"(\n"+t.map(function(t,n){return dt(e,t," "+r,!n)+" "+r+pt(t)}).join("\n")+"\n"+r+")"}function pt(e){var t=(0,tt.J)(e.defaultValue,e.type),r=e.name+": "+String(e.type);return t&&(r+=" = ".concat((0,O.print)(t))),r+ht(e.deprecationReason)}function ht(e){if(null==e)return"";var t=(0,tt.J)(e,v.kH);return t&&e!==d.SY?" @deprecated(reason: "+(0,O.print)(t)+")":" @deprecated"}function dt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=t.description;if(null==i)return"";if(!0===(null==e?void 0:e.commentDescriptions))return yt(i,r,n);var o=i.length>70,s=(0,Me.LZ)(i,"",o),a=r&&!n?"\n"+r:r;return a+s.replace(/\n/g,"\n"+r)+"\n"}function yt(e,t,r){return(t&&!r?"\n":"")+e.split("\n").map(function(e){return t+(""!==e?"# "+e:"#")}).join("\n")+"\n"}function vt(e){for(var t=[],r=0;r<e.length;r++)t=t.concat(e[r].definitions);return{kind:"Document",definitions:t}}function mt(e){for(var t=[],r=Object.create(null),n=0,i=e.definitions;n<i.length;n++){var o=i[n];switch(o.kind){case T.h.OPERATION_DEFINITION:t.push(o);break;case T.h.FRAGMENT_DEFINITION:r[o.name.value]=bt(o.selectionSet)}}for(var s=Object.create(null),a=function(n){for(var i=t[n],o=new Set,a=0,u=bt(i.selectionSet);a<u.length;a++)gt(o,r,u[a]);s[i.name?i.name.value:""]={kind:T.h.DOCUMENT,definitions:e.definitions.filter(function(e){return e===i||e.kind===T.h.FRAGMENT_DEFINITION&&o.has(e.name.value)})}},u=0;u<t.length;u++)a(u);return s}function gt(e,t,r){if(!e.has(r)){e.add(r);var n=t[r];if(void 0!==n)for(var i=0;i<n.length;i++)gt(e,t,n[i])}}function bt(e){var t=[];return(0,A.Vn)(e,{FragmentSpread:function(e){t.push(e.name.value)}}),t}function wt(e){for(var t=(0,b.T)(e)?e:new b.H(e),r=t.body,n=new S.h(t),i="",o=!1;n.advance().kind!==_.T.EOF;){var s=n.token,a=s.kind,u=!(0,S.u)(s.kind);o&&(u||s.kind===_.T.SPREAD)&&(i+=" ");var c=r.slice(s.start,s.end);i+=a===_.T.BLOCK_STRING?Et(c):c,o=u}return i}function Et(e){var t=e.slice(3,-3),r=(0,Me.W7)(t);(0,Me.Z2)(r)>0&&(r="\n"+r);var n=r[r.length-1];return('"'===n&&'\\"""'!==r.slice(-4)||"\\"===n)&&(r+="\n"),'"""'+r+'"""'}function St(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?St(Object(r),!0).forEach(function(t){Ot(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):St(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ot(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var At=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"}),Tt=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 Rt(e,t){return kt(e,t).filter(function(e){return e.type in At})}function It(e,t){return kt(e,t).filter(function(e){return e.type in Tt})}function kt(e,t){return[].concat(function(e,t){for(var r=[],n=Ft((0,Re.Z)(e.getTypeMap()),(0,Re.Z)(t.getTypeMap())),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:At.TYPE_REMOVED,description:(0,v.u1)(s)?"Standard scalar ".concat(s.name," was removed because it is not referenced anymore."):"".concat(s.name," was removed.")})}for(var a=0,u=n.persisted;a<u.length;a++){var c=u[a],l=c[0],f=c[1];(0,y.EM)(l)&&(0,y.EM)(f)?r.push.apply(r,Pt(l,f)):(0,y.EN)(l)&&(0,y.EN)(f)?r.push.apply(r,xt(l,f)):(0,y.hL)(l)&&(0,y.hL)(f)?r.push.apply(r,Ct(l,f)):(0,y.lp)(l)&&(0,y.lp)(f)||(0,y.oT)(l)&&(0,y.oT)(f)?r.push.apply(r,Dt(l,f).concat(Nt(l,f))):l.constructor!==f.constructor&&r.push({type:At.TYPE_CHANGED_KIND,description:"".concat(l.name," changed from ")+"".concat(jt(l)," to ").concat(jt(f),".")})}return r}(e,t),function(e,t){for(var r=[],n=Ft(e.getDirectives(),t.getDirectives()),i=0,o=n.removed;i<o.length;i++)r.push({type:At.DIRECTIVE_REMOVED,description:"".concat(o[i].name," was removed.")});for(var s=0,a=n.persisted;s<a.length;s++){for(var u=a[s],c=u[0],l=u[1],f=Ft(c.args,l.args),p=0,h=f.added;p<h.length;p++){var d=h[p];(0,y.dK)(d)&&r.push({type:At.REQUIRED_DIRECTIVE_ARG_ADDED,description:"A required arg ".concat(d.name," on directive ").concat(c.name," was added.")})}for(var v=0,m=f.removed;v<m.length;v++)r.push({type:At.DIRECTIVE_ARG_REMOVED,description:"".concat(m[v].name," was removed from ").concat(c.name,".")});c.isRepeatable&&!l.isRepeatable&&r.push({type:At.DIRECTIVE_REPEATABLE_REMOVED,description:"Repeatable flag was removed from ".concat(c.name,".")});for(var g=0,b=c.locations;g<b.length;g++){var w=b[g];-1===l.locations.indexOf(w)&&r.push({type:At.DIRECTIVE_LOCATION_REMOVED,description:"".concat(w," was removed from ").concat(c.name,".")})}}return r}(e,t))}function Ct(e,t){for(var r=[],n=Ft((0,Re.Z)(e.getFields()),(0,Re.Z)(t.getFields())),i=0,o=n.added;i<o.length;i++){var s=o[i];(0,y.Wd)(s)?r.push({type:At.REQUIRED_INPUT_FIELD_ADDED,description:"A required field ".concat(s.name," on input type ").concat(e.name," was added.")}):r.push({type:Tt.OPTIONAL_INPUT_FIELD_ADDED,description:"An optional field ".concat(s.name," on input type ").concat(e.name," was added.")})}for(var a=0,u=n.removed;a<u.length;a++){var c=u[a];r.push({type:At.FIELD_REMOVED,description:"".concat(e.name,".").concat(c.name," was removed.")})}for(var l=0,f=n.persisted;l<f.length;l++){var p=f[l],h=p[0],d=p[1];qt(h.type,d.type)||r.push({type:At.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(h.name," changed type from ")+"".concat(String(h.type)," to ").concat(String(d.type),".")})}return r}function xt(e,t){for(var r=[],n=Ft(e.getTypes(),t.getTypes()),i=0,o=n.added;i<o.length;i++)r.push({type:Tt.TYPE_ADDED_TO_UNION,description:"".concat(o[i].name," was added to union type ").concat(e.name,".")});for(var s=0,a=n.removed;s<a.length;s++)r.push({type:At.TYPE_REMOVED_FROM_UNION,description:"".concat(a[s].name," was removed from union type ").concat(e.name,".")});return r}function Pt(e,t){for(var r=[],n=Ft(e.getValues(),t.getValues()),i=0,o=n.added;i<o.length;i++)r.push({type:Tt.VALUE_ADDED_TO_ENUM,description:"".concat(o[i].name," was added to enum type ").concat(e.name,".")});for(var s=0,a=n.removed;s<a.length;s++)r.push({type:At.VALUE_REMOVED_FROM_ENUM,description:"".concat(a[s].name," was removed from enum type ").concat(e.name,".")});return r}function Nt(e,t){for(var r=[],n=Ft(e.getInterfaces(),t.getInterfaces()),i=0,o=n.added;i<o.length;i++)r.push({type:Tt.IMPLEMENTED_INTERFACE_ADDED,description:"".concat(o[i].name," added to interfaces implemented by ").concat(e.name,".")});for(var s=0,a=n.removed;s<a.length;s++){var u=a[s];r.push({type:At.IMPLEMENTED_INTERFACE_REMOVED,description:"".concat(e.name," no longer implements interface ").concat(u.name,".")})}return r}function Dt(e,t){for(var r=[],n=Ft((0,Re.Z)(e.getFields()),(0,Re.Z)(t.getFields())),i=0,o=n.removed;i<o.length;i++){var s=o[i];r.push({type:At.FIELD_REMOVED,description:"".concat(e.name,".").concat(s.name," was removed.")})}for(var a=0,u=n.persisted;a<u.length;a++){var c=u[a],l=c[0],f=c[1];r.push.apply(r,Mt(e,l,f)),Lt(l.type,f.type)||r.push({type:At.FIELD_CHANGED_KIND,description:"".concat(e.name,".").concat(l.name," changed type from ")+"".concat(String(l.type)," to ").concat(String(f.type),".")})}return r}function Mt(e,t,r){for(var n=[],i=Ft(t.args,r.args),o=0,s=i.removed;o<s.length;o++){var a=s[o];n.push({type:At.ARG_REMOVED,description:"".concat(e.name,".").concat(t.name," arg ").concat(a.name," was removed.")})}for(var u=0,c=i.persisted;u<c.length;u++){var l=c[u],f=l[0],p=l[1];if(qt(f.type,p.type)){if(void 0!==f.defaultValue)if(void 0===p.defaultValue)n.push({type:Tt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," defaultValue was removed.")});else{var h=Ut(f.defaultValue,f.type),d=Ut(p.defaultValue,p.type);h!==d&&n.push({type:Tt.ARG_DEFAULT_VALUE_CHANGE,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed defaultValue from ").concat(h," to ").concat(d,".")})}}else n.push({type:At.ARG_CHANGED_KIND,description:"".concat(e.name,".").concat(t.name," arg ").concat(f.name," has changed type from ")+"".concat(String(f.type)," to ").concat(String(p.type),".")})}for(var v=0,m=i.added;v<m.length;v++){var g=m[v];(0,y.dK)(g)?n.push({type:At.REQUIRED_ARG_ADDED,description:"A required arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")}):n.push({type:Tt.OPTIONAL_ARG_ADDED,description:"An optional arg ".concat(g.name," on ").concat(e.name,".").concat(t.name," was added.")})}return n}function Lt(e,t){return(0,y.HG)(e)?(0,y.HG)(t)&&Lt(e.ofType,t.ofType)||(0,y.zM)(t)&&Lt(e,t.ofType):(0,y.zM)(e)?(0,y.zM)(t)&&Lt(e.ofType,t.ofType):(0,y.Zs)(t)&&e.name===t.name||(0,y.zM)(t)&&Lt(e,t.ofType)}function qt(e,t){return(0,y.HG)(e)?(0,y.HG)(t)&&qt(e.ofType,t.ofType):(0,y.zM)(e)?(0,y.zM)(t)&&qt(e.ofType,t.ofType)||!(0,y.zM)(t)&&qt(e.ofType,t):(0,y.Zs)(t)&&e.name===t.name}function jt(e){return(0,y.KA)(e)?"a Scalar type":(0,y.lp)(e)?"an Object type":(0,y.oT)(e)?"an Interface type":(0,y.EN)(e)?"a Union type":(0,y.EM)(e)?"an Enum type":(0,y.hL)(e)?"an Input type":void(0,P.Z)(0,"Unexpected type: "+(0,Ie.Z)(e))}function Ut(e,t){var r=(0,tt.J)(e,t);null!=r||(0,P.Z)(0);var n=(0,A.Vn)(r,{ObjectValue:function(e){var t=[].concat(e.fields);return t.sort(function(e,t){return(0,We.Z)(e.name.value,t.name.value)}),_t(_t({},e),{},{fields:t})}});return(0,O.print)(n)}function Ft(e,t){for(var r=[],n=[],i=[],o=(0,Ne.Z)(e,function(e){return e.name}),s=(0,Ne.Z)(t,function(e){return e.name}),a=0;a<e.length;a++){var u=e[a],c=s[u.name];void 0===c?n.push(u):i.push([u,c])}for(var l=0;l<t.length;l++){var f=t[l];void 0===o[f.name]&&r.push(f)}return{added:r,persisted:i,removed:n}}function Vt(e,t){return(0,a.Gu)(e,t,[D])}var Bt=r(69251),Qt=r(95769),zt=r(53854),Gt=r(47582),Ht=r(12940),Wt=r(15754),Kt=r(95880),Yt=r(47557)},44226:function(e){"use strict";e.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:function(e){"use strict";e.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:function(e){"use strict";e.exports=JSON.parse('{"o":{"ListIdentityPools":{"input_token":"NextToken","limit_key":"MaxResults","output_token":"NextToken","result_key":"IdentityPools"}}}')},65359:function(e){"use strict";e.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:function(e){"use strict";e.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:function(e){"use strict";e.exports={o:{}}},50261:function(e){"use strict";e.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"}}}')}}]);