@onepercentio/one-ui 0.9.5 → 0.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/package.json +1 -1
  2. package/.firebase/hosting.c3Rvcnlib29rLXN0YXRpYw.cache +0 -75
  3. package/storybook-static/0.e5489f12ab94aa497491.manager.bundle.js +0 -2
  4. package/storybook-static/0.e5489f12ab94aa497491.manager.bundle.js.LICENSE.txt +0 -8
  5. package/storybook-static/1.7d0dd704b26935d06a04.manager.bundle.js +0 -1
  6. package/storybook-static/10.398dd7a0522c1ff2b3a8.manager.bundle.js +0 -1
  7. package/storybook-static/138.6187167c.iframe.bundle.js +0 -1
  8. package/storybook-static/220.674c0bf1.iframe.bundle.js +0 -1
  9. package/storybook-static/229.f9ea1466.iframe.bundle.js +0 -1
  10. package/storybook-static/273.da38e6e3.iframe.bundle.js +0 -2
  11. package/storybook-static/273.da38e6e3.iframe.bundle.js.LICENSE.txt +0 -28
  12. package/storybook-static/352.294a6a74.iframe.bundle.js +0 -1
  13. package/storybook-static/363.f17b422d.iframe.bundle.js +0 -2
  14. package/storybook-static/363.f17b422d.iframe.bundle.js.LICENSE.txt +0 -6
  15. package/storybook-static/412.733afc6e.iframe.bundle.js +0 -1
  16. package/storybook-static/452.99cd3b8c.iframe.bundle.js +0 -1
  17. package/storybook-static/46.ee106131.iframe.bundle.js +0 -1
  18. package/storybook-static/5.23ef655b5acff6eac8ad.manager.bundle.js +0 -1
  19. package/storybook-static/51.8e7baa4a.iframe.bundle.js +0 -2
  20. package/storybook-static/51.8e7baa4a.iframe.bundle.js.LICENSE.txt +0 -8
  21. package/storybook-static/551.c2ccadd6.iframe.bundle.js +0 -1
  22. package/storybook-static/553.652f0995.iframe.bundle.js +0 -2
  23. package/storybook-static/553.652f0995.iframe.bundle.js.LICENSE.txt +0 -23
  24. package/storybook-static/559.577b26d7.iframe.bundle.js +0 -1
  25. package/storybook-static/581.da7fce5d.iframe.bundle.js +0 -1
  26. package/storybook-static/6.d2f96bcf3b11b0f1a44b.manager.bundle.js +0 -1
  27. package/storybook-static/629.45033b3b.iframe.bundle.js +0 -2
  28. package/storybook-static/629.45033b3b.iframe.bundle.js.LICENSE.txt +0 -1
  29. package/storybook-static/630.f2f00783.iframe.bundle.js +0 -1
  30. package/storybook-static/645.2498ba11.iframe.bundle.js +0 -2
  31. package/storybook-static/645.2498ba11.iframe.bundle.js.LICENSE.txt +0 -14
  32. package/storybook-static/7.a1c5467faea0833b53d1.manager.bundle.js +0 -1
  33. package/storybook-static/701.24112ab9.iframe.bundle.js +0 -1
  34. package/storybook-static/71.7abff480.iframe.bundle.js +0 -2
  35. package/storybook-static/71.7abff480.iframe.bundle.js.LICENSE.txt +0 -10
  36. package/storybook-static/745.6b9017a1.iframe.bundle.js +0 -1
  37. package/storybook-static/792.22a9b462.iframe.bundle.js +0 -1
  38. package/storybook-static/8.65ec2749796fb05c258c.manager.bundle.js +0 -2
  39. package/storybook-static/8.65ec2749796fb05c258c.manager.bundle.js.LICENSE.txt +0 -12
  40. package/storybook-static/806.11577851.iframe.bundle.js +0 -1
  41. package/storybook-static/807.8b5924ce.iframe.bundle.js +0 -2
  42. package/storybook-static/807.8b5924ce.iframe.bundle.js.LICENSE.txt +0 -31
  43. package/storybook-static/85.1ef0d41f.iframe.bundle.js +0 -2
  44. package/storybook-static/85.1ef0d41f.iframe.bundle.js.LICENSE.txt +0 -8
  45. package/storybook-static/866.2b96cc93.iframe.bundle.js +0 -2
  46. package/storybook-static/866.2b96cc93.iframe.bundle.js.LICENSE.txt +0 -211
  47. package/storybook-static/878.e3547f8c.iframe.bundle.js +0 -1
  48. package/storybook-static/897.685241f9.iframe.bundle.js +0 -2
  49. package/storybook-static/897.685241f9.iframe.bundle.js.LICENSE.txt +0 -12
  50. package/storybook-static/9.acd0ef9064e0667433ac.manager.bundle.js +0 -2
  51. package/storybook-static/9.acd0ef9064e0667433ac.manager.bundle.js.LICENSE.txt +0 -31
  52. package/storybook-static/90.30e727d2.iframe.bundle.js +0 -1
  53. package/storybook-static/929.9aa2f85f.iframe.bundle.js +0 -1
  54. package/storybook-static/935.9c449351.iframe.bundle.js +0 -1
  55. package/storybook-static/950.78af67e2.iframe.bundle.js +0 -1
  56. package/storybook-static/962.08244f28.iframe.bundle.js +0 -1
  57. package/storybook-static/favicon.ico +0 -0
  58. package/storybook-static/iframe.html +0 -364
  59. package/storybook-static/index.html +0 -51
  60. package/storybook-static/main.221efcc3.iframe.bundle.js +0 -2
  61. package/storybook-static/main.221efcc3.iframe.bundle.js.LICENSE.txt +0 -1
  62. package/storybook-static/main.3fb8cb266a67ec5355cf.manager.bundle.js +0 -2
  63. package/storybook-static/main.3fb8cb266a67ec5355cf.manager.bundle.js.LICENSE.txt +0 -54
  64. package/storybook-static/project.json +0 -1
  65. package/storybook-static/runtime~main.64947dad.iframe.bundle.js +0 -1
  66. package/storybook-static/runtime~main.8e5cf3a9715a0d32d390.manager.bundle.js +0 -1
  67. package/storybook-static/static/media/Cipher.cf0cd97b.png +0 -0
  68. package/storybook-static/static/media/Fortmatic.4324caad.svg +0 -1
  69. package/storybook-static/static/media/Frame.aa35d8c0.png +0 -0
  70. package/storybook-static/static/media/Metamask.30eeac05.png +0 -0
  71. package/storybook-static/static/media/Portis.4676caf6.svg +0 -1
  72. package/storybook-static/static/media/Status.20751041.png +0 -0
  73. package/storybook-static/static/media/checkbox.1b6c2edc.svg +0 -3
  74. package/storybook-static/static/media/wallet.f29cb53a.svg +0 -1
  75. package/storybook-static/static/media/walletconnect.9b7e021b.png +0 -0
  76. package/storybook-static/vendors~main.7c47903ea43e951c3707.manager.bundle.js +0 -2
  77. package/storybook-static/vendors~main.7c47903ea43e951c3707.manager.bundle.js.LICENSE.txt +0 -55
@@ -1,2 +0,0 @@
1
- /*! For license information please see 553.652f0995.iframe.bundle.js.LICENSE.txt */
2
- (self.webpackChunk_onepercentio_one_ui=self.webpackChunk_onepercentio_one_ui||[]).push([[553],{"./node_modules/bind-decorator/index.js":function(__unused_webpack_module,exports){"use strict";var constants;function bind(target,propertyKey,descriptor){if(!descriptor||typeof descriptor.value!==constants.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+propertyKey+"> is not a method!");return{configurable:constants.boolTrue,get:function(){var bound=descriptor.value.bind(this);return Object.defineProperty(this,propertyKey,{value:bound,configurable:constants.boolTrue,writable:constants.boolTrue}),bound}}}Object.defineProperty(exports,"__esModule",{value:!0}),function(constants){constants.typeOfFunction="function",constants.boolTrue=!0}(constants||(constants={})),exports.bind=bind,exports.default=bind},"./node_modules/clsx/dist/clsx.m.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{clsx:function(){return clsx}}),__webpack_exports__.default=clsx},"./node_modules/eth-query/index.js":function(module,__unused_webpack_exports,__webpack_require__){const extend=__webpack_require__("./node_modules/xtend/immutable.js"),createRandomId=__webpack_require__("./node_modules/json-rpc-random-id/index.js")();function EthQuery(provider){this.currentProvider=provider}function generateFnFor(methodName){return function(){const self=this;var args=[].slice.call(arguments),cb=args.pop();self.sendAsync({method:methodName,params:args},cb)}}function generateFnWithDefaultBlockFor(argCount,methodName){return function(){const self=this;var args=[].slice.call(arguments),cb=args.pop();args.length<argCount&&args.push("latest"),self.sendAsync({method:methodName,params:args},cb)}}module.exports=EthQuery,EthQuery.prototype.getBalance=generateFnWithDefaultBlockFor(2,"eth_getBalance"),EthQuery.prototype.getCode=generateFnWithDefaultBlockFor(2,"eth_getCode"),EthQuery.prototype.getTransactionCount=generateFnWithDefaultBlockFor(2,"eth_getTransactionCount"),EthQuery.prototype.getStorageAt=generateFnWithDefaultBlockFor(3,"eth_getStorageAt"),EthQuery.prototype.call=generateFnWithDefaultBlockFor(2,"eth_call"),EthQuery.prototype.protocolVersion=generateFnFor("eth_protocolVersion"),EthQuery.prototype.syncing=generateFnFor("eth_syncing"),EthQuery.prototype.coinbase=generateFnFor("eth_coinbase"),EthQuery.prototype.mining=generateFnFor("eth_mining"),EthQuery.prototype.hashrate=generateFnFor("eth_hashrate"),EthQuery.prototype.gasPrice=generateFnFor("eth_gasPrice"),EthQuery.prototype.accounts=generateFnFor("eth_accounts"),EthQuery.prototype.blockNumber=generateFnFor("eth_blockNumber"),EthQuery.prototype.getBlockTransactionCountByHash=generateFnFor("eth_getBlockTransactionCountByHash"),EthQuery.prototype.getBlockTransactionCountByNumber=generateFnFor("eth_getBlockTransactionCountByNumber"),EthQuery.prototype.getUncleCountByBlockHash=generateFnFor("eth_getUncleCountByBlockHash"),EthQuery.prototype.getUncleCountByBlockNumber=generateFnFor("eth_getUncleCountByBlockNumber"),EthQuery.prototype.sign=generateFnFor("eth_sign"),EthQuery.prototype.sendTransaction=generateFnFor("eth_sendTransaction"),EthQuery.prototype.sendRawTransaction=generateFnFor("eth_sendRawTransaction"),EthQuery.prototype.estimateGas=generateFnFor("eth_estimateGas"),EthQuery.prototype.getBlockByHash=generateFnFor("eth_getBlockByHash"),EthQuery.prototype.getBlockByNumber=generateFnFor("eth_getBlockByNumber"),EthQuery.prototype.getTransactionByHash=generateFnFor("eth_getTransactionByHash"),EthQuery.prototype.getTransactionByBlockHashAndIndex=generateFnFor("eth_getTransactionByBlockHashAndIndex"),EthQuery.prototype.getTransactionByBlockNumberAndIndex=generateFnFor("eth_getTransactionByBlockNumberAndIndex"),EthQuery.prototype.getTransactionReceipt=generateFnFor("eth_getTransactionReceipt"),EthQuery.prototype.getUncleByBlockHashAndIndex=generateFnFor("eth_getUncleByBlockHashAndIndex"),EthQuery.prototype.getUncleByBlockNumberAndIndex=generateFnFor("eth_getUncleByBlockNumberAndIndex"),EthQuery.prototype.getCompilers=generateFnFor("eth_getCompilers"),EthQuery.prototype.compileLLL=generateFnFor("eth_compileLLL"),EthQuery.prototype.compileSolidity=generateFnFor("eth_compileSolidity"),EthQuery.prototype.compileSerpent=generateFnFor("eth_compileSerpent"),EthQuery.prototype.newFilter=generateFnFor("eth_newFilter"),EthQuery.prototype.newBlockFilter=generateFnFor("eth_newBlockFilter"),EthQuery.prototype.newPendingTransactionFilter=generateFnFor("eth_newPendingTransactionFilter"),EthQuery.prototype.uninstallFilter=generateFnFor("eth_uninstallFilter"),EthQuery.prototype.getFilterChanges=generateFnFor("eth_getFilterChanges"),EthQuery.prototype.getFilterLogs=generateFnFor("eth_getFilterLogs"),EthQuery.prototype.getLogs=generateFnFor("eth_getLogs"),EthQuery.prototype.getWork=generateFnFor("eth_getWork"),EthQuery.prototype.submitWork=generateFnFor("eth_submitWork"),EthQuery.prototype.submitHashrate=generateFnFor("eth_submitHashrate"),EthQuery.prototype.sendAsync=function(opts,cb){this.currentProvider.sendAsync(function createPayload(data){return extend({id:createRandomId(),jsonrpc:"2.0",params:[]},data)}(opts),(function(err,response){if(!err&&response.error&&(err=new Error("EthQuery - RPC Error - "+response.error.message)),err)return cb(err);cb(null,response.result)}))}},"./node_modules/js-sha256/src/sha256.js":function(module,exports,__webpack_require__){var process=__webpack_require__("./node_modules/process/browser.js"),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(obj){return"[object Array]"===Object.prototype.toString.call(obj)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(obj){return"object"==typeof obj&&obj.buffer&&obj.buffer.constructor===ArrayBuffer});var createOutputMethod=function(outputType,is224){return function(message){return new Sha256(is224,!0).update(message)[outputType]()}},createMethod=function(is224){var method=createOutputMethod("hex",is224);NODE_JS&&(method=nodeWrap(method,is224)),method.create=function(){return new Sha256(is224)},method.update=function(message){return method.create().update(message)};for(var i=0;i<OUTPUT_TYPES.length;++i){var type=OUTPUT_TYPES[i];method[type]=createOutputMethod(type,is224)}return method},nodeWrap=function(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(message){if("string"==typeof message)return crypto.createHash(algorithm).update(message,"utf8").digest("hex");if(null==message)throw new Error(ERROR);return message.constructor===ArrayBuffer&&(message=new Uint8Array(message)),Array.isArray(message)||ArrayBuffer.isView(message)||message.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(message)).digest("hex"):method(message)};return nodeMethod},createHmacOutputMethod=function(outputType,is224){return function(key,message){return new HmacSha256(key,is224,!0).update(message)[outputType]()}},createHmacMethod=function(is224){var method=createHmacOutputMethod("hex",is224);method.create=function(key){return new HmacSha256(key,is224)},method.update=function(key,message){return method.create(key).update(message)};for(var i=0;i<OUTPUT_TYPES.length;++i){var type=OUTPUT_TYPES[i];method[type]=createHmacOutputMethod(type,is224)}return method};function Sha256(is224,sharedMemory){sharedMemory?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],is224?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=is224}function HmacSha256(key,is224,sharedMemory){var i,type=typeof key;if("string"===type){var code,bytes=[],length=key.length,index=0;for(i=0;i<length;++i)(code=key.charCodeAt(i))<128?bytes[index++]=code:code<2048?(bytes[index++]=192|code>>6,bytes[index++]=128|63&code):code<55296||code>=57344?(bytes[index++]=224|code>>12,bytes[index++]=128|code>>6&63,bytes[index++]=128|63&code):(code=65536+((1023&code)<<10|1023&key.charCodeAt(++i)),bytes[index++]=240|code>>18,bytes[index++]=128|code>>12&63,bytes[index++]=128|code>>6&63,bytes[index++]=128|63&code);key=bytes}else{if("object"!==type)throw new Error(ERROR);if(null===key)throw new Error(ERROR);if(ARRAY_BUFFER&&key.constructor===ArrayBuffer)key=new Uint8Array(key);else if(!(Array.isArray(key)||ARRAY_BUFFER&&ArrayBuffer.isView(key)))throw new Error(ERROR)}key.length>64&&(key=new Sha256(is224,!0).update(key).array());var oKeyPad=[],iKeyPad=[];for(i=0;i<64;++i){var b=key[i]||0;oKeyPad[i]=92^b,iKeyPad[i]=54^b}Sha256.call(this,is224,sharedMemory),this.update(iKeyPad),this.oKeyPad=oKeyPad,this.inner=!0,this.sharedMemory=sharedMemory}Sha256.prototype.update=function(message){if(!this.finalized){var notString,type=typeof message;if("string"!==type){if("object"!==type)throw new Error(ERROR);if(null===message)throw new Error(ERROR);if(ARRAY_BUFFER&&message.constructor===ArrayBuffer)message=new Uint8Array(message);else if(!(Array.isArray(message)||ARRAY_BUFFER&&ArrayBuffer.isView(message)))throw new Error(ERROR);notString=!0}for(var code,i,index=0,length=message.length,blocks=this.blocks;index<length;){if(this.hashed&&(this.hashed=!1,blocks[0]=this.block,blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0),notString)for(i=this.start;index<length&&i<64;++index)blocks[i>>2]|=message[index]<<SHIFT[3&i++];else for(i=this.start;index<length&&i<64;++index)(code=message.charCodeAt(index))<128?blocks[i>>2]|=code<<SHIFT[3&i++]:code<2048?(blocks[i>>2]|=(192|code>>6)<<SHIFT[3&i++],blocks[i>>2]|=(128|63&code)<<SHIFT[3&i++]):code<55296||code>=57344?(blocks[i>>2]|=(224|code>>12)<<SHIFT[3&i++],blocks[i>>2]|=(128|code>>6&63)<<SHIFT[3&i++],blocks[i>>2]|=(128|63&code)<<SHIFT[3&i++]):(code=65536+((1023&code)<<10|1023&message.charCodeAt(++index)),blocks[i>>2]|=(240|code>>18)<<SHIFT[3&i++],blocks[i>>2]|=(128|code>>12&63)<<SHIFT[3&i++],blocks[i>>2]|=(128|code>>6&63)<<SHIFT[3&i++],blocks[i>>2]|=(128|63&code)<<SHIFT[3&i++]);this.lastByteIndex=i,this.bytes+=i-this.start,i>=64?(this.block=blocks[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var blocks=this.blocks,i=this.lastByteIndex;blocks[16]=this.block,blocks[i>>2]|=EXTRA[3&i],this.block=blocks[16],i>=56&&(this.hashed||this.hash(),blocks[0]=this.block,blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0),blocks[14]=this.hBytes<<3|this.bytes>>>29,blocks[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var j,s0,s1,maj,t1,ab,da,cd,bc,a=this.h0,b=this.h1,c=this.h2,d=this.h3,e=this.h4,f=this.h5,g=this.h6,h=this.h7,blocks=this.blocks;for(j=16;j<64;++j)s0=((t1=blocks[j-15])>>>7|t1<<25)^(t1>>>18|t1<<14)^t1>>>3,s1=((t1=blocks[j-2])>>>17|t1<<15)^(t1>>>19|t1<<13)^t1>>>10,blocks[j]=blocks[j-16]+s0+blocks[j-7]+s1<<0;for(bc=b&c,j=0;j<64;j+=4)this.first?(this.is224?(ab=300032,h=(t1=blocks[0]-1413257819)-150054599<<0,d=t1+24177077<<0):(ab=704751109,h=(t1=blocks[0]-210244248)-1521486534<<0,d=t1+143694565<<0),this.first=!1):(s0=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),maj=(ab=a&b)^a&c^bc,h=d+(t1=h+(s1=(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&f^~e&g)+K[j]+blocks[j])<<0,d=t1+(s0+maj)<<0),s0=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),maj=(da=d&a)^d&b^ab,g=c+(t1=g+(s1=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&e^~h&f)+K[j+1]+blocks[j+1])<<0,s0=((c=t1+(s0+maj)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),maj=(cd=c&d)^c&a^da,f=b+(t1=f+(s1=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&h^~g&e)+K[j+2]+blocks[j+2])<<0,s0=((b=t1+(s0+maj)<<0)>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10),maj=(bc=b&c)^b&d^cd,e=a+(t1=e+(s1=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&g^~f&h)+K[j+3]+blocks[j+3])<<0,a=t1+(s0+maj)<<0;this.h0=this.h0+a<<0,this.h1=this.h1+b<<0,this.h2=this.h2+c<<0,this.h3=this.h3+d<<0,this.h4=this.h4+e<<0,this.h5=this.h5+f<<0,this.h6=this.h6+g<<0,this.h7=this.h7+h<<0},Sha256.prototype.hex=function(){this.finalize();var h0=this.h0,h1=this.h1,h2=this.h2,h3=this.h3,h4=this.h4,h5=this.h5,h6=this.h6,h7=this.h7,hex=HEX_CHARS[h0>>28&15]+HEX_CHARS[h0>>24&15]+HEX_CHARS[h0>>20&15]+HEX_CHARS[h0>>16&15]+HEX_CHARS[h0>>12&15]+HEX_CHARS[h0>>8&15]+HEX_CHARS[h0>>4&15]+HEX_CHARS[15&h0]+HEX_CHARS[h1>>28&15]+HEX_CHARS[h1>>24&15]+HEX_CHARS[h1>>20&15]+HEX_CHARS[h1>>16&15]+HEX_CHARS[h1>>12&15]+HEX_CHARS[h1>>8&15]+HEX_CHARS[h1>>4&15]+HEX_CHARS[15&h1]+HEX_CHARS[h2>>28&15]+HEX_CHARS[h2>>24&15]+HEX_CHARS[h2>>20&15]+HEX_CHARS[h2>>16&15]+HEX_CHARS[h2>>12&15]+HEX_CHARS[h2>>8&15]+HEX_CHARS[h2>>4&15]+HEX_CHARS[15&h2]+HEX_CHARS[h3>>28&15]+HEX_CHARS[h3>>24&15]+HEX_CHARS[h3>>20&15]+HEX_CHARS[h3>>16&15]+HEX_CHARS[h3>>12&15]+HEX_CHARS[h3>>8&15]+HEX_CHARS[h3>>4&15]+HEX_CHARS[15&h3]+HEX_CHARS[h4>>28&15]+HEX_CHARS[h4>>24&15]+HEX_CHARS[h4>>20&15]+HEX_CHARS[h4>>16&15]+HEX_CHARS[h4>>12&15]+HEX_CHARS[h4>>8&15]+HEX_CHARS[h4>>4&15]+HEX_CHARS[15&h4]+HEX_CHARS[h5>>28&15]+HEX_CHARS[h5>>24&15]+HEX_CHARS[h5>>20&15]+HEX_CHARS[h5>>16&15]+HEX_CHARS[h5>>12&15]+HEX_CHARS[h5>>8&15]+HEX_CHARS[h5>>4&15]+HEX_CHARS[15&h5]+HEX_CHARS[h6>>28&15]+HEX_CHARS[h6>>24&15]+HEX_CHARS[h6>>20&15]+HEX_CHARS[h6>>16&15]+HEX_CHARS[h6>>12&15]+HEX_CHARS[h6>>8&15]+HEX_CHARS[h6>>4&15]+HEX_CHARS[15&h6];return this.is224||(hex+=HEX_CHARS[h7>>28&15]+HEX_CHARS[h7>>24&15]+HEX_CHARS[h7>>20&15]+HEX_CHARS[h7>>16&15]+HEX_CHARS[h7>>12&15]+HEX_CHARS[h7>>8&15]+HEX_CHARS[h7>>4&15]+HEX_CHARS[15&h7]),hex},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var h0=this.h0,h1=this.h1,h2=this.h2,h3=this.h3,h4=this.h4,h5=this.h5,h6=this.h6,h7=this.h7,arr=[h0>>24&255,h0>>16&255,h0>>8&255,255&h0,h1>>24&255,h1>>16&255,h1>>8&255,255&h1,h2>>24&255,h2>>16&255,h2>>8&255,255&h2,h3>>24&255,h3>>16&255,h3>>8&255,255&h3,h4>>24&255,h4>>16&255,h4>>8&255,255&h4,h5>>24&255,h5>>16&255,h5>>8&255,255&h5,h6>>24&255,h6>>16&255,h6>>8&255,255&h6];return this.is224||arr.push(h7>>24&255,h7>>16&255,h7>>8&255,255&h7),arr},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var buffer=new ArrayBuffer(this.is224?28:32),dataView=new DataView(buffer);return dataView.setUint32(0,this.h0),dataView.setUint32(4,this.h1),dataView.setUint32(8,this.h2),dataView.setUint32(12,this.h3),dataView.setUint32(16,this.h4),dataView.setUint32(20,this.h5),dataView.setUint32(24,this.h6),this.is224||dataView.setUint32(28,this.h7),buffer},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var innerHash=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(innerHash),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},"./node_modules/json-rpc-random-id/index.js":function(module){module.exports=function IdIterator(opts){var max=(opts=opts||{}).max||Number.MAX_SAFE_INTEGER,idCounter=void 0!==opts.start?opts.start:Math.floor(Math.random()*max);return function createRandomId(){return idCounter%=max,idCounter++}}},"./node_modules/preact/dist/preact.module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Component:function(){return d},Fragment:function(){return p},cloneElement:function(){return q},createContext:function(){return B},createElement:function(){return h},createRef:function(){return y},h:function(){return h},hydrate:function(){return S},isValidElement:function(){return i},options:function(){return l},render:function(){return P},toChildArray:function(){return x}});var n,l,u,i,t,o,r,f={},e=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(n,l){for(var u in l)n[u]=l[u];return n}function a(n){var l=n.parentNode;l&&l.removeChild(n)}function h(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return v(l,f,t,o,null)}function v(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u:r};return null==r&&null!=l.vnode&&l.vnode(f),f}function y(){return{current:null}}function p(n){return n.children}function d(n,l){this.props=n,this.context=l}function _(n,l){if(null==l)return n.__?_(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?_(n):null}function k(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return k(n)}}function b(n){(!n.__d&&(n.__d=!0)&&t.push(n)&&!g.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||setTimeout)(g)}function g(){for(var n;g.__r=t.length;)n=t.sort((function(n,l){return n.__v.__b-l.__v.__b})),t=[],n.some((function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=s({},t)).__v=t.__v+1,j(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?_(t):o,t.__h),z(u,t),t.__e!=o&&k(t)))}))}function w(n,l,u,i,t,o,r,c,s,a){var h,y,d,k,b,g,w,x=i&&i.__k||e,C=x.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v(null,k,null,null,k):Array.isArray(k)?v(p,{children:k},null,null,null):k.__b>0?v(k.type,k.props,k.key,k.ref?k.ref:null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(d=x[h])||d&&k.key==d.key&&k.type===d.type)x[h]=void 0;else for(y=0;y<C;y++){if((d=x[y])&&k.key==d.key&&k.type===d.type){x[y]=void 0;break}d=null}j(n,k,d=d||f,t,o,r,c,s,a),b=k.__e,(y=k.ref)&&d.ref!=y&&(w||(w=[]),d.ref&&w.push(d.ref,null,k),w.push(y,k.__c||b,k)),null!=b?(null==g&&(g=b),"function"==typeof k.type&&k.__k===d.__k?k.__d=s=m(k,s,n):s=A(n,k,d,x,b,s),"function"==typeof u.type&&(u.__d=s)):s&&d.__e==s&&s.parentNode!=n&&(s=_(d))}for(u.__e=g,h=C;h--;)null!=x[h]&&("function"==typeof u.type&&null!=x[h].__e&&x[h].__e==u.__d&&(u.__d=_(i,h+1)),N(x[h],x[h]));if(w)for(h=0;h<w.length;h++)M(w[h],w[++h],w[++h])}function m(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?m(i,l,u):A(u,i,i,t,i.__e,l));return l}function x(n,l){return l=l||[],null==n||"boolean"==typeof n||(Array.isArray(n)?n.some((function(n){x(n,l)})):l.push(n)),l}function A(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else{for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o}return void 0!==r?r:t.nextSibling}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||c.test(l)?u:u+"px"}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l))}}function I(n){this.l[n.type+!1](l.event?l.event(n):n)}function T(n){this.l[n.type+!0](l.event?l.event(n):n)}function j(n,u,i,t,o,r,f,e,c){var a,h,v,y,_,k,b,g,m,x,A,C,$,H=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=l.__b)&&a(u);try{n:if("function"==typeof H){if(g=u.props,m=(a=H.contextType)&&t[a.__c],x=a?m?m.props.value:a.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in H&&H.prototype.render?u.__c=h=new H(g,x):(u.__c=h=new d(g,x),h.constructor=H,h.render=O),m&&m.sub(h),h.props=g,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=s({},h.__s)),s(h.__s,H.getDerivedStateFromProps(g,h.__s))),y=h.props,_=h.state,v)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==H.getDerivedStateFromProps&&g!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(g,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(g,h.__s,x)||u.__v===i.__v){h.props=g,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach((function(n){n&&(n.__=u)})),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(g,h.__s,x),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(y,_,k)}))}if(h.context=x,h.props=g,h.__v=u,h.__P=n,A=l.__r,C=0,"prototype"in H&&H.prototype.render)h.state=h.__s,h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context);else do{h.__d=!1,A&&A(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++C<25);h.state=h.__s,null!=h.getChildContext&&(t=s(s({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),$=null!=a&&a.type===p&&null==a.key?a.props.children:a,w(n,Array.isArray($)?$:[$],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(a=l.diffed)&&a(u)}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l.__e(n,u,i)}}function z(n,u){l.__c&&l.__c(u,n),n.some((function(u){try{n=u.__h,u.__h=[],n.some((function(n){n.call(u)}))}catch(n){l.__e(n,u.__v)}}))}function L(l,u,i,t,o,r,e,c){var s,h,v,y=i.props,p=u.props,d=u.type,k=0;if("svg"===d&&(o=!0),null!=r)for(;k<r.length;k++)if((s=r[k])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[k]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1}if(null===d)y===p||c&&l.data===p||(l.data=p);else{if(r=r&&n.call(l.childNodes),h=(y=i.props||f).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},k=0;k<l.attributes.length;k++)y[l.attributes[k].name]=l.attributes[k].value;(v||h)&&(v&&(h&&v.__html==h.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""))}if(function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i)}(l,p,y,o,c),v)u.__k=[];else if(k=u.props.children,w(l,Array.isArray(k)?k:[k],u,i,t,o&&"foreignObject"!==d,r,e,r?r[0]:i.__k&&_(i,0),c),null!=r)for(k=r.length;k--;)null!=r[k]&&a(r[k]);c||("value"in p&&void 0!==(k=p.value)&&(k!==l.value||"progress"===d&&!k||"option"===d&&k!==y.value)&&H(l,"value",k,y.value,!1),"checked"in p&&void 0!==(k=p.checked)&&k!==l.checked&&H(l,"checked",k,y.checked,!1))}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,i)}}function N(n,u,i){var t,o;if(l.unmount&&l.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount()}catch(n){l.__e(n,u)}t.base=t.__P=null,n.__c=void 0}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||a(n.__e),n.__=n.__e=n.__d=void 0}function O(n,l,u){return this.constructor(n,u)}function P(u,i,t){var o,r,e;l.__&&l.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,e=[],j(i,u=(!o&&t||i).__k=h(p,null,[u]),r||f,f,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,e,!o&&t?t:r?r.__e:i.firstChild,o),z(e,u)}function S(n,l){P(n,l,S)}function q(l,u,i){var t,o,r,f=s({},l.props);for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),v(l.type,f,t||l.key,o||l.ref,null)}function B(n,l){var u={__c:l="__cC"+r++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(b)},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=e.slice,l={__e:function(n,l,u,i){for(var t,o,r;l=l.__;)if((t=l.__c)&&!t.__)try{if((o=t.constructor)&&null!=o.getDerivedStateFromError&&(t.setState(o.getDerivedStateFromError(n)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n,i||{}),r=t.__d),r)return t.__E=t}catch(l){n=l}throw n}},u=0,i=function(n){return null!=n&&void 0===n.constructor},d.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof n&&(n=n(s({},u),this.props)),n&&s(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),b(this))},d.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),b(this))},d.prototype.render=p,t=[],g.__r=0,r=0},"./node_modules/preact/hooks/dist/hooks.module.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{useCallback:function(){return q},useContext:function(){return x},useDebugValue:function(){return P},useEffect:function(){return s},useErrorBoundary:function(){return V},useId:function(){return b},useImperativeHandle:function(){return F},useLayoutEffect:function(){return _},useMemo:function(){return T},useReducer:function(){return h},useRef:function(){return A},useState:function(){return y}});var r,u,i,o,preact__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/preact/dist/preact.module.js"),f=0,c=[],e=[],a=preact__WEBPACK_IMPORTED_MODULE_0__.options.__b,v=preact__WEBPACK_IMPORTED_MODULE_0__.options.__r,l=preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed,m=preact__WEBPACK_IMPORTED_MODULE_0__.options.__c,d=preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount;function p(t,r){preact__WEBPACK_IMPORTED_MODULE_0__.options.__h&&preact__WEBPACK_IMPORTED_MODULE_0__.options.__h(u,t,f||r),f=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({__V:e}),i.__[t]}function y(n){return f=1,h(C,n)}function h(n,t,i){var o=p(r++,2);if(o.t=n,!o.__c&&(o.__=[i?i(t):C(void 0,t),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=u,!u.u)){u.u=!0;var f=u.shouldComponentUpdate;u.shouldComponentUpdate=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter((function(n){return n.__c}));if(u.every((function(n){return!n.__N})))return!f||f.call(this,n,t,r);var i=!1;return u.forEach((function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}})),!!i&&(!f||f.call(this,n,t,r))}}return o.__N||o.__}function s(t,i){var o=p(r++,3);!preact__WEBPACK_IMPORTED_MODULE_0__.options.__s&&B(o.__H,i)&&(o.__=t,o.i=i,u.__H.__h.push(o))}function _(t,i){var o=p(r++,4);!preact__WEBPACK_IMPORTED_MODULE_0__.options.__s&&B(o.__H,i)&&(o.__=t,o.i=i,u.__h.push(o))}function A(n){return f=5,T((function(){return{current:n}}),[])}function F(n,t,r){f=6,_((function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0}),null==r?r:r.concat(n))}function T(n,t){var u=p(r++,7);return B(u.__H,t)?(u.__V=n(),u.i=t,u.__h=n,u.__V):u.__}function q(n,t){return f=8,T((function(){return n}),t)}function x(n){var t=u.context[n.__c],i=p(r++,9);return i.c=n,t?(null==i.__&&(i.__=!0,t.sub(u)),t.props.value):n.__}function P(t,r){preact__WEBPACK_IMPORTED_MODULE_0__.options.useDebugValue&&preact__WEBPACK_IMPORTED_MODULE_0__.options.useDebugValue(r?r(t):t)}function V(n){var t=p(r++,10),i=y();return t.__=n,u.componentDidCatch||(u.componentDidCatch=function(n,r){t.__&&t.__(n,r),i[1](n)}),[i[0],function(){i[1](void 0)}]}function b(){var n=p(r++,11);return n.__||(n.__="P"+function(n){for(var t=0,r=n.length;r>0;)t=(t<<5)-t+n.charCodeAt(--r)|0;return t}(u.__v.o)+r),n.__}function g(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(w),t.__H.__h.forEach(z),t.__H.__h=[]}catch(r){t.__H.__h=[],preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(r,t.__v)}}preact__WEBPACK_IMPORTED_MODULE_0__.options.__b=function(n){"function"!=typeof n.type||n.o||n.type===preact__WEBPACK_IMPORTED_MODULE_0__.Fragment?n.o||(n.o=n.__&&n.__.o?n.__.o:""):n.o=(n.__&&n.__.o?n.__.o:"")+(n.__&&n.__.__k?n.__.__k.indexOf(n):0),u=null,a&&a(n)},preact__WEBPACK_IMPORTED_MODULE_0__.options.__r=function(n){v&&v(n),r=0;var t=(u=n.__c).__H;t&&(i===u?(t.__h=[],u.__h=[],t.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=e,n.__N=n.i=void 0}))):(t.__h.forEach(w),t.__h.forEach(z),t.__h=[])),i=u},preact__WEBPACK_IMPORTED_MODULE_0__.options.diffed=function(t){l&&l(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==c.push(r)&&o===preact__WEBPACK_IMPORTED_MODULE_0__.options.requestAnimationFrame||((o=preact__WEBPACK_IMPORTED_MODULE_0__.options.requestAnimationFrame)||k)(g)),r.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==e&&(n.__=n.__V),n.i=void 0,n.__V=e}))),i=u=null},preact__WEBPACK_IMPORTED_MODULE_0__.options.__c=function(t,r){r.some((function(t){try{t.__h.forEach(w),t.__h=t.__h.filter((function(n){return!n.__||z(n)}))}catch(u){r.some((function(n){n.__h&&(n.__h=[])})),r=[],preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(u,t.__v)}})),m&&m(t,r)},preact__WEBPACK_IMPORTED_MODULE_0__.options.unmount=function(t){d&&d(t);var r,u=t.__c;u&&u.__H&&(u.__H.__.forEach((function(n){try{w(n)}catch(n){r=n}})),u.__H=void 0,r&&preact__WEBPACK_IMPORTED_MODULE_0__.options.__e(r,u.__v))};var j="function"==typeof requestAnimationFrame;function k(n){var t,r=function(){clearTimeout(u),j&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);j&&(t=requestAnimationFrame(r))}function w(n){var t=u,r=n.__c;"function"==typeof r&&(n.__c=void 0,r()),u=t}function z(n){var t=u;n.__c=n.__(),u=t}function B(n,t){return!n||n.length!==t.length||t.some((function(t,r){return t!==n[r]}))}function C(n,t){return"function"==typeof t?t(n):t}},"./node_modules/rxjs/_esm5/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ArgumentOutOfRangeError:function(){return ArgumentOutOfRangeError.W},AsyncSubject:function(){return AsyncSubject.c},BehaviorSubject:function(){return BehaviorSubject.X},ConnectableObservable:function(){return ConnectableObservable.c},EMPTY:function(){return empty.E},EmptyError:function(){return EmptyError.K},GroupedObservable:function(){return groupBy.T},NEVER:function(){return NEVER},Notification:function(){return Notification.P},NotificationKind:function(){return Notification.W},ObjectUnsubscribedError:function(){return ObjectUnsubscribedError.N},Observable:function(){return Observable.y},ReplaySubject:function(){return ReplaySubject.t},Scheduler:function(){return Scheduler.b},Subject:function(){return Subject.xQ},Subscriber:function(){return Subscriber.L},Subscription:function(){return Subscription.w},TimeoutError:function(){return TimeoutError.W},UnsubscriptionError:function(){return UnsubscriptionError.B},VirtualAction:function(){return VirtualAction},VirtualTimeScheduler:function(){return VirtualTimeScheduler},animationFrame:function(){return animationFrame},animationFrameScheduler:function(){return animationFrameScheduler},asap:function(){return asap.e},asapScheduler:function(){return asap.E},async:function(){return scheduler_async.P},asyncScheduler:function(){return scheduler_async.z},bindCallback:function(){return bindCallback},bindNodeCallback:function(){return bindNodeCallback},combineLatest:function(){return combineLatest.aj},concat:function(){return concat.z},config:function(){return config.v},defer:function(){return defer.P},empty:function(){return empty.c},forkJoin:function(){return forkJoin},from:function(){return from.D},fromEvent:function(){return fromEvent},fromEventPattern:function(){return fromEventPattern},generate:function(){return generate},identity:function(){return identity.y},iif:function(){return iif},interval:function(){return interval},isObservable:function(){return isObservable},merge:function(){return merge.T},never:function(){return never},noop:function(){return noop.Z},observable:function(){return observable.L},of:function(){return of.of},onErrorResumeNext:function(){return onErrorResumeNext},pairs:function(){return pairs},partition:function(){return partition},pipe:function(){return pipe.z},queue:function(){return queue.c},queueScheduler:function(){return queue.N},race:function(){return race.S3},range:function(){return range},scheduled:function(){return scheduled.x},throwError:function(){return throwError._},timer:function(){return timer.H},using:function(){return using},zip:function(){return zip.$R}});var Observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),ConnectableObservable=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js"),groupBy=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/groupBy.js"),observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/observable.js"),Subject=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subject.js"),BehaviorSubject=__webpack_require__("./node_modules/rxjs/_esm5/internal/BehaviorSubject.js"),ReplaySubject=__webpack_require__("./node_modules/rxjs/_esm5/internal/ReplaySubject.js"),AsyncSubject=__webpack_require__("./node_modules/rxjs/_esm5/internal/AsyncSubject.js"),asap=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/asap.js"),scheduler_async=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/async.js"),queue=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/queue.js"),tslib_es6=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),AsyncAction=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js"),AnimationFrameAction=function(_super){function AnimationFrameAction(scheduler,work){var _this=_super.call(this,scheduler,work)||this;return _this.scheduler=scheduler,_this.work=work,_this}return tslib_es6.ZT(AnimationFrameAction,_super),AnimationFrameAction.prototype.requestAsyncId=function(scheduler,id,delay){return void 0===delay&&(delay=0),null!==delay&&delay>0?_super.prototype.requestAsyncId.call(this,scheduler,id,delay):(scheduler.actions.push(this),scheduler.scheduled||(scheduler.scheduled=requestAnimationFrame((function(){return scheduler.flush(null)}))))},AnimationFrameAction.prototype.recycleAsyncId=function(scheduler,id,delay){if(void 0===delay&&(delay=0),null!==delay&&delay>0||null===delay&&this.delay>0)return _super.prototype.recycleAsyncId.call(this,scheduler,id,delay);0===scheduler.actions.length&&(cancelAnimationFrame(id),scheduler.scheduled=void 0)},AnimationFrameAction}(AsyncAction.o),AsyncScheduler=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js"),AnimationFrameScheduler=function(_super){function AnimationFrameScheduler(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_es6.ZT(AnimationFrameScheduler,_super),AnimationFrameScheduler.prototype.flush=function(action){this.active=!0,this.scheduled=void 0;var error,actions=this.actions,index=-1,count=actions.length;action=action||actions.shift();do{if(error=action.execute(action.state,action.delay))break}while(++index<count&&(action=actions.shift()));if(this.active=!1,error){for(;++index<count&&(action=actions.shift());)action.unsubscribe();throw error}},AnimationFrameScheduler}(AsyncScheduler.v),animationFrameScheduler=new AnimationFrameScheduler(AnimationFrameAction),animationFrame=animationFrameScheduler,VirtualTimeScheduler=function(_super){function VirtualTimeScheduler(SchedulerAction,maxFrames){void 0===SchedulerAction&&(SchedulerAction=VirtualAction),void 0===maxFrames&&(maxFrames=Number.POSITIVE_INFINITY);var _this=_super.call(this,SchedulerAction,(function(){return _this.frame}))||this;return _this.maxFrames=maxFrames,_this.frame=0,_this.index=-1,_this}return tslib_es6.ZT(VirtualTimeScheduler,_super),VirtualTimeScheduler.prototype.flush=function(){for(var error,action,actions=this.actions,maxFrames=this.maxFrames;(action=actions[0])&&action.delay<=maxFrames&&(actions.shift(),this.frame=action.delay,!(error=action.execute(action.state,action.delay))););if(error){for(;action=actions.shift();)action.unsubscribe();throw error}},VirtualTimeScheduler.frameTimeFactor=10,VirtualTimeScheduler}(AsyncScheduler.v),VirtualAction=function(_super){function VirtualAction(scheduler,work,index){void 0===index&&(index=scheduler.index+=1);var _this=_super.call(this,scheduler,work)||this;return _this.scheduler=scheduler,_this.work=work,_this.index=index,_this.active=!0,_this.index=scheduler.index=index,_this}return tslib_es6.ZT(VirtualAction,_super),VirtualAction.prototype.schedule=function(state,delay){if(void 0===delay&&(delay=0),!this.id)return _super.prototype.schedule.call(this,state,delay);this.active=!1;var action=new VirtualAction(this.scheduler,this.work);return this.add(action),action.schedule(state,delay)},VirtualAction.prototype.requestAsyncId=function(scheduler,id,delay){void 0===delay&&(delay=0),this.delay=scheduler.frame+delay;var actions=scheduler.actions;return actions.push(this),actions.sort(VirtualAction.sortActions),!0},VirtualAction.prototype.recycleAsyncId=function(scheduler,id,delay){void 0===delay&&(delay=0)},VirtualAction.prototype._execute=function(state,delay){if(!0===this.active)return _super.prototype._execute.call(this,state,delay)},VirtualAction.sortActions=function(a,b){return a.delay===b.delay?a.index===b.index?0:a.index>b.index?1:-1:a.delay>b.delay?1:-1},VirtualAction}(AsyncAction.o),Scheduler=__webpack_require__("./node_modules/rxjs/_esm5/internal/Scheduler.js"),Subscription=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),Subscriber=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),Notification=__webpack_require__("./node_modules/rxjs/_esm5/internal/Notification.js"),pipe=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/pipe.js"),noop=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/noop.js"),identity=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/identity.js");function isObservable(obj){return!!obj&&(obj instanceof Observable.y||"function"==typeof obj.lift&&"function"==typeof obj.subscribe)}var ArgumentOutOfRangeError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js"),EmptyError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/EmptyError.js"),ObjectUnsubscribedError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js"),UnsubscriptionError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js"),TimeoutError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/TimeoutError.js"),map=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/map.js"),canReportError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/canReportError.js"),isArray=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArray.js"),isScheduler=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isScheduler.js");function bindCallback(callbackFunc,resultSelector,scheduler){if(resultSelector){if(!(0,isScheduler.K)(resultSelector))return function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return bindCallback(callbackFunc,scheduler).apply(void 0,args).pipe((0,map.U)((function(args){return(0,isArray.k)(args)?resultSelector.apply(void 0,args):resultSelector(args)})))};scheduler=resultSelector}return function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var subject,context=this,params={context:context,subject:subject,callbackFunc:callbackFunc,scheduler:scheduler};return new Observable.y((function(subscriber){if(scheduler){var state={args:args,subscriber:subscriber,params:params};return scheduler.schedule(dispatch,0,state)}if(!subject){subject=new AsyncSubject.c;try{callbackFunc.apply(context,args.concat([function(){for(var innerArgs=[],_i=0;_i<arguments.length;_i++)innerArgs[_i]=arguments[_i];subject.next(innerArgs.length<=1?innerArgs[0]:innerArgs),subject.complete()}]))}catch(err){(0,canReportError._)(subject)?subject.error(err):console.warn(err)}}return subject.subscribe(subscriber)}))}}function dispatch(state){var _this=this,args=state.args,subscriber=state.subscriber,params=state.params,callbackFunc=params.callbackFunc,context=params.context,scheduler=params.scheduler,subject=params.subject;if(!subject){subject=params.subject=new AsyncSubject.c;try{callbackFunc.apply(context,args.concat([function(){for(var innerArgs=[],_i=0;_i<arguments.length;_i++)innerArgs[_i]=arguments[_i];var value=innerArgs.length<=1?innerArgs[0]:innerArgs;_this.add(scheduler.schedule(dispatchNext,0,{value:value,subject:subject}))}]))}catch(err){subject.error(err)}}this.add(subject.subscribe(subscriber))}function dispatchNext(state){var value=state.value,subject=state.subject;subject.next(value),subject.complete()}function bindNodeCallback(callbackFunc,resultSelector,scheduler){if(resultSelector){if(!(0,isScheduler.K)(resultSelector))return function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return bindNodeCallback(callbackFunc,scheduler).apply(void 0,args).pipe((0,map.U)((function(args){return(0,isArray.k)(args)?resultSelector.apply(void 0,args):resultSelector(args)})))};scheduler=resultSelector}return function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var params={subject:void 0,args:args,callbackFunc:callbackFunc,scheduler:scheduler,context:this};return new Observable.y((function(subscriber){var context=params.context,subject=params.subject;if(scheduler)return scheduler.schedule(bindNodeCallback_dispatch,0,{params:params,subscriber:subscriber,context:context});if(!subject){subject=params.subject=new AsyncSubject.c;try{callbackFunc.apply(context,args.concat([function(){for(var innerArgs=[],_i=0;_i<arguments.length;_i++)innerArgs[_i]=arguments[_i];var err=innerArgs.shift();err?subject.error(err):(subject.next(innerArgs.length<=1?innerArgs[0]:innerArgs),subject.complete())}]))}catch(err){(0,canReportError._)(subject)?subject.error(err):console.warn(err)}}return subject.subscribe(subscriber)}))}}function bindNodeCallback_dispatch(state){var _this=this,params=state.params,subscriber=state.subscriber,context=state.context,callbackFunc=params.callbackFunc,args=params.args,scheduler=params.scheduler,subject=params.subject;if(!subject){subject=params.subject=new AsyncSubject.c;try{callbackFunc.apply(context,args.concat([function(){for(var innerArgs=[],_i=0;_i<arguments.length;_i++)innerArgs[_i]=arguments[_i];var err=innerArgs.shift();if(err)_this.add(scheduler.schedule(bindNodeCallback_dispatchError,0,{err:err,subject:subject}));else{var value=innerArgs.length<=1?innerArgs[0]:innerArgs;_this.add(scheduler.schedule(bindNodeCallback_dispatchNext,0,{value:value,subject:subject}))}}]))}catch(err){this.add(scheduler.schedule(bindNodeCallback_dispatchError,0,{err:err,subject:subject}))}}this.add(subject.subscribe(subscriber))}function bindNodeCallback_dispatchNext(arg){var value=arg.value,subject=arg.subject;subject.next(value),subject.complete()}function bindNodeCallback_dispatchError(arg){var err=arg.err;arg.subject.error(err)}var combineLatest=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/combineLatest.js"),concat=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/concat.js"),defer=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/defer.js"),empty=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/empty.js"),isObject=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isObject.js"),from=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/from.js");function forkJoin(){for(var sources=[],_i=0;_i<arguments.length;_i++)sources[_i]=arguments[_i];if(1===sources.length){var first_1=sources[0];if((0,isArray.k)(first_1))return forkJoinInternal(first_1,null);if((0,isObject.K)(first_1)&&Object.getPrototypeOf(first_1)===Object.prototype){var keys=Object.keys(first_1);return forkJoinInternal(keys.map((function(key){return first_1[key]})),keys)}}if("function"==typeof sources[sources.length-1]){var resultSelector_1=sources.pop();return forkJoinInternal(sources=1===sources.length&&(0,isArray.k)(sources[0])?sources[0]:sources,null).pipe((0,map.U)((function(args){return resultSelector_1.apply(void 0,args)})))}return forkJoinInternal(sources,null)}function forkJoinInternal(sources,keys){return new Observable.y((function(subscriber){var len=sources.length;if(0!==len)for(var values=new Array(len),completed=0,emitted=0,_loop_1=function(i){var source=(0,from.D)(sources[i]),hasValue=!1;subscriber.add(source.subscribe({next:function(value){hasValue||(hasValue=!0,emitted++),values[i]=value},error:function(err){return subscriber.error(err)},complete:function(){++completed!==len&&hasValue||(emitted===len&&subscriber.next(keys?keys.reduce((function(result,key,i){return result[key]=values[i],result}),{}):values),subscriber.complete())}}))},i=0;i<len;i++)_loop_1(i);else subscriber.complete()}))}var isFunction=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isFunction.js");function fromEvent(target,eventName,options,resultSelector){return(0,isFunction.m)(options)&&(resultSelector=options,options=void 0),resultSelector?fromEvent(target,eventName,options).pipe((0,map.U)((function(args){return(0,isArray.k)(args)?resultSelector.apply(void 0,args):resultSelector(args)}))):new Observable.y((function(subscriber){setupSubscription(target,eventName,(function handler(e){arguments.length>1?subscriber.next(Array.prototype.slice.call(arguments)):subscriber.next(e)}),subscriber,options)}))}function setupSubscription(sourceObj,eventName,handler,subscriber,options){var unsubscribe;if(function isEventTarget(sourceObj){return sourceObj&&"function"==typeof sourceObj.addEventListener&&"function"==typeof sourceObj.removeEventListener}(sourceObj)){var source_1=sourceObj;sourceObj.addEventListener(eventName,handler,options),unsubscribe=function(){return source_1.removeEventListener(eventName,handler,options)}}else if(function isJQueryStyleEventEmitter(sourceObj){return sourceObj&&"function"==typeof sourceObj.on&&"function"==typeof sourceObj.off}(sourceObj)){var source_2=sourceObj;sourceObj.on(eventName,handler),unsubscribe=function(){return source_2.off(eventName,handler)}}else if(function isNodeStyleEventEmitter(sourceObj){return sourceObj&&"function"==typeof sourceObj.addListener&&"function"==typeof sourceObj.removeListener}(sourceObj)){var source_3=sourceObj;sourceObj.addListener(eventName,handler),unsubscribe=function(){return source_3.removeListener(eventName,handler)}}else{if(!sourceObj||!sourceObj.length)throw new TypeError("Invalid event target");for(var i=0,len=sourceObj.length;i<len;i++)setupSubscription(sourceObj[i],eventName,handler,subscriber,options)}subscriber.add(unsubscribe)}function fromEventPattern(addHandler,removeHandler,resultSelector){return resultSelector?fromEventPattern(addHandler,removeHandler).pipe((0,map.U)((function(args){return(0,isArray.k)(args)?resultSelector.apply(void 0,args):resultSelector(args)}))):new Observable.y((function(subscriber){var retValue,handler=function(){for(var e=[],_i=0;_i<arguments.length;_i++)e[_i]=arguments[_i];return subscriber.next(1===e.length?e[0]:e)};try{retValue=addHandler(handler)}catch(err){return void subscriber.error(err)}if((0,isFunction.m)(removeHandler))return function(){return removeHandler(handler,retValue)}}))}function generate(initialStateOrOptions,condition,iterate,resultSelectorOrObservable,scheduler){var resultSelector,initialState;if(1==arguments.length){var options=initialStateOrOptions;initialState=options.initialState,condition=options.condition,iterate=options.iterate,resultSelector=options.resultSelector||identity.y,scheduler=options.scheduler}else void 0===resultSelectorOrObservable||(0,isScheduler.K)(resultSelectorOrObservable)?(initialState=initialStateOrOptions,resultSelector=identity.y,scheduler=resultSelectorOrObservable):(initialState=initialStateOrOptions,resultSelector=resultSelectorOrObservable);return new Observable.y((function(subscriber){var state=initialState;if(scheduler)return scheduler.schedule(generate_dispatch,0,{subscriber:subscriber,iterate:iterate,condition:condition,resultSelector:resultSelector,state:state});for(;;){if(condition){var conditionResult=void 0;try{conditionResult=condition(state)}catch(err){return void subscriber.error(err)}if(!conditionResult){subscriber.complete();break}}var value=void 0;try{value=resultSelector(state)}catch(err){return void subscriber.error(err)}if(subscriber.next(value),subscriber.closed)break;try{state=iterate(state)}catch(err){return void subscriber.error(err)}}}))}function generate_dispatch(state){var subscriber=state.subscriber,condition=state.condition;if(!subscriber.closed){if(state.needIterate)try{state.state=state.iterate(state.state)}catch(err){return void subscriber.error(err)}else state.needIterate=!0;if(condition){var conditionResult=void 0;try{conditionResult=condition(state.state)}catch(err){return void subscriber.error(err)}if(!conditionResult)return void subscriber.complete();if(subscriber.closed)return}var value;try{value=state.resultSelector(state.state)}catch(err){return void subscriber.error(err)}if(!subscriber.closed&&(subscriber.next(value),!subscriber.closed))return this.schedule(state)}}function iif(condition,trueResult,falseResult){return void 0===trueResult&&(trueResult=empty.E),void 0===falseResult&&(falseResult=empty.E),(0,defer.P)((function(){return condition()?trueResult:falseResult}))}var isNumeric=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isNumeric.js");function interval(period,scheduler){return void 0===period&&(period=0),void 0===scheduler&&(scheduler=scheduler_async.P),(!(0,isNumeric.k)(period)||period<0)&&(period=0),scheduler&&"function"==typeof scheduler.schedule||(scheduler=scheduler_async.P),new Observable.y((function(subscriber){return subscriber.add(scheduler.schedule(interval_dispatch,period,{subscriber:subscriber,counter:0,period:period})),subscriber}))}function interval_dispatch(state){var subscriber=state.subscriber,counter=state.counter,period=state.period;subscriber.next(counter),this.schedule({subscriber:subscriber,counter:counter+1,period:period},period)}var merge=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/merge.js"),NEVER=new Observable.y(noop.Z);function never(){return NEVER}var of=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/of.js");function onErrorResumeNext(){for(var sources=[],_i=0;_i<arguments.length;_i++)sources[_i]=arguments[_i];if(0===sources.length)return empty.E;var first=sources[0],remainder=sources.slice(1);return 1===sources.length&&(0,isArray.k)(first)?onErrorResumeNext.apply(void 0,first):new Observable.y((function(subscriber){var subNext=function(){return subscriber.add(onErrorResumeNext.apply(void 0,remainder).subscribe(subscriber))};return(0,from.D)(first).subscribe({next:function(value){subscriber.next(value)},error:subNext,complete:subNext})}))}function pairs(obj,scheduler){return scheduler?new Observable.y((function(subscriber){var keys=Object.keys(obj),subscription=new Subscription.w;return subscription.add(scheduler.schedule(pairs_dispatch,0,{keys:keys,index:0,subscriber:subscriber,subscription:subscription,obj:obj})),subscription})):new Observable.y((function(subscriber){for(var keys=Object.keys(obj),i=0;i<keys.length&&!subscriber.closed;i++){var key=keys[i];obj.hasOwnProperty(key)&&subscriber.next([key,obj[key]])}subscriber.complete()}))}function pairs_dispatch(state){var keys=state.keys,index=state.index,subscriber=state.subscriber,subscription=state.subscription,obj=state.obj;if(!subscriber.closed)if(index<keys.length){var key=keys[index];subscriber.next([key,obj[key]]),subscription.add(this.schedule({keys:keys,index:index+1,subscriber:subscriber,subscription:subscription,obj:obj}))}else subscriber.complete()}var not=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/not.js"),subscribeTo=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeTo.js"),filter=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/filter.js");function partition(source,predicate,thisArg){return[(0,filter.h)(predicate,thisArg)(new Observable.y((0,subscribeTo.s)(source))),(0,filter.h)((0,not.f)(predicate,thisArg))(new Observable.y((0,subscribeTo.s)(source)))]}var race=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/race.js");function range(start,count,scheduler){return void 0===start&&(start=0),new Observable.y((function(subscriber){void 0===count&&(count=start,start=0);var index=0,current=start;if(scheduler)return scheduler.schedule(range_dispatch,0,{index:index,count:count,start:start,subscriber:subscriber});for(;;){if(index++>=count){subscriber.complete();break}if(subscriber.next(current++),subscriber.closed)break}}))}function range_dispatch(state){var start=state.start,index=state.index,count=state.count,subscriber=state.subscriber;index>=count?subscriber.complete():(subscriber.next(start),subscriber.closed||(state.index=index+1,state.start=start+1,this.schedule(state)))}var throwError=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/throwError.js"),timer=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/timer.js");function using(resourceFactory,observableFactory){return new Observable.y((function(subscriber){var resource,result;try{resource=resourceFactory()}catch(err){return void subscriber.error(err)}try{result=observableFactory(resource)}catch(err){return void subscriber.error(err)}var subscription=(result?(0,from.D)(result):empty.E).subscribe(subscriber);return function(){subscription.unsubscribe(),resource&&resource.unsubscribe()}}))}var zip=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/zip.js"),scheduled=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduled/scheduled.js"),config=__webpack_require__("./node_modules/rxjs/_esm5/internal/config.js")},"./node_modules/rxjs/_esm5/internal/AsyncSubject.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return AsyncSubject}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subject__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subject.js"),_Subscription__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),AsyncSubject=function(_super){function AsyncSubject(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.value=null,_this.hasNext=!1,_this.hasCompleted=!1,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(AsyncSubject,_super),AsyncSubject.prototype._subscribe=function(subscriber){return this.hasError?(subscriber.error(this.thrownError),_Subscription__WEBPACK_IMPORTED_MODULE_1__.w.EMPTY):this.hasCompleted&&this.hasNext?(subscriber.next(this.value),subscriber.complete(),_Subscription__WEBPACK_IMPORTED_MODULE_1__.w.EMPTY):_super.prototype._subscribe.call(this,subscriber)},AsyncSubject.prototype.next=function(value){this.hasCompleted||(this.value=value,this.hasNext=!0)},AsyncSubject.prototype.error=function(error){this.hasCompleted||_super.prototype.error.call(this,error)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&_super.prototype.next.call(this,this.value),_super.prototype.complete.call(this)},AsyncSubject}(_Subject__WEBPACK_IMPORTED_MODULE_2__.xQ)},"./node_modules/rxjs/_esm5/internal/BehaviorSubject.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{X:function(){return BehaviorSubject}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subject__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subject.js"),_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js"),BehaviorSubject=function(_super){function BehaviorSubject(_value){var _this=_super.call(this)||this;return _this._value=_value,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(BehaviorSubject,_super),Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),BehaviorSubject.prototype._subscribe=function(subscriber){var subscription=_super.prototype._subscribe.call(this,subscriber);return subscription&&!subscription.closed&&subscriber.next(this._value),subscription},BehaviorSubject.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__.N;return this._value},BehaviorSubject.prototype.next=function(value){_super.prototype.next.call(this,this._value=value)},BehaviorSubject}(_Subject__WEBPACK_IMPORTED_MODULE_2__.xQ)},"./node_modules/rxjs/_esm5/internal/Notification.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return Notification},W:function(){return NotificationKind}});var NotificationKind,_observable_empty__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/empty.js"),_observable_of__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/of.js"),_observable_throwError__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/throwError.js");NotificationKind||(NotificationKind={});var Notification=function(){function Notification(kind,value,error){this.kind=kind,this.value=value,this.error=error,this.hasValue="N"===kind}return Notification.prototype.observe=function(observer){switch(this.kind){case"N":return observer.next&&observer.next(this.value);case"E":return observer.error&&observer.error(this.error);case"C":return observer.complete&&observer.complete()}},Notification.prototype.do=function(next,error,complete){switch(this.kind){case"N":return next&&next(this.value);case"E":return error&&error(this.error);case"C":return complete&&complete()}},Notification.prototype.accept=function(nextOrObserver,error,complete){return nextOrObserver&&"function"==typeof nextOrObserver.next?this.observe(nextOrObserver):this.do(nextOrObserver,error,complete)},Notification.prototype.toObservable=function(){switch(this.kind){case"N":return(0,_observable_of__WEBPACK_IMPORTED_MODULE_0__.of)(this.value);case"E":return(0,_observable_throwError__WEBPACK_IMPORTED_MODULE_1__._)(this.error);case"C":return(0,_observable_empty__WEBPACK_IMPORTED_MODULE_2__.c)()}throw new Error("unexpected notification kind value")},Notification.createNext=function(value){return void 0!==value?new Notification("N",value):Notification.undefinedValueNotification},Notification.createError=function(err){return new Notification("E",void 0,err)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",void 0),Notification}()},"./node_modules/rxjs/_esm5/internal/Observable.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{y:function(){return Observable}});var canReportError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/canReportError.js"),Subscriber=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),rxSubscriber=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js"),Observer=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observer.js");var observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/observable.js"),pipe=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/pipe.js"),config=__webpack_require__("./node_modules/rxjs/_esm5/internal/config.js"),Observable=function(){function Observable(subscribe){this._isScalar=!1,subscribe&&(this._subscribe=subscribe)}return Observable.prototype.lift=function(operator){var observable=new Observable;return observable.source=this,observable.operator=operator,observable},Observable.prototype.subscribe=function(observerOrNext,error,complete){var operator=this.operator,sink=function toSubscriber(nextOrObserver,error,complete){if(nextOrObserver){if(nextOrObserver instanceof Subscriber.L)return nextOrObserver;if(nextOrObserver[rxSubscriber.b])return nextOrObserver[rxSubscriber.b]()}return nextOrObserver||error||complete?new Subscriber.L(nextOrObserver,error,complete):new Subscriber.L(Observer.c)}(observerOrNext,error,complete);if(operator?sink.add(operator.call(sink,this.source)):sink.add(this.source||config.v.useDeprecatedSynchronousErrorHandling&&!sink.syncErrorThrowable?this._subscribe(sink):this._trySubscribe(sink)),config.v.useDeprecatedSynchronousErrorHandling&&sink.syncErrorThrowable&&(sink.syncErrorThrowable=!1,sink.syncErrorThrown))throw sink.syncErrorValue;return sink},Observable.prototype._trySubscribe=function(sink){try{return this._subscribe(sink)}catch(err){config.v.useDeprecatedSynchronousErrorHandling&&(sink.syncErrorThrown=!0,sink.syncErrorValue=err),(0,canReportError._)(sink)?sink.error(err):console.warn(err)}},Observable.prototype.forEach=function(next,promiseCtor){var _this=this;return new(promiseCtor=getPromiseCtor(promiseCtor))((function(resolve,reject){var subscription;subscription=_this.subscribe((function(value){try{next(value)}catch(err){reject(err),subscription&&subscription.unsubscribe()}}),reject,resolve)}))},Observable.prototype._subscribe=function(subscriber){var source=this.source;return source&&source.subscribe(subscriber)},Observable.prototype[observable.L]=function(){return this},Observable.prototype.pipe=function(){for(var operations=[],_i=0;_i<arguments.length;_i++)operations[_i]=arguments[_i];return 0===operations.length?this:(0,pipe.U)(operations)(this)},Observable.prototype.toPromise=function(promiseCtor){var _this=this;return new(promiseCtor=getPromiseCtor(promiseCtor))((function(resolve,reject){var value;_this.subscribe((function(x){return value=x}),(function(err){return reject(err)}),(function(){return resolve(value)}))}))},Observable.create=function(subscribe){return new Observable(subscribe)},Observable}();function getPromiseCtor(promiseCtor){if(promiseCtor||(promiseCtor=config.v.Promise||Promise),!promiseCtor)throw new Error("no Promise impl found");return promiseCtor}},"./node_modules/rxjs/_esm5/internal/Observer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return empty}});var _config__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/config.js"),_util_hostReportError__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/hostReportError.js"),empty={closed:!0,next:function(value){},error:function(err){if(_config__WEBPACK_IMPORTED_MODULE_0__.v.useDeprecatedSynchronousErrorHandling)throw err;(0,_util_hostReportError__WEBPACK_IMPORTED_MODULE_1__.z)(err)},complete:function(){}}},"./node_modules/rxjs/_esm5/internal/OuterSubscriber.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return OuterSubscriber}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),OuterSubscriber=function(_super){function OuterSubscriber(){return null!==_super&&_super.apply(this,arguments)||this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(OuterSubscriber,_super),OuterSubscriber.prototype.notifyNext=function(outerValue,innerValue,outerIndex,innerIndex,innerSub){this.destination.next(innerValue)},OuterSubscriber.prototype.notifyError=function(error,innerSub){this.destination.error(error)},OuterSubscriber.prototype.notifyComplete=function(innerSub){this.destination.complete()},OuterSubscriber}(__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js").L)},"./node_modules/rxjs/_esm5/internal/ReplaySubject.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{t:function(){return ReplaySubject}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subject__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subject.js"),_scheduler_queue__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/queue.js"),_Subscription__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),_operators_observeOn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/observeOn.js"),_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js"),_SubjectSubscription__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/SubjectSubscription.js"),ReplaySubject=function(_super){function ReplaySubject(bufferSize,windowTime,scheduler){void 0===bufferSize&&(bufferSize=Number.POSITIVE_INFINITY),void 0===windowTime&&(windowTime=Number.POSITIVE_INFINITY);var _this=_super.call(this)||this;return _this.scheduler=scheduler,_this._events=[],_this._infiniteTimeWindow=!1,_this._bufferSize=bufferSize<1?1:bufferSize,_this._windowTime=windowTime<1?1:windowTime,windowTime===Number.POSITIVE_INFINITY?(_this._infiniteTimeWindow=!0,_this.next=_this.nextInfiniteTimeWindow):_this.next=_this.nextTimeWindow,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(ReplaySubject,_super),ReplaySubject.prototype.nextInfiniteTimeWindow=function(value){if(!this.isStopped){var _events=this._events;_events.push(value),_events.length>this._bufferSize&&_events.shift()}_super.prototype.next.call(this,value)},ReplaySubject.prototype.nextTimeWindow=function(value){this.isStopped||(this._events.push(new ReplayEvent(this._getNow(),value)),this._trimBufferThenGetEvents()),_super.prototype.next.call(this,value)},ReplaySubject.prototype._subscribe=function(subscriber){var subscription,_infiniteTimeWindow=this._infiniteTimeWindow,_events=_infiniteTimeWindow?this._events:this._trimBufferThenGetEvents(),scheduler=this.scheduler,len=_events.length;if(this.closed)throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__.N;if(this.isStopped||this.hasError?subscription=_Subscription__WEBPACK_IMPORTED_MODULE_2__.w.EMPTY:(this.observers.push(subscriber),subscription=new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_3__.W(this,subscriber)),scheduler&&subscriber.add(subscriber=new _operators_observeOn__WEBPACK_IMPORTED_MODULE_4__.ht(subscriber,scheduler)),_infiniteTimeWindow)for(var i=0;i<len&&!subscriber.closed;i++)subscriber.next(_events[i]);else for(i=0;i<len&&!subscriber.closed;i++)subscriber.next(_events[i].value);return this.hasError?subscriber.error(this.thrownError):this.isStopped&&subscriber.complete(),subscription},ReplaySubject.prototype._getNow=function(){return(this.scheduler||_scheduler_queue__WEBPACK_IMPORTED_MODULE_5__.c).now()},ReplaySubject.prototype._trimBufferThenGetEvents=function(){for(var now=this._getNow(),_bufferSize=this._bufferSize,_windowTime=this._windowTime,_events=this._events,eventsCount=_events.length,spliceCount=0;spliceCount<eventsCount&&!(now-_events[spliceCount].time<_windowTime);)spliceCount++;return eventsCount>_bufferSize&&(spliceCount=Math.max(spliceCount,eventsCount-_bufferSize)),spliceCount>0&&_events.splice(0,spliceCount),_events},ReplaySubject}(_Subject__WEBPACK_IMPORTED_MODULE_6__.xQ),ReplayEvent=function(){return function ReplayEvent(time,value){this.time=time,this.value=value}}()},"./node_modules/rxjs/_esm5/internal/Scheduler.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return Scheduler}});var Scheduler=function(){function Scheduler(SchedulerAction,now){void 0===now&&(now=Scheduler.now),this.SchedulerAction=SchedulerAction,this.now=now}return Scheduler.prototype.schedule=function(work,delay,state){return void 0===delay&&(delay=0),new this.SchedulerAction(this,work).schedule(state,delay)},Scheduler.now=function(){return Date.now()},Scheduler}()},"./node_modules/rxjs/_esm5/internal/Subject.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Yc:function(){return SubjectSubscriber},xQ:function(){return Subject}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Observable__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),_Subscription__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js"),_SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/_esm5/internal/SubjectSubscription.js"),_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js"),SubjectSubscriber=function(_super){function SubjectSubscriber(destination){var _this=_super.call(this,destination)||this;return _this.destination=destination,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(SubjectSubscriber,_super),SubjectSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L),Subject=function(_super){function Subject(){var _this=_super.call(this)||this;return _this.observers=[],_this.closed=!1,_this.isStopped=!1,_this.hasError=!1,_this.thrownError=null,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(Subject,_super),Subject.prototype[_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_2__.b]=function(){return new SubjectSubscriber(this)},Subject.prototype.lift=function(operator){var subject=new AnonymousSubject(this,this);return subject.operator=operator,subject},Subject.prototype.next=function(value){if(this.closed)throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__.N;if(!this.isStopped)for(var observers=this.observers,len=observers.length,copy=observers.slice(),i=0;i<len;i++)copy[i].next(value)},Subject.prototype.error=function(err){if(this.closed)throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__.N;this.hasError=!0,this.thrownError=err,this.isStopped=!0;for(var observers=this.observers,len=observers.length,copy=observers.slice(),i=0;i<len;i++)copy[i].error(err);this.observers.length=0},Subject.prototype.complete=function(){if(this.closed)throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__.N;this.isStopped=!0;for(var observers=this.observers,len=observers.length,copy=observers.slice(),i=0;i<len;i++)copy[i].complete();this.observers.length=0},Subject.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},Subject.prototype._trySubscribe=function(subscriber){if(this.closed)throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__.N;return _super.prototype._trySubscribe.call(this,subscriber)},Subject.prototype._subscribe=function(subscriber){if(this.closed)throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__.N;return this.hasError?(subscriber.error(this.thrownError),_Subscription__WEBPACK_IMPORTED_MODULE_4__.w.EMPTY):this.isStopped?(subscriber.complete(),_Subscription__WEBPACK_IMPORTED_MODULE_4__.w.EMPTY):(this.observers.push(subscriber),new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__.W(this,subscriber))},Subject.prototype.asObservable=function(){var observable=new _Observable__WEBPACK_IMPORTED_MODULE_6__.y;return observable.source=this,observable},Subject.create=function(destination,source){return new AnonymousSubject(destination,source)},Subject}(_Observable__WEBPACK_IMPORTED_MODULE_6__.y),AnonymousSubject=function(_super){function AnonymousSubject(destination,source){var _this=_super.call(this)||this;return _this.destination=destination,_this.source=source,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(AnonymousSubject,_super),AnonymousSubject.prototype.next=function(value){var destination=this.destination;destination&&destination.next&&destination.next(value)},AnonymousSubject.prototype.error=function(err){var destination=this.destination;destination&&destination.error&&this.destination.error(err)},AnonymousSubject.prototype.complete=function(){var destination=this.destination;destination&&destination.complete&&this.destination.complete()},AnonymousSubject.prototype._subscribe=function(subscriber){return this.source?this.source.subscribe(subscriber):_Subscription__WEBPACK_IMPORTED_MODULE_4__.w.EMPTY},AnonymousSubject}(Subject)},"./node_modules/rxjs/_esm5/internal/SubjectSubscription.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return SubjectSubscription}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),SubjectSubscription=function(_super){function SubjectSubscription(subject,subscriber){var _this=_super.call(this)||this;return _this.subject=subject,_this.subscriber=subscriber,_this.closed=!1,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(SubjectSubscription,_super),SubjectSubscription.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var subject=this.subject,observers=subject.observers;if(this.subject=null,observers&&0!==observers.length&&!subject.isStopped&&!subject.closed){var subscriberIndex=observers.indexOf(this.subscriber);-1!==subscriberIndex&&observers.splice(subscriberIndex,1)}}},SubjectSubscription}(__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js").w)},"./node_modules/rxjs/_esm5/internal/Subscriber.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return Subscriber}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_util_isFunction__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isFunction.js"),_Observer__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observer.js"),_Subscription__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js"),_config__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/_esm5/internal/config.js"),_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/hostReportError.js"),Subscriber=function(_super){function Subscriber(destinationOrNext,error,complete){var _this=_super.call(this)||this;switch(_this.syncErrorValue=null,_this.syncErrorThrown=!1,_this.syncErrorThrowable=!1,_this.isStopped=!1,arguments.length){case 0:_this.destination=_Observer__WEBPACK_IMPORTED_MODULE_1__.c;break;case 1:if(!destinationOrNext){_this.destination=_Observer__WEBPACK_IMPORTED_MODULE_1__.c;break}if("object"==typeof destinationOrNext){destinationOrNext instanceof Subscriber?(_this.syncErrorThrowable=destinationOrNext.syncErrorThrowable,_this.destination=destinationOrNext,destinationOrNext.add(_this)):(_this.syncErrorThrowable=!0,_this.destination=new SafeSubscriber(_this,destinationOrNext));break}default:_this.syncErrorThrowable=!0,_this.destination=new SafeSubscriber(_this,destinationOrNext,error,complete)}return _this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(Subscriber,_super),Subscriber.prototype[_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_2__.b]=function(){return this},Subscriber.create=function(next,error,complete){var subscriber=new Subscriber(next,error,complete);return subscriber.syncErrorThrowable=!1,subscriber},Subscriber.prototype.next=function(value){this.isStopped||this._next(value)},Subscriber.prototype.error=function(err){this.isStopped||(this.isStopped=!0,this._error(err))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,_super.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(value){this.destination.next(value)},Subscriber.prototype._error=function(err){this.destination.error(err),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber.prototype._unsubscribeAndRecycle=function(){var _parentOrParents=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=_parentOrParents,this},Subscriber}(_Subscription__WEBPACK_IMPORTED_MODULE_3__.w),SafeSubscriber=function(_super){function SafeSubscriber(_parentSubscriber,observerOrNext,error,complete){var next,_this=_super.call(this)||this;_this._parentSubscriber=_parentSubscriber;var context=_this;return(0,_util_isFunction__WEBPACK_IMPORTED_MODULE_4__.m)(observerOrNext)?next=observerOrNext:observerOrNext&&(next=observerOrNext.next,error=observerOrNext.error,complete=observerOrNext.complete,observerOrNext!==_Observer__WEBPACK_IMPORTED_MODULE_1__.c&&(context=Object.create(observerOrNext),(0,_util_isFunction__WEBPACK_IMPORTED_MODULE_4__.m)(context.unsubscribe)&&_this.add(context.unsubscribe.bind(context)),context.unsubscribe=_this.unsubscribe.bind(_this))),_this._context=context,_this._next=next,_this._error=error,_this._complete=complete,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(SafeSubscriber,_super),SafeSubscriber.prototype.next=function(value){if(!this.isStopped&&this._next){var _parentSubscriber=this._parentSubscriber;_config__WEBPACK_IMPORTED_MODULE_5__.v.useDeprecatedSynchronousErrorHandling&&_parentSubscriber.syncErrorThrowable?this.__tryOrSetError(_parentSubscriber,this._next,value)&&this.unsubscribe():this.__tryOrUnsub(this._next,value)}},SafeSubscriber.prototype.error=function(err){if(!this.isStopped){var _parentSubscriber=this._parentSubscriber,useDeprecatedSynchronousErrorHandling=_config__WEBPACK_IMPORTED_MODULE_5__.v.useDeprecatedSynchronousErrorHandling;if(this._error)useDeprecatedSynchronousErrorHandling&&_parentSubscriber.syncErrorThrowable?(this.__tryOrSetError(_parentSubscriber,this._error,err),this.unsubscribe()):(this.__tryOrUnsub(this._error,err),this.unsubscribe());else if(_parentSubscriber.syncErrorThrowable)useDeprecatedSynchronousErrorHandling?(_parentSubscriber.syncErrorValue=err,_parentSubscriber.syncErrorThrown=!0):(0,_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__.z)(err),this.unsubscribe();else{if(this.unsubscribe(),useDeprecatedSynchronousErrorHandling)throw err;(0,_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__.z)(err)}}},SafeSubscriber.prototype.complete=function(){var _this=this;if(!this.isStopped){var _parentSubscriber=this._parentSubscriber;if(this._complete){var wrappedComplete=function(){return _this._complete.call(_this._context)};_config__WEBPACK_IMPORTED_MODULE_5__.v.useDeprecatedSynchronousErrorHandling&&_parentSubscriber.syncErrorThrowable?(this.__tryOrSetError(_parentSubscriber,wrappedComplete),this.unsubscribe()):(this.__tryOrUnsub(wrappedComplete),this.unsubscribe())}else this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(fn,value){try{fn.call(this._context,value)}catch(err){if(this.unsubscribe(),_config__WEBPACK_IMPORTED_MODULE_5__.v.useDeprecatedSynchronousErrorHandling)throw err;(0,_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__.z)(err)}},SafeSubscriber.prototype.__tryOrSetError=function(parent,fn,value){if(!_config__WEBPACK_IMPORTED_MODULE_5__.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{fn.call(this._context,value)}catch(err){return _config__WEBPACK_IMPORTED_MODULE_5__.v.useDeprecatedSynchronousErrorHandling?(parent.syncErrorValue=err,parent.syncErrorThrown=!0,!0):((0,_util_hostReportError__WEBPACK_IMPORTED_MODULE_6__.z)(err),!0)}return!1},SafeSubscriber.prototype._unsubscribe=function(){var _parentSubscriber=this._parentSubscriber;this._context=null,this._parentSubscriber=null,_parentSubscriber.unsubscribe()},SafeSubscriber}(Subscriber)},"./node_modules/rxjs/_esm5/internal/Subscription.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{w:function(){return Subscription}});var _util_isArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArray.js"),_util_isObject__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isObject.js"),_util_isFunction__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isFunction.js"),_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js"),Subscription=function(){function Subscription(unsubscribe){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,unsubscribe&&(this._ctorUnsubscribe=!0,this._unsubscribe=unsubscribe)}var empty;return Subscription.prototype.unsubscribe=function(){var errors;if(!this.closed){var _parentOrParents=this._parentOrParents,_ctorUnsubscribe=this._ctorUnsubscribe,_unsubscribe=this._unsubscribe,_subscriptions=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,_parentOrParents instanceof Subscription)_parentOrParents.remove(this);else if(null!==_parentOrParents)for(var index=0;index<_parentOrParents.length;++index){_parentOrParents[index].remove(this)}if((0,_util_isFunction__WEBPACK_IMPORTED_MODULE_0__.m)(_unsubscribe)){_ctorUnsubscribe&&(this._unsubscribe=void 0);try{_unsubscribe.call(this)}catch(e){errors=e instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__.B?flattenUnsubscriptionErrors(e.errors):[e]}}if((0,_util_isArray__WEBPACK_IMPORTED_MODULE_2__.k)(_subscriptions)){index=-1;for(var len=_subscriptions.length;++index<len;){var sub=_subscriptions[index];if((0,_util_isObject__WEBPACK_IMPORTED_MODULE_3__.K)(sub))try{sub.unsubscribe()}catch(e){errors=errors||[],e instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__.B?errors=errors.concat(flattenUnsubscriptionErrors(e.errors)):errors.push(e)}}}if(errors)throw new _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__.B(errors)}},Subscription.prototype.add=function(teardown){var subscription=teardown;if(!teardown)return Subscription.EMPTY;switch(typeof teardown){case"function":subscription=new Subscription(teardown);case"object":if(subscription===this||subscription.closed||"function"!=typeof subscription.unsubscribe)return subscription;if(this.closed)return subscription.unsubscribe(),subscription;if(!(subscription instanceof Subscription)){var tmp=subscription;(subscription=new Subscription)._subscriptions=[tmp]}break;default:throw new Error("unrecognized teardown "+teardown+" added to Subscription.")}var _parentOrParents=subscription._parentOrParents;if(null===_parentOrParents)subscription._parentOrParents=this;else if(_parentOrParents instanceof Subscription){if(_parentOrParents===this)return subscription;subscription._parentOrParents=[_parentOrParents,this]}else{if(-1!==_parentOrParents.indexOf(this))return subscription;_parentOrParents.push(this)}var subscriptions=this._subscriptions;return null===subscriptions?this._subscriptions=[subscription]:subscriptions.push(subscription),subscription},Subscription.prototype.remove=function(subscription){var subscriptions=this._subscriptions;if(subscriptions){var subscriptionIndex=subscriptions.indexOf(subscription);-1!==subscriptionIndex&&subscriptions.splice(subscriptionIndex,1)}},Subscription.EMPTY=((empty=new Subscription).closed=!0,empty),Subscription}();function flattenUnsubscriptionErrors(errors){return errors.reduce((function(errs,err){return errs.concat(err instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_1__.B?err.errors:err)}),[])}},"./node_modules/rxjs/_esm5/internal/config.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return config}});var _enable_super_gross_mode_that_will_cause_bad_things=!1,config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&(new Error).stack;_enable_super_gross_mode_that_will_cause_bad_things=value},get useDeprecatedSynchronousErrorHandling(){return _enable_super_gross_mode_that_will_cause_bad_things}}},"./node_modules/rxjs/_esm5/internal/innerSubscribe.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ds:function(){return SimpleOuterSubscriber},IY:function(){return SimpleInnerSubscriber},ft:function(){return innerSubscribe}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),_Observable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_util_subscribeTo__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeTo.js"),SimpleInnerSubscriber=function(_super){function SimpleInnerSubscriber(parent){var _this=_super.call(this)||this;return _this.parent=parent,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(SimpleInnerSubscriber,_super),SimpleInnerSubscriber.prototype._next=function(value){this.parent.notifyNext(value)},SimpleInnerSubscriber.prototype._error=function(error){this.parent.notifyError(error),this.unsubscribe()},SimpleInnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},SimpleInnerSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L),SimpleOuterSubscriber=(_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L,function(_super){function SimpleOuterSubscriber(){return null!==_super&&_super.apply(this,arguments)||this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(SimpleOuterSubscriber,_super),SimpleOuterSubscriber.prototype.notifyNext=function(innerValue){this.destination.next(innerValue)},SimpleOuterSubscriber.prototype.notifyError=function(err){this.destination.error(err)},SimpleOuterSubscriber.prototype.notifyComplete=function(){this.destination.complete()},SimpleOuterSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L));_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L;function innerSubscribe(result,innerSubscriber){if(!innerSubscriber.closed){if(result instanceof _Observable__WEBPACK_IMPORTED_MODULE_2__.y)return result.subscribe(innerSubscriber);var subscription;try{subscription=(0,_util_subscribeTo__WEBPACK_IMPORTED_MODULE_3__.s)(result)(innerSubscriber)}catch(error){innerSubscriber.error(error)}return subscription}}},"./node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return connectableObservableDescriptor},c:function(){return ConnectableObservable}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subject__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subject.js"),_Observable__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),_Subscription__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),_operators_refCount__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/refCount.js"),ConnectableObservable=function(_super){function ConnectableObservable(source,subjectFactory){var _this=_super.call(this)||this;return _this.source=source,_this.subjectFactory=subjectFactory,_this._refCount=0,_this._isComplete=!1,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(ConnectableObservable,_super),ConnectableObservable.prototype._subscribe=function(subscriber){return this.getSubject().subscribe(subscriber)},ConnectableObservable.prototype.getSubject=function(){var subject=this._subject;return subject&&!subject.isStopped||(this._subject=this.subjectFactory()),this._subject},ConnectableObservable.prototype.connect=function(){var connection=this._connection;return connection||(this._isComplete=!1,(connection=this._connection=new _Subscription__WEBPACK_IMPORTED_MODULE_1__.w).add(this.source.subscribe(new ConnectableSubscriber(this.getSubject(),this))),connection.closed&&(this._connection=null,connection=_Subscription__WEBPACK_IMPORTED_MODULE_1__.w.EMPTY)),connection},ConnectableObservable.prototype.refCount=function(){return(0,_operators_refCount__WEBPACK_IMPORTED_MODULE_2__.x)()(this)},ConnectableObservable}(_Observable__WEBPACK_IMPORTED_MODULE_3__.y),connectableObservableDescriptor=function(){var connectableProto=ConnectableObservable.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:connectableProto._subscribe},_isComplete:{value:connectableProto._isComplete,writable:!0},getSubject:{value:connectableProto.getSubject},connect:{value:connectableProto.connect},refCount:{value:connectableProto.refCount}}}(),ConnectableSubscriber=function(_super){function ConnectableSubscriber(destination,connectable){var _this=_super.call(this,destination)||this;return _this.connectable=connectable,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(ConnectableSubscriber,_super),ConnectableSubscriber.prototype._error=function(err){this._unsubscribe(),_super.prototype._error.call(this,err)},ConnectableSubscriber.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),_super.prototype._complete.call(this)},ConnectableSubscriber.prototype._unsubscribe=function(){var connectable=this.connectable;if(connectable){this.connectable=null;var connection=connectable._connection;connectable._refCount=0,connectable._subject=null,connectable._connection=null,connection&&connection.unsubscribe()}},ConnectableSubscriber}(_Subject__WEBPACK_IMPORTED_MODULE_4__.Yc);_Subscriber__WEBPACK_IMPORTED_MODULE_5__.L},"./node_modules/rxjs/_esm5/internal/observable/combineLatest.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Ms:function(){return CombineLatestOperator},aj:function(){return combineLatest}});var tslib__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isScheduler.js"),_util_isArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArray.js"),_OuterSubscriber__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"),_fromArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/fromArray.js"),NONE={};function combineLatest(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];var resultSelector=void 0,scheduler=void 0;return(0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__.K)(observables[observables.length-1])&&(scheduler=observables.pop()),"function"==typeof observables[observables.length-1]&&(resultSelector=observables.pop()),1===observables.length&&(0,_util_isArray__WEBPACK_IMPORTED_MODULE_1__.k)(observables[0])&&(observables=observables[0]),(0,_fromArray__WEBPACK_IMPORTED_MODULE_2__.n)(observables,scheduler).lift(new CombineLatestOperator(resultSelector))}var CombineLatestOperator=function(){function CombineLatestOperator(resultSelector){this.resultSelector=resultSelector}return CombineLatestOperator.prototype.call=function(subscriber,source){return source.subscribe(new CombineLatestSubscriber(subscriber,this.resultSelector))},CombineLatestOperator}(),CombineLatestSubscriber=function(_super){function CombineLatestSubscriber(destination,resultSelector){var _this=_super.call(this,destination)||this;return _this.resultSelector=resultSelector,_this.active=0,_this.values=[],_this.observables=[],_this}return tslib__WEBPACK_IMPORTED_MODULE_3__.ZT(CombineLatestSubscriber,_super),CombineLatestSubscriber.prototype._next=function(observable){this.values.push(NONE),this.observables.push(observable)},CombineLatestSubscriber.prototype._complete=function(){var observables=this.observables,len=observables.length;if(0===len)this.destination.complete();else{this.active=len,this.toRespond=len;for(var i=0;i<len;i++){var observable=observables[i];this.add((0,_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__.D)(this,observable,void 0,i))}}},CombineLatestSubscriber.prototype.notifyComplete=function(unused){0==(this.active-=1)&&this.destination.complete()},CombineLatestSubscriber.prototype.notifyNext=function(_outerValue,innerValue,outerIndex){var values=this.values,oldVal=values[outerIndex],toRespond=this.toRespond?oldVal===NONE?--this.toRespond:this.toRespond:0;values[outerIndex]=innerValue,0===toRespond&&(this.resultSelector?this._tryResultSelector(values):this.destination.next(values.slice()))},CombineLatestSubscriber.prototype._tryResultSelector=function(values){var result;try{result=this.resultSelector.apply(this,values)}catch(err){return void this.destination.error(err)}this.destination.next(result)},CombineLatestSubscriber}(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_5__.L)},"./node_modules/rxjs/_esm5/internal/observable/concat.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return concat}});var _of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/of.js"),_operators_concatAll__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/concatAll.js");function concat(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];return(0,_operators_concatAll__WEBPACK_IMPORTED_MODULE_0__.u)()(_of__WEBPACK_IMPORTED_MODULE_1__.of.apply(void 0,observables))}},"./node_modules/rxjs/_esm5/internal/observable/defer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return defer}});var _Observable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_from__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/from.js"),_empty__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/empty.js");function defer(observableFactory){return new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((function(subscriber){var input;try{input=observableFactory()}catch(err){return void subscriber.error(err)}return(input?(0,_from__WEBPACK_IMPORTED_MODULE_1__.D)(input):(0,_empty__WEBPACK_IMPORTED_MODULE_2__.c)()).subscribe(subscriber)}))}},"./node_modules/rxjs/_esm5/internal/observable/empty.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{E:function(){return EMPTY},c:function(){return empty}});var _Observable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),EMPTY=new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((function(subscriber){return subscriber.complete()}));function empty(scheduler){return scheduler?function emptyScheduled(scheduler){return new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((function(subscriber){return scheduler.schedule((function(){return subscriber.complete()}))}))}(scheduler):EMPTY}},"./node_modules/rxjs/_esm5/internal/observable/from.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return from}});var _Observable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeTo.js"),_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduled/scheduled.js");function from(input,scheduler){return scheduler?(0,_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__.x)(input,scheduler):input instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__.y?input:new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((0,_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__.s)(input))}},"./node_modules/rxjs/_esm5/internal/observable/fromArray.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{n:function(){return fromArray}});var _Observable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeToArray.js"),_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js");function fromArray(input,scheduler){return scheduler?(0,_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__.r)(input,scheduler):new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((0,_util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__.V)(input))}},"./node_modules/rxjs/_esm5/internal/observable/merge.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{T:function(){return merge}});var _Observable__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isScheduler.js"),_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/mergeAll.js"),_fromArray__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/fromArray.js");function merge(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];var concurrent=Number.POSITIVE_INFINITY,scheduler=null,last=observables[observables.length-1];return(0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__.K)(last)?(scheduler=observables.pop(),observables.length>1&&"number"==typeof observables[observables.length-1]&&(concurrent=observables.pop())):"number"==typeof last&&(concurrent=observables.pop()),null===scheduler&&1===observables.length&&observables[0]instanceof _Observable__WEBPACK_IMPORTED_MODULE_1__.y?observables[0]:(0,_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__.J)(concurrent)((0,_fromArray__WEBPACK_IMPORTED_MODULE_3__.n)(observables,scheduler))}},"./node_modules/rxjs/_esm5/internal/observable/of.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{of:function(){return of}});var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isScheduler.js"),_fromArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/fromArray.js"),_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js");function of(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];var scheduler=args[args.length-1];return(0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__.K)(scheduler)?(args.pop(),(0,_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_1__.r)(args,scheduler)):(0,_fromArray__WEBPACK_IMPORTED_MODULE_2__.n)(args)}},"./node_modules/rxjs/_esm5/internal/observable/race.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{S3:function(){return race}});var tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_util_isArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArray.js"),_fromArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/fromArray.js"),_OuterSubscriber__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js"),_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js");function race(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];if(1===observables.length){if(!(0,_util_isArray__WEBPACK_IMPORTED_MODULE_0__.k)(observables[0]))return observables[0];observables=observables[0]}return(0,_fromArray__WEBPACK_IMPORTED_MODULE_1__.n)(observables,void 0).lift(new RaceOperator)}var RaceOperator=function(){function RaceOperator(){}return RaceOperator.prototype.call=function(subscriber,source){return source.subscribe(new RaceSubscriber(subscriber))},RaceOperator}(),RaceSubscriber=function(_super){function RaceSubscriber(destination){var _this=_super.call(this,destination)||this;return _this.hasFirst=!1,_this.observables=[],_this.subscriptions=[],_this}return tslib__WEBPACK_IMPORTED_MODULE_2__.ZT(RaceSubscriber,_super),RaceSubscriber.prototype._next=function(observable){this.observables.push(observable)},RaceSubscriber.prototype._complete=function(){var observables=this.observables,len=observables.length;if(0===len)this.destination.complete();else{for(var i=0;i<len&&!this.hasFirst;i++){var observable=observables[i],subscription=(0,_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__.D)(this,observable,void 0,i);this.subscriptions&&this.subscriptions.push(subscription),this.add(subscription)}this.observables=null}},RaceSubscriber.prototype.notifyNext=function(_outerValue,innerValue,outerIndex){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==outerIndex){var subscription=this.subscriptions[i];subscription.unsubscribe(),this.remove(subscription)}this.subscriptions=null}this.destination.next(innerValue)},RaceSubscriber}(_OuterSubscriber__WEBPACK_IMPORTED_MODULE_4__.L)},"./node_modules/rxjs/_esm5/internal/observable/throwError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return throwError}});var _Observable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js");function throwError(error,scheduler){return scheduler?new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((function(subscriber){return scheduler.schedule(dispatch,0,{error:error,subscriber:subscriber})})):new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((function(subscriber){return subscriber.error(error)}))}function dispatch(_a){var error=_a.error;_a.subscriber.error(error)}},"./node_modules/rxjs/_esm5/internal/observable/timer.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{H:function(){return timer}});var _Observable__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_scheduler_async__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/async.js"),_util_isNumeric__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isNumeric.js"),_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isScheduler.js");function timer(dueTime,periodOrScheduler,scheduler){void 0===dueTime&&(dueTime=0);var period=-1;return(0,_util_isNumeric__WEBPACK_IMPORTED_MODULE_0__.k)(periodOrScheduler)?period=Number(periodOrScheduler)<1?1:Number(periodOrScheduler):(0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__.K)(periodOrScheduler)&&(scheduler=periodOrScheduler),(0,_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__.K)(scheduler)||(scheduler=_scheduler_async__WEBPACK_IMPORTED_MODULE_2__.P),new _Observable__WEBPACK_IMPORTED_MODULE_3__.y((function(subscriber){var due=(0,_util_isNumeric__WEBPACK_IMPORTED_MODULE_0__.k)(dueTime)?dueTime:+dueTime-scheduler.now();return scheduler.schedule(dispatch,due,{index:0,period:period,subscriber:subscriber})}))}function dispatch(state){var index=state.index,period=state.period,subscriber=state.subscriber;if(subscriber.next(index),!subscriber.closed){if(-1===period)return subscriber.complete();state.index=index+1,this.schedule(state,period)}}},"./node_modules/rxjs/_esm5/internal/observable/zip.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{$R:function(){return zip},mx:function(){return ZipOperator}});var tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_fromArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/fromArray.js"),_util_isArray__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArray.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/iterator.js"),_innerSubscribe__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/rxjs/_esm5/internal/innerSubscribe.js");function zip(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];var resultSelector=observables[observables.length-1];return"function"==typeof resultSelector&&observables.pop(),(0,_fromArray__WEBPACK_IMPORTED_MODULE_0__.n)(observables,void 0).lift(new ZipOperator(resultSelector))}var ZipOperator=function(){function ZipOperator(resultSelector){this.resultSelector=resultSelector}return ZipOperator.prototype.call=function(subscriber,source){return source.subscribe(new ZipSubscriber(subscriber,this.resultSelector))},ZipOperator}(),ZipSubscriber=function(_super){function ZipSubscriber(destination,resultSelector,values){void 0===values&&(values=Object.create(null));var _this=_super.call(this,destination)||this;return _this.resultSelector=resultSelector,_this.iterators=[],_this.active=0,_this.resultSelector="function"==typeof resultSelector?resultSelector:void 0,_this}return tslib__WEBPACK_IMPORTED_MODULE_1__.ZT(ZipSubscriber,_super),ZipSubscriber.prototype._next=function(value){var iterators=this.iterators;(0,_util_isArray__WEBPACK_IMPORTED_MODULE_2__.k)(value)?iterators.push(new StaticArrayIterator(value)):"function"==typeof value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__.hZ]?iterators.push(new StaticIterator(value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__.hZ]())):iterators.push(new ZipBufferIterator(this.destination,this,value))},ZipSubscriber.prototype._complete=function(){var iterators=this.iterators,len=iterators.length;if(this.unsubscribe(),0!==len){this.active=len;for(var i=0;i<len;i++){var iterator=iterators[i];if(iterator.stillUnsubscribed)this.destination.add(iterator.subscribe());else this.active--}}else this.destination.complete()},ZipSubscriber.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},ZipSubscriber.prototype.checkIterators=function(){for(var iterators=this.iterators,len=iterators.length,destination=this.destination,i=0;i<len;i++){if("function"==typeof(iterator=iterators[i]).hasValue&&!iterator.hasValue())return}var shouldComplete=!1,args=[];for(i=0;i<len;i++){var iterator,result=(iterator=iterators[i]).next();if(iterator.hasCompleted()&&(shouldComplete=!0),result.done)return void destination.complete();args.push(result.value)}this.resultSelector?this._tryresultSelector(args):destination.next(args),shouldComplete&&destination.complete()},ZipSubscriber.prototype._tryresultSelector=function(args){var result;try{result=this.resultSelector.apply(this,args)}catch(err){return void this.destination.error(err)}this.destination.next(result)},ZipSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_4__.L),StaticIterator=function(){function StaticIterator(iterator){this.iterator=iterator,this.nextResult=iterator.next()}return StaticIterator.prototype.hasValue=function(){return!0},StaticIterator.prototype.next=function(){var result=this.nextResult;return this.nextResult=this.iterator.next(),result},StaticIterator.prototype.hasCompleted=function(){var nextResult=this.nextResult;return Boolean(nextResult&&nextResult.done)},StaticIterator}(),StaticArrayIterator=function(){function StaticArrayIterator(array){this.array=array,this.index=0,this.length=0,this.length=array.length}return StaticArrayIterator.prototype[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__.hZ]=function(){return this},StaticArrayIterator.prototype.next=function(value){var i=this.index++,array=this.array;return i<this.length?{value:array[i],done:!1}:{value:null,done:!0}},StaticArrayIterator.prototype.hasValue=function(){return this.array.length>this.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),ZipBufferIterator=function(_super){function ZipBufferIterator(destination,parent,observable){var _this=_super.call(this,destination)||this;return _this.parent=parent,_this.observable=observable,_this.stillUnsubscribed=!0,_this.buffer=[],_this.isComplete=!1,_this}return tslib__WEBPACK_IMPORTED_MODULE_1__.ZT(ZipBufferIterator,_super),ZipBufferIterator.prototype[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_3__.hZ]=function(){return this},ZipBufferIterator.prototype.next=function(){var buffer=this.buffer;return 0===buffer.length&&this.isComplete?{value:null,done:!0}:{value:buffer.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(innerValue){this.buffer.push(innerValue),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(){return(0,_innerSubscribe__WEBPACK_IMPORTED_MODULE_5__.ft)(this.observable,new _innerSubscribe__WEBPACK_IMPORTED_MODULE_5__.IY(this))},ZipBufferIterator}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_5__.Ds)},"./node_modules/rxjs/_esm5/internal/operators/concatAll.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{u:function(){return concatAll}});var _mergeAll__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/mergeAll.js");function concatAll(){return(0,_mergeAll__WEBPACK_IMPORTED_MODULE_0__.J)(1)}},"./node_modules/rxjs/_esm5/internal/operators/filter.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{h:function(){return filter}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js");function filter(predicate,thisArg){return function filterOperatorFunction(source){return source.lift(new FilterOperator(predicate,thisArg))}}var FilterOperator=function(){function FilterOperator(predicate,thisArg){this.predicate=predicate,this.thisArg=thisArg}return FilterOperator.prototype.call=function(subscriber,source){return source.subscribe(new FilterSubscriber(subscriber,this.predicate,this.thisArg))},FilterOperator}(),FilterSubscriber=function(_super){function FilterSubscriber(destination,predicate,thisArg){var _this=_super.call(this,destination)||this;return _this.predicate=predicate,_this.thisArg=thisArg,_this.count=0,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(FilterSubscriber,_super),FilterSubscriber.prototype._next=function(value){var result;try{result=this.predicate.call(this.thisArg,value,this.count++)}catch(err){return void this.destination.error(err)}result&&this.destination.next(value)},FilterSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L)},"./node_modules/rxjs/_esm5/internal/operators/groupBy.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{T:function(){return GroupedObservable},v:function(){return groupBy}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),_Subscription__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),_Observable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_Subject__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subject.js");function groupBy(keySelector,elementSelector,durationSelector,subjectSelector){return function(source){return source.lift(new GroupByOperator(keySelector,elementSelector,durationSelector,subjectSelector))}}var GroupByOperator=function(){function GroupByOperator(keySelector,elementSelector,durationSelector,subjectSelector){this.keySelector=keySelector,this.elementSelector=elementSelector,this.durationSelector=durationSelector,this.subjectSelector=subjectSelector}return GroupByOperator.prototype.call=function(subscriber,source){return source.subscribe(new GroupBySubscriber(subscriber,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},GroupByOperator}(),GroupBySubscriber=function(_super){function GroupBySubscriber(destination,keySelector,elementSelector,durationSelector,subjectSelector){var _this=_super.call(this,destination)||this;return _this.keySelector=keySelector,_this.elementSelector=elementSelector,_this.durationSelector=durationSelector,_this.subjectSelector=subjectSelector,_this.groups=null,_this.attemptedToUnsubscribe=!1,_this.count=0,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(GroupBySubscriber,_super),GroupBySubscriber.prototype._next=function(value){var key;try{key=this.keySelector(value)}catch(err){return void this.error(err)}this._group(value,key)},GroupBySubscriber.prototype._group=function(value,key){var groups=this.groups;groups||(groups=this.groups=new Map);var element,group=groups.get(key);if(this.elementSelector)try{element=this.elementSelector(value)}catch(err){this.error(err)}else element=value;if(!group){group=this.subjectSelector?this.subjectSelector():new _Subject__WEBPACK_IMPORTED_MODULE_1__.xQ,groups.set(key,group);var groupedObservable=new GroupedObservable(key,group,this);if(this.destination.next(groupedObservable),this.durationSelector){var duration=void 0;try{duration=this.durationSelector(new GroupedObservable(key,group))}catch(err){return void this.error(err)}this.add(duration.subscribe(new GroupDurationSubscriber(key,group,this)))}}group.closed||group.next(element)},GroupBySubscriber.prototype._error=function(err){var groups=this.groups;groups&&(groups.forEach((function(group,key){group.error(err)})),groups.clear()),this.destination.error(err)},GroupBySubscriber.prototype._complete=function(){var groups=this.groups;groups&&(groups.forEach((function(group,key){group.complete()})),groups.clear()),this.destination.complete()},GroupBySubscriber.prototype.removeGroup=function(key){this.groups.delete(key)},GroupBySubscriber.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&_super.prototype.unsubscribe.call(this))},GroupBySubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_2__.L),GroupDurationSubscriber=function(_super){function GroupDurationSubscriber(key,group,parent){var _this=_super.call(this,group)||this;return _this.key=key,_this.group=group,_this.parent=parent,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(GroupDurationSubscriber,_super),GroupDurationSubscriber.prototype._next=function(value){this.complete()},GroupDurationSubscriber.prototype._unsubscribe=function(){var parent=this.parent,key=this.key;this.key=this.parent=null,parent&&parent.removeGroup(key)},GroupDurationSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_2__.L),GroupedObservable=function(_super){function GroupedObservable(key,groupSubject,refCountSubscription){var _this=_super.call(this)||this;return _this.key=key,_this.groupSubject=groupSubject,_this.refCountSubscription=refCountSubscription,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(GroupedObservable,_super),GroupedObservable.prototype._subscribe=function(subscriber){var subscription=new _Subscription__WEBPACK_IMPORTED_MODULE_3__.w,refCountSubscription=this.refCountSubscription,groupSubject=this.groupSubject;return refCountSubscription&&!refCountSubscription.closed&&subscription.add(new InnerRefCountSubscription(refCountSubscription)),subscription.add(groupSubject.subscribe(subscriber)),subscription},GroupedObservable}(_Observable__WEBPACK_IMPORTED_MODULE_4__.y),InnerRefCountSubscription=function(_super){function InnerRefCountSubscription(parent){var _this=_super.call(this)||this;return _this.parent=parent,parent.count++,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(InnerRefCountSubscription,_super),InnerRefCountSubscription.prototype.unsubscribe=function(){var parent=this.parent;parent.closed||this.closed||(_super.prototype.unsubscribe.call(this),parent.count-=1,0===parent.count&&parent.attemptedToUnsubscribe&&parent.unsubscribe())},InnerRefCountSubscription}(_Subscription__WEBPACK_IMPORTED_MODULE_3__.w)},"./node_modules/rxjs/_esm5/internal/operators/map.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return map}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js");function map(project,thisArg){return function mapOperation(source){if("function"!=typeof project)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return source.lift(new MapOperator(project,thisArg))}}var MapOperator=function(){function MapOperator(project,thisArg){this.project=project,this.thisArg=thisArg}return MapOperator.prototype.call=function(subscriber,source){return source.subscribe(new MapSubscriber(subscriber,this.project,this.thisArg))},MapOperator}(),MapSubscriber=function(_super){function MapSubscriber(destination,project,thisArg){var _this=_super.call(this,destination)||this;return _this.project=project,_this.count=0,_this.thisArg=thisArg||_this,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(MapSubscriber,_super),MapSubscriber.prototype._next=function(value){var result;try{result=this.project.call(this.thisArg,value,this.count++)}catch(err){return void this.destination.error(err)}this.destination.next(result)},MapSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L)},"./node_modules/rxjs/_esm5/internal/operators/mergeAll.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{J:function(){return mergeAll}});var _mergeMap__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/mergeMap.js"),_util_identity__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/identity.js");function mergeAll(concurrent){return void 0===concurrent&&(concurrent=Number.POSITIVE_INFINITY),(0,_mergeMap__WEBPACK_IMPORTED_MODULE_0__.zg)(_util_identity__WEBPACK_IMPORTED_MODULE_1__.y,concurrent)}},"./node_modules/rxjs/_esm5/internal/operators/mergeMap.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{VS:function(){return flatMap},zg:function(){return mergeMap}});var tslib__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/map.js"),_observable_from__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/from.js"),_innerSubscribe__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/rxjs/_esm5/internal/innerSubscribe.js");function mergeMap(project,resultSelector,concurrent){return void 0===concurrent&&(concurrent=Number.POSITIVE_INFINITY),"function"==typeof resultSelector?function(source){return source.pipe(mergeMap((function(a,i){return(0,_observable_from__WEBPACK_IMPORTED_MODULE_0__.D)(project(a,i)).pipe((0,_map__WEBPACK_IMPORTED_MODULE_1__.U)((function(b,ii){return resultSelector(a,b,i,ii)})))}),concurrent))}:("number"==typeof resultSelector&&(concurrent=resultSelector),function(source){return source.lift(new MergeMapOperator(project,concurrent))})}var MergeMapOperator=function(){function MergeMapOperator(project,concurrent){void 0===concurrent&&(concurrent=Number.POSITIVE_INFINITY),this.project=project,this.concurrent=concurrent}return MergeMapOperator.prototype.call=function(observer,source){return source.subscribe(new MergeMapSubscriber(observer,this.project,this.concurrent))},MergeMapOperator}(),MergeMapSubscriber=function(_super){function MergeMapSubscriber(destination,project,concurrent){void 0===concurrent&&(concurrent=Number.POSITIVE_INFINITY);var _this=_super.call(this,destination)||this;return _this.project=project,_this.concurrent=concurrent,_this.hasCompleted=!1,_this.buffer=[],_this.active=0,_this.index=0,_this}return tslib__WEBPACK_IMPORTED_MODULE_2__.ZT(MergeMapSubscriber,_super),MergeMapSubscriber.prototype._next=function(value){this.active<this.concurrent?this._tryNext(value):this.buffer.push(value)},MergeMapSubscriber.prototype._tryNext=function(value){var result,index=this.index++;try{result=this.project(value,index)}catch(err){return void this.destination.error(err)}this.active++,this._innerSub(result)},MergeMapSubscriber.prototype._innerSub=function(ish){var innerSubscriber=new _innerSubscribe__WEBPACK_IMPORTED_MODULE_3__.IY(this),destination=this.destination;destination.add(innerSubscriber);var innerSubscription=(0,_innerSubscribe__WEBPACK_IMPORTED_MODULE_3__.ft)(ish,innerSubscriber);innerSubscription!==innerSubscriber&&destination.add(innerSubscription)},MergeMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},MergeMapSubscriber.prototype.notifyNext=function(innerValue){this.destination.next(innerValue)},MergeMapSubscriber.prototype.notifyComplete=function(){var buffer=this.buffer;this.active--,buffer.length>0?this._next(buffer.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(_innerSubscribe__WEBPACK_IMPORTED_MODULE_3__.Ds),flatMap=mergeMap},"./node_modules/rxjs/_esm5/internal/operators/observeOn.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{QV:function(){return observeOn},ht:function(){return ObserveOnSubscriber}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js"),_Notification__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Notification.js");function observeOn(scheduler,delay){return void 0===delay&&(delay=0),function observeOnOperatorFunction(source){return source.lift(new ObserveOnOperator(scheduler,delay))}}var ObserveOnOperator=function(){function ObserveOnOperator(scheduler,delay){void 0===delay&&(delay=0),this.scheduler=scheduler,this.delay=delay}return ObserveOnOperator.prototype.call=function(subscriber,source){return source.subscribe(new ObserveOnSubscriber(subscriber,this.scheduler,this.delay))},ObserveOnOperator}(),ObserveOnSubscriber=function(_super){function ObserveOnSubscriber(destination,scheduler,delay){void 0===delay&&(delay=0);var _this=_super.call(this,destination)||this;return _this.scheduler=scheduler,_this.delay=delay,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(ObserveOnSubscriber,_super),ObserveOnSubscriber.dispatch=function(arg){var notification=arg.notification,destination=arg.destination;notification.observe(destination),this.unsubscribe()},ObserveOnSubscriber.prototype.scheduleMessage=function(notification){this.destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch,this.delay,new ObserveOnMessage(notification,this.destination)))},ObserveOnSubscriber.prototype._next=function(value){this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__.P.createNext(value))},ObserveOnSubscriber.prototype._error=function(err){this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__.P.createError(err)),this.unsubscribe()},ObserveOnSubscriber.prototype._complete=function(){this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__.P.createComplete()),this.unsubscribe()},ObserveOnSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_2__.L),ObserveOnMessage=function(){return function ObserveOnMessage(notification,destination){this.notification=notification,this.destination=destination}}()},"./node_modules/rxjs/_esm5/internal/operators/refCount.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return refCount}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Subscriber__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js");function refCount(){return function refCountOperatorFunction(source){return source.lift(new RefCountOperator(source))}}var RefCountOperator=function(){function RefCountOperator(connectable){this.connectable=connectable}return RefCountOperator.prototype.call=function(subscriber,source){var connectable=this.connectable;connectable._refCount++;var refCounter=new RefCountSubscriber(subscriber,connectable),subscription=source.subscribe(refCounter);return refCounter.closed||(refCounter.connection=connectable.connect()),subscription},RefCountOperator}(),RefCountSubscriber=function(_super){function RefCountSubscriber(destination,connectable){var _this=_super.call(this,destination)||this;return _this.connectable=connectable,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(RefCountSubscriber,_super),RefCountSubscriber.prototype._unsubscribe=function(){var connectable=this.connectable;if(connectable){this.connectable=null;var refCount=connectable._refCount;if(refCount<=0)this.connection=null;else if(connectable._refCount=refCount-1,refCount>1)this.connection=null;else{var connection=this.connection,sharedConnection=connectable._connection;this.connection=null,!sharedConnection||connection&&sharedConnection!==connection||sharedConnection.unsubscribe()}}else this.connection=null},RefCountSubscriber}(_Subscriber__WEBPACK_IMPORTED_MODULE_1__.L)},"./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{r:function(){return scheduleArray}});var _Observable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),_Subscription__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js");function scheduleArray(input,scheduler){return new _Observable__WEBPACK_IMPORTED_MODULE_0__.y((function(subscriber){var sub=new _Subscription__WEBPACK_IMPORTED_MODULE_1__.w,i=0;return sub.add(scheduler.schedule((function(){i!==input.length?(subscriber.next(input[i++]),subscriber.closed||sub.add(this.schedule())):subscriber.complete()}))),sub}))}},"./node_modules/rxjs/_esm5/internal/scheduled/scheduled.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{x:function(){return scheduled}});var Observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js"),Subscription=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),symbol_observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/observable.js");var scheduleArray=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduled/scheduleArray.js"),symbol_iterator=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/iterator.js");var isPromise=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isPromise.js"),isArrayLike=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArrayLike.js");function scheduled(input,scheduler){if(null!=input){if(function isInteropObservable(input){return input&&"function"==typeof input[symbol_observable.L]}(input))return function scheduleObservable(input,scheduler){return new Observable.y((function(subscriber){var sub=new Subscription.w;return sub.add(scheduler.schedule((function(){var observable=input[symbol_observable.L]();sub.add(observable.subscribe({next:function(value){sub.add(scheduler.schedule((function(){return subscriber.next(value)})))},error:function(err){sub.add(scheduler.schedule((function(){return subscriber.error(err)})))},complete:function(){sub.add(scheduler.schedule((function(){return subscriber.complete()})))}}))}))),sub}))}(input,scheduler);if((0,isPromise.t)(input))return function schedulePromise(input,scheduler){return new Observable.y((function(subscriber){var sub=new Subscription.w;return sub.add(scheduler.schedule((function(){return input.then((function(value){sub.add(scheduler.schedule((function(){subscriber.next(value),sub.add(scheduler.schedule((function(){return subscriber.complete()})))})))}),(function(err){sub.add(scheduler.schedule((function(){return subscriber.error(err)})))}))}))),sub}))}(input,scheduler);if((0,isArrayLike.z)(input))return(0,scheduleArray.r)(input,scheduler);if(function isIterable(input){return input&&"function"==typeof input[symbol_iterator.hZ]}(input)||"string"==typeof input)return function scheduleIterable(input,scheduler){if(!input)throw new Error("Iterable cannot be null");return new Observable.y((function(subscriber){var iterator,sub=new Subscription.w;return sub.add((function(){iterator&&"function"==typeof iterator.return&&iterator.return()})),sub.add(scheduler.schedule((function(){iterator=input[symbol_iterator.hZ](),sub.add(scheduler.schedule((function(){if(!subscriber.closed){var value,done;try{var result=iterator.next();value=result.value,done=result.done}catch(err){return void subscriber.error(err)}done?subscriber.complete():(subscriber.next(value),this.schedule())}})))}))),sub}))}(input,scheduler)}throw new TypeError((null!==input&&typeof input||input)+" is not observable")}},"./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{o:function(){return AsyncAction}});var tslib_es6=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),AsyncAction=function(_super){function AsyncAction(scheduler,work){var _this=_super.call(this,scheduler,work)||this;return _this.scheduler=scheduler,_this.work=work,_this.pending=!1,_this}return tslib_es6.ZT(AsyncAction,_super),AsyncAction.prototype.schedule=function(state,delay){if(void 0===delay&&(delay=0),this.closed)return this;this.state=state;var id=this.id,scheduler=this.scheduler;return null!=id&&(this.id=this.recycleAsyncId(scheduler,id,delay)),this.pending=!0,this.delay=delay,this.id=this.id||this.requestAsyncId(scheduler,this.id,delay),this},AsyncAction.prototype.requestAsyncId=function(scheduler,id,delay){return void 0===delay&&(delay=0),setInterval(scheduler.flush.bind(scheduler,this),delay)},AsyncAction.prototype.recycleAsyncId=function(scheduler,id,delay){if(void 0===delay&&(delay=0),null!==delay&&this.delay===delay&&!1===this.pending)return id;clearInterval(id)},AsyncAction.prototype.execute=function(state,delay){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var error=this._execute(state,delay);if(error)return error;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(state,delay){var errored=!1,errorValue=void 0;try{this.work(state)}catch(e){errored=!0,errorValue=!!e&&e||new Error(e)}if(errored)return this.unsubscribe(),errorValue},AsyncAction.prototype._unsubscribe=function(){var id=this.id,scheduler=this.scheduler,actions=scheduler.actions,index=actions.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==index&&actions.splice(index,1),null!=id&&(this.id=this.recycleAsyncId(scheduler,id,null)),this.delay=null},AsyncAction}(function(_super){function Action(scheduler,work){return _super.call(this)||this}return tslib_es6.ZT(Action,_super),Action.prototype.schedule=function(state,delay){return void 0===delay&&(delay=0),this},Action}(__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js").w))},"./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{v:function(){return AsyncScheduler}});var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),_Scheduler__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Scheduler.js"),AsyncScheduler=function(_super){function AsyncScheduler(SchedulerAction,now){void 0===now&&(now=_Scheduler__WEBPACK_IMPORTED_MODULE_1__.b.now);var _this=_super.call(this,SchedulerAction,(function(){return AsyncScheduler.delegate&&AsyncScheduler.delegate!==_this?AsyncScheduler.delegate.now():now()}))||this;return _this.actions=[],_this.active=!1,_this.scheduled=void 0,_this}return tslib__WEBPACK_IMPORTED_MODULE_0__.ZT(AsyncScheduler,_super),AsyncScheduler.prototype.schedule=function(work,delay,state){return void 0===delay&&(delay=0),AsyncScheduler.delegate&&AsyncScheduler.delegate!==this?AsyncScheduler.delegate.schedule(work,delay,state):_super.prototype.schedule.call(this,work,delay,state)},AsyncScheduler.prototype.flush=function(action){var actions=this.actions;if(this.active)actions.push(action);else{var error;this.active=!0;do{if(error=action.execute(action.state,action.delay))break}while(action=actions.shift());if(this.active=!1,error){for(;action=actions.shift();)action.unsubscribe();throw error}}},AsyncScheduler}(_Scheduler__WEBPACK_IMPORTED_MODULE_1__.b)},"./node_modules/rxjs/_esm5/internal/scheduler/asap.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{e:function(){return asap},E:function(){return asapScheduler}});var tslib_es6=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),nextHandle=1,RESOLVED=function(){return Promise.resolve()}(),activeHandles={};function findAndClearHandle(handle){return handle in activeHandles&&(delete activeHandles[handle],!0)}var Immediate_setImmediate=function(cb){var handle=nextHandle++;return activeHandles[handle]=!0,RESOLVED.then((function(){return findAndClearHandle(handle)&&cb()})),handle},Immediate_clearImmediate=function(handle){findAndClearHandle(handle)},AsapAction=function(_super){function AsapAction(scheduler,work){var _this=_super.call(this,scheduler,work)||this;return _this.scheduler=scheduler,_this.work=work,_this}return tslib_es6.ZT(AsapAction,_super),AsapAction.prototype.requestAsyncId=function(scheduler,id,delay){return void 0===delay&&(delay=0),null!==delay&&delay>0?_super.prototype.requestAsyncId.call(this,scheduler,id,delay):(scheduler.actions.push(this),scheduler.scheduled||(scheduler.scheduled=Immediate_setImmediate(scheduler.flush.bind(scheduler,null))))},AsapAction.prototype.recycleAsyncId=function(scheduler,id,delay){if(void 0===delay&&(delay=0),null!==delay&&delay>0||null===delay&&this.delay>0)return _super.prototype.recycleAsyncId.call(this,scheduler,id,delay);0===scheduler.actions.length&&(Immediate_clearImmediate(id),scheduler.scheduled=void 0)},AsapAction}(__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js").o),AsapScheduler=function(_super){function AsapScheduler(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_es6.ZT(AsapScheduler,_super),AsapScheduler.prototype.flush=function(action){this.active=!0,this.scheduled=void 0;var error,actions=this.actions,index=-1,count=actions.length;action=action||actions.shift();do{if(error=action.execute(action.state,action.delay))break}while(++index<count&&(action=actions.shift()));if(this.active=!1,error){for(;++index<count&&(action=actions.shift());)action.unsubscribe();throw error}},AsapScheduler}(__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js").v),asapScheduler=new AsapScheduler(AsapAction),asap=asapScheduler},"./node_modules/rxjs/_esm5/internal/scheduler/async.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{P:function(){return async},z:function(){return asyncScheduler}});var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js"),asyncScheduler=new(__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js").v)(_AsyncAction__WEBPACK_IMPORTED_MODULE_1__.o),async=asyncScheduler},"./node_modules/rxjs/_esm5/internal/scheduler/queue.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{c:function(){return queue},N:function(){return queueScheduler}});var tslib_es6=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),QueueAction=function(_super){function QueueAction(scheduler,work){var _this=_super.call(this,scheduler,work)||this;return _this.scheduler=scheduler,_this.work=work,_this}return tslib_es6.ZT(QueueAction,_super),QueueAction.prototype.schedule=function(state,delay){return void 0===delay&&(delay=0),delay>0?_super.prototype.schedule.call(this,state,delay):(this.delay=delay,this.state=state,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(state,delay){return delay>0||this.closed?_super.prototype.execute.call(this,state,delay):this._execute(state,delay)},QueueAction.prototype.requestAsyncId=function(scheduler,id,delay){return void 0===delay&&(delay=0),null!==delay&&delay>0||null===delay&&this.delay>0?_super.prototype.requestAsyncId.call(this,scheduler,id,delay):scheduler.flush(this)},QueueAction}(__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncAction.js").o),QueueScheduler=function(_super){function QueueScheduler(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_es6.ZT(QueueScheduler,_super),QueueScheduler}(__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/AsyncScheduler.js").v),queueScheduler=new QueueScheduler(QueueAction),queue=queueScheduler},"./node_modules/rxjs/_esm5/internal/symbol/iterator.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function getSymbolIterator(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}__webpack_require__.d(__webpack_exports__,{hZ:function(){return iterator}});var iterator=getSymbolIterator()},"./node_modules/rxjs/_esm5/internal/symbol/observable.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{L:function(){return observable}});var observable=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},"./node_modules/rxjs/_esm5/internal/symbol/rxSubscriber.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{b:function(){return rxSubscriber}});var rxSubscriber=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},"./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return ArgumentOutOfRangeError}});var ArgumentOutOfRangeError=function(){function ArgumentOutOfRangeErrorImpl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ArgumentOutOfRangeErrorImpl.prototype=Object.create(Error.prototype),ArgumentOutOfRangeErrorImpl}()},"./node_modules/rxjs/_esm5/internal/util/EmptyError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{K:function(){return EmptyError}});var EmptyError=function(){function EmptyErrorImpl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return EmptyErrorImpl.prototype=Object.create(Error.prototype),EmptyErrorImpl}()},"./node_modules/rxjs/_esm5/internal/util/ObjectUnsubscribedError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{N:function(){return ObjectUnsubscribedError}});var ObjectUnsubscribedError=function(){function ObjectUnsubscribedErrorImpl(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ObjectUnsubscribedErrorImpl.prototype=Object.create(Error.prototype),ObjectUnsubscribedErrorImpl}()},"./node_modules/rxjs/_esm5/internal/util/TimeoutError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{W:function(){return TimeoutError}});var TimeoutError=function(){function TimeoutErrorImpl(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return TimeoutErrorImpl.prototype=Object.create(Error.prototype),TimeoutErrorImpl}()},"./node_modules/rxjs/_esm5/internal/util/UnsubscriptionError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{B:function(){return UnsubscriptionError}});var UnsubscriptionError=function(){function UnsubscriptionErrorImpl(errors){return Error.call(this),this.message=errors?errors.length+" errors occurred during unsubscription:\n"+errors.map((function(err,i){return i+1+") "+err.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=errors,this}return UnsubscriptionErrorImpl.prototype=Object.create(Error.prototype),UnsubscriptionErrorImpl}()},"./node_modules/rxjs/_esm5/internal/util/canReportError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{_:function(){return canReportError}});var _Subscriber__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js");function canReportError(observer){for(;observer;){var _a=observer,closed_1=_a.closed,destination=_a.destination,isStopped=_a.isStopped;if(closed_1||isStopped)return!1;observer=destination&&destination instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__.L?destination:null}return!0}},"./node_modules/rxjs/_esm5/internal/util/hostReportError.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function hostReportError(err){setTimeout((function(){throw err}),0)}__webpack_require__.d(__webpack_exports__,{z:function(){return hostReportError}})},"./node_modules/rxjs/_esm5/internal/util/identity.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function identity(x){return x}__webpack_require__.d(__webpack_exports__,{y:function(){return identity}})},"./node_modules/rxjs/_esm5/internal/util/isArray.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return isArray}});var isArray=function(){return Array.isArray||function(x){return x&&"number"==typeof x.length}}()},"./node_modules/rxjs/_esm5/internal/util/isArrayLike.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{z:function(){return isArrayLike}});var isArrayLike=function(x){return x&&"number"==typeof x.length&&"function"!=typeof x}},"./node_modules/rxjs/_esm5/internal/util/isFunction.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function isFunction(x){return"function"==typeof x}__webpack_require__.d(__webpack_exports__,{m:function(){return isFunction}})},"./node_modules/rxjs/_esm5/internal/util/isNumeric.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{k:function(){return isNumeric}});var _isArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArray.js");function isNumeric(val){return!(0,_isArray__WEBPACK_IMPORTED_MODULE_0__.k)(val)&&val-parseFloat(val)+1>=0}},"./node_modules/rxjs/_esm5/internal/util/isObject.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function isObject(x){return null!==x&&"object"==typeof x}__webpack_require__.d(__webpack_exports__,{K:function(){return isObject}})},"./node_modules/rxjs/_esm5/internal/util/isPromise.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function isPromise(value){return!!value&&"function"!=typeof value.subscribe&&"function"==typeof value.then}__webpack_require__.d(__webpack_exports__,{t:function(){return isPromise}})},"./node_modules/rxjs/_esm5/internal/util/isScheduler.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function isScheduler(value){return value&&"function"==typeof value.schedule}__webpack_require__.d(__webpack_exports__,{K:function(){return isScheduler}})},"./node_modules/rxjs/_esm5/internal/util/noop.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function noop(){}__webpack_require__.d(__webpack_exports__,{Z:function(){return noop}})},"./node_modules/rxjs/_esm5/internal/util/not.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";function not(pred,thisArg){function notPred(){return!notPred.pred.apply(notPred.thisArg,arguments)}return notPred.pred=pred,notPred.thisArg=thisArg,notPred}__webpack_require__.d(__webpack_exports__,{f:function(){return not}})},"./node_modules/rxjs/_esm5/internal/util/pipe.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{U:function(){return pipeFromArray},z:function(){return pipe}});var _identity__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/identity.js");function pipe(){for(var fns=[],_i=0;_i<arguments.length;_i++)fns[_i]=arguments[_i];return pipeFromArray(fns)}function pipeFromArray(fns){return 0===fns.length?_identity__WEBPACK_IMPORTED_MODULE_0__.y:1===fns.length?fns[0]:function piped(input){return fns.reduce((function(prev,fn){return fn(prev)}),input)}}},"./node_modules/rxjs/_esm5/internal/util/subscribeTo.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{s:function(){return subscribeTo}});var subscribeToArray=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeToArray.js"),hostReportError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/hostReportError.js"),symbol_iterator=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/iterator.js"),observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/symbol/observable.js"),isArrayLike=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArrayLike.js"),isPromise=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isPromise.js"),isObject=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isObject.js"),subscribeTo=function(result){if(result&&"function"==typeof result[observable.L])return obj=result,function(subscriber){var obs=obj[observable.L]();if("function"!=typeof obs.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return obs.subscribe(subscriber)};if((0,isArrayLike.z)(result))return(0,subscribeToArray.V)(result);if((0,isPromise.t)(result))return promise=result,function(subscriber){return promise.then((function(value){subscriber.closed||(subscriber.next(value),subscriber.complete())}),(function(err){return subscriber.error(err)})).then(null,hostReportError.z),subscriber};if(result&&"function"==typeof result[symbol_iterator.hZ])return iterable=result,function(subscriber){for(var iterator=iterable[symbol_iterator.hZ]();;){var item=void 0;try{item=iterator.next()}catch(err){return subscriber.error(err),subscriber}if(item.done){subscriber.complete();break}if(subscriber.next(item.value),subscriber.closed)break}return"function"==typeof iterator.return&&subscriber.add((function(){iterator.return&&iterator.return()})),subscriber};var iterable,promise,obj,value=(0,isObject.K)(result)?"an invalid object":"'"+result+"'";throw new TypeError("You provided "+value+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},"./node_modules/rxjs/_esm5/internal/util/subscribeToArray.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{V:function(){return subscribeToArray}});var subscribeToArray=function(array){return function(subscriber){for(var i=0,len=array.length;i<len&&!subscriber.closed;i++)subscriber.next(array[i]);subscriber.complete()}}},"./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{D:function(){return subscribeToResult}});var tslib_es6=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),InnerSubscriber=function(_super){function InnerSubscriber(parent,outerValue,outerIndex){var _this=_super.call(this)||this;return _this.parent=parent,_this.outerValue=outerValue,_this.outerIndex=outerIndex,_this.index=0,_this}return tslib_es6.ZT(InnerSubscriber,_super),InnerSubscriber.prototype._next=function(value){this.parent.notifyNext(this.outerValue,value,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(error){this.parent.notifyError(error,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js").L),subscribeTo=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeTo.js"),Observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js");function subscribeToResult(outerSubscriber,result,outerValue,outerIndex,innerSubscriber){if(void 0===innerSubscriber&&(innerSubscriber=new InnerSubscriber(outerSubscriber,outerValue,outerIndex)),!innerSubscriber.closed)return result instanceof Observable.y?result.subscribe(innerSubscriber):(0,subscribeTo.s)(result)(innerSubscriber)}},"./node_modules/rxjs/_esm5/operators/index.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{audit:function(){return audit},auditTime:function(){return auditTime},buffer:function(){return buffer},bufferCount:function(){return bufferCount},bufferTime:function(){return bufferTime},bufferToggle:function(){return bufferToggle},bufferWhen:function(){return bufferWhen},catchError:function(){return catchError},combineAll:function(){return combineAll},combineLatest:function(){return combineLatest_combineLatest},concat:function(){return concat_concat},concatAll:function(){return concatAll.u},concatMap:function(){return concatMap},concatMapTo:function(){return concatMapTo},count:function(){return count},debounce:function(){return debounce},debounceTime:function(){return debounceTime},defaultIfEmpty:function(){return defaultIfEmpty},delay:function(){return delay},delayWhen:function(){return delayWhen},dematerialize:function(){return dematerialize},distinct:function(){return distinct},distinctUntilChanged:function(){return distinctUntilChanged},distinctUntilKeyChanged:function(){return distinctUntilKeyChanged},elementAt:function(){return elementAt},endWith:function(){return endWith},every:function(){return every},exhaust:function(){return exhaust},exhaustMap:function(){return exhaustMap},expand:function(){return expand},filter:function(){return filter.h},finalize:function(){return finalize},find:function(){return find},findIndex:function(){return findIndex},first:function(){return first},flatMap:function(){return mergeMap.VS},groupBy:function(){return groupBy.v},ignoreElements:function(){return ignoreElements},isEmpty:function(){return isEmpty},last:function(){return last},map:function(){return map.U},mapTo:function(){return mapTo},materialize:function(){return materialize},max:function(){return max},merge:function(){return merge_merge},mergeAll:function(){return mergeAll.J},mergeMap:function(){return mergeMap.zg},mergeMapTo:function(){return mergeMapTo},mergeScan:function(){return mergeScan},min:function(){return min},multicast:function(){return multicast},observeOn:function(){return observeOn.QV},onErrorResumeNext:function(){return onErrorResumeNext},pairwise:function(){return pairwise},partition:function(){return partition},pluck:function(){return pluck},publish:function(){return publish},publishBehavior:function(){return publishBehavior},publishLast:function(){return publishLast},publishReplay:function(){return publishReplay},race:function(){return race_race},reduce:function(){return reduce},refCount:function(){return refCount.x},repeat:function(){return repeat},repeatWhen:function(){return repeatWhen},retry:function(){return retry},retryWhen:function(){return retryWhen},sample:function(){return sample},sampleTime:function(){return sampleTime},scan:function(){return scan},sequenceEqual:function(){return sequenceEqual},share:function(){return share},shareReplay:function(){return shareReplay},single:function(){return single},skip:function(){return skip},skipLast:function(){return skipLast},skipUntil:function(){return skipUntil},skipWhile:function(){return skipWhile},startWith:function(){return startWith},subscribeOn:function(){return subscribeOn},switchAll:function(){return switchAll},switchMap:function(){return switchMap},switchMapTo:function(){return switchMapTo},take:function(){return take},takeLast:function(){return takeLast},takeUntil:function(){return takeUntil},takeWhile:function(){return takeWhile},tap:function(){return tap},throttle:function(){return throttle},throttleTime:function(){return throttleTime},throwIfEmpty:function(){return throwIfEmpty},timeInterval:function(){return timeInterval},timeout:function(){return timeout},timeoutWith:function(){return timeoutWith},timestamp:function(){return timestamp},toArray:function(){return toArray},window:function(){return window_window},windowCount:function(){return windowCount},windowTime:function(){return windowTime},windowToggle:function(){return windowToggle},windowWhen:function(){return windowWhen},withLatestFrom:function(){return withLatestFrom},zip:function(){return zip_zip},zipAll:function(){return zipAll}});var tslib_es6=__webpack_require__("./node_modules/rxjs/node_modules/tslib/tslib.es6.js"),innerSubscribe=__webpack_require__("./node_modules/rxjs/_esm5/internal/innerSubscribe.js");function audit(durationSelector){return function auditOperatorFunction(source){return source.lift(new AuditOperator(durationSelector))}}var AuditOperator=function(){function AuditOperator(durationSelector){this.durationSelector=durationSelector}return AuditOperator.prototype.call=function(subscriber,source){return source.subscribe(new AuditSubscriber(subscriber,this.durationSelector))},AuditOperator}(),AuditSubscriber=function(_super){function AuditSubscriber(destination,durationSelector){var _this=_super.call(this,destination)||this;return _this.durationSelector=durationSelector,_this.hasValue=!1,_this}return tslib_es6.ZT(AuditSubscriber,_super),AuditSubscriber.prototype._next=function(value){if(this.value=value,this.hasValue=!0,!this.throttled){var duration=void 0;try{duration=(0,this.durationSelector)(value)}catch(err){return this.destination.error(err)}var innerSubscription=(0,innerSubscribe.ft)(duration,new innerSubscribe.IY(this));!innerSubscription||innerSubscription.closed?this.clearThrottle():this.add(this.throttled=innerSubscription)}},AuditSubscriber.prototype.clearThrottle=function(){var value=this.value,hasValue=this.hasValue,throttled=this.throttled;throttled&&(this.remove(throttled),this.throttled=void 0,throttled.unsubscribe()),hasValue&&(this.value=void 0,this.hasValue=!1,this.destination.next(value))},AuditSubscriber.prototype.notifyNext=function(){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(innerSubscribe.Ds),scheduler_async=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/async.js"),timer=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/timer.js");function auditTime(duration,scheduler){return void 0===scheduler&&(scheduler=scheduler_async.P),audit((function(){return(0,timer.H)(duration,scheduler)}))}function buffer(closingNotifier){return function bufferOperatorFunction(source){return source.lift(new BufferOperator(closingNotifier))}}var BufferOperator=function(){function BufferOperator(closingNotifier){this.closingNotifier=closingNotifier}return BufferOperator.prototype.call=function(subscriber,source){return source.subscribe(new BufferSubscriber(subscriber,this.closingNotifier))},BufferOperator}(),BufferSubscriber=function(_super){function BufferSubscriber(destination,closingNotifier){var _this=_super.call(this,destination)||this;return _this.buffer=[],_this.add((0,innerSubscribe.ft)(closingNotifier,new innerSubscribe.IY(_this))),_this}return tslib_es6.ZT(BufferSubscriber,_super),BufferSubscriber.prototype._next=function(value){this.buffer.push(value)},BufferSubscriber.prototype.notifyNext=function(){var buffer=this.buffer;this.buffer=[],this.destination.next(buffer)},BufferSubscriber}(innerSubscribe.Ds),Subscriber=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscriber.js");function bufferCount(bufferSize,startBufferEvery){return void 0===startBufferEvery&&(startBufferEvery=null),function bufferCountOperatorFunction(source){return source.lift(new BufferCountOperator(bufferSize,startBufferEvery))}}var BufferCountOperator=function(){function BufferCountOperator(bufferSize,startBufferEvery){this.bufferSize=bufferSize,this.startBufferEvery=startBufferEvery,this.subscriberClass=startBufferEvery&&bufferSize!==startBufferEvery?BufferSkipCountSubscriber:BufferCountSubscriber}return BufferCountOperator.prototype.call=function(subscriber,source){return source.subscribe(new this.subscriberClass(subscriber,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),BufferCountSubscriber=function(_super){function BufferCountSubscriber(destination,bufferSize){var _this=_super.call(this,destination)||this;return _this.bufferSize=bufferSize,_this.buffer=[],_this}return tslib_es6.ZT(BufferCountSubscriber,_super),BufferCountSubscriber.prototype._next=function(value){var buffer=this.buffer;buffer.push(value),buffer.length==this.bufferSize&&(this.destination.next(buffer),this.buffer=[])},BufferCountSubscriber.prototype._complete=function(){var buffer=this.buffer;buffer.length>0&&this.destination.next(buffer),_super.prototype._complete.call(this)},BufferCountSubscriber}(Subscriber.L),BufferSkipCountSubscriber=function(_super){function BufferSkipCountSubscriber(destination,bufferSize,startBufferEvery){var _this=_super.call(this,destination)||this;return _this.bufferSize=bufferSize,_this.startBufferEvery=startBufferEvery,_this.buffers=[],_this.count=0,_this}return tslib_es6.ZT(BufferSkipCountSubscriber,_super),BufferSkipCountSubscriber.prototype._next=function(value){var bufferSize=this.bufferSize,startBufferEvery=this.startBufferEvery,buffers=this.buffers,count=this.count;this.count++,count%startBufferEvery==0&&buffers.push([]);for(var i=buffers.length;i--;){var buffer=buffers[i];buffer.push(value),buffer.length===bufferSize&&(buffers.splice(i,1),this.destination.next(buffer))}},BufferSkipCountSubscriber.prototype._complete=function(){for(var buffers=this.buffers,destination=this.destination;buffers.length>0;){var buffer=buffers.shift();buffer.length>0&&destination.next(buffer)}_super.prototype._complete.call(this)},BufferSkipCountSubscriber}(Subscriber.L),isScheduler=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isScheduler.js");function bufferTime(bufferTimeSpan){var length=arguments.length,scheduler=scheduler_async.P;(0,isScheduler.K)(arguments[arguments.length-1])&&(scheduler=arguments[arguments.length-1],length--);var bufferCreationInterval=null;length>=2&&(bufferCreationInterval=arguments[1]);var maxBufferSize=Number.POSITIVE_INFINITY;return length>=3&&(maxBufferSize=arguments[2]),function bufferTimeOperatorFunction(source){return source.lift(new BufferTimeOperator(bufferTimeSpan,bufferCreationInterval,maxBufferSize,scheduler))}}var BufferTimeOperator=function(){function BufferTimeOperator(bufferTimeSpan,bufferCreationInterval,maxBufferSize,scheduler){this.bufferTimeSpan=bufferTimeSpan,this.bufferCreationInterval=bufferCreationInterval,this.maxBufferSize=maxBufferSize,this.scheduler=scheduler}return BufferTimeOperator.prototype.call=function(subscriber,source){return source.subscribe(new BufferTimeSubscriber(subscriber,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),Context=function(){return function Context(){this.buffer=[]}}(),BufferTimeSubscriber=function(_super){function BufferTimeSubscriber(destination,bufferTimeSpan,bufferCreationInterval,maxBufferSize,scheduler){var _this=_super.call(this,destination)||this;_this.bufferTimeSpan=bufferTimeSpan,_this.bufferCreationInterval=bufferCreationInterval,_this.maxBufferSize=maxBufferSize,_this.scheduler=scheduler,_this.contexts=[];var context=_this.openContext();if(_this.timespanOnly=null==bufferCreationInterval||bufferCreationInterval<0,_this.timespanOnly){var timeSpanOnlyState={subscriber:_this,context:context,bufferTimeSpan:bufferTimeSpan};_this.add(context.closeAction=scheduler.schedule(dispatchBufferTimeSpanOnly,bufferTimeSpan,timeSpanOnlyState))}else{var closeState={subscriber:_this,context:context},creationState={bufferTimeSpan:bufferTimeSpan,bufferCreationInterval:bufferCreationInterval,subscriber:_this,scheduler:scheduler};_this.add(context.closeAction=scheduler.schedule(dispatchBufferClose,bufferTimeSpan,closeState)),_this.add(scheduler.schedule(dispatchBufferCreation,bufferCreationInterval,creationState))}return _this}return tslib_es6.ZT(BufferTimeSubscriber,_super),BufferTimeSubscriber.prototype._next=function(value){for(var filledBufferContext,contexts=this.contexts,len=contexts.length,i=0;i<len;i++){var context_1=contexts[i],buffer=context_1.buffer;buffer.push(value),buffer.length==this.maxBufferSize&&(filledBufferContext=context_1)}filledBufferContext&&this.onBufferFull(filledBufferContext)},BufferTimeSubscriber.prototype._error=function(err){this.contexts.length=0,_super.prototype._error.call(this,err)},BufferTimeSubscriber.prototype._complete=function(){for(var contexts=this.contexts,destination=this.destination;contexts.length>0;){var context_2=contexts.shift();destination.next(context_2.buffer)}_super.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(context){this.closeContext(context);var closeAction=context.closeAction;if(closeAction.unsubscribe(),this.remove(closeAction),!this.closed&&this.timespanOnly){context=this.openContext();var bufferTimeSpan=this.bufferTimeSpan,timeSpanOnlyState={subscriber:this,context:context,bufferTimeSpan:bufferTimeSpan};this.add(context.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,bufferTimeSpan,timeSpanOnlyState))}},BufferTimeSubscriber.prototype.openContext=function(){var context=new Context;return this.contexts.push(context),context},BufferTimeSubscriber.prototype.closeContext=function(context){this.destination.next(context.buffer);var contexts=this.contexts;(contexts?contexts.indexOf(context):-1)>=0&&contexts.splice(contexts.indexOf(context),1)},BufferTimeSubscriber}(Subscriber.L);function dispatchBufferTimeSpanOnly(state){var subscriber=state.subscriber,prevContext=state.context;prevContext&&subscriber.closeContext(prevContext),subscriber.closed||(state.context=subscriber.openContext(),state.context.closeAction=this.schedule(state,state.bufferTimeSpan))}function dispatchBufferCreation(state){var bufferCreationInterval=state.bufferCreationInterval,bufferTimeSpan=state.bufferTimeSpan,subscriber=state.subscriber,scheduler=state.scheduler,context=subscriber.openContext();subscriber.closed||(subscriber.add(context.closeAction=scheduler.schedule(dispatchBufferClose,bufferTimeSpan,{subscriber:subscriber,context:context})),this.schedule(state,bufferCreationInterval))}function dispatchBufferClose(arg){var subscriber=arg.subscriber,context=arg.context;subscriber.closeContext(context)}var Subscription=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subscription.js"),subscribeToResult=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/subscribeToResult.js"),OuterSubscriber=__webpack_require__("./node_modules/rxjs/_esm5/internal/OuterSubscriber.js");function bufferToggle(openings,closingSelector){return function bufferToggleOperatorFunction(source){return source.lift(new BufferToggleOperator(openings,closingSelector))}}var BufferToggleOperator=function(){function BufferToggleOperator(openings,closingSelector){this.openings=openings,this.closingSelector=closingSelector}return BufferToggleOperator.prototype.call=function(subscriber,source){return source.subscribe(new BufferToggleSubscriber(subscriber,this.openings,this.closingSelector))},BufferToggleOperator}(),BufferToggleSubscriber=function(_super){function BufferToggleSubscriber(destination,openings,closingSelector){var _this=_super.call(this,destination)||this;return _this.closingSelector=closingSelector,_this.contexts=[],_this.add((0,subscribeToResult.D)(_this,openings)),_this}return tslib_es6.ZT(BufferToggleSubscriber,_super),BufferToggleSubscriber.prototype._next=function(value){for(var contexts=this.contexts,len=contexts.length,i=0;i<len;i++)contexts[i].buffer.push(value)},BufferToggleSubscriber.prototype._error=function(err){for(var contexts=this.contexts;contexts.length>0;){var context_1=contexts.shift();context_1.subscription.unsubscribe(),context_1.buffer=null,context_1.subscription=null}this.contexts=null,_super.prototype._error.call(this,err)},BufferToggleSubscriber.prototype._complete=function(){for(var contexts=this.contexts;contexts.length>0;){var context_2=contexts.shift();this.destination.next(context_2.buffer),context_2.subscription.unsubscribe(),context_2.buffer=null,context_2.subscription=null}this.contexts=null,_super.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(outerValue,innerValue){outerValue?this.closeBuffer(outerValue):this.openBuffer(innerValue)},BufferToggleSubscriber.prototype.notifyComplete=function(innerSub){this.closeBuffer(innerSub.context)},BufferToggleSubscriber.prototype.openBuffer=function(value){try{var closingNotifier=this.closingSelector.call(this,value);closingNotifier&&this.trySubscribe(closingNotifier)}catch(err){this._error(err)}},BufferToggleSubscriber.prototype.closeBuffer=function(context){var contexts=this.contexts;if(contexts&&context){var buffer=context.buffer,subscription=context.subscription;this.destination.next(buffer),contexts.splice(contexts.indexOf(context),1),this.remove(subscription),subscription.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(closingNotifier){var contexts=this.contexts,subscription=new Subscription.w,context={buffer:[],subscription:subscription};contexts.push(context);var innerSubscription=(0,subscribeToResult.D)(this,closingNotifier,context);!innerSubscription||innerSubscription.closed?this.closeBuffer(context):(innerSubscription.context=context,this.add(innerSubscription),subscription.add(innerSubscription))},BufferToggleSubscriber}(OuterSubscriber.L);function bufferWhen(closingSelector){return function(source){return source.lift(new BufferWhenOperator(closingSelector))}}var BufferWhenOperator=function(){function BufferWhenOperator(closingSelector){this.closingSelector=closingSelector}return BufferWhenOperator.prototype.call=function(subscriber,source){return source.subscribe(new BufferWhenSubscriber(subscriber,this.closingSelector))},BufferWhenOperator}(),BufferWhenSubscriber=function(_super){function BufferWhenSubscriber(destination,closingSelector){var _this=_super.call(this,destination)||this;return _this.closingSelector=closingSelector,_this.subscribing=!1,_this.openBuffer(),_this}return tslib_es6.ZT(BufferWhenSubscriber,_super),BufferWhenSubscriber.prototype._next=function(value){this.buffer.push(value)},BufferWhenSubscriber.prototype._complete=function(){var buffer=this.buffer;buffer&&this.destination.next(buffer),_super.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var closingSubscription=this.closingSubscription;closingSubscription&&(this.remove(closingSubscription),closingSubscription.unsubscribe());var closingNotifier,buffer=this.buffer;this.buffer&&this.destination.next(buffer),this.buffer=[];try{closingNotifier=(0,this.closingSelector)()}catch(err){return this.error(err)}closingSubscription=new Subscription.w,this.closingSubscription=closingSubscription,this.add(closingSubscription),this.subscribing=!0,closingSubscription.add((0,innerSubscribe.ft)(closingNotifier,new innerSubscribe.IY(this))),this.subscribing=!1},BufferWhenSubscriber}(innerSubscribe.Ds);function catchError(selector){return function catchErrorOperatorFunction(source){var operator=new CatchOperator(selector),caught=source.lift(operator);return operator.caught=caught}}var CatchOperator=function(){function CatchOperator(selector){this.selector=selector}return CatchOperator.prototype.call=function(subscriber,source){return source.subscribe(new CatchSubscriber(subscriber,this.selector,this.caught))},CatchOperator}(),CatchSubscriber=function(_super){function CatchSubscriber(destination,selector,caught){var _this=_super.call(this,destination)||this;return _this.selector=selector,_this.caught=caught,_this}return tslib_es6.ZT(CatchSubscriber,_super),CatchSubscriber.prototype.error=function(err){if(!this.isStopped){var result=void 0;try{result=this.selector(err,this.caught)}catch(err2){return void _super.prototype.error.call(this,err2)}this._unsubscribeAndRecycle();var innerSubscriber=new innerSubscribe.IY(this);this.add(innerSubscriber);var innerSubscription=(0,innerSubscribe.ft)(result,innerSubscriber);innerSubscription!==innerSubscriber&&this.add(innerSubscription)}},CatchSubscriber}(innerSubscribe.Ds),combineLatest=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/combineLatest.js");function combineAll(project){return function(source){return source.lift(new combineLatest.Ms(project))}}var util_isArray=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isArray.js"),observable_from=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/from.js");function combineLatest_combineLatest(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];var project=null;return"function"==typeof observables[observables.length-1]&&(project=observables.pop()),1===observables.length&&(0,util_isArray.k)(observables[0])&&(observables=observables[0].slice()),function(source){return source.lift.call((0,observable_from.D)([source].concat(observables)),new combineLatest.Ms(project))}}var concat=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/concat.js");function concat_concat(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];return function(source){return source.lift.call(concat.z.apply(void 0,[source].concat(observables)))}}var concatAll=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/concatAll.js"),mergeMap=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/mergeMap.js");function concatMap(project,resultSelector){return(0,mergeMap.zg)(project,resultSelector,1)}function concatMapTo(innerObservable,resultSelector){return concatMap((function(){return innerObservable}),resultSelector)}function count(predicate){return function(source){return source.lift(new CountOperator(predicate,source))}}var CountOperator=function(){function CountOperator(predicate,source){this.predicate=predicate,this.source=source}return CountOperator.prototype.call=function(subscriber,source){return source.subscribe(new CountSubscriber(subscriber,this.predicate,this.source))},CountOperator}(),CountSubscriber=function(_super){function CountSubscriber(destination,predicate,source){var _this=_super.call(this,destination)||this;return _this.predicate=predicate,_this.source=source,_this.count=0,_this.index=0,_this}return tslib_es6.ZT(CountSubscriber,_super),CountSubscriber.prototype._next=function(value){this.predicate?this._tryPredicate(value):this.count++},CountSubscriber.prototype._tryPredicate=function(value){var result;try{result=this.predicate(value,this.index++,this.source)}catch(err){return void this.destination.error(err)}result&&this.count++},CountSubscriber.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},CountSubscriber}(Subscriber.L);function debounce(durationSelector){return function(source){return source.lift(new DebounceOperator(durationSelector))}}var DebounceOperator=function(){function DebounceOperator(durationSelector){this.durationSelector=durationSelector}return DebounceOperator.prototype.call=function(subscriber,source){return source.subscribe(new DebounceSubscriber(subscriber,this.durationSelector))},DebounceOperator}(),DebounceSubscriber=function(_super){function DebounceSubscriber(destination,durationSelector){var _this=_super.call(this,destination)||this;return _this.durationSelector=durationSelector,_this.hasValue=!1,_this}return tslib_es6.ZT(DebounceSubscriber,_super),DebounceSubscriber.prototype._next=function(value){try{var result=this.durationSelector.call(this,value);result&&this._tryNext(value,result)}catch(err){this.destination.error(err)}},DebounceSubscriber.prototype._complete=function(){this.emitValue(),this.destination.complete()},DebounceSubscriber.prototype._tryNext=function(value,duration){var subscription=this.durationSubscription;this.value=value,this.hasValue=!0,subscription&&(subscription.unsubscribe(),this.remove(subscription)),(subscription=(0,innerSubscribe.ft)(duration,new innerSubscribe.IY(this)))&&!subscription.closed&&this.add(this.durationSubscription=subscription)},DebounceSubscriber.prototype.notifyNext=function(){this.emitValue()},DebounceSubscriber.prototype.notifyComplete=function(){this.emitValue()},DebounceSubscriber.prototype.emitValue=function(){if(this.hasValue){var value=this.value,subscription=this.durationSubscription;subscription&&(this.durationSubscription=void 0,subscription.unsubscribe(),this.remove(subscription)),this.value=void 0,this.hasValue=!1,_super.prototype._next.call(this,value)}},DebounceSubscriber}(innerSubscribe.Ds);function debounceTime(dueTime,scheduler){return void 0===scheduler&&(scheduler=scheduler_async.P),function(source){return source.lift(new DebounceTimeOperator(dueTime,scheduler))}}var DebounceTimeOperator=function(){function DebounceTimeOperator(dueTime,scheduler){this.dueTime=dueTime,this.scheduler=scheduler}return DebounceTimeOperator.prototype.call=function(subscriber,source){return source.subscribe(new DebounceTimeSubscriber(subscriber,this.dueTime,this.scheduler))},DebounceTimeOperator}(),DebounceTimeSubscriber=function(_super){function DebounceTimeSubscriber(destination,dueTime,scheduler){var _this=_super.call(this,destination)||this;return _this.dueTime=dueTime,_this.scheduler=scheduler,_this.debouncedSubscription=null,_this.lastValue=null,_this.hasValue=!1,_this}return tslib_es6.ZT(DebounceTimeSubscriber,_super),DebounceTimeSubscriber.prototype._next=function(value){this.clearDebounce(),this.lastValue=value,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},DebounceTimeSubscriber.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},DebounceTimeSubscriber.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var lastValue=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(lastValue)}},DebounceTimeSubscriber.prototype.clearDebounce=function(){var debouncedSubscription=this.debouncedSubscription;null!==debouncedSubscription&&(this.remove(debouncedSubscription),debouncedSubscription.unsubscribe(),this.debouncedSubscription=null)},DebounceTimeSubscriber}(Subscriber.L);function dispatchNext(subscriber){subscriber.debouncedNext()}function defaultIfEmpty(defaultValue){return void 0===defaultValue&&(defaultValue=null),function(source){return source.lift(new DefaultIfEmptyOperator(defaultValue))}}var DefaultIfEmptyOperator=function(){function DefaultIfEmptyOperator(defaultValue){this.defaultValue=defaultValue}return DefaultIfEmptyOperator.prototype.call=function(subscriber,source){return source.subscribe(new DefaultIfEmptySubscriber(subscriber,this.defaultValue))},DefaultIfEmptyOperator}(),DefaultIfEmptySubscriber=function(_super){function DefaultIfEmptySubscriber(destination,defaultValue){var _this=_super.call(this,destination)||this;return _this.defaultValue=defaultValue,_this.isEmpty=!0,_this}return tslib_es6.ZT(DefaultIfEmptySubscriber,_super),DefaultIfEmptySubscriber.prototype._next=function(value){this.isEmpty=!1,this.destination.next(value)},DefaultIfEmptySubscriber.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},DefaultIfEmptySubscriber}(Subscriber.L);function isDate(value){return value instanceof Date&&!isNaN(+value)}var Notification=__webpack_require__("./node_modules/rxjs/_esm5/internal/Notification.js");function delay(delay,scheduler){void 0===scheduler&&(scheduler=scheduler_async.P);var delayFor=isDate(delay)?+delay-scheduler.now():Math.abs(delay);return function(source){return source.lift(new DelayOperator(delayFor,scheduler))}}var DelayOperator=function(){function DelayOperator(delay,scheduler){this.delay=delay,this.scheduler=scheduler}return DelayOperator.prototype.call=function(subscriber,source){return source.subscribe(new DelaySubscriber(subscriber,this.delay,this.scheduler))},DelayOperator}(),DelaySubscriber=function(_super){function DelaySubscriber(destination,delay,scheduler){var _this=_super.call(this,destination)||this;return _this.delay=delay,_this.scheduler=scheduler,_this.queue=[],_this.active=!1,_this.errored=!1,_this}return tslib_es6.ZT(DelaySubscriber,_super),DelaySubscriber.dispatch=function(state){for(var source=state.source,queue=source.queue,scheduler=state.scheduler,destination=state.destination;queue.length>0&&queue[0].time-scheduler.now()<=0;)queue.shift().notification.observe(destination);if(queue.length>0){var delay_1=Math.max(0,queue[0].time-scheduler.now());this.schedule(state,delay_1)}else this.unsubscribe(),source.active=!1},DelaySubscriber.prototype._schedule=function(scheduler){this.active=!0,this.destination.add(scheduler.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:scheduler}))},DelaySubscriber.prototype.scheduleNotification=function(notification){if(!0!==this.errored){var scheduler=this.scheduler,message=new DelayMessage(scheduler.now()+this.delay,notification);this.queue.push(message),!1===this.active&&this._schedule(scheduler)}},DelaySubscriber.prototype._next=function(value){this.scheduleNotification(Notification.P.createNext(value))},DelaySubscriber.prototype._error=function(err){this.errored=!0,this.queue=[],this.destination.error(err),this.unsubscribe()},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(Notification.P.createComplete()),this.unsubscribe()},DelaySubscriber}(Subscriber.L),DelayMessage=function(){return function DelayMessage(time,notification){this.time=time,this.notification=notification}}(),Observable=__webpack_require__("./node_modules/rxjs/_esm5/internal/Observable.js");function delayWhen(delayDurationSelector,subscriptionDelay){return subscriptionDelay?function(source){return new SubscriptionDelayObservable(source,subscriptionDelay).lift(new DelayWhenOperator(delayDurationSelector))}:function(source){return source.lift(new DelayWhenOperator(delayDurationSelector))}}var DelayWhenOperator=function(){function DelayWhenOperator(delayDurationSelector){this.delayDurationSelector=delayDurationSelector}return DelayWhenOperator.prototype.call=function(subscriber,source){return source.subscribe(new DelayWhenSubscriber(subscriber,this.delayDurationSelector))},DelayWhenOperator}(),DelayWhenSubscriber=function(_super){function DelayWhenSubscriber(destination,delayDurationSelector){var _this=_super.call(this,destination)||this;return _this.delayDurationSelector=delayDurationSelector,_this.completed=!1,_this.delayNotifierSubscriptions=[],_this.index=0,_this}return tslib_es6.ZT(DelayWhenSubscriber,_super),DelayWhenSubscriber.prototype.notifyNext=function(outerValue,_innerValue,_outerIndex,_innerIndex,innerSub){this.destination.next(outerValue),this.removeSubscription(innerSub),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(error,innerSub){this._error(error)},DelayWhenSubscriber.prototype.notifyComplete=function(innerSub){var value=this.removeSubscription(innerSub);value&&this.destination.next(value),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(value){var index=this.index++;try{var delayNotifier=this.delayDurationSelector(value,index);delayNotifier&&this.tryDelay(delayNotifier,value)}catch(err){this.destination.error(err)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},DelayWhenSubscriber.prototype.removeSubscription=function(subscription){subscription.unsubscribe();var subscriptionIdx=this.delayNotifierSubscriptions.indexOf(subscription);return-1!==subscriptionIdx&&this.delayNotifierSubscriptions.splice(subscriptionIdx,1),subscription.outerValue},DelayWhenSubscriber.prototype.tryDelay=function(delayNotifier,value){var notifierSubscription=(0,subscribeToResult.D)(this,delayNotifier,value);notifierSubscription&&!notifierSubscription.closed&&(this.destination.add(notifierSubscription),this.delayNotifierSubscriptions.push(notifierSubscription))},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(OuterSubscriber.L),SubscriptionDelayObservable=function(_super){function SubscriptionDelayObservable(source,subscriptionDelay){var _this=_super.call(this)||this;return _this.source=source,_this.subscriptionDelay=subscriptionDelay,_this}return tslib_es6.ZT(SubscriptionDelayObservable,_super),SubscriptionDelayObservable.prototype._subscribe=function(subscriber){this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber,this.source))},SubscriptionDelayObservable}(Observable.y),SubscriptionDelaySubscriber=function(_super){function SubscriptionDelaySubscriber(parent,source){var _this=_super.call(this)||this;return _this.parent=parent,_this.source=source,_this.sourceSubscribed=!1,_this}return tslib_es6.ZT(SubscriptionDelaySubscriber,_super),SubscriptionDelaySubscriber.prototype._next=function(unused){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(err){this.unsubscribe(),this.parent.error(err)},SubscriptionDelaySubscriber.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(Subscriber.L);function dematerialize(){return function dematerializeOperatorFunction(source){return source.lift(new DeMaterializeOperator)}}var DeMaterializeOperator=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(subscriber,source){return source.subscribe(new DeMaterializeSubscriber(subscriber))},DeMaterializeOperator}(),DeMaterializeSubscriber=function(_super){function DeMaterializeSubscriber(destination){return _super.call(this,destination)||this}return tslib_es6.ZT(DeMaterializeSubscriber,_super),DeMaterializeSubscriber.prototype._next=function(value){value.observe(this.destination)},DeMaterializeSubscriber}(Subscriber.L);function distinct(keySelector,flushes){return function(source){return source.lift(new DistinctOperator(keySelector,flushes))}}var DistinctOperator=function(){function DistinctOperator(keySelector,flushes){this.keySelector=keySelector,this.flushes=flushes}return DistinctOperator.prototype.call=function(subscriber,source){return source.subscribe(new DistinctSubscriber(subscriber,this.keySelector,this.flushes))},DistinctOperator}(),DistinctSubscriber=function(_super){function DistinctSubscriber(destination,keySelector,flushes){var _this=_super.call(this,destination)||this;return _this.keySelector=keySelector,_this.values=new Set,flushes&&_this.add((0,innerSubscribe.ft)(flushes,new innerSubscribe.IY(_this))),_this}return tslib_es6.ZT(DistinctSubscriber,_super),DistinctSubscriber.prototype.notifyNext=function(){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(error){this._error(error)},DistinctSubscriber.prototype._next=function(value){this.keySelector?this._useKeySelector(value):this._finalizeNext(value,value)},DistinctSubscriber.prototype._useKeySelector=function(value){var key,destination=this.destination;try{key=this.keySelector(value)}catch(err){return void destination.error(err)}this._finalizeNext(key,value)},DistinctSubscriber.prototype._finalizeNext=function(key,value){var values=this.values;values.has(key)||(values.add(key),this.destination.next(value))},DistinctSubscriber}(innerSubscribe.Ds);function distinctUntilChanged(compare,keySelector){return function(source){return source.lift(new DistinctUntilChangedOperator(compare,keySelector))}}var DistinctUntilChangedOperator=function(){function DistinctUntilChangedOperator(compare,keySelector){this.compare=compare,this.keySelector=keySelector}return DistinctUntilChangedOperator.prototype.call=function(subscriber,source){return source.subscribe(new DistinctUntilChangedSubscriber(subscriber,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),DistinctUntilChangedSubscriber=function(_super){function DistinctUntilChangedSubscriber(destination,compare,keySelector){var _this=_super.call(this,destination)||this;return _this.keySelector=keySelector,_this.hasKey=!1,"function"==typeof compare&&(_this.compare=compare),_this}return tslib_es6.ZT(DistinctUntilChangedSubscriber,_super),DistinctUntilChangedSubscriber.prototype.compare=function(x,y){return x===y},DistinctUntilChangedSubscriber.prototype._next=function(value){var key;try{var keySelector=this.keySelector;key=keySelector?keySelector(value):value}catch(err){return this.destination.error(err)}var result=!1;if(this.hasKey)try{result=(0,this.compare)(this.key,key)}catch(err){return this.destination.error(err)}else this.hasKey=!0;result||(this.key=key,this.destination.next(value))},DistinctUntilChangedSubscriber}(Subscriber.L);function distinctUntilKeyChanged(key,compare){return distinctUntilChanged((function(x,y){return compare?compare(x[key],y[key]):x[key]===y[key]}))}var ArgumentOutOfRangeError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/ArgumentOutOfRangeError.js"),filter=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/filter.js"),EmptyError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/EmptyError.js");function throwIfEmpty(errorFactory){return void 0===errorFactory&&(errorFactory=defaultErrorFactory),function(source){return source.lift(new ThrowIfEmptyOperator(errorFactory))}}var ThrowIfEmptyOperator=function(){function ThrowIfEmptyOperator(errorFactory){this.errorFactory=errorFactory}return ThrowIfEmptyOperator.prototype.call=function(subscriber,source){return source.subscribe(new ThrowIfEmptySubscriber(subscriber,this.errorFactory))},ThrowIfEmptyOperator}(),ThrowIfEmptySubscriber=function(_super){function ThrowIfEmptySubscriber(destination,errorFactory){var _this=_super.call(this,destination)||this;return _this.errorFactory=errorFactory,_this.hasValue=!1,_this}return tslib_es6.ZT(ThrowIfEmptySubscriber,_super),ThrowIfEmptySubscriber.prototype._next=function(value){this.hasValue=!0,this.destination.next(value)},ThrowIfEmptySubscriber.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var err=void 0;try{err=this.errorFactory()}catch(e){err=e}this.destination.error(err)},ThrowIfEmptySubscriber}(Subscriber.L);function defaultErrorFactory(){return new EmptyError.K}var empty=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/empty.js");function take(count){return function(source){return 0===count?(0,empty.c)():source.lift(new TakeOperator(count))}}var TakeOperator=function(){function TakeOperator(total){if(this.total=total,this.total<0)throw new ArgumentOutOfRangeError.W}return TakeOperator.prototype.call=function(subscriber,source){return source.subscribe(new TakeSubscriber(subscriber,this.total))},TakeOperator}(),TakeSubscriber=function(_super){function TakeSubscriber(destination,total){var _this=_super.call(this,destination)||this;return _this.total=total,_this.count=0,_this}return tslib_es6.ZT(TakeSubscriber,_super),TakeSubscriber.prototype._next=function(value){var total=this.total,count=++this.count;count<=total&&(this.destination.next(value),count===total&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(Subscriber.L);function elementAt(index,defaultValue){if(index<0)throw new ArgumentOutOfRangeError.W;var hasDefaultValue=arguments.length>=2;return function(source){return source.pipe((0,filter.h)((function(v,i){return i===index})),take(1),hasDefaultValue?defaultIfEmpty(defaultValue):throwIfEmpty((function(){return new ArgumentOutOfRangeError.W})))}}var of=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/of.js");function endWith(){for(var array=[],_i=0;_i<arguments.length;_i++)array[_i]=arguments[_i];return function(source){return(0,concat.z)(source,of.of.apply(void 0,array))}}function every(predicate,thisArg){return function(source){return source.lift(new EveryOperator(predicate,thisArg,source))}}var EveryOperator=function(){function EveryOperator(predicate,thisArg,source){this.predicate=predicate,this.thisArg=thisArg,this.source=source}return EveryOperator.prototype.call=function(observer,source){return source.subscribe(new EverySubscriber(observer,this.predicate,this.thisArg,this.source))},EveryOperator}(),EverySubscriber=function(_super){function EverySubscriber(destination,predicate,thisArg,source){var _this=_super.call(this,destination)||this;return _this.predicate=predicate,_this.thisArg=thisArg,_this.source=source,_this.index=0,_this.thisArg=thisArg||_this,_this}return tslib_es6.ZT(EverySubscriber,_super),EverySubscriber.prototype.notifyComplete=function(everyValueMatch){this.destination.next(everyValueMatch),this.destination.complete()},EverySubscriber.prototype._next=function(value){var result=!1;try{result=this.predicate.call(this.thisArg,value,this.index++,this.source)}catch(err){return void this.destination.error(err)}result||this.notifyComplete(!1)},EverySubscriber.prototype._complete=function(){this.notifyComplete(!0)},EverySubscriber}(Subscriber.L);function exhaust(){return function(source){return source.lift(new SwitchFirstOperator)}}var SwitchFirstOperator=function(){function SwitchFirstOperator(){}return SwitchFirstOperator.prototype.call=function(subscriber,source){return source.subscribe(new SwitchFirstSubscriber(subscriber))},SwitchFirstOperator}(),SwitchFirstSubscriber=function(_super){function SwitchFirstSubscriber(destination){var _this=_super.call(this,destination)||this;return _this.hasCompleted=!1,_this.hasSubscription=!1,_this}return tslib_es6.ZT(SwitchFirstSubscriber,_super),SwitchFirstSubscriber.prototype._next=function(value){this.hasSubscription||(this.hasSubscription=!0,this.add((0,innerSubscribe.ft)(value,new innerSubscribe.IY(this))))},SwitchFirstSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},SwitchFirstSubscriber.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},SwitchFirstSubscriber}(innerSubscribe.Ds),map=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/map.js");function exhaustMap(project,resultSelector){return resultSelector?function(source){return source.pipe(exhaustMap((function(a,i){return(0,observable_from.D)(project(a,i)).pipe((0,map.U)((function(b,ii){return resultSelector(a,b,i,ii)})))})))}:function(source){return source.lift(new ExhaustMapOperator(project))}}var ExhaustMapOperator=function(){function ExhaustMapOperator(project){this.project=project}return ExhaustMapOperator.prototype.call=function(subscriber,source){return source.subscribe(new ExhaustMapSubscriber(subscriber,this.project))},ExhaustMapOperator}(),ExhaustMapSubscriber=function(_super){function ExhaustMapSubscriber(destination,project){var _this=_super.call(this,destination)||this;return _this.project=project,_this.hasSubscription=!1,_this.hasCompleted=!1,_this.index=0,_this}return tslib_es6.ZT(ExhaustMapSubscriber,_super),ExhaustMapSubscriber.prototype._next=function(value){this.hasSubscription||this.tryNext(value)},ExhaustMapSubscriber.prototype.tryNext=function(value){var result,index=this.index++;try{result=this.project(value,index)}catch(err){return void this.destination.error(err)}this.hasSubscription=!0,this._innerSub(result)},ExhaustMapSubscriber.prototype._innerSub=function(result){var innerSubscriber=new innerSubscribe.IY(this),destination=this.destination;destination.add(innerSubscriber);var innerSubscription=(0,innerSubscribe.ft)(result,innerSubscriber);innerSubscription!==innerSubscriber&&destination.add(innerSubscription)},ExhaustMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},ExhaustMapSubscriber.prototype.notifyNext=function(innerValue){this.destination.next(innerValue)},ExhaustMapSubscriber.prototype.notifyError=function(err){this.destination.error(err)},ExhaustMapSubscriber.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},ExhaustMapSubscriber}(innerSubscribe.Ds);function expand(project,concurrent,scheduler){return void 0===concurrent&&(concurrent=Number.POSITIVE_INFINITY),concurrent=(concurrent||0)<1?Number.POSITIVE_INFINITY:concurrent,function(source){return source.lift(new ExpandOperator(project,concurrent,scheduler))}}var ExpandOperator=function(){function ExpandOperator(project,concurrent,scheduler){this.project=project,this.concurrent=concurrent,this.scheduler=scheduler}return ExpandOperator.prototype.call=function(subscriber,source){return source.subscribe(new ExpandSubscriber(subscriber,this.project,this.concurrent,this.scheduler))},ExpandOperator}(),ExpandSubscriber=function(_super){function ExpandSubscriber(destination,project,concurrent,scheduler){var _this=_super.call(this,destination)||this;return _this.project=project,_this.concurrent=concurrent,_this.scheduler=scheduler,_this.index=0,_this.active=0,_this.hasCompleted=!1,concurrent<Number.POSITIVE_INFINITY&&(_this.buffer=[]),_this}return tslib_es6.ZT(ExpandSubscriber,_super),ExpandSubscriber.dispatch=function(arg){var subscriber=arg.subscriber,result=arg.result,value=arg.value,index=arg.index;subscriber.subscribeToProjection(result,value,index)},ExpandSubscriber.prototype._next=function(value){var destination=this.destination;if(destination.closed)this._complete();else{var index=this.index++;if(this.active<this.concurrent){destination.next(value);try{var result=(0,this.project)(value,index);if(this.scheduler){var state={subscriber:this,result:result,value:value,index:index};this.destination.add(this.scheduler.schedule(ExpandSubscriber.dispatch,0,state))}else this.subscribeToProjection(result,value,index)}catch(e){destination.error(e)}}else this.buffer.push(value)}},ExpandSubscriber.prototype.subscribeToProjection=function(result,value,index){this.active++,this.destination.add((0,innerSubscribe.ft)(result,new innerSubscribe.IY(this)))},ExpandSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},ExpandSubscriber.prototype.notifyNext=function(innerValue){this._next(innerValue)},ExpandSubscriber.prototype.notifyComplete=function(){var buffer=this.buffer;this.active--,buffer&&buffer.length>0&&this._next(buffer.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(innerSubscribe.Ds);function finalize(callback){return function(source){return source.lift(new FinallyOperator(callback))}}var FinallyOperator=function(){function FinallyOperator(callback){this.callback=callback}return FinallyOperator.prototype.call=function(subscriber,source){return source.subscribe(new FinallySubscriber(subscriber,this.callback))},FinallyOperator}(),FinallySubscriber=function(_super){function FinallySubscriber(destination,callback){var _this=_super.call(this,destination)||this;return _this.add(new Subscription.w(callback)),_this}return tslib_es6.ZT(FinallySubscriber,_super),FinallySubscriber}(Subscriber.L);function find(predicate,thisArg){if("function"!=typeof predicate)throw new TypeError("predicate is not a function");return function(source){return source.lift(new FindValueOperator(predicate,source,!1,thisArg))}}var FindValueOperator=function(){function FindValueOperator(predicate,source,yieldIndex,thisArg){this.predicate=predicate,this.source=source,this.yieldIndex=yieldIndex,this.thisArg=thisArg}return FindValueOperator.prototype.call=function(observer,source){return source.subscribe(new FindValueSubscriber(observer,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}(),FindValueSubscriber=function(_super){function FindValueSubscriber(destination,predicate,source,yieldIndex,thisArg){var _this=_super.call(this,destination)||this;return _this.predicate=predicate,_this.source=source,_this.yieldIndex=yieldIndex,_this.thisArg=thisArg,_this.index=0,_this}return tslib_es6.ZT(FindValueSubscriber,_super),FindValueSubscriber.prototype.notifyComplete=function(value){var destination=this.destination;destination.next(value),destination.complete(),this.unsubscribe()},FindValueSubscriber.prototype._next=function(value){var predicate=this.predicate,thisArg=this.thisArg,index=this.index++;try{predicate.call(thisArg||this,value,index,this.source)&&this.notifyComplete(this.yieldIndex?index:value)}catch(err){this.destination.error(err)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(Subscriber.L);function findIndex(predicate,thisArg){return function(source){return source.lift(new FindValueOperator(predicate,source,!0,thisArg))}}var identity=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/identity.js");function first(predicate,defaultValue){var hasDefaultValue=arguments.length>=2;return function(source){return source.pipe(predicate?(0,filter.h)((function(v,i){return predicate(v,i,source)})):identity.y,take(1),hasDefaultValue?defaultIfEmpty(defaultValue):throwIfEmpty((function(){return new EmptyError.K})))}}var groupBy=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/groupBy.js");function ignoreElements(){return function ignoreElementsOperatorFunction(source){return source.lift(new IgnoreElementsOperator)}}var IgnoreElementsOperator=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(subscriber,source){return source.subscribe(new IgnoreElementsSubscriber(subscriber))},IgnoreElementsOperator}(),IgnoreElementsSubscriber=function(_super){function IgnoreElementsSubscriber(){return null!==_super&&_super.apply(this,arguments)||this}return tslib_es6.ZT(IgnoreElementsSubscriber,_super),IgnoreElementsSubscriber.prototype._next=function(unused){},IgnoreElementsSubscriber}(Subscriber.L);function isEmpty(){return function(source){return source.lift(new IsEmptyOperator)}}var IsEmptyOperator=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(observer,source){return source.subscribe(new IsEmptySubscriber(observer))},IsEmptyOperator}(),IsEmptySubscriber=function(_super){function IsEmptySubscriber(destination){return _super.call(this,destination)||this}return tslib_es6.ZT(IsEmptySubscriber,_super),IsEmptySubscriber.prototype.notifyComplete=function(isEmpty){var destination=this.destination;destination.next(isEmpty),destination.complete()},IsEmptySubscriber.prototype._next=function(value){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(Subscriber.L);function takeLast(count){return function takeLastOperatorFunction(source){return 0===count?(0,empty.c)():source.lift(new TakeLastOperator(count))}}var TakeLastOperator=function(){function TakeLastOperator(total){if(this.total=total,this.total<0)throw new ArgumentOutOfRangeError.W}return TakeLastOperator.prototype.call=function(subscriber,source){return source.subscribe(new TakeLastSubscriber(subscriber,this.total))},TakeLastOperator}(),TakeLastSubscriber=function(_super){function TakeLastSubscriber(destination,total){var _this=_super.call(this,destination)||this;return _this.total=total,_this.ring=new Array,_this.count=0,_this}return tslib_es6.ZT(TakeLastSubscriber,_super),TakeLastSubscriber.prototype._next=function(value){var ring=this.ring,total=this.total,count=this.count++;ring.length<total?ring.push(value):ring[count%total]=value},TakeLastSubscriber.prototype._complete=function(){var destination=this.destination,count=this.count;if(count>0)for(var total=this.count>=this.total?this.total:this.count,ring=this.ring,i=0;i<total;i++){var idx=count++%total;destination.next(ring[idx])}destination.complete()},TakeLastSubscriber}(Subscriber.L);function last(predicate,defaultValue){var hasDefaultValue=arguments.length>=2;return function(source){return source.pipe(predicate?(0,filter.h)((function(v,i){return predicate(v,i,source)})):identity.y,takeLast(1),hasDefaultValue?defaultIfEmpty(defaultValue):throwIfEmpty((function(){return new EmptyError.K})))}}function mapTo(value){return function(source){return source.lift(new MapToOperator(value))}}var MapToOperator=function(){function MapToOperator(value){this.value=value}return MapToOperator.prototype.call=function(subscriber,source){return source.subscribe(new MapToSubscriber(subscriber,this.value))},MapToOperator}(),MapToSubscriber=function(_super){function MapToSubscriber(destination,value){var _this=_super.call(this,destination)||this;return _this.value=value,_this}return tslib_es6.ZT(MapToSubscriber,_super),MapToSubscriber.prototype._next=function(x){this.destination.next(this.value)},MapToSubscriber}(Subscriber.L);function materialize(){return function materializeOperatorFunction(source){return source.lift(new MaterializeOperator)}}var MaterializeOperator=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(subscriber,source){return source.subscribe(new MaterializeSubscriber(subscriber))},MaterializeOperator}(),MaterializeSubscriber=function(_super){function MaterializeSubscriber(destination){return _super.call(this,destination)||this}return tslib_es6.ZT(MaterializeSubscriber,_super),MaterializeSubscriber.prototype._next=function(value){this.destination.next(Notification.P.createNext(value))},MaterializeSubscriber.prototype._error=function(err){var destination=this.destination;destination.next(Notification.P.createError(err)),destination.complete()},MaterializeSubscriber.prototype._complete=function(){var destination=this.destination;destination.next(Notification.P.createComplete()),destination.complete()},MaterializeSubscriber}(Subscriber.L);function scan(accumulator,seed){var hasSeed=!1;return arguments.length>=2&&(hasSeed=!0),function scanOperatorFunction(source){return source.lift(new ScanOperator(accumulator,seed,hasSeed))}}var ScanOperator=function(){function ScanOperator(accumulator,seed,hasSeed){void 0===hasSeed&&(hasSeed=!1),this.accumulator=accumulator,this.seed=seed,this.hasSeed=hasSeed}return ScanOperator.prototype.call=function(subscriber,source){return source.subscribe(new ScanSubscriber(subscriber,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),ScanSubscriber=function(_super){function ScanSubscriber(destination,accumulator,_seed,hasSeed){var _this=_super.call(this,destination)||this;return _this.accumulator=accumulator,_this._seed=_seed,_this.hasSeed=hasSeed,_this.index=0,_this}return tslib_es6.ZT(ScanSubscriber,_super),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(value){this.hasSeed=!0,this._seed=value},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(value){if(this.hasSeed)return this._tryNext(value);this.seed=value,this.destination.next(value)},ScanSubscriber.prototype._tryNext=function(value){var result,index=this.index++;try{result=this.accumulator(this.seed,value,index)}catch(err){this.destination.error(err)}this.seed=result,this.destination.next(result)},ScanSubscriber}(Subscriber.L),pipe=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/pipe.js");function reduce(accumulator,seed){return arguments.length>=2?function reduceOperatorFunctionWithSeed(source){return(0,pipe.z)(scan(accumulator,seed),takeLast(1),defaultIfEmpty(seed))(source)}:function reduceOperatorFunction(source){return(0,pipe.z)(scan((function(acc,value,index){return accumulator(acc,value,index+1)})),takeLast(1))(source)}}function max(comparer){return reduce("function"==typeof comparer?function(x,y){return comparer(x,y)>0?x:y}:function(x,y){return x>y?x:y})}var merge=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/merge.js");function merge_merge(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];return function(source){return source.lift.call(merge.T.apply(void 0,[source].concat(observables)))}}var mergeAll=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/mergeAll.js");function mergeMapTo(innerObservable,resultSelector,concurrent){return void 0===concurrent&&(concurrent=Number.POSITIVE_INFINITY),"function"==typeof resultSelector?(0,mergeMap.zg)((function(){return innerObservable}),resultSelector,concurrent):("number"==typeof resultSelector&&(concurrent=resultSelector),(0,mergeMap.zg)((function(){return innerObservable}),concurrent))}function mergeScan(accumulator,seed,concurrent){return void 0===concurrent&&(concurrent=Number.POSITIVE_INFINITY),function(source){return source.lift(new MergeScanOperator(accumulator,seed,concurrent))}}var MergeScanOperator=function(){function MergeScanOperator(accumulator,seed,concurrent){this.accumulator=accumulator,this.seed=seed,this.concurrent=concurrent}return MergeScanOperator.prototype.call=function(subscriber,source){return source.subscribe(new MergeScanSubscriber(subscriber,this.accumulator,this.seed,this.concurrent))},MergeScanOperator}(),MergeScanSubscriber=function(_super){function MergeScanSubscriber(destination,accumulator,acc,concurrent){var _this=_super.call(this,destination)||this;return _this.accumulator=accumulator,_this.acc=acc,_this.concurrent=concurrent,_this.hasValue=!1,_this.hasCompleted=!1,_this.buffer=[],_this.active=0,_this.index=0,_this}return tslib_es6.ZT(MergeScanSubscriber,_super),MergeScanSubscriber.prototype._next=function(value){if(this.active<this.concurrent){var index=this.index++,destination=this.destination,ish=void 0;try{ish=(0,this.accumulator)(this.acc,value,index)}catch(e){return destination.error(e)}this.active++,this._innerSub(ish)}else this.buffer.push(value)},MergeScanSubscriber.prototype._innerSub=function(ish){var innerSubscriber=new innerSubscribe.IY(this),destination=this.destination;destination.add(innerSubscriber);var innerSubscription=(0,innerSubscribe.ft)(ish,innerSubscriber);innerSubscription!==innerSubscriber&&destination.add(innerSubscription)},MergeScanSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},MergeScanSubscriber.prototype.notifyNext=function(innerValue){var destination=this.destination;this.acc=innerValue,this.hasValue=!0,destination.next(innerValue)},MergeScanSubscriber.prototype.notifyComplete=function(){var buffer=this.buffer;this.active--,buffer.length>0?this._next(buffer.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(innerSubscribe.Ds);function min(comparer){return reduce("function"==typeof comparer?function(x,y){return comparer(x,y)<0?x:y}:function(x,y){return x<y?x:y})}var ConnectableObservable=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/ConnectableObservable.js");function multicast(subjectOrSubjectFactory,selector){return function multicastOperatorFunction(source){var subjectFactory;if(subjectFactory="function"==typeof subjectOrSubjectFactory?subjectOrSubjectFactory:function subjectFactory(){return subjectOrSubjectFactory},"function"==typeof selector)return source.lift(new MulticastOperator(subjectFactory,selector));var connectable=Object.create(source,ConnectableObservable.N);return connectable.source=source,connectable.subjectFactory=subjectFactory,connectable}}var MulticastOperator=function(){function MulticastOperator(subjectFactory,selector){this.subjectFactory=subjectFactory,this.selector=selector}return MulticastOperator.prototype.call=function(subscriber,source){var selector=this.selector,subject=this.subjectFactory(),subscription=selector(subject).subscribe(subscriber);return subscription.add(source.subscribe(subject)),subscription},MulticastOperator}(),observeOn=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/observeOn.js");function onErrorResumeNext(){for(var nextSources=[],_i=0;_i<arguments.length;_i++)nextSources[_i]=arguments[_i];return 1===nextSources.length&&(0,util_isArray.k)(nextSources[0])&&(nextSources=nextSources[0]),function(source){return source.lift(new OnErrorResumeNextOperator(nextSources))}}var OnErrorResumeNextOperator=function(){function OnErrorResumeNextOperator(nextSources){this.nextSources=nextSources}return OnErrorResumeNextOperator.prototype.call=function(subscriber,source){return source.subscribe(new OnErrorResumeNextSubscriber(subscriber,this.nextSources))},OnErrorResumeNextOperator}(),OnErrorResumeNextSubscriber=function(_super){function OnErrorResumeNextSubscriber(destination,nextSources){var _this=_super.call(this,destination)||this;return _this.destination=destination,_this.nextSources=nextSources,_this}return tslib_es6.ZT(OnErrorResumeNextSubscriber,_super),OnErrorResumeNextSubscriber.prototype.notifyError=function(){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype.notifyComplete=function(){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype._error=function(err){this.subscribeToNextSource(),this.unsubscribe()},OnErrorResumeNextSubscriber.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},OnErrorResumeNextSubscriber.prototype.subscribeToNextSource=function(){var next=this.nextSources.shift();if(next){var innerSubscriber=new innerSubscribe.IY(this),destination=this.destination;destination.add(innerSubscriber);var innerSubscription=(0,innerSubscribe.ft)(next,innerSubscriber);innerSubscription!==innerSubscriber&&destination.add(innerSubscription)}else this.destination.complete()},OnErrorResumeNextSubscriber}(innerSubscribe.Ds);function pairwise(){return function(source){return source.lift(new PairwiseOperator)}}var PairwiseOperator=function(){function PairwiseOperator(){}return PairwiseOperator.prototype.call=function(subscriber,source){return source.subscribe(new PairwiseSubscriber(subscriber))},PairwiseOperator}(),PairwiseSubscriber=function(_super){function PairwiseSubscriber(destination){var _this=_super.call(this,destination)||this;return _this.hasPrev=!1,_this}return tslib_es6.ZT(PairwiseSubscriber,_super),PairwiseSubscriber.prototype._next=function(value){var pair;this.hasPrev?pair=[this.prev,value]:this.hasPrev=!0,this.prev=value,pair&&this.destination.next(pair)},PairwiseSubscriber}(Subscriber.L),not=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/not.js");function partition(predicate,thisArg){return function(source){return[(0,filter.h)(predicate,thisArg)(source),(0,filter.h)((0,not.f)(predicate,thisArg))(source)]}}function pluck(){for(var properties=[],_i=0;_i<arguments.length;_i++)properties[_i]=arguments[_i];var length=properties.length;if(0===length)throw new Error("list of properties cannot be empty.");return function(source){return(0,map.U)(plucker(properties,length))(source)}}function plucker(props,length){return function(x){for(var currentProp=x,i=0;i<length;i++){var p=null!=currentProp?currentProp[props[i]]:void 0;if(void 0===p)return;currentProp=p}return currentProp}}var Subject=__webpack_require__("./node_modules/rxjs/_esm5/internal/Subject.js");function publish(selector){return selector?multicast((function(){return new Subject.xQ}),selector):multicast(new Subject.xQ)}var BehaviorSubject=__webpack_require__("./node_modules/rxjs/_esm5/internal/BehaviorSubject.js");function publishBehavior(value){return function(source){return multicast(new BehaviorSubject.X(value))(source)}}var AsyncSubject=__webpack_require__("./node_modules/rxjs/_esm5/internal/AsyncSubject.js");function publishLast(){return function(source){return multicast(new AsyncSubject.c)(source)}}var ReplaySubject=__webpack_require__("./node_modules/rxjs/_esm5/internal/ReplaySubject.js");function publishReplay(bufferSize,windowTime,selectorOrScheduler,scheduler){selectorOrScheduler&&"function"!=typeof selectorOrScheduler&&(scheduler=selectorOrScheduler);var selector="function"==typeof selectorOrScheduler?selectorOrScheduler:void 0,subject=new ReplaySubject.t(bufferSize,windowTime,scheduler);return function(source){return multicast((function(){return subject}),selector)(source)}}var race=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/race.js");function race_race(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];return function raceOperatorFunction(source){return 1===observables.length&&(0,util_isArray.k)(observables[0])&&(observables=observables[0]),source.lift.call(race.S3.apply(void 0,[source].concat(observables)))}}function repeat(count){return void 0===count&&(count=-1),function(source){return 0===count?(0,empty.c)():count<0?source.lift(new RepeatOperator(-1,source)):source.lift(new RepeatOperator(count-1,source))}}var RepeatOperator=function(){function RepeatOperator(count,source){this.count=count,this.source=source}return RepeatOperator.prototype.call=function(subscriber,source){return source.subscribe(new RepeatSubscriber(subscriber,this.count,this.source))},RepeatOperator}(),RepeatSubscriber=function(_super){function RepeatSubscriber(destination,count,source){var _this=_super.call(this,destination)||this;return _this.count=count,_this.source=source,_this}return tslib_es6.ZT(RepeatSubscriber,_super),RepeatSubscriber.prototype.complete=function(){if(!this.isStopped){var source=this.source,count=this.count;if(0===count)return _super.prototype.complete.call(this);count>-1&&(this.count=count-1),source.subscribe(this._unsubscribeAndRecycle())}},RepeatSubscriber}(Subscriber.L);function repeatWhen(notifier){return function(source){return source.lift(new RepeatWhenOperator(notifier))}}var RepeatWhenOperator=function(){function RepeatWhenOperator(notifier){this.notifier=notifier}return RepeatWhenOperator.prototype.call=function(subscriber,source){return source.subscribe(new RepeatWhenSubscriber(subscriber,this.notifier,source))},RepeatWhenOperator}(),RepeatWhenSubscriber=function(_super){function RepeatWhenSubscriber(destination,notifier,source){var _this=_super.call(this,destination)||this;return _this.notifier=notifier,_this.source=source,_this.sourceIsBeingSubscribedTo=!0,_this}return tslib_es6.ZT(RepeatWhenSubscriber,_super),RepeatWhenSubscriber.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},RepeatWhenSubscriber.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return _super.prototype.complete.call(this)},RepeatWhenSubscriber.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return _super.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var notifications=this.notifications,retriesSubscription=this.retriesSubscription;notifications&&(notifications.unsubscribe(),this.notifications=void 0),retriesSubscription&&(retriesSubscription.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RepeatWhenSubscriber.prototype._unsubscribeAndRecycle=function(){var _unsubscribe=this._unsubscribe;return this._unsubscribe=null,_super.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=_unsubscribe,this},RepeatWhenSubscriber.prototype.subscribeToRetries=function(){var retries;this.notifications=new Subject.xQ;try{retries=(0,this.notifier)(this.notifications)}catch(e){return _super.prototype.complete.call(this)}this.retries=retries,this.retriesSubscription=(0,innerSubscribe.ft)(retries,new innerSubscribe.IY(this))},RepeatWhenSubscriber}(innerSubscribe.Ds);function retry(count){return void 0===count&&(count=-1),function(source){return source.lift(new RetryOperator(count,source))}}var RetryOperator=function(){function RetryOperator(count,source){this.count=count,this.source=source}return RetryOperator.prototype.call=function(subscriber,source){return source.subscribe(new RetrySubscriber(subscriber,this.count,this.source))},RetryOperator}(),RetrySubscriber=function(_super){function RetrySubscriber(destination,count,source){var _this=_super.call(this,destination)||this;return _this.count=count,_this.source=source,_this}return tslib_es6.ZT(RetrySubscriber,_super),RetrySubscriber.prototype.error=function(err){if(!this.isStopped){var source=this.source,count=this.count;if(0===count)return _super.prototype.error.call(this,err);count>-1&&(this.count=count-1),source.subscribe(this._unsubscribeAndRecycle())}},RetrySubscriber}(Subscriber.L);function retryWhen(notifier){return function(source){return source.lift(new RetryWhenOperator(notifier,source))}}var RetryWhenOperator=function(){function RetryWhenOperator(notifier,source){this.notifier=notifier,this.source=source}return RetryWhenOperator.prototype.call=function(subscriber,source){return source.subscribe(new RetryWhenSubscriber(subscriber,this.notifier,this.source))},RetryWhenOperator}(),RetryWhenSubscriber=function(_super){function RetryWhenSubscriber(destination,notifier,source){var _this=_super.call(this,destination)||this;return _this.notifier=notifier,_this.source=source,_this}return tslib_es6.ZT(RetryWhenSubscriber,_super),RetryWhenSubscriber.prototype.error=function(err){if(!this.isStopped){var errors=this.errors,retries=this.retries,retriesSubscription=this.retriesSubscription;if(retries)this.errors=void 0,this.retriesSubscription=void 0;else{errors=new Subject.xQ;try{retries=(0,this.notifier)(errors)}catch(e){return _super.prototype.error.call(this,e)}retriesSubscription=(0,innerSubscribe.ft)(retries,new innerSubscribe.IY(this))}this._unsubscribeAndRecycle(),this.errors=errors,this.retries=retries,this.retriesSubscription=retriesSubscription,errors.next(err)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var errors=this.errors,retriesSubscription=this.retriesSubscription;errors&&(errors.unsubscribe(),this.errors=void 0),retriesSubscription&&(retriesSubscription.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RetryWhenSubscriber.prototype.notifyNext=function(){var _unsubscribe=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=_unsubscribe,this.source.subscribe(this)},RetryWhenSubscriber}(innerSubscribe.Ds),refCount=__webpack_require__("./node_modules/rxjs/_esm5/internal/operators/refCount.js");function sample(notifier){return function(source){return source.lift(new SampleOperator(notifier))}}var SampleOperator=function(){function SampleOperator(notifier){this.notifier=notifier}return SampleOperator.prototype.call=function(subscriber,source){var sampleSubscriber=new SampleSubscriber(subscriber),subscription=source.subscribe(sampleSubscriber);return subscription.add((0,innerSubscribe.ft)(this.notifier,new innerSubscribe.IY(sampleSubscriber))),subscription},SampleOperator}(),SampleSubscriber=function(_super){function SampleSubscriber(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.hasValue=!1,_this}return tslib_es6.ZT(SampleSubscriber,_super),SampleSubscriber.prototype._next=function(value){this.value=value,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(innerSubscribe.Ds);function sampleTime(period,scheduler){return void 0===scheduler&&(scheduler=scheduler_async.P),function(source){return source.lift(new SampleTimeOperator(period,scheduler))}}var SampleTimeOperator=function(){function SampleTimeOperator(period,scheduler){this.period=period,this.scheduler=scheduler}return SampleTimeOperator.prototype.call=function(subscriber,source){return source.subscribe(new SampleTimeSubscriber(subscriber,this.period,this.scheduler))},SampleTimeOperator}(),SampleTimeSubscriber=function(_super){function SampleTimeSubscriber(destination,period,scheduler){var _this=_super.call(this,destination)||this;return _this.period=period,_this.scheduler=scheduler,_this.hasValue=!1,_this.add(scheduler.schedule(dispatchNotification,period,{subscriber:_this,period:period})),_this}return tslib_es6.ZT(SampleTimeSubscriber,_super),SampleTimeSubscriber.prototype._next=function(value){this.lastValue=value,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(Subscriber.L);function dispatchNotification(state){var subscriber=state.subscriber,period=state.period;subscriber.notifyNext(),this.schedule(state,period)}function sequenceEqual(compareTo,comparator){return function(source){return source.lift(new SequenceEqualOperator(compareTo,comparator))}}var SequenceEqualOperator=function(){function SequenceEqualOperator(compareTo,comparator){this.compareTo=compareTo,this.comparator=comparator}return SequenceEqualOperator.prototype.call=function(subscriber,source){return source.subscribe(new SequenceEqualSubscriber(subscriber,this.compareTo,this.comparator))},SequenceEqualOperator}(),SequenceEqualSubscriber=function(_super){function SequenceEqualSubscriber(destination,compareTo,comparator){var _this=_super.call(this,destination)||this;return _this.compareTo=compareTo,_this.comparator=comparator,_this._a=[],_this._b=[],_this._oneComplete=!1,_this.destination.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination,_this))),_this}return tslib_es6.ZT(SequenceEqualSubscriber,_super),SequenceEqualSubscriber.prototype._next=function(value){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(value),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},SequenceEqualSubscriber.prototype.checkValues=function(){for(var _a=this._a,_b=this._b,comparator=this.comparator;_a.length>0&&_b.length>0;){var a=_a.shift(),b=_b.shift(),areEqual=!1;try{areEqual=comparator?comparator(a,b):a===b}catch(e){this.destination.error(e)}areEqual||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(value){var destination=this.destination;destination.next(value),destination.complete()},SequenceEqualSubscriber.prototype.nextB=function(value){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(value),this.checkValues())},SequenceEqualSubscriber.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber}(Subscriber.L),SequenceEqualCompareToSubscriber=function(_super){function SequenceEqualCompareToSubscriber(destination,parent){var _this=_super.call(this,destination)||this;return _this.parent=parent,_this}return tslib_es6.ZT(SequenceEqualCompareToSubscriber,_super),SequenceEqualCompareToSubscriber.prototype._next=function(value){this.parent.nextB(value)},SequenceEqualCompareToSubscriber.prototype._error=function(err){this.parent.error(err),this.unsubscribe()},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},SequenceEqualCompareToSubscriber}(Subscriber.L);function shareSubjectFactory(){return new Subject.xQ}function share(){return function(source){return(0,refCount.x)()(multicast(shareSubjectFactory)(source))}}function shareReplay(configOrBufferSize,windowTime,scheduler){var config;return config=configOrBufferSize&&"object"==typeof configOrBufferSize?configOrBufferSize:{bufferSize:configOrBufferSize,windowTime:windowTime,refCount:!1,scheduler:scheduler},function(source){return source.lift(function shareReplayOperator(_a){var subject,subscription,_b=_a.bufferSize,bufferSize=void 0===_b?Number.POSITIVE_INFINITY:_b,_c=_a.windowTime,windowTime=void 0===_c?Number.POSITIVE_INFINITY:_c,useRefCount=_a.refCount,scheduler=_a.scheduler,refCount=0,hasError=!1,isComplete=!1;return function shareReplayOperation(source){var innerSub;refCount++,!subject||hasError?(hasError=!1,subject=new ReplaySubject.t(bufferSize,windowTime,scheduler),innerSub=subject.subscribe(this),subscription=source.subscribe({next:function(value){subject.next(value)},error:function(err){hasError=!0,subject.error(err)},complete:function(){isComplete=!0,subscription=void 0,subject.complete()}}),isComplete&&(subscription=void 0)):innerSub=subject.subscribe(this),this.add((function(){refCount--,innerSub.unsubscribe(),innerSub=void 0,subscription&&!isComplete&&useRefCount&&0===refCount&&(subscription.unsubscribe(),subscription=void 0,subject=void 0)}))}}(config))}}function single(predicate){return function(source){return source.lift(new SingleOperator(predicate,source))}}var SingleOperator=function(){function SingleOperator(predicate,source){this.predicate=predicate,this.source=source}return SingleOperator.prototype.call=function(subscriber,source){return source.subscribe(new SingleSubscriber(subscriber,this.predicate,this.source))},SingleOperator}(),SingleSubscriber=function(_super){function SingleSubscriber(destination,predicate,source){var _this=_super.call(this,destination)||this;return _this.predicate=predicate,_this.source=source,_this.seenValue=!1,_this.index=0,_this}return tslib_es6.ZT(SingleSubscriber,_super),SingleSubscriber.prototype.applySingleValue=function(value){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=value)},SingleSubscriber.prototype._next=function(value){var index=this.index++;this.predicate?this.tryNext(value,index):this.applySingleValue(value)},SingleSubscriber.prototype.tryNext=function(value,index){try{this.predicate(value,index,this.source)&&this.applySingleValue(value)}catch(err){this.destination.error(err)}},SingleSubscriber.prototype._complete=function(){var destination=this.destination;this.index>0?(destination.next(this.seenValue?this.singleValue:void 0),destination.complete()):destination.error(new EmptyError.K)},SingleSubscriber}(Subscriber.L);function skip(count){return function(source){return source.lift(new SkipOperator(count))}}var SkipOperator=function(){function SkipOperator(total){this.total=total}return SkipOperator.prototype.call=function(subscriber,source){return source.subscribe(new SkipSubscriber(subscriber,this.total))},SkipOperator}(),SkipSubscriber=function(_super){function SkipSubscriber(destination,total){var _this=_super.call(this,destination)||this;return _this.total=total,_this.count=0,_this}return tslib_es6.ZT(SkipSubscriber,_super),SkipSubscriber.prototype._next=function(x){++this.count>this.total&&this.destination.next(x)},SkipSubscriber}(Subscriber.L);function skipLast(count){return function(source){return source.lift(new SkipLastOperator(count))}}var SkipLastOperator=function(){function SkipLastOperator(_skipCount){if(this._skipCount=_skipCount,this._skipCount<0)throw new ArgumentOutOfRangeError.W}return SkipLastOperator.prototype.call=function(subscriber,source){return 0===this._skipCount?source.subscribe(new Subscriber.L(subscriber)):source.subscribe(new SkipLastSubscriber(subscriber,this._skipCount))},SkipLastOperator}(),SkipLastSubscriber=function(_super){function SkipLastSubscriber(destination,_skipCount){var _this=_super.call(this,destination)||this;return _this._skipCount=_skipCount,_this._count=0,_this._ring=new Array(_skipCount),_this}return tslib_es6.ZT(SkipLastSubscriber,_super),SkipLastSubscriber.prototype._next=function(value){var skipCount=this._skipCount,count=this._count++;if(count<skipCount)this._ring[count]=value;else{var currentIndex=count%skipCount,ring=this._ring,oldValue=ring[currentIndex];ring[currentIndex]=value,this.destination.next(oldValue)}},SkipLastSubscriber}(Subscriber.L);function skipUntil(notifier){return function(source){return source.lift(new SkipUntilOperator(notifier))}}var SkipUntilOperator=function(){function SkipUntilOperator(notifier){this.notifier=notifier}return SkipUntilOperator.prototype.call=function(destination,source){return source.subscribe(new SkipUntilSubscriber(destination,this.notifier))},SkipUntilOperator}(),SkipUntilSubscriber=function(_super){function SkipUntilSubscriber(destination,notifier){var _this=_super.call(this,destination)||this;_this.hasValue=!1;var innerSubscriber=new innerSubscribe.IY(_this);_this.add(innerSubscriber),_this.innerSubscription=innerSubscriber;var innerSubscription=(0,innerSubscribe.ft)(notifier,innerSubscriber);return innerSubscription!==innerSubscriber&&(_this.add(innerSubscription),_this.innerSubscription=innerSubscription),_this}return tslib_es6.ZT(SkipUntilSubscriber,_super),SkipUntilSubscriber.prototype._next=function(value){this.hasValue&&_super.prototype._next.call(this,value)},SkipUntilSubscriber.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},SkipUntilSubscriber.prototype.notifyComplete=function(){},SkipUntilSubscriber}(innerSubscribe.Ds);function skipWhile(predicate){return function(source){return source.lift(new SkipWhileOperator(predicate))}}var SkipWhileOperator=function(){function SkipWhileOperator(predicate){this.predicate=predicate}return SkipWhileOperator.prototype.call=function(subscriber,source){return source.subscribe(new SkipWhileSubscriber(subscriber,this.predicate))},SkipWhileOperator}(),SkipWhileSubscriber=function(_super){function SkipWhileSubscriber(destination,predicate){var _this=_super.call(this,destination)||this;return _this.predicate=predicate,_this.skipping=!0,_this.index=0,_this}return tslib_es6.ZT(SkipWhileSubscriber,_super),SkipWhileSubscriber.prototype._next=function(value){var destination=this.destination;this.skipping&&this.tryCallPredicate(value),this.skipping||destination.next(value)},SkipWhileSubscriber.prototype.tryCallPredicate=function(value){try{var result=this.predicate(value,this.index++);this.skipping=Boolean(result)}catch(err){this.destination.error(err)}},SkipWhileSubscriber}(Subscriber.L);function startWith(){for(var array=[],_i=0;_i<arguments.length;_i++)array[_i]=arguments[_i];var scheduler=array[array.length-1];return(0,isScheduler.K)(scheduler)?(array.pop(),function(source){return(0,concat.z)(array,source,scheduler)}):function(source){return(0,concat.z)(array,source)}}var asap=__webpack_require__("./node_modules/rxjs/_esm5/internal/scheduler/asap.js"),isNumeric=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isNumeric.js"),SubscribeOnObservable=function(_super){function SubscribeOnObservable(source,delayTime,scheduler){void 0===delayTime&&(delayTime=0),void 0===scheduler&&(scheduler=asap.e);var _this=_super.call(this)||this;return _this.source=source,_this.delayTime=delayTime,_this.scheduler=scheduler,(!(0,isNumeric.k)(delayTime)||delayTime<0)&&(_this.delayTime=0),scheduler&&"function"==typeof scheduler.schedule||(_this.scheduler=asap.e),_this}return tslib_es6.ZT(SubscribeOnObservable,_super),SubscribeOnObservable.create=function(source,delay,scheduler){return void 0===delay&&(delay=0),void 0===scheduler&&(scheduler=asap.e),new SubscribeOnObservable(source,delay,scheduler)},SubscribeOnObservable.dispatch=function(arg){var source=arg.source,subscriber=arg.subscriber;return this.add(source.subscribe(subscriber))},SubscribeOnObservable.prototype._subscribe=function(subscriber){var delay=this.delayTime,source=this.source;return this.scheduler.schedule(SubscribeOnObservable.dispatch,delay,{source:source,subscriber:subscriber})},SubscribeOnObservable}(Observable.y);function subscribeOn(scheduler,delay){return void 0===delay&&(delay=0),function subscribeOnOperatorFunction(source){return source.lift(new SubscribeOnOperator(scheduler,delay))}}var SubscribeOnOperator=function(){function SubscribeOnOperator(scheduler,delay){this.scheduler=scheduler,this.delay=delay}return SubscribeOnOperator.prototype.call=function(subscriber,source){return new SubscribeOnObservable(source,this.delay,this.scheduler).subscribe(subscriber)},SubscribeOnOperator}();function switchMap(project,resultSelector){return"function"==typeof resultSelector?function(source){return source.pipe(switchMap((function(a,i){return(0,observable_from.D)(project(a,i)).pipe((0,map.U)((function(b,ii){return resultSelector(a,b,i,ii)})))})))}:function(source){return source.lift(new SwitchMapOperator(project))}}var SwitchMapOperator=function(){function SwitchMapOperator(project){this.project=project}return SwitchMapOperator.prototype.call=function(subscriber,source){return source.subscribe(new SwitchMapSubscriber(subscriber,this.project))},SwitchMapOperator}(),SwitchMapSubscriber=function(_super){function SwitchMapSubscriber(destination,project){var _this=_super.call(this,destination)||this;return _this.project=project,_this.index=0,_this}return tslib_es6.ZT(SwitchMapSubscriber,_super),SwitchMapSubscriber.prototype._next=function(value){var result,index=this.index++;try{result=this.project(value,index)}catch(error){return void this.destination.error(error)}this._innerSub(result)},SwitchMapSubscriber.prototype._innerSub=function(result){var innerSubscription=this.innerSubscription;innerSubscription&&innerSubscription.unsubscribe();var innerSubscriber=new innerSubscribe.IY(this),destination=this.destination;destination.add(innerSubscriber),this.innerSubscription=(0,innerSubscribe.ft)(result,innerSubscriber),this.innerSubscription!==innerSubscriber&&destination.add(this.innerSubscription)},SwitchMapSubscriber.prototype._complete=function(){var innerSubscription=this.innerSubscription;innerSubscription&&!innerSubscription.closed||_super.prototype._complete.call(this),this.unsubscribe()},SwitchMapSubscriber.prototype._unsubscribe=function(){this.innerSubscription=void 0},SwitchMapSubscriber.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&_super.prototype._complete.call(this)},SwitchMapSubscriber.prototype.notifyNext=function(innerValue){this.destination.next(innerValue)},SwitchMapSubscriber}(innerSubscribe.Ds);function switchAll(){return switchMap(identity.y)}function switchMapTo(innerObservable,resultSelector){return resultSelector?switchMap((function(){return innerObservable}),resultSelector):switchMap((function(){return innerObservable}))}function takeUntil(notifier){return function(source){return source.lift(new TakeUntilOperator(notifier))}}var TakeUntilOperator=function(){function TakeUntilOperator(notifier){this.notifier=notifier}return TakeUntilOperator.prototype.call=function(subscriber,source){var takeUntilSubscriber=new TakeUntilSubscriber(subscriber),notifierSubscription=(0,innerSubscribe.ft)(this.notifier,new innerSubscribe.IY(takeUntilSubscriber));return notifierSubscription&&!takeUntilSubscriber.seenValue?(takeUntilSubscriber.add(notifierSubscription),source.subscribe(takeUntilSubscriber)):takeUntilSubscriber},TakeUntilOperator}(),TakeUntilSubscriber=function(_super){function TakeUntilSubscriber(destination){var _this=_super.call(this,destination)||this;return _this.seenValue=!1,_this}return tslib_es6.ZT(TakeUntilSubscriber,_super),TakeUntilSubscriber.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},TakeUntilSubscriber.prototype.notifyComplete=function(){},TakeUntilSubscriber}(innerSubscribe.Ds);function takeWhile(predicate,inclusive){return void 0===inclusive&&(inclusive=!1),function(source){return source.lift(new TakeWhileOperator(predicate,inclusive))}}var TakeWhileOperator=function(){function TakeWhileOperator(predicate,inclusive){this.predicate=predicate,this.inclusive=inclusive}return TakeWhileOperator.prototype.call=function(subscriber,source){return source.subscribe(new TakeWhileSubscriber(subscriber,this.predicate,this.inclusive))},TakeWhileOperator}(),TakeWhileSubscriber=function(_super){function TakeWhileSubscriber(destination,predicate,inclusive){var _this=_super.call(this,destination)||this;return _this.predicate=predicate,_this.inclusive=inclusive,_this.index=0,_this}return tslib_es6.ZT(TakeWhileSubscriber,_super),TakeWhileSubscriber.prototype._next=function(value){var result,destination=this.destination;try{result=this.predicate(value,this.index++)}catch(err){return void destination.error(err)}this.nextOrComplete(value,result)},TakeWhileSubscriber.prototype.nextOrComplete=function(value,predicateResult){var destination=this.destination;Boolean(predicateResult)?destination.next(value):(this.inclusive&&destination.next(value),destination.complete())},TakeWhileSubscriber}(Subscriber.L),noop=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/noop.js"),isFunction=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/isFunction.js");function tap(nextOrObserver,error,complete){return function tapOperatorFunction(source){return source.lift(new DoOperator(nextOrObserver,error,complete))}}var DoOperator=function(){function DoOperator(nextOrObserver,error,complete){this.nextOrObserver=nextOrObserver,this.error=error,this.complete=complete}return DoOperator.prototype.call=function(subscriber,source){return source.subscribe(new TapSubscriber(subscriber,this.nextOrObserver,this.error,this.complete))},DoOperator}(),TapSubscriber=function(_super){function TapSubscriber(destination,observerOrNext,error,complete){var _this=_super.call(this,destination)||this;return _this._tapNext=noop.Z,_this._tapError=noop.Z,_this._tapComplete=noop.Z,_this._tapError=error||noop.Z,_this._tapComplete=complete||noop.Z,(0,isFunction.m)(observerOrNext)?(_this._context=_this,_this._tapNext=observerOrNext):observerOrNext&&(_this._context=observerOrNext,_this._tapNext=observerOrNext.next||noop.Z,_this._tapError=observerOrNext.error||noop.Z,_this._tapComplete=observerOrNext.complete||noop.Z),_this}return tslib_es6.ZT(TapSubscriber,_super),TapSubscriber.prototype._next=function(value){try{this._tapNext.call(this._context,value)}catch(err){return void this.destination.error(err)}this.destination.next(value)},TapSubscriber.prototype._error=function(err){try{this._tapError.call(this._context,err)}catch(err){return void this.destination.error(err)}this.destination.error(err)},TapSubscriber.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(err){return void this.destination.error(err)}return this.destination.complete()},TapSubscriber}(Subscriber.L),defaultThrottleConfig={leading:!0,trailing:!1};function throttle(durationSelector,config){return void 0===config&&(config=defaultThrottleConfig),function(source){return source.lift(new ThrottleOperator(durationSelector,!!config.leading,!!config.trailing))}}var ThrottleOperator=function(){function ThrottleOperator(durationSelector,leading,trailing){this.durationSelector=durationSelector,this.leading=leading,this.trailing=trailing}return ThrottleOperator.prototype.call=function(subscriber,source){return source.subscribe(new ThrottleSubscriber(subscriber,this.durationSelector,this.leading,this.trailing))},ThrottleOperator}(),ThrottleSubscriber=function(_super){function ThrottleSubscriber(destination,durationSelector,_leading,_trailing){var _this=_super.call(this,destination)||this;return _this.destination=destination,_this.durationSelector=durationSelector,_this._leading=_leading,_this._trailing=_trailing,_this._hasValue=!1,_this}return tslib_es6.ZT(ThrottleSubscriber,_super),ThrottleSubscriber.prototype._next=function(value){this._hasValue=!0,this._sendValue=value,this._throttled||(this._leading?this.send():this.throttle(value))},ThrottleSubscriber.prototype.send=function(){var _hasValue=this._hasValue,_sendValue=this._sendValue;_hasValue&&(this.destination.next(_sendValue),this.throttle(_sendValue)),this._hasValue=!1,this._sendValue=void 0},ThrottleSubscriber.prototype.throttle=function(value){var duration=this.tryDurationSelector(value);duration&&this.add(this._throttled=(0,innerSubscribe.ft)(duration,new innerSubscribe.IY(this)))},ThrottleSubscriber.prototype.tryDurationSelector=function(value){try{return this.durationSelector(value)}catch(err){return this.destination.error(err),null}},ThrottleSubscriber.prototype.throttlingDone=function(){var _throttled=this._throttled,_trailing=this._trailing;_throttled&&_throttled.unsubscribe(),this._throttled=void 0,_trailing&&this.send()},ThrottleSubscriber.prototype.notifyNext=function(){this.throttlingDone()},ThrottleSubscriber.prototype.notifyComplete=function(){this.throttlingDone()},ThrottleSubscriber}(innerSubscribe.Ds);function throttleTime(duration,scheduler,config){return void 0===scheduler&&(scheduler=scheduler_async.P),void 0===config&&(config=defaultThrottleConfig),function(source){return source.lift(new ThrottleTimeOperator(duration,scheduler,config.leading,config.trailing))}}var ThrottleTimeOperator=function(){function ThrottleTimeOperator(duration,scheduler,leading,trailing){this.duration=duration,this.scheduler=scheduler,this.leading=leading,this.trailing=trailing}return ThrottleTimeOperator.prototype.call=function(subscriber,source){return source.subscribe(new ThrottleTimeSubscriber(subscriber,this.duration,this.scheduler,this.leading,this.trailing))},ThrottleTimeOperator}(),ThrottleTimeSubscriber=function(_super){function ThrottleTimeSubscriber(destination,duration,scheduler,leading,trailing){var _this=_super.call(this,destination)||this;return _this.duration=duration,_this.scheduler=scheduler,_this.leading=leading,_this.trailing=trailing,_this._hasTrailingValue=!1,_this._trailingValue=null,_this}return tslib_es6.ZT(ThrottleTimeSubscriber,_super),ThrottleTimeSubscriber.prototype._next=function(value){this.throttled?this.trailing&&(this._trailingValue=value,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(throttleTime_dispatchNext,this.duration,{subscriber:this})),this.leading?this.destination.next(value):this.trailing&&(this._trailingValue=value,this._hasTrailingValue=!0))},ThrottleTimeSubscriber.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},ThrottleTimeSubscriber.prototype.clearThrottle=function(){var throttled=this.throttled;throttled&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),throttled.unsubscribe(),this.remove(throttled),this.throttled=null)},ThrottleTimeSubscriber}(Subscriber.L);function throttleTime_dispatchNext(arg){arg.subscriber.clearThrottle()}var defer=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/defer.js");function timeInterval(scheduler){return void 0===scheduler&&(scheduler=scheduler_async.P),function(source){return(0,defer.P)((function(){return source.pipe(scan((function(_a,value){var current=_a.current;return{value:value,current:scheduler.now(),last:current}}),{current:scheduler.now(),value:void 0,last:void 0}),(0,map.U)((function(_a){var current=_a.current,last=_a.last,value=_a.value;return new TimeInterval(value,current-last)})))}))}}var TimeInterval=function(){return function TimeInterval(value,interval){this.value=value,this.interval=interval}}(),TimeoutError=__webpack_require__("./node_modules/rxjs/_esm5/internal/util/TimeoutError.js");function timeoutWith(due,withObservable,scheduler){return void 0===scheduler&&(scheduler=scheduler_async.P),function(source){var absoluteTimeout=isDate(due),waitFor=absoluteTimeout?+due-scheduler.now():Math.abs(due);return source.lift(new TimeoutWithOperator(waitFor,absoluteTimeout,withObservable,scheduler))}}var TimeoutWithOperator=function(){function TimeoutWithOperator(waitFor,absoluteTimeout,withObservable,scheduler){this.waitFor=waitFor,this.absoluteTimeout=absoluteTimeout,this.withObservable=withObservable,this.scheduler=scheduler}return TimeoutWithOperator.prototype.call=function(subscriber,source){return source.subscribe(new TimeoutWithSubscriber(subscriber,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},TimeoutWithOperator}(),TimeoutWithSubscriber=function(_super){function TimeoutWithSubscriber(destination,absoluteTimeout,waitFor,withObservable,scheduler){var _this=_super.call(this,destination)||this;return _this.absoluteTimeout=absoluteTimeout,_this.waitFor=waitFor,_this.withObservable=withObservable,_this.scheduler=scheduler,_this.scheduleTimeout(),_this}return tslib_es6.ZT(TimeoutWithSubscriber,_super),TimeoutWithSubscriber.dispatchTimeout=function(subscriber){var withObservable=subscriber.withObservable;subscriber._unsubscribeAndRecycle(),subscriber.add((0,innerSubscribe.ft)(withObservable,new innerSubscribe.IY(subscriber)))},TimeoutWithSubscriber.prototype.scheduleTimeout=function(){var action=this.action;action?this.action=action.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout,this.waitFor,this))},TimeoutWithSubscriber.prototype._next=function(value){this.absoluteTimeout||this.scheduleTimeout(),_super.prototype._next.call(this,value)},TimeoutWithSubscriber.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},TimeoutWithSubscriber}(innerSubscribe.Ds),throwError=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/throwError.js");function timeout(due,scheduler){return void 0===scheduler&&(scheduler=scheduler_async.P),timeoutWith(due,(0,throwError._)(new TimeoutError.W),scheduler)}function timestamp(scheduler){return void 0===scheduler&&(scheduler=scheduler_async.P),(0,map.U)((function(value){return new Timestamp(value,scheduler.now())}))}var Timestamp=function(){return function Timestamp(value,timestamp){this.value=value,this.timestamp=timestamp}}();function toArrayReducer(arr,item,index){return 0===index?[item]:(arr.push(item),arr)}function toArray(){return reduce(toArrayReducer,[])}function window_window(windowBoundaries){return function windowOperatorFunction(source){return source.lift(new WindowOperator(windowBoundaries))}}var WindowOperator=function(){function WindowOperator(windowBoundaries){this.windowBoundaries=windowBoundaries}return WindowOperator.prototype.call=function(subscriber,source){var windowSubscriber=new WindowSubscriber(subscriber),sourceSubscription=source.subscribe(windowSubscriber);return sourceSubscription.closed||windowSubscriber.add((0,innerSubscribe.ft)(this.windowBoundaries,new innerSubscribe.IY(windowSubscriber))),sourceSubscription},WindowOperator}(),WindowSubscriber=function(_super){function WindowSubscriber(destination){var _this=_super.call(this,destination)||this;return _this.window=new Subject.xQ,destination.next(_this.window),_this}return tslib_es6.ZT(WindowSubscriber,_super),WindowSubscriber.prototype.notifyNext=function(){this.openWindow()},WindowSubscriber.prototype.notifyError=function(error){this._error(error)},WindowSubscriber.prototype.notifyComplete=function(){this._complete()},WindowSubscriber.prototype._next=function(value){this.window.next(value)},WindowSubscriber.prototype._error=function(err){this.window.error(err),this.destination.error(err)},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete()},WindowSubscriber.prototype._unsubscribe=function(){this.window=null},WindowSubscriber.prototype.openWindow=function(){var prevWindow=this.window;prevWindow&&prevWindow.complete();var destination=this.destination,newWindow=this.window=new Subject.xQ;destination.next(newWindow)},WindowSubscriber}(innerSubscribe.Ds);function windowCount(windowSize,startWindowEvery){return void 0===startWindowEvery&&(startWindowEvery=0),function windowCountOperatorFunction(source){return source.lift(new WindowCountOperator(windowSize,startWindowEvery))}}var WindowCountOperator=function(){function WindowCountOperator(windowSize,startWindowEvery){this.windowSize=windowSize,this.startWindowEvery=startWindowEvery}return WindowCountOperator.prototype.call=function(subscriber,source){return source.subscribe(new WindowCountSubscriber(subscriber,this.windowSize,this.startWindowEvery))},WindowCountOperator}(),WindowCountSubscriber=function(_super){function WindowCountSubscriber(destination,windowSize,startWindowEvery){var _this=_super.call(this,destination)||this;return _this.destination=destination,_this.windowSize=windowSize,_this.startWindowEvery=startWindowEvery,_this.windows=[new Subject.xQ],_this.count=0,destination.next(_this.windows[0]),_this}return tslib_es6.ZT(WindowCountSubscriber,_super),WindowCountSubscriber.prototype._next=function(value){for(var startWindowEvery=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,destination=this.destination,windowSize=this.windowSize,windows=this.windows,len=windows.length,i=0;i<len&&!this.closed;i++)windows[i].next(value);var c=this.count-windowSize+1;if(c>=0&&c%startWindowEvery==0&&!this.closed&&windows.shift().complete(),++this.count%startWindowEvery==0&&!this.closed){var window_1=new Subject.xQ;windows.push(window_1),destination.next(window_1)}},WindowCountSubscriber.prototype._error=function(err){var windows=this.windows;if(windows)for(;windows.length>0&&!this.closed;)windows.shift().error(err);this.destination.error(err)},WindowCountSubscriber.prototype._complete=function(){var windows=this.windows;if(windows)for(;windows.length>0&&!this.closed;)windows.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(Subscriber.L);function windowTime(windowTimeSpan){var scheduler=scheduler_async.P,windowCreationInterval=null,maxWindowSize=Number.POSITIVE_INFINITY;return(0,isScheduler.K)(arguments[3])&&(scheduler=arguments[3]),(0,isScheduler.K)(arguments[2])?scheduler=arguments[2]:(0,isNumeric.k)(arguments[2])&&(maxWindowSize=Number(arguments[2])),(0,isScheduler.K)(arguments[1])?scheduler=arguments[1]:(0,isNumeric.k)(arguments[1])&&(windowCreationInterval=Number(arguments[1])),function windowTimeOperatorFunction(source){return source.lift(new WindowTimeOperator(windowTimeSpan,windowCreationInterval,maxWindowSize,scheduler))}}var WindowTimeOperator=function(){function WindowTimeOperator(windowTimeSpan,windowCreationInterval,maxWindowSize,scheduler){this.windowTimeSpan=windowTimeSpan,this.windowCreationInterval=windowCreationInterval,this.maxWindowSize=maxWindowSize,this.scheduler=scheduler}return WindowTimeOperator.prototype.call=function(subscriber,source){return source.subscribe(new WindowTimeSubscriber(subscriber,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},WindowTimeOperator}(),CountedSubject=function(_super){function CountedSubject(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this._numberOfNextedValues=0,_this}return tslib_es6.ZT(CountedSubject,_super),CountedSubject.prototype.next=function(value){this._numberOfNextedValues++,_super.prototype.next.call(this,value)},Object.defineProperty(CountedSubject.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),CountedSubject}(Subject.xQ),WindowTimeSubscriber=function(_super){function WindowTimeSubscriber(destination,windowTimeSpan,windowCreationInterval,maxWindowSize,scheduler){var _this=_super.call(this,destination)||this;_this.destination=destination,_this.windowTimeSpan=windowTimeSpan,_this.windowCreationInterval=windowCreationInterval,_this.maxWindowSize=maxWindowSize,_this.scheduler=scheduler,_this.windows=[];var window=_this.openWindow();if(null!==windowCreationInterval&&windowCreationInterval>=0){var closeState={subscriber:_this,window:window,context:null},creationState={windowTimeSpan:windowTimeSpan,windowCreationInterval:windowCreationInterval,subscriber:_this,scheduler:scheduler};_this.add(scheduler.schedule(dispatchWindowClose,windowTimeSpan,closeState)),_this.add(scheduler.schedule(dispatchWindowCreation,windowCreationInterval,creationState))}else{var timeSpanOnlyState={subscriber:_this,window:window,windowTimeSpan:windowTimeSpan};_this.add(scheduler.schedule(dispatchWindowTimeSpanOnly,windowTimeSpan,timeSpanOnlyState))}return _this}return tslib_es6.ZT(WindowTimeSubscriber,_super),WindowTimeSubscriber.prototype._next=function(value){for(var windows=this.windows,len=windows.length,i=0;i<len;i++){var window_1=windows[i];window_1.closed||(window_1.next(value),window_1.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(window_1))}},WindowTimeSubscriber.prototype._error=function(err){for(var windows=this.windows;windows.length>0;)windows.shift().error(err);this.destination.error(err)},WindowTimeSubscriber.prototype._complete=function(){for(var windows=this.windows;windows.length>0;){var window_2=windows.shift();window_2.closed||window_2.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var window=new CountedSubject;return this.windows.push(window),this.destination.next(window),window},WindowTimeSubscriber.prototype.closeWindow=function(window){window.complete();var windows=this.windows;windows.splice(windows.indexOf(window),1)},WindowTimeSubscriber}(Subscriber.L);function dispatchWindowTimeSpanOnly(state){var subscriber=state.subscriber,windowTimeSpan=state.windowTimeSpan,window=state.window;window&&subscriber.closeWindow(window),state.window=subscriber.openWindow(),this.schedule(state,windowTimeSpan)}function dispatchWindowCreation(state){var windowTimeSpan=state.windowTimeSpan,subscriber=state.subscriber,scheduler=state.scheduler,windowCreationInterval=state.windowCreationInterval,window=subscriber.openWindow(),context={action:this,subscription:null},timeSpanState={subscriber:subscriber,window:window,context:context};context.subscription=scheduler.schedule(dispatchWindowClose,windowTimeSpan,timeSpanState),this.add(context.subscription),this.schedule(state,windowCreationInterval)}function dispatchWindowClose(state){var subscriber=state.subscriber,window=state.window,context=state.context;context&&context.action&&context.subscription&&context.action.remove(context.subscription),subscriber.closeWindow(window)}function windowToggle(openings,closingSelector){return function(source){return source.lift(new WindowToggleOperator(openings,closingSelector))}}var WindowToggleOperator=function(){function WindowToggleOperator(openings,closingSelector){this.openings=openings,this.closingSelector=closingSelector}return WindowToggleOperator.prototype.call=function(subscriber,source){return source.subscribe(new WindowToggleSubscriber(subscriber,this.openings,this.closingSelector))},WindowToggleOperator}(),WindowToggleSubscriber=function(_super){function WindowToggleSubscriber(destination,openings,closingSelector){var _this=_super.call(this,destination)||this;return _this.openings=openings,_this.closingSelector=closingSelector,_this.contexts=[],_this.add(_this.openSubscription=(0,subscribeToResult.D)(_this,openings,openings)),_this}return tslib_es6.ZT(WindowToggleSubscriber,_super),WindowToggleSubscriber.prototype._next=function(value){var contexts=this.contexts;if(contexts)for(var len=contexts.length,i=0;i<len;i++)contexts[i].window.next(value)},WindowToggleSubscriber.prototype._error=function(err){var contexts=this.contexts;if(this.contexts=null,contexts)for(var len=contexts.length,index=-1;++index<len;){var context_1=contexts[index];context_1.window.error(err),context_1.subscription.unsubscribe()}_super.prototype._error.call(this,err)},WindowToggleSubscriber.prototype._complete=function(){var contexts=this.contexts;if(this.contexts=null,contexts)for(var len=contexts.length,index=-1;++index<len;){var context_2=contexts[index];context_2.window.complete(),context_2.subscription.unsubscribe()}_super.prototype._complete.call(this)},WindowToggleSubscriber.prototype._unsubscribe=function(){var contexts=this.contexts;if(this.contexts=null,contexts)for(var len=contexts.length,index=-1;++index<len;){var context_3=contexts[index];context_3.window.unsubscribe(),context_3.subscription.unsubscribe()}},WindowToggleSubscriber.prototype.notifyNext=function(outerValue,innerValue,outerIndex,innerIndex,innerSub){if(outerValue===this.openings){var closingNotifier=void 0;try{closingNotifier=(0,this.closingSelector)(innerValue)}catch(e){return this.error(e)}var window_1=new Subject.xQ,subscription=new Subscription.w,context_4={window:window_1,subscription:subscription};this.contexts.push(context_4);var innerSubscription=(0,subscribeToResult.D)(this,closingNotifier,context_4);innerSubscription.closed?this.closeWindow(this.contexts.length-1):(innerSubscription.context=context_4,subscription.add(innerSubscription)),this.destination.next(window_1)}else this.closeWindow(this.contexts.indexOf(outerValue))},WindowToggleSubscriber.prototype.notifyError=function(err){this.error(err)},WindowToggleSubscriber.prototype.notifyComplete=function(inner){inner!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(inner.context))},WindowToggleSubscriber.prototype.closeWindow=function(index){if(-1!==index){var contexts=this.contexts,context=contexts[index],window=context.window,subscription=context.subscription;contexts.splice(index,1),window.complete(),subscription.unsubscribe()}},WindowToggleSubscriber}(OuterSubscriber.L);function windowWhen(closingSelector){return function windowWhenOperatorFunction(source){return source.lift(new windowWhen_WindowOperator(closingSelector))}}var windowWhen_WindowOperator=function(){function WindowOperator(closingSelector){this.closingSelector=closingSelector}return WindowOperator.prototype.call=function(subscriber,source){return source.subscribe(new windowWhen_WindowSubscriber(subscriber,this.closingSelector))},WindowOperator}(),windowWhen_WindowSubscriber=function(_super){function WindowSubscriber(destination,closingSelector){var _this=_super.call(this,destination)||this;return _this.destination=destination,_this.closingSelector=closingSelector,_this.openWindow(),_this}return tslib_es6.ZT(WindowSubscriber,_super),WindowSubscriber.prototype.notifyNext=function(_outerValue,_innerValue,_outerIndex,_innerIndex,innerSub){this.openWindow(innerSub)},WindowSubscriber.prototype.notifyError=function(error){this._error(error)},WindowSubscriber.prototype.notifyComplete=function(innerSub){this.openWindow(innerSub)},WindowSubscriber.prototype._next=function(value){this.window.next(value)},WindowSubscriber.prototype._error=function(err){this.window.error(err),this.destination.error(err),this.unsubscribeClosingNotification()},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},WindowSubscriber.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},WindowSubscriber.prototype.openWindow=function(innerSub){void 0===innerSub&&(innerSub=null),innerSub&&(this.remove(innerSub),innerSub.unsubscribe());var prevWindow=this.window;prevWindow&&prevWindow.complete();var closingNotifier,window=this.window=new Subject.xQ;this.destination.next(window);try{closingNotifier=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=(0,subscribeToResult.D)(this,closingNotifier))},WindowSubscriber}(OuterSubscriber.L);function withLatestFrom(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return function(source){var project;"function"==typeof args[args.length-1]&&(project=args.pop());var observables=args;return source.lift(new WithLatestFromOperator(observables,project))}}var WithLatestFromOperator=function(){function WithLatestFromOperator(observables,project){this.observables=observables,this.project=project}return WithLatestFromOperator.prototype.call=function(subscriber,source){return source.subscribe(new WithLatestFromSubscriber(subscriber,this.observables,this.project))},WithLatestFromOperator}(),WithLatestFromSubscriber=function(_super){function WithLatestFromSubscriber(destination,observables,project){var _this=_super.call(this,destination)||this;_this.observables=observables,_this.project=project,_this.toRespond=[];var len=observables.length;_this.values=new Array(len);for(var i=0;i<len;i++)_this.toRespond.push(i);for(i=0;i<len;i++){var observable=observables[i];_this.add((0,subscribeToResult.D)(_this,observable,void 0,i))}return _this}return tslib_es6.ZT(WithLatestFromSubscriber,_super),WithLatestFromSubscriber.prototype.notifyNext=function(_outerValue,innerValue,outerIndex){this.values[outerIndex]=innerValue;var toRespond=this.toRespond;if(toRespond.length>0){var found=toRespond.indexOf(outerIndex);-1!==found&&toRespond.splice(found,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(value){if(0===this.toRespond.length){var args=[value].concat(this.values);this.project?this._tryProject(args):this.destination.next(args)}},WithLatestFromSubscriber.prototype._tryProject=function(args){var result;try{result=this.project.apply(this,args)}catch(err){return void this.destination.error(err)}this.destination.next(result)},WithLatestFromSubscriber}(OuterSubscriber.L),zip=__webpack_require__("./node_modules/rxjs/_esm5/internal/observable/zip.js");function zip_zip(){for(var observables=[],_i=0;_i<arguments.length;_i++)observables[_i]=arguments[_i];return function zipOperatorFunction(source){return source.lift.call(zip.$R.apply(void 0,[source].concat(observables)))}}function zipAll(project){return function(source){return source.lift(new zip.mx(project))}}},"./node_modules/rxjs/node_modules/tslib/tslib.es6.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{ZT:function(){return __extends}});var extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p])},extendStatics(d,b)};function __extends(d,b){function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}},"./node_modules/walletlink/dist/WalletLink.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var process=__webpack_require__("./node_modules/process/browser.js");Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLink=void 0;const WalletLinkAnalytics_1=__webpack_require__("./node_modules/walletlink/dist/connection/WalletLinkAnalytics.js"),ScopedLocalStorage_1=__webpack_require__("./node_modules/walletlink/dist/lib/ScopedLocalStorage.js"),WalletLinkProvider_1=__webpack_require__("./node_modules/walletlink/dist/provider/WalletLinkProvider.js"),WalletLinkSdkUI_1=__webpack_require__("./node_modules/walletlink/dist/provider/WalletLinkSdkUI.js"),WalletLinkRelay_1=__webpack_require__("./node_modules/walletlink/dist/relay/WalletLinkRelay.js"),WalletLinkRelayEventManager_1=__webpack_require__("./node_modules/walletlink/dist/relay/WalletLinkRelayEventManager.js"),util_1=__webpack_require__("./node_modules/walletlink/dist/util.js"),WALLETLINK_URL=process.env.WALLETLINK_URL||"https://www.walletlink.org",WALLETLINK_VERSION=process.env.WALLETLINK_VERSION||__webpack_require__("./node_modules/walletlink/package.json").i8||"unknown";class WalletLink{constructor(options){var _a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const walletLinkUrl=options.walletLinkUrl||WALLETLINK_URL;let walletLinkUIConstructor;walletLinkUIConstructor=options.walletLinkUIConstructor?options.walletLinkUIConstructor:opts=>new WalletLinkSdkUI_1.WalletLinkSdkUI(opts),void 0===options.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=options.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(_a=options.overrideIsCoinbaseWallet)||void 0===_a||_a,this._walletLinkAnalytics=options.walletLinkAnalytics?options.walletLinkAnalytics:new WalletLinkAnalytics_1.WalletLinkAnalytics;const u=new URL(walletLinkUrl),walletLinkOrigin=`${u.protocol}//${u.host}`;this._storage=new ScopedLocalStorage_1.ScopedLocalStorage(`-walletlink:${walletLinkOrigin}`),this._storage.setItem("version",WalletLink.VERSION),void 0===window.walletLinkExtension&&(this._relayEventManager=new WalletLinkRelayEventManager_1.WalletLinkRelayEventManager,this._relay=new WalletLinkRelay_1.WalletLinkRelay({walletLinkUrl:walletLinkUrl,version:WALLETLINK_VERSION,darkMode:!!options.darkMode,walletLinkUIConstructor:walletLinkUIConstructor,storage:this._storage,relayEventManager:this._relayEventManager,walletLinkAnalytics:this._walletLinkAnalytics}),this.setAppInfo(options.appName,options.appLogoUrl),this._relay.attachUI())}makeWeb3Provider(jsonRpcUrl="",chainId=1){if(void 0!==window.walletLinkExtension)return"boolean"==typeof window.walletLinkExtension.isCipher&&window.walletLinkExtension.isCipher||window.walletLinkExtension.setProviderInfo(jsonRpcUrl,chainId),window.walletLinkExtension;const relay=this._relay;if(!relay||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return jsonRpcUrl||relay.setConnectDisabled(!0),new WalletLinkProvider_1.WalletLinkProvider({relayProvider:()=>Promise.resolve(relay),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:jsonRpcUrl,chainId:chainId,walletLinkAnalytics:this._walletLinkAnalytics,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet})}setAppInfo(appName,appLogoUrl){var _a;this._appName=appName||"DApp",this._appLogoUrl=appLogoUrl||(0,util_1.getFavicon)(),void 0!==window.walletLinkExtension?"boolean"==typeof window.walletLinkExtension.isCipher&&window.walletLinkExtension.isCipher||window.walletLinkExtension.setAppInfo(this._appName,this._appLogoUrl):null===(_a=this._relay)||void 0===_a||_a.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var _a;void 0!==window.walletLinkExtension?window.walletLinkExtension.close():null===(_a=this._relay)||void 0===_a||_a.resetAndReload()}}exports.WalletLink=WalletLink,WalletLink.VERSION=WALLETLINK_VERSION},"./node_modules/walletlink/dist/components/LinkDialog-css.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default='.-walletlink-css-reset .-walletlink-link-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-walletlink-css-reset .-walletlink-link-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.33);transition:opacity .25s}.-walletlink-css-reset .-walletlink-link-dialog-backdrop-hidden{opacity:0}.-walletlink-css-reset .-walletlink-link-dialog-box{display:flex;position:relative;flex-direction:column;background-color:#f6f6f6;border-radius:16px;box-shadow:0px 16px 24px rgba(0,0,0,.1),0px 0px 8px rgba(0,0,0,.05);transform:scale(1);transition:opacity .25s,transform .25s;overflow:hidden}.-walletlink-css-reset .-walletlink-link-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-walletlink-css-reset .-walletlink-link-dialog-box-content{padding:24px;text-align:center}.-walletlink-css-reset .-walletlink-link-dialog-box-content h3{display:block;margin-bottom:24px;text-align:left;text-transform:uppercase;font-size:22px;font-weight:bold;line-height:1.2;color:#000}.-walletlink-css-reset .-walletlink-link-dialog-box-content-qrcode{position:relative;display:block;margin-bottom:24px;background-color:#f6f6f6;padding:16px;border-radius:16px;box-shadow:4px 4px 8px rgba(0,0,0,.15),-8px -8px 8px #fff;overflow:hidden}.-walletlink-css-reset .-walletlink-link-dialog-box-content-qrcode-wrapper{display:block;width:232px;height:232px;padding:4px;border-radius:4px;background:#f4f4f4;margin-bottom:16px}.-walletlink-css-reset .-walletlink-link-dialog-box-content-qrcode-wrapper img{display:block;width:224px;height:224px}.-walletlink-css-reset .-walletlink-link-dialog-box-content-qrcode>p{display:block;color:gray;font-weight:bold;font-size:12px;text-align:center}.-walletlink-css-reset .-walletlink-link-dialog-box-content-qrcode-connecting{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(246,246,246,.98)}.-walletlink-css-reset .-walletlink-link-dialog-box-content-qrcode-connecting p{margin-top:16px;color:#333;font-size:12px;font-weight:bold}.-walletlink-css-reset .-walletlink-link-dialog-box-content a{text-align:center;cursor:pointer;transition:color .1s;font-size:14px}.-walletlink-css-reset .-walletlink-link-dialog-box-content a,.-walletlink-css-reset .-walletlink-link-dialog-box-content a:link,.-walletlink-css-reset .-walletlink-link-dialog-box-content a:visited{color:#999}.-walletlink-css-reset .-walletlink-link-dialog-box-content a:hover,.-walletlink-css-reset .-walletlink-link-dialog-box-content a:active{color:#666;text-decoration:underline}.-walletlink-css-reset .-walletlink-link-dialog-box-cancel{position:absolute;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;top:24px;right:24px;width:24px;height:24px;border-radius:12px;background-color:#e7e7e7;cursor:pointer}.-walletlink-css-reset .-walletlink-link-dialog-box-cancel-x{position:relative;display:block}.-walletlink-css-reset .-walletlink-link-dialog-box-cancel-x::before,.-walletlink-css-reset .-walletlink-link-dialog-box-cancel-x::after{content:"";position:absolute;display:block;top:-1px;left:-7px;width:14px;height:2px;background-color:#999;transition:background-color .2s}.-walletlink-css-reset .-walletlink-link-dialog-box-cancel-x::before{transform:rotate(45deg)}.-walletlink-css-reset .-walletlink-link-dialog-box-cancel-x::after{transform:rotate(135deg)}.-walletlink-css-reset .-walletlink-link-dialog-box-cancel:hover .-walletlink-link-dialog-box-cancel-x-a,.-walletlink-css-reset .-walletlink-link-dialog-box-cancel:hover .-walletlink-link-dialog-box-cancel-x-b{background-color:#000}.-walletlink-css-reset .-walletlink-link-dialog-container{display:block}.-walletlink-css-reset .-walletlink-link-dialog-container-hidden{display:none}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box{background-color:#2a2a2a}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content h3{color:#ccc}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content-qrcode{background-color:#2a2a2a;box-shadow:4px 4px 8px rgba(0,0,0,.5),-8px -8px 8px #343434}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content-qrcode>p{color:#999}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content-qrcode-connecting{background:rgba(42,42,42,.98)}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content-qrcode-connecting p{color:#ddd}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content a,.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content a:link,.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content a:visited{color:#888}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content a:hover,.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-content a:active{color:#aaa}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-cancel{background-color:#333}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-cancel-x::before,.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-cancel-x::after{background-color:#aaa}.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-cancel:hover .-walletlink-link-dialog-box-cancel-x::before,.-walletlink-css-reset .-walletlink-link-dialog-container-dark .-walletlink-link-dialog-box-cancel:hover .-walletlink-link-dialog-box-cancel-x::after{background-color:#eee}'},"./node_modules/walletlink/dist/components/LinkDialog.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinkDialog=void 0;const clsx_1=__importDefault(__webpack_require__("./node_modules/clsx/dist/clsx.m.js")),preact_1=__webpack_require__("./node_modules/preact/dist/preact.module.js"),hooks_1=__webpack_require__("./node_modules/preact/hooks/dist/hooks.module.js"),LinkDialog_css_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/LinkDialog-css.js")),QRCode_1=__webpack_require__("./node_modules/walletlink/dist/components/QRCode.js"),Spinner_1=__webpack_require__("./node_modules/walletlink/dist/components/Spinner.js"),version_1=__webpack_require__("./node_modules/walletlink/dist/version.js");exports.LinkDialog=props=>{const[isContainerHidden,setContainerHidden]=(0,hooks_1.useState)(!props.isOpen),[isDialogHidden,setDialogHidden]=(0,hooks_1.useState)(!props.isOpen);return(0,hooks_1.useEffect)((()=>{const{isOpen:isOpen}=props,timers=[window.setTimeout((()=>{setDialogHidden(!isOpen)}),10)];return isOpen?setContainerHidden(!1):timers.push(window.setTimeout((()=>{setContainerHidden(!0)}),360)),()=>{timers.forEach(window.clearTimeout)}}),[props.isOpen]),(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-link-dialog-container",props.darkMode&&"-walletlink-link-dialog-container-dark",isContainerHidden&&"-walletlink-link-dialog-container-hidden")},(0,preact_1.h)("style",null,LinkDialog_css_1.default),(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-link-dialog-backdrop",isDialogHidden&&"-walletlink-link-dialog-backdrop-hidden")}),(0,preact_1.h)("div",{class:"-walletlink-link-dialog"},(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-link-dialog-box",isDialogHidden&&"-walletlink-link-dialog-box-hidden")},(0,preact_1.h)(ScanQRCode,{darkMode:props.darkMode,version:props.version,sessionId:props.sessionId,sessionSecret:props.sessionSecret,walletLinkUrl:props.walletLinkUrl,isConnected:props.isConnected,isParentConnection:props.isParentConnection}),props.onCancel&&(0,preact_1.h)(CancelButton,{onClick:props.onCancel}))))};const ScanQRCode=props=>{const serverUrl=window.encodeURIComponent(props.walletLinkUrl),sessionIdKey=props.isParentConnection?"parent-id":"id",qrUrl=`${props.walletLinkUrl}/#/link?${sessionIdKey}=${props.sessionId}&secret=${props.sessionSecret}&server=${serverUrl}&v=1`;return(0,preact_1.h)("div",{class:"-walletlink-link-dialog-box-content"},(0,preact_1.h)("h3",null,"Scan to",(0,preact_1.h)("br",null)," Connect"),(0,preact_1.h)("div",{class:"-walletlink-link-dialog-box-content-qrcode"},(0,preact_1.h)("div",{class:"-walletlink-link-dialog-box-content-qrcode-wrapper"},(0,preact_1.h)(QRCode_1.QRCode,{content:qrUrl,width:224,height:224,fgColor:"#000",bgColor:"transparent"})),(0,preact_1.h)("input",{type:"hidden",name:"walletlink-version",value:version_1.LIB_VERSION}),(0,preact_1.h)("input",{type:"hidden",value:qrUrl}),!props.isConnected&&(0,preact_1.h)("div",{class:"-walletlink-link-dialog-box-content-qrcode-connecting"},(0,preact_1.h)(Spinner_1.Spinner,{size:128,color:props.darkMode?"#fff":"#000"}),(0,preact_1.h)("p",null,"Connecting...")),(0,preact_1.h)("p",{title:`WalletLink v${props.version}`},"Powered by WalletLink")),(0,preact_1.h)("a",{href:`${props.walletLinkUrl}/#/wallets`,target:"_blank",rel:"noopener"},"Don’t have a wallet app?"))},CancelButton=props=>(0,preact_1.h)("button",{class:"-walletlink-link-dialog-box-cancel",onClick:props.onClick},(0,preact_1.h)("div",{class:"-walletlink-link-dialog-box-cancel-x"}))},"./node_modules/walletlink/dist/components/LinkFlow.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LinkFlow=void 0;const preact_1=__webpack_require__("./node_modules/preact/dist/preact.module.js"),rxjs_1=__webpack_require__("./node_modules/rxjs/_esm5/index.js"),operators_1=__webpack_require__("./node_modules/rxjs/_esm5/operators/index.js"),LinkDialog_1=__webpack_require__("./node_modules/walletlink/dist/components/LinkDialog.js"),TryExtensionLinkDialog_1=__webpack_require__("./node_modules/walletlink/dist/components/TryExtensionLinkDialog.js");exports.LinkFlow=class LinkFlow{constructor(options){this.extensionUI$=new rxjs_1.BehaviorSubject({}),this.subscriptions=new rxjs_1.Subscription,this.isConnected=!1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=options.darkMode,this.version=options.version,this.sessionId=options.sessionId,this.sessionSecret=options.sessionSecret,this.walletLinkUrl=options.walletLinkUrl,this.isParentConnection=options.isParentConnection,this.connected$=options.connected$,fetch("https://api.wallet.coinbase.com/rpc/v2/getFeatureFlags").then((res=>res.json())).then((json=>{const enabled=json.result.desktop.extension_ui;void 0===enabled?this.extensionUI$.next({value:!1}):this.extensionUI$.next({value:enabled})})).catch((err=>{console.error("Couldn't fetch feature flags - ",err),this.extensionUI$.next({value:!1})}))}attach(el){this.root=document.createElement("div"),this.root.className="-walletlink-link-flow-root",el.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((v=>{this.isConnected!==v&&(this.isConnected=v,this.render())})))}detach(){var _a;this.root&&(this.subscriptions.unsubscribe(),(0,preact_1.render)(null,this.root),null===(_a=this.root.parentElement)||void 0===_a||_a.removeChild(this.root))}setConnectDisabled(connectDisabled){this.connectDisabled=connectDisabled}open(options){this.isOpen=!0,this.onCancel=options.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const subscription=this.extensionUI$.pipe((0,operators_1.first)((enabled=>void 0!==enabled.value))).subscribe((enabled=>{this.root&&(0,preact_1.render)(enabled.value?(0,preact_1.h)(TryExtensionLinkDialog_1.TryExtensionLinkDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,walletLinkUrl:this.walletLinkUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,onCancel:this.onCancel,connectDisabled:this.connectDisabled}):(0,preact_1.h)(LinkDialog_1.LinkDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,walletLinkUrl:this.walletLinkUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,onCancel:this.onCancel}),this.root)}));this.subscriptions.add(subscription)}}},"./node_modules/walletlink/dist/components/QRCode.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var Buffer=__webpack_require__("./node_modules/buffer/index.js").Buffer,__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.QRCode=void 0;const preact_1=__webpack_require__("./node_modules/preact/dist/preact.module.js"),hooks_1=__webpack_require__("./node_modules/preact/hooks/dist/hooks.module.js"),qrcode_svg_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/vendor-js/qrcode-svg/index.js"));exports.QRCode=props=>{const[svg,setSvg]=(0,hooks_1.useState)("");return(0,hooks_1.useEffect)((()=>{var _a,_b;const qrcode=new qrcode_svg_1.default({content:props.content,background:props.bgColor||"#ffffff",color:props.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(_a=props.width)&&void 0!==_a?_a:256,height:null!==(_b=props.height)&&void 0!==_b?_b:256,padding:0,image:props.image}),base64=Buffer.from(qrcode.svg(),"utf8").toString("base64");setSvg(`data:image/svg+xml;base64,${base64}`)})),svg?(0,preact_1.h)("img",{src:svg,alt:"QR Code"}):null}},"./node_modules/walletlink/dist/components/Snackbar-css.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=".-walletlink-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-walletlink-css-reset .-gear-container *{user-select:none}.-walletlink-css-reset .-gear-container svg{opacity:0;position:absolute}.-walletlink-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-walletlink-css-reset .-walletlink-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-walletlink-css-reset .-walletlink-snackbar *{user-select:none}.-walletlink-css-reset .-walletlink-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-walletlink-css-reset .-walletlink-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-walletlink-css-reset .-walletlink-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-walletlink-css-reset .-walletlink-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-walletlink-css-reset .-walletlink-snackbar-instance-header *{cursor:pointer}.-walletlink-css-reset .-walletlink-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-walletlink-css-reset .-walletlink-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-walletlink-css-reset .-walletlink-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-walletlink-css-reset .-walletlink-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-walletlink-css-reset .-walletlink-snackbar-instance-expanded .-walletlink-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},"./node_modules/walletlink/dist/components/Snackbar.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Snackbar=void 0;const clsx_1=__importDefault(__webpack_require__("./node_modules/clsx/dist/clsx.m.js")),preact_1=__webpack_require__("./node_modules/preact/dist/preact.module.js"),hooks_1=__webpack_require__("./node_modules/preact/hooks/dist/hooks.module.js"),Snackbar_css_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/Snackbar-css.js"));exports.Snackbar=class Snackbar{constructor(options){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=options.darkMode}attach(el){this.root=document.createElement("div"),this.root.className="-walletlink-snackbar-root",el.appendChild(this.root),this.render()}presentItem(itemProps){const key=this.nextItemKey++;return this.items.set(key,itemProps),this.render(),()=>{this.items.delete(key),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,preact_1.render)((0,preact_1.h)("div",null,(0,preact_1.h)(SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([key,itemProps])=>(0,preact_1.h)(SnackbarInstance,Object.assign({},itemProps,{key:key})))))),this.root)}};const SnackbarContainer=props=>(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-snackbar-container")},(0,preact_1.h)("style",null,Snackbar_css_1.default),(0,preact_1.h)("div",{class:"-walletlink-snackbar"},props.children)),SnackbarInstance=({autoExpand:autoExpand,message:message,menuItems:menuItems})=>{const[hidden,setHidden]=(0,hooks_1.useState)(!0),[expanded,setExpanded]=(0,hooks_1.useState)(null!=autoExpand&&autoExpand);(0,hooks_1.useEffect)((()=>{const timers=[window.setTimeout((()=>{setHidden(!1)}),1),window.setTimeout((()=>{setExpanded(!0)}),1e4)];return()=>{timers.forEach(window.clearTimeout)}}));return(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-snackbar-instance",hidden&&"-walletlink-snackbar-instance-hidden",expanded&&"-walletlink-snackbar-instance-expanded")},(0,preact_1.h)("div",{class:"-walletlink-snackbar-instance-header",onClick:()=>{setExpanded(!expanded)}},(0,preact_1.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-walletlink-snackbar-instance-header-cblogo"}),(0,preact_1.h)("div",{class:"-walletlink-snackbar-instance-header-message"},message),(0,preact_1.h)("div",{class:"-gear-container"},!expanded&&(0,preact_1.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,preact_1.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,preact_1.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),menuItems&&menuItems.length>0&&(0,preact_1.h)("div",{class:"-walletlink-snackbar-instance-menu"},menuItems.map(((action,i)=>(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-snackbar-instance-menu-item",action.isRed&&"-walletlink-snackbar-instance-menu-item-is-red"),onClick:action.onClick,key:i},(0,preact_1.h)("svg",{width:action.svgWidth,height:action.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,preact_1.h)("path",{"fill-rule":action.defaultFillRule,"clip-rule":action.defaultClipRule,d:action.path,fill:"#AAAAAA"})),(0,preact_1.h)("span",{class:(0,clsx_1.default)("-walletlink-snackbar-instance-menu-item-info",action.isRed&&"-walletlink-snackbar-instance-menu-item-info-is-red")},action.info))))))}},"./node_modules/walletlink/dist/components/Spinner-css.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=".-walletlink-css-reset .-walletlink-spinner{display:inline-block}.-walletlink-css-reset .-walletlink-spinner svg{display:inline-block;animation:2s linear infinite -walletlink-spinner-svg}.-walletlink-css-reset .-walletlink-spinner svg circle{animation:1.9s ease-in-out infinite both -walletlink-spinner-circle;display:block;fill:transparent;stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -walletlink-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -walletlink-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},"./node_modules/walletlink/dist/components/Spinner.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Spinner=void 0;const preact_1=__webpack_require__("./node_modules/preact/dist/preact.module.js"),Spinner_css_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/Spinner-css.js"));exports.Spinner=props=>{var _a;const size=null!==(_a=props.size)&&void 0!==_a?_a:64,color=props.color||"#000";return(0,preact_1.h)("div",{class:"-walletlink-spinner"},(0,preact_1.h)("style",null,Spinner_css_1.default),(0,preact_1.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:size,height:size}},(0,preact_1.h)("circle",{style:{cx:50,cy:50,r:45,stroke:color}})))}},"./node_modules/walletlink/dist/components/TryExtensionLinkDialog-css.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default='.-walletlink-css-reset .-walletlink-extension-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-walletlink-css-reset .-walletlink-extension-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);transition:opacity .25s}.-walletlink-css-reset .-walletlink-extension-dialog-backdrop-hidden{opacity:0}.-walletlink-css-reset .-walletlink-extension-dialog-box{display:flex;position:relative;max-width:500px;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-walletlink-css-reset .-walletlink-extension-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-walletlink-css-reset .-walletlink-extension-dialog-box-top{display:flex;flex-direction:row;background-color:#fff;border-radius:8px;overflow:hidden;min-height:300px}.-walletlink-css-reset .-walletlink-extension-dialog-box-top-install-region{display:flex;flex-basis:50%;flex-direction:column;justify-content:center;padding:32px}.-walletlink-css-reset .-walletlink-extension-dialog-box-top-install-region button{display:block;border-radius:8px;background-color:#1652f0;color:#fff;width:90%;min-width:fit-content;height:44px;margin-top:16px;font-size:16px;padding-left:16px;padding-right:16px;cursor:pointer;font-weight:500;text-align:center}.-walletlink-css-reset .-walletlink-extension-dialog-box-top-info-region{display:flex;flex-basis:50%;flex-direction:column;justify-content:center;background-color:#fafbfc}.-walletlink-css-reset .-walletlink-extension-dialog-box-top-description{display:flex;flex-direction:row;align-items:center;padding-top:14px;padding-bottom:14px;padding-left:24px;padding-right:32px}.-walletlink-css-reset .-walletlink-extension-dialog-box-top-description-icon-wrapper{display:block;position:relative;width:40px;height:40px;flex-shrink:0;flex-grow:0;border-radius:20px;background-color:#fff;box-shadow:0px 0px 8px rgba(0,0,0,.04),0px 16px 24px rgba(0,0,0,.06)}.-walletlink-css-reset .-walletlink-extension-dialog-box-top-description-icon-wrapper img{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.-walletlink-css-reset .-walletlink-extension-dialog-box-top-description-text{margin-left:16px;flex-grow:1;font-size:13px;line-height:19px;color:#000;align-self:center}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom{display:flex;flex-direction:row;overflow:hidden;border-radius:8px;background-color:#fff;margin-top:8px}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-description-region{display:flex;flex-direction:column;justify-content:center;padding:32px;flex-grow:1}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-description{font-size:13px;line-height:19px;margin-top:12px;color:#aaa}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-description a{font-size:inherit;line-height:inherit;color:#1652f0;cursor:pointer}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-qr-region{position:relative;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;padding-left:24px;padding-right:24px;padding-top:16px;padding-bottom:16px}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-qr-wrapper{position:relative;display:block;padding:8px;border-radius:8px;box-shadow:0px 4px 12px rgba(0,0,0,.1)}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-qr-wrapper img{display:block}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:rgba(255,255,255,.95)}.-walletlink-css-reset .-walletlink-extension-dialog-box-bottom-qr-connecting>p{font-size:12px;font-weight:bold;color:#000;margin-top:16px}.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel{position:absolute;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;top:16px;right:16px;width:24px;height:24px;border-radius:12px;background-color:#fafbfc;cursor:pointer}.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel-x{position:relative;display:block;cursor:pointer}.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel-x::before,.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel-x::after{content:"";position:absolute;display:block;top:-1px;left:-7px;width:14px;height:1px;background-color:#000;transition:background-color .2s}.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel-x::before{transform:rotate(45deg)}.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel-x::after{transform:rotate(135deg)}.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel:hover .-walletlink-link-dialog-box-cancel-x-a,.-walletlink-css-reset .-walletlink-extension-dialog-box-cancel:hover .-walletlink-link-dialog-box-cancel-x-b{background-color:#000}.-walletlink-css-reset .-walletlink-extension-dialog-container{display:block}.-walletlink-css-reset .-walletlink-extension-dialog-container-hidden{display:none}.-walletlink-css-reset .-walletlink-extension-dialog h2{display:block;text-align:left;font-size:22px;font-weight:600;line-height:28px;color:#000}'},"./node_modules/walletlink/dist/components/TryExtensionLinkDialog.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.TryExtensionLinkDialog=void 0;const clsx_1=__importDefault(__webpack_require__("./node_modules/clsx/dist/clsx.m.js")),preact_1=__webpack_require__("./node_modules/preact/dist/preact.module.js"),hooks_1=__webpack_require__("./node_modules/preact/hooks/dist/hooks.module.js"),globe_icon_svg_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/icons/globe-icon-svg.js")),link_icon_svg_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/icons/link-icon-svg.js")),lock_icon_svg_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/icons/lock-icon-svg.js")),QRLogo_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/icons/QRLogo.js")),QRCode_1=__webpack_require__("./node_modules/walletlink/dist/components/QRCode.js"),Spinner_1=__webpack_require__("./node_modules/walletlink/dist/components/Spinner.js"),TryExtensionLinkDialog_css_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/components/TryExtensionLinkDialog-css.js")),version_1=__webpack_require__("./node_modules/walletlink/dist/version.js");exports.TryExtensionLinkDialog=props=>{const[isContainerHidden,setContainerHidden]=(0,hooks_1.useState)(!props.isOpen),[isDialogHidden,setDialogHidden]=(0,hooks_1.useState)(!props.isOpen);return(0,hooks_1.useEffect)((()=>{const{isOpen:isOpen}=props,timers=[window.setTimeout((()=>{setDialogHidden(!isOpen)}),10)];return isOpen?setContainerHidden(!1):timers.push(window.setTimeout((()=>{setContainerHidden(!0)}),360)),()=>{timers.forEach(window.clearTimeout)}}),[props.isOpen]),(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-extension-dialog-container",isContainerHidden&&"-walletlink-extension-dialog-container-hidden")},(0,preact_1.h)("style",null,TryExtensionLinkDialog_css_1.default),(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-extension-dialog-backdrop",isDialogHidden&&"-walletlink-extension-dialog-backdrop-hidden")}),(0,preact_1.h)("div",{class:"-walletlink-extension-dialog"},(0,preact_1.h)("div",{class:(0,clsx_1.default)("-walletlink-extension-dialog-box",isDialogHidden&&"-walletlink-extension-dialog-box-hidden")},(0,preact_1.h)(TryExtensionBox,{onInstallClick:()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}}),props.connectDisabled?null:(0,preact_1.h)(ScanQRBox,{darkMode:props.darkMode,version:props.version,sessionId:props.sessionId,sessionSecret:props.sessionSecret,walletLinkUrl:props.walletLinkUrl,isConnected:props.isConnected,isParentConnection:props.isParentConnection}),props.onCancel&&(0,preact_1.h)(CancelButton,{onClick:props.onCancel}))))};const TryExtensionBox=props=>(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-top"},(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-top-install-region"},(0,preact_1.h)("h2",null,"Try the Coinbase Wallet extension"),(0,preact_1.h)("button",{onClick:props.onInstallClick},"Install")),(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-top-info-region"},(0,preact_1.h)(DescriptionItem,{icon:link_icon_svg_1.default,text:"Connect to crypto apps with one click"}),(0,preact_1.h)(DescriptionItem,{icon:lock_icon_svg_1.default,text:"Your private key is stored securely"}),(0,preact_1.h)(DescriptionItem,{icon:globe_icon_svg_1.default,text:"Works with Ethereum, Polygon, and more"}))),ScanQRBox=props=>{const serverUrl=window.encodeURIComponent(props.walletLinkUrl),sessionIdKey=props.isParentConnection?"parent-id":"id",qrUrl=`${props.walletLinkUrl}/#/link?${sessionIdKey}=${props.sessionId}&secret=${props.sessionSecret}&server=${serverUrl}&v=1`;return(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-bottom"},(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-bottom-description-region"},(0,preact_1.h)("h2",null,"Or scan to connect"),(0,preact_1.h)("body",{class:"-walletlink-extension-dialog-box-bottom-description"},"Open ",(0,preact_1.h)("a",{href:"https://wallet.coinbase.com/"},"Coinbase Wallet")," on your mobile phone and scan")),(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-bottom-qr-region"},(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-bottom-qr-wrapper"},(0,preact_1.h)(QRCode_1.QRCode,{content:qrUrl,width:150,height:150,fgColor:"#000",bgColor:"transparent",image:{svg:QRLogo_1.default,width:34,height:34}})),(0,preact_1.h)("input",{type:"hidden",name:"walletlink-version",value:version_1.LIB_VERSION}),(0,preact_1.h)("input",{type:"hidden",value:qrUrl}),!props.isConnected&&(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-bottom-qr-connecting"},(0,preact_1.h)(Spinner_1.Spinner,{size:36,color:"#000"}),(0,preact_1.h)("p",null,"Connecting..."))))},DescriptionItem=props=>(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-top-description"},(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-top-description-icon-wrapper"},(0,preact_1.h)("img",{src:props.icon})),(0,preact_1.h)("body",{class:"-walletlink-extension-dialog-box-top-description-text"},props.text)),CancelButton=props=>(0,preact_1.h)("button",{class:"-walletlink-extension-dialog-box-cancel",onClick:props.onClick},(0,preact_1.h)("div",{class:"-walletlink-extension-dialog-box-cancel-x"}))},"./node_modules/walletlink/dist/components/icons/QRLogo.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default='<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="50" cy="50" r="50" fill="white"/>\n<circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/>\n<circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M19.3379 49.9484C19.3379 66.8508 33.04 80.553 49.9425 80.553C66.8449 80.553 80.5471 66.8508 80.5471 49.9484C80.5471 33.0459 66.8449 19.3438 49.9425 19.3438C33.04 19.3438 19.3379 33.0459 19.3379 49.9484ZM44.0817 40.0799C41.8725 40.0799 40.0817 41.8708 40.0817 44.0799V55.8029C40.0817 58.012 41.8725 59.8029 44.0817 59.8029H55.8046C58.0138 59.8029 59.8046 58.012 59.8046 55.8029V44.0799C59.8046 41.8708 58.0138 40.0799 55.8046 40.0799H44.0817Z" fill="white"/>\n</svg>\n\n'},"./node_modules/walletlink/dist/components/icons/globe-icon-svg.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTggMEMzLjU4IDAgMCAzLjU4IDAgOHMzLjU4IDggOCA4IDgtMy41OCA4LTgtMy41OC04LTgtOFptNS45MSA3aC0xLjk0Yy0uMS0xLjU3LS40Mi0zLS45MS00LjE1IDEuNDguODggMi41NSAyLjM4IDIuODUgNC4xNVpNOCAxNGMtLjQ1IDAtMS43Mi0xLjc3LTEuOTUtNWgzLjljLS4yMyAzLjIzLTEuNSA1LTEuOTUgNVpNNi4wNSA3QzYuMjggMy43NyA3LjU1IDIgOCAyYy40NSAwIDEuNzIgMS43NyAxLjk1IDVoLTMuOVpNNC45NCAyLjg1QzQuNDYgNCA0LjEzIDUuNDMgNC4wMyA3SDIuMDljLjMtMS43NyAxLjM3LTMuMjcgMi44NS00LjE1Wk0yLjA5IDloMS45NGMuMSAxLjU3LjQyIDMgLjkxIDQuMTVBNS45OTggNS45OTggMCAwIDEgMi4wOSA5Wm04Ljk3IDQuMTVjLjQ4LTEuMTUuODEtMi41OC45MS00LjE1aDEuOTRhNS45OTggNS45OTggMCAwIDEtMi44NSA0LjE1WiIgZmlsbD0iIzE2NTJGMCIvPjwvc3ZnPg=="},"./node_modules/walletlink/dist/components/icons/link-icon-svg.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjYzNSAyLjExN2EzLjg4OSAzLjg4OSAwIDAgMC01LjUyMSAwTDYuODkgNS4zMzVBMy44OTQgMy44OTQgMCAwIDAgNS44IDguNzM5Yy4wODMuNTA2LjI2OCAxLjAxMS41NTMgMS40NjYuMTUxLjI1My4zMzYuNDcyLjUzNy42OTFsLjYyMS42MjQgMS4xNDEtMS4xNDYtLjYyLS42MjRhMi4xMDUgMi4xMDUgMCAwIDEtLjQ4Ny0uNzQxIDIuMzQgMi4zNCAwIDAgMSAuNTAzLTIuNTFsMy4yMDYtMy4yMmEyLjI5MyAyLjI5MyAwIDAgMSAzLjIzOSAwYy44OS44OTQuODkgMi4zNDMgMCAzLjI1M2wtMS41MjcgMS41MzNjLjIzNC42NC4zMzUgMS4zMzEuMzAyIDIuMDA1bDIuMzgzLTIuMzkyYzEuNTEtMS41MzQgMS40OTMtNC4wMjgtLjAxNy01LjU2MVoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBkPSJNMTEuMjcxIDcuNzQ1YTMuMTMgMy4xMyAwIDAgMC0uNTU0LS42OWwtLjYyLS42MjQtMS4xNDIgMS4xNDYuNjIxLjYyM2MuMjE4LjIyLjM4Ni40ODkuNDg3Ljc1OC4zMzUuODI2LjE2NyAxLjgyLS41MDQgMi40OTRsLTMuMjA1IDMuMjE5YTIuMjkzIDIuMjkzIDAgMCAxLTMuMjQgMCAyLjMxNiAyLjMxNiAwIDAgMSAwLTMuMjUybDEuNTI4LTEuNTM0YTQuODE1IDQuODE1IDAgMCAxLS4yODUtMi4wMDVsLTIuMzgzIDIuMzkzYTMuOTI3IDMuOTI3IDAgMCAwIDAgNS41NDQgMy45MDkgMy45MDkgMCAwIDAgNS41MzggMGwzLjIwNS0zLjIxOWEzLjk1OCAzLjk1OCAwIDAgMCAxLjA5MS0zLjQwNCA0LjIxMSA0LjIxMSAwIDAgMC0uNTM3LTEuNDQ5WiIgZmlsbD0iIzE2NTJGMCIvPjwvc3ZnPg=="},"./node_modules/walletlink/dist/components/icons/lock-icon-svg.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgN3Y5aDE0VjdIMVptNy41IDQuMzlWMTRoLTF2LTIuNjFjLS40NC0uMTktLjc1LS42My0uNzUtMS4xNGExLjI1IDEuMjUgMCAwIDEgMi41IDBjMCAuNTEtLjMxLjk1LS43NSAxLjE0Wk01LjY3IDZWNC4zM0M1LjY3IDMuMDUgNi43MSAyIDggMnMyLjMzIDEuMDUgMi4zMyAyLjMzVjZoMlY0LjMzQzEyLjMzIDEuOTQgMTAuMzkgMCA4IDBTMy42NyAxLjk0IDMuNjcgNC4zM1Y2aDJaIiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"},"./node_modules/walletlink/dist/connection/ClientMessage.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ClientMessagePublishEvent=exports.ClientMessageSetSessionConfig=exports.ClientMessageGetSessionConfig=exports.ClientMessageIsLinked=exports.ClientMessageHostSession=void 0,exports.ClientMessageHostSession=function ClientMessageHostSession(params){return Object.assign({type:"HostSession"},params)},exports.ClientMessageIsLinked=function ClientMessageIsLinked(params){return Object.assign({type:"IsLinked"},params)},exports.ClientMessageGetSessionConfig=function ClientMessageGetSessionConfig(params){return Object.assign({type:"GetSessionConfig"},params)},exports.ClientMessageSetSessionConfig=function ClientMessageSetSessionConfig(params){return Object.assign({type:"SetSessionConfig"},params)},exports.ClientMessagePublishEvent=function ClientMessagePublishEvent(params){return Object.assign({type:"PublishEvent"},params)}},"./node_modules/walletlink/dist/connection/RxWebSocket.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RxWebSocket=exports.ConnectionState=void 0;const rxjs_1=__webpack_require__("./node_modules/rxjs/_esm5/index.js"),operators_1=__webpack_require__("./node_modules/rxjs/_esm5/operators/index.js");var ConnectionState;!function(ConnectionState){ConnectionState[ConnectionState.DISCONNECTED=0]="DISCONNECTED",ConnectionState[ConnectionState.CONNECTING=1]="CONNECTING",ConnectionState[ConnectionState.CONNECTED=2]="CONNECTED"}(ConnectionState=exports.ConnectionState||(exports.ConnectionState={}));exports.RxWebSocket=class RxWebSocket{constructor(url,WebSocketClass=WebSocket){this.WebSocketClass=WebSocketClass,this.webSocket=null,this.connectionStateSubject=new rxjs_1.BehaviorSubject(ConnectionState.DISCONNECTED),this.incomingDataSubject=new rxjs_1.Subject,this.url=url.replace(/^http/,"ws")}connect(){return this.webSocket?(0,rxjs_1.throwError)(new Error("webSocket object is not null")):new rxjs_1.Observable((obs=>{let webSocket;try{this.webSocket=webSocket=new this.WebSocketClass(this.url)}catch(err){return void obs.error(err)}this.connectionStateSubject.next(ConnectionState.CONNECTING),webSocket.onclose=evt=>{this.clearWebSocket(),obs.error(new Error(`websocket error ${evt.code}: ${evt.reason}`)),this.connectionStateSubject.next(ConnectionState.DISCONNECTED)},webSocket.onopen=_=>{obs.next(),obs.complete(),this.connectionStateSubject.next(ConnectionState.CONNECTED)},webSocket.onmessage=evt=>{this.incomingDataSubject.next(evt.data)}})).pipe((0,operators_1.take)(1))}disconnect(){const{webSocket:webSocket}=this;if(webSocket){this.clearWebSocket(),this.connectionStateSubject.next(ConnectionState.DISCONNECTED);try{webSocket.close()}catch(_a){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,operators_1.flatMap)((m=>{let j;try{j=JSON.parse(m)}catch(err){return(0,rxjs_1.empty)()}return(0,rxjs_1.of)(j)})))}sendData(data){const{webSocket:webSocket}=this;if(!webSocket)throw new Error("websocket is not connected");webSocket.send(data)}clearWebSocket(){const{webSocket:webSocket}=this;webSocket&&(this.webSocket=null,webSocket.onclose=null,webSocket.onerror=null,webSocket.onmessage=null,webSocket.onopen=null)}}},"./node_modules/walletlink/dist/connection/ServerMessage.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isServerMessageFail=void 0,exports.isServerMessageFail=function isServerMessageFail(msg){return msg&&"Fail"===msg.type&&"number"==typeof msg.id&&"string"==typeof msg.sessionId&&"string"==typeof msg.error}},"./node_modules/walletlink/dist/connection/WalletLinkAnalytics.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkAnalytics=void 0;exports.WalletLinkAnalytics=class WalletLinkAnalytics{sendEvent(_eventType,_eventProperties){}}},"./node_modules/walletlink/dist/connection/WalletLinkConnection.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkConnection=void 0;const rxjs_1=__webpack_require__("./node_modules/rxjs/_esm5/index.js"),operators_1=__webpack_require__("./node_modules/rxjs/_esm5/operators/index.js"),init_1=__webpack_require__("./node_modules/walletlink/dist/init/index.js"),Session_1=__webpack_require__("./node_modules/walletlink/dist/relay/Session.js"),types_1=__webpack_require__("./node_modules/walletlink/dist/types.js"),ClientMessage_1=__webpack_require__("./node_modules/walletlink/dist/connection/ClientMessage.js"),RxWebSocket_1=__webpack_require__("./node_modules/walletlink/dist/connection/RxWebSocket.js"),ServerMessage_1=__webpack_require__("./node_modules/walletlink/dist/connection/ServerMessage.js");exports.WalletLinkConnection=class WalletLinkConnection{constructor(sessionId,sessionKey,serverUrl,walletLinkAnalytics,WebSocketClass=WebSocket){this.sessionId=sessionId,this.sessionKey=sessionKey,this.subscriptions=new rxjs_1.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,types_1.IntNumber)(1),this.connectedSubject=new rxjs_1.BehaviorSubject(!1),this.linkedSubject=new rxjs_1.BehaviorSubject(!1),this.sessionConfigSubject=new rxjs_1.ReplaySubject(1);const ws=new RxWebSocket_1.RxWebSocket(serverUrl+"/rpc",WebSocketClass);this.ws=ws,this.walletLinkAnalytics=walletLinkAnalytics,this.subscriptions.add(ws.connectionState$.pipe((0,operators_1.tap)((state=>this.walletLinkAnalytics.sendEvent(init_1.EVENTS.CONNECTED_STATE_CHANGE,{state:state,sessionIdHash:Session_1.Session.hash(sessionId)}))),(0,operators_1.skip)(1),(0,operators_1.filter)((cs=>cs===RxWebSocket_1.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,operators_1.delay)(5e3),(0,operators_1.filter)((_=>!this.destroyed)),(0,operators_1.flatMap)((_=>ws.connect())),(0,operators_1.retry)()).subscribe()),this.subscriptions.add(ws.connectionState$.pipe((0,operators_1.skip)(2),(0,operators_1.switchMap)((cs=>(0,rxjs_1.iif)((()=>cs===RxWebSocket_1.ConnectionState.CONNECTED),this.authenticate().pipe((0,operators_1.tap)((_=>this.sendIsLinked())),(0,operators_1.tap)((_=>this.sendGetSessionConfig())),(0,operators_1.map)((_=>!0))),(0,rxjs_1.of)(!1)))),(0,operators_1.distinctUntilChanged)(),(0,operators_1.catchError)((_=>(0,rxjs_1.of)(!1)))).subscribe((connected=>this.connectedSubject.next(connected)))),this.subscriptions.add(ws.connectionState$.pipe((0,operators_1.skip)(1),(0,operators_1.switchMap)((cs=>(0,rxjs_1.iif)((()=>cs===RxWebSocket_1.ConnectionState.CONNECTED),(0,rxjs_1.timer)(0,1e4))))).subscribe((i=>0===i?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(ws.incomingData$.pipe((0,operators_1.filter)((m=>"h"===m))).subscribe((_=>this.updateLastHeartbeat()))),this.subscriptions.add(ws.incomingJSONData$.pipe((0,operators_1.filter)((m=>["IsLinkedOK","Linked"].includes(m.type)))).subscribe((m=>{const msg=m;this.walletLinkAnalytics.sendEvent(init_1.EVENTS.LINKED,{sessionIdHash:Session_1.Session.hash(sessionId),linked:msg.linked,type:m.type,onlineGuests:msg.onlineGuests}),this.linkedSubject.next(msg.linked||msg.onlineGuests>0)}))),this.subscriptions.add(ws.incomingJSONData$.pipe((0,operators_1.filter)((m=>["GetSessionConfigOK","SessionConfigUpdated"].includes(m.type)))).subscribe((m=>{const msg=m;this.walletLinkAnalytics.sendEvent(init_1.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:Session_1.Session.hash(sessionId),metadata_keys:msg&&msg.metadata?Object.keys(msg.metadata):void 0}),this.sessionConfigSubject.next({webhookId:msg.webhookId,webhookUrl:msg.webhookUrl,metadata:msg.metadata})})))}connect(){if(this.destroyed)throw new Error("instance is destroyed");this.walletLinkAnalytics.sendEvent(init_1.EVENTS.STARTED_CONNECTING,{sessionIdHash:Session_1.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){this.subscriptions.unsubscribe(),this.ws.disconnect(),this.walletLinkAnalytics.sendEvent(init_1.EVENTS.DISCONNECTED,{sessionIdHash:Session_1.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,operators_1.filter)((v=>v)),(0,operators_1.take)(1),(0,operators_1.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,operators_1.filter)((v=>v)),(0,operators_1.take)(1),(0,operators_1.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,operators_1.filter)((m=>{if("Event"!==m.type)return!1;const sme=m;return"string"==typeof sme.sessionId&&"string"==typeof sme.eventId&&"string"==typeof sme.event&&"string"==typeof sme.data})),(0,operators_1.map)((m=>m)))}setSessionMetadata(key,value){const message=(0,ClientMessage_1.ClientMessageSetSessionConfig)({id:(0,types_1.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[key]:value}});return this.onceConnected$.pipe((0,operators_1.flatMap)((_=>this.makeRequest(message))),(0,operators_1.map)((res=>{if((0,ServerMessage_1.isServerMessageFail)(res))throw new Error(res.error||"failed to set session metadata")})))}publishEvent(event,data,callWebhook=!1){const message=(0,ClientMessage_1.ClientMessagePublishEvent)({id:(0,types_1.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:event,data:data,callWebhook:callWebhook});return this.onceLinked$.pipe((0,operators_1.flatMap)((_=>this.makeRequest(message))),(0,operators_1.map)((res=>{if((0,ServerMessage_1.isServerMessageFail)(res))throw new Error(res.error||"failed to publish event");return res.eventId})))}sendData(message){this.ws.sendData(JSON.stringify(message))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(_a){}}makeRequest(message,timeout=6e4){const reqId=message.id;try{this.sendData(message)}catch(err){return(0,rxjs_1.throwError)(err)}return this.ws.incomingJSONData$.pipe((0,operators_1.timeoutWith)(timeout,(0,rxjs_1.throwError)(new Error(`request ${reqId} timed out`))),(0,operators_1.filter)((m=>m.id===reqId)),(0,operators_1.take)(1))}authenticate(){const msg=(0,ClientMessage_1.ClientMessageHostSession)({id:(0,types_1.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(msg).pipe((0,operators_1.map)((res=>{if((0,ServerMessage_1.isServerMessageFail)(res))throw new Error(res.error||"failed to authentcate")})))}sendIsLinked(){const msg=(0,ClientMessage_1.ClientMessageIsLinked)({id:(0,types_1.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(msg)}sendGetSessionConfig(){const msg=(0,ClientMessage_1.ClientMessageGetSessionConfig)({id:(0,types_1.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(msg)}}},"./node_modules/walletlink/dist/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLink=exports.WalletLinkProvider=void 0;const WalletLinkProvider_1=__webpack_require__("./node_modules/walletlink/dist/provider/WalletLinkProvider.js"),WalletLink_1=__webpack_require__("./node_modules/walletlink/dist/WalletLink.js");var WalletLinkProvider_2=__webpack_require__("./node_modules/walletlink/dist/provider/WalletLinkProvider.js");Object.defineProperty(exports,"WalletLinkProvider",{enumerable:!0,get:function(){return WalletLinkProvider_2.WalletLinkProvider}});var WalletLink_2=__webpack_require__("./node_modules/walletlink/dist/WalletLink.js");Object.defineProperty(exports,"WalletLink",{enumerable:!0,get:function(){return WalletLink_2.WalletLink}}),exports.default=WalletLink_1.WalletLink,"undefined"!=typeof window&&(window.WalletLink=WalletLink_1.WalletLink,window.WalletLinkProvider=WalletLinkProvider_1.WalletLinkProvider)},"./node_modules/walletlink/dist/init/WalletLinkAnalyticsAbstract.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkAnalyticsAbstract=void 0;exports.WalletLinkAnalyticsAbstract=class WalletLinkAnalyticsAbstract{}},"./node_modules/walletlink/dist/init/events.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EVENTS=void 0,exports.EVENTS={REQUEST_CHILD_ETHEREUM_ACCOUNTS_START:"walletlink_sdk.request_child_ethereum_accounts.start",REQUEST_CHILD_ETHEREUM_ACCOUNTS_RESPONSE:"walletlink_sdk.request_child_ethereum_accounts.response",STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},"./node_modules/walletlink/dist/init/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(__webpack_require__("./node_modules/walletlink/dist/init/events.js"),exports),__exportStar(__webpack_require__("./node_modules/walletlink/dist/init/WalletLinkAnalyticsAbstract.js"),exports)},"./node_modules/walletlink/dist/lib/ScopedLocalStorage.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScopedLocalStorage=void 0;exports.ScopedLocalStorage=class ScopedLocalStorage{constructor(scope){this.scope=scope}setItem(key,value){localStorage.setItem(this.scopedKey(key),value)}getItem(key){return localStorage.getItem(this.scopedKey(key))}removeItem(key){localStorage.removeItem(this.scopedKey(key))}clear(){const prefix=this.scopedKey(""),keysToRemove=[];for(let i=0;i<localStorage.length;i++){const key=localStorage.key(i);"string"==typeof key&&key.startsWith(prefix)&&keysToRemove.push(key)}keysToRemove.forEach((key=>localStorage.removeItem(key)))}scopedKey(key){return`${this.scope}:${key}`}}},"./node_modules/walletlink/dist/lib/cssReset-css.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default='@namespace svg "http://www.w3.org/2000/svg";.-walletlink-css-reset,.-walletlink-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:transparent;background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;bottom:auto;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:block;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";right:auto;tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;width:auto;word-spacing:normal;z-index:auto}.-walletlink-css-reset *{box-sizing:border-box;display:initial;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-walletlink-css-reset [class*=container]{margin:0;padding:0}.-walletlink-css-reset style{display:none}'},"./node_modules/walletlink/dist/lib/cssReset.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.injectCssReset=void 0;const cssReset_css_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/lib/cssReset-css.js"));exports.injectCssReset=function injectCssReset(){const styleEl=document.createElement("style");styleEl.type="text/css",styleEl.appendChild(document.createTextNode(cssReset_css_1.default)),document.documentElement.appendChild(styleEl)}},"./node_modules/walletlink/dist/provider/FilterPolyfill.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.filterFromParam=exports.FilterPolyfill=void 0;const types_1=__webpack_require__("./node_modules/walletlink/dist/types.js"),util_1=__webpack_require__("./node_modules/walletlink/dist/util.js"),JSONRPC_TEMPLATE={jsonrpc:"2.0",id:0};function filterFromParam(param){return{fromBlock:intBlockHeightFromHexBlockHeight(param.fromBlock),toBlock:intBlockHeightFromHexBlockHeight(param.toBlock),addresses:void 0===param.address?null:Array.isArray(param.address)?param.address:[param.address],topics:param.topics||[]}}function paramFromFilter(filter){const param={fromBlock:hexBlockHeightFromIntBlockHeight(filter.fromBlock),toBlock:hexBlockHeightFromIntBlockHeight(filter.toBlock),topics:filter.topics};return null!==filter.addresses&&(param.address=filter.addresses),param}function intBlockHeightFromHexBlockHeight(value){if(void 0===value||"latest"===value||"pending"===value)return"latest";if("earliest"===value)return(0,types_1.IntNumber)(0);if((0,util_1.isHexString)(value))return(0,util_1.intNumberFromHexString)(value);throw new Error(`Invalid block option: ${String(value)}`)}function hexBlockHeightFromIntBlockHeight(value){return"latest"===value?value:(0,util_1.hexStringFromIntNumber)(value)}function filterNotFoundError(){return Object.assign(Object.assign({},JSONRPC_TEMPLATE),{error:{code:-32e3,message:"filter not found"}})}function emptyResult(){return Object.assign(Object.assign({},JSONRPC_TEMPLATE),{result:[]})}exports.FilterPolyfill=class FilterPolyfill{constructor(provider){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,types_1.IntNumber)(1),this.provider=provider}async newFilter(param){const filter=filterFromParam(param),id=this.makeFilterId(),cursor=await this.setInitialCursorPosition(id,filter.fromBlock);return console.log(`Installing new log filter(${id}):`,filter,"initial cursor position:",cursor),this.logFilters.set(id,filter),this.setFilterTimeout(id),(0,util_1.hexStringFromIntNumber)(id)}async newBlockFilter(){const id=this.makeFilterId(),cursor=await this.setInitialCursorPosition(id,"latest");return console.log(`Installing new block filter (${id}) with initial cursor position:`,cursor),this.blockFilters.add(id),this.setFilterTimeout(id),(0,util_1.hexStringFromIntNumber)(id)}async newPendingTransactionFilter(){const id=this.makeFilterId(),cursor=await this.setInitialCursorPosition(id,"latest");return console.log(`Installing new block filter (${id}) with initial cursor position:`,cursor),this.pendingTransactionFilters.add(id),this.setFilterTimeout(id),(0,util_1.hexStringFromIntNumber)(id)}uninstallFilter(filterId){const id=(0,util_1.intNumberFromHexString)(filterId);return console.log(`Uninstalling filter (${id})`),this.deleteFilter(id),!0}getFilterChanges(filterId){const id=(0,util_1.intNumberFromHexString)(filterId);return this.timeouts.has(id)&&this.setFilterTimeout(id),this.logFilters.has(id)?this.getLogFilterChanges(id):this.blockFilters.has(id)?this.getBlockFilterChanges(id):this.pendingTransactionFilters.has(id)?this.getPendingTransactionFilterChanges(id):Promise.resolve(filterNotFoundError())}async getFilterLogs(filterId){const id=(0,util_1.intNumberFromHexString)(filterId),filter=this.logFilters.get(id);return filter?this.sendAsyncPromise(Object.assign(Object.assign({},JSONRPC_TEMPLATE),{method:"eth_getLogs",params:[paramFromFilter(filter)]})):filterNotFoundError()}makeFilterId(){return(0,types_1.IntNumber)(++this.nextFilterId)}sendAsyncPromise(request){return new Promise(((resolve,reject)=>{this.provider.sendAsync(request,((err,response)=>err?reject(err):Array.isArray(response)||null==response?reject(new Error(`unexpected response received: ${JSON.stringify(response)}`)):void resolve(response)))}))}deleteFilter(id){console.log(`Deleting filter (${id})`),this.logFilters.delete(id),this.blockFilters.delete(id),this.pendingTransactionFilters.delete(id),this.cursors.delete(id),this.timeouts.delete(id)}async getLogFilterChanges(id){const filter=this.logFilters.get(id),cursorPosition=this.cursors.get(id);if(!cursorPosition||!filter)return filterNotFoundError();const currentBlockHeight=await this.getCurrentBlockHeight(),toBlock="latest"===filter.toBlock?currentBlockHeight:filter.toBlock;if(cursorPosition>currentBlockHeight)return emptyResult();if(cursorPosition>filter.toBlock)return emptyResult();console.log(`Fetching logs from ${cursorPosition} to ${toBlock} for filter ${id}`);const response=await this.sendAsyncPromise(Object.assign(Object.assign({},JSONRPC_TEMPLATE),{method:"eth_getLogs",params:[paramFromFilter(Object.assign(Object.assign({},filter),{fromBlock:cursorPosition,toBlock:toBlock}))]}));if(Array.isArray(response.result)){const blocks=response.result.map((log=>(0,util_1.intNumberFromHexString)(log.blockNumber||"0x0"))),highestBlock=Math.max(...blocks);if(highestBlock&&highestBlock>cursorPosition){const newCursorPosition=(0,types_1.IntNumber)(highestBlock+1);console.log(`Moving cursor position for filter (${id}) from ${cursorPosition} to ${newCursorPosition}`),this.cursors.set(id,newCursorPosition)}}return response}async getBlockFilterChanges(id){const cursorPosition=this.cursors.get(id);if(!cursorPosition)return filterNotFoundError();const currentBlockHeight=await this.getCurrentBlockHeight();if(cursorPosition>currentBlockHeight)return emptyResult();console.log(`Fetching blocks from ${cursorPosition} to ${currentBlockHeight} for filter (${id})`);const blocks=(await Promise.all((0,util_1.range)(cursorPosition,currentBlockHeight+1).map((i=>this.getBlockHashByNumber((0,types_1.IntNumber)(i)))))).filter((hash=>!!hash)),newCursorPosition=(0,types_1.IntNumber)(cursorPosition+blocks.length);return console.log(`Moving cursor position for filter (${id}) from ${cursorPosition} to ${newCursorPosition}`),this.cursors.set(id,newCursorPosition),Object.assign(Object.assign({},JSONRPC_TEMPLATE),{result:blocks})}async getPendingTransactionFilterChanges(_id){return Promise.resolve(emptyResult())}async setInitialCursorPosition(id,startBlock){const currentBlockHeight=await this.getCurrentBlockHeight(),initialCursorPosition="number"==typeof startBlock&&startBlock>currentBlockHeight?startBlock:currentBlockHeight;return this.cursors.set(id,initialCursorPosition),initialCursorPosition}setFilterTimeout(id){const existing=this.timeouts.get(id);existing&&window.clearTimeout(existing);const timeout=window.setTimeout((()=>{console.log(`Filter (${id}) timed out`),this.deleteFilter(id)}),3e5);this.timeouts.set(id,timeout)}async getCurrentBlockHeight(){const{result:result}=await this.sendAsyncPromise(Object.assign(Object.assign({},JSONRPC_TEMPLATE),{method:"eth_blockNumber",params:[]}));return(0,util_1.intNumberFromHexString)((0,util_1.ensureHexString)(result))}async getBlockHashByNumber(blockNumber){const response=await this.sendAsyncPromise(Object.assign(Object.assign({},JSONRPC_TEMPLATE),{method:"eth_getBlockByNumber",params:[(0,util_1.hexStringFromIntNumber)(blockNumber),!1]}));return response.result&&"string"==typeof response.result.hash?(0,util_1.ensureHexString)(response.result.hash):null}},exports.filterFromParam=filterFromParam},"./node_modules/walletlink/dist/provider/JSONRPC.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.JSONRPCMethod=void 0,function(JSONRPCMethod){JSONRPCMethod.eth_accounts="eth_accounts",JSONRPCMethod.eth_coinbase="eth_coinbase",JSONRPCMethod.net_version="net_version",JSONRPCMethod.eth_chainId="eth_chainId",JSONRPCMethod.eth_uninstallFilter="eth_uninstallFilter",JSONRPCMethod.eth_requestAccounts="eth_requestAccounts",JSONRPCMethod.eth_sign="eth_sign",JSONRPCMethod.eth_ecRecover="eth_ecRecover",JSONRPCMethod.personal_sign="personal_sign",JSONRPCMethod.personal_ecRecover="personal_ecRecover",JSONRPCMethod.eth_signTransaction="eth_signTransaction",JSONRPCMethod.eth_sendRawTransaction="eth_sendRawTransaction",JSONRPCMethod.eth_sendTransaction="eth_sendTransaction",JSONRPCMethod.eth_signTypedData_v1="eth_signTypedData_v1",JSONRPCMethod.eth_signTypedData_v2="eth_signTypedData_v2",JSONRPCMethod.eth_signTypedData_v3="eth_signTypedData_v3",JSONRPCMethod.eth_signTypedData_v4="eth_signTypedData_v4",JSONRPCMethod.eth_signTypedData="eth_signTypedData",JSONRPCMethod.walletlink_arbitrary="walletlink_arbitrary",JSONRPCMethod.wallet_addEthereumChain="wallet_addEthereumChain",JSONRPCMethod.wallet_switchEthereumChain="wallet_switchEthereumChain",JSONRPCMethod.wallet_watchAsset="wallet_watchAsset",JSONRPCMethod.eth_subscribe="eth_subscribe",JSONRPCMethod.eth_unsubscribe="eth_unsubscribe",JSONRPCMethod.eth_newFilter="eth_newFilter",JSONRPCMethod.eth_newBlockFilter="eth_newBlockFilter",JSONRPCMethod.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",JSONRPCMethod.eth_getFilterChanges="eth_getFilterChanges",JSONRPCMethod.eth_getFilterLogs="eth_getFilterLogs"}(exports.JSONRPCMethod||(exports.JSONRPCMethod={}))},"./node_modules/walletlink/dist/provider/SubscriptionManager.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SubscriptionManager=void 0;const PollingBlockTracker=__webpack_require__("./node_modules/eth-block-tracker/src/polling.js"),createSubscriptionManager=__webpack_require__("./node_modules/eth-json-rpc-filters/subscriptionManager.js"),noop=()=>{};exports.SubscriptionManager=class SubscriptionManager{constructor(provider){const blockTracker=new PollingBlockTracker({provider:provider,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:events,middleware:middleware}=createSubscriptionManager({blockTracker:blockTracker,provider:provider});this.events=events,this.subscriptionMiddleware=middleware}async handleRequest(request){const result={};return await this.subscriptionMiddleware(request,result,noop,noop),result}destroy(){this.subscriptionMiddleware.destroy()}}},"./node_modules/walletlink/dist/provider/WalletLinkProvider.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var Buffer=__webpack_require__("./node_modules/buffer/index.js").Buffer,__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkProvider=void 0;const safe_event_emitter_1=__importDefault(__webpack_require__("./node_modules/@metamask/safe-event-emitter/index.js")),bn_js_1=__importDefault(__webpack_require__("./node_modules/walletlink/node_modules/bn.js/lib/bn.js")),eth_rpc_errors_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/index.js"),WalletLinkAnalytics_1=__webpack_require__("./node_modules/walletlink/dist/connection/WalletLinkAnalytics.js"),init_1=__webpack_require__("./node_modules/walletlink/dist/init/index.js"),Session_1=__webpack_require__("./node_modules/walletlink/dist/relay/Session.js"),WalletLinkRelayAbstract_1=__webpack_require__("./node_modules/walletlink/dist/relay/WalletLinkRelayAbstract.js"),util_1=__webpack_require__("./node_modules/walletlink/dist/util.js"),eth_eip712_util_1=__importDefault(__webpack_require__("./node_modules/walletlink/dist/vendor-js/eth-eip712-util/index.js")),FilterPolyfill_1=__webpack_require__("./node_modules/walletlink/dist/provider/FilterPolyfill.js"),JSONRPC_1=__webpack_require__("./node_modules/walletlink/dist/provider/JSONRPC.js"),SubscriptionManager_1=__webpack_require__("./node_modules/walletlink/dist/provider/SubscriptionManager.js");class WalletLinkProvider extends safe_event_emitter_1.default{constructor(options){var _a;super(),this._filterPolyfill=new FilterPolyfill_1.FilterPolyfill(this),this._subscriptionManager=new SubscriptionManager_1.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._jsonRpcUrlFromOpts=options.jsonRpcUrl,this._overrideIsMetaMask=options.overrideIsMetaMask,this._relayProvider=options.relayProvider,this._storage=options.storage,this._relayEventManager=options.relayEventManager,this._walletLinkAnalytics=options.walletLinkAnalytics?options.walletLinkAnalytics:new WalletLinkAnalytics_1.WalletLinkAnalytics,this.isCoinbaseWallet=null===(_a=options.overrideIsCoinbaseWallet)||void 0===_a||_a;const chainId=this.getChainId(),chainIdStr=(0,util_1.prepend0x)(chainId.toString(16));this.emit("connect",{chainIdStr:chainIdStr});const cachedAddresses=this._storage.getItem(WalletLinkRelayAbstract_1.LOCAL_STORAGE_ADDRESSES_KEY);if(cachedAddresses){const addresses=cachedAddresses.split(" ");""!==addresses[0]&&(this._addresses=addresses.map((address=>(0,util_1.ensureAddressString)(address))),this.emit("accountsChanged",addresses))}this._subscriptionManager.events.on("notification",(notification=>{this.emit("message",{type:notification.method,data:notification.params})})),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",(event=>{var _a;if("walletLinkMessage"===event.data.type&&"defaultChainChanged"===event.data.data.action){const _chainId=event.data.data.chainId,jsonRpcUrl=null!==(_a=event.data.data.jsonRpcUrl)&&void 0!==_a?_a:this.jsonRpcUrl;this.updateProviderInfo(jsonRpcUrl,Number(_chainId),!0)}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,util_1.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var _a;return null!==(_a=this._storage.getItem("DefaultJsonRpcUrl"))&&void 0!==_a?_a:this._jsonRpcUrlFromOpts}set jsonRpcUrl(value){this._storage.setItem("DefaultJsonRpcUrl",value)}get isChainOverridden(){return"true"===this._storage.getItem("HasChainOverriddenFromRelay")}set isChainOverridden(value){this._storage.setItem("HasChainOverriddenFromRelay",value.toString())}setProviderInfo(jsonRpcUrl,chainId){this.isChainOverridden||this.updateProviderInfo(jsonRpcUrl,this.getChainId(),!1)}updateProviderInfo(jsonRpcUrl,chainId,fromRelay){if("true"===this._storage.getItem("HasChainBeenSwitched")&&fromRelay)return;fromRelay&&(this.isChainOverridden=!0),this.jsonRpcUrl=jsonRpcUrl;const originalChainId=this.getChainId();this._storage.setItem("DefaultChainId",chainId.toString(10));!((0,util_1.ensureIntNumber)(chainId)!==originalChainId)&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(type,address,symbol,decimals,image){const relay=await this.initializeRelay();return!!(await relay.watchAsset(type,address,symbol,decimals,image).promise).result}async addEthereumChain(chainId,rpcUrls,blockExplorerUrls,chainName,iconUrls,nativeCurrency){var _a,_b;if((0,util_1.ensureIntNumber)(chainId)===this.getChainId())return!1;const relay=await this.initializeRelay(),res=await relay.addEthereumChain(chainId.toString(),rpcUrls,iconUrls,blockExplorerUrls,chainName,nativeCurrency).promise;return!0===(null===(_a=res.result)||void 0===_a?void 0:_a.isApproved)&&(this._storage.setItem("HasChainBeenSwitched","true"),this.updateProviderInfo(rpcUrls[0],chainId,!1)),!0===(null===(_b=res.result)||void 0===_b?void 0:_b.isApproved)}async switchEthereumChain(chainId){if((0,util_1.ensureIntNumber)(chainId)===this.getChainId())return;const relay=await this.initializeRelay(),res=await relay.switchEthereumChain(chainId.toString(10)).promise;if(res.errorCode)throw eth_rpc_errors_1.ethErrors.provider.custom({code:res.errorCode});const switchResponse=res.result;switchResponse.isApproved&&switchResponse.rpcUrl.length>0&&(this._storage.setItem("HasChainBeenSwitched","true"),this.updateProviderInfo(switchResponse.rpcUrl,chainId,!1))}setAppInfo(appName,appLogoUrl){this.initializeRelay().then((relay=>relay.setAppInfo(appName,appLogoUrl)))}async enable(){return this._walletLinkAnalytics.sendEvent(init_1.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?Session_1.Session.hash(this._relay.session.id):null}),this._addresses.length>0?[...this._addresses]:await this._send(JSONRPC_1.JSONRPCMethod.eth_requestAccounts)}close(){this.initializeRelay().then((relay=>relay.resetAndReload()))}send(requestOrMethod,callbackOrParams){if("string"==typeof requestOrMethod){const request={jsonrpc:"2.0",id:0,method:requestOrMethod,params:Array.isArray(callbackOrParams)?callbackOrParams:void 0!==callbackOrParams?[callbackOrParams]:[]};return this._sendRequestAsync(request).then((res=>res.result))}if("function"==typeof callbackOrParams){const request=requestOrMethod,callback=callbackOrParams;return this._sendAsync(request,callback)}if(Array.isArray(requestOrMethod)){return requestOrMethod.map((r=>this._sendRequest(r)))}const req=requestOrMethod;return this._sendRequest(req)}sendAsync(request,callback){if("function"!=typeof callback)throw new Error("callback is required");if(Array.isArray(request)){const arrayCb=callback;return void this._sendMultipleRequestsAsync(request).then((responses=>arrayCb(null,responses))).catch((err=>arrayCb(err,null)))}const cb=callback;this._sendRequestAsync(request).then((response=>cb(null,response))).catch((err=>cb(err,null)))}async request(args){if(!args||"object"!=typeof args||Array.isArray(args))throw eth_rpc_errors_1.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:args});const{method:method,params:params}=args;if("string"!=typeof method||0===method.length)throw eth_rpc_errors_1.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:args});if(void 0!==params&&!Array.isArray(params)&&("object"!=typeof params||null===params))throw eth_rpc_errors_1.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:args});const newParams=void 0===params?[]:params,id=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:method,params:newParams,jsonrpc:"2.0",id:id})).result}async scanQRCode(match){const relay=await this.initializeRelay(),res=await relay.scanQRCode((0,util_1.ensureRegExpString)(match)).promise;if("string"!=typeof res.result)throw new Error("result was not a string");return res.result}async genericRequest(data,action){const relay=await this.initializeRelay(),res=await relay.genericRequest(data,action).promise;if("string"!=typeof res.result)throw new Error("result was not a string");return res.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(request){const response={jsonrpc:"2.0",id:request.id},{method:method}=request;if(response.result=this._handleSynchronousMethods(request),void 0===response.result)throw new Error(`WalletLink does not support calling ${method} synchronously without a callback. Please provide a callback parameter to call ${method} asynchronously.`);return response}_setAddresses(addresses){if(!Array.isArray(addresses))throw new Error("addresses is not an array");const newAddresses=addresses.map((address=>(0,util_1.ensureAddressString)(address)));JSON.stringify(newAddresses)!==JSON.stringify(this._addresses)&&(this._addresses=newAddresses,this.emit("accountsChanged",this._addresses),this._storage.setItem(WalletLinkRelayAbstract_1.LOCAL_STORAGE_ADDRESSES_KEY,newAddresses.join(" ")),window.dispatchEvent(new CustomEvent("walletlink:addresses",{detail:this._addresses})))}_sendRequestAsync(request){return new Promise(((resolve,reject)=>{try{const syncResult=this._handleSynchronousMethods(request);if(void 0!==syncResult)return resolve({jsonrpc:"2.0",id:request.id,result:syncResult});const filterPromise=this._handleAsynchronousFilterMethods(request);if(void 0!==filterPromise)return void filterPromise.then((res=>resolve(Object.assign(Object.assign({},res),{id:request.id})))).catch((err=>reject(err)));const subscriptionPromise=this._handleSubscriptionMethods(request);if(void 0!==subscriptionPromise)return void subscriptionPromise.then((res=>resolve({jsonrpc:"2.0",id:request.id,result:res.result}))).catch((err=>reject(err)))}catch(err){return reject(err)}this._handleAsynchronousMethods(request).then((res=>res&&resolve(Object.assign(Object.assign({},res),{id:request.id})))).catch((err=>reject(err)))}))}_sendMultipleRequestsAsync(requests){return Promise.all(requests.map((r=>this._sendRequestAsync(r))))}_handleSynchronousMethods(request){const{method:method}=request,params=request.params||[];switch(method){case JSONRPC_1.JSONRPCMethod.eth_accounts:return this._eth_accounts();case JSONRPC_1.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case JSONRPC_1.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(params);case JSONRPC_1.JSONRPCMethod.net_version:return this._net_version();case JSONRPC_1.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(request){const{method:method}=request,params=request.params||[];switch(method){case JSONRPC_1.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case JSONRPC_1.JSONRPCMethod.eth_sign:return this._eth_sign(params);case JSONRPC_1.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(params);case JSONRPC_1.JSONRPCMethod.personal_sign:return this._personal_sign(params);case JSONRPC_1.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(params);case JSONRPC_1.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(params);case JSONRPC_1.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(params);case JSONRPC_1.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(params);case JSONRPC_1.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(params);case JSONRPC_1.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case JSONRPC_1.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(params);case JSONRPC_1.JSONRPCMethod.eth_signTypedData_v4:case JSONRPC_1.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(params);case JSONRPC_1.JSONRPCMethod.walletlink_arbitrary:return this._walletlink_arbitrary(params);case JSONRPC_1.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(params);case JSONRPC_1.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(params);case JSONRPC_1.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(params)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(request,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(request){const{method:method}=request,params=request.params||[];switch(method){case JSONRPC_1.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(params);case JSONRPC_1.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case JSONRPC_1.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case JSONRPC_1.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(params);case JSONRPC_1.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(params)}}_handleSubscriptionMethods(request){switch(request.method){case JSONRPC_1.JSONRPCMethod.eth_subscribe:case JSONRPC_1.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(request)}}_isKnownAddress(addressString){try{const address=(0,util_1.ensureAddressString)(addressString),lowercaseAddresses=this._addresses.map((address=>(0,util_1.ensureAddressString)(address)));return lowercaseAddresses.includes(address)}catch(_a){}return!1}_ensureKnownAddress(addressString){if(!this._isKnownAddress(addressString))throw this._walletLinkAnalytics.sendEvent(init_1.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(tx){const fromAddress=tx.from?(0,util_1.ensureAddressString)(tx.from):this.selectedAddress;if(!fromAddress)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(fromAddress);return{fromAddress:fromAddress,toAddress:tx.to?(0,util_1.ensureAddressString)(tx.to):null,weiValue:null!=tx.value?(0,util_1.ensureBN)(tx.value):new bn_js_1.default(0),data:tx.data?(0,util_1.ensureBuffer)(tx.data):Buffer.alloc(0),nonce:null!=tx.nonce?(0,util_1.ensureIntNumber)(tx.nonce):null,gasPriceInWei:null!=tx.gasPrice?(0,util_1.ensureBN)(tx.gasPrice):null,maxFeePerGas:null!=tx.maxFeePerGas?(0,util_1.ensureBN)(tx.maxFeePerGas):null,maxPriorityFeePerGas:null!=tx.maxPriorityFeePerGas?(0,util_1.ensureBN)(tx.maxPriorityFeePerGas):null,gasLimit:null!=tx.gas?(0,util_1.ensureBN)(tx.gas):null,chainId:this.getChainId()}}_requireAuthorization(){if(0===this._addresses.length)throw eth_rpc_errors_1.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw eth_rpc_errors_1.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(message,address,addPrefix,typedDataJson){this._ensureKnownAddress(address);try{const relay=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await relay.signEthereumMessage(message,address,addPrefix,typedDataJson).promise).result}}catch(err){if("string"==typeof err.message&&err.message.match(/(denied|rejected)/i))throw eth_rpc_errors_1.ethErrors.provider.userRejectedRequest("User denied message signature");throw err}}async _ethereumAddressFromSignedMessage(message,signature,addPrefix){const relay=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await relay.ethereumAddressFromSignedMessage(message,signature,addPrefix).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,util_1.hexStringFromIntNumber)(this.getChainId())}getChainId(){const chainIdStr=this._storage.getItem("DefaultChainId")||"1",chainId=parseInt(chainIdStr,10);return(0,util_1.ensureIntNumber)(chainId)}async _eth_requestAccounts(){if(this._walletLinkAnalytics.sendEvent(init_1.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?Session_1.Session.hash(this._relay.session.id):null}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let res;try{const relay=await this.initializeRelay();res=await relay.requestEthereumAccounts().promise}catch(err){if("string"==typeof err.message&&err.message.match(/(denied|rejected)/i))throw eth_rpc_errors_1.ethErrors.provider.userRejectedRequest("User denied account authorization");throw err}if(!res.result)throw new Error("accounts received is empty");return this._setAddresses(res.result),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(params){this._requireAuthorization();const address=(0,util_1.ensureAddressString)(params[0]),message=(0,util_1.ensureBuffer)(params[1]);return this._signEthereumMessage(message,address,!1)}_eth_ecRecover(params){const message=(0,util_1.ensureBuffer)(params[0]),signature=(0,util_1.ensureBuffer)(params[1]);return this._ethereumAddressFromSignedMessage(message,signature,!1)}_personal_sign(params){this._requireAuthorization();const message=(0,util_1.ensureBuffer)(params[0]),address=(0,util_1.ensureAddressString)(params[1]);return this._signEthereumMessage(message,address,!0)}_personal_ecRecover(params){const message=(0,util_1.ensureBuffer)(params[0]),signature=(0,util_1.ensureBuffer)(params[1]);return this._ethereumAddressFromSignedMessage(message,signature,!0)}async _eth_signTransaction(params){this._requireAuthorization();const tx=this._prepareTransactionParams(params[0]||{});try{const relay=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await relay.signEthereumTransaction(tx).promise).result}}catch(err){if("string"==typeof err.message&&err.message.match(/(denied|rejected)/i))throw eth_rpc_errors_1.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw err}}async _eth_sendRawTransaction(params){const signedTransaction=(0,util_1.ensureBuffer)(params[0]),relay=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await relay.submitEthereumTransaction(signedTransaction,this.getChainId()).promise).result}}async _eth_sendTransaction(params){this._requireAuthorization();const tx=this._prepareTransactionParams(params[0]||{});try{const relay=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await relay.signAndSubmitEthereumTransaction(tx).promise).result}}catch(err){if("string"==typeof err.message&&err.message.match(/(denied|rejected)/i))throw eth_rpc_errors_1.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw err}}async _eth_signTypedData_v1(params){this._requireAuthorization();const typedData=(0,util_1.ensureParsedJSONObject)(params[0]),address=(0,util_1.ensureAddressString)(params[1]);this._ensureKnownAddress(address);const message=eth_eip712_util_1.default.hashForSignTypedDataLegacy({data:typedData}),typedDataJSON=JSON.stringify(typedData,null,2);return this._signEthereumMessage(message,address,!1,typedDataJSON)}async _eth_signTypedData_v3(params){this._requireAuthorization();const address=(0,util_1.ensureAddressString)(params[0]),typedData=(0,util_1.ensureParsedJSONObject)(params[1]);this._ensureKnownAddress(address);const message=eth_eip712_util_1.default.hashForSignTypedData_v3({data:typedData}),typedDataJSON=JSON.stringify(typedData,null,2);return this._signEthereumMessage(message,address,!1,typedDataJSON)}async _eth_signTypedData_v4(params){this._requireAuthorization();const address=(0,util_1.ensureAddressString)(params[0]),typedData=(0,util_1.ensureParsedJSONObject)(params[1]);this._ensureKnownAddress(address);const message=eth_eip712_util_1.default.hashForSignTypedData_v4({data:typedData}),typedDataJSON=JSON.stringify(typedData,null,2);return this._signEthereumMessage(message,address,!1,typedDataJSON)}async _walletlink_arbitrary(params){const action=params[0],data=params[1];if("string"!=typeof data)throw new Error("parameter must be a string");if("object"!=typeof action||null===action)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(action,data)}}async _wallet_addEthereumChain(params){var _a,_b,_c,_d;const request=params[0];if(0===(null===(_a=request.rpcUrls)||void 0===_a?void 0:_a.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!request.chainName||""===request.chainName.trim())throw eth_rpc_errors_1.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!request.nativeCurrency)throw eth_rpc_errors_1.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});const chainIdNumber=parseInt(request.chainId,16);return await this.addEthereumChain(chainIdNumber,null!==(_b=request.rpcUrls)&&void 0!==_b?_b:[],null!==(_c=request.blockExplorerUrls)&&void 0!==_c?_c:[],request.chainName,null!==(_d=request.iconUrls)&&void 0!==_d?_d:[],request.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(params){const request=params[0];return await this.switchEthereumChain(parseInt(request.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(params){var _a;const request=Array.isArray(params)?params[0]:params;if(0===(null===(_a=request.type)||void 0===_a?void 0:_a.length))throw eth_rpc_errors_1.ethErrors.rpc.invalidParams({message:"type is a required field"});if("ERC20"!==request.type)throw eth_rpc_errors_1.ethErrors.rpc.invalidParams({message:`Asset of type '${request.type}' not supported`});if(!(null==request?void 0:request.options))throw eth_rpc_errors_1.ethErrors.rpc.invalidParams({message:"options is a required field"});if(!request.options.address)throw eth_rpc_errors_1.ethErrors.rpc.invalidParams({message:"option address is a required option"});const{address:address,symbol:symbol,image:image,decimals:decimals}=request.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(request.type,address,symbol,decimals,image)}}_eth_uninstallFilter(params){const filterId=(0,util_1.ensureHexString)(params[0]);return this._filterPolyfill.uninstallFilter(filterId)}async _eth_newFilter(params){const param=params[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(param)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(params){const filterId=(0,util_1.ensureHexString)(params[0]);return this._filterPolyfill.getFilterChanges(filterId)}_eth_getFilterLogs(params){const filterId=(0,util_1.ensureHexString)(params[0]);return this._filterPolyfill.getFilterLogs(filterId)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((relay=>(relay.setAccountsCallback((accounts=>this._setAddresses(accounts))),relay.setChainCallback(((chainId,jsonRpcUrl)=>{this.updateProviderInfo(jsonRpcUrl,parseInt(chainId,10),!0)})),this._relay=relay,relay)))}}exports.WalletLinkProvider=WalletLinkProvider},"./node_modules/walletlink/dist/provider/WalletLinkSdkUI.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkSdkUI=void 0;const LinkFlow_1=__webpack_require__("./node_modules/walletlink/dist/components/LinkFlow.js"),Snackbar_1=__webpack_require__("./node_modules/walletlink/dist/components/Snackbar.js"),cssReset_1=__webpack_require__("./node_modules/walletlink/dist/lib/cssReset.js"),WalletLinkUI_1=__webpack_require__("./node_modules/walletlink/dist/provider/WalletLinkUI.js");class WalletLinkSdkUI extends WalletLinkUI_1.WalletLinkUI{constructor(options){super(options),this.attached=!1,this.snackbar=new Snackbar_1.Snackbar({darkMode:options.darkMode}),this.linkFlow=new LinkFlow_1.LinkFlow({darkMode:options.darkMode,version:options.version,sessionId:options.session.id,sessionSecret:options.session.secret,walletLinkUrl:options.walletLinkUrl,connected$:options.connected$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("WalletLinkUI is already attached");const el=document.documentElement,container=document.createElement("div");container.className="-walletlink-css-reset",el.appendChild(container),this.linkFlow.attach(container),this.snackbar.attach(container),this.attached=!0,(0,cssReset_1.injectCssReset)()}setConnectDisabled(connectDisabled){this.linkFlow.setConnectDisabled(connectDisabled)}addEthereumChain(options){}watchAsset(options){}switchEthereumChain(options){}requestEthereumAccounts(options){this.linkFlow.open({onCancel:options.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(_){}signEthereumTransaction(_){}submitEthereumTransaction(_){}ethereumAddressFromSignedMessage(_){}showConnecting(options){let snackbarProps;return snackbarProps=options.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:options.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:options.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:options.onResetConnection}]},this.snackbar.presentItem(snackbarProps)}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(chainId){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}isStandalone(){return!1}}exports.WalletLinkSdkUI=WalletLinkSdkUI},"./node_modules/walletlink/dist/provider/WalletLinkUI.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkUI=void 0;exports.WalletLinkUI=class WalletLinkUI{constructor(_){}setConnectDisabled(_){}}},"./node_modules/walletlink/dist/relay/RelayMessage.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RelayMessageType=void 0,function(RelayMessageType){RelayMessageType.SESSION_ID_REQUEST="SESSION_ID_REQUEST",RelayMessageType.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",RelayMessageType.LINKED="LINKED",RelayMessageType.UNLINKED="UNLINKED",RelayMessageType.WEB3_REQUEST="WEB3_REQUEST",RelayMessageType.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",RelayMessageType.WEB3_RESPONSE="WEB3_RESPONSE"}(exports.RelayMessageType||(exports.RelayMessageType={}))},"./node_modules/walletlink/dist/relay/Session.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Session=void 0;const js_sha256_1=__webpack_require__("./node_modules/js-sha256/src/sha256.js"),rxjs_1=__webpack_require__("./node_modules/rxjs/_esm5/index.js"),operators_1=__webpack_require__("./node_modules/rxjs/_esm5/operators/index.js"),util_1=__webpack_require__("./node_modules/walletlink/dist/util.js");class Session{constructor(storage,id,secret,linked){this._storage=storage,this._id=id||(0,util_1.randomBytesHex)(16),this._secret=secret||(0,util_1.randomBytesHex)(32);const hash=js_sha256_1.sha256.create();hash.update(`${this._id}, ${this._secret} WalletLink`),this._key=hash.hex(),this._linked=!!linked}static load(storage){const id=storage.getItem("session:id"),linked=storage.getItem("session:linked"),secret=storage.getItem("session:secret");return id&&secret?new Session(storage,id,secret,"1"===linked):null}static get persistedSessionIdChange$(){return(0,rxjs_1.fromEvent)(window,"storage").pipe((0,operators_1.filter)((evt=>"session:id"===evt.key)),(0,operators_1.map)((evt=>({oldValue:evt.oldValue||null,newValue:evt.newValue||null}))))}static hash(sessionId){return js_sha256_1.sha256.create().update(sessionId).hex()}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(val){this._linked=val,this.persistLinked()}save(){return this._storage.setItem("session:id",this._id),this._storage.setItem("session:secret",this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem("session:linked",this._linked?"1":"0")}}exports.Session=Session},"./node_modules/walletlink/dist/relay/WalletLinkRelay.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k),Object.defineProperty(o,k2,{enumerable:!0,get:function(){return m[k]}})}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(o,v){Object.defineProperty(o,"default",{enumerable:!0,value:v})}:function(o,v){o.default=v}),__decorate=this&&this.__decorate||function(decorators,target,key,desc){var d,c=arguments.length,r=c<3?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)(d=decorators[i])&&(r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r);return c>3&&r&&Object.defineProperty(target,key,r),r},__importStar=this&&this.__importStar||function(mod){if(mod&&mod.__esModule)return mod;var result={};if(null!=mod)for(var k in mod)"default"!==k&&Object.prototype.hasOwnProperty.call(mod,k)&&__createBinding(result,mod,k);return __setModuleDefault(result,mod),result},__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkRelay=void 0;const bind_decorator_1=__importDefault(__webpack_require__("./node_modules/bind-decorator/index.js")),eth_rpc_errors_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/index.js"),rxjs_1=__webpack_require__("./node_modules/rxjs/_esm5/index.js"),operators_1=__webpack_require__("./node_modules/rxjs/_esm5/operators/index.js"),WalletLinkAnalytics_1=__webpack_require__("./node_modules/walletlink/dist/connection/WalletLinkAnalytics.js"),WalletLinkConnection_1=__webpack_require__("./node_modules/walletlink/dist/connection/WalletLinkConnection.js"),init_1=__webpack_require__("./node_modules/walletlink/dist/init/index.js"),util_1=__webpack_require__("./node_modules/walletlink/dist/util.js"),aes256gcm=__importStar(__webpack_require__("./node_modules/walletlink/dist/relay/aes256gcm.js")),Session_1=__webpack_require__("./node_modules/walletlink/dist/relay/Session.js"),WalletLinkRelayAbstract_1=__webpack_require__("./node_modules/walletlink/dist/relay/WalletLinkRelayAbstract.js"),Web3Method_1=__webpack_require__("./node_modules/walletlink/dist/relay/Web3Method.js"),Web3RequestCanceledMessage_1=__webpack_require__("./node_modules/walletlink/dist/relay/Web3RequestCanceledMessage.js"),Web3RequestMessage_1=__webpack_require__("./node_modules/walletlink/dist/relay/Web3RequestMessage.js"),Web3Response_1=__webpack_require__("./node_modules/walletlink/dist/relay/Web3Response.js"),Web3ResponseMessage_1=__webpack_require__("./node_modules/walletlink/dist/relay/Web3ResponseMessage.js");class WalletLinkRelay extends WalletLinkRelayAbstract_1.WalletLinkRelayAbstract{constructor(options){super(),this.accountsCallback=null,this.chainCallback=null,this.appName="",this.appLogoUrl=null,this.subscriptions=new rxjs_1.Subscription,this.walletLinkUrl=options.walletLinkUrl,this.storage=options.storage,this._session=Session_1.Session.load(options.storage)||new Session_1.Session(options.storage).save(),this.relayEventManager=options.relayEventManager,this.walletLinkAnalytics=options.walletLinkAnalytics?options.walletLinkAnalytics:new WalletLinkAnalytics_1.WalletLinkAnalytics,this.connection=new WalletLinkConnection_1.WalletLinkConnection(this._session.id,this._session.key,this.walletLinkUrl,this.walletLinkAnalytics),this.subscriptions.add(this.connection.incomingEvent$.pipe((0,operators_1.filter)((m=>"Web3Response"===m.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(this.connection.linked$.pipe((0,operators_1.skip)(1),(0,operators_1.tap)((linked=>{var _a;this.isLinked=linked;const cachedAddresses=this.storage.getItem(WalletLinkRelayAbstract_1.LOCAL_STORAGE_ADDRESSES_KEY);if(linked&&(this.session.linked=linked),this.isUnlinkedErrorState=!1,cachedAddresses){const addresses=cachedAddresses.split(" "),wasConnectedViaStandalone="true"===this.storage.getItem("IsStandaloneSigning");if(""!==addresses[0]&&!linked&&this.session.linked&&!wasConnectedViaStandalone){this.isUnlinkedErrorState=!0;const sessionIdHash=this.getSessionIdHash();null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:sessionIdHash,origin:location.origin})}}}))).subscribe()),this.subscriptions.add(this.connection.sessionConfig$.pipe((0,operators_1.filter)((c=>!!c.metadata&&"1"===c.metadata.__destroyed))).subscribe((()=>{var _a;const alreadyDestroyed=this.connection.isDestroyed;return null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:alreadyDestroyed,sessionIdHash:this.getSessionIdHash(),origin:location.origin}),this.resetAndReload()}))),this.subscriptions.add(this.connection.sessionConfig$.pipe((0,operators_1.filter)((c=>c.metadata&&void 0!==c.metadata.WalletUsername))).pipe((0,operators_1.mergeMap)((c=>aes256gcm.decrypt(c.metadata.WalletUsername,this._session.secret)))).subscribe({next:walletUsername=>{this.storage.setItem(WalletLinkRelayAbstract_1.WALLET_USER_NAME_KEY,walletUsername)},error:()=>{var _a;null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(this.connection.sessionConfig$.pipe((0,operators_1.filter)((c=>c.metadata&&void 0!==c.metadata.AppVersion))).pipe((0,operators_1.mergeMap)((c=>aes256gcm.decrypt(c.metadata.AppVersion,this._session.secret)))).subscribe({next:appVersion=>{this.storage.setItem(WalletLinkRelayAbstract_1.APP_VERSION_KEY,appVersion)},error:()=>{var _a;null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(this.connection.sessionConfig$.pipe((0,operators_1.filter)((c=>c.metadata&&void 0!==c.metadata.ChainId&&void 0!==c.metadata.JsonRpcUrl))).pipe((0,operators_1.mergeMap)((c=>(0,rxjs_1.zip)(aes256gcm.decrypt(c.metadata.ChainId,this._session.secret),aes256gcm.decrypt(c.metadata.JsonRpcUrl,this._session.secret))))).pipe((0,operators_1.distinctUntilChanged)()).subscribe({next:([chainId,jsonRpcUrl])=>{this.chainCallback&&this.chainCallback(chainId,jsonRpcUrl)},error:()=>{var _a;null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(this.connection.sessionConfig$.pipe((0,operators_1.filter)((c=>c.metadata&&void 0!==c.metadata.EthereumAddress))).pipe((0,operators_1.mergeMap)((c=>aes256gcm.decrypt(c.metadata.EthereumAddress,this._session.secret)))).subscribe({next:selectedAddress=>{this.accountsCallback&&this.accountsCallback([selectedAddress]),WalletLinkRelay.accountRequestCallbackIds.size>0&&(Array.from(WalletLinkRelay.accountRequestCallbackIds.values()).forEach((id=>{const message=(0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.RequestEthereumAccountsResponse)([selectedAddress])});this.invokeCallback(Object.assign(Object.assign({},message),{id:id}))})),WalletLinkRelay.accountRequestCallbackIds.clear())},error:()=>{var _a;null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.ui=options.walletLinkUIConstructor({walletLinkUrl:options.walletLinkUrl,version:options.version,darkMode:options.darkMode,session:this._session,connected$:this.connection.connected$}),this.connection.connect()}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,operators_1.timeout)(1e3),(0,operators_1.catchError)((_=>(0,rxjs_1.of)(null)))).subscribe((_=>{var _a,_b,_c;try{this.subscriptions.unsubscribe()}catch(err){null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(_b=this.walletLinkAnalytics)||void 0===_b||_b.sendEvent(init_1.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash(),origin:location.origin}),this.connection.destroy();const storedSession=Session_1.Session.load(this.storage);(null==storedSession?void 0:storedSession.id)===this._session.id?this.storage.clear():storedSession&&(null===(_c=this.walletLinkAnalytics)||void 0===_c||_c.sendEvent(init_1.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Session_1.Session.hash(storedSession.id),origin:location.origin})),this.ui.reloadUI()}),(err=>{var _a;null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${err}`,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(appName,appLogoUrl){this.appName=appName,this.appLogoUrl=appLogoUrl}getStorageItem(key){return this.storage.getItem(key)}get session(){return this._session}setStorageItem(key,value){this.storage.setItem(key,value)}signEthereumMessage(message,address,addPrefix,typedDataJson){return this.sendRequest({method:Web3Method_1.Web3Method.signEthereumMessage,params:{message:(0,util_1.hexStringFromBuffer)(message,!0),address:address,addPrefix:addPrefix,typedDataJson:typedDataJson||null}})}ethereumAddressFromSignedMessage(message,signature,addPrefix){return this.sendRequest({method:Web3Method_1.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,util_1.hexStringFromBuffer)(message,!0),signature:(0,util_1.hexStringFromBuffer)(signature,!0),addPrefix:addPrefix}})}signEthereumTransaction(params){return this.sendRequest({method:Web3Method_1.Web3Method.signEthereumTransaction,params:{fromAddress:params.fromAddress,toAddress:params.toAddress,weiValue:(0,util_1.bigIntStringFromBN)(params.weiValue),data:(0,util_1.hexStringFromBuffer)(params.data,!0),nonce:params.nonce,gasPriceInWei:params.gasPriceInWei?(0,util_1.bigIntStringFromBN)(params.gasPriceInWei):null,maxFeePerGas:params.gasPriceInWei?(0,util_1.bigIntStringFromBN)(params.gasPriceInWei):null,maxPriorityFeePerGas:params.gasPriceInWei?(0,util_1.bigIntStringFromBN)(params.gasPriceInWei):null,gasLimit:params.gasLimit?(0,util_1.bigIntStringFromBN)(params.gasLimit):null,chainId:params.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(params){return this.sendRequest({method:Web3Method_1.Web3Method.signEthereumTransaction,params:{fromAddress:params.fromAddress,toAddress:params.toAddress,weiValue:(0,util_1.bigIntStringFromBN)(params.weiValue),data:(0,util_1.hexStringFromBuffer)(params.data,!0),nonce:params.nonce,gasPriceInWei:params.gasPriceInWei?(0,util_1.bigIntStringFromBN)(params.gasPriceInWei):null,maxFeePerGas:params.maxFeePerGas?(0,util_1.bigIntStringFromBN)(params.maxFeePerGas):null,maxPriorityFeePerGas:params.maxPriorityFeePerGas?(0,util_1.bigIntStringFromBN)(params.maxPriorityFeePerGas):null,gasLimit:params.gasLimit?(0,util_1.bigIntStringFromBN)(params.gasLimit):null,chainId:params.chainId,shouldSubmit:!0}})}submitEthereumTransaction(signedTransaction,chainId){return this.sendRequest({method:Web3Method_1.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,util_1.hexStringFromBuffer)(signedTransaction,!0),chainId:chainId}})}scanQRCode(regExp){return this.sendRequest({method:Web3Method_1.Web3Method.scanQRCode,params:{regExp:regExp}})}genericRequest(data,action){return this.sendRequest({method:Web3Method_1.Web3Method.generic,params:{action:action,data:data}})}sendGenericMessage(request){return this.sendRequest(request)}sendRequest(request){let hideSnackbarItem=null;const id=(0,util_1.randomBytesHex)(8),cancel=()=>{this.publishWeb3RequestCanceledEvent(id),this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.ErrorResponse)(request.method,"User rejected request")})),null==hideSnackbarItem||hideSnackbarItem()};return{promise:new Promise(((resolve,reject)=>{this.ui.isStandalone()||(hideSnackbarItem=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(id,(response=>{if(null==hideSnackbarItem||hideSnackbarItem(),response.errorMessage)return reject(new Error(response.errorMessage));resolve(response)})),this.ui.isStandalone()?this.sendRequestStandalone(id,request):this.publishWeb3RequestEvent(id,request)})),cancel:cancel}}setConnectDisabled(disabled){this.ui.setConnectDisabled(disabled)}setAccountsCallback(accountsCallback){this.accountsCallback=accountsCallback}setChainCallback(chainCallback){this.chainCallback=chainCallback}publishWeb3RequestEvent(id,request){var _a;const message=(0,Web3RequestMessage_1.Web3RequestMessage)({id:id,request:request}),storedSession=Session_1.Session.load(this.storage);null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.WEB3_REQUEST,{eventId:message.id,method:`relay::${message.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:storedSession?Session_1.Session.hash(storedSession.id):"",isSessionMismatched:((null==storedSession?void 0:storedSession.id)!==this._session.id).toString(),origin:location.origin}),this.subscriptions.add(this.publishEvent("Web3Request",message,!0).subscribe({next:_=>{var _a;null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:message.id,method:`relay::${message.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:storedSession?Session_1.Session.hash(storedSession.id):"",isSessionMismatched:((null==storedSession?void 0:storedSession.id)!==this._session.id).toString(),origin:location.origin})},error:err=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:message.id,response:{method:message.request.method,errorMessage:err.message}}))}}))}publishWeb3RequestCanceledEvent(id){const message=(0,Web3RequestCanceledMessage_1.Web3RequestCanceledMessage)(id);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",message,!1).subscribe())}publishEvent(event,message,callWebhook){const secret=this.session.secret;return new rxjs_1.Observable((subscriber=>{aes256gcm.encrypt(JSON.stringify(Object.assign(Object.assign({},message),{origin:location.origin})),secret).then((encrypted=>{subscriber.next(encrypted),subscriber.complete()}))})).pipe((0,operators_1.mergeMap)((encrypted=>this.connection.publishEvent(event,encrypted,callWebhook))))}handleIncomingEvent(event){try{this.subscriptions.add(aes256gcm.decrypt(event.data,this.session.secret).pipe((0,operators_1.map)((c=>JSON.parse(c)))).subscribe({next:json=>{const message=(0,Web3ResponseMessage_1.isWeb3ResponseMessage)(json)?json:null;message&&this.handleWeb3ResponseMessage(message)},error:()=>{var _a;null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(_a){return}}handleWeb3ResponseMessage(message){var _a;const{response:response}=message;if(null===(_a=this.walletLinkAnalytics)||void 0===_a||_a.sendEvent(init_1.EVENTS.WEB3_RESPONSE,{eventId:message.id,method:`relay::${response.method}`,sessionIdHash:this.getSessionIdHash(),origin:location.origin}),(0,Web3Response_1.isRequestEthereumAccountsResponse)(response))return Array.from(WalletLinkRelay.accountRequestCallbackIds.values()).forEach((id=>this.invokeCallback(Object.assign(Object.assign({},message),{id:id})))),void WalletLinkRelay.accountRequestCallbackIds.clear();this.invokeCallback(message)}invokeCallback(message){const callback=this.relayEventManager.callbacks.get(message.id);callback&&(callback(message.response),this.relayEventManager.callbacks.delete(message.id))}requestEthereumAccounts(){let request={method:Web3Method_1.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}};const id=(0,util_1.randomBytesHex)(8),cancel=()=>{this.publishWeb3RequestCanceledEvent(id),this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.ErrorResponse)(request.method,"User rejected request")}))};return{promise:new Promise(((resolve,reject)=>{var _a;this.relayEventManager.callbacks.set(id,(response=>{if(this.ui.hideRequestEthereumAccounts(),response.errorMessage)return reject(new Error(response.errorMessage));resolve(response)}));const userAgent=(null===(_a=null===window||void 0===window?void 0:window.navigator)||void 0===_a?void 0:_a.userAgent)||null;if(userAgent&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent))window.location.href=`https://go.cb-w.com/xoXnYwQimhb?cb_url=${encodeURIComponent(window.location.href)}`;else{if(this.ui.inlineAccountsResponse()){const onAccounts=accounts=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.RequestEthereumAccountsResponse)(accounts)}))};this.ui.requestEthereumAccounts({onCancel:cancel,onAccounts:onAccounts})}else this.ui.requestEthereumAccounts({onCancel:cancel});WalletLinkRelay.accountRequestCallbackIds.add(id),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(id,request)}})),cancel:cancel}}watchAsset(type,address,symbol,decimals,image){const request={method:Web3Method_1.Web3Method.watchAsset,params:{type:type,options:{address:address,symbol:symbol,decimals:decimals,image:image}}};let hideSnackbarItem=null;const id=(0,util_1.randomBytesHex)(8),cancel=()=>{this.publishWeb3RequestCanceledEvent(id),this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.ErrorResponse)(request.method,"User rejected request")})),null==hideSnackbarItem||hideSnackbarItem()};this.ui.inlineWatchAsset()||(hideSnackbarItem=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));return{cancel:cancel,promise:new Promise(((resolve,reject)=>{this.relayEventManager.callbacks.set(id,(response=>{if(null==hideSnackbarItem||hideSnackbarItem(),response.errorMessage)return reject(new Error(response.errorMessage));resolve(response)}));const _cancel=()=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.WatchAssetReponse)(!1)}))},approve=()=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:approve,onCancel:_cancel,type:type,address:address,symbol:symbol,decimals:decimals,image:image}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(id,request)}))}}addEthereumChain(chainId,rpcUrls,iconUrls,blockExplorerUrls,chainName,nativeCurrency){let request={method:Web3Method_1.Web3Method.addEthereumChain,params:{chainId:chainId,rpcUrls:rpcUrls,blockExplorerUrls:blockExplorerUrls,chainName:chainName,iconUrls:iconUrls,nativeCurrency:nativeCurrency}},hideSnackbarItem=null;const id=(0,util_1.randomBytesHex)(8),cancel=()=>{this.publishWeb3RequestCanceledEvent(id),this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.ErrorResponse)(request.method,"User rejected request")})),null==hideSnackbarItem||hideSnackbarItem()};this.ui.inlineAddEthereumChain(chainId)||(hideSnackbarItem=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));return{promise:new Promise(((resolve,reject)=>{this.relayEventManager.callbacks.set(id,(response=>{if(null==hideSnackbarItem||hideSnackbarItem(),response.errorMessage)return reject(new Error(response.errorMessage));resolve(response)}));const _cancel=()=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},approve=rpcUrl=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.AddEthereumChainResponse)({isApproved:!0,rpcUrl:rpcUrl})}))};this.ui.inlineAddEthereumChain(chainId)&&this.ui.addEthereumChain({onCancel:_cancel,onApprove:approve,chainId:request.params.chainId,rpcUrls:request.params.rpcUrls,blockExplorerUrls:request.params.blockExplorerUrls,chainName:request.params.chainName,iconUrls:request.params.iconUrls,nativeCurrency:request.params.nativeCurrency}),this.ui.inlineAddEthereumChain(chainId)||this.ui.isStandalone()||this.publishWeb3RequestEvent(id,request)})),cancel:cancel}}switchEthereumChain(chainId){let request={method:Web3Method_1.Web3Method.switchEthereumChain,params:{chainId:chainId}},hideSnackbarItem=null;const id=(0,util_1.randomBytesHex)(8),cancel=()=>{this.publishWeb3RequestCanceledEvent(id),this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.ErrorResponse)(request.method,"User rejected request")})),null==hideSnackbarItem||hideSnackbarItem()};this.ui.inlineSwitchEthereumChain()||(hideSnackbarItem=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));return{promise:new Promise(((resolve,reject)=>{this.relayEventManager.callbacks.set(id,(response=>(null==hideSnackbarItem||hideSnackbarItem(),response.errorMessage&&response.errorCode?reject(eth_rpc_errors_1.ethErrors.provider.custom({code:response.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):response.errorMessage?reject(new Error(response.errorMessage)):void resolve(response))));this.ui.switchEthereumChain({onCancel:errorCode=>{errorCode?this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.ErrorResponse)(Web3Method_1.Web3Method.switchEthereumChain,"unsupported chainId",errorCode)})):this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:rpcUrl=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:rpcUrl})}))},chainId:request.params.chainId}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(id,request)})),cancel:cancel}}getSessionIdHash(){return Session_1.Session.hash(this._session.id)}sendRequestStandalone(id,request){const _cancel=()=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:(0,Web3Response_1.ErrorResponse)(request.method,"User rejected request")}))},onSuccess=response=>{this.handleWeb3ResponseMessage((0,Web3ResponseMessage_1.Web3ResponseMessage)({id:id,response:response}))};switch(request.method){case Web3Method_1.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:request,onSuccess:onSuccess,onCancel:_cancel});break;case Web3Method_1.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:request,onSuccess:onSuccess,onCancel:_cancel});break;case Web3Method_1.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:request,onSuccess:onSuccess,onCancel:_cancel});break;case Web3Method_1.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:request,onSuccess:onSuccess});break;default:_cancel()}}}WalletLinkRelay.accountRequestCallbackIds=new Set,__decorate([bind_decorator_1.default],WalletLinkRelay.prototype,"resetAndReload",null),__decorate([bind_decorator_1.default],WalletLinkRelay.prototype,"handleIncomingEvent",null),exports.WalletLinkRelay=WalletLinkRelay},"./node_modules/walletlink/dist/relay/WalletLinkRelayAbstract.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkRelayAbstract=exports.APP_VERSION_KEY=exports.LOCAL_STORAGE_ADDRESSES_KEY=exports.WALLET_USER_NAME_KEY=void 0;const eth_rpc_errors_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/index.js");exports.WALLET_USER_NAME_KEY="walletUsername",exports.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",exports.APP_VERSION_KEY="AppVersion";exports.WalletLinkRelayAbstract=class WalletLinkRelayAbstract{async makeEthereumJSONRPCRequest(request,jsonRpcUrl){if(!jsonRpcUrl)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(jsonRpcUrl,{method:"POST",body:JSON.stringify(request),mode:"cors",headers:{"Content-Type":"application/json"}}).then((res=>res.json())).then((json=>{if(!json)throw eth_rpc_errors_1.ethErrors.rpc.parse({});const response=json,{error:error}=response;if(error)throw(0,eth_rpc_errors_1.serializeError)(error);return response}))}}},"./node_modules/walletlink/dist/relay/WalletLinkRelayEventManager.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.WalletLinkRelayEventManager=void 0;const util_1=__webpack_require__("./node_modules/walletlink/dist/util.js");exports.WalletLinkRelayEventManager=class WalletLinkRelayEventManager{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const id=this._nextRequestId,idStr=(0,util_1.prepend0x)(id.toString(16));return this.callbacks.get(idStr)&&this.callbacks.delete(idStr),id}}},"./node_modules/walletlink/dist/relay/Web3Method.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Web3Method=void 0,function(Web3Method){Web3Method.requestEthereumAccounts="requestEthereumAccounts",Web3Method.signEthereumMessage="signEthereumMessage",Web3Method.signEthereumTransaction="signEthereumTransaction",Web3Method.submitEthereumTransaction="submitEthereumTransaction",Web3Method.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",Web3Method.scanQRCode="scanQRCode",Web3Method.generic="generic",Web3Method.childRequestEthereumAccounts="childRequestEthereumAccounts",Web3Method.addEthereumChain="addEthereumChain",Web3Method.switchEthereumChain="switchEthereumChain",Web3Method.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",Web3Method.watchAsset="watchAsset"}(exports.Web3Method||(exports.Web3Method={}))},"./node_modules/walletlink/dist/relay/Web3RequestCanceledMessage.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Web3RequestCanceledMessage=void 0;const RelayMessage_1=__webpack_require__("./node_modules/walletlink/dist/relay/RelayMessage.js");exports.Web3RequestCanceledMessage=function Web3RequestCanceledMessage(id){return{type:RelayMessage_1.RelayMessageType.WEB3_REQUEST_CANCELED,id:id}}},"./node_modules/walletlink/dist/relay/Web3RequestMessage.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Web3RequestMessage=void 0;const RelayMessage_1=__webpack_require__("./node_modules/walletlink/dist/relay/RelayMessage.js");exports.Web3RequestMessage=function Web3RequestMessage(params){return Object.assign({type:RelayMessage_1.RelayMessageType.WEB3_REQUEST},params)}},"./node_modules/walletlink/dist/relay/Web3Response.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EthereumAddressFromSignedMessageResponse=exports.SubmitEthereumTransactionResponse=exports.SignEthereumTransactionResponse=exports.SignEthereumMessageResponse=exports.isRequestEthereumAccountsResponse=exports.WatchAssetReponse=exports.RequestEthereumAccountsResponse=exports.SwitchEthereumChainResponse=exports.AddEthereumChainResponse=exports.ErrorResponse=void 0;const Web3Method_1=__webpack_require__("./node_modules/walletlink/dist/relay/Web3Method.js");exports.ErrorResponse=function ErrorResponse(method,errorMessage,errorCode){return{method:method,errorMessage:errorMessage,errorCode:errorCode}},exports.AddEthereumChainResponse=function AddEthereumChainResponse(addResponse){return{method:Web3Method_1.Web3Method.addEthereumChain,result:addResponse}},exports.SwitchEthereumChainResponse=function SwitchEthereumChainResponse(switchResponse){return{method:Web3Method_1.Web3Method.switchEthereumChain,result:switchResponse}},exports.RequestEthereumAccountsResponse=function RequestEthereumAccountsResponse(addresses){return{method:Web3Method_1.Web3Method.requestEthereumAccounts,result:addresses}},exports.WatchAssetReponse=function WatchAssetReponse(success){return{method:Web3Method_1.Web3Method.watchAsset,result:success}},exports.isRequestEthereumAccountsResponse=function isRequestEthereumAccountsResponse(res){return res&&res.method===Web3Method_1.Web3Method.requestEthereumAccounts},exports.SignEthereumMessageResponse=function SignEthereumMessageResponse(signature){return{method:Web3Method_1.Web3Method.signEthereumMessage,result:signature}},exports.SignEthereumTransactionResponse=function SignEthereumTransactionResponse(signedData){return{method:Web3Method_1.Web3Method.signEthereumTransaction,result:signedData}},exports.SubmitEthereumTransactionResponse=function SubmitEthereumTransactionResponse(txHash){return{method:Web3Method_1.Web3Method.submitEthereumTransaction,result:txHash}},exports.EthereumAddressFromSignedMessageResponse=function EthereumAddressFromSignedMessageResponse(address){return{method:Web3Method_1.Web3Method.ethereumAddressFromSignedMessage,result:address}}},"./node_modules/walletlink/dist/relay/Web3ResponseMessage.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.isWeb3ResponseMessage=exports.Web3ResponseMessage=void 0;const RelayMessage_1=__webpack_require__("./node_modules/walletlink/dist/relay/RelayMessage.js");exports.Web3ResponseMessage=function Web3ResponseMessage(params){return Object.assign({type:RelayMessage_1.RelayMessageType.WEB3_RESPONSE},params)},exports.isWeb3ResponseMessage=function isWeb3ResponseMessage(msg){return msg&&msg.type===RelayMessage_1.RelayMessageType.WEB3_RESPONSE}},"./node_modules/walletlink/dist/relay/aes256gcm.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.decrypt=exports.encrypt=void 0;const rxjs_1=__webpack_require__("./node_modules/rxjs/_esm5/index.js"),util_1=__webpack_require__("./node_modules/walletlink/dist/util.js");exports.encrypt=async function encrypt(plainText,secret){if(64!==secret.length)throw Error("secret must be 256 bits");const ivBytes=crypto.getRandomValues(new Uint8Array(12)),secretKey=await crypto.subtle.importKey("raw",(0,util_1.hexStringToUint8Array)(secret),{name:"aes-gcm"},!1,["encrypt","decrypt"]),enc=new TextEncoder,encryptedResult=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:ivBytes},secretKey,enc.encode(plainText)),authTag=encryptedResult.slice(encryptedResult.byteLength-16),encryptedPlaintext=encryptedResult.slice(0,encryptedResult.byteLength-16),authTagBytes=new Uint8Array(authTag),encryptedPlaintextBytes=new Uint8Array(encryptedPlaintext),concatted=new Uint8Array([...ivBytes,...authTagBytes,...encryptedPlaintextBytes]);return(0,util_1.uint8ArrayToHex)(concatted)},exports.decrypt=function decrypt(cipherText,secret){if(64!==secret.length)throw Error("secret must be 256 bits");return new rxjs_1.Observable((subscriber=>{!async function(){const secretKey=await crypto.subtle.importKey("raw",(0,util_1.hexStringToUint8Array)(secret),{name:"aes-gcm"},!1,["encrypt","decrypt"]),encrypted=(0,util_1.hexStringToUint8Array)(cipherText),ivBytes=encrypted.slice(0,12),authTagBytes=encrypted.slice(12,28),encryptedPlaintextBytes=encrypted.slice(28),concattedBytes=new Uint8Array([...encryptedPlaintextBytes,...authTagBytes]),algo={name:"AES-GCM",iv:new Uint8Array(ivBytes)};try{const decrypted=await window.crypto.subtle.decrypt(algo,secretKey,concattedBytes),decoder=new TextDecoder;subscriber.next(decoder.decode(decrypted)),subscriber.complete()}catch(err){subscriber.error(err)}}()}))}},"./node_modules/walletlink/dist/types.js":function(__unused_webpack_module,exports){"use strict";function OpaqueType(){return value=>value}Object.defineProperty(exports,"__esModule",{value:!0}),exports.RegExpString=exports.IntNumber=exports.BigIntString=exports.AddressString=exports.HexString=exports.OpaqueType=void 0,exports.OpaqueType=OpaqueType,exports.HexString=value=>value,exports.AddressString=value=>value,exports.BigIntString=value=>value,exports.IntNumber=function IntNumber(num){return Math.floor(num)},exports.RegExpString=value=>value},"./node_modules/walletlink/dist/util.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";var Buffer=__webpack_require__("./node_modules/buffer/index.js").Buffer,__importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.getFavicon=exports.range=exports.isBigNumber=exports.ensureParsedJSONObject=exports.ensureBN=exports.ensureRegExpString=exports.ensureIntNumber=exports.ensureBuffer=exports.ensureAddressString=exports.ensureEvenLengthHexString=exports.ensureHexString=exports.isHexString=exports.prepend0x=exports.strip0x=exports.has0xPrefix=exports.hexStringFromIntNumber=exports.intNumberFromHexString=exports.bigIntStringFromBN=exports.hexStringFromBuffer=exports.hexStringToUint8Array=exports.uint8ArrayToHex=exports.randomBytesHex=void 0;const bn_js_1=__importDefault(__webpack_require__("./node_modules/walletlink/node_modules/bn.js/lib/bn.js")),types_1=__webpack_require__("./node_modules/walletlink/dist/types.js"),INT_STRING_REGEX=/^[0-9]*$/,HEXADECIMAL_STRING_REGEX=/^[a-f0-9]*$/;function uint8ArrayToHex(value){return[...value].map((b=>b.toString(16).padStart(2,"0"))).join("")}function has0xPrefix(str){return str.startsWith("0x")||str.startsWith("0X")}function strip0x(hex){return has0xPrefix(hex)?hex.slice(2):hex}function prepend0x(hex){return has0xPrefix(hex)?"0x"+hex.slice(2):"0x"+hex}function isHexString(hex){if("string"!=typeof hex)return!1;const s=strip0x(hex).toLowerCase();return HEXADECIMAL_STRING_REGEX.test(s)}function ensureHexString(hex,includePrefix=!1){if("string"==typeof hex){const s=strip0x(hex).toLowerCase();if(HEXADECIMAL_STRING_REGEX.test(s))return(0,types_1.HexString)(includePrefix?"0x"+s:s)}throw new Error(`"${String(hex)}" is not a hexadecimal string`)}function ensureEvenLengthHexString(hex,includePrefix=!1){let h=ensureHexString(hex,!1);return h.length%2==1&&(h=(0,types_1.HexString)("0"+h)),includePrefix?(0,types_1.HexString)("0x"+h):h}function ensureIntNumber(num){if("number"==typeof num&&Number.isInteger(num))return(0,types_1.IntNumber)(num);if("string"==typeof num){if(INT_STRING_REGEX.test(num))return(0,types_1.IntNumber)(Number(num));if(isHexString(num))return(0,types_1.IntNumber)(new bn_js_1.default(ensureEvenLengthHexString(num,!1),16).toNumber())}throw new Error(`Not an integer: ${String(num)}`)}function isBigNumber(val){if(null==val||"function"!=typeof val.constructor)return!1;const{constructor:constructor}=val;return"function"==typeof constructor.config&&"number"==typeof constructor.EUCLID}exports.randomBytesHex=function randomBytesHex(length){return uint8ArrayToHex(crypto.getRandomValues(new Uint8Array(length)))},exports.uint8ArrayToHex=uint8ArrayToHex,exports.hexStringToUint8Array=function hexStringToUint8Array(hexString){return new Uint8Array(hexString.match(/.{1,2}/g).map((byte=>parseInt(byte,16))))},exports.hexStringFromBuffer=function hexStringFromBuffer(buf,includePrefix=!1){const hex=buf.toString("hex");return(0,types_1.HexString)(includePrefix?"0x"+hex:hex)},exports.bigIntStringFromBN=function bigIntStringFromBN(bn){return(0,types_1.BigIntString)(bn.toString(10))},exports.intNumberFromHexString=function intNumberFromHexString(hex){return(0,types_1.IntNumber)(new bn_js_1.default(ensureEvenLengthHexString(hex,!1),16).toNumber())},exports.hexStringFromIntNumber=function hexStringFromIntNumber(num){return(0,types_1.HexString)("0x"+new bn_js_1.default(num).toString(16))},exports.has0xPrefix=has0xPrefix,exports.strip0x=strip0x,exports.prepend0x=prepend0x,exports.isHexString=isHexString,exports.ensureHexString=ensureHexString,exports.ensureEvenLengthHexString=ensureEvenLengthHexString,exports.ensureAddressString=function ensureAddressString(str){if("string"==typeof str){const s=strip0x(str).toLowerCase();if(isHexString(s)&&40===s.length)return(0,types_1.AddressString)(prepend0x(s))}throw new Error(`Invalid Ethereum address: ${String(str)}`)},exports.ensureBuffer=function ensureBuffer(str){if(Buffer.isBuffer(str))return str;if("string"==typeof str){if(isHexString(str)){const s=ensureEvenLengthHexString(str,!1);return Buffer.from(s,"hex")}return Buffer.from(str,"utf8")}throw new Error(`Not binary data: ${String(str)}`)},exports.ensureIntNumber=ensureIntNumber,exports.ensureRegExpString=function ensureRegExpString(regExp){if(regExp instanceof RegExp)return(0,types_1.RegExpString)(regExp.toString());throw new Error(`Not a RegExp: ${String(regExp)}`)},exports.ensureBN=function ensureBN(val){if(null!==val&&(bn_js_1.default.isBN(val)||isBigNumber(val)))return new bn_js_1.default(val.toString(10),10);if("number"==typeof val)return new bn_js_1.default(ensureIntNumber(val));if("string"==typeof val){if(INT_STRING_REGEX.test(val))return new bn_js_1.default(val,10);if(isHexString(val))return new bn_js_1.default(ensureEvenLengthHexString(val,!1),16)}throw new Error(`Not an integer: ${String(val)}`)},exports.ensureParsedJSONObject=function ensureParsedJSONObject(val){if("string"==typeof val)return JSON.parse(val);if("object"==typeof val)return val;throw new Error(`Not a JSON string or an object: ${String(val)}`)},exports.isBigNumber=isBigNumber,exports.range=function range(start,stop){return Array.from({length:stop-start},((_,i)=>start+i))},exports.getFavicon=function getFavicon(){const el=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:protocol,host:host}=document.location,href=el?el.getAttribute("href"):null;return!href||href.startsWith("javascript:")?null:href.startsWith("http://")||href.startsWith("https://")||href.startsWith("data:")?href:href.startsWith("//")?protocol+href:`${protocol}//${host}${href}`}},"./node_modules/walletlink/dist/vendor-js/eth-eip712-util/abi.js":function(module,__unused_webpack_exports,__webpack_require__){var Buffer=__webpack_require__("./node_modules/buffer/index.js").Buffer;const util=__webpack_require__("./node_modules/walletlink/dist/vendor-js/eth-eip712-util/util.js"),BN=__webpack_require__("./node_modules/walletlink/node_modules/bn.js/lib/bn.js");function elementaryName(name){return name.startsWith("int[")?"int256"+name.slice(3):"int"===name?"int256":name.startsWith("uint[")?"uint256"+name.slice(4):"uint"===name?"uint256":name.startsWith("fixed[")?"fixed128x128"+name.slice(5):"fixed"===name?"fixed128x128":name.startsWith("ufixed[")?"ufixed128x128"+name.slice(6):"ufixed"===name?"ufixed128x128":name}function parseTypeN(type){return parseInt(/^\D+(\d+)$/.exec(type)[1],10)}function parseTypeNxM(type){var tmp=/^\D+(\d+)x(\d+)$/.exec(type);return[parseInt(tmp[1],10),parseInt(tmp[2],10)]}function parseTypeArray(type){var tmp=type.match(/(.*)\[(.*?)\]$/);return tmp?""===tmp[2]?"dynamic":parseInt(tmp[2],10):null}function parseNumber(arg){var type=typeof arg;if("string"===type)return util.isHexString(arg)?new BN(util.stripHexPrefix(arg),16):new BN(arg,10);if("number"===type)return new BN(arg);if(arg.toArray)return arg;throw new Error("Argument is not a number")}function encodeSingle(type,arg){var size,num,ret,i;if("address"===type)return encodeSingle("uint160",parseNumber(arg));if("bool"===type)return encodeSingle("uint8",arg?1:0);if("string"===type)return encodeSingle("bytes",new Buffer(arg,"utf8"));if(function isArray(type){return type.lastIndexOf("]")===type.length-1}(type)){if(void 0===arg.length)throw new Error("Not an array?");if("dynamic"!==(size=parseTypeArray(type))&&0!==size&&arg.length>size)throw new Error("Elements exceed array size: "+size);for(i in ret=[],type=type.slice(0,type.lastIndexOf("[")),"string"==typeof arg&&(arg=JSON.parse(arg)),arg)ret.push(encodeSingle(type,arg[i]));if("dynamic"===size){var length=encodeSingle("uint256",arg.length);ret.unshift(length)}return Buffer.concat(ret)}if("bytes"===type)return arg=new Buffer(arg),ret=Buffer.concat([encodeSingle("uint256",arg.length),arg]),arg.length%32!=0&&(ret=Buffer.concat([ret,util.zeros(32-arg.length%32)])),ret;if(type.startsWith("bytes")){if((size=parseTypeN(type))<1||size>32)throw new Error("Invalid bytes<N> width: "+size);return util.setLengthRight(arg,32)}if(type.startsWith("uint")){if((size=parseTypeN(type))%8||size<8||size>256)throw new Error("Invalid uint<N> width: "+size);if((num=parseNumber(arg)).bitLength()>size)throw new Error("Supplied uint exceeds width: "+size+" vs "+num.bitLength());if(num<0)throw new Error("Supplied uint is negative");return num.toArrayLike(Buffer,"be",32)}if(type.startsWith("int")){if((size=parseTypeN(type))%8||size<8||size>256)throw new Error("Invalid int<N> width: "+size);if((num=parseNumber(arg)).bitLength()>size)throw new Error("Supplied int exceeds width: "+size+" vs "+num.bitLength());return num.toTwos(256).toArrayLike(Buffer,"be",32)}if(type.startsWith("ufixed")){if(size=parseTypeNxM(type),(num=parseNumber(arg))<0)throw new Error("Supplied ufixed is negative");return encodeSingle("uint256",num.mul(new BN(2).pow(new BN(size[1]))))}if(type.startsWith("fixed"))return size=parseTypeNxM(type),encodeSingle("int256",parseNumber(arg).mul(new BN(2).pow(new BN(size[1]))));throw new Error("Unsupported or invalid type: "+type)}function isDynamic(type){return"string"===type||"bytes"===type||"dynamic"===parseTypeArray(type)}function solidityPack(types,values){if(types.length!==values.length)throw new Error("Number of types are not matching the values");for(var size,num,ret=[],i=0;i<types.length;i++){var type=elementaryName(types[i]),value=values[i];if("bytes"===type)ret.push(value);else if("string"===type)ret.push(new Buffer(value,"utf8"));else if("bool"===type)ret.push(new Buffer(value?"01":"00","hex"));else if("address"===type)ret.push(util.setLength(value,20));else if(type.startsWith("bytes")){if((size=parseTypeN(type))<1||size>32)throw new Error("Invalid bytes<N> width: "+size);ret.push(util.setLengthRight(value,size))}else if(type.startsWith("uint")){if((size=parseTypeN(type))%8||size<8||size>256)throw new Error("Invalid uint<N> width: "+size);if((num=parseNumber(value)).bitLength()>size)throw new Error("Supplied uint exceeds width: "+size+" vs "+num.bitLength());ret.push(num.toArrayLike(Buffer,"be",size/8))}else{if(!type.startsWith("int"))throw new Error("Unsupported or invalid type: "+type);if((size=parseTypeN(type))%8||size<8||size>256)throw new Error("Invalid int<N> width: "+size);if((num=parseNumber(value)).bitLength()>size)throw new Error("Supplied int exceeds width: "+size+" vs "+num.bitLength());ret.push(num.toTwos(size).toArrayLike(Buffer,"be",size/8))}}return Buffer.concat(ret)}module.exports={rawEncode:function rawEncode(types,values){var output=[],data=[],headLength=32*types.length;for(var i in types){var type=elementaryName(types[i]),cur=encodeSingle(type,values[i]);isDynamic(type)?(output.push(encodeSingle("uint256",headLength)),data.push(cur),headLength+=cur.length):output.push(cur)}return Buffer.concat(output.concat(data))},solidityPack:solidityPack,soliditySHA3:function soliditySHA3(types,values){return util.keccak(solidityPack(types,values))}}},"./node_modules/walletlink/dist/vendor-js/eth-eip712-util/index.js":function(module,__unused_webpack_exports,__webpack_require__){var Buffer=__webpack_require__("./node_modules/buffer/index.js").Buffer;const util=__webpack_require__("./node_modules/walletlink/dist/vendor-js/eth-eip712-util/util.js"),abi=__webpack_require__("./node_modules/walletlink/dist/vendor-js/eth-eip712-util/abi.js"),TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},TypedDataUtils={encodeData(primaryType,data,types,useV4=!0){const encodedTypes=["bytes32"],encodedValues=[this.hashType(primaryType,types)];if(useV4){const encodeField=(name,type,value)=>{if(void 0!==types[type])return["bytes32",null==value?"0x0000000000000000000000000000000000000000000000000000000000000000":util.keccak(this.encodeData(type,value,types,useV4))];if(void 0===value)throw new Error(`missing value for field ${name} of type ${type}`);if("bytes"===type)return["bytes32",util.keccak(value)];if("string"===type)return"string"==typeof value&&(value=Buffer.from(value,"utf8")),["bytes32",util.keccak(value)];if(type.lastIndexOf("]")===type.length-1){const parsedType=type.slice(0,type.lastIndexOf("[")),typeValuePairs=value.map((item=>encodeField(name,parsedType,item)));return["bytes32",util.keccak(abi.rawEncode(typeValuePairs.map((([type])=>type)),typeValuePairs.map((([,value])=>value))))]}return[type,value]};for(const field of types[primaryType]){const[type,value]=encodeField(field.name,field.type,data[field.name]);encodedTypes.push(type),encodedValues.push(value)}}else for(const field of types[primaryType]){let value=data[field.name];if(void 0!==value)if("bytes"===field.type)encodedTypes.push("bytes32"),value=util.keccak(value),encodedValues.push(value);else if("string"===field.type)encodedTypes.push("bytes32"),"string"==typeof value&&(value=Buffer.from(value,"utf8")),value=util.keccak(value),encodedValues.push(value);else if(void 0!==types[field.type])encodedTypes.push("bytes32"),value=util.keccak(this.encodeData(field.type,value,types,useV4)),encodedValues.push(value);else{if(field.type.lastIndexOf("]")===field.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");encodedTypes.push(field.type),encodedValues.push(value)}}return abi.rawEncode(encodedTypes,encodedValues)},encodeType(primaryType,types){let result="",deps=this.findTypeDependencies(primaryType,types).filter((dep=>dep!==primaryType));deps=[primaryType].concat(deps.sort());for(const type of deps){if(!types[type])throw new Error("No type definition specified: "+type);result+=type+"("+types[type].map((({name:name,type:type})=>type+" "+name)).join(",")+")"}return result},findTypeDependencies(primaryType,types,results=[]){if(primaryType=primaryType.match(/^\w*/)[0],results.includes(primaryType)||void 0===types[primaryType])return results;results.push(primaryType);for(const field of types[primaryType])for(const dep of this.findTypeDependencies(field.type,types,results))!results.includes(dep)&&results.push(dep);return results},hashStruct(primaryType,data,types,useV4=!0){return util.keccak(this.encodeData(primaryType,data,types,useV4))},hashType(primaryType,types){return util.keccak(this.encodeType(primaryType,types))},sanitizeData(data){const sanitizedData={};for(const key in TYPED_MESSAGE_SCHEMA.properties)data[key]&&(sanitizedData[key]=data[key]);return sanitizedData.types&&(sanitizedData.types=Object.assign({EIP712Domain:[]},sanitizedData.types)),sanitizedData},hash(typedData,useV4=!0){const sanitizedData=this.sanitizeData(typedData),parts=[Buffer.from("1901","hex")];return parts.push(this.hashStruct("EIP712Domain",sanitizedData.domain,sanitizedData.types,useV4)),"EIP712Domain"!==sanitizedData.primaryType&&parts.push(this.hashStruct(sanitizedData.primaryType,sanitizedData.message,sanitizedData.types,useV4)),util.keccak(Buffer.concat(parts))}};module.exports={TYPED_MESSAGE_SCHEMA:TYPED_MESSAGE_SCHEMA,TypedDataUtils:TypedDataUtils,hashForSignTypedDataLegacy:function(msgParams){return function typedSignatureHashLegacy(typedData){const error=new Error("Expect argument to be non-empty array");if("object"!=typeof typedData||!typedData.length)throw error;const data=typedData.map((function(e){return"bytes"===e.type?util.toBuffer(e.value):e.value})),types=typedData.map((function(e){return e.type})),schema=typedData.map((function(e){if(!e.name)throw error;return e.type+" "+e.name}));return abi.soliditySHA3(["bytes32","bytes32"],[abi.soliditySHA3(new Array(typedData.length).fill("string"),schema),abi.soliditySHA3(types,data)])}(msgParams.data)},hashForSignTypedData_v3:function(msgParams){return TypedDataUtils.hash(msgParams.data,!1)},hashForSignTypedData_v4:function(msgParams){return TypedDataUtils.hash(msgParams.data)}}},"./node_modules/walletlink/dist/vendor-js/eth-eip712-util/util.js":function(module,__unused_webpack_exports,__webpack_require__){var Buffer=__webpack_require__("./node_modules/buffer/index.js").Buffer;const createKeccakHash=__webpack_require__("./node_modules/keccak/js.js"),BN=__webpack_require__("./node_modules/walletlink/node_modules/bn.js/lib/bn.js");function zeros(bytes){return Buffer.allocUnsafe(bytes).fill(0)}function setLength(msg,length,right){const buf=zeros(length);return msg=toBuffer(msg),right?msg.length<length?(msg.copy(buf),buf):msg.slice(0,length):msg.length<length?(msg.copy(buf,length-msg.length),buf):msg.slice(-length)}function toBuffer(v){if(!Buffer.isBuffer(v))if(Array.isArray(v))v=Buffer.from(v);else if("string"==typeof v)v=isHexString(v)?Buffer.from(function padToEven(str){return str.length%2?"0"+str:str}(stripHexPrefix(v)),"hex"):Buffer.from(v);else if("number"==typeof v)v=intToBuffer(v);else if(null==v)v=Buffer.allocUnsafe(0);else if(BN.isBN(v))v=v.toArrayLike(Buffer);else{if(!v.toArray)throw new Error("invalid type");v=Buffer.from(v.toArray())}return v}function isHexString(str){return"string"==typeof str&&str.match(/^0x[0-9A-Fa-f]*$/)}function stripHexPrefix(str){return"string"==typeof str&&str.startsWith("0x")?str.slice(2):str}module.exports={zeros:zeros,setLength:setLength,setLengthRight:function setLengthRight(msg,length){return setLength(msg,length,!0)},isHexString:isHexString,stripHexPrefix:stripHexPrefix,toBuffer:toBuffer,bufferToHex:function bufferToHex(buf){return"0x"+(buf=toBuffer(buf)).toString("hex")},keccak:function keccak(a,bits){return a=toBuffer(a),bits||(bits=256),createKeccakHash("keccak"+bits).update(a).digest()}}},"./node_modules/walletlink/dist/vendor-js/qrcode-svg/index.js":function(module){function QR8bitByte(data){this.mode=QRMode.MODE_8BIT_BYTE,this.data=data,this.parsedData=[];for(var i=0,l=this.data.length;i<l;i++){var byteArray=[],code=this.data.charCodeAt(i);code>65536?(byteArray[0]=240|(1835008&code)>>>18,byteArray[1]=128|(258048&code)>>>12,byteArray[2]=128|(4032&code)>>>6,byteArray[3]=128|63&code):code>2048?(byteArray[0]=224|(61440&code)>>>12,byteArray[1]=128|(4032&code)>>>6,byteArray[2]=128|63&code):code>128?(byteArray[0]=192|(1984&code)>>>6,byteArray[1]=128|63&code):byteArray[0]=code,this.parsedData.push(byteArray)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function QRCodeModel(typeNumber,errorCorrectLevel){this.typeNumber=typeNumber,this.errorCorrectLevel=errorCorrectLevel,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}QR8bitByte.prototype={getLength:function(buffer){return this.parsedData.length},write:function(buffer){for(var i=0,l=this.parsedData.length;i<l;i++)buffer.put(this.parsedData[i],8)}},QRCodeModel.prototype={addData:function(data){var newData=new QR8bitByte(data);this.dataList.push(newData),this.dataCache=null},isDark:function(row,col){if(row<0||this.moduleCount<=row||col<0||this.moduleCount<=col)throw new Error(row+","+col);return this.modules[row][col]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(test,maskPattern){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var row=0;row<this.moduleCount;row++){this.modules[row]=new Array(this.moduleCount);for(var col=0;col<this.moduleCount;col++)this.modules[row][col]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(test,maskPattern),this.typeNumber>=7&&this.setupTypeNumber(test),null==this.dataCache&&(this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,maskPattern)},setupPositionProbePattern:function(row,col){for(var r=-1;r<=7;r++)if(!(row+r<=-1||this.moduleCount<=row+r))for(var c=-1;c<=7;c++)col+c<=-1||this.moduleCount<=col+c||(this.modules[row+r][col+c]=0<=r&&r<=6&&(0==c||6==c)||0<=c&&c<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=c&&c<=4)},getBestMaskPattern:function(){for(var minLostPoint=0,pattern=0,i=0;i<8;i++){this.makeImpl(!0,i);var lostPoint=QRUtil.getLostPoint(this);(0==i||minLostPoint>lostPoint)&&(minLostPoint=lostPoint,pattern=i)}return pattern},createMovieClip:function(target_mc,instance_name,depth){var qr_mc=target_mc.createEmptyMovieClip(instance_name,depth);this.make();for(var row=0;row<this.modules.length;row++)for(var y=1*row,col=0;col<this.modules[row].length;col++){var x=1*col;this.modules[row][col]&&(qr_mc.beginFill(0,100),qr_mc.moveTo(x,y),qr_mc.lineTo(x+1,y),qr_mc.lineTo(x+1,y+1),qr_mc.lineTo(x,y+1),qr_mc.endFill())}return qr_mc},setupTimingPattern:function(){for(var r=8;r<this.moduleCount-8;r++)null==this.modules[r][6]&&(this.modules[r][6]=r%2==0);for(var c=8;c<this.moduleCount-8;c++)null==this.modules[6][c]&&(this.modules[6][c]=c%2==0)},setupPositionAdjustPattern:function(){for(var pos=QRUtil.getPatternPosition(this.typeNumber),i=0;i<pos.length;i++)for(var j=0;j<pos.length;j++){var row=pos[i],col=pos[j];if(null==this.modules[row][col])for(var r=-2;r<=2;r++)for(var c=-2;c<=2;c++)this.modules[row+r][col+c]=-2==r||2==r||-2==c||2==c||0==r&&0==c}},setupTypeNumber:function(test){for(var bits=QRUtil.getBCHTypeNumber(this.typeNumber),i=0;i<18;i++){var mod=!test&&1==(bits>>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=mod}for(i=0;i<18;i++){mod=!test&&1==(bits>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=mod}},setupTypeInfo:function(test,maskPattern){for(var data=this.errorCorrectLevel<<3|maskPattern,bits=QRUtil.getBCHTypeInfo(data),i=0;i<15;i++){var mod=!test&&1==(bits>>i&1);i<6?this.modules[i][8]=mod:i<8?this.modules[i+1][8]=mod:this.modules[this.moduleCount-15+i][8]=mod}for(i=0;i<15;i++){mod=!test&&1==(bits>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=mod:i<9?this.modules[8][15-i-1+1]=mod:this.modules[8][15-i-1]=mod}this.modules[this.moduleCount-8][8]=!test},mapData:function(data,maskPattern){for(var inc=-1,row=this.moduleCount-1,bitIndex=7,byteIndex=0,col=this.moduleCount-1;col>0;col-=2)for(6==col&&col--;;){for(var c=0;c<2;c++)if(null==this.modules[row][col-c]){var dark=!1;byteIndex<data.length&&(dark=1==(data[byteIndex]>>>bitIndex&1)),QRUtil.getMask(maskPattern,row,col-c)&&(dark=!dark),this.modules[row][col-c]=dark,-1==--bitIndex&&(byteIndex++,bitIndex=7)}if((row+=inc)<0||this.moduleCount<=row){row-=inc,inc=-inc;break}}}},QRCodeModel.PAD0=236,QRCodeModel.PAD1=17,QRCodeModel.createData=function(typeNumber,errorCorrectLevel,dataList){for(var rsBlocks=QRRSBlock.getRSBlocks(typeNumber,errorCorrectLevel),buffer=new QRBitBuffer,i=0;i<dataList.length;i++){var data=dataList[i];buffer.put(data.mode,4),buffer.put(data.getLength(),QRUtil.getLengthInBits(data.mode,typeNumber)),data.write(buffer)}var totalDataCount=0;for(i=0;i<rsBlocks.length;i++)totalDataCount+=rsBlocks[i].dataCount;if(buffer.getLengthInBits()>8*totalDataCount)throw new Error("code length overflow. ("+buffer.getLengthInBits()+">"+8*totalDataCount+")");for(buffer.getLengthInBits()+4<=8*totalDataCount&&buffer.put(0,4);buffer.getLengthInBits()%8!=0;)buffer.putBit(!1);for(;!(buffer.getLengthInBits()>=8*totalDataCount||(buffer.put(QRCodeModel.PAD0,8),buffer.getLengthInBits()>=8*totalDataCount));)buffer.put(QRCodeModel.PAD1,8);return QRCodeModel.createBytes(buffer,rsBlocks)},QRCodeModel.createBytes=function(buffer,rsBlocks){for(var offset=0,maxDcCount=0,maxEcCount=0,dcdata=new Array(rsBlocks.length),ecdata=new Array(rsBlocks.length),r=0;r<rsBlocks.length;r++){var dcCount=rsBlocks[r].dataCount,ecCount=rsBlocks[r].totalCount-dcCount;maxDcCount=Math.max(maxDcCount,dcCount),maxEcCount=Math.max(maxEcCount,ecCount),dcdata[r]=new Array(dcCount);for(var i=0;i<dcdata[r].length;i++)dcdata[r][i]=255&buffer.buffer[i+offset];offset+=dcCount;var rsPoly=QRUtil.getErrorCorrectPolynomial(ecCount),modPoly=new QRPolynomial(dcdata[r],rsPoly.getLength()-1).mod(rsPoly);ecdata[r]=new Array(rsPoly.getLength()-1);for(i=0;i<ecdata[r].length;i++){var modIndex=i+modPoly.getLength()-ecdata[r].length;ecdata[r][i]=modIndex>=0?modPoly.get(modIndex):0}}var totalCodeCount=0;for(i=0;i<rsBlocks.length;i++)totalCodeCount+=rsBlocks[i].totalCount;var data=new Array(totalCodeCount),index=0;for(i=0;i<maxDcCount;i++)for(r=0;r<rsBlocks.length;r++)i<dcdata[r].length&&(data[index++]=dcdata[r][i]);for(i=0;i<maxEcCount;i++)for(r=0;r<rsBlocks.length;r++)i<ecdata[r].length&&(data[index++]=ecdata[r][i]);return data};for(var QRMode={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},QRErrorCorrectLevel_L=1,QRErrorCorrectLevel_M=0,QRErrorCorrectLevel_Q=3,QRErrorCorrectLevel_H=2,QRMaskPattern_PATTERN000=0,QRMaskPattern_PATTERN001=1,QRMaskPattern_PATTERN010=2,QRMaskPattern_PATTERN011=3,QRMaskPattern_PATTERN100=4,QRMaskPattern_PATTERN101=5,QRMaskPattern_PATTERN110=6,QRMaskPattern_PATTERN111=7,QRUtil={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(data){for(var d=data<<10;QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15)>=0;)d^=QRUtil.G15<<QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G15);return(data<<10|d)^QRUtil.G15_MASK},getBCHTypeNumber:function(data){for(var d=data<<12;QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18)>=0;)d^=QRUtil.G18<<QRUtil.getBCHDigit(d)-QRUtil.getBCHDigit(QRUtil.G18);return data<<12|d},getBCHDigit:function(data){for(var digit=0;0!=data;)digit++,data>>>=1;return digit},getPatternPosition:function(typeNumber){return QRUtil.PATTERN_POSITION_TABLE[typeNumber-1]},getMask:function(maskPattern,i,j){switch(maskPattern){case QRMaskPattern_PATTERN000:return(i+j)%2==0;case QRMaskPattern_PATTERN001:return i%2==0;case QRMaskPattern_PATTERN010:return j%3==0;case QRMaskPattern_PATTERN011:return(i+j)%3==0;case QRMaskPattern_PATTERN100:return(Math.floor(i/2)+Math.floor(j/3))%2==0;case QRMaskPattern_PATTERN101:return i*j%2+i*j%3==0;case QRMaskPattern_PATTERN110:return(i*j%2+i*j%3)%2==0;case QRMaskPattern_PATTERN111:return(i*j%3+(i+j)%2)%2==0;default:throw new Error("bad maskPattern:"+maskPattern)}},getErrorCorrectPolynomial:function(errorCorrectLength){for(var a=new QRPolynomial([1],0),i=0;i<errorCorrectLength;i++)a=a.multiply(new QRPolynomial([1,QRMath.gexp(i)],0));return a},getLengthInBits:function(mode,type){if(1<=type&&type<10)switch(mode){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:case QRMode.MODE_KANJI:return 8;default:throw new Error("mode:"+mode)}else if(type<27)switch(mode){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw new Error("mode:"+mode)}else{if(!(type<41))throw new Error("type:"+type);switch(mode){case QRMode.MODE_NUMBER:return 14;case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw new Error("mode:"+mode)}}},getLostPoint:function(qrCode){for(var moduleCount=qrCode.getModuleCount(),lostPoint=0,row=0;row<moduleCount;row++)for(var col=0;col<moduleCount;col++){for(var sameCount=0,dark=qrCode.isDark(row,col),r=-1;r<=1;r++)if(!(row+r<0||moduleCount<=row+r))for(var c=-1;c<=1;c++)col+c<0||moduleCount<=col+c||0==r&&0==c||dark==qrCode.isDark(row+r,col+c)&&sameCount++;sameCount>5&&(lostPoint+=3+sameCount-5)}for(row=0;row<moduleCount-1;row++)for(col=0;col<moduleCount-1;col++){var count=0;qrCode.isDark(row,col)&&count++,qrCode.isDark(row+1,col)&&count++,qrCode.isDark(row,col+1)&&count++,qrCode.isDark(row+1,col+1)&&count++,0!=count&&4!=count||(lostPoint+=3)}for(row=0;row<moduleCount;row++)for(col=0;col<moduleCount-6;col++)qrCode.isDark(row,col)&&!qrCode.isDark(row,col+1)&&qrCode.isDark(row,col+2)&&qrCode.isDark(row,col+3)&&qrCode.isDark(row,col+4)&&!qrCode.isDark(row,col+5)&&qrCode.isDark(row,col+6)&&(lostPoint+=40);for(col=0;col<moduleCount;col++)for(row=0;row<moduleCount-6;row++)qrCode.isDark(row,col)&&!qrCode.isDark(row+1,col)&&qrCode.isDark(row+2,col)&&qrCode.isDark(row+3,col)&&qrCode.isDark(row+4,col)&&!qrCode.isDark(row+5,col)&&qrCode.isDark(row+6,col)&&(lostPoint+=40);var darkCount=0;for(col=0;col<moduleCount;col++)for(row=0;row<moduleCount;row++)qrCode.isDark(row,col)&&darkCount++;return lostPoint+=10*(Math.abs(100*darkCount/moduleCount/moduleCount-50)/5)}},QRMath={glog:function(n){if(n<1)throw new Error("glog("+n+")");return QRMath.LOG_TABLE[n]},gexp:function(n){for(;n<0;)n+=255;for(;n>=256;)n-=255;return QRMath.EXP_TABLE[n]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},i=0;i<8;i++)QRMath.EXP_TABLE[i]=1<<i;for(i=8;i<256;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(i=0;i<255;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i;function QRPolynomial(num,shift){if(null==num.length)throw new Error(num.length+"/"+shift);for(var offset=0;offset<num.length&&0==num[offset];)offset++;this.num=new Array(num.length-offset+shift);for(var i=0;i<num.length-offset;i++)this.num[i]=num[i+offset]}function QRRSBlock(totalCount,dataCount){this.totalCount=totalCount,this.dataCount=dataCount}function QRBitBuffer(){this.buffer=[],this.length=0}QRPolynomial.prototype={get:function(index){return this.num[index]},getLength:function(){return this.num.length},multiply:function(e){for(var num=new Array(this.getLength()+e.getLength()-1),i=0;i<this.getLength();i++)for(var j=0;j<e.getLength();j++)num[i+j]^=QRMath.gexp(QRMath.glog(this.get(i))+QRMath.glog(e.get(j)));return new QRPolynomial(num,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var ratio=QRMath.glog(this.get(0))-QRMath.glog(e.get(0)),num=new Array(this.getLength()),i=0;i<this.getLength();i++)num[i]=this.get(i);for(i=0;i<e.getLength();i++)num[i]^=QRMath.gexp(QRMath.glog(e.get(i))+ratio);return new QRPolynomial(num,0).mod(e)}},QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],QRRSBlock.getRSBlocks=function(typeNumber,errorCorrectLevel){var rsBlock=QRRSBlock.getRsBlockTable(typeNumber,errorCorrectLevel);if(null==rsBlock)throw new Error("bad rs block @ typeNumber:"+typeNumber+"/errorCorrectLevel:"+errorCorrectLevel);for(var length=rsBlock.length/3,list=[],i=0;i<length;i++)for(var count=rsBlock[3*i+0],totalCount=rsBlock[3*i+1],dataCount=rsBlock[3*i+2],j=0;j<count;j++)list.push(new QRRSBlock(totalCount,dataCount));return list},QRRSBlock.getRsBlockTable=function(typeNumber,errorCorrectLevel){switch(errorCorrectLevel){case QRErrorCorrectLevel_L:return QRRSBlock.RS_BLOCK_TABLE[4*(typeNumber-1)+0];case QRErrorCorrectLevel_M:return QRRSBlock.RS_BLOCK_TABLE[4*(typeNumber-1)+1];case QRErrorCorrectLevel_Q:return QRRSBlock.RS_BLOCK_TABLE[4*(typeNumber-1)+2];case QRErrorCorrectLevel_H:return QRRSBlock.RS_BLOCK_TABLE[4*(typeNumber-1)+3];default:return}},QRBitBuffer.prototype={get:function(index){var bufIndex=Math.floor(index/8);return 1==(this.buffer[bufIndex]>>>7-index%8&1)},put:function(num,length){for(var i=0;i<length;i++)this.putBit(1==(num>>>length-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(bit){var bufIndex=Math.floor(this.length/8);this.buffer.length<=bufIndex&&this.buffer.push(0),bit&&(this.buffer[bufIndex]|=128>>>this.length%8),this.length++}};var QRCodeLimitLength=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function QRCode(options){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof options&&(options={content:options}),options)for(var i in options)this.options[i]=options[i];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var content=this.options.content,type=function _getTypeNumber(content,ecl){for(var length=function _getUTF8Length(content){var result=encodeURI(content).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return result.length+(result.length!=content?3:0)}(content),type=1,limit=0,i=0,len=QRCodeLimitLength.length;i<=len;i++){var table=QRCodeLimitLength[i];if(!table)throw new Error("Content too long: expected "+limit+" but got "+length);switch(ecl){case"L":limit=table[0];break;case"M":limit=table[1];break;case"Q":limit=table[2];break;case"H":limit=table[3];break;default:throw new Error("Unknwon error correction level: "+ecl)}if(length<=limit)break;type++}if(type>QRCodeLimitLength.length)throw new Error("Content too long");return type}(content,this.options.ecl),ecl=function _getErrorCorrectLevel(ecl){switch(ecl){case"L":return QRErrorCorrectLevel_L;case"M":return QRErrorCorrectLevel_M;case"Q":return QRErrorCorrectLevel_Q;case"H":return QRErrorCorrectLevel_H;default:throw new Error("Unknwon error correction level: "+ecl)}}(this.options.ecl);this.qrcode=new QRCodeModel(type,ecl),this.qrcode.addData(content),this.qrcode.make()}QRCode.prototype.svg=function(opt){var options=this.options||{},modules=this.qrcode.modules;void 0===opt&&(opt={container:options.container||"svg"});for(var pretty=void 0===options.pretty||!!options.pretty,indent=pretty?" ":"",EOL=pretty?"\r\n":"",width=options.width,height=options.height,length=modules.length,xsize=width/(length+2*options.padding),ysize=height/(length+2*options.padding),join=void 0!==options.join&&!!options.join,swap=void 0!==options.swap&&!!options.swap,xmlDeclaration=void 0===options.xmlDeclaration||!!options.xmlDeclaration,predefined=void 0!==options.predefined&&!!options.predefined,defs=predefined?indent+'<defs><path id="qrmodule" d="M0 0 h'+ysize+" v"+xsize+' H0 z" style="fill:'+options.color+';shape-rendering:crispEdges;" /></defs>'+EOL:"",bgrect=indent+'<rect x="0" y="0" width="'+width+'" height="'+height+'" style="fill:'+options.background+';shape-rendering:crispEdges;"/>'+EOL,modrect="",pathdata="",y=0;y<length;y++)for(var x=0;x<length;x++){if(modules[x][y]){var px=x*xsize+options.padding*xsize,py=y*ysize+options.padding*ysize;if(swap){var t=px;px=py,py=t}if(join){var w=xsize+px,h=ysize+py;px=Number.isInteger(px)?Number(px):px.toFixed(2),py=Number.isInteger(py)?Number(py):py.toFixed(2),w=Number.isInteger(w)?Number(w):w.toFixed(2),pathdata+="M"+px+","+py+" V"+(h=Number.isInteger(h)?Number(h):h.toFixed(2))+" H"+w+" V"+py+" H"+px+" Z "}else modrect+=predefined?indent+'<use x="'+px.toString()+'" y="'+py.toString()+'" href="#qrmodule" />'+EOL:indent+'<rect x="'+px.toString()+'" y="'+py.toString()+'" width="'+xsize+'" height="'+ysize+'" style="fill:'+options.color+';shape-rendering:crispEdges;"/>'+EOL}}join&&(modrect=indent+'<path x="0" y="0" style="fill:'+options.color+';shape-rendering:crispEdges;" d="'+pathdata+'" />');let imgSvg="";if(void 0!==this.options.image&&this.options.image.svg){const imgWidth=width*this.options.image.width/100,imgHeight=height*this.options.image.height/100;imgSvg+=`<svg x="${width/2-imgWidth/2}" y="${height/2-imgHeight/2}" width="${imgWidth}" height="${imgHeight}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`,imgSvg+=this.options.image.svg+EOL,imgSvg+="</svg>"}var svg="";switch(opt.container){case"svg":xmlDeclaration&&(svg+='<?xml version="1.0" standalone="yes"?>'+EOL),svg+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+width+'" height="'+height+'">'+EOL,svg+=defs+bgrect+modrect,svg+=imgSvg,svg+="</svg>";break;case"svg-viewbox":xmlDeclaration&&(svg+='<?xml version="1.0" standalone="yes"?>'+EOL),svg+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+width+" "+height+'">'+EOL,svg+=defs+bgrect+modrect,svg+=imgSvg,svg+="</svg>";break;case"g":svg+='<g width="'+width+'" height="'+height+'">'+EOL,svg+=defs+bgrect+modrect,svg+=imgSvg,svg+="</g>";break;default:svg+=(defs+bgrect+modrect+imgSvg).replace(/^\s+/,"")}return svg},module.exports=QRCode},"./node_modules/walletlink/dist/version.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LIB_VERSION=void 0,exports.LIB_VERSION="2.5.0"},"./node_modules/walletlink/node_modules/bn.js/lib/bn.js":function(module,__unused_webpack_exports,__webpack_require__){!function(module,exports){"use strict";function assert(val,msg){if(!val)throw new Error(msg||"Assertion failed")}function inherits(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}function BN(number,base,endian){if(BN.isBN(number))return number;this.negative=0,this.words=null,this.length=0,this.red=null,null!==number&&("le"!==base&&"be"!==base||(endian=base,base=10),this._init(number||0,base||10,endian||"be"))}var Buffer;"object"==typeof module?module.exports=BN:exports.BN=BN,BN.BN=BN,BN.wordSize=26;try{Buffer="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:__webpack_require__("?d200").Buffer}catch(e){}function parseHex4Bits(string,index){var c=string.charCodeAt(index);return c>=48&&c<=57?c-48:c>=65&&c<=70?c-55:c>=97&&c<=102?c-87:void assert(!1,"Invalid character in "+string)}function parseHexByte(string,lowerBound,index){var r=parseHex4Bits(string,index);return index-1>=lowerBound&&(r|=parseHex4Bits(string,index-1)<<4),r}function parseBase(str,start,end,mul){for(var r=0,b=0,len=Math.min(str.length,end),i=start;i<len;i++){var c=str.charCodeAt(i)-48;r*=mul,b=c>=49?c-49+10:c>=17?c-17+10:c,assert(c>=0&&b<mul,"Invalid character"),r+=b}return r}function move(dest,src){dest.words=src.words,dest.length=src.length,dest.negative=src.negative,dest.red=src.red}if(BN.isBN=function isBN(num){return num instanceof BN||null!==num&&"object"==typeof num&&num.constructor.wordSize===BN.wordSize&&Array.isArray(num.words)},BN.max=function max(left,right){return left.cmp(right)>0?left:right},BN.min=function min(left,right){return left.cmp(right)<0?left:right},BN.prototype._init=function init(number,base,endian){if("number"==typeof number)return this._initNumber(number,base,endian);if("object"==typeof number)return this._initArray(number,base,endian);"hex"===base&&(base=16),assert(base===(0|base)&&base>=2&&base<=36);var start=0;"-"===(number=number.toString().replace(/\s+/g,""))[0]&&(start++,this.negative=1),start<number.length&&(16===base?this._parseHex(number,start,endian):(this._parseBase(number,base,start),"le"===endian&&this._initArray(this.toArray(),base,endian)))},BN.prototype._initNumber=function _initNumber(number,base,endian){number<0&&(this.negative=1,number=-number),number<67108864?(this.words=[67108863&number],this.length=1):number<4503599627370496?(this.words=[67108863&number,number/67108864&67108863],this.length=2):(assert(number<9007199254740992),this.words=[67108863&number,number/67108864&67108863,1],this.length=3),"le"===endian&&this._initArray(this.toArray(),base,endian)},BN.prototype._initArray=function _initArray(number,base,endian){if(assert("number"==typeof number.length),number.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(number.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var j,w,off=0;if("be"===endian)for(i=number.length-1,j=0;i>=0;i-=3)w=number[i]|number[i-1]<<8|number[i-2]<<16,this.words[j]|=w<<off&67108863,this.words[j+1]=w>>>26-off&67108863,(off+=24)>=26&&(off-=26,j++);else if("le"===endian)for(i=0,j=0;i<number.length;i+=3)w=number[i]|number[i+1]<<8|number[i+2]<<16,this.words[j]|=w<<off&67108863,this.words[j+1]=w>>>26-off&67108863,(off+=24)>=26&&(off-=26,j++);return this._strip()},BN.prototype._parseHex=function _parseHex(number,start,endian){this.length=Math.ceil((number.length-start)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var w,off=0,j=0;if("be"===endian)for(i=number.length-1;i>=start;i-=2)w=parseHexByte(number,start,i)<<off,this.words[j]|=67108863&w,off>=18?(off-=18,j+=1,this.words[j]|=w>>>26):off+=8;else for(i=(number.length-start)%2==0?start+1:start;i<number.length;i+=2)w=parseHexByte(number,start,i)<<off,this.words[j]|=67108863&w,off>=18?(off-=18,j+=1,this.words[j]|=w>>>26):off+=8;this._strip()},BN.prototype._parseBase=function _parseBase(number,base,start){this.words=[0],this.length=1;for(var limbLen=0,limbPow=1;limbPow<=67108863;limbPow*=base)limbLen++;limbLen--,limbPow=limbPow/base|0;for(var total=number.length-start,mod=total%limbLen,end=Math.min(total,total-mod)+start,word=0,i=start;i<end;i+=limbLen)word=parseBase(number,i,i+limbLen,base),this.imuln(limbPow),this.words[0]+word<67108864?this.words[0]+=word:this._iaddn(word);if(0!==mod){var pow=1;for(word=parseBase(number,i,number.length,base),i=0;i<mod;i++)pow*=base;this.imuln(pow),this.words[0]+word<67108864?this.words[0]+=word:this._iaddn(word)}this._strip()},BN.prototype.copy=function copy(dest){dest.words=new Array(this.length);for(var i=0;i<this.length;i++)dest.words[i]=this.words[i];dest.length=this.length,dest.negative=this.negative,dest.red=this.red},BN.prototype._move=function _move(dest){move(dest,this)},BN.prototype.clone=function clone(){var r=new BN(null);return this.copy(r),r},BN.prototype._expand=function _expand(size){for(;this.length<size;)this.words[this.length++]=0;return this},BN.prototype._strip=function strip(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},BN.prototype._normSign=function _normSign(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{BN.prototype[Symbol.for("nodejs.util.inspect.custom")]=inspect}catch(e){BN.prototype.inspect=inspect}else BN.prototype.inspect=inspect;function inspect(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var zeros=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(base,padding){var out;if(padding=0|padding||1,16===(base=base||10)||"hex"===base){out="";for(var off=0,carry=0,i=0;i<this.length;i++){var w=this.words[i],word=(16777215&(w<<off|carry)).toString(16);carry=w>>>24-off&16777215,(off+=2)>=26&&(off-=26,i--),out=0!==carry||i!==this.length-1?zeros[6-word.length]+word+out:word+out}for(0!==carry&&(out=carry.toString(16)+out);out.length%padding!=0;)out="0"+out;return 0!==this.negative&&(out="-"+out),out}if(base===(0|base)&&base>=2&&base<=36){var groupSize=groupSizes[base],groupBase=groupBases[base];out="";var c=this.clone();for(c.negative=0;!c.isZero();){var r=c.modrn(groupBase).toString(base);out=(c=c.idivn(groupBase)).isZero()?r+out:zeros[groupSize-r.length]+r+out}for(this.isZero()&&(out="0"+out);out.length%padding!=0;)out="0"+out;return 0!==this.negative&&(out="-"+out),out}assert(!1,"Base should be between 2 and 36")},BN.prototype.toNumber=function toNumber(){var ret=this.words[0];return 2===this.length?ret+=67108864*this.words[1]:3===this.length&&1===this.words[2]?ret+=4503599627370496+67108864*this.words[1]:this.length>2&&assert(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-ret:ret},BN.prototype.toJSON=function toJSON(){return this.toString(16,2)},Buffer&&(BN.prototype.toBuffer=function toBuffer(endian,length){return this.toArrayLike(Buffer,endian,length)}),BN.prototype.toArray=function toArray(endian,length){return this.toArrayLike(Array,endian,length)};function smallMulTo(self,num,out){out.negative=num.negative^self.negative;var len=self.length+num.length|0;out.length=len,len=len-1|0;var a=0|self.words[0],b=0|num.words[0],r=a*b,lo=67108863&r,carry=r/67108864|0;out.words[0]=lo;for(var k=1;k<len;k++){for(var ncarry=carry>>>26,rword=67108863&carry,maxJ=Math.min(k,num.length-1),j=Math.max(0,k-self.length+1);j<=maxJ;j++){var i=k-j|0;ncarry+=(r=(a=0|self.words[i])*(b=0|num.words[j])+rword)/67108864|0,rword=67108863&r}out.words[k]=0|rword,carry=0|ncarry}return 0!==carry?out.words[k]=0|carry:out.length--,out._strip()}BN.prototype.toArrayLike=function toArrayLike(ArrayType,endian,length){this._strip();var byteLength=this.byteLength(),reqLength=length||Math.max(1,byteLength);assert(byteLength<=reqLength,"byte array longer than desired length"),assert(reqLength>0,"Requested array length <= 0");var res=function allocate(ArrayType,size){return ArrayType.allocUnsafe?ArrayType.allocUnsafe(size):new ArrayType(size)}(ArrayType,reqLength);return this["_toArrayLike"+("le"===endian?"LE":"BE")](res,byteLength),res},BN.prototype._toArrayLikeLE=function _toArrayLikeLE(res,byteLength){for(var position=0,carry=0,i=0,shift=0;i<this.length;i++){var word=this.words[i]<<shift|carry;res[position++]=255&word,position<res.length&&(res[position++]=word>>8&255),position<res.length&&(res[position++]=word>>16&255),6===shift?(position<res.length&&(res[position++]=word>>24&255),carry=0,shift=0):(carry=word>>>24,shift+=2)}if(position<res.length)for(res[position++]=carry;position<res.length;)res[position++]=0},BN.prototype._toArrayLikeBE=function _toArrayLikeBE(res,byteLength){for(var position=res.length-1,carry=0,i=0,shift=0;i<this.length;i++){var word=this.words[i]<<shift|carry;res[position--]=255&word,position>=0&&(res[position--]=word>>8&255),position>=0&&(res[position--]=word>>16&255),6===shift?(position>=0&&(res[position--]=word>>24&255),carry=0,shift=0):(carry=word>>>24,shift+=2)}if(position>=0)for(res[position--]=carry;position>=0;)res[position--]=0},Math.clz32?BN.prototype._countBits=function _countBits(w){return 32-Math.clz32(w)}:BN.prototype._countBits=function _countBits(w){var t=w,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},BN.prototype._zeroBits=function _zeroBits(w){if(0===w)return 26;var t=w,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},BN.prototype.bitLength=function bitLength(){var w=this.words[this.length-1],hi=this._countBits(w);return 26*(this.length-1)+hi},BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;for(var r=0,i=0;i<this.length;i++){var b=this._zeroBits(this.words[i]);if(r+=b,26!==b)break}return r},BN.prototype.byteLength=function byteLength(){return Math.ceil(this.bitLength()/8)},BN.prototype.toTwos=function toTwos(width){return 0!==this.negative?this.abs().inotn(width).iaddn(1):this.clone()},BN.prototype.fromTwos=function fromTwos(width){return this.testn(width-1)?this.notn(width).iaddn(1).ineg():this.clone()},BN.prototype.isNeg=function isNeg(){return 0!==this.negative},BN.prototype.neg=function neg(){return this.clone().ineg()},BN.prototype.ineg=function ineg(){return this.isZero()||(this.negative^=1),this},BN.prototype.iuor=function iuor(num){for(;this.length<num.length;)this.words[this.length++]=0;for(var i=0;i<num.length;i++)this.words[i]=this.words[i]|num.words[i];return this._strip()},BN.prototype.ior=function ior(num){return assert(0==(this.negative|num.negative)),this.iuor(num)},BN.prototype.or=function or(num){return this.length>num.length?this.clone().ior(num):num.clone().ior(this)},BN.prototype.uor=function uor(num){return this.length>num.length?this.clone().iuor(num):num.clone().iuor(this)},BN.prototype.iuand=function iuand(num){var b;b=this.length>num.length?num:this;for(var i=0;i<b.length;i++)this.words[i]=this.words[i]&num.words[i];return this.length=b.length,this._strip()},BN.prototype.iand=function iand(num){return assert(0==(this.negative|num.negative)),this.iuand(num)},BN.prototype.and=function and(num){return this.length>num.length?this.clone().iand(num):num.clone().iand(this)},BN.prototype.uand=function uand(num){return this.length>num.length?this.clone().iuand(num):num.clone().iuand(this)},BN.prototype.iuxor=function iuxor(num){var a,b;this.length>num.length?(a=this,b=num):(a=num,b=this);for(var i=0;i<b.length;i++)this.words[i]=a.words[i]^b.words[i];if(this!==a)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=a.length,this._strip()},BN.prototype.ixor=function ixor(num){return assert(0==(this.negative|num.negative)),this.iuxor(num)},BN.prototype.xor=function xor(num){return this.length>num.length?this.clone().ixor(num):num.clone().ixor(this)},BN.prototype.uxor=function uxor(num){return this.length>num.length?this.clone().iuxor(num):num.clone().iuxor(this)},BN.prototype.inotn=function inotn(width){assert("number"==typeof width&&width>=0);var bytesNeeded=0|Math.ceil(width/26),bitsLeft=width%26;this._expand(bytesNeeded),bitsLeft>0&&bytesNeeded--;for(var i=0;i<bytesNeeded;i++)this.words[i]=67108863&~this.words[i];return bitsLeft>0&&(this.words[i]=~this.words[i]&67108863>>26-bitsLeft),this._strip()},BN.prototype.notn=function notn(width){return this.clone().inotn(width)},BN.prototype.setn=function setn(bit,val){assert("number"==typeof bit&&bit>=0);var off=bit/26|0,wbit=bit%26;return this._expand(off+1),this.words[off]=val?this.words[off]|1<<wbit:this.words[off]&~(1<<wbit),this._strip()},BN.prototype.iadd=function iadd(num){var r,a,b;if(0!==this.negative&&0===num.negative)return this.negative=0,r=this.isub(num),this.negative^=1,this._normSign();if(0===this.negative&&0!==num.negative)return num.negative=0,r=this.isub(num),num.negative=1,r._normSign();this.length>num.length?(a=this,b=num):(a=num,b=this);for(var carry=0,i=0;i<b.length;i++)r=(0|a.words[i])+(0|b.words[i])+carry,this.words[i]=67108863&r,carry=r>>>26;for(;0!==carry&&i<a.length;i++)r=(0|a.words[i])+carry,this.words[i]=67108863&r,carry=r>>>26;if(this.length=a.length,0!==carry)this.words[this.length]=carry,this.length++;else if(a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this},BN.prototype.add=function add(num){var res;return 0!==num.negative&&0===this.negative?(num.negative=0,res=this.sub(num),num.negative^=1,res):0===num.negative&&0!==this.negative?(this.negative=0,res=num.sub(this),this.negative=1,res):this.length>num.length?this.clone().iadd(num):num.clone().iadd(this)},BN.prototype.isub=function isub(num){if(0!==num.negative){num.negative=0;var r=this.iadd(num);return num.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(num),this.negative=1,this._normSign();var a,b,cmp=this.cmp(num);if(0===cmp)return this.negative=0,this.length=1,this.words[0]=0,this;cmp>0?(a=this,b=num):(a=num,b=this);for(var carry=0,i=0;i<b.length;i++)carry=(r=(0|a.words[i])-(0|b.words[i])+carry)>>26,this.words[i]=67108863&r;for(;0!==carry&&i<a.length;i++)carry=(r=(0|a.words[i])+carry)>>26,this.words[i]=67108863&r;if(0===carry&&i<a.length&&a!==this)for(;i<a.length;i++)this.words[i]=a.words[i];return this.length=Math.max(this.length,i),a!==this&&(this.negative=1),this._strip()},BN.prototype.sub=function sub(num){return this.clone().isub(num)};var comb10MulTo=function comb10MulTo(self,num,out){var lo,mid,hi,a=self.words,b=num.words,o=out.words,c=0,a0=0|a[0],al0=8191&a0,ah0=a0>>>13,a1=0|a[1],al1=8191&a1,ah1=a1>>>13,a2=0|a[2],al2=8191&a2,ah2=a2>>>13,a3=0|a[3],al3=8191&a3,ah3=a3>>>13,a4=0|a[4],al4=8191&a4,ah4=a4>>>13,a5=0|a[5],al5=8191&a5,ah5=a5>>>13,a6=0|a[6],al6=8191&a6,ah6=a6>>>13,a7=0|a[7],al7=8191&a7,ah7=a7>>>13,a8=0|a[8],al8=8191&a8,ah8=a8>>>13,a9=0|a[9],al9=8191&a9,ah9=a9>>>13,b0=0|b[0],bl0=8191&b0,bh0=b0>>>13,b1=0|b[1],bl1=8191&b1,bh1=b1>>>13,b2=0|b[2],bl2=8191&b2,bh2=b2>>>13,b3=0|b[3],bl3=8191&b3,bh3=b3>>>13,b4=0|b[4],bl4=8191&b4,bh4=b4>>>13,b5=0|b[5],bl5=8191&b5,bh5=b5>>>13,b6=0|b[6],bl6=8191&b6,bh6=b6>>>13,b7=0|b[7],bl7=8191&b7,bh7=b7>>>13,b8=0|b[8],bl8=8191&b8,bh8=b8>>>13,b9=0|b[9],bl9=8191&b9,bh9=b9>>>13;out.negative=self.negative^num.negative,out.length=19;var w0=(c+(lo=Math.imul(al0,bl0))|0)+((8191&(mid=(mid=Math.imul(al0,bh0))+Math.imul(ah0,bl0)|0))<<13)|0;c=((hi=Math.imul(ah0,bh0))+(mid>>>13)|0)+(w0>>>26)|0,w0&=67108863,lo=Math.imul(al1,bl0),mid=(mid=Math.imul(al1,bh0))+Math.imul(ah1,bl0)|0,hi=Math.imul(ah1,bh0);var w1=(c+(lo=lo+Math.imul(al0,bl1)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh1)|0)+Math.imul(ah0,bl1)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh1)|0)+(mid>>>13)|0)+(w1>>>26)|0,w1&=67108863,lo=Math.imul(al2,bl0),mid=(mid=Math.imul(al2,bh0))+Math.imul(ah2,bl0)|0,hi=Math.imul(ah2,bh0),lo=lo+Math.imul(al1,bl1)|0,mid=(mid=mid+Math.imul(al1,bh1)|0)+Math.imul(ah1,bl1)|0,hi=hi+Math.imul(ah1,bh1)|0;var w2=(c+(lo=lo+Math.imul(al0,bl2)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh2)|0)+Math.imul(ah0,bl2)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh2)|0)+(mid>>>13)|0)+(w2>>>26)|0,w2&=67108863,lo=Math.imul(al3,bl0),mid=(mid=Math.imul(al3,bh0))+Math.imul(ah3,bl0)|0,hi=Math.imul(ah3,bh0),lo=lo+Math.imul(al2,bl1)|0,mid=(mid=mid+Math.imul(al2,bh1)|0)+Math.imul(ah2,bl1)|0,hi=hi+Math.imul(ah2,bh1)|0,lo=lo+Math.imul(al1,bl2)|0,mid=(mid=mid+Math.imul(al1,bh2)|0)+Math.imul(ah1,bl2)|0,hi=hi+Math.imul(ah1,bh2)|0;var w3=(c+(lo=lo+Math.imul(al0,bl3)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh3)|0)+Math.imul(ah0,bl3)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh3)|0)+(mid>>>13)|0)+(w3>>>26)|0,w3&=67108863,lo=Math.imul(al4,bl0),mid=(mid=Math.imul(al4,bh0))+Math.imul(ah4,bl0)|0,hi=Math.imul(ah4,bh0),lo=lo+Math.imul(al3,bl1)|0,mid=(mid=mid+Math.imul(al3,bh1)|0)+Math.imul(ah3,bl1)|0,hi=hi+Math.imul(ah3,bh1)|0,lo=lo+Math.imul(al2,bl2)|0,mid=(mid=mid+Math.imul(al2,bh2)|0)+Math.imul(ah2,bl2)|0,hi=hi+Math.imul(ah2,bh2)|0,lo=lo+Math.imul(al1,bl3)|0,mid=(mid=mid+Math.imul(al1,bh3)|0)+Math.imul(ah1,bl3)|0,hi=hi+Math.imul(ah1,bh3)|0;var w4=(c+(lo=lo+Math.imul(al0,bl4)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh4)|0)+Math.imul(ah0,bl4)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh4)|0)+(mid>>>13)|0)+(w4>>>26)|0,w4&=67108863,lo=Math.imul(al5,bl0),mid=(mid=Math.imul(al5,bh0))+Math.imul(ah5,bl0)|0,hi=Math.imul(ah5,bh0),lo=lo+Math.imul(al4,bl1)|0,mid=(mid=mid+Math.imul(al4,bh1)|0)+Math.imul(ah4,bl1)|0,hi=hi+Math.imul(ah4,bh1)|0,lo=lo+Math.imul(al3,bl2)|0,mid=(mid=mid+Math.imul(al3,bh2)|0)+Math.imul(ah3,bl2)|0,hi=hi+Math.imul(ah3,bh2)|0,lo=lo+Math.imul(al2,bl3)|0,mid=(mid=mid+Math.imul(al2,bh3)|0)+Math.imul(ah2,bl3)|0,hi=hi+Math.imul(ah2,bh3)|0,lo=lo+Math.imul(al1,bl4)|0,mid=(mid=mid+Math.imul(al1,bh4)|0)+Math.imul(ah1,bl4)|0,hi=hi+Math.imul(ah1,bh4)|0;var w5=(c+(lo=lo+Math.imul(al0,bl5)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh5)|0)+Math.imul(ah0,bl5)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh5)|0)+(mid>>>13)|0)+(w5>>>26)|0,w5&=67108863,lo=Math.imul(al6,bl0),mid=(mid=Math.imul(al6,bh0))+Math.imul(ah6,bl0)|0,hi=Math.imul(ah6,bh0),lo=lo+Math.imul(al5,bl1)|0,mid=(mid=mid+Math.imul(al5,bh1)|0)+Math.imul(ah5,bl1)|0,hi=hi+Math.imul(ah5,bh1)|0,lo=lo+Math.imul(al4,bl2)|0,mid=(mid=mid+Math.imul(al4,bh2)|0)+Math.imul(ah4,bl2)|0,hi=hi+Math.imul(ah4,bh2)|0,lo=lo+Math.imul(al3,bl3)|0,mid=(mid=mid+Math.imul(al3,bh3)|0)+Math.imul(ah3,bl3)|0,hi=hi+Math.imul(ah3,bh3)|0,lo=lo+Math.imul(al2,bl4)|0,mid=(mid=mid+Math.imul(al2,bh4)|0)+Math.imul(ah2,bl4)|0,hi=hi+Math.imul(ah2,bh4)|0,lo=lo+Math.imul(al1,bl5)|0,mid=(mid=mid+Math.imul(al1,bh5)|0)+Math.imul(ah1,bl5)|0,hi=hi+Math.imul(ah1,bh5)|0;var w6=(c+(lo=lo+Math.imul(al0,bl6)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh6)|0)+Math.imul(ah0,bl6)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh6)|0)+(mid>>>13)|0)+(w6>>>26)|0,w6&=67108863,lo=Math.imul(al7,bl0),mid=(mid=Math.imul(al7,bh0))+Math.imul(ah7,bl0)|0,hi=Math.imul(ah7,bh0),lo=lo+Math.imul(al6,bl1)|0,mid=(mid=mid+Math.imul(al6,bh1)|0)+Math.imul(ah6,bl1)|0,hi=hi+Math.imul(ah6,bh1)|0,lo=lo+Math.imul(al5,bl2)|0,mid=(mid=mid+Math.imul(al5,bh2)|0)+Math.imul(ah5,bl2)|0,hi=hi+Math.imul(ah5,bh2)|0,lo=lo+Math.imul(al4,bl3)|0,mid=(mid=mid+Math.imul(al4,bh3)|0)+Math.imul(ah4,bl3)|0,hi=hi+Math.imul(ah4,bh3)|0,lo=lo+Math.imul(al3,bl4)|0,mid=(mid=mid+Math.imul(al3,bh4)|0)+Math.imul(ah3,bl4)|0,hi=hi+Math.imul(ah3,bh4)|0,lo=lo+Math.imul(al2,bl5)|0,mid=(mid=mid+Math.imul(al2,bh5)|0)+Math.imul(ah2,bl5)|0,hi=hi+Math.imul(ah2,bh5)|0,lo=lo+Math.imul(al1,bl6)|0,mid=(mid=mid+Math.imul(al1,bh6)|0)+Math.imul(ah1,bl6)|0,hi=hi+Math.imul(ah1,bh6)|0;var w7=(c+(lo=lo+Math.imul(al0,bl7)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh7)|0)+Math.imul(ah0,bl7)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh7)|0)+(mid>>>13)|0)+(w7>>>26)|0,w7&=67108863,lo=Math.imul(al8,bl0),mid=(mid=Math.imul(al8,bh0))+Math.imul(ah8,bl0)|0,hi=Math.imul(ah8,bh0),lo=lo+Math.imul(al7,bl1)|0,mid=(mid=mid+Math.imul(al7,bh1)|0)+Math.imul(ah7,bl1)|0,hi=hi+Math.imul(ah7,bh1)|0,lo=lo+Math.imul(al6,bl2)|0,mid=(mid=mid+Math.imul(al6,bh2)|0)+Math.imul(ah6,bl2)|0,hi=hi+Math.imul(ah6,bh2)|0,lo=lo+Math.imul(al5,bl3)|0,mid=(mid=mid+Math.imul(al5,bh3)|0)+Math.imul(ah5,bl3)|0,hi=hi+Math.imul(ah5,bh3)|0,lo=lo+Math.imul(al4,bl4)|0,mid=(mid=mid+Math.imul(al4,bh4)|0)+Math.imul(ah4,bl4)|0,hi=hi+Math.imul(ah4,bh4)|0,lo=lo+Math.imul(al3,bl5)|0,mid=(mid=mid+Math.imul(al3,bh5)|0)+Math.imul(ah3,bl5)|0,hi=hi+Math.imul(ah3,bh5)|0,lo=lo+Math.imul(al2,bl6)|0,mid=(mid=mid+Math.imul(al2,bh6)|0)+Math.imul(ah2,bl6)|0,hi=hi+Math.imul(ah2,bh6)|0,lo=lo+Math.imul(al1,bl7)|0,mid=(mid=mid+Math.imul(al1,bh7)|0)+Math.imul(ah1,bl7)|0,hi=hi+Math.imul(ah1,bh7)|0;var w8=(c+(lo=lo+Math.imul(al0,bl8)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh8)|0)+Math.imul(ah0,bl8)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh8)|0)+(mid>>>13)|0)+(w8>>>26)|0,w8&=67108863,lo=Math.imul(al9,bl0),mid=(mid=Math.imul(al9,bh0))+Math.imul(ah9,bl0)|0,hi=Math.imul(ah9,bh0),lo=lo+Math.imul(al8,bl1)|0,mid=(mid=mid+Math.imul(al8,bh1)|0)+Math.imul(ah8,bl1)|0,hi=hi+Math.imul(ah8,bh1)|0,lo=lo+Math.imul(al7,bl2)|0,mid=(mid=mid+Math.imul(al7,bh2)|0)+Math.imul(ah7,bl2)|0,hi=hi+Math.imul(ah7,bh2)|0,lo=lo+Math.imul(al6,bl3)|0,mid=(mid=mid+Math.imul(al6,bh3)|0)+Math.imul(ah6,bl3)|0,hi=hi+Math.imul(ah6,bh3)|0,lo=lo+Math.imul(al5,bl4)|0,mid=(mid=mid+Math.imul(al5,bh4)|0)+Math.imul(ah5,bl4)|0,hi=hi+Math.imul(ah5,bh4)|0,lo=lo+Math.imul(al4,bl5)|0,mid=(mid=mid+Math.imul(al4,bh5)|0)+Math.imul(ah4,bl5)|0,hi=hi+Math.imul(ah4,bh5)|0,lo=lo+Math.imul(al3,bl6)|0,mid=(mid=mid+Math.imul(al3,bh6)|0)+Math.imul(ah3,bl6)|0,hi=hi+Math.imul(ah3,bh6)|0,lo=lo+Math.imul(al2,bl7)|0,mid=(mid=mid+Math.imul(al2,bh7)|0)+Math.imul(ah2,bl7)|0,hi=hi+Math.imul(ah2,bh7)|0,lo=lo+Math.imul(al1,bl8)|0,mid=(mid=mid+Math.imul(al1,bh8)|0)+Math.imul(ah1,bl8)|0,hi=hi+Math.imul(ah1,bh8)|0;var w9=(c+(lo=lo+Math.imul(al0,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al0,bh9)|0)+Math.imul(ah0,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah0,bh9)|0)+(mid>>>13)|0)+(w9>>>26)|0,w9&=67108863,lo=Math.imul(al9,bl1),mid=(mid=Math.imul(al9,bh1))+Math.imul(ah9,bl1)|0,hi=Math.imul(ah9,bh1),lo=lo+Math.imul(al8,bl2)|0,mid=(mid=mid+Math.imul(al8,bh2)|0)+Math.imul(ah8,bl2)|0,hi=hi+Math.imul(ah8,bh2)|0,lo=lo+Math.imul(al7,bl3)|0,mid=(mid=mid+Math.imul(al7,bh3)|0)+Math.imul(ah7,bl3)|0,hi=hi+Math.imul(ah7,bh3)|0,lo=lo+Math.imul(al6,bl4)|0,mid=(mid=mid+Math.imul(al6,bh4)|0)+Math.imul(ah6,bl4)|0,hi=hi+Math.imul(ah6,bh4)|0,lo=lo+Math.imul(al5,bl5)|0,mid=(mid=mid+Math.imul(al5,bh5)|0)+Math.imul(ah5,bl5)|0,hi=hi+Math.imul(ah5,bh5)|0,lo=lo+Math.imul(al4,bl6)|0,mid=(mid=mid+Math.imul(al4,bh6)|0)+Math.imul(ah4,bl6)|0,hi=hi+Math.imul(ah4,bh6)|0,lo=lo+Math.imul(al3,bl7)|0,mid=(mid=mid+Math.imul(al3,bh7)|0)+Math.imul(ah3,bl7)|0,hi=hi+Math.imul(ah3,bh7)|0,lo=lo+Math.imul(al2,bl8)|0,mid=(mid=mid+Math.imul(al2,bh8)|0)+Math.imul(ah2,bl8)|0,hi=hi+Math.imul(ah2,bh8)|0;var w10=(c+(lo=lo+Math.imul(al1,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al1,bh9)|0)+Math.imul(ah1,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah1,bh9)|0)+(mid>>>13)|0)+(w10>>>26)|0,w10&=67108863,lo=Math.imul(al9,bl2),mid=(mid=Math.imul(al9,bh2))+Math.imul(ah9,bl2)|0,hi=Math.imul(ah9,bh2),lo=lo+Math.imul(al8,bl3)|0,mid=(mid=mid+Math.imul(al8,bh3)|0)+Math.imul(ah8,bl3)|0,hi=hi+Math.imul(ah8,bh3)|0,lo=lo+Math.imul(al7,bl4)|0,mid=(mid=mid+Math.imul(al7,bh4)|0)+Math.imul(ah7,bl4)|0,hi=hi+Math.imul(ah7,bh4)|0,lo=lo+Math.imul(al6,bl5)|0,mid=(mid=mid+Math.imul(al6,bh5)|0)+Math.imul(ah6,bl5)|0,hi=hi+Math.imul(ah6,bh5)|0,lo=lo+Math.imul(al5,bl6)|0,mid=(mid=mid+Math.imul(al5,bh6)|0)+Math.imul(ah5,bl6)|0,hi=hi+Math.imul(ah5,bh6)|0,lo=lo+Math.imul(al4,bl7)|0,mid=(mid=mid+Math.imul(al4,bh7)|0)+Math.imul(ah4,bl7)|0,hi=hi+Math.imul(ah4,bh7)|0,lo=lo+Math.imul(al3,bl8)|0,mid=(mid=mid+Math.imul(al3,bh8)|0)+Math.imul(ah3,bl8)|0,hi=hi+Math.imul(ah3,bh8)|0;var w11=(c+(lo=lo+Math.imul(al2,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al2,bh9)|0)+Math.imul(ah2,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah2,bh9)|0)+(mid>>>13)|0)+(w11>>>26)|0,w11&=67108863,lo=Math.imul(al9,bl3),mid=(mid=Math.imul(al9,bh3))+Math.imul(ah9,bl3)|0,hi=Math.imul(ah9,bh3),lo=lo+Math.imul(al8,bl4)|0,mid=(mid=mid+Math.imul(al8,bh4)|0)+Math.imul(ah8,bl4)|0,hi=hi+Math.imul(ah8,bh4)|0,lo=lo+Math.imul(al7,bl5)|0,mid=(mid=mid+Math.imul(al7,bh5)|0)+Math.imul(ah7,bl5)|0,hi=hi+Math.imul(ah7,bh5)|0,lo=lo+Math.imul(al6,bl6)|0,mid=(mid=mid+Math.imul(al6,bh6)|0)+Math.imul(ah6,bl6)|0,hi=hi+Math.imul(ah6,bh6)|0,lo=lo+Math.imul(al5,bl7)|0,mid=(mid=mid+Math.imul(al5,bh7)|0)+Math.imul(ah5,bl7)|0,hi=hi+Math.imul(ah5,bh7)|0,lo=lo+Math.imul(al4,bl8)|0,mid=(mid=mid+Math.imul(al4,bh8)|0)+Math.imul(ah4,bl8)|0,hi=hi+Math.imul(ah4,bh8)|0;var w12=(c+(lo=lo+Math.imul(al3,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al3,bh9)|0)+Math.imul(ah3,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah3,bh9)|0)+(mid>>>13)|0)+(w12>>>26)|0,w12&=67108863,lo=Math.imul(al9,bl4),mid=(mid=Math.imul(al9,bh4))+Math.imul(ah9,bl4)|0,hi=Math.imul(ah9,bh4),lo=lo+Math.imul(al8,bl5)|0,mid=(mid=mid+Math.imul(al8,bh5)|0)+Math.imul(ah8,bl5)|0,hi=hi+Math.imul(ah8,bh5)|0,lo=lo+Math.imul(al7,bl6)|0,mid=(mid=mid+Math.imul(al7,bh6)|0)+Math.imul(ah7,bl6)|0,hi=hi+Math.imul(ah7,bh6)|0,lo=lo+Math.imul(al6,bl7)|0,mid=(mid=mid+Math.imul(al6,bh7)|0)+Math.imul(ah6,bl7)|0,hi=hi+Math.imul(ah6,bh7)|0,lo=lo+Math.imul(al5,bl8)|0,mid=(mid=mid+Math.imul(al5,bh8)|0)+Math.imul(ah5,bl8)|0,hi=hi+Math.imul(ah5,bh8)|0;var w13=(c+(lo=lo+Math.imul(al4,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al4,bh9)|0)+Math.imul(ah4,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah4,bh9)|0)+(mid>>>13)|0)+(w13>>>26)|0,w13&=67108863,lo=Math.imul(al9,bl5),mid=(mid=Math.imul(al9,bh5))+Math.imul(ah9,bl5)|0,hi=Math.imul(ah9,bh5),lo=lo+Math.imul(al8,bl6)|0,mid=(mid=mid+Math.imul(al8,bh6)|0)+Math.imul(ah8,bl6)|0,hi=hi+Math.imul(ah8,bh6)|0,lo=lo+Math.imul(al7,bl7)|0,mid=(mid=mid+Math.imul(al7,bh7)|0)+Math.imul(ah7,bl7)|0,hi=hi+Math.imul(ah7,bh7)|0,lo=lo+Math.imul(al6,bl8)|0,mid=(mid=mid+Math.imul(al6,bh8)|0)+Math.imul(ah6,bl8)|0,hi=hi+Math.imul(ah6,bh8)|0;var w14=(c+(lo=lo+Math.imul(al5,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al5,bh9)|0)+Math.imul(ah5,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah5,bh9)|0)+(mid>>>13)|0)+(w14>>>26)|0,w14&=67108863,lo=Math.imul(al9,bl6),mid=(mid=Math.imul(al9,bh6))+Math.imul(ah9,bl6)|0,hi=Math.imul(ah9,bh6),lo=lo+Math.imul(al8,bl7)|0,mid=(mid=mid+Math.imul(al8,bh7)|0)+Math.imul(ah8,bl7)|0,hi=hi+Math.imul(ah8,bh7)|0,lo=lo+Math.imul(al7,bl8)|0,mid=(mid=mid+Math.imul(al7,bh8)|0)+Math.imul(ah7,bl8)|0,hi=hi+Math.imul(ah7,bh8)|0;var w15=(c+(lo=lo+Math.imul(al6,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al6,bh9)|0)+Math.imul(ah6,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah6,bh9)|0)+(mid>>>13)|0)+(w15>>>26)|0,w15&=67108863,lo=Math.imul(al9,bl7),mid=(mid=Math.imul(al9,bh7))+Math.imul(ah9,bl7)|0,hi=Math.imul(ah9,bh7),lo=lo+Math.imul(al8,bl8)|0,mid=(mid=mid+Math.imul(al8,bh8)|0)+Math.imul(ah8,bl8)|0,hi=hi+Math.imul(ah8,bh8)|0;var w16=(c+(lo=lo+Math.imul(al7,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al7,bh9)|0)+Math.imul(ah7,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah7,bh9)|0)+(mid>>>13)|0)+(w16>>>26)|0,w16&=67108863,lo=Math.imul(al9,bl8),mid=(mid=Math.imul(al9,bh8))+Math.imul(ah9,bl8)|0,hi=Math.imul(ah9,bh8);var w17=(c+(lo=lo+Math.imul(al8,bl9)|0)|0)+((8191&(mid=(mid=mid+Math.imul(al8,bh9)|0)+Math.imul(ah8,bl9)|0))<<13)|0;c=((hi=hi+Math.imul(ah8,bh9)|0)+(mid>>>13)|0)+(w17>>>26)|0,w17&=67108863;var w18=(c+(lo=Math.imul(al9,bl9))|0)+((8191&(mid=(mid=Math.imul(al9,bh9))+Math.imul(ah9,bl9)|0))<<13)|0;return c=((hi=Math.imul(ah9,bh9))+(mid>>>13)|0)+(w18>>>26)|0,w18&=67108863,o[0]=w0,o[1]=w1,o[2]=w2,o[3]=w3,o[4]=w4,o[5]=w5,o[6]=w6,o[7]=w7,o[8]=w8,o[9]=w9,o[10]=w10,o[11]=w11,o[12]=w12,o[13]=w13,o[14]=w14,o[15]=w15,o[16]=w16,o[17]=w17,o[18]=w18,0!==c&&(o[19]=c,out.length++),out};function bigMulTo(self,num,out){out.negative=num.negative^self.negative,out.length=self.length+num.length;for(var carry=0,hncarry=0,k=0;k<out.length-1;k++){var ncarry=hncarry;hncarry=0;for(var rword=67108863&carry,maxJ=Math.min(k,num.length-1),j=Math.max(0,k-self.length+1);j<=maxJ;j++){var i=k-j,r=(0|self.words[i])*(0|num.words[j]),lo=67108863&r;rword=67108863&(lo=lo+rword|0),hncarry+=(ncarry=(ncarry=ncarry+(r/67108864|0)|0)+(lo>>>26)|0)>>>26,ncarry&=67108863}out.words[k]=rword,carry=ncarry,ncarry=hncarry}return 0!==carry?out.words[k]=carry:out.length--,out._strip()}function jumboMulTo(self,num,out){return bigMulTo(self,num,out)}function FFTM(x,y){this.x=x,this.y=y}Math.imul||(comb10MulTo=smallMulTo),BN.prototype.mulTo=function mulTo(num,out){var len=this.length+num.length;return 10===this.length&&10===num.length?comb10MulTo(this,num,out):len<63?smallMulTo(this,num,out):len<1024?bigMulTo(this,num,out):jumboMulTo(this,num,out)},FFTM.prototype.makeRBT=function makeRBT(N){for(var t=new Array(N),l=BN.prototype._countBits(N)-1,i=0;i<N;i++)t[i]=this.revBin(i,l,N);return t},FFTM.prototype.revBin=function revBin(x,l,N){if(0===x||x===N-1)return x;for(var rb=0,i=0;i<l;i++)rb|=(1&x)<<l-i-1,x>>=1;return rb},FFTM.prototype.permute=function permute(rbt,rws,iws,rtws,itws,N){for(var i=0;i<N;i++)rtws[i]=rws[rbt[i]],itws[i]=iws[rbt[i]]},FFTM.prototype.transform=function transform(rws,iws,rtws,itws,N,rbt){this.permute(rbt,rws,iws,rtws,itws,N);for(var s=1;s<N;s<<=1)for(var l=s<<1,rtwdf=Math.cos(2*Math.PI/l),itwdf=Math.sin(2*Math.PI/l),p=0;p<N;p+=l)for(var rtwdf_=rtwdf,itwdf_=itwdf,j=0;j<s;j++){var re=rtws[p+j],ie=itws[p+j],ro=rtws[p+j+s],io=itws[p+j+s],rx=rtwdf_*ro-itwdf_*io;io=rtwdf_*io+itwdf_*ro,ro=rx,rtws[p+j]=re+ro,itws[p+j]=ie+io,rtws[p+j+s]=re-ro,itws[p+j+s]=ie-io,j!==l&&(rx=rtwdf*rtwdf_-itwdf*itwdf_,itwdf_=rtwdf*itwdf_+itwdf*rtwdf_,rtwdf_=rx)}},FFTM.prototype.guessLen13b=function guessLen13b(n,m){var N=1|Math.max(m,n),odd=1&N,i=0;for(N=N/2|0;N;N>>>=1)i++;return 1<<i+1+odd},FFTM.prototype.conjugate=function conjugate(rws,iws,N){if(!(N<=1))for(var i=0;i<N/2;i++){var t=rws[i];rws[i]=rws[N-i-1],rws[N-i-1]=t,t=iws[i],iws[i]=-iws[N-i-1],iws[N-i-1]=-t}},FFTM.prototype.normalize13b=function normalize13b(ws,N){for(var carry=0,i=0;i<N/2;i++){var w=8192*Math.round(ws[2*i+1]/N)+Math.round(ws[2*i]/N)+carry;ws[i]=67108863&w,carry=w<67108864?0:w/67108864|0}return ws},FFTM.prototype.convert13b=function convert13b(ws,len,rws,N){for(var carry=0,i=0;i<len;i++)carry+=0|ws[i],rws[2*i]=8191&carry,carry>>>=13,rws[2*i+1]=8191&carry,carry>>>=13;for(i=2*len;i<N;++i)rws[i]=0;assert(0===carry),assert(0==(-8192&carry))},FFTM.prototype.stub=function stub(N){for(var ph=new Array(N),i=0;i<N;i++)ph[i]=0;return ph},FFTM.prototype.mulp=function mulp(x,y,out){var N=2*this.guessLen13b(x.length,y.length),rbt=this.makeRBT(N),_=this.stub(N),rws=new Array(N),rwst=new Array(N),iwst=new Array(N),nrws=new Array(N),nrwst=new Array(N),niwst=new Array(N),rmws=out.words;rmws.length=N,this.convert13b(x.words,x.length,rws,N),this.convert13b(y.words,y.length,nrws,N),this.transform(rws,_,rwst,iwst,N,rbt),this.transform(nrws,_,nrwst,niwst,N,rbt);for(var i=0;i<N;i++){var rx=rwst[i]*nrwst[i]-iwst[i]*niwst[i];iwst[i]=rwst[i]*niwst[i]+iwst[i]*nrwst[i],rwst[i]=rx}return this.conjugate(rwst,iwst,N),this.transform(rwst,iwst,rmws,_,N,rbt),this.conjugate(rmws,_,N),this.normalize13b(rmws,N),out.negative=x.negative^y.negative,out.length=x.length+y.length,out._strip()},BN.prototype.mul=function mul(num){var out=new BN(null);return out.words=new Array(this.length+num.length),this.mulTo(num,out)},BN.prototype.mulf=function mulf(num){var out=new BN(null);return out.words=new Array(this.length+num.length),jumboMulTo(this,num,out)},BN.prototype.imul=function imul(num){return this.clone().mulTo(num,this)},BN.prototype.imuln=function imuln(num){var isNegNum=num<0;isNegNum&&(num=-num),assert("number"==typeof num),assert(num<67108864);for(var carry=0,i=0;i<this.length;i++){var w=(0|this.words[i])*num,lo=(67108863&w)+(67108863&carry);carry>>=26,carry+=w/67108864|0,carry+=lo>>>26,this.words[i]=67108863&lo}return 0!==carry&&(this.words[i]=carry,this.length++),isNegNum?this.ineg():this},BN.prototype.muln=function muln(num){return this.clone().imuln(num)},BN.prototype.sqr=function sqr(){return this.mul(this)},BN.prototype.isqr=function isqr(){return this.imul(this.clone())},BN.prototype.pow=function pow(num){var w=function toBitArray(num){for(var w=new Array(num.bitLength()),bit=0;bit<w.length;bit++){var off=bit/26|0,wbit=bit%26;w[bit]=num.words[off]>>>wbit&1}return w}(num);if(0===w.length)return new BN(1);for(var res=this,i=0;i<w.length&&0===w[i];i++,res=res.sqr());if(++i<w.length)for(var q=res.sqr();i<w.length;i++,q=q.sqr())0!==w[i]&&(res=res.mul(q));return res},BN.prototype.iushln=function iushln(bits){assert("number"==typeof bits&&bits>=0);var i,r=bits%26,s=(bits-r)/26,carryMask=67108863>>>26-r<<26-r;if(0!==r){var carry=0;for(i=0;i<this.length;i++){var newCarry=this.words[i]&carryMask,c=(0|this.words[i])-newCarry<<r;this.words[i]=c|carry,carry=newCarry>>>26-r}carry&&(this.words[i]=carry,this.length++)}if(0!==s){for(i=this.length-1;i>=0;i--)this.words[i+s]=this.words[i];for(i=0;i<s;i++)this.words[i]=0;this.length+=s}return this._strip()},BN.prototype.ishln=function ishln(bits){return assert(0===this.negative),this.iushln(bits)},BN.prototype.iushrn=function iushrn(bits,hint,extended){var h;assert("number"==typeof bits&&bits>=0),h=hint?(hint-hint%26)/26:0;var r=bits%26,s=Math.min((bits-r)/26,this.length),mask=67108863^67108863>>>r<<r,maskedWords=extended;if(h-=s,h=Math.max(0,h),maskedWords){for(var i=0;i<s;i++)maskedWords.words[i]=this.words[i];maskedWords.length=s}if(0===s);else if(this.length>s)for(this.length-=s,i=0;i<this.length;i++)this.words[i]=this.words[i+s];else this.words[0]=0,this.length=1;var carry=0;for(i=this.length-1;i>=0&&(0!==carry||i>=h);i--){var word=0|this.words[i];this.words[i]=carry<<26-r|word>>>r,carry=word&mask}return maskedWords&&0!==carry&&(maskedWords.words[maskedWords.length++]=carry),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},BN.prototype.ishrn=function ishrn(bits,hint,extended){return assert(0===this.negative),this.iushrn(bits,hint,extended)},BN.prototype.shln=function shln(bits){return this.clone().ishln(bits)},BN.prototype.ushln=function ushln(bits){return this.clone().iushln(bits)},BN.prototype.shrn=function shrn(bits){return this.clone().ishrn(bits)},BN.prototype.ushrn=function ushrn(bits){return this.clone().iushrn(bits)},BN.prototype.testn=function testn(bit){assert("number"==typeof bit&&bit>=0);var r=bit%26,s=(bit-r)/26,q=1<<r;return!(this.length<=s)&&!!(this.words[s]&q)},BN.prototype.imaskn=function imaskn(bits){assert("number"==typeof bits&&bits>=0);var r=bits%26,s=(bits-r)/26;if(assert(0===this.negative,"imaskn works only with positive numbers"),this.length<=s)return this;if(0!==r&&s++,this.length=Math.min(s,this.length),0!==r){var mask=67108863^67108863>>>r<<r;this.words[this.length-1]&=mask}return this._strip()},BN.prototype.maskn=function maskn(bits){return this.clone().imaskn(bits)},BN.prototype.iaddn=function iaddn(num){return assert("number"==typeof num),assert(num<67108864),num<0?this.isubn(-num):0!==this.negative?1===this.length&&(0|this.words[0])<=num?(this.words[0]=num-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(num),this.negative=1,this):this._iaddn(num)},BN.prototype._iaddn=function _iaddn(num){this.words[0]+=num;for(var i=0;i<this.length&&this.words[i]>=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},BN.prototype.isubn=function isubn(num){if(assert("number"==typeof num),assert(num<67108864),num<0)return this.iaddn(-num);if(0!==this.negative)return this.negative=0,this.iaddn(num),this.negative=1,this;if(this.words[0]-=num,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i<this.length&&this.words[i]<0;i++)this.words[i]+=67108864,this.words[i+1]-=1;return this._strip()},BN.prototype.addn=function addn(num){return this.clone().iaddn(num)},BN.prototype.subn=function subn(num){return this.clone().isubn(num)},BN.prototype.iabs=function iabs(){return this.negative=0,this},BN.prototype.abs=function abs(){return this.clone().iabs()},BN.prototype._ishlnsubmul=function _ishlnsubmul(num,mul,shift){var i,w,len=num.length+shift;this._expand(len);var carry=0;for(i=0;i<num.length;i++){w=(0|this.words[i+shift])+carry;var right=(0|num.words[i])*mul;carry=((w-=67108863&right)>>26)-(right/67108864|0),this.words[i+shift]=67108863&w}for(;i<this.length-shift;i++)carry=(w=(0|this.words[i+shift])+carry)>>26,this.words[i+shift]=67108863&w;if(0===carry)return this._strip();for(assert(-1===carry),carry=0,i=0;i<this.length;i++)carry=(w=-(0|this.words[i])+carry)>>26,this.words[i]=67108863&w;return this.negative=1,this._strip()},BN.prototype._wordDiv=function _wordDiv(num,mode){var shift=(this.length,num.length),a=this.clone(),b=num,bhi=0|b.words[b.length-1];0!==(shift=26-this._countBits(bhi))&&(b=b.ushln(shift),a.iushln(shift),bhi=0|b.words[b.length-1]);var q,m=a.length-b.length;if("mod"!==mode){(q=new BN(null)).length=m+1,q.words=new Array(q.length);for(var i=0;i<q.length;i++)q.words[i]=0}var diff=a.clone()._ishlnsubmul(b,1,m);0===diff.negative&&(a=diff,q&&(q.words[m]=1));for(var j=m-1;j>=0;j--){var qj=67108864*(0|a.words[b.length+j])+(0|a.words[b.length+j-1]);for(qj=Math.min(qj/bhi|0,67108863),a._ishlnsubmul(b,qj,j);0!==a.negative;)qj--,a.negative=0,a._ishlnsubmul(b,1,j),a.isZero()||(a.negative^=1);q&&(q.words[j]=qj)}return q&&q._strip(),a._strip(),"div"!==mode&&0!==shift&&a.iushrn(shift),{div:q||null,mod:a}},BN.prototype.divmod=function divmod(num,mode,positive){return assert(!num.isZero()),this.isZero()?{div:new BN(0),mod:new BN(0)}:0!==this.negative&&0===num.negative?(res=this.neg().divmod(num,mode),"mod"!==mode&&(div=res.div.neg()),"div"!==mode&&(mod=res.mod.neg(),positive&&0!==mod.negative&&mod.iadd(num)),{div:div,mod:mod}):0===this.negative&&0!==num.negative?(res=this.divmod(num.neg(),mode),"mod"!==mode&&(div=res.div.neg()),{div:div,mod:res.mod}):0!=(this.negative&num.negative)?(res=this.neg().divmod(num.neg(),mode),"div"!==mode&&(mod=res.mod.neg(),positive&&0!==mod.negative&&mod.isub(num)),{div:res.div,mod:mod}):num.length>this.length||this.cmp(num)<0?{div:new BN(0),mod:this}:1===num.length?"div"===mode?{div:this.divn(num.words[0]),mod:null}:"mod"===mode?{div:null,mod:new BN(this.modrn(num.words[0]))}:{div:this.divn(num.words[0]),mod:new BN(this.modrn(num.words[0]))}:this._wordDiv(num,mode);var div,mod,res},BN.prototype.div=function div(num){return this.divmod(num,"div",!1).div},BN.prototype.mod=function mod(num){return this.divmod(num,"mod",!1).mod},BN.prototype.umod=function umod(num){return this.divmod(num,"mod",!0).mod},BN.prototype.divRound=function divRound(num){var dm=this.divmod(num);if(dm.mod.isZero())return dm.div;var mod=0!==dm.div.negative?dm.mod.isub(num):dm.mod,half=num.ushrn(1),r2=num.andln(1),cmp=mod.cmp(half);return cmp<0||1===r2&&0===cmp?dm.div:0!==dm.div.negative?dm.div.isubn(1):dm.div.iaddn(1)},BN.prototype.modrn=function modrn(num){var isNegNum=num<0;isNegNum&&(num=-num),assert(num<=67108863);for(var p=(1<<26)%num,acc=0,i=this.length-1;i>=0;i--)acc=(p*acc+(0|this.words[i]))%num;return isNegNum?-acc:acc},BN.prototype.modn=function modn(num){return this.modrn(num)},BN.prototype.idivn=function idivn(num){var isNegNum=num<0;isNegNum&&(num=-num),assert(num<=67108863);for(var carry=0,i=this.length-1;i>=0;i--){var w=(0|this.words[i])+67108864*carry;this.words[i]=w/num|0,carry=w%num}return this._strip(),isNegNum?this.ineg():this},BN.prototype.divn=function divn(num){return this.clone().idivn(num)},BN.prototype.egcd=function egcd(p){assert(0===p.negative),assert(!p.isZero());var x=this,y=p.clone();x=0!==x.negative?x.umod(p):x.clone();for(var A=new BN(1),B=new BN(0),C=new BN(0),D=new BN(1),g=0;x.isEven()&&y.isEven();)x.iushrn(1),y.iushrn(1),++g;for(var yp=y.clone(),xp=x.clone();!x.isZero();){for(var i=0,im=1;0==(x.words[0]&im)&&i<26;++i,im<<=1);if(i>0)for(x.iushrn(i);i-- >0;)(A.isOdd()||B.isOdd())&&(A.iadd(yp),B.isub(xp)),A.iushrn(1),B.iushrn(1);for(var j=0,jm=1;0==(y.words[0]&jm)&&j<26;++j,jm<<=1);if(j>0)for(y.iushrn(j);j-- >0;)(C.isOdd()||D.isOdd())&&(C.iadd(yp),D.isub(xp)),C.iushrn(1),D.iushrn(1);x.cmp(y)>=0?(x.isub(y),A.isub(C),B.isub(D)):(y.isub(x),C.isub(A),D.isub(B))}return{a:C,b:D,gcd:y.iushln(g)}},BN.prototype._invmp=function _invmp(p){assert(0===p.negative),assert(!p.isZero());var a=this,b=p.clone();a=0!==a.negative?a.umod(p):a.clone();for(var res,x1=new BN(1),x2=new BN(0),delta=b.clone();a.cmpn(1)>0&&b.cmpn(1)>0;){for(var i=0,im=1;0==(a.words[0]&im)&&i<26;++i,im<<=1);if(i>0)for(a.iushrn(i);i-- >0;)x1.isOdd()&&x1.iadd(delta),x1.iushrn(1);for(var j=0,jm=1;0==(b.words[0]&jm)&&j<26;++j,jm<<=1);if(j>0)for(b.iushrn(j);j-- >0;)x2.isOdd()&&x2.iadd(delta),x2.iushrn(1);a.cmp(b)>=0?(a.isub(b),x1.isub(x2)):(b.isub(a),x2.isub(x1))}return(res=0===a.cmpn(1)?x1:x2).cmpn(0)<0&&res.iadd(p),res},BN.prototype.gcd=function gcd(num){if(this.isZero())return num.abs();if(num.isZero())return this.abs();var a=this.clone(),b=num.clone();a.negative=0,b.negative=0;for(var shift=0;a.isEven()&&b.isEven();shift++)a.iushrn(1),b.iushrn(1);for(;;){for(;a.isEven();)a.iushrn(1);for(;b.isEven();)b.iushrn(1);var r=a.cmp(b);if(r<0){var t=a;a=b,b=t}else if(0===r||0===b.cmpn(1))break;a.isub(b)}return b.iushln(shift)},BN.prototype.invm=function invm(num){return this.egcd(num).a.umod(num)},BN.prototype.isEven=function isEven(){return 0==(1&this.words[0])},BN.prototype.isOdd=function isOdd(){return 1==(1&this.words[0])},BN.prototype.andln=function andln(num){return this.words[0]&num},BN.prototype.bincn=function bincn(bit){assert("number"==typeof bit);var r=bit%26,s=(bit-r)/26,q=1<<r;if(this.length<=s)return this._expand(s+1),this.words[s]|=q,this;for(var carry=q,i=s;0!==carry&&i<this.length;i++){var w=0|this.words[i];carry=(w+=carry)>>>26,w&=67108863,this.words[i]=w}return 0!==carry&&(this.words[i]=carry,this.length++),this},BN.prototype.isZero=function isZero(){return 1===this.length&&0===this.words[0]},BN.prototype.cmpn=function cmpn(num){var res,negative=num<0;if(0!==this.negative&&!negative)return-1;if(0===this.negative&&negative)return 1;if(this._strip(),this.length>1)res=1;else{negative&&(num=-num),assert(num<=67108863,"Number is too big");var w=0|this.words[0];res=w===num?0:w<num?-1:1}return 0!==this.negative?0|-res:res},BN.prototype.cmp=function cmp(num){if(0!==this.negative&&0===num.negative)return-1;if(0===this.negative&&0!==num.negative)return 1;var res=this.ucmp(num);return 0!==this.negative?0|-res:res},BN.prototype.ucmp=function ucmp(num){if(this.length>num.length)return 1;if(this.length<num.length)return-1;for(var res=0,i=this.length-1;i>=0;i--){var a=0|this.words[i],b=0|num.words[i];if(a!==b){a<b?res=-1:a>b&&(res=1);break}}return res},BN.prototype.gtn=function gtn(num){return 1===this.cmpn(num)},BN.prototype.gt=function gt(num){return 1===this.cmp(num)},BN.prototype.gten=function gten(num){return this.cmpn(num)>=0},BN.prototype.gte=function gte(num){return this.cmp(num)>=0},BN.prototype.ltn=function ltn(num){return-1===this.cmpn(num)},BN.prototype.lt=function lt(num){return-1===this.cmp(num)},BN.prototype.lten=function lten(num){return this.cmpn(num)<=0},BN.prototype.lte=function lte(num){return this.cmp(num)<=0},BN.prototype.eqn=function eqn(num){return 0===this.cmpn(num)},BN.prototype.eq=function eq(num){return 0===this.cmp(num)},BN.red=function red(num){return new Red(num)},BN.prototype.toRed=function toRed(ctx){return assert(!this.red,"Already a number in reduction context"),assert(0===this.negative,"red works only with positives"),ctx.convertTo(this)._forceRed(ctx)},BN.prototype.fromRed=function fromRed(){return assert(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},BN.prototype._forceRed=function _forceRed(ctx){return this.red=ctx,this},BN.prototype.forceRed=function forceRed(ctx){return assert(!this.red,"Already a number in reduction context"),this._forceRed(ctx)},BN.prototype.redAdd=function redAdd(num){return assert(this.red,"redAdd works only with red numbers"),this.red.add(this,num)},BN.prototype.redIAdd=function redIAdd(num){return assert(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,num)},BN.prototype.redSub=function redSub(num){return assert(this.red,"redSub works only with red numbers"),this.red.sub(this,num)},BN.prototype.redISub=function redISub(num){return assert(this.red,"redISub works only with red numbers"),this.red.isub(this,num)},BN.prototype.redShl=function redShl(num){return assert(this.red,"redShl works only with red numbers"),this.red.shl(this,num)},BN.prototype.redMul=function redMul(num){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,num),this.red.mul(this,num)},BN.prototype.redIMul=function redIMul(num){return assert(this.red,"redMul works only with red numbers"),this.red._verify2(this,num),this.red.imul(this,num)},BN.prototype.redSqr=function redSqr(){return assert(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},BN.prototype.redISqr=function redISqr(){return assert(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},BN.prototype.redSqrt=function redSqrt(){return assert(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},BN.prototype.redInvm=function redInvm(){return assert(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},BN.prototype.redNeg=function redNeg(){return assert(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},BN.prototype.redPow=function redPow(num){return assert(this.red&&!num.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,num)};var primes={k256:null,p224:null,p192:null,p25519:null};function MPrime(name,p){this.name=name,this.p=new BN(p,16),this.n=this.p.bitLength(),this.k=new BN(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function K256(){MPrime.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function P224(){MPrime.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P192(){MPrime.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P25519(){MPrime.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Red(m){if("string"==typeof m){var prime=BN._prime(m);this.m=prime.p,this.prime=prime}else assert(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}function Mont(m){Red.call(this,m),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new BN(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}MPrime.prototype._tmp=function _tmp(){var tmp=new BN(null);return tmp.words=new Array(Math.ceil(this.n/13)),tmp},MPrime.prototype.ireduce=function ireduce(num){var rlen,r=num;do{this.split(r,this.tmp),rlen=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(rlen>this.n);var cmp=rlen<this.n?-1:r.ucmp(this.p);return 0===cmp?(r.words[0]=0,r.length=1):cmp>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},MPrime.prototype.split=function split(input,out){input.iushrn(this.n,0,out)},MPrime.prototype.imulK=function imulK(num){return num.imul(this.k)},inherits(K256,MPrime),K256.prototype.split=function split(input,output){for(var outLen=Math.min(input.length,9),i=0;i<outLen;i++)output.words[i]=input.words[i];if(output.length=outLen,input.length<=9)return input.words[0]=0,void(input.length=1);var prev=input.words[9];for(output.words[output.length++]=4194303&prev,i=10;i<input.length;i++){var next=0|input.words[i];input.words[i-10]=(4194303&next)<<4|prev>>>22,prev=next}prev>>>=22,input.words[i-10]=prev,0===prev&&input.length>10?input.length-=10:input.length-=9},K256.prototype.imulK=function imulK(num){num.words[num.length]=0,num.words[num.length+1]=0,num.length+=2;for(var lo=0,i=0;i<num.length;i++){var w=0|num.words[i];lo+=977*w,num.words[i]=67108863&lo,lo=64*w+(lo/67108864|0)}return 0===num.words[num.length-1]&&(num.length--,0===num.words[num.length-1]&&num.length--),num},inherits(P224,MPrime),inherits(P192,MPrime),inherits(P25519,MPrime),P25519.prototype.imulK=function imulK(num){for(var carry=0,i=0;i<num.length;i++){var hi=19*(0|num.words[i])+carry,lo=67108863&hi;hi>>>=26,num.words[i]=lo,carry=hi}return 0!==carry&&(num.words[num.length++]=carry),num},BN._prime=function prime(name){if(primes[name])return primes[name];var prime;if("k256"===name)prime=new K256;else if("p224"===name)prime=new P224;else if("p192"===name)prime=new P192;else{if("p25519"!==name)throw new Error("Unknown prime "+name);prime=new P25519}return primes[name]=prime,prime},Red.prototype._verify1=function _verify1(a){assert(0===a.negative,"red works only with positives"),assert(a.red,"red works only with red numbers")},Red.prototype._verify2=function _verify2(a,b){assert(0==(a.negative|b.negative),"red works only with positives"),assert(a.red&&a.red===b.red,"red works only with red numbers")},Red.prototype.imod=function imod(a){return this.prime?this.prime.ireduce(a)._forceRed(this):(move(a,a.umod(this.m)._forceRed(this)),a)},Red.prototype.neg=function neg(a){return a.isZero()?a.clone():this.m.sub(a)._forceRed(this)},Red.prototype.add=function add(a,b){this._verify2(a,b);var res=a.add(b);return res.cmp(this.m)>=0&&res.isub(this.m),res._forceRed(this)},Red.prototype.iadd=function iadd(a,b){this._verify2(a,b);var res=a.iadd(b);return res.cmp(this.m)>=0&&res.isub(this.m),res},Red.prototype.sub=function sub(a,b){this._verify2(a,b);var res=a.sub(b);return res.cmpn(0)<0&&res.iadd(this.m),res._forceRed(this)},Red.prototype.isub=function isub(a,b){this._verify2(a,b);var res=a.isub(b);return res.cmpn(0)<0&&res.iadd(this.m),res},Red.prototype.shl=function shl(a,num){return this._verify1(a),this.imod(a.ushln(num))},Red.prototype.imul=function imul(a,b){return this._verify2(a,b),this.imod(a.imul(b))},Red.prototype.mul=function mul(a,b){return this._verify2(a,b),this.imod(a.mul(b))},Red.prototype.isqr=function isqr(a){return this.imul(a,a.clone())},Red.prototype.sqr=function sqr(a){return this.mul(a,a)},Red.prototype.sqrt=function sqrt(a){if(a.isZero())return a.clone();var mod3=this.m.andln(3);if(assert(mod3%2==1),3===mod3){var pow=this.m.add(new BN(1)).iushrn(2);return this.pow(a,pow)}for(var q=this.m.subn(1),s=0;!q.isZero()&&0===q.andln(1);)s++,q.iushrn(1);assert(!q.isZero());var one=new BN(1).toRed(this),nOne=one.redNeg(),lpow=this.m.subn(1).iushrn(1),z=this.m.bitLength();for(z=new BN(2*z*z).toRed(this);0!==this.pow(z,lpow).cmp(nOne);)z.redIAdd(nOne);for(var c=this.pow(z,q),r=this.pow(a,q.addn(1).iushrn(1)),t=this.pow(a,q),m=s;0!==t.cmp(one);){for(var tmp=t,i=0;0!==tmp.cmp(one);i++)tmp=tmp.redSqr();assert(i<m);var b=this.pow(c,new BN(1).iushln(m-i-1));r=r.redMul(b),c=b.redSqr(),t=t.redMul(c),m=i}return r},Red.prototype.invm=function invm(a){var inv=a._invmp(this.m);return 0!==inv.negative?(inv.negative=0,this.imod(inv).redNeg()):this.imod(inv)},Red.prototype.pow=function pow(a,num){if(num.isZero())return new BN(1).toRed(this);if(0===num.cmpn(1))return a.clone();var wnd=new Array(16);wnd[0]=new BN(1).toRed(this),wnd[1]=a;for(var i=2;i<wnd.length;i++)wnd[i]=this.mul(wnd[i-1],a);var res=wnd[0],current=0,currentLen=0,start=num.bitLength()%26;for(0===start&&(start=26),i=num.length-1;i>=0;i--){for(var word=num.words[i],j=start-1;j>=0;j--){var bit=word>>j&1;res!==wnd[0]&&(res=this.sqr(res)),0!==bit||0!==current?(current<<=1,current|=bit,(4===++currentLen||0===i&&0===j)&&(res=this.mul(res,wnd[current]),currentLen=0,current=0)):currentLen=0}start=26}return res},Red.prototype.convertTo=function convertTo(num){var r=num.umod(this.m);return r===num?r.clone():r},Red.prototype.convertFrom=function convertFrom(num){var res=num.clone();return res.red=null,res},BN.mont=function mont(num){return new Mont(num)},inherits(Mont,Red),Mont.prototype.convertTo=function convertTo(num){return this.imod(num.ushln(this.shift))},Mont.prototype.convertFrom=function convertFrom(num){var r=this.imod(num.mul(this.rinv));return r.red=null,r},Mont.prototype.imul=function imul(a,b){if(a.isZero()||b.isZero())return a.words[0]=0,a.length=1,a;var t=a.imul(b),c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(c).iushrn(this.shift),res=u;return u.cmp(this.m)>=0?res=u.isub(this.m):u.cmpn(0)<0&&(res=u.iadd(this.m)),res._forceRed(this)},Mont.prototype.mul=function mul(a,b){if(a.isZero()||b.isZero())return new BN(0)._forceRed(this);var t=a.mul(b),c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=t.isub(c).iushrn(this.shift),res=u;return u.cmp(this.m)>=0?res=u.isub(this.m):u.cmpn(0)<0&&(res=u.iadd(this.m)),res._forceRed(this)},Mont.prototype.invm=function invm(a){return this.imod(a._invmp(this.m).mul(this.r2))._forceRed(this)}}(module=__webpack_require__.nmd(module),this)},"./node_modules/walletlink/node_modules/eth-rpc-errors/dist/classes.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EthereumProviderError=exports.EthereumRpcError=void 0;const fast_safe_stringify_1=__webpack_require__("./node_modules/fast-safe-stringify/index.js");class EthereumRpcError extends Error{constructor(code,message,data){if(!Number.isInteger(code))throw new Error('"code" must be an integer.');if(!message||"string"!=typeof message)throw new Error('"message" must be a nonempty string.');super(message),this.code=code,void 0!==data&&(this.data=data)}serialize(){const serialized={code:this.code,message:this.message};return void 0!==this.data&&(serialized.data=this.data),this.stack&&(serialized.stack=this.stack),serialized}toString(){return fast_safe_stringify_1.default(this.serialize(),stringifyReplacer,2)}}exports.EthereumRpcError=EthereumRpcError;function stringifyReplacer(_,value){if("[Circular]"!==value)return value}exports.EthereumProviderError=class EthereumProviderError extends EthereumRpcError{constructor(code,message,data){if(!function isValidEthProviderCode(code){return Number.isInteger(code)&&code>=1e3&&code<=4999}(code))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(code,message,data)}}},"./node_modules/walletlink/node_modules/eth-rpc-errors/dist/error-constants.js":function(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.errorValues=exports.errorCodes=void 0,exports.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},exports.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},"./node_modules/walletlink/node_modules/eth-rpc-errors/dist/errors.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ethErrors=void 0;const classes_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/classes.js"),utils_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/utils.js"),error_constants_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/error-constants.js");function getEthJsonRpcError(code,arg){const[message,data]=parseOpts(arg);return new classes_1.EthereumRpcError(code,message||utils_1.getMessageFromCode(code),data)}function getEthProviderError(code,arg){const[message,data]=parseOpts(arg);return new classes_1.EthereumProviderError(code,message||utils_1.getMessageFromCode(code),data)}function parseOpts(arg){if(arg){if("string"==typeof arg)return[arg];if("object"==typeof arg&&!Array.isArray(arg)){const{message:message,data:data}=arg;if(message&&"string"!=typeof message)throw new Error("Must specify string message.");return[message||void 0,data]}}return[]}exports.ethErrors={rpc:{parse:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.parse,arg),invalidRequest:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.invalidRequest,arg),invalidParams:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.invalidParams,arg),methodNotFound:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.methodNotFound,arg),internal:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.internal,arg),server:opts=>{if(!opts||"object"!=typeof opts||Array.isArray(opts))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:code}=opts;if(!Number.isInteger(code)||code>-32005||code<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return getEthJsonRpcError(code,opts)},invalidInput:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.invalidInput,arg),resourceNotFound:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.resourceNotFound,arg),resourceUnavailable:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.resourceUnavailable,arg),transactionRejected:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.transactionRejected,arg),methodNotSupported:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.methodNotSupported,arg),limitExceeded:arg=>getEthJsonRpcError(error_constants_1.errorCodes.rpc.limitExceeded,arg)},provider:{userRejectedRequest:arg=>getEthProviderError(error_constants_1.errorCodes.provider.userRejectedRequest,arg),unauthorized:arg=>getEthProviderError(error_constants_1.errorCodes.provider.unauthorized,arg),unsupportedMethod:arg=>getEthProviderError(error_constants_1.errorCodes.provider.unsupportedMethod,arg),disconnected:arg=>getEthProviderError(error_constants_1.errorCodes.provider.disconnected,arg),chainDisconnected:arg=>getEthProviderError(error_constants_1.errorCodes.provider.chainDisconnected,arg),custom:opts=>{if(!opts||"object"!=typeof opts||Array.isArray(opts))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:code,message:message,data:data}=opts;if(!message||"string"!=typeof message)throw new Error('"message" must be a nonempty string');return new classes_1.EthereumProviderError(code,message,data)}}}},"./node_modules/walletlink/node_modules/eth-rpc-errors/dist/index.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getMessageFromCode=exports.serializeError=exports.EthereumProviderError=exports.EthereumRpcError=exports.ethErrors=exports.errorCodes=void 0;const classes_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/classes.js");Object.defineProperty(exports,"EthereumRpcError",{enumerable:!0,get:function(){return classes_1.EthereumRpcError}}),Object.defineProperty(exports,"EthereumProviderError",{enumerable:!0,get:function(){return classes_1.EthereumProviderError}});const utils_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/utils.js");Object.defineProperty(exports,"serializeError",{enumerable:!0,get:function(){return utils_1.serializeError}}),Object.defineProperty(exports,"getMessageFromCode",{enumerable:!0,get:function(){return utils_1.getMessageFromCode}});const errors_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/errors.js");Object.defineProperty(exports,"ethErrors",{enumerable:!0,get:function(){return errors_1.ethErrors}});const error_constants_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/error-constants.js");Object.defineProperty(exports,"errorCodes",{enumerable:!0,get:function(){return error_constants_1.errorCodes}})},"./node_modules/walletlink/node_modules/eth-rpc-errors/dist/utils.js":function(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.serializeError=exports.isValidCode=exports.getMessageFromCode=exports.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const error_constants_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/error-constants.js"),classes_1=__webpack_require__("./node_modules/walletlink/node_modules/eth-rpc-errors/dist/classes.js"),FALLBACK_ERROR_CODE=error_constants_1.errorCodes.rpc.internal,FALLBACK_ERROR={code:FALLBACK_ERROR_CODE,message:getMessageFromCode(FALLBACK_ERROR_CODE)};function getMessageFromCode(code,fallbackMessage="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(code)){const codeString=code.toString();if(hasKey(error_constants_1.errorValues,codeString))return error_constants_1.errorValues[codeString].message;if(isJsonRpcServerError(code))return exports.JSON_RPC_SERVER_ERROR_MESSAGE}return fallbackMessage}function isValidCode(code){if(!Number.isInteger(code))return!1;const codeString=code.toString();return!!error_constants_1.errorValues[codeString]||!!isJsonRpcServerError(code)}function isJsonRpcServerError(code){return code>=-32099&&code<=-32e3}function assignOriginalError(error){return error&&"object"==typeof error&&!Array.isArray(error)?Object.assign({},error):error}function hasKey(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}exports.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",exports.getMessageFromCode=getMessageFromCode,exports.isValidCode=isValidCode,exports.serializeError=function serializeError(error,{fallbackError:fallbackError=FALLBACK_ERROR,shouldIncludeStack:shouldIncludeStack=!1}={}){var _a,_b;if(!fallbackError||!Number.isInteger(fallbackError.code)||"string"!=typeof fallbackError.message)throw new Error("Must provide fallback error with integer number code and string message.");if(error instanceof classes_1.EthereumRpcError)return error.serialize();const serialized={};if(error&&"object"==typeof error&&!Array.isArray(error)&&hasKey(error,"code")&&isValidCode(error.code)){const _error=error;serialized.code=_error.code,_error.message&&"string"==typeof _error.message?(serialized.message=_error.message,hasKey(_error,"data")&&(serialized.data=_error.data)):(serialized.message=getMessageFromCode(serialized.code),serialized.data={originalError:assignOriginalError(error)})}else{serialized.code=fallbackError.code;const message=null===(_a=error)||void 0===_a?void 0:_a.message;serialized.message=message&&"string"==typeof message?message:fallbackError.message,serialized.data={originalError:assignOriginalError(error)}}const stack=null===(_b=error)||void 0===_b?void 0:_b.stack;return shouldIncludeStack&&error&&stack&&"string"==typeof stack&&(serialized.stack=stack),serialized}},"./node_modules/walletlink/package.json":function(module){"use strict";module.exports={i8:"2.5.0"}}}]);