117 lines
2.7 MiB
Plaintext
117 lines
2.7 MiB
Plaintext
!function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};t[a][0].call(l.exports,(function(e){return i(t[a][1][e]||e)}),l,l.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){t.exports=[{code:"am",name:"አማርኛ"},{code:"ar",name:"العربية"},{code:"bg",name:"български"},{code:"bn",name:"বাংলা"},{code:"ca",name:"Català"},{code:"cs",name:"Čeština"},{code:"da",name:"Dansk"},{code:"de",name:"Deutsch"},{code:"el",name:"ελληνικά"},{code:"en",name:"English"},{code:"es",name:"Español"},{code:"es_419",name:"Español (Latin America)"},{code:"et",name:"Estonian"},{code:"fa",name:"فارسی"},{code:"fi",name:"Suomi"},{code:"fil",name:"Filipino"},{code:"fr",name:"Français"},{code:"gu",name:"ગુજરાત"},{code:"he",name:"עברית"},{code:"hi",name:"मानक हिन्दी"},{code:"hn",name:"हिन्दी"},{code:"hr",name:"Hrvatski"},{code:"ht",name:"Kreyòl ayisyen"},{code:"hu",name:"Magyar"},{code:"id",name:"Bahasa Indonesia"},{code:"it",name:"Italiano"},{code:"ja",name:"日本語"},{code:"kn",name:"ಕನ್ನಡ"},{code:"ko",name:"한국어"},{code:"lt",name:"Lietuviškai"},{code:"lv",name:"Latvian"},{code:"ml",name:"മലയാളം"},{code:"mr",name:"मराठी"},{code:"ms",name:"Malay"},{code:"nl",name:"Nederlands"},{code:"no",name:"Norwegian"},{code:"ph",name:"Pilipino"},{code:"pl",name:"Polskie"},{code:"pt",name:"Português"},{code:"pt_BR",name:"Português (Brazillian)"},{code:"pt_PT",name:"Português (European)"},{code:"ro",name:"Limba română"},{code:"ru",name:"Русский"},{code:"sk",name:"Slovenčina"},{code:"sl",name:"Slovenščina"},{code:"sr",name:"српски"},{code:"sv",name:"Svenska"},{code:"sw",name:"Swahili"},{code:"ta",name:"தமிழ்"},{code:"te",name:"తెలుగు"},{code:"th",name:"ไทย"},{code:"tr",name:"Türkçe"},{code:"uk",name:"Українська мова"},{code:"vi",name:"Tiếng Việt"},{code:"zh_CN",name:"中文(简体)"},{code:"zh_TW",name:"中文(繁體)"}]},{}],2:[function(e,t,r){t.exports={name:"__MSG_appName__",short_name:"__MSG_appName__",version:"8.0.8",manifest_version:2,author:"https://metamask.io",description:"__MSG_appDescription__",commands:{_execute_browser_action:{suggested_key:{windows:"Alt+Shift+M",mac:"Alt+Shift+M",chromeos:"Alt+Shift+M",linux:"Alt+Shift+M"}}},icons:{16:"images/icon-16.png",19:"images/icon-19.png",32:"images/icon-32.png",38:"images/icon-38.png",64:"images/icon-64.png",128:"images/icon-128.png",512:"images/icon-512.png"},default_locale:"en",background:{scripts:["bg-libs.js","background.js"],persistent:!0},browser_action:{default_icon:{16:"images/icon-16.png",19:"images/icon-19.png",32:"images/icon-32.png",38:"images/icon-38.png",64:"images/icon-64.png",128:"images/icon-128.png",512:"images/icon-512.png"},default_title:"MetaMask",default_popup:"popup.html"},content_scripts:[{matches:["file://*/*","http://*/*","https://*/*"],js:["contentscript.js"],run_at:"document_start",all_frames:!0},{matches:["*://connect.trezor.io/*/popup.html"],js:["vendor/trezor/content-script.js"]}],permissions:["storage","unlimitedStorage","clipboardWrite","http://localhost:8545/","https://*.infura.io/","activeTab","webRequest","*://*.eth/","notifications"],web_accessible_resources:["inpage.js","phishing.html"],externally_connectable:{matches:["https://metamask.io/*"],ids:["*"]}}},{}],3:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("loglevel")),o=n(e("ethereumjs-wallet")),a=n(e("ethereumjs-wallet/thirdparty")),s=n(e("ethereumjs-util")),c={importAccount(e,t){try{const r=this.strategies[e].apply(null,t);return Promise.resolve(r)}catch(e){return Promise.reject(e)}},strategies:{"Private Key":e=>{if(!e)throw new Error("Cannot import an empty key.");const t=s.default.addHexPrefix(e),r=s.default.toBuffer(t);if(!s.default.isValidPrivate(r))throw new Error("Cannot import invalid private key.");return s.default.stripHexPrefix(t)},"JSON File":(e,t)=>{let r;try{r=a.default.fromEtherWallet(e,t)}catch(n){i.default.debug("Attempt to import as EtherWallet format failed, trying V3"),r=o.default.fromV3(e,t,!0)}return function(e){const t=e.getPrivateKey();return s.default.bufferToHex(t)}(r)}}};r.default=c},{"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717,"ethereumjs-wallet":720,"ethereumjs-wallet/thirdparty":730,loglevel:872}],4:[function(e,t,r){(function(t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("./lib/freezeGlobals");var i=n(e("./lib/setupFetchDebugging"));e("abortcontroller-polyfill/dist/polyfill-patch-fetch");var o=n(e("end-of-stream")),a=n(e("pump")),s=n(e("debounce-stream")),c=n(e("loglevel")),u=n(e("extensionizer")),l=(n(e("./lib/network-store")),n(e("./lib/local-store"))),f=n(e("obs-store/lib/transform")),d=n(e("obs-store/lib/asStream")),h=n(e("./platforms/extension")),p=n(e("./lib/migrator")),m=n(e("./migrations")),y=n(e("extension-port-stream")),g=n(e("./lib/createStreamSink")),b=n(e("./lib/notification-manager.js")),v=n(e("./metamask-controller")),w=n(e("./first-time-state")),_=n(e("./lib/setupSentry")),x=n(e("./lib/get-first-preferred-lang-code")),k=n(e("./lib/getObjStructure")),S=n(e("./lib/ens-ipfs/setup")),E=e("./lib/enums");(0,i.default)();const A=Object.assign({},w.default,r.METAMASK_TEST_CONFIG);c.default.setDefaultLevel(t.env.METAMASK_DEBUG?"debug":"warn");const T=new h.default,C=new b.default;r.METAMASK_NOTIFIER=C;const O=T.getVersion(),j=(0,_.default)({release:O});let P=!1,M=!1;const I={},N={},B=new l.default;let R;async function D(){const e=await T.getActiveTabs(),t=Boolean(e.find(e=>I[e.id]));P||t||await C.showPopup()}async function L(){await D(),await new Promise(e=>{const t=setInterval(()=>{M||(clearInterval(t),e())},1e3)})}t.env.METAMASK_DEBUG&&(r.metamaskGetState=B.get.bind(B)),async function(){const e=await async function(){const e=new p.default({migrations:m.default});if(e.on("error",console.warn),R=await B.get()||e.generateInitialState(A),R&&!R.data&&(R=e.generateInitialState(A),j.captureMessage("MetaMask - Empty vault found - unable to recover")),e.on("error",e=>{const t=(0,k.default)(R);j.captureException(e,{extra:{vaultStructure:t}})}),R=await e.migrateData(R),!R)throw new Error("MetaMask - migrator returned undefined");return B.isSupported?B.set(R):setTimeout(()=>{throw new Error("MetaMask - Localstore not supported")}),R.data}(),t=await(0,x.default)();await function(e,t){const r=new v.default({showUnconfirmedMessage:D,showUnapprovedTx:D,showPermissionRequest:D,showUnlockRequest:D,openPopup:L,initState:e,initLangCode:t,platform:T,getRequestAccountTabIds:()=>N,getOpenMetamaskTabsIds:()=>I});(0,S.default)({getCurrentNetwork:r.getCurrentNetwork,getIpfsGateway:r.preferencesController.getIpfsGateway.bind(r.preferencesController),provider:r.provider}),(0,a.default)((0,d.default)(r.store),(0,s.default)(1e3),(0,f.default)((function(e){return R.data=e,R})),(0,g.default)((async function(e){if(!e)throw new Error("MetaMask - updated state is missing");if(!e.data)throw new Error("MetaMask - updated state does not have data");if(B.isSupported)try{await B.set(e)}catch(e){c.default.error("error setting state in local store:",e)}})),e=>{c.default.error("MetaMask - Persistence pipeline failed",e)}),u.default.runtime.onConnect.addListener((function(e){const t=e.name,a=n[t];if(i.includes(e.name))return!1;if(a){const n=new y.default(e);if(r.isClientOpen=!0,r.setupTrustedCommunication(n,e.sender),t===E.ENVIRONMENT_TYPE_POPUP&&(P=!0,(0,o.default)(n,()=>{P=!1,r.isClientOpen=l()})),t===E.ENVIRONMENT_TYPE_NOTIFICATION&&(M=!0,(0,o.default)(n,()=>{M=!1,r.isClientOpen=l()})),t===E.ENVIRONMENT_TYPE_FULLSCREEN){const t=e.sender.tab.id;I[t]=!0,(0,o.default)(n,()=>{delete I[t],r.isClientOpen=l()})}}else{if(e.sender&&e.sender.tab&&e.sender.url){const t=e.sender.tab.id,r=new URL(e.sender.url),{origin:n}=r;e.onMessage.addListener(e=>{e.data&&"eth_requestAccounts"===e.data.method&&(N[n]=t)})}h(e)}})),u.default.runtime.onConnectExternal.addListener(h);const n={[E.ENVIRONMENT_TYPE_POPUP]:!0,[E.ENVIRONMENT_TYPE_NOTIFICATION]:!0,[E.ENVIRONMENT_TYPE_FULLSCREEN]:!0},i=["trezor-connect"],l=()=>P||Boolean(Object.keys(I).length)||M;function h(e){const t=new y.default(e);r.setupUntrustedCommunication(t,e.sender)}function p(){let e="";const t=r.txController.getUnapprovedTxCount()+r.messageManager.unapprovedMsgCount+r.personalMessageManager.unapprovedPersonalMsgCount+r.decryptMessageManager.unapprovedDecryptMsgCount+r.encryptionPublicKeyManager.unapprovedEncryptionPublicKeyMsgCount+r.typedMessageManager.unapprovedTypedMessagesCount+Object.keys(r.permissionsController.permissions.state.permissionsRequests).length+r.appStateController.waitingForUnlock.length;t&&(e=String(t)),u.default.browserAction.setBadgeText({text:e}),u.default.browserAction.setBadgeBackgroundColor({color:"#037DD6"})}return p(),r.txController.on("update:badge",p),r.messageManager.on("updateBadge",p),r.personalMessageManager.on("updateBadge",p),r.decryptMessageManager.on("updateBadge",p),r.encryptionPublicKeyManager.on("updateBadge",p),r.typedMessageManager.on("updateBadge",p),r.permissionsController.permissions.subscribe(p),r.appStateController.on("updateBadge",p),Promise.resolve()}(e,t),c.default.debug("MetaMask initialization complete.")}().catch(c.default.error),u.default.runtime.onInstalled.addListener(({reason:e})=>{"install"!==e||t.env.METAMASK_DEBUG||T.openExtensionInBrowser()})}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./first-time-state":38,"./lib/createStreamSink":48,"./lib/ens-ipfs/setup":55,"./lib/enums":56,"./lib/freezeGlobals":59,"./lib/get-first-preferred-lang-code":60,"./lib/getObjStructure":61,"./lib/local-store":62,"./lib/migrator":64,"./lib/network-store":65,"./lib/notification-manager.js":67,"./lib/setupFetchDebugging":72,"./lib/setupSentry":73,"./metamask-controller":77,"./migrations":125,"./platforms/extension":126,"@babel/runtime/helpers/interopRequireDefault":135,_process:952,"abortcontroller-polyfill/dist/polyfill-patch-fetch":327,"debounce-stream":547,"end-of-stream":588,"extension-port-stream":762,extensionizer:777,loglevel:872,"obs-store/lib/asStream":899,"obs-store/lib/transform":901,pump:960}],5:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=r.ALERT_TYPES=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("obs-store"));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const c={unconnectedAccount:"unconnectedAccount"};r.ALERT_TYPES=c;const u={alertEnabledness:Object.keys(c).reduce((e,t)=>(e[t]=!0,e),{}),unconnectedAccountAlertShownOrigins:{}};r.default=class{constructor(e={}){const{initState:t,preferencesStore:r}=e,n=Object.assign({},u,t,{unconnectedAccountAlertShownOrigins:{}});this.store=new o.default(n);const{selectedAddress:i}=r.getState();this.selectedAddress=i,r.subscribe(({selectedAddress:e})=>{this.store.getState().unconnectedAccountAlertShownOrigins&&this.selectedAddress!==e&&(this.selectedAddress=e,this.store.updateState({unconnectedAccountAlertShownOrigins:{}}))})}setAlertEnabledness(e,t){let{alertEnabledness:r}=this.store.getState();r=s({},r),r[e]=t,this.store.updateState({alertEnabledness:r})}setUnconnectedAccountAlertShown(e){let{unconnectedAccountAlertShownOrigins:t}=this.store.getState();t=s({},t),t[e]=!0,this.store.updateState({unconnectedAccountAlertShownOrigins:t})}}},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"obs-store":898}],6:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("obs-store")),o=n(e("events"));class a extends o.default{constructor(e={}){const{addUnlockListener:t,isUnlocked:r,initState:n,onInactiveTimeout:o,showUnlockRequest:a,preferencesStore:s}=e,{preferences:c}=s.getState();super(),this.onInactiveTimeout=o||(()=>{}),this.store=new i.default(Object.assign({timeoutMinutes:0,connectedStatusPopoverHasBeenShown:!0,defaultHomeActiveTabName:null},n)),this.timer=null,this.isUnlocked=r,this.waitingForUnlock=[],t(this.handleUnlock.bind(this)),this._showUnlockRequest=a,s.subscribe(({preferences:e})=>{this.store.getState().timeoutMinutes!==e.autoLockTimeLimit&&this._setInactiveTimeout(e.autoLockTimeLimit)}),this._setInactiveTimeout(c.autoLockTimeLimit)}getUnlockPromise(e){return new Promise(t=>{this.isUnlocked()?t():this.waitForUnlock(t,e)})}waitForUnlock(e,t){this.waitingForUnlock.push({resolve:e}),this.emit("updateBadge"),t&&this._showUnlockRequest()}handleUnlock(){if(this.waitingForUnlock.length>0){for(;this.waitingForUnlock.length>0;)this.waitingForUnlock.shift().resolve();this.emit("updateBadge")}}setDefaultHomeActiveTabName(e){this.store.updateState({defaultHomeActiveTabName:e})}setConnectedStatusPopoverHasBeenShown(){this.store.updateState({connectedStatusPopoverHasBeenShown:!0})}setLastActiveTime(){this._resetTimer()}_setInactiveTimeout(e){this.store.updateState({timeoutMinutes:e}),this._resetTimer()}_resetTimer(){const{timeoutMinutes:e}=this.store.getState();this.timer&&clearTimeout(this.timer),e&&(this.timer=setTimeout(()=>this.onInactiveTimeout(),60*e*1e3))}}r.default=a},{"@babel/runtime/helpers/interopRequireDefault":135,events:476,"obs-store":898}],7:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("obs-store"));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.default=class{constructor(e={}){const{accountTracker:t,getNetwork:r}=e;this.accountTracker=t,this.getNetwork=r;const n=Object.assign({cachedBalances:{}},e.initState);this.store=new o.default(n),this._registerUpdates()}async updateCachedBalances({accounts:e}){const t=await this.getNetwork(),r=await this._generateBalancesToCache(e,t);this.store.updateState({cachedBalances:r})}_generateBalancesToCache(e,t){const{cachedBalances:r}=this.store.getState(),n=s({},r[t]);return Object.keys(e).forEach(t=>{const r=e[t];r.balance&&(n[t]=r.balance)}),s({},r,{[t]:n})}clearCachedBalances(){this.store.updateState({cachedBalances:{}})}_registerUpdates(){const e=this.updateCachedBalances.bind(this);this.accountTracker.store.subscribe(e)}}},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"obs-store":898}],8:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("web3")),o=n(e("eth-contract-metadata")),a=e("loglevel"),s=e("./network/enums"),c=n(e("single-call-balance-checker-abi"));r.default=class{constructor({interval:e=18e4,preferences:t,network:r,keyringMemStore:n}={}){this.preferences=t,this.interval=e,this.network=r,this.keyringMemStore=n}async detectNewTokens(){if(!this.isActive)return;if(this._network.store.getState().provider.type!==s.MAINNET)return;const e=[];this.web3.setProvider(this._network._provider);for(const t in o.default)o.default[t].erc20&&!this.tokenAddresses.includes(t.toLowerCase())&&e.push(t);let t;try{t=await this._getTokenBalances(e)}catch(e){return void(0,a.warn)("MetaMask - DetectTokensController single call balance fetch failed",e)}e.forEach((e,r)=>{const n=t[r];n&&!n.isZero()&&this._preferences.addToken(e,o.default[e].symbol,o.default[e].decimals)})}async _getTokenBalances(e){const t=this.web3.eth.contract(c.default).at("0xb1f8e55c7f64d203c1400b9d8555d050f94adf39");return new Promise((r,n)=>{t.balances([this.selectedAddress],e,(e,t)=>e?n(e):r(t))})}restartTokenDetection(){this.isActive&&this.selectedAddress&&(this.detectNewTokens(),this.interval=18e4)}set interval(e){this._handle&&clearInterval(this._handle),e&&(this._handle=setInterval(()=>{this.detectNewTokens()},e))}set preferences(e){if(!e)return;this._preferences=e;const t=e.store.getState().tokens;this.tokenAddresses=t?t.map(e=>e.address):[],e.store.subscribe(({tokens:e=[]})=>{this.tokenAddresses=e.map(e=>e.address)}),e.store.subscribe(({selectedAddress:e})=>{this.selectedAddress!==e&&(this.selectedAddress=e,this.restartTokenDetection())})}set network(e){e&&(this._network=e,this.web3=new i.default(e._provider))}set keyringMemStore(e){e&&(this._keyringMemStore=e,this._keyringMemStore.subscribe(({isUnlocked:e})=>{this.isUnlocked!==e&&(this.isUnlocked=e,e&&this.restartTokenDetection())}))}get isActive(){return this.isOpen&&this.isUnlocked}}},{"./network/enums":17,"@babel/runtime/helpers/interopRequireDefault":135,"eth-contract-metadata":593,loglevel:872,"single-call-balance-checker-abi":1058,web3:1208}],9:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("ethjs-ens")),o=n(e("ethereum-ens-network-map"));r.default=class{static getNetworkEnsSupport(e){return Boolean(o.default[e])}constructor({network:e,provider:t}={}){this._ethJsEns=new i.default({network:e,provider:t})}lookup(e){return this._ethJsEns.lookup(e)}reverse(e){return this._ethJsEns.reverse(e)}}},{"@babel/runtime/helpers/interopRequireDefault":135,"ethereum-ens-network-map":707,"ethjs-ens":739}],10:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("ethereumjs-util")),a=n(e("obs-store")),s=n(e("punycode")),c=n(e("loglevel")),u=n(e("./ens"));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.default=class{constructor({ens:e,provider:t,networkStore:r}={}){const n={ensResolutionsByAddress:{}};if(this._ens=e,!this._ens){const e=r.getState();u.default.getNetworkEnsSupport(e)&&(this._ens=new u.default({network:e,provider:t}))}this.store=new a.default(n),r.subscribe(e=>{this.store.putState(n),u.default.getNetworkEnsSupport(e)?this._ens=new u.default({network:e,provider:t}):delete this._ens})}reverseResolveAddress(e){return this._reverseResolveAddress(o.default.toChecksumAddress(e))}async _reverseResolveAddress(e){if(!this._ens)return;const t=this.store.getState();if(t.ensResolutionsByAddress[e])return t.ensResolutionsByAddress[e];let r,n;try{r=await this._ens.reverse(e)}catch(e){return void c.default.debug(e)}try{n=await this._ens.lookup(r)}catch(e){return void c.default.debug(e)}return"0x0000000000000000000000000000000000000000"!==n&&"0x"!==n&&o.default.toChecksumAddress(n)===e?(this._updateResolutionsByAddress(e,s.default.toASCII(r)),r):void 0}_updateResolutionsByAddress(e,t){const r=this.store.getState();this.store.putState({ensResolutionsByAddress:f({},r.ensResolutionsByAddress,{[e]:t})})}}},{"./ens":9,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717,loglevel:872,"obs-store":898,punycode:477}],11:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("obs-store")),a=n(e("loglevel")),s=n(e("bn.js")),c=n(e("../lib/random-id")),u=e("../lib/util"),l=n(e("../lib/fetch-with-timeout")),f=e("./network/enums");function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const p=(0,l.default)({timeout:3e4});function m(e){let t,r=!0;return n=>{try{return r?(r=!1,e(n,n)):e(t,n)}finally{t=n}}}r.default=class{constructor(e={}){const{blockTracker:t,networkController:r,preferencesController:n}=e;this.blockTracker=t,this.networkController=r,this.preferencesController=n,this.getCurrentNetwork=()=>r.getProviderConfig().type,this._onLatestBlock=async e=>{const t=this.preferencesController.getSelectedAddress(),r=parseInt(e,16);await this._update({address:t,newBlockNumberDec:r})};const i=Object.assign({incomingTransactions:{},incomingTxLastFetchedBlocksByNetwork:{[f.ROPSTEN]:null,[f.RINKEBY]:null,[f.KOVAN]:null,[f.GOERLI]:null,[f.MAINNET]:null}},e.initState);this.store=new o.default(i),this.preferencesController.store.subscribe(m((e,t)=>{const{featureFlags:{showIncomingTransactions:r}={}}=e,{featureFlags:{showIncomingTransactions:n}={}}=t;n!==r&&(!r||n?this.start():this.stop())})),this.preferencesController.store.subscribe(m(async(e,t)=>{const{selectedAddress:r}=e,{selectedAddress:n}=t;n!==r&&await this._update({address:n})})),this.networkController.on("networkDidChange",async e=>{const t=this.preferencesController.getSelectedAddress();await this._update({address:t,networkType:e})})}start(){const{featureFlags:e={}}=this.preferencesController.store.getState(),{showIncomingTransactions:t}=e;t&&(this.blockTracker.removeListener("latest",this._onLatestBlock),this.blockTracker.addListener("latest",this._onLatestBlock))}stop(){this.blockTracker.removeListener("latest",this._onLatestBlock)}async _update({address:e,newBlockNumberDec:t,networkType:r}={}){try{const n=await this._getDataForUpdate({address:e,newBlockNumberDec:t,networkType:r});await this._updateStateWithNewTxData(n)}catch(e){a.default.error(e)}}async _getDataForUpdate({address:e,newBlockNumberDec:t,networkType:r}={}){const{incomingTransactions:n,incomingTxLastFetchedBlocksByNetwork:i}=this.store.getState(),o=r||this.getCurrentNetwork();let a=i[o]||t;void 0===a&&(a=parseInt(this.blockTracker.getCurrentBlock(),16));const{latestIncomingTxBlockNumber:s,txs:c}=await this._fetchAll(e,a,o);return{latestIncomingTxBlockNumber:s,newTxs:c,currentIncomingTxs:n,currentBlocksByNetwork:i,fetchedBlockNumber:a,network:o}}async _updateStateWithNewTxData({latestIncomingTxBlockNumber:e,newTxs:t,currentIncomingTxs:r,currentBlocksByNetwork:n,fetchedBlockNumber:i,network:o}){const a=e?parseInt(e,10)+1:i+1,s=h({},r);t.forEach(e=>{s[e.hash]=e}),this.store.updateState({incomingTxLastFetchedBlocksByNetwork:h({},n,{[o]:a}),incomingTransactions:s})}async _fetchAll(e,t,r){const n=await this._fetchTxs(e,t,r);return this._processTxFetchResponse(n)}async _fetchTxs(e,t,r){var n;let i="api";const o=null===(n=f.NETWORK_TYPE_TO_ID_MAP[r])||void 0===n?void 0:n.networkId;if(!o)return{};r!==f.MAINNET&&(i="api-"+r);let a=`https://${i}.etherscan.io/api?module=account&action=txlist&address=${e}&tag=latest&page=1`;t&&(a+="&startBlock="+parseInt(t,10));const s=await p(a);return h({},await s.json(),{address:e,currentNetworkID:o})}_processTxFetchResponse({status:e,result:t=[],address:r,currentNetworkID:n}){if("1"===e&&Array.isArray(t)&&t.length>0){const e={},i=[];t.forEach(t=>{e[t.hash]||(i.push(this._normalizeTxFromEtherscan(t,n)),e[t.hash]=1)});const o=i.filter(e=>e.txParams.to&&e.txParams.to.toLowerCase()===r.toLowerCase());o.sort((e,t)=>e.time<t.time?-1:1);let a=null;return o.forEach(e=>{e.blockNumber&&(!a||parseInt(a,10)<parseInt(e.blockNumber,10))&&(a=e.blockNumber)}),{latestIncomingTxBlockNumber:a,txs:o}}return{latestIncomingTxBlockNumber:null,txs:[]}}_normalizeTxFromEtherscan(e,t){const r=1e3*parseInt(e.timeStamp,10),n="0"===e.isError?"confirmed":"failed";return{blockNumber:e.blockNumber,id:(0,c.default)(),metamaskNetworkId:t,status:n,time:r,txParams:{from:e.from,gas:(0,u.bnToHex)(new s.default(e.gas)),gasPrice:(0,u.bnToHex)(new s.default(e.gasPrice)),nonce:(0,u.bnToHex)(new s.default(e.nonce)),to:e.to,value:(0,u.bnToHex)(new s.default(e.value))},hash:e.hash,transactionCategory:"incoming"}}}},{"../lib/fetch-with-timeout":58,"../lib/random-id":69,"../lib/util":76,"./network/enums":17,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"bn.js":439,loglevel:872,"obs-store":898}],12:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SINGLE_CALL_BALANCES_ADDRESS_KOVAN=r.SINGLE_CALL_BALANCES_ADDRESS_ROPSTEN=r.SINGLE_CALL_BALANCES_ADDRESS_RINKEBY=r.SINGLE_CALL_BALANCES_ADDRESS=void 0,r.SINGLE_CALL_BALANCES_ADDRESS="0xb1f8e55c7f64d203c1400b9d8555d050f94adf39",r.SINGLE_CALL_BALANCES_ADDRESS_RINKEBY="0x9f510b19f1ad66f0dcf6e45559fab0d6752c1db7",r.SINGLE_CALL_BALANCES_ADDRESS_ROPSTEN="0xb8e671734ce5c8d7dfbbea5574fa4cf39f7a54a4",r.SINGLE_CALL_BALANCES_ADDRESS_KOVAN="0xb1d3fbb2f83aecd196f474c16ca5d9cffa0d0ffc"},{}],13:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),i=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({network:e}){const t=(0,h.default)({network:e,maxAttempts:5,source:"metamask"}),r=(0,d.default)(t),n=new p.default({provider:r});return{networkMiddleware:(0,o.default)([y({network:e}),(0,u.default)({blockTracker:n}),(0,l.default)(),(0,s.default)({blockTracker:n,provider:r}),(0,c.default)({blockTracker:n,provider:r}),(0,f.default)({blockTracker:n}),t]),blockTracker:n}};var o=i(e("json-rpc-engine/src/mergeMiddleware")),a=i(e("json-rpc-engine/src/createScaffoldMiddleware")),s=i(e("eth-json-rpc-middleware/block-ref")),c=i(e("eth-json-rpc-middleware/retryOnEmpty")),u=i(e("eth-json-rpc-middleware/block-cache")),l=i(e("eth-json-rpc-middleware/inflight-cache")),f=i(e("eth-json-rpc-middleware/block-tracker-inspector")),d=i(e("eth-json-rpc-middleware/providerFromMiddleware")),h=i(e("eth-json-rpc-infura")),p=i(e("eth-block-tracker")),m=n(e("./enums"));function y({network:e}){let t,r;switch(e){case"mainnet":r=m.MAINNET_NETWORK_ID,t="0x01";break;case"ropsten":r=m.ROPSTEN_NETWORK_ID,t="0x03";break;case"rinkeby":r=m.RINKEBY_NETWORK_ID,t="0x04";break;case"kovan":r=m.KOVAN_NETWORK_ID,t=m.KOVAN_CHAIN_ID;break;case"goerli":r=m.GOERLI_NETWORK_ID,t="0x05";break;default:throw new Error(`createInfuraClient - unknown network "${e}"`)}return(0,a.default)({eth_chainId:t,net_version:r})}},{"./enums":17,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/interopRequireWildcard":136,"eth-block-tracker":591,"eth-json-rpc-infura":637,"eth-json-rpc-middleware/block-cache":638,"eth-json-rpc-middleware/block-ref":640,"eth-json-rpc-middleware/block-tracker-inspector":641,"eth-json-rpc-middleware/inflight-cache":644,"eth-json-rpc-middleware/providerFromMiddleware":659,"eth-json-rpc-middleware/retryOnEmpty":660,"json-rpc-engine/src/createScaffoldMiddleware":818,"json-rpc-engine/src/mergeMiddleware":820}],14:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({rpcUrl:e}){const t=(0,o.default)({rpcUrl:e}),r=(0,l.default)(t),n=new f.default({provider:r});return{networkMiddleware:(0,i.default)([(0,a.default)({blockTracker:n}),(0,s.default)({blockTracker:n}),(0,c.default)(),(0,u.default)({blockTracker:n}),t]),blockTracker:n}};var i=n(e("json-rpc-engine/src/mergeMiddleware")),o=n(e("eth-json-rpc-middleware/fetch")),a=n(e("eth-json-rpc-middleware/block-ref-rewrite")),s=n(e("eth-json-rpc-middleware/block-cache")),c=n(e("eth-json-rpc-middleware/inflight-cache")),u=n(e("eth-json-rpc-middleware/block-tracker-inspector")),l=n(e("eth-json-rpc-middleware/providerFromMiddleware")),f=n(e("eth-block-tracker"))},{"@babel/runtime/helpers/interopRequireDefault":135,"eth-block-tracker":591,"eth-json-rpc-middleware/block-cache":638,"eth-json-rpc-middleware/block-ref-rewrite":639,"eth-json-rpc-middleware/block-tracker-inspector":641,"eth-json-rpc-middleware/fetch":643,"eth-json-rpc-middleware/inflight-cache":644,"eth-json-rpc-middleware/providerFromMiddleware":659,"json-rpc-engine/src/mergeMiddleware":820}],15:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){const e=(0,o.default)({rpcUrl:"http://localhost:8545/"}),t=(0,u.default)(e),r=new l.default({provider:t,pollingInterval:1e3});return{networkMiddleware:(0,i.default)([(0,c.default)(async(e,t,r)=>(e.method,r())),(0,a.default)({blockTracker:r}),(0,s.default)({blockTracker:r}),e]),blockTracker:r}};var i=n(e("json-rpc-engine/src/mergeMiddleware")),o=n(e("eth-json-rpc-middleware/fetch")),a=n(e("eth-json-rpc-middleware/block-ref-rewrite")),s=n(e("eth-json-rpc-middleware/block-tracker-inspector")),c=n(e("json-rpc-engine/src/createAsyncMiddleware")),u=n(e("eth-json-rpc-middleware/providerFromMiddleware")),l=n(e("eth-block-tracker"))},{"@babel/runtime/helpers/interopRequireDefault":135,"eth-block-tracker":591,"eth-json-rpc-middleware/block-ref-rewrite":639,"eth-json-rpc-middleware/block-tracker-inspector":641,"eth-json-rpc-middleware/fetch":643,"eth-json-rpc-middleware/providerFromMiddleware":659,"json-rpc-engine/src/createAsyncMiddleware":817,"json-rpc-engine/src/mergeMiddleware":820}],16:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({version:e,getAccounts:t,processTransaction:r,processEthSignMessage:n,processTypedMessage:c,processTypedMessageV3:u,processTypedMessageV4:l,processPersonalMessage:f,processDecryptMessage:d,processEncryptionPublicKey:h,getPendingNonce:p,getPendingTransactionByHash:m}){return(0,i.default)([(0,o.default)({eth_syncing:!1,web3_clientVersion:"MetaMask/v"+e}),(0,a.default)({getAccounts:t,processTransaction:r,processEthSignMessage:n,processTypedMessage:c,processTypedMessageV3:u,processTypedMessageV4:l,processPersonalMessage:f,processDecryptMessage:d,processEncryptionPublicKey:h}),(0,s.createPendingNonceMiddleware)({getPendingNonce:p}),(0,s.createPendingTxMiddleware)({getPendingTransactionByHash:m})])};var i=n(e("json-rpc-engine/src/mergeMiddleware")),o=n(e("json-rpc-engine/src/createScaffoldMiddleware")),a=n(e("eth-json-rpc-middleware/wallet")),s=e("./middleware/pending")},{"./middleware/pending":19,"@babel/runtime/helpers/interopRequireDefault":135,"eth-json-rpc-middleware/wallet":661,"json-rpc-engine/src/createScaffoldMiddleware":818,"json-rpc-engine/src/mergeMiddleware":820}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NETWORK_TO_NAME_MAP=r.NETWORK_TYPE_TO_ID_MAP=r.INFURA_PROVIDER_TYPES=r.GOERLI_DISPLAY_NAME=r.MAINNET_DISPLAY_NAME=r.KOVAN_DISPLAY_NAME=r.RINKEBY_DISPLAY_NAME=r.ROPSTEN_DISPLAY_NAME=r.KOVAN_CHAIN_ID=r.GOERLI_CHAIN_ID=r.RINKEBY_CHAIN_ID=r.ROPSTEN_CHAIN_ID=r.MAINNET_CHAIN_ID=r.KOVAN_NETWORK_ID=r.GOERLI_NETWORK_ID=r.RINKEBY_NETWORK_ID=r.ROPSTEN_NETWORK_ID=r.MAINNET_NETWORK_ID=r.LOCALHOST=r.GOERLI=r.MAINNET=r.KOVAN=r.RINKEBY=r.ROPSTEN=void 0,r.ROPSTEN="ropsten",r.RINKEBY="rinkeby",r.KOVAN="kovan",r.MAINNET="mainnet",r.GOERLI="goerli",r.LOCALHOST="localhost",r.MAINNET_NETWORK_ID="1",r.ROPSTEN_NETWORK_ID="3",r.RINKEBY_NETWORK_ID="4",r.GOERLI_NETWORK_ID="5",r.KOVAN_NETWORK_ID="42",r.MAINNET_CHAIN_ID="0x1",r.ROPSTEN_CHAIN_ID="0x3",r.RINKEBY_CHAIN_ID="0x4",r.GOERLI_CHAIN_ID="0x5",r.KOVAN_CHAIN_ID="0x2a",r.ROPSTEN_DISPLAY_NAME="Ropsten",r.RINKEBY_DISPLAY_NAME="Rinkeby",r.KOVAN_DISPLAY_NAME="Kovan",r.MAINNET_DISPLAY_NAME="Main Ethereum Network",r.GOERLI_DISPLAY_NAME="Goerli";r.INFURA_PROVIDER_TYPES=["ropsten","rinkeby","kovan","mainnet","goerli"];r.NETWORK_TYPE_TO_ID_MAP={ropsten:{networkId:"3",chainId:"0x3"},rinkeby:{networkId:"4",chainId:"0x4"},kovan:{networkId:"42",chainId:"0x2a"},goerli:{networkId:"5",chainId:"0x5"},mainnet:{networkId:"1",chainId:"0x1"}};r.NETWORK_TO_NAME_MAP={ropsten:"Ropsten",rinkeby:"Rinkeby",kovan:"Kovan",mainnet:"Main Ethereum Network",goerli:"Goerli",3:"Ropsten",4:"Rinkeby",42:"Kovan",5:"Goerli",1:"Main Ethereum Network","0x3":"Ropsten","0x4":"Rinkeby","0x2a":"Kovan","0x5":"Goerli","0x1":"Main Ethereum Network"}},{}],18:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i.default}});var i=n(e("./network"))},{"./network":20,"@babel/runtime/helpers/interopRequireDefault":135}],19:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.createPendingNonceMiddleware=function({getPendingNonce:e}){return(0,o.default)(async(t,r,n)=>{const{method:i,params:o}=t;if("eth_getTransactionCount"!==i)return n();const[a,s]=o;if("pending"!==s)return n();r.result=await e(a)})},r.createPendingTxMiddleware=function({getPendingTransactionByHash:e}){return(0,o.default)(async(t,r,n)=>{const{method:o,params:a}=t;if("eth_getTransactionByHash"!==o)return n();const[s]=a,c=e(s);if(!c)return n();r.result=(0,i.formatTxMetaForRpcResult)(c)})};var i=e("../util"),o=n(e("json-rpc-engine/src/createAsyncMiddleware"))},{"../util":21,"@babel/runtime/helpers/interopRequireDefault":135,"json-rpc-engine/src/createAsyncMiddleware":817}],20:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("assert")),o=n(e("events")),a=n(e("obs-store")),s=n(e("obs-store/lib/composed")),c=n(e("eth-query")),u=n(e("json-rpc-engine")),l=n(e("eth-json-rpc-middleware/providerFromEngine")),f=n(e("loglevel")),d=n(e("./createMetamaskMiddleware")),h=n(e("./createInfuraClient")),p=n(e("./createJsonRpcClient")),m=n(e("./createLocalhostClient")),y=e("swappable-obj-proxy"),g=e("./enums");const b={networkList:{}},v=t.env.METAMASK_ENV;let w;w=t.env.METAMASK_DEBUG||"test"===v?g.RINKEBY:g.MAINNET;const _={type:w},x={ticker:"ETH"};class k extends o.default{constructor(e={}){super();const t=e.provider||_;this.providerStore=new a.default(t),this.networkStore=new a.default("loading"),this.networkConfig=new a.default(x),this.store=new s.default({provider:this.providerStore,network:this.networkStore,settings:this.networkConfig}),this.on("networkDidChange",this.lookupNetwork),this._provider=null,this._blockTracker=null,this._providerProxy=null,this._blockTrackerProxy=null}initializeProvider(e){this._baseProviderParams=e;const{type:t,rpcTarget:r,chainId:n,ticker:i,nickname:o}=this.providerStore.getState();this._configureProvider({type:t,rpcTarget:r,chainId:n,ticker:i,nickname:o}),this.lookupNetwork()}getProviderAndBlockTracker(){return{provider:this._providerProxy,blockTracker:this._blockTrackerProxy}}verifyNetwork(){this.isNetworkLoading()&&this.lookupNetwork()}getNetworkState(){return this.networkStore.getState()}getNetworkConfig(){return this.networkConfig.getState()}setNetworkState(e,t){var r;return"loading"===e?this.networkStore.putState(e):t?(e=(null===(r=b.networkList[t])||void 0===r?void 0:r.chainId)||e,this.networkStore.putState(e)):void 0}isNetworkLoading(){return"loading"===this.getNetworkState()}lookupNetwork(){if(!this._provider)return f.default.warn("NetworkController - lookupNetwork aborted due to missing provider");const{type:e}=this.providerStore.getState(),t=new c.default(this._provider),r=this.getNetworkState();t.sendAsync({method:"net_version"},(t,n)=>{const i=this.getNetworkState();if(r===i){if(t)return this.setNetworkState("loading");f.default.info("web3.getNetwork returned "+n),this.setNetworkState(n,e)}})}setRpcTarget(e,t,r="ETH",n="",i){const o={type:"rpc",rpcTarget:e,chainId:t,ticker:r,nickname:n,rpcPrefs:i};this.providerConfig=o}async setProviderType(e,t="",r="ETH",n=""){i.default.notEqual(e,"rpc",'NetworkController - cannot call "setProviderType" with type \'rpc\'. use "setRpcTarget"'),(0,i.default)(g.INFURA_PROVIDER_TYPES.includes(e)||e===g.LOCALHOST,`NetworkController - Unknown rpc type "${e}"`);const o={type:e,rpcTarget:t,ticker:r,nickname:n};this.providerConfig=o}resetConnection(){this.providerConfig=this.getProviderConfig()}set providerConfig(e){this.providerStore.updateState(e),this._switchNetwork(e)}getProviderConfig(){return this.providerStore.getState()}_switchNetwork(e){this.setNetworkState("loading"),this._configureProvider(e),this.emit("networkDidChange",e.type)}_configureProvider(e){const{type:t,rpcTarget:r,chainId:n,ticker:i,nickname:o}=e;if(g.INFURA_PROVIDER_TYPES.includes(t))this._configureInfuraProvider(e);else if(t===g.LOCALHOST)this._configureLocalhostProvider();else{if("rpc"!==t)throw new Error(`NetworkController - _configureProvider - unknown type "${t}"`);this._configureStandardProvider({rpcUrl:r,chainId:n,ticker:i,nickname:o})}}_configureInfuraProvider({type:e}){f.default.info("NetworkController - configureInfuraProvider",e);const t=(0,h.default)({network:e});this._setNetworkClient(t),this.networkConfig.putState({ticker:"ETH"})}_configureLocalhostProvider(){f.default.info("NetworkController - configureLocalhostProvider");const e=(0,m.default)();this._setNetworkClient(e)}_configureStandardProvider({rpcUrl:e,chainId:t,ticker:r,nickname:n}){f.default.info("NetworkController - configureStandardProvider",e);const i=(0,p.default)({rpcUrl:e});b.networkList.rpc={chainId:t,rpcUrl:e,ticker:r||"ETH",nickname:n};let o={network:t};o=Object.assign(o,b.networkList.rpc),this.networkConfig.putState(o),this._setNetworkClient(i)}_setNetworkClient({networkMiddleware:e,blockTracker:t}){const r=(0,d.default)(this._baseProviderParams),n=new u.default;n.push(r),n.push(e);const i=(0,l.default)(n);this._setProviderAndBlockTracker({provider:i,blockTracker:t})}_setProviderAndBlockTracker({provider:e,blockTracker:t}){this._providerProxy?this._providerProxy.setTarget(e):this._providerProxy=(0,y.createSwappableProxy)(e),this._blockTrackerProxy?this._blockTrackerProxy.setTarget(t):this._blockTrackerProxy=(0,y.createEventEmitterProxy)(t,{eventFilter:"skipInternal"}),this._provider=e,this._blockTracker=t}}r.default=k}).call(this,e("_process"))},{"./createInfuraClient":13,"./createJsonRpcClient":14,"./createLocalhostClient":15,"./createMetamaskMiddleware":16,"./enums":17,"@babel/runtime/helpers/interopRequireDefault":135,_process:952,assert:329,"eth-json-rpc-middleware/providerFromEngine":658,"eth-query":686,events:476,"json-rpc-engine":819,loglevel:872,"obs-store":898,"obs-store/lib/composed":900,"swappable-obj-proxy":1084}],21:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.formatTxMetaForRpcResult=function(e){return{blockHash:e.txReceipt?e.txReceipt.blockHash:null,blockNumber:e.txReceipt?e.txReceipt.blockNumber:null,from:e.txParams.from,gas:e.txParams.gas,gasPrice:e.txParams.gasPrice,hash:e.hash,input:e.txParams.data||"0x",nonce:e.txParams.nonce,to:e.txParams.to,transactionIndex:e.txReceipt?e.txReceipt.transactionIndex:null,value:e.txParams.value||"0x0",v:e.v,r:e.r,s:e.s}},r.getNetworkDisplayName=void 0;var n=e("./enums");r.getNetworkDisplayName=e=>n.NETWORK_TO_NAME_MAP[e]},{"./enums":17}],22:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("obs-store")),a=n(e("loglevel"));r.default=class{constructor(e={}){(0,i.default)(this,"registerOnboarding",async(e,t)=>{if(this.completedOnboarding)return void a.default.debug("Ignoring registerOnboarding; user already onboarded");const r=Object.assign({},this.store.getState().onboardingTabs);r[e]&&r[e]===t||(a.default.debug(`Registering onboarding tab at location '${e}' with tabId '${t}'`),r[e]=t,this.store.updateState({onboardingTabs:r}))});const t={onboardingTabs:{}},r=Object.assign({seedPhraseBackedUp:!0},e.initState,t);this.store=new o.default(r),this.preferencesController=e.preferencesController,this.completedOnboarding=this.preferencesController.store.getState().completedOnboarding,this.preferencesController.store.subscribe(({completedOnboarding:e})=>{e!==this.completedOnboarding&&(this.completedOnboarding=e,e&&this.store.updateState(t))})}setSeedPhraseBackedUp(e){this.store.updateState({seedPhraseBackedUp:e})}}},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,loglevel:872,"obs-store":898}],23:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SAFE_METHODS=r.LOG_LIMIT=r.LOG_METHOD_TYPES=r.LOG_IGNORE_METHODS=r.NOTIFICATION_NAMES=r.CAVEAT_TYPES=r.CAVEAT_NAMES=r.METADATA_CACHE_MAX_SIZE=r.METADATA_STORE_KEY=r.LOG_STORE_KEY=r.HISTORY_STORE_KEY=r.WALLET_PREFIX=void 0,r.WALLET_PREFIX="wallet_",r.HISTORY_STORE_KEY="permissionsHistory",r.LOG_STORE_KEY="permissionsLog",r.METADATA_STORE_KEY="domainMetadata",r.METADATA_CACHE_MAX_SIZE=100,r.CAVEAT_NAMES={exposedAccounts:"exposedAccounts",primaryAccountOnly:"primaryAccountOnly"},r.CAVEAT_TYPES={limitResponseLength:"limitResponseLength",filterResponse:"filterResponse"},r.NOTIFICATION_NAMES={accountsChanged:"wallet_accountsChanged"},r.LOG_IGNORE_METHODS=["wallet_sendDomainMetadata"],r.LOG_METHOD_TYPES={restricted:"restricted",internal:"internal"},r.LOG_LIMIT=100,r.SAFE_METHODS=["web3_sha3","web3_clientVersion","net_listening","net_peerCount","net_version","eth_blockNumber","eth_call","eth_chainId","eth_coinbase","eth_estimateGas","eth_gasPrice","eth_getBalance","eth_getBlockByHash","eth_getBlockByNumber","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getCode","eth_getFilterChanges","eth_getFilterLogs","eth_getLogs","eth_getStorageAt","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionByHash","eth_getTransactionCount","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getWork","eth_hashrate","eth_mining","eth_newBlockFilter","eth_newFilter","eth_newPendingTransactionFilter","eth_protocolVersion","eth_sendRawTransaction","eth_sendTransaction","eth_sign","personal_sign","personal_ecRecover","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v3","eth_signTypedData_v4","eth_submitHashrate","eth_submitWork","eth_syncing","eth_uninstallFilter","metamask_watchAsset","wallet_watchAsset","eth_getEncryptionPublicKey","eth_decrypt"]},{}],24:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.addInternalMethodPrefix=function(e){return m.WALLET_PREFIX+e},r.PermissionsController=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("nanoid")),a=n(e("json-rpc-engine")),s=n(e("json-rpc-engine/src/asMiddleware")),c=n(e("obs-store")),u=n(e("loglevel")),l=e("rpc-cap"),f=e("eth-json-rpc-errors"),d=e("lodash"),h=n(e("./permissionsMethodMiddleware")),p=n(e("./permissionsLog")),m=e("./enums");function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.PermissionsController=class{constructor({getKeyringAccounts:e,getRestrictedMethods:t,getUnlockPromise:r,notifyDomain:n,notifyAllDomains:i,preferences:o,showPermissionRequest:a}={},s={},u={}){this.store=new c.default({[m.LOG_STORE_KEY]:u[m.LOG_STORE_KEY]||[],[m.HISTORY_STORE_KEY]:u[m.HISTORY_STORE_KEY]||{}}),this.getKeyringAccounts=e,this._getUnlockPromise=r,this._notifyDomain=n,this._notifyAllDomains=i,this._showPermissionRequest=a,this._restrictedMethods=t({getKeyringAccounts:this.getKeyringAccounts.bind(this),getIdentities:this._getIdentities.bind(this)}),this.permissionsLog=new p.default({restrictedMethods:Object.keys(this._restrictedMethods),store:this.store}),this.pendingApprovals=new Map,this.pendingApprovalOrigins=new Set,this._initializePermissions(s),this._lastSelectedAddress=o.getState().selectedAddress,this.preferences=o,this._initializeMetadataStore(u),o.subscribe(async({selectedAddress:e})=>{e&&e!==this._lastSelectedAddress&&(this._lastSelectedAddress=e,await this._handleAccountSelected(e))})}createMiddleware({origin:e,extensionId:t}){var r;if("string"!=typeof e||!e.length)throw new Error("Must provide non-empty string origin.");const n=this.store.getState()[m.METADATA_STORE_KEY];t&&(null===(r=n[e])||void 0===r?void 0:r.extensionId)!==t&&this.addDomainMetadata(e,{extensionId:t});const i=new a.default;return i.push(this.permissionsLog.createMiddleware()),i.push((0,h.default)({addDomainMetadata:this.addDomainMetadata.bind(this),getAccounts:this.getAccounts.bind(this,e),getUnlockPromise:()=>this._getUnlockPromise(!0),hasPermission:this.hasPermission.bind(this,e),notifyAccountsChanged:this.notifyAccountsChanged.bind(this,e),requestAccountsPermission:this._requestPermissions.bind(this,{origin:e},{eth_accounts:{}})})),i.push(this.permissions.providerMiddlewareFunction.bind(this.permissions,{origin:e})),(0,s.default)(i)}async requestAccountsPermissionWithId(e){const t=(0,o.default)();return this._requestPermissions({origin:e},{eth_accounts:{}},t),t}getAccounts(e){return new Promise((t,r)=>{const n={};this.permissions.providerMiddlewareFunction({origin:e},{method:"eth_accounts"},n,()=>{},(function(){n.error||!Array.isArray(n.result)?t([]):t(n.result)}))})}hasPermission(e,t){return Boolean(this.permissions.getPermission(e,t))}_getIdentities(){return this.preferences.getState().identities}_requestPermissions(e,t,r){return new Promise((n,i)=>{const o={id:r,method:"wallet_requestPermissions",params:[t]},a={};this.permissions.providerMiddlewareFunction(e,o,a,()=>{},(function(e){const t=e||a.error;t?i(t):n(a.result)}))})}async approvePermissionsRequest(e,t){const{id:r}=e.metadata,n=this.pendingApprovals.get(r);if(n){try{0===Object.keys(e.permissions).length?n.reject(f.ethErrors.rpc.invalidRequest({message:"Must request at least one permission."})):(e.permissions=await this.finalizePermissionsRequest(e.permissions,t),n.resolve(e.permissions))}catch(e){n.reject(f.ethErrors.rpc.invalidRequest({message:e.message,data:e}))}this._removePendingApproval(r)}else u.default.debug(`Permissions request with id '${r}' not found`)}async rejectPermissionsRequest(e){const t=this.pendingApprovals.get(e);t?(t.reject(f.ethErrors.provider.userRejectedRequest()),this._removePendingApproval(e)):u.default.debug(`Permissions request with id '${e}' not found`)}async addPermittedAccount(e,t){if(!this.permissions.getDomains()[e])throw new Error("Unrecognized domain");this.validatePermittedAccounts([t]);const r=this._getPermittedAccounts(e);if(!r)throw new Error("Origin does not have 'eth_accounts' permission");if(r.includes(t))throw new Error("Account is already permitted for origin");this.permissions.updateCaveatFor(e,"eth_accounts",m.CAVEAT_NAMES.exposedAccounts,[...r,t]);const n=await this.getAccounts(e);this.notifyAccountsChanged(e,n)}async removePermittedAccount(e,t){if(!this.permissions.getDomains()[e])throw new Error("Unrecognized domain");this.validatePermittedAccounts([t]);const r=this._getPermittedAccounts(e);if(!r)throw new Error("Origin does not have 'eth_accounts' permission");if(!r.includes(t))throw new Error("Account is not permitted for origin");let n=r.filter(e=>e!==t);0===n.length?this.removePermissionsFor({[e]:["eth_accounts"]}):(this.permissions.updateCaveatFor(e,"eth_accounts",m.CAVEAT_NAMES.exposedAccounts,n),n=await this.getAccounts(e)),this.notifyAccountsChanged(e,n)}async removeAllAccountPermissions(e){this.validatePermittedAccounts([e]);const t=this.permissions.getDomains(),r=Object.keys(t).filter(t=>this._getPermittedAccounts(t).includes(e));await Promise.all(r.map(t=>this.removePermittedAccount(t,e)))}async finalizePermissionsRequest(e,t){const r=(0,d.cloneDeep)(e),n=(0,d.cloneDeep)(t),{eth_accounts:i}=r;return i&&(this.validatePermittedAccounts(n),i.caveats||(i.caveats=[]),i.caveats=i.caveats.filter(e=>e.name!==m.CAVEAT_NAMES.exposedAccounts&&e.name!==m.CAVEAT_NAMES.primaryAccountOnly),i.caveats.push({type:m.CAVEAT_TYPES.limitResponseLength,value:1,name:m.CAVEAT_NAMES.primaryAccountOnly}),i.caveats.push({type:m.CAVEAT_TYPES.filterResponse,value:n,name:m.CAVEAT_NAMES.exposedAccounts})),r}validatePermittedAccounts(e){if(!Array.isArray(e)||0===e.length)throw new Error("Must provide non-empty array of account(s).");const t=this._getIdentities();e.forEach(e=>{if(!t[e])throw new Error("Unknown account: "+e)})}notifyAccountsChanged(e,t){if("string"!=typeof e||!e)throw new Error(`Invalid origin: '${e}'`);if(!Array.isArray(t))throw new Error("Invalid accounts",t);this._notifyDomain(e,{method:m.NOTIFICATION_NAMES.accountsChanged,result:t}),this.permissionsLog.updateAccountsHistory(e,t)}removePermissionsFor(e){Object.entries(e).forEach(([e,t])=>{this.permissions.removePermissionsFor(e,t.map(t=>("eth_accounts"===t&&this.notifyAccountsChanged(e,[]),{parentCapability:t})))})}clearPermissions(){this.permissions.clearDomains(),this._notifyAllDomains({method:m.NOTIFICATION_NAMES.accountsChanged,result:[]})}addDomainMetadata(e,t){const r=this.store.getState()[m.METADATA_STORE_KEY],n=g({},r);if(this._pendingSiteMetadata.size>=m.METADATA_CACHE_MAX_SIZE){const e=this.permissions.getDomains(),t=this._pendingSiteMetadata.values().next().value;this._pendingSiteMetadata.delete(t),e[t]||delete n[t]}n[e]=g({},r[e],{},t,{lastUpdated:Date.now()}),n[e].extensionId||n[e].host||(n[e].host=new URL(e).host),this._pendingSiteMetadata.add(e),this._setDomainMetadata(n)}_initializeMetadataStore(e){const t=e[m.METADATA_STORE_KEY]||{},r=this._trimDomainMetadata(t);this._pendingSiteMetadata=new Set,this._setDomainMetadata(r)}_trimDomainMetadata(e){const t=g({},e),r=Object.keys(e),n=this.permissions.getDomains();return r.forEach(e=>{n[e]||delete t[e]}),t}_setDomainMetadata(e){this.store.updateState({[m.METADATA_STORE_KEY]:e})}_getPermittedAccounts(e){var t,r,n;return(null===(t=this.permissions.getPermission(e,"eth_accounts"))||void 0===t||null===(r=t.caveats)||void 0===r||null===(n=r.find(e=>e.name===m.CAVEAT_NAMES.exposedAccounts))||void 0===n?void 0:n.value)||null}async _handleAccountSelected(e){if("string"!=typeof e)throw new Error("Selected account should be a non-empty string.");const t=this.permissions.getDomains()||{},r=Object.entries(t).filter(([t,{permissions:r}])=>{var n;const i=r.find(e=>"eth_accounts"===e.parentCapability),o=null==i||null===(n=i.caveats.find(e=>"exposedAccounts"===e.name))||void 0===n?void 0:n.value;return null==o?void 0:o.includes(e)}).map(([e])=>e);await Promise.all(r.map(e=>this._handleConnectedAccountSelected(e)))}async _handleConnectedAccountSelected(e){const t=await this.getAccounts(e);this.notifyAccountsChanged(e,t)}_addPendingApproval(e,t,r,n){if(this.pendingApprovalOrigins.has(t)||this.pendingApprovals.has(e))throw new Error(`Pending approval with id '${e}' or origin '${t}' already exists.`);this.pendingApprovals.set(e,{origin:t,resolve:r,reject:n}),this.pendingApprovalOrigins.add(t)}_removePendingApproval(e){const{origin:t}=this.pendingApprovals.get(e);this.pendingApprovalOrigins.delete(t),this.pendingApprovals.delete(e)}_initializePermissions(e){const t=g({},e,{permissionsRequests:[]});this.permissions=new l.CapabilitiesController({safeMethods:m.SAFE_METHODS,methodPrefix:m.WALLET_PREFIX,restrictedMethods:this._restrictedMethods,requestUserApproval:async e=>{const{metadata:{id:t,origin:r}}=e;if(this.pendingApprovalOrigins.has(r))throw f.ethErrors.rpc.resourceUnavailable("Permissions request already pending; please wait.");return this._showPermissionRequest(),new Promise((e,n)=>{this._addPendingApproval(t,r,e,n)})}},t)}}},{"./enums":23,"./permissionsLog":25,"./permissionsMethodMiddleware":26,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"eth-json-rpc-errors":601,"json-rpc-engine":819,"json-rpc-engine/src/asMiddleware":816,lodash:869,loglevel:872,nanoid:891,"obs-store":898,"rpc-cap":985}],25:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("lodash"),a=e("./enums");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){return e.reduce((e,r)=>c({},e,{[r]:t}),{})}r.default=class{constructor({restrictedMethods:e,store:t}){this.restrictedMethods=e,this.store=t}getActivityLog(){return this.store.getState()[a.LOG_STORE_KEY]||[]}updateActivityLog(e){this.store.updateState({[a.LOG_STORE_KEY]:e})}getHistory(){return this.store.getState()[a.HISTORY_STORE_KEY]||{}}updateHistory(e){this.store.updateState({[a.HISTORY_STORE_KEY]:e})}updateAccountsHistory(e,t){if(0===t.length)return;const r=u(t,Date.now());this.commitNewHistory(e,{eth_accounts:{accounts:r}})}createMiddleware(){return(e,t,r,n)=>{let i,o;const{origin:s,method:c}=e,u=c.startsWith(a.WALLET_PREFIX);if(a.LOG_IGNORE_METHODS.includes(c)||!u&&!this.restrictedMethods.includes(c)){if("eth_requestAccounts"!==c)return r();i=this.logRequest(e,u),o=["eth_accounts"]}else i=this.logRequest(e,u),c===a.WALLET_PREFIX+"requestPermissions"&&(o=this.getRequestedMethods(e));r(e=>{const r=Date.now();this.logResponse(i,t,r),o&&!t.error&&t.result&&this.logPermissionsHistory(o,s,t.result,r,"eth_requestAccounts"===c),e()})}}logRequest(e,t){const r={id:e.id,method:e.method,methodType:t?a.LOG_METHOD_TYPES.internal:a.LOG_METHOD_TYPES.restricted,origin:e.origin,request:(0,o.cloneDeep)(e),requestTime:Date.now(),response:null,responseTime:null,success:null};return this.commitNewActivity(r),r}logResponse(e,t,r){e&&t&&(e.response=(0,o.cloneDeep)(t),e.responseTime=r,e.success=!t.error)}commitNewActivity(e){const t=this.getActivityLog();t.push(e),t.length>a.LOG_LIMIT&&t.shift(),this.updateActivityLog(t)}logPermissionsHistory(e,t,r,n,i){let o,a;i?(o=r,a={eth_accounts:{accounts:u(o,n),lastApproved:n}}):a=r.map(e=>("eth_accounts"===e.parentCapability&&(o=this.getAccountsFromPermission(e)),e.parentCapability)).reduce((t,r)=>{if(e.includes(r))if("eth_accounts"===r){const e=u(o,n);t[r]={lastApproved:n,accounts:e}}else t[r]={lastApproved:n};return t},{}),Object.keys(a).length>0&&this.commitNewHistory(t,a)}commitNewHistory(e,t){const r=this.getHistory(),n=c({},r[e],{},t),i=r[e]&&r[e].eth_accounts,o=t.eth_accounts;if(i&&o){const e=o.lastApproved||i.lastApproved;n.eth_accounts={lastApproved:e,accounts:c({},i.accounts,{},o.accounts)}}r[e]=n,this.updateHistory(r)}getRequestedMethods(e){return e.params&&e.params[0]&&"object"==typeof e.params[0]&&!Array.isArray(e.params[0])?Object.keys(e.params[0]):null}getAccountsFromPermission(e){if("eth_accounts"!==e.parentCapability||!e.caveats)return[];const t=new Set;for(const r of e.caveats)if(r.name===a.CAVEAT_NAMES.exposedAccounts&&Array.isArray(r.value))for(const e of r.value)t.add(e);return[...t]}}},{"./enums":23,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,lodash:869}],26:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({addDomainMetadata:e,getAccounts:t,getUnlockPromise:r,hasPermission:n,notifyAccountsChanged:a,requestAccountsPermission:s}){let c=!1;return(0,i.default)(async(i,u,l)=>{var f,d;let h;switch(i.method){case"eth_accounts":return void(u.result=await t());case"eth_requestAccounts":if(c)return void(u.error=o.ethErrors.rpc.resourceUnavailable("Already processing eth_requestAccounts. Please wait."));n("eth_accounts")&&(c=!0,await r(),c=!1);let l=await t();if(l.length>0)return void(u.result=l);try{await s()}catch(e){return void(u.error=e)}return l=await t(),void(l.length>0?u.result=l:u.error=o.ethErrors.rpc.internal("Accounts unexpectedly unavailable. Please report this bug."));case"wallet_sendDomainMetadata":return"string"==typeof(null===(f=i.domainMetadata)||void 0===f?void 0:f.name)&&e(i.origin,i.domainMetadata),void(u.result=!0);case"wallet_requestPermissions":"eth_accounts"in(null===(d=i.params)||void 0===d?void 0:d[0])&&(h=async()=>{if(Array.isArray(u.result))for(const e of u.result)"eth_accounts"===e.parentCapability&&a(await t())})}await l(),h&&h()})};var i=n(e("json-rpc-engine/src/createAsyncMiddleware")),o=e("eth-json-rpc-errors")},{"@babel/runtime/helpers/interopRequireDefault":135,"eth-json-rpc-errors":601,"json-rpc-engine/src/createAsyncMiddleware":817}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({getIdentities:e,getKeyringAccounts:t}){return{eth_accounts:{method:async(r,n,i,o)=>{try{const r=await t(),i=e();n.result=r.sort((e,t)=>{if(!i[e])throw new Error("Missing identity for address "+e);if(!i[t])throw new Error("Missing identity for address "+t);return i[e].lastSelected===i[t].lastSelected?0:void 0===i[e].lastSelected?1:void 0===i[t].lastSelected?-1:i[t].lastSelected-i[e].lastSelected}),o()}catch(e){n.error=e,o(e)}}}}}},{}],28:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("obs-store")),a=e("./permissions"),s=e("eth-sig-util"),c=e("ethereumjs-util");function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.default=class{constructor(e={}){const r=Object.assign({frequentRpcListDetail:[],accountTokens:{},assetImages:{},tokens:[],suggestedTokens:{},useBlockie:!1,useNonceField:!1,usePhishDetect:!0,featureFlags:{showIncomingTransactions:!0,transactionTime:!1},knownMethodData:{},participateInMetaMetrics:null,firstTimeFlowType:null,currentLocale:e.initLangCode,identities:{},lostIdentities:{},forgottenPassword:!1,preferences:{autoLockTimeLimit:void 0,showFiatInTestnets:!1,useNativeCurrencyAsPrimaryCurrency:!0},completedOnboarding:!1,metaMetricsId:null,metaMetricsSendCount:0,ipfsGateway:"dweb.link"},e.initState);this.diagnostics=e.diagnostics,this.network=e.network,this.store=new o.default(r),this.store.setMaxListeners(12),this.openPopup=e.openPopup,this._subscribeProviderType(),t.setPreference=(e,t)=>this.setFeatureFlag(e,t)}setPasswordForgotten(e){this.store.updateState({forgottenPassword:e})}setUseBlockie(e){this.store.updateState({useBlockie:e})}setUseNonceField(e){this.store.updateState({useNonceField:e})}setUsePhishDetect(e){this.store.updateState({usePhishDetect:e})}setParticipateInMetaMetrics(e){this.store.updateState({participateInMetaMetrics:e});let t=null;return e&&!this.store.getState().metaMetricsId?(t=(0,c.bufferToHex)((0,c.sha3)(String(Date.now())+String(Math.round(Math.random()*Number.MAX_SAFE_INTEGER)))),this.store.updateState({metaMetricsId:t})):!1===e&&this.store.updateState({metaMetricsId:t}),t}getParticipateInMetaMetrics(){return this.store.getState().participateInMetaMetrics}setMetaMetricsSendCount(e){this.store.updateState({metaMetricsSendCount:e})}setFirstTimeFlowType(e){this.store.updateState({firstTimeFlowType:e})}getSuggestedTokens(){return this.store.getState().suggestedTokens}getAssetImages(){return this.store.getState().assetImages}addSuggestedERC20Asset(e){this._validateERC20AssetParams(e);const t=this.getSuggestedTokens(),{rawAddress:r,symbol:n,decimals:i,image:o}=e,a=(0,s.normalize)(r),c={address:a,symbol:n,decimals:i,image:o};t[a]=c,this.store.updateState({suggestedTokens:t})}addKnownMethodData(e,t){const r=this.store.getState().knownMethodData;r[e]=t,this.store.updateState({knownMethodData:r})}async requestWatchAsset(e,t,r,n){if("metamask_watchAsset"===e.method||e.method===(0,a.addInternalMethodPrefix)("watchAsset")){const{type:r,options:i}=e.params;switch(r){case"ERC20":const e=await this._handleWatchAssetERC20(i);return void(e instanceof Error?n(e):(t.result=e,n()));default:return void n(new Error(`Asset of type ${r} not supported`))}}r()}setCurrentLocale(e){const t=["ar","dv","fa","he","ku"].includes(e)?"rtl":"auto";return this.store.updateState({currentLocale:e,textDirection:t}),t}setAddresses(e){const t=this.store.getState().identities,r=this.store.getState().accountTokens,n=e.reduce((e,r,n)=>{const i=t[r]||{};return e[r]=l({name:"Account "+(n+1),address:r},i),e},{}),i=e.reduce((e,t)=>{const n=r[t]||{};return e[t]=n,e},{});this.store.updateState({identities:n,accountTokens:i})}removeAddress(e){const t=this.store.getState().identities,r=this.store.getState().accountTokens;if(!t[e])throw new Error(e+" can't be deleted cause it was not found");if(delete t[e],delete r[e],this.store.updateState({identities:t,accountTokens:r}),e===this.getSelectedAddress()){const e=Object.keys(t)[0];this.setSelectedAddress(e)}return e}addAddresses(e){const t=this.store.getState().identities,r=this.store.getState().accountTokens;e.forEach(e=>{if(t[e])return;const n=Object.keys(t).length;r[e]={},t[e]={name:"Account "+(n+1),address:e}}),this.store.updateState({identities:t,accountTokens:r})}syncAddresses(e){if(!Array.isArray(e)||0===e.length)throw new Error("Expected non-empty array of addresses.");const{identities:t,lostIdentities:r}=this.store.getState(),n={};Object.keys(t).forEach(r=>{e.includes(r)||(n[r]=t[r],delete t[r])}),Object.keys(n).length>0&&(this.diagnostics&&this.diagnostics.reportOrphans(n),Object.keys(n).forEach(e=>{r[e]=n[e]})),this.store.updateState({identities:t,lostIdentities:r}),this.addAddresses(e);let i=this.getSelectedAddress();return e.includes(i)||(i=e[0],this.setSelectedAddress(i)),i}removeSuggestedTokens(){return new Promise(e=>{this.store.updateState({suggestedTokens:{}}),e({})})}setSelectedAddress(e){const t=(0,s.normalize)(e);this._updateTokens(t);const{identities:r,tokens:n}=this.store.getState(),i=r[t];if(!i)throw new Error(`Identity for '${t} not found`);return i.lastSelected=Date.now(),this.store.updateState({identities:r,selectedAddress:t}),Promise.resolve(n)}getSelectedAddress(){return this.store.getState().selectedAddress}async addToken(e,t,r,n){const i=(0,s.normalize)(e),o={address:i,symbol:t,decimals:r},a=this.store.getState().tokens,c=this.getAssetImages(),u=a.find(e=>e.address===i),l=a.indexOf(u);return u?a[l]=o:a.push(o),c[i]=n,this._updateAccountTokens(a,c),Promise.resolve(a)}removeToken(e){const t=this.store.getState().tokens,r=this.getAssetImages(),n=t.filter(t=>t.address!==e);return delete r[e],this._updateAccountTokens(n,r),Promise.resolve(n)}getTokens(){return this.store.getState().tokens}setAccountLabel(e,t){if(!e)throw new Error("setAccountLabel requires a valid address, got "+String(e));const r=(0,s.normalize)(e),{identities:n}=this.store.getState();return n[r]=n[r]||{},n[r].name=t,this.store.updateState({identities:n}),Promise.resolve(t)}updateRpc(e){const t=this.getFrequentRpcListDetail(),r=t.findIndex(t=>t.rpcUrl===e.rpcUrl);if(!(r>-1)){const{rpcUrl:t,chainId:r,ticker:n,nickname:i,rpcPrefs:o={}}=e;return this.addToFrequentRpcList(t,r,n,i,o)}{const n=l({},t[r],{},e);t[r]=n,this.store.updateState({frequentRpcListDetail:t})}return Promise.resolve(t)}addToFrequentRpcList(e,t,r="ETH",n="",i={}){const o=this.getFrequentRpcListDetail(),a=o.findIndex(t=>t.rpcUrl===e);if(-1!==a&&o.splice(a,1),"http://localhost:8545"!==e){let a;t&&!Number.isNaN(parseInt(t))&&(a=t),o.push({rpcUrl:e,chainId:a,ticker:r,nickname:n,rpcPrefs:i})}return this.store.updateState({frequentRpcListDetail:o}),Promise.resolve(o)}removeFromFrequentRpcList(e){const t=this.getFrequentRpcListDetail(),r=t.findIndex(t=>t.rpcUrl===e);return-1!==r&&t.splice(r,1),this.store.updateState({frequentRpcListDetail:t}),Promise.resolve(t)}getFrequentRpcListDetail(){return this.store.getState().frequentRpcListDetail}setFeatureFlag(e,t){const r=l({},this.store.getState().featureFlags,{[e]:t});return this.store.updateState({featureFlags:r}),Promise.resolve(r)}setPreference(e,t){const r=l({},this.getPreferences(),{[e]:t});return this.store.updateState({preferences:r}),Promise.resolve(r)}getPreferences(){return this.store.getState().preferences}completeOnboarding(){return this.store.updateState({completedOnboarding:!0}),Promise.resolve(!0)}getIpfsGateway(){return this.store.getState().ipfsGateway}setIpfsGateway(e){return this.store.updateState({ipfsGateway:e}),Promise.resolve(e)}_subscribeProviderType(){this.network.providerStore.subscribe(()=>{const{tokens:e}=this._getTokenRelatedStates();this.store.updateState({tokens:e})})}_updateAccountTokens(e,t){const{accountTokens:r,providerType:n,selectedAddress:i}=this._getTokenRelatedStates();r[i][n]=e,this.store.updateState({accountTokens:r,tokens:e,assetImages:t})}_updateTokens(e){const{tokens:t}=this._getTokenRelatedStates(e);this.store.updateState({tokens:t})}_getTokenRelatedStates(e){const t=this.store.getState().accountTokens;e||(e=this.store.getState().selectedAddress);const r=this.network.providerStore.getState().type;return e in t||(t[e]={}),r in t[e]||(t[e][r]=[]),{tokens:t[e][r],accountTokens:t,providerType:r,selectedAddress:e}}async _handleWatchAssetERC20(e){const{address:t,symbol:r,decimals:n,image:i}=e,o=t;try{this._validateERC20AssetParams({rawAddress:o,symbol:r,decimals:n})}catch(e){return e}const a={rawAddress:o,decimals:n,symbol:r,image:i};return this.addSuggestedERC20Asset(a),this.openPopup().then(()=>this.getTokens().filter(e=>e.address===(0,s.normalize)(o)).length>0)}_validateERC20AssetParams(e){const{rawAddress:t,symbol:r,decimals:n}=e;if(!t||!r||void 0===n)throw new Error("Cannot suggest token without address, symbol, and decimals");if(!(r.length<7))throw new Error(`Invalid symbol ${r} more than six characters`);const i=parseInt(n,10);if(isNaN(i)||i>36||i<0)throw new Error(`Invalid decimals ${n} must be at least 0, and not over 36`);if(!(0,c.isValidAddress)(t))throw new Error("Invalid address "+t)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./permissions":24,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"eth-sig-util":694,"ethereumjs-util":717,"obs-store":898}],29:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("obs-store")),a=n(e("loglevel")),s=n(e("../migrations")),c=n(e("../lib/migrator")),u=n(e("json-rpc-engine")),l=n(e("eth-json-rpc-middleware/providerFromEngine")),f=n(e("./network/createMetamaskMiddleware")),d=n(e("../lib/createOriginMiddleware"));function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const m=e("3box");r.default=class{constructor(e={}){const{preferencesController:t,keyringController:r,addressBookController:n,version:i,getKeyringControllerState:a}=e;this.preferencesController=t,this.addressBookController=n,this.keyringController=r,this.provider=this._createProvider({version:i,getAccounts:async({origin:e})=>{if("3Box"!==e)return[];const t=a().isUnlocked,r=await this.keyringController.getAccounts();return t&&r[0]?[await this.keyringController.getAppKeyAddress(r[0],"wallet://3box.metamask.io")]:[]},processPersonalMessage:async e=>{const t=await this.keyringController.getAccounts();return r.signPersonalMessage(p({},e,{from:t[0]}),{withAppKeyOrigin:"wallet://3box.metamask.io"})}});const c=p({threeBoxSyncingAllowed:!1,showRestorePrompt:!0,threeBoxLastUpdated:0},e.initState,{threeBoxAddress:null,threeBoxSynced:!1,threeBoxDisabled:!1});this.store=new o.default(c),this.registeringUpdates=!1,this.lastMigration=s.default.sort((e,t)=>e.version-t.version).slice(-1)[0],c.threeBoxSyncingAllowed&&this.init()}async init(){const e=await this.keyringController.getAccounts();this.address=e[0],!this.address||this.box&&this.store.getState().threeBoxSynced||await this.new3Box()}async _update3Box(){try{const{threeBoxSyncingAllowed:e,threeBoxSynced:t}=this.store.getState();if(e&&t){const e={preferences:this.preferencesController.store.getState(),addressBook:this.addressBookController.state,lastUpdated:Date.now(),lastMigration:this.lastMigration};await this.space.private.set("metamaskBackup",JSON.stringify(e)),await this.setShowRestorePromptToFalse()}}catch(e){console.error(e)}}_createProvider(e){const t=(0,f.default)(e),r=new u.default;return r.push((0,d.default)({origin:"3Box"})),r.push(t),(0,l.default)(r)}_waitForOnSyncDone(){return new Promise(e=>{this.box.onSyncDone(()=>(a.default.debug("3Box box sync done"),e()))})}async new3Box(){const e=await this.keyringController.getAccounts();let t;this.address=await this.keyringController.getAppKeyAddress(e[0],"wallet://3box.metamask.io");try{const e=await m.getConfig(this.address);t=e.spaces&&e.spaces.metamask}catch(e){if(!e.message.match(/^Error: Invalid response \(404\)/))throw e;t=!1}if(this.getThreeBoxSyncingState()||t){this.store.updateState({threeBoxSynced:!1});let t=!1;const r=setTimeout(()=>{a.default.error("3Box sync timed out after 60000 ms"),t=!0,this.store.updateState({threeBoxDisabled:!0,threeBoxSyncingAllowed:!1})},6e4);try{this.box=await m.openBox(this.address,this.provider),await this._waitForOnSyncDone(),this.space=await this.box.openSpace("metamask",{onSyncDone:async()=>{const e={threeBoxSynced:!0,threeBoxAddress:this.address};t&&(a.default.info("3Box sync completed after timeout; no longer disabled"),e.threeBoxDisabled=!1),clearTimeout(r),this.store.updateState(e),a.default.debug("3Box space sync done")}})}catch(e){throw console.error(e),e}}}async getLastUpdated(){const e=await this.space.private.get("metamaskBackup");return JSON.parse(e||"{}").lastUpdated}async migrateBackedUpState(e){const t=new c.default({migrations:s.default}),r={PreferencesController:e.preferences,AddressBookController:e.addressBook},n=t.generateInitialState(r),i=await t.migrateData(n);return{preferences:i.PreferencesController,addressBook:i.AddressBookController}}async restoreFromThreeBox(){const e=await this.space.private.get("metamaskBackup"),{preferences:t,addressBook:r}=await this.migrateBackedUpState(e);this.store.updateState({threeBoxLastUpdated:e.lastUpdated}),t&&this.preferencesController.store.updateState(JSON.parse(t)),r&&this.addressBookController.update(JSON.parse(r),!0),this.setShowRestorePromptToFalse()}turnThreeBoxSyncingOn(){this._registerUpdates()}turnThreeBoxSyncingOff(){this.box.logout()}setShowRestorePromptToFalse(){this.store.updateState({showRestorePrompt:!1})}setThreeBoxSyncingPermission(e){this.store.getState().threeBoxDisabled||(this.store.updateState({threeBoxSyncingAllowed:e}),e&&this.box&&this.turnThreeBoxSyncingOn(),!e&&this.box&&this.turnThreeBoxSyncingOff())}getThreeBoxSyncingState(){return this.store.getState().threeBoxSyncingAllowed}_registerUpdates(){if(!this.registeringUpdates){const e=this._update3Box.bind(this);this.preferencesController.store.subscribe(e);const t=this._update3Box.bind(this);this.addressBookController.subscribe(t),this.registeringUpdates=!0}}}},{"../../../development/mock-3box":127,"../lib/createOriginMiddleware":47,"../lib/migrator":64,"../migrations":125,"./network/createMetamaskMiddleware":16,"3box":"3box","@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"eth-json-rpc-middleware/providerFromEngine":658,"json-rpc-engine":819,loglevel:872,"obs-store":898}],30:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("obs-store")),o=n(e("loglevel")),a=e("eth-sig-util"),s=n(e("ethereumjs-util"));r.default=class{constructor({currency:e,preferences:t}={}){this.store=new i.default,this.currency=e,this.preferences=t}async updateExchangeRates(){const e={},t=this.currency?this.currency.state.nativeCurrency.toLowerCase():"eth",r=`contract_addresses=${this._tokens.map(e=>e.address).join(",")}&vs_currencies=${t}`;if(this._tokens.length>0)try{const n=await window.fetch("https://api.coingecko.com/api/v3/simple/token_price/ethereum?"+r),i=await n.json();this._tokens.forEach(r=>{const n=i[r.address.toLowerCase()]||i[s.default.toChecksumAddress(r.address)];e[(0,a.normalize)(r.address)]=n?n[t]:0})}catch(e){o.default.warn("MetaMask - TokenRatesController exchange rate fetch failed.",e)}this.store.putState({contractExchangeRates:e})}set preferences(e){this._preferences&&this._preferences.unsubscribe(),e&&(this._preferences=e,this.tokens=e.getState().tokens,e.subscribe(({tokens:e=[]})=>{this.tokens=e}))}set tokens(e){this._tokens=e,this.updateExchangeRates()}start(e=18e4){this._handle&&clearInterval(this._handle),e&&(this._handle=setInterval(()=>{this.updateExchangeRates()},e),this.updateExchangeRates())}stop(){this._handle&&clearInterval(this._handle)}}},{"@babel/runtime/helpers/interopRequireDefault":135,"eth-sig-util":694,"ethereumjs-util":717,loglevel:872,"obs-store":898}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TRANSACTION_STATUS_CONFIRMED=r.TRANSACTION_STATUS_APPROVED=r.TRANSACTION_TYPE_STANDARD=r.TRANSACTION_TYPE_RETRY=r.TRANSACTION_TYPE_CANCEL=void 0,r.TRANSACTION_TYPE_CANCEL="cancel",r.TRANSACTION_TYPE_RETRY="retry",r.TRANSACTION_TYPE_STANDARD="standard",r.TRANSACTION_STATUS_APPROVED="approved",r.TRANSACTION_STATUS_CONFIRMED="confirmed"},{}],32:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),i=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=i(e("@babel/runtime/helpers/defineProperty")),a=i(e("safe-event-emitter")),s=i(e("obs-store")),c=i(e("ethereumjs-util")),u=i(e("ethereumjs-tx")),l=i(e("ethjs-query")),f=e("eth-json-rpc-errors"),d=i(e("human-standard-token-abi")),h=i(e("abi-decoder")),p=e("../../../../ui/app/helpers/constants/transactions.js"),m=i(e("./tx-state-manager")),y=i(e("./tx-gas-utils")),g=i(e("./pending-tx-tracker")),b=i(e("nonce-tracker")),v=n(e("./lib/util")),w=i(e("../../lib/cleanErrorStack")),_=i(e("loglevel")),x=e("./enums"),k=e("../../lib/util"),S=e("../../../../ui/app/helpers/constants/error-keys");function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}h.default.addABI(d.default);class T extends a.default{constructor(e){super(),this.networkStore=e.networkStore||new s.default({}),this.preferencesStore=e.preferencesStore||new s.default({}),this.provider=e.provider,this.getPermittedAccounts=e.getPermittedAccounts,this.blockTracker=e.blockTracker,this.signEthTx=e.signTransaction,this.inProcessOfSigning=new Set,this.memStore=new s.default({}),this.query=new l.default(this.provider),this.txGasUtil=new y.default(this.provider),this._mapMethods(),this.txStateManager=new m.default({initState:e.initState,txHistoryLimit:e.txHistoryLimit,getNetwork:this.getNetwork.bind(this)}),this._onBootCleanUp(),this.store=this.txStateManager.store,this.nonceTracker=new b.default({provider:this.provider,blockTracker:this.blockTracker,getPendingTransactions:this.txStateManager.getPendingTransactions.bind(this.txStateManager),getConfirmedTransactions:this.txStateManager.getConfirmedTransactions.bind(this.txStateManager)}),this.pendingTxTracker=new g.default({provider:this.provider,nonceTracker:this.nonceTracker,publishTransaction:e=>this.query.sendRawTransaction(e),getPendingTransactions:()=>[...this.txStateManager.getPendingTransactions(),...this.txStateManager.getApprovedTransactions()],approveTransaction:this.approveTransaction.bind(this),getCompletedTransactions:this.txStateManager.getConfirmedTransactions.bind(this.txStateManager)}),this.txStateManager.store.subscribe(()=>this.emit("update:badge")),this._setupListeners(),this._updateMemstore(),this.txStateManager.store.subscribe(()=>this._updateMemstore()),this.networkStore.subscribe(()=>{this._onBootCleanUp(),this._updateMemstore()}),this._updatePendingTxsAfterFirstBlock()}getChainId(){const e=this.networkStore.getState(),t=parseInt(e);return Number.isNaN(t)?0:t}addTx(e){this.txStateManager.addTx(e),this.emit(e.id+":unapproved",e)}wipeTransactions(e){this.txStateManager.wipeTransactions(e)}async newUnapprovedTransaction(e,t={}){_.default.debug("MetaMaskController newUnapprovedTransaction "+JSON.stringify(e));const r=await this.addUnapprovedTransaction(e,t.origin);return new Promise((e,t)=>{this.txStateManager.once(r.id+":finished",r=>{switch(r.status){case"submitted":return e(r.hash);case"rejected":return t((0,w.default)(f.ethErrors.provider.userRejectedRequest("MetaMask Tx Signature: User denied transaction signature.")));case"failed":return t((0,w.default)(f.ethErrors.rpc.internal(r.err.message)));default:return t((0,w.default)(f.ethErrors.rpc.internal("MetaMask Tx Signature: Unknown problem: "+JSON.stringify(r.txParams))))}})})}async addUnapprovedTransaction(e,t){const r=v.normalizeTxParams(e);v.validateTxParams(r);let n=this.txStateManager.generateTxMeta({txParams:r,type:x.TRANSACTION_TYPE_STANDARD});if("metamask"===t){if(r.from!==this.getSelectedAddress())throw f.ethErrors.rpc.internal({message:"Internally initiated transaction is using invalid account.",data:{origin:t,fromAddress:r.from,selectedAddress:this.getSelectedAddress()}})}else if(!(await this.getPermittedAccounts(t)).includes(r.from))throw f.ethErrors.provider.unauthorized({data:{origin:t}});n.origin=t;const{transactionCategory:i,getCodeResponse:o}=await this._determineTransactionCategory(e);n.transactionCategory=i,n.txParams.value=n.txParams.value?c.default.addHexPrefix(n.txParams.value):"0x0",this.addTx(n),this.emit("newUnapprovedTx",n);try{n=await this.addTxGasDefaults(n,o)}catch(e){throw _.default.warn(e),n=this.txStateManager.getTx(n.id),n.loadingDefaults=!1,this.txStateManager.updateTx(n,"Failed to calculate gas defaults."),e}return n.loadingDefaults=!1,this.txStateManager.updateTx(n,"Added new unapproved transaction."),n}async addTxGasDefaults(e,t){const r=await this._getDefaultGasPrice(e),{gasLimit:n,simulationFails:i}=await this._getDefaultGasLimit(e,t);return e=this.txStateManager.getTx(e.id),i&&(e.simulationFails=i),r&&!e.txParams.gasPrice&&(e.txParams.gasPrice=r),n&&!e.txParams.gas&&(e.txParams.gas=n),e}async _getDefaultGasPrice(e){if(e.txParams.gasPrice)return;const t=await this.query.gasPrice();return c.default.addHexPrefix(t.toString(16))}async _getDefaultGasLimit(e,t){if(e.txParams.gas)return{};if(e.txParams.to&&e.transactionCategory===p.SEND_ETHER_ACTION_KEY){if(e.txParams.data){const e=new Error("TxGasUtil - Trying to call a function on a non-contract address");throw e.errorKey=S.TRANSACTION_NO_CONTRACT_ERROR_KEY,e.getCodeResponse=t,e}return{gasLimit:"0x5208"}}const{blockGasLimit:r,estimatedGasHex:n,simulationFails:i}=await this.txGasUtil.analyzeGasUsage(e);return{gasLimit:this.txGasUtil.addGasBuffer(c.default.addHexPrefix(n),r),simulationFails:i}}async createCancelTransaction(e,t){const r=this.txStateManager.getTx(e),{txParams:n}=r,{gasPrice:i,from:o,nonce:a}=n,s=t||(0,k.bnToHex)((0,k.BnMultiplyByFraction)((0,k.hexToBn)(i),11,10)),c=this.txStateManager.generateTxMeta({txParams:{from:o,to:o,nonce:a,gas:"0x5208",value:"0x0",gasPrice:s},lastGasPrice:i,loadingDefaults:!1,status:x.TRANSACTION_STATUS_APPROVED,type:x.TRANSACTION_TYPE_CANCEL});return this.addTx(c),await this.approveTransaction(c.id),c}async createSpeedUpTransaction(e,t,r){const n=this.txStateManager.getTx(e),{txParams:i}=n,{gasPrice:o}=i,a=t||(0,k.bnToHex)((0,k.BnMultiplyByFraction)((0,k.hexToBn)(o),11,10)),s=this.txStateManager.generateTxMeta({txParams:A({},i,{gasPrice:a}),lastGasPrice:o,loadingDefaults:!1,status:x.TRANSACTION_STATUS_APPROVED,type:x.TRANSACTION_TYPE_RETRY});return r&&(s.txParams.gas=r),this.addTx(s),await this.approveTransaction(s.id),s}async updateTransaction(e){this.txStateManager.updateTx(e,"confTx: user updated transaction")}async updateAndApproveTransaction(e){this.txStateManager.updateTx(e,"confTx: user approved transaction"),await this.approveTransaction(e.id)}async approveTransaction(e){if(this.inProcessOfSigning.has(e))return;let t;this.inProcessOfSigning.add(e);try{this.txStateManager.setTxStatusApproved(e);const r=this.txStateManager.getTx(e),n=r.txParams.from;let{customNonceValue:i}=r;i=Number(i),t=await this.nonceTracker.getNonceLock(n);const o=r.lastGasPrice?r.txParams.nonce:t.nextNonce,a=0===i?i:i||o;r.txParams.nonce=c.default.addHexPrefix(a.toString(16)),r.nonceDetails=t.nonceDetails,i&&(r.nonceDetails.customNonceValue=i),this.txStateManager.updateTx(r,"transactions#approveTransaction");const s=await this.signTransaction(e);await this.publishTransaction(e,s),t.releaseLock()}catch(r){try{this.txStateManager.setTxStatusFailed(e,r)}catch(e){_.default.error(e)}throw t&&t.releaseLock(),r}finally{this.inProcessOfSigning.delete(e)}}async signTransaction(e){const t=this.txStateManager.getTx(e),r=this.getChainId(),n=Object.assign({},t.txParams,{chainId:r}),i=n.from,o=new u.default(n);return await this.signEthTx(o,i),t.r=c.default.bufferToHex(o.r),t.s=c.default.bufferToHex(o.s),t.v=c.default.bufferToHex(o.v),this.txStateManager.updateTx(t,"transactions#signTransaction: add r, s, v values"),this.txStateManager.setTxStatusSigned(t.id),c.default.bufferToHex(o.serialize())}async publishTransaction(e,t){const r=this.txStateManager.getTx(e);let n;r.rawTx=t,this.txStateManager.updateTx(r,"transactions#publishTransaction");try{n=await this.query.sendRawTransaction(t)}catch(e){if(!e.message.toLowerCase().includes("known transaction"))throw e;n=c.default.sha3(c.default.addHexPrefix(t)).toString("hex"),n=c.default.addHexPrefix(n)}this.setTxHash(e,n),this.txStateManager.setTxStatusSubmitted(e)}async confirmTransaction(e,t){const r=this.txStateManager.getTx(e);if(r){try{const e="string"!=typeof t.gasUsed?t.gasUsed.toString(16):t.gasUsed;r.txReceipt=A({},t,{gasUsed:e}),this.txStateManager.updateTx(r,"transactions#confirmTransaction - add txReceipt")}catch(e){_.default.error(e)}this.txStateManager.setTxStatusConfirmed(e),this._markNonceDuplicatesDropped(e)}}async cancelTransaction(e){this.txStateManager.setTxStatusRejected(e)}setTxHash(e,t){const r=this.txStateManager.getTx(e);r.hash=t,this.txStateManager.updateTx(r,"transactions#setTxHash")}_mapMethods(){this.getState=()=>this.memStore.getState(),this.getNetwork=()=>this.networkStore.getState(),this.getSelectedAddress=()=>this.preferencesStore.getState().selectedAddress,this.getUnapprovedTxCount=()=>Object.keys(this.txStateManager.getUnapprovedTxList()).length,this.getPendingTxCount=e=>this.txStateManager.getPendingTransactions(e).length,this.getFilteredTxList=e=>this.txStateManager.getFilteredTxList(e)}async _updatePendingTxsAfterFirstBlock(){await this.blockTracker.getLatestBlock(),await this.pendingTxTracker.updatePendingTxs()}_onBootCleanUp(){this.txStateManager.getFilteredTxList({status:"unapproved",loadingDefaults:!0}).forEach(e=>{this.addTxGasDefaults(e).then(e=>{e.loadingDefaults=!1,this.txStateManager.updateTx(e,"transactions: gas estimation for tx on boot")}).catch(t=>{const r=this.txStateManager.getTx(e.id);r.loadingDefaults=!1,this.txStateManager.updateTx(r,"failed to estimate gas during boot cleanup."),this.txStateManager.setTxStatusFailed(r.id,t)})}),this.txStateManager.getFilteredTxList({status:x.TRANSACTION_STATUS_APPROVED}).forEach(e=>{const t=new Error('Transaction found as "approved" during boot - possibly stuck during signing');this.txStateManager.setTxStatusFailed(e.id,t)})}_setupListeners(){this.txStateManager.on("tx:status-update",this.emit.bind(this,"tx:status-update")),this._setupBlockTrackerListener(),this.pendingTxTracker.on("tx:warning",e=>{this.txStateManager.updateTx(e,"transactions/pending-tx-tracker#event: tx:warning")}),this.pendingTxTracker.on("tx:failed",this.txStateManager.setTxStatusFailed.bind(this.txStateManager)),this.pendingTxTracker.on("tx:confirmed",(e,t)=>this.confirmTransaction(e,t)),this.pendingTxTracker.on("tx:dropped",this.txStateManager.setTxStatusDropped.bind(this.txStateManager)),this.pendingTxTracker.on("tx:block-update",(e,t)=>{e.firstRetryBlockNumber||(e.firstRetryBlockNumber=t,this.txStateManager.updateTx(e,"transactions/pending-tx-tracker#event: tx:block-update"))}),this.pendingTxTracker.on("tx:retry",e=>{"retryCount"in e||(e.retryCount=0),e.retryCount++,this.txStateManager.updateTx(e,"transactions/pending-tx-tracker#event: tx:retry")})}async _determineTransactionCategory(e){const{data:t,to:r}=e,{name:n}=t&&h.default.decodeMethod(t)||{},i=[p.TOKEN_METHOD_APPROVE,p.TOKEN_METHOD_TRANSFER,p.TOKEN_METHOD_TRANSFER_FROM].find(e=>e===n&&n.toLowerCase());let o,a;if(e.data&&i?o=i:e.data&&!r&&(o=p.DEPLOY_CONTRACT_ACTION_KEY),!o){try{a=await this.query.getCode(r)}catch(e){a=null,_.default.warn(e)}o=a&&"0x"!==a&&"0x0"!==a?p.CONTRACT_INTERACTION_KEY:p.SEND_ETHER_ACTION_KEY}return{transactionCategory:o,getCodeResponse:a}}_markNonceDuplicatesDropped(e){const t=this.txStateManager.getTx(e),{nonce:r,from:n}=t.txParams,i=this.txStateManager.getFilteredTxList({nonce:r,from:n});i.length&&i.forEach(r=>{r.id!==e&&(r.replacedBy=t.hash,this.txStateManager.updateTx(t,"transactions/pending-tx-tracker#event: tx:confirmed reference to confirmed txHash with same nonce"),this.txStateManager.setTxStatusDropped(r.id))})}_setupBlockTrackerListener(){let e=!1;const t=this._onLatestBlock.bind(this),r=this.blockTracker,n=this.txStateManager;function i(){const i=n.getPendingTransactions();!e&&i.length>0?(r.on("latest",t),e=!0):e&&!i.length&&(r.removeListener("latest",t),e=!1)}n.on("tx:status-update",i),i()}async _onLatestBlock(e){try{await this.pendingTxTracker.updatePendingTxs()}catch(e){_.default.error(e)}try{await this.pendingTxTracker.resubmitPendingTxs(e)}catch(e){_.default.error(e)}}_updateMemstore(){const e=this.txStateManager.getUnapprovedTxList(),t=this.txStateManager.getTxList(100);this.memStore.updateState({unapprovedTxs:e,currentNetworkTxList:t})}}r.default=T},{"../../../../ui/app/helpers/constants/error-keys":1269,"../../../../ui/app/helpers/constants/transactions.js":1271,"../../lib/cleanErrorStack":43,"../../lib/util":76,"./enums":31,"./lib/util":34,"./pending-tx-tracker":35,"./tx-gas-utils":36,"./tx-state-manager":37,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/interopRequireWildcard":136,"abi-decoder":275,"eth-json-rpc-errors":601,"ethereumjs-tx":712,"ethereumjs-util":717,"ethjs-query":751,"human-standard-token-abi":801,loglevel:872,"nonce-tracker":892,"obs-store":898,"safe-event-emitter":1038}],33:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.migrateFromSnapshotsToDiffs=function(e){return e.map((t,r)=>0===r?t:c(e[r-1],t))},r.generateHistoryEntry=c,r.replayHistory=function(e){return(0,a.cloneDeep)(e).reduce((e,t)=>o.default.applyPatch(e,t).newDocument)},r.snapshotFromTxMeta=function(e){const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete t.history,(0,a.cloneDeep)(t)};var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("fast-json-patch")),a=e("lodash");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e,t,r){const n=o.default.compare(e,t);return n[0]&&(r&&(n[0].note=r),n[0].timestamp=Date.now()),n}},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"fast-json-patch":779,lodash:869}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeTxParams=function(e,t=!0){const r={};for(const n in i)e[n]&&(r[n]=i[n](e[n],t));return r},r.validateTxParams=function(e){if(o(e),a(e),"value"in e){const t=e.value.toString();if(t.includes("-"))throw new Error(`Invalid transaction value of ${e.value} not a positive number.`);if(t.includes("."))throw new Error(`Invalid transaction value of ${e.value} number must be in wei`)}},r.validateFrom=o,r.validateRecipient=a,r.getFinalStates=function(){return["rejected","confirmed","failed","dropped"]};var n=e("ethereumjs-util");const i={from:e=>(0,n.addHexPrefix)(e),to:(e,t)=>t?(0,n.addHexPrefix)(e).toLowerCase():(0,n.addHexPrefix)(e),nonce:e=>(0,n.addHexPrefix)(e),value:e=>(0,n.addHexPrefix)(e),data:e=>(0,n.addHexPrefix)(e),gas:e=>(0,n.addHexPrefix)(e),gasPrice:e=>(0,n.addHexPrefix)(e)};function o(e){if("string"!=typeof e.from)throw new Error(`Invalid from address ${e.from} not a string`);if(!(0,n.isValidAddress)(e.from))throw new Error("Invalid from address")}function a(e){if("0x"===e.to||null===e.to){if(!e.data)throw new Error("Invalid recipient address");delete e.to}else if(void 0!==e.to&&!(0,n.isValidAddress)(e.to))throw new Error("Invalid recipient address");return e}},{"ethereumjs-util":717}],35:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("safe-event-emitter")),a=n(e("loglevel")),s=n(e("ethjs-query"));class c extends o.default{constructor(e){super(),(0,i.default)(this,"DROPPED_BUFFER_COUNT",3),(0,i.default)(this,"droppedBlocksBufferByHash",new Map),this.query=e.query||new s.default(e.provider),this.nonceTracker=e.nonceTracker,this.getPendingTransactions=e.getPendingTransactions,this.getCompletedTransactions=e.getCompletedTransactions,this.publishTransaction=e.publishTransaction,this.approveTransaction=e.approveTransaction,this.confirmTransaction=e.confirmTransaction}async updatePendingTxs(){const e=await this.nonceTracker.getGlobalLock();try{const e=this.getPendingTransactions();await Promise.all(e.map(e=>this._checkPendingTx(e)))}catch(e){a.default.error("PendingTransactionTracker - Error updating pending transactions"),a.default.error(e)}e.releaseLock()}async resubmitPendingTxs(e){const t=this.getPendingTransactions();if(t.length)for(const i of t)try{await this._resubmitTx(i,e)}catch(e){var r,n;const t=(null===(r=e.value)||void 0===r||null===(n=r.message)||void 0===n?void 0:n.toLowerCase())||e.message.toLowerCase();if(t.includes("replacement transaction underpriced")||t.includes("known transaction")||t.includes("gas price too low to replace")||t.includes("transaction with the same hash was already imported")||t.includes("gateway timeout")||t.includes("nonce too low"))return;i.warning={error:t,message:"There was an error when resubmitting this transaction."},this.emit("tx:warning",i,e)}}async _resubmitTx(e,t){e.firstRetryBlockNumber||this.emit("tx:block-update",e,t);const r=e.firstRetryBlockNumber||t,n=Number.parseInt(t,16)-Number.parseInt(r,16),i=e.retryCount||0;if(n<=Math.pow(2,i)-1)return;if(!("rawTx"in e))return this.approveTransaction(e.id);const o=e.rawTx,a=await this.publishTransaction(o);return this.emit("tx:retry",e),a}async _checkPendingTx(e){const t=e.hash,r=e.id;if("submitted"===e.status){if(!t){const e=new Error("We had an error while submitting this transaction, please try again.");return e.name="NoTxHashError",void this.emit("tx:failed",r,e)}if(await this._checkIfNonceIsTaken(e))this.emit("tx:dropped",r);else{try{const e=await this.query.getTransactionReceipt(t);if(null==e?void 0:e.blockNumber)return void this.emit("tx:confirmed",r,e)}catch(t){return e.warning={error:t.message,message:"There was a problem loading this transaction."},void this.emit("tx:warning",e,t)}await this._checkIfTxWasDropped(e)&&this.emit("tx:dropped",r)}}}async _checkIfTxWasDropped(e){const{hash:t,txParams:{nonce:r,from:n}}=e,i=await this.query.getTransactionCount(n);if(parseInt(r,16)>=i.toNumber())return!1;this.droppedBlocksBufferByHash.has(t)||this.droppedBlocksBufferByHash.set(t,0);const o=this.droppedBlocksBufferByHash.get(t);return o<this.DROPPED_BUFFER_COUNT?(this.droppedBlocksBufferByHash.set(t,o+1),!1):(this.droppedBlocksBufferByHash.delete(t),!0)}async _checkIfNonceIsTaken(e){const t=e.txParams.from;return this.getCompletedTransactions(t).some(t=>!(t.id===e.id)&&t.txParams.nonce===e.txParams.nonce)}}r.default=c},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"ethjs-query":751,loglevel:872,"safe-event-emitter":1038}],36:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("ethjs-query")),o=e("../../lib/util"),a=n(e("loglevel"));r.default=class{constructor(e){this.query=new i.default(e)}async analyzeGasUsage(e){const t=await this.query.getBlockByNumber("latest",!1),r=(0,o.hexToBn)(t.gasLimit),n=(0,o.BnMultiplyByFraction)(r,19,20);let i,s=(0,o.bnToHex)(n);try{s=await this.estimateTxGas(e)}catch(e){a.default.warn(e),i={reason:e.message,errorKey:e.errorKey,debug:{blockNumber:t.number,blockGasLimit:t.gasLimit}}}return{blockGasLimit:t.gasLimit,estimatedGasHex:s,simulationFails:i}}async estimateTxGas(e){const t=e.txParams;return await this.query.estimateGas(t)}addGasBuffer(e,t){const r=(0,o.hexToBn)(e),n=(0,o.hexToBn)(t).muln(.9),i=r.muln(1.5);return r.gt(n)?(0,o.bnToHex)(r):i.lt(n)?(0,o.bnToHex)(i):(0,o.bnToHex)(n)}}},{"../../lib/util":76,"@babel/runtime/helpers/interopRequireDefault":135,"ethjs-query":751,loglevel:872}],37:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("safe-event-emitter")),a=n(e("obs-store")),s=n(e("loglevel")),c=e("./lib/tx-state-history-helpers"),u=n(e("../../lib/random-id")),l=e("./lib/util");function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}class d extends o.default{constructor({initState:e,txHistoryLimit:t,getNetwork:r}){super(),this.store=new a.default(Object.assign({transactions:[]},e)),this.txHistoryLimit=t,this.getNetwork=r}generateTxMeta(e){const t=this.getNetwork();if("loading"===t)throw new Error("MetaMask is having trouble connecting to the network");return Object.assign({id:(0,u.default)(),time:(new Date).getTime(),status:"unapproved",metamaskNetworkId:t,loadingDefaults:!0},e)}getTxList(e){const t=this.getNetwork(),r=this.getFullTxList(),n=new Set,i=[];for(let o=r.length-1;o>-1;o--){const a=r[o];if(a.metamaskNetworkId===t){if(void 0!==e){const{nonce:t}=a.txParams;if(!n.has(t)){if(!(n.size<e))continue;n.add(t)}}i.unshift(a)}}return i}getFullTxList(){return this.store.getState().transactions}getUnapprovedTxList(){return this.getTxsByMetaData("status","unapproved").reduce((e,t)=>(e[t.id]=t,e),{})}getApprovedTransactions(e){const t={status:"approved"};return e&&(t.from=e),this.getFilteredTxList(t)}getPendingTransactions(e){const t={status:"submitted"};return e&&(t.from=e),this.getFilteredTxList(t)}getConfirmedTransactions(e){const t={status:"confirmed"};return e&&(t.from=e),this.getFilteredTxList(t)}addTx(e){e.txParams&&(e.txParams=this.normalizeAndValidateTxParams(e.txParams)),this.once(e.id+":signed",(function(){this.removeAllListeners(e.id+":rejected")})),this.once(e.id+":rejected",(function(){this.removeAllListeners(e.id+":signed")})),e.history=[];const t=(0,c.snapshotFromTxMeta)(e);e.history.push(t);const r=this.getFullTxList();if(r.length>this.txHistoryLimit-1){const e=r.findIndex(e=>(0,l.getFinalStates)().includes(e.status));-1!==e&&r.splice(e,1)}const n=r.findIndex(t=>t.time>e.time);return-1===n?r.push(e):r.splice(n,0,e),this._saveTxList(r),e}getTx(e){return this.getTxsByMetaData("id",e)[0]}updateTx(e,t){e.txParams&&(e.txParams=this.normalizeAndValidateTxParams(e.txParams));const r=(0,c.snapshotFromTxMeta)(e),n=(0,c.replayHistory)(e.history),i=(0,c.generateHistoryEntry)(n,r,t);i.length&&e.history.push(i);const o=e.id,a=this.getFullTxList(),s=a.findIndex(e=>e.id===o);a[s]=e,this._saveTxList(a)}updateTxParams(e,t){const r=this.getTx(e);r.txParams=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r.txParams,{},t),this.updateTx(r,"txStateManager#updateTxParams")}normalizeAndValidateTxParams(e){return void 0===e.data&&delete e.data,e=(0,l.normalizeTxParams)(e,!1),this.validateTxParams(e),e}validateTxParams(e){Object.keys(e).forEach(t=>{const r=e[t];switch(t){case"chainId":if("number"!=typeof r&&"string"!=typeof r)throw new Error(`${t} in txParams is not a Number or hex string. got: (${r})`);break;default:if("string"!=typeof r)throw new Error(`${t} in txParams is not a string. got: (${r})`)}})}getFilteredTxList(e,t){let r=t;return Object.keys(e).forEach(t=>{r=this.getTxsByMetaData(t,e[t],r)}),r}getTxsByMetaData(e,t,r=this.getTxList()){const n="function"==typeof t?t:e=>e===t;return r.filter(t=>e in t.txParams?n(t.txParams[e]):n(t[e]))}getTxStatus(e){return this.getTx(e).status}setTxStatusRejected(e){this._setTxStatus(e,"rejected"),this._removeTx(e)}setTxStatusUnapproved(e){this._setTxStatus(e,"unapproved")}setTxStatusApproved(e){this._setTxStatus(e,"approved")}setTxStatusSigned(e){this._setTxStatus(e,"signed")}setTxStatusSubmitted(e){const t=this.getTx(e);t.submittedTime=(new Date).getTime(),this.updateTx(t,"txStateManager - add submitted time stamp"),this._setTxStatus(e,"submitted")}setTxStatusConfirmed(e){this._setTxStatus(e,"confirmed")}setTxStatusDropped(e){this._setTxStatus(e,"dropped")}setTxStatusFailed(e,t){const r=t||new Error("Internal metamask failure"),n=this.getTx(e);n.err={message:r.toString(),rpc:r.value,stack:r.stack},this.updateTx(n,"transactions:tx-state-manager#fail - add error"),this._setTxStatus(e,"failed")}wipeTransactions(e){const t=this.getFullTxList(),r=this.getNetwork(),n=t.filter(t=>!(t.txParams.from===e&&t.metamaskNetworkId===r));this._saveTxList(n)}_setTxStatus(e,t){const r=this.getTx(e);if(r){r.status=t;try{this.updateTx(r,"txStateManager: setting status to "+t),this.emit(`${r.id}:${t}`,e),this.emit("tx:status-update",e,t),["submitted","rejected","failed"].includes(t)&&this.emit(r.id+":finished",r),this.emit("update:badge")}catch(e){s.default.error(e)}}}_saveTxList(e){this.store.updateState({transactions:e})}_removeTx(e){const t=this.getFullTxList();this._saveTxList(t.filter(t=>t.id!==e))}clearUnapprovedTxs(){const e=this.getFullTxList().filter(e=>"unapproved"!==e.status);this._saveTxList(e)}}r.default=d},{"../../lib/random-id":69,"./lib/tx-state-history-helpers":33,"./lib/util":34,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,loglevel:872,"obs-store":898,"safe-event-emitter":1038}],38:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default={config:{}}},{}],39:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("obs-store"));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class c extends o.default{constructor(e,t){super(e),this.updateStructure(t)}updateStructure(e){this.config=e,this.removeAllListeners();for(const t in e)e.hasOwnProperty(t)&&e[t].subscribe(e=>{this.updateState({[t]:e})})}getFlatState(){let e={};for(const t in this.config)if(this.config.hasOwnProperty(t)){const r=this.config[t];e=s({},e,{},r.getState?r.getState():r.state)}return e}}r.default=c},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"obs-store":898}],40:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("eth-query")),o=n(e("obs-store")),a=n(e("loglevel")),s=n(e("pify")),c=n(e("web3")),u=n(e("single-call-balance-checker-abi")),l=e("./util"),f=e("../controllers/network/enums"),d=e("../controllers/network/contract-addresses");r.default=class{constructor(e={}){this.store=new o.default({accounts:{},currentBlockGasLimit:""}),this._provider=e.provider,this._query=(0,s.default)(new i.default(this._provider)),this._blockTracker=e.blockTracker,this._currentBlockNumber=this._blockTracker.getCurrentBlock(),this._blockTracker.once("latest",e=>{this._currentBlockNumber=e}),this._updateForBlock=this._updateForBlock.bind(this),this.network=e.network,this.web3=new c.default(this._provider)}start(){this._blockTracker.removeListener("latest",this._updateForBlock),this._blockTracker.addListener("latest",this._updateForBlock),this._updateAccounts()}stop(){this._blockTracker.removeListener("latest",this._updateForBlock)}syncWithAddresses(e){const t=this.store.getState().accounts,r=Object.keys(t),n=[];e.forEach(e=>{r.includes(e)||n.push(e)});const i=[];r.forEach(t=>{e.includes(t)||i.push(t)}),this.addAccounts(n),this.removeAccount(i)}addAccounts(e){const t=this.store.getState().accounts;e.forEach(e=>{t[e]={}}),this.store.updateState({accounts:t}),this._currentBlockNumber&&this._updateAccounts()}removeAccount(e){const t=this.store.getState().accounts;e.forEach(e=>{delete t[e]}),this.store.updateState({accounts:t})}clearAccounts(){this.store.updateState({accounts:{}})}async _updateForBlock(e){this._currentBlockNumber=e;const t=await this._query.getBlockByNumber(e,!1);if(!t)return;const r=t.gasLimit;this.store.updateState({currentBlockGasLimit:r});try{await this._updateAccounts()}catch(e){a.default.error(e)}}async _updateAccounts(){const e=this.store.getState().accounts,t=Object.keys(e);switch(this.network.getNetworkState()){case f.MAINNET_NETWORK_ID.toString():await this._updateAccountsViaBalanceChecker(t,d.SINGLE_CALL_BALANCES_ADDRESS);break;case f.RINKEBY_NETWORK_ID.toString():await this._updateAccountsViaBalanceChecker(t,d.SINGLE_CALL_BALANCES_ADDRESS_RINKEBY);break;case f.ROPSTEN_NETWORK_ID.toString():await this._updateAccountsViaBalanceChecker(t,d.SINGLE_CALL_BALANCES_ADDRESS_ROPSTEN);break;case f.KOVAN_NETWORK_ID.toString():await this._updateAccountsViaBalanceChecker(t,d.SINGLE_CALL_BALANCES_ADDRESS_KOVAN);break;default:await Promise.all(t.map(this._updateAccount.bind(this)))}}async _updateAccount(e){const t={address:e,balance:await this._query.getBalance(e)},{accounts:r}=this.store.getState();r[e]&&(r[e]=t,this.store.updateState({accounts:r}))}async _updateAccountsViaBalanceChecker(e,t){const r=this.store.getState().accounts;this.web3.setProvider(this._provider),this.web3.eth.contract(u.default).at(t).balances(e,["0x0"],(t,n)=>{if(t)return a.default.warn("MetaMask - Account Tracker single call balance fetch failed",t),Promise.all(e.map(this._updateAccount.bind(this)));e.forEach((e,t)=>{const i=(0,l.bnToHex)(n[t]);r[e]={address:e,balance:i}}),this.store.updateState({accounts:r})})}}},{"../controllers/network/contract-addresses":12,"../controllers/network/enums":17,"./util":76,"@babel/runtime/helpers/interopRequireDefault":135,"eth-query":686,loglevel:872,"obs-store":898,pify:947,"single-call-balance-checker-abi":1058,web3:1208}],41:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){r.eventOpts.category="Background";const n=(0,o.getBackgroundMetaMetricState)({metamask:e});n.participateInMetaMetrics&&(0,a.sendMetaMetricsEvent)(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},n,{},r,{version:t,currentPath:"/background"}))};var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("../../../ui/app/selectors"),a=e("../../../ui/app/helpers/utils/metametrics.util");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}},{"../../../ui/app/helpers/utils/metametrics.util":1277,"../../../ui/app/selectors":1286,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({network:e,address:t,service:r}){switch(r||(r=function(e){switch(e){case"1":return"wyre";case"3":return"metamask-faucet";case"4":return"rinkeby-faucet";case"42":return"kovan-faucet";case"5":return"goerli-faucet";default:throw new Error(`No default cryptocurrency exchange or faucet for networkId: "${e}"`)}}(e)),r){case"wyre":return`https://pay.sendwyre.com/?dest=ethereum:${t}&destCurrency=ETH&accountId=AC-7AG3W4XH4N2&paymentMethod=debit-card`;case"coinswitch":return`https://metamask.coinswitch.co/?address=${t}&to=eth`;case"metamask-faucet":return"https://faucet.metamask.io/";case"rinkeby-faucet":return"https://www.rinkeby.io/";case"kovan-faucet":return"https://github.com/kovan-testnet/faucet";case"goerli-faucet":return"https://goerli-faucet.slock.it/";default:throw new Error(`Unknown cryptocurrency exchange or faucet: "${r}"`)}}},{}],43:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let t=e.name;t=void 0===t?"Error":String(t);let r=e.message;return r=void 0===r?"":String(r),e.stack=""===t?e.message:""===r?e.name:e.name+": "+e.message,e}},{}],44:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,n){n(n=>{r.error&&i.default.error("Error in RPC response:\n",r),t.isMetamaskInternal||(i.default.info(`RPC (${e.origin}):`,t,"->",r),n())})}};var i=n(e("loglevel"))},{"@babel/runtime/helpers/interopRequireDefault":135,loglevel:872}],45:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({origin:e,sendMetrics:t}){return function(r,i,o,a){switch(r.method){case"metamask_logInjectedWeb3Usage":const{action:a,name:s}=r.params[0];n[e]||(n[e]={}),n[e][s]||(n[e][s]=!0,t({action:a,name:s,customVariables:{origin:e}})),i.result=!0;break;default:return o()}return a()}};const n={}},{}],46:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({location:e,registerOnboarding:t}){return async function(r,n,a,s){try{if("wallet_registerOnboarding"!==r.method)return void a();r.tabId&&r.tabId!==o.default.tabs.TAB_ID_NONE?await t(e,r.tabId):i.default.debug(`'wallet_registerOnboarding' message from ${e} ignored due to missing tabId`),n.result=!0,s()}catch(e){s(e)}}};var i=n(e("loglevel")),o=n(e("extensionizer"))},{"@babel/runtime/helpers/interopRequireDefault":135,extensionizer:777,loglevel:872}],47:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,n){t.origin=e.origin,n()}}},{}],48:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){return new a(e,t)};var i=e("readable-stream"),o=n(e("promise-to-callback"));class a extends i.Writable{constructor(e,t){super(Object.assign({objectMode:!0},t)),this._asyncWriteFn=e}_write(e,t,r){(0,o.default)(this._asyncWriteFn(e,t))(r)}}},{"@babel/runtime/helpers/interopRequireDefault":135,"promise-to-callback":953,"readable-stream":979}],49:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,n){t.tabId=e.tabId,n()}}},{}],50:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("events")),o=n(e("obs-store")),a=n(e("ethereumjs-util")),s=e("eth-json-rpc-errors"),c=n(e("./random-id")),u=e("./enums"),l=n(e("loglevel"));const f=/^[0-9A-Fa-f]+$/g;class d extends i.default{constructor(){super(),this.memStore=new o.default({unapprovedDecryptMsgs:{},unapprovedDecryptMsgCount:0}),this.messages=[]}get unapprovedDecryptMsgCount(){return Object.keys(this.getUnapprovedMsgs()).length}getUnapprovedMsgs(){return this.messages.filter(e=>"unapproved"===e.status).reduce((e,t)=>(e[t.id]=t,e),{})}addUnapprovedMessageAsync(e,t){return new Promise((r,n)=>{if(!e.from)return n(new Error("MetaMask Decryption: from field is required."));const i=this.addUnapprovedMessage(e,t);this.once(i+":finished",t=>{switch(t.status){case"decrypted":return r(t.rawData);case"rejected":return n(s.ethErrors.provider.userRejectedRequest("MetaMask Decryption: User denied message decryption."));case"errored":return n(new Error("This message cannot be decrypted"));default:return n(new Error("MetaMask Decryption: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,t){l.default.debug("DecryptMessageManager addUnapprovedMessage: "+JSON.stringify(e)),t&&(e.origin=t.origin),e.data=this.normalizeMsgData(e.data);const r=(new Date).getTime(),n=(0,c.default)(),i={id:n,msgParams:e,time:r,status:"unapproved",type:u.MESSAGE_TYPE.ETH_DECRYPT};return this.addMsg(i),this.emit("update"),n}addMsg(e){this.messages.push(e),this._saveMsgList()}getMsg(e){return this.messages.find(t=>t.id===e)}approveMessage(e){return this.setMsgStatusApproved(e.metamaskId),this.prepMsgForDecryption(e)}setMsgStatusApproved(e){this._setMsgStatus(e,"approved")}setMsgStatusDecrypted(e,t){const r=this.getMsg(e);r.rawData=t,this._updateMsg(r),this._setMsgStatus(e,"decrypted")}prepMsgForDecryption(e){return delete e.metamaskId,Promise.resolve(e)}rejectMsg(e){this._setMsgStatus(e,"rejected")}errorMessage(e,t){const r=this.getMsg(e);r.error=t,this._updateMsg(r),this._setMsgStatus(e,"errored")}_setMsgStatus(e,t){const r=this.getMsg(e);if(!r)throw new Error('DecryptMessageManager - Message not found for id: "${msgId}".');r.status=t,this._updateMsg(r),this.emit(`${e}:${t}`,r),"rejected"!==t&&"decrypted"!==t&&"errored"!==t||this.emit(e+":finished",r)}_updateMsg(e){const t=this.messages.findIndex(t=>t.id===e.id);-1!==t&&(this.messages[t]=e),this._saveMsgList()}_saveMsgList(){const e=this.getUnapprovedMsgs(),t=Object.keys(e).length;this.memStore.updateState({unapprovedDecryptMsgs:e,unapprovedDecryptMsgCount:t}),this.emit("updateBadge")}normalizeMsgData(e){try{const t=a.default.stripHexPrefix(e);if(t.match(f))return a.default.addHexPrefix(t)}catch(e){l.default.debug("Message was not hex encoded, interpreting as utf8.")}return a.default.bufferToHex(t.from(e,"utf8"))}}r.default=d}).call(this,e("buffer").Buffer)},{"./enums":56,"./random-id":69,"@babel/runtime/helpers/interopRequireDefault":135,buffer:475,"eth-json-rpc-errors":601,"ethereumjs-util":717,events:476,loglevel:872,"obs-store":898}],51:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("events")),o=n(e("obs-store")),a=e("eth-json-rpc-errors"),s=n(e("./random-id")),c=n(e("loglevel")),u=e("./enums");class l extends i.default{constructor(){super(),this.memStore=new o.default({unapprovedEncryptionPublicKeyMsgs:{},unapprovedEncryptionPublicKeyMsgCount:0}),this.messages=[]}get unapprovedEncryptionPublicKeyMsgCount(){return Object.keys(this.getUnapprovedMsgs()).length}getUnapprovedMsgs(){return this.messages.filter(e=>"unapproved"===e.status).reduce((e,t)=>(e[t.id]=t,e),{})}addUnapprovedMessageAsync(e,t){return new Promise((r,n)=>{if(!e)return n(new Error("MetaMask Message: address field is required."));const i=this.addUnapprovedMessage(e,t);this.once(i+":finished",t=>{switch(t.status){case"received":return r(t.rawData);case"rejected":return n(a.ethErrors.provider.userRejectedRequest("MetaMask EncryptionPublicKey: User denied message EncryptionPublicKey."));default:return n(new Error("MetaMask EncryptionPublicKey: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,t){c.default.debug("EncryptionPublicKeyManager addUnapprovedMessage: address");const r=(new Date).getTime(),n=(0,s.default)(),i={id:n,msgParams:e,time:r,status:"unapproved",type:u.MESSAGE_TYPE.ETH_GET_ENCRYPTION_PUBLIC_KEY};return t&&(i.origin=t.origin),this.addMsg(i),this.emit("update"),n}addMsg(e){this.messages.push(e),this._saveMsgList()}getMsg(e){return this.messages.find(t=>t.id===e)}approveMessage(e){return this.setMsgStatusApproved(e.metamaskId),this.prepMsgForEncryptionPublicKey(e)}setMsgStatusApproved(e){this._setMsgStatus(e,"approved")}setMsgStatusReceived(e,t){const r=this.getMsg(e);r.rawData=t,this._updateMsg(r),this._setMsgStatus(e,"received")}prepMsgForEncryptionPublicKey(e){return delete e.metamaskId,Promise.resolve(e)}rejectMsg(e){this._setMsgStatus(e,"rejected")}errorMessage(e,t){const r=this.getMsg(e);r.error=t,this._updateMsg(r),this._setMsgStatus(e,"errored")}_setMsgStatus(e,t){const r=this.getMsg(e);if(!r)throw new Error('EncryptionPublicKeyManager - Message not found for id: "${msgId}".');r.status=t,this._updateMsg(r),this.emit(`${e}:${t}`,r),"rejected"!==t&&"received"!==t||this.emit(e+":finished",r)}_updateMsg(e){const t=this.messages.findIndex(t=>t.id===e.id);-1!==t&&(this.messages[t]=e),this._saveMsgList()}_saveMsgList(){const e=this.getUnapprovedMsgs(),t=Object.keys(e).length;this.memStore.updateState({unapprovedEncryptionPublicKeyMsgs:e,unapprovedEncryptionPublicKeyMsgCount:t}),this.emit("updateBadge")}}r.default=l},{"./enums":56,"./random-id":69,"@babel/runtime/helpers/interopRequireDefault":135,"eth-json-rpc-errors":601,events:476,loglevel:872,"obs-store":898}],52:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"ttl",type:"uint64"}],name:"setTTL",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"ttl",outputs:[{name:"",type:"uint64"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"label",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"NewOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"resolver",type:"address"}],name:"NewResolver",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"ttl",type:"uint64"}],name:"NewTTL",type:"event"}]},{}],53:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;r.default=[{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"key",type:"string"},{name:"value",type:"string"}],name:"setText",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"setPubkey",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setContenthash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"key",type:"string"}],name:"text",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],name:"setABI",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"contenthash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"pubkey",outputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{inputs:[{name:"ensAddr",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"contentType",type:"uint256"}],name:"ABIChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"x",type:"bytes32"},{indexed:!1,name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"indexedKey",type:"string"},{indexed:!1,name:"key",type:"string"}],name:"TextChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"}]},{}],54:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=async function({provider:e,name:t}){const r=new o.default(e),n=i.default.hash(t),f=new a.default(r),d=Number.parseInt(await r.net_version(),10),h=function(e){switch(e){case 1:case 3:case 4:case 5:return"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";default:return null}}(d);if(!h)throw new Error(`EnsIpfsResolver - no known ens-ipfs registry for chainId "${d}"`);const p=f(s.default).at(h),m=(await p.resolver(n))[0];if(l(m))throw new Error(`EnsIpfsResolver - no resolver found for name "${t}"`);const y=f(c.default).at(m),g=await y.supportsInterface("0xbc1c58d1"),b=await y.supportsInterface("0xd8389dc5");if(g[0]){const e=(await y.contenthash(n))[0];let t=u.default.decode(e);const r=u.default.getCodec(e);return"ipfs-ns"!==r&&"ipns-ns"!==r||(t=u.default.helpers.cidV0ToV1Base32(t)),{type:r,hash:t}}if(b[0]){const e=(await y.content(n))[0];if(l(e))throw new Error(`EnsIpfsResolver - no content ID found for name "${t}"`);return{type:"swarm-ns",hash:e.slice(2)}}throw new Error(`EnsIpfsResolver - the resolver for name "${t}" is not standard, it should either supports contenthash() or content()`)};var i=n(e("eth-ens-namehash")),o=n(e("ethjs-query")),a=n(e("ethjs-contract")),s=n(e("./contracts/registry")),c=n(e("./contracts/resolver")),u=n(e("content-hash"));function l(e){return[void 0,null,"0x","0x0","0x0000000000000000000000000000000000000000000000000000000000000000"].includes(e)}},{"./contracts/registry":52,"./contracts/resolver":53,"@babel/runtime/helpers/interopRequireDefault":135,"content-hash":496,"eth-ens-namehash":594,"ethjs-contract":736,"ethjs-query":751}],55:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({provider:e,getCurrentNetwork:t,getIpfsGateway:r}){const n=s.map(e=>`*://*.${e}/*`);return o.default.webRequest.onErrorOccurred.addListener(c,{urls:n,types:["main_frame"]}),{remove(){o.default.webRequest.onErrorOccurred.removeListener(c)}};async function c(n){const{tabId:c,url:u}=n;if(-1===c||"1"!==t())return;const l=i.default.parse(u),{hostname:f,path:d,search:h,hash:p}=l,m=f.split("."),y=m[m.length-1];s.includes(y)&&async function({tabId:t,name:n,path:i,search:s,fragment:c}){const u=r();o.default.tabs.update(t,{url:"loading.html"});let l="https://app.ens.domains/name/"+n;try{const{type:r,hash:f}=await(0,a.default)({provider:e,name:n});if("ipfs-ns"===r||"ipns-ns"===r){const e=`https://${f}.${r.slice(0,4)}.${u}${i}${s||""}${c||""}`;try{200===(await window.fetch(e,{method:"HEAD"})).status&&(l=e)}catch(e){console.warn(e)}}else"swarm-ns"===r?l=`https://swarm-gateways.net/bzz:/${f}${i}${s||""}${c||""}`:"onion"===r||"onion3"===r?l=`http://${f}.onion${i}${s||""}${c||""}`:"zeronet"===r&&(l=`http://127.0.0.1:43110/${f}${i}${s||""}${c||""}`)}catch(e){console.warn(e)}finally{o.default.tabs.update(t,{url:l})}}({tabId:c,name:f,path:d,search:h,fragment:p})}};var i=n(e("url")),o=n(e("extensionizer")),a=n(e("./resolver.js"));const s=["eth"]},{"./resolver.js":54,"@babel/runtime/helpers/interopRequireDefault":135,extensionizer:777,url:1127}],56:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PLATFORM_OPERA=r.PLATFORM_FIREFOX=r.PLATFORM_EDGE=r.PLATFORM_CHROME=r.PLATFORM_BRAVE=r.MESSAGE_TYPE=r.ENVIRONMENT_TYPE_BACKGROUND=r.ENVIRONMENT_TYPE_FULLSCREEN=r.ENVIRONMENT_TYPE_NOTIFICATION=r.ENVIRONMENT_TYPE_POPUP=void 0,r.ENVIRONMENT_TYPE_POPUP="popup",r.ENVIRONMENT_TYPE_NOTIFICATION="notification",r.ENVIRONMENT_TYPE_FULLSCREEN="fullscreen",r.ENVIRONMENT_TYPE_BACKGROUND="background",r.PLATFORM_BRAVE="Brave",r.PLATFORM_CHROME="Chrome",r.PLATFORM_EDGE="Edge",r.PLATFORM_FIREFOX="Firefox",r.PLATFORM_OPERA="Opera",r.MESSAGE_TYPE={ETH_DECRYPT:"eth_decrypt",ETH_GET_ENCRYPTION_PUBLIC_KEY:"eth_getEncryptionPublicKey",ETH_SIGN:"eth_sign",ETH_SIGN_TYPED_DATA:"eth_signTypedData",PERSONAL_SIGN:"personal_sign"}},{}],57:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){if(e.includes(n)){const t=e.slice(n.length);return t.slice(t.indexOf("Error: ")+"Error: ".length)}return e};const n="Error: [ethjs-rpc] rpc error with payload "},{}],58:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty"));function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r.default=({timeout:e=12e4}={})=>async function(t,r){const n=new window.AbortController,a=n.signal,s=window.fetch(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{signal:a})),c=setTimeout(()=>n.abort(),e);try{const e=await s;return clearTimeout(c),e}catch(e){throw clearTimeout(c),e}}},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135}],59:[function(e,t,r){(function(t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault")(e("deep-freeze-strict"));"test"!==t.env.METAMASK_ENV&&function(e,t,r,i=!0){const o={configurable:!1,writable:!1};void 0!==r?(o.value=(0,n.default)(r),o.enumerable=i):e[t]=(0,n.default)(e[t]),Object.defineProperty(e,t,o)}(r,"Promise")}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@babel/runtime/helpers/interopRequireDefault":135,_process:952,"deep-freeze-strict":552}],60:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=async function(){let e;try{e=await s()}catch(t){e=[]}e||(e=[]);const t=e.map(e=>e.toLowerCase().replace("_","-")).find(e=>c.hasOwnProperty(e));return c[t]||"en"};var i=n(e("extensionizer")),o=n(e("pify")),a=n(e("../../_locales/index.json"));const s=i.default.i18n?(0,o.default)(i.default.i18n.getAcceptLanguages,{errorFirst:!1}):async()=>[],c={};a.default.forEach(e=>{e&&e.code&&(c[e.code.toLowerCase().replace("_","-")]=e.code)})},{"../../_locales/index.json":1,"@babel/runtime/helpers/interopRequireDefault":135,extensionizer:777,pify:947}],61:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function e(t={},r){return Object.entries(t).forEach(([n,i])=>{t[n]="object"==typeof i&&null!==i?e(i,r):r(i)}),t}((0,n.cloneDeep)(e),e=>null===e?"null":typeof e)};var n=e("lodash")},{lodash:869}],62:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("extensionizer")),o=n(e("loglevel")),a=e("./util");r.default=class{constructor(){this.isSupported=!!i.default.storage.local,this.isSupported||o.default.error("Storage local API not available.")}async get(){if(!this.isSupported)return;const e=await this._get();return t=e,0===Object.keys(t).length?void 0:e;var t}async set(e){return this._set(e)}_get(){const e=i.default.storage.local;return new Promise((t,r)=>{e.get(null,e=>{const n=(0,a.checkForError)();n?r(n):t(e)})})}_set(e){const t=i.default.storage.local;return new Promise((r,n)=>{t.set(e,()=>{const e=(0,a.checkForError)();e?n(e):r()})})}}},{"./util":76,"@babel/runtime/helpers/interopRequireDefault":135,extensionizer:777,loglevel:872}],63:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("events")),o=n(e("obs-store")),a=n(e("ethereumjs-util")),s=e("eth-json-rpc-errors"),c=n(e("./random-id")),u=e("./enums");class l extends i.default{constructor(){super(),this.memStore=new o.default({unapprovedMsgs:{},unapprovedMsgCount:0}),this.messages=[]}get unapprovedMsgCount(){return Object.keys(this.getUnapprovedMsgs()).length}getUnapprovedMsgs(){return this.messages.filter(e=>"unapproved"===e.status).reduce((e,t)=>(e[t.id]=t,e),{})}addUnapprovedMessageAsync(e,t){return new Promise((r,n)=>{const i=this.addUnapprovedMessage(e,t);this.once(i+":finished",t=>{switch(t.status){case"signed":return r(t.rawSig);case"rejected":return n(s.ethErrors.provider.userRejectedRequest("MetaMask Message Signature: User denied message signature."));default:return n(new Error("MetaMask Message Signature: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,r){var n;r&&(e.origin=r.origin),e.data="0x"===(n=e.data).slice(0,2)?n:a.default.bufferToHex(t.from(n,"utf8"));const i=(new Date).getTime(),o=(0,c.default)(),s={id:o,msgParams:e,time:i,status:"unapproved",type:u.MESSAGE_TYPE.ETH_SIGN};return this.addMsg(s),this.emit("update"),o}addMsg(e){this.messages.push(e),this._saveMsgList()}getMsg(e){return this.messages.find(t=>t.id===e)}approveMessage(e){return this.setMsgStatusApproved(e.metamaskId),this.prepMsgForSigning(e)}setMsgStatusApproved(e){this._setMsgStatus(e,"approved")}setMsgStatusSigned(e,t){const r=this.getMsg(e);r.rawSig=t,this._updateMsg(r),this._setMsgStatus(e,"signed")}prepMsgForSigning(e){return delete e.metamaskId,Promise.resolve(e)}rejectMsg(e){this._setMsgStatus(e,"rejected")}_setMsgStatus(e,t){const r=this.getMsg(e);if(!r)throw new Error('MessageManager - Message not found for id: "${msgId}".');r.status=t,this._updateMsg(r),this.emit(`${e}:${t}`,r),"rejected"!==t&&"signed"!==t||this.emit(e+":finished",r)}_updateMsg(e){const t=this.messages.findIndex(t=>t.id===e.id);-1!==t&&(this.messages[t]=e),this._saveMsgList()}_saveMsgList(){const e=this.getUnapprovedMsgs(),t=Object.keys(e).length;this.memStore.updateState({unapprovedMsgs:e,unapprovedMsgCount:t}),this.emit("updateBadge")}}r.default=l}).call(this,e("buffer").Buffer)},{"./enums":56,"./random-id":69,"@babel/runtime/helpers/interopRequireDefault":135,buffer:475,"eth-json-rpc-errors":601,"ethereumjs-util":717,events:476,"obs-store":898}],64:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("events"));class o extends i.default{constructor(e={}){super();const t=e.migrations||[];this.migrations=t.sort((e,t)=>e.version-t.version);const r=this.migrations.slice(-1)[0];this.defaultVersion=e.defaultVersion||r&&r.version||0}async migrateData(e=this.generateInitialState()){const t=this.migrations.filter((function(t){return t.version>e.meta.version}));for(const r of t)try{const t=await r.migrate(e);if(!t.data)throw new Error("Migrator - migration returned empty data");if(void 0!==t.version&&t.meta.version!==r.version)throw new Error("Migrator - Migration did not update version number correctly");e=t}catch(t){const n=t.message;return t.message=`MetaMask Migration Error #${r.version}: ${n}`,this.emit("error",t),e}return e}generateInitialState(e){return{meta:{version:this.defaultVersion},data:e}}}r.default=o},{"@babel/runtime/helpers/interopRequireDefault":135,events:476}],65:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("loglevel"));r.default=class{constructor(){(0,i.default)(this,"isSupported",!0),this._initialized=!1,this._initializing=this._init(),this._state=void 0}async _init(){try{const e=await window.fetch("http://localhost:12345/state.json");e.ok&&(this._state=await e.json())}catch(e){o.default.debug(`Error loading network state: '${e.message}'`)}finally{this._initialized=!0}}async get(){return this._initialized||await this._initializing,this._state}async set(e){this._initialized||await this._initializing,this._state=e}}},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,loglevel:872}],66:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){return function(){const r=[].slice.call(arguments),n=r[r.length-1],a="function"==typeof n;let s,c;a?(s=n,r.pop()):s=o;try{c=Promise.resolve(e.apply(t,r))}catch(e){c=Promise.reject(e)}(0,i.default)(c)(s)}};var i=n(e("promise-to-callback"));const o=function(e){if(e)throw e}},{"@babel/runtime/helpers/interopRequireDefault":135,"promise-to-callback":953}],67:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("../platforms/extension"));r.default=class{constructor(){this.platform=new i.default}async showPopup(){const e=await this._getPopup();if(e)await this.platform.focusWindow(e.id);else{let e=0,t=0;try{const r=await this.platform.getLastFocusedWindow();t=r.top,e=r.left+(r.width-360)}catch(r){const{screenX:n,screenY:i,outerWidth:o}=window;t=Math.max(i,0),e=Math.max(n+(o-360),0)}const r=await this.platform.openWindow({url:"notification.html",type:"popup",width:360,height:620,left:e,top:t});r.left!==e&&"fullscreen"!==r.state&&await this.platform.updateWindowPosition(r.id,e,t),this._popupId=r.id}}async _getPopup(){const e=await this.platform.getAllWindows();return this._getPopupIn(e)}_getPopupIn(e){return e?e.find(e=>e&&"popup"===e.type&&e.id===this._popupId):null}}},{"../platforms/extension":126,"@babel/runtime/helpers/interopRequireDefault":135}],68:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("events")),o=n(e("obs-store")),a=n(e("ethereumjs-util")),s=e("eth-json-rpc-errors"),c=n(e("./random-id")),u=e("./enums"),l=n(e("loglevel"));const f=/^[0-9A-Fa-f]+$/g;class d extends i.default{constructor(){super(),this.memStore=new o.default({unapprovedPersonalMsgs:{},unapprovedPersonalMsgCount:0}),this.messages=[]}get unapprovedPersonalMsgCount(){return Object.keys(this.getUnapprovedMsgs()).length}getUnapprovedMsgs(){return this.messages.filter(e=>"unapproved"===e.status).reduce((e,t)=>(e[t.id]=t,e),{})}addUnapprovedMessageAsync(e,t){return new Promise((r,n)=>{if(!e.from)return n(new Error("MetaMask Message Signature: from field is required."));const i=this.addUnapprovedMessage(e,t);this.once(i+":finished",t=>{switch(t.status){case"signed":return r(t.rawSig);case"rejected":return n(s.ethErrors.provider.userRejectedRequest("MetaMask Message Signature: User denied message signature."));default:return n(new Error("MetaMask Message Signature: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,t){l.default.debug("PersonalMessageManager addUnapprovedMessage: "+JSON.stringify(e)),t&&(e.origin=t.origin),e.data=this.normalizeMsgData(e.data);const r=(new Date).getTime(),n=(0,c.default)(),i={id:n,msgParams:e,time:r,status:"unapproved",type:u.MESSAGE_TYPE.PERSONAL_SIGN};return this.addMsg(i),this.emit("update"),n}addMsg(e){this.messages.push(e),this._saveMsgList()}getMsg(e){return this.messages.find(t=>t.id===e)}approveMessage(e){return this.setMsgStatusApproved(e.metamaskId),this.prepMsgForSigning(e)}setMsgStatusApproved(e){this._setMsgStatus(e,"approved")}setMsgStatusSigned(e,t){const r=this.getMsg(e);r.rawSig=t,this._updateMsg(r),this._setMsgStatus(e,"signed")}prepMsgForSigning(e){return delete e.metamaskId,Promise.resolve(e)}rejectMsg(e){this._setMsgStatus(e,"rejected")}_setMsgStatus(e,t){const r=this.getMsg(e);if(!r)throw new Error(`PersonalMessageManager - Message not found for id: "${e}".`);r.status=t,this._updateMsg(r),this.emit(`${e}:${t}`,r),"rejected"!==t&&"signed"!==t||this.emit(e+":finished",r)}_updateMsg(e){const t=this.messages.findIndex(t=>t.id===e.id);-1!==t&&(this.messages[t]=e),this._saveMsgList()}_saveMsgList(){const e=this.getUnapprovedMsgs(),t=Object.keys(e).length;this.memStore.updateState({unapprovedPersonalMsgs:e,unapprovedPersonalMsgCount:t}),this.emit("updateBadge")}normalizeMsgData(e){try{const t=a.default.stripHexPrefix(e);if(t.match(f))return a.default.addHexPrefix(t)}catch(e){l.default.debug("Message was not hex encoded, interpreting as utf8.")}return a.default.bufferToHex(t.from(e,"utf8"))}}r.default=d}).call(this,e("buffer").Buffer)},{"./enums":56,"./random-id":69,"@babel/runtime/helpers/interopRequireDefault":135,buffer:475,"eth-json-rpc-errors":601,"ethereumjs-util":717,events:476,loglevel:872,"obs-store":898}],69:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return i%=n,i++};const n=Number.MAX_SAFE_INTEGER;let i=Math.round(Math.random()*n)},{}],70:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("eth-keyring-controller")),o=n(e("loglevel")),a={async verifyAccounts(e,t){if(!e||e.length<1)throw new Error("No created accounts defined.");const r=new(new i.default({}).getKeyringClassForType("HD Key Tree"))({mnemonic:t,numberOfAccounts:e.length}),n=await r.getAccounts();if(o.default.debug("Created accounts: "+JSON.stringify(e)),o.default.debug("Restored accounts: "+JSON.stringify(n)),n.length!==e.length)throw new Error("Wrong number of accounts");for(let t=0;t<n.length;t++)if(n[t].toLowerCase()!==e[t].toLowerCase())throw new Error("Not identical accounts! Original: "+e[t]+", Restored: "+n[t])}};r.default=a},{"@babel/runtime/helpers/interopRequireDefault":135,"eth-keyring-controller":662,loglevel:872}],71:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){const{network:t,provider:{chainId:r}}=e;return i[t]||"0x"+parseInt(r,10).toString(16)};var n=e("../controllers/network/enums");const i={1:n.MAINNET_CHAIN_ID,3:n.ROPSTEN_CHAIN_ID,4:n.RINKEBY_CHAIN_ID,42:n.KOVAN_CHAIN_ID,5:n.GOERLI_CHAIN_ID}},{"../controllers/network/enums":17}],72:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!window.fetch)return;const e=window.fetch;window.fetch=async function(...t){const r=function(){try{throw new Error("Fake error for generating stack trace")}catch(e){return e.stack}}();try{return await e.call(window,...t)}catch(e){throw e.stack||(console.warn("FetchDebugger - fetch encountered an Error without a stack",e),console.warn("FetchDebugger - overriding stack to point of original call"),e.stack=r),e}}}},{}],73:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=e("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({release:e,getState:t}){let r;if(!c)return console.log("Setting up Sentry Remote Error Reporting for 'production': SENTRY_DSN"),r="https://[email protected]/273505",o.init({dsn:"https://[email protected]/273505",debug:c,environment:"production",integrations:[new a.Dedupe,new a.ExtraErrorData],release:e,beforeSend:e=>function(e){try{if(function(e){!function(e,t){"string"==typeof e.message&&(e.message=t(e.message)),e.exception&&e.exception.values&&e.exception.values.forEach(e=>{"string"==typeof e.value&&(e.value=t(e.value))})}(e,e=>(0===(e=(0,s.default)(e)).indexOf("Transaction Failed: known transaction")&&(e="Transaction Failed: known transaction"),e))}(e),function(e){e.request.url=u(e.request.url),e.exception&&e.exception.values&&e.exception.values.forEach(e=>{e.stacktrace&&e.stacktrace.frames.forEach(e=>{e.filename=u(e.filename)})})}(e),t){const r=t();e.extra||(e.extra={}),e.extra.appState=r}}catch(e){console.warn(e)}return e}(e)}),o},r.SENTRY_STATE=void 0;var o=i(e("@sentry/browser")),a=e("@sentry/integrations"),s=n(e("./extractEthjsErrorMessage"));const c=t.env.METAMASK_DEBUG;function u(e){const t=e.split(window.location.origin)[1];return t?"metamask"+t:e}r.SENTRY_STATE={gas:!0,history:!0,metamask:{alertEnabledness:!0,completedOnboarding:!0,connectedStatusPopoverHasBeenShown:!0,conversionDate:!0,conversionRate:!0,currentBlockGasLimit:!0,currentCurrency:!0,currentLocale:!0,customNonceValue:!0,defaultHomeActiveTabName:!0,featureFlags:!0,firstTimeFlowType:!0,forgottenPassword:!0,incomingTxLastFetchedBlocksByNetwork:!0,ipfsGateway:!0,isAccountMenuOpen:!0,isInitialized:!0,isUnlocked:!0,metaMetricsId:!0,metaMetricsSendCount:!0,nativeCurrency:!0,network:!0,nextNonce:!0,participateInMetaMetrics:!0,preferences:!0,provider:{nickname:!0,ticker:!0,type:!0},seedPhraseBackedUp:!0,settings:{chainId:!0,ticker:!0,nickname:!0},showRestorePrompt:!0,threeBoxDisabled:!0,threeBoxLastUpdated:!0,threeBoxSynced:!0,threeBoxSyncingAllowed:!0,unapprovedDecryptMsgCount:!0,unapprovedEncryptionPublicKeyMsgCount:!0,unapprovedMsgCount:!0,unapprovedPersonalMsgCount:!0,unapprovedTypedMessagesCount:!0,useBlockie:!0,useNonceField:!0,usePhishDetect:!0,welcomeScreenSeen:!0},unconnectedAccount:!0}}).call(this,e("_process"))},{"./extractEthjsErrorMessage":57,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/interopRequireWildcard":136,"@sentry/browser":213,"@sentry/integrations":247,_process:952}],74:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.setupMultiplex=function(e){const t=new i.default;return(0,o.default)(e,t,e,e=>{e&&console.error(e)}),t};var i=n(e("obj-multiplex")),o=n(e("pump"))},{"@babel/runtime/helpers/interopRequireDefault":135,"obj-multiplex":896,pump:960}],75:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("events")),o=n(e("obs-store")),a=n(e("./random-id")),s=n(e("assert")),c=e("eth-json-rpc-errors"),u=n(e("eth-sig-util")),l=e("ethereumjs-util"),f=n(e("loglevel")),d=n(e("jsonschema")),h=e("./enums");class p extends i.default{constructor({networkController:e}){super(),this.networkController=e,this.memStore=new o.default({unapprovedTypedMessages:{},unapprovedTypedMessagesCount:0}),this.messages=[]}get unapprovedTypedMessagesCount(){return Object.keys(this.getUnapprovedMsgs()).length}getUnapprovedMsgs(){return this.messages.filter(e=>"unapproved"===e.status).reduce((e,t)=>(e[t.id]=t,e),{})}addUnapprovedMessageAsync(e,t,r){return new Promise((n,i)=>{const o=this.addUnapprovedMessage(e,t,r);this.once(o+":finished",t=>{switch(t.status){case"signed":return n(t.rawSig);case"rejected":return i(c.ethErrors.provider.userRejectedRequest("MetaMask Message Signature: User denied message signature."));case"errored":return i(new Error("MetaMask Message Signature: "+t.error));default:return i(new Error("MetaMask Message Signature: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,t,r){e.version=r,t&&(e.origin=t.origin),this.validateParams(e),f.default.debug("TypedMessageManager addUnapprovedMessage: "+JSON.stringify(e));const n=(new Date).getTime(),i=(0,a.default)(),o={id:i,msgParams:e,time:n,status:"unapproved",type:h.MESSAGE_TYPE.ETH_SIGN_TYPED_DATA};return this.addMsg(o),this.emit("update"),i}validateParams(e){switch(s.default.ok(e&&"object"==typeof e,"Params must be an object."),s.default.ok("data"in e,'Params must include a "data" field.'),s.default.ok("from"in e,'Params must include a "from" field.'),s.default.ok("string"==typeof e.from&&(0,l.isValidAddress)(e.from),'"from" field must be a valid, lowercase, hexadecimal Ethereum address string.'),e.version){case"V1":s.default.ok(Array.isArray(e.data),'"params.data" must be an array.'),s.default.doesNotThrow(()=>{u.default.typedSignatureHash(e.data)},"Signing data must be valid EIP-712 typed data.");break;case"V3":case"V4":let t;s.default.equal(typeof e.data,"string",'"params.data" must be a string.'),s.default.doesNotThrow(()=>{t=JSON.parse(e.data)},'"data" must be a valid JSON string.');const r=d.default.validate(t,u.default.TYPED_MESSAGE_SCHEMA);s.default.ok(t.primaryType in t.types,`Primary type of "${t.primaryType}" has no type definition.`),s.default.equal(r.errors.length,0,"Signing data must conform to EIP-712 schema. See https://git.io/fNtcx.");const n=t.domain.chainId,i=parseInt(this.networkController.getNetworkState());n&&s.default.equal(n,i,`Provided chainId "${n}" must match the active chainId "${i}"`);break;default:s.default.fail(`Unknown typed data version "${e.version}"`)}}addMsg(e){this.messages.push(e),this._saveMsgList()}getMsg(e){return this.messages.find(t=>t.id===e)}approveMessage(e){return this.setMsgStatusApproved(e.metamaskId),this.prepMsgForSigning(e)}setMsgStatusApproved(e){this._setMsgStatus(e,"approved")}setMsgStatusSigned(e,t){const r=this.getMsg(e);r.rawSig=t,this._updateMsg(r),this._setMsgStatus(e,"signed")}prepMsgForSigning(e){return delete e.metamaskId,delete e.version,Promise.resolve(e)}rejectMsg(e){this._setMsgStatus(e,"rejected")}errorMessage(e,t){const r=this.getMsg(e);r.error=t,this._updateMsg(r),this._setMsgStatus(e,"errored")}_setMsgStatus(e,t){const r=this.getMsg(e);if(!r)throw new Error('TypedMessageManager - Message not found for id: "${msgId}".');r.status=t,this._updateMsg(r),this.emit(`${e}:${t}`,r),"rejected"!==t&&"signed"!==t&&"errored"!==t||this.emit(e+":finished",r)}_updateMsg(e){const t=this.messages.findIndex(t=>t.id===e.id);-1!==t&&(this.messages[t]=e),this._saveMsgList()}_saveMsgList(){const e=this.getUnapprovedMsgs(),t=Object.keys(e).length;this.memStore.updateState({unapprovedTypedMessages:e,unapprovedTypedMessagesCount:t}),this.emit("updateBadge")}}r.default=p},{"./enums":56,"./random-id":69,"@babel/runtime/helpers/interopRequireDefault":135,assert:329,"eth-json-rpc-errors":601,"eth-sig-util":694,"ethereumjs-util":717,events:476,jsonschema:829,loglevel:872,"obs-store":898}],76:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.sufficientBalance=function(e,t){a.default.equal(typeof t,"string","sufficientBalance - hexBalance is not a hex string"),a.default.equal(t.slice(0,2),"0x","sufficientBalance - hexBalance is not a hex string");const r=f(t),n=f(e.value),i=f(e.gas),o=f(e.gasPrice),s=n.add(i.mul(o));return r.gte(s)},r.hexToBn=f,r.bnToHex=function(e){return o.default.addHexPrefix(e.toString(16))},r.BnMultiplyByFraction=function(e,t,r){const n=new s.default(t),i=new s.default(r);return e.mul(n).div(i)},r.checkForError=function(){const e=i.default.runtime.lastError;if(e)return e.stack&&e.message?e:new Error(e.message)},r.getEnvironmentType=r.getPlatform=void 0;var i=n(e("extensionizer")),o=n(e("ethereumjs-util")),a=n(e("assert")),s=n(e("bn.js")),c=e("lodash"),u=e("./enums");const l=(0,c.memoize)(e=>{const t=new URL(e);return"/popup.html"===t.pathname?u.ENVIRONMENT_TYPE_POPUP:["/home.html","/phishing.html"].includes(t.pathname)?u.ENVIRONMENT_TYPE_FULLSCREEN:"/notification.html"===t.pathname?u.ENVIRONMENT_TYPE_NOTIFICATION:u.ENVIRONMENT_TYPE_BACKGROUND});function f(e){return new s.default(o.default.stripHexPrefix(e),16)}r.getEnvironmentType=(e=window.location.href)=>l(e),r.getPlatform=e=>{const t=window.navigator.userAgent;return-1!==t.search("Firefox")?u.PLATFORM_FIREFOX:window&&window.chrome&&window.chrome.ipcRenderer?u.PLATFORM_BRAVE:-1!==t.search("Edge")?u.PLATFORM_EDGE:-1!==t.search("OPR")?u.PLATFORM_OPERA:u.PLATFORM_CHROME}},{"./enums":56,"@babel/runtime/helpers/interopRequireDefault":135,assert:329,"bn.js":439,"ethereumjs-util":717,extensionizer:777,lodash:869}],77:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("events")),a=n(e("pump")),s=n(e("dnode")),c=n(e("extensionizer")),u=n(e("obs-store")),l=n(e("./lib/ComposableObservableStore")),f=n(e("obs-store/lib/asStream")),d=n(e("./lib/account-tracker")),h=n(e("json-rpc-engine")),p=e("lodash"),m=n(e("json-rpc-middleware-stream/engineStream")),y=n(e("eth-json-rpc-filters")),g=n(e("eth-json-rpc-filters/subscriptionManager")),b=n(e("./lib/createLoggerMiddleware")),v=n(e("./lib/createMethodMiddleware")),w=n(e("./lib/createOriginMiddleware")),_=n(e("./lib/createTabIdMiddleware")),x=n(e("./lib/createOnboardingMiddleware")),k=n(e("eth-json-rpc-middleware/providerAsMiddleware")),S=e("./lib/stream-utils.js"),E=n(e("eth-keyring-controller")),A=n(e("./controllers/ens")),T=n(e("./controllers/network")),C=n(e("./controllers/preferences")),O=n(e("./controllers/app-state")),j=n(e("./controllers/cached-balances")),P=n(e("./controllers/alert")),M=n(e("./controllers/onboarding")),I=n(e("./controllers/threebox")),N=n(e("./controllers/incoming-transactions")),B=n(e("./lib/message-manager")),R=n(e("./lib/decrypt-message-manager")),D=n(e("./lib/encryption-public-key-manager")),L=n(e("./lib/personal-message-manager")),U=n(e("./lib/typed-message-manager")),F=n(e("./controllers/transactions")),q=n(e("./controllers/token-rates")),H=n(e("./controllers/detect-tokens")),z=e("./controllers/permissions"),K=n(e("./controllers/permissions/restrictedMethods")),V=n(e("./lib/nodeify")),G=n(e("./account-import-strategies")),W=n(e("./lib/buy-eth-url")),Y=n(e("./lib/select-chain-id")),$=e("await-semaphore"),J=e("../manifest/_base.json"),Q=n(e("ethereumjs-util")),Z=n(e("./lib/seed-phrase-verifier")),X=n(e("loglevel")),ee=n(e("eth-trezor-keyring")),te=n(e("@metamask/eth-ledger-bridge-keyring")),re=n(e("eth-query")),ne=n(e("nanoid")),ie=n(e("eth-contract-metadata")),oe=e("@metamask/controllers"),ae=n(e("./lib/background-metametrics"));function se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?se(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}class ue extends o.default{constructor(e){var t;super(),(0,i.default)(this,"getCurrentNetwork",()=>this.networkController.store.getState().network),this.defaultMaxListeners=20,this.sendUpdate=(0,p.debounce)(this.privateSendUpdate.bind(this),200),this.opts=e;const r=e.initState||{};this.recordFirstTimeInfo(r),this.activeControllerConnections=0,this.platform=e.platform,this.getRequestAccountTabIds=e.getRequestAccountTabIds,this.getOpenMetamaskTabsIds=e.getOpenMetamaskTabsIds,this.store=new l.default(r),this.connections={},this.createVaultMutex=new $.Mutex,this.networkController=new T.default(r.NetworkController),this.preferencesController=new C.default({initState:r.PreferencesController,initLangCode:e.initLangCode,openPopup:e.openPopup,network:this.networkController}),this.appStateController=new O.default({addUnlockListener:this.on.bind(this,"unlock"),isUnlocked:this.isUnlocked.bind(this),initState:r.AppStateController,onInactiveTimeout:()=>this.setLocked(),showUnlockRequest:e.showUnlockRequest,preferencesStore:this.preferencesController.store}),this.currencyRateController=new oe.CurrencyRateController(void 0,r.CurrencyController),this.phishingController=new oe.PhishingController,this.initializeProvider(),this.provider=this.networkController.getProviderAndBlockTracker().provider,this.blockTracker=this.networkController.getProviderAndBlockTracker().blockTracker,this.tokenRatesController=new q.default({currency:this.currencyRateController,preferences:this.preferencesController.store}),this.ensController=new A.default({provider:this.provider,networkStore:this.networkController.networkStore}),this.incomingTransactionsController=new N.default({blockTracker:this.blockTracker,networkController:this.networkController,preferencesController:this.preferencesController,initState:r.IncomingTransactionsController}),this.accountTracker=new d.default({provider:this.provider,blockTracker:this.blockTracker,network:this.networkController}),this.on("controllerConnectionChanged",e=>{e>0?(this.accountTracker.start(),this.incomingTransactionsController.start(),this.tokenRatesController.start()):(this.accountTracker.stop(),this.incomingTransactionsController.stop(),this.tokenRatesController.stop())}),this.cachedBalancesController=new j.default({accountTracker:this.accountTracker,getNetwork:this.networkController.getNetworkState.bind(this.networkController),initState:r.CachedBalancesController}),this.onboardingController=new M.default({initState:r.OnboardingController,preferencesController:this.preferencesController}),this.networkController.on("networkDidChange",()=>{this.accountTracker._updateAccounts()});const n=[ee.default,te.default];this.keyringController=new E.default({keyringTypes:n,initState:r.KeyringController,getNetwork:this.networkController.getNetworkState.bind(this.networkController),encryptor:e.encryptor||void 0}),this.keyringController.memStore.subscribe(e=>this._onKeyringControllerUpdate(e)),this.keyringController.on("unlock",()=>this.emit("unlock")),this.permissionsController=new z.PermissionsController({getKeyringAccounts:this.keyringController.getAccounts.bind(this.keyringController),getRestrictedMethods:K.default,getUnlockPromise:this.appStateController.getUnlockPromise.bind(this.appStateController),notifyDomain:this.notifyConnections.bind(this),notifyAllDomains:this.notifyAllConnections.bind(this),preferences:this.preferencesController.store,showPermissionRequest:e.showPermissionRequest},r.PermissionsController,r.PermissionsMetadata),this.detectTokensController=new H.default({preferences:this.preferencesController,network:this.networkController,keyringMemStore:this.keyringController.memStore}),this.addressBookController=new oe.AddressBookController(void 0,r.AddressBookController),this.alertController=new P.default({initState:r.AlertController,preferencesStore:this.preferencesController.store}),this.threeBoxController=new I.default({preferencesController:this.preferencesController,addressBookController:this.addressBookController,keyringController:this.keyringController,initState:r.ThreeBoxController,getKeyringControllerState:this.keyringController.memStore.getState.bind(this.keyringController.memStore),version:J.version}),this.txController=new F.default({initState:r.TransactionController||r.TransactionManager,getPermittedAccounts:this.permissionsController.getAccounts.bind(this.permissionsController),networkStore:this.networkController.networkStore,preferencesStore:this.preferencesController.store,txHistoryLimit:40,getNetwork:this.networkController.getNetworkState.bind(this),signTransaction:this.keyringController.signTransaction.bind(this.keyringController),provider:this.provider,blockTracker:this.blockTracker}),this.txController.on("newUnapprovedTx",()=>e.showUnapprovedTx()),this.txController.on("tx:status-update",async(e,t)=>{if("confirmed"===t||"failed"===t){const t=this.txController.txStateManager.getTx(e);this.platform.showTransactionNotification(t);const{txReceipt:n}=t;var r;n&&"0x0"===n.status&&this.sendBackgroundMetaMetrics({action:"Transactions",name:"On Chain Failure",customVariables:{errorMessage:null===(r=t.simulationFails)||void 0===r?void 0:r.reason}})}}),this.networkController.on("networkDidChange",()=>{this.setCurrentCurrency(this.currencyRateController.state.currentCurrency,e=>{if(e)throw e})}),this.networkController.lookupNetwork(),this.messageManager=new B.default,this.personalMessageManager=new L.default,this.decryptMessageManager=new R.default,this.encryptionPublicKeyManager=new D.default,this.typedMessageManager=new U.default({networkController:this.networkController}),this.store.updateStructure({AppStateController:this.appStateController.store,TransactionController:this.txController.store,KeyringController:this.keyringController.store,PreferencesController:this.preferencesController.store,AddressBookController:this.addressBookController,CurrencyController:this.currencyRateController,NetworkController:this.networkController.store,CachedBalancesController:this.cachedBalancesController.store,AlertController:this.alertController.store,OnboardingController:this.onboardingController.store,IncomingTransactionsController:this.incomingTransactionsController.store,PermissionsController:this.permissionsController.permissions,PermissionsMetadata:this.permissionsController.store,ThreeBoxController:this.threeBoxController.store}),this.memStore=new l.default(null,{AppStateController:this.appStateController.store,NetworkController:this.networkController.store,AccountTracker:this.accountTracker.store,TxController:this.txController.memStore,CachedBalancesController:this.cachedBalancesController.store,TokenRatesController:this.tokenRatesController.store,MessageManager:this.messageManager.memStore,PersonalMessageManager:this.personalMessageManager.memStore,DecryptMessageManager:this.decryptMessageManager.memStore,EncryptionPublicKeyManager:this.encryptionPublicKeyManager.memStore,TypesMessageManager:this.typedMessageManager.memStore,KeyringController:this.keyringController.memStore,PreferencesController:this.preferencesController.store,AddressBookController:this.addressBookController,CurrencyController:this.currencyRateController,AlertController:this.alertController.store,OnboardingController:this.onboardingController.store,IncomingTransactionsController:this.incomingTransactionsController.store,PermissionsController:this.permissionsController.permissions,PermissionsMetadata:this.permissionsController.store,ThreeBoxController:this.threeBoxController.store,EnsController:this.ensController.store}),this.memStore.subscribe(this.sendUpdate.bind(this));const o=null===(t={})||void 0===t?void 0:t.password;o&&!this.isUnlocked()&&this.onboardingController.completedOnboarding&&this.submitPassword(o)}initializeProvider(){const e={static:{eth_syncing:!1,web3_clientVersion:"MetaMask/v"+J.version},version:J.version,getAccounts:async({origin:e})=>{if("metamask"===e){const e=this.preferencesController.getSelectedAddress();return e?[e]:[]}return this.isUnlocked()?await this.permissionsController.getAccounts(e):[]},processTransaction:this.newUnapprovedTransaction.bind(this),processEthSignMessage:this.newUnsignedMessage.bind(this),processTypedMessage:this.newUnsignedTypedMessage.bind(this),processTypedMessageV3:this.newUnsignedTypedMessage.bind(this),processTypedMessageV4:this.newUnsignedTypedMessage.bind(this),processPersonalMessage:this.newUnsignedPersonalMessage.bind(this),processDecryptMessage:this.newRequestDecryptMessage.bind(this),processEncryptionPublicKey:this.newRequestEncryptionPublicKey.bind(this),getPendingNonce:this.getPendingNonce.bind(this),getPendingTransactionByHash:e=>this.txController.getFilteredTxList({hash:e,status:"submitted"})[0]};return this.networkController.initializeProvider(e)}createPublicConfigStore(){const e=new u.default;function t(t){e.putState(function({isUnlocked:e,network:t,provider:r}){return{isUnlocked:e,networkVersion:t,chainId:(0,Y.default)({network:t,provider:r})}}(t))}return this.on("update",t),t(this.getState()),e.destroy=()=>{this.removeEventListener&&this.removeEventListener("update",t)},e}getState(){return ce({},{isInitialized:!!this.keyringController.store.getState().vault},{},this.memStore.getFlatState())}getApi(){const e=this.keyringController,t=this.networkController,r=this.onboardingController,n=this.alertController,i=this.permissionsController,o=this.preferencesController,a=this.threeBoxController,s=this.txController;return{getState:e=>e(null,this.getState()),setCurrentCurrency:this.setCurrentCurrency.bind(this),setUseBlockie:this.setUseBlockie.bind(this),setUseNonceField:this.setUseNonceField.bind(this),setUsePhishDetect:this.setUsePhishDetect.bind(this),setIpfsGateway:this.setIpfsGateway.bind(this),setParticipateInMetaMetrics:this.setParticipateInMetaMetrics.bind(this),setMetaMetricsSendCount:this.setMetaMetricsSendCount.bind(this),setFirstTimeFlowType:this.setFirstTimeFlowType.bind(this),setCurrentLocale:this.setCurrentLocale.bind(this),markPasswordForgotten:this.markPasswordForgotten.bind(this),unMarkPasswordForgotten:this.unMarkPasswordForgotten.bind(this),buyEth:this.buyEth.bind(this),safelistPhishingDomain:this.safelistPhishingDomain.bind(this),getRequestAccountTabIds:e=>e(null,this.getRequestAccountTabIds()),getOpenMetamaskTabsIds:e=>e(null,this.getOpenMetamaskTabsIds()),addNewAccount:(0,V.default)(this.addNewAccount,this),verifySeedPhrase:(0,V.default)(this.verifySeedPhrase,this),resetAccount:(0,V.default)(this.resetAccount,this),removeAccount:(0,V.default)(this.removeAccount,this),importAccountWithStrategy:(0,V.default)(this.importAccountWithStrategy,this),connectHardware:(0,V.default)(this.connectHardware,this),forgetDevice:(0,V.default)(this.forgetDevice,this),checkHardwareStatus:(0,V.default)(this.checkHardwareStatus,this),unlockHardwareWalletAccount:(0,V.default)(this.unlockHardwareWalletAccount,this),fetchInfoToSync:(0,V.default)(this.fetchInfoToSync,this),submitPassword:(0,V.default)(this.submitPassword,this),verifyPassword:(0,V.default)(this.verifyPassword,this),setProviderType:(0,V.default)(t.setProviderType,t),setCustomRpc:(0,V.default)(this.setCustomRpc,this),updateAndSetCustomRpc:(0,V.default)(this.updateAndSetCustomRpc,this),delCustomRpc:(0,V.default)(this.delCustomRpc,this),setSelectedAddress:(0,V.default)(o.setSelectedAddress,o),addToken:(0,V.default)(o.addToken,o),removeToken:(0,V.default)(o.removeToken,o),removeSuggestedTokens:(0,V.default)(o.removeSuggestedTokens,o),setAccountLabel:(0,V.default)(o.setAccountLabel,o),setFeatureFlag:(0,V.default)(o.setFeatureFlag,o),setPreference:(0,V.default)(o.setPreference,o),completeOnboarding:(0,V.default)(o.completeOnboarding,o),addKnownMethodData:(0,V.default)(o.addKnownMethodData,o),setAddressBook:(0,V.default)(this.addressBookController.set,this.addressBookController),removeFromAddressBook:this.addressBookController.delete.bind(this.addressBookController),setLastActiveTime:(0,V.default)(this.appStateController.setLastActiveTime,this.appStateController),setDefaultHomeActiveTabName:(0,V.default)(this.appStateController.setDefaultHomeActiveTabName,this.appStateController),setConnectedStatusPopoverHasBeenShown:(0,V.default)(this.appStateController.setConnectedStatusPopoverHasBeenShown,this.appStateController),tryReverseResolveAddress:(0,V.default)(this.ensController.reverseResolveAddress,this.ensController),setLocked:(0,V.default)(this.setLocked,this),createNewVaultAndKeychain:(0,V.default)(this.createNewVaultAndKeychain,this),createNewVaultAndRestore:(0,V.default)(this.createNewVaultAndRestore,this),exportAccount:(0,V.default)(e.exportAccount,e),cancelTransaction:(0,V.default)(s.cancelTransaction,s),updateTransaction:(0,V.default)(s.updateTransaction,s),updateAndApproveTransaction:(0,V.default)(s.updateAndApproveTransaction,s),createCancelTransaction:(0,V.default)(this.createCancelTransaction,this),createSpeedUpTransaction:(0,V.default)(this.createSpeedUpTransaction,this),getFilteredTxList:(0,V.default)(s.getFilteredTxList,s),isNonceTaken:(0,V.default)(s.isNonceTaken,s),estimateGas:(0,V.default)(this.estimateGas,this),getPendingNonce:(0,V.default)(this.getPendingNonce,this),getNextNonce:(0,V.default)(this.getNextNonce,this),signMessage:(0,V.default)(this.signMessage,this),cancelMessage:this.cancelMessage.bind(this),signPersonalMessage:(0,V.default)(this.signPersonalMessage,this),cancelPersonalMessage:this.cancelPersonalMessage.bind(this),signTypedMessage:(0,V.default)(this.signTypedMessage,this),cancelTypedMessage:this.cancelTypedMessage.bind(this),decryptMessage:(0,V.default)(this.decryptMessage,this),decryptMessageInline:(0,V.default)(this.decryptMessageInline,this),cancelDecryptMessage:this.cancelDecryptMessage.bind(this),encryptionPublicKey:(0,V.default)(this.encryptionPublicKey,this),cancelEncryptionPublicKey:this.cancelEncryptionPublicKey.bind(this),setSeedPhraseBackedUp:(0,V.default)(r.setSeedPhraseBackedUp,r),setAlertEnabledness:(0,V.default)(n.setAlertEnabledness,n),setUnconnectedAccountAlertShown:(0,V.default)(this.alertController.setUnconnectedAccountAlertShown,this.alertController),setThreeBoxSyncingPermission:(0,V.default)(a.setThreeBoxSyncingPermission,a),restoreFromThreeBox:(0,V.default)(a.restoreFromThreeBox,a),setShowRestorePromptToFalse:(0,V.default)(a.setShowRestorePromptToFalse,a),getThreeBoxLastUpdated:(0,V.default)(a.getLastUpdated,a),turnThreeBoxSyncingOn:(0,V.default)(a.turnThreeBoxSyncingOn,a),initializeThreeBox:(0,V.default)(this.initializeThreeBox,this),approvePermissionsRequest:(0,V.default)(i.approvePermissionsRequest,i),clearPermissions:i.clearPermissions.bind(i),getApprovedAccounts:(0,V.default)(i.getAccounts,i),rejectPermissionsRequest:(0,V.default)(i.rejectPermissionsRequest,i),removePermissionsFor:i.removePermissionsFor.bind(i),addPermittedAccount:(0,V.default)(i.addPermittedAccount,i),removePermittedAccount:(0,V.default)(i.removePermittedAccount,i),requestAccountsPermissionWithId:(0,V.default)(i.requestAccountsPermissionWithId,i)}}async createNewVaultAndKeychain(e){const t=await this.createVaultMutex.acquire();try{let r;if((await this.keyringController.getAccounts()).length>0)r=await this.keyringController.fullUpdate();else{r=await this.keyringController.createNewVaultAndKeychain(e);const t=await this.keyringController.getAccounts();this.preferencesController.setAddresses(t),this.selectFirstIdentity()}return r}catch(e){throw e}finally{t()}}async createNewVaultAndRestore(e,t){const r=await this.createVaultMutex.acquire();try{let n,i;const o=this.keyringController;this.preferencesController.setAddresses([]),this.permissionsController.clearPermissions(),this.accountTracker.clearAccounts(),this.cachedBalancesController.clearCachedBalances(),this.txController.txStateManager.clearUnapprovedTxs();const a=await o.createNewVaultAndRestore(e,t),s=new re.default(this.provider);n=await o.getAccounts(),i=await this.getBalance(n[n.length-1],s);const c=o.getKeyringsByType("HD Key Tree")[0];if(!c)throw new Error("MetamaskController - No HD Key Tree found");for(;"0x0"!==i;)await o.addNewAccount(c),n=await o.getAccounts(),i=await this.getBalance(n[n.length-1],s);return this.preferencesController.setAddresses(n),this.selectFirstIdentity(),a}catch(e){throw e}finally{r()}}getBalance(e,t){return new Promise((r,n)=>{const i=this.accountTracker.store.getState().accounts[e];i&&i.balance?r(i.balance):t.getBalance(e,(e,t)=>{e?(n(e),X.default.error(e)):r(t||"0x0")})})}async fetchInfoToSync(){const{accountTokens:e,currentLocale:t,frequentRpcList:r,identities:n,selectedAddress:i,tokens:o}=this.preferencesController.store.getState(),a={};Object.keys(e).forEach(t=>{const r=Q.default.toChecksumAddress(t);a[r]={},Object.keys(e[t]).forEach(n=>a[r][n]="mainnet"!==n?e[t][n]:e[t][n].filter(({address:e})=>{const t=Q.default.toChecksumAddress(e);return!ie.default[t]||ie.default[t].erc20}))});const s={accountTokens:a,currentLocale:t,frequentRpcList:r,identities:n,selectedAddress:i,tokens:o},c=this.keyringController.getKeyringsByType("HD Key Tree")[0],u=this.keyringController.getKeyringsByType("Simple Key Pair"),l=await c.getAccounts(),f=(await Promise.all(u.map(e=>e.getAccounts()))).reduce((e,t)=>[...e,...t],[]),d={hd:l.filter((e,t)=>l.indexOf(e)===t).map(e=>Q.default.toChecksumAddress(e)),simpleKeyPair:f.filter((e,t)=>f.indexOf(e)===t).map(e=>Q.default.toChecksumAddress(e)),ledger:[],trezor:[]};let h=this.txController.store.getState().transactions;return h=h.filter(e=>{const t=Q.default.toChecksumAddress(e.txParams.from);return d.hd.includes(t)}),{accounts:d,preferences:s,transactions:h,network:this.networkController.store.getState()}}async submitPassword(e){await this.keyringController.submitPassword(e);const t=this.keyringController.keyrings.filter(e=>"Simple Key Pair"!==e.type);t.length>1&&this.diagnostics&&await this.diagnostics.reportMultipleKeyrings(t),await this.blockTracker.checkForLatestBlock();try{const e=this.threeBoxController.getThreeBoxSyncingState();e&&!this.threeBoxController.box?(this.threeBoxController.init(),this.threeBoxController.turnThreeBoxSyncingOn()):e&&this.threeBoxController.box&&this.threeBoxController.turnThreeBoxSyncingOn()}catch(e){X.default.error(e)}return this.keyringController.fullUpdate()}async verifyPassword(e){await this.keyringController.verifyPassword(e)}selectFirstIdentity(){const{identities:e}=this.preferencesController.store.getState(),t=Object.keys(e)[0];this.preferencesController.setSelectedAddress(t)}async getKeyringForDevice(e,t=null){let r=null;switch(e){case"trezor":r=ee.default.type;break;case"ledger":r=te.default.type;break;default:throw new Error("MetamaskController:getKeyringForDevice - Unknown device")}let n=await this.keyringController.getKeyringsByType(r)[0];return n||(n=await this.keyringController.addNewKeyring(r)),t&&n.setHdPath&&n.setHdPath(t),n.network=this.networkController.getProviderConfig().type,n}async connectHardware(e,t,r){const n=await this.getKeyringForDevice(e,r);let i=[];switch(t){case-1:i=await n.getPreviousPage();break;case 1:i=await n.getNextPage();break;default:i=await n.getFirstPage()}const o=await this.keyringController.getAccounts(),a=[...new Set(o.concat(i.map(e=>e.address.toLowerCase())))];return this.accountTracker.syncWithAddresses(a),i}async checkHardwareStatus(e,t){return(await this.getKeyringForDevice(e,t)).isUnlocked()}async forgetDevice(e){return(await this.getKeyringForDevice(e)).forgetDevice(),!0}async unlockHardwareWalletAccount(e,t,r){const n=await this.getKeyringForDevice(t,r);n.setAccountToUnlock(e);const i=await this.keyringController.getAccounts(),o=await this.keyringController.addNewAccount(n),a=await this.keyringController.getAccounts();this.preferencesController.setAddresses(a),a.forEach(r=>{i.includes(r)||(this.preferencesController.setAccountLabel(r,`${t[0].toUpperCase()}${t.slice(1)} ${parseInt(e,10)+1}`),this.preferencesController.setSelectedAddress(r))});const{identities:s}=this.preferencesController.store.getState();return ce({},o,{identities:s})}async addNewAccount(){const e=this.keyringController.getKeyringsByType("HD Key Tree")[0];if(!e)throw new Error("MetamaskController - No HD Key Tree found");const t=this.keyringController,r=await t.getAccounts(),n=await t.addNewAccount(e),i=await t.getAccounts();await this.verifySeedPhrase(),this.preferencesController.setAddresses(i),i.forEach(e=>{r.includes(e)||this.preferencesController.setSelectedAddress(e)});const{identities:o}=this.preferencesController.store.getState();return ce({},n,{identities:o})}async verifySeedPhrase(){const e=this.keyringController.getKeyringsByType("HD Key Tree")[0];if(!e)throw new Error("MetamaskController - No HD Key Tree found");const t=(await e.serialize()).mnemonic,r=await e.getAccounts();if(r.length<1)throw new Error("MetamaskController - No accounts found");try{return await Z.default.verifyAccounts(r,t),t}catch(e){throw X.default.error(e.message),e}}async resetAccount(){const e=this.preferencesController.getSelectedAddress();return this.txController.wipeTransactions(e),this.networkController.resetConnection(),e}async removeAccount(e){return await this.permissionsController.removeAllAccountPermissions(e),this.preferencesController.removeAddress(e),this.accountTracker.removeAccount([e]),await this.keyringController.removeAccount(e),e}async importAccountWithStrategy(e,t){const r=await G.default.importAccount(e,t),n=await this.keyringController.addNewKeyring("Simple Key Pair",[r]),i=await n.getAccounts(),o=await this.keyringController.getAccounts();this.preferencesController.setAddresses(o),await this.preferencesController.setSelectedAddress(i[0])}async newUnapprovedTransaction(e,t){return await this.txController.newUnapprovedTransaction(e,t)}newUnsignedMessage(e,t){const r=this.messageManager.addUnapprovedMessageAsync(e,t);return this.sendUpdate(),this.opts.showUnconfirmedMessage(),r}signMessage(e){X.default.info("MetaMaskController - signMessage");const t=e.metamaskId;return this.messageManager.approveMessage(e).then(e=>this.keyringController.signMessage(e)).then(e=>(this.messageManager.setMsgStatusSigned(t,e),this.getState()))}cancelMessage(e,t){this.messageManager.rejectMsg(e),t&&"function"==typeof t&&t(null,this.getState())}async newUnsignedPersonalMessage(e,t){const r=this.personalMessageManager.addUnapprovedMessageAsync(e,t);return this.sendUpdate(),this.opts.showUnconfirmedMessage(),r}signPersonalMessage(e){X.default.info("MetaMaskController - signPersonalMessage");const t=e.metamaskId;return this.personalMessageManager.approveMessage(e).then(e=>this.keyringController.signPersonalMessage(e)).then(e=>(this.personalMessageManager.setMsgStatusSigned(t,e),this.getState()))}cancelPersonalMessage(e,t){this.personalMessageManager.rejectMsg(e),t&&"function"==typeof t&&t(null,this.getState())}async newRequestDecryptMessage(e,t){const r=this.decryptMessageManager.addUnapprovedMessageAsync(e,t);return this.sendUpdate(),this.opts.showUnconfirmedMessage(),r}async decryptMessageInline(e){X.default.info("MetaMaskController - decryptMessageInline");const r=e.metamaskId,n=this.decryptMessageManager.getMsg(r);try{const r=Q.default.stripHexPrefix(e.data),i=t.from(r,"hex");e.data=JSON.parse(i.toString("utf8")),n.rawData=await this.keyringController.decryptMessage(e)}catch(e){n.error=e.message}return this.decryptMessageManager._updateMsg(n),this.getState()}async decryptMessage(e){X.default.info("MetaMaskController - decryptMessage");const r=e.metamaskId;try{const n=await this.decryptMessageManager.approveMessage(e),i=Q.default.stripHexPrefix(n.data),o=t.from(i,"hex");n.data=JSON.parse(o.toString("utf8"));const a=await this.keyringController.decryptMessage(n);this.decryptMessageManager.setMsgStatusDecrypted(r,a)}catch(e){X.default.info("MetaMaskController - eth_decrypt failed.",e),this.decryptMessageManager.errorMessage(r,e)}return this.getState()}cancelDecryptMessage(e,t){this.decryptMessageManager.rejectMsg(e),t&&"function"==typeof t&&t(null,this.getState())}async newRequestEncryptionPublicKey(e,t){const r=this.encryptionPublicKeyManager.addUnapprovedMessageAsync(e,t);return this.sendUpdate(),this.opts.showUnconfirmedMessage(),r}async encryptionPublicKey(e){X.default.info("MetaMaskController - encryptionPublicKey");const t=e.metamaskId;try{const r=await this.encryptionPublicKeyManager.approveMessage(e),n=await this.keyringController.getEncryptionPublicKey(r.data);this.encryptionPublicKeyManager.setMsgStatusReceived(t,n)}catch(e){X.default.info("MetaMaskController - eth_getEncryptionPublicKey failed.",e),this.encryptionPublicKeyManager.errorMessage(t,e)}return this.getState()}cancelEncryptionPublicKey(e,t){this.encryptionPublicKeyManager.rejectMsg(e),t&&"function"==typeof t&&t(null,this.getState())}newUnsignedTypedMessage(e,t,r){const n=this.typedMessageManager.addUnapprovedMessageAsync(e,t,r);return this.sendUpdate(),this.opts.showUnconfirmedMessage(),n}async signTypedMessage(e){X.default.info("MetaMaskController - eth_signTypedData");const t=e.metamaskId,r=e.version;try{const n=await this.typedMessageManager.approveMessage(e);"V1"!==r&&"string"==typeof n.data&&(n.data=JSON.parse(n.data));const i=await this.keyringController.signTypedMessage(n,{version:r});return this.typedMessageManager.setMsgStatusSigned(t,i),this.getState()}catch(e){X.default.info("MetaMaskController - eth_signTypedData failed.",e),this.typedMessageManager.errorMessage(t,e)}}cancelTypedMessage(e,t){this.typedMessageManager.rejectMsg(e),t&&"function"==typeof t&&t(null,this.getState())}async createCancelTransaction(e,t){try{return await this.txController.createCancelTransaction(e,t),await this.getState()}catch(e){throw e}}async createSpeedUpTransaction(e,t,r){return await this.txController.createSpeedUpTransaction(e,t,r),await this.getState()}estimateGas(e){return new Promise((t,r)=>this.txController.txGasUtil.query.estimateGas(e,(e,n)=>e?r(e):t(n)))}markPasswordForgotten(e){this.preferencesController.setPasswordForgotten(!0),this.sendUpdate(),e()}unMarkPasswordForgotten(e){this.preferencesController.setPasswordForgotten(!1),this.sendUpdate(),e()}setupUntrustedCommunication(e,t){const{usePhishDetect:r}=this.preferencesController.store.getState(),n=new URL(t.url).hostname;if(r&&this.phishingController.test(n))return X.default.debug("MetaMask - sending phishing warning for",n),void this.sendPhishingWarning(e,n);const i=(0,S.setupMultiplex)(e);this.setupProviderConnection(i.createStream("provider"),t),this.setupPublicConfig(i.createStream("publicConfig"))}setupTrustedCommunication(e,t){const r=(0,S.setupMultiplex)(e);this.setupControllerConnection(r.createStream("controller")),this.setupProviderConnection(r.createStream("provider"),t,!0)}sendPhishingWarning(e,t){(0,S.setupMultiplex)(e).createStream("phishing").write({hostname:t})}setupControllerConnection(e){const t=this.getApi(),r=(0,s.default)(t);this.activeControllerConnections++,this.emit("controllerConnectionChanged",this.activeControllerConnections),(0,a.default)(e,r,e,e=>{this.activeControllerConnections--,this.emit("controllerConnectionChanged",this.activeControllerConnections),e&&X.default.error(e)}),r.on("remote",e=>{const t=t=>e.sendUpdate(t);this.on("update",t),r.on("end",()=>this.removeListener("update",t))})}setupProviderConnection(e,t,r){const n=r?"metamask":new URL(t.url).origin;let i,o;t.id!==c.default.runtime.id&&(i=t.id),t.tab&&t.tab.id&&(o=t.tab.id);const s=this.setupProviderEngine({origin:n,location:t.url,extensionId:i,tabId:o,isInternal:r}),u=(0,m.default)({engine:s}),l=this.addConnection(n,{engine:s});(0,a.default)(e,u,e,e=>{s._middleware.forEach(e=>{e.destroy&&"function"==typeof e.destroy&&e.destroy()}),l&&this.removeConnection(n,l),e&&X.default.error(e)})}setupProviderEngine({origin:e,location:t,extensionId:r,tabId:n,isInternal:i=!1}){const o=new h.default,a=this.provider,s=this.blockTracker,c=(0,y.default)({provider:a,blockTracker:s}),u=(0,g.default)({provider:a,blockTracker:s});return u.events.on("notification",e=>o.emit("notification",e)),o.push((0,w.default)({origin:e})),n&&o.push((0,_.default)({tabId:n})),o.push((0,b.default)({origin:e})),o.push((0,x.default)({location:t,registerOnboarding:this.onboardingController.registerOnboarding})),o.push((0,v.default)({origin:e,sendMetrics:this.sendBackgroundMetaMetrics.bind(this)})),o.push(c),o.push(u.middleware),i||o.push(this.permissionsController.createMiddleware({origin:e,extensionId:r})),o.push(this.preferencesController.requestWatchAsset.bind(this.preferencesController)),o.push((0,k.default)(a)),o}setupPublicConfig(e){const t=this.createPublicConfigStore(),r=(0,f.default)(t);(0,a.default)(r,e,e=>{t.destroy(),r.destroy(),e&&X.default.error(e)})}addConnection(e,{engine:t}){if("metamask"===e)return null;this.connections[e]||(this.connections[e]={});const r=(0,ne.default)();return this.connections[e][r]={engine:t},r}removeConnection(e,t){const r=this.connections[e];r&&(delete r[t],0===Object.keys(r).length&&delete this.connections[e])}notifyConnections(e,t){const r=this.connections[e];this.isUnlocked()&&r&&Object.values(r).forEach(e=>{e.engine&&e.engine.emit("notification",t)})}notifyAllConnections(e){this.isUnlocked()&&Object.values(this.connections).forEach(t=>{Object.values(t).forEach(t=>{t.engine&&t.engine.emit("notification",e)})})}async _onKeyringControllerUpdate(e){const{keyrings:t}=e,r=t.reduce((e,{accounts:t})=>e.concat(t),[]);r.length&&(this.preferencesController.syncAddresses(r),this.accountTracker.syncWithAddresses(r))}privateSendUpdate(){this.emit("update",this.getState())}isUnlocked(){return this.keyringController.memStore.getState().isUnlocked}async getPendingNonce(e){const{nonceDetails:t,releaseLock:r}=await this.txController.nonceTracker.getNonceLock(e),n=t.params.highestSuggested;return r(),n}async getNextNonce(e){let t;try{t=await this.txController.nonceTracker.getNonceLock(e)}finally{t.releaseLock()}return t.nextNonce}async sendBackgroundMetaMetrics({action:e,name:t,customVariables:r}={}){if(!e||!t)throw new Error("Must provide action and name.");const n=await this.getState(),i=this.platform.getVersion();(0,ae.default)(n,i,{customVariables:r,eventOpts:{action:e,name:t}})}setCurrentCurrency(e,t){const{ticker:r}=this.networkController.getNetworkConfig();try{const n={nativeCurrency:r,currentCurrency:e};return this.currencyRateController.update(n),this.currencyRateController.configure(n),void t(null,this.currencyRateController.state)}catch(e){return void t(e)}}buyEth(e,t){t||(t="5");const r=this.networkController.getNetworkState(),n=(0,W.default)({network:r,address:e,amount:t});n&&this.platform.openTab({url:n})}async updateAndSetCustomRpc(e,t,r="ETH",n,i){return await this.preferencesController.updateRpc({rpcUrl:e,chainId:t,ticker:r,nickname:n,rpcPrefs:i}),this.networkController.setRpcTarget(e,t,r,n,i),e}async setCustomRpc(e,t,r="ETH",n="",i={}){const o=this.preferencesController.getFrequentRpcListDetail().find(t=>e===t.rpcUrl);return o?this.networkController.setRpcTarget(o.rpcUrl,o.chainId,o.ticker,o.nickname,i):(this.networkController.setRpcTarget(e,t,r,n,i),await this.preferencesController.addToFrequentRpcList(e,t,r,n,i)),e}async delCustomRpc(e){await this.preferencesController.removeFromFrequentRpcList(e)}async initializeThreeBox(){await this.threeBoxController.init()}setUseBlockie(e,t){try{return this.preferencesController.setUseBlockie(e),void t(null)}catch(e){return void t(e)}}setUseNonceField(e,t){try{return this.preferencesController.setUseNonceField(e),void t(null)}catch(e){return void t(e)}}setUsePhishDetect(e,t){try{return this.preferencesController.setUsePhishDetect(e),void t(null)}catch(e){return void t(e)}}setIpfsGateway(e,t){try{return this.preferencesController.setIpfsGateway(e),void t(null)}catch(e){return void t(e)}}setParticipateInMetaMetrics(e,t){try{return void t(null,this.preferencesController.setParticipateInMetaMetrics(e))}catch(e){return void t(e)}}setMetaMetricsSendCount(e,t){try{return this.preferencesController.setMetaMetricsSendCount(e),void t(null)}catch(e){return void t(e)}}setFirstTimeFlowType(e,t){try{return this.preferencesController.setFirstTimeFlowType(e),void t(null)}catch(e){return void t(e)}}setCurrentLocale(e,t){try{return void t(null,this.preferencesController.setCurrentLocale(e))}catch(e){return void t(e)}}recordFirstTimeInfo(e){"firstTimeInfo"in e||(e.firstTimeInfo={version:J.version,date:Date.now()})}set isClientOpen(e){this._isClientOpen=e,this.detectTokensController.isOpen=e}safelistPhishingDomain(e){return this.phishingController.bypass(e)}setLocked(){return this.keyringController.setLocked()}}r.default=ue}).call(this,e("buffer").Buffer)},{"../manifest/_base.json":2,"./account-import-strategies":3,"./controllers/alert":5,"./controllers/app-state":6,"./controllers/cached-balances":7,"./controllers/detect-tokens":8,"./controllers/ens":10,"./controllers/incoming-transactions":11,"./controllers/network":18,"./controllers/onboarding":22,"./controllers/permissions":24,"./controllers/permissions/restrictedMethods":27,"./controllers/preferences":28,"./controllers/threebox":29,"./controllers/token-rates":30,"./controllers/transactions":32,"./lib/ComposableObservableStore":39,"./lib/account-tracker":40,"./lib/background-metametrics":41,"./lib/buy-eth-url":42,"./lib/createLoggerMiddleware":44,"./lib/createMethodMiddleware":45,"./lib/createOnboardingMiddleware":46,"./lib/createOriginMiddleware":47,"./lib/createTabIdMiddleware":49,"./lib/decrypt-message-manager":50,"./lib/encryption-public-key-manager":51,"./lib/message-manager":63,"./lib/nodeify":66,"./lib/personal-message-manager":68,"./lib/seed-phrase-verifier":70,"./lib/select-chain-id":71,"./lib/stream-utils.js":74,"./lib/typed-message-manager":75,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"@metamask/controllers":156,"@metamask/eth-ledger-bridge-keyring":196,"await-semaphore":330,buffer:475,dnode:569,"eth-contract-metadata":593,"eth-json-rpc-filters":612,"eth-json-rpc-filters/subscriptionManager":618,"eth-json-rpc-middleware/providerAsMiddleware":657,"eth-keyring-controller":662,"eth-query":686,"eth-trezor-keyring":703,"ethereumjs-util":717,events:476,extensionizer:777,"json-rpc-engine":819,"json-rpc-middleware-stream/engineStream":821,lodash:869,loglevel:872,nanoid:891,"obs-store":898,"obs-store/lib/asStream":899,pump:960}],78:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:2,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=2;try{"etherscan"===t.data.config.provider.type&&(t.data.config.provider.type="rpc",t.data.config.provider.rpcTarget="https://rpc.metamask.io/")}catch(e){}return Promise.resolve(t)}};r.default=i},{lodash:869}],79:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:3,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=3;try{"https://rawtestrpc.metamask.io/"===t.data.config.provider.rpcTarget&&(t.data.config.provider.rpcTarget="https://testrpc.metamask.io/")}catch(e){}return Promise.resolve(t)}};r.default=i},{lodash:869}],80:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:4,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=4;try{if("rpc"!==t.data.config.provider.type)return Promise.resolve(t);switch(t.data.config.provider.rpcTarget){case"https://testrpc.metamask.io/":t.data.config.provider={type:"testnet"};break;case"https://rpc.metamask.io/":t.data.config.provider={type:"mainnet"}}}catch(e){}return Promise.resolve(t)}};r.default=i},{lodash:869}],81:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("lodash");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var s={version:5,migrate:function(e){const t=(0,o.cloneDeep)(e);t.meta.version=5;try{const e=function(e){const t=e.config,r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{KeyringController:{vault:e.vault,selectedAccount:t.selectedAccount,walletNicknames:e.walletNicknames}});return delete r.vault,delete r.walletNicknames,delete r.config.selectedAccount,r}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #5"+e.stack)}return Promise.resolve(t)}};r.default=s},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,lodash:869}],82:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("lodash");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var s={version:6,migrate:function(e){const t=(0,o.cloneDeep)(e);t.meta.version=6;try{const e=function(e){const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{PreferencesController:{selectedAddress:e.KeyringController.selectedAccount}});return delete t.KeyringController.selectedAccount,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #6"+e.stack)}return Promise.resolve(t)}};r.default=s},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,lodash:869}],83:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("lodash");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var s={version:7,migrate:function(e){const t=(0,o.cloneDeep)(e);t.meta.version=7;try{const e=function(e){const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{TransactionManager:{transactions:e.transactions||[],gasMultiplier:e.gasMultiplier||1}});return delete t.transactions,delete t.gasMultiplier,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #7"+e.stack)}return Promise.resolve(t)}};r.default=s},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,lodash:869}],84:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("lodash");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var s={version:8,migrate:function(e){const t=(0,o.cloneDeep)(e);t.meta.version=8;try{const e=function(e){const t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{NoticeController:{noticesList:e.noticesList||[]}});return delete t.noticesList,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #8"+e.stack)}return Promise.resolve(t)}};r.default=s},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,lodash:869}],85:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:9,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=9;try{const e=function(e){const t=(0,n.merge)({},e,{CurrencyController:{currentCurrency:e.currentFiat||e.fiatCurrency||"USD",conversionRate:e.conversionRate,conversionDate:e.conversionDate}});return delete t.currentFiat,delete t.fiatCurrency,delete t.conversionRate,delete t.conversionDate,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #9"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],86:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:10,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=10;try{const e=function(e){const t=(0,n.merge)({},e,{ShapeShiftController:{shapeShiftTxList:e.shapeShiftTxList||[]}});return delete t.shapeShiftTxList,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #10"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],87:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:11,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=11;try{const e=function(e){const t=e;return delete t.TOSHash,delete t.isDisclaimerConfirmed,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #11"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],88:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:12,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=12;try{const e=function(e){const t=e;return t.NoticeController.noticesList.forEach(e=>{e.read&&(e.body="")}),t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #12"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],89:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:13,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=13;try{const e=function(e){const t=e,{config:r}=t;return r&&r.provider&&"testnet"===r.provider.type&&(t.config.provider.type="ropsten"),t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #13"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],90:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:14,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=14;try{const e=function(e){const t=e;return t.NetworkController={},t.NetworkController.provider=t.config.provider,delete t.config.provider,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #14"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],91:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:15,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=15;try{const e=function(e){const t=e,{TransactionController:r}=t;if(r&&r.transactions){const e=r.transactions;t.TransactionController.transactions=e.map(e=>e.err?("Gave up submitting tx."===e.err.message&&(e.status="failed"),e):e)}return t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #15"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],92:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:16,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=16;try{const e=function(e){const t=e,{TransactionController:r}=t;if(r&&r.transactions){const e=t.TransactionController.transactions;t.TransactionController.transactions=e.map(e=>e.err?("transaction with the same hash was already imported."===e.err&&(e.status="submitted",delete e.err),e):e)}return t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #16"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],93:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:17,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=17;try{const e=function(e){const t=e,{TransactionController:r}=t;if(r&&r.transactions){const e=t.TransactionController.transactions;t.TransactionController.transactions=e.map(e=>("failed"===!e.status||e.retryCount>0&&e.retryCount<2&&(e.status="submitted",delete e.err),e))}return t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #17"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],94:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i=e("../controllers/transactions/lib/tx-state-history-helpers"),o={version:18,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=18;try{const e=function(e){const t=e,{TransactionController:r}=t;if(r&&r.transactions){const e=t.TransactionController.transactions;t.TransactionController.transactions=e.map(e=>{if(!e.history||0===e.history.length){const t=(0,i.snapshotFromTxMeta)(e);return e.history=[t],e}const t=(0,i.migrateFromSnapshotsToDiffs)(e.history).filter(e=>!Array.isArray(e)||e.length>0);return e.history=t,e})}return t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #18"+e.stack)}return Promise.resolve(t)}};r.default=o},{"../controllers/transactions/lib/tx-state-history-helpers":33,lodash:869}],95:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:19,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=19;try{const e=function(e){const t=e,{TransactionController:r}=t;if(r&&r.transactions){const e=t.TransactionController.transactions;t.TransactionController.transactions=e.map((e,t,r)=>{if("submitted"!==e.status)return e;const n=function(e){const t=e.map(e=>{const t=e.txParams.nonce;return parseInt(t||"0x0",16)});return Math.max.apply(null,t)}(r.filter(e=>"confirmed"===e.status).filter(t=>t.txParams.from===e.txParams.from).filter(t=>t.metamaskNetworkId.from===e.metamaskNetworkId.from)),i=function(e,t){const r=e.map(e=>{const t=e.txParams.nonce;return parseInt(t,16)});let n=t;for(;r.includes(n);)n++;return n}(r.filter(e=>"submitted"===e.status).filter(t=>t.txParams.from===e.txParams.from).filter(t=>t.metamaskNetworkId.from===e.metamaskNetworkId.from),n),o=Math.max(i,n);return parseInt(e.txParams.nonce,16)>o+1&&(e.status="failed",e.err={message:"nonce too high",note:"migration 019 custom error"}),e})}return t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #19"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],96:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:20,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=20;try{const e=function(e){const t=e;return"metamask"in t&&!("firstTimeInfo"in t.metamask)&&(t.metamask.firstTimeInfo={version:"3.12.0",date:Date.now()}),t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #20"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],97:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:21,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=21;try{const e=function(e){const t=e;return delete t.BlacklistController,delete t.RecentBlocks,t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #21"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],98:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:22,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=22;try{const e=function(e){const t=e,{TransactionController:r}=t;if(r&&r.transactions){const e=t.TransactionController.transactions;t.TransactionController.transactions=e.map(e=>("submitted"!==e.status||e.submittedTime||(e.submittedTime=(new Date).getTime()),e))}return t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #22"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],99:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:23,migrate:function(e){const t=(0,n.cloneDeep)(e);t.meta.version=23;try{const e=function(e){const t=e,{TransactionController:r}=t;if(r&&r.transactions){const e=t.TransactionController.transactions;if(e.length<=40)return t;const r=e.reverse();let n=!0;for(;r.length>40&&n;){const e=r.findIndex(e=>"failed"===e.status||"rejected"===e.status||"confirmed"===e.status||"dropped"===e.status);e<0?n=!1:r.splice(e,1)}t.TransactionController.transactions=r.reverse()}return t}(t.data);t.data=e}catch(e){console.warn("MetaMask Migration #23"+e.stack)}return Promise.resolve(t)}};r.default=i},{lodash:869}],100:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:24,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=24;const r=function(e){const t=e;if(!t.TransactionController)return t;const r=t.TransactionController.transactions;return t.TransactionController.transactions=r.map((e,t)=>("unapproved"===e.status&&e.txParams&&e.txParams.from&&(e.txParams.from=e.txParams.from.toLowerCase()),e)),t}(t.data);return t.data=r,t}};r.default=i},{lodash:869}],101:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("ethereumjs-util")),o=e("lodash"),a={version:25,migrate:async function(e){const t=(0,o.cloneDeep)(e);t.meta.version=25;const r=function(e){const t=e;if(t.TransactionController&&t.TransactionController.transactions){const e=t.TransactionController.transactions;t.TransactionController.transactions=e.map(e=>("unapproved"!==e.status||(e.txParams=function(e){const t={from:e=>i.default.addHexPrefix(e).toLowerCase(),to:()=>i.default.addHexPrefix(e.to).toLowerCase(),nonce:e=>i.default.addHexPrefix(e),value:e=>i.default.addHexPrefix(e),data:e=>i.default.addHexPrefix(e),gas:e=>i.default.addHexPrefix(e),gasPrice:e=>i.default.addHexPrefix(e)},r={};return Object.keys(t).forEach(n=>{e[n]&&(r[n]=t[n](e[n]))}),r}(e.txParams)),e))}return t}(t.data);return t.data=r,t}};r.default=a},{"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717,lodash:869}],102:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:26,migrate(e){const t=(0,n.cloneDeep)(e);t.meta.version=26;try{const e=t.data;t.data=function(e){return e.KeyringController&&e.PreferencesController&&e.KeyringController.walletNicknames?(e.PreferencesController.identities=Object.keys(e.KeyringController.walletNicknames).reduce((t,r)=>(t[r]={name:e.KeyringController.walletNicknames[r],address:r},t),{}),delete e.KeyringController.walletNicknames,e):e}(e)}catch(e){return console.warn("MetaMask Migration #26"+e.stack),Promise.reject(e)}return Promise.resolve(t)}};r.default=i},{lodash:869}],103:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:27,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=27;const r=function(e){const t=e;if(t.TransactionController&&t.TransactionController.transactions){const e=t.TransactionController.transactions;t.TransactionController.transactions=e.filter(e=>"rejected"!==e.status)}return t}(t.data);return t.data=r,t}};r.default=i},{lodash:869}],104:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:28,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=28;const r=function(e){const t=e;if(t.PreferencesController&&t.PreferencesController.tokens&&t.PreferencesController.identities){const e=t.PreferencesController.identities,r=t.PreferencesController.tokens;t.PreferencesController.accountTokens={},Object.keys(e).forEach(e=>{t.PreferencesController.accountTokens[e]={mainnet:r}}),t.PreferencesController.tokens=[]}return t}(t.data);return t.data=r,t}};r.default=i},{lodash:869}],105:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i={version:29,migrate:(0,n(e("./fail-tx")).default)(29,"Stuck in approved state for too long.",e=>{const t="approved"===e.status,r=e.submittedTime,n=Date.now();return t&&n-r>432e5})};r.default=i},{"./fail-tx":124,"@babel/runtime/helpers/interopRequireDefault":135}],106:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:30,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=30;const r=function(e){const t=e;if(e.PreferencesController){const e=t.PreferencesController.frequentRpcListDetail;e&&(e.forEach((t,r)=>{t.chainId&&Number.isNaN(parseInt(t.chainId))&&delete e[r].chainId}),t.PreferencesController.frequentRpcListDetail=e)}return e.NetworkController&&(t.NetworkController.network&&Number.isNaN(parseInt(t.NetworkController.network))&&delete t.NetworkController.network,t.NetworkController.provider&&t.NetworkController.provider.chainId&&Number.isNaN(parseInt(t.NetworkController.provider.chainId))&&delete t.NetworkController.provider.chainId),t}(t.data);return t.data=r,t}};r.default=i},{lodash:869}],107:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:31,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=31;const r=function(e){const{KeyringController:t,PreferencesController:r}=e;if(t&&r){const{vault:e}=t;r.completedOnboarding=Boolean(e)}return e}(t.data);return t.data=r,t}};r.default=i},{lodash:869}],108:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:32,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=32;const r=t.data;return t.data=function(e){const{PreferencesController:t}=e;if(t){const{betaUI:e}=t.featureFlags||{};t.completedUiMigration=e}return e}(r),t}};r.default=i},{lodash:869}],109:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:33,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=33;const r=function(e){const t=e;return e.NoticeController&&delete t.NoticeController,t}(t.data);return t.data=r,t}};r.default=i},{lodash:869}],110:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:34,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=34;const r=t.data;return t.data=function(e){const{PreferencesController:t}=e;if(t){const e=t.featureFlags||{};e.privacyMode||void 0!==t.migratedPrivacyMode||(t.migratedPrivacyMode=!0,e.privacyMode=!0)}return e}(r),t}};r.default=i},{lodash:869}],111:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:35,migrate:async function(e){const t=(0,n.cloneDeep)(e);return t.meta.version=35,t.data=function(e){return e.PreferencesController&&void 0!==e.PreferencesController.seedWords&&delete e.PreferencesController.seedWords,e}(t.data),t}};r.default=i},{lodash:869}],112:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:36,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=36;const r=t.data;return t.data=function(e){const{PreferencesController:t}=e;if(t){const e=t.featureFlags||{};void 0!==e.privacyMode&&delete e.privacyMode}return e}(r),t}};r.default=i},{lodash:869}],113:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i=e("@metamask/controllers"),o={version:37,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=37;const r=t.data;return t.data=function(e){if(e.AddressBookController){const t=e.AddressBookController.addressBook,r=new Set,n={};Object.values(t).forEach(e=>{r.add(e.chainId)});for(const e of r.values()){n[e]={};for(const r in t)t[r].chainId===e&&(t[r].isEns=!1,i.util.normalizeEnsName(t[r].name)&&(t[r].isEns=!0),n[e][r]=t[r])}e.AddressBookController.addressBook=n}return e}(r),t}};r.default=o},{"@metamask/controllers":156,lodash:869}],114:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("lodash");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var c={version:38,migrate:async function(e){const t=(0,o.cloneDeep)(e);t.meta.version=38;const r=t.data;return t.data=function(e){const{ABTestController:t={}}=e,{abTests:r={}}=t;return r.fullScreenVsPopup||(e=s({},e,{ABTestController:s({},t,{abTests:s({},r,{fullScreenVsPopup:"control"})})})),e}(r),t}};r.default=c},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,lodash:869}],115:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=e("lodash"),o=n(e("ethereumjs-util"));function a(e={}){return e&&"object"==typeof e&&"DAI"===e.symbol&&"0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359"===o.default.toChecksumAddress(e.address)}var s={version:39,migrate:async function(e){const t=(0,i.cloneDeep)(e);t.meta.version=39;const r=t.data;return t.data=function(e){const{PreferencesController:t}=e;if(t){const e=t.tokens||[];if(Array.isArray(e))for(const t of e)a(t)&&(t.symbol="SAI");const r=t.accountTokens||{};if(r&&"object"==typeof r)for(const e of Object.keys(r)){const t=r[e];if(t&&"object"==typeof t)for(const e of Object.keys(t)){const r=t[e];if(Array.isArray(r))for(const e of r)a(e)&&(e.symbol="SAI")}}}return e}(r),t}};r.default=s},{"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717,lodash:869}],116:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:40,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=40;const r=t.data;return t.data=function(e){return delete e.ProviderApprovalController,e}(r),t}};r.default=i},{lodash:869}],117:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:41,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=41;const r=t.data;return t.data=function(e){return e.PreferencesController&&e.PreferencesController.preferences&&(e.PreferencesController.preferences.autoLockTimeLimit=e.PreferencesController.preferences.autoLogoutTimeLimit,delete e.PreferencesController.preferences.autoLogoutTimeLimit),e}(r),t}};r.default=i},{lodash:869}],118:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:42,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=42;const r=t.data;return t.data=function(e){return e.AppStateController?e.AppStateController.connectedStatusPopoverHasBeenShown=!1:e.AppStateController={connectedStatusPopoverHasBeenShown:!1},e}(r),t}};r.default=i},{lodash:869}],119:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:43,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=43;const r=t.data;return t.data=function(e){var t;return(null==e||null===(t=e.PreferencesController)||void 0===t?void 0:t.currentAccountTab)&&delete e.PreferencesController.currentAccountTab,e}(r),t}};r.default=i},{lodash:869}],120:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:44,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=44;const r=t.data;return t.data=function(e){var t;return void 0!==(null==e||null===(t=e.AppStateController)||void 0===t?void 0:t.mkrMigrationReminderTimestamp)&&delete e.AppStateController.mkrMigrationReminderTimestamp,e}(r),t}};r.default=i},{lodash:869}],121:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:45,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=45;const r=t.data;return t.data=function(e){var t;return o.includes(null==e||null===(t=e.PreferencesController)||void 0===t?void 0:t.ipfsGateway)&&(e.PreferencesController.ipfsGateway="dweb.link"),e}(r),t}};r.default=i;const o=["ipfs.io","ipfs.dweb.link"]},{lodash:869}],122:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:46,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=46;const r=t.data;return t.data=function(e){return void 0!==(null==e?void 0:e.ABTestController)&&delete e.ABTestController,e}(r),t}};r.default=i},{lodash:869}],123:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),i={version:47,migrate:async function(e){const t=(0,n.cloneDeep)(e);t.meta.version=47;const r=t.data;return t.data=function(e){var t;const r=null==e||null===(t=e.TransactionController)||void 0===t?void 0:t.transactions;return Array.isArray(r)&&r.forEach(e=>{"number"==typeof e.metamaskNetworkId&&(e.metamaskNetworkId=e.metamaskNetworkId.toString())}),e}(r),t}};r.default=i},{lodash:869}],124:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){return function(i){const o=(0,n.cloneDeep)(i);o.meta.version=e;try{const e=function(e,t,r){const n=e,{TransactionController:i}=n;if(i&&i.transactions){const e=i.transactions;n.TransactionController.transactions=e.map(e=>t(e)?(e.status="failed",e.err={message:r,note:"Tx automatically failed by migration because "+r},e):e)}return n}(o.data,r,t);o.data=e}catch(t){console.warn("MetaMask Migration #"+e+t.stack)}return Promise.resolve(o)}};var n=e("lodash")},{lodash:869}],125:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=[e("./002").default,e("./003").default,e("./004").default,e("./005").default,e("./006").default,e("./007").default,e("./008").default,e("./009").default,e("./010").default,e("./011").default,e("./012").default,e("./013").default,e("./014").default,e("./015").default,e("./016").default,e("./017").default,e("./018").default,e("./019").default,e("./020").default,e("./021").default,e("./022").default,e("./023").default,e("./024").default,e("./025").default,e("./026").default,e("./027").default,e("./028").default,e("./029").default,e("./030").default,e("./031").default,e("./032").default,e("./033").default,e("./034").default,e("./035").default,e("./036").default,e("./037").default,e("./038").default,e("./039").default,e("./040").default,e("./041").default,e("./042").default,e("./043").default,e("./044").default,e("./045").default,e("./046").default,e("./047").default];r.default=n},{"./002":78,"./003":79,"./004":80,"./005":81,"./006":82,"./007":83,"./008":84,"./009":85,"./010":86,"./011":87,"./012":88,"./013":89,"./014":90,"./015":91,"./016":92,"./017":93,"./018":94,"./019":95,"./020":96,"./021":97,"./022":98,"./023":99,"./024":100,"./025":101,"./026":102,"./027":103,"./028":104,"./029":105,"./030":106,"./031":107,"./032":108,"./033":109,"./034":110,"./035":111,"./036":112,"./037":113,"./038":114,"./039":115,"./040":116,"./041":117,"./042":118,"./043":119,"./044":120,"./045":121,"./046":122,"./047":123}],126:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("extensionizer")),o=e("@metamask/etherscan-link"),a=e("../lib/util"),s=e("../lib/enums");r.default=class{reload(){i.default.runtime.reload()}openTab(e){return new Promise((t,r)=>{i.default.tabs.create(e,e=>{const n=(0,a.checkForError)();return n?r(n):t(e)})})}openWindow(e){return new Promise((t,r)=>{i.default.windows.create(e,e=>{const n=(0,a.checkForError)();return n?r(n):t(e)})})}focusWindow(e){return new Promise((t,r)=>{i.default.windows.update(e,{focused:!0},()=>{const e=(0,a.checkForError)();return e?r(e):t()})})}updateWindowPosition(e,t,r){return new Promise((n,o)=>{i.default.windows.update(e,{left:t,top:r},()=>{const e=(0,a.checkForError)();return e?o(e):n()})})}getLastFocusedWindow(){return new Promise((e,t)=>{i.default.windows.getLastFocused(r=>{const n=(0,a.checkForError)();return n?t(n):e(r)})})}closeCurrentWindow(){return i.default.windows.getCurrent(e=>i.default.windows.remove(e.id))}getVersion(){return i.default.runtime.getManifest().version}openExtensionInBrowser(e=null,t=null){let r=i.default.runtime.getURL("home.html");t&&(r+="?"+t),e&&(r+="#"+e),this.openTab({url:r}),(0,a.getEnvironmentType)()!==s.ENVIRONMENT_TYPE_BACKGROUND&&window.close()}getPlatformInfo(e){try{i.default.runtime.getPlatformInfo(t=>{e(null,t)})}catch(t){return void e(t)}}showTransactionNotification(e){const{status:t,txReceipt:{status:r}={}}=e;"confirmed"===t?"0x0"===r?this._showFailedTransaction(e,"Transaction encountered an error."):this._showConfirmedTransaction(e):"failed"===t&&this._showFailedTransaction(e)}getAllWindows(){return new Promise((e,t)=>{i.default.windows.getAll(r=>{const n=(0,a.checkForError)();return n?t(n):e(r)})})}getActiveTabs(){return new Promise((e,t)=>{i.default.tabs.query({active:!0},r=>{const n=(0,a.checkForError)();return n?t(n):e(r)})})}currentTab(){return new Promise((e,t)=>{i.default.tabs.getCurrent(r=>{const n=(0,a.checkForError)();n?t(n):e(r)})})}switchToTab(e){return new Promise((t,r)=>{i.default.tabs.update(e,{highlighted:!0},e=>{const n=(0,a.checkForError)();n?r(n):t(e)})})}closeTab(e){return new Promise((t,r)=>{i.default.tabs.remove(e,()=>{const e=(0,a.checkForError)();e?r(e):t()})})}_showConfirmedTransaction(e){this._subscribeToNotificationClicked();const t=(0,o.createExplorerLink)(e.hash,parseInt(e.metamaskNetworkId)),r=`Transaction ${parseInt(e.txParams.nonce,16)} confirmed! View on Etherscan`;this._showNotification("Confirmed transaction",r,t)}_showFailedTransaction(e,t){const r=`Transaction ${parseInt(e.txParams.nonce,16)} failed! ${t||e.err.message}`;this._showNotification("Failed transaction",r)}_showNotification(e,t,r){i.default.notifications.create(r,{type:"basic",title:e,iconUrl:i.default.extension.getURL("../../images/icon-64.png"),message:t})}_subscribeToNotificationClicked(){i.default.notifications.onClicked.hasListener(this._viewOnEtherscan)||i.default.notifications.onClicked.addListener(this._viewOnEtherscan)}_viewOnEtherscan(e){e.startsWith("https://")&&i.default.tabs.create({url:e})}}},{"../lib/enums":56,"../lib/util":76,"@babel/runtime/helpers/interopRequireDefault":135,"@metamask/etherscan-link":206,extensionizer:777}],127:[function(e,t,r){"use strict";function n(e){return new Promise(t=>setTimeout(t,e))}async function i(e){const t=await window.fetch("http://localhost:8889?key="+e),r=await t.text();return r.length?JSON.parse(r):null}t.exports=class{static openBox(e){return this.address=e,Promise.resolve({onSyncDone:e=>{setTimeout(e,200)},openSpace:async(e,t)=>{const{onSyncDone:r}=t;return this.spaceName=e,setTimeout(r,150),await n(50),{private:{get:async e=>(await n(50),await i(`${this.address}-${this.spaceName}-${e}`)),set:async(e,t)=>(await async function(e,t){return(await window.fetch("http://localhost:8889",{method:"POST",body:JSON.stringify({key:e,data:t})})).text()}(`${this.address}-${this.spaceName}-${e}`,t),await n(50),null)}}},logout:()=>{}})}static async getConfig(e){return await i(e+"-metamask-metamaskBackup")?{spaces:{metamask:{}}}:{}}}},{}],128:[function(e,t,r){t.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},{}],129:[function(e,t,r){function n(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,i)}t.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,c,"next",e)}function c(e){n(a,i,o,s,c,"throw",e)}s(void 0)}))}}},{}],130:[function(e,t,r){var n=e("./setPrototypeOf"),i=e("./isNativeReflectConstruct");function o(e,r,a){return i()?t.exports=o=Reflect.construct:t.exports=o=function(e,t,r){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return r&&n(o,r.prototype),o},o.apply(null,arguments)}t.exports=o},{"./isNativeReflectConstruct":138,"./setPrototypeOf":142}],131:[function(e,t,r){t.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},{}],132:[function(e,t,r){function n(){return t.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}t.exports=n},{}],133:[function(e,t,r){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}t.exports=n},{}],134:[function(e,t,r){t.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},{}],135:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}}},{}],136:[function(e,t,r){var n=e("../helpers/typeof");function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}t.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}},{"../helpers/typeof":143}],137:[function(e,t,r){t.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},{}],138:[function(e,t,r){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},{}],139:[function(e,t,r){var n=e("./defineProperty");t.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),i.forEach((function(t){n(e,t,r[t])}))}return e}},{"./defineProperty":131}],140:[function(e,t,r){var n=e("./objectWithoutPropertiesLoose");t.exports=function(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},{"./objectWithoutPropertiesLoose":141}],141:[function(e,t,r){t.exports=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},{}],142:[function(e,t,r){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,r)}t.exports=n},{}],143:[function(e,t,r){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(e){return typeof e}:t.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=n},{}],144:[function(e,t,r){var n=e("./getPrototypeOf"),i=e("./setPrototypeOf"),o=e("./isNativeFunction"),a=e("./construct");function s(e){var r="function"==typeof Map?new Map:void 0;return t.exports=s=function(e){if(null===e||!o(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},s(e)}t.exports=s},{"./construct":130,"./getPrototypeOf":133,"./isNativeFunction":137,"./setPrototypeOf":142}],145:[function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function s(e,t,r,n){var i=t&&t.prototype instanceof l?t:l,o=Object.create(i.prototype),a=new x(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=v(a,r);if(s){if(s===u)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=c(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),o}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var u={};function l(){}function f(){}function d(){}var h={};h[i]=function(){return this};var p=Object.getPrototypeOf,m=p&&p(p(k([])));m&&m!==t&&r.call(m,i)&&(h=m);var y=d.prototype=l.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function b(e,t){var n;this._invoke=function(i,o){function a(){return new t((function(n,a){!function n(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}(i,o,n,a)}))}return n=n?n.then(a,a):a()}}function v(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,v(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var n=c(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,u;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function k(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=y.constructor=d,d.constructor=f,d[a]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[o]=function(){return this},e.AsyncIterator=b,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new b(s(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),y[a]="Generator",y[i]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=k,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),u}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},{}],146:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":145}],147:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});class n{constructor(e={},t={}){this.context={},this.defaultConfig={},this.defaultState={},this.disabled=!1,this.name="BaseController",this.requiredControllers=[],this.internalConfig=this.defaultConfig,this.internalState=this.defaultState,this.internalListeners=[],this.initialState=t,this.initialConfig=e}initialize(){return this.internalState=this.defaultState,this.internalConfig=this.defaultConfig,this.configure(this.initialConfig),this.update(this.initialState),this}get config(){return this.internalConfig}get state(){return this.internalState}configure(e,t=!1,r=!0){if(r){this.internalConfig=t?e:Object.assign(this.internalConfig,e);for(const e in this.internalConfig)void 0!==this.internalConfig[e]&&(this[e]=this.internalConfig[e])}else for(const t in e)void 0!==this.internalConfig[t]&&(this.internalConfig[t]=e[t],this[t]=e[t])}notify(){this.disabled||this.internalListeners.forEach(e=>{e(this.internalState)})}onComposed(){this.requiredControllers.forEach(e=>{if(!this.context[e])throw new Error(`${this.name} must be composed with ${e}.`)})}subscribe(e){this.internalListeners.push(e)}unsubscribe(e){const t=this.internalListeners.findIndex(t=>e===t);return t>-1&&this.internalListeners.splice(t,1),t>-1}update(e,t=!1){this.internalState=t?Object.assign({},e):Object.assign({},this.internalState,e),this.notify()}}r.BaseController=n,r.default=n},{}],148:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("./BaseController");class i extends n.default{constructor(e=[],t){super(),this.internalControllers=[],this.context={},this.name="ComposableController",this.initialize(),this.cachedState=t,this.controllers=e,this.cachedState=void 0}get controllers(){return this.internalControllers}set controllers(e){this.internalControllers=e;const t={};e.forEach(e=>{const r=e.name;this.context[r]=e,e.context=this.context,this.cachedState&&this.cachedState[r]&&e.update(this.cachedState[r]),t[r]=e.state,e.subscribe(e=>{this.update({[r]:e})})}),e.forEach(e=>{e.onComposed()}),this.update(t,!0)}get flatState(){let e={};for(const t in this.context)e=Object.assign(Object.assign({},e),this.context[t].state);return e}}r.ComposableController=i,r.default=i},{"./BaseController":147}],149:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("../BaseController"),o=e("../util"),a=e("ethjs-query");class s extends i.default{constructor(e,t){super(e,t),this.name="AccountTrackerController",this.requiredControllers=["PreferencesController"],this.refresh=()=>n(this,void 0,void 0,(function*(){this.syncAccounts();const{accounts:e}=this.state;for(const t in e)yield o.safelyExecute(()=>n(this,void 0,void 0,(function*(){const r=yield this.ethjsQuery.getBalance(t);e[t]={balance:o.BNToHex(r)},this.update({accounts:Object.assign({},e)})})))})),this.defaultConfig={interval:1e4},this.defaultState={accounts:{}},this.initialize()}syncAccounts(){const{state:{identities:e}}=this.context.PreferencesController,{accounts:t}=this.state,r=Object.keys(e),n=Object.keys(t),i=r.filter(e=>-1===n.indexOf(e)),o=n.filter(e=>-1===r.indexOf(e));i.forEach(e=>{t[e]={balance:"0x0"}}),o.forEach(e=>{delete t[e]}),this.update({accounts:Object.assign({},t)})}set provider(e){this.ethjsQuery=new a(e)}onComposed(){super.onComposed(),this.context.PreferencesController.subscribe(this.refresh),this.poll()}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield o.safelyExecute(()=>this.refresh()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}}r.AccountTrackerController=s,r.default=s},{"../BaseController":147,"../util":168,"ethjs-query":189}],150:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("../BaseController"),o=(e("ethereumjs-util").BN,e("web3")),a=e("human-standard-token-abi"),s=e("human-standard-collectible-abi"),c=e("single-call-balance-checker-abi");class u extends i.default{constructor(e,t){super(e,t),this.name="AssetsContractController",this.defaultConfig={provider:void 0},this.initialize()}contractSupportsInterface(e,t){return n(this,void 0,void 0,(function*(){const r=this.web3.eth.contract(s).at(e);return new Promise((e,n)=>{r.supportsInterface(t,(t,r)=>{t?n(t):e(r)})})}))}set provider(e){this.web3=new o(e)}contractSupportsMetadataInterface(e){return n(this,void 0,void 0,(function*(){return this.contractSupportsInterface(e,"0x5b5e139f")}))}contractSupportsEnumerableInterface(e){return n(this,void 0,void 0,(function*(){return this.contractSupportsInterface(e,"0x780e9d63")}))}getBalanceOf(e,t){return n(this,void 0,void 0,(function*(){const r=this.web3.eth.contract(a).at(e);return new Promise((e,n)=>{r.balanceOf(t,(t,r)=>{t?n(t):e(r)})})}))}getCollectibleTokenId(e,t,r){const n=this.web3.eth.contract(s).at(e);return new Promise((e,i)=>{n.tokenOfOwnerByIndex(t,r,(t,r)=>{t?i(t):e(r.toNumber())})})}getCollectibleTokenURI(e,t){return n(this,void 0,void 0,(function*(){const r=this.web3.eth.contract(s).at(e);return new Promise((e,n)=>{r.tokenURI(t,(t,r)=>{t?n(t):e(r)})})}))}getTokenDecimals(e){return n(this,void 0,void 0,(function*(){const t=this.web3.eth.contract(a).at(e);return new Promise((e,r)=>{t.decimals((t,n)=>{t?r(t):e(n)})})}))}getAssetName(e){return n(this,void 0,void 0,(function*(){const t=this.web3.eth.contract(s).at(e);return new Promise((e,r)=>{t.name((t,n)=>{t?r(t):e(n)})})}))}getAssetSymbol(e){return n(this,void 0,void 0,(function*(){const t=this.web3.eth.contract(s).at(e);return new Promise((e,r)=>{t.symbol((t,n)=>{t?r(t):e(n)})})}))}getOwnerOf(e,t){return n(this,void 0,void 0,(function*(){const r=this.web3.eth.contract(s).at(e);return new Promise((e,n)=>{r.ownerOf(t,(t,r)=>{t?n(t):e(r)})})}))}getBalancesInSingleCall(e,t){return n(this,void 0,void 0,(function*(){const r=this.web3.eth.contract(c).at("0xb1f8e55c7f64d203c1400b9d8555d050f94adf39");return new Promise((n,i)=>{r.balances([e],t,(e,r)=>{if(e)return void i(e);const o={};r.length>0&&t.forEach((e,t)=>{const n=r[t];n.isZero()||(o[e]=n)}),n(o)})})}))}}r.AssetsContractController=u,r.default=u},{"../BaseController":147,"ethereumjs-util":178,"human-standard-collectible-abi":800,"human-standard-token-abi":801,"single-call-balance-checker-abi":1058,web3:1208}],151:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("ethereumjs-util"),o=e("../BaseController"),a=e("../util"),s=e("events"),c=e("await-semaphore").Mutex,u=e("uuid/v1");class l extends o.default{constructor(e,t){super(e,t),this.mutex=new c,this.hub=new s.EventEmitter,this.name="AssetsController",this.requiredControllers=["AssetsContractController","NetworkController","PreferencesController"],this.defaultConfig={networkType:"mainnet",selectedAddress:""},this.defaultState={allCollectibleContracts:{},allCollectibles:{},allTokens:{},collectibleContracts:[],collectibles:[],ignoredCollectibles:[],ignoredTokens:[],suggestedAssets:[],tokens:[]},this.initialize()}getCollectibleApi(e,t){return`https://api.opensea.io/api/v1/asset/${e}/${t}`}getCollectibleContractInformationApi(e){return"https://api.opensea.io/api/v1/asset_contract/"+e}failSuggestedAsset(e,t){e.status="failed",e.error={message:t.toString(),stack:t.stack},this.hub.emit(e.id+":finished",e)}getCollectibleTokenURI(e,t){return n(this,void 0,void 0,(function*(){const r=this.context.AssetsContractController;return(yield r.contractSupportsMetadataInterface(e))?yield r.getCollectibleTokenURI(e,t):""}))}getCollectibleInformationFromApi(e,t){return n(this,void 0,void 0,(function*(){const r=this.getCollectibleApi(e,t);let n;n=this.openSeaApiKey?yield a.handleFetch(r,{headers:{"X-API-KEY":this.openSeaApiKey}}):yield a.handleFetch(r);const{name:i,description:o,image_original_url:s}=n;return{image:s,name:i,description:o}}))}getCollectibleInformationFromTokenURI(e,t){return n(this,void 0,void 0,(function*(){const r=yield this.getCollectibleTokenURI(e,t),n=yield a.handleFetch(r),i=n.hasOwnProperty("image")?"image":"image_url";return{image:n[i],name:n.name}}))}getCollectibleInformation(e,t){return n(this,void 0,void 0,(function*(){let r;return r=yield a.safelyExecute(()=>n(this,void 0,void 0,(function*(){return yield this.getCollectibleInformationFromApi(e,t)}))),r||(r=yield a.safelyExecute(()=>n(this,void 0,void 0,(function*(){return yield this.getCollectibleInformationFromTokenURI(e,t)}))),r||{})}))}getCollectibleContractInformationFromApi(e){return n(this,void 0,void 0,(function*(){const t=this.getCollectibleContractInformationApi(e);let r;r=this.openSeaApiKey?yield a.handleFetch(t,{headers:{"X-API-KEY":this.openSeaApiKey}}):yield a.handleFetch(t);const{name:n,symbol:i,image_url:o,description:s,total_supply:c}=r;return{name:n,symbol:i,image_url:o,description:s,total_supply:c}}))}getCollectibleContractInformationFromContract(e){return n(this,void 0,void 0,(function*(){const t=this.context.AssetsContractController;return{name:yield t.getAssetName(e),symbol:yield t.getAssetSymbol(e)}}))}getCollectibleContractInformation(e){return n(this,void 0,void 0,(function*(){let t;return t=yield a.safelyExecute(()=>n(this,void 0,void 0,(function*(){return yield this.getCollectibleContractInformationFromApi(e)}))),t||(t=yield a.safelyExecute(()=>n(this,void 0,void 0,(function*(){return yield this.getCollectibleContractInformationFromContract(e)}))),t||{})}))}addIndividualCollectible(e,t,r){return n(this,void 0,void 0,(function*(){const n=yield this.mutex.acquire();try{e=i.toChecksumAddress(e);const{allCollectibles:o,collectibles:a}=this.state,{networkType:s,selectedAddress:c}=this.config;if(a.find(r=>r.address===e&&r.tokenId===t))return a;const{name:u,image:l,description:f}=r||(yield this.getCollectibleInformation(e,t)),d={address:e,tokenId:t,name:u,image:l,description:f},h=[...a,d],p=o[c],m=Object.assign(Object.assign({},p),{[s]:h}),y=Object.assign(Object.assign({},o),{[c]:m});return this.update({allCollectibles:y,collectibles:h}),h}finally{n()}}))}addCollectibleContract(e,t){return n(this,void 0,void 0,(function*(){const r=yield this.mutex.acquire();try{e=i.toChecksumAddress(e);const{allCollectibleContracts:n,collectibleContracts:o}=this.state,{networkType:a,selectedAddress:s}=this.config;if(o.find(t=>t.address===e))return o;const c=yield this.getCollectibleContractInformation(e),{name:u,symbol:l,image_url:f,description:d,total_supply:h}=c;if(t&&!f||0===Object.keys(c).length)return o;const p={address:e,description:d,logo:f,name:u,symbol:l,totalSupply:h},m=[...o,p],y=n[s],g=Object.assign(Object.assign({},y),{[a]:m}),b=Object.assign(Object.assign({},n),{[s]:g});return this.update({allCollectibleContracts:b,collectibleContracts:m}),m}finally{r()}}))}removeAndIgnoreIndividualCollectible(e,t){e=i.toChecksumAddress(e);const{allCollectibles:r,collectibles:n,ignoredCollectibles:o}=this.state,{networkType:a,selectedAddress:s}=this.config,c=[...o],u=n.filter(r=>r.address!==e||r.tokenId!==t||(!c.find(r=>r.address===e&&r.tokenId===t)&&c.push(r),!1)),l=r[s],f=Object.assign(Object.assign({},l),{[a]:u}),d=Object.assign(Object.assign({},r),{[s]:f});this.update({allCollectibles:d,collectibles:u,ignoredCollectibles:c})}removeIndividualCollectible(e,t){e=i.toChecksumAddress(e);const{allCollectibles:r,collectibles:n}=this.state,{networkType:o,selectedAddress:a}=this.config,s=n.filter(r=>!(r.address===e&&r.tokenId===t)),c=r[a],u=Object.assign(Object.assign({},c),{[o]:s}),l=Object.assign(Object.assign({},r),{[a]:u});this.update({allCollectibles:l,collectibles:s})}removeCollectibleContract(e){e=i.toChecksumAddress(e);const{allCollectibleContracts:t,collectibleContracts:r}=this.state,{networkType:n,selectedAddress:o}=this.config,a=r.filter(t=>!(t.address===e)),s=t[o],c=Object.assign(Object.assign({},s),{[n]:a}),u=Object.assign(Object.assign({},t),{[o]:c});return this.update({allCollectibleContracts:u,collectibleContracts:a}),a}setApiKey(e){this.openSeaApiKey=e}addToken(e,t,r,o){return n(this,void 0,void 0,(function*(){const n=yield this.mutex.acquire();try{e=i.toChecksumAddress(e);const{allTokens:a,tokens:s}=this.state,{networkType:c,selectedAddress:u}=this.config,l={address:e,symbol:t,decimals:r,image:o},f=s.find(t=>t.address===e);if(f){const e=s.indexOf(f);s[e]=l}else s.push(l);const d=a[u],h=Object.assign(Object.assign({},d),{[c]:s}),p=Object.assign(Object.assign({},a),{[u]:h}),m=[...s];return this.update({allTokens:p,tokens:m}),m}finally{n()}}))}watchAsset(e,t){return n(this,void 0,void 0,(function*(){const r={asset:e,id:u(),status:"pending",time:Date.now(),type:t};try{switch(t){case"ERC20":a.validateTokenToWatch(e);break;default:throw new Error(`Asset of type ${t} not supported`)}}catch(e){return this.failSuggestedAsset(r,e),Promise.reject(e)}const n=new Promise((e,t)=>{this.hub.once(r.id+":finished",r=>{switch(r.status){case"accepted":return e(r.asset.address);case"rejected":return t(new Error("User rejected to watch the asset."));case"failed":return t(new Error(r.error.message))}})}),{suggestedAssets:i}=this.state;return i.push(r),this.update({suggestedAssets:[...i]}),this.hub.emit("pendingSuggestedAsset",r),{result:n,suggestedAssetMeta:r}}))}acceptWatchAsset(e){return n(this,void 0,void 0,(function*(){const{suggestedAssets:t}=this.state,r=t.findIndex(({id:t})=>e===t),n=t[r];try{switch(n.type){case"ERC20":const{address:e,symbol:t,decimals:r,image:i}=n.asset;yield this.addToken(e,t,r,i),n.status="accepted",this.hub.emit(n.id+":finished",n);break;default:throw new Error(`Asset of type ${n.type} not supported`)}}catch(e){this.failSuggestedAsset(n,e)}const i=t.filter(({id:t})=>t!==e);this.update({suggestedAssets:[...i]})}))}rejectWatchAsset(e){const{suggestedAssets:t}=this.state,r=t.findIndex(({id:t})=>e===t),n=t[r];if(!n)return;n.status="rejected",this.hub.emit(n.id+":finished",n);const i=t.filter(({id:t})=>t!==e);this.update({suggestedAssets:[...i]})}addCollectible(e,t,r,o){return n(this,void 0,void 0,(function*(){e=i.toChecksumAddress(e),(yield this.addCollectibleContract(e,o)).find(t=>t.address===e)&&(yield this.addIndividualCollectible(e,t,r))}))}removeAndIgnoreToken(e){e=i.toChecksumAddress(e);const{allTokens:t,tokens:r,ignoredTokens:n}=this.state,{networkType:o,selectedAddress:a}=this.config,s=[...n],c=r.filter(t=>t.address!==e||(!s.find(t=>t.address===e)&&s.push(t),!1)),u=t[a],l=Object.assign(Object.assign({},u),{[o]:c}),f=Object.assign(Object.assign({},t),{[a]:l});this.update({allTokens:f,tokens:c,ignoredTokens:s})}removeToken(e){e=i.toChecksumAddress(e);const{allTokens:t,tokens:r}=this.state,{networkType:n,selectedAddress:o}=this.config,a=r.filter(t=>t.address!==e),s=t[o],c=Object.assign(Object.assign({},s),{[n]:a}),u=Object.assign(Object.assign({},t),{[o]:c});this.update({allTokens:u,tokens:a})}removeCollectible(e,t){e=i.toChecksumAddress(e),this.removeIndividualCollectible(e,t);const{collectibles:r}=this.state;r.find(t=>t.address===e)||this.removeCollectibleContract(e)}removeAndIgnoreCollectible(e,t){e=i.toChecksumAddress(e),this.removeAndIgnoreIndividualCollectible(e,t);const{collectibles:r}=this.state;r.find(t=>t.address===e)||this.removeCollectibleContract(e)}clearIgnoredTokens(){this.update({ignoredTokens:[]})}clearIgnoredCollectibles(){this.update({ignoredCollectibles:[]})}onComposed(){super.onComposed();const e=this.context.PreferencesController,t=this.context.NetworkController;e.subscribe(({selectedAddress:e})=>{const{allCollectibleContracts:t,allCollectibles:r,allTokens:n}=this.state,{networkType:i}=this.config;this.configure({selectedAddress:e}),this.update({collectibleContracts:t[e]&&t[e][i]||[],collectibles:r[e]&&r[e][i]||[],tokens:n[e]&&n[e][i]||[]})}),t.subscribe(({provider:e})=>{const{allCollectibleContracts:t,allCollectibles:r,allTokens:n}=this.state,{selectedAddress:i}=this.config,o=e.type;this.configure({networkType:o}),this.update({collectibleContracts:t[i]&&t[i][o]||[],collectibles:r[i]&&r[i][o]||[],tokens:n[i]&&n[i][o]||[]})})}}r.AssetsController=l,r.default=l},{"../BaseController":147,"../util":168,"await-semaphore":330,"ethereumjs-util":178,events:476,"uuid/v1":1136}],152:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("ethereumjs-util"),o=e("../BaseController"),a=e("../util"),s=e("eth-contract-metadata");class c extends o.default{constructor(e,t){super(e,t),this.name="AssetsDetectionController",this.requiredControllers=["AssetsContractController","AssetsController","NetworkController","PreferencesController"],this.defaultConfig={interval:18e4,networkType:"mainnet",selectedAddress:"",tokens:[]},this.initialize(),this.poll()}getOwnerCollectiblesApi(e){return`https://api.opensea.io/api/v1/assets?owner=${e}&limit=300`}getOwnerCollectibles(){return n(this,void 0,void 0,(function*(){const{selectedAddress:e}=this.config,t=this.getOwnerCollectiblesApi(e),r=this.context.AssetsController;let n;try{n=r.openSeaApiKey?yield a.timeoutFetch(t,{headers:{"X-API-KEY":r.openSeaApiKey}},15e3):yield a.timeoutFetch(t,{},15e3)}catch(e){return[]}return(yield n.json()).assets}))}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield this.detectAssets(),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}isMainnet(){return"mainnet"===this.config.networkType&&!this.disabled}detectAssets(){return n(this,void 0,void 0,(function*(){this.isMainnet()&&(this.detectTokens(),this.detectCollectibles())}))}detectTokens(){return n(this,void 0,void 0,(function*(){if(!this.isMainnet())return;const e=this.config.tokens.filter(e=>e.address),t=[];for(const r in s)s[r].erc20&&!(r in e)&&t.push(r);const r=this.context.AssetsContractController,{selectedAddress:o}=this.config;o&&(yield a.safelyExecute(()=>n(this,void 0,void 0,(function*(){const e=yield r.getBalancesInSingleCall(o,t),n=this.context.AssetsController,{ignoredTokens:a}=n.state;for(const t in e){let e;a.length&&(e=a.find(e=>e.address===i.toChecksumAddress(t))),e||(yield n.addToken(t,s[t].symbol,s[t].decimals))}}))))}))}detectCollectibles(){return n(this,void 0,void 0,(function*(){if(!this.isMainnet())return;const{selectedAddress:e}=this.config;e&&(yield a.safelyExecute(()=>n(this,void 0,void 0,(function*(){const e=this.context.AssetsController,{ignoredCollectibles:t}=e.state;let r=e.state.collectibles;const o=(yield this.getOwnerCollectibles()).map(o=>n(this,void 0,void 0,(function*(){const{token_id:n,image_original_url:a,name:s,description:c,asset_contract:{address:u}}=o;let l;t.length&&(l=t.find(e=>e.address===i.toChecksumAddress(u)&&e.tokenId===Number(n))),l||(yield e.addCollectible(u,Number(n),{description:c,image:a,name:s},!0)),r=r.filter(e=>!(e.tokenId===Number(n)&&e.address===i.toChecksumAddress(u)))})));yield Promise.all(o),r.forEach(({address:t,tokenId:r})=>{e.removeCollectible(t,r)})}))))}))}onComposed(){super.onComposed();const e=this.context.PreferencesController,t=this.context.NetworkController;this.context.AssetsController.subscribe(({tokens:e})=>{this.configure({tokens:e})}),e.subscribe(({selectedAddress:e})=>{e!==this.config.selectedAddress&&(this.configure({selectedAddress:e}),this.detectAssets())}),t.subscribe(({provider:e})=>{this.configure({networkType:e.type})})}}r.AssetsDetectionController=c,r.default=c},{"../BaseController":147,"../util":168,"eth-contract-metadata":593,"ethereumjs-util":178}],153:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("await-semaphore").Mutex,o=e("../BaseController"),a=e("../util");class s extends o.default{constructor(e,t){super(e,t),this.activeCurrency="",this.activeNativeCurrency="",this.mutex=new i,this.name="CurrencyRateController",this.defaultConfig={currentCurrency:this.getCurrentCurrencyFromState(t),disabled:!0,interval:18e4,nativeCurrency:"ETH"},this.defaultState={conversionDate:0,conversionRate:0,currentCurrency:this.defaultConfig.currentCurrency,nativeCurrency:this.defaultConfig.nativeCurrency},this.initialize(),this.configure({disabled:!1},!1,!1),this.poll()}getCurrentCurrencyFromState(e){return e&&e.currentCurrency?e.currentCurrency:"usd"}getPricingURL(e,t){return`https://min-api.cryptocompare.com/data/price?fsym=${t.toUpperCase()}&tsyms=${e.toUpperCase()}`}set currentCurrency(e){this.activeCurrency=e,a.safelyExecute(()=>this.updateExchangeRate())}set nativeCurrency(e){this.activeNativeCurrency=e,a.safelyExecute(()=>this.updateExchangeRate())}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield a.safelyExecute(()=>this.updateExchangeRate()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}fetchExchangeRate(e,t=this.activeNativeCurrency){return n(this,void 0,void 0,(function*(){const r=yield a.handleFetch(this.getPricingURL(e,t)),n=Number(r[e.toUpperCase()]);if(!Number.isFinite(n))throw new Error(`Invalid response for ${e.toUpperCase()}: ${r[e.toUpperCase()]}`);return{conversionDate:Date.now()/1e3,conversionRate:n,currentCurrency:e,nativeCurrency:t}}))}updateExchangeRate(){return n(this,void 0,void 0,(function*(){if(this.disabled||!this.activeCurrency||!this.activeNativeCurrency)return;const e=yield this.mutex.acquire();try{const{conversionDate:t,conversionRate:r}=yield this.fetchExchangeRate(this.activeCurrency,this.activeNativeCurrency);return this.update({conversionDate:t,conversionRate:r,currentCurrency:this.activeCurrency,nativeCurrency:this.activeNativeCurrency}),this.state}finally{e()}}))}}r.CurrencyRateController=s,r.default=s},{"../BaseController":147,"../util":168,"await-semaphore":330}],154:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("../BaseController"),o=e("../util"),{BN:a}=e("ethereumjs-util");r.BN=a;class s extends i.default{constructor(e,t){super(e,t),this.name="TokenBalancesController",this.requiredControllers=["AssetsContractController","AssetsController"],this.defaultConfig={interval:18e4,tokens:[]},this.defaultState={contractBalances:{}},this.initialize(),this.poll()}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield o.safelyExecute(()=>this.updateBalances()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}updateBalances(){return n(this,void 0,void 0,(function*(){if(this.disabled)return;const e=this.context.AssetsContractController,t=this.context.AssetsController,{selectedAddress:r}=t.config,{tokens:n}=this.config,i={};for(const t in n){const o=n[t].address;i[o]=yield e.getBalanceOf(o,r)}this.update({contractBalances:i})}))}onComposed(){super.onComposed(),this.context.AssetsController.subscribe(({tokens:e})=>{this.configure({tokens:e}),this.updateBalances()})}}r.TokenBalancesController=s,r.default=s},{"../BaseController":147,"../util":168,"ethereumjs-util":178}],155:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("ethereumjs-util"),o=e("../BaseController"),a=e("../util");class s extends o.default{constructor(e,t){super(e,t),this.tokenList=[],this.name="TokenRatesController",this.requiredControllers=["AssetsController","CurrencyRateController"],this.defaultConfig={disabled:!0,interval:18e4,nativeCurrency:"eth",tokens:[]},this.defaultState={contractExchangeRates:{}},this.initialize(),this.configure({disabled:!1},!1,!1),this.poll()}getPricingURL(e){return"https://api.coingecko.com/api/v3/simple/token_price/ethereum?"+e}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield a.safelyExecute(()=>this.updateExchangeRates()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}set tokens(e){this.tokenList=e,!this.disabled&&a.safelyExecute(()=>this.updateExchangeRates())}fetchExchangeRate(e){return n(this,void 0,void 0,(function*(){return a.handleFetch(this.getPricingURL(e))}))}onComposed(){super.onComposed();const e=this.context.AssetsController,t=this.context.CurrencyRateController;e.subscribe(()=>{this.configure({tokens:e.state.tokens})}),t.subscribe(()=>{this.configure({nativeCurrency:t.state.nativeCurrency})})}updateExchangeRates(){return n(this,void 0,void 0,(function*(){if(0===this.tokenList.length)return;const e={},{nativeCurrency:t}=this.config,r=`contract_addresses=${this.tokenList.map(e=>e.address).join(",")}&vs_currencies=${t.toLowerCase()}`,n=yield this.fetchExchangeRate(r);this.tokenList.forEach(r=>{const o=i.toChecksumAddress(r.address),a=n[r.address.toLowerCase()];e[o]=a?a[t.toLowerCase()]:0}),this.update({contractExchangeRates:e})}))}}r.TokenRatesController=s,r.default=s},{"../BaseController":147,"../util":168,"ethereumjs-util":178}],156:[function(e,t,r){"use strict";function n(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}Object.defineProperty(r,"__esModule",{value:!0}),e("isomorphic-fetch");const i=e("./util");r.util=i,n(e("./assets/AccountTrackerController")),n(e("./user/AddressBookController")),n(e("./assets/AssetsContractController")),n(e("./assets/AssetsController")),n(e("./assets/AssetsDetectionController")),n(e("./BaseController")),n(e("./ComposableController")),n(e("./assets/CurrencyRateController")),n(e("./keyring/KeyringController")),n(e("./message-manager/MessageManager")),n(e("./network/NetworkController")),n(e("./network/NetworkStatusController")),n(e("./third-party/PhishingController")),n(e("./user/PreferencesController")),n(e("./assets/TokenBalancesController")),n(e("./assets/TokenRatesController")),n(e("./transaction/TransactionController")),n(e("./message-manager/PersonalMessageManager")),n(e("./message-manager/TypedMessageManager"))},{"./BaseController":147,"./ComposableController":148,"./assets/AccountTrackerController":149,"./assets/AssetsContractController":150,"./assets/AssetsController":151,"./assets/AssetsDetectionController":152,"./assets/CurrencyRateController":153,"./assets/TokenBalancesController":154,"./assets/TokenRatesController":155,"./keyring/KeyringController":157,"./message-manager/MessageManager":159,"./message-manager/PersonalMessageManager":160,"./message-manager/TypedMessageManager":161,"./network/NetworkController":162,"./network/NetworkStatusController":163,"./third-party/PhishingController":164,"./transaction/TransactionController":165,"./user/AddressBookController":166,"./user/PreferencesController":167,"./util":168,"isomorphic-fetch":813}],157:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("ethereumjs-util"),o=e("../BaseController"),a=e("eth-sig-util"),s=e("eth-keyring-controller"),c=e("await-semaphore").Mutex,u=e("ethereumjs-wallet"),l=e("ethereumjs-util"),f=e("ethereumjs-wallet/thirdparty"),d=new WeakMap;var h;!function(e){e.simple="Simple Key Pair",e.hd="HD Key Tree"}(h=r.KeyringTypes||(r.KeyringTypes={}));class p extends o.default{constructor(e,t){super(e,t),this.mutex=new c,this.name="KeyringController",this.requiredControllers=["PreferencesController"],d.set(this,{keyring:new s(Object.assign({initState:t},e))}),this.defaultState=Object.assign(Object.assign({},d.get(this).keyring.store.getState()),{keyrings:[]}),this.initialize(),this.fullUpdate()}addNewAccount(){return n(this,void 0,void 0,(function*(){const e=this.context.PreferencesController,t=d.get(this).keyring.getKeyringsByType("HD Key Tree")[0];if(!t)throw new Error("No HD keyring found");const r=yield d.get(this).keyring.getAccounts();yield d.get(this).keyring.addNewAccount(t);const n=yield d.get(this).keyring.getAccounts();return yield this.verifySeedPhrase(),e.updateIdentities(n),n.forEach(t=>{r.includes(t)||e.update({selectedAddress:t})}),this.fullUpdate()}))}createNewVaultAndRestore(e,t){return n(this,void 0,void 0,(function*(){const r=this.context.PreferencesController,n=yield this.mutex.acquire();try{r.updateIdentities([]);const i=yield d.get(this).keyring.createNewVaultAndRestore(e,t);return r.updateIdentities(yield d.get(this).keyring.getAccounts()),r.update({selectedAddress:Object.keys(r.state.identities)[0]}),this.fullUpdate(),i}finally{n()}}))}createNewVaultAndKeychain(e){return n(this,void 0,void 0,(function*(){const t=this.context.PreferencesController,r=yield this.mutex.acquire();try{const n=yield d.get(this).keyring.createNewVaultAndKeychain(e);return t.updateIdentities(yield d.get(this).keyring.getAccounts()),t.update({selectedAddress:Object.keys(t.state.identities)[0]}),this.fullUpdate(),n}finally{r()}}))}isUnlocked(){return d.get(this).keyring.memStore.getState().isUnlocked}exportSeedPhrase(e){if(d.get(this).keyring.password===e)return d.get(this).keyring.keyrings[0].mnemonic;throw new Error("Invalid password")}exportAccount(e,t){if(d.get(this).keyring.password===e)return d.get(this).keyring.exportAccount(t);throw new Error("Invalid password")}getAccounts(){return d.get(this).keyring.getAccounts()}importAccountWithStrategy(e,t){return n(this,void 0,void 0,(function*(){let r;const n=this.context.PreferencesController;switch(e){case"privateKey":const[e]=t;if(!e)throw new Error("Cannot import an empty key.");const n=l.addHexPrefix(e);if(!l.isValidPrivate(l.toBuffer(n)))throw new Error("Cannot import invalid private key.");r=l.stripHexPrefix(n);break;case"json":let i;const[o,a]=t;try{i=f.fromEtherWallet(o,a)}catch(e){i=i||u.fromV3(o,a,!0)}r=l.bufferToHex(i.getPrivateKey())}const i=yield d.get(this).keyring.addNewKeyring(h.simple,[r]),o=yield i.getAccounts(),a=yield d.get(this).keyring.getAccounts();return n.updateIdentities(a),n.update({selectedAddress:o[0]}),this.fullUpdate()}))}removeAccount(e){return n(this,void 0,void 0,(function*(){return this.context.PreferencesController.removeIdentity(e),yield d.get(this).keyring.removeAccount(e),this.fullUpdate()}))}setLocked(){return d.get(this).keyring.setLocked()}signMessage(e){return d.get(this).keyring.signMessage(e)}signPersonalMessage(e){return d.get(this).keyring.signPersonalMessage(e)}signTypedMessage(e,t){return n(this,void 0,void 0,(function*(){try{const r=a.normalize(e.from),n=d.get(this).keyring.password,i=yield this.exportAccount(n,r),o=l.toBuffer(l.addHexPrefix(i));switch(t){case"V1":return a.signTypedDataLegacy(o,{data:e.data});case"V3":return a.signTypedData(o,{data:JSON.parse(e.data)});case"V4":return a.signTypedData_v4(o,{data:JSON.parse(e.data)})}}catch(e){throw new Error("Keyring Controller signTypedMessage: "+e)}}))}signTransaction(e,t){return d.get(this).keyring.signTransaction(e,t)}submitPassword(e){return n(this,void 0,void 0,(function*(){const t=this.context.PreferencesController;yield d.get(this).keyring.submitPassword(e);const r=yield d.get(this).keyring.getAccounts();return yield t.syncIdentities(r),this.fullUpdate()}))}subscribe(e){d.get(this).keyring.store.subscribe(e)}unsubscribe(e){return d.get(this).keyring.store.unsubscribe(e)}verifySeedPhrase(){return n(this,void 0,void 0,(function*(){const e=d.get(this).keyring.getKeyringsByType(h.hd)[0];if(!e)throw new Error("No HD keyring found.");const t=(yield e.serialize()).mnemonic,r=yield e.getAccounts();if(0===r.length)throw new Error("Cannot verify an empty keyring.");const n=new(d.get(this).keyring.getKeyringClassForType(h.hd))({mnemonic:t,numberOfAccounts:r.length}),i=yield n.getAccounts();if(i.length!==r.length)throw new Error("Seed phrase imported incorrect number of accounts.");return i.forEach((e,t)=>{if(e.toLowerCase()!==r[t].toLowerCase())throw new Error("Seed phrase imported different accounts.")}),t}))}fullUpdate(){return n(this,void 0,void 0,(function*(){const e=yield Promise.all(d.get(this).keyring.keyrings.map((e,t)=>n(this,void 0,void 0,(function*(){const r=yield e.getAccounts();return{accounts:Array.isArray(r)?r.map(e=>i.toChecksumAddress(e)):[],index:t,type:e.type}}))));return this.update({keyrings:[...e]}),d.get(this).keyring.fullUpdate()}))}}r.KeyringController=p,r.default=p},{"../BaseController":147,"await-semaphore":330,"eth-keyring-controller":170,"eth-sig-util":694,"ethereumjs-util":178,"ethereumjs-wallet":720,"ethereumjs-wallet/thirdparty":730}],158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("events"),i=e("../BaseController");class o extends i.default{constructor(e,t){super(e,t),this.hub=new n.EventEmitter,this.name="AbstractMessageManager",this.defaultState={unapprovedMessages:{},unapprovedMessagesCount:0},this.messages=[],this.initialize()}saveMessageList(){const e=this.getUnapprovedMessages(),t=this.getUnapprovedMessagesCount();this.update({unapprovedMessages:e,unapprovedMessagesCount:t}),this.hub.emit("updateBadge")}setMessageStatus(e,t){const r=this.getMessage(e);if(!r)throw new Error(`${this.context[name]}- Message not found for id: ${e}.`);r.status=t,this.updateMessage(r),this.hub.emit(`${e}:${t}`,r),"rejected"!==t&&"signed"!==t&&"errored"!==t||this.hub.emit(e+":finished",r)}updateMessage(e){const t=this.messages.findIndex(t=>e.id===t.id);-1!==t&&(this.messages[t]=e),this.saveMessageList()}getUnapprovedMessagesCount(){return Object.keys(this.getUnapprovedMessages()).length}getUnapprovedMessages(){return this.messages.filter(e=>"unapproved"===e.status).reduce((e,t)=>(e[t.id]=t,e),{})}addMessage(e){this.messages.push(e),this.saveMessageList()}getMessage(e){return this.messages.find(t=>t.id===e)}approveMessage(e){return this.setMessageStatusApproved(e.metamaskId),this.prepMessageForSigning(e)}setMessageStatusApproved(e){this.setMessageStatus(e,"approved")}setMessageStatusSigned(e,t){const r=this.getMessage(e);r&&(r.rawSig=t,this.updateMessage(r),this.setMessageStatus(e,"signed"))}rejectMessage(e){this.setMessageStatus(e,"rejected")}}r.AbstractMessageManager=o,r.default=o},{"../BaseController":147,events:476}],159:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../util"),i=e("./AbstractMessageManager"),o=e("uuid/v1");class a extends i.default{constructor(){super(...arguments),this.name="MessageManager"}addUnapprovedMessageAsync(e,t){return new Promise((r,i)=>{n.validateSignMessageData(e);const o=this.addUnapprovedMessage(e,t);this.hub.once(o+":finished",t=>{switch(t.status){case"signed":return r(t.rawSig);case"rejected":return i(new Error("MetaMask Message Signature: User denied message signature."));default:return i(new Error("MetaMask Message Signature: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,t){t&&(e.origin=t.origin),e.data=n.normalizeMessageData(e.data);const r=o(),i={id:r,messageParams:e,status:"unapproved",time:Date.now(),type:"eth_sign"};return this.addMessage(i),this.hub.emit("unapprovedMessage",Object.assign(Object.assign({},e),{metamaskId:r})),r}prepMessageForSigning(e){return delete e.metamaskId,Promise.resolve(e)}}r.MessageManager=a,r.default=a},{"../util":168,"./AbstractMessageManager":158,"uuid/v1":1136}],160:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../util"),i=e("./AbstractMessageManager"),o=e("uuid/v1");class a extends i.default{constructor(){super(...arguments),this.name="PersonalMessageManager"}addUnapprovedMessageAsync(e,t){return new Promise((r,i)=>{n.validateSignMessageData(e);const o=this.addUnapprovedMessage(e,t);this.hub.once(o+":finished",t=>{switch(t.status){case"signed":return r(t.rawSig);case"rejected":return i(new Error("MetaMask Personal Message Signature: User denied message signature."));default:return i(new Error("MetaMask Personal Message Signature: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,t){t&&(e.origin=t.origin),e.data=n.normalizeMessageData(e.data);const r=o(),i={id:r,messageParams:e,status:"unapproved",time:Date.now(),type:"personal_sign"};return this.addMessage(i),this.hub.emit("unapprovedMessage",Object.assign(Object.assign({},e),{metamaskId:r})),r}prepMessageForSigning(e){return delete e.metamaskId,Promise.resolve(e)}}r.PersonalMessageManager=a,r.default=a},{"../util":168,"./AbstractMessageManager":158,"uuid/v1":1136}],161:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../util"),i=e("./AbstractMessageManager"),o=e("uuid/v1");class a extends i.default{constructor(){super(...arguments),this.name="TypedMessageManager",this.requiredControllers=["NetworkController"]}addUnapprovedMessageAsync(e,t,r){return new Promise((i,o)=>{"V1"===t&&n.validateTypedSignMessageDataV1(e),"V3"===t&&n.validateTypedSignMessageDataV3(e);const a=this.addUnapprovedMessage(e,t,r);this.hub.once(a+":finished",t=>{switch(t.status){case"signed":return i(t.rawSig);case"rejected":return o(new Error("MetaMask Typed Message Signature: User denied message signature."));case"errored":return o(new Error("MetaMask Typed Message Signature: "+t.error));default:return o(new Error("MetaMask Typed Message Signature: Unknown problem: "+JSON.stringify(e)))}})})}addUnapprovedMessage(e,t,r){const n=o(),i=Object.assign(Object.assign({},e),{metamaskId:n,version:t});r&&(e.origin=r.origin);const a={id:n,messageParams:e,status:"unapproved",time:Date.now(),type:"eth_signTypedData"};return this.addMessage(a),this.hub.emit("unapprovedMessage",i),n}setMessageStatusErrored(e,t){const r=this.getMessage(e);r&&(r.error=t,this.updateMessage(r),this.setMessageStatus(e,"errored"))}prepMessageForSigning(e){return delete e.metamaskId,delete e.version,Promise.resolve(e)}}r.TypedMessageManager=a,r.default=a},{"../util":168,"./AbstractMessageManager":158,"uuid/v1":1136}],162:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};Object.defineProperty(r,"__esModule",{value:!0});const o=e("../BaseController"),a=e("eth-query"),s=e("web3-provider-engine/subproviders/provider.js"),c=e("eth-json-rpc-infura/src/createProvider"),u=e("web3-provider-engine//zero.js"),l=e("await-semaphore").Mutex;class f extends o.default{constructor(e,t){super(e,t),this.internalProviderConfig={},this.mutex=new l,this.name="NetworkController",this.defaultState={network:"loading",provider:{type:"mainnet"}},this.initialize()}initializeProvider(e,t,r,n,i){switch(e){case"kovan":case"mainnet":this.setupInfuraProvider(e);break;case"rinkeby":case"goerli":case"ropsten":this.setupInfuraProvider(e);break;case"localhost":this.setupStandardProvider("http://localhost:8545");break;case"rpc":t&&this.setupStandardProvider(t,r,n,i)}}refreshNetwork(){this.update({network:"loading"});const{rpcTarget:e,type:t,chainId:r,ticker:n}=this.state.provider;this.initializeProvider(t,e,r,n),this.lookupNetwork()}registerProvider(){this.provider.on("error",this.verifyNetwork.bind(this)),this.ethQuery=new a(this.provider)}setupInfuraProvider(e){const t=c({network:e}),r=new s(t),n=Object.assign(Object.assign({},this.internalProviderConfig),{dataSubprovider:r,engineParams:{blockTrackerProvider:t,pollingInterval:12e3}});this.updateProvider(u(n))}setupStandardProvider(e,t,r,n){const i=Object.assign(Object.assign({},this.internalProviderConfig),{chainId:t,engineParams:{pollingInterval:12e3},nickname:n,rpcUrl:e,ticker:r});this.updateProvider(u(i))}updateProvider(e){this.safelyStopProvider(this.provider),this.provider=e,this.registerProvider()}safelyStopProvider(e){setTimeout(()=>{e&&e.stop()},500)}verifyNetwork(){"loading"===this.state.network&&this.lookupNetwork()}set providerConfig(e){this.internalProviderConfig=e;const{type:t,rpcTarget:r,chainId:n,ticker:i,nickname:o}=this.state.provider;this.initializeProvider(t,r,n,i,o),this.registerProvider(),this.lookupNetwork()}lookupNetwork(){return n(this,void 0,void 0,(function*(){if(!this.ethQuery||!this.ethQuery.sendAsync)return;const e=yield this.mutex.acquire();this.ethQuery.sendAsync({method:"net_version"},(t,r)=>{this.update({network:t?"loading":r}),e()})}))}setProviderType(e){const t=this.state.provider,{rpcTarget:r,chainId:n,nickname:o}=t,a=i(t,["rpcTarget","chainId","nickname"]);this.update({provider:Object.assign(Object.assign({},a),{type:e,ticker:"ETH"})}),this.refreshNetwork()}setRpcTarget(e,t,r,n){this.update({provider:Object.assign(Object.assign({},this.state.provider),{type:"rpc",ticker:r,rpcTarget:e,chainId:t,nickname:n})}),this.refreshNetwork()}}r.NetworkController=f,r.default=f},{"../BaseController":147,"await-semaphore":330,"eth-json-rpc-infura/src/createProvider":636,"eth-query":686,"web3-provider-engine//zero.js":1207,"web3-provider-engine/subproviders/provider.js":1197}],163:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("../BaseController"),o=e("../util"),a={kovan:"down",mainnet:"down",rinkeby:"down",ropsten:"down"};class s extends i.default{constructor(e,t){super(e,t),this.name="NetworkStatusController",this.defaultConfig={interval:18e4},this.defaultState={networkStatus:{infura:a}},this.initialize(),this.poll()}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield o.safelyExecute(()=>this.updateNetworkStatuses()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}updateInfuraStatus(){return n(this,void 0,void 0,(function*(){try{const e=yield o.handleFetch("https://api.infura.io/v1/status/metamask");return e&&e.mainnet?e:a}catch(e){return a}}))}updateNetworkStatuses(){return n(this,void 0,void 0,(function*(){if(this.disabled)return;const e=yield this.updateInfuraStatus();this.update({networkStatus:{infura:e}})}))}}r.NetworkStatusController=s,r.default=s},{"../BaseController":147,"../util":168}],164:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("../BaseController"),o=e("../util"),a=e("eth-phishing-detect/src/config.json"),s=e("eth-phishing-detect/src/detector");class c extends i.default{constructor(e,t){super(e,t),this.configUrl="https://api.github.com/repos/MetaMask/eth-phishing-detect/contents/src/config.json",this.configEtag="",this.name="PhishingController",this.defaultConfig={interval:18e4},this.defaultState={phishing:a,whitelist:[]},this.detector=new s(this.defaultState.phishing),this.initialize(),this.poll()}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield o.safelyExecute(()=>this.updatePhishingLists()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}test(e){return-1===this.state.whitelist.indexOf(e)&&this.detector.check(e).result}bypass(e){const{whitelist:t}=this.state;-1===t.indexOf(e)&&this.update({whitelist:[...t,e]})}updatePhishingLists(){return n(this,void 0,void 0,(function*(){if(this.disabled)return;const e=yield this.queryConfig(this.configUrl);e&&(this.detector=new s(e),this.update({phishing:e}))}))}queryConfig(e){return n(this,void 0,void 0,(function*(){const t=yield fetch(e,{headers:{Accept:"application/vnd.github.v3.raw+json","If-None-Match":this.configEtag}});switch(t.status){case 200:return this.configEtag=t.headers.get("ETag")||"",yield t.json();case 304:case 403:return null;default:throw new Error(`Fetch failed with status '${t.status}' for request '${e}'`)}}))}}r.PhishingController=c,r.default=c},{"../BaseController":147,"../util":168,"eth-phishing-detect/src/config.json":684,"eth-phishing-detect/src/detector":685}],165:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("events"),o=e("ethereumjs-util"),a=e("../BaseController"),s=e("eth-json-rpc-errors").ethErrors,c=e("../util"),u=e("eth-method-registry"),l=e("eth-query"),f=e("ethereumjs-tx"),d=e("uuid/v1"),{BN:h}=e("ethereumjs-util"),p=e("await-semaphore").Mutex;r.CANCEL_RATE=1.5,r.SPEED_UP_RATE=1.1;class m extends a.default{constructor(e,t){super(e,t),this.mutex=new p,this.hub=new i.EventEmitter,this.name="TransactionController",this.requiredControllers=["NetworkController"],this.defaultConfig={interval:5e3,provider:void 0},this.defaultState={methodData:{},transactions:[]},this.initialize(),this.poll()}failTransaction(e,t){e.status="failed",e.error=t,this.updateTransaction(e),this.hub.emit(e.id+":finished",e)}query(e,t=[]){return new Promise((r,n)=>{this.ethQuery[e](...t,(e,t)=>{e?n(e):r(t)})})}registryLookup(e){return n(this,void 0,void 0,(function*(){const t=yield this.registry.lookup(e);return{registryMethod:t,parsedRegistryMethod:this.registry.parse(t)}}))}normalizeTxFromEtherscan(e,t){const r=1e3*parseInt(e.timeStamp,10),n="0"===e.isError?"confirmed":"failed";return{blockNumber:e.blockNumber,id:d({msecs:r}),networkID:t,status:n,time:r,transaction:{data:e.input,from:e.from,gas:c.BNToHex(new h(e.gas)),gasPrice:c.BNToHex(new h(e.gasPrice)),nonce:c.BNToHex(new h(e.nonce)),to:e.to,value:c.BNToHex(new h(e.value))},transactionHash:e.hash}}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield c.safelyExecute(()=>this.queryTransactionStatuses()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}handleMethodData(e){return n(this,void 0,void 0,(function*(){const t=yield this.mutex.acquire();try{const{methodData:r}=this.state;if(Object.keys(r).find(t=>e===t))return r[e];const n=yield this.registryLookup(e);return this.update({methodData:Object.assign(Object.assign({},r),{[e]:n})}),n}finally{t()}}))}addTransaction(e,t){return n(this,void 0,void 0,(function*(){const r=this.context.NetworkController,{transactions:n}=this.state;e=c.normalizeTransaction(e),c.validateTransaction(e);const i={id:d(),networkID:r?r.state.network:"1",origin:t,status:"unapproved",time:Date.now(),transaction:e};try{const{gas:t,gasPrice:r}=yield this.estimateGas(e);e.gas=t,e.gasPrice=r}catch(e){return this.failTransaction(i,e),Promise.reject(e)}const o=new Promise((e,t)=>{this.hub.once(i.id+":finished",r=>{switch(r.status){case"submitted":return e(r.transactionHash);case"rejected":return t(s.provider.userRejectedRequest("User rejected the transaction"));case"cancelled":return t(s.rpc.internal("User cancelled the transaction"));case"failed":return t(s.rpc.internal(r.error.message));default:return t(s.rpc.internal("MetaMask Tx Signature: Unknown problem: "+JSON.stringify(r)))}})});return n.push(i),this.update({transactions:[...n]}),this.hub.emit("unapprovedTransaction",i),{result:o,transactionMeta:i}}))}approveTransaction(e){return n(this,void 0,void 0,(function*(){const{transactions:t}=this.state,r=this.context.NetworkController,n=r?r.state.network:"1",i=t.findIndex(({id:t})=>e===t),a=t[i],{from:s}=a.transaction;if(this.sign)try{a.status="approved",a.transaction.nonce=yield this.query("getTransactionCount",[s,"pending"]),a.transaction.chainId=parseInt(n,void 0);const e=new f(Object.assign({},a.transaction));yield this.sign(e,a.transaction.from),a.status="signed",this.updateTransaction(a);const t=o.bufferToHex(e.serialize());a.rawTransaction=t,this.updateTransaction(a);const r=yield this.query("sendRawTransaction",[t]);a.transactionHash=r,a.status="submitted",this.updateTransaction(a),this.hub.emit(a.id+":finished",a)}catch(e){this.failTransaction(a,e)}else this.failTransaction(a,new Error("No sign method defined."))}))}cancelTransaction(e){const t=this.state.transactions.find(({id:t})=>t===e);if(!t)return;t.status="rejected",this.hub.emit(t.id+":finished",t);const r=this.state.transactions.filter(({id:t})=>t!==e);this.update({transactions:[...r]})}stopTransaction(e){return n(this,void 0,void 0,(function*(){const t=this.state.transactions.find(({id:t})=>t===e);if(!t)return;if(!this.sign)throw new Error("No sign method defined.");const n=t.transaction.gasPrice,i=parseInt(void 0===n?"0x0":n,16),a=o.addHexPrefix(""+parseFloat(""+i*r.CANCEL_RATE).toString(16)),s=new f({from:t.transaction.from,gas:t.transaction.gas,gasPrice:a,nonce:t.transaction.nonce,to:t.transaction.from,value:"0x0"});yield this.sign(s,t.transaction.from);const c=o.bufferToHex(s.serialize());yield this.query("sendRawTransaction",[c]),t.status="cancelled",this.hub.emit(t.id+":finished",t)}))}speedUpTransaction(e){return n(this,void 0,void 0,(function*(){const t=this.state.transactions.find(({id:t})=>t===e);if(!t)return;if(!this.sign)throw new Error("No sign method defined.");const{transactions:n}=this.state,i=t.transaction.gasPrice,a=parseInt(void 0===i?"0x0":i,16),s=o.addHexPrefix(""+parseFloat(""+a*r.SPEED_UP_RATE).toString(16)),c=new f(Object.assign(Object.assign({},t.transaction),{gasPrice:s}));yield this.sign(c,t.transaction.from);const u=o.bufferToHex(c.serialize()),l=yield this.query("sendRawTransaction",[u]),h=Object.assign(Object.assign({},t),{id:d(),time:Date.now(),transaction:Object.assign(Object.assign({},t.transaction),{gasPrice:s}),transactionHash:l});n.push(h),this.update({transactions:[...n]}),this.hub.emit(t.id+":speedup",h)}))}estimateGas(e){return n(this,void 0,void 0,(function*(){const t=Object.assign({},e),{gasLimit:r}=yield this.query("getBlockByNumber",["latest",!1]),{gas:n,gasPrice:i,to:a,value:s,data:u}=t,l=void 0===i?yield this.query("gasPrice"):i;if(void 0!==n)return{gas:n,gasPrice:l};const f=a?yield this.query("getCode",[a]):void 0;if(!a||a&&!u&&(!f||"0x"===f))return{gas:"0x5208",gasPrice:l};t.data=u?o.addHexPrefix(u):u,t.value=void 0===s?"0x0":s;const d=c.hexToBN(r);t.gas=c.BNToHex(c.fractionBN(d,19,20));const h=yield this.query("estimateGas",[t]),p=c.hexToBN(h),m=d.muln(.9),y=p.muln(1.5);return p.gt(m)?{gas:o.addHexPrefix(h),gasPrice:l}:y.lt(m)?{gas:o.addHexPrefix(c.BNToHex(y)),gasPrice:l}:{gas:o.addHexPrefix(c.BNToHex(m)),gasPrice:l}}))}onComposed(){super.onComposed();const e=this.context.NetworkController,t=()=>{this.ethQuery=e.provider?new l(e.provider):null,this.registry=e.provider?new u({provider:e.provider}):null};t(),e.subscribe(t)}queryTransactionStatuses(){return n(this,void 0,void 0,(function*(){const{transactions:e}=this.state,t=this.context.NetworkController.state.network;let r=!1;yield c.safelyExecute(()=>Promise.all(e.map((i,o)=>n(this,void 0,void 0,(function*(){if("submitted"===i.status&&i.networkID===t){const t=yield this.query("getTransactionByHash",[i.transactionHash]);t&&t.blockNumber&&(e[o].status="confirmed",this.hub.emit(i.id+":confirmed",i),r=!0)}}))))),r&&this.update({transactions:[...e]})}))}updateTransaction(e){const{transactions:t}=this.state;e.transaction=c.normalizeTransaction(e.transaction),c.validateTransaction(e.transaction);const r=t.findIndex(({id:t})=>e.id===t);t[r]=e,this.update({transactions:[...t]})}wipeTransactions(e){if(e)return void this.update({transactions:[]});const t=this.context.NetworkController;if(!t)return;const r=t.state.network,n=this.state.transactions.filter(({networkID:e})=>e!==r);this.update({transactions:n})}fetchAll(e,t){return n(this,void 0,void 0,(function*(){const r=this.context.NetworkController,i=r.state.network,o=r.state.provider.type;let a="api";if(-1===["1","3","4","42"].indexOf(i))return;"mainnet"!==o&&(a="api-"+o);const s=`https://${a}.etherscan.io`;if(!s)return;let u=`${s}/api?module=account&action=txlist&address=${e}&tag=latest&page=1`;t&&(u+="&startBlock="+t);const l=yield c.handleFetch(u);if("0"!==l.status&&l.result.length>0){const t={},r=[];l.result.forEach(e=>{t[e.hash]||(r.push(this.normalizeTxFromEtherscan(e,i)),t[e.hash]=1)});const o=this.state.transactions.filter(e=>!t[""+e.transactionHash]),a=[...r,...o];let s;return a.sort((e,t)=>e.time<t.time?-1:1),a.forEach(t=>n(this,void 0,void 0,(function*(){if(t.networkID===i&&t.transaction.to&&t.transaction.to.toLowerCase()===e.toLowerCase()&&t.blockNumber&&(!s||parseInt(s,10)<parseInt(t.blockNumber,10))&&(s=t.blockNumber),void 0===t.toSmartContract)if(!t.transaction.to||t.transaction.data&&"0x"===t.transaction.data)t.toSmartContract=!1;else{const e=yield this.query("getCode",[t.transaction.to]);t.toSmartContract=c.isSmartContractCode(e)}}))),this.update({transactions:a}),s}}))}}r.TransactionController=m,r.default=m},{"../BaseController":147,"../util":168,"await-semaphore":330,"eth-json-rpc-errors":601,"eth-method-registry":174,"eth-query":686,"ethereumjs-tx":712,"ethereumjs-util":178,events:476,"uuid/v1":1136}],166:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("ethereumjs-util"),i=e("../util"),o=e("../BaseController");class a extends o.default{constructor(e,t){super(e,t),this.name="AddressBookController",this.defaultState={addressBook:{}},this.initialize()}clear(){this.update({addressBook:{}})}delete(e,t){if(t=n.toChecksumAddress(t),!n.isValidAddress(t)||!this.state.addressBook[e]||!this.state.addressBook[e][t])return!1;const r=Object.assign({},this.state.addressBook);return delete r[e][t],0===Object.keys(r[e]).length&&delete r[e],this.update({addressBook:r}),!0}set(e,t,r="1",o=""){if(e=n.toChecksumAddress(e),!n.isValidAddress(e))return!1;const a={address:e,chainId:r,isEns:!1,memo:o,name:t},s=i.normalizeEnsName(t);return s&&(a.name=s,a.isEns=!0),this.update({addressBook:Object.assign(Object.assign({},this.state.addressBook),{[r]:Object.assign(Object.assign({},this.state.addressBook[r]),{[e]:a})})}),!0}}r.AddressBookController=a,r.default=a},{"../BaseController":147,"../util":168,"ethereumjs-util":178}],167:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("ethereumjs-util"),i=e("../BaseController");class o extends i.default{constructor(e,t){super(e,t),this.name="PreferencesController",this.defaultState={featureFlags:{},frequentRpcList:[],identities:{},ipfsGateway:"https://ipfs.io/ipfs/",lostIdentities:{},selectedAddress:""},this.initialize()}addIdentities(e){const{identities:t}=this.state;e.forEach(e=>{if(e=n.toChecksumAddress(e),t[e])return;const r=Object.keys(t).length;t[e]={name:"Account "+(r+1),address:e}}),this.update({identities:Object.assign({},t)})}removeIdentity(e){e=n.toChecksumAddress(e);const{identities:t}=this.state;t[e]&&(delete t[e],this.update({identities:Object.assign({},t)}),e===this.state.selectedAddress&&this.update({selectedAddress:Object.keys(t)[0]}))}setAccountLabel(e,t){e=n.toChecksumAddress(e);const r=this.state.identities;r[e]=r[e]||{},r[e].name=t,this.update({identities:Object.assign({},r)})}setFeatureFlag(e,t){const r=this.state.featureFlags,n=Object.assign(Object.assign({},r),{[e]:t});this.update({featureFlags:Object.assign({},n)})}syncIdentities(e){e=e.map(e=>n.toChecksumAddress(e));const{identities:t,lostIdentities:r}=this.state,i={};for(const r in t)-1===e.indexOf(r)&&(i[r]=t[r],delete t[r]);if(Object.keys(i).length>0)for(const e in i)r[e]=i[e];return this.update({identities:Object.assign({},t),lostIdentities:Object.assign({},r)}),this.addIdentities(e),-1===e.indexOf(this.state.selectedAddress)&&this.update({selectedAddress:e[0]}),this.state.selectedAddress}updateIdentities(e){e=e.map(e=>n.toChecksumAddress(e));const t=this.state.identities,r=e.reduce((e,r,n)=>(e[r]=Object.assign({address:r,name:"Account "+(n+1)},t[r]||{}),e),{});this.update({identities:Object.assign({},r)})}addToFrequentRpcList(e,t,r,n,i){const o=this.state.frequentRpcList,a=o.findIndex(({rpcUrl:t})=>t===e);-1!==a&&o.splice(a,1);const s={rpcUrl:e,chainId:t,ticker:r,nickname:n,rpcPrefs:i};o.push(s),this.update({frequentRpcList:[...o]})}removeFromFrequentRpcList(e){const t=this.state.frequentRpcList,r=t.findIndex(({rpcUrl:t})=>t===e);-1!==r&&t.splice(r,1),this.update({frequentRpcList:[...t]})}setSelectedAddress(e){this.update({selectedAddress:n.toChecksumAddress(e)})}setIpfsGateway(e){this.update({ipfsGateway:e})}}r.PreferencesController=o,r.default=o},{"../BaseController":147,"ethereumjs-util":178}],168:[function(e,t,r){(function(t){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("ethereumjs-util"),o=e("eth-sig-util"),a=e("jsonschema"),{BN:s,stripHexPrefix:c}=e("ethereumjs-util"),u=e("eth-ens-namehash"),l=/^[0-9A-Fa-f]+$/g,f={data:e=>i.addHexPrefix(e),from:e=>i.addHexPrefix(e).toLowerCase(),gas:e=>i.addHexPrefix(e),gasPrice:e=>i.addHexPrefix(e),nonce:e=>i.addHexPrefix(e),to:e=>i.addHexPrefix(e).toLowerCase(),value:e=>i.addHexPrefix(e)};function d(e){return i.addHexPrefix(e.toString(16))}function h(e,t,r){const n=new s(t),i=new s(r);return e.mul(n).div(i)}function p(e="1",t,r=5){switch(e){case"1":return`https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${r}&address=${t}&crypto_currency=ETH`;case"3":return"https://faucet.metamask.io/";case"4":return"https://www.rinkeby.io/";case"5":return"https://goerli-faucet.slock.it/";case"42":return"https://github.com/kovan-testnet/faucet"}}function m(e){return new s(c(e),16)}function y(e){try{const r=c(e);return t.from(r,"hex").toString("utf8")}catch(t){return e}}function g(e){const t={from:""};let r;for(r in f)e[r]&&(t[r]=f[r](e[r]));return t}function b(e,t=!1,r){return n(this,void 0,void 0,(function*(){try{return yield e()}catch(e){t&&console.error(e),r&&r(e)}}))}function v(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if("0x"===e.to||void 0===e.to){if(!e.data)throw new Error(`Invalid "to" address: ${e.to} must be a valid string.`);delete e.to}else if(void 0!==e.to&&!i.isValidAddress(e.to))throw new Error(`Invalid "to" address: ${e.to} must be a valid string.`);if(void 0!==e.value){const t=e.value.toString();if(t.includes("-"))throw new Error(`Invalid "value": ${t} is not a positive number.`);if(t.includes("."))throw new Error(`Invalid "value": ${t} number must be denominated in wei.`);const r=parseInt(e.value,10);if(!Number.isFinite(r)||Number.isNaN(r)||isNaN(+t)||!Number.isSafeInteger(r))throw new Error(`Invalid "value": ${t} number must be a valid number.`)}}function w(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if(!e.data||!Array.isArray(e.data))throw new Error(`Invalid message "data": ${e.data} must be a valid array.`);try{o.typedSignatureHash(e.data)}catch(e){throw new Error("Expected EIP712 typed data.")}}function _(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if(!e.data||"string"!=typeof e.data)throw new Error(`Invalid message "data": ${e.data} must be a valid array.`);let t;try{t=JSON.parse(e.data)}catch(e){throw new Error("Data must be passed as a valid JSON string.")}if(a.validate(t,o.TYPED_MESSAGE_SCHEMA).errors.length>0)throw new Error("Data must conform to EIP-712 schema. See https://git.io/fNtcx.")}function x(e){const{address:t,symbol:r,decimals:n}=e;if(!t||!r||void 0===n)throw new Error("Cannot suggest token without address, symbol, and decimals");if(!(r.length<7))throw new Error(`Invalid symbol ${r} more than six characters`);if(isNaN(n)||n>36||n<0)throw new Error(`Invalid decimals ${n} must be at least 0, and not over 36`);if(!i.isValidAddress(t))throw new Error("Invalid address "+t)}function k(e){return!!e&&("0x"!==e&&"0x0"!==e)}function S(e,t){return n(this,void 0,void 0,(function*(){const r=yield fetch(e,t);if(!r.ok)throw new Error(`Fetch failed with status '${r.status}' for request '${e}'`);return r}))}function E(e,t){return n(this,void 0,void 0,(function*(){const r=yield S(e,t);return yield r.json()}))}function A(e,t,r=500){return n(this,void 0,void 0,(function*(){return Promise.race([S(e,t),new Promise((e,t)=>setTimeout(()=>{t(new Error("timeout"))},r))])}))}r.BNToHex=d,r.fractionBN=h,r.getBuyURL=p,r.hexToBN=m,r.hexToText=y,r.normalizeTransaction=g,r.safelyExecute=b,r.validateTransaction=v,r.normalizeMessageData=function(e){try{const t=c(e);if(t.match(l))return i.addHexPrefix(t)}catch(e){}return i.bufferToHex(t.from(e,"utf8"))},r.validateSignMessageData=function(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if(!e.data||"string"!=typeof e.data)throw new Error(`Invalid message "data": ${e.data} must be a valid string.`)},r.validateTypedSignMessageDataV1=w,r.validateTypedSignMessageDataV3=_,r.validateTokenToWatch=x,r.isSmartContractCode=k,r.successfulFetch=S,r.handleFetch=E,r.timeoutFetch=A,r.normalizeEnsName=function(e){if(e&&"string"==typeof e)try{const t=u.normalize(e.trim());if(t.match(/^(([\w\d\-]+)\.)*[\w\d\-]{7,}\.(eth|test)$/))return t}catch(e){}return null},r.default={BNToHex:d,fractionBN:h,getBuyURL:p,handleFetch:E,hexToBN:m,hexToText:y,isSmartContractCode:k,normalizeTransaction:g,safelyExecute:b,successfulFetch:S,timeoutFetch:A,validateTokenToWatch:x,validateTransaction:v,validateTypedSignMessageDataV1:w,validateTypedSignMessageDataV3:_}}).call(this,e("buffer").Buffer)},{buffer:475,"eth-ens-namehash":594,"eth-sig-util":694,"ethereumjs-util":178,jsonschema:829}],169:[function(e,t,r){"use strict";var n=e("inherits"),i=e("md5.js"),o=e("ripemd160"),a=e("sha.js"),s=e("cipher-base");function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},{"cipher-base":488,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],170:[function(e,t,r){const{EventEmitter:n}=e("events"),i=e("loglevel"),o=e("ethereumjs-util"),{BN:a}=o,s=e("bip39"),c=e("obs-store"),u=e("browser-passworder"),{normalize:l}=e("eth-sig-util"),f=[e("eth-simple-keyring"),e("eth-hd-keyring")];t.exports=class extends n{constructor(e){super();const t=e.initState||{};this.keyringTypes=e.keyringTypes?f.concat(e.keyringTypes):f,this.store=new c(t),this.memStore=new c({isUnlocked:!1,keyringTypes:this.keyringTypes.map(e=>e.type),keyrings:[]}),this.encryptor=e.encryptor||u,this.keyrings=[],this.getNetwork=e.getNetwork}fullUpdate(){return this.emit("update",this.memStore.getState()),this.memStore.getState()}createNewVaultAndKeychain(e){return this.persistAllKeyrings(e).then(this.createFirstKeyTree.bind(this)).then(this.persistAllKeyrings.bind(this,e)).then(this.setUnlocked.bind(this)).then(this.fullUpdate.bind(this))}createNewVaultAndRestore(e,t){return"string"!=typeof e?Promise.reject(new Error("Password must be text.")):s.validateMnemonic(t)?(this.clearKeyrings(),this.persistAllKeyrings(e).then(()=>this.addNewKeyring("HD Key Tree",{mnemonic:t,numberOfAccounts:1})).then(e=>e.getAccounts()).then(([e])=>{if(!e)throw new Error("KeyringController - First Account not found.");return null}).then(this.persistAllKeyrings.bind(this,e)).then(this.setUnlocked.bind(this)).then(this.fullUpdate.bind(this))):Promise.reject(new Error("Seed phrase is invalid."))}async setLocked(){return this.password=null,this.memStore.updateState({isUnlocked:!1}),this.keyrings=[],await this._updateMemStoreKeyrings(),this.fullUpdate()}submitPassword(e){return this.unlockKeyrings(e).then(e=>(this.keyrings=e,this.setUnlocked(),this.fullUpdate()))}addNewKeyring(e,t){const r=new(this.getKeyringClassForType(e))(t);return r.getAccounts().then(t=>this.checkForDuplicate(e,t)).then(()=>(this.keyrings.push(r),this.persistAllKeyrings())).then(()=>this._updateMemStoreKeyrings()).then(()=>this.fullUpdate()).then(()=>r)}async removeEmptyKeyrings(){const e=[];await Promise.all(this.keyrings.map(async t=>{(await t.getAccounts()).length>0&&e.push(t)})),this.keyrings=e}checkForDuplicate(e,t){return this.getAccounts().then(r=>{switch(e){case"Simple Key Pair":return Boolean(r.find(e=>e===t[0]||e===o.stripHexPrefix(t[0])))?Promise.reject(new Error("The account you're are trying to import is a duplicate")):Promise.resolve(t);default:return Promise.resolve(t)}})}addNewAccount(e){return e.addAccounts(1).then(e=>{e.forEach(e=>{this.emit("newAccount",e)})}).then(this.persistAllKeyrings.bind(this)).then(this._updateMemStoreKeyrings.bind(this)).then(this.fullUpdate.bind(this))}exportAccount(e){try{return this.getKeyringForAccount(e).then(t=>t.exportAccount(l(e)))}catch(e){return Promise.reject(e)}}removeAccount(e){return this.getKeyringForAccount(e).then(t=>"function"==typeof t.removeAccount?(t.removeAccount(e),this.emit("removedAccount",e),t.getAccounts()):Promise.reject(new Error(`Keyring ${t.type} doesn't support account removal operations`))).then(e=>{if(0===e.length)return this.removeEmptyKeyrings()}).then(this.persistAllKeyrings.bind(this)).then(this._updateMemStoreKeyrings.bind(this)).then(this.fullUpdate.bind(this)).catch(e=>Promise.reject(e))}signTransaction(e,t,r={}){const n=l(t);return this.getKeyringForAccount(n).then(t=>t.signTransaction(n,e,r))}signMessage(e,t={}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.signMessage(r,e.data,t))}signPersonalMessage(e,t={}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.signPersonalMessage(r,e.data,t))}getEncryptionPublicKey(e,t={}){const r=l(e);return this.getKeyringForAccount(r).then(e=>e.getEncryptionPublicKey(r,t))}decryptMessage(e,t={}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.decryptMessage(r,e.data,t))}signTypedMessage(e,t={version:"V1"}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.signTypedData(r,e.data,t))}async getAppKeyAddress(e,t){const r=l(e);return(await this.getKeyringForAccount(r)).getAppKeyAddress(r,t)}async exportAppKeyForAddress(e,t){const r=l(e),n=await this.getKeyringForAccount(r);if(!("exportAccount"in n))throw new Error(`The keyring for address ${e} does not support exporting.`);return n.exportAccount(r,{withAppKeyOrigin:t})}createFirstKeyTree(){return this.clearKeyrings(),this.addNewKeyring("HD Key Tree",{numberOfAccounts:1}).then(e=>e.getAccounts()).then(([e])=>{if(!e)throw new Error("KeyringController - No account found on keychain.");const t=l(e);return this.emit("newVault",t),null})}persistAllKeyrings(e=this.password){return"string"!=typeof e?Promise.reject(new Error("KeyringController - password is not a string")):(this.password=e,Promise.all(this.keyrings.map(e=>Promise.all([e.type,e.serialize()]).then(e=>({type:e[0],data:e[1]})))).then(e=>this.encryptor.encrypt(this.password,e)).then(e=>(this.store.updateState({vault:e}),!0)))}async unlockKeyrings(e){const t=this.store.getState().vault;if(!t)throw new Error("Cannot unlock without a previous vault.");await this.clearKeyrings();const r=await this.encryptor.decrypt(e,t);return this.password=e,await Promise.all(r.map(this.restoreKeyring.bind(this))),this.keyrings}restoreKeyring(e){const{type:t,data:r}=e,n=new(this.getKeyringClassForType(t));return n.deserialize(r).then(()=>n.getAccounts()).then(()=>(this.keyrings.push(n),this._updateMemStoreKeyrings())).then(()=>n)}getKeyringClassForType(e){return this.keyringTypes.find(t=>t.type===e)}getKeyringsByType(e){return this.keyrings.filter(t=>t.type===e)}async getAccounts(){const e=this.keyrings||[];return(await Promise.all(e.map(e=>e.getAccounts())).then(e=>e.reduce((e,t)=>e.concat(t),[]))).map(l)}getKeyringForAccount(e){const t=l(e);return i.debug("KeyringController - getKeyringForAccount: "+t),Promise.all(this.keyrings.map(e=>Promise.all([e,e.getAccounts()]))).then(e=>{const r=e.filter(e=>e[1].map(l).includes(t));if(r&&r.length>0)return r[0][0];throw new Error("No keyring found for the requested account.")})}displayForKeyring(e){return e.getAccounts().then(t=>({type:e.type,accounts:t.map(l)}))}addGasBuffer(e){const t=new a("100000",10),r=new a(o.stripHexPrefix(e),16).add(t);return o.addHexPrefix(r.toString(16))}async clearKeyrings(){this.keyrings=[],this.memStore.updateState({keyrings:[]})}async _updateMemStoreKeyrings(){const e=await Promise.all(this.keyrings.map(this.displayForKeyring));return this.memStore.updateState({keyrings:e})}setUnlocked(){this.memStore.updateState({isUnlocked:!0}),this.emit("unlock",!0)}}},{bip39:430,"browser-passworder":441,"eth-hd-keyring":596,"eth-sig-util":171,"eth-simple-keyring":698,"ethereumjs-util":172,events:476,loglevel:872,"obs-store":898}],171:[function(e,t,r){const n=e("ethereumjs-util"),i=e("ethereumjs-abi");function o(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;const r=e.map((function(e){return"bytes"===e.type?n.toBuffer(e.value):e.value})),o=e.map((function(e){return e.type})),a=e.map((function(e){if(!e.name)throw t;return e.type+" "+e.name}));return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(new Array(e.length).fill("string"),a),i.soliditySHA3(o,r)])}function a(e,t){const r=n.toBuffer(t),i=n.fromRpcSig(r);return n.ecrecover(e,i.v,i.r,i.s)}function s(e){const t=n.toBuffer(e.data);return a(n.hashPersonalMessage(t),e.sig)}function c(e,t){for(var r=""+e;r.length<t;)r="0"+r;return r}t.exports={concatSig:function(e,t,r){const i=n.fromSigned(t),o=n.fromSigned(r),a=n.bufferToInt(e),s=c(n.toUnsigned(i).toString("hex"),64),u=c(n.toUnsigned(o).toString("hex"),64),l=n.stripHexPrefix(n.intToHex(a));return n.addHexPrefix(s.concat(u,l)).toString("hex")},normalize:function(e){if(e){if("number"==typeof e){const t=n.toBuffer(e);e=n.bufferToHex(t)}if("string"!=typeof e){var t="eth-sig-util.normalize() requires hex string or integer input.";throw new Error(t+=" received "+typeof e+": "+e)}return n.addHexPrefix(e.toLowerCase())}},personalSign:function(e,t){var r=n.toBuffer(t.data),i=n.hashPersonalMessage(r),o=n.ecsign(i,e);return n.bufferToHex(this.concatSig(o.v,o.r,o.s))},recoverPersonalSignature:function(e){const t=s(e),r=n.publicToAddress(t);return n.bufferToHex(r)},extractPublicKey:function(e){return"0x"+s(e).toString("hex")},typedSignatureHash:function(e){const t=o(e);return n.bufferToHex(t)},signTypedData:function(e,t){const r=o(t.data),i=n.ecsign(r,e);return n.bufferToHex(this.concatSig(i.v,i.r,i.s))},recoverTypedSignature:function(e){const t=a(o(e.data),e.sig),r=n.publicToAddress(t);return n.bufferToHex(r)}}},{"ethereumjs-abi":176,"ethereumjs-util":172}],172:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e("keccak"),o=e("secp256k1"),a=e("assert"),s=e("rlp"),c=e("bn.js"),u=e("create-hash"),l=e("safe-buffer").Buffer;Object.assign(r,e("ethjs-util")),r.MAX_INTEGER=new c("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new c("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.SHA3_NULL_S=r.KECCAK256_NULL_S,r.KECCAK256_NULL=l.from(r.KECCAK256_NULL_S,"hex"),r.SHA3_NULL=r.KECCAK256_NULL,r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.SHA3_RLP_ARRAY_S=r.KECCAK256_RLP_ARRAY_S,r.KECCAK256_RLP_ARRAY=l.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.SHA3_RLP_ARRAY=r.KECCAK256_RLP_ARRAY,r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.SHA3_RLP_S=r.KECCAK256_RLP_S,r.KECCAK256_RLP=l.from(r.KECCAK256_RLP_S,"hex"),r.SHA3_RLP=r.KECCAK256_RLP,r.BN=c,r.rlp=s,r.secp256k1=o,r.zeros=function(e){return l.allocUnsafe(e).fill(0)},r.zeroAddress=function(){var e=r.zeros(20);return r.bufferToHex(e)},r.setLengthLeft=r.setLength=function(e,t,n){var i=r.zeros(t);return e=r.toBuffer(e),n?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)},r.setLengthRight=function(e,t){return r.setLength(e,t,!0)},r.unpad=r.stripZeros=function(e){for(var t=(e=r.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},r.toBuffer=function(e){if(!l.isBuffer(e))if(Array.isArray(e))e=l.from(e);else if("string"==typeof e)e=r.isHexString(e)?l.from(r.padToEven(r.stripHexPrefix(e)),"hex"):l.from(e);else if("number"==typeof e)e=r.intToBuffer(e);else if(null==e)e=l.allocUnsafe(0);else if(c.isBN(e))e=e.toArrayLike(l);else{if(!e.toArray)throw new Error("invalid type");e=l.from(e.toArray())}return e},r.bufferToInt=function(e){return new c(r.toBuffer(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=r.toBuffer(e)).toString("hex")},r.fromSigned=function(e){return new c(e).fromTwos(256)},r.toUnsigned=function(e){return l.from(e.toTwos(256).toArray())},r.keccak=function(e,t){return e=r.toBuffer(e),t||(t=256),i("keccak"+t).update(e).digest()},r.keccak256=function(e){return r.keccak(e)},r.sha3=r.keccak,r.sha256=function(e){return e=r.toBuffer(e),u("sha256").update(e).digest()},r.ripemd160=function(e,t){e=r.toBuffer(e);var n=u("rmd160").update(e).digest();return!0===t?r.setLength(n,32):n},r.rlphash=function(e){return r.keccak(s.encode(e))},r.isValidPrivate=function(e){return o.privateKeyVerify(e)},r.isValidPublic=function(e,t){return 64===e.length?o.publicKeyVerify(l.concat([l.from([4]),e])):!!t&&o.publicKeyVerify(e)},r.pubToAddress=r.publicToAddress=function(e,t){return e=r.toBuffer(e),t&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),a(64===e.length),r.keccak(e).slice(-20)};var f=r.privateToPublic=function(e){return e=r.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)};r.importPublic=function(e){return 64!==(e=r.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e},r.ecsign=function(e,t){var r=o.sign(e,t),n={};return n.r=r.signature.slice(0,32),n.s=r.signature.slice(32,64),n.v=r.recovery+27,n},r.hashPersonalMessage=function(e){var t=r.toBuffer("Ethereum Signed Message:\n"+e.length.toString());return r.keccak(l.concat([t,e]))},r.ecrecover=function(e,t,n,i){var a=l.concat([r.setLength(n,32),r.setLength(i,32)],64),s=t-27;if(0!==s&&1!==s)throw new Error("Invalid signature v value");var c=o.recover(e,a,s);return o.publicKeyConvert(c,!1).slice(1)},r.toRpcSig=function(e,t,n){if(27!==e&&28!==e)throw new Error("Invalid recovery id");return r.bufferToHex(l.concat([r.setLengthLeft(t,32),r.setLengthLeft(n,32),r.toBuffer(e-27)]))},r.fromRpcSig=function(e){if(65!==(e=r.toBuffer(e)).length)throw new Error("Invalid signature length");var t=e[64];return t<27&&(t+=27),{v:t,r:e.slice(0,32),s:e.slice(32,64)}},r.privateToAddress=function(e){return r.publicToAddress(f(e))},r.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},r.isZeroAddress=function(e){return r.zeroAddress()===r.addHexPrefix(e)},r.toChecksumAddress=function(e){e=r.stripHexPrefix(e).toLowerCase();for(var t=r.keccak(e).toString("hex"),n="0x",i=0;i<e.length;i++)parseInt(t[i],16)>=8?n+=e[i].toUpperCase():n+=e[i];return n},r.isValidChecksumAddress=function(e){return r.isValidAddress(e)&&r.toChecksumAddress(e)===e},r.generateAddress=function(e,t){return e=r.toBuffer(e),t=(t=new c(t)).isZero()?null:l.from(t.toArray()),r.rlphash([e,t]).slice(-20)},r.isPrecompiled=function(e){var t=r.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},r.addHexPrefix=function(e){return"string"!=typeof e||r.isHexPrefixed(e)?e:"0x"+e},r.isValidSignature=function(e,t,r,n){var i=new c("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new c("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);return!(32!==t.length||32!==r.length||27!==e&&28!==e||(t=new c(t),r=new c(r),t.isZero()||t.gt(o)||r.isZero()||r.gt(o)||!1===n&&1===new c(r).cmp(i)))},r.baToJSON=function(e){if(l.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(r.baToJSON(e[n]));return t}},r.defineProperties=function(e,t,i){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(t){var n={};return e._fields.forEach((function(t){n[t]="0x"+e[t].toString("hex")})),n}return r.baToJSON(this.raw)},e.serialize=function(){return s.encode(e.raw)},t.forEach((function(t,n){function i(){return e.raw[n]}function o(i){"00"!==(i=r.toBuffer(i)).toString("hex")||t.allowZero||(i=l.allocUnsafe(0)),t.allowLess&&t.length?(i=r.stripZeros(i),a(t.length>=i.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===i.length||!t.length||a(t.length===i.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[n]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),i)if("string"==typeof i&&(i=l.from(r.stripHexPrefix(i),"hex")),l.isBuffer(i)&&(i=s.decode(i)),Array.isArray(i)){if(i.length>e._fields.length)throw new Error("wrong number of fields in data");i.forEach((function(t,n){e[e._fields[n]]=r.toBuffer(t)}))}else{if("object"!==(void 0===i?"undefined":n(i)))throw new Error("invalid data");var o=Object.keys(i);t.forEach((function(t){-1!==o.indexOf(t.name)&&(e[t.name]=i[t.name]),-1!==o.indexOf(t.alias)&&(e[t.alias]=i[t.alias])}))}}},{assert:329,"bn.js":439,"create-hash":169,"ethjs-util":190,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],173:[function(e,t,r){t.exports=[{constant:!1,inputs:[{name:"_new",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[],name:"totalSignatures",outputs:[{name:"",type:"uint256"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[],name:"drain",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"",type:"bytes4"}],name:"entries",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_method",type:"string"}],name:"register",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{inputs:[],type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"creator",type:"address"},{indexed:!0,name:"signature",type:"bytes4"},{indexed:!1,name:"method",type:"string"}],name:"Registered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"old",type:"address"},{indexed:!0,name:"current",type:"address"}],name:"NewOwner",type:"event"}]},{}],174:[function(e,t,r){const n=e("ethjs"),i=e("./registry-map.json"),o=e("./abi");t.exports=class{constructor(e={}){this.provider=e.provider||new n.HttpProvider("https://mainnet.infura.io/eth-contract-registry"),this.eth=new n(this.provider);const t=i[e.network||"1"];if(!t)throw new Error("No method registry found on the requested network.");this.registry=this.eth.contract(o).at(t)}async lookup(e){return(await this.registry.entries(e))[0]}parse(e){let t=e.match(/^.+(?=\()/);t=t?t[0].charAt(0).toUpperCase()+t[0].slice(1).split(/(?=[A-Z])/).join(" "):"";const r=e.match(/\(.+\)/);let n=[];return r&&(n=r[0].slice(1,-1).split(",").map(e=>({type:e}))),{name:t,args:n}}}},{"./abi":173,"./registry-map.json":175,ethjs:191}],175:[function(e,t,r){t.exports={1:"0x44691B39d1a75dC4E0A0346CBB15E310e6ED1E86"}},{}],176:[function(e,t,r){t.exports=e("./lib/index.js")},{"./lib/index.js":177}],177:[function(e,t,r){(function(r){const n=e("ethereumjs-util"),i=e("bn.js");var o=function(){};function a(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function f(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function d(e,t){var o,a,f,h;if("address"===e)return d("uint160",l(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",r.from(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)f.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);f.unshift(p)}return r.concat(f)}if("bytes"===e)return t=r.from(t),f=r.concat([d("uint256",t.length),t]),t.length%32!=0&&(f=r.concat([f,n.zeros(32-t.length%32)])),f;if(e.startsWith("bytes")){if((o=s(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",a.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=c(e),d("int256",l(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,a,s,c;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=h(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),c=0;c<o;c++){var l=h(e.subArray,t,n);s.push(l),n+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),t.slice(n+32,n+32+o);if(e.name.startsWith("bytes"))return t.slice(n,n+e.size);if(e.name.startsWith("uint")){if((a=new i(t.slice(n,n+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(y(e)){t=u(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var i=e+"("+t.map(a).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(y(e)){var t=u(e);o+="dynamic"!==t?32*t:32}else o+=32}));for(var s=0;s<e.length;s++){var c=a(e[s]),l=d(c,t[s]);m(c)?(n.push(d("uint256",o)),i.push(l),o+=l.length):n.push(l)}return r.concat(n.concat(i))},o.rawDecode=function(e,t){var n=[];t=r.from(t);for(var i=0,o=0;o<e.length;o++){var s=p(a(e[o])),c=h(s,t,i);i+=s.memoryUsage,n.push(c)}return n},o.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),n=f(e);if(t.length!==n.args.length)throw new Error("Argument count mismatch");return r.concat([o.methodID(n.method,n.args),o.rawEncode(n.args,t)])},o.simpleDecode=function(e,t){var r=f(e);if(!r.retargs)throw new Error("No return values in method");return o.rawDecode(r.retargs,t)},o.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return g(i,e)})).join(", "):g(i,o),r.push(o)}return r},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var i,o,c=[],u=0;u<e.length;u++){var f=a(e[u]),d=t[u];if("bytes"===f)c.push(d);else if("string"===f)c.push(r.from(d,"utf8"));else if("bool"===f)c.push(r.from(d?"01":"00","hex"));else if("address"===f)c.push(n.setLengthLeft(d,20));else if(f.startsWith("bytes")){if((i=s(f))<1||i>32)throw new Error("Invalid bytes<N> width: "+i);c.push(n.setLengthRight(d,i))}else if(f.startsWith("uint")){if((i=s(f))%8||i<8||i>256)throw new Error("Invalid uint<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+o.bitLength());c.push(o.toArrayLike(r,"be",i/8))}else{if(!f.startsWith("int"))throw new Error("Unsupported or invalid type: "+f);if((i=s(f))%8||i<8||i>256)throw new Error("Invalid int<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+o.bitLength());c.push(o.toTwos(i).toArrayLike(r,"be",i/8))}}return r.concat(c)},o.soliditySHA3=function(e,t){return n.keccak256(o.solidityPack(e,t))},o.soliditySHA256=function(e,t){return n.sha256(o.solidityPack(e,t))},o.solidityRIPEMD160=function(e,t){return n.ripemd160(o.solidityPack(e,t),!0)},o.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+s(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},t.exports=o}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,"ethereumjs-util":178}],178:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("bn.js");r.BN=n;var i=e("rlp");r.rlp=i;var o=e("keccak"),a=e("secp256k1");r.secp256k1=a;var s=e("assert"),c=e("create-hash"),u=e("safe-buffer").Buffer,l=e("ethjs-util");function f(e,t){return t?e-(2*t+35):e-27}function d(e){return 0===e||1===e}Object.assign(r,l),r.MAX_INTEGER=new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new n("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=u.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=u.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=u.from(r.KECCAK256_RLP_S,"hex"),r.zeros=function(e){return u.allocUnsafe(e).fill(0)},r.zeroAddress=function(){var e=r.zeros(20);return r.bufferToHex(e)},r.setLengthLeft=function(e,t,n){void 0===n&&(n=!1);var i=r.zeros(t);return e=r.toBuffer(e),n?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)},r.setLength=r.setLengthLeft,r.setLengthRight=function(e,t){return r.setLength(e,t,!0)},r.unpad=function(e){for(var t=(e=l.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},r.stripZeros=r.unpad,r.toBuffer=function(e){if(!u.isBuffer(e))if(Array.isArray(e))e=u.from(e);else if("string"==typeof e)e=r.isHexString(e)?u.from(r.padToEven(r.stripHexPrefix(e)),"hex"):u.from(e);else if("number"==typeof e)e=r.intToBuffer(e);else if(null==e)e=u.allocUnsafe(0);else if(n.isBN(e))e=e.toArrayLike(u);else{if(!e.toArray)throw new Error("invalid type");e=u.from(e.toArray())}return e},r.bufferToInt=function(e){return new n(r.toBuffer(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=r.toBuffer(e)).toString("hex")},r.fromSigned=function(e){return new n(e).fromTwos(256)},r.toUnsigned=function(e){return u.from(e.toTwos(256).toArray())},r.keccak=function(e,t){return void 0===t&&(t=256),e=r.toBuffer(e),t||(t=256),o("keccak"+t).update(e).digest()},r.keccak256=function(e){return r.keccak(e)},r.sha256=function(e){return e=r.toBuffer(e),c("sha256").update(e).digest()},r.ripemd160=function(e,t){e=r.toBuffer(e);var n=c("rmd160").update(e).digest();return!0===t?r.setLength(n,32):n},r.rlphash=function(e){return r.keccak(i.encode(e))},r.isValidPrivate=function(e){return a.privateKeyVerify(e)},r.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?a.publicKeyVerify(u.concat([u.from([4]),e])):!!t&&a.publicKeyVerify(e)},r.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=r.toBuffer(e),t&&64!==e.length&&(e=a.publicKeyConvert(e,!1).slice(1)),s(64===e.length),r.keccak(e).slice(-20)},r.publicToAddress=r.pubToAddress,r.privateToPublic=function(e){return e=r.toBuffer(e),a.publicKeyCreate(e,!1).slice(1)},r.importPublic=function(e){return 64!==(e=r.toBuffer(e)).length&&(e=a.publicKeyConvert(e,!1).slice(1)),e},r.ecsign=function(e,t,r){var n=a.sign(e,t),i=n.recovery;return{r:n.signature.slice(0,32),s:n.signature.slice(32,64),v:r?i+(2*r+35):i+27}},r.hashPersonalMessage=function(e){var t=r.toBuffer("Ethereum Signed Message:\n"+e.length.toString());return r.keccak(u.concat([t,e]))},r.ecrecover=function(e,t,n,i,o){var s=u.concat([r.setLength(n,32),r.setLength(i,32)],64),c=f(t,o);if(!d(c))throw new Error("Invalid signature v value");var l=a.recover(e,s,c);return a.publicKeyConvert(l,!1).slice(1)},r.toRpcSig=function(e,t,n,i){if(!d(f(e,i)))throw new Error("Invalid signature v value");return r.bufferToHex(u.concat([r.setLengthLeft(t,32),r.setLengthLeft(n,32),r.toBuffer(e)]))},r.fromRpcSig=function(e){var t=r.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var n=t[64];return n<27&&(n+=27),{v:n,r:t.slice(0,32),s:t.slice(32,64)}},r.privateToAddress=function(e){return r.publicToAddress(r.privateToPublic(e))},r.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},r.isZeroAddress=function(e){return r.zeroAddress()===r.addHexPrefix(e)},r.toChecksumAddress=function(e){e=l.stripHexPrefix(e).toLowerCase();for(var t=r.keccak(e).toString("hex"),n="0x",i=0;i<e.length;i++)parseInt(t[i],16)>=8?n+=e[i].toUpperCase():n+=e[i];return n},r.isValidChecksumAddress=function(e){return r.isValidAddress(e)&&r.toChecksumAddress(e)===e},r.generateAddress=function(e,t){e=r.toBuffer(e);var i=new n(t);return i.isZero()?r.rlphash([e,null]).slice(-20):r.rlphash([e,u.from(i.toArray())]).slice(-20)},r.generateAddress2=function(e,t,n){var i=r.toBuffer(e),o=r.toBuffer(t),a=r.toBuffer(n);return s(20===i.length),s(32===o.length),r.keccak256(u.concat([u.from("ff","hex"),i,o,r.keccak256(a)])).slice(-20)},r.isPrecompiled=function(e){var t=r.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},r.addHexPrefix=function(e){return"string"!=typeof e||l.isHexPrefixed(e)?e:"0x"+e},r.isValidSignature=function(e,t,r,i,o){void 0===i&&(i=!0);var a=new n("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new n("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length)return!1;if(!d(f(e,o)))return!1;var c=new n(t),u=new n(r);return!(c.isZero()||c.gt(s)||u.isZero()||u.gt(s)||i&&1===u.cmp(a))},r.baToJSON=function(e){if(u.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t.push(r.baToJSON(e[n]));return t}},r.defineProperties=function(e,t,n){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var n={};return e._fields.forEach((function(t){n[t]="0x"+e[t].toString("hex")})),n}return r.baToJSON(e.raw)},e.serialize=function(){return i.encode(e.raw)},t.forEach((function(t,n){function i(){return e.raw[n]}function o(i){"00"!==(i=r.toBuffer(i)).toString("hex")||t.allowZero||(i=u.allocUnsafe(0)),t.allowLess&&t.length?(i=r.stripZeros(i),s(t.length>=i.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===i.length||!t.length||s(t.length===i.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[n]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),n)if("string"==typeof n&&(n=u.from(l.stripHexPrefix(n),"hex")),u.isBuffer(n)&&(n=i.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,n){e[e._fields[n]]=r.toBuffer(t)}))}else{if("object"!=typeof n)throw new Error("invalid data");var o=Object.keys(n);t.forEach((function(t){-1!==o.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==o.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},{assert:329,"bn.js":439,"create-hash":169,"ethjs-util":190,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],179:[function(e,t,r){(function(r){"use strict";var n=e("./utils/index.js"),i=n.uint256Coder,o=(n.coderBoolean,n.coderFixedBytes,n.coderAddress,n.coderDynamicBytes,n.coderString,n.coderArray,n.paramTypePart,n.getParamCoder);function a(){}function s(e,t){if(e.length!==t.length)throw new Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+e.length+" types (arguments), and you passed in "+t.length);var n=[];function a(e){return parseInt(32*Math.ceil(e/32))}e.forEach((function(e,r){var i=o(e);n.push({dynamic:i.dynamic,value:i.encode(t[r])})}));var s=0,c=0;n.forEach((function(e){e.dynamic?(s+=32,c+=a(e.value.length)):s+=a(e.value.length)}));var u=0,l=s,f=new r(s+c);return n.forEach((function(e,t){e.dynamic?(i.encode(l).copy(f,u),u+=32,e.value.copy(f,l),l+=a(e.value.length)):(e.value.copy(f,u),u+=a(e.value.length))})),"0x"+f.toString("hex")}function c(e,t,r){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(r=t,t=e,e=[]),r=n.hexOrBuffer(r);var c=new a,u=0;return t.forEach((function(t,n){var a=o(t);if(a.dynamic){var l=i.decode(r,u),f=a.decode(r,l.value.toNumber());u+=l.consumed}else f=a.decode(r,u),u+=f.consumed;s&&(c[n]=f.value),e[n]&&(c[e[n]]=f.value)})),c}function u(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+new r(n.keccak256(t),"hex").slice(0,4).toString("hex")}function l(e,t){var r=s(n.getKeys(e.inputs,"type"),t).substring(2);return""+u(e)+r}function f(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+n.keccak256(t)}function d(e,t,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=e.inputs.filter((function(e){return!e.indexed})),u=n.getKeys(s,"name",!0),l=n.getKeys(s,"type"),f=c(u,l,n.hexOrBuffer(t),a),d=e.anonymous?0:1;return e.inputs.filter((function(e){return e.indexed})).map((function(e,t){var n=new r(i[t+d].slice(2),"hex"),a=o(e.type);f[e.name]=a.decode(n,0).value})),f._eventName=e.name,f}function h(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t.topics[0]===f(e))return d(e,t.data,t.topics,r)}t.exports={encodeParams:s,decodeParams:c,encodeMethod:l,decodeMethod:function(e,t){return c(n.getKeys(e.outputs,"name",!0),n.getKeys(e.outputs,"type"),n.hexOrBuffer(t))},encodeEvent:function(e,t){return l(e,t)},decodeEvent:d,decodeLogItem:h,logDecoder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return e.filter((function(e){return"event"===e.type})).map((function(e){r[f(e)]=e})),function(e){return e.map((function(e){return h(r[e.topics[0]],e,t)})).filter((function(e){return e}))}},eventSignature:f,encodeSignature:u}}).call(this,e("buffer").Buffer)},{"./utils/index.js":180,buffer:475}],180:[function(e,t,r){(function(r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=e("js-sha3").keccak_256;function a(e){for(var t=e,r=t[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t}function s(e){var t=e.toString(16);return t.length%2&&(t="0"+t),a(new r(t,"hex"))}function c(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function u(e,t){var n=e;if(!r.isBuffer(n)){if(!c(n)){var i=new Error(t?"[ethjs-abi] invalid "+t:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=n,i}(n=n.substring(2)).length%2&&(n="0"+n),n=new r(n,"hex")}return n}function l(e,t){return{encode:function(n){var o=n;return"object"==typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!=typeof o&&"number"!=typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*e).maskn(8*e),t&&(o=o.fromTwos(8*e).toTwos(256)),o.toArrayLike(r,"be",32)},decode:function(r,i){var o=32-e,a=new n(r.slice(i+o,i+32));return a=t?a.fromTwos(8*e):a.maskn(8*e),{consumed:32,value:new n(a.toString(10))}}}}var f=l(32,!1),d={encode:function(e){return f.encode(e?1:0)},decode:function(e,t){var r=f.decode(e,t);return{consumed:r.consumed,value:!r.value.isZero()}}};function h(e){return{encode:function(e){var t=e;if(32===(t=u(t)).length)return t;var n=new r(32);return n.fill(0),t.copy(n),n},decode:function(t,r){if(0!==t.length&&t.length<r+32)throw new Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+e);return{consumed:32,value:"0x"+t.slice(r,r+e).toString("hex")}}}}var p={encode:function(e){var t=e,n=new r(32);if(!c(t,20))throw new Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return t=u(t),n.fill(0),t.copy(n,12),n},decode:function(e,t){if(0===e.length)return{consumed:32,value:"0x"};if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+e.length);return{consumed:32,value:"0x"+e.slice(t+12,t+32).toString("hex")}}};function m(e){var t=parseInt(32*Math.ceil(e.length/32)),n=new r(t-e.length);return n.fill(0),r.concat([f.encode(e.length),e,n])}function y(e,t){if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32));var r=f.decode(e,t).value;if(r=r.toNumber(),0!==e.length&&e.length<t+32+r)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32+r));return{consumed:parseInt(32+32*Math.ceil(r/32),10),value:e.slice(t+32,t+32+r)}}var g={encode:function(e){return m(u(e))},decode:function(e,t){var r=y(e,t);return r.value="0x"+r.value.toString("hex"),r},dynamic:!0},b={encode:function(e){return m(new r(e,"utf8"))},decode:function(e,t){var r=y(e,t);return r.value=r.value.toString("utf8"),r},dynamic:!0};function v(e,t){return{encode:function(n){var i=new r(0),o=t;if(!Array.isArray(n))throw new Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=n.length,i=f.encode(o)),o!==n.length)throw new Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+n.length);return n.forEach((function(t){i=r.concat([i,e.encode(t)])})),i},decode:function(r,n){var i,o=t,a=n,s=0;-1===o&&(o=(i=f.decode(r,a)).value.toNumber(),s+=i.consumed,a+=i.consumed);for(var c=[],u=0;u<o;u++){var l=e.decode(r,a);s+=l.consumed,a+=l.consumed,c.push(l.value)}return{consumed:s,value:c}},dynamic:-1===t}}var w=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:n,bnToBuffer:s,isHexString:c,hexOrBuffer:u,hexlify:function(e){return"number"==typeof e?"0x"+s(new n(e)).toString("hex"):e.mod||e.modulo?"0x"+s(e).toString("hex"):"0x"+u(e).toString("hex")},stripZeros:a,keccak256:o,getKeys:function(e,t,r){var n=[];if(!Array.isArray(e))throw new Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(e));for(var i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");n.push(o)}return n},numberToBN:i,coderNumber:l,uint256Coder:f,coderBoolean:d,coderFixedBytes:h,coderAddress:p,coderDynamicBytes:g,coderString:b,coderArray:v,paramTypePart:w,getParamCoder:function(e){for(var t=e,r=null,n="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(t)+" is either invalid or unsupported by ethjs-abi.";t;){var i=t.match(w);if(!i)throw new Error(n);t=t.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(r)throw new Error(n);var a=parseInt(i[3]||256);if(0===a||a>256||a%8!=0)throw new Error("[ethjs-abi] while getting param coder for type "+t+", invalid "+o+"<N> width: "+t);r=l(a/8,"int"===o);break;case"bool":if(r)throw new Error(n);r=d;break;case"string":if(r)throw new Error(n);r=b;break;case"bytes":if(r)throw new Error(n);if(i[3]){var s=parseInt(i[3]);if(0===s||s>32)throw new Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+t+", size "+s+" should be 0 or greater than 32");r=h(s)}else r=g;break;case"address":if(r)throw new Error(n);r=p;break;case"[]":if(!r||r.dynamic)throw new Error(n);r=v(r,-1);break;default:if(!r||r.dynamic)throw new Error(n);r=v(r,parseInt(i[6]))}}if(!r)throw new Error(n);return r}}}).call(this,e("buffer").Buffer)},{"bn.js":181,buffer:475,"js-sha3":815,"number-to-bn":895}],181:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof t?t.exports=o:r.BN=o,o.BN=o,o.wordSize=26;try{a=e("buffer").Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;r>=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(e,l,l+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","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"],l=[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],f=[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];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var l=c>>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s<o;s++)u[s]=0}else{for(s=0;s<o-i;s++)u[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[o-s-1]=a}return u},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,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},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,r){var n,i,o,a=e.words,s=t.words,c=r.words,u=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,y=0|a[2],g=8191&y,b=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],k=8191&x,S=x>>>13,E=0|a[5],A=8191&E,T=E>>>13,C=0|a[6],O=8191&C,j=C>>>13,P=0|a[7],M=8191&P,I=P>>>13,N=0|a[8],B=8191&N,R=N>>>13,D=0|a[9],L=8191&D,U=D>>>13,F=0|s[0],q=8191&F,H=F>>>13,z=0|s[1],K=8191&z,V=z>>>13,G=0|s[2],W=8191&G,Y=G>>>13,$=0|s[3],J=8191&$,Q=$>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(u+(n=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,q)|0))<<13)|0;u=((o=Math.imul(d,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var ge=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,K)|0))<<13)|0;u=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,H))+Math.imul(b,q)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,V)|0;var be=(u+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0;var ve=(u+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(d,J)|0))<<13)|0;u=((o=o+Math.imul(d,Q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Q)|0;var we=(u+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,H))+Math.imul(T,q)|0,o=Math.imul(T,H),n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Q)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Q)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(O,q),i=(i=Math.imul(O,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Q)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(u+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Q)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,H))+Math.imul(R,q)|0,o=Math.imul(R,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Q)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0;var Se=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(U,q)|0,o=Math.imul(U,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Q)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(S,re)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ce)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Ee=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,V))+Math.imul(U,K)|0,o=Math.imul(U,V),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,n=n+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,ue)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,de)|0;var Ae=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Y))+Math.imul(U,W)|0,o=Math.imul(U,Y),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(u+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Q))+Math.imul(U,J)|0,o=Math.imul(U,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,ue)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,ue)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ce=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,ue)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Oe=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(S,pe)|0))<<13)|0;u=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,n=n+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var je=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,ue)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Pe=(u+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(j,pe)|0))<<13)|0;u=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),n=n+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,de)|0;var Me=(u+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var Ie=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,me)|0)+Math.imul(R,pe)|0))<<13)|0;u=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,pe)|0))<<13)|0;return u=((o=Math.imul(U,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=ge,c[2]=be,c[3]=ve,c[4]=we,c[5]=_e,c[6]=xe,c[7]=ke,c[8]=Se,c[9]=Ee,c[10]=Ae,c[11]=Te,c[12]=Ce,c[13]=Oe,c[14]=je,c[15]=Pe,c[16]=Me,c[17]=Ie,c[18]=Ne,0!==u&&(c[19]=u,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var l=o-u,f=(0|e.words[l])*(0|t.words[u]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=c,d=u,h=0;h<a;h++){var p=r[l+h],m=n[l+h],y=r[l+h+a],g=n[l+h+a],b=f*y-d*g;g=f*g+d*y,y=b,r[l+h]=p+y,n[l+h]=m+g,r[l+h+a]=p-y,n[l+h+a]=m-g,h!==s&&(b=c*f-u*d,d=c*d+u*f,f=b)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),c=new Array(n),u=new Array(n),l=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,u,n),this.transform(a,o,s,c,n,i),this.transform(u,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-c[h]*f[h];c[h]=s[h]*f[h]+c[h]*l[h],s[h]=p}return this.conjugate(s,c,n),this.transform(s,c,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),p(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<r;this.words[t]=c|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=r;if(i-=a,i=Math.max(0,i),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=n.clone()._ishlnsubmul(i,1,c);0===l.negative&&(n=l,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(b,g),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,g),i(w,g),i(_,g),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return y[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<p);var g=this.pow(f,new o(1).iushln(p-y-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=y}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{}],182:[function(e,t,r){"use strict";var n=s(e("babel-runtime/regenerator")),i=s(e("babel-runtime/core-js/json/stringify")),o=s(e("babel-runtime/helpers/asyncToGenerator")),a=s(e("babel-runtime/core-js/object/assign"));function s(e){return e&&e.__esModule?e:{default:e}}var c=e("ethjs-abi"),u=e("ethjs-filter"),l=e("ethjs-util").getKeys,f=e("js-sha3").keccak_256,d=e("./has-tx-object"),h=e("promise-to-callback");function p(e){return e.filter((function(e){return("function"===e.type||"event"===e.type)&&e.name.length>0}))}t.exports=function(){var e,t=(e=(0,o.default)(n.default.mark((function e(t){var r,o,u,l,f,h=t.methodObject,p=t.methodArgs;return n.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="call",o={},d(p)&&(o=p.pop()),(u=(0,a.default)({},s.defaultTxObject,o,{to:s.address})).data=c.encodeMethod(h,p),!1===h.constant&&(r="sendTransaction"),e.next=8,s.query[r](u);case 8:if(l=e.sent,"call"!==r){e.next=19;break}return e.prev=10,f=c.decodeMethod(h,l),e.abrupt("return",f);case 15:throw e.prev=15,e.t0=e.catch(10),new Error("[ethjs-contract] while formatting incoming raw call data "+(0,i.default)(l)+" "+e.t0);case 19:return e.abrupt("return",l);case 20:case"end":return e.stop()}}),e,this,[[10,15]])}))),function(t){return e.apply(this,arguments)}),r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=this;function m(e){return function(){var t=[].slice.call(arguments),r=l(e.inputs,"type",!1),n="0x"+f(e.name+"("+r.join(",")+")"),i=[n],o=(0,a.default)({},t[0])||{},u=(0,a.default)({},t[0]||{},{to:s.address,topics:i}),d=(0,a.default)({},o,{decoder:function(t){return c.decodeEvent(e,t,i)},defaultFilterObject:u});return new s.filters.Filter(d)}}function y(e){return function(){var r=void 0,n=[].slice.call(arguments);"function"==typeof n[n.length-1]&&(r=n.pop());var i=t({methodObject:e,methodArgs:n});return r?h(i)(r):i}}s.abi=r.contractABI||[],s.query=r.query,s.address=r.address||"0x",s.bytecode=r.contractBytecode||"0x",s.defaultTxObject=r.contractDefaultTxObject||{},s.filters=new u(s.query),p(s.abi).forEach((function(e){"function"===e.type?s[e.name]=y(e):"event"===e.type&&(s[e.name]=m(e))}))}},{"./has-tx-object":183,"babel-runtime/core-js/json/stringify":331,"babel-runtime/core-js/object/assign":332,"babel-runtime/helpers/asyncToGenerator":336,"babel-runtime/regenerator":420,"ethjs-abi":186,"ethjs-filter":748,"ethjs-util":188,"js-sha3":815,"promise-to-callback":953}],183:[function(e,t,r){"use strict";var n,i=(n=e("babel-runtime/core-js/object/keys"))&&n.__esModule?n:{default:n},o=["from","to","data","value","gasPrice","gas"];t.exports=function(e){if(!Array.isArray(e)||0===e.length)return!1;var t=e[e.length-1];if(!t)return!1;if("object"!=typeof t)return!1;if(0===(0,i.default)(t).length)return!0;var r=(0,i.default)(t);return!!o.some((function(e){return r.includes(e)}))}},{"babel-runtime/core-js/object/keys":334}],184:[function(e,t,r){"use strict";var n,i=(n=e("babel-runtime/core-js/object/assign"))&&n.__esModule?n:{default:n},o=e("ethjs-abi"),a=(e("js-sha3").keccak_256,e("ethjs-filter"),e("ethjs-util").getKeys),s=e("./contract"),c=e("./has-tx-object");function u(e){return e.filter((function(e){return"constructor"===e.type}))[0]}t.exports=function(e){return function(t,r,n){if(!Array.isArray(t))throw new Error("[ethjs-contract] Contract ABI must be type Array, got type "+typeof t);if(void 0!==r&&"string"!=typeof r)throw new Error("[ethjs-contract] Contract bytecode must be type String, got type "+typeof r);if(void 0!==n&&"object"!=typeof n)throw new Error("[ethjs-contract] Contract default tx object must be type Object, got type "+typeof t);return{at:function(i){return new s({address:i,query:e,contractBytecode:r,contractDefaultTxObject:n,contractABI:t})},new:function(){var s={},l=null,f=[].slice.call(arguments);"function"==typeof f[f.length-1]&&(l=f.pop()),c(f)&&(s=f.pop());var d=u(t),h=(0,i.default)({},n,s);if(r&&(h.data=r),d){var p=o.encodeParams(a(d.inputs,"type"),f).substring(2);h.data=""+h.data+p}return l?e.sendTransaction(h,l):e.sendTransaction(h)}}}}},{"./contract":182,"./has-tx-object":183,"babel-runtime/core-js/object/assign":332,"ethjs-abi":186,"ethjs-filter":748,"ethjs-util":188,"js-sha3":815}],185:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],186:[function(e,t,r){(function(r){"use strict";var n=e("./utils/index.js"),i=n.uint256Coder,o=(n.coderBoolean,n.coderFixedBytes,n.coderAddress,n.coderDynamicBytes,n.coderString,n.coderArray,n.paramTypePart,n.getParamCoder);function a(){}function s(e,t){if(e.length!==t.length)throw new Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+e.length+" types (arguments), and you passed in "+t.length);var n=[];function a(e){return parseInt(32*Math.ceil(e/32))}e.forEach((function(e,r){var i=o(e);n.push({dynamic:i.dynamic,value:i.encode(t[r])})}));var s=0,c=0;n.forEach((function(e){e.dynamic?(s+=32,c+=a(e.value.length)):s+=a(e.value.length)}));var u=0,l=s,f=new r(s+c);return n.forEach((function(e,t){e.dynamic?(i.encode(l).copy(f,u),u+=32,e.value.copy(f,l),l+=a(e.value.length)):(e.value.copy(f,u),u+=a(e.value.length))})),"0x"+f.toString("hex")}function c(e,t,r){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(r=t,t=e,e=[]),r=n.hexOrBuffer(r);var c=new a,u=0;return t.forEach((function(t,n){var a=o(t);if(a.dynamic){var l=i.decode(r,u),f=a.decode(r,l.value.toNumber());u+=l.consumed}else f=a.decode(r,u),u+=f.consumed;s&&(c[n]=f.value),e[n]&&(c[e[n]]=f.value)})),c}function u(e,t){var i=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+new r(n.keccak256(i),"hex").slice(0,4).toString("hex")+s(n.getKeys(e.inputs,"type"),t).substring(2)}function l(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+n.keccak256(t)}function f(e,t,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=e.inputs.filter((function(e){return!e.indexed})),u=n.getKeys(s,"name",!0),l=n.getKeys(s,"type"),f=c(u,l,n.hexOrBuffer(t),a),d=e.anonymous?0:1;return e.inputs.filter((function(e){return e.indexed})).map((function(e,t){var n=new r(i[t+d].slice(2),"hex"),a=o(e.type);f[e.name]=a.decode(n,0).value})),f._eventName=e.name,f}function d(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t.topics[0]===l(e))return f(e,t.data,t.topics,r)}t.exports={encodeParams:s,decodeParams:c,encodeMethod:u,decodeMethod:function(e,t){return c(n.getKeys(e.outputs,"name",!0),n.getKeys(e.outputs,"type"),n.hexOrBuffer(t))},encodeEvent:function(e,t){return u(e,t)},decodeEvent:f,decodeLogItem:d,logDecoder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return e.filter((function(e){return"event"===e.type})).map((function(e){r[l(e)]=e})),function(e){return e.map((function(e){return d(r[e.topics[0]],e,t)})).filter((function(e){return e}))}},eventSignature:l}}).call(this,e("buffer").Buffer)},{"./utils/index.js":187,buffer:475}],187:[function(e,t,r){(function(r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=e("js-sha3").keccak_256;function a(e){for(var t=e,r=t[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t}function s(e){var t=e.toString(16);return t.length%2&&(t="0"+t),a(new r(t,"hex"))}function c(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function u(e,t){var n=e;if(!r.isBuffer(n)){if(!c(n)){var i=new Error(t?"[ethjs-abi] invalid "+t:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=n,i}(n=n.substring(2)).length%2&&(n="0"+n),n=new r(n,"hex")}return n}function l(e,t){return{encode:function(n){var o=n;return"object"==typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!=typeof o&&"number"!=typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*e).maskn(8*e),t&&(o=o.fromTwos(8*e).toTwos(256)),o.toArrayLike(r,"be",32)},decode:function(r,i){var o=32-e,a=new n(r.slice(i+o,i+32));return a=t?a.fromTwos(8*e):a.maskn(8*e),{consumed:32,value:new n(a.toString(10))}}}}var f=l(32,!1),d={encode:function(e){return f.encode(e?1:0)},decode:function(e,t){var r=f.decode(e,t);return{consumed:r.consumed,value:!r.value.isZero()}}};function h(e){return{encode:function(e){var t=e;if(32===(t=u(t)).length)return t;var n=new r(32);return n.fill(0),t.copy(n),n},decode:function(t,r){if(0!==t.length&&t.length<r+32)throw new Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+e);return{consumed:32,value:"0x"+t.slice(r,r+e).toString("hex")}}}}var p={encode:function(e){var t=e,n=new r(32);if(!c(t,20))throw new Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return t=u(t),n.fill(0),t.copy(n,12),n},decode:function(e,t){if(0===e.length)return{consumed:32,value:"0x"};if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+e.length);return{consumed:32,value:"0x"+e.slice(t+12,t+32).toString("hex")}}};function m(e){var t=parseInt(32*Math.ceil(e.length/32)),n=new r(t-e.length);return n.fill(0),r.concat([f.encode(e.length),e,n])}function y(e,t){if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32));var r=f.decode(e,t).value;if(r=r.toNumber(),0!==e.length&&e.length<t+32+r)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32+r));return{consumed:parseInt(32+32*Math.ceil(r/32),10),value:e.slice(t+32,t+32+r)}}var g={encode:function(e){return m(u(e))},decode:function(e,t){var r=y(e,t);return r.value="0x"+r.value.toString("hex"),r},dynamic:!0},b={encode:function(e){return m(new r(e,"utf8"))},decode:function(e,t){var r=y(e,t);return r.value=r.value.toString("utf8"),r},dynamic:!0};function v(e,t){return{encode:function(n){var i=new r(0),o=t;if(!Array.isArray(n))throw new Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=n.length,i=f.encode(o)),o!==n.length)throw new Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+n.length);return n.forEach((function(t){i=r.concat([i,e.encode(t)])})),i},decode:function(r,n){var i,o=t,a=n,s=0;-1===o&&(o=(i=f.decode(r,a)).value.toNumber(),s+=i.consumed,a+=i.consumed);for(var c=[],u=0;u<o;u++){var l=e.decode(r,a);s+=l.consumed,a+=l.consumed,c.push(l.value)}return{consumed:s,value:c}},dynamic:-1===t}}var w=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:n,bnToBuffer:s,isHexString:c,hexOrBuffer:u,hexlify:function(e){return"number"==typeof e?"0x"+s(new n(e)).toString("hex"):e.mod||e.modulo?"0x"+s(e).toString("hex"):"0x"+u(e).toString("hex")},stripZeros:a,keccak256:o,getKeys:function(e,t,r){var n=[];if(!Array.isArray(e))throw new Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(e));for(var i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");n.push(o)}return n},numberToBN:i,coderNumber:l,uint256Coder:f,coderBoolean:d,coderFixedBytes:h,coderAddress:p,coderDynamicBytes:g,coderString:b,coderArray:v,paramTypePart:w,getParamCoder:function(e){for(var t=e,r=null,n="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(t)+" is either invalid or unsupported by ethjs-abi.";t;){var i=t.match(w);if(!i)throw new Error(n);t=t.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(r)throw new Error(n);var a=parseInt(i[3]||256);if(0===a||a>256||a%8!=0)throw new Error("[ethjs-abi] while getting param coder for type "+t+", invalid "+o+"<N> width: "+t);r=l(a/8,"int"===o);break;case"bool":if(r)throw new Error(n);r=d;break;case"string":if(r)throw new Error(n);r=b;break;case"bytes":if(r)throw new Error(n);if(i[3]){var s=parseInt(i[3]);if(0===s||s>32)throw new Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+t+", size "+s+" should be 0 or greater than 32");r=h(s)}else r=g;break;case"address":if(r)throw new Error(n);r=p;break;case"[]":if(!r||r.dynamic)throw new Error(n);r=v(r,-1);break;default:if(!r||r.dynamic)throw new Error(n);r=v(r,parseInt(i[6]))}}if(!r)throw new Error(n);return r}}}).call(this,e("buffer").Buffer)},{"bn.js":185,buffer:475,"js-sha3":815,"number-to-bn":895}],188:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+o(e.toString(16))}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return r.from(t.slice(2),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],189:[function(e,t,r){"use strict";var n=e("ethjs-format"),i=e("ethjs-rpc"),o=e("promise-to-callback");function a(e,t){var r=t||{};if(!(this instanceof a))throw new Error('[ethjs-query] the Eth object requires the "new" flag in order to function normally (i.e. `const eth = new Eth(provider);`).');if("object"!=typeof e)throw new Error("[ethjs-query] the Eth object requires that the first input 'provider' must be an object, got '"+typeof e+"' (i.e. 'const eth = new Eth(provider);')");this.options=Object.assign({debug:r.debug||!1,logger:r.logger||console,jsonSpace:r.jsonSpace||0}),this.rpc=new i(e),this.setProvider=this.rpc.setProvider}function s(e,t){return function(){var r=null,i=null,a=this,s=[].slice.call(arguments),c=e.replace("eth_","");s.length>0&&"function"==typeof s[s.length-1]&&(r=s.pop());var u=l.call(this);return r?o(u)(r):u;function l(){var r=this;return new Promise((function(o,u){if(s.length<t[2])u(new Error("[ethjs-query] method '"+c+"' requires at least "+t[2]+" input (format type "+t[0][0]+"), "+s.length+" provided. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+e.toLowerCase()));else if(s.length>t[0].length)u(new Error("[ethjs-query] method '"+c+"' requires at most "+t[0].length+" params, "+s.length+" provided '"+JSON.stringify(s,null,a.options.jsonSpace)+"'. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+e.toLowerCase()));else{t[3]&&s.length<t[3]&&s.push("latest"),r.log("attempting method formatting for '"+c+"' with inputs "+JSON.stringify(s,null,r.options.jsonSpace));try{i=n.formatInputs(e,s),r.log("method formatting success for '"+c+"' with formatted result: "+JSON.stringify(i,null,r.options.jsonSpace))}catch(e){return void u(new Error("[ethjs-query] while formatting inputs '"+JSON.stringify(s,null,r.options.jsonSpace)+"' for method '"+c+"' error: "+e))}r.rpc.sendAsync({method:e,params:i}).then((function(t){try{r.log("attempting method formatting for '"+c+"' with raw outputs: "+JSON.stringify(t,null,r.options.jsonSpace));var i=n.formatOutputs(e,t);return r.log("method formatting success for '"+c+"' formatted result: "+JSON.stringify(i,null,r.options.jsonSpace)),void o(i)}catch(e){var a=new Error("[ethjs-query] while formatting outputs from RPC '"+JSON.stringify(t,null,r.options.jsonSpace)+"' for method '"+c+"' "+e);return void u(a)}})).catch((function(e){var t=new Error("[ethjs-query] while formatting outputs from RPC '"+JSON.stringify(e,null,r.options.jsonSpace)+"'");u(t)}))}}))}}}t.exports=a,a.prototype.log=function(e){this.options.debug&&this.options.logger.log("[ethjs-query log] "+e)},Object.keys(n.schema.methods).forEach((function(e){Object.defineProperty(a.prototype,e.replace("eth_",""),{enumerable:!0,value:s(e,n.schema.methods[e])})}))},{"ethjs-format":749,"ethjs-rpc":755,"promise-to-callback":953}],190:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],191:[function(e,t,r){(function(r){"use strict";var n=e("ethjs-query"),i=e("ethjs-filter"),o=e("ethjs-contract"),a=e("ethjs-provider-http"),s=e("ethjs-abi"),c=e("ethjs-unit"),u=e("js-sha3").keccak_256,l=e("number-to-bn"),f=e("bn.js"),d=e("ethjs-util"),h=e("./lib/getTransactionSuccess.js");function p(e,t){if(!(this instanceof p))throw new Error('[ethjs] the Eth object requires you construct it with the "new" flag (i.e. `const eth = new Eth(...);`).');var r=this;r.options=t||{};var a=new n(e,r.options.query);Object.keys(Object.getPrototypeOf(a)).forEach((function(e){r[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return a[e].apply(a,r)}})),r.filter=new i(a,r.options.query),r.contract=new o(a,r.options.query),r.currentProvider=a.rpc.currentProvider,r.setProvider=a.setProvider,r.getTransactionSuccess=h(r)}t.exports=p,p.BN=f,p.isAddress=function(e){return d.isHexString(e,20)},p.keccak256=function(e){return"0x"+u(e)},p.Buffer=r,p.isHexString=d.isHexString,p.fromWei=c.fromWei,p.toWei=c.toWei,p.toBN=l,p.abi=s,p.fromAscii=d.fromAscii,p.toAscii=d.toAscii,p.fromUtf8=d.fromUtf8,p.toUtf8=d.toUtf8,p.HttpProvider=a}).call(this,e("buffer").Buffer)},{"./lib/getTransactionSuccess.js":192,"bn.js":193,buffer:475,"ethjs-abi":179,"ethjs-contract":184,"ethjs-filter":748,"ethjs-provider-http":750,"ethjs-query":194,"ethjs-unit":757,"ethjs-util":195,"js-sha3":815,"number-to-bn":895}],192:[function(e,t,r){"use strict";t.exports=function(e){return function(t,r){var n=0,i=e.options.timeout||8e5,o=e.options.interval||7e3,a=new Promise((function(r,a){var s=setInterval((function(){e.getTransactionReceipt(t,(function(e,t){e&&(clearInterval(s),a(e)),!e&&t&&(clearInterval(s),r(t))})),n>=i&&(clearInterval(s),a("Receipt timeout waiting for tx hash: "+t)),n+=o}),o)}));return r&&a.then((function(e){return r(null,e)})).catch((function(e){return r(e,null)})),r?null:a}}},{}],193:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],194:[function(e,t,r){"use strict";var n=u(e("babel-runtime/regenerator")),i=u(e("babel-runtime/core-js/json/stringify")),o=u(e("babel-runtime/helpers/asyncToGenerator")),a=u(e("babel-runtime/core-js/object/define-property")),s=u(e("babel-runtime/core-js/object/keys")),c=u(e("babel-runtime/core-js/object/assign"));function u(e){return e&&e.__esModule?e:{default:e}}var l=e("ethjs-format"),f=e("ethjs-rpc"),d=e("promise-to-callback");function h(e,t){var r=t||{};if(!(this instanceof h))throw new Error('[ethjs-query] the Eth object requires the "new" flag in order to function normally (i.e. `const eth = new Eth(provider);`).');if("object"!=typeof e)throw new Error("[ethjs-query] the Eth object requires that the first input 'provider' must be an object, got '"+typeof e+"' (i.e. 'const eth = new Eth(provider);')");this.options=(0,c.default)({debug:r.debug||!1,logger:r.logger||console,jsonSpace:r.jsonSpace||0}),this.rpc=new f(e),this.setProvider=this.rpc.setProvider}function p(e,t){return function(){var r,a=(r=(0,o.default)(n.default.mark((function r(){var o,a;return n.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(f.length<t[2])){r.next=2;break}throw new Error("[ethjs-query] method '"+h+"' requires at least "+t[2]+" input (format type "+t[0][0]+"), "+f.length+" provided. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+e.toLowerCase());case 2:if(!(f.length>t[0].length)){r.next=4;break}throw new Error("[ethjs-query] method '"+h+"' requires at most "+t[0].length+" params, "+f.length+" provided '"+(0,i.default)(f,null,u.options.jsonSpace)+"'. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+e.toLowerCase());case 4:t[3]&&f.length<t[3]&&f.push("latest"),this.log("attempting method formatting for '"+h+"' with inputs "+(0,i.default)(f,null,this.options.jsonSpace)),r.prev=6,c=l.formatInputs(e,f),this.log("method formatting success for '"+h+"' with formatted result: "+(0,i.default)(c,null,this.options.jsonSpace)),r.next=14;break;case 11:throw r.prev=11,r.t0=r.catch(6),new Error("[ethjs-query] while formatting inputs '"+(0,i.default)(f,null,this.options.jsonSpace)+"' for method '"+h+"' error: "+r.t0);case 14:return r.next=16,this.rpc.sendAsync({method:e,params:c});case 16:return o=r.sent,r.prev=17,this.log("attempting method formatting for '"+h+"' with raw outputs: "+(0,i.default)(o,null,this.options.jsonSpace)),a=l.formatOutputs(e,o),this.log("method formatting success for '"+h+"' formatted result: "+(0,i.default)(a,null,this.options.jsonSpace)),r.abrupt("return",a);case 24:throw r.prev=24,r.t1=r.catch(17),new Error("[ethjs-query] while formatting outputs from RPC '"+(0,i.default)(o,null,this.options.jsonSpace)+"' for method '"+h+"' "+r.t1);case 28:case"end":return r.stop()}}),r,this,[[6,11],[17,24]])}))),function(){return r.apply(this,arguments)}),s=null,c=null,u=this,f=[].slice.call(arguments),h=e.replace("eth_","");f.length>0&&"function"==typeof f[f.length-1]&&(s=f.pop());var p=a.call(this);return s?d(p)(s):p}}t.exports=h,h.prototype.log=function(e){this.options.debug&&this.options.logger.log("[ethjs-query log] "+e)},(0,s.default)(l.schema.methods).forEach((function(e){(0,a.default)(h.prototype,e.replace("eth_",""),{enumerable:!0,value:p(e,l.schema.methods[e])})}))},{"babel-runtime/core-js/json/stringify":331,"babel-runtime/core-js/object/assign":332,"babel-runtime/core-js/object/define-property":333,"babel-runtime/core-js/object/keys":334,"babel-runtime/helpers/asyncToGenerator":336,"babel-runtime/regenerator":420,"ethjs-format":749,"ethjs-rpc":755,"promise-to-callback":953}],195:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+o(e.toString(16))}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return r.from(t.slice(2),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],196:[function(e,t,r){(function(r){const{EventEmitter:n}=e("events"),i=e("hdkey"),o=e("ethereumjs-util"),a=e("eth-sig-util"),s="Ledger Hardware",c={ropsten:"http://api-ropsten.etherscan.io",kovan:"http://api-kovan.etherscan.io",rinkeby:"https://api-rinkeby.etherscan.io",mainnet:"https://api.etherscan.io"};class u extends n{constructor(e={}){super(),this.accountIndexes={},this.bridgeUrl=null,this.type=s,this.page=0,this.perPage=5,this.unlockedAccount=0,this.hdk=new i,this.paths={},this.iframe=null,this.network="mainnet",this.implementFullBIP44=!1,this.deserialize(e),this._setupIframe()}serialize(){return Promise.resolve({hdPath:this.hdPath,accounts:this.accounts,accountIndexes:this.accountIndexes,bridgeUrl:this.bridgeUrl,implementFullBIP44:!1})}deserialize(e={}){return this.hdPath=e.hdPath||"m/44'/60'/0'",this.bridgeUrl=e.bridgeUrl||"https://metamask.github.io/eth-ledger-bridge-keyring",this.accounts=e.accounts||[],this.accountIndexes=e.accountIndexes||{},this.implementFullBIP44=e.implementFullBIP44||!1,this._isBIP44()&&(this.accounts=this.accounts.filter(e=>Object.keys(this.accountIndexes).includes(o.toChecksumAddress(e)))),Promise.resolve()}isUnlocked(){return!(!this.hdk||!this.hdk.publicKey)}setAccountToUnlock(e){this.unlockedAccount=parseInt(e,10)}setHdPath(e){this.hdPath!==e&&(this.hdk=new i),this.hdPath=e}unlock(e){if(this.isUnlocked()&&!e)return Promise.resolve("already unlocked");const t=e?this._toLedgerPath(e):this.hdPath;return new Promise((e,n)=>{this._sendMessage({action:"ledger-unlock",params:{hdPath:t}},({success:t,payload:i})=>{t?(this.hdk.publicKey=new r(i.publicKey,"hex"),this.hdk.chainCode=new r(i.chainCode,"hex"),e(i.address)):n(i.error||"Unknown error")})})}addAccounts(e=1){return new Promise((t,r)=>{this.unlock().then(async r=>{const n=this.unlockedAccount,i=n+e;this.accounts=[];for(let e=n;e<i;e++){let t;if(this._isBIP44()){const r=this._getPathForIndex(e);t=await this.unlock(r),this.accountIndexes[o.toChecksumAddress(t)]=e}else t=this._addressFromIndex("m",e);this.accounts.push(t),this.page=0}t(this.accounts)}).catch(e=>{r(e)})})}getFirstPage(){return this.page=0,this.__getPage(1)}getNextPage(){return this.__getPage(1)}getPreviousPage(){return this.__getPage(-1)}getAccounts(){return Promise.resolve(this.accounts.slice())}removeAccount(e){if(!this.accounts.map(e=>e.toLowerCase()).includes(e.toLowerCase()))throw new Error(`Address ${e} not found in this keyring`);this.accounts=this.accounts.filter(t=>t.toLowerCase()!==e.toLowerCase()),delete this.accountIndexes[o.toChecksumAddress(e)]}signTransaction(e,t){return new Promise((n,i)=>{this.unlock().then(a=>{let s;if(t.v=o.bufferToHex(t.getChainId()),t.r="0x00",t.s="0x00",this._isBIP44()){const t=o.toChecksumAddress(e);Object.keys(this.accountIndexes).includes(t)||i(new Error(`Ledger: Index for address '${t}' not found`)),s=this._getPathForIndex(this.accountIndexes[t])}else s=this._toLedgerPath(this._pathFromAddress(e));this._sendMessage({action:"ledger-sign-transaction",params:{tx:t.serialize().toString("hex"),hdPath:s,to:o.bufferToHex(t.to).toLowerCase()}},({success:e,payload:o})=>{e?(t.v=r.from(o.v,"hex"),t.r=r.from(o.r,"hex"),t.s=r.from(o.s,"hex"),t.verifySignature()?n(t):i(new Error("Ledger: The transaction signature is not valid"))):i(new Error(o.error||"Ledger: Unknown error while signing transaction"))})})})}signMessage(e,t){return this.signPersonalMessage(e,t)}signPersonalMessage(e,t){return new Promise((r,n)=>{this.unlock().then(i=>{let s;if(this._isBIP44()){const t=o.toChecksumAddress(e);Object.keys(this.accountIndexes).includes(t)||n(new Error(`Ledger: Index for address '${t}' not found`)),s=this._getPathForIndex(this.accountIndexes[t])}else s=this._toLedgerPath(this._pathFromAddress(e));this._sendMessage({action:"ledger-sign-personal-message",params:{hdPath:s,message:o.stripHexPrefix(t)}},({success:i,payload:s})=>{if(i){let i=s.v-27;i=i.toString(16),i.length<2&&(i="0"+i);const c=`0x${s.r}${s.s}${i}`,u=a.recoverPersonalSignature({data:t,sig:c});o.toChecksumAddress(u)!==o.toChecksumAddress(e)&&n(new Error("Ledger: The signature doesnt match the right address")),r(c)}else n(new Error(s.error||"Ledger: Uknown error while signing message"))})})})}signTypedData(e,t){throw new Error("Not supported on this device")}exportAccount(e){throw new Error("Not supported on this device")}forgetDevice(){this.accounts=[],this.page=0,this.unlockedAccount=0,this.paths={},this.hdk=new i}_setupIframe(){this.iframe=document.createElement("iframe"),this.iframe.src=this.bridgeUrl,document.head.appendChild(this.iframe)}_getOrigin(){const e=this.bridgeUrl.split("/");return e.splice(-1,1),e.join("/")}_sendMessage(e,t){e.target="LEDGER-IFRAME",this.iframe.contentWindow.postMessage(e,"*");const r=({origin:n,data:i})=>{if(n!==this._getOrigin())return!1;i&&i.action&&i.action===e.action+"-reply"&&t(i),window.removeEventListener("message",r)};window.addEventListener("message",r)}async __getPage(e){this.page+=e,this.page<=0&&(this.page=1);const t=(this.page-1)*this.perPage,r=t+this.perPage;let n;return await this.unlock(),n=this._isBIP44()?await this._getAccountsBIP44(t,r):this._getAccountsLegacy(t,r),n}async _getAccountsBIP44(e,t){const r=[];for(let n=e;n<t;n++){const e=this._getPathForIndex(n),t=await this.unlock(e),i=!this.implementFullBIP44||await this._hasPreviousTransactions(t);if(r.push({address:t,balance:null,index:n}),!i)break}return r}_getAccountsLegacy(e,t){const r=[];for(let n=e;n<t;n++){const e=this._addressFromIndex("m",n);r.push({address:e,balance:null,index:n}),this.paths[o.toChecksumAddress(e)]=n}return r}_padLeftEven(e){return e.length%2!=0?"0"+e:e}_normalize(e){return this._padLeftEven(o.bufferToHex(e).toLowerCase())}_addressFromIndex(e,t){const r=this.hdk.derive(`${e}/${t}`),n=o.publicToAddress(r.publicKey,!0).toString("hex");return o.toChecksumAddress(n)}_pathFromAddress(e){const t=o.toChecksumAddress(e);let r=this.paths[t];if(void 0===r)for(let e=0;e<1e3;e++)if(t===this._addressFromIndex("m",e)){r=e;break}if(void 0===r)throw new Error("Unknown address");return this._getPathForIndex(r)}_toAscii(e){let t="",r=0;const n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){const n=parseInt(e.substr(r,2),16);t+=String.fromCharCode(n)}return t}_getPathForIndex(e){return this._isBIP44()?`m/44'/60'/${e}'/0/0`:`${this.hdPath}/${e}`}_isBIP44(){return"m/44'/60'/0'/0/0"===this.hdPath}_toLedgerPath(e){return e.toString().replace("m/","")}async _hasPreviousTransactions(e){const t=this._getApiUrl(),r=await fetch(`${t}/api?module=account&action=txlist&address=${e}&tag=latest&page=1&offset=1`),n=await r.json();return"0"!==n.status&&n.result.length>0}_getApiUrl(){return c[this.network]?c[this.network]:c.mainnet}}u.type=s,t.exports=u}).call(this,e("buffer").Buffer)},{buffer:475,"eth-sig-util":198,"ethereumjs-util":202,events:476,hdkey:797}],197:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],198:[function(e,t,r){arguments[4][171][0].apply(r,arguments)},{dup:171,"ethereumjs-abi":199,"ethereumjs-util":202}],199:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{"./lib/index.js":200,dup:176}],200:[function(e,t,r){(function(r){const n=e("ethereumjs-util"),i=e("bn.js");var o=function(){};function a(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function f(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function d(e,t){var o,a,f,h;if("address"===e)return d("uint160",l(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",r.from(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)f.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);f.unshift(p)}return r.concat(f)}if("bytes"===e)return t=r.from(t),f=r.concat([d("uint256",t.length),t]),t.length%32!=0&&(f=r.concat([f,n.zeros(32-t.length%32)])),f;if(e.startsWith("bytes")){if((o=s(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",a.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=c(e),d("int256",l(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,a,s,c;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=h(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),c=0;c<o;c++){var l=h(e.subArray,t,n);s.push(l),n+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),t.slice(n+32,n+32+o);if(e.name.startsWith("bytes"))return t.slice(n,n+e.size);if(e.name.startsWith("uint")){if((a=new i(t.slice(n,n+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(y(e)){t=u(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var i=e+"("+t.map(a).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(y(e)){var t=u(e);o+="dynamic"!==t?32*t:32}else o+=32}));for(var s=0;s<e.length;s++){var c=a(e[s]),l=d(c,t[s]);m(c)?(n.push(d("uint256",o)),i.push(l),o+=l.length):n.push(l)}return r.concat(n.concat(i))},o.rawDecode=function(e,t){var n=[];t=r.from(t);for(var i=0,o=0;o<e.length;o++){var s=p(a(e[o])),c=h(s,t,i);i+=s.memoryUsage,n.push(c)}return n},o.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),n=f(e);if(t.length!==n.args.length)throw new Error("Argument count mismatch");return r.concat([o.methodID(n.method,n.args),o.rawEncode(n.args,t)])},o.simpleDecode=function(e,t){var r=f(e);if(!r.retargs)throw new Error("No return values in method");return o.rawDecode(r.retargs,t)},o.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return g(i,e)})).join(", "):g(i,o),r.push(o)}return r},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var i,o,c=[],u=0;u<e.length;u++){var f=a(e[u]),d=t[u];if("bytes"===f)c.push(d);else if("string"===f)c.push(r.from(d,"utf8"));else if("bool"===f)c.push(r.from(d?"01":"00","hex"));else if("address"===f)c.push(n.setLengthLeft(d,20));else if(f.startsWith("bytes")){if((i=s(f))<1||i>32)throw new Error("Invalid bytes<N> width: "+i);c.push(n.setLengthRight(d,i))}else if(f.startsWith("uint")){if((i=s(f))%8||i<8||i>256)throw new Error("Invalid uint<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+o.bitLength());c.push(o.toArrayLike(r,"be",i/8))}else{if(!f.startsWith("int"))throw new Error("Unsupported or invalid type: "+f);if((i=s(f))%8||i<8||i>256)throw new Error("Invalid int<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+o.bitLength());c.push(o.toTwos(i).toArrayLike(r,"be",i/8))}}return r.concat(c)},o.soliditySHA3=function(e,t){return n.keccak256(o.solidityPack(e,t))},o.soliditySHA256=function(e,t){return n.sha256(o.solidityPack(e,t))},o.solidityRIPEMD160=function(e,t){return n.ripemd160(o.solidityPack(e,t),!0)},o.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+s(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},t.exports=o}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,"ethereumjs-util":201}],201:[function(e,t,r){arguments[4][178][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":197,dup:178,"ethjs-util":203,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],202:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":197,dup:172,"ethjs-util":203,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],203:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],204:[function(e,t,r){const n=e("./prefix-for-network");t.exports=function(e,t){return parseInt(t),"https://"+n(t)+"etherscan.io/address/"+e}},{"./prefix-for-network":207}],205:[function(e,t,r){const n=e("./prefix-for-network");t.exports=function(e,t){return"https://"+n(t)+"etherscan.io/tx/"+e}},{"./prefix-for-network":207}],206:[function(e,t,r){const n=e("./explorer-link"),i=e("./account-link");t.exports={createExplorerLink:n,createAccountLink:i}},{"./account-link":204,"./explorer-link":205}],207:[function(e,t,r){t.exports=function(e){var t;switch(parseInt(e)){case 1:t="";break;case 3:t="ropsten.";break;case 4:t="rinkeby.";break;case 42:t="kovan.";break;default:t=""}return t}},{}],208:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/core"),o=e("@sentry/types"),a=e("@sentry/utils"),s=e("./eventbuilder"),c=e("./transports"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=n.__assign({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):a.supportsFetch()?new c.FetchTransport(t):new c.XHRTransport(t)},t.prototype.eventFromException=function(e,t){var r=t&&t.syntheticException||void 0,n=s.eventFromUnknownInput(e,r,{attachStacktrace:this._options.attachStacktrace});return a.addExceptionMechanism(n,{handled:!0,type:"generic"}),n.level=o.Severity.Error,t&&t.event_id&&(n.event_id=t.event_id),a.SyncPromise.resolve(n)},t.prototype.eventFromMessage=function(e,t,r){void 0===t&&(t=o.Severity.Info);var n=r&&r.syntheticException||void 0,i=s.eventFromString(e,n,{attachStacktrace:this._options.attachStacktrace});return i.level=t,r&&r.event_id&&(i.event_id=r.event_id),a.SyncPromise.resolve(i)},t}(i.BaseBackend);r.BrowserBackend=u},{"./eventbuilder":210,"./transports":225,"@sentry/core":231,"@sentry/types":254,"@sentry/utils":262,tslib:1123}],209:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/core"),o=e("@sentry/utils"),a=e("./backend"),s=e("./version"),c=function(e){function t(t){return void 0===t&&(t={}),e.call(this,a.BrowserBackend,t)||this}return n.__extends(t,e),t.prototype._prepareEvent=function(t,r,i){return t.platform=t.platform||"javascript",t.sdk=n.__assign({},t.sdk,{name:s.SDK_NAME,packages:n.__spread(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:s.SDK_VERSION}]),version:s.SDK_VERSION}),e.prototype._prepareEvent.call(this,t,r,i)},t.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=o.getGlobalObject().document;if(t)if(this._isEnabled()){var r=e.dsn||this.getDsn();if(e.eventId)if(r){var n=t.createElement("script");n.async=!0,n.src=new i.API(r).getReportDialogEndpoint(e),e.onLoad&&(n.onload=e.onLoad),(t.head||t.body).appendChild(n)}else o.logger.error("Missing `Dsn` option in showReportDialog call");else o.logger.error("Missing `eventId` option in showReportDialog call")}else o.logger.error("Trying to call showReportDialog with Sentry Client is disabled")},t}(i.BaseClient);r.BrowserClient=c},{"./backend":208,"./version":227,"@sentry/core":231,"@sentry/utils":262,tslib:1123}],210:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/utils"),i=e("./parsers"),o=e("./tracekit");function a(e,t,r){void 0===r&&(r={});var n={message:e};if(r.attachStacktrace&&t){var a=o.computeStackTrace(t),s=i.prepareFramesForEvent(a.stack);n.stacktrace={frames:s}}return n}r.eventFromUnknownInput=function(e,t,r){var s;if(void 0===r&&(r={}),n.isErrorEvent(e)&&e.error)return e=e.error,i.eventFromStacktrace(o.computeStackTrace(e));if(n.isDOMError(e)||n.isDOMException(e)){var c=e,u=c.name||(n.isDOMError(c)?"DOMError":"DOMException"),l=c.message?u+": "+c.message:u;return s=a(l,t,r),n.addExceptionTypeValue(s,l),s}if(n.isError(e))return i.eventFromStacktrace(o.computeStackTrace(e));if(n.isPlainObject(e)||n.isEvent(e)){var f=e;return s=i.eventFromPlainObject(f,t,r.rejection),n.addExceptionMechanism(s,{synthetic:!0}),s}return s=a(e,t,r),n.addExceptionTypeValue(s,""+e,void 0),n.addExceptionMechanism(s,{synthetic:!0}),s},r.eventFromString=a},{"./parsers":220,"./tracekit":222,"@sentry/utils":262}],211:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/types");r.Severity=n.Severity,r.Status=n.Status;var i=e("@sentry/core");r.addGlobalEventProcessor=i.addGlobalEventProcessor,r.addBreadcrumb=i.addBreadcrumb,r.captureException=i.captureException,r.captureEvent=i.captureEvent,r.captureMessage=i.captureMessage,r.configureScope=i.configureScope,r.getHubFromCarrier=i.getHubFromCarrier,r.getCurrentHub=i.getCurrentHub,r.Hub=i.Hub,r.Scope=i.Scope,r.setContext=i.setContext,r.setExtra=i.setExtra,r.setExtras=i.setExtras,r.setTag=i.setTag,r.setTags=i.setTags,r.setUser=i.setUser,r.withScope=i.withScope;var o=e("./client");r.BrowserClient=o.BrowserClient;var a=e("./sdk");r.defaultIntegrations=a.defaultIntegrations,r.forceLoad=a.forceLoad,r.init=a.init,r.lastEventId=a.lastEventId,r.onLoad=a.onLoad,r.showReportDialog=a.showReportDialog,r.flush=a.flush,r.close=a.close,r.wrap=a.wrap;var s=e("./version");r.SDK_NAME=s.SDK_NAME,r.SDK_VERSION=s.SDK_VERSION},{"./client":209,"./sdk":221,"./version":227,"@sentry/core":231,"@sentry/types":254}],212:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/core"),o=e("@sentry/utils"),a=0;function s(){a+=1,setTimeout((function(){a-=1}))}r.shouldIgnoreOnError=function(){return a>0},r.ignoreNextOnError=s,r.wrap=function e(t,r,a){if(void 0===r&&(r={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var c=function(){var c=Array.prototype.slice.call(arguments);try{a&&"function"==typeof a&&a.apply(this,arguments);var u=c.map((function(t){return e(t,r)}));return t.handleEvent?t.handleEvent.apply(this,u):t.apply(this,u)}catch(e){throw s(),i.withScope((function(t){t.addEventProcessor((function(e){var t=n.__assign({},e);return r.mechanism&&(o.addExceptionTypeValue(t,void 0,void 0),o.addExceptionMechanism(t,r.mechanism)),t.extra=n.__assign({},t.extra,{arguments:o.normalize(c,3)}),t})),i.captureException(e)})),e}};try{for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&(c[u]=t[u])}catch(e){}t.prototype=t.prototype||{},c.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:c}),Object.defineProperties(c,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(c,"name").configurable&&Object.defineProperty(c,"name",{get:function(){return t.name}})}catch(e){}return c}},{"@sentry/core":231,"@sentry/utils":262,tslib:1123}],213:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib");n.__exportStar(e("./exports"),r);var i=e("@sentry/core"),o=e("@sentry/utils"),a=e("./integrations"),s=e("./transports");r.Transports=s;var c={},u=o.getGlobalObject();u.Sentry&&u.Sentry.Integrations&&(c=u.Sentry.Integrations);var l=n.__assign({},c,i.Integrations,a);r.Integrations=l},{"./exports":211,"./integrations":216,"./transports":225,"@sentry/core":231,"@sentry/utils":262,tslib:1123}],214:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/core"),o=e("@sentry/types"),a=e("@sentry/utils"),s=function(){function e(t){this.name=e.id,this._options=n.__assign({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{extra:{arguments:a.normalize(e.args,3)},logger:"console"},level:o.Severity.fromString(e.level),message:a.safeJoin(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(a.safeJoin(e.args.slice(1)," ")||"console.assert"),t.data.extra.arguments=a.normalize(e.args.slice(1),3)}i.getCurrentHub().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?a.htmlTreeAsString(e.event.target):a.htmlTreeAsString(e.event)}catch(e){t="<unknown>"}0!==t.length&&i.getCurrentHub().addBreadcrumb({category:"ui."+e.name,message:t},{event:event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;i.getCurrentHub().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr})}else e.xhr.__sentry_own_request__&&c(e.args[0])},e.prototype._fetchBreadcrumb=function(e){if(e.endTimestamp){var t=i.getCurrentHub().getClient(),r=t&&t.getDsn();if(r){var a=new i.API(r).getStoreEndpoint();if(a&&-1!==e.fetchData.url.indexOf(a)&&"POST"===e.fetchData.method&&e.args[1]&&e.args[1].body)return void c(e.args[1].body)}e.error?i.getCurrentHub().addBreadcrumb({category:"fetch",data:n.__assign({},e.fetchData,{status_code:e.response.status}),level:o.Severity.Error,type:"http"},{data:e.error,input:e.args}):i.getCurrentHub().addBreadcrumb({category:"fetch",data:n.__assign({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})}},e.prototype._historyBreadcrumb=function(e){var t=a.getGlobalObject(),r=e.from,n=e.to,o=a.parseUrl(t.location.href),s=a.parseUrl(r),c=a.parseUrl(n);s.path||(s=o),o.protocol===c.protocol&&o.host===c.host&&(n=c.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),i.getCurrentHub().addBreadcrumb({category:"navigation",data:{from:r,to:n}})},e.prototype.setupOnce=function(){var e=this;this._options.console&&a.addInstrumentationHandler({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._consoleBreadcrumb.apply(e,n.__spread(t))},type:"console"}),this._options.dom&&a.addInstrumentationHandler({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._domBreadcrumb.apply(e,n.__spread(t))},type:"dom"}),this._options.xhr&&a.addInstrumentationHandler({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._xhrBreadcrumb.apply(e,n.__spread(t))},type:"xhr"}),this._options.fetch&&a.addInstrumentationHandler({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._fetchBreadcrumb.apply(e,n.__spread(t))},type:"fetch"}),this._options.history&&a.addInstrumentationHandler({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._historyBreadcrumb.apply(e,n.__spread(t))},type:"history"})},e.id="Breadcrumbs",e}();function c(e){try{var t=JSON.parse(e);i.getCurrentHub().addBreadcrumb({category:"sentry",event_id:t.event_id,level:t.level||o.Severity.fromString("error"),message:a.getEventDescription(t)},{event:t})}catch(e){a.logger.error("Error while adding sentry type breadcrumb")}}r.Breadcrumbs=s},{"@sentry/core":231,"@sentry/types":254,"@sentry/utils":262,tslib:1123}],215:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/core"),o=e("@sentry/types"),a=e("@sentry/utils"),s=e("../eventbuilder"),c=e("../helpers"),u=function(){function e(t){this.name=e.id,this._global=a.getGlobalObject(),this._oldOnErrorHandler=null,this._oldOnUnhandledRejectionHandler=null,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=n.__assign({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(a.logger.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(a.logger.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){if(!this._onErrorHandlerInstalled){var t=this;this._oldOnErrorHandler=this._global.onerror,this._global.onerror=function(r,n,o,u,l){var f=i.getCurrentHub(),d=f.getIntegration(e),h=l&&!0===l.__sentry_own_request__;if(!d||c.shouldIgnoreOnError()||h)return!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments);var p=f.getClient(),m=a.isPrimitive(l)?t._eventFromIncompleteOnError(r,n,o,u):t._enhanceEventWithInitialFrame(s.eventFromUnknownInput(l,void 0,{attachStacktrace:p&&p.getOptions().attachStacktrace,rejection:!1}),n,o,u);return a.addExceptionMechanism(m,{handled:!1,type:"onerror"}),f.captureEvent(m,{originalException:l}),!!t._oldOnErrorHandler&&t._oldOnErrorHandler.apply(this,arguments)},this._onErrorHandlerInstalled=!0}},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){if(!this._onUnhandledRejectionHandlerInstalled){var t=this;this._oldOnUnhandledRejectionHandler=this._global.onunhandledrejection,this._global.onunhandledrejection=function(r){var n=r;try{n=r&&"reason"in r?r.reason:r}catch(e){}var u=i.getCurrentHub(),l=u.getIntegration(e),f=n&&!0===n.__sentry_own_request__;if(!l||c.shouldIgnoreOnError()||f)return!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments);var d=u.getClient(),h=a.isPrimitive(n)?t._eventFromIncompleteRejection(n):s.eventFromUnknownInput(n,void 0,{attachStacktrace:d&&d.getOptions().attachStacktrace,rejection:!0});return h.level=o.Severity.Error,a.addExceptionMechanism(h,{handled:!1,type:"onunhandledrejection"}),u.captureEvent(h,{originalException:n}),!t._oldOnUnhandledRejectionHandler||t._oldOnUnhandledRejectionHandler.apply(this,arguments)},this._onUnhandledRejectionHandlerInstalled=!0}},e.prototype._eventFromIncompleteOnError=function(e,t,r,n){var i,o=a.isErrorEvent(e)?e.message:e;if(a.isString(o)){var s=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(i=s[1],o=s[2])}var c={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(c,t,r,n)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,r,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(n,10))?void 0:n,o=isNaN(parseInt(r,10))?void 0:r,s=a.isString(t)&&t.length>0?t:a.getLocationHref();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:s,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}();r.GlobalHandlers=u},{"../eventbuilder":210,"../helpers":212,"@sentry/core":231,"@sentry/types":254,"@sentry/utils":262,tslib:1123}],216:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./globalhandlers");r.GlobalHandlers=n.GlobalHandlers;var i=e("./trycatch");r.TryCatch=i.TryCatch;var o=e("./breadcrumbs");r.Breadcrumbs=o.Breadcrumbs;var a=e("./linkederrors");r.LinkedErrors=a.LinkedErrors;var s=e("./useragent");r.UserAgent=s.UserAgent},{"./breadcrumbs":214,"./globalhandlers":215,"./linkederrors":217,"./trycatch":218,"./useragent":219}],217:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/core"),o=e("@sentry/utils"),a=e("../parsers"),s=e("../tracekit"),c=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){i.addGlobalEventProcessor((function(t,r){var n=i.getCurrentHub().getIntegration(e);return n?n._handler(t,r):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&o.isInstanceOf(t.originalException,Error)))return e;var r=this._walkErrorTree(t.originalException,this._key);return e.exception.values=n.__spread(r,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,r){if(void 0===r&&(r=[]),!o.isInstanceOf(e[t],Error)||r.length+1>=this._limit)return r;var i=s.computeStackTrace(e[t]),c=a.exceptionFromStacktrace(i);return this._walkErrorTree(e[t],t,n.__spread([c],r))},e.id="LinkedErrors",e}();r.LinkedErrors=c},{"../parsers":220,"../tracekit":222,"@sentry/core":231,"@sentry/utils":262,tslib:1123}],218:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/utils"),i=e("../helpers"),o=function(){function e(){this._ignoreOnError=0,this.name=e.id}return e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var o=t[0];return t[0]=i.wrap(o,{mechanism:{data:{function:n.getFunctionName(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e(i.wrap(t,{mechanism:{data:{function:"requestAnimationFrame",handler:n.getFunctionName(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=n.getGlobalObject(),r=t[e]&&t[e].prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(n.fill(r,"addEventListener",(function(t){return function(r,o,a){try{"function"==typeof o.handleEvent&&(o.handleEvent=i.wrap(o.handleEvent.bind(o),{mechanism:{data:{function:"handleEvent",handler:n.getFunctionName(o),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,r,i.wrap(o,{mechanism:{data:{function:"addEventListener",handler:n.getFunctionName(o),target:e},handled:!0,type:"instrument"}}),a)}})),n.fill(r,"removeEventListener",(function(e){return function(t,r,n){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,n)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=this,s=["onload","onerror","onprogress"];return s.forEach((function(e){e in t&&"function"==typeof t[e]&&n.fill(t,e,(function(t){return i.wrap(t,{mechanism:{data:{function:e,handler:n.getFunctionName(t)},handled:!0,type:"instrument"}})}))})),"onreadystatechange"in a&&"function"==typeof a.onreadystatechange&&n.fill(a,"onreadystatechange",(function(e){var t={mechanism:{data:{function:"onreadystatechange",handler:n.getFunctionName(e)},handled:!0,type:"instrument"}};return e.__sentry_original__&&(t.mechanism.data.handler=n.getFunctionName(e.__sentry_original__)),i.wrap(e,t)})),e.apply(this,r)}},e.prototype.setupOnce=function(){this._ignoreOnError=this._ignoreOnError;var e=n.getGlobalObject();n.fill(e,"setTimeout",this._wrapTimeFunction.bind(this)),n.fill(e,"setInterval",this._wrapTimeFunction.bind(this)),n.fill(e,"requestAnimationFrame",this._wrapRAF.bind(this)),"XMLHttpRequest"in e&&n.fill(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this._wrapEventTarget.bind(this))},e.id="TryCatch",e}();r.TryCatch=o},{"../helpers":212,"@sentry/utils":262}],219:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/core"),o=e("@sentry/utils").getGlobalObject(),a=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){i.addGlobalEventProcessor((function(t){if(i.getCurrentHub().getIntegration(e)){if(!o.navigator||!o.location)return t;var r=t.request||{};return r.url=r.url||o.location.href,r.headers=r.headers||{},r.headers["User-Agent"]=o.navigator.userAgent,n.__assign({},t,{request:r})}return t}))},e.id="UserAgent",e}();r.UserAgent=a},{"@sentry/core":231,"@sentry/utils":262,tslib:1123}],220:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/utils"),i=e("./tracekit");function o(e){var t=a(e.stack),r={type:e.name,value:e.message};return t&&t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function a(e){if(!e||!e.length)return[];var t=e,r=t[0].func||"",n=t[t.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(t=t.slice(1)),-1!==n.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).slice(0,50).reverse()}r.exceptionFromStacktrace=o,r.eventFromPlainObject=function(e,t,r){var o={exception:{values:[{type:n.isEvent(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+n.extractExceptionKeysForMessage(e)}]},extra:{__serialized__:n.normalizeToSize(e)}};if(t){var s=a(i.computeStackTrace(t).stack);o.stacktrace={frames:s}}return o},r.eventFromStacktrace=function(e){return{exception:{values:[o(e)]}}},r.prepareFramesForEvent=a},{"./tracekit":222,"@sentry/utils":262}],221:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/core"),i=e("@sentry/utils"),o=e("./client"),a=e("./helpers"),s=e("./integrations");r.defaultIntegrations=[new n.Integrations.InboundFilters,new n.Integrations.FunctionToString,new s.TryCatch,new s.Breadcrumbs,new s.GlobalHandlers,new s.LinkedErrors,new s.UserAgent],r.init=function(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=r.defaultIntegrations),void 0===e.release){var t=i.getGlobalObject();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}n.initAndBind(o.BrowserClient,e)},r.showReportDialog=function(e){void 0===e&&(e={}),e.eventId||(e.eventId=n.getCurrentHub().lastEventId());var t=n.getCurrentHub().getClient();t&&t.showReportDialog(e)},r.lastEventId=function(){return n.getCurrentHub().lastEventId()},r.forceLoad=function(){},r.onLoad=function(e){e()},r.flush=function(e){var t=n.getCurrentHub().getClient();return t?t.flush(e):i.SyncPromise.reject(!1)},r.close=function(e){var t=n.getCurrentHub().getClient();return t?t.close(e):i.SyncPromise.reject(!1)},r.wrap=function(e){return a.wrap(e)()}},{"./client":209,"./helpers":212,"./integrations":216,"@sentry/core":231,"@sentry/utils":262}],222:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|[-a-z]+:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/;function u(e,t){try{return n.__assign({},e,{stack:e.stack.slice(t)})}catch(t){return e}}function l(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}r.computeStackTrace=function(e){var t=null,r=e&&e.framesToPop;try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,n=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=e.stacktrace.split("\n"),o=[],a=0;a<i.length;a+=2){var s=null;(t=r.exec(i[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=n.exec(i[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func="?"),o.push(s))}return o.length?{message:l(e),name:e.name,stack:o}:null}(e))return u(t,r)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,r,n,u=[],f=e.stack.split("\n"),d=0;d<f.length;++d){if(r=i.exec(f[d])){var h=r[2]&&0===r[2].indexOf("native");r[2]&&0===r[2].indexOf("eval")&&(t=c.exec(r[2]))&&(r[2]=t[1],r[3]=t[2],r[4]=t[3]),n={url:r[2],func:r[1]||"?",args:h?[r[2]]:[],line:r[3]?+r[3]:null,column:r[4]?+r[4]:null}}else if(r=a.exec(f[d]))n={url:r[2],func:r[1]||"?",args:[],line:+r[3],column:r[4]?+r[4]:null};else{if(!(r=o.exec(f[d])))continue;r[3]&&r[3].indexOf(" > eval")>-1&&(t=s.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=t[1],r[4]=t[2],r[5]=""):0!==d||r[5]||void 0===e.columnNumber||(u[0].column=e.columnNumber+1),n={url:r[3],func:r[1]||"?",args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func="?"),u.push(n)}return u.length?{message:l(e),name:e.name,stack:u}:null}(e))return u(t,r)}catch(e){}return{message:l(e),name:e&&e.name,stack:[],failed:!0}}},{tslib:1123}],223:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/core"),i=e("@sentry/utils"),o=function(){function e(e){this.options=e,this._buffer=new i.PromiseBuffer(30),this.url=new n.API(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new i.SentryError("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e}();r.BaseTransport=o},{"@sentry/core":231,"@sentry/utils":262}],224:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/types"),o=e("@sentry/utils"),a=e("./base"),s=o.getGlobalObject(),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return n.__extends(t,e),t.prototype.sendEvent=function(e){var t=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var r={body:JSON.stringify(e),method:"POST",referrerPolicy:o.supportsReferrerPolicy()?"origin":""};return void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new o.SyncPromise((function(e,n){s.fetch(t.url,r).then((function(r){var a=i.Status.fromHttpCode(r.status);if(a!==i.Status.Success){if(a===i.Status.RateLimit){var s=Date.now();t._disabledUntil=new Date(s+o.parseRetryAfterHeader(s,r.headers.get("Retry-After"))),o.logger.warn("Too many requests, backing off till: "+t._disabledUntil)}n(r)}else e({status:a})})).catch(n)})))},t}(a.BaseTransport);r.FetchTransport=c},{"./base":223,"@sentry/types":254,"@sentry/utils":262,tslib:1123}],225:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./base");r.BaseTransport=n.BaseTransport;var i=e("./fetch");r.FetchTransport=i.FetchTransport;var o=e("./xhr");r.XHRTransport=o.XHRTransport},{"./base":223,"./fetch":224,"./xhr":226}],226:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/types"),o=e("@sentry/utils"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return n.__extends(t,e),t.prototype.sendEvent=function(e){var t=this;return new Date(Date.now())<this._disabledUntil?Promise.reject({event:e,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429}):this._buffer.add(new o.SyncPromise((function(r,n){var a=new XMLHttpRequest;for(var s in a.onreadystatechange=function(){if(4===a.readyState){var e=i.Status.fromHttpCode(a.status);if(e!==i.Status.Success){if(e===i.Status.RateLimit){var s=Date.now();t._disabledUntil=new Date(s+o.parseRetryAfterHeader(s,a.getResponseHeader("Retry-After"))),o.logger.warn("Too many requests, backing off till: "+t._disabledUntil)}n(a)}else r({status:e})}},a.open("POST",t.url),t.options.headers)t.options.headers.hasOwnProperty(s)&&a.setRequestHeader(s,t.options.headers[s]);a.send(JSON.stringify(e))})))},t}(e("./base").BaseTransport);r.XHRTransport=a},{"./base":223,"@sentry/types":254,"@sentry/utils":262,tslib:1123}],227:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SDK_NAME="sentry.javascript.browser",r.SDK_VERSION="5.11.1"},{}],228:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/utils"),i=function(){function e(e){this.dsn=e,this._dsnObject=new n.Dsn(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getStoreEndpoint=function(){return""+this._getBaseUrl()+this.getStoreEndpointPath()},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return this.getStoreEndpoint()+"?"+n.urlEncode(e)},e.prototype._getBaseUrl=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",r=e.port?":"+e.port:"";return t+"//"+e.host+r},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var r=this._dsnObject,i=["Sentry sentry_version=7"];return i.push("sentry_timestamp="+n.timestampWithMs()),i.push("sentry_client="+e+"/"+t),i.push("sentry_key="+r.user),r.pass&&i.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":i.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,r=this._getBaseUrl()+(t.path?"/"+t.path:"")+"/api/embed/error-page/",n=[];for(var i in n.push("dsn="+t.toString()),e)if("user"===i){if(!e.user)continue;e.user.name&&n.push("name="+encodeURIComponent(e.user.name)),e.user.email&&n.push("email="+encodeURIComponent(e.user.email))}else n.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return n.length?r+"?"+n.join("&"):r},e}();r.API=i},{"@sentry/utils":262}],229:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/utils"),i=e("./transports/noop"),o=function(){function e(e){this._options=e,this._options.dsn||n.logger.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype._setupTransport=function(){return new i.NoopTransport},e.prototype.eventFromException=function(e,t){throw new n.SentryError("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,r){throw new n.SentryError("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){n.logger.error("Error while sending event: "+e)}))},e.prototype.getTransport=function(){return this._transport},e}();r.BaseBackend=o},{"./transports/noop":237,"@sentry/utils":262}],230:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/utils"),o=e("./integration"),a=function(){function e(e,t){this._integrations={},this._processing=!1,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new i.Dsn(t.dsn)),this._isEnabled()&&(this._integrations=o.setupIntegrations(this._options))}return e.prototype.captureException=function(e,t,r){var n=this,o=t&&t.event_id;return this._processing=!0,this._getBackend().eventFromException(e,t).then((function(e){return n._processEvent(e,t,r)})).then((function(e){o=e&&e.event_id,n._processing=!1})).then(null,(function(e){i.logger.error(e),n._processing=!1})),o},e.prototype.captureMessage=function(e,t,r,n){var o=this,a=r&&r.event_id;return this._processing=!0,(i.isPrimitive(e)?this._getBackend().eventFromMessage(""+e,t,r):this._getBackend().eventFromException(e,r)).then((function(e){return o._processEvent(e,r,n)})).then((function(e){a=e&&e.event_id,o._processing=!1})).then(null,(function(e){i.logger.error(e),o._processing=!1})),a},e.prototype.captureEvent=function(e,t,r){var n=this,o=t&&t.event_id;return this._processing=!0,this._processEvent(e,t,r).then((function(e){o=e&&e.event_id,n._processing=!1})).then(null,(function(e){i.logger.error(e),n._processing=!1})),o},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(r){return clearInterval(r.interval),t._getBackend().getTransport().close(e).then((function(e){return r.ready&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.getIntegrations=function(){return this._integrations||{}},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return i.logger.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._isClientProcessing=function(e){var t=this;return new i.SyncPromise((function(r){var n=0,i=0;clearInterval(i),i=setInterval((function(){t._processing?(n+=1,e&&n>=e&&r({interval:i,ready:!1})):r({interval:i,ready:!0})}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,r){var o=this.getOptions(),a=o.environment,s=o.release,c=o.dist,u=o.maxValueLength,l=void 0===u?250:u,f=n.__assign({},e);void 0===f.environment&&void 0!==a&&(f.environment=a),void 0===f.release&&void 0!==s&&(f.release=s),void 0===f.dist&&void 0!==c&&(f.dist=c),f.message&&(f.message=i.truncate(f.message,l));var d=f.exception&&f.exception.values&&f.exception.values[0];d&&d.value&&(d.value=i.truncate(d.value,l));var h=f.request;h&&h.url&&(h.url=i.truncate(h.url,l)),void 0===f.event_id&&(f.event_id=i.uuid4()),this._addIntegrations(f.sdk);var p=i.SyncPromise.resolve(f);return t&&(p=t.applyToEvent(f,r)),p},e.prototype._addIntegrations=function(e){var t=Object.keys(this._integrations);e&&t.length>0&&(e.integrations=t)},e.prototype._processEvent=function(e,t,r){var n=this,o=this.getOptions(),a=o.beforeSend,s=o.sampleRate;return this._isEnabled()?"number"==typeof s&&Math.random()>s?i.SyncPromise.reject("This event has been sampled, will not send event."):new i.SyncPromise((function(o,s){n._prepareEvent(e,r,t).then((function(e){if(null!==e){var r=e;try{if(t&&t.data&&!0===t.data.__sentry__||!a)return n._getBackend().sendEvent(r),void o(r);var c=a(e,t);if(void 0===c)i.logger.error("`beforeSend` method has to return `null` or a valid event.");else if(i.isThenable(c))n._handleAsyncBeforeSend(c,o,s);else{if(null===(r=c))return i.logger.log("`beforeSend` returned `null`, will not send event."),void o(null);n._getBackend().sendEvent(r),o(r)}}catch(e){n.captureException(e,{data:{__sentry__:!0},originalException:e}),s("`beforeSend` threw an error, will not send event.")}}else s("An event processor returned null, will not send event.")})).then(null,(function(){s("`beforeSend` threw an error, will not send event.")}))})):i.SyncPromise.reject("SDK not enabled, will not send event.")},e.prototype._handleAsyncBeforeSend=function(e,t,r){var n=this;e.then((function(e){null!==e?(n._getBackend().sendEvent(e),t(e)):r("`beforeSend` returned `null`, will not send event.")})).then(null,(function(e){r("beforeSend rejected with "+e)}))},e}();r.BaseClient=a},{"./integration":232,"@sentry/utils":262,tslib:1123}],231:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/minimal");r.addBreadcrumb=n.addBreadcrumb,r.captureException=n.captureException,r.captureEvent=n.captureEvent,r.captureMessage=n.captureMessage,r.configureScope=n.configureScope,r.setContext=n.setContext,r.setExtra=n.setExtra,r.setExtras=n.setExtras,r.setTag=n.setTag,r.setTags=n.setTags,r.setUser=n.setUser,r.withScope=n.withScope;var i=e("@sentry/hub");r.addGlobalEventProcessor=i.addGlobalEventProcessor,r.getCurrentHub=i.getCurrentHub,r.getHubFromCarrier=i.getHubFromCarrier,r.Hub=i.Hub,r.Scope=i.Scope;var o=e("./api");r.API=o.API;var a=e("./baseclient");r.BaseClient=a.BaseClient;var s=e("./basebackend");r.BaseBackend=s.BaseBackend;var c=e("./sdk");r.initAndBind=c.initAndBind;var u=e("./transports/noop");r.NoopTransport=u.NoopTransport;var l=e("./integrations");r.Integrations=l},{"./api":228,"./basebackend":229,"./baseclient":230,"./integrations":235,"./sdk":236,"./transports/noop":237,"@sentry/hub":239,"@sentry/minimal":253}],232:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/hub"),o=e("@sentry/utils");function a(e){var t=e.defaultIntegrations&&n.__spread(e.defaultIntegrations)||[],r=e.integrations,i=[];if(Array.isArray(r)){var o=r.map((function(e){return e.name})),a=[];t.forEach((function(e){-1===o.indexOf(e.name)&&-1===a.indexOf(e.name)&&(i.push(e),a.push(e.name))})),r.forEach((function(e){-1===a.indexOf(e.name)&&(i.push(e),a.push(e.name))}))}else"function"==typeof r?(i=r(t),i=Array.isArray(i)?i:[i]):i=n.__spread(t);var s=i.map((function(e){return e.name}));return-1!==s.indexOf("Debug")&&i.push.apply(i,n.__spread(i.splice(s.indexOf("Debug"),1))),i}function s(e){-1===r.installedIntegrations.indexOf(e.name)&&(e.setupOnce(i.addGlobalEventProcessor,i.getCurrentHub),r.installedIntegrations.push(e.name),o.logger.log("Integration installed: "+e.name))}r.installedIntegrations=[],r.getIntegrationsToSetup=a,r.setupIntegration=s,r.setupIntegrations=function(e){var t={};return a(e).forEach((function(e){t[e.name]=e,s(e)})),t}},{"@sentry/hub":239,"@sentry/utils":262,tslib:1123}],233:[function(e,t,r){var n;Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){n=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.__sentry_original__||this;return n.apply(r,e)}},e.id="FunctionToString",e}();r.FunctionToString=i},{}],234:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/hub"),o=e("@sentry/utils"),a=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],s=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){i.addGlobalEventProcessor((function(t){var r=i.getCurrentHub();if(!r)return t;var n=r.getIntegration(e);if(n){var o=r.getClient(),a=o?o.getOptions():{},s=n._mergeOptions(a);if(n._shouldDropEvent(t,s))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(o.logger.warn("Event dropped due to being internal Sentry Error.\nEvent: "+o.getEventDescription(e)),!0):this._isIgnoredError(e,t)?(o.logger.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+o.getEventDescription(e)),!0):this._isBlacklistedUrl(e,t)?(o.logger.warn("Event dropped due to being matched by `blacklistUrls` option.\nEvent: "+o.getEventDescription(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isWhitelistedUrl(e,t)&&(o.logger.warn("Event dropped due to not being matched by `whitelistUrls` option.\nEvent: "+o.getEventDescription(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(void 0===t&&(t={}),!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return void 0===t&&(t={}),!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return o.isMatchingPattern(e,t)}))}))},e.prototype._isBlacklistedUrl=function(e,t){if(void 0===t&&(t={}),!t.blacklistUrls||!t.blacklistUrls.length)return!1;var r=this._getEventFilterUrl(e);return!!r&&t.blacklistUrls.some((function(e){return o.isMatchingPattern(r,e)}))},e.prototype._isWhitelistedUrl=function(e,t){if(void 0===t&&(t={}),!t.whitelistUrls||!t.whitelistUrls.length)return!0;var r=this._getEventFilterUrl(e);return!r||t.whitelistUrls.some((function(e){return o.isMatchingPattern(r,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{blacklistUrls:n.__spread(this._options.blacklistUrls||[],e.blacklistUrls||[]),ignoreErrors:n.__spread(this._options.ignoreErrors||[],e.ignoreErrors||[],a),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal,whitelistUrls:n.__spread(this._options.whitelistUrls||[],e.whitelistUrls||[])}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},r=t.type,n=void 0===r?"":r,i=t.value,a=void 0===i?"":i;return[""+a,n+": "+a]}catch(t){return o.logger.error("Cannot extract message for event "+o.getEventDescription(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var r=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return r&&r[r.length-1].filename||null}return null}catch(t){return o.logger.error("Cannot extract url for event "+o.getEventDescription(e)),null}},e.id="InboundFilters",e}();r.InboundFilters=s},{"@sentry/hub":239,"@sentry/utils":262,tslib:1123}],235:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./functiontostring");r.FunctionToString=n.FunctionToString;var i=e("./inboundfilters");r.InboundFilters=i.InboundFilters},{"./functiontostring":233,"./inboundfilters":234}],236:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/hub"),i=e("@sentry/utils");r.initAndBind=function(e,t){!0===t.debug&&i.logger.enable(),n.getCurrentHub().bindClient(new e(t))}},{"@sentry/hub":239,"@sentry/utils":262}],237:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/types"),i=e("@sentry/utils"),o=function(){function e(){}return e.prototype.sendEvent=function(e){return i.SyncPromise.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:n.Status.Skipped})},e.prototype.close=function(e){return i.SyncPromise.resolve(!0)},e}();r.NoopTransport=o},{"@sentry/types":254,"@sentry/utils":262}],238:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/utils"),o=e("./scope");r.API_VERSION=3;var a=function(){function e(e,t,n){void 0===t&&(t=new o.Scope),void 0===n&&(n=r.API_VERSION),this._version=n,this._stack=[],this._stack.push({client:e,scope:t})}return e.prototype._invokeClient=function(e){for(var t,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o=this.getStackTop();o&&o.client&&o.client[e]&&(t=o.client)[e].apply(t,n.__spread(r,[o.scope]))},e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e},e.prototype.pushScope=function(){var e=this.getStack(),t=e.length>0?e[e.length-1].scope:void 0,r=o.Scope.clone(t);return this.getStack().push({client:this.getClient(),scope:r}),r},e.prototype.popScope=function(){return void 0!==this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var r=this._lastEventId=i.uuid4(),o=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(e){a=e}o={originalException:e,syntheticException:a}}return this._invokeClient("captureException",e,n.__assign({},o,{event_id:r})),r},e.prototype.captureMessage=function(e,t,r){var o=this._lastEventId=i.uuid4(),a=r;if(!r){var s=void 0;try{throw new Error(e)}catch(e){s=e}a={originalException:e,syntheticException:s}}return this._invokeClient("captureMessage",e,t,n.__assign({},a,{event_id:o})),o},e.prototype.captureEvent=function(e,t){var r=this._lastEventId=i.uuid4();return this._invokeClient("captureEvent",e,n.__assign({},t,{event_id:r})),r},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var r=this.getStackTop();if(r.scope&&r.client){var o=r.client.getOptions&&r.client.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,c=o.maxBreadcrumbs,u=void 0===c?100:c;if(!(u<=0)){var l=i.timestampWithMs(),f=n.__assign({timestamp:l},e),d=s?i.consoleSandbox((function(){return s(f,t)})):f;null!==d&&r.scope.addBreadcrumb(d,Math.min(u,100))}}},e.prototype.setUser=function(e){var t=this.getStackTop();t.scope&&t.scope.setUser(e)},e.prototype.setTags=function(e){var t=this.getStackTop();t.scope&&t.scope.setTags(e)},e.prototype.setExtras=function(e){var t=this.getStackTop();t.scope&&t.scope.setExtras(e)},e.prototype.setTag=function(e,t){var r=this.getStackTop();r.scope&&r.scope.setTag(e,t)},e.prototype.setExtra=function(e,t){var r=this.getStackTop();r.scope&&r.scope.setExtra(e,t)},e.prototype.setContext=function(e,t){var r=this.getStackTop();r.scope&&r.scope.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop();t.scope&&t.client&&e(t.scope)},e.prototype.run=function(e){var t=c(this);try{e(this)}finally{c(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return i.logger.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e,t){return void 0===t&&(t=!1),this._callExtensionMethod("startSpan",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype._callExtensionMethod=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=s(),o=n.__SENTRY__;if(o&&o.extensions&&"function"==typeof o.extensions[e])return o.extensions[e].apply(this,t);i.logger.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function s(){var e=i.getGlobalObject();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function c(e){var t=s(),r=l(t);return f(t,e),r}function u(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function l(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new a),e.__SENTRY__.hub}function f(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}r.Hub=a,r.getMainCarrier=s,r.makeMain=c,r.getCurrentHub=function(){var e=s();return u(e)&&!l(e).isOlderThan(r.API_VERSION)||f(e,new a),i.isNodeEnv()?function(e){try{var n=i.dynamicRequire(t,"domain").active;if(!n)return l(e);if(!u(n)||l(n).isOlderThan(r.API_VERSION)){var s=l(e).getStackTop();f(n,new a(s.client,o.Scope.clone(s.scope)))}return l(n)}catch(t){return l(e)}}(e):l(e)},r.getHubFromCarrier=l,r.setHubOnCarrier=f},{"./scope":240,"@sentry/utils":262,tslib:1123}],239:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./scope");r.addGlobalEventProcessor=n.addGlobalEventProcessor,r.Scope=n.Scope;var i=e("./hub");r.getCurrentHub=i.getCurrentHub,r.getHubFromCarrier=i.getHubFromCarrier,r.getMainCarrier=i.getMainCarrier,r.Hub=i.Hub,r.makeMain=i.makeMain,r.setHubOnCarrier=i.setHubOnCarrier},{"./hub":238,"./scope":240}],240:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/utils"),o=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._context={}}return e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,setTimeout((function(){e._scopeListeners.forEach((function(t){t(e)})),e._notifyingListeners=!1})))},e.prototype._notifyEventProcessors=function(e,t,r,o){var a=this;return void 0===o&&(o=0),new i.SyncPromise((function(s,c){var u=e[o];if(null===t||"function"!=typeof u)s(t);else{var l=u(n.__assign({},t),r);i.isThenable(l)?l.then((function(t){return a._notifyEventProcessors(e,t,r,o+1).then(s)})).then(null,c):a._notifyEventProcessors(e,l,r,o+1).then(s).then(null,c)}}))},e.prototype.setUser=function(e){return this._user=i.normalize(e),this._notifyScopeListeners(),this},e.prototype.setTags=function(e){return this._tags=n.__assign({},this._tags,i.normalize(e)),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var r;return this._tags=n.__assign({},this._tags,((r={})[e]=i.normalize(t),r)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=n.__assign({},this._extra,i.normalize(e)),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var r;return this._extra=n.__assign({},this._extra,((r={})[e]=i.normalize(t),r)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=i.normalize(e),this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=i.normalize(e),this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this._transaction=e,this._notifyScopeListeners(),this},e.prototype.setContext=function(e,t){return this._context[e]=t?i.normalize(t):void 0,this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.clone=function(t){var r=new e;return t&&(r._breadcrumbs=n.__spread(t._breadcrumbs),r._tags=n.__assign({},t._tags),r._extra=n.__assign({},t._extra),r._context=n.__assign({},t._context),r._user=t._user,r._level=t._level,r._span=t._span,r._transaction=t._transaction,r._fingerprint=t._fingerprint,r._eventProcessors=n.__spread(t._eventProcessors)),r},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._context={},this._level=void 0,this._transaction=void 0,this._fingerprint=void 0,this._span=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var r=i.timestampWithMs(),o=n.__assign({timestamp:r},e);return this._breadcrumbs=void 0!==t&&t>=0?n.__spread(this._breadcrumbs,[i.normalize(o)]).slice(-t):n.__spread(this._breadcrumbs,[i.normalize(o)]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e.prototype.applyToEvent=function(e,t){return this._extra&&Object.keys(this._extra).length&&(e.extra=n.__assign({},this._extra,e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=n.__assign({},this._tags,e.tags)),this._user&&Object.keys(this._user).length&&(e.user=n.__assign({},this._user,e.user)),this._context&&Object.keys(this._context).length&&(e.contexts=n.__assign({},this._context,e.contexts)),this._level&&(e.level=this._level),this._transaction&&(e.transaction=this._transaction),this._applyFingerprint(e),e.breadcrumbs=n.__spread(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(n.__spread(a(),this._eventProcessors),e,t)},e}();function a(){var e=i.getGlobalObject();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}r.Scope=o,r.addGlobalEventProcessor=function(e){a().push(e)}},{"@sentry/utils":262,tslib:1123}],241:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/utils"),o=/^\[((?:[$a-zA-Z0-9]+:)?(?:[$a-zA-Z0-9]+))\] (.*?)\n?(\S+)$/,a=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._angular=t.angular||i.getGlobalObject().angular}return e.prototype.setupOnce=function(t,r){var n=this;this._angular?(this._getCurrentHub=r,this._angular.module(e.moduleName,[]).config(["$provide",function(e){e.decorator("$exceptionHandler",["$delegate",n._$exceptionHandlerDecorator.bind(n)])}])):i.logger.error("AngularIntegration is missing an Angular instance")},e.prototype._$exceptionHandlerDecorator=function(t){var r=this;return function(i,a){var s=r._getCurrentHub&&r._getCurrentHub();s&&s.getIntegration(e)&&s.withScope((function(e){a&&e.setExtra("cause",a),e.addEventProcessor((function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];if(t){var r=o.exec(t.value||"");r&&(t.type=r[1],t.value=r[2],e.message=t.type+": "+t.value,e.extra=n.__assign({},e.extra,{angularDocs:r[3].substr(0,250)}))}return e})),s.captureException(i)})),t(i,a)}},e.id="AngularJS",e.moduleName="ngSentry",e}();r.Angular=a},{"@sentry/utils":262,tslib:1123}],242:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/types"),i=e("@sentry/utils"),o=i.getGlobalObject(),a=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._levels=["log","info","warn","error","debug","assert"],t.levels&&(this._levels=t.levels)}return e.prototype.setupOnce=function(t,r){"console"in o&&this._levels.forEach((function(t){t in o.console&&i.fill(o.console,t,(function(a){return function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var u=r();u.getIntegration(e)&&u.withScope((function(e){e.setLevel(n.Severity.fromString(t)),e.setExtra("arguments",i.normalize(s,3)),e.addEventProcessor((function(e){return e.logger="console",e}));var r=i.safeJoin(s," ");"assert"===t?!1===s[0]&&(r="Assertion failed: "+(i.safeJoin(s.slice(1)," ")||"console.assert"),e.setExtra("arguments",i.normalize(s.slice(1),3)),u.captureMessage(r)):u.captureMessage(r)})),a&&Function.prototype.apply.call(a,o.console,s)}}))}))},e.id="CaptureConsole",e}();r.CaptureConsole=a},{"@sentry/types":254,"@sentry/utils":262}],243:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/utils"),o=function(){function e(t){this.name=e.id,this._options=n.__assign({debugger:!1,stringify:!1},t)}return e.prototype.setupOnce=function(t,r){t((function(t,n){var o=r().getIntegration(e);return o&&(o._options.debugger,i.consoleSandbox((function(){o._options.stringify?(console.log(JSON.stringify(t,null,2)),n&&console.log(JSON.stringify(n,null,2))):(console.log(t),n&&console.log(n))}))),t}))},e.id="Debug",e}();r.Debug=o},{"@sentry/utils":262,tslib:1123}],244:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,r){t((function(t){var n=r().getIntegration(e);if(n){try{if(n._shouldDropEvent(t,n._previousEvent))return null}catch(e){return n._previousEvent=t}return n._previousEvent=t}return t}))},e.prototype._shouldDropEvent=function(e,t){return!(!t||!this._isSameMessageEvent(e,t)&&!this._isSameExceptionEvent(e,t))},e.prototype._isSameMessageEvent=function(e,t){var r=e.message,n=t.message;return!(!r&&!n||r&&!n||!r&&n||r!==n||!this._isSameFingerprint(e,t)||!this._isSameStacktrace(e,t))},e.prototype._getFramesFromEvent=function(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames},e.prototype._isSameStacktrace=function(e,t){var r=this._getFramesFromEvent(e),n=this._getFramesFromEvent(t);if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;if(r=r,(n=n).length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i],a=r[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0},e.prototype._getExceptionFromEvent=function(e){return e.exception&&e.exception.values&&e.exception.values[0]},e.prototype._isSameExceptionEvent=function(e,t){var r=this._getExceptionFromEvent(t),n=this._getExceptionFromEvent(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&this._isSameFingerprint(e,t)&&this._isSameStacktrace(e,t))},e.prototype._isSameFingerprint=function(e,t){var r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;r=r,n=n;try{return!(r.join("")!==n.join(""))}catch(e){return!1}},e.id="Dedupe",e}();r.Dedupe=n},{}],245:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/utils"),i=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._Ember=t.Ember||n.getGlobalObject().Ember}return e.prototype.setupOnce=function(t,r){var i=this;if(this._Ember){var o=this._Ember.onerror;this._Ember.onerror=function(t){if(r().getIntegration(e)&&r().captureException(t,{originalException:t}),"function"==typeof o)o.call(i._Ember,t);else if(i._Ember.testing)throw t},this._Ember.RSVP.on("error",(function(t){r().getIntegration(e)&&r().withScope((function(e){n.isInstanceOf(t,Error)?(e.setExtra("context","Unhandled Promise error detected"),r().captureException(t,{originalException:t})):(e.setExtra("reason",t),r().captureMessage("Unhandled Promise error detected"))}))}))}else n.logger.error("EmberIntegration is missing an Ember instance")},e.id="Ember",e}();r.Ember=i},{"@sentry/utils":262}],246:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/utils"),o=function(){function e(t){void 0===t&&(t={depth:3}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,r){t((function(t,n){var i=r().getIntegration(e);return i?i.enhanceEventWithErrorData(t,n):t}))},e.prototype.enhanceEventWithErrorData=function(e,t){var r;if(!t||!t.originalException||!i.isError(t.originalException))return e;var o=t.originalException.name||t.originalException.constructor.name,a=this._extractErrorData(t.originalException);if(a){var s=n.__assign({},e.contexts),c=i.normalize(a,this._options.depth);return i.isPlainObject(c)&&(s=n.__assign({},e.contexts,((r={})[o]=n.__assign({},c),r))),n.__assign({},e,{contexts:s})}return e},e.prototype._extractErrorData=function(e){var t,r,o=null;try{var a=["name","message","stack","line","column","fileName","lineNumber","columnNumber"],s=Object.getOwnPropertyNames(e).filter((function(e){return-1===a.indexOf(e)}));if(s.length){var c={};try{for(var u=n.__values(s),l=u.next();!l.done;l=u.next()){var f=l.value,d=e[f];i.isError(d)&&(d=d.toString()),c[f]=d}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}o=c}}catch(e){i.logger.error("Unable to extract extra data from the Error object:",e)}return o},e.id="ExtraErrorData",e}();r.ExtraErrorData=o},{"@sentry/utils":262,tslib:1123}],247:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./angular");r.Angular=n.Angular;var i=e("./captureconsole");r.CaptureConsole=i.CaptureConsole;var o=e("./debug");r.Debug=o.Debug;var a=e("./dedupe");r.Dedupe=a.Dedupe;var s=e("./ember");r.Ember=s.Ember;var c=e("./extraerrordata");r.ExtraErrorData=c.ExtraErrorData;var u=e("./reportingobserver");r.ReportingObserver=u.ReportingObserver;var l=e("./rewriteframes");r.RewriteFrames=l.RewriteFrames;var f=e("./sessiontiming");r.SessionTiming=f.SessionTiming;var d=e("./transaction");r.Transaction=d.Transaction;var h=e("./vue");r.Vue=h.Vue},{"./angular":241,"./captureconsole":242,"./debug":243,"./dedupe":244,"./ember":245,"./extraerrordata":246,"./reportingobserver":248,"./rewriteframes":249,"./sessiontiming":250,"./transaction":251,"./vue":252}],248:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n,i=e("tslib"),o=e("@sentry/utils");!function(e){e.Crash="crash",e.Deprecation="deprecation",e.Intervention="intervention"}(n||(n={}));var a=function(){function e(t){void 0===t&&(t={types:[n.Crash,n.Deprecation,n.Intervention]}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(e,t){o.supportsReportingObserver()&&(this._getCurrentHub=t,new(o.getGlobalObject().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this._options.types}).observe())},e.prototype.handler=function(t){var r,o,a=this._getCurrentHub&&this._getCurrentHub();if(a&&a.getIntegration(e)){var s=function(e){a.withScope((function(t){t.setExtra("url",e.url);var r="ReportingObserver ["+e.type+"]",i="No details available";if(e.body){var o,s={};for(var c in e.body)s[c]=e.body[c];t.setExtra("body",s),i=e.type===n.Crash?[(o=e.body).crashId||"",o.reason||""].join(" ").trim()||i:(o=e.body).message||i}a.captureMessage(r+": "+i)}))};try{for(var c=i.__values(t),u=c.next();!u.done;u=c.next())s(u.value)}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(r)throw r.error}}}},e.id="ReportingObserver",e}();r.ReportingObserver=a},{"@sentry/utils":262,tslib:1123}],249:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/utils"),o=function(){function e(t){var r=this;void 0===t&&(t={}),this.name=e.id,this._iteratee=function(e){if(!e.filename)return e;var t=/^[A-Z]:\\/.test(e.filename),n=/^\//.test(e.filename);if(e.filename&&(t||n)){var o=t?e.filename.replace(/^[A-Z]:/,"").replace(/\\/g,"/"):e.filename,a=r._root?i.relative(r._root,o):i.basename(o);e.filename="app:///"+a}return e},t.root&&(this._root=t.root),t.iteratee&&(this._iteratee=t.iteratee)}return e.prototype.setupOnce=function(t,r){t((function(t){var n=r().getIntegration(e);return n?n.process(t):t}))},e.prototype.process=function(e){return e.exception&&Array.isArray(e.exception.values)?this._processExceptionsEvent(e):e.stacktrace?this._processStacktraceEvent(e):e},e.prototype._processExceptionsEvent=function(e){var t=this;try{return n.__assign({},e,{exception:n.__assign({},e.exception,{values:e.exception.values.map((function(e){return n.__assign({},e,{stacktrace:t._processStacktrace(e.stacktrace)})}))})})}catch(t){return e}},e.prototype._processStacktraceEvent=function(e){try{return n.__assign({},e,{stacktrace:this._processStacktrace(e.stacktrace)})}catch(t){return e}},e.prototype._processStacktrace=function(e){var t=this;return n.__assign({},e,{frames:e&&e.frames&&e.frames.map((function(e){return t._iteratee(e)}))})},e.id="RewriteFrames",e}();r.RewriteFrames=o},{"@sentry/utils":262,tslib:1123}],250:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=function(){function e(){this.name=e.id,this._startTime=Date.now()}return e.prototype.setupOnce=function(t,r){t((function(t){var n=r().getIntegration(e);return n?n.process(t):t}))},e.prototype.process=function(e){var t,r=Date.now();return n.__assign({},e,{extra:n.__assign({},e.extra,(t={},t["session:start"]=this._startTime,t["session:duration"]=r-this._startTime,t["session:end"]=r,t))})},e.id="SessionTiming",e}();r.SessionTiming=i},{tslib:1123}],251:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,r){t((function(t){var n=r().getIntegration(e);return n?n.process(t):t}))},e.prototype.process=function(e){for(var t=this._getFramesFromEvent(e),r=t.length-1;r>=0;r--){var n=t[r];if(!0===n.in_app){e.transaction=this._getTransaction(n);break}}return e},e.prototype._getFramesFromEvent=function(e){var t=e.exception&&e.exception.values&&e.exception.values[0];return t&&t.stacktrace&&t.stacktrace.frames||[]},e.prototype._getTransaction=function(e){return e.module||e.function?(e.module||"?")+"/"+(e.function||"?"):"<unknown>"},e.id="Transaction",e}();r.Transaction=n},{}],252:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("@sentry/utils"),i=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._attachProps=!0,this._logErrors=!1,this._Vue=t.Vue||n.getGlobalObject().Vue,void 0!==t.logErrors&&(this._logErrors=t.logErrors),!1===t.attachProps&&(this._attachProps=!1)}return e.prototype._formatComponentName=function(e){if(e.$root===e)return"root instance";var t=e._isVue?e.$options.name||e.$options._componentTag:e.name;return(t?"component <"+t+">":"anonymous component")+(e._isVue&&e.$options.__file?" at "+e.$options.__file:"")},e.prototype.setupOnce=function(t,r){var i=this;if(this._Vue&&this._Vue.config){var o=this._Vue.config.errorHandler;this._Vue.config.errorHandler=function(t,a,s){var c={};n.isPlainObject(a)&&(c.componentName=i._formatComponentName(a),i._attachProps&&(c.propsData=a.$options.propsData)),void 0!==s&&(c.lifecycleHook=s),r().getIntegration(e)&&setTimeout((function(){r().withScope((function(e){e.setContext("vue",c),r().captureException(t)}))})),"function"==typeof o&&o.call(i._Vue,t,a,s),i._logErrors&&(i._Vue.util.warn("Error in "+s+': "'+t.toString()+'"',a),console.error(t))}}else n.logger.error("VueIntegration is missing a Vue instance")},e.id="Vue",e}();r.Vue=i},{"@sentry/utils":262}],253:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("@sentry/hub");function o(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=i.getCurrentHub();if(o&&o[e])return o[e].apply(o,n.__spread(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}r.captureException=function(e){var t;try{throw new Error("Sentry syntheticException")}catch(e){t=e}return o("captureException",e,{originalException:e,syntheticException:t})},r.captureMessage=function(e,t){var r;try{throw new Error(e)}catch(e){r=e}return o("captureMessage",e,t,{originalException:e,syntheticException:r})},r.captureEvent=function(e){return o("captureEvent",e)},r.configureScope=function(e){o("configureScope",e)},r.addBreadcrumb=function(e){o("addBreadcrumb",e)},r.setContext=function(e,t){o("setContext",e,t)},r.setExtras=function(e){o("setExtras",e)},r.setTags=function(e){o("setTags",e)},r.setExtra=function(e,t){o("setExtra",e,t)},r.setTag=function(e,t){o("setTag",e,t)},r.setUser=function(e){o("setUser",e)},r.withScope=function(e){o("withScope",e)},r._callOnClient=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.apply(void 0,n.__spread(["_invokeClient",e],t))}},{"@sentry/hub":239,tslib:1123}],254:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./loglevel");r.LogLevel=n.LogLevel;var i=e("./severity");r.Severity=i.Severity;var o=e("./span");r.SpanStatus=o.SpanStatus;var a=e("./status");r.Status=a.Status},{"./loglevel":255,"./severity":256,"./span":257,"./status":258}],255:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Debug=2]="Debug",e[e.Verbose=3]="Verbose"}(r.LogLevel||(r.LogLevel={}))},{}],256:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(r.Severity||(r.Severity={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(r.Severity||(r.Severity={}))},{}],257:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),function(e){e.Ok="ok",e.DealineExceeded="deadline_exceeded",e.Unauthenticated="unauthenticated",e.PermissionDenied="permission_denied",e.NotFound="not_found",e.ResourceExhausted="resource_exhausted",e.InvalidArgument="invalid_argument",e.Unimplemented="unimplemented",e.Unavailable="unavailable",e.InternalError="internal_error",e.UnknownError="unknown_error",e.Cancelled="cancelled",e.AlreadyExists="already_exists",e.FailedPrecondition="failed_precondition",e.Aborted="aborted",e.OutOfRange="out_of_range",e.DataLoss="data_loss"}(r.SpanStatus||(r.SpanStatus={})),function(e){e.fromHttpCode=function(t){if(t<400)return e.Ok;if(t>=400&&t<500)switch(t){case 401:return e.Unauthenticated;case 403:return e.PermissionDenied;case 404:return e.NotFound;case 409:return e.AlreadyExists;case 413:return e.FailedPrecondition;case 429:return e.ResourceExhausted;default:return e.InvalidArgument}if(t>=500&&t<600)switch(t){case 501:return e.Unimplemented;case 503:return e.Unavailable;case 504:return e.DealineExceeded;default:return e.InternalError}return e.UnknownError}}(r.SpanStatus||(r.SpanStatus={}))},{}],258:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(r.Status||(r.Status={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(r.Status||(r.Status={}))},{}],259:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.forget=function(e){e.then(null,(function(e){console.error(e)}))}},{}],260:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("./error"),o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,a=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,r=t.host,n=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(n?n+"/":n)+a},e.prototype._fromString=function(e){var t=o.exec(e);if(!t)throw new i.SentryError("Invalid Dsn");var r=n.__read(t.slice(1),6),a=r[0],s=r[1],c=r[2],u=void 0===c?"":c,l=r[3],f=r[4],d=void 0===f?"":f,h="",p=r[5],m=p.split("/");m.length>1&&(h=m.slice(0,-1).join("/"),p=m.pop()),this._fromComponents({host:l,pass:u,path:h,projectId:p,port:d,protocol:a,user:s})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new i.SentryError("Invalid Dsn")})),"http"!==this.protocol&&"https"!==this.protocol)throw new i.SentryError("Invalid Dsn");if(this.port&&isNaN(parseInt(this.port,10)))throw new i.SentryError("Invalid Dsn")},e}();r.Dsn=a},{"./error":261,tslib:1123}],261:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib"),i=e("./polyfill"),o=function(e){function t(t){var r=this.constructor,n=e.call(this,t)||this;return n.message=t,n.name=r.prototype.constructor.name,i.setPrototypeOf(n,r.prototype),n}return n.__extends(t,e),t}(Error);r.SentryError=o},{"./polyfill":270,tslib:1123}],262:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("tslib");n.__exportStar(e("./async"),r),n.__exportStar(e("./error"),r),n.__exportStar(e("./is"),r),n.__exportStar(e("./logger"),r),n.__exportStar(e("./memo"),r),n.__exportStar(e("./misc"),r),n.__exportStar(e("./object"),r),n.__exportStar(e("./path"),r),n.__exportStar(e("./promisebuffer"),r),n.__exportStar(e("./string"),r),n.__exportStar(e("./supports"),r),n.__exportStar(e("./syncpromise"),r),n.__exportStar(e("./instrument"),r),n.__exportStar(e("./dsn"),r)},{"./async":259,"./dsn":260,"./error":261,"./instrument":263,"./is":264,"./logger":265,"./memo":266,"./misc":267,"./object":268,"./path":269,"./promisebuffer":271,"./string":272,"./supports":273,"./syncpromise":274,tslib:1123}],263:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n,i=e("tslib"),o=e("./is"),a=e("./logger"),s=e("./misc"),c=e("./object"),u=e("./supports"),l=s.getGlobalObject(),f={},d={};function h(e,t){var r,n;if(e&&f[e])try{for(var o=i.__values(f[e]||[]),c=o.next();!c.done;c=o.next()){var u=c.value;try{u(t)}catch(t){a.logger.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+s.getFunctionName(u)+"\nError: "+t)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}function p(e){return void 0===e&&(e=[]),"Request"in l&&o.isInstanceOf(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function m(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in l&&o.isInstanceOf(e[0],Request)?e[0].url:String(e[0])}r.addInstrumentationHandler=function(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(f[e.type]=f[e.type]||[],f[e.type].push(e.callback),function(e){if(!d[e])switch(d[e]=!0,e){case"console":"console"in l&&["debug","info","warn","error","log","assert"].forEach((function(e){e in l.console&&c.fill(l.console,e,(function(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];h("console",{args:r,level:e}),t&&Function.prototype.apply.call(t,l.console,r)}}))}));break;case"dom":"document"in l&&(l.document.addEventListener("click",v("click",h.bind(null,"dom")),!1),l.document.addEventListener("keypress",w(h.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=l[e]&&l[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(c.fill(t,"addEventListener",(function(e){return function(t,r,n){return r&&r.handleEvent?("click"===t&&c.fill(r,"handleEvent",(function(e){return function(t){return v("click",h.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&c.fill(r,"handleEvent",(function(e){return function(t){return w(h.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&v("click",h.bind(null,"dom"),!0)(this),"keypress"===t&&w(h.bind(null,"dom"))(this)),e.call(this,t,r,n)}})),c.fill(t,"removeEventListener",(function(e){return function(t,r,n){var i=r;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return e.call(this,t,i,n)}})))})));break;case"xhr":!function(){if("XMLHttpRequest"in l){var e=XMLHttpRequest.prototype;c.fill(e,"open",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t[1];return this.__sentry_xhr__={method:o.isString(t[0])?t[0].toUpperCase():t[0],url:t[1]},o.isString(n)&&"POST"===this.__sentry_xhr__.method&&n.match(/sentry_key/)&&(this.__sentry_own_request__=!0),e.apply(this,t)}})),c.fill(e,"send",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this,o={args:t,startTimestamp:Date.now(),xhr:n};function a(){if(4===n.readyState){try{n.__sentry_xhr__&&(n.__sentry_xhr__.status_code=n.status)}catch(e){}h("xhr",i.__assign({},o,{endTimestamp:Date.now()}))}}return h("xhr",i.__assign({},o)),"onreadystatechange"in n&&"function"==typeof n.onreadystatechange?c.fill(n,"onreadystatechange",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return a(),e.apply(n,t)}})):n.onreadystatechange=a,e.apply(this,t)}}))}}();break;case"fetch":u.supportsNativeFetch()&&c.fill(l,"fetch",(function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n={args:t,fetchData:{method:p(t),url:m(t)},startTimestamp:Date.now()};return h("fetch",i.__assign({},n)),e.apply(l,t).then((function(e){return h("fetch",i.__assign({},n,{endTimestamp:Date.now(),response:e})),e}),(function(e){throw h("fetch",i.__assign({},n,{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(u.supportsHistory()){var e=l.onpopstate;l.onpopstate=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=l.location.href,o=n;if(n=i,h("history",{from:o,to:i}),e)return e.apply(this,t)},c.fill(l.history,"pushState",t),c.fill(l.history,"replaceState",t)}function t(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t.length>2?t[2]:void 0;if(i){var o=n,a=String(i);n=a,h("history",{from:o,to:a})}return e.apply(this,t)}}}();break;default:a.logger.warn("unknown instrumentation type:",e)}}(e.type))};var y,g,b=0;function v(e,t,r){return void 0===r&&(r=!1),function(n){y=void 0,n&&g!==n&&(g=n,b&&clearTimeout(b),r?b=setTimeout((function(){t({event:n,name:e})})):t({event:n,name:e}))}}function w(e){return function(t){var r;try{r=t.target}catch(e){return}var n=r&&r.tagName;n&&("INPUT"===n||"TEXTAREA"===n||r.isContentEditable)&&(y||v("input",e)(t),clearTimeout(y),y=setTimeout((function(){y=void 0}),1e3))}}},{"./is":264,"./logger":265,"./misc":267,"./object":268,"./supports":273,tslib:1123}],264:[function(e,t,r){function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){try{return e instanceof t}catch(e){return!1}}Object.defineProperty(r,"__esModule",{value:!0}),r.isError=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return i(e,Error)}},r.isErrorEvent=function(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)},r.isDOMError=function(e){return"[object DOMError]"===Object.prototype.toString.call(e)},r.isDOMException=function(e){return"[object DOMException]"===Object.prototype.toString.call(e)},r.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},r.isPrimitive=function(e){return null===e||"object"!=typeof e&&"function"!=typeof e},r.isPlainObject=n,r.isEvent=function(e){return"undefined"!=typeof Event&&i(e,Event)},r.isElement=function(e){return"undefined"!=typeof Element&&i(e,Element)},r.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},r.isThenable=function(e){return Boolean(e&&e.then&&"function"==typeof e.then)},r.isSyntheticEvent=function(e){return n(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e},r.isInstanceOf=i},{}],265:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./misc"),i=n.getGlobalObject(),o="Sentry Logger ",a=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&n.consoleSandbox((function(){i.console.log(o+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&n.consoleSandbox((function(){i.console.warn(o+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&n.consoleSandbox((function(){i.console.error(o+"[Error]: "+e.join(" "))}))},e}();i.__SENTRY__=i.__SENTRY__||{};var s=i.__SENTRY__.logger||(i.__SENTRY__.logger=new a);r.logger=s},{"./misc":267}],266:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}();r.Memo=n},{}],267:[function(e,t,r){(function(t,n){Object.defineProperty(r,"__esModule",{value:!0});var i=e("./is"),o=e("./string");function a(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}r.dynamicRequire=function(e,t){return e.require(t)},r.isNodeEnv=a;var s={};function c(){return a()?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:s}function u(e){var t,r,n,o,a,s=e,c=[];if(!s||!s.tagName)return"";if(c.push(s.tagName.toLowerCase()),s.id&&c.push("#"+s.id),(t=s.className)&&i.isString(t))for(r=t.split(/\s+/),a=0;a<r.length;a++)c.push("."+r[a]);var u=["type","name","title","alt"];for(a=0;a<u.length;a++)n=u[a],(o=s.getAttribute(n))&&c.push("["+n+'="'+o+'"]');return c.join("")}r.getGlobalObject=c,r.uuid4=function(){var e=c(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var r=new Uint16Array(8);t.getRandomValues(r),r[3]=4095&r[3]|16384,r[4]=16383&r[4]|32768;var n=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return n(r[0])+n(r[1])+n(r[2])+n(r[3])+n(r[4])+n(r[5])+n(r[6])+n(r[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},r.parseUrl=function(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+r+n}},r.getEventDescription=function(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"},r.consoleSandbox=function(e){var t=c();if(!("console"in t))return e();var r=t.console,n={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&r[e].__sentry_original__&&(n[e]=r[e],r[e]=r[e].__sentry_original__)}));var i=e();return Object.keys(n).forEach((function(e){r[e]=n[e]})),i},r.addExceptionTypeValue=function(e,t,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||r||"Error"},r.addExceptionMechanism=function(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(r){e.exception.values[0].mechanism[r]=t[r]}))}catch(e){}},r.getLocationHref=function(){try{return document.location.href}catch(e){return""}},r.htmlTreeAsString=function(e){try{for(var t=e,r=[],n=0,i=0,o=" > ".length,a=void 0;t&&n++<5&&!("html"===(a=u(t))||n>1&&i+r.length*o+a.length>=80);)r.push(a),i+=a.length,t=t.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}},r.timestampWithMs=function(){return(new Date).getTime()/1e3};var l=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;r.parseSemver=function(e){var t=e.match(l)||[],r=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(r)?void 0:r,minor:isNaN(n)?void 0:n,patch:isNaN(i)?void 0:i,prerelease:t[4]}},r.parseRetryAfterHeader=function(e,t){if(!t)return 6e4;var r=parseInt(""+t,10);if(!isNaN(r))return 1e3*r;var n=Date.parse(""+t);return isNaN(n)?6e4:n-e},r.getFunctionName=function(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}},r.addContextToFrame=function(e,t,r){void 0===r&&(r=5);var n=t.lineno||0,i=e.length,a=Math.max(Math.min(i,n-1),0);t.pre_context=e.slice(Math.max(0,a-r),a).map((function(e){return o.snipLine(e,0)})),t.context_line=o.snipLine(e[Math.min(i-1,a)],t.colno||0),t.post_context=e.slice(Math.min(a+1,i),a+1+r).map((function(e){return o.snipLine(e,0)}))}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./is":264,"./string":272,_process:952}],268:[function(e,t,r){(function(t){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./is"),i=e("./memo"),o=e("./misc"),a=e("./string");function s(e){if(n.isError(e)){var t=e,r={message:t.message,name:t.name,stack:t.stack};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r}if(n.isEvent(e)){var a=e,s={};s.type=a.type;try{s.target=n.isElement(a.target)?o.htmlTreeAsString(a.target):Object.prototype.toString.call(a.target)}catch(e){s.target="<unknown>"}try{s.currentTarget=n.isElement(a.currentTarget)?o.htmlTreeAsString(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(e){s.currentTarget="<unknown>"}for(var i in"undefined"!=typeof CustomEvent&&n.isInstanceOf(e,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,i)&&(s[i]=a);return s}return e}function c(e,r){return"domain"===r&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===r?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":n.isSyntheticEvent(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+o.getFunctionName(e)+"]":e}function u(e,t,r,o){if(void 0===r&&(r=1/0),void 0===o&&(o=new i.Memo),0===r)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var r=c(e);return n.isPrimitive(r)?r:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var a=c(t,e);if(n.isPrimitive(a))return a;var l=s(t),f=Array.isArray(t)?[]:{};if(o.memoize(t))return"[Circular ~]";for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(f[d]=u(d,l[d],r-1,o));return o.unmemoize(t),f}function l(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,r){return u(e,r,t)})))}catch(e){return"**non-serializable**"}}r.fill=function(e,t,r){if(t in e){var n=e[t],i=r(n);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:n}})}catch(e){}e[t]=i}},r.urlEncode=function(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},r.normalizeToSize=function e(t,r,n){void 0===r&&(r=3),void 0===n&&(n=102400);var i=l(t,r);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(i)>n?e(t,r-1,n):i},r.walk=u,r.normalize=l,r.extractExceptionKeysForMessage=function(e,t){void 0===t&&(t=40);var r=Object.keys(s(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return a.truncate(r[0],t);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>t))return n===r.length?i:a.truncate(i,t)}return""}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./is":264,"./memo":266,"./misc":267,"./string":272}],269:[function(e,t,r){function n(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}Object.defineProperty(r,"__esModule",{value:!0});var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;function o(e){var t=i.exec(e);return t?t.slice(1):[]}function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",i=!1,o=e.length-1;o>=-1&&!i;o--){var a=o>=0?e[o]:"/";a&&(r=a+"/"+r,i="/"===a.charAt(0))}return(i?"/":"")+(r=n(r.split("/").filter((function(e){return!!e})),!i).join("/"))||"."}function s(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}function c(e){var t=u(e),r="/"===e.substr(-1),i=n(e.split("/").filter((function(e){return!!e})),!t).join("/");return i||t||(i="."),i&&r&&(i+="/"),(t?"/":"")+i}function u(e){return"/"===e.charAt(0)}r.resolve=a,r.relative=function(e,t){e=a(e).substr(1),t=a(t).substr(1);for(var r=s(e.split("/")),n=s(t.split("/")),i=Math.min(r.length,n.length),o=i,c=0;c<i;c++)if(r[c]!==n[c]){o=c;break}var u=[];for(c=o;c<r.length;c++)u.push("..");return(u=u.concat(n.slice(o))).join("/")},r.normalizePath=c,r.isAbsolute=u,r.join=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(e.join("/"))},r.dirname=function(e){var t=o(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},r.basename=function(e,t){var r=o(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r}},{}],270:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.setPrototypeOf=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r]);return e})},{}],271:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./error"),i=e("./syncpromise"),o=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):i.SyncPromise.reject(new n.SentryError("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new i.SyncPromise((function(r){var n=setTimeout((function(){e&&e>0&&r(!1)}),e);i.SyncPromise.all(t._buffer).then((function(){clearTimeout(n),r(!0)})).then(null,(function(){r(!0)}))}))},e}();r.PromiseBuffer=o},{"./error":261,"./syncpromise":274}],272:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./is");r.truncate=function(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."},r.snipLine=function(e,t){var r=e,n=r.length;if(n<=150)return r;t>n&&(t=n);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r="'{snip} "+r),o<n&&(r+=" {snip}"),r},r.safeJoin=function(e,t){if(!Array.isArray(e))return"";for(var r=[],n=0;n<e.length;n++){var i=e[n];try{r.push(String(i))}catch(e){r.push("[value cannot be serialized]")}}return r.join(t)},r.isMatchingPattern=function(e,t){return n.isRegExp(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t)}},{"./is":264}],273:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=e("./logger"),i=e("./misc");function o(){if(!("fetch"in i.getGlobalObject()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function a(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}r.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},r.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},r.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},r.supportsFetch=o,r.supportsNativeFetch=function(){if(!o())return!1;var e=i.getGlobalObject();if(a(e.fetch))return!0;var t=!1,r=e.document;if(r){var s=r.createElement("iframe");s.hidden=!0;try{r.head.appendChild(s),s.contentWindow&&s.contentWindow.fetch&&(t=a(s.contentWindow.fetch)),r.head.removeChild(s)}catch(e){n.logger.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}}return t},r.supportsReportingObserver=function(){return"ReportingObserver"in i.getGlobalObject()},r.supportsReferrerPolicy=function(){if(!o())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}},r.supportsHistory=function(){var e=i.getGlobalObject(),t=e.chrome,r=t&&t.app&&t.app.runtime,n="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!r&&n}},{"./logger":265,"./misc":267}],274:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n,i=e("./is");!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(n||(n={}));var o=function(){function e(e){var t=this;this._state=n.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(n.RESOLVED,e)},this._reject=function(e){t._setResult(n.REJECTED,e)},this._setResult=function(e,r){t._state===n.PENDING&&(i.isThenable(r)?r.then(t._resolve,t._reject):(t._state=e,t._value=r,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){t._state!==n.PENDING&&(t._state===n.REJECTED?t._handlers.forEach((function(e){e.onrejected&&e.onrejected(t._value)})):t._handlers.forEach((function(e){e.onfulfilled&&e.onfulfilled(t._value)})),t._handlers=[])};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.toString=function(){return"[object SyncPromise]"},e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,r){r(t)}))},e.all=function(t){return new e((function(r,n){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0==(i-=1)&&r(o)})).then(null,n)}))}else r([]);else n(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,r){var n=this;return new e((function(e,i){n._attachHandler({onfulfilled:function(r){if(t)try{return void e(t(r))}catch(e){return void i(e)}else e(r)},onrejected:function(t){if(r)try{return void e(r(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var r=this;return new e((function(e,n){var i,o;return r.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?n(i):e(i)}))}))},e}();r.SyncPromise=o},{"./is":264}],275:[function(e,t,r){const n=e("web3/lib/solidity/coder.js"),i=e("web3"),o={savedABIs:[],methodIDs:{}};t.exports={getABIs:function(){return o.savedABIs},addABI:function(e){if(!Array.isArray(e))throw new Error("Expected ABI array, got "+typeof e);e.map((function(e){if(e.name){const t=(new i).sha3(e.name+"("+e.inputs.map((function(e){return e.type})).join(",")+")");"event"==e.type?o.methodIDs[t.slice(2)]=e:o.methodIDs[t.slice(2,10)]=e}})),o.savedABIs=o.savedABIs.concat(e)},getMethodIDs:function(){return o.methodIDs},decodeMethod:function(e){const t=e.slice(2,10),r=o.methodIDs[t];if(r){const t=r.inputs.map((function(e){return e.type}));let o=n.decodeParams(t,e.slice(10));return{name:r.name,params:o.map((function(e,t){let n=e;const o=0==r.inputs[t].type.indexOf("uint"),a=0==r.inputs[t].type.indexOf("int");return(o||a)&&(n=Array.isArray(e)?e.map(e=>(new i).toBigNumber(e).toString()):(new i).toBigNumber(e).toString()),{name:r.inputs[t].name,value:n,type:r.inputs[t].type}}))}}},decodeLogs:function(e){return e.map((function(e){const t=e.topics[0].slice(2),r=o.methodIDs[t];if(r){const t=e.data;let o=[],a=0,s=1,c=[];r.inputs.map((function(e){e.indexed||c.push(e.type)}));const u=n.decodeParams(c,t.slice(2));return r.inputs.map((function(t){var r={name:t.name,type:t.type};t.indexed?(r.value=e.topics[s],s++):(r.value=u[a],a++),"address"==t.type?r.value=function(e){var t=e;if(-1!=e.indexOf("0x")&&(t=e.slice(2)),t.length<40)for(;t.length<40;)t="0"+t;return"0x"+t}((new i).toBigNumber(r.value).toString(16)):"uint256"!=t.type&&"uint8"!=t.type&&"int"!=t.type||(r.value=(new i).toBigNumber(r.value).toString(10)),o.push(r)})),{name:r.name,events:o,address:e.address}}}))},removeABI:function(e){if(!Array.isArray(e))throw new Error("Expected ABI array, got "+typeof e);e.map((function(e){if(e.name){const t=(new i).sha3(e.name+"("+e.inputs.map((function(e){return e.type})).join(",")+")");"event"==e.type?o.methodIDs[t.slice(2)]&&delete o.methodIDs[t.slice(2)]:o.methodIDs[t.slice(2,10)]&&delete o.methodIDs[t.slice(2,10)]}}))}}},{web3:277,"web3/lib/solidity/coder.js":284}],276:[function(e,t,r){!function(r){"use strict";var n,i,o,a=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,u=" not a boolean or binary digit",l="number type has more than 15 significant digits",f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",d=1e14,h=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],p=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function y(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function g(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=c==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>u^r?1:-1;for(s=(c=i.length)<(u=o.length)?c:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==u?0:c>u^r?1:-1}function b(e,t,r){return(e=k(e))>=t&&e<=r}function v(e){return"[object Array]"==Object.prototype.toString.call(e)}function w(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;o[i]*=t);for(o[n=0]+=f.indexOf(e.charAt(a++));n<o.length;n++)o[n]>r-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}function _(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}function k(e){return(e=parseFloat(e))<0?s(e):c(e)}if(n=function e(t){var r,n,S,E,A,T,C,O=0,j=K.prototype,P=new K(1),M=20,I=4,N=-7,B=21,R=-1e7,D=1e7,L=!0,U=Y,F=!1,q=1,H=100,z={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function K(e,t){var r,n,i,s,c,u,d=this;if(!(d instanceof K))return L&&J(26,"constructor call without new",e),new K(e,t);if(null!=t&&U(t,2,64,O,"base")){if(u=e+"",10==(t|=0))return Q(d=new K(e instanceof K?e:u),M+d.e+1,I);if((s="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(r="["+f.slice(0,t)+"]+")+"(?:\\."+r+")?$",t<37?"i":"").test(u))return o(d,u,s,t);s?(d.s=1/e<0?(u=u.slice(1),-1):1,L&&u.replace(/^0\.0*|\./,"").length>15&&J(O,l,e),s=!1):d.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1,u=V(u,10,t,d.s)}else{if(e instanceof K)return d.s=e.s,d.e=e.e,d.c=(e=e.c)?e.slice():e,void(O=0);if((s="number"==typeof e)&&0*e==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(n=0,i=e;i>=10;i/=10,n++);return d.e=n,d.c=[e],void(O=0)}u=e+""}else{if(!a.test(u=e+""))return o(d,u,s);d.s=45===u.charCodeAt(0)?(u=u.slice(1),-1):1}}for((n=u.indexOf("."))>-1&&(u=u.replace(".","")),(i=u.search(/e/i))>0?(n<0&&(n=i),n+=+u.slice(i+1),u=u.substring(0,i)):n<0&&(n=u.length),i=0;48===u.charCodeAt(i);i++);for(c=u.length;48===u.charCodeAt(--c););if(u=u.slice(i,c+1))if(c=u.length,s&&L&&c>15&&J(O,l,d.s*e),(n=n-i-1)>D)d.c=d.e=null;else if(n<R)d.c=[d.e=0];else{if(d.e=n,d.c=[],i=(n+1)%14,n<0&&(i+=14),i<c){for(i&&d.c.push(+u.slice(0,i)),c-=14;i<c;)d.c.push(+u.slice(i,i+=14));i=14-(u=u.slice(i)).length}else i-=c;for(;i--;u+="0");d.c.push(+u)}else d.c=[d.e=0];O=0}function V(e,t,n,i){var o,a,s,c,u,l,d,h=e.indexOf("."),p=M,m=I;for(n<37&&(e=e.toLowerCase()),h>=0&&(s=H,H=0,e=e.replace(".",""),u=(d=new K(n)).pow(e.length-h),H=s,d.c=w(x(y(u.c),u.e),10,t),d.e=d.c.length),a=s=(l=w(e,n,t)).length;0==l[--s];l.pop());if(!l[0])return"0";if(h<0?--a:(u.c=l,u.e=a,u.s=i,l=(u=r(u,d,p,m,t)).c,c=u.r,a=u.e),h=l[o=a+p+1],s=t/2,c=c||o<0||null!=l[o+1],c=m<4?(null!=h||c)&&(0==m||m==(u.s<0?3:2)):h>s||h==s&&(4==m||c||6==m&&1&l[o-1]||m==(u.s<0?8:7)),o<1||!l[0])e=c?x("1",-p):"0";else{if(l.length=o,c)for(--t;++l[--o]>t;)l[o]=0,o||(++a,l.unshift(1));for(s=l.length;!l[--s];);for(h=0,e="";h<=s;e+=f.charAt(l[h++]));e=x(e,a)}return e}function G(e,t,r,n){var i,o,a,s,c;if(r=null!=r&&U(r,0,8,n,"rounding mode")?0|r:I,!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=y(e.c),c=19==n||24==n&&a<=N?_(c,a):x(c,a);else if(o=(e=Q(new K(e),t,r)).e,s=(c=y(e.c)).length,19==n||24==n&&(t<=o||o<=N)){for(;s<t;c+="0",s++);c=_(c,o)}else if(t-=a,c=x(c,o),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function W(e,t){var r,n,i=0;for(v(e[0])&&(e=e[0]),r=new K(e[0]);++i<e.length;){if(!(n=new K(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function Y(e,t,r,n,i){return(e<t||e>r||e!=k(e))&&J(n,(i||"decimal places")+(e<t||e>r?" out of range":" not an integer"),e),!0}function $(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>D?e.c=e.e=null:r<R?e.c=[e.e=0]:(e.e=r,e.c=t),e}function J(e,t,r){var n=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+r);throw n.name="BigNumber Error",O=0,n}function Q(e,t,r,n){var i,o,a,u,l,f,p,m=e.c,y=h;if(m){e:{for(i=1,u=m[0];u>=10;u/=10,i++);if((o=t-i)<0)o+=14,a=t,p=(l=m[f=0])/y[i-a-1]%10|0;else if((f=s((o+1)/14))>=m.length){if(!n)break e;for(;m.length<=f;m.push(0));l=p=0,i=1,a=(o%=14)-14+1}else{for(l=u=m[f],i=1;u>=10;u/=10,i++);p=(a=(o%=14)-14+i)<0?0:l/y[i-a-1]%10|0}if(n=n||t<0||null!=m[f+1]||(a<0?l:l%y[i-a-1]),n=r<4?(p||n)&&(0==r||r==(e.s<0?3:2)):p>5||5==p&&(4==r||n||6==r&&(o>0?a>0?l/y[i-a]:0:m[f-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,n?(t-=e.e+1,m[0]=y[t%14],e.e=-t||0):m[0]=e.e=0,e;if(0==o?(m.length=f,u=1,f--):(m.length=f+1,u=y[14-o],m[f]=a>0?c(l/y[i-a]%y[a])*u:0),n)for(;;){if(0==f){for(o=1,a=m[0];a>=10;a/=10,o++);for(a=m[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,m[0]==d&&(m[0]=1));break}if(m[f]+=u,m[f]!=d)break;m[f--]=0,u=1}for(o=m.length;0===m[--o];m.pop());}e.e>D?e.c=e.e=null:e.e<R&&(e.c=[e.e=0])}return e}return K.another=e,K.ROUND_UP=0,K.ROUND_DOWN=1,K.ROUND_CEIL=2,K.ROUND_FLOOR=3,K.ROUND_HALF_UP=4,K.ROUND_HALF_DOWN=5,K.ROUND_HALF_EVEN=6,K.ROUND_HALF_CEIL=7,K.ROUND_HALF_FLOOR=8,K.EUCLID=9,K.config=function(){var e,t,r=0,n={},o=arguments,a=o[0],s=a&&"object"==typeof a?function(){if(a.hasOwnProperty(t))return null!=(e=a[t])}:function(){if(o.length>r)return null!=(e=o[r++])};return s(t="DECIMAL_PLACES")&&U(e,0,p,2,t)&&(M=0|e),n[t]=M,s(t="ROUNDING_MODE")&&U(e,0,8,2,t)&&(I=0|e),n[t]=I,s(t="EXPONENTIAL_AT")&&(v(e)?U(e[0],-p,0,2,t)&&U(e[1],0,p,2,t)&&(N=0|e[0],B=0|e[1]):U(e,-p,p,2,t)&&(N=-(B=0|(e<0?-e:e)))),n[t]=[N,B],s(t="RANGE")&&(v(e)?U(e[0],-p,-1,2,t)&&U(e[1],1,p,2,t)&&(R=0|e[0],D=0|e[1]):U(e,-p,p,2,t)&&(0|e?R=-(D=0|(e<0?-e:e)):L&&J(2,t+" cannot be zero",e))),n[t]=[R,D],s(t="ERRORS")&&(e===!!e||1===e||0===e?(O=0,U=(L=!!e)?Y:b):L&&J(2,t+u,e)),n[t]=L,s(t="CRYPTO")&&(e===!!e||1===e||0===e?(F=!(!e||!i||"object"!=typeof i),e&&!F&&L&&J(2,"crypto unavailable",i)):L&&J(2,t+u,e)),n[t]=F,s(t="MODULO_MODE")&&U(e,0,9,2,t)&&(q=0|e),n[t]=q,s(t="POW_PRECISION")&&U(e,0,p,2,t)&&(H=0|e),n[t]=H,s(t="FORMAT")&&("object"==typeof e?z=e:L&&J(2,t+" not an object",e)),n[t]=z,n},K.max=function(){return W(arguments,j.lt)},K.min=function(){return W(arguments,j.gt)},K.random=(n=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,o,a,u,l=0,f=[],d=new K(P);if(e=null!=e&&U(e,0,p,14)?0|e:M,a=s(e/14),F)if(i&&i.getRandomValues){for(t=i.getRandomValues(new Uint32Array(a*=2));l<a;)(u=131072*t[l]+(t[l+1]>>>11))>=9e15?(r=i.getRandomValues(new Uint32Array(2)),t[l]=r[0],t[l+1]=r[1]):(f.push(u%1e14),l+=2);l=a/2}else if(i&&i.randomBytes){for(t=i.randomBytes(a*=7);l<a;)(u=281474976710656*(31&t[l])+1099511627776*t[l+1]+4294967296*t[l+2]+16777216*t[l+3]+(t[l+4]<<16)+(t[l+5]<<8)+t[l+6])>=9e15?i.randomBytes(7).copy(t,l):(f.push(u%1e14),l+=7);l=a/7}else L&&J(14,"crypto unavailable",i);if(!l)for(;l<a;)(u=n())<9e15&&(f[l++]=u%1e14);for(e%=14,(a=f[--l])&&e&&(u=h[14-e],f[l]=c(a/u)*u);0===f[l];f.pop(),l--);if(l<0)f=[o=0];else{for(o=-1;0===f[0];f.shift(),o-=14);for(l=1,u=f[0];u>=10;u/=10,l++);l<14&&(o-=14-l)}return d.e=o,d.c=f,d}),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%1e7,l=t/1e7|0;for(e=e.slice();c--;)s=((i=u*(o=e[c]%1e7)+(n=l*o+(a=e[c]/1e7|0)*u)%1e7*1e7+s)/r|0)+(n/1e7|0)+l*a,e[c]=i%r;return s&&e.unshift(s),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.shift());}return function(n,i,o,a,s){var u,l,f,h,p,y,g,b,v,w,_,x,k,S,E,A,T,C=n.s==i.s?1:-1,O=n.c,j=i.c;if(!(O&&O[0]&&j&&j[0]))return new K(n.s&&i.s&&(O?!j||O[0]!=j[0]:j)?O&&0==O[0]||!j?0*C:C/0:NaN);for(v=(b=new K(C)).c=[],C=o+(l=n.e-i.e)+1,s||(s=d,l=m(n.e/14)-m(i.e/14),C=C/14|0),f=0;j[f]==(O[f]||0);f++);if(j[f]>(O[f]||0)&&l--,C<0)v.push(1),h=!0;else{for(S=O.length,A=j.length,f=0,C+=2,(p=c(s/(j[0]+1)))>1&&(j=e(j,p,s),O=e(O,p,s),A=j.length,S=O.length),k=A,_=(w=O.slice(0,A)).length;_<A;w[_++]=0);(T=j.slice()).unshift(0),E=j[0],j[1]>=s/2&&E++;do{if(p=0,(u=t(j,w,A,_))<0){if(x=w[0],A!=_&&(x=x*s+(w[1]||0)),(p=c(x/E))>1)for(p>=s&&(p=s-1),g=(y=e(j,p,s)).length,_=w.length;1==t(y,w,g,_);)p--,r(y,A<g?T:j,g,s),g=y.length,u=1;else 0==p&&(u=p=1),g=(y=j.slice()).length;if(g<_&&y.unshift(0),r(w,y,_,s),_=w.length,-1==u)for(;t(j,w,A,_)<1;)p++,r(w,A<_?T:j,_,s),_=w.length}else 0===u&&(p++,w=[0]);v[f++]=p,w[0]?w[_++]=O[k]||0:(w=[O[k]],_=1)}while((k++<S||null!=w[0])&&C--);h=null!=w[0],v[0]||v.shift()}if(s==d){for(f=1,C=v[0];C>=10;C/=10,f++);Q(b,o+(b.e=f+14*l-1)+1,a,h)}else b.e=l,b.r=+h;return b}}(),S=/^(-?)0([xbo])/i,E=/^([^.]+)\.$/,A=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,C=/^\s*\+|^\s+|\s+$/g,o=function(e,t,r,n){var i,o=r?t:t.replace(C,"");if(T.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(S,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(E,"$1").replace(A,"0.$1")),t!=o))return new K(o,i);L&&J(O,"not a"+(n?" base "+n:"")+" number",t),e.s=null}e.c=e.e=null,O=0},j.absoluteValue=j.abs=function(){var e=new K(this);return e.s<0&&(e.s=1),e},j.ceil=function(){return Q(new K(this),this.e+1,2)},j.comparedTo=j.cmp=function(e,t){return O=1,g(this,new K(e,t))},j.decimalPlaces=j.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=14*((t=r.length-1)-m(this.e/14)),t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},j.dividedBy=j.div=function(e,t){return O=3,r(this,new K(e,t),M,I)},j.dividedToIntegerBy=j.divToInt=function(e,t){return O=4,r(this,new K(e,t),0,1)},j.equals=j.eq=function(e,t){return O=5,0===g(this,new K(e,t))},j.floor=function(){return Q(new K(this),this.e+1,3)},j.greaterThan=j.gt=function(e,t){return O=6,g(this,new K(e,t))>0},j.greaterThanOrEqualTo=j.gte=function(e,t){return O=7,1===(t=g(this,new K(e,t)))||0===t},j.isFinite=function(){return!!this.c},j.isInteger=j.isInt=function(){return!!this.c&&m(this.e/14)>this.c.length-2},j.isNaN=function(){return!this.s},j.isNegative=j.isNeg=function(){return this.s<0},j.isZero=function(){return!!this.c&&0==this.c[0]},j.lessThan=j.lt=function(e,t){return O=8,g(this,new K(e,t))<0},j.lessThanOrEqualTo=j.lte=function(e,t){return O=9,-1===(t=g(this,new K(e,t)))||0===t},j.minus=j.sub=function(e,t){var r,n,i,o,a=this,s=a.s;if(O=10,t=(e=new K(e,t)).s,!s||!t)return new K(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/14,u=e.e/14,l=a.c,f=e.c;if(!c||!u){if(!l||!f)return l?(e.s=-t,e):new K(f?a:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new K(l[0]?a:3==I?-0:0)}if(c=m(c),u=m(u),l=l.slice(),s=c-u){for((o=s<0)?(s=-s,i=l):(u=c,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=l.length)<(t=f.length))?s:t,s=t=0;t<n;t++)if(l[t]!=f[t]){o=l[t]<f[t];break}if(o&&(i=l,l=f,f=i,e.s=-e.s),(t=(n=f.length)-(r=l.length))>0)for(;t--;l[r++]=0);for(t=d-1;n>s;){if(l[--n]<f[n]){for(r=n;r&&!l[--r];l[r]=t);--l[r],l[n]+=d}l[n]-=f[n]}for(;0==l[0];l.shift(),--u);return l[0]?$(e,l,u):(e.s=3==I?-1:1,e.c=[e.e=0],e)},j.modulo=j.mod=function(e,t){var n,i,o=this;return O=11,e=new K(e,t),!o.c||!e.s||e.c&&!e.c[0]?new K(NaN):!e.c||o.c&&!o.c[0]?new K(o):(9==q?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,q),o.minus(n.times(e)))},j.negated=j.neg=function(){var e=new K(this);return e.s=-e.s||null,e},j.plus=j.add=function(e,t){var r,n=this,i=n.s;if(O=12,t=(e=new K(e,t)).s,!i||!t)return new K(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/14,a=e.e/14,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new K(i/0);if(!s[0]||!c[0])return c[0]?e:new K(s[0]?n:0*i)}if(o=m(o),a=m(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/d|0,s[t]%=d;return i&&(s.unshift(i),++a),$(e,s,a)},j.precision=j.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(L&&J(13,"argument"+u,e),e!=!!e&&(e=null)),!i)return null;if(t=14*(r=i.length-1)+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},j.round=function(e,t){var r=new K(this);return(null==e||U(e,0,p,15))&&Q(r,~~e+this.e+1,null!=t&&U(t,0,8,15,"rounding mode")?0|t:I),r},j.shift=function(e){var t=this;return U(e,-9007199254740991,9007199254740991,16,"argument")?t.times("1e"+k(e)):new K(t.c&&t.c[0]&&(e<-9007199254740991||e>9007199254740991)?t.s*(e<0?0:1/0):t)},j.squareRoot=j.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,c=a.s,u=a.e,l=M+4,f=new K("0.5");if(1!==c||!s||!s[0])return new K(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+a))||c==1/0?(((t=y(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=m((u+1)/2)-(u<0||u%2),n=new K(t=c==1/0?"1e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new K(c+""),n.c[0])for((c=(u=n.e)+l)<3&&(c=0);;)if(o=n,n=f.times(o.plus(r(a,o,l,1))),y(o.c).slice(0,c)===(t=y(n.c)).slice(0,c)){if(n.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(Q(n,n.e+M+2,1),e=!n.times(n).eq(a));break}if(!i&&(Q(o,o.e+M+2,0),o.times(o).eq(a))){n=o;break}l+=4,c+=4,i=1}return Q(n,n.e+M+1,I,e)},j.times=j.mul=function(e,t){var r,n,i,o,a,s,c,u,l,f,h,p,y,g,b=this,v=b.c,w=(O=17,e=new K(e,t)).c;if(!(v&&w&&v[0]&&w[0]))return!b.s||!e.s||v&&!v[0]&&!w||w&&!w[0]&&!v?e.c=e.e=e.s=null:(e.s*=b.s,v&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=m(b.e/14)+m(e.e/14),e.s*=b.s,(c=v.length)<(f=w.length)&&(y=v,v=w,w=y,i=c,c=f,f=i),i=c+f,y=[];i--;y.push(0));for(g=d,i=f;--i>=0;){for(r=0,h=w[i]%1e7,p=w[i]/1e7|0,o=i+(a=c);o>i;)r=((u=h*(u=v[--a]%1e7)+(s=p*u+(l=v[a]/1e7|0)*h)%1e7*1e7+y[o]+r)/g|0)+(s/1e7|0)+p*l,y[o--]=u%g;y[o]=r}return r?++n:y.shift(),$(e,y,n)},j.toDigits=function(e,t){var r=new K(this);return e=null!=e&&U(e,1,p,18,"precision")?0|e:null,t=null!=t&&U(t,0,8,18,"rounding mode")?0|t:I,e?Q(r,e,t):r},j.toExponential=function(e,t){return G(this,null!=e&&U(e,0,p,19)?1+~~e:null,t,19)},j.toFixed=function(e,t){return G(this,null!=e&&U(e,0,p,20)?~~e+this.e+1:null,t,20)},j.toFormat=function(e,t){var r=G(this,null!=e&&U(e,0,p,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),o=+z.groupSize,a=+z.secondaryGroupSize,s=z.groupSeparator,c=i[0],u=i[1],l=this.s<0,f=l?c.slice(1):c,d=f.length;if(a&&(n=o,o=a,a=n,d-=n),o>0&&d>0){for(n=d%o||o,c=f.substr(0,n);n<d;n+=o)c+=s+f.substr(n,o);a>0&&(c+=s+f.slice(n)),l&&(c="-"+c)}r=u?c+z.decimalSeparator+((a=+z.fractionGroupSize)?u.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+z.fractionGroupSeparator):u):c}return r},j.toFraction=function(e){var t,n,i,o,a,s,c,u,l,f=L,d=this,p=d.c,m=new K(P),g=n=new K(P),b=c=new K(P);if(null!=e&&(L=!1,s=new K(e),L=f,(f=s.isInt())&&!s.lt(P)||(L&&J(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&s.c&&Q(s,s.e+1,1).gte(P)?s:null)),!p)return d.toString();for(l=y(p),o=m.e=l.length-d.e-1,m.c[0]=h[(a=o%14)<0?14+a:a],e=!e||s.cmp(m)>0?o>0?m:g:s,a=D,D=1/0,s=new K(l),c.c[0]=0;u=r(s,m,0,1),1!=(i=n.plus(u.times(b))).cmp(e);)n=b,b=i,g=c.plus(u.times(i=g)),c=i,m=s.minus(u.times(i=m)),s=i;return i=r(e.minus(n),b,0,1),c=c.plus(i.times(g)),n=n.plus(i.times(b)),c.s=g.s=d.s,t=r(g,b,o*=2,I).minus(d).abs().cmp(r(c,n,o,I).minus(d).abs())<1?[g.toString(),b.toString()]:[c.toString(),n.toString()],D=a,t},j.toNumber=function(){var e=this;return+e||(e.s?0*e.s:NaN)},j.toPower=j.pow=function(e){var t,r,n=c(e<0?-e:+e),i=this;if(!U(e,-9007199254740991,9007199254740991,23,"exponent")&&(!isFinite(e)||n>9007199254740991&&(e/=0)||parseFloat(e)!=e&&!(e=NaN)))return new K(Math.pow(+i,e));for(t=H?s(H/14+2):0,r=new K(P);;){if(n%2){if(!(r=r.times(i)).c)break;t&&r.c.length>t&&(r.c.length=t)}if(!(n=c(n/2)))break;i=i.times(i),t&&i.c&&i.c.length>t&&(i.c.length=t)}return e<0&&(r=P.div(r)),t?Q(r,H,I):r},j.toPrecision=function(e,t){return G(this,null!=e&&U(e,1,p,24,"precision")?0|e:null,t,24)},j.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=y(r.c),t=null!=e&&U(e,2,64,25,"base")?V(x(t,i),0|e,10,n):i<=N||i>=B?_(t,i):x(t,i),n<0&&r.c[0]&&(t="-"+t)),t},j.truncated=j.trunc=function(){return Q(new K(this),this.e+1,1)},j.valueOf=j.toJSON=function(){return this.toString()},null!=t&&K.config(t),K}(),"function"==typeof define&&define.amd)define((function(){return n}));else if(void 0!==t&&t.exports){if(t.exports=n,!i)try{i=e("crypto")}catch(e){}}else r.BigNumber=n}(this)},{crypto:505}],277:[function(e,t,r){var n=e("./lib/web3");"undefined"!=typeof window&&void 0===window.Web3&&(window.Web3=n),t.exports=n},{"./lib/web3":299}],278:[function(e,t,r){t.exports=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_content",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"disown",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_winner",type:"address"}],name:"AuctionEnded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_bidder",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"NewBid",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"},{indexed:!0,name:"addr",type:"address"}],name:"PrimaryChanged",type:"event"}]},{}],279:[function(e,t,r){t.exports=[{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_refund",type:"address"}],name:"disown",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"}],name:"setAddr",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"}]},{}],280:[function(e,t,r){t.exports=[{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"indirectId",type:"bytes32"},{name:"value",type:"uint256"}],name:"icapTransfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"to",type:"bytes32"}],name:"deposit",outputs:[],payable:!0,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"AnonymousDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"indirectId",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"IcapTransfer",type:"event"}]},{}],281:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputAddress};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/address(\[([0-9]*)\])?/)},t.exports=o},{"./formatters":286,"./type":291}],282:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputBool,this._outputFormatter=n.formatOutputBool};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^bool(\[([0-9]*)\])*$/)},t.exports=o},{"./formatters":286,"./type":291}],283:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputBytes,this._outputFormatter=n.formatOutputBytes};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^bytes([0-9]{1,})(\[([0-9]*)\])*$/)},t.exports=o},{"./formatters":286,"./type":291}],284:[function(e,t,r){var n=e("./formatters"),i=e("./address"),o=e("./bool"),a=e("./int"),s=e("./uint"),c=e("./dynamicbytes"),u=e("./string"),l=e("./real"),f=e("./ureal"),d=e("./bytes"),h=function(e,t){return e.isDynamicType(t)||e.isDynamicArray(t)},p=function(e){this._types=e};p.prototype._requireType=function(e){var t=this._types.filter((function(t){return t.isType(e)}))[0];if(!t)throw Error("invalid solidity type!: "+e);return t},p.prototype.encodeParam=function(e,t){return this.encodeParams([e],[t])},p.prototype.encodeParams=function(e,t){var r=this.getSolidityTypes(e),n=r.map((function(r,n){return r.encode(t[n],e[n])})),i=r.reduce((function(t,n,i){var o=n.staticPartLength(e[i]),a=32*Math.floor((o+31)/32);return t+(h(r[i],e[i])?32:a)}),0);return this.encodeMultiWithOffset(e,r,n,i)},p.prototype.encodeMultiWithOffset=function(e,t,r,i){var o="",a=this;return e.forEach((function(s,c){if(h(t[c],e[c])){o+=n.formatInputInt(i).encode();var u=a.encodeWithOffset(e[c],t[c],r[c],i);i+=u.length/2}else o+=a.encodeWithOffset(e[c],t[c],r[c],i)})),e.forEach((function(n,s){if(h(t[s],e[s])){var c=a.encodeWithOffset(e[s],t[s],r[s],i);i+=c.length/2,o+=c}})),o},p.prototype.encodeWithOffset=function(e,t,r,i){var o,a,s,c=this;return t.isDynamicArray(e)?(o=t.nestedName(e),a=t.staticPartLength(o),s=r[0],function(){var e=2;if(t.isDynamicArray(o))for(var c=1;c<r.length;c++)e+=+r[c-1][0]||0,s+=n.formatInputInt(i+c*a+32*e).encode()}(),function(){for(var e=0;e<r.length-1;e++){var n=s/2;s+=c.encodeWithOffset(o,t,r[e+1],i+n)}}(),s):t.isStaticArray(e)?function(){var o=t.nestedName(e),a=t.staticPartLength(o),s="";return t.isDynamicArray(o)&&function(){for(var e=0,t=0;t<r.length;t++)e+=+(r[t-1]||[])[0]||0,s+=n.formatInputInt(i+t*a+32*e).encode()}(),function(){for(var e=0;e<r.length;e++){var n=s/2;s+=c.encodeWithOffset(o,t,r[e],i+n)}}(),s}():r},p.prototype.decodeParam=function(e,t){return this.decodeParams([e],t)[0]},p.prototype.decodeParams=function(e,t){var r=this.getSolidityTypes(e),n=this.getOffsets(e,r);return r.map((function(r,i){return r.decode(t,n[i],e[i],i)}))},p.prototype.getOffsets=function(e,t){for(var r=t.map((function(t,r){return t.staticPartLength(e[r])})),n=1;n<r.length;n++)r[n]+=r[n-1];return r.map((function(r,n){return r-t[n].staticPartLength(e[n])}))},p.prototype.getSolidityTypes=function(e){var t=this;return e.map((function(e){return t._requireType(e)}))};var m=new p([new i,new o,new a,new s,new c,new d,new u,new l,new f]);t.exports=m},{"./address":281,"./bool":282,"./bytes":283,"./dynamicbytes":285,"./formatters":286,"./int":287,"./real":289,"./string":290,"./uint":292,"./ureal":293}],285:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputDynamicBytes,this._outputFormatter=n.formatOutputDynamicBytes};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^bytes(\[([0-9]*)\])*$/)},o.prototype.isDynamicType=function(){return!0},t.exports=o},{"./formatters":286,"./type":291}],286:[function(e,t,r){var n=e("bignumber.js"),i=e("../utils/utils"),o=e("../utils/config"),a=e("./param"),s=function(e){n.config(o.ETH_BIGNUMBER_ROUNDING_MODE);var t=i.padLeft(i.toTwosComplement(e).toString(16),64);return new a(t)},c=function(e){var t=e.staticPart()||"0";return function(e){return"1"===new n(e.substr(0,1),16).toString(2).substr(0,1)}(t)?new n(t,16).minus(new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16)).minus(1):new n(t,16)},u=function(e){var t=e.staticPart()||"0";return new n(t,16)};t.exports={formatInputInt:s,formatInputBytes:function(e){var t=i.toHex(e).substr(2),r=Math.floor((t.length+63)/64);return t=i.padRight(t,64*r),new a(t)},formatInputDynamicBytes:function(e){var t=i.toHex(e).substr(2),r=t.length/2,n=Math.floor((t.length+63)/64);return t=i.padRight(t,64*n),new a(s(r).value+t)},formatInputString:function(e){var t=i.fromUtf8(e).substr(2),r=t.length/2,n=Math.floor((t.length+63)/64);return t=i.padRight(t,64*n),new a(s(r).value+t)},formatInputBool:function(e){return new a("000000000000000000000000000000000000000000000000000000000000000"+(e?"1":"0"))},formatInputReal:function(e){return s(new n(e).times(new n(2).pow(128)))},formatOutputInt:c,formatOutputUInt:u,formatOutputReal:function(e){return c(e).dividedBy(new n(2).pow(128))},formatOutputUReal:function(e){return u(e).dividedBy(new n(2).pow(128))},formatOutputBool:function(e){return"0000000000000000000000000000000000000000000000000000000000000001"===e.staticPart()},formatOutputBytes:function(e,t){var r=t.match(/^bytes([0-9]*)/),n=parseInt(r[1]);return"0x"+e.staticPart().slice(0,2*n)},formatOutputDynamicBytes:function(e){var t=2*new n(e.dynamicPart().slice(0,64),16).toNumber();return"0x"+e.dynamicPart().substr(64,t)},formatOutputString:function(e){var t=2*new n(e.dynamicPart().slice(0,64),16).toNumber();return i.toUtf8(e.dynamicPart().substr(64,t))},formatOutputAddress:function(e){var t=e.staticPart();return"0x"+t.slice(t.length-40,t.length)}}},{"../utils/config":295,"../utils/utils":297,"./param":288,"bignumber.js":276}],287:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputInt};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^int([0-9]*)?(\[([0-9]*)\])*$/)},t.exports=o},{"./formatters":286,"./type":291}],288:[function(e,t,r){var n=e("../utils/utils"),i=function(e,t){this.value=e||"",this.offset=t};i.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},i.prototype.withOffset=function(e){return new i(this.value,e)},i.prototype.combine=function(e){return new i(this.value+e.value)},i.prototype.isDynamic=function(){return void 0!==this.offset},i.prototype.offsetAsBytes=function(){return this.isDynamic()?n.padLeft(n.toTwosComplement(this.offset).toString(16),64):""},i.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},i.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},i.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},i.encodeList=function(e){var t=32*e.length,r=e.map((function(e){if(!e.isDynamic())return e;var r=t;return t+=e.dynamicPartLength(),e.withOffset(r)}));return r.reduce((function(e,t){return e+t.dynamicPart()}),r.reduce((function(e,t){return e+t.staticPart()}),""))},t.exports=i},{"../utils/utils":297}],289:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputReal,this._outputFormatter=n.formatOutputReal};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/real([0-9]*)?(\[([0-9]*)\])?/)},t.exports=o},{"./formatters":286,"./type":291}],290:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputString,this._outputFormatter=n.formatOutputString};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^string(\[([0-9]*)\])*$/)},o.prototype.isDynamicType=function(){return!0},t.exports=o},{"./formatters":286,"./type":291}],291:[function(e,t,r){var n=e("./formatters"),i=e("./param"),o=function(e){this._inputFormatter=e.inputFormatter,this._outputFormatter=e.outputFormatter};o.prototype.isType=function(e){throw"this method should be overrwritten for type "+e},o.prototype.staticPartLength=function(e){return(this.nestedTypes(e)||["[1]"]).map((function(e){return parseInt(e.slice(1,-1),10)||1})).reduce((function(e,t){return e*t}),32)},o.prototype.isDynamicArray=function(e){var t=this.nestedTypes(e);return!!t&&!t[t.length-1].match(/[0-9]{1,}/g)},o.prototype.isStaticArray=function(e){var t=this.nestedTypes(e);return!!t&&!!t[t.length-1].match(/[0-9]{1,}/g)},o.prototype.staticArrayLength=function(e){var t=this.nestedTypes(e);return t?parseInt(t[t.length-1].match(/[0-9]{1,}/g)||1):1},o.prototype.nestedName=function(e){var t=this.nestedTypes(e);return t?e.substr(0,e.length-t[t.length-1].length):e},o.prototype.isDynamicType=function(){return!1},o.prototype.nestedTypes=function(e){return e.match(/(\[[0-9]*\])/g)},o.prototype.encode=function(e,t){var r,i,o,a=this;return this.isDynamicArray(t)?(r=e.length,i=a.nestedName(t),(o=[]).push(n.formatInputInt(r).encode()),e.forEach((function(e){o.push(a.encode(e,i))})),o):this.isStaticArray(t)?function(){for(var r=a.staticArrayLength(t),n=a.nestedName(t),i=[],o=0;o<r;o++)i.push(a.encode(e[o],n));return i}():this._inputFormatter(e,t).encode()},o.prototype.decode=function(e,t,r){var n=this;if(this.isDynamicArray(r))return function(){for(var i=parseInt("0x"+e.substr(2*t,64)),o=parseInt("0x"+e.substr(2*i,64)),a=i+32,s=n.nestedName(r),c=n.staticPartLength(s),u=32*Math.floor((c+31)/32),l=[],f=0;f<o*u;f+=u)l.push(n.decode(e,a+f,s));return l}();if(this.isStaticArray(r))return function(){for(var i=n.staticArrayLength(r),o=t,a=n.nestedName(r),s=n.staticPartLength(a),c=32*Math.floor((s+31)/32),u=[],l=0;l<i*c;l+=c)u.push(n.decode(e,o+l,a));return u}();if(this.isDynamicType(r))return function(){var o=parseInt("0x"+e.substr(2*t,64)),a=parseInt("0x"+e.substr(2*o,64)),s=Math.floor((a+31)/32),c=new i(e.substr(2*o,64*(1+s)),0);return n._outputFormatter(c,r)}();var o=this.staticPartLength(r),a=new i(e.substr(2*t,2*o));return this._outputFormatter(a,r)},t.exports=o},{"./formatters":286,"./param":288}],292:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputInt,this._outputFormatter=n.formatOutputUInt};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^uint([0-9]*)?(\[([0-9]*)\])*$/)},t.exports=o},{"./formatters":286,"./type":291}],293:[function(e,t,r){var n=e("./formatters"),i=e("./type"),o=function(){this._inputFormatter=n.formatInputReal,this._outputFormatter=n.formatOutputUReal};(o.prototype=new i({})).constructor=o,o.prototype.isType=function(e){return!!e.match(/^ureal([0-9]*)?(\[([0-9]*)\])*$/)},t.exports=o},{"./formatters":286,"./type":291}],294:[function(e,t,r){"use strict";"undefined"==typeof XMLHttpRequest?r.XMLHttpRequest={}:r.XMLHttpRequest=XMLHttpRequest},{}],295:[function(e,t,r){var n=e("bignumber.js");t.exports={ETH_PADDING:32,ETH_SIGNATURE_LENGTH:4,ETH_UNITS:["wei","kwei","Mwei","Gwei","szabo","finney","femtoether","picoether","nanoether","microether","milliether","nano","micro","milli","ether","grand","Mether","Gether","Tether","Pether","Eether","Zether","Yether","Nether","Dether","Vether","Uether"],ETH_BIGNUMBER_ROUNDING_MODE:{ROUNDING_MODE:n.ROUND_DOWN},ETH_POLLING_TIMEOUT:500,defaultBlock:"latest",defaultAccount:void 0}},{"bignumber.js":276}],296:[function(e,t,r){var n=e("crypto-js"),i=e("crypto-js/sha3");t.exports=function(e,t){return t&&"hex"===t.encoding&&(e.length>2&&"0x"===e.substr(0,2)&&(e=e.substr(2)),e=n.enc.Hex.parse(e)),i(e,{outputLength:256}).toString()}},{"crypto-js":517,"crypto-js/sha3":538}],297:[function(e,t,r){var n=e("bignumber.js"),i=e("./sha3.js"),o=e("utf8"),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"},s=function(e,t,r){return new Array(t-e.length+1).join(r||"0")+e},c=function(e){e=o.encode(e);for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r);if(0===n)break;var i=n.toString(16);t+=i.length<2?"0"+i:i}return"0x"+t},u=function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},l=function(e){var t=h(e),r=t.toString(16);return t.lessThan(0)?"-0x"+r.substr(1):"0x"+r},f=function(e){if(v(e))return l(+e);if(y(e))return l(e);if(b(e))return c(JSON.stringify(e));if(g(e)){if(0===e.indexOf("-0x"))return l(e);if(0===e.indexOf("0x"))return e;if(!isFinite(e))return u(e)}return l(e)},d=function(e){e=e?e.toLowerCase():"ether";var t=a[e];if(void 0===t)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(a,null,2));return new n(t,10)},h=function(e){return y(e=e||0)?e:!g(e)||0!==e.indexOf("0x")&&0!==e.indexOf("-0x")?new n(e.toString(10),10):new n(e.replace("0x",""),16)},p=function(e){return/^0x[0-9a-f]{40}$/i.test(e)},m=function(e){e=e.replace("0x","");for(var t=i(e.toLowerCase()),r=0;r<40;r++)if(parseInt(t[r],16)>7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1;return!0},y=function(e){return e instanceof n||e&&e.constructor&&"BigNumber"===e.constructor.name},g=function(e){return"string"==typeof e||e&&e.constructor&&"String"===e.constructor.name},b=function(e){return"object"==typeof e},v=function(e){return"boolean"==typeof e};t.exports={padLeft:s,padRight:function(e,t,r){return e+new Array(t-e.length+1).join(r||"0")},toHex:f,toDecimal:function(e){return h(e).toNumber()},fromDecimal:l,toUtf8:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);if(0===i)break;t+=String.fromCharCode(i)}return o.decode(t)},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},fromUtf8:c,fromAscii:u,transformToFullName:function(e){if(-1!==e.name.indexOf("("))return e.name;var t=e.inputs.map((function(e){return e.type})).join();return e.name+"("+t+")"},extractDisplayName:function(e){var t=e.indexOf("(");return-1!==t?e.substr(0,t):e},extractTypeName:function(e){var t=e.indexOf("(");return-1!==t?e.substr(t+1,e.length-1-(t+1)).replace(" ",""):""},toWei:function(e,t){var r=h(e).times(d(t));return y(e)?r:r.toString(10)},fromWei:function(e,t){var r=h(e).dividedBy(d(t));return y(e)?r:r.toString(10)},toBigNumber:h,toTwosComplement:function(e){var t=h(e).round();return t.lessThan(0)?new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(t).plus(1):t},toAddress:function(e){return p(e)?e:/^[0-9a-f]{40}$/.test(e)?"0x"+e:"0x"+s(f(e).substr(2),40)},isBigNumber:y,isStrictAddress:p,isAddress:function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||m(e))},isChecksumAddress:m,toChecksumAddress:function(e){if(void 0===e)return"";e=e.toLowerCase().replace("0x","");for(var t=i(e),r="0x",n=0;n<e.length;n++)parseInt(t[n],16)>7?r+=e[n].toUpperCase():r+=e[n];return r},isFunction:function(e){return"function"==typeof e},isString:g,isObject:b,isBoolean:v,isArray:function(e){return e instanceof Array},isJson:function(e){try{return!!JSON.parse(e)}catch(e){return!1}},isBloom:function(e){return!(!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))},isTopic:function(e){return!(!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}}},{"./sha3.js":296,"bignumber.js":276,utf8:1129}],298:[function(e,t,r){t.exports={version:"0.18.4"}},{}],299:[function(e,t,r){var n=e("./web3/requestmanager"),i=e("./web3/iban"),o=e("./web3/methods/eth"),a=e("./web3/methods/db"),s=e("./web3/methods/shh"),c=e("./web3/methods/net"),u=e("./web3/methods/personal"),l=e("./web3/methods/swarm"),f=e("./web3/settings"),d=e("./version.json"),h=e("./utils/utils"),p=e("./utils/sha3"),m=e("./web3/extend"),y=e("./web3/batch"),g=e("./web3/property"),b=e("./web3/httpprovider"),v=e("./web3/ipcprovider"),w=e("bignumber.js");function _(e){this._requestManager=new n(e),this.currentProvider=e,this.eth=new o(this),this.db=new a(this),this.shh=new s(this),this.net=new c(this),this.personal=new u(this),this.bzz=new l(this),this.settings=new f,this.version={api:d.version},this.providers={HttpProvider:b,IpcProvider:v},this._extend=m(this),this._extend({properties:x()})}_.providers={HttpProvider:b,IpcProvider:v},_.prototype.setProvider=function(e){this._requestManager.setProvider(e),this.currentProvider=e},_.prototype.reset=function(e){this._requestManager.reset(e),this.settings=new f},_.prototype.BigNumber=w,_.prototype.toHex=h.toHex,_.prototype.toAscii=h.toAscii,_.prototype.toUtf8=h.toUtf8,_.prototype.fromAscii=h.fromAscii,_.prototype.fromUtf8=h.fromUtf8,_.prototype.toDecimal=h.toDecimal,_.prototype.fromDecimal=h.fromDecimal,_.prototype.toBigNumber=h.toBigNumber,_.prototype.toWei=h.toWei,_.prototype.fromWei=h.fromWei,_.prototype.isAddress=h.isAddress,_.prototype.isChecksumAddress=h.isChecksumAddress,_.prototype.toChecksumAddress=h.toChecksumAddress,_.prototype.isIBAN=h.isIBAN,_.prototype.sha3=function(e,t){return"0x"+p(e,t)},_.prototype.fromICAP=function(e){return new i(e).address()};var x=function(){return[new g({name:"version.node",getter:"web3_clientVersion"}),new g({name:"version.network",getter:"net_version",inputFormatter:h.toDecimal}),new g({name:"version.ethereum",getter:"eth_protocolVersion",inputFormatter:h.toDecimal}),new g({name:"version.whisper",getter:"shh_version",inputFormatter:h.toDecimal})]};_.prototype.isConnected=function(){return this.currentProvider&&this.currentProvider.isConnected()},_.prototype.createBatch=function(){return new y(this)},t.exports=_},{"./utils/sha3":296,"./utils/utils":297,"./version.json":298,"./web3/batch":301,"./web3/extend":305,"./web3/httpprovider":309,"./web3/iban":310,"./web3/ipcprovider":311,"./web3/methods/db":314,"./web3/methods/eth":315,"./web3/methods/net":316,"./web3/methods/personal":317,"./web3/methods/shh":318,"./web3/methods/swarm":319,"./web3/property":322,"./web3/requestmanager":323,"./web3/settings":324,"bignumber.js":276}],300:[function(e,t,r){var n=e("../utils/sha3"),i=e("./event"),o=e("./formatters"),a=e("../utils/utils"),s=e("./filter"),c=e("./methods/watches"),u=function(e,t,r){this._requestManager=e,this._json=t,this._address=r};u.prototype.encode=function(e){e=e||{};var t={};return["fromBlock","toBlock"].filter((function(t){return void 0!==e[t]})).forEach((function(r){t[r]=o.inputBlockNumberFormatter(e[r])})),t.address=this._address,t},u.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=e.topics[0].slice(2),r=this._json.filter((function(e){return t===n(a.transformToFullName(e))}))[0];return r?new i(this._requestManager,r,this._address).decode(e):(console.warn("cannot find event for log"),e)},u.prototype.execute=function(e,t){a.isFunction(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],1===arguments.length&&(e=null));var r=this.encode(e),n=this.decode.bind(this);return new s(this._requestManager,r,c.eth(),n,t)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this);e.allEvents=t},t.exports=u},{"../utils/sha3":296,"../utils/utils":297,"./event":304,"./filter":306,"./formatters":307,"./methods/watches":320}],301:[function(e,t,r){var n=e("./jsonrpc"),i=e("./errors"),o=function(e){this.requestManager=e._requestManager,this.requests=[]};o.prototype.add=function(e){this.requests.push(e)},o.prototype.execute=function(){var e=this.requests;this.requestManager.sendBatch(e,(function(t,r){r=r||[],e.map((function(e,t){return r[t]||{}})).forEach((function(t,r){if(e[r].callback){if(!n.isValidResponse(t))return e[r].callback(i.InvalidResponse(t));e[r].callback(null,e[r].format?e[r].format(t.result):t.result)}}))}))},t.exports=o},{"./errors":303,"./jsonrpc":312}],302:[function(e,t,r){var n=e("../utils/utils"),i=e("../solidity/coder"),o=e("./event"),a=e("./function"),s=e("./allevents"),c=function(e,t){return e.filter((function(e){return"constructor"===e.type&&e.inputs.length===t.length})).map((function(e){return e.inputs.map((function(e){return e.type}))})).map((function(e){return i.encodeParams(e,t)}))[0]||""},u=function(e){e.abi.filter((function(e){return"function"===e.type})).map((function(t){return new a(e._eth,t,e.address)})).forEach((function(t){t.attachToContract(e)}))},l=function(e){var t=e.abi.filter((function(e){return"event"===e.type}));new s(e._eth._requestManager,t,e.address).attachToContract(e),t.map((function(t){return new o(e._eth._requestManager,t,e.address)})).forEach((function(t){t.attachToContract(e)}))},f=function(e,t){var r=0,n=!1,i=e._eth.filter("latest",(function(o){if(!o&&!n)if(++r>50){if(i.stopWatching((function(){})),n=!0,!t)throw new Error("Contract transaction couldn't be found after 50 blocks");t(new Error("Contract transaction couldn't be found after 50 blocks"))}else e._eth.getTransactionReceipt(e.transactionHash,(function(r,o){o&&!n&&e._eth.getCode(o.contractAddress,(function(r,a){if(!n&&a)if(i.stopWatching((function(){})),n=!0,a.length>3)e.address=o.contractAddress,u(e),l(e),t&&t(null,e);else{if(!t)throw new Error("The contract code couldn't be stored, please check your gas amount.");t(new Error("The contract code couldn't be stored, please check your gas amount."))}}))}))}))},d=function(e,t){this.eth=e,this.abi=t,this.new=function(){var e,r=new h(this.eth,this.abi),i={},o=Array.prototype.slice.call(arguments);n.isFunction(o[o.length-1])&&(e=o.pop());var a=o[o.length-1];if(n.isObject(a)&&!n.isArray(a)&&(i=o.pop()),i.value>0){var s=t.filter((function(e){return"constructor"===e.type&&e.inputs.length===o.length}))[0]||{};if(!s.payable)throw new Error("Cannot send value to non-payable constructor")}var u=c(this.abi,o);if(i.data+=u,e)this.eth.sendTransaction(i,(function(t,n){t?e(t):(r.transactionHash=n,e(null,r),f(r,e))}));else{var l=this.eth.sendTransaction(i);r.transactionHash=l,f(r)}return r},this.new.getData=this.getData.bind(this)};d.prototype.at=function(e,t){var r=new h(this.eth,this.abi,e);return u(r),l(r),t&&t(null,r),r},d.prototype.getData=function(){var e={},t=Array.prototype.slice.call(arguments),r=t[t.length-1];n.isObject(r)&&!n.isArray(r)&&(e=t.pop());var i=c(this.abi,t);return e.data+=i,e.data};var h=function(e,t,r){this._eth=e,this.transactionHash=null,this.address=r,this.abi=t};t.exports=d},{"../solidity/coder":284,"../utils/utils":297,"./allevents":300,"./event":304,"./function":308}],303:[function(e,t,r){t.exports={InvalidNumberOfParams:function(){return new Error("Invalid number of input parameters")},InvalidConnection:function(e){return new Error("CONNECTION ERROR: Couldn't connect to node "+e+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")}}},{}],304:[function(e,t,r){var n=e("../utils/utils"),i=e("../solidity/coder"),o=e("./formatters"),a=e("../utils/sha3"),s=e("./filter"),c=e("./methods/watches"),u=function(e,t,r){this._requestManager=e,this._params=t.inputs,this._name=n.transformToFullName(t),this._address=r,this._anonymous=t.anonymous};u.prototype.types=function(e){return this._params.filter((function(t){return t.indexed===e})).map((function(e){return e.type}))},u.prototype.displayName=function(){return n.extractDisplayName(this._name)},u.prototype.typeName=function(){return n.extractTypeName(this._name)},u.prototype.signature=function(){return a(this._name)},u.prototype.encode=function(e,t){e=e||{},t=t||{};var r={};["fromBlock","toBlock"].filter((function(e){return void 0!==t[e]})).forEach((function(e){r[e]=o.inputBlockNumberFormatter(t[e])})),r.topics=[],r.address=this._address,this._anonymous||r.topics.push("0x"+this.signature());var a=this._params.filter((function(e){return!0===e.indexed})).map((function(t){var r=e[t.name];return null==r?null:n.isArray(r)?r.map((function(e){return"0x"+i.encodeParam(t.type,e)})):"0x"+i.encodeParam(t.type,r)}));return r.topics=r.topics.concat(a),r},u.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=(this._anonymous?e.topics:e.topics.slice(1)).map((function(e){return e.slice(2)})).join(""),r=i.decodeParams(this.types(!0),t),n=e.data.slice(2),a=i.decodeParams(this.types(!1),n),s=o.outputLogFormatter(e);return s.event=this.displayName(),s.address=e.address,s.args=this._params.reduce((function(e,t){return e[t.name]=t.indexed?r.shift():a.shift(),e}),{}),delete s.data,delete s.topics,s},u.prototype.execute=function(e,t,r){n.isFunction(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],2===arguments.length&&(t=null),1===arguments.length&&(t=null,e={}));var i=this.encode(e,t),o=this.decode.bind(this);return new s(this._requestManager,i,c.eth(),o,r)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this),r=this.displayName();e[r]||(e[r]=t),e[r][this.typeName()]=this.execute.bind(this,e)},t.exports=u},{"../solidity/coder":284,"../utils/sha3":296,"../utils/utils":297,"./filter":306,"./formatters":307,"./methods/watches":320}],305:[function(e,t,r){var n=e("./formatters"),i=e("./../utils/utils"),o=e("./method"),a=e("./property");t.exports=function(e){var t=function(t){var r;t.property?(e[t.property]||(e[t.property]={}),r=e[t.property]):r=e,t.methods&&t.methods.forEach((function(t){t.attachToObject(r),t.setRequestManager(e._requestManager)})),t.properties&&t.properties.forEach((function(t){t.attachToObject(r),t.setRequestManager(e._requestManager)}))};return t.formatters=n,t.utils=i,t.Method=o,t.Property=a,t}},{"./../utils/utils":297,"./formatters":307,"./method":313,"./property":322}],306:[function(e,t,r){var n=e("./formatters"),i=e("../utils/utils"),o=function(e){return null==e?null:0===(e=String(e)).indexOf("0x")?e:i.fromUtf8(e)},a=function(e,t){i.isString(e.options)||e.get((function(e,r){e&&t(e),i.isArray(r)&&r.forEach((function(e){t(null,e)}))}))},s=function(e){e.requestManager.startPolling({method:e.implementation.poll.call,params:[e.filterId]},e.filterId,(function(t,r){if(t)return e.callbacks.forEach((function(e){e(t)}));i.isArray(r)&&r.forEach((function(t){t=e.formatter?e.formatter(t):t,e.callbacks.forEach((function(e){e(null,t)}))}))}),e.stopWatching.bind(e))},c=function(e,t,r,c,u,l){var f=this,d={};return r.forEach((function(t){t.setRequestManager(e),t.attachToObject(d)})),this.requestManager=e,this.options=function(e){return i.isString(e)?e:((e=e||{}).topics=e.topics||[],e.topics=e.topics.map((function(e){return i.isArray(e)?e.map(o):o(e)})),{topics:e.topics,from:e.from,to:e.to,address:e.address,fromBlock:n.inputBlockNumberFormatter(e.fromBlock),toBlock:n.inputBlockNumberFormatter(e.toBlock)})}(t),this.implementation=d,this.filterId=null,this.callbacks=[],this.getLogsCallbacks=[],this.pollFilters=[],this.formatter=c,this.implementation.newFilter(this.options,(function(e,t){if(e)f.callbacks.forEach((function(t){t(e)})),l(e);else if(f.filterId=t,f.getLogsCallbacks.forEach((function(e){f.get(e)})),f.getLogsCallbacks=[],f.callbacks.forEach((function(e){a(f,e)})),f.callbacks.length>0&&s(f),"function"==typeof u)return f.watch(u)})),this};c.prototype.watch=function(e){return this.callbacks.push(e),this.filterId&&(a(this,e),s(this)),this},c.prototype.stopWatching=function(e){if(this.requestManager.stopPolling(this.filterId),this.callbacks=[],!e)return this.implementation.uninstallFilter(this.filterId);this.implementation.uninstallFilter(this.filterId,e)},c.prototype.get=function(e){var t=this;if(!i.isFunction(e)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");return this.implementation.getLogs(this.filterId).map((function(e){return t.formatter?t.formatter(e):e}))}return null===this.filterId?this.getLogsCallbacks.push(e):this.implementation.getLogs(this.filterId,(function(r,n){r?e(r):e(null,n.map((function(e){return t.formatter?t.formatter(e):e})))})),this},t.exports=c},{"../utils/utils":297,"./formatters":307}],307:[function(e,t,r){var n=e("../utils/utils"),i=e("../utils/config"),o=e("./iban"),a=function(e){if(void 0!==e)return function(e){return"latest"===e||"pending"===e||"earliest"===e}(e)?e:n.toHex(e)},s=function(e){return null!==e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.nonce=n.toDecimal(e.nonce),e.gas=n.toDecimal(e.gas),e.gasPrice=n.toBigNumber(e.gasPrice),e.value=n.toBigNumber(e.value),e},c=function(e){return null!==e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),null!==e.logIndex&&(e.logIndex=n.toDecimal(e.logIndex)),e},u=function(e){var t=new o(e);if(t.isValid()&&t.isDirect())return"0x"+t.address();if(n.isStrictAddress(e))return e;if(n.isAddress(e))return"0x"+e;throw new Error("invalid address")};t.exports={inputDefaultBlockNumberFormatter:function(e){return void 0===e?i.defaultBlock:a(e)},inputBlockNumberFormatter:a,inputCallFormatter:function(e){return e.from=e.from||i.defaultAccount,e.from&&(e.from=u(e.from)),e.to&&(e.to=u(e.to)),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=n.fromDecimal(e[t])})),e},inputTransactionFormatter:function(e){return e.from=e.from||i.defaultAccount,e.from=u(e.from),e.to&&(e.to=u(e.to)),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=n.fromDecimal(e[t])})),e},inputAddressFormatter:u,inputPostFormatter:function(e){return e.ttl=n.fromDecimal(e.ttl),e.workToProve=n.fromDecimal(e.workToProve),e.priority=n.fromDecimal(e.priority),n.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map((function(e){return 0===e.indexOf("0x")?e:n.fromUtf8(e)})),e},outputBigNumberFormatter:function(e){return n.toBigNumber(e)},outputTransactionFormatter:s,outputTransactionReceiptFormatter:function(e){return null!==e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.cumulativeGasUsed=n.toDecimal(e.cumulativeGasUsed),e.gasUsed=n.toDecimal(e.gasUsed),n.isArray(e.logs)&&(e.logs=e.logs.map((function(e){return c(e)}))),e},outputBlockFormatter:function(e){return e.gasLimit=n.toDecimal(e.gasLimit),e.gasUsed=n.toDecimal(e.gasUsed),e.size=n.toDecimal(e.size),e.timestamp=n.toDecimal(e.timestamp),null!==e.number&&(e.number=n.toDecimal(e.number)),e.difficulty=n.toBigNumber(e.difficulty),e.totalDifficulty=n.toBigNumber(e.totalDifficulty),n.isArray(e.transactions)&&e.transactions.forEach((function(e){if(!n.isString(e))return s(e)})),e},outputLogFormatter:c,outputPostFormatter:function(e){return e.expiry=n.toDecimal(e.expiry),e.sent=n.toDecimal(e.sent),e.ttl=n.toDecimal(e.ttl),e.workProved=n.toDecimal(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map((function(e){return n.toAscii(e)})),e},outputSyncingFormatter:function(e){return e.startingBlock=n.toDecimal(e.startingBlock),e.currentBlock=n.toDecimal(e.currentBlock),e.highestBlock=n.toDecimal(e.highestBlock),e.knownStates&&(e.knownStates=n.toDecimal(e.knownStates),e.pulledStates=n.toDecimal(e.pulledStates)),e}}},{"../utils/config":295,"../utils/utils":297,"./iban":310}],308:[function(e,t,r){var n=e("../solidity/coder"),i=e("../utils/utils"),o=e("./formatters"),a=e("../utils/sha3"),s=function(e,t,r){this._eth=e,this._inputTypes=t.inputs.map((function(e){return e.type})),this._outputTypes=t.outputs.map((function(e){return e.type})),this._constant=t.constant,this._payable=t.payable,this._name=i.transformToFullName(t),this._address=r};s.prototype.extractCallback=function(e){if(i.isFunction(e[e.length-1]))return e.pop()},s.prototype.extractDefaultBlock=function(e){if(e.length>this._inputTypes.length&&!i.isObject(e[e.length-1]))return o.inputDefaultBlockNumberFormatter(e.pop())},s.prototype.toPayload=function(e){var t={};return e.length>this._inputTypes.length&&i.isObject(e[e.length-1])&&(t=e[e.length-1]),t.to=this._address,t.data="0x"+this.signature()+n.encodeParams(this._inputTypes,e),t},s.prototype.signature=function(){return a(this._name).slice(0,8)},s.prototype.unpackOutput=function(e){if(e){e=e.length>=2?e.slice(2):e;var t=n.decodeParams(this._outputTypes,e);return 1===t.length?t[0]:t}},s.prototype.call=function(){var e=Array.prototype.slice.call(arguments).filter((function(e){return void 0!==e})),t=this.extractCallback(e),r=this.extractDefaultBlock(e),n=this.toPayload(e);if(!t){var i=this._eth.call(n,r);return this.unpackOutput(i)}var o=this;this._eth.call(n,r,(function(e,r){if(e)return t(e,null);var n=null;try{n=o.unpackOutput(r)}catch(t){e=t}t(e,n)}))},s.prototype.sendTransaction=function(){var e=Array.prototype.slice.call(arguments).filter((function(e){return void 0!==e})),t=this.extractCallback(e),r=this.toPayload(e);if(r.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!t)return this._eth.sendTransaction(r);this._eth.sendTransaction(r,t)},s.prototype.estimateGas=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),r=this.toPayload(e);if(!t)return this._eth.estimateGas(r);this._eth.estimateGas(r,t)},s.prototype.getData=function(){var e=Array.prototype.slice.call(arguments),t=this.toPayload(e);return t.data},s.prototype.displayName=function(){return i.extractDisplayName(this._name)},s.prototype.typeName=function(){return i.extractTypeName(this._name)},s.prototype.request=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),r=this.toPayload(e),n=this.unpackOutput.bind(this);return{method:this._constant?"eth_call":"eth_sendTransaction",callback:t,params:[r],format:n}},s.prototype.execute=function(){var e=!this._constant;return e?this.sendTransaction.apply(this,Array.prototype.slice.call(arguments)):this.call.apply(this,Array.prototype.slice.call(arguments))},s.prototype.attachToContract=function(e){var t=this.execute.bind(this);t.request=this.request.bind(this),t.call=this.call.bind(this),t.sendTransaction=this.sendTransaction.bind(this),t.estimateGas=this.estimateGas.bind(this),t.getData=this.getData.bind(this);var r=this.displayName();e[r]||(e[r]=t),e[r][this.typeName()]=t},t.exports=s},{"../solidity/coder":284,"../utils/sha3":296,"../utils/utils":297,"./formatters":307}],309:[function(e,t,r){var n=e("./errors");"undefined"!=typeof window&&window.XMLHttpRequest?XMLHttpRequest=window.XMLHttpRequest:XMLHttpRequest=e("xmlhttprequest").XMLHttpRequest;var i=e("xhr2"),o=function(e,t){this.host=e||"http://localhost:8545",this.timeout=t||0};o.prototype.prepareRequest=function(e){var t;return e?(t=new i).timeout=this.timeout:t=new XMLHttpRequest,t.open("POST",this.host,e),t.setRequestHeader("Content-Type","application/json"),t},o.prototype.send=function(e){var t=this.prepareRequest(!1);try{t.send(JSON.stringify(e))}catch(e){throw n.InvalidConnection(this.host)}var r=t.responseText;try{r=JSON.parse(r)}catch(e){throw n.InvalidResponse(t.responseText)}return r},o.prototype.sendAsync=function(e,t){var r=this.prepareRequest(!0);r.onreadystatechange=function(){if(4===r.readyState&&1!==r.timeout){var e=r.responseText,i=null;try{e=JSON.parse(e)}catch(e){i=n.InvalidResponse(r.responseText)}t(i,e)}},r.ontimeout=function(){t(n.ConnectionTimeout(this.timeout))};try{r.send(JSON.stringify(e))}catch(e){t(n.InvalidConnection(this.host))}},o.prototype.isConnected=function(){try{return this.send({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]}),!0}catch(e){return!1}},t.exports=o},{"./errors":303,xhr2:1266,xmlhttprequest:294}],310:[function(e,t,r){var n=e("bignumber.js"),i=function(e,t){for(var r=e;r.length<2*t;)r="0"+r;return r},o=function(e){var t="A".charCodeAt(0),r="Z".charCodeAt(0);return(e=(e=e.toUpperCase()).substr(4)+e.substr(0,4)).split("").map((function(e){var n=e.charCodeAt(0);return n>=t&&n<=r?n-t+10:e})).join("")},a=function(e){for(var t,r=e;r.length>2;)t=r.slice(0,9),r=parseInt(t,10)%97+r.slice(t.length);return parseInt(r,10)%97},s=function(e){this._iban=e};s.fromAddress=function(e){var t=new n(e,16).toString(36),r=i(t,15);return s.fromBban(r.toUpperCase())},s.fromBban=function(e){var t=("0"+(98-a(o("XE00"+e)))).slice(-2);return new s("XE"+t+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(o(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.address=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new n(e,36);return i(t.toString(16),20)}return""},s.prototype.toString=function(){return this._iban},t.exports=s},{"bignumber.js":276}],311:[function(e,t,r){"use strict";var n=e("../utils/utils"),i=e("./errors"),o=function(e,t){var r=this;this.responseCallbacks={},this.path=e,this.connection=t.connect({path:this.path}),this.connection.on("error",(function(e){console.error("IPC Connection Error",e),r._timeout()})),this.connection.on("end",(function(){r._timeout()})),this.connection.on("data",(function(e){r._parseResponse(e.toString()).forEach((function(e){var t=null;n.isArray(e)?e.forEach((function(e){r.responseCallbacks[e.id]&&(t=e.id)})):t=e.id,r.responseCallbacks[t]&&(r.responseCallbacks[t](null,e),delete r.responseCallbacks[t])}))}))};o.prototype._parseResponse=function(e){var t=this,r=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var n=null;try{n=JSON.parse(e)}catch(r){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){throw t._timeout(),i.InvalidResponse(e)}),15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,n&&r.push(n)})),r},o.prototype._addResponseCallback=function(e,t){var r=e.id||e[0].id,n=e.method||e[0].method;this.responseCallbacks[r]=t,this.responseCallbacks[r].method=n},o.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](i.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},o.prototype.isConnected=function(){return this.connection.writable||this.connection.connect({path:this.path}),!!this.connection.writable},o.prototype.send=function(e){if(this.connection.writeSync){var t;this.connection.writable||this.connection.connect({path:this.path});var r=this.connection.writeSync(JSON.stringify(e));try{t=JSON.parse(r)}catch(e){throw i.InvalidResponse(r)}return t}throw new Error('You tried to send "'+e.method+'" synchronously. Synchronous requests are not supported by the IPC provider.')},o.prototype.sendAsync=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},t.exports=o},{"../utils/utils":297,"./errors":303}],312:[function(e,t,r){var n={messageId:0,toPayload:function(e,t){return e||console.error("jsonrpc method should be specified!"),n.messageId++,{jsonrpc:"2.0",id:n.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!!e&&!e.error&&"2.0"===e.jsonrpc&&"number"==typeof e.id&&void 0!==e.result}},toBatchPayload:function(e){return e.map((function(e){return n.toPayload(e.method,e.params)}))}};t.exports=n},{}],313:[function(e,t,r){var n=e("../utils/utils"),i=e("./errors"),o=function(e){this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.requestManager=null};o.prototype.setRequestManager=function(e){this.requestManager=e},o.prototype.getCall=function(e){return n.isFunction(this.call)?this.call(e):this.call},o.prototype.extractCallback=function(e){if(n.isFunction(e[e.length-1]))return e.pop()},o.prototype.validateArgs=function(e){if(e.length!==this.params)throw i.InvalidNumberOfParams()},o.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter.map((function(t,r){return t?t(e[r]):e[r]})):e},o.prototype.formatOutput=function(e){return this.outputFormatter&&e?this.outputFormatter(e):e},o.prototype.toPayload=function(e){var t=this.getCall(e),r=this.extractCallback(e),n=this.formatInput(e);return this.validateArgs(n),{method:t,params:n,callback:r}},o.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var r=this.name.split(".");r.length>1?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},o.prototype.buildCall=function(){var e=this,t=function(){var t=e.toPayload(Array.prototype.slice.call(arguments));return t.callback?e.requestManager.sendAsync(t,(function(r,n){t.callback(r,e.formatOutput(n))})):e.formatOutput(e.requestManager.send(t))};return t.request=this.request.bind(this),t},o.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},t.exports=o},{"../utils/utils":297,"./errors":303}],314:[function(e,t,r){var n=e("../method");t.exports=function(e){this._requestManager=e._requestManager;var t=this;[new n({name:"putString",call:"db_putString",params:3}),new n({name:"getString",call:"db_getString",params:2}),new n({name:"putHex",call:"db_putHex",params:3}),new n({name:"getHex",call:"db_getHex",params:2})].forEach((function(r){r.attachToObject(t),r.setRequestManager(e._requestManager)}))}},{"../method":313}],315:[function(e,t,r){"use strict";var n=e("../formatters"),i=e("../../utils/utils"),o=e("../method"),a=e("../property"),s=e("../../utils/config"),c=e("../contract"),u=e("./watches"),l=e("../filter"),f=e("../syncing"),d=e("../namereg"),h=e("../iban"),p=e("../transfer"),m=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},y=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},g=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},b=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},v=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"};function w(e){this._requestManager=e._requestManager;var t=this;_().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),x().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),this.iban=h,this.sendIBANTransaction=p.bind(null,this)}Object.defineProperty(w.prototype,"defaultBlock",{get:function(){return s.defaultBlock},set:function(e){return s.defaultBlock=e,e}}),Object.defineProperty(w.prototype,"defaultAccount",{get:function(){return s.defaultAccount},set:function(e){return s.defaultAccount=e,e}});var _=function(){var e=new o({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[n.inputAddressFormatter,n.inputDefaultBlockNumberFormatter],outputFormatter:n.outputBigNumberFormatter}),t=new o({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[null,i.toHex,n.inputDefaultBlockNumberFormatter]}),r=new o({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[n.inputAddressFormatter,n.inputDefaultBlockNumberFormatter]}),a=new o({name:"getBlock",call:m,params:2,inputFormatter:[n.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:n.outputBlockFormatter}),s=new o({name:"getUncle",call:g,params:2,inputFormatter:[n.inputBlockNumberFormatter,i.toHex],outputFormatter:n.outputBlockFormatter}),c=new o({name:"getCompilers",call:"eth_getCompilers",params:0}),u=new o({name:"getBlockTransactionCount",call:b,params:1,inputFormatter:[n.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),l=new o({name:"getBlockUncleCount",call:v,params:1,inputFormatter:[n.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),f=new o({name:"getTransaction",call:"eth_getTransactionByHash",params:1,outputFormatter:n.outputTransactionFormatter}),d=new o({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[n.inputBlockNumberFormatter,i.toHex],outputFormatter:n.outputTransactionFormatter}),h=new o({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,outputFormatter:n.outputTransactionReceiptFormatter}),p=new o({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,n.inputDefaultBlockNumberFormatter],outputFormatter:i.toDecimal}),w=new o({name:"sendRawTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),_=new o({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[n.inputTransactionFormatter]}),x=new o({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[n.inputTransactionFormatter]}),k=new o({name:"sign",call:"eth_sign",params:2,inputFormatter:[n.inputAddressFormatter,null]});return[e,t,r,a,s,c,u,l,f,d,h,p,new o({name:"call",call:"eth_call",params:2,inputFormatter:[n.inputCallFormatter,n.inputDefaultBlockNumberFormatter]}),new o({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[n.inputCallFormatter],outputFormatter:i.toDecimal}),w,x,_,k,new o({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new o({name:"compile.lll",call:"eth_compileLLL",params:1}),new o({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new o({name:"submitWork",call:"eth_submitWork",params:3}),new o({name:"getWork",call:"eth_getWork",params:0})]},x=function(){return[new a({name:"coinbase",getter:"eth_coinbase"}),new a({name:"mining",getter:"eth_mining"}),new a({name:"hashrate",getter:"eth_hashrate",outputFormatter:i.toDecimal}),new a({name:"syncing",getter:"eth_syncing",outputFormatter:n.outputSyncingFormatter}),new a({name:"gasPrice",getter:"eth_gasPrice",outputFormatter:n.outputBigNumberFormatter}),new a({name:"accounts",getter:"eth_accounts"}),new a({name:"blockNumber",getter:"eth_blockNumber",outputFormatter:i.toDecimal}),new a({name:"protocolVersion",getter:"eth_protocolVersion"})]};w.prototype.contract=function(e){return new c(this,e)},w.prototype.filter=function(e,t){return new l(this._requestManager,e,u.eth(),n.outputLogFormatter,t)},w.prototype.namereg=function(){return this.contract(d.global.abi).at(d.global.address)},w.prototype.icapNamereg=function(){return this.contract(d.icap.abi).at(d.icap.address)},w.prototype.isSyncing=function(e){return new f(this._requestManager,e)},t.exports=w},{"../../utils/config":295,"../../utils/utils":297,"../contract":302,"../filter":306,"../formatters":307,"../iban":310,"../method":313,"../namereg":321,"../property":322,"../syncing":325,"../transfer":326,"./watches":320}],316:[function(e,t,r){var n=e("../../utils/utils"),i=e("../property");t.exports=function(e){this._requestManager=e._requestManager;var t=this;[new i({name:"listening",getter:"net_listening"}),new i({name:"peerCount",getter:"net_peerCount",outputFormatter:n.toDecimal})].forEach((function(r){r.attachToObject(t),r.setRequestManager(e._requestManager)}))}},{"../../utils/utils":297,"../property":322}],317:[function(e,t,r){"use strict";var n=e("../method"),i=e("../property"),o=e("../formatters");t.exports=function(e){this._requestManager=e._requestManager;var t=this;[new n({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null]}),new n({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[o.inputAddressFormatter,null,null]}),new n({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[o.inputTransactionFormatter,null]}),new n({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[o.inputAddressFormatter]})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),[new i({name:"listAccounts",getter:"personal_listAccounts"})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))}},{"../formatters":307,"../method":313,"../property":322}],318:[function(e,t,r){var n=e("../method"),i=e("../formatters"),o=e("../filter"),a=e("./watches"),s=function(e){this._requestManager=e._requestManager;var t=this;c().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};s.prototype.filter=function(e,t){return new o(this._requestManager,e,a.shh(),i.outputPostFormatter,t)};var c=function(){return[new n({name:"post",call:"shh_post",params:1,inputFormatter:[i.inputPostFormatter]}),new n({name:"newIdentity",call:"shh_newIdentity",params:0}),new n({name:"hasIdentity",call:"shh_hasIdentity",params:1}),new n({name:"newGroup",call:"shh_newGroup",params:0}),new n({name:"addToGroup",call:"shh_addToGroup",params:0})]};t.exports=s},{"../filter":306,"../formatters":307,"../method":313,"./watches":320}],319:[function(e,t,r){"use strict";var n=e("../method"),i=e("../property");t.exports=function(e){this._requestManager=e._requestManager;var t=this;[new n({name:"blockNetworkRead",call:"bzz_blockNetworkRead",params:1,inputFormatter:[null]}),new n({name:"syncEnabled",call:"bzz_syncEnabled",params:1,inputFormatter:[null]}),new n({name:"swapEnabled",call:"bzz_swapEnabled",params:1,inputFormatter:[null]}),new n({name:"download",call:"bzz_download",params:2,inputFormatter:[null,null]}),new n({name:"upload",call:"bzz_upload",params:2,inputFormatter:[null,null]}),new n({name:"retrieve",call:"bzz_retrieve",params:1,inputFormatter:[null]}),new n({name:"store",call:"bzz_store",params:2,inputFormatter:[null,null]}),new n({name:"get",call:"bzz_get",params:1,inputFormatter:[null]}),new n({name:"put",call:"bzz_put",params:2,inputFormatter:[null,null]}),new n({name:"modify",call:"bzz_modify",params:4,inputFormatter:[null,null,null,null]})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),[new i({name:"hive",getter:"bzz_hive"}),new i({name:"info",getter:"bzz_info"})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))}},{"../method":313,"../property":322}],320:[function(e,t,r){var n=e("../method");t.exports={eth:function(){return[new n({name:"newFilter",call:function(e){switch(e[0]){case"latest":return e.shift(),this.params=0,"eth_newBlockFilter";case"pending":return e.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new n({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new n({name:"getLogs",call:"eth_getFilterLogs",params:1}),new n({name:"poll",call:"eth_getFilterChanges",params:1})]},shh:function(){return[new n({name:"newFilter",call:"shh_newFilter",params:1}),new n({name:"uninstallFilter",call:"shh_uninstallFilter",params:1}),new n({name:"getLogs",call:"shh_getMessages",params:1}),new n({name:"poll",call:"shh_getFilterChanges",params:1})]}}},{"../method":313}],321:[function(e,t,r){var n=e("../contracts/GlobalRegistrar.json"),i=e("../contracts/ICAPRegistrar.json");t.exports={global:{abi:n,address:"0xc6d9d2cd449a754c494264e1809c50e34d64562b"},icap:{abi:i,address:"0xa1a111bc074c9cfa781f0c38e63bd51c91b8af00"}}},{"../contracts/GlobalRegistrar.json":278,"../contracts/ICAPRegistrar.json":279}],322:[function(e,t,r){var n=e("../utils/utils"),i=function(e){this.name=e.name,this.getter=e.getter,this.setter=e.setter,this.outputFormatter=e.outputFormatter,this.inputFormatter=e.inputFormatter,this.requestManager=null};i.prototype.setRequestManager=function(e){this.requestManager=e},i.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter(e):e},i.prototype.formatOutput=function(e){return this.outputFormatter&&null!=e?this.outputFormatter(e):e},i.prototype.extractCallback=function(e){if(n.isFunction(e[e.length-1]))return e.pop()},i.prototype.attachToObject=function(e){var t={get:this.buildGet(),enumerable:!0},r=this.name.split("."),n=r[0];r.length>1&&(e[r[0]]=e[r[0]]||{},e=e[r[0]],n=r[1]),Object.defineProperty(e,n,t),e[o(n)]=this.buildAsyncGet()};var o=function(e){return"get"+e.charAt(0).toUpperCase()+e.slice(1)};i.prototype.buildGet=function(){var e=this;return function(){return e.formatOutput(e.requestManager.send({method:e.getter}))}},i.prototype.buildAsyncGet=function(){var e=this,t=function(t){e.requestManager.sendAsync({method:e.getter},(function(r,n){t(r,e.formatOutput(n))}))};return t.request=this.request.bind(this),t},i.prototype.request=function(){var e={method:this.getter,params:[],callback:this.extractCallback(Array.prototype.slice.call(arguments))};return e.format=this.formatOutput.bind(this),e},t.exports=i},{"../utils/utils":297}],323:[function(e,t,r){var n=e("./jsonrpc"),i=e("../utils/utils"),o=e("../utils/config"),a=e("./errors"),s=function(e){this.provider=e,this.polls={},this.timeout=null};s.prototype.send=function(e){if(!this.provider)return console.error(a.InvalidProvider()),null;var t=n.toPayload(e.method,e.params),r=this.provider.send(t);if(!n.isValidResponse(r))throw a.InvalidResponse(r);return r.result},s.prototype.sendAsync=function(e,t){if(!this.provider)return t(a.InvalidProvider());var r=n.toPayload(e.method,e.params);this.provider.sendAsync(r,(function(e,r){return e?t(e):n.isValidResponse(r)?void t(null,r.result):t(a.InvalidResponse(r))}))},s.prototype.sendBatch=function(e,t){if(!this.provider)return t(a.InvalidProvider());var r=n.toBatchPayload(e);this.provider.sendAsync(r,(function(e,r){return e?t(e):i.isArray(r)?void t(e,r):t(a.InvalidResponse(r))}))},s.prototype.setProvider=function(e){this.provider=e},s.prototype.startPolling=function(e,t,r,n){this.polls[t]={data:e,id:t,callback:r,uninstall:n},this.timeout||this.poll()},s.prototype.stopPolling=function(e){delete this.polls[e],0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.reset=function(e){for(var t in this.polls)e&&-1!==t.indexOf("syncPoll_")||(this.polls[t].uninstall(),delete this.polls[t]);0===Object.keys(this.polls).length&&this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},s.prototype.poll=function(){if(this.timeout=setTimeout(this.poll.bind(this),o.ETH_POLLING_TIMEOUT),0!==Object.keys(this.polls).length)if(this.provider){var e=[],t=[];for(var r in this.polls)e.push(this.polls[r].data),t.push(r);if(0!==e.length){var s=n.toBatchPayload(e),c={};s.forEach((function(e,r){c[e.id]=t[r]}));var u=this;this.provider.sendAsync(s,(function(e,t){if(!e){if(!i.isArray(t))throw a.InvalidResponse(t);t.map((function(e){var t=c[e.id];return!!u.polls[t]&&(e.callback=u.polls[t].callback,e)})).filter((function(e){return!!e})).filter((function(e){var t=n.isValidResponse(e);return t||e.callback(a.InvalidResponse(e)),t})).forEach((function(e){e.callback(null,e.result)}))}}))}}else console.error(a.InvalidProvider())},t.exports=s},{"../utils/config":295,"../utils/utils":297,"./errors":303,"./jsonrpc":312}],324:[function(e,t,r){t.exports=function(){this.defaultBlock="latest",this.defaultAccount=void 0}},{}],325:[function(e,t,r){var n=e("./formatters"),i=e("../utils/utils"),o=1,a=function(e,t){return this.requestManager=e,this.pollId="syncPoll_"+o++,this.callbacks=[],this.addCallback(t),this.lastSyncState=!1,function(e){e.requestManager.startPolling({method:"eth_syncing",params:[]},e.pollId,(function(t,r){if(t)return e.callbacks.forEach((function(e){e(t)}));i.isObject(r)&&r.startingBlock&&(r=n.outputSyncingFormatter(r)),e.callbacks.forEach((function(t){e.lastSyncState!==r&&(!e.lastSyncState&&i.isObject(r)&&t(null,!0),setTimeout((function(){t(null,r)}),0),e.lastSyncState=r)}))}),e.stopWatching.bind(e))}(this),this};a.prototype.addCallback=function(e){return e&&this.callbacks.push(e),this},a.prototype.stopWatching=function(){this.requestManager.stopPolling(this.pollId),this.callbacks=[]},t.exports=a},{"../utils/utils":297,"./formatters":307}],326:[function(e,t,r){var n=e("./iban"),i=e("../contracts/SmartExchange.json"),o=function(e,t,r,n,o,a){var s=i;return e.contract(s).at(r).deposit(o,{from:t,value:n},a)};t.exports=function(e,t,r,i,a){var s=new n(r);if(!s.isValid())throw new Error("invalid iban address");if(s.isDirect())return function(e,t,r,n,i){return e.sendTransaction({address:r,from:t,value:n},i)}(e,t,s.address(),i,a);if(!a){var c=e.icapNamereg().addr(s.institution());return o(e,t,c,i,s.client())}e.icapNamereg().addr(s.institution(),(function(r,n){return o(e,t,n,i,s.client(),a)}))}},{"../contracts/SmartExchange.json":280,"./iban":310}],327:[function(e,t,r){(function(e){var t;t=function(){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,r){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}var c=function(){function e(){t(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(e,[{key:"addEventListener",value:function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var r=this.listeners[e],n=0,i=r.length;n<i;n++)if(r[n]===t)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(e){var t=this;if(e.type in this.listeners){for(var r=function(r){setTimeout((function(){return r.call(t,e)}))},n=this.listeners[e.type],i=0,o=n.length;i<o;i++)r(n[i]);return!e.defaultPrevented}}}]),e}(),u=function(e){function r(){var e;return t(this,r),(e=function(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?a(e):t}(this,i(r).call(this))).listeners||c.call(a(e)),Object.defineProperty(a(e),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(e),"onabort",{value:null,writable:!0,configurable:!0}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,e),n(r,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),s(i(r.prototype),"dispatchEvent",this).call(this,e)}}]),r}(c),l=function(){function e(){t(this,e),Object.defineProperty(this,"signal",{value:new u,writable:!0,configurable:!0})}return n(e,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),e}();function f(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(l.prototype[Symbol.toStringTag]="AbortController",u.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(f(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,r=t.fetch,n=t.Request,i=void 0===n?r.Request:n,o=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!f({fetch:r,Request:i,AbortController:o,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:r,Request:c};var c=i;(c&&!c.prototype.hasOwnProperty("signal")||s)&&((c=function(e,t){var r;t&&t.signal&&(r=t.signal,delete t.signal);var n=new i(e,t);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=i.prototype);var u=r;return{fetch:function(e,t){var r=c&&c.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(e){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var i=new Promise((function(e,t){r.addEventListener("abort",(function(){return t(n)}),{once:!0})}));return t&&t.signal&&delete t.signal,Promise.race([i,u(e,t)])}return u(e,t)},Request:c}}(e),r=t.fetch,n=t.Request;e.fetch=r,e.Request=n,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:l}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:u})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:e)},"function"==typeof define&&define.amd?define(t):t()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],328:[function(e,t,r){
|
||
/*!
|
||
* accounting.js v0.4.1
|
||
* Copyright 2014 Open Exchange Rates
|
||
*
|
||
* Freely distributable under the MIT license.
|
||
* Portions of accounting.js are inspired or borrowed from underscore.js
|
||
*
|
||
* Full details and documentation:
|
||
* http://openexchangerates.github.io/accounting.js/
|
||
*/
|
||
!function(e,n){var i={version:"0.4.1",settings:{currency:{symbol:"$",format:"%s%v",decimal:".",thousand:",",precision:2,grouping:3},number:{precision:0,grouping:3,thousand:",",decimal:"."}}},o=Array.prototype.map,a=Array.isArray,s=Object.prototype.toString;function c(e){return!!(""===e||e&&e.charCodeAt&&e.substr)}function u(e){return a?a(e):"[object Array]"===s.call(e)}function l(e){return e&&"[object Object]"===s.call(e)}function f(e,t){var r;for(r in e=e||{},t=t||{})t.hasOwnProperty(r)&&null==e[r]&&(e[r]=t[r]);return e}function d(e,t,r){var n,i,a=[];if(!e)return a;if(o&&e.map===o)return e.map(t,r);for(n=0,i=e.length;n<i;n++)a[n]=t.call(r,e[n],n,e);return a}function h(e,t){return e=Math.round(Math.abs(e)),isNaN(e)?t:e}function p(e){var t=i.settings.currency.format;return"function"==typeof e&&(e=e()),c(e)&&e.match("%v")?{pos:e,neg:e.replace("-","").replace("%v","-%v"),zero:e}:e&&e.pos&&e.pos.match("%v")?e:c(t)?i.settings.currency.format={pos:t,neg:t.replace("%v","-%v"),zero:t}:t}var m,y=i.unformat=i.parse=function(e,t){if(u(e))return d(e,(function(e){return y(e,t)}));if("number"==typeof(e=e||0))return e;t=t||i.settings.number.decimal;var r=new RegExp("[^0-9-"+t+"]",["g"]),n=parseFloat((""+e).replace(/\((.*)\)/,"-$1").replace(r,"").replace(t,"."));return isNaN(n)?0:n},g=i.toFixed=function(e,t){t=h(t,i.settings.number.precision);var r=Math.pow(10,t);return(Math.round(i.unformat(e)*r)/r).toFixed(t)},b=i.formatNumber=i.format=function(e,t,r,n){if(u(e))return d(e,(function(e){return b(e,t,r,n)}));e=y(e);var o=f(l(t)?t:{precision:t,thousand:r,decimal:n},i.settings.number),a=h(o.precision),s=e<0?"-":"",c=parseInt(g(Math.abs(e||0),a),10)+"",p=c.length>3?c.length%3:0;return s+(p?c.substr(0,p)+o.thousand:"")+c.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+o.thousand)+(a?o.decimal+g(Math.abs(e),a).split(".")[1]:"")},v=i.formatMoney=function(e,t,r,n,o,a){if(u(e))return d(e,(function(e){return v(e,t,r,n,o,a)}));e=y(e);var s=f(l(t)?t:{symbol:t,precision:r,thousand:n,decimal:o,format:a},i.settings.currency),c=p(s.format);return(e>0?c.pos:e<0?c.neg:c.zero).replace("%s",s.symbol).replace("%v",b(Math.abs(e),h(s.precision),s.thousand,s.decimal))};i.formatColumn=function(e,t,r,n,o,a){if(!e)return[];var s=f(l(t)?t:{symbol:t,precision:r,thousand:n,decimal:o,format:a},i.settings.currency),m=p(s.format),g=m.pos.indexOf("%s")<m.pos.indexOf("%v"),v=0,w=d(e,(function(e,t){if(u(e))return i.formatColumn(e,s);var r=((e=y(e))>0?m.pos:e<0?m.neg:m.zero).replace("%s",s.symbol).replace("%v",b(Math.abs(e),h(s.precision),s.thousand,s.decimal));return r.length>v&&(v=r.length),r}));return d(w,(function(e,t){return c(e)&&e.length<v?g?e.replace(s.symbol,s.symbol+new Array(v-e.length+1).join(" ")):new Array(v-e.length+1).join(" ")+e:e}))},void 0!==r?(void 0!==t&&t.exports&&(r=t.exports=i),r.accounting=i):"function"==typeof define&&define.amd?define([],(function(){return i})):(i.noConflict=(m=e.accounting,function(){return e.accounting=m,i.noConflict=void 0,i}),e.accounting=i)}(this)},{}],329:[function(e,t,r){(function(r){"use strict";var n=e("object-assign");
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
|
||
* @license MIT
|
||
*/function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function o(e){return r.Buffer&&"function"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=e("util/"),s=Object.prototype.hasOwnProperty,c=Array.prototype.slice,u="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function f(e){return!o(e)&&"function"==typeof r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var d=t.exports=b,h=/\s*function\s+([^\(\s]*)\s*/;function p(e){if(a.isFunction(e)){if(u)return e.name;var t=e.toString().match(h);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function y(e){if(u||!a.isFunction(e))return a.inspect(e);var t=p(e);return"[Function"+(t?": "+t:"")+"]"}function g(e,t,r,n,i){throw new d.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function b(e,t){e||g(e,!0,t,"==",d.ok)}function v(e,t,r,n){if(e===t)return!0;if(o(e)&&o(t))return 0===i(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(f(e)&&f(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=w(e),o=w(t);if(i&&!o||!i&&o)return!1;if(i)return v(e=c.call(e),t=c.call(t),r);var s,u,l=k(e),f=k(t);if(l.length!==f.length)return!1;for(l.sort(),f.sort(),u=l.length-1;u>=0;u--)if(l[u]!==f[u])return!1;for(u=l.length-1;u>=0;u--)if(!v(e[s=l[u]],t[s],r,n))return!1;return!0}(e,t,r,n))}return r?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var o="string"==typeof n,s=!e&&i&&!r;if((!e&&a.isError(i)&&o&&_(i,r)||s)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!_(i,r)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(y(e.actual),128)+" "+e.operator+" "+m(y(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=p(t),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},a.inherits(d.AssertionError,Error),d.fail=g,d.ok=b,d.equal=function(e,t,r){e!=t&&g(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){x(!0,e,t,r)},d.doesNotThrow=function(e,t,r){x(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=n((function e(t,r){t||g(t,!0,r,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var k=Object.keys||function(e){var t=[];for(var r in e)s.call(e,r)&&t.push(r);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object-assign":897,"util/":1133}],330:[function(e,t,r){(function(e,t){"use strict";class n{constructor(e){this.tasks=[],this.count=e}sched(){if(this.count>0&&this.tasks.length>0){this.count--;let e=this.tasks.shift();if(void 0===e)throw"Unexpected undefined value in tasks list";e()}}acquire(){return new Promise((r,n)=>{this.tasks.push(()=>{var e=!1;r(()=>{e||(e=!0,this.count++,this.sched())})}),e&&e.nextTick?e.nextTick(this.sched.bind(this)):t(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(e=>(t(),e)).catch(e=>{throw t(),e}))}}r.Semaphore=n,r.Mutex=class extends n{constructor(){super(1)}}}).call(this,e("_process"),e("timers").setImmediate)},{_process:952,timers:1088}],331:[function(e,t,r){t.exports={default:e("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":337}],332:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":338}],333:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":339}],334:[function(e,t,r){t.exports={default:e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":340}],335:[function(e,t,r){t.exports={default:e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":341}],336:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=(n=e("../core-js/promise"))&&n.__esModule?n:{default:n};r.default=function(e){return function(){var t=e.apply(this,arguments);return new i.default((function(e,r){return function n(o,a){try{var s=t[o](a),c=s.value}catch(e){return void r(e)}if(!s.done)return i.default.resolve(c).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(c)}("next")}))}}},{"../core-js/promise":335}],337:[function(e,t,r){var n=e("../../modules/_core"),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(e){return i.stringify.apply(i,arguments)}},{"../../modules/_core":349}],338:[function(e,t,r){e("../../modules/es6.object.assign"),t.exports=e("../../modules/_core").Object.assign},{"../../modules/_core":349,"../../modules/es6.object.assign":409}],339:[function(e,t,r){e("../../modules/es6.object.define-property");var n=e("../../modules/_core").Object;t.exports=function(e,t,r){return n.defineProperty(e,t,r)}},{"../../modules/_core":349,"../../modules/es6.object.define-property":410}],340:[function(e,t,r){e("../../modules/es6.object.keys"),t.exports=e("../../modules/_core").Object.keys},{"../../modules/_core":349,"../../modules/es6.object.keys":411}],341:[function(e,t,r){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),e("../modules/es7.promise.finally"),e("../modules/es7.promise.try"),t.exports=e("../modules/_core").Promise},{"../modules/_core":349,"../modules/es6.object.to-string":412,"../modules/es6.promise":413,"../modules/es6.string.iterator":414,"../modules/es7.promise.finally":415,"../modules/es7.promise.try":416,"../modules/web.dom.iterable":417}],342:[function(e,t,r){t.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},{}],343:[function(e,t,r){t.exports=function(){}},{}],344:[function(e,t,r){t.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},{}],345:[function(e,t,r){var n=e("./_is-object");t.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":366}],346:[function(e,t,r){var n=e("./_to-iobject"),i=e("./_to-length"),o=e("./_to-absolute-index");t.exports=function(e){return function(t,r,a){var s,c=n(t),u=i(c.length),l=o(a,u);if(e&&r!=r){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}}},{"./_to-absolute-index":398,"./_to-iobject":400,"./_to-length":401}],347:[function(e,t,r){var n=e("./_cof"),i=e("./_wks")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},{"./_cof":348,"./_wks":406}],348:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],349:[function(e,t,r){var n=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},{}],350:[function(e,t,r){var n=e("./_a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},{"./_a-function":342}],351:[function(e,t,r){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],352:[function(e,t,r){t.exports=!e("./_fails")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},{"./_fails":356}],353:[function(e,t,r){var n=e("./_is-object"),i=e("./_global").document,o=n(i)&&n(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./_global":358,"./_is-object":366}],354:[function(e,t,r){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],355:[function(e,t,r){var n=e("./_global"),i=e("./_core"),o=e("./_ctx"),a=e("./_hide"),s=e("./_has"),c=function(e,t,r){var u,l,f,d=e&c.F,h=e&c.G,p=e&c.S,m=e&c.P,y=e&c.B,g=e&c.W,b=h?i:i[t]||(i[t]={}),v=b.prototype,w=h?n:p?n[t]:(n[t]||{}).prototype;for(u in h&&(r=t),r)(l=!d&&w&&void 0!==w[u])&&s(b,u)||(f=l?w[u]:r[u],b[u]=h&&"function"!=typeof w[u]?r[u]:y&&l?o(f,n):g&&w[u]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[u]=f,e&c.R&&v&&!v[u]&&a(v,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},{"./_core":349,"./_ctx":350,"./_global":358,"./_has":359,"./_hide":360}],356:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],357:[function(e,t,r){var n=e("./_ctx"),i=e("./_iter-call"),o=e("./_is-array-iter"),a=e("./_an-object"),s=e("./_to-length"),c=e("./core.get-iterator-method"),u={},l={};(r=t.exports=function(e,t,r,f,d){var h,p,m,y,g=d?function(){return e}:c(e),b=n(r,f,t?2:1),v=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(o(g)){for(h=s(e.length);h>v;v++)if((y=t?b(a(p=e[v])[0],p[1]):b(e[v]))===u||y===l)return y}else for(m=g.call(e);!(p=m.next()).done;)if((y=i(m,b,p.value,t))===u||y===l)return y}).BREAK=u,r.RETURN=l},{"./_an-object":345,"./_ctx":350,"./_is-array-iter":365,"./_iter-call":367,"./_to-length":401,"./core.get-iterator-method":407}],358:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],359:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],360:[function(e,t,r){var n=e("./_object-dp"),i=e("./_property-desc");t.exports=e("./_descriptors")?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},{"./_descriptors":352,"./_object-dp":378,"./_property-desc":388}],361:[function(e,t,r){var n=e("./_global").document;t.exports=n&&n.documentElement},{"./_global":358}],362:[function(e,t,r){t.exports=!e("./_descriptors")&&!e("./_fails")((function(){return 7!=Object.defineProperty(e("./_dom-create")("div"),"a",{get:function(){return 7}}).a}))},{"./_descriptors":352,"./_dom-create":353,"./_fails":356}],363:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},{}],364:[function(e,t,r){var n=e("./_cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{"./_cof":348}],365:[function(e,t,r){var n=e("./_iterators"),i=e("./_wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},{"./_iterators":372,"./_wks":406}],366:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],367:[function(e,t,r){var n=e("./_an-object");t.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},{"./_an-object":345}],368:[function(e,t,r){"use strict";var n=e("./_object-create"),i=e("./_property-desc"),o=e("./_set-to-string-tag"),a={};e("./_hide")(a,e("./_wks")("iterator"),(function(){return this})),t.exports=function(e,t,r){e.prototype=n(a,{next:i(1,r)}),o(e,t+" Iterator")}},{"./_hide":360,"./_object-create":377,"./_property-desc":388,"./_set-to-string-tag":392,"./_wks":406}],369:[function(e,t,r){"use strict";var n=e("./_library"),i=e("./_export"),o=e("./_redefine"),a=e("./_hide"),s=e("./_iterators"),c=e("./_iter-create"),u=e("./_set-to-string-tag"),l=e("./_object-gpo"),f=e("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(e,t,r,p,m,y,g){c(r,t,p);var b,v,w,_=function(e){if(!d&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",k="values"==m,S=!1,E=e.prototype,A=E[f]||E["@@iterator"]||m&&E[m],T=A||_(m),C=m?k?_("entries"):T:void 0,O="Array"==t&&E.entries||A;if(O&&(w=l(O.call(new e)))!==Object.prototype&&w.next&&(u(w,x,!0),n||"function"==typeof w[f]||a(w,f,h)),k&&A&&"values"!==A.name&&(S=!0,T=function(){return A.call(this)}),n&&!g||!d&&!S&&E[f]||a(E,f,T),s[t]=T,s[x]=h,m)if(b={values:k?T:_("values"),keys:y?T:_("keys"),entries:C},g)for(v in b)v in E||o(E,v,b[v]);else i(i.P+i.F*(d||S),t,b);return b}},{"./_export":355,"./_hide":360,"./_iter-create":368,"./_iterators":372,"./_library":373,"./_object-gpo":381,"./_redefine":390,"./_set-to-string-tag":392,"./_wks":406}],370:[function(e,t,r){var n=e("./_wks")("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},e(o)}catch(e){}return r}},{"./_wks":406}],371:[function(e,t,r){t.exports=function(e,t){return{value:t,done:!!e}}},{}],372:[function(e,t,r){t.exports={}},{}],373:[function(e,t,r){t.exports=!0},{}],374:[function(e,t,r){var n=e("./_global"),i=e("./_task").set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==e("./_cof")(a);t.exports=function(){var e,t,r,u=function(){var n,i;for(c&&(n=a.domain)&&n.exit();e;){i=e.fn,e=e.next;try{i()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var f=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),r=function(){d.data=f=!f}}return function(n){var i={fn:n,next:void 0};t&&(t.next=i),e||(e=i,r()),t=i}}},{"./_cof":348,"./_global":358,"./_task":397}],375:[function(e,t,r){"use strict";var n=e("./_a-function");function i(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)}t.exports.f=function(e){return new i(e)}},{"./_a-function":342}],376:[function(e,t,r){"use strict";var n=e("./_descriptors"),i=e("./_object-keys"),o=e("./_object-gops"),a=e("./_object-pie"),s=e("./_to-object"),c=e("./_iobject"),u=Object.assign;t.exports=!u||e("./_fails")((function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=u({},e)[r]||Object.keys(u({},t)).join("")!=n}))?function(e,t){for(var r=s(e),u=arguments.length,l=1,f=o.f,d=a.f;u>l;)for(var h,p=c(arguments[l++]),m=f?i(p).concat(f(p)):i(p),y=m.length,g=0;y>g;)h=m[g++],n&&!d.call(p,h)||(r[h]=p[h]);return r}:u},{"./_descriptors":352,"./_fails":356,"./_iobject":364,"./_object-gops":380,"./_object-keys":383,"./_object-pie":384,"./_to-object":402}],377:[function(e,t,r){var n=e("./_an-object"),i=e("./_object-dps"),o=e("./_enum-bug-keys"),a=e("./_shared-key")("IE_PROTO"),s=function(){},c=function(){var t,r=e("./_dom-create")("iframe"),n=o.length;for(r.style.display="none",e("./_html").appendChild(r),r.src="javascript:",(t=r.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[o[n]];return c()};t.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=c(),void 0===t?r:i(r,t)}},{"./_an-object":345,"./_dom-create":353,"./_enum-bug-keys":354,"./_html":361,"./_object-dps":379,"./_shared-key":393}],378:[function(e,t,r){var n=e("./_an-object"),i=e("./_ie8-dom-define"),o=e("./_to-primitive"),a=Object.defineProperty;r.f=e("./_descriptors")?Object.defineProperty:function(e,t,r){if(n(e),t=o(t,!0),n(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},{"./_an-object":345,"./_descriptors":352,"./_ie8-dom-define":362,"./_to-primitive":403}],379:[function(e,t,r){var n=e("./_object-dp"),i=e("./_an-object"),o=e("./_object-keys");t.exports=e("./_descriptors")?Object.defineProperties:function(e,t){i(e);for(var r,a=o(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},{"./_an-object":345,"./_descriptors":352,"./_object-dp":378,"./_object-keys":383}],380:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],381:[function(e,t,r){var n=e("./_has"),i=e("./_to-object"),o=e("./_shared-key")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},{"./_has":359,"./_shared-key":393,"./_to-object":402}],382:[function(e,t,r){var n=e("./_has"),i=e("./_to-iobject"),o=e("./_array-includes")(!1),a=e("./_shared-key")("IE_PROTO");t.exports=function(e,t){var r,s=i(e),c=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~o(u,r)||u.push(r));return u}},{"./_array-includes":346,"./_has":359,"./_shared-key":393,"./_to-iobject":400}],383:[function(e,t,r){var n=e("./_object-keys-internal"),i=e("./_enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"./_enum-bug-keys":354,"./_object-keys-internal":382}],384:[function(e,t,r){r.f={}.propertyIsEnumerable},{}],385:[function(e,t,r){var n=e("./_export"),i=e("./_core"),o=e("./_fails");t.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o((function(){r(1)})),"Object",a)}},{"./_core":349,"./_export":355,"./_fails":356}],386:[function(e,t,r){t.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},{}],387:[function(e,t,r){var n=e("./_an-object"),i=e("./_is-object"),o=e("./_new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},{"./_an-object":345,"./_is-object":366,"./_new-promise-capability":375}],388:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],389:[function(e,t,r){var n=e("./_hide");t.exports=function(e,t,r){for(var i in t)r&&e[i]?e[i]=t[i]:n(e,i,t[i]);return e}},{"./_hide":360}],390:[function(e,t,r){t.exports=e("./_hide")},{"./_hide":360}],391:[function(e,t,r){"use strict";var n=e("./_global"),i=e("./_core"),o=e("./_object-dp"),a=e("./_descriptors"),s=e("./_wks")("species");t.exports=function(e){var t="function"==typeof i[e]?i[e]:n[e];a&&t&&!t[s]&&o.f(t,s,{configurable:!0,get:function(){return this}})}},{"./_core":349,"./_descriptors":352,"./_global":358,"./_object-dp":378,"./_wks":406}],392:[function(e,t,r){var n=e("./_object-dp").f,i=e("./_has"),o=e("./_wks")("toStringTag");t.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},{"./_has":359,"./_object-dp":378,"./_wks":406}],393:[function(e,t,r){var n=e("./_shared")("keys"),i=e("./_uid");t.exports=function(e){return n[e]||(n[e]=i(e))}},{"./_shared":394,"./_uid":404}],394:[function(e,t,r){var n=e("./_core"),i=e("./_global"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:e("./_library")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":349,"./_global":358,"./_library":373}],395:[function(e,t,r){var n=e("./_an-object"),i=e("./_a-function"),o=e("./_wks")("species");t.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},{"./_a-function":342,"./_an-object":345,"./_wks":406}],396:[function(e,t,r){var n=e("./_to-integer"),i=e("./_defined");t.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),u=s.length;return c<0||c>=u?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},{"./_defined":351,"./_to-integer":399}],397:[function(e,t,r){var n,i,o,a=e("./_ctx"),s=e("./_invoke"),c=e("./_html"),u=e("./_dom-create"),l=e("./_global"),f=l.process,d=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,m=l.Dispatch,y=0,g={},b=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},v=function(e){b.call(e.data)};d&&h||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++y]=function(){s("function"==typeof e?e:Function(e),t)},n(y),y},h=function(e){delete g[e]},"process"==e("./_cof")(f)?n=function(e){f.nextTick(a(b,e,1))}:m&&m.now?n=function(e){m.now(a(b,e,1))}:p?(o=(i=new p).port2,i.port1.onmessage=v,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(e){l.postMessage(e+"","*")},l.addEventListener("message",v,!1)):n="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),t.exports={set:d,clear:h}},{"./_cof":348,"./_ctx":350,"./_dom-create":353,"./_global":358,"./_html":361,"./_invoke":363}],398:[function(e,t,r){var n=e("./_to-integer"),i=Math.max,o=Math.min;t.exports=function(e,t){return(e=n(e))<0?i(e+t,0):o(e,t)}},{"./_to-integer":399}],399:[function(e,t,r){var n=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},{}],400:[function(e,t,r){var n=e("./_iobject"),i=e("./_defined");t.exports=function(e){return n(i(e))}},{"./_defined":351,"./_iobject":364}],401:[function(e,t,r){var n=e("./_to-integer"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"./_to-integer":399}],402:[function(e,t,r){var n=e("./_defined");t.exports=function(e){return Object(n(e))}},{"./_defined":351}],403:[function(e,t,r){var n=e("./_is-object");t.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":366}],404:[function(e,t,r){var n=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},{}],405:[function(e,t,r){var n=e("./_global").navigator;t.exports=n&&n.userAgent||""},{"./_global":358}],406:[function(e,t,r){var n=e("./_shared")("wks"),i=e("./_uid"),o=e("./_global").Symbol,a="function"==typeof o;(t.exports=function(e){return n[e]||(n[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=n},{"./_global":358,"./_shared":394,"./_uid":404}],407:[function(e,t,r){var n=e("./_classof"),i=e("./_wks")("iterator"),o=e("./_iterators");t.exports=e("./_core").getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[n(e)]}},{"./_classof":347,"./_core":349,"./_iterators":372,"./_wks":406}],408:[function(e,t,r){"use strict";var n=e("./_add-to-unscopables"),i=e("./_iter-step"),o=e("./_iterators"),a=e("./_to-iobject");t.exports=e("./_iter-define")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./_add-to-unscopables":343,"./_iter-define":369,"./_iter-step":371,"./_iterators":372,"./_to-iobject":400}],409:[function(e,t,r){var n=e("./_export");n(n.S+n.F,"Object",{assign:e("./_object-assign")})},{"./_export":355,"./_object-assign":376}],410:[function(e,t,r){var n=e("./_export");n(n.S+n.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})},{"./_descriptors":352,"./_export":355,"./_object-dp":378}],411:[function(e,t,r){var n=e("./_to-object"),i=e("./_object-keys");e("./_object-sap")("keys",(function(){return function(e){return i(n(e))}}))},{"./_object-keys":383,"./_object-sap":385,"./_to-object":402}],412:[function(e,t,r){},{}],413:[function(e,t,r){"use strict";var n,i,o,a,s=e("./_library"),c=e("./_global"),u=e("./_ctx"),l=e("./_classof"),f=e("./_export"),d=e("./_is-object"),h=e("./_a-function"),p=e("./_an-instance"),m=e("./_for-of"),y=e("./_species-constructor"),g=e("./_task").set,b=e("./_microtask")(),v=e("./_new-promise-capability"),w=e("./_perform"),_=e("./_user-agent"),x=e("./_promise-resolve"),k=c.TypeError,S=c.process,E=S&&S.versions,A=E&&E.v8||"",T=c.Promise,C="process"==l(S),O=function(){},j=i=v.f,P=!!function(){try{var t=T.resolve(1),r=(t.constructor={})[e("./_wks")("species")]=function(e){e(O,O)};return(C||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof r&&0!==A.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},I=function(e,t){if(!e._n){e._n=!0;var r=e._c;b((function(){for(var n=e._v,i=1==e._s,o=0,a=function(t){var r,o,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(i||(2==e._h&&R(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===t.promise?u(k("Promise-chain cycle")):(o=M(r))?o.call(r,c,u):c(r)):u(n)}catch(e){l&&!a&&l.exit(),u(e)}};r.length>o;)a(r[o++]);e._c=[],e._n=!1,t&&!e._h&&N(e)}))}},N=function(e){g.call(c,(function(){var t,r,n,i=e._v,o=B(e);if(o&&(t=w((function(){C?S.emit("unhandledRejection",i,e):(r=c.onunhandledrejection)?r({promise:e,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)})),e._h=C||B(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},B=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){g.call(c,(function(){var t;C?S.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},D=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),I(t,!0))},L=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw k("Promise can't be resolved itself");(t=M(e))?b((function(){var n={_w:r,_d:!1};try{t.call(e,u(L,n,1),u(D,n,1))}catch(e){D.call(n,e)}})):(r._v=e,r._s=1,I(r,!1))}catch(e){D.call({_w:r,_d:!1},e)}}};P||(T=function(e){p(this,T,"Promise","_h"),h(e),n.call(this);try{e(u(L,this,1),u(D,this,1))}catch(e){D.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e("./_redefine-all")(T.prototype,{then:function(e,t){var r=j(y(this,T));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=C?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&I(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new n;this.promise=e,this.resolve=u(L,e,1),this.reject=u(D,e,1)},v.f=j=function(e){return e===T||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!P,{Promise:T}),e("./_set-to-string-tag")(T,"Promise"),e("./_set-species")("Promise"),a=e("./_core").Promise,f(f.S+f.F*!P,"Promise",{reject:function(e){var t=j(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!P),"Promise",{resolve:function(e){return x(s&&this===a?T:this,e)}}),f(f.S+f.F*!(P&&e("./_iter-detect")((function(e){T.all(e).catch(O)}))),"Promise",{all:function(e){var t=this,r=j(t),n=r.resolve,i=r.reject,o=w((function(){var r=[],o=0,a=1;m(e,!1,(function(e){var s=o++,c=!1;r.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,r[s]=e,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(e){var t=this,r=j(t),n=r.reject,i=w((function(){m(e,!1,(function(e){t.resolve(e).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},{"./_a-function":342,"./_an-instance":344,"./_classof":347,"./_core":349,"./_ctx":350,"./_export":355,"./_for-of":357,"./_global":358,"./_is-object":366,"./_iter-detect":370,"./_library":373,"./_microtask":374,"./_new-promise-capability":375,"./_perform":386,"./_promise-resolve":387,"./_redefine-all":389,"./_set-species":391,"./_set-to-string-tag":392,"./_species-constructor":395,"./_task":397,"./_user-agent":405,"./_wks":406}],414:[function(e,t,r){"use strict";var n=e("./_string-at")(!0);e("./_iter-define")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},{"./_iter-define":369,"./_string-at":396}],415:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_core"),o=e("./_global"),a=e("./_species-constructor"),s=e("./_promise-resolve");n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then((function(){return r}))}:e,r?function(r){return s(t,e()).then((function(){throw r}))}:e)}})},{"./_core":349,"./_export":355,"./_global":358,"./_promise-resolve":387,"./_species-constructor":395}],416:[function(e,t,r){"use strict";var n=e("./_export"),i=e("./_new-promise-capability"),o=e("./_perform");n(n.S,"Promise",{try:function(e){var t=i.f(this),r=o(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},{"./_export":355,"./_new-promise-capability":375,"./_perform":386}],417:[function(e,t,r){e("./es6.array.iterator");for(var n=e("./_global"),i=e("./_hide"),o=e("./_iterators"),a=e("./_wks")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=n[u],f=l&&l.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},{"./_global":358,"./_hide":360,"./_iterators":372,"./_wks":406,"./es6.array.iterator":408}],418:[function(e,t,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=e("./runtime"),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},{"./runtime":419}],419:[function(e,t,r){!function(e){"use strict";var r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",c="object"==typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{(u=e.regeneratorRuntime=c?t.exports:{}).wrap=m;var l={},f={};f[o]=function(){return this};var d=Object.getPrototypeOf,h=d&&d(d(A([])));h&&h!==r&&n.call(h,o)&&(f=h);var p=v.prototype=g.prototype=Object.create(f);b.prototype=p.constructor=v,v.constructor=b,v[s]=b.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(p),e},u.awrap=function(e){return{__await:e}},w(_.prototype),_.prototype[a]=function(){return this},u.AsyncIterator=_,u.async=function(e,t,r,n){var i=new _(m(e,t,r,n));return u.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(p),p[s]="Generator",p[o]=function(){return this},p.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},u.values=A,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}}}function m(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new E(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return{value:void 0,done:!0}}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===l)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=y(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(e,r,a),o}function y(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function g(){}function b(){}function v(){}function w(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function _(e){var t;this._invoke=function(r,i){function o(){return new Promise((function(t,o){!function t(r,i,o,a){var s=y(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),a)}a(s.arg)}(r,i,t,o)}))}return t=t?t.then(o,o):o()}}function x(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=y(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,l;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}}(function(){return this}()||Function("return this")())},{}],420:[function(e,t,r){arguments[4][146][0].apply(r,arguments)},{dup:146,"regenerator-runtime":418}],421:[function(e,t,r){var n=e("./lib/backoff"),i=e("./lib/strategy/exponential"),o=e("./lib/strategy/fibonacci"),a=e("./lib/function_call.js");t.exports.Backoff=n,t.exports.FunctionCall=a,t.exports.FibonacciStrategy=o,t.exports.ExponentialStrategy=i,t.exports.fibonacci=function(e){return new n(new o(e))},t.exports.exponential=function(e){return new n(new i(e))},t.exports.call=function(e,t,r){var n=Array.prototype.slice.call(arguments);return e=n[0],t=n.slice(1,n.length-1),r=n[n.length-1],new a(e,t,r)}},{"./lib/backoff":422,"./lib/function_call.js":423,"./lib/strategy/exponential":424,"./lib/strategy/fibonacci":425}],422:[function(e,t,r){var n=e("events"),i=e("precond");function o(e){n.EventEmitter.call(this),this.backoffStrategy_=e,this.maxNumberOfRetry_=-1,this.backoffNumber_=0,this.backoffDelay_=0,this.timeoutID_=-1,this.handlers={backoff:this.onBackoff_.bind(this)}}e("util").inherits(o,n.EventEmitter),o.prototype.failAfter=function(e){i.checkArgument(e>0,"Expected a maximum number of retry greater than 0 but got %s.",e),this.maxNumberOfRetry_=e},o.prototype.backoff=function(e){i.checkState(-1===this.timeoutID_,"Backoff in progress."),this.backoffNumber_===this.maxNumberOfRetry_?(this.emit("fail",e),this.reset()):(this.backoffDelay_=this.backoffStrategy_.next(),this.timeoutID_=setTimeout(this.handlers.backoff,this.backoffDelay_),this.emit("backoff",this.backoffNumber_,this.backoffDelay_,e))},o.prototype.onBackoff_=function(){this.timeoutID_=-1,this.emit("ready",this.backoffNumber_,this.backoffDelay_),this.backoffNumber_++},o.prototype.reset=function(){this.backoffNumber_=0,this.backoffStrategy_.reset(),clearTimeout(this.timeoutID_),this.timeoutID_=-1},t.exports=o},{events:476,precond:948,util:1133}],423:[function(e,t,r){var n=e("events"),i=e("precond"),o=e("util"),a=e("./backoff"),s=e("./strategy/fibonacci");function c(e,t,r){n.EventEmitter.call(this),i.checkIsFunction(e,"Expected fn to be a function."),i.checkIsArray(t,"Expected args to be an array."),i.checkIsFunction(r,"Expected callback to be a function."),this.function_=e,this.arguments_=t,this.callback_=r,this.lastResult_=[],this.numRetries_=0,this.backoff_=null,this.strategy_=null,this.failAfter_=-1,this.retryPredicate_=c.DEFAULT_RETRY_PREDICATE_,this.state_=c.State_.PENDING}o.inherits(c,n.EventEmitter),c.State_={PENDING:0,RUNNING:1,COMPLETED:2,ABORTED:3},c.DEFAULT_RETRY_PREDICATE_=function(e){return!0},c.prototype.isPending=function(){return this.state_==c.State_.PENDING},c.prototype.isRunning=function(){return this.state_==c.State_.RUNNING},c.prototype.isCompleted=function(){return this.state_==c.State_.COMPLETED},c.prototype.isAborted=function(){return this.state_==c.State_.ABORTED},c.prototype.setStrategy=function(e){return i.checkState(this.isPending(),"FunctionCall in progress."),this.strategy_=e,this},c.prototype.retryIf=function(e){return i.checkState(this.isPending(),"FunctionCall in progress."),this.retryPredicate_=e,this},c.prototype.getLastResult=function(){return this.lastResult_.concat()},c.prototype.getNumRetries=function(){return this.numRetries_},c.prototype.failAfter=function(e){return i.checkState(this.isPending(),"FunctionCall in progress."),this.failAfter_=e,this},c.prototype.abort=function(){this.isCompleted()||this.isAborted()||(this.isRunning()&&this.backoff_.reset(),this.state_=c.State_.ABORTED,this.lastResult_=[new Error("Backoff aborted.")],this.emit("abort"),this.doCallback_())},c.prototype.start=function(e){i.checkState(!this.isAborted(),"FunctionCall is aborted."),i.checkState(this.isPending(),"FunctionCall already started.");var t=this.strategy_||new s;this.backoff_=e?e(t):new a(t),this.backoff_.on("ready",this.doCall_.bind(this,!0)),this.backoff_.on("fail",this.doCallback_.bind(this)),this.backoff_.on("backoff",this.handleBackoff_.bind(this)),this.failAfter_>0&&this.backoff_.failAfter(this.failAfter_),this.state_=c.State_.RUNNING,this.doCall_(!1)},c.prototype.doCall_=function(e){e&&this.numRetries_++;var t=["call"].concat(this.arguments_);n.EventEmitter.prototype.emit.apply(this,t);var r=this.handleFunctionCallback_.bind(this);this.function_.apply(null,this.arguments_.concat(r))},c.prototype.doCallback_=function(){this.callback_.apply(null,this.lastResult_)},c.prototype.handleFunctionCallback_=function(){if(!this.isAborted()){var e=Array.prototype.slice.call(arguments);this.lastResult_=e,n.EventEmitter.prototype.emit.apply(this,["callback"].concat(e));var t=e[0];t&&this.retryPredicate_(t)?this.backoff_.backoff(t):(this.state_=c.State_.COMPLETED,this.doCallback_())}},c.prototype.handleBackoff_=function(e,t,r){this.emit("backoff",e,t,r)},t.exports=c},{"./backoff":422,"./strategy/fibonacci":425,events:476,precond:948,util:1133}],424:[function(e,t,r){var n=e("util"),i=e("precond"),o=e("./strategy");function a(e){o.call(this,e),this.backoffDelay_=0,this.nextBackoffDelay_=this.getInitialDelay(),this.factor_=a.DEFAULT_FACTOR,e&&void 0!==e.factor&&(i.checkArgument(e.factor>1,"Exponential factor should be greater than 1 but got %s.",e.factor),this.factor_=e.factor)}n.inherits(a,o),a.DEFAULT_FACTOR=2,a.prototype.next_=function(){return this.backoffDelay_=Math.min(this.nextBackoffDelay_,this.getMaxDelay()),this.nextBackoffDelay_=this.backoffDelay_*this.factor_,this.backoffDelay_},a.prototype.reset_=function(){this.backoffDelay_=0,this.nextBackoffDelay_=this.getInitialDelay()},t.exports=a},{"./strategy":426,precond:948,util:1133}],425:[function(e,t,r){var n=e("util"),i=e("./strategy");function o(e){i.call(this,e),this.backoffDelay_=0,this.nextBackoffDelay_=this.getInitialDelay()}n.inherits(o,i),o.prototype.next_=function(){var e=Math.min(this.nextBackoffDelay_,this.getMaxDelay());return this.nextBackoffDelay_+=this.backoffDelay_,this.backoffDelay_=e,e},o.prototype.reset_=function(){this.nextBackoffDelay_=this.getInitialDelay(),this.backoffDelay_=0},t.exports=o},{"./strategy":426,util:1133}],426:[function(e,t,r){function n(e){return null!=e}function i(e){if(n((e=e||{}).initialDelay)&&e.initialDelay<1)throw new Error("The initial timeout must be greater than 0.");if(n(e.maxDelay)&&e.maxDelay<1)throw new Error("The maximal timeout must be greater than 0.");if(this.initialDelay_=e.initialDelay||100,this.maxDelay_=e.maxDelay||1e4,this.maxDelay_<=this.initialDelay_)throw new Error("The maximal backoff delay must be greater than the initial backoff delay.");if(n(e.randomisationFactor)&&(e.randomisationFactor<0||e.randomisationFactor>1))throw new Error("The randomisation factor must be between 0 and 1.");this.randomisationFactor_=e.randomisationFactor||0}e("events"),e("util"),i.prototype.getMaxDelay=function(){return this.maxDelay_},i.prototype.getInitialDelay=function(){return this.initialDelay_},i.prototype.next=function(){var e=this.next_(),t=1+Math.random()*this.randomisationFactor_;return Math.round(e*t)},i.prototype.next_=function(){throw new Error("BackoffStrategy.next_() unimplemented.")},i.prototype.reset=function(){this.reset_()},i.prototype.reset_=function(){throw new Error("BackoffStrategy.reset_() unimplemented.")},t.exports=i},{events:476,util:1133}],427:[function(e,t,r){var n=e("safe-buffer").Buffer;t.exports=function(e){for(var t={},r=e.length,i=e.charAt(0),o=0;o<e.length;o++){var a=e.charAt(o);if(void 0!==t[a])throw new TypeError(a+" is ambiguous");t[a]=o}function s(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.allocUnsafe(0);for(var o=[0],a=0;a<e.length;a++){var s=t[e[a]];if(void 0===s)return;for(var c=0,u=s;c<o.length;++c)u+=o[c]*r,o[c]=255&u,u>>=8;for(;u>0;)o.push(255&u),u>>=8}for(var l=0;e[l]===i&&l<e.length-1;++l)o.push(0);return n.from(o.reverse())}return{encode:function(t){if(0===t.length)return"";for(var n=[0],o=0;o<t.length;++o){for(var a=0,s=t[o];a<n.length;++a)s+=n[a]<<8,n[a]=s%r,s=s/r|0;for(;s>0;)n.push(s%r),s=s/r|0}for(var c="",u=0;0===t[u]&&u<t.length-1;++u)c+=i;for(var l=n.length-1;l>=0;--l)c+=e[n[l]];return c},decodeUnsafe:s,decode:function(e){var t=s(e);if(t)return t;throw new Error("Non-base"+r+" character")}}}},{"safe-buffer":1037}],428:[function(e,t,r){"use strict";r.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=u(e),a=n[0],s=n[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),l=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function l(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],429:[function(e,t,r){!function(e){"use strict";var r,n=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,a=" not a boolean or binary digit",s="number type has more than 15 significant digits",c="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",u=1e14,l=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e9;function d(e){var t=0|e;return e>0||e===t?t:t-1}function h(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(r=14-(t=e[n++]+"").length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function p(e,t){var r,n,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,u=t.e;if(!a||!s)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-s:a;if(a!=s)return a;if(r=a<0,n=c==u,!i||!o)return n?0:!i^r?1:-1;if(!n)return c>u^r?1:-1;for(s=(c=i.length)<(u=o.length)?c:u,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^r?1:-1;return c==u?0:c>u^r?1:-1}function m(e,t,r){return(e=w(e))>=t&&e<=r}function y(e){return"[object Array]"==Object.prototype.toString.call(e)}function g(e,t,r){for(var n,i,o=[0],a=0,s=e.length;a<s;){for(i=o.length;i--;o[i]*=t);for(o[n=0]+=c.indexOf(e.charAt(a++));n<o.length;n++)o[n]>r-1&&(null==o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}function b(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function v(e,t){var r,n;if(t<0){for(n="0.";++t;n+="0");e=n+e}else if(++t>(r=e.length)){for(n="0",t-=r;--t;n+="0");e+=n}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}function w(e){return(e=parseFloat(e))<0?i(e):o(e)}(r=function e(t){var r,_,x,k,S,E,A,T,C=0,O=z.prototype,j=new z(1),P=20,M=4,I=-7,N=21,B=-1e7,R=1e7,D=!0,L=W,U=!1,F=1,q=0,H={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function z(e,t){var r,i,a,u,l,f,d=this;if(!(d instanceof z))return D&&$(26,"constructor call without new",e),new z(e,t);if(null!=t&&L(t,2,64,C,"base")){if(f=e+"",10==(t|=0))return J(d=new z(e instanceof z?e:f),P+d.e+1,M);if((u="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(r="["+c.slice(0,t)+"]+")+"(?:\\."+r+")?$",t<37?"i":"").test(f))return _(d,f,u,t);u?(d.s=1/e<0?(f=f.slice(1),-1):1,D&&f.replace(/^0\.0*|\./,"").length>15&&$(C,s,e),u=!1):d.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1,f=K(f,10,t,d.s)}else{if(e instanceof z)return d.s=e.s,d.e=e.e,d.c=(e=e.c)?e.slice():e,void(C=0);if((u="number"==typeof e)&&0*e==0){if(d.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,a=e;a>=10;a/=10,i++);return d.e=i,d.c=[e],void(C=0)}f=e+""}else{if(!n.test(f=e+""))return _(d,f,u);d.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1}}for((i=f.indexOf("."))>-1&&(f=f.replace(".","")),(a=f.search(/e/i))>0?(i<0&&(i=a),i+=+f.slice(a+1),f=f.substring(0,a)):i<0&&(i=f.length),a=0;48===f.charCodeAt(a);a++);for(l=f.length;48===f.charCodeAt(--l););if(f=f.slice(a,l+1))if(l=f.length,u&&D&&l>15&&(e>9007199254740991||e!==o(e))&&$(C,s,d.s*e),(i=i-a-1)>R)d.c=d.e=null;else if(i<B)d.c=[d.e=0];else{if(d.e=i,d.c=[],a=(i+1)%14,i<0&&(a+=14),a<l){for(a&&d.c.push(+f.slice(0,a)),l-=14;a<l;)d.c.push(+f.slice(a,a+=14));a=14-(f=f.slice(a)).length}else a-=l;for(;a--;f+="0");d.c.push(+f)}else d.c=[d.e=0];C=0}function K(e,t,n,i){var o,a,s,u,l,f,d,p=e.indexOf("."),m=P,y=M;for(n<37&&(e=e.toLowerCase()),p>=0&&(s=q,q=0,e=e.replace(".",""),l=(d=new z(n)).pow(e.length-p),q=s,d.c=g(v(h(l.c),l.e),10,t),d.e=d.c.length),a=s=(f=g(e,n,t)).length;0==f[--s];f.pop());if(!f[0])return"0";if(p<0?--a:(l.c=f,l.e=a,l.s=i,f=(l=r(l,d,m,y,t)).c,u=l.r,a=l.e),p=f[o=a+m+1],s=t/2,u=u||o<0||null!=f[o+1],u=y<4?(null!=p||u)&&(0==y||y==(l.s<0?3:2)):p>s||p==s&&(4==y||u||6==y&&1&f[o-1]||y==(l.s<0?8:7)),o<1||!f[0])e=u?v("1",-m):"0";else{if(f.length=o,u)for(--t;++f[--o]>t;)f[o]=0,o||(++a,f=[1].concat(f));for(s=f.length;!f[--s];);for(p=0,e="";p<=s;e+=c.charAt(f[p++]));e=v(e,a)}return e}function V(e,t,r,n){var i,o,a,s,c;if(r=null!=r&&L(r,0,8,n,"rounding mode")?0|r:M,!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=h(e.c),c=19==n||24==n&&a<=I?b(c,a):v(c,a);else if(o=(e=J(new z(e),t,r)).e,s=(c=h(e.c)).length,19==n||24==n&&(t<=o||o<=I)){for(;s<t;c+="0",s++);c=b(c,o)}else if(t-=a,c=v(c,o),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function G(e,t){var r,n,i=0;for(y(e[0])&&(e=e[0]),r=new z(e[0]);++i<e.length;){if(!(n=new z(e[i])).s){r=n;break}t.call(r,n)&&(r=n)}return r}function W(e,t,r,n,i){return(e<t||e>r||e!=w(e))&&$(n,(i||"decimal places")+(e<t||e>r?" out of range":" not an integer"),e),!0}function Y(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+14*r-1)>R?e.c=e.e=null:r<B?e.c=[e.e=0]:(e.e=r,e.c=t),e}function $(e,t,r){var n=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+r);throw n.name="BigNumber Error",C=0,n}function J(e,t,r,n){var a,s,c,f,d,h,p,m=e.c,y=l;if(m){e:{for(a=1,f=m[0];f>=10;f/=10,a++);if((s=t-a)<0)s+=14,c=t,p=(d=m[h=0])/y[a-c-1]%10|0;else if((h=i((s+1)/14))>=m.length){if(!n)break e;for(;m.length<=h;m.push(0));d=p=0,a=1,c=(s%=14)-14+1}else{for(d=f=m[h],a=1;f>=10;f/=10,a++);p=(c=(s%=14)-14+a)<0?0:d/y[a-c-1]%10|0}if(n=n||t<0||null!=m[h+1]||(c<0?d:d%y[a-c-1]),n=r<4?(p||n)&&(0==r||r==(e.s<0?3:2)):p>5||5==p&&(4==r||n||6==r&&(s>0?c>0?d/y[a-c]:0:m[h-1])%10&1||r==(e.s<0?8:7)),t<1||!m[0])return m.length=0,n?(t-=e.e+1,m[0]=y[(14-t%14)%14],e.e=-t||0):m[0]=e.e=0,e;if(0==s?(m.length=h,f=1,h--):(m.length=h+1,f=y[14-s],m[h]=c>0?o(d/y[a-c]%y[c])*f:0),n)for(;;){if(0==h){for(s=1,c=m[0];c>=10;c/=10,s++);for(c=m[0]+=f,f=1;c>=10;c/=10,f++);s!=f&&(e.e++,m[0]==u&&(m[0]=1));break}if(m[h]+=f,m[h]!=u)break;m[h--]=0,f=1}for(s=m.length;0===m[--s];m.pop());}e.e>R?e.c=e.e=null:e.e<B&&(e.c=[e.e=0])}return e}return z.another=e,z.ROUND_UP=0,z.ROUND_DOWN=1,z.ROUND_CEIL=2,z.ROUND_FLOOR=3,z.ROUND_HALF_UP=4,z.ROUND_HALF_DOWN=5,z.ROUND_HALF_EVEN=6,z.ROUND_HALF_CEIL=7,z.ROUND_HALF_FLOOR=8,z.EUCLID=9,z.config=z.set=function(){var e,t,r=0,n={},i=arguments,o=i[0],s=o&&"object"==typeof o?function(){if(o.hasOwnProperty(t))return null!=(e=o[t])}:function(){if(i.length>r)return null!=(e=i[r++])};return s(t="DECIMAL_PLACES")&&L(e,0,f,2,t)&&(P=0|e),n[t]=P,s(t="ROUNDING_MODE")&&L(e,0,8,2,t)&&(M=0|e),n[t]=M,s(t="EXPONENTIAL_AT")&&(y(e)?L(e[0],-f,0,2,t)&&L(e[1],0,f,2,t)&&(I=0|e[0],N=0|e[1]):L(e,-f,f,2,t)&&(I=-(N=0|(e<0?-e:e)))),n[t]=[I,N],s(t="RANGE")&&(y(e)?L(e[0],-f,-1,2,t)&&L(e[1],1,f,2,t)&&(B=0|e[0],R=0|e[1]):L(e,-f,f,2,t)&&(0|e?B=-(R=0|(e<0?-e:e)):D&&$(2,t+" cannot be zero",e))),n[t]=[B,R],s(t="ERRORS")&&(e===!!e||1===e||0===e?(C=0,L=(D=!!e)?W:m):D&&$(2,t+a,e)),n[t]=D,s(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?U=!0:D?$(2,"crypto unavailable",e?void 0:crypto):U=!1:U=!1:D&&$(2,t+a,e)),n[t]=U,s(t="MODULO_MODE")&&L(e,0,9,2,t)&&(F=0|e),n[t]=F,s(t="POW_PRECISION")&&L(e,0,f,2,t)&&(q=0|e),n[t]=q,s(t="FORMAT")&&("object"==typeof e?H=e:D&&$(2,t+" not an object",e)),n[t]=H,n},z.max=function(){return G(arguments,O.lt)},z.min=function(){return G(arguments,O.gt)},z.random=(x=9007199254740992*Math.random()&2097151?function(){return o(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,a,s,c=0,u=[],d=new z(j);if(e=null!=e&&L(e,0,f,14)?0|e:P,a=i(e/14),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));c<a;)(s=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(u.push(s%1e14),c+=2);c=a/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(a*=7);c<a;)(s=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(u.push(s%1e14),c+=7);c=a/7}else U=!1,D&&$(14,"crypto unavailable",crypto);if(!U)for(;c<a;)(s=x())<9e15&&(u[c++]=s%1e14);for(e%=14,(a=u[--c])&&e&&(s=l[14-e],u[c]=o(a/s)*s);0===u[c];u.pop(),c--);if(c<0)u=[n=0];else{for(n=-1;0===u[0];u.splice(0,1),n-=14);for(c=1,s=u[0];s>=10;s/=10,c++);c<14&&(n-=14-c)}return d.e=n,d.c=u,d}),r=function(){function e(e,t,r){var n,i,o,a,s=0,c=e.length,u=t%1e7,l=t/1e7|0;for(e=e.slice();c--;)s=((i=u*(o=e[c]%1e7)+(n=l*o+(a=e[c]/1e7|0)*u)%1e7*1e7+s)/r|0)+(n/1e7|0)+l*a,e[c]=i%r;return s&&(e=[s].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,a,s,c){var l,f,h,p,m,y,g,b,v,w,_,x,k,S,E,A,T,C=n.s==i.s?1:-1,O=n.c,j=i.c;if(!(O&&O[0]&&j&&j[0]))return new z(n.s&&i.s&&(O?!j||O[0]!=j[0]:j)?O&&0==O[0]||!j?0*C:C/0:NaN);for(v=(b=new z(C)).c=[],C=a+(f=n.e-i.e)+1,c||(c=u,f=d(n.e/14)-d(i.e/14),C=C/14|0),h=0;j[h]==(O[h]||0);h++);if(j[h]>(O[h]||0)&&f--,C<0)v.push(1),p=!0;else{for(S=O.length,A=j.length,h=0,C+=2,(m=o(c/(j[0]+1)))>1&&(j=e(j,m,c),O=e(O,m,c),A=j.length,S=O.length),k=A,_=(w=O.slice(0,A)).length;_<A;w[_++]=0);T=j.slice(),T=[0].concat(T),E=j[0],j[1]>=c/2&&E++;do{if(m=0,(l=t(j,w,A,_))<0){if(x=w[0],A!=_&&(x=x*c+(w[1]||0)),(m=o(x/E))>1)for(m>=c&&(m=c-1),g=(y=e(j,m,c)).length,_=w.length;1==t(y,w,g,_);)m--,r(y,A<g?T:j,g,c),g=y.length,l=1;else 0==m&&(l=m=1),g=(y=j.slice()).length;if(g<_&&(y=[0].concat(y)),r(w,y,_,c),_=w.length,-1==l)for(;t(j,w,A,_)<1;)m++,r(w,A<_?T:j,_,c),_=w.length}else 0===l&&(m++,w=[0]);v[h++]=m,w[0]?w[_++]=O[k]||0:(w=[O[k]],_=1)}while((k++<S||null!=w[0])&&C--);p=null!=w[0],v[0]||v.splice(0,1)}if(c==u){for(h=1,C=v[0];C>=10;C/=10,h++);J(b,a+(b.e=h+14*f-1)+1,s,p)}else b.e=f,b.r=+p;return b}}(),k=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,E=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,T=/^\s*\+(?=[\w.])|^\s+|\s+$/g,_=function(e,t,r,n){var i,o=r?t:t.replace(T,"");if(A.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(k,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(S,"$1").replace(E,"0.$1")),t!=o))return new z(o,i);D&&$(C,"not a"+(n?" base "+n:"")+" number",t),e.s=null}e.c=e.e=null,C=0},O.absoluteValue=O.abs=function(){var e=new z(this);return e.s<0&&(e.s=1),e},O.ceil=function(){return J(new z(this),this.e+1,2)},O.comparedTo=O.cmp=function(e,t){return C=1,p(this,new z(e,t))},O.decimalPlaces=O.dp=function(){var e,t,r=this.c;if(!r)return null;if(e=14*((t=r.length-1)-d(this.e/14)),t=r[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},O.dividedBy=O.div=function(e,t){return C=3,r(this,new z(e,t),P,M)},O.dividedToIntegerBy=O.divToInt=function(e,t){return C=4,r(this,new z(e,t),0,1)},O.equals=O.eq=function(e,t){return C=5,0===p(this,new z(e,t))},O.floor=function(){return J(new z(this),this.e+1,3)},O.greaterThan=O.gt=function(e,t){return C=6,p(this,new z(e,t))>0},O.greaterThanOrEqualTo=O.gte=function(e,t){return C=7,1===(t=p(this,new z(e,t)))||0===t},O.isFinite=function(){return!!this.c},O.isInteger=O.isInt=function(){return!!this.c&&d(this.e/14)>this.c.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isZero=function(){return!!this.c&&0==this.c[0]},O.lessThan=O.lt=function(e,t){return C=8,p(this,new z(e,t))<0},O.lessThanOrEqualTo=O.lte=function(e,t){return C=9,-1===(t=p(this,new z(e,t)))||0===t},O.minus=O.sub=function(e,t){var r,n,i,o,a=this,s=a.s;if(C=10,t=(e=new z(e,t)).s,!s||!t)return new z(NaN);if(s!=t)return e.s=-t,a.plus(e);var c=a.e/14,l=e.e/14,f=a.c,h=e.c;if(!c||!l){if(!f||!h)return f?(e.s=-t,e):new z(h?a:NaN);if(!f[0]||!h[0])return h[0]?(e.s=-t,e):new z(f[0]?a:3==M?-0:0)}if(c=d(c),l=d(l),f=f.slice(),s=c-l){for((o=s<0)?(s=-s,i=f):(l=c,i=h),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(n=(o=(s=f.length)<(t=h.length))?s:t,s=t=0;t<n;t++)if(f[t]!=h[t]){o=f[t]<h[t];break}if(o&&(i=f,f=h,h=i,e.s=-e.s),(t=(n=h.length)-(r=f.length))>0)for(;t--;f[r++]=0);for(t=u-1;n>s;){if(f[--n]<h[n]){for(r=n;r&&!f[--r];f[r]=t);--f[r],f[n]+=u}f[n]-=h[n]}for(;0==f[0];f.splice(0,1),--l);return f[0]?Y(e,f,l):(e.s=3==M?-1:1,e.c=[e.e=0],e)},O.modulo=O.mod=function(e,t){var n,i,o=this;return C=11,e=new z(e,t),!o.c||!e.s||e.c&&!e.c[0]?new z(NaN):!e.c||o.c&&!o.c[0]?new z(o):(9==F?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,F),o.minus(n.times(e)))},O.negated=O.neg=function(){var e=new z(this);return e.s=-e.s||null,e},O.plus=O.add=function(e,t){var r,n=this,i=n.s;if(C=12,t=(e=new z(e,t)).s,!i||!t)return new z(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/14,a=e.e/14,s=n.c,c=e.c;if(!o||!a){if(!s||!c)return new z(i/0);if(!s[0]||!c[0])return c[0]?e:new z(s[0]?n:0*i)}if(o=d(o),a=d(a),s=s.slice(),i=o-a){for(i>0?(a=o,r=c):(i=-i,r=s),r.reverse();i--;r.push(0));r.reverse()}for((i=s.length)-(t=c.length)<0&&(r=c,c=s,s=r,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/u|0,s[t]=u===s[t]?0:s[t]%u;return i&&(s=[i].concat(s),++a),Y(e,s,a)},O.precision=O.sd=function(e){var t,r,n=this,i=n.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(D&&$(13,"argument"+a,e),e!=!!e&&(e=null)),!i)return null;if(t=14*(r=i.length-1)+1,r=i[r]){for(;r%10==0;r/=10,t--);for(r=i[0];r>=10;r/=10,t++);}return e&&n.e+1>t&&(t=n.e+1),t},O.round=function(e,t){var r=new z(this);return(null==e||L(e,0,f,15))&&J(r,~~e+this.e+1,null!=t&&L(t,0,8,15,"rounding mode")?0|t:M),r},O.shift=function(e){var t=this;return L(e,-9007199254740991,9007199254740991,16,"argument")?t.times("1e"+w(e)):new z(t.c&&t.c[0]&&(e<-9007199254740991||e>9007199254740991)?t.s*(e<0?0:1/0):t)},O.squareRoot=O.sqrt=function(){var e,t,n,i,o,a=this,s=a.c,c=a.s,u=a.e,l=P+4,f=new z("0.5");if(1!==c||!s||!s[0])return new z(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(c=Math.sqrt(+a))||c==1/0?(((t=h(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(t),u=d((u+1)/2)-(u<0||u%2),n=new z(t=c==1/0?"1e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):n=new z(c+""),n.c[0])for((c=(u=n.e)+l)<3&&(c=0);;)if(o=n,n=f.times(o.plus(r(a,o,l,1))),h(o.c).slice(0,c)===(t=h(n.c)).slice(0,c)){if(n.e<u&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(J(n,n.e+P+2,1),e=!n.times(n).eq(a));break}if(!i&&(J(o,o.e+P+2,0),o.times(o).eq(a))){n=o;break}l+=4,c+=4,i=1}return J(n,n.e+P+1,M,e)},O.times=O.mul=function(e,t){var r,n,i,o,a,s,c,l,f,h,p,m,y,g,b=this,v=b.c,w=(C=17,e=new z(e,t)).c;if(!(v&&w&&v[0]&&w[0]))return!b.s||!e.s||v&&!v[0]&&!w||w&&!w[0]&&!v?e.c=e.e=e.s=null:(e.s*=b.s,v&&w?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=d(b.e/14)+d(e.e/14),e.s*=b.s,(c=v.length)<(h=w.length)&&(y=v,v=w,w=y,i=c,c=h,h=i),i=c+h,y=[];i--;y.push(0));for(g=u,i=h;--i>=0;){for(r=0,p=w[i]%1e7,m=w[i]/1e7|0,o=i+(a=c);o>i;)r=((l=p*(l=v[--a]%1e7)+(s=m*l+(f=v[a]/1e7|0)*p)%1e7*1e7+y[o]+r)/g|0)+(s/1e7|0)+m*f,y[o--]=l%g;y[o]=r}return r?++n:y.splice(0,1),Y(e,y,n)},O.toDigits=function(e,t){var r=new z(this);return e=null!=e&&L(e,1,f,18,"precision")?0|e:null,t=null!=t&&L(t,0,8,18,"rounding mode")?0|t:M,e?J(r,e,t):r},O.toExponential=function(e,t){return V(this,null!=e&&L(e,0,f,19)?1+~~e:null,t,19)},O.toFixed=function(e,t){return V(this,null!=e&&L(e,0,f,20)?~~e+this.e+1:null,t,20)},O.toFormat=function(e,t){var r=V(this,null!=e&&L(e,0,f,21)?~~e+this.e+1:null,t,21);if(this.c){var n,i=r.split("."),o=+H.groupSize,a=+H.secondaryGroupSize,s=H.groupSeparator,c=i[0],u=i[1],l=this.s<0,d=l?c.slice(1):c,h=d.length;if(a&&(n=o,o=a,a=n,h-=n),o>0&&h>0){for(n=h%o||o,c=d.substr(0,n);n<h;n+=o)c+=s+d.substr(n,o);a>0&&(c+=s+d.slice(n)),l&&(c="-"+c)}r=u?c+H.decimalSeparator+((a=+H.fractionGroupSize)?u.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+H.fractionGroupSeparator):u):c}return r},O.toFraction=function(e){var t,n,i,o,a,s,c,u,f,d=D,p=this,m=p.c,y=new z(j),g=n=new z(j),b=c=new z(j);if(null!=e&&(D=!1,s=new z(e),D=d,(d=s.isInt())&&!s.lt(j)||(D&&$(22,"max denominator "+(d?"out of range":"not an integer"),e),e=!d&&s.c&&J(s,s.e+1,1).gte(j)?s:null)),!m)return p.toString();for(f=h(m),o=y.e=f.length-p.e-1,y.c[0]=l[(a=o%14)<0?14+a:a],e=!e||s.cmp(y)>0?o>0?y:g:s,a=R,R=1/0,s=new z(f),c.c[0]=0;u=r(s,y,0,1),1!=(i=n.plus(u.times(b))).cmp(e);)n=b,b=i,g=c.plus(u.times(i=g)),c=i,y=s.minus(u.times(i=y)),s=i;return i=r(e.minus(n),b,0,1),c=c.plus(i.times(g)),n=n.plus(i.times(b)),c.s=g.s=p.s,t=r(g,b,o*=2,M).minus(p).abs().cmp(r(c,n,o,M).minus(p).abs())<1?[g.toString(),b.toString()]:[c.toString(),n.toString()],R=a,t},O.toNumber=function(){return+this},O.toPower=O.pow=function(e,t){var r,n,a,s=o(e<0?-e:+e),c=this;if(null!=t&&(C=23,t=new z(t)),!L(e,-9007199254740991,9007199254740991,23,"exponent")&&(!isFinite(e)||s>9007199254740991&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+c,e),new z(t?r%t:r);for(t?e>1&&c.gt(j)&&c.isInt()&&t.gt(j)&&t.isInt()?c=c.mod(t):(a=t,t=null):q&&(r=i(q/14+2)),n=new z(j);;){if(s%2){if(!(n=n.times(c)).c)break;r?n.c.length>r&&(n.c.length=r):t&&(n=n.mod(t))}if(!(s=o(s/2)))break;c=c.times(c),r?c.c&&c.c.length>r&&(c.c.length=r):t&&(c=c.mod(t))}return t?n:(e<0&&(n=j.div(n)),a?n.mod(a):r?J(n,q,M):n)},O.toPrecision=function(e,t){return V(this,null!=e&&L(e,1,f,24,"precision")?0|e:null,t,24)},O.toString=function(e){var t,r=this,n=r.s,i=r.e;return null===i?n?(t="Infinity",n<0&&(t="-"+t)):t="NaN":(t=h(r.c),t=null!=e&&L(e,2,64,25,"base")?K(v(t,i),0|e,10,n):i<=I||i>=N?b(t,i):v(t,i),n<0&&r.c[0]&&(t="-"+t)),t},O.truncated=O.trunc=function(){return J(new z(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var e,t=this,r=t.e;return null===r?t.toString():(e=h(t.c),e=r<=I||r>=N?b(e,r):v(e,r),t.s<0?"-"+e:e)},O.isBigNumber=!0,null!=t&&z.config(t),z}()).default=r.BigNumber=r,"function"==typeof define&&define.amd?define((function(){return r})):void 0!==t&&t.exports?t.exports=r:(e||(e="undefined"!=typeof self?self:Function("return this")()),e.BigNumber=r)}(this)},{}],430:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("create-hash"),o=e("pbkdf2").pbkdf2Sync,a=e("randombytes"),s=e("unorm"),c=e("./wordlists/chinese_simplified.json"),u=e("./wordlists/chinese_traditional.json"),l=e("./wordlists/english.json"),f=e("./wordlists/french.json"),d=e("./wordlists/italian.json"),h=e("./wordlists/japanese.json"),p=e("./wordlists/spanish.json"),m=l;function y(e,t,r){for(;e.length<r;)e=t+e;return e}function g(e){return parseInt(e,2)}function b(e){return e.map((function(e){return y(e.toString(2),"0",8)})).join("")}function v(e){var t=8*e.length/32,r=i("sha256").update(e).digest();return b([].slice.call(r)).slice(0,t)}function w(e,t){var r=n.from(s.nfkd(e),"utf8"),i=n.from(function(e){return"mnemonic"+(e||"")}(s.nfkd(t)),"utf8");return o(r,i,2048,64,"sha512")}function _(e,t){t=t||m;var r=s.nfkd(e).split(" ");if(r.length%3!=0)throw new Error("Invalid mnemonic");var i=r.map((function(e){var r=t.indexOf(e);if(-1===r)throw new Error("Invalid mnemonic");return y(r.toString(2),"0",11)})).join(""),o=32*Math.floor(i.length/33),a=i.slice(0,o),c=i.slice(o),u=a.match(/(.{1,8})/g).map(g);if(u.length<16)throw new Error("Invalid entropy");if(u.length>32)throw new Error("Invalid entropy");if(u.length%4!=0)throw new Error("Invalid entropy");var l=n.from(u);if(v(l)!==c)throw new Error("Invalid mnemonic checksum");return l.toString("hex")}function x(e,t){if(t=t||m,e.length<32)throw new TypeError("Invalid entropy");if(e.length>64)throw new TypeError("Invalid entropy");if(e.length%8!=0)throw new TypeError("Invalid entropy");var r=n.from(e,"hex"),i=(b([].slice.call(r))+v(r)).match(/(.{1,11})/g).map((function(e){var r=g(e);return t[r]}));return t===h?i.join(" "):i.join(" ")}t.exports={mnemonicToSeed:w,mnemonicToSeedHex:function(e,t){return w(e,t).toString("hex")},mnemonicToEntropy:_,entropyToMnemonic:x,generateMnemonic:function(e,t,r){if((e=e||128)%32!=0)throw new TypeError("Invalid entropy");return x((t=t||a)(e/8).toString("hex"),r)},validateMnemonic:function(e,t){try{_(e,t)}catch(e){return!1}return!0},wordlists:{EN:l,JA:h,chinese_simplified:c,chinese_traditional:u,english:l,french:f,italian:d,japanese:h,spanish:p}}},{"./wordlists/chinese_simplified.json":431,"./wordlists/chinese_traditional.json":432,"./wordlists/english.json":433,"./wordlists/french.json":434,"./wordlists/italian.json":435,"./wordlists/japanese.json":436,"./wordlists/spanish.json":437,"create-hash":501,pbkdf2:941,randombytes:964,"safe-buffer":1037,unorm:1126}],431:[function(e,t,r){t.exports=["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]},{}],432:[function(e,t,r){t.exports=["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]},{}],433:[function(e,t,r){t.exports=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]},{}],434:[function(e,t,r){t.exports=["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]},{}],435:[function(e,t,r){t.exports=["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]},{}],436:[function(e,t,r){t.exports=["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]},{}],437:[function(e,t,r){t.exports=["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]},{}],438:[function(e,t,r){var n=e("safe-buffer").Buffer;t.exports={check:function(e){if(e.length<8)return!1;if(e.length>72)return!1;if(48!==e[0])return!1;if(e[1]!==e.length-2)return!1;if(2!==e[2])return!1;var t=e[3];if(0===t)return!1;if(5+t>=e.length)return!1;if(2!==e[4+t])return!1;var r=e[5+t];return!(0===r||6+t+r!==e.length||128&e[4]||t>1&&0===e[4]&&!(128&e[5])||128&e[t+6]||r>1&&0===e[t+6]&&!(128&e[t+7]))},decode:function(e){if(e.length<8)throw new Error("DER sequence length is too short");if(e.length>72)throw new Error("DER sequence length is too long");if(48!==e[0])throw new Error("Expected DER sequence");if(e[1]!==e.length-2)throw new Error("DER sequence length is invalid");if(2!==e[2])throw new Error("Expected DER integer");var t=e[3];if(0===t)throw new Error("R length is zero");if(5+t>=e.length)throw new Error("R length is too long");if(2!==e[4+t])throw new Error("Expected DER integer (2)");var r=e[5+t];if(0===r)throw new Error("S length is zero");if(6+t+r!==e.length)throw new Error("S length is invalid");if(128&e[4])throw new Error("R value is negative");if(t>1&&0===e[4]&&!(128&e[5]))throw new Error("R value excessively padded");if(128&e[t+6])throw new Error("S value is negative");if(r>1&&0===e[t+6]&&!(128&e[t+7]))throw new Error("S value excessively padded");return{r:e.slice(4,4+t),s:e.slice(6+t)}},encode:function(e,t){var r=e.length,i=t.length;if(0===r)throw new Error("R length is zero");if(0===i)throw new Error("S length is zero");if(r>33)throw new Error("R length is too long");if(i>33)throw new Error("S length is too long");if(128&e[0])throw new Error("R value is negative");if(128&t[0])throw new Error("S value is negative");if(r>1&&0===e[0]&&!(128&e[1]))throw new Error("R value excessively padded");if(i>1&&0===t[0]&&!(128&t[1]))throw new Error("S value excessively padded");var o=n.allocUnsafe(6+r+i);return o[0]=48,o[1]=o.length-2,o[2]=2,o[3]=e.length,e.copy(o,4),o[4+r]=2,o[5+r]=t.length,t.copy(o,6+r),o}}},{"safe-buffer":1037}],439:[function(e,t,r){!function(t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof t?t.exports=o:r.BN=o,o.BN=o,o.wordSize=26;try{a=e("buffer").Buffer}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;r>=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,l=r;l<s;l+=n)u=c(e,l,l+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","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"],l=[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],f=[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];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u<n;u++){for(var l=c>>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}r.words[u]=0|f,c=0|l}return 0!==c?r.words[u]=0|c:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);r=0!=(o=s>>>24-i&16777215)||a!==this.length-1?u[6-c.length]+c+r:c+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?m+r:u[d-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,u=new e(o),l=this.clone();if(c){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[s]=a;for(;s<o;s++)u[s]=0}else{for(s=0;s<o-i;s++)u[s]=0;for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),u[o-s-1]=a}return u},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,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},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,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},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,r){var n,i,o,a=e.words,s=t.words,c=r.words,u=0,l=0|a[0],f=8191&l,d=l>>>13,h=0|a[1],p=8191&h,m=h>>>13,y=0|a[2],g=8191&y,b=y>>>13,v=0|a[3],w=8191&v,_=v>>>13,x=0|a[4],k=8191&x,S=x>>>13,E=0|a[5],A=8191&E,T=E>>>13,C=0|a[6],O=8191&C,j=C>>>13,P=0|a[7],M=8191&P,I=P>>>13,N=0|a[8],B=8191&N,R=N>>>13,D=0|a[9],L=8191&D,U=D>>>13,F=0|s[0],q=8191&F,H=F>>>13,z=0|s[1],K=8191&z,V=z>>>13,G=0|s[2],W=8191&G,Y=G>>>13,$=0|s[3],J=8191&$,Q=$>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,me=he>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(u+(n=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,H))+Math.imul(d,q)|0))<<13)|0;u=((o=Math.imul(d,H))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,q),i=(i=Math.imul(p,H))+Math.imul(m,q)|0,o=Math.imul(m,H);var ge=(u+(n=n+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,K)|0))<<13)|0;u=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,q),i=(i=Math.imul(g,H))+Math.imul(b,q)|0,o=Math.imul(b,H),n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,V)|0;var be=(u+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,W)|0))<<13)|0;u=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),i=(i=Math.imul(w,H))+Math.imul(_,q)|0,o=Math.imul(_,H),n=n+Math.imul(g,K)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,V)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0;var ve=(u+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(d,J)|0))<<13)|0;u=((o=o+Math.imul(d,Q)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(k,q),i=(i=Math.imul(k,H))+Math.imul(S,q)|0,o=Math.imul(S,H),n=n+Math.imul(w,K)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,W)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Q)|0;var we=(u+(n=n+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(A,q),i=(i=Math.imul(A,H))+Math.imul(T,q)|0,o=Math.imul(T,H),n=n+Math.imul(k,K)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(S,K)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(g,J)|0,i=(i=i+Math.imul(g,Q)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,Q)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(u+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(d,re)|0))<<13)|0;u=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(O,q),i=(i=Math.imul(O,H))+Math.imul(j,q)|0,o=Math.imul(j,H),n=n+Math.imul(A,K)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Q)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(u+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(M,q),i=(i=Math.imul(M,H))+Math.imul(I,q)|0,o=Math.imul(I,H),n=n+Math.imul(O,K)|0,i=(i=i+Math.imul(O,V)|0)+Math.imul(j,K)|0,o=o+Math.imul(j,V)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,Y)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Q)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(u+(n=n+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,H))+Math.imul(R,q)|0,o=Math.imul(R,H),n=n+Math.imul(M,K)|0,i=(i=i+Math.imul(M,V)|0)+Math.imul(I,K)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(O,W)|0,i=(i=i+Math.imul(O,Y)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,Q)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Q)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0;var Se=(u+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(L,q),i=(i=Math.imul(L,H))+Math.imul(U,q)|0,o=Math.imul(U,H),n=n+Math.imul(B,K)|0,i=(i=i+Math.imul(B,V)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,V)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(O,J)|0,i=(i=i+Math.imul(O,Q)|0)+Math.imul(j,J)|0,o=o+Math.imul(j,Q)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(S,re)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(g,ce)|0,i=(i=i+Math.imul(g,ue)|0)+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Ee=(u+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(L,K),i=(i=Math.imul(L,V))+Math.imul(U,K)|0,o=Math.imul(U,V),n=n+Math.imul(B,W)|0,i=(i=i+Math.imul(B,Y)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,Y)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Q)|0,n=n+Math.imul(O,X)|0,i=(i=i+Math.imul(O,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,ue)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,ue)|0,n=n+Math.imul(g,fe)|0,i=(i=i+Math.imul(g,de)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,de)|0;var Ae=(u+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,W),i=(i=Math.imul(L,Y))+Math.imul(U,W)|0,o=Math.imul(U,Y),n=n+Math.imul(B,J)|0,i=(i=i+Math.imul(B,Q)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(O,re)|0,i=(i=i+Math.imul(O,ne)|0)+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,ue)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,ue)|0,n=n+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(u+(n=n+Math.imul(g,pe)|0)|0)+((8191&(i=(i=i+Math.imul(g,me)|0)+Math.imul(b,pe)|0))<<13)|0;u=((o=o+Math.imul(b,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,J),i=(i=Math.imul(L,Q))+Math.imul(U,J)|0,o=Math.imul(U,Q),n=n+Math.imul(B,X)|0,i=(i=i+Math.imul(B,ee)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(O,oe)|0,i=(i=i+Math.imul(O,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(A,ce)|0,i=(i=i+Math.imul(A,ue)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,ue)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ce=(u+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;u=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),n=n+Math.imul(B,re)|0,i=(i=i+Math.imul(B,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(O,ce)|0,i=(i=i+Math.imul(O,ue)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,ue)|0,n=n+Math.imul(A,fe)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Oe=(u+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(S,pe)|0))<<13)|0;u=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(L,re),i=(i=Math.imul(L,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(B,oe)|0,i=(i=i+Math.imul(B,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,ue)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,ue)|0,n=n+Math.imul(O,fe)|0,i=(i=i+Math.imul(O,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var je=(u+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),n=n+Math.imul(B,ce)|0,i=(i=i+Math.imul(B,ue)|0)+Math.imul(R,ce)|0,o=o+Math.imul(R,ue)|0,n=n+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Pe=(u+(n=n+Math.imul(O,pe)|0)|0)+((8191&(i=(i=i+Math.imul(O,me)|0)+Math.imul(j,pe)|0))<<13)|0;u=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(L,ce),i=(i=Math.imul(L,ue))+Math.imul(U,ce)|0,o=Math.imul(U,ue),n=n+Math.imul(B,fe)|0,i=(i=i+Math.imul(B,de)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,de)|0;var Me=(u+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,pe)|0))<<13)|0;u=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var Ie=(u+(n=n+Math.imul(B,pe)|0)|0)+((8191&(i=(i=i+Math.imul(B,me)|0)+Math.imul(R,pe)|0))<<13)|0;u=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var Ne=(u+(n=Math.imul(L,pe))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,pe)|0))<<13)|0;return u=((o=Math.imul(U,me))+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=ge,c[2]=be,c[3]=ve,c[4]=we,c[5]=_e,c[6]=xe,c[7]=ke,c[8]=Se,c[9]=Ee,c[10]=Ae,c[11]=Te,c[12]=Ce,c[13]=Oe,c[14]=je,c[15]=Pe,c[16]=Me,c[17]=Ie,c[18]=Ne,0!==u&&(c[19]=u,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(h=d),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var l=o-u,f=(0|e.words[l])*(0|t.words[u]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=c,d=u,h=0;h<a;h++){var p=r[l+h],m=n[l+h],y=r[l+h+a],g=n[l+h+a],b=f*y-d*g;g=f*g+d*y,y=b,r[l+h]=p+y,n[l+h]=m+g,r[l+h+a]=p-y,n[l+h+a]=m-g,h!==s&&(b=c*f-u*d,d=c*d+u*f,f=b)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),c=new Array(n),u=new Array(n),l=new Array(n),f=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,u,n),this.transform(a,o,s,c,n,i),this.transform(u,o,l,f,n,i);for(var h=0;h<n;h++){var p=s[h]*l[h]-c[h]*f[h];c[h]=s[h]*f[h]+c[h]*l[h],s[h]=p}return this.conjugate(s,c,n),this.transform(s,c,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),p(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<r;this.words[t]=c|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=r;if(i-=a,i=Math.max(0,i),c){for(var u=0;u<a;u++)c.words[u]=this.words[u];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&s}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)s=(o=(0|this.words[i+r])+s)>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1];0!=(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,c=n.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var l=n.clone()._ishlnsubmul(i,1,c);0===l.negative&&(n=l,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),n._ishlnsubmul(i,d,f);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(l),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0==(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(b,g),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,g),i(w,g),i(_,g),_.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return y[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var m=h,y=0;0!==m.cmp(s);y++)m=m.redSqr();n(y<p);var g=this.pow(f,new o(1).iushln(p-y-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=y}return d},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),n=t.length-1;n>=0;n--){for(var u=t.words[n],l=c-1;l>=0;l--){var f=u>>l&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4==++s||0===n&&0===l)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}c=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)},{buffer:442}],440:[function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},{crypto:442}],441:[function(e,t,r){(function(r){var n=e("browserify-unibabel");function i(e,t){var i=JSON.stringify(t),o=n.utf8ToBuffer(i),a=r.crypto.getRandomValues(new Uint8Array(16));return r.crypto.subtle.encrypt({name:"AES-GCM",iv:a},e,o).then((function(e){var t=new Uint8Array(e),r=n.bufferToBase64(a);return{data:n.bufferToBase64(t),iv:r}}))}function o(e,t){const r=n.base64ToBuffer(t.data),i=n.base64ToBuffer(t.iv);return crypto.subtle.decrypt({name:"AES-GCM",iv:i},e,r).then((function(e){const t=new Uint8Array(e),r=n.bufferToUtf8(t);return JSON.parse(r)})).catch((function(e){throw new Error("Incorrect password")}))}function a(e,t){var i=n.utf8ToBuffer(e),o=n.base64ToBuffer(t);return r.crypto.subtle.importKey("raw",i,{name:"PBKDF2"},!1,["deriveBits","deriveKey"]).then((function(e){return r.crypto.subtle.deriveKey({name:"PBKDF2",salt:o,iterations:1e4,hash:"SHA-256"},e,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}))}function s(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function c(e=32){var t=new Uint8Array(e);return r.crypto.getRandomValues(t),btoa(String.fromCharCode.apply(null,t))}t.exports={encrypt:function(e,t){var r=c();return a(e,r).then((function(e){return i(e,t)})).then((function(e){return e.salt=r,JSON.stringify(e)}))},decrypt:function(e,t){const r=JSON.parse(t);return a(e,r.salt).then((function(e){return o(e,r)}))},keyFromPassword:a,encryptWithKey:i,decryptWithKey:o,serializeBufferForStorage:function(e){for(var t="0x",r=e.length||e.byteLength,n=0;n<r;n++)t+=s(e[n]);return t},serializeBufferFromStorage:function(e){for(var t="0x"===e.slice(0,2)?e.slice(2):e,r=new Uint8Array(t.length/2),n=0;n<t.length;n+=2){var i=t.substr(n,2);r[n/2]=parseInt(i,16)}return r},generateSalt:c}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"browserify-unibabel":474}],442:[function(e,t,r){arguments[4][412][0].apply(r,arguments)},{dup:412}],443:[function(e,t,r){var n=e("evp_bytestokey"),i=e("browserify-aes/browser"),o=e("browserify-des"),a=e("browserify-des/modes"),s=e("browserify-aes/modes");function c(e,t,r){if(e=e.toLowerCase(),s[e])return i.createCipheriv(e,t,r);if(a[e])return new o({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function u(e,t,r){if(e=e.toLowerCase(),s[e])return i.createDecipheriv(e,t,r);if(a[e])return new o({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,i=a[e].iv}var o=n(t,!1,r,i);return c(e,o.key,o.iv)},r.createCipheriv=r.Cipheriv=c,r.createDecipher=r.Decipher=function(e,t){var r,i;if(e=e.toLowerCase(),s[e])r=s[e].key,i=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,i=a[e].iv}var o=n(t,!1,r,i);return u(e,o.key,o.iv)},r.createDecipheriv=r.Decipheriv=u,r.listCiphers=r.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},{"browserify-aes/browser":446,"browserify-aes/modes":457,"browserify-des":461,"browserify-des/modes":462,evp_bytestokey:761}],444:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,c,u=r[0],l=r[1],f=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],y=e[3]^t[3],g=4,b=1;b<i;b++)o=u[h>>>24]^l[p>>>16&255]^f[m>>>8&255]^d[255&y]^t[g++],a=u[p>>>24]^l[m>>>16&255]^f[y>>>8&255]^d[255&h]^t[g++],s=u[m>>>24]^l[y>>>16&255]^f[h>>>8&255]^d[255&p]^t[g++],c=u[y>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&m]^t[g++],h=o,p=a,m=s,y=c;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&y])^t[g++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[y>>>8&255]<<8|n[255&h])^t[g++],s=(n[m>>>24]<<24|n[y>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[g++],c=(n[y>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[g++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var l=e[a],f=e[l],d=e[f],h=257*e[u]^16843008*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*f^257*l^16843008*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],l=0;l<n;l++){var f=n-l,d=i[f-(l%4?0:4)];u[l]=l<4||f<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=u},{"safe-buffer":1037}],445:[function(e,t,r){var n=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base"),a=e("inherits"),s=e("./ghash"),c=e("buffer-xor"),u=e("./incr32");function l(e,t,r,a){o.call(this);var c=i.alloc(4,0);this._cipher=new n.AES(t);var l=this._cipher.encryptBlock(c);this._ghash=new s(l),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var c=8*o,l=i.alloc(8);l.writeUIntBE(c,0,8),n.update(l),e._finID=n.state;var f=i.from(e._finID);return u(f),f}(this,r,l),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(l,o),l.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},l.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=l},{"./aes":444,"./ghash":449,"./incr32":450,"buffer-xor":482,"cipher-base":488,inherits:807,"safe-buffer":1037}],446:[function(e,t,r){var n=e("./encrypter"),i=e("./decrypter"),o=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(o)}},{"./decrypter":447,"./encrypter":448,"./modes/list.json":458}],447:[function(e,t,r){var n=e("./authCipher"),i=e("safe-buffer").Buffer,o=e("./modes"),a=e("./streamCipher"),s=e("cipher-base"),c=e("./aes"),u=e("evp_bytestokey");function l(e,t,r){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new l(s.module,t,r)}e("inherits")(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){for(var t=e[15],r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=u(t,!1,r.key,r.iv);return d(e,n.key,n.iv)},r.createDecipheriv=d},{"./aes":444,"./authCipher":445,"./modes":457,"./streamCipher":460,"cipher-base":488,evp_bytestokey:761,inherits:807,"safe-buffer":1037}],448:[function(e,t,r){var n=e("./modes"),i=e("./authCipher"),o=e("safe-buffer").Buffer,a=e("./streamCipher"),s=e("cipher-base"),c=e("./aes"),u=e("evp_bytestokey");function l(e,t,r){s.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}e("inherits")(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},r.createCipheriv=h,r.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=u(t,!1,r.key,r.iv);return h(e,i.key,i.iv)}},{"./aes":444,"./authCipher":445,"./modes":457,"./streamCipher":460,"cipher-base":488,evp_bytestokey:761,inherits:807,"safe-buffer":1037}],449:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":1037}],450:[function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],451:[function(e,t,r){var n=e("buffer-xor");r.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},{"buffer-xor":482}],452:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("buffer-xor");function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}r.encrypt=function(e,t,r){for(var i,a=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},{"buffer-xor":482,"safe-buffer":1037}],453:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t,r){for(var n,i,a=-1,s=0;++a<8;)n=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}r.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},{"safe-buffer":1037}],454:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}r.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],r);return a}},{"safe-buffer":1037}],455:[function(e,t,r){var n=e("buffer-xor"),i=e("safe-buffer").Buffer,o=e("../incr32");function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}r.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var c=a(e),u=o+16*s;e._cache.writeUInt32BE(c[0],u+0),e._cache.writeUInt32BE(c[1],u+4),e._cache.writeUInt32BE(c[2],u+8),e._cache.writeUInt32BE(c[3],u+12)}var l=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,l)}},{"../incr32":450,"buffer-xor":482,"safe-buffer":1037}],456:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],457:[function(e,t,r){var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var o in i)i[o].module=n[i[o].mode];t.exports=i},{"./cbc":451,"./cfb":452,"./cfb1":453,"./cfb8":454,"./ctr":455,"./ecb":456,"./list.json":458,"./ofb":459}],458:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],459:[function(e,t,r){(function(t){var n=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this,e("buffer").Buffer)},{buffer:475,"buffer-xor":482}],460:[function(e,t,r){var n=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base");function a(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}e("inherits")(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},{"./aes":444,"cipher-base":488,inherits:807,"safe-buffer":1037}],461:[function(e,t,r){(function(r){var n=e("cipher-base"),i=e("des.js"),o=e("inherits"),a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function s(e){n.call(this);var t,i=e.mode.toLowerCase(),o=a[i];t=e.decrypt?"decrypt":"encrypt";var s=e.key;"des-ede"!==i&&"des-ede-cbc"!==i||(s=r.concat([s,s.slice(0,8)]));var c=e.iv;this._des=o.create({key:s,iv:c,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=s,o(s,n),s.prototype._update=function(e){return new r(this._des.update(e))},s.prototype._final=function(){return new r(this._des.final())}}).call(this,e("buffer").Buffer)},{buffer:475,"cipher-base":488,"des.js":553,inherits:807}],462:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],463:[function(e,t,r){(function(r){var n=e("bn.js"),i=e("randombytes");function o(e,t){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),o=t.modulus.byteLength(),s=(n.mont(t.modulus),new n(e).mul(i.blinder).umod(t.modulus)),c=s.toRed(n.mont(t.prime1)),u=s.toRed(n.mont(t.prime2)),l=t.coefficient,f=t.prime1,d=t.prime2,h=c.redPow(t.exponent1),p=u.redPow(t.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(l).umod(f);return m.imul(d),p.iadd(m),new r(p.imul(i.unblinder).umod(t.modulus).toArray(!1,o))}function a(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}t.exports=o,o.getr=a}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,randombytes:964}],464:[function(e,t,r){const n=e("js-sha3"),i=e("safe-buffer").Buffer,o=[224,256,384,512],a=function(e){if(void 0!==e&&-1===o.indexOf(e))throw new Error("Unsupported hash length");this.content=[],this.bitcount=e?"keccak_"+e:"keccak_512"};a.prototype.update=function(e){if(i.isBuffer(e))this.content.push(e);else{if("string"!=typeof e)throw new Error("Unsupported argument to update");this.content.push(new i(e))}return this},a.prototype.digest=function(e){const t=n[this.bitcount](i.concat(this.content));if("hex"===e)return t;if("binary"===e||void 0===e)return new i(t,"hex").toString("binary");throw new Error("Unsupported encoding for digest: "+e)},t.exports={SHA3Hash:a}},{"js-sha3":465,"safe-buffer":1037}],465:[function(e,t,r){(function(e,r){
|
||
/**
|
||
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
||
*
|
||
* @version 0.6.1
|
||
* @author Chen, Yi-Cyuan [[email protected]]
|
||
* @copyright Chen, Yi-Cyuan 2015-2017
|
||
* @license MIT
|
||
*/
|
||
!function(){"use strict";var n="object"==typeof window?window:{};!n.JS_SHA3_NO_NODE_JS&&"object"==typeof e&&e.versions&&e.versions.node&&(n=r);var i=!n.JS_SHA3_NO_COMMON_JS&&"object"==typeof t&&t.exports,o=!n.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),s=[4,1024,262144,67108864],c=[0,8,16,24],u=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],l=[224,256,384,512],f=[128,256],d=["hex","buffer","arrayBuffer","array"],h={128:168,256:136};!n.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});for(var p=function(e,t,r){return function(n){return new O(e,t,e).update(n)[r]()}},m=function(e,t,r){return function(n,i){return new O(e,t,i).update(n)[r]()}},y=function(e,t,r){return function(t,n,i,o){return _["cshake"+e].update(t,n,i,o)[r]()}},g=function(e,t,r){return function(t,n,i,o){return _["kmac"+e].update(t,n,i,o)[r]()}},b=function(e,t,r,n){for(var i=0;i<d.length;++i){var o=d[i];e[o]=t(r,n,o)}return e},v=function(e,t){var r=p(e,t,"hex");return r.create=function(){return new O(e,t,e)},r.update=function(e){return r.create().update(e)},b(r,p,e,t)},w=[{name:"keccak",padding:[1,256,65536,16777216],bits:l,createMethod:v},{name:"sha3",padding:[6,1536,393216,100663296],bits:l,createMethod:v},{name:"shake",padding:[31,7936,2031616,520093696],bits:f,createMethod:function(e,t){var r=m(e,t,"hex");return r.create=function(r){return new O(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},b(r,m,e,t)}},{name:"cshake",padding:s,bits:f,createMethod:function(e,t){var r=h[e],n=y(e,0,"hex");return n.create=function(n,i,o){return i||o?new O(e,t,n).bytepad([i,o],r):_["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},b(n,y,e,t)}},{name:"kmac",padding:s,bits:f,createMethod:function(e,t){var r=h[e],n=g(e,0,"hex");return n.create=function(n,i,o){return new j(e,t,i).bytepad(["KMAC",o],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},b(n,g,e,t)}}],_={},x=[],k=0;k<w.length;++k)for(var S=w[k],E=S.bits,A=0;A<E.length;++A){var T=S.name+"_"+E[A];if(x.push(T),_[T]=S.createMethod(E[A],S.padding),"sha3"!==S.name){var C=S.name+E[A];x.push(C),_[C]=_[T]}}function O(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function j(e,t,r){O.call(this,e,t,r)}O.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===n.ArrayBuffer&&(e=new Uint8Array(e));var r=e.length;if(t&&("number"!=typeof r||!Array.isArray(e)&&(!o||!ArrayBuffer.isView(e))))throw"input is invalid type";for(var i,a,s=this.blocks,u=this.byteCount,l=this.blockCount,f=0,d=this.s;f<r;){if(this.reset)for(this.reset=!1,s[0]=this.block,i=1;i<l+1;++i)s[i]=0;if(t)for(i=this.start;f<r&&i<u;++f)s[i>>2]|=e[f]<<c[3&i++];else for(i=this.start;f<r&&i<u;++f)(a=e.charCodeAt(f))<128?s[i>>2]|=a<<c[3&i++]:a<2048?(s[i>>2]|=(192|a>>6)<<c[3&i++],s[i>>2]|=(128|63&a)<<c[3&i++]):a<55296||a>=57344?(s[i>>2]|=(224|a>>12)<<c[3&i++],s[i>>2]|=(128|a>>6&63)<<c[3&i++],s[i>>2]|=(128|63&a)<<c[3&i++]):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++f)),s[i>>2]|=(240|a>>18)<<c[3&i++],s[i>>2]|=(128|a>>12&63)<<c[3&i++],s[i>>2]|=(128|a>>6&63)<<c[3&i++],s[i>>2]|=(128|63&a)<<c[3&i++]);if(this.lastByteIndex=i,i>=u){for(this.start=i-u,this.block=s[l],i=0;i<l;++i)d[i]^=s[i];P(d),this.reset=!0}else this.start=i}return this},O.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},O.prototype.encodeString=function(e){var t="string"!=typeof(e=e||"");t&&e.constructor===n.ArrayBuffer&&(e=new Uint8Array(e));var r=e.length;if(t&&("number"!=typeof r||!Array.isArray(e)&&(!o||!ArrayBuffer.isView(e))))throw"input is invalid type";var i=0;if(t)i=r;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?i+=1:s<2048?i+=2:s<55296||s>=57344?i+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(e),i},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,o=[];return o.length=i,this.update(o),this},O.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];P(n)},O.prototype.toString=O.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,s=0,c="";s<n;){for(o=0;o<t&&s<n;++o,++s)e=r[o],c+=a[e>>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t==0&&(P(r),o=0)}return i&&(e=r[o],i>0&&(c+=a[e>>4&15]+a[15&e]),i>1&&(c+=a[e>>12&15]+a[e>>8&15]),i>2&&(c+=a[e>>20&15]+a[e>>16&15])),c},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)c[a]=r[o];a%t==0&&P(r)}return i&&(c[o]=r[o],e=e.slice(0,s)),e},O.prototype.buffer=O.prototype.arrayBuffer,O.prototype.digest=O.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&P(n)}return o&&(e=s<<2,t=n[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},j.prototype=new O,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var P=function(e){var t,r,n,i,o,a,s,c,l,f,d,h,p,m,y,g,b,v,w,_,x,k,S,E,A,T,C,O,j,P,M,I,N,B,R,D,L,U,F,q,H,z,K,V,G,W,Y,$,J,Q,Z,X,ee,te,re,ne,ie,oe,ae,se,ce,ue,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(c<<1|l>>>31),r=o^(l<<1|c>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|d>>>31),r=s^(d<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=c^(h<<1|p>>>31),r=l^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],W=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,B=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=y^~b&w,e[10]=E^~T&O,e[11]=A^~C&j,e[20]=B^~D&U,e[21]=R^~L&F,e[30]=V^~W&$,e[31]=G^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=b^~w&x,e[12]=T^~O&P,e[13]=C^~j&M,e[22]=D^~U&q,e[23]=L^~F&H,e[32]=W^~$&Q,e[33]=Y^~J&Z,e[42]=ne^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&k,e[5]=w^~x&S,e[14]=O^~P&I,e[15]=j^~M&N,e[24]=U^~q&z,e[25]=F^~H&K,e[34]=$^~Q&X,e[35]=J^~Z&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&le,e[6]=_^~k&m,e[7]=x^~S&y,e[16]=P^~I&E,e[17]=M^~N&A,e[26]=q^~z&B,e[27]=H^~K&R,e[36]=Q^~X&V,e[37]=Z^~ee&G,e[46]=se^~ue&te,e[47]=ce^~le&re,e[8]=k^~m&g,e[9]=S^~y&b,e[18]=I^~E&T,e[19]=N^~A&C,e[28]=z^~B&D,e[29]=K^~R&L,e[38]=X^~V&W,e[39]=ee^~G&Y,e[48]=ue^~te&ne,e[49]=le^~re&ie,e[0]^=u[n],e[1]^=u[n+1]};if(i)t.exports=_;else for(k=0;k<x.length;++k)n[x[k]]=_[x[k]]}()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952}],466:[function(e,t,r){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":467}],467:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],468:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],469:[function(e,t,r){(function(r){var n=e("create-hash"),i=e("stream"),o=e("inherits"),a=e("./sign"),s=e("./verify"),c=e("./algorithms.json");function u(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){i.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function d(e){return new l(e)}Object.keys(c).forEach((function(e){c[e].id=new r(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),o(u,i.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=new r(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=a(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(l,i.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"==typeof e&&(e=new r(e,t)),this._hash.update(e),this},l.prototype.verify=function(e,t,n){"string"==typeof t&&(t=new r(t,n)),this.end();var i=this._hash.digest();return s(t,i,e,this._signType,this._tag)},t.exports={Sign:f,Verify:d,createSign:f,createVerify:d}}).call(this,e("buffer").Buffer)},{"./algorithms.json":467,"./sign":470,"./verify":471,buffer:475,"create-hash":501,inherits:807,stream:1059}],470:[function(e,t,r){(function(r){var n=e("create-hmac"),i=e("browserify-rsa"),o=e("elliptic").ec,a=e("bn.js"),s=e("parse-asn1"),c=e("./curves.json");function u(e,t,i,o){if((e=new r(e.toArray())).length<t.byteLength()){var a=new r(t.byteLength()-e.length);a.fill(0),e=r.concat([a,e])}var s=i.length,c=function(e,t){e=(e=l(e,t)).mod(t);var n=new r(e.toArray());if(n.length<t.byteLength()){var i=new r(t.byteLength()-n.length);i.fill(0),n=r.concat([i,n])}return n}(i,t),u=new r(s);u.fill(1);var f=new r(s);return f.fill(0),f=n(o,f).update(u).update(new r([0])).update(e).update(c).digest(),u=n(o,f).update(u).digest(),{k:f=n(o,f).update(u).update(new r([1])).update(e).update(c).digest(),v:u=n(o,f).update(u).digest()}}function l(e,t){var r=new a(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function f(e,t,i){var o,a;do{for(o=new r(0);8*o.length<e.bitLength();)t.v=n(i,t.k).update(t.v).digest(),o=r.concat([o,t.v]);a=l(o,e),t.k=n(i,t.k).update(t.v).update(new r([0])).digest(),t.v=n(i,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function d(e,t,r,n){return e.toRed(a.mont(r)).redPow(t).fromRed().mod(n)}t.exports=function(e,t,n,h,p){var m=s(t);if(m.curve){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong private key type");return function(e,t){var n=c[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return new r(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==h)throw new Error("wrong private key type");return function(e,t,n){for(var i,o=t.params.priv_key,s=t.params.p,c=t.params.q,h=t.params.g,p=new a(0),m=l(e,c).mod(c),y=!1,g=u(o,c,e,n);!1===y;)p=d(h,i=f(c,g,n),s,c),0===(y=i.invm(c).imul(m.add(o.mul(p))).mod(c)).cmpn(0)&&(y=!1,p=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),new r(n)}(p,y)}(e,m,n)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw new Error("wrong private key type");e=r.concat([p,e]);for(var y=m.modulus.byteLength(),g=[0,1];e.length+g.length+1<y;)g.push(255);g.push(0);for(var b=-1;++b<e.length;)g.push(e[b]);return i(g,m)},t.exports.getKey=u,t.exports.makeKey=f}).call(this,e("buffer").Buffer)},{"./curves.json":468,"bn.js":439,"browserify-rsa":463,buffer:475,"create-hmac":472,elliptic:572,"parse-asn1":909}],471:[function(e,t,r){(function(r){var n=e("bn.js"),i=e("elliptic").ec,o=e("parse-asn1"),a=e("./curves.json");function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,c,u,l){var f=o(c);if("ec"===f.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,t,f)}if("dsa"===f.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,a=r.data.q,c=r.data.g,u=r.data.pub_key,l=o.signature.decode(e,"der"),f=l.s,d=l.r;s(f,a),s(d,a);var h=n.mont(i),p=f.invm(a);return 0===c.toRed(h).redPow(new n(t).mul(p).mod(a)).fromRed().mul(u.toRed(h).redPow(d.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(d)}(e,t,f)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=r.concat([l,t]);for(var d=f.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<d;)h.push(255),p++;h.push(0);for(var m=-1;++m<t.length;)h.push(t[m]);h=new r(h);var y=n.mont(f.modulus);e=(e=new n(e).toRed(y)).redPow(new n(f.publicExponent)),e=new r(e.fromRed().toArray());var g=p<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(g=1),m=-1;++m<d;)g|=e[m]^h[m];return 0===g}}).call(this,e("buffer").Buffer)},{"./curves.json":468,"bn.js":439,buffer:475,elliptic:572,"parse-asn1":909}],472:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./legacy"),o=e("cipher-base"),a=e("safe-buffer").Buffer,s=e("create-hash/md5"),c=e("ripemd160"),u=e("sha.js"),l=a.alloc(128);function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new c:u(e)).update(t).digest():t.length<r&&(t=a.concat([t,l],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),s=0;s<r;s++)n[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:u(e),this._hash.update(n)}n(f,o),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:u(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},{"./legacy":473,"cipher-base":488,"create-hash/md5":503,inherits:807,ripemd160:983,"safe-buffer":1037,"sha.js":1051}],473:[function(e,t,r){"use strict";var n=e("inherits"),i=e("safe-buffer").Buffer,o=e("cipher-base"),a=i.alloc(128);function s(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),s=0;s<64;s++)r[s]=54^t[s],n[s]=92^t[s];this._hash=[r]}n(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=s},{"cipher-base":488,inherits:807,"safe-buffer":1037}],474:[function(e,t,r){"use strict";function n(e){return encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))}function i(e){return u(n(e))}function o(e){var t=e.replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}));return decodeURIComponent(t)}function a(e){return o(s(e))}function s(e){return Array.prototype.map.call(e,(function(e){return String.fromCharCode(e)})).join("")}function c(e){var t=s(e);return btoa(t)}function u(e){var t;return t="undefined"!=typeof Uint8Array?new Uint8Array(e.length):[],Array.prototype.forEach.call(e,(function(e,r){t[r]=e.charCodeAt(0)})),t}function l(e){return u(atob(e))}t.exports={utf8ToBinaryString:n,utf8ToBuffer:i,utf8ToBase64:function(e){var t=n(e);return btoa(t)},binaryStringToUtf8:o,bufferToUtf8:a,base64ToUtf8:function(e){return o(atob(e))},bufferToBinaryString:s,bufferToBase64:c,binaryStringToBuffer:u,base64ToBuffer:l,strToUtf8Arr:i,utf8ArrToStr:a,arrToBase64:c,base64ToArr:l}},{}],475:[function(e,t,r){
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/
|
||
"use strict";var n=e("base64-js"),i=e("ieee754");function o(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=o(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=a.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var i=function(e){if(a.isBuffer(e)){var t=0|f(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||F(e.length)?o(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|f(e))}function l(e){for(var t=e.length<0?0:0|f(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return D(e).length;default:if(i)return n?-1:R(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return k(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,r,n,i){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(u(e,o)===u(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(r+c>s&&(r=s-c),o=r;o>=0;o--){for(var f=!0,d=0;d<c;d++)if(u(e,o+d)!==u(t,d)){f=!1;break}if(f)return o}return-1}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(F(s))return a;e[r+a]=s}return a}function b(e,t,r,n){return L(R(t,e.length-r),e,r,n)}function v(e,t,r,n){return L(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return v(e,t,r,n)}function _(e,t,r,n){return L(D(t),e,r,n)}function x(e,t,r,n){return L(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function k(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,c,u=e[i],l=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=B(e[o]);return i}function C(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function O(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,o){return t=+t,r>>>=0,o||P(e,0,r,8),i.write(e,t,r,n,52,8),r+8}r.Buffer=a,r.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?o(e):void 0!==t?"string"==typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(U(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,r,n,i){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),c=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r),f=0;f<c;++f)if(u[f]!==l[f]){o=u[f],s=l[f];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return v(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||O(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||O(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||O(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||O(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||O(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||O(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||j(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);j(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),c=s.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%c]}return this};var N=/[^+/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function R(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function D(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}},{"base64-js":428,ieee754:806}],476:[function(e,t,r){var n=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var s,c=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),s=0===u.x}catch(e){s=!1}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function f(e,t,r){if(t)e.call(r);else for(var n=e.length,i=_(e,n),o=0;o<n;++o)i[o].call(r)}function d(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=_(e,i),a=0;a<i;++a)o[a].call(r,n)}function h(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=_(e,o),s=0;s<o;++s)a[s].call(r,n,i)}function p(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=_(e,a),c=0;c<a;++c)s[c].call(r,n,i,o)}function m(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=_(e,i),a=0;a<i;++a)o[a].apply(r,n)}function y(e,t,r,i){var o,a,s;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((a=e._events)?(a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]):(a=e._events=n(null),e._eventsCount=0),s){if("function"==typeof s?s=a[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),!s.warned&&(o=l(e))&&o>0&&s.length>o){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else s=a[t]=r,++e._eventsCount;return e}function g(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function b(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=o.call(g,n);return i.listener=r,n.wrapFn=i,i}function v(e,t,r){var n=e._events;if(!n)return[];var i=n[t];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):_(i,i.length):[]}function w(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function _(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}s?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):a.defaultMaxListeners=c,a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){var t,r,n,i,o,a,s="error"===e;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var c=new Error('Unhandled "error" event. ('+t+")");throw c.context=t,c}if(!(r=a[e]))return!1;var u="function"==typeof r;switch(n=arguments.length){case 1:f(r,u,this);break;case 2:d(r,u,this,arguments[1]);break;case 3:h(r,u,this,arguments[1],arguments[2]);break;case 4:p(r,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];m(r,u,this,i)}return!0},a.prototype.addListener=function(e,t){return y(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return y(this,e,t,!0)},a.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,b(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,b(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,i,o,a,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=n(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,o),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.removeAllListeners=function(e){var t,r,o;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=n(null):delete r[e]),this;if(0===arguments.length){var a,s=i(r);for(o=0;o<s.length;++o)"removeListener"!==(a=s[o])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},a.prototype.listeners=function(e){return v(this,e,!0)},a.prototype.rawListeners=function(e){return v(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):w.call(e,t)},a.prototype.listenerCount=w,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],477:[function(e,t,r){(function(e){!function(n){var i="object"==typeof r&&r&&!r.nodeType&&r,o="object"==typeof t&&t&&!t.nodeType&&t,a="object"==typeof e&&e;a.global!==a&&a.window!==a&&a.self!==a||(n=a);var s,c,u=2147483647,l=/^xn--/,f=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,m=String.fromCharCode;function y(e){throw new RangeError(h[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function b(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(d,".")).split("."),t).join(".")}function v(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function w(e){return g(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+m(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=36)e=p(e/35);return p(n+36*e/(e+38))}function k(e){var t,r,n,i,o,a,s,c,l,f,d,h=[],m=e.length,g=0,b=128,v=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&y("not-basic"),h.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<m;){for(o=g,a=1,s=36;i>=m&&y("invalid-input"),((c=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||c>p((u-g)/a))&&y("overflow"),g+=c*a,!(c<(l=s<=v?1:s>=v+26?26:s-v));s+=36)a>p(u/(f=36-l))&&y("overflow"),a*=f;v=x(g-o,t=h.length+1,0==o),p(g/t)>u-b&&y("overflow"),b+=p(g/t),g%=t,h.splice(g++,0,b)}return w(h)}function S(e){var t,r,n,i,o,a,s,c,l,f,d,h,g,b,w,k=[];for(h=(e=v(e)).length,t=128,r=0,o=72,a=0;a<h;++a)(d=e[a])<128&&k.push(m(d));for(n=i=k.length,i&&k.push("-");n<h;){for(s=u,a=0;a<h;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>p((u-r)/(g=n+1))&&y("overflow"),r+=(s-t)*g,t=s,a=0;a<h;++a)if((d=e[a])<t&&++r>u&&y("overflow"),d==t){for(c=r,l=36;!(c<(f=l<=o?1:l>=o+26?26:l-o));l+=36)w=c-f,b=36-f,k.push(m(_(f+w%b,0))),c=p(w/b);k.push(m(_(c,0))),o=x(r,g,n==i),r=0,++n}++r,++t}return k.join("")}if(s={version:"1.4.1",ucs2:{decode:v,encode:w},decode:k,encode:S,toASCII:function(e){return b(e,(function(e){return f.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return b(e,(function(e){return l.test(e)?k(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return s}));else if(i&&o)if(t.exports==i)o.exports=s;else for(c in s)s.hasOwnProperty(c)&&(i[c]=s[c]);else n.punycode=s}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],478:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:475}],479:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":478}],480:[function(e,t,r){var n=e("base-x");t.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"base-x":427}],481:[function(e,t,r){(function(e){!function(){"use strict";t.exports=function(t){return(t instanceof e?t:e.from(t.toString(),"binary")).toString("base64")}}()}).call(this,e("buffer").Buffer)},{buffer:475}],482:[function(e,t,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}}).call(this,e("buffer").Buffer)},{buffer:475}],483:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],484:[function(e,t,r){"use strict";r.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),r.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),r.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},{}],485:[function(e,t,r){(function(t){"use strict";const n=e("bs58"),i=e("./constants");r.names=i.names,r.codes=i.codes,r.defaultLengths=i.defaultLengths;const o=e("varint");function a(e){r.decode(e)}r.toHexString=function(e){if(!t.isBuffer(e))throw new Error("must be passed a buffer");return e.toString("hex")},r.fromHexString=function(e){return t.from(e,"hex")},r.toB58String=function(e){if(!t.isBuffer(e))throw new Error("must be passed a buffer");return n.encode(e)},r.fromB58String=function(e){let r=e;return t.isBuffer(e)&&(r=e.toString()),t.from(n.decode(r))},r.decode=function(e){if(!t.isBuffer(e))throw new Error("multihash must be a Buffer");if(e.length<3)throw new Error("multihash too short. must be > 3 bytes.");const n=o.decode(e);if(!r.isValidCode(n))throw new Error("multihash unknown function code: 0x"+n.toString(16));e=e.slice(o.decode.bytes);const a=o.decode(e);if(a<1)throw new Error("multihash invalid length: 0x"+a.toString(16));if((e=e.slice(o.decode.bytes)).length!==a)throw new Error("multihash length inconsistent: 0x"+e.toString("hex"));return{code:n,name:i.codes[n],length:a,digest:e}},r.encode=function(e,n,i){if(!e||void 0===n)throw new Error("multihash encode requires at least two args: digest, code");const a=r.coerceCode(n);if(!t.isBuffer(e))throw new Error("digest should be a Buffer");if(null==i&&(i=e.length),i&&e.length!==i)throw new Error("digest length should be equal to specified length.");return t.concat([t.from(o.encode(a)),t.from(o.encode(i)),e])},r.coerceCode=function(e){let t=e;if("string"==typeof e){if(void 0===i.names[e])throw new Error("Unrecognized hash function named: "+e);t=i.names[e]}if("number"!=typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===i.codes[t]&&!r.isAppCode(t))throw new Error("Unrecognized function code: "+t);return t},r.isAppCode=function(e){return e>0&&e<16},r.isValidCode=function(e){return!!r.isAppCode(e)||!!i.codes[e]},r.validate=a,r.prefix=function(e){return a(e),e.slice(0,2)}}).call(this,e("buffer").Buffer)},{"./constants":484,bs58:480,buffer:475,varint:1140}],486:[function(e,t,r){(function(r){"use strict";const n=e("multihashes");var i={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!r.isBuffer(e.multihash))return"multihash must be a Buffer";try{n.validate(e.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};t.exports=i}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":808,multihashes:485}],487:[function(e,t,r){(function(r){"use strict";const n=e("multihashes"),i=e("multibase"),o=e("multicodec"),a=e("multicodec/src/base-table"),s=e("./cid-util"),c=e("class-is");class u{constructor(e,t,a,s){if(l.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=r.from(t.multihash),void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"==typeof e){const t=i.isEncoded(e);if(t){const r=i.decode(e);this.version=parseInt(r.slice(0,1).toString("hex"),16),this.codec=o.getCodec(r.slice(1)),this.multihash=o.rmPrefix(r.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=n.fromB58String(e),this.multibaseName="base58btc";return u.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(r.isBuffer(e)){const t=e.slice(0,1),r=parseInt(t.toString("hex"),16);if(1===r){const t=e;this.version=r,this.codec=o.getCodec(t.slice(1)),this.multihash=o.rmPrefix(t.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";u.validateCID(this)}else this.version=e,this.codec=t,this.multihash=a,this.multibaseName=s||(0===e?"base58btc":"base32"),u.validateCID(this)}get buffer(){let e=this._buffer;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");e=r.concat([r.from("01","hex"),o.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:e})}return e}get prefix(){return r.concat([r.from("0"+this.version,"hex"),o.getCodeVarint(this.codec),n.prefix(this.multihash)])}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=n.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new l(0,this.codec,this.multihash)}toV1(){return new l(1,this.codec,this.multihash)}toBaseEncodedString(e=this.multibaseName){if(this.string&&e===this.multibaseName)return this.string;let t=null;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=n.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=i.encode(e,this.buffer).toString()}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}static validateCID(e){let t=s.checkCIDComponents(e);if(t)throw new Error(t)}}const l=c(u,{className:"CID",symbolName:"@ipld/js-cid/CID"});l.codecs=a,t.exports=l}).call(this,e("buffer").Buffer)},{"./cid-util":486,buffer:475,"class-is":489,multibase:883,multicodec:886,"multicodec/src/base-table":884,multihashes:485}],488:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("stream").Transform,o=e("string_decoder").StringDecoder;function a(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(a,i),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=a},{inherits:807,"safe-buffer":1037,stream:1059,string_decoder:479}],489:[function(e,t,r){"use strict";t.exports=function(e,{className:t,symbolName:r}){const n=Symbol.for(r),i={[t]:class extends e{constructor(...e){super(...e),Object.defineProperty(this,n,{value:!0})}get[Symbol.toStringTag](){return t}}}[t];return i["is"+t]=e=>!(!e||!e[n]),i},t.exports.proto=function(e,{className:t,symbolName:r,withoutNew:n}){const i=Symbol.for(r),o={[t]:function(...t){if(n&&!(this instanceof o))return new o(...t);const r=e.call(this,...t)||this;return r&&!r[i]&&Object.defineProperty(r,i,{value:!0}),r}}[t];return o.prototype=Object.create(e.prototype),o.prototype.constructor=o,Object.defineProperty(o.prototype,Symbol.toStringTag,{get:()=>t}),o["is"+t]=e=>!(!e||!e[i]),o}},{}],490:[function(e,t,r){(function(e){var r=function(){"use strict";function t(e,t){return null!=t&&e instanceof t}var r,n,i;try{r=Map}catch(e){r=function(){}}try{n=Set}catch(e){n=function(){}}try{i=Promise}catch(e){i=function(){}}function o(a,c,u,l,f){"object"==typeof c&&(u=c.depth,l=c.prototype,f=c.includeNonEnumerable,c=c.circular);var d=[],h=[],p=void 0!==e;return void 0===c&&(c=!0),void 0===u&&(u=1/0),function a(u,m){if(null===u)return null;if(0===m)return u;var y,g;if("object"!=typeof u)return u;if(t(u,r))y=new r;else if(t(u,n))y=new n;else if(t(u,i))y=new i((function(e,t){u.then((function(t){e(a(t,m-1))}),(function(e){t(a(e,m-1))}))}));else if(o.__isArray(u))y=[];else if(o.__isRegExp(u))y=new RegExp(u.source,s(u)),u.lastIndex&&(y.lastIndex=u.lastIndex);else if(o.__isDate(u))y=new Date(u.getTime());else{if(p&&e.isBuffer(u))return y=e.allocUnsafe?e.allocUnsafe(u.length):new e(u.length),u.copy(y),y;t(u,Error)?y=Object.create(u):void 0===l?(g=Object.getPrototypeOf(u),y=Object.create(g)):(y=Object.create(l),g=l)}if(c){var b=d.indexOf(u);if(-1!=b)return h[b];d.push(u),h.push(y)}for(var v in t(u,r)&&u.forEach((function(e,t){var r=a(t,m-1),n=a(e,m-1);y.set(r,n)})),t(u,n)&&u.forEach((function(e){var t=a(e,m-1);y.add(t)})),u){var w;g&&(w=Object.getOwnPropertyDescriptor(g,v)),w&&null==w.set||(y[v]=a(u[v],m-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(u);for(v=0;v<_.length;v++){var x=_[v];(!(S=Object.getOwnPropertyDescriptor(u,x))||S.enumerable||f)&&(y[x]=a(u[x],m-1),S.enumerable||Object.defineProperty(y,x,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(u);for(v=0;v<k.length;v++){var S,E=k[v];(S=Object.getOwnPropertyDescriptor(u,E))&&S.enumerable||(y[E]=a(u[E],m-1),Object.defineProperty(y,E,{enumerable:!1}))}}return y}(a,u)}function a(e){return Object.prototype.toString.call(e)}function s(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===a(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===a(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===a(e)},o.__getRegExpFlags=s,o}();"object"==typeof t&&t.exports&&(t.exports=r)}).call(this,e("buffer").Buffer)},{buffer:475}],491:[function(e,t,r){(function(r){var n=e("bs58"),i=e("create-hash");function o(e,t){var i;(Array.isArray(e)||e instanceof Uint8Array)&&(e=new r(e)),null!=t?("number"==typeof t&&(t=new r([t])),i=r.concat([t,e])):i=e;var o=c(i).slice(0,4),a=r.concat([i,o]);return n.encode(a)}function a(e,t){var i,o=n.decode(e),a=new r(o);if(null==t)i=0;else if("number"==typeof t&&(t=new r([t])),i=t.length,a.slice(0,i).toString("hex")!==t.toString("hex"))throw new Error("Invalid version");var s=a.slice(-4),u=a.length-4,l=a.slice(0,u),f=c(l).slice(0,4);if(s.toString("hex")!==f.toString("hex"))throw new Error("Invalid checksum");return l.slice(i)}function s(e,t){try{a(e,t)}catch(e){return!1}return!0}function c(e){var t=i("sha256").update(e).digest();return i("sha256").update(t).digest()}t.exports={encode:o,decode:a,isValid:s,createEncoder:function(e){return function(t){return o(t,e)}},createDecoder:function(e){return function(t){return a(t,e)}},createValidator:function(e){return function(t){return s(t,e)}}}}).call(this,e("buffer").Buffer)},{bs58:492,buffer:475,"create-hash":501}],492:[function(e,t,r){for(var n="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",i={},o=0;o<n.length;o++)i[n.charAt(o)]=o;t.exports={encode:function(e){if(0===e.length)return"";var t,r=[0];for(a=0;a<e.length;a++){for(t=0;t<r.length;t++)r[t]<<=8;r[0]+=e[a];var i=0;for(t=0;t<r.length;++t)r[t]+=i,i=r[t]/58|0,r[t]%=58;for(;i;)r.push(i%58),i=i/58|0}for(a=0;0===e[a]&&a<e.length-1;a++)r.push(0);for(var o="",a=r.length-1;a>=0;a--)o+=n[r[a]];return o},decode:function(e){if(0===e.length)return[];var t,r,n=[0];for(t=0;t<e.length;t++){var o=e[t];if(!(o in i))throw new Error("Non-base58 character");for(r=0;r<n.length;r++)n[r]*=58;n[0]+=i[o];var a=0;for(r=0;r<n.length;++r)n[r]+=a,a=n[r]>>8,n[r]&=255;for(;a;)n.push(255&a),a>>=8}for(t=0;"1"===e[t]&&t<e.length-1;t++)n.push(0);return n.reverse()}}},{}],493:[function(e,t,r){arguments[4][484][0].apply(r,arguments)},{dup:484}],494:[function(e,t,r){(function(t){"use strict";const n=e("bs58"),i=e("./constants");r.names=i.names,r.codes=i.codes,r.defaultLengths=i.defaultLengths;const o=e("varint");function a(e){r.decode(e)}r.toHexString=function(e){if(!t.isBuffer(e))throw new Error("must be passed a buffer");return e.toString("hex")},r.fromHexString=function(e){return t.from(e,"hex")},r.toB58String=function(e){if(!t.isBuffer(e))throw new Error("must be passed a buffer");return n.encode(e)},r.fromB58String=function(e){let r=e;return t.isBuffer(e)&&(r=e.toString()),t.from(n.decode(r))},r.decode=function(e){if(!t.isBuffer(e))throw new Error("multihash must be a Buffer");if(e.length<3)throw new Error("multihash too short. must be > 3 bytes.");const n=o.decode(e);if(!r.isValidCode(n))throw new Error("multihash unknown function code: 0x"+n.toString(16));e=e.slice(o.decode.bytes);const a=o.decode(e);if(a<1)throw new Error("multihash invalid length: 0x"+a.toString(16));if((e=e.slice(o.decode.bytes)).length!==a)throw new Error("multihash length inconsistent: 0x"+e.toString("hex"));return{code:n,name:i.codes[n],length:a,digest:e}},r.encode=function(e,n,i){if(!e||void 0===n)throw new Error("multihash encode requires at least two args: digest, code");const a=r.coerceCode(n);if(!t.isBuffer(e))throw new Error("digest should be a Buffer");if(null==i&&(i=e.length),i&&e.length!==i)throw new Error("digest length should be equal to specified length.");return t.concat([t.from(o.encode(a)),t.from(o.encode(i)),e])},r.coerceCode=function(e){let t=e;if("string"==typeof e){if(void 0===i.names[e])throw new Error("Unrecognized hash function named: "+e);t=i.names[e]}if("number"!=typeof t)throw new Error("Hash function code should be a number. Got: "+t);if(void 0===i.codes[t]&&!r.isAppCode(t))throw new Error("Unrecognized function code: "+t);return t},r.isAppCode=function(e){return e>0&&e<16},r.isValidCode=function(e){return!!r.isAppCode(e)||!!i.codes[e]},r.validate=a,r.prefix=function(e){return a(e),e.slice(0,2)}}).call(this,e("buffer").Buffer)},{"./constants":493,bs58:480,buffer:475,varint:1140}],495:[function(e,t,r){const n=e("cids");r.cidV0ToV1Base32=e=>{let t=new n(e);return 0===t.version&&(t=t.toV1()),t.toString("base32")}},{cids:487}],496:[function(e,t,r){const n=e("multicodec"),{hexStringToBuffer:i,profiles:o}=e("./profiles"),{cidV0ToV1Base32:a}=e("./helpers");t.exports={helpers:{cidV0ToV1Base32:a},decode:function(e){const t=i(e),r=n.getCodec(t),a=n.rmPrefix(t);let s=o[r];return s||(s=o.default),s.decode(a)},fromIpfs:function(e){return this.encode("ipfs-ns",e)},fromSwarm:function(e){return this.encode("swarm-ns",e)},encode:function(e,t){let r=o[e];r||(r=o.default);const i=r.encode(t);return n.addPrefix(e,i).toString("hex")},getCodec:function(e){let t=i(e);return n.getCodec(t)}}},{"./helpers":495,"./profiles":497,multicodec:886}],497:[function(e,t,r){(function(t){const n=e("cids"),i=e("multihashes"),o=e=>{let t=e.slice(0,2),r=e.slice(2),n="";return n="0x"===t?r:e,i.fromHexString(n)},a={swarm:e=>{const t=i.encode(o(e),"keccak-256");return new n(1,"swarm-manifest",t).buffer},ipfs:e=>{const t=i.fromB58String(e);return new n(1,"dag-pb",t).buffer},utf8:e=>t.from(e,"utf8")},s={hexMultiHash:e=>{const t=new n(e);return i.decode(t.multihash).digest.toString("hex")},b58MultiHash:e=>{const t=new n(e);return i.toB58String(t.multihash)},utf8:e=>e.toString("utf8")},c={"swarm-ns":{encode:a.swarm,decode:s.hexMultiHash},"ipfs-ns":{encode:a.ipfs,decode:s.b58MultiHash},"ipns-ns":{encode:a.ipfs,decode:s.b58MultiHash},default:{encode:a.utf8,decode:s.utf8}};r.hexStringToBuffer=o,r.profiles=c}).call(this,e("buffer").Buffer)},{buffer:475,cids:487,multihashes:494}],498:[function(e,t,r){!function(){"use strict";function e(t,r,n,i){return this instanceof e?(this.domain=t||void 0,this.path=r||"/",this.secure=!!n,this.script=!!i,this):new e(t,r,n,i)}function t(e,r,n){return e instanceof t?e:this instanceof t?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(n||"/"),this.explicit_path=!1,this.domain=r||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,e&&this.parse(e,r,n),this):new t(e,r,n)}e.All=Object.freeze(Object.create(null)),r.CookieAccessInfo=e,r.Cookie=t,t.prototype.toString=function(){var e=[this.name+"="+this.value];return this.expiration_date!==1/0&&e.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&e.push("domain="+this.domain),this.path&&e.push("path="+this.path),this.secure&&e.push("secure"),this.noscript&&e.push("httponly"),e.join("; ")},t.prototype.toValueString=function(){return this.name+"="+this.value};var n=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var e,r;return this instanceof i?(e=Object.create(null),this.setCookie=function(n,i,o){var a,s;if(a=(n=new t(n,i,o)).expiration_date<=Date.now(),void 0!==e[n.name]){for(r=e[n.name],s=0;s<r.length;s+=1)if(r[s].collidesWith(n))return a?(r.splice(s,1),0===r.length&&delete e[n.name],!1):(r[s]=n,n);return!a&&(r.push(n),n)}return!a&&(e[n.name]=[n],e[n.name])},this.getCookie=function(t,n){var i,o;if(r=e[t])for(o=0;o<r.length;o+=1)if((i=r[o]).expiration_date<=Date.now())0===r.length&&delete e[i.name];else if(i.matches(n))return i},this.getCookies=function(t){var r,n,i=[];for(r in e)(n=this.getCookie(r,t))&&i.push(n);return i.toString=function(){return i.join(":")},i.toValueString=function(){return i.map((function(e){return e.toValueString()})).join(";")},i},this):new i}t.prototype.parse=function(e,r,n){if(this instanceof t){var i,o=e.split(";").filter((function(e){return!!e})),a=o[0].match(/([^=]+)=([\s\S]*)/);if(!a)return void console.warn("Invalid cookie header encountered. Header: '"+e+"'");var s=a[1],c=a[2];if("string"!=typeof s||0===s.length||"string"!=typeof c)return void console.warn("Unable to extract values from cookie header. Cookie: '"+e+"'");for(this.name=s,this.value=c,i=1;i<o.length;i+=1)switch(s=(a=o[i].match(/([^=]+)(?:=([\s\S]*))?/))[1].trim().toLowerCase(),c=a[2],s){case"httponly":this.noscript=!0;break;case"expires":this.expiration_date=c?Number(Date.parse(c)):1/0;break;case"path":this.path=c?c.trim():"",this.explicit_path=!0;break;case"domain":this.domain=c?c.trim():"",this.explicit_domain=!!this.domain;break;case"secure":this.secure=!0}return this.explicit_path||(this.path=n||"/"),this.explicit_domain||(this.domain=r),this}return(new t).parse(e,r,n)},t.prototype.matches=function(t){return t===e.All||!(this.noscript&&t.script||this.secure&&!t.secure||!this.collidesWith(t))},t.prototype.collidesWith=function(e){if(this.path&&!e.path||this.domain&&!e.domain)return!1;if(this.path&&0!==e.path.indexOf(this.path))return!1;if(this.explicit_path&&0!==e.path.indexOf(this.path))return!1;var t=e.domain&&e.domain.replace(/^[\.]/,""),r=this.domain&&this.domain.replace(/^[\.]/,"");if(r===t)return!0;if(r){if(!this.explicit_domain)return!1;var n=t.indexOf(r);return-1!==n&&n===t.length-r.length}return!0},r.CookieJar=i,i.prototype.setCookies=function(e,r,i){var o,a,s=[];for(e=(e=Array.isArray(e)?e:e.split(n)).map((function(e){return new t(e,r,i)})),o=0;o<e.length;o+=1)a=e[o],this.setCookie(a,r,i)&&s.push(a);return s}}()},{}],499:[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":808}],500:[function(e,t,r){(function(r){var n=e("elliptic"),i=e("bn.js");t.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,t,n){Array.isArray(e)||(e=e.toArray());var i=new r(e);if(n&&i.length<n){var o=new r(n-i.length);o.fill(0),i=r.concat([o,i])}return t?i.toString(t):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,t,n){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,t){t=t||"utf8",r.isBuffer(e)||(e=new r(e,t));var n=new i(e);return n=n.toString(16),this.keys._importPrivate(n),this}}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,elliptic:572}],501:[function(e,t,r){(function(r){"use strict";var n=e("inherits"),i=e("./md5"),o=e("ripemd160"),a=e("sha.js"),s=e("cipher-base");function c(e){s.call(this,"digest"),this._hash=e,this.buffers=[]}function u(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this.buffers.push(e)},c.prototype._final=function(){var e=r.concat(this.buffers),t=this._hash(e);return this.buffers=null,t},n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new c(i):new u("rmd160"===e||"ripemd160"===e?new o:a(e))}}).call(this,e("buffer").Buffer)},{"./md5":503,buffer:475,"cipher-base":488,inherits:807,ripemd160:983,"sha.js":1051}],502:[function(e,t,r){(function(e){"use strict";var r=new e(4);r.fill(0),t.exports=function(t,n){var i=n(function(t){if(t.length%4!=0){var n=t.length+(4-t.length%4);t=e.concat([t,r],n)}for(var i=new Array(t.length>>>2),o=0,a=0;o<t.length;o+=4,a++)i[a]=t.readInt32LE(o);return i}(t),8*t.length);t=new e(16);for(var o=0;o<i.length;o++)t.writeInt32LE(i[o],o<<2,!0);return t}}).call(this,e("buffer").Buffer)},{buffer:475}],503:[function(e,t,r){"use strict";var n=e("./make-hash");function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,f=0;f<e.length;f+=16){var d=r,h=n,p=i,m=o;r=a(r,n,i,o,e[f+0],7,-680876936),o=a(o,r,n,i,e[f+1],12,-389564586),i=a(i,o,r,n,e[f+2],17,606105819),n=a(n,i,o,r,e[f+3],22,-1044525330),r=a(r,n,i,o,e[f+4],7,-176418897),o=a(o,r,n,i,e[f+5],12,1200080426),i=a(i,o,r,n,e[f+6],17,-1473231341),n=a(n,i,o,r,e[f+7],22,-45705983),r=a(r,n,i,o,e[f+8],7,1770035416),o=a(o,r,n,i,e[f+9],12,-1958414417),i=a(i,o,r,n,e[f+10],17,-42063),n=a(n,i,o,r,e[f+11],22,-1990404162),r=a(r,n,i,o,e[f+12],7,1804603682),o=a(o,r,n,i,e[f+13],12,-40341101),i=a(i,o,r,n,e[f+14],17,-1502002290),r=s(r,n=a(n,i,o,r,e[f+15],22,1236535329),i,o,e[f+1],5,-165796510),o=s(o,r,n,i,e[f+6],9,-1069501632),i=s(i,o,r,n,e[f+11],14,643717713),n=s(n,i,o,r,e[f+0],20,-373897302),r=s(r,n,i,o,e[f+5],5,-701558691),o=s(o,r,n,i,e[f+10],9,38016083),i=s(i,o,r,n,e[f+15],14,-660478335),n=s(n,i,o,r,e[f+4],20,-405537848),r=s(r,n,i,o,e[f+9],5,568446438),o=s(o,r,n,i,e[f+14],9,-1019803690),i=s(i,o,r,n,e[f+3],14,-187363961),n=s(n,i,o,r,e[f+8],20,1163531501),r=s(r,n,i,o,e[f+13],5,-1444681467),o=s(o,r,n,i,e[f+2],9,-51403784),i=s(i,o,r,n,e[f+7],14,1735328473),r=c(r,n=s(n,i,o,r,e[f+12],20,-1926607734),i,o,e[f+5],4,-378558),o=c(o,r,n,i,e[f+8],11,-2022574463),i=c(i,o,r,n,e[f+11],16,1839030562),n=c(n,i,o,r,e[f+14],23,-35309556),r=c(r,n,i,o,e[f+1],4,-1530992060),o=c(o,r,n,i,e[f+4],11,1272893353),i=c(i,o,r,n,e[f+7],16,-155497632),n=c(n,i,o,r,e[f+10],23,-1094730640),r=c(r,n,i,o,e[f+13],4,681279174),o=c(o,r,n,i,e[f+0],11,-358537222),i=c(i,o,r,n,e[f+3],16,-722521979),n=c(n,i,o,r,e[f+6],23,76029189),r=c(r,n,i,o,e[f+9],4,-640364487),o=c(o,r,n,i,e[f+12],11,-421815835),i=c(i,o,r,n,e[f+15],16,530742520),r=u(r,n=c(n,i,o,r,e[f+2],23,-995338651),i,o,e[f+0],6,-198630844),o=u(o,r,n,i,e[f+7],10,1126891415),i=u(i,o,r,n,e[f+14],15,-1416354905),n=u(n,i,o,r,e[f+5],21,-57434055),r=u(r,n,i,o,e[f+12],6,1700485571),o=u(o,r,n,i,e[f+3],10,-1894986606),i=u(i,o,r,n,e[f+10],15,-1051523),n=u(n,i,o,r,e[f+1],21,-2054922799),r=u(r,n,i,o,e[f+8],6,1873313359),o=u(o,r,n,i,e[f+15],10,-30611744),i=u(i,o,r,n,e[f+6],15,-1560198380),n=u(n,i,o,r,e[f+13],21,1309151649),r=u(r,n,i,o,e[f+4],6,-145523070),o=u(o,r,n,i,e[f+11],10,-1120210379),i=u(i,o,r,n,e[f+2],15,718787259),n=u(n,i,o,r,e[f+9],21,-343485551),r=l(r,d),n=l(n,h),i=l(i,p),o=l(o,m)}return[r,n,i,o]}function o(e,t,r,n,i,o){return l((a=l(l(t,e),l(n,o)))<<(s=i)|a>>>32-s,r);var a,s}function a(e,t,r,n,i,a,s){return o(t&r|~t&n,e,t,i,a,s)}function s(e,t,r,n,i,a,s){return o(t&n|r&~n,e,t,i,a,s)}function c(e,t,r,n,i,a,s){return o(t^r^n,e,t,i,a,s)}function u(e,t,r,n,i,a,s){return o(r^(t|~n),e,t,i,a,s)}function l(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return n(e,i)}},{"./make-hash":502}],504:[function(e,t,r){var n=function(e){function t(){this.fetch=!1}return t.prototype=e,new t}("undefined"!=typeof self?self:this);(function(e){!function(e){if(!e.fetch){var t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,n="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};p.prototype.append=function(e,t){e=f(e),t=d(t);var r=this.map[e];this.map[e]=r?r+","+t:t},p.prototype.delete=function(e){delete this.map[f(e)]},p.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},p.prototype.set=function(e,t){this.map[f(e)]=d(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var l=[301,302,303,307,308];x.redirect=function(e,t){if(-1===l.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=w,e.Response=x,e.fetch=function(e,t){return new Promise((function(r,i){var o=new w(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new x(i,n))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&n&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===o._bodyInit?null:o._bodyInit)}))},e.fetch.polyfill=!0}function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=y(t);return t.readAsArrayBuffer(e),r}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(n&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(o&&n&&s(e))this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!o||!ArrayBuffer.prototype.isPrototypeOf(e)&&!c(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=b(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,n=m(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=y(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}function w(e,t){var r,n,i=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),u.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}}(void 0!==e?e:this)}).call(n,void 0);var i=n.fetch;i.Response=n.Response,i.Request=n.Request,i.Headers=n.Headers,"object"==typeof t&&t.exports&&(t.exports=i,t.exports.default=i)},{}],505:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return o};var a=e("pbkdf2");r.pbkdf2=a.pbkdf2,r.pbkdf2Sync=a.pbkdf2Sync;var s=e("browserify-cipher");r.Cipher=s.Cipher,r.createCipher=s.createCipher,r.Cipheriv=s.Cipheriv,r.createCipheriv=s.createCipheriv,r.Decipher=s.Decipher,r.createDecipher=s.createDecipher,r.Decipheriv=s.Decipheriv,r.createDecipheriv=s.createDecipheriv,r.getCiphers=s.getCiphers,r.listCiphers=s.listCiphers;var c=e("diffie-hellman");r.DiffieHellmanGroup=c.DiffieHellmanGroup,r.createDiffieHellmanGroup=c.createDiffieHellmanGroup,r.getDiffieHellman=c.getDiffieHellman,r.createDiffieHellman=c.createDiffieHellman,r.DiffieHellman=c.DiffieHellman;var u=e("browserify-sign");r.createSign=u.createSign,r.Sign=u.Sign,r.createVerify=u.createVerify,r.Verify=u.Verify,r.createECDH=e("create-ecdh");var l=e("public-encrypt");r.publicEncrypt=l.publicEncrypt,r.privateEncrypt=l.privateEncrypt,r.publicDecrypt=l.publicDecrypt,r.privateDecrypt=l.privateDecrypt;var f=e("randomfill");r.randomFill=f.randomFill,r.randomFillSync=f.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":443,"browserify-sign":469,"browserify-sign/algos":466,"create-ecdh":500,"create-hash":501,"create-hmac":506,"diffie-hellman":559,pbkdf2:941,"public-encrypt":954,randombytes:508,randomfill:965}],506:[function(e,t,r){arguments[4][472][0].apply(r,arguments)},{"./legacy":507,"cipher-base":488,"create-hash/md5":503,dup:472,inherits:807,ripemd160:983,"safe-buffer":1037,"sha.js":1051}],507:[function(e,t,r){arguments[4][473][0].apply(r,arguments)},{"cipher-base":488,dup:473,inherits:807,"safe-buffer":1037}],508:[function(e,t,r){(function(r,n){"use strict";var i=e("safe-buffer").Buffer,o=n.crypto||n.msCrypto;o&&o.getRandomValues?t.exports=function(e,t){if(e>65536)throw new Error("requested too many random bytes");var a=new n.Uint8Array(e);e>0&&o.getRandomValues(a);var s=i.from(a.buffer);return"function"==typeof t?r.nextTick((function(){t(null,s)})):s}:t.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952,"safe-buffer":1037}],509:[function(e,t,r){var n;n=function(e){return function(){var t=e,r=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],c=[],u=[],l=[],f=[],d=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var p=n^n<<1^n<<2^n<<3^n<<4;p=p>>>8^255&p^99,i[r]=p,o[p]=r;var m=e[r],y=e[m],g=e[y],b=257*e[p]^16843008*p;a[r]=b<<24|b>>>8,s[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,u[r]=b,b=16843009*g^65537*y^257*m^16843008*r,l[p]=b<<24|b>>>8,f[p]=b<<16|b>>>16,d[p]=b<<8|b>>>24,h[p]=b,r?(r=m^e[e[e[g^m]]],n^=e[e[n]]):r=n=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],a=0;a<n;a++)if(a<r)o[a]=t[a];else{var s=o[a-1];a%r?r>6&&a%r==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=p[a/r|0]<<24),o[a]=o[a-r]^s}for(var c=this._invKeySchedule=[],u=0;u<n;u++)a=n-u,s=u%4?o[a]:o[a-4],c[u]=u<4||a<=4?s:l[i[s>>>24]]^f[i[s>>>16&255]]^d[i[s>>>8&255]]^h[i[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,u,i)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,f,d,h,o),r=e[t+1],e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var c=this._nRounds,u=e[t]^r[0],l=e[t+1]^r[1],f=e[t+2]^r[2],d=e[t+3]^r[3],h=4,p=1;p<c;p++){var m=n[u>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&d]^r[h++],y=n[l>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&u]^r[h++],g=n[f>>>24]^i[d>>>16&255]^o[u>>>8&255]^a[255&l]^r[h++],b=n[d>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&f]^r[h++];u=m,l=y,f=g,d=b}m=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^r[h++],y=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^r[h++],g=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^r[h++],b=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^r[h++],e[t]=m,e[t+1]=y,e[t+2]=g,e[t+3]=b},keySize:8});t.AES=r._createHelper(m)}(),e.AES},"object"==typeof r?t.exports=r=n(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511,"./enc-base64":512,"./evpkdf":514,"./md5":519}],510:[function(e,t,r){var n;n=function(e){var t,r,n,i,o,a,s,c,u,l,f,d,h,p,m,y,g,b;e.lib.Cipher||(n=(r=(t=e).lib).Base,i=r.WordArray,o=r.BufferedBlockAlgorithm,(a=t.enc).Utf8,s=a.Base64,c=t.algo.EvpKDF,u=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:y}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),l=t.mode={},f=r.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=l.CBC=function(){var e=f.extend();function t(e,t,r){var n=this._iv;if(n){var i=n;this._iv=void 0}else i=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=i[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(o);var c=i.create(a,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:h}),reset:function(){u.reset.call(this);var e=this.cfg,t=e.iv,r=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else n=r.createDecryptor,this._minBufferSize=1;this._mode=n.call(r,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),p=r.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,r=e.salt;if(r)var n=i.create([1398893684,1701076831]).concat(r).concat(t);else n=t;return n.toString(s)},parse:function(e){var t=s.parse(e),r=t.words;if(1398893684==r[0]&&1701076831==r[1]){var n=i.create(r.slice(2,4));r.splice(0,4),t.sigBytes-=16}return p.create({ciphertext:t,salt:n})}},y=r.SerializableCipher=n.extend({cfg:n.extend({format:m}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return p.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(r,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=(t.kdf={}).OpenSSL={execute:function(e,t,r,n){n||(n=i.random(8));var o=c.create({keySize:t+r}).compute(e,n),a=i.create(o.words.slice(t),4*r);return o.sigBytes=4*t,p.create({key:o,iv:a,salt:n})}},b=r.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:g}),encrypt:function(e,t,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=y.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,y.decrypt.call(this,e,t,i.key,n)}}))},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],511:[function(e,t,r){var n;n=function(){var e=e||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var l=0;l<c;l+=o)this._doProcessBlock(n,l);var f=n.splice(0,c);r.sigBytes-=u}return new a.init(f,u)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(i.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}}),n.algo={});return n}(Math);return e},"object"==typeof r?t.exports=r=n():"function"==typeof define&&define.amd?define([],n):this.CryptoJS=n()},{}],512:[function(e,t,r){var n;n=function(e){var t,r;return r=(t=e).lib.WordArray,t.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|c)<<24-o%4*8,o++}return r.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],513:[function(e,t,r){var n;n=function(e){return function(){var t=e,r=t.lib.WordArray,n=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return r.create(n,2*t)}},n.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],o=0;o<r;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,n=[],o=0;o<t;o++)n[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return r.create(n,2*t)}}}(),e.enc.Utf16},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],514:[function(e,t,r){var n;n=function(e){var t,r,n,i,o,a,s;return n=(r=(t=e).lib).Base,i=r.WordArray,a=(o=t.algo).MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=r.hasher.create(),o=i.create(),a=o.words,s=r.keySize,c=r.iterations;a.length<s;){u&&n.update(u);var u=n.update(e).finalize(t);n.reset();for(var l=1;l<c;l++)u=n.finalize(u),n.reset();o.concat(u)}return o.sigBytes=4*s,o}}),t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)},e.EvpKDF},"object"==typeof r?t.exports=r=n(e("./core"),e("./sha1"),e("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],n):n(this.CryptoJS)},{"./core":511,"./hmac":516,"./sha1":535}],515:[function(e,t,r){var n;n=function(e){var t,r,n;return r=(t=e).lib.CipherParams,n=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(n)},parse:function(e){var t=n.parse(e);return r.create({ciphertext:t})}},e.format.Hex},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],516:[function(e,t,r){var n;n=function(e){var t,r,n;r=(t=e).lib.Base,n=t.enc.Utf8,t.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<r;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],517:[function(e,t,r){var n;n=function(e){return e},"object"==typeof r?t.exports=r=n(e("./core"),e("./x64-core"),e("./lib-typedarrays"),e("./enc-utf16"),e("./enc-base64"),e("./md5"),e("./sha1"),e("./sha256"),e("./sha224"),e("./sha512"),e("./sha384"),e("./sha3"),e("./ripemd160"),e("./hmac"),e("./pbkdf2"),e("./evpkdf"),e("./cipher-core"),e("./mode-cfb"),e("./mode-ctr"),e("./mode-ctr-gladman"),e("./mode-ofb"),e("./mode-ecb"),e("./pad-ansix923"),e("./pad-iso10126"),e("./pad-iso97971"),e("./pad-zeropadding"),e("./pad-nopadding"),e("./format-hex"),e("./aes"),e("./tripledes"),e("./rc4"),e("./rabbit"),e("./rabbit-legacy")):"function"==typeof define&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],n):this.CryptoJS=this.CryptoJS},{"./aes":509,"./cipher-core":510,"./core":511,"./enc-base64":512,"./enc-utf16":513,"./evpkdf":514,"./format-hex":515,"./hmac":516,"./lib-typedarrays":518,"./md5":519,"./mode-cfb":520,"./mode-ctr":522,"./mode-ctr-gladman":521,"./mode-ecb":523,"./mode-ofb":524,"./pad-ansix923":525,"./pad-iso10126":526,"./pad-iso97971":527,"./pad-nopadding":528,"./pad-zeropadding":529,"./pbkdf2":530,"./rabbit":532,"./rabbit-legacy":531,"./rc4":533,"./ripemd160":534,"./sha1":535,"./sha224":536,"./sha256":537,"./sha3":538,"./sha384":539,"./sha512":540,"./tripledes":541,"./x64-core":542}],518:[function(e,t,r){var n;n=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,r=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],i=0;i<t;i++)n[i>>>2]|=e[i]<<24-i%4*8;r.call(this,n,t)}else r.apply(this,arguments)}).prototype=t}}(),e.lib.WordArray},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],519:[function(e,t,r){var n;n=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],m=e[t+4],y=e[t+5],g=e[t+6],b=e[t+7],v=e[t+8],w=e[t+9],_=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],E=e[t+14],A=e[t+15],T=o[0],C=o[1],O=o[2],j=o[3];T=u(T,C,O,j,a,7,s[0]),j=u(j,T,C,O,c,12,s[1]),O=u(O,j,T,C,h,17,s[2]),C=u(C,O,j,T,p,22,s[3]),T=u(T,C,O,j,m,7,s[4]),j=u(j,T,C,O,y,12,s[5]),O=u(O,j,T,C,g,17,s[6]),C=u(C,O,j,T,b,22,s[7]),T=u(T,C,O,j,v,7,s[8]),j=u(j,T,C,O,w,12,s[9]),O=u(O,j,T,C,_,17,s[10]),C=u(C,O,j,T,x,22,s[11]),T=u(T,C,O,j,k,7,s[12]),j=u(j,T,C,O,S,12,s[13]),O=u(O,j,T,C,E,17,s[14]),T=l(T,C=u(C,O,j,T,A,22,s[15]),O,j,c,5,s[16]),j=l(j,T,C,O,g,9,s[17]),O=l(O,j,T,C,x,14,s[18]),C=l(C,O,j,T,a,20,s[19]),T=l(T,C,O,j,y,5,s[20]),j=l(j,T,C,O,_,9,s[21]),O=l(O,j,T,C,A,14,s[22]),C=l(C,O,j,T,m,20,s[23]),T=l(T,C,O,j,w,5,s[24]),j=l(j,T,C,O,E,9,s[25]),O=l(O,j,T,C,p,14,s[26]),C=l(C,O,j,T,v,20,s[27]),T=l(T,C,O,j,S,5,s[28]),j=l(j,T,C,O,h,9,s[29]),O=l(O,j,T,C,b,14,s[30]),T=f(T,C=l(C,O,j,T,k,20,s[31]),O,j,y,4,s[32]),j=f(j,T,C,O,v,11,s[33]),O=f(O,j,T,C,x,16,s[34]),C=f(C,O,j,T,E,23,s[35]),T=f(T,C,O,j,c,4,s[36]),j=f(j,T,C,O,m,11,s[37]),O=f(O,j,T,C,b,16,s[38]),C=f(C,O,j,T,_,23,s[39]),T=f(T,C,O,j,S,4,s[40]),j=f(j,T,C,O,a,11,s[41]),O=f(O,j,T,C,p,16,s[42]),C=f(C,O,j,T,g,23,s[43]),T=f(T,C,O,j,w,4,s[44]),j=f(j,T,C,O,k,11,s[45]),O=f(O,j,T,C,A,16,s[46]),T=d(T,C=f(C,O,j,T,h,23,s[47]),O,j,a,6,s[48]),j=d(j,T,C,O,b,10,s[49]),O=d(O,j,T,C,E,15,s[50]),C=d(C,O,j,T,y,21,s[51]),T=d(T,C,O,j,k,6,s[52]),j=d(j,T,C,O,p,10,s[53]),O=d(O,j,T,C,_,15,s[54]),C=d(C,O,j,T,c,21,s[55]),T=d(T,C,O,j,v,6,s[56]),j=d(j,T,C,O,A,10,s[57]),O=d(O,j,T,C,g,15,s[58]),C=d(C,O,j,T,S,21,s[59]),T=d(T,C,O,j,m,6,s[60]),j=d(j,T,C,O,x,10,s[61]),O=d(O,j,T,C,h,15,s[62]),C=d(C,O,j,T,w,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+C|0,o[2]=o[2]+O|0,o[3]=o[3]+j|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(c),r.HmacMD5=o._createHmacHelper(c)}(Math),e.MD5},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],520:[function(e,t,r){var n;n=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);r.call(this,e,t,i,n),this._prevBlock=o}}),t}(),e.mode.CFB},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],521:[function(e,t,r){var n;n=function(e){
|
||
/** @preserve
|
||
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
||
* derived from CryptoJS.mode.CTR
|
||
* Jan Hruby [email protected]
|
||
*/
|
||
return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255==(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=r(e[0]))&&(e[1]=r(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var c=0;c<i;c++)e[t+c]^=s[c]}});return t.Decryptor=n,t}(),e.mode.CTRGladman},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],522:[function(e,t,r){var n;n=function(e){var t,r;return e.mode.CTR=(r=(t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}}),t.Decryptor=r,t),e.mode.CTR},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],523:[function(e,t,r){var n;n=function(e){var t;return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],524:[function(e,t,r){var n;n=function(e){var t,r;return e.mode.OFB=(r=(t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}}),t.Decryptor=r,t),e.mode.OFB},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],525:[function(e,t,r){var n;n=function(e){return e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],526:[function(e,t,r){var n;n=function(e){return e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],527:[function(e,t,r){var n;n=function(e){return e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],528:[function(e,t,r){var n;n=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],529:[function(e,t,r){var n;n=function(e){return e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){for(var t=e.words,r=e.sigBytes-1;!(t[r>>>2]>>>24-r%4*8&255);)r--;e.sigBytes=r+1}},e.pad.ZeroPadding},"object"==typeof r?t.exports=r=n(e("./core"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511}],530:[function(e,t,r){var n;n=function(e){var t,r,n,i,o,a,s,c;return n=(r=(t=e).lib).Base,i=r.WordArray,a=(o=t.algo).SHA1,s=o.HMAC,c=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var r=this.cfg,n=s.create(r.hasher,e),o=i.create(),a=i.create([1]),c=o.words,u=a.words,l=r.keySize,f=r.iterations;c.length<l;){var d=n.update(t).finalize(a);n.reset();for(var h=d.words,p=h.length,m=d,y=1;y<f;y++){m=n.finalize(m),n.reset();for(var g=m.words,b=0;b<p;b++)h[b]^=g[b]}o.concat(d),u[0]++}return o.sigBytes=4*l,o}}),t.PBKDF2=function(e,t,r){return c.create(r).compute(e,t)},e.PBKDF2},"object"==typeof r?t.exports=r=n(e("./core"),e("./sha1"),e("./hmac")):"function"==typeof define&&define.amd?define(["./core","./sha1","./hmac"],n):n(this.CryptoJS)},{"./core":511,"./hmac":516,"./sha1":535}],531:[function(e,t,r){var n;n=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=r.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;for(n[0]^=u,n[1]^=f,n[2]^=l,n[3]^=d,n[4]^=u,n[5]^=f,n[6]^=l,n[7]^=d,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=r._createHelper(s)}(),e.RabbitLegacy},"object"==typeof r?t.exports=r=n(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511,"./enc-base64":512,"./evpkdf":514,"./md5":519}],532:[function(e,t,r){var n;n=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=r.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=u>>>16|4294901760&l,d=l<<16|65535&u;for(i[0]^=u,i[1]^=f,i[2]^=l,i[3]^=d,i[4]^=u,i[5]^=f,i[6]^=l,i[7]^=d,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[t+n]^=i[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)o[r]=t[r];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,s=n>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,u=((4294901760&n)*n|0)+((65535&n)*n|0);a[r]=c^u}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=r._createHelper(s)}(),e.Rabbit},"object"==typeof r?t.exports=r=n(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511,"./enc-base64":512,"./evpkdf":514,"./md5":519}],533:[function(e,t,r){var n;n=function(e){return function(){var t=e,r=t.lib.StreamCipher,n=t.algo,i=n.RC4=r.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var c=n[i];n[i]=n[o],n[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){r=(r+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=r._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=r._createHelper(a)}(),e.RC4},"object"==typeof r?t.exports=r=n(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511,"./enc-base64":512,"./evpkdf":514,"./md5":519}],534:[function(e,t,r){var n;n=function(e){
|
||
/** @preserve
|
||
(c) 2012 by Cédric Mesnil. All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||
|
||
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/
|
||
return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,h,w,_,x,k,S,E,A,T,C=this._hash.words,O=f.words,j=d.words,P=s.words,M=c.words,I=u.words,N=l.words;for(x=o=C[0],k=a=C[1],S=h=C[2],E=w=C[3],A=_=C[4],r=0;r<80;r+=1)T=o+e[t+P[r]]|0,T+=r<16?p(a,h,w)+O[0]:r<32?m(a,h,w)+O[1]:r<48?y(a,h,w)+O[2]:r<64?g(a,h,w)+O[3]:b(a,h,w)+O[4],T=(T=v(T|=0,I[r]))+_|0,o=_,_=w,w=v(h,10),h=a,a=T,T=x+e[t+M[r]]|0,T+=r<16?b(k,S,E)+j[0]:r<32?g(k,S,E)+j[1]:r<48?y(k,S,E)+j[2]:r<64?m(k,S,E)+j[3]:p(k,S,E)+j[4],T=(T=v(T|=0,N[r]))+A|0,x=A,A=E,E=v(S,10),S=k,k=T;T=C[1]+h+E|0,C[1]=C[2]+w+A|0,C[2]=C[3]+_+x|0,C[3]=C[4]+o+k|0,C[4]=C[0]+a+S|0,C[0]=T},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function m(e,t,r){return e&t|~e&r}function y(e,t,r){return(e|~t)^r}function g(e,t,r){return e&r|t&~r}function b(e,t,r){return e^(t|~r)}function v(e,t){return e<<t|e>>>32-t}r.RIPEMD160=o._createHelper(h),r.HmacRIPEMD160=o._createHmacHelper(h)}(Math),e.RIPEMD160},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],535:[function(e,t,r){var n;n=function(e){var t,r,n,i,o,a,s;return r=(t=e).lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],c=r[4],u=0;u<80;u++){if(u<16)a[u]=0|e[t+u];else{var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+c+a[u];f+=u<20?1518500249+(i&o|~i&s):u<40?1859775393+(i^o^s):u<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,c=s,s=o,o=i<<30|i>>>2,i=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s),e.SHA1},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],536:[function(e,t,r){var n;n=function(e){var t,r,n,i,o;return r=(t=e).lib.WordArray,n=t.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o),e.SHA224},"object"==typeof r?t.exports=r=n(e("./core"),e("./sha256")):"function"==typeof define&&define.amd?define(["./core","./sha256"],n):n(this.CryptoJS)},{"./core":511,"./sha256":537}],537:[function(e,t,r){var n;n=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],c=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),c[i]=r(t.pow(n,1/3)),i++),n++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],d=r[7],h=0;h<64;h++){if(h<16)u[h]=0|e[t+h];else{var p=u[h-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=u[h-2],g=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;u[h]=m+u[h-7]+g+u[h-16]}var b=n&i^n&o^i&o,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[h]+u[h];d=f,f=l,l=s,s=a+w|0,a=o,o=i,i=n,n=w+(v+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(l),r.HmacSHA256=o._createHmacHelper(l)}(Math),e.SHA256},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],538:[function(e,t,r){var n;n=function(e){return function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64.Word,s=r.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=(2*e+3*t)%5;e=t%5,t=n}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,d=0;d<7;d++){if(1&i){var h=(1<<d)-1;h<32?f^=1<<h:s^=1<<h-32}128&i?i=i<<1^113:i<<=1}l[o]=a.create(s,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(C=r[i]).high^=a,C.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var h=0,p=0,m=0;m<5;m++)h^=(C=r[d+5*m]).high,p^=C.low;var y=f[d];y.high=h,y.low=p}for(d=0;d<5;d++){var g=f[(d+4)%5],b=f[(d+1)%5],v=b.high,w=b.low;for(h=g.high^(v<<1|w>>>31),p=g.low^(w<<1|v>>>31),m=0;m<5;m++)(C=r[d+5*m]).high^=h,C.low^=p}for(var _=1;_<25;_++){var x=(C=r[_]).high,k=C.low,S=c[_];S<32?(h=x<<S|k>>>32-S,p=k<<S|x>>>32-S):(h=k<<S-32|x>>>64-S,p=x<<S-32|k>>>64-S);var E=f[u[_]];E.high=h,E.low=p}var A=f[0],T=r[0];for(A.high=T.high,A.low=T.low,d=0;d<5;d++)for(m=0;m<5;m++){var C=r[_=d+5*m],O=f[_],j=f[(d+1)%5+5*m],P=f[(d+2)%5+5*m];C.high=O.high^~j.high&P.high,C.low=O.low^~j.low&P.low}C=r[0];var M=l[s];C.high^=M.high,C.low^=M.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l<c;l++){var f=a[l],d=f.high,h=f.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),u.push(h),u.push(d)}return new i.init(u,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(d),r.HmacSHA3=o._createHmacHelper(d)}(Math),e.SHA3},"object"==typeof r?t.exports=r=n(e("./core"),e("./x64-core")):"function"==typeof define&&define.amd?define(["./core","./x64-core"],n):n(this.CryptoJS)},{"./core":511,"./x64-core":542}],539:[function(e,t,r){var n;n=function(e){var t,r,n,i,o,a,s;return r=(t=e).x64,n=r.Word,i=r.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}}),t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s),e.SHA384},"object"==typeof r?t.exports=r=n(e("./core"),e("./x64-core"),e("./sha512")):"function"==typeof define&&define.amd?define(["./core","./x64-core","./sha512"],n):n(this.CryptoJS)},{"./core":511,"./sha512":540,"./x64-core":542}],540:[function(e,t,r){var n;n=function(e){return function(){var t=e,r=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=s()}();var l=a.SHA512=r.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],f=r[6],d=r[7],h=n.high,p=n.low,m=i.high,y=i.low,g=o.high,b=o.low,v=a.high,w=a.low,_=s.high,x=s.low,k=l.high,S=l.low,E=f.high,A=f.low,T=d.high,C=d.low,O=h,j=p,P=m,M=y,I=g,N=b,B=v,R=w,D=_,L=x,U=k,F=S,q=E,H=A,z=T,K=C,V=0;V<80;V++){var G=u[V];if(V<16)var W=G.high=0|e[t+2*V],Y=G.low=0|e[t+2*V+1];else{var $=u[V-15],J=$.high,Q=$.low,Z=(J>>>1|Q<<31)^(J>>>8|Q<<24)^J>>>7,X=(Q>>>1|J<<31)^(Q>>>8|J<<24)^(Q>>>7|J<<25),ee=u[V-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=u[V-7],ae=oe.high,se=oe.low,ce=u[V-16],ue=ce.high,le=ce.low;W=(W=(W=Z+ae+((Y=X+se)>>>0<X>>>0?1:0))+ne+((Y+=ie)>>>0<ie>>>0?1:0))+ue+((Y+=le)>>>0<le>>>0?1:0),G.high=W,G.low=Y}var fe,de=D&U^~D&q,he=L&F^~L&H,pe=O&P^O&I^P&I,me=j&M^j&N^M&N,ye=(O>>>28|j<<4)^(O<<30|j>>>2)^(O<<25|j>>>7),ge=(j>>>28|O<<4)^(j<<30|O>>>2)^(j<<25|O>>>7),be=(D>>>14|L<<18)^(D>>>18|L<<14)^(D<<23|L>>>9),ve=(L>>>14|D<<18)^(L>>>18|D<<14)^(L<<23|D>>>9),we=c[V],_e=we.high,xe=we.low,ke=z+be+((fe=K+ve)>>>0<K>>>0?1:0),Se=ge+me;z=q,K=H,q=U,H=F,U=D,F=L,D=B+(ke=(ke=(ke=ke+de+((fe+=he)>>>0<he>>>0?1:0))+_e+((fe+=xe)>>>0<xe>>>0?1:0))+W+((fe+=Y)>>>0<Y>>>0?1:0))+((L=R+fe|0)>>>0<R>>>0?1:0)|0,B=I,R=N,I=P,N=M,P=O,M=j,O=ke+(ye+pe+(Se>>>0<ge>>>0?1:0))+((j=fe+Se|0)>>>0<fe>>>0?1:0)|0}p=n.low=p+j,n.high=h+O+(p>>>0<j>>>0?1:0),y=i.low=y+M,i.high=m+P+(y>>>0<M>>>0?1:0),b=o.low=b+N,o.high=g+I+(b>>>0<N>>>0?1:0),w=a.low=w+R,a.high=v+B+(w>>>0<R>>>0?1:0),x=s.low=x+L,s.high=_+D+(x>>>0<L>>>0?1:0),S=l.low=S+F,l.high=k+U+(S>>>0<F>>>0?1:0),A=f.low=A+H,f.high=E+q+(A>>>0<H>>>0?1:0),C=d.low=C+K,d.high=T+z+(C>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=r._createHelper(l),t.HmacSHA512=r._createHmacHelper(l)}(),e.SHA512},"object"==typeof r?t.exports=r=n(e("./core"),e("./x64-core")):"function"==typeof define&&define.amd?define(["./core","./x64-core"],n):n(this.CryptoJS)},{"./core":511,"./x64-core":542}],541:[function(e,t,r){var n;n=function(e){return function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],r=0;r<56;r++){var n=a[r]-1;t[r]=e[n>>>5]>>>31-n%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var u=i[o]=[],l=c[o];for(r=0;r<24;r++)u[r/6|0]|=t[(s[r]-1+l)%28]<<31-r%6,u[4+(r/6|0)]|=t[28+(s[r+24]-1+l)%28]<<31-r%6;for(u[0]=u[0]<<1|u[0]>>>31,r=1;r<7;r++)u[r]=u[r]>>>4*(r-1)+3;u[7]=u[7]<<5|u[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=u[c][((a^i[c])&l[c])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(f);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=f.createEncryptor(n.create(e.slice(0,2))),this._des2=f.createEncryptor(n.create(e.slice(2,4))),this._des3=f.createEncryptor(n.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),e.TripleDES},"object"==typeof r?t.exports=r=n(e("./core"),e("./enc-base64"),e("./md5"),e("./evpkdf"),e("./cipher-core")):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],n):n(this.CryptoJS)},{"./cipher-core":510,"./core":511,"./enc-base64":512,"./evpkdf":514,"./md5":519}],542:[function(e,t,r){var n;n=function(e){var t,r,n,i,o;return r=(t=e).lib,n=r.Base,i=r.WordArray,(o=t.x64={}).Word=n.extend({init:function(e,t){this.high=e,this.low=t}}),o.WordArray=n.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var o=e[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var e=n.clone.call(this),t=e.words=this.words.slice(0),r=t.length,i=0;i<r;i++)t[i]=t[i].clone();return e}}),e},"object"==typeof r?t.exports=r=n(e("./core")):"function"==typeof define&&define.amd?define(["./core"],n):n(this.CryptoJS)},{"./core":511}],543:[function(e,t,r){t.exports={AED:{code:"AED",symbol:"د.إ.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},AFN:{code:"AFN",symbol:"؋",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},ALL:{code:"ALL",symbol:"Lek",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},AMD:{code:"AMD",symbol:"֏",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},ANG:{code:"ANG",symbol:"ƒ",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},AOA:{code:"AOA",symbol:"Kz",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},ARS:{code:"ARS",symbol:"$",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},AUD:{code:"AUD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},AWG:{code:"AWG",symbol:"ƒ",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},AZN:{code:"AZN",symbol:"₼",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},BAM:{code:"BAM",symbol:"КМ",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},BBD:{code:"BBD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},BDT:{code:"BDT",symbol:"৳",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:0},BGN:{code:"BGN",symbol:"лв.",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},BHD:{code:"BHD",symbol:"د.ب.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3},BIF:{code:"BIF",symbol:"FBu",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},BMD:{code:"BMD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},BND:{code:"BND",symbol:"$",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},BOB:{code:"BOB",symbol:"Bs",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},BRL:{code:"BRL",symbol:"R$",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},BSD:{code:"BSD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},BTC:{code:"BTC",symbol:"Ƀ",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},BTN:{code:"BTN",symbol:"Nu.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:1},BWP:{code:"BWP",symbol:"P",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},BYR:{code:"BYR",symbol:"р.",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},BZD:{code:"BZD",symbol:"BZ$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},CAD:{code:"CAD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},CDF:{code:"CDF",symbol:"FC",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},CHF:{code:"CHF",symbol:"CHF",thousandsSeparator:"'",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},CLP:{code:"CLP",symbol:"$",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},CNY:{code:"CNY",symbol:"¥",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},COP:{code:"COP",symbol:"$",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},CRC:{code:"CRC",symbol:"₡",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},CUC:{code:"CUC",symbol:"CUC",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},CUP:{code:"CUP",symbol:"$MN",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},CVE:{code:"CVE",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},CZK:{code:"CZK",symbol:"Kč",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},DJF:{code:"DJF",symbol:"Fdj",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},DKK:{code:"DKK",symbol:"kr.",thousandsSeparator:"",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},DOP:{code:"DOP",symbol:"RD$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},DZD:{code:"DZD",symbol:"د.ج.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},EGP:{code:"EGP",symbol:"ج.م.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},ERN:{code:"ERN",symbol:"Nfk",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},ETB:{code:"ETB",symbol:"ETB",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},EUR:{code:"EUR",symbol:"€",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},FJD:{code:"FJD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},FKP:{code:"FKP",symbol:"£",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},GBP:{code:"GBP",symbol:"£",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},GEL:{code:"GEL",symbol:"Lari",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},GHS:{code:"GHS",symbol:"₵",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},GIP:{code:"GIP",symbol:"£",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},GMD:{code:"GMD",symbol:"D",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},GNF:{code:"GNF",symbol:"FG",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},GTQ:{code:"GTQ",symbol:"Q",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},GYD:{code:"GYD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},HKD:{code:"HKD",symbol:"HK$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},HNL:{code:"HNL",symbol:"L.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},HRK:{code:"HRK",symbol:"kn",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},HTG:{code:"HTG",symbol:"G",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},HUF:{code:"HUF",symbol:"Ft",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},IDR:{code:"IDR",symbol:"Rp",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},ILS:{code:"ILS",symbol:"₪",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},INR:{code:"INR",symbol:"₹",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},IQD:{code:"IQD",symbol:"د.ع.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},IRR:{code:"IRR",symbol:"﷼",thousandsSeparator:",",decimalSeparator:"/",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},ISK:{code:"ISK",symbol:"kr.",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:0},JMD:{code:"JMD",symbol:"J$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},JOD:{code:"JOD",symbol:"د.ا.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3},JPY:{code:"JPY",symbol:"¥",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},KES:{code:"KES",symbol:"KSh",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},KGS:{code:"KGS",symbol:"сом",thousandsSeparator:" ",decimalSeparator:"-",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},KHR:{code:"KHR",symbol:"៛",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},KMF:{code:"KMF",symbol:"CF",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},KPW:{code:"KPW",symbol:"₩",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},KRW:{code:"KRW",symbol:"₩",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},KWD:{code:"KWD",symbol:"د.ك.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3},KYD:{code:"KYD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},KZT:{code:"KZT",symbol:"₸",thousandsSeparator:" ",decimalSeparator:"-",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},LAK:{code:"LAK",symbol:"₭",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},LBP:{code:"LBP",symbol:"ل.ل.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},LKR:{code:"LKR",symbol:"₨",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:0},LRD:{code:"LRD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},LSL:{code:"LSL",symbol:"M",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},LYD:{code:"LYD",symbol:"د.ل.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:3},MAD:{code:"MAD",symbol:"د.م.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},MDL:{code:"MDL",symbol:"lei",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},MGA:{code:"MGA",symbol:"Ar",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},MKD:{code:"MKD",symbol:"ден.",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},MMK:{code:"MMK",symbol:"K",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MNT:{code:"MNT",symbol:"₮",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MOP:{code:"MOP",symbol:"MOP$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MRO:{code:"MRO",symbol:"UM",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MTL:{code:"MTL",symbol:"₤",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MUR:{code:"MUR",symbol:"₨",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MVR:{code:"MVR",symbol:"MVR",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:1},MWK:{code:"MWK",symbol:"MK",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MXN:{code:"MXN",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MYR:{code:"MYR",symbol:"RM",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},MZN:{code:"MZN",symbol:"MT",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},NAD:{code:"NAD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},NGN:{code:"NGN",symbol:"₦",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},NIO:{code:"NIO",symbol:"C$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},NOK:{code:"NOK",symbol:"kr",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},NPR:{code:"NPR",symbol:"₨",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},NZD:{code:"NZD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},OMR:{code:"OMR",symbol:"﷼",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3},PAB:{code:"PAB",symbol:"B/.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},PEN:{code:"PEN",symbol:"S/.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},PGK:{code:"PGK",symbol:"K",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},PHP:{code:"PHP",symbol:"₱",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},PKR:{code:"PKR",symbol:"₨",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},PLN:{code:"PLN",symbol:"zł",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},PYG:{code:"PYG",symbol:"₲",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},QAR:{code:"QAR",symbol:"﷼",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},RON:{code:"RON",symbol:"lei",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},RSD:{code:"RSD",symbol:"Дин.",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},RUB:{code:"RUB",symbol:"₽",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},RWF:{code:"RWF",symbol:"RWF",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},SAR:{code:"SAR",symbol:"﷼",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},SBD:{code:"SBD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SCR:{code:"SCR",symbol:"₨",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SDD:{code:"SDD",symbol:"LSd",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SDG:{code:"SDG",symbol:"£",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SEK:{code:"SEK",symbol:"kr",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},SGD:{code:"SGD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SHP:{code:"SHP",symbol:"£",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SLL:{code:"SLL",symbol:"Le",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SOS:{code:"SOS",symbol:"S",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SRD:{code:"SRD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},STD:{code:"STD",symbol:"Db",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SVC:{code:"SVC",symbol:"₡",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},SYP:{code:"SYP",symbol:"£",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},SZL:{code:"SZL",symbol:"E",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},THB:{code:"THB",symbol:"฿",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},TJS:{code:"TJS",symbol:"TJS",thousandsSeparator:" ",decimalSeparator:";",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},TMT:{code:"TMT",symbol:"m",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},TND:{code:"TND",symbol:"د.ت.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:3},TOP:{code:"TOP",symbol:"T$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},TRY:{code:"TRY",symbol:"TL",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},TTD:{code:"TTD",symbol:"TT$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},TVD:{code:"TVD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},TWD:{code:"TWD",symbol:"NT$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},TZS:{code:"TZS",symbol:"TSh",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},UAH:{code:"UAH",symbol:"₴",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},UGX:{code:"UGX",symbol:"USh",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},USD:{code:"USD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},UYU:{code:"UYU",symbol:"$U",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},UZS:{code:"UZS",symbol:"сўм",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},VEB:{code:"VEB",symbol:"Bs.",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},VEF:{code:"VEF",symbol:"Bs. F.",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},VND:{code:"VND",symbol:"₫",thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:1},VUV:{code:"VUV",symbol:"VT",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:0},WST:{code:"WST",symbol:"WS$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},XAF:{code:"XAF",symbol:"F",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},XCD:{code:"XCD",symbol:"$",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},XBT:{code:"XBT",symbol:"Ƀ",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},XOF:{code:"XOF",symbol:"F",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},XPF:{code:"XPF",symbol:"F",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},YER:{code:"YER",symbol:"﷼",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},ZAR:{code:"ZAR",symbol:"R",thousandsSeparator:" ",decimalSeparator:",",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},ZMW:{code:"ZMW",symbol:"ZK",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},WON:{code:"WON",symbol:"₩",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2}}},{}],544:[function(e,t,r){var n=e("./index");t.exports=n.currencies},{"./index":545}],545:[function(e,t,r){var n=e("accounting"),i=e("object-assign"),o=e("locale-currency"),a=e("./currencies.json"),s=e("./localeFormats.json"),c={symbol:"",thousandsSeparator:",",decimalSeparator:".",symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,decimalDigits:2},u={},l=[{symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,format:{pos:"%s%v",neg:"-%s%v",zero:"%s%v"}},{symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!0,format:{pos:"%s %v",neg:"-%s %v",zero:"%s %v"}},{symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!1,format:{pos:"%v%s",neg:"-%v%s",zero:"%v%s"}},{symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,format:{pos:"%v %s",neg:"-%v %s",zero:"%v %s"}}];function f(e){return a[e]}function d(e){return void 0===e}t.exports={defaultCurrency:c,get currencies(){return Object.keys(a).map((function(e){return a[e]}))},findCurrency:f,format:function(e,t){var r=t.code||t.locale&&o.getCurrency(t.locale),a=/^([a-z]+)([_-]([a-z]+))?$/i.exec(t.locale)||[],h=a[1],p=a[3],m=i({},u,s[h]||{},s[h+"-"+p]||{}),y=i({},c,f(r),m),g=y.symbolOnLeft,b=y.spaceBetweenAmountAndSymbol,v=l.filter((function(e){return e.symbolOnLeft==g&&e.spaceBetweenAmountAndSymbol==b}))[0].format;return n.formatMoney(e,{symbol:d(t.symbol)?y.symbol:t.symbol,decimal:d(t.decimal)?y.decimalSeparator:t.decimal,thousand:d(t.thousand)?y.thousandsSeparator:t.thousand,precision:"number"==typeof t.precision?t.precision:y.decimalDigits,format:["string","object"].indexOf(typeof t.format)>-1?t.format:v})},unformat:function(e,t){var r=t.code||t.locale&&o.getCurrency(t.locale),a=s[t.locale]||u,l=i({},c,f(r),a),h=d(t.decimal)?l.decimalSeparator:t.decimal;return n.unformat(e,h)}}},{"./currencies.json":543,"./localeFormats.json":546,accounting:328,"locale-currency":839,"object-assign":897}],546:[function(e,t,r){t.exports={de:{thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},el:{symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,thousandsSeparator:".",decimalSeparator:",",decimalDigits:2},"en-IE":{symbolOnLeft:!0,thousandsSeparator:",",decimalSeparator:".",spaceBetweenAmountAndSymbol:!0,decimalDigits:2},es:{thousandsSeparator:".",decimalSeparator:",",symbolOnLeft:!1,spaceBetweenAmountAndSymbol:!0,decimalDigits:2},it:{symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,thousandsSeparator:".",decimalSeparator:",",decimalDigits:2},nl:{symbolOnLeft:!0,spaceBetweenAmountAndSymbol:!1,thousandsSeparator:".",decimalSeparator:",",decimalDigits:2}}},{}],547:[function(e,t,r){var n=e("through"),i=e("duplexer"),o=e("debounce");t.exports=function(e,t){var r=n(o((function(e){a.queue(e)}),e||100,t)),a=n();return i(r,a)}},{debounce:548,duplexer:571,through:1085}],548:[function(e,t,r){t.exports=function(e,t,r){var n,i,o,a,s;function c(){var u=Date.now()-a;u<t&&u>=0?n=setTimeout(c,t-u):(n=null,r||(s=e.apply(o,i),o=i=null))}null==t&&(t=100);var u=function(){o=this,i=arguments,a=Date.now();var u=r&&!n;return n||(n=setTimeout(c,t)),u&&(s=e.apply(o,i),o=i=null),s};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.flush=function(){n&&(s=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},u}},{}],549:[function(e,t,r){var n=Array.prototype.slice,i=e("./lib/keys.js"),o=e("./lib/is_arguments.js"),a=t.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:function(e,t,r){var u,l;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e))return!!o(t)&&(e=n.call(e),t=n.call(t),a(e,t,r));if(c(e)){if(!c(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=i(e),d=i(t)}catch(e){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),u=f.length-1;u>=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(l=f[u],!a(e[l],t[l],r))return!1;return typeof e==typeof t}(e,t,r))};function s(e){return null==e}function c(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},{"./lib/is_arguments.js":550,"./lib/keys.js":551}],550:[function(e,t,r){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(r=t.exports=n?i:o).supported=i,r.unsupported=o},{}],551:[function(e,t,r){function n(e){var t=[];for(var r in e)t.push(r);return t}(t.exports="function"==typeof Object.keys?Object.keys:n).shim=n},{}],552:[function(e,t,r){t.exports=function e(t){Object.freeze(t);var r="function"==typeof t,n=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach((function(i){!n.call(t,i)||r&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||e(t[i])})),t}},{}],553:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":554,"./des/cipher":555,"./des/des":556,"./des/ede":557,"./des/utils":558}],554:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits"),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];for(o._update.call(this,a,0,r,n),s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{for(o._update.call(this,e,t,r,n),s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},{inherits:807,"minimalistic-assert":876}],555:[function(e,t,r){"use strict";var n=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":876}],556:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits"),o=e("../des"),a=o.utils,s=o.Cipher;function c(){this.tmp=new Array(2),this.keys=null}function u(e){s.call(this,e);var t=new c;this._desState=t,this.deriveKeys(t,e.key)}i(u,s),t.exports=u,u.create=function(e){return new u(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=a.readUInt32BE(t,0),i=a.readUInt32BE(t,4);a.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=l[o>>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},u.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var o=t,s=r,c=0;c<e.keys.length;c+=2){var u=e.keys[c],l=e.keys[c+1];a.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(u,l),d=s;s=(o^a.permute(f))>>>0,o=d}a.rip(s,o,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];a.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var f=a.substitute(u,l),d=o;o=(s^a.permute(f))>>>0,s=d}a.rip(o,s,n,i)}},{"../des":553,inherits:807,"minimalistic-assert":876}],557:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits"),o=e("../des"),a=o.Cipher,s=o.DES;function c(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}function u(e){a.call(this,e);var t=new c(this.type,this.options.key);this._edeState=t}i(u,a),t.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=s.prototype._pad,u.prototype._unpad=s.prototype._unpad},{"../des":553,inherits:807,"minimalistic-assert":876}],558:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},r.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,c=0;c<s;c++)o<<=1,o|=e>>>n[c]&1;for(c=s;c<n.length;c++)a<<=1,a|=t>>>n[c]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++)r<<=4,r|=i[64*n+(e>>>18-6*n&63)];for(n=0;n<4;n++)r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)];return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},{}],559:[function(e,t,r){(function(t){var n=e("./lib/generatePrime"),i=e("./lib/primes.json"),o=e("./lib/dh"),a={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)},r.createDiffieHellman=r.DiffieHellman=function e(r,i,s,c){return t.isBuffer(i)||void 0===a[i]?e(r,"binary",i,s):(i=i||"binary",c=c||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,c)),"number"==typeof r?new o(n(r,s),s,!0):(t.isBuffer(r)||(r=new t(r,i)),new o(r,s,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":560,"./lib/generatePrime":561,"./lib/primes.json":562,buffer:475}],560:[function(e,t,r){(function(r){var n=e("bn.js"),i=new(e("miller-rabin")),o=new n(24),a=new n(11),s=new n(10),c=new n(3),u=new n(7),l=e("./generatePrime"),f=e("randombytes");function d(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new n(e),this}function h(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new n(e),this}t.exports=m;var p={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function y(e,t){var n=new r(e.toArray());return t?n.toString(t):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var f,d=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!i.test(e))return d+=1,d+="02"===r||"05"===r?8:4,p[n]=d,d;switch(i.test(e.shrn(1))||(d+=2),r){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(f=e.mod(s)).cmp(c)&&f.cmp(u)&&(d+=8);break;default:d+=4}return p[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new r(t.toArray()),o=this.getPrime();if(i.length<o.length){var a=new r(o.length-i.length);a.fill(0),i=r.concat([a,i])}return i},m.prototype.getPublicKey=function(e){return y(this._pub,e)},m.prototype.getPrivateKey=function(e){return y(this._priv,e)},m.prototype.getPrime=function(e){return y(this.__prime,e)},m.prototype.getGenerator=function(e){return y(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.__gen=e,this._gen=new n(e),this}}).call(this,e("buffer").Buffer)},{"./generatePrime":561,"bn.js":439,buffer:475,"miller-rabin":875,randombytes:563}],561:[function(e,t,r){var n=e("randombytes");t.exports=g,g.simpleSieve=m,g.fermatTest=y;var i=e("bn.js"),o=new i(24),a=new(e("miller-rabin")),s=new i(1),c=new i(2),u=new i(5),l=(new i(16),new i(8),new i(10)),f=new i(3),d=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function m(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function y(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function g(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;r.mod(l).cmp(f);)r.iadd(h)}else for(;r.mod(o).cmp(d);)r.iadd(h);if(m(p=r.shrn(1))&&m(r)&&y(p)&&y(r)&&a.test(p)&&a.test(r))return r}}},{"bn.js":439,"miller-rabin":875,randombytes:563}],562:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],563:[function(e,t,r){(function(r,n){"use strict";var i=e("safe-buffer").Buffer,o=n.crypto||n.msCrypto;o&&o.getRandomValues?t.exports=function(e,t){if(e>65536)throw new Error("requested too many random bytes");var a=new n.Uint8Array(e);e>0&&o.getRandomValues(a);var s=i.from(a.buffer);return"function"==typeof t?r.nextTick((function(){t(null,s)})):s}:t.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952,"safe-buffer":1037}],564:[function(e,t,r){var n=e("events").EventEmitter,i=e("./lib/scrub"),o=e("./lib/keys"),a=e("./lib/foreach"),s=e("./lib/is_enum");function c(e,t){n.call(this),t||(t={}),this.remote={},this.callbacks={local:[],remote:[]},this.wrap=t.wrap,this.unwrap=t.unwrap,this.scrubber=i(this.callbacks.local),this.instance="function"==typeof e?new e(this.remote,this):e||{}}t.exports=function(e,t){return new c(e,t)},function(){for(var e in n.prototype)c.prototype[e]=n.prototype[e]}(),c.prototype.start=function(){this.request("methods",[this.instance])},c.prototype.cull=function(e){delete this.callbacks.remote[e],this.emit("request",{method:"cull",arguments:[e]})},c.prototype.request=function(e,t){var r=this.scrubber.scrub(t);this.emit("request",{method:e,arguments:r.arguments,callbacks:r.callbacks,links:r.links})},c.prototype.handle=function(e){var t=this,r=t.scrubber.unscrub(e,(function(e){if(void 0===t.callbacks.remote[e]){var r=function(){t.request(e,[].slice.apply(arguments))};return t.callbacks.remote[e]=t.wrap?t.wrap(r,e):r,r}return t.unwrap?t.unwrap(t.callbacks.remote[e],e):t.callbacks.remote[e]}));if("methods"===e.method)t.handleMethods(r[0]);else if("cull"===e.method)a(r,(function(e){delete t.callbacks.local[e]}));else if("string"==typeof e.method)s(t.instance,e.method)?t.apply(t.instance[e.method],r):t.emit("fail",new Error("request for non-enumerable method: "+e.method));else if("number"==typeof e.method){var n=t.callbacks.local[e.method];n?t.apply(n,r):t.emit("fail",new Error("no such method"))}},c.prototype.handleMethods=function(e){var t=this;"object"!=typeof e&&(e={}),a(o(t.remote),(function(e){delete t.remote[e]})),a(o(e),(function(r){t.remote[r]=e[r]})),t.emit("remote",t.remote),t.emit("ready")},c.prototype.apply=function(e,t){try{e.apply(void 0,t)}catch(e){this.emit("error",e)}}},{"./lib/foreach":565,"./lib/is_enum":566,"./lib/keys":567,"./lib/scrub":568,events:476}],565:[function(e,t,r){t.exports=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t.call(e,e[r],r)}},{}],566:[function(e,t,r){var n=e("./keys");t.exports=function(e,t){if(Object.prototype.propertyIsEnumerable)return Object.prototype.propertyIsEnumerable.call(e,t);for(var r=n(e),i=0;i<r.length;i++)if(t===r[i])return!0;return!1}},{"./keys":567}],567:[function(e,t,r){t.exports=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t}},{}],568:[function(e,t,r){var n=e("traverse"),i=e("./keys"),o=e("./foreach");function a(e){this.callbacks=e}t.exports=function(e){return new a(e)},a.prototype.scrub=function(e){var t=this,r={},i=[];return{arguments:n(e).map((function(e){if("function"==typeof e){var n=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1}(t.callbacks,e);if(n>=0&&!(n in r))r[n]=this.path;else{var o=t.callbacks.length;t.callbacks.push(e),r[o]=this.path}this.update("[Function]")}else this.circular&&(i.push({from:this.circular.path,to:this.path}),this.update("[Circular]"))})),callbacks:r,links:i}},a.prototype.unscrub=function(e,t){var r=e.arguments||[];return o(i(e.callbacks||{}),(function(i){var o=parseInt(i,10),a=e.callbacks[o];n.set(r,a,t(o))})),o(e.links||[],(function(e){var t=n.get(r,e.from);n.set(r,e.to,t)})),r}},{"./foreach":565,"./keys":567,traverse:1089}],569:[function(e,t,r){var n=e("./lib/dnode");t.exports=function(e,t){return new n(e,t)}},{"./lib/dnode":570}],570:[function(e,t,r){(function(r){var n=e("dnode-protocol"),i=e("stream"),o="object"==typeof JSON?JSON:e("jsonify");function a(e,t){i.call(this);var n=this;n.opts=t||{},n.cons="function"==typeof e?e:function(){return e||{}},n.readable=!0,n.writable=!0,r.nextTick((function(){if(!n._ended&&(n.proto=n._createProto(),n.proto.start(),n._handleQueue))for(var e=0;e<n._handleQueue.length;e++)n.handle(n._handleQueue[e])}))}t.exports=a,a.prototype={},function(){for(var e in i.prototype)a.prototype[e]=i.prototype[e]}(),a.prototype._createProto=function(){var e=this,t=n((function(t){if(!e._ended){var r=e.cons.call(this,t,e);return"object"!=typeof r&&(r=this),e.emit("local",r,e),r}}),e.opts.proto);return t.on("remote",(function(t){e.emit("remote",t,e),e.emit("ready")})),t.on("request",(function(t){e.readable&&("object"===e.opts.emit?e.emit("data",t):e.emit("data",o.stringify(t)+"\n"))})),t.on("fail",(function(t){e.emit("fail",t)})),t.on("error",(function(t){e.emit("error",t)})),t},a.prototype.write=function(e){var t;if(!this._ended)if(e&&"object"==typeof e&&e.constructor&&"Buffer"===e.constructor.name&&e.length&&"function"==typeof e.slice){this._bufs||(this._bufs=[]);for(var r=0,n=0;r<e.length;r++)if(10===e[r]){this._bufs.push(e.slice(n,r));for(var i="",a=0;a<this._bufs.length;a++)i+=String(this._bufs[a]);try{t=o.parse(i)}catch(e){return this.end()}n=r+1,this.handle(t),this._bufs=[]}n<e.length&&this._bufs.push(e.slice(n,e.length))}else if(e&&"object"==typeof e)this.handle(e);else for("string"!=typeof e&&(e=String(e)),this._line||(this._line=""),r=0;r<e.length;r++)if(10===e.charCodeAt(r)){try{t=o.parse(this._line)}catch(e){return this.end()}this._line="",this.handle(t)}else this._line+=e.charAt(r)},a.prototype.handle=function(e){this.proto?this.proto.handle(e):(this._handleQueue||(this._handleQueue=[]),this._handleQueue.push(e))},a.prototype.end=function(){this._ended||(this._ended=!0,this.writable=!1,this.readable=!1,this.emit("end"))},a.prototype.destroy=function(){this.end()}}).call(this,e("_process"))},{_process:952,"dnode-protocol":564,jsonify:824,stream:1059}],571:[function(e,t,r){var n=e("stream"),i=["write","end","destroy"],o=["resume","pause"],a=["data","close"],s=Array.prototype.slice;function c(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r)}t.exports=function(e,t){var r=new n,u=!1;return c(i,(function(t){r[t]=function(){return e[t].apply(e,arguments)}})),c(o,(function(e){r[e]=function(){r.emit(e);var n=t[e];if(n)return n.apply(t,arguments);t.emit(e)}})),c(a,(function(e){t.on(e,(function(){var t=s.call(arguments);t.unshift(e),r.emit.apply(r,t)}))})),t.on("end",(function(){if(!u){u=!0;var e=s.call(arguments);e.unshift("end"),r.emit.apply(r,e)}})),e.on("drain",(function(){r.emit("drain")})),e.on("error",l),t.on("error",l),r.writable=e.writable,r.readable=t.readable,r;function l(e){r.emit("error",e)}}},{stream:1059}],572:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":587,"./elliptic/curve":575,"./elliptic/curves":578,"./elliptic/ec":579,"./elliptic/eddsa":582,"./elliptic/utils":586,brorand:440}],573:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var a=[],c=0;c<n.length;c+=r.step){var u=0;for(t=c+r.step-1;t>=c;t--)u=(u<<1)+n[t];a.push(u)}for(var l=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(c=0;c<a.length;c++)(u=a[c])===d?f=f.mixedAdd(r.points[c]):u===-d&&(f=f.mixedAdd(r.points[c].neg()));l=l.add(f)}return l.toP()},c.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),c=this.jpoint(null,null,null),u=a.length-1;u>=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var l=a[u];s(0!==l),c="affine"===e.type?l>0?c.mixedAdd(i[l-1>>1]):c.mixedAdd(i[-l-1>>1].neg()):l>0?c.add(i[l-1>>1]):c.add(i[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,l=0,f=0;f<n;f++){var d=(E=t[f])._getNAFPoints(e);s[f]=d.wnd,c[f]=d.points}for(f=n-1;f>=1;f-=2){var h=f-1,p=f;if(1===s[h]&&1===s[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=a(r[h],r[p]);l=Math.max(g[0].length,l),u[h]=new Array(l),u[p]=new Array(l);for(var b=0;b<l;b++){var v=0|g[0][b],w=0|g[1][b];u[h][b]=y[3*(v+1)+(w+1)],u[p][b]=0,c[h]=m}}else u[h]=o(r[h],s[h],this._bitLength),u[p]=o(r[p],s[p],this._bitLength),l=Math.max(u[h].length,l),l=Math.max(u[p].length,l)}var _=this.jpoint(null,null,null),x=this._wnafT4;for(f=l;f>=0;f--){for(var k=0;f>=0;){var S=!0;for(b=0;b<n;b++)x[b]=0|u[b][f],0!==x[b]&&(S=!1);if(!S)break;k++,f--}if(f>=0&&k++,_=_.dblp(k),f<0)break;for(b=0;b<n;b++){var E,A=x[b];0!==A&&(A>0?E=c[b][A-1>>1]:A<0&&(E=c[b][-A-1>>1].neg()),_="affine"===E.type?_.mixedAdd(E):_.add(E))}}for(f=0;f<n;f++)c[f]=null;return i?_:_.toP()},c.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(e){return this.encode(e,!0)},u.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},u.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},u.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},u.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},u.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":586,"bn.js":439}],574:[function(e,t,r){"use strict";var n=e("../utils"),i=e("bn.js"),o=e("inherits"),a=e("./base"),s=n.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function u(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(u,a.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(c,u,f,l)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(u.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(c),t=a.redMul(u.redSub(o)),r=a.redMul(c)}}else{var u=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),c=u.redSub(s).redSub(s),e=this.curve._mulC(n.redISub(u)).redMul(c),t=this.curve._mulC(u).redMul(i.redISub(o)),r=u.redMul(c)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),l=s.redMul(c),f=o.redMul(c),d=a.redMul(s);return this.curve.point(u,l,d,f)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(c).redMul(l);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(f,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},{"../utils":586,"./base":573,"bn.js":439,inherits:807}],575:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":573,"./edwards":574,"./mont":576,"./short":577}],576:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("inherits"),o=e("./base"),a=e("../utils");function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":586,"./base":573,"bn.js":439,inherits:807}],577:[function(e,t,r){"use strict";var n=e("../utils"),i=e("bn.js"),o=e("inherits"),a=e("./base"),s=n.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(c,a),t.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,o,a,s,c,u,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),m=new i(0),y=new i(0),g=new i(1),b=0;0!==d.cmpn(0);){var v=h.div(d);u=h.sub(v.mul(d)),l=y.sub(v.mul(p));var w=g.sub(v.mul(m));if(!n&&u.cmp(f)<0)t=c.neg(),r=p,n=u.neg(),o=l;else if(n&&2==++b)break;c=u,h=d,d=u,y=p,p=l,g=m,m=w}a=u.neg(),s=l;var _=n.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),n[2*o]=s,n[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var u=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return u},o(u,a.BasePoint),c.prototype.point=function(e,t,r){return new u(this,e,t,r)},c.prototype.pointFromJSON=function(e,t){return u.fromJSON(this,e,t)},u.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),f=n.redMul(u),d=c.redSqr().redIAdd(l).redISub(f).redISub(f),h=c.redMul(f.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),l=r.redMul(c),f=s.redSqr().redIAdd(u).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),u=a.redAdd(a);for(r=0;r<e;r++){var l=o.redSqr(),f=u.redSqr(),d=f.redSqr(),h=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(c)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(m),g=h.redMul(y);g=g.redIAdd(g).redISub(d);var b=u.redMul(s);r+1<e&&(c=c.redMul(d)),o=m,s=b,u=g}return this.curve.jpoint(o,u.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),c=s.redSqr().redISub(a).redISub(a),u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),e=c,t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(l).redISub(d);h=h.redIAdd(h);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var u=o.redIAdd(o);u=(u=u.redIAdd(u)).redIAdd(u),t=s.redMul(a.redISub(c)).redISub(u),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(l).redMul(this.x.redAdd(l));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var y=f.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),u=(c=c.redIAdd(c)).redMul(a),l=s.redSqr().redISub(u.redAdd(u)),f=u.redISub(l),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,h,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=n.redIAdd(n);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var u=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),l=t.redMul(u);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(u.redMul(c.redISub(u)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,d,h)},l.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":586,"./base":573,"bn.js":439,inherits:807}],578:[function(e,t,r){"use strict";var n,i=r,o=e("hash.js"),a=e("./curve"),s=e("./utils").assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":575,"./precomputed/secp256k1":585,"./utils":586,"hash.js":785}],579:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("hmac-drbg"),o=e("../utils"),a=e("../curves"),s=e("brorand"),c=o.assert,u=e("./key"),l=e("./signature");function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(c(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=f,f.prototype.keyPair=function(e){return new u(this,e)},f.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(u.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),y=m.umod(this.n);if(0!==y.cmpn(0)){var g=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(y)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new l({r:y,s:g,recoveryParam:b})}}}}}},f.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new l(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(u,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new l(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,f=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),m=u.mul(h).umod(o);return this.g.mulAdd(p,s,m)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new l(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../curves":578,"../utils":586,"./key":580,"./signature":581,"bn.js":439,brorand:440,"hmac-drbg":798}],580:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils").assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":586,"bn.js":439}],581:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function l(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}t.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r);if(!1===a)return!1;var u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var l=c(e,r);if(!1===l)return!1;if(e.length!==l+r.place)return!1;var f=e.slice(r.place,l+r.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new n(u),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];l(n,t.length),(n=n.concat(t)).push(2),l(n,r.length);var o=n.concat(r),a=[48];return l(a,o.length),a=a.concat(o),i.encode(a,e)}},{"../utils":586,"bn.js":439}],582:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("../curves"),o=e("../utils"),a=o.assert,s=o.parseBytes,c=e("./key"),u=e("./signature");function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=l,l.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},l.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof u?e:new u(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":578,"../utils":586,"./key":583,"./signature":584,"hash.js":785}],583:[function(e,t,r){"use strict";var n=e("../utils"),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=s},{"../utils":586}],584:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../utils":586,"bn.js":439}],585:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],586:[function(e,t,r){"use strict";var n=r,i=e("bn.js"),o=e("minimalistic-assert"),a=e("minimalistic-crypto-utils");n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+n&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==u?c:-c,r[0].push(o),a=0==(1&u)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==c?u:-u,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":439,"minimalistic-assert":876,"minimalistic-crypto-utils":877}],587:[function(e,t,r){t.exports={name:"elliptic",version:"6.5.3",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"[email protected]:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <[email protected]>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"}}},{}],588:[function(e,t,r){(function(r){var n=e("once"),i=function(){},o=function(e,t,a){if("function"==typeof t)return o(e,null,t);t||(t={}),a=n(a||i);var s=e._writableState,c=e._readableState,u=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,f=!1,d=function(){e.writable||h()},h=function(){l=!1,u||a.call(e)},p=function(){u=!1,l||a.call(e)},m=function(t){a.call(e,t?new Error("exited with error code: "+t):null)},y=function(t){a.call(e,t)},g=function(){r.nextTick(b)},b=function(){if(!f)return(!u||c&&c.ended&&!c.destroyed)&&(!l||s&&s.ended&&!s.destroyed)?void 0:a.call(e,new Error("premature close"))},v=function(){e.req.on("finish",h)};return function(e){return e.setHeader&&"function"==typeof e.abort}(e)?(e.on("complete",h),e.on("abort",g),e.req?v():e.on("request",v)):l&&!s&&(e.on("end",d),e.on("close",d)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",m),e.on("end",p),e.on("finish",h),!1!==t.error&&e.on("error",y),e.on("close",g),function(){f=!0,e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",v),e.req&&e.req.removeListener("finish",h),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",h),e.removeListener("exit",m),e.removeListener("end",p),e.removeListener("error",y),e.removeListener("close",g)}};t.exports=o}).call(this,e("_process"))},{_process:952,once:903}],589:[function(e,t,r){"use strict";const n=(e,t)=>function(){const r=t.promiseModule,n=new Array(arguments.length);for(let e=0;e<arguments.length;e++)n[e]=arguments[e];return new r((r,i)=>{t.errorFirst?n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),i(t)):r(t)}else e?i(e):r(n)})):n.push((function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];r(e)}else r(e)})),e.apply(this,n)})};t.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=e=>{const r=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(r):!t.exclude.some(r)};let i;i="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):n(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const o in e){const a=e[o];i[o]="function"==typeof a&&r(o)?n(a,t):a}return i}},{}],590:[function(e,t,r){e("eth-query"),e("pify");const n=e("safe-event-emitter"),i=(e,t)=>e+t,o=["sync","latest"];function a(e){return Number.parseInt(e,16)}t.exports=class extends n{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._blockResetTimeout,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(e=>this.once("latest",e))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){o.includes(e)&&this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return o.map(e=>this.listenerCount(e)).reduce(i)}_newPotentialLatest(e){const t=this._currentBlock;t&&a(e)<=a(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){const t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}},{"eth-query":686,pify:589,"safe-event-emitter":1038}],591:[function(e,t,r){const n=e("pify"),i=e("./base");function o(e,t){return new Promise(r=>{const n=setTimeout(r,e);n.unref&&t&&n.unref()})}t.exports=class extends i{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");const t=e.pollingInterval||2e4,r=e.retryTimeout||t/10,n=void 0===e.keepEventLoopActive||e.keepEventLoopActive,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=r,this._keepEventLoopActive=n,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await o(this._pollingInterval,!this._keepEventLoopActive)}catch(e){const t=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n"+e.stack);try{this.emit("error",t)}catch(e){console.error(t)}await o(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){const e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){const e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);const t=await n(t=>this._provider.sendAsync(e,t))();if(t.error)throw new Error("PollingBlockTracker - encountered error fetching block:\n"+t.error);return t.result}}},{"./base":590,pify:589}],592:[function(e,t,r){t.exports={"0x49d716DFe60b37379010A75329ae09428f17118d":{name:"PoolTogether Dai",logo:"pldai.svg",erc20:!0,symbol:"PLDAI",decimals:18},"0xfE6892654CBB05eB73d28DCc1Ff938f59666Fe9f":{name:"PoolTogether Sai",logo:"plsai.svg",erc20:!0,symbol:"PLSAI",decimals:18},"0xBD87447F48ad729C5c4b8bcb503e1395F62e8B98":{name:"PoolTogether USDC",logo:"plusdc.svg",erc20:!0,symbol:"PLUSDC",decimals:6},"0x261b45D85cCFeAbb11F022eBa346ee8D1cd488c0":{name:"rDAI",logo:"rdai.svg",erc20:!0,symbol:"rDAI",decimals:18},"0xea8b224eDD3e342DEb514C4176c2E72Bcce6fFF9":{name:"rSAI",logo:"rsai.svg",erc20:!0,symbol:"rSAI",decimals:18},"0x4575f41308EC1483f3d399aa9a2826d74Da13Deb":{name:"Orchid",logo:"OXT.svg",erc20:!0,symbol:"OXT",decimals:18},"0x4CC19356f2D37338b9802aa8E8fc58B0373296E7":{name:"Selfkey",logo:"KEY.svg",erc20:!0,symbol:"KEY",decimals:18},"0xdAC17F958D2ee523a2206206994597C13D831ec7":{name:"Tether USD",logo:"tether_usd.png",erc20:!0,symbol:"USDT",decimals:6},"0x06AF07097C9Eeb7fD685c692751D5C66dB49c215":{name:"Chai",logo:"CHAI.svg",erc20:!0,symbol:"CHAI",decimals:18},"0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828":{name:"UMA",logo:"UMA.png",erc20:!0,symbol:"UMA",decimals:18},"0x5f778ec4B31a506c1Dfd8b06F131E9B451a61D39":{name:"UPX Token",logo:"UPX.svg",erc20:!0,symbol:"UPX",decimals:18},"0xaaAEBE6Fe48E54f431b0C390CfaF0b017d09D42d":{name:"Celsius",logo:"celsius.svg",erc20:!0,symbol:"CEL",decimals:4},"0xb683D83a532e2Cb7DFa5275eED3698436371cc9f":{name:"BTU",logo:"BTU.svg",erc20:!0,symbol:"BTU",decimals:18},"0x5D858bcd53E085920620549214a8b27CE2f04670":{name:"POP Network Token",logo:"POP.svg",erc20:!0,symbol:"POP",decimals:18},"0x16EA01aCB4b0Bca2000ee5473348B6937ee6f72F":{name:"Enecuum",logo:"ENQ-logo.svg",erc20:!0,symbol:"ENQ",decimals:10},"0xE5B826Ca2Ca02F09c1725e9bd98d9a8874C30532":{name:"ZEON Network",logo:"ZEON_logo.png",erc20:!0,symbol:"ZEON",decimals:18},"0x13cb85823f78Cff38f0B0E90D3e975b8CB3AAd64":{name:"REMIIT REMI Token",logo:"remi.svg",erc20:!0,symbol:"REMI",decimals:18},"0x93a7174dafd31d13400cD9fa01f4e5B5BAa00D39":{name:"Shaka",logo:"hak.svg",erc20:!0,symbol:"HAK",decimals:18},"0x6fB3e0A217407EFFf7Ca062D46c26E5d60a14d69":{name:"IoTeX",logo:"iotex.svg",erc20:!0,symbol:"IOTX",decimals:18},"0x4470BB87d77b963A013DB939BE332f927f2b992e":{name:"AdEx Token",logo:"adex.svg",erc20:!0,symbol:"ADX",decimals:4},"0x1966d718A565566e8E202792658D7b5Ff4ECe469":{name:"nDEX",logo:"nDEX.png",erc20:!0,symbol:"NDX",decimals:18},"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599":{name:"Wrapped BTC",logo:"wbtc.png",erc20:!0,symbol:"WBTC",decimals:8},"0x150b0b96933B75Ce27af8b92441F8fB683bF9739":{name:"Dragonereum Gold",logo:"gold.svg",erc20:!0,symbol:"GOLD",decimals:18},"0x5d60d8d7eF6d37E16EBABc324de3bE57f135e0BC":{name:"MyBit",logo:"MYB.svg",erc20:!0,symbol:"MYB",decimals:18},"0x01FA555c97D7958Fa6f771f3BbD5CCD508f81e22":{name:"Civil Token",logo:"CVL_token.svg",erc20:!0,symbol:"CVL",decimals:18},"0x5adc961D6AC3f7062D2eA45FEFB8D8167d44b190":{name:"Dether",logo:"dether.svg",erc20:!0,symbol:"DTH",decimals:18},"0x3F17Dd476faF0a4855572F0B6ed5115D9bBA22AD":{name:"Wibson",logo:"wibson-logo.png",erc20:!0,symbol:"WIB",decimals:9},"0xDF347911910b6c9A4286bA8E2EE5ea4a39eB2134":{name:"Bob's Repair",logo:"bobsrepair.png",erc20:!0,symbol:"BOB",decimals:18},"0x9e88613418cF03dCa54D6a2cf6Ad934A78C7A17A":{name:"Swarm",logo:"swarm.svg",erc20:!0,symbol:"SWM",decimals:18},"0x6863bE0e7CF7ce860A574760e9020D519a8bDC47":{name:"On.Live",logo:"onlive.svg",erc20:!0,symbol:"ONL",decimals:18},"0xea5f88E54d982Cbb0c441cde4E79bC305e5b43Bc":{name:"Pareto",logo:"ParetoLogo.png",erc20:!0,symbol:"PARETO",decimals:18},"0x6251583e7D997DF3604bc73B9779196e94A090Ce":{name:"Hercules",logo:"herc.png",erc20:!0,symbol:"HERC",decimals:18},"0x4946Fcea7C692606e8908002e55A582af44AC121":{name:"FOAM",logo:"FOAM.svg",erc20:!0,symbol:"FOAM",decimals:18},"0x4D807509aECe24C0fa5A102b6a3B059Ec6E14392":{name:"Menlo One",logo:"Menlo_One.png",erc20:!0,symbol:"ONE",decimals:18},"0xDDD460bBD9F79847ea08681563e8A9696867210C":{name:"Spendcoin",logo:"SpendCoin.png",erc20:!0,symbol:"SPND",decimals:18},"0x27054b13b1B798B345b591a4d22e6562d47eA75a":{name:"AirSwap Token",logo:"AST.png",erc20:!0,symbol:"AST",decimals:4},"0x8D5682941cE456900b12d47ac06a88b47C764CE1":{name:"RightMesh Token",logo:"Rmesh.png",erc20:!0,symbol:"RMESH",decimals:18},"0xDDe12a12A6f67156e0DA672be05c374e1B0a3e57":{name:"JOYSO",logo:"JOY.png",erc20:!0,symbol:"JOY",decimals:6},"0x0D262e5dC4A06a0F1c90cE79C7a60C09DfC884E4":{name:"JET8 Token",logo:"J8T.svg",erc20:!0,symbol:"J8T",decimals:8},"0x4a220E6096B25EADb88358cb44068A3248254675":{name:"Quant Network",logo:"quant-network.svg",erc20:!0,symbol:"QNT",decimals:18},"0xBC86727E770de68B1060C91f6BB6945c73e10388":{name:"Ink Protocol",logo:"ink_protocol.svg",erc20:!0,symbol:"XNK",decimals:18},"0x4CEdA7906a5Ed2179785Cd3A40A69ee8bc99C466":{name:"Aion Network",logo:"Aion.png",erc20:!0,symbol:"AION",decimals:8},"0xa95592DCFfA3C080B4B40E459c5f5692F67DB7F8":{name:"ELY Token",logo:"ely.png",erc20:!0,symbol:"ELY",decimals:18},"0x9E46A38F5DaaBe8683E10793b06749EEF7D733d1":{name:"PolySwarm Nectar",logo:"polyswarm_nectar.svg",erc20:!0,symbol:"NCT",decimals:18},"0xe1A178B681BD05964d3e3Ed33AE731577d9d96dD":{name:"BOX Token",logo:"box_token.png",erc20:!0,symbol:"BOX",decimals:18},"0x82BD526bDB718C6d4DD2291Ed013A5186cAE2DCa":{name:"dutyof.care Token",logo:"dutyof.care-square.png",erc20:!0,symbol:"VDOC",decimals:18},"0x168296bb09e24A88805CB9c33356536B980D3fC5":{name:"Rhoc",logo:"rchain.png",erc20:!0,symbol:"RHOC",decimals:8},"0x543Ff227F64Aa17eA132Bf9886cAb5DB55DCAddf":{name:"DAOstack",logo:"DAOstack.png",erc20:!0,symbol:"GEN",decimals:18},"0x6aEDbF8dFF31437220dF351950Ba2a3362168d1b":{name:"Dragonglass",logo:"dragonglass.svg",erc20:!0,symbol:"DGS",decimals:8},"0xd26114cd6EE289AccF82350c8d8487fedB8A0C07":{name:"OmiseGO",logo:"omg.jpg",erc20:!0,symbol:"OMG",decimals:18},"0x99ea4dB9EE77ACD40B119BD1dC4E33e1C070b80d":{name:"Quantstamp",logo:"qsp.svg",erc20:!0,symbol:"QSP",decimals:18},"0x4162178B78D6985480A308B2190EE5517460406D":{name:"Colu Local Network",logo:"cln.png",erc20:!0,symbol:"CLN",decimals:18},"0xB64ef51C888972c908CFacf59B47C1AfBC0Ab8aC":{name:"Storj",logo:"storj.jpg",erc20:!0,symbol:"STORJ",decimals:8},"0x0F5D2fB29fb7d3CFeE444a200298f468908cC942":{name:"Decentraland",logo:"decentraland.png",erc20:!0,symbol:"MANA",decimals:18},"0x0F513fFb4926ff82D7F60A05069047AcA295C413":{name:"CrowdstartCoin",logo:"XSC_Logo.svg",erc20:!0,symbol:"XSC",decimals:18},"0x5BC7e5f0Ab8b2E10D2D0a3F21739FCe62459aeF3":{name:"Hut34 Entropy Token",logo:"ENTRP.png",symbol:"ENTRP",erc20:!0,decimals:18},"0xEBBdf302c940c6bfd49C6b165f457fdb324649bc":{name:"Hydro",logo:"hydro.png",erc20:!0,symbol:"HYDRO",decimals:18},"0x2604FA406Be957E542BEb89E6754fCdE6815e83f":{name:"Playkey Token",logo:"playkey.svg",erc20:!0,symbol:"PKT",decimals:18},"0xE41d2489571d322189246DaFA5ebDe1F4699F498":{name:"0x",logo:"0x.svg",erc20:!0,symbol:"ZRX",decimals:18},"0xB563300A3BAc79FC09B93b6F84CE0d4465A2AC27":{name:"RedCab",logo:"redcab.png",erc20:!0,symbol:"REDC",decimals:18},"0x957c30aB0426e0C93CD8241E2c60392d08c6aC8e":{name:"Modum Token",logo:"modum.svg",erc20:!0,symbol:"MOD",decimals:0},"0x1a7a8BD9106F2B8D977E08582DC7d24c723ab0DB":{name:"AppCoins",logo:"appcoins.png",erc20:!0,decimals:18,symbol:"APPC"},"0xdB25f211AB05b1c97D595516F45794528a807ad8":{name:"STASIS EURS Token",logo:"stasis-eurs.svg",erc20:!0,decimals:2,symbol:"EURS"},"0xCA0e7269600d353F70b14Ad118A49575455C0f2f":{name:"AMLT",logo:"amlt.png",erc20:!0,decimals:18,symbol:"AMLT"},"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F":{name:"Synthetix Network Token",logo:"synthetix.svg",erc20:!0,decimals:18,symbol:"SNX"},"0x57Ab1ec28D129707052df4dF418D58a2D46d5f51":{name:"Synth sUSD",logo:"synthetix_susd.svg",erc20:!0,decimals:18,symbol:"SUSD"},"0x5e74C9036fb86BD7eCdcb084a0673EFc32eA31cb":{name:"Synth sETH",logo:"synthetix_seth.svg",erc20:!0,decimals:18,symbol:"SETH"},"0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6":{name:"Synth sBTC",logo:"synthetix_sbtc.svg",erc20:!0,decimals:18,symbol:"SBTC"},"0x0DB8D8b76BC361bAcbB72E2C491E06085A97Ab31":{name:"IQeon",logo:"iqeon.svg",erc20:!0,decimals:18,symbol:"IQN"},"0x26E75307Fc0C021472fEb8F727839531F112f317":{name:"Crypto20",logo:"c20.svg",erc20:!0,symbol:"C20",decimals:18},"0x06012c8cf97BEaD5deAe237070F9587f8E7A266d":{name:"Crypto Kitties",logo:"CryptoKitties-Kitty-13733.svg",erc20:!1,erc721:!0,symbol:"CK",decimals:0},"0xE477292f1B3268687A29376116B0ED27A9c76170":{name:"Herocoin",logo:"herocoin_logo.png",erc20:!0,symbol:"PLAY",decimals:18},"0x4F4f0Db4de903B88f2B1a2847971E231D54F8fd3":{name:"Geens Platform Token",logo:"gee-icon.svg",erc20:!0,symbol:"GEE",decimals:8},"0xec67005c4E498Ec7f55E092bd1d35cbC47C91892":{name:"Melon",logo:"mln.jpg",erc20:!0,symbol:"MLN",decimals:18},"0xCed1A8529125D1bD06B54a7B01210df357D00885":{name:"Too Real Badge",logo:"too-real.jpg",erc20:!0,symbol:"TRL",decimals:0},"0xba2184520A1cC49a6159c57e61E1844E085615B6":{name:"HelloGold Token",logo:"hgt.png",erc20:!0,symbol:"HGT",decimals:8},"0xeAb43193CF0623073Ca89DB9B712796356FA7414":{name:"GOLDX",logo:"goldx.png",erc20:!0,symbol:"GOLDX",decimals:18},"0x8727c112C712c4a03371AC87a74dD6aB104Af768":{name:"Jetcoin Institute Token",logo:"JETCOIN28.png",erc20:!0,symbol:"JET",decimals:18},"0xf8e386EDa857484f5a12e4B5DAa9984E06E73705":{name:"Indorse Token",logo:"indorseLogo.jpg",erc20:!0,symbol:"IND",decimals:18},"0xC596bD09d652827b0106292D3e378D5938df4B12":{name:"Teleport Token",logo:"tpt.png",erc20:!0,symbol:"TPT",decimals:18},"0xA54ddC7B3CcE7FC8b1E3Fa0256D0DB80D2c10970":{name:"NEVERDIE Coin",logo:"ndc.png",erc20:!0,symbol:"NDC",decimals:18},"0x1c4481750daa5Ff521A2a7490d9981eD46465Dbd":{name:"BlockMason Credit Protocol Token",logo:"bcpt.svg",erc20:!0,symbol:"BCPT",decimals:18},"0x20F7A3DdF244dc9299975b4Da1C39F8D5D75f05A":{name:"Sapien Network Token",logo:"spn.svg",erc20:!0,symbol:"SPN",decimals:6},"0xA4e8C3Ec456107eA67d3075bF9e3DF3A75823DB0":{name:"Loom Network Token",logo:"loom.svg",erc20:!0,symbol:"LOOM",decimals:18},"0x4F9254C83EB525f9FCf346490bbb3ed28a81C667":{name:"Celer Network Token",logo:"CELR.svg",erc20:!0,symbol:"CELR",decimals:18},"0xD0b3462481C33F63a288cd1923e2A261EE65b4FF":{name:"EGO Badge",logo:"ego_badge.png",erc20:!0,symbol:"EGO",decimals:0},"0x71D01dB8d6a2fBEa7f8d434599C237980C234e4C":{name:"Gladius",logo:"gladius.svg",erc20:!0,symbol:"GLA",decimals:8},"0x86Fa049857E0209aa7D9e616F7eb3b3B78ECfdb0":{name:"EOS",logo:"eos-logo.jpeg",erc20:!0,symbol:"EOS",decimals:18},"0xdd974D5C2e2928deA5F71b9825b8b646686BD200":{name:"Kyber Network Crystal",logo:"kyber.svg",erc20:!0,symbol:"KNC",decimals:18},"0x1F573D6Fb3F13d689FF844B4cE37794d79a7FF1C":{name:"Bancor Network Token",logo:"bancor.png",erc20:!0,symbol:"BNT",decimals:18},"0xfa05A73FfE78ef8f1a739473e462c54bae6567D9":{name:"Lunyr Token",logo:"lun.png",erc20:!0,symbol:"LUN",decimals:18},"0x5b26C5D0772E5bbaC8b3182AE9a13f9BB2D03765":{name:"EDU Token",logo:"edu.svg",erc20:!0,symbol:"EDU",decimals:8},"0x5c543e7AE0A1104f78406C340E9C64FD9fCE5170":{name:"vSlice",logo:"vslice.png",erc20:!0,symbol:"VSL",decimals:18},"0x1f41E42D0a9e3c0Dd3BA15B527342783B43200A9":{name:"Blockchain Capital",logo:"bcap.svg",erc20:!0,symbol:"BCAP",decimals:0},"0x6531f133e6DeeBe7F2dcE5A0441aA7ef330B4e53":{name:"Chronobank TIME",logo:"chronobank.png",erc20:!0,symbol:"TIME",decimals:8},"0xE7775A6e9Bcf904eb39DA2b68c5efb4F9360e08C":{name:"Token-as-a-Service",logo:"taas-ico.png",erc20:!0,symbol:"TAAS",decimals:6},"0xaAAf91D9b90dF800Df4F55c205fd6989c977E73a":{name:"Monolith TKN",logo:"tkn.svg",erc20:!0,symbol:"TKN",decimals:8},"0x08711D3B02C8758F2FB3ab4e80228418a7F8e39c":{name:"Edgeless",logo:"edgeless.jpg",erc20:!0,symbol:"EDG",decimals:0},"0xf7B098298f7C69Fc14610bf71d5e02c60792894C":{name:"Guppy",logo:"guppy.png",erc20:!0,symbol:"GUP",decimals:3},"0x4DF812F6064def1e5e029f1ca858777CC98D2D81":{name:"Xaurum",logo:"xaurum_logo.svg",erc20:!0,symbol:"XAUR",decimals:8},"0xB9e7F8568e08d5659f5D29C4997173d84CdF2607":{name:"Swarm City Token",logo:"swt.jpg",erc20:!0,symbol:"SWT",decimals:18},"0xCb94be6f13A1182E4A4B6140cb7bf2025d28e41B":{name:"Trustcoin",logo:"trustcoin.jpg",erc20:!0,symbol:"TRST",decimals:6},"0x960b236A07cf122663c4303350609A66A7B288C0":{name:"Aragon Network Token",logo:"aragon_isotype.svg",erc20:!0,symbol:"ANT",decimals:18},"0x667088b212ce3d06a1b553a7221E1fD19000d9aF":{name:"WINGS",logo:"wings_logo.svg",erc20:!0,symbol:"WINGS",decimals:18},"0x009e864923b49263c7F10D19B7f8Ab7a9A5AAd33":{name:"Knoxstertoken",logo:"FortKnoxster.png",erc20:!0,symbol:"FKX",decimals:18},"0xAf30D2a7E90d7DC361c8C4585e9BB7D2F6f15bc7":{name:"FirstBlood Token",logo:"1st.svg",erc20:!0,symbol:"1ST",decimals:18},"0x607F4C5BB672230e8672085532f7e901544a7375":{name:"iExec RLC Token",logo:"rlc.svg",erc20:!0,symbol:"RLC",decimals:9},"0xaeC2E87E0A235266D9C5ADc9DEb4b2E29b54D009":{name:"SingularDTV",logo:"singulardtv.svg",erc20:!0,symbol:"SNGLS",decimals:0},"0x888666CA69E0f178DED6D75b5726Cee99A87D698":{name:"ICONOMI",logo:"iconomi.png",erc20:!0,symbol:"ICN",decimals:18},"0xE0B7927c4aF23765Cb51314A0E0521A9645F0E2A":{name:"Digix",logo:"DGD.png",erc20:!0,symbol:"DGD",decimals:9},"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2":{name:"Maker",logo:"logo-maker-4.svg",erc20:!0,symbol:"MKR",decimals:18},"0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359":{name:"Sai Stablecoin v1.0",logo:"sai.svg",erc20:!0,symbol:"SAI",decimals:18},"0x6B175474E89094C44Da98b954EedeAC495271d0F":{name:"Dai Stablecoin",logo:"dai.svg",erc20:!0,symbol:"DAI",decimals:18},"0xDF2C7238198Ad8B389666574f2d8bc411A4b7428":{name:"Mainframe Token",logo:"Mainframe.png",erc20:!0,symbol:"MFT",decimals:18},"0x0D8775F648430679A709E98d2b0Cb6250d2887EF":{name:"Basic Attention Token",logo:"BAT_icon.svg",erc20:!0,symbol:"BAT",decimals:18},"0x4D8fc1453a0F359e99c9675954e656D80d996FbF":{name:"BEE Token",logo:"bee_token.svg",erc20:!0,symbol:"BEE",decimals:18},"0x6810e776880C02933D47DB1b9fc05908e5386b96":{name:"Gnosis Token",logo:"gnosis.svg",erc20:!0,symbol:"GNO",decimals:18},"0x514910771AF9Ca656af840dff83E8264EcF986CA":{name:"Chainlink Token",logo:"chainlink.svg",erc20:!0,symbol:"LINK",decimals:18},"0xD8912C10681D8B21Fd3742244f44658dBA12264E":{name:"Pluton",logo:"plutus-god.svg",erc20:!0,symbol:"PLU",decimals:18},"0x1985365e9f78359a9B6AD760e32412f4a445E862":{name:"Reputation",logo:"augur_logo.png",erc20:!0,symbol:"REP",decimals:18},"0xd0929d411954c47438dc1d871dd6081F5C5e149c":{name:"Refereum",logo:"rfr.svg",erc20:!0,symbol:"RFR",decimals:4},"0xb0866289e870D2efc282406cF4123Df6E5BcB652":{name:"NoFakeCoin",logo:"nfticon.png",erc20:!0,symbol:"NFC",decimals:18},"0x2C4e8f2D746113d0696cE89B35F0d8bF88E0AEcA":{name:"Open Simple Token",logo:"OST.svg",erc20:!0,symbol:"OST",decimals:18},"0x408e41876cCCDC0F92210600ef50372656052a38":{name:"Republic Protocol",logo:"ren.svg",erc20:!0,symbol:"REN",decimals:18},"0xa74476443119A942dE498590Fe1f2454d7D4aC0d":{name:"Golem Network Token",logo:"golem.svg",erc20:!0,symbol:"GNT",decimals:18},"0x6888a16eA9792c15A4DCF2f6C623D055c8eDe792":{name:"Spectiv Signal Token",logo:"spectiv.svg",erc20:!0,symbol:"SIG",decimals:18},"0xC526560cf6Ab1755a457248CB9E8669ec7F4B78C":{name:"Spectiv Crowdsale",logo:"spectiv.svg"},"0x617b3f8050a0BD94b6b1da02B4384eE5B4DF13F4":{name:"MetaMark",logo:"metamark.svg",erc20:!0,decimals:18,symbol:"META"},"0x9a642d6b3368ddc662CA244bAdf32cDA716005BC":{name:"Qtum",logo:"qtum_28.png",erc20:!0,decimals:18,symbol:"QTUM"},"0x1234567461d3f8Db7496581774Bd869C83D51c93":{name:"BitClave",logo:"bitclave.svg",erc20:!0,decimals:18,symbol:"CAT"},"0x7d4b8Cce0591C9044a22ee543533b72E976E36C3":{name:"Change Coin",logo:"change.png",erc20:!0,decimals:18,symbol:"CAG"},"0x1d462414fe14cf489c7A21CaC78509f4bF8CD7c0":{name:"CanYaCoin",logo:"CanYa.svg",erc20:!0,decimals:6,symbol:"CAN"},"0x6090A6e47849629b7245Dfa1Ca21D94cd15878Ef":{name:"ENS Registrar",logo:"ens.svg"},"0x3d1BA9be9f66B8ee101911bC36D3fB562eaC2244":{name:"Rivetz",logo:"rivetz.png",erc20:!0,decimals:18,symbol:"RVT"},"0x13f11C9905A08ca76e3e853bE63D4f0944326C72":{name:"Divi Exchange Token",logo:"divi.svg",erc20:!0,symbol:"DIVX",decimals:18},"0x056017c55aE7AE32d12AeF7C679dF83A85ca75Ff":{name:"WyvernToken",logo:"wyvern-logo.svg",erc20:!0,symbol:"WYV",decimals:18},"0x17F68886d00845867C154C912b4cCc506EC92Fc7":{name:"WyvernDAO",logo:"wyvern-logo.svg"},"0xf14f06e227C015b398b8069314F4B8d1d7022c9e":{name:"WyvernExchange",logo:"wyvern-logo.svg"},"0xa4306692b00795f97010ec7237980141d08c6D56":{name:"WyvernProxyRegistry",logo:"wyvern-logo.svg"},"0xfec0cF7fE078a500abf15F1284958F22049c2C7e":{name:"Maecenas ART Token",logo:"Maecenas.jpg",erc20:!0,symbol:"ART",decimals:18},"0x05f4a42e251f2d52b8ed15E9FEdAacFcEF1FAD27":{name:"Zilliqa",logo:"zilliqa.svg",erc20:!0,symbol:"ZIL",decimals:12},"0x986EE2B944c42D017F52Af21c4c69B84DBeA35d8":{name:"BitMartToken",logo:"bitmart.png",erc20:!0,symbol:"BMX",decimals:18},"0x2af47a65da8CD66729b4209C22017d6A5C2d2400":{name:"StandardBounties",logo:"StandardBounties.png"},"0xF03f8D65BaFA598611C3495124093c56e8F638f0":{name:"Viewly",logo:"viewly.svg",erc20:!0,symbol:"VIEW",decimals:18},"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2":{name:"Wrapped Ether",logo:"weth.png",erc20:!0,symbol:"WETH",decimals:18},"0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E":{name:"Compound Basic Attention Token",logo:"ctoken-bat.svg",erc20:!0,symbol:"cBAT",decimals:8},"0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643":{name:"Compound Dai",logo:"ctoken-dai.svg",erc20:!0,symbol:"cDAI",decimals:8},"0xF5DCe57282A584D2746FaF1593d3121Fcac444dC":{name:"Compound Sai (Legacy Dai)",logo:"ctoken-sai.svg",erc20:!0,symbol:"cSAI",decimals:8},"0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5":{name:"Compound Ether",logo:"ctoken-eth.svg",erc20:!0,symbol:"cETH",decimals:8},"0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1":{name:"Compound Augur",logo:"ctoken-rep.svg",erc20:!0,symbol:"cREP",decimals:8},"0x39AA39c021dfbaE8faC545936693aC917d5E7563":{name:"Compound USD Coin",logo:"ctoken-usdc.svg",erc20:!0,symbol:"cUSDC",decimals:8},"0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9":{name:"Compound Tether",logo:"ctoken-usdt.svg",erc20:!0,symbol:"cUSDT",decimals:8},"0xC11b1268C1A384e55C48c2391d8d480264A3A7F4":{name:"Compound Wrapped BTC",logo:"ctoken-wbtc.svg",erc20:!0,symbol:"cWBTC",decimals:8},"0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407":{name:"Compound 0x",logo:"ctoken-zrx.svg",erc20:!0,symbol:"cZRX",decimals:8},"0xc00e94Cb662C3520282E6f5717214004A7f26888":{name:"Compound",logo:"comp.svg",erc20:!0,symbol:"COMP",decimals:18},"0xFFE02ee4C69eDf1b340fCaD64fbd6b37a7b9e265":{name:"NANJCOIN",logo:"nanjcoin.svg",erc20:!0,symbol:"NANJ",decimals:8},"0xB6eD7644C69416d67B522e20bC294A9a9B405B31":{name:"0xBitcoin Token",logo:"0xbitcoin.svg",erc20:!0,symbol:"0xBTC",decimals:8},"0x744d70FDBE2Ba4CF95131626614a1763DF805B9E":{name:"Status Network Token",logo:"snt.svg",erc20:!0,symbol:"SNT",decimals:18},"0x42d6622deCe394b54999Fbd73D108123806f6a18":{name:"SPANK",logo:"SPANK.png",erc20:!0,symbol:"SPANK",decimals:18},"0x6B01c3170ae1EFEBEe1a3159172CB3F7A5ECf9E5":{name:"BOOTY",logo:"booty.png",erc20:!0,symbol:"BOOTY",decimals:18},"0x4a6058666cf1057eaC3CD3A5a614620547559fc9":{name:"Brickblock",logo:"Brickblock.svg",erc20:!0,symbol:"BBK",decimals:18},"0x80fB784B7eD66730e8b1DBd9820aFD29931aab03":{name:"ETHLend Token",logo:"lend.svg",erc20:!0,symbol:"LEND",decimals:18},"0x48FF53777F747cFB694101222a944dE070c15D36":{name:"Ether Kingdoms Token",logo:"IMP.svg",erc20:!0,symbol:"IMP",decimals:7},"0x02F61Fd266DA6E8B102D4121f5CE7b992640CF98":{name:"LikeCoin",logo:"like.svg",erc20:!0,symbol:"LIKE",decimals:18},"0xB8c77482e45F1F44dE1745F52C74426C631bDD52":{name:"Binance Coin",logo:"bnb.png",erc20:!0,symbol:"BNB",decimals:18},"0xD850942eF8811f2A866692A623011bDE52a462C1":{name:"VeChain",logo:"vechain.png",erc20:!0,symbol:"VEN",decimals:18},"0xb5A5F22694352C15B00323844aD545ABb2B11028":{name:"ICON",logo:"icon-icx-logo.png",erc20:!0,symbol:"ICX",decimals:18},"0xAE31b85Bfe62747d0836B82608B4830361a3d37a":{name:"Aergo",logo:"Aergo.svg",erc20:!0,symbol:"AERGO",decimals:18},"0x5CA9a71B1d01849C0a95490Cc00559717fCF0D1d":{name:"Aeternity",logo:"aeternity.svg",erc20:!0,symbol:"AE",decimals:18},"0xd4fa1460F537bb9085d22C7bcCB5DD450Ef28e3a":{name:"Populous",logo:"FEATURED.POP_.png",erc20:!0,symbol:"PPT",decimals:8},"0xFA1a856Cfa3409CFa145Fa4e20Eb270dF3EB21ab":{name:"IOST",logo:"iost.png",erc20:!0,symbol:"IOST",decimals:18},"0x039B5649A59967e3e936D7471f9c3700100Ee1ab":{name:"Kucoin Shares",logo:"kucoin.svg",erc20:!0,symbol:"KCS",decimals:6},"0x3893b9422Cd5D70a81eDeFfe3d5A1c6A978310BB":{name:"Mithril",logo:"mithril-featured.png",erc20:!0,symbol:"MITH",decimals:18},"0xb7cB1C96dB6B22b0D3d9536E0108d062BD488F74":{name:"Walton",logo:"waltonchain.png",erc20:!0,symbol:"WTC",decimals:18},"0x1776e1F26f98b1A5dF9cD347953a26dd3Cb46671":{name:"Numeraire",logo:"nmr.png",erc20:!0,symbol:"NMR",decimals:18},"0x056Fd409E1d7A124BD7017459dFEa2F387b6d5Cd":{name:"Gemini Dollar",logo:"gemini_28.png",erc20:!0,symbol:"GUSD",decimals:2},"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48":{name:"USD Coin",logo:"usdc.png",erc20:!0,symbol:"USDC",decimals:6},"0x93ED3FBe21207Ec2E8f2d3c3de6e058Cb73Bc04d":{name:"Pinakion Token",logo:"pinakion.svg",erc20:!0,symbol:"PNK",decimals:18},"0x419D0d8BdD9aF5e606Ae2232ed285Aff190E711b":{name:"FunFair",logo:"fun.svg",erc20:!0,symbol:"FUN",decimals:8},"0xcA2796F9F61dc7b238Aab043971e49c6164DF375":{name:"YGGDRASH YEED Token",logo:"yggdrash.svg",erc20:!0,symbol:"YEED",decimals:18},"0x03e3f0c25965f13DbbC58246738C183E27b26a56":{name:"Disciplina Token",logo:"disciplina.svg",erc20:!0,symbol:"DSCP",decimals:18},"0xE814aeE960a85208C3dB542C53E7D4a6C8D5f60F":{name:"Chronologic DAY Token",logo:"DAY.png",erc20:!0,symbol:"DAY",decimals:18},"0x7E43581b19ab509BCF9397a2eFd1ab10233f27dE":{name:"PLATINUM",logo:"plat.png",erc20:!0,symbol:"PLAT",decimals:18},"0x8E870D67F660D95d5be530380D0eC0bd388289E1":{name:"PAX Stablecoin",logo:"pax.svg",erc20:!0,symbol:"PAX",decimals:18},"0x0000000000085d4780B73119b644AE5ecd22b376":{name:"TrueUSD",logo:"tusd.png",erc20:!0,symbol:"TUSD",decimals:18},"0x23Ccc43365D9dD3882eab88F43d515208f832430":{name:"MidasProtocol",logo:"MAS.png",erc20:!0,symbol:"MAS",decimals:18},"0xC16b542ff490e01fcc0DC58a60e1EFdc3e357cA6":{name:"ICE ROCK MINING",logo:"rock2.png",erc20:!0,symbol:"ROCK2",decimals:0},"0x6758B7d441a9739b98552B373703d8d3d14f9e62":{name:"POA20 Token",logo:"POA20.png",erc20:!0,symbol:"POA20",decimals:18},"0x3DB6Ba6ab6F95efed1a6E794caD492fAAabF294D":{name:"LTO Network Token",logo:"LTO.svg",erc20:!0,symbol:"LTO",decimals:8},"0x445f51299Ef3307dBD75036dd896565F5B4BF7A5":{name:"V-ID Token",logo:"VIDT.svg",erc20:!0,symbol:"VIDT",decimals:18},"0x7064aAb39A0Fcf7221c3396719D0917a65E35515":{name:"Cpollo",logo:"Cpollo.svg",erc20:!0,symbol:"CPLO",decimals:18},"0xd8446236FA95b9b5f9fd0f8E7Df1a944823c683d":{name:"NEEO",logo:"neeo.png",erc20:!0,symbol:"NEEO",decimals:18},"0xA823E6722006afe99E91c30FF5295052fe6b8E32":{name:"Neumark",logo:"neu.svg",erc20:!0,symbol:"NEU",decimals:18},"0x0Cf0Ee63788A0849fE5297F3407f701E122cC023":{name:"Streamr",logo:"streamr.svg",erc20:!0,symbol:"DATA",decimals:18},"0xA0b73E1Ff0B80914AB6fe0444E65848C4C34450b":{name:"Crypto.com Chain",logo:"CRO.png",erc20:!0,symbol:"CRO",decimals:8},"0xF70a642bD387F94380fFb90451C2c81d4Eb82CBc":{name:"STAR",logo:"starbase.png",erc20:!0,symbol:"STAR",decimals:18},"0xC17195bde49D70CefCF8A9F2ee1759FFC27BF0B1":{name:"Groocoin",logo:"groo.png",erc20:!0,symbol:"GROO",decimals:18},"0x7C5A0CE9267ED19B22F8cae653F198e3E8daf098":{name:"Santiment",logo:"santiment.svg",erc20:!0,symbol:"SAN",decimals:18},"0x58b6A8A3302369DAEc383334672404Ee733aB239":{name:"Livepeer",logo:"livepeer.png",erc20:!0,symbol:"LPT",decimals:18},"0x6fe56C0bcdD471359019FcBC48863d6c3e9d4F41":{name:"Props",logo:"props.png",erc20:!0,symbol:"PROPS",decimals:18},"0x6c6EE5e31d828De241282B9606C8e98Ea48526E2":{name:"HoloToken",logo:"holotoken.png",erc20:!0,symbol:"HOT",decimals:18},"0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c":{name:"EnjinCoin",logo:"enjin.png",erc20:!0,symbol:"ENJ",decimals:18},"0xbf2179859fc6D5BEE9Bf9158632Dc51678a4100e":{name:"AELF",logo:"aelf.png",erc20:!0,symbol:"ELF",decimals:18},"0x39Bb259F66E1C59d5ABEF88375979b4D20D98022":{name:"Wax",logo:"wax.png",erc20:!0,symbol:"WAX",decimals:8},"0x595832F8FC6BF59c85C527fEC3740A1b7a361269":{name:"PowerLedger",logo:"power.png",erc20:!0,symbol:"POWR",decimals:6},"0x28dee01D53FED0Edf5f6E310BF8Ef9311513Ae40":{name:"BlitzPredict",logo:"blitzpredict.svg",erc20:!0,symbol:"XBP",decimals:18},"0xFBeef911Dc5821886e1dda71586d90eD28174B7d":{name:"KnownOrigin",logo:"knownorigin.svg",erc20:!0,symbol:"KODA",decimals:0},"0x8207c1FfC5B6804F6024322CcF34F29c3541Ae26":{name:"Origin Protocol",logo:"originprotocol.png",erc20:!0,symbol:"OGN",decimals:18},"0x8f8221aFbB33998d8584A2B05749bA73c37a938a":{name:"Request",logo:"request.svg",erc20:!0,symbol:"REQ",decimals:18},"0x2aEa4Add166EBf38b63d09a75dE1a7b94Aa24163":{name:"Kudos",logo:"kudos.svg",erc20:!1,erc721:!0,symbol:"KDO",decimals:0},"0x14C926F2290044B647e1Bf2072e67B495eff1905":{name:"Bethereum",logo:"bether.jpg",erc20:!0,symbol:"BETHER",decimals:18},"0x9AAb071B4129B083B01cB5A0Cb513Ce7ecA26fa5":{name:"Hunt Token",logo:"hunt.png",erc20:!0,symbol:"HUNT",decimals:18},"0xFEF3884b603C33EF8eD4183346E093A173C94da6":{name:"Metamorph",logo:"metamorph.svg",erc20:!0,symbol:"METM",decimals:18},"0x0AbdAce70D3790235af448C88547603b945604ea":{name:"district0x",logo:"district0x.svg",erc20:!0,symbol:"DNT",decimals:18},"0x0C6144c16af288948C8fdB37fD8fEc94bfF3d1d9":{name:"Neutral Dollar",logo:"neutraldollar.png",erc20:!0,symbol:"NUSD",decimals:6},"0xB26631c6dda06aD89B93C71400D25692de89c068":{name:"Minds",logo:"minds.svg",erc20:!0,symbol:"MINDS",decimals:18},"0xBb1f24C0c1554b9990222f036b0AaD6Ee4CAec29":{name:"CryptoSoul",logo:"SOUL.svg",erc20:!0,symbol:"SOUL",decimals:18},"0xFF0E5e014cf97e0615cb50F6f39Da6388E2FaE6E":{name:"Origo",logo:"origo.svg",erc20:!0,symbol:"OGO",decimals:18},"0x7848ae8F19671Dc05966dafBeFbBbb0308BDfAbD":{name:"WednesdayCoin",logo:"wed.png",erc20:!0,symbol:"WED",decimals:18},"0x0cB8D0B37C7487b11d57F1f33dEfA2B1d3cFccfE":{name:"DANKToken",logo:"dank-logo.svg",erc20:!0,symbol:"DANK",decimals:18},"0x5f5b176553e51171826D1A62e540bC30422C7717":{name:"PLA Token",logo:"PLA.svg",erc20:!0,symbol:"PLA",decimals:18},"0xE9e3F9cfc1A64DFca53614a0182CFAD56c10624F":{name:"Su Squares",logo:"Su-Squares.svg",erc20:!1,erc721:!0,symbol:"SU",decimals:0},"0xD0a4b8946Cb52f0661273bfbC6fD0E0C75Fc6433":{name:"Storm Token",logo:"storm.svg",erc20:!0,symbol:"STORM",decimals:18},"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0":{name:"Matic Network Token",logo:"matic-network-logo.svg",erc20:!0,symbol:"MATIC",decimals:18},"0x0a50C93c762fDD6E56D86215C24AaAD43aB629aa":{name:"LGO Token",logo:"lgo.png",erc20:!0,symbol:"LGO",decimals:8},"0xBBbbCA6A901c926F240b89EacB641d8Aec7AEafD":{name:"Loopring",logo:"LRC.svg",erc20:!0,symbol:"LRC",decimals:18},"0x255Aa6DF07540Cb5d3d297f0D0D4D84cb52bc8e6":{name:"Raiden Network Token",logo:"raiden.svg",erc20:!0,symbol:"RDN",decimals:18},"0x679131F591B4f369acB8cd8c51E68596806c3916":{name:"Trustlines Network Token",logo:"TLN128.png",erc20:!0,symbol:"TLN",decimals:18},"0x1D287CC25dAD7cCaF76a26bc660c5F7C8E2a05BD":{name:"FET",logo:"fetch.png",erc20:!0,symbol:"FET",decimals:18},"0x0Ae055097C6d159879521C384F1D2123D1f195e6":{name:"STAKE Token",logo:"stake.png",erc20:!0,symbol:"STAKE",decimals:18}}},{}],593:[function(e,t,r){t.exports=e("./contract-map.json")},{"./contract-map.json":592}],594:[function(e,t,r){(function(t){var n=e("js-sha3").keccak_256,i=e("idna-uts46-hx");function o(e){return e?i.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}r.hash=function(e){for(var r="",i=0;i<32;i++)r+="00";if(name=o(e),name){var a=name.split(".");for(i=a.length-1;i>=0;i--){var s=n(a[i]);r=n(new t(r+s,"hex"))}}return"0x"+r},r.normalize=o}).call(this,e("buffer").Buffer)},{buffer:475,"idna-uts46-hx":803,"js-sha3":595}],595:[function(e,t,r){(function(e,r){
|
||
/**
|
||
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
||
*
|
||
* @version 0.5.7
|
||
* @author Chen, Yi-Cyuan [[email protected]]
|
||
* @copyright Chen, Yi-Cyuan 2015-2016
|
||
* @license MIT
|
||
*/
|
||
!function(){"use strict";var n="object"==typeof window?window:{};!n.JS_SHA3_NO_NODE_JS&&"object"==typeof e&&e.versions&&e.versions.node&&(n=r);for(var i=!n.JS_SHA3_NO_COMMON_JS&&"object"==typeof t&&t.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],u=["hex","buffer","arrayBuffer","array"],l=function(e,t,r){return function(n){return new _(e,t,e).update(n)[r]()}},f=function(e,t,r){return function(n,i){return new _(e,t,i).update(n)[r]()}},d=function(e,t){var r=l(e,t,"hex");r.create=function(){return new _(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=l(e,t,i)}return r},h=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var r=f(e,t,"hex");r.create=function(r){return new _(e,t,r)},r.update=function(e,t){return r.create(t).update(e)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=f(e,t,i)}return r}}],p={},m=[],y=0;y<h.length;++y)for(var g=h[y],b=g.bits,v=0;v<b.length;++v){var w=g.name+"_"+b[v];m.push(w),p[w]=g.createMethod(b[v],g.padding)}function _(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}_.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=e.length,o=this.blocks,s=this.byteCount,c=this.blockCount,u=0,l=this.s;u<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<c+1;++r)o[r]=0;if(t)for(r=this.start;u<i&&r<s;++u)o[r>>2]|=e[u]<<a[3&r++];else for(r=this.start;u<i&&r<s;++u)(n=e.charCodeAt(u))<128?o[r>>2]|=n<<a[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<a[3&r++],o[r>>2]|=(128|63&n)<<a[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<a[3&r++],o[r>>2]|=(128|n>>6&63)<<a[3&r++],o[r>>2]|=(128|63&n)<<a[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<a[3&r++],o[r>>2]|=(128|n>>12&63)<<a[3&r++],o[r>>2]|=(128|n>>6&63)<<a[3&r++],o[r>>2]|=(128|63&n)<<a[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[c],r=0;r<c;++r)l[r]^=o[r];x(l),this.reset=!0}else this.start=r}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];x(n)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,s=0,c="";s<n;){for(a=0;a<t&&s<n;++a,++s)e=r[a],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(x(r),a=0)}return i&&(e=r[a],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)c[a]=r[o];a%t==0&&x(r)}return i&&(c[o]=r[o],e=e.slice(0,s)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&x(n)}return o&&(e=s<<2,t=n[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var x=function(e){var t,r,n,i,o,a,c,u,l,f,d,h,p,m,y,g,b,v,w,_,x,k,S,E,A,T,C,O,j,P,M,I,N,B,R,D,L,U,F,q,H,z,K,V,G,W,Y,$,J,Q,Z,X,ee,te,re,ne,ie,oe,ae,se,ce,ue,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|c>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|l>>>31),r=o^(l<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|d>>>31),r=c^(d<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|p>>>31),r=l^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],W=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,B=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=y^~b&w,e[10]=E^~T&O,e[11]=A^~C&j,e[20]=B^~D&U,e[21]=R^~L&F,e[30]=V^~W&$,e[31]=G^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=b^~w&x,e[12]=T^~O&P,e[13]=C^~j&M,e[22]=D^~U&q,e[23]=L^~F&H,e[32]=W^~$&Q,e[33]=Y^~J&Z,e[42]=ne^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&k,e[5]=w^~x&S,e[14]=O^~P&I,e[15]=j^~M&N,e[24]=U^~q&z,e[25]=F^~H&K,e[34]=$^~Q&X,e[35]=J^~Z&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&le,e[6]=_^~k&m,e[7]=x^~S&y,e[16]=P^~I&E,e[17]=M^~N&A,e[26]=q^~z&B,e[27]=H^~K&R,e[36]=Q^~X&V,e[37]=Z^~ee&G,e[46]=se^~ue&te,e[47]=ce^~le&re,e[8]=k^~m&g,e[9]=S^~y&b,e[18]=I^~E&T,e[19]=N^~A&C,e[28]=z^~B&D,e[29]=K^~R&L,e[38]=X^~V&W,e[39]=ee^~G&Y,e[48]=ue^~te&ne,e[49]=le^~re&ie,e[0]^=s[n],e[1]^=s[n+1]};if(i)t.exports=p;else for(y=0;y<m.length;++y)n[m[y]]=p[m[y]]}()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952}],596:[function(e,t,r){e("events").EventEmitter;const n=e("ethereumjs-wallet/hdkey"),i=(e("ethereumjs-wallet"),e("eth-simple-keyring")),o=e("bip39"),a=(e("ethereumjs-util"),e("eth-sig-util"));class s extends i{constructor(e={}){super(),this.type="HD Key Tree",this.deserialize(e)}serialize(){return Promise.resolve({mnemonic:this.mnemonic,numberOfAccounts:this.wallets.length,hdPath:this.hdPath})}deserialize(e={}){return this.opts=e||{},this.wallets=[],this.mnemonic=null,this.root=null,this.hdPath=e.hdPath||"m/44'/60'/0'/0",e.mnemonic&&this._initFromMnemonic(e.mnemonic),e.numberOfAccounts?this.addAccounts(e.numberOfAccounts):Promise.resolve([])}addAccounts(e=1){this.root||this._initFromMnemonic(o.generateMnemonic());const t=this.wallets.length,r=[];for(let n=t;n<e+t;n++){const e=this.root.deriveChild(n).getWallet();r.push(e),this.wallets.push(e)}const n=r.map(e=>a.normalize(e.getAddress().toString("hex")));return Promise.resolve(n)}getAccounts(){return Promise.resolve(this.wallets.map(e=>a.normalize(e.getAddress().toString("hex"))))}_initFromMnemonic(e){this.mnemonic=e;const t=o.mnemonicToSeed(e);this.hdWallet=n.fromMasterSeed(t),this.root=this.hdWallet.derivePath(this.hdPath)}}s.type="HD Key Tree",t.exports=s},{bip39:430,"eth-sig-util":598,"eth-simple-keyring":698,"ethereumjs-util":599,"ethereumjs-wallet":720,"ethereumjs-wallet/hdkey":719,events:476}],597:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],598:[function(e,t,r){const{Buffer:n}=e("buffer"),i=e("ethereumjs-util"),o=e("ethereumjs-abi"),a=e("tweetnacl");a.util=e("tweetnacl-util");const s={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"]},c={encodeData(e,t,r,a=!0){const s=["bytes32"],c=[this.hashType(e,r)];if(a){const u=(e,t,s)=>{if(void 0!==r[t])return["bytes32",null==s?"0x0000000000000000000000000000000000000000000000000000000000000000":i.sha3(this.encodeData(t,s,r,a))];if(void 0===s)throw new Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",i.sha3(s)];if("string"===t)return"string"==typeof s&&(s=n.from(s,"utf8")),["bytes32",i.sha3(s)];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),n=s.map(t=>u(e,r,t));return["bytes32",i.sha3(o.rawEncode(n.map(([e])=>e),n.map(([,e])=>e)))]}return[t,s]};for(const n of r[e]){const[e,r]=u(n.name,n.type,t[n.name]);s.push(e),c.push(r)}}else for(const o of r[e]){let e=t[o.name];if(void 0!==e)if("bytes"===o.type)s.push("bytes32"),e=i.sha3(e),c.push(e);else if("string"===o.type)s.push("bytes32"),"string"==typeof e&&(e=n.from(e,"utf8")),e=i.sha3(e),c.push(e);else if(void 0!==r[o.type])s.push("bytes32"),e=i.sha3(this.encodeData(o.type,e,r,a)),c.push(e);else{if(o.type.lastIndexOf("]")===o.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");s.push(o.type),c.push(e)}}return o.rawEncode(s,c)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter(t=>t!==e);n=[e].concat(n.sort());for(const e of n){if(!t[e])throw new Error("No type definition specified: "+e);r+=e+"("+t[e].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||void 0===t[e])return r;r.push(e);for(const n of t[e])for(const e of this.findTypeDependencies(n.type,t,r))!r.includes(e)&&r.push(e);return r},hashStruct(e,t,r,n=!0){return i.sha3(this.encodeData(e,t,r,n))},hashType(e,t){return i.sha3(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in s.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},sign(e,t=!0){const r=this.sanitizeData(e),o=[n.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),"EIP712Domain"!==r.primaryType&&o.push(this.hashStruct(r.primaryType,r.message,r.types,t)),i.sha3(n.concat(o))}};function u(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;const r=e.map((function(e){return"bytes"===e.type?i.toBuffer(e.value):e.value})),n=e.map((function(e){return e.type})),a=e.map((function(e){if(!e.name)throw t;return e.type+" "+e.name}));return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(new Array(e.length).fill("string"),a),o.soliditySHA3(n,r)])}function l(e,t){const r=i.toBuffer(t),n=i.fromRpcSig(r);return i.ecrecover(e,n.v,n.r,n.s)}function f(e){const t=i.toBuffer(e.data);return l(i.hashPersonalMessage(t),e.sig)}function d(e,t){for(var r=""+e;r.length<t;)r="0"+r;return r}function h(e){var t=n.from(e,"hex").toString("base64");return a.util.decodeBase64(t)}t.exports={TYPED_MESSAGE_SCHEMA:s,TypedDataUtils:c,concatSig:function(e,t,r){const n=i.fromSigned(t),o=i.fromSigned(r),a=i.bufferToInt(e),s=d(i.toUnsigned(n).toString("hex"),64),c=d(i.toUnsigned(o).toString("hex"),64),u=i.stripHexPrefix(i.intToHex(a));return i.addHexPrefix(s.concat(c,u)).toString("hex")},normalize:function(e){if(e){if("number"==typeof e){const t=i.toBuffer(e);e=i.bufferToHex(t)}if("string"!=typeof e){var t="eth-sig-util.normalize() requires hex string or integer input.";throw new Error(t+=" received "+typeof e+": "+e)}return i.addHexPrefix(e.toLowerCase())}},personalSign:function(e,t){var r=i.toBuffer(t.data),n=i.hashPersonalMessage(r),o=i.ecsign(n,e);return i.bufferToHex(this.concatSig(o.v,o.r,o.s))},recoverPersonalSignature:function(e){const t=f(e),r=i.publicToAddress(t);return i.bufferToHex(r)},extractPublicKey:function(e){return"0x"+f(e).toString("hex")},typedSignatureHash:function(e){const t=u(e);return i.bufferToHex(t)},signTypedDataLegacy:function(e,t){const r=u(t.data),n=i.ecsign(r,e);return i.bufferToHex(this.concatSig(n.v,n.r,n.s))},recoverTypedSignatureLegacy:function(e){const t=l(u(e.data),e.sig),r=i.publicToAddress(t);return i.bufferToHex(r)},encrypt:function(e,t,r){switch(r){case"x25519-xsalsa20-poly1305":if(void 0===t.data)throw new Error('Cannot detect secret message, message params should be of the form {data: "secret message"} ');var n=a.box.keyPair();try{var i=a.util.decodeBase64(e)}catch(e){throw new Error("Bad public key")}var o=a.util.decodeUTF8(t.data),s=a.randomBytes(a.box.nonceLength),c=a.box(o,s,i,n.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:a.util.encodeBase64(s),ephemPublicKey:a.util.encodeBase64(n.publicKey),ciphertext:a.util.encodeBase64(c)};default:throw new Error("Encryption type/version not supported")}},encryptSafely:function(e,t,r){let i=t.data;if(!i)throw new Error("Cannot encrypt empty msg.data");if("object"==typeof i&&i.toJSON)throw new Error("Cannot encrypt with toJSON property. Please remove toJSON property");const o={data:i,padding:""},a=n.byteLength(JSON.stringify(o),"utf-8")%2048;let s=0;a>0&&(s=2048-a-16),o.padding="0".repeat(s);const c={data:JSON.stringify(o)};return this.encrypt(e,c,r)},decrypt:function(e,t){switch(e.version){case"x25519-xsalsa20-poly1305":var r=h(t),n=a.box.keyPair.fromSecretKey(r).secretKey,i=a.util.decodeBase64(e.nonce),o=a.util.decodeBase64(e.ciphertext),s=a.util.decodeBase64(e.ephemPublicKey),c=a.box.open(o,i,s,n);try{var u=a.util.encodeUTF8(c)}catch(e){throw new Error("Decryption failed.")}if(u)return u;throw new Error("Decryption failed.");default:throw new Error("Encryption type/version not supported.")}},decryptSafely:function(e,t){return JSON.parse(this.decrypt(e,t)).data},getEncryptionPublicKey:function(e){var t=h(e),r=a.box.keyPair.fromSecretKey(t).publicKey;return a.util.encodeBase64(r)},signTypedMessage:function(e,t,r="V4"){switch(r){case"V1":return this.signTypedDataLegacy(e,t);case"V3":return this.signTypedData(e,t);case"V4":default:return this.signTypedData_v4(e,t)}},recoverTypedMessage:function(e,t="V4"){switch(t){case"V1":return this.recoverTypedSignatureLegacy(e);case"V3":return this.recoverTypedSignature(e);case"V4":default:return this.recoverTypedSignature_v4(e)}},signTypedData:function(e,t){const r=c.sign(t.data,!1),n=i.ecsign(r,e);return i.bufferToHex(this.concatSig(n.v,n.r,n.s))},signTypedData_v4:function(e,t){const r=c.sign(t.data),n=i.ecsign(r,e);return i.bufferToHex(this.concatSig(n.v,n.r,n.s))},recoverTypedSignature:function(e){const t=l(c.sign(e.data,!1),e.sig),r=i.publicToAddress(t);return i.bufferToHex(r)},recoverTypedSignature_v4:function(e){const t=l(c.sign(e.data),e.sig),r=i.publicToAddress(t);return i.bufferToHex(r)}}},{buffer:475,"ethereumjs-abi":708,"ethereumjs-util":599,tweetnacl:1125,"tweetnacl-util":1124}],599:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":597,dup:172,"ethjs-util":600,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],600:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],601:[function(e,t,r){const{EthereumRpcError:n,EthereumProviderError:i}=e("./src/classes"),{serializeError:o,getMessageFromCode:a}=e("./src/utils"),s=e("./src/errors"),c=e("./src/errorCodes.json");t.exports={ethErrors:s,EthereumRpcError:n,EthereumProviderError:i,serializeError:o,getMessageFromCode:a,ERROR_CODES:c}},{"./src/classes":602,"./src/errorCodes.json":603,"./src/errors":605,"./src/utils":606}],602:[function(e,t,r){const n=e("fast-safe-stringify");class i extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return n(this.serialize(),o,2)}}function o(e,t){if("[Circular]"!==t)return t}t.exports={EthereumRpcError:i,EthereumProviderError:class extends i{constructor(e,t,r){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}}},{"fast-safe-stringify":782}],603:[function(e,t,r){t.exports={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200}}},{}],604:[function(e,t,r){t.exports={"-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."},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."}}},{}],605:[function(e,t,r){const{EthereumRpcError:n,EthereumProviderError:i}=e("./classes"),{getMessageFromCode:o}=e("./utils"),a=e("./errorCodes.json");function s(e,t){const[r,i]=u(t);return new n(e,r||o(e),i)}function c(e,t){const[r,n]=u(t);return new i(e,r||o(e),n)}function u(e){let t,r;return e&&("string"==typeof e?t=e:"object"!=typeof e||Array.isArray(e)||(t=e.message,r=e.data)),[t,r]}t.exports={rpc:{parse:e=>s(a.rpc.parse,e),invalidRequest:e=>s(a.rpc.invalidRequest,e),invalidParams:e=>s(a.rpc.invalidParams,e),methodNotFound:e=>s(a.rpc.methodNotFound,e),internal:e=>s(a.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return s(t,e)},invalidInput:e=>s(a.rpc.invalidInput,e),resourceNotFound:e=>s(a.rpc.resourceNotFound,e),resourceUnavailable:e=>s(a.rpc.resourceUnavailable,e),transactionRejected:e=>s(a.rpc.transactionRejected,e),methodNotSupported:e=>s(a.rpc.methodNotSupported,e)},provider:{userRejectedRequest:e=>c(a.provider.userRejectedRequest,e),unauthorized:e=>c(a.provider.unauthorized,e),unsupportedMethod:e=>c(a.provider.unsupportedMethod,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new i(t,r,n)}}}},{"./classes":602,"./errorCodes.json":603,"./utils":606}],606:[function(e,t,r){const n=e("./errorValues.json"),i=e("./errorCodes.json").rpc.internal,{EthereumRpcError:o}=e("./classes"),a={code:i,message:s(i)};function s(e,t="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){const t=e.toString();if(n[t])return n[t].message;if(u(e))return"Unspecified server error."}return t}function c(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!n[t]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}t.exports={getMessageFromCode:s,isValidCode:c,serializeError:function(e,t=a){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("fallbackError must contain integer number code and string message.");if(e instanceof o)return e.serialize();const r={};return e&&c(e.code)?(r.code=e.code,e.message&&"string"==typeof e.message?(r.message=e.message,e.hasOwnProperty("data")&&(r.data=e.data)):(r.message=s(r.code),r.data={originalError:l(e)})):(r.code=t.code,r.message=e&&e.message?e.message:t.message,r.data={originalError:l(e)}),e&&e.stack&&(r.stack=e.stack),r},JSON_RPC_SERVER_ERROR_MESSAGE:"Unspecified server error."}},{"./classes":602,"./errorCodes.json":603,"./errorValues.json":604}],607:[function(e,t,r){const n=e("./base-filter");t.exports=class extends n{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}}},{"./base-filter":608}],608:[function(e,t,r){const n=e("safe-event-emitter");t.exports=class extends n{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(e=>this.emit("update",e))}addInitialResults(e){}getChangesAndClear(){const e=this.updates;return this.updates=[],e}}},{"safe-event-emitter":1038}],609:[function(e,t,r){const n=e("./base-filter"),i=e("./getBlocksForRange"),{incrementHexInt:o}=e("./hexUtils");t.exports=class extends n{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){const r=t,n=o(e),a=(await i({provider:this.provider,fromBlock:n,toBlock:r})).map(e=>e.hash);this.addResults(a)}}},{"./base-filter":608,"./getBlocksForRange":610,"./hexUtils":611}],610:[function(e,t,r){function n(e){return null==e?e:Number.parseInt(e,16)}function i(e){return null==e?e:"0x"+e.toString(16)}t.exports=async function({provider:e,fromBlock:t,toBlock:r}){t||(t=r);const o=n(t),a=n(r),s=Array(a-o+1).fill().map((e,t)=>o+t).map(i);return await Promise.all(s.map(t=>function(e,t,r){return new Promise((t,n)=>{e.sendAsync({id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:r},(e,r)=>{if(e)return n(e);t(r.result)})})}(e,0,[t,!1])))}},{}],611:[function(e,t,r){function n(e){return e.sort((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:i(e)-i(t))}function i(e){return null==e?e:Number.parseInt(e,16)}function o(e){if(null==e)return e;let t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t}function a(){return Math.floor(16*Math.random()).toString(16)}t.exports={minBlockRef:function(...e){return n(e)[0]},maxBlockRef:function(...e){const t=n(e);return t[t.length-1]},sortBlockRefs:n,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt:i,incrementHexInt:function(e){return null==e?e:o(i(e)+1)},intToHex:o,unsafeRandomBytes:function(e){let t="0x";for(let r=0;r<e;r++)t+=a(),t+=a();return t}}},{}],612:[function(e,t,r){const n=e("await-semaphore").Mutex,i=e("json-rpc-engine/src/createAsyncMiddleware"),o=e("eth-json-rpc-middleware/scaffold"),a=e("./log-filter.js"),s=e("./block-filter.js"),c=e("./tx-filter.js"),{intToHex:u,hexToInt:l}=e("./hexUtils");function f(e){return d(async(...t)=>{const r=await e(...t);return u(r.id)})}function d(e){return i(async(t,r)=>{const n=await e.apply(null,t.params);r.result=n})}function h(e,t){const r=[];for(let t in e)r.push(e[t]);return r}t.exports=function({blockTracker:e,provider:t}){let r=0,i={};const p=new n,m=function({mutex:e}){return t=>async(r,n,i,o)=>{(await e.acquire())(),t(r,n,i,o)}}({mutex:p}),y=o({eth_newFilter:m(f(b)),eth_newBlockFilter:m(f(v)),eth_newPendingTransactionFilter:m(f(w)),eth_uninstallFilter:m(d(k)),eth_getFilterChanges:m(d(_)),eth_getFilterLogs:m(d(x))}),g=async({oldBlock:e,newBlock:t})=>{if(0===i.length)return;const r=await p.acquire();try{await Promise.all(h(i).map(async r=>{try{await r.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}}))}catch(e){console.error(e)}r()};return y.newLogFilter=b,y.newBlockFilter=v,y.newPendingTransactionFilter=w,y.uninstallFilter=k,y.getFilterChanges=_,y.getFilterLogs=x,y.destroy=()=>{!async function(){const e=h(i).length;i={},E({prevFilterCount:e,newFilterCount:0})}()},y;async function b(e){const r=new a({provider:t,params:e});return await S(r),r}async function v(){const e=new s({provider:t});return await S(e),e}async function w(){const e=new c({provider:t});return await S(e),e}async function _(e){const t=l(e),r=i[t];if(!r)throw new Error(`No filter for index "${t}"`);return r.getChangesAndClear()}async function x(e){const t=l(e),r=i[t];if(!r)throw new Error(`No filter for index "${t}"`);return"log"===r.type?results=r.getAllResults():results=[],results}async function k(e){const t=l(e),r=i[t],n=Boolean(r);return n&&await async function(e){const t=h(i).length;delete i[e];E({prevFilterCount:t,newFilterCount:h(i).length})}(t),n}async function S(t){const n=h(i).length,o=await e.getLatestBlock();return await t.initialize({currentBlock:o}),r++,i[r]=t,t.id=r,t.idHex=u(r),E({prevFilterCount:n,newFilterCount:h(i).length}),r}function E({prevFilterCount:t,newFilterCount:r}){0===t&&r>0?e.on("sync",g):t>0&&0===r&&e.removeListener("sync",g)}}},{"./block-filter.js":609,"./hexUtils":611,"./log-filter.js":613,"./tx-filter.js":619,"await-semaphore":330,"eth-json-rpc-middleware/scaffold":614,"json-rpc-engine/src/createAsyncMiddleware":615}],613:[function(e,t,r){const n=e("eth-query"),i=e("pify"),o=e("./base-filter-history"),{bnToHex:a,hexToInt:s,incrementHexInt:c,minBlockRef:u,blockRefIsNumber:l}=e("./hexUtils");t.exports=class extends o{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new n(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(e=>e.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;const r=u(this.params.toBlock,e),n=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(n);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){const r=t;let n;n=e?c(e):t;const i=Object.assign({},this.params,{fromBlock:n,toBlock:r}),o=(await this._fetchLogs(i)).filter(e=>this.matchLog(e));this.addResults(o)}async _fetchLogs(e){return await i(t=>this.ethQuery.getLogs(e,t))()}matchLog(e){if(s(this.params.fromBlock)>=s(e.blockNumber))return!1;if(l(this.params.toBlock)&&s(this.params.toBlock)<=s(e.blockNumber))return!1;const t=e.address&&e.address.toLowerCase();return!(this.params.address&&t&&!this.params.address.includes(t))&&this.params.topics.every((t,r)=>{let n=e.topics[r];if(!n)return!1;n=n.toLowerCase();let i=Array.isArray(t)?t:[t];return!!i.includes(null)||(i=i.map(e=>e.toLowerCase()),i.includes(n))})}}},{"./base-filter-history":607,"./hexUtils":611,"eth-query":686,pify:617}],614:[function(e,t,r){t.exports=e("json-rpc-engine/src/createScaffoldMiddleware")},{"json-rpc-engine/src/createScaffoldMiddleware":616}],615:[function(e,t,r){const n=e("promise-to-callback");t.exports=function(e){return(t,r,i,o)=>{let a=null;const s=e(t,r,(async function(){return a=new Promise(e=>{i(t=>e(t))}),void await a}));n(s)(e=>{a?n(a)((t,r)=>{if(t)return console.error(t),o(t);r(e)}):o(e)})}}},{"promise-to-callback":953}],616:[function(e,t,r){t.exports=function(e){return(t,r,n,i)=>{const o=e[t.method];return void 0===o?n():"function"==typeof o?o(t,r,n,i):(r.result=o,void i())}}},{}],617:[function(e,t,r){arguments[4][589][0].apply(r,arguments)},{dup:589}],618:[function(e,t,r){const n=e("safe-event-emitter"),i=e("eth-json-rpc-middleware/scaffold"),o=e("json-rpc-engine/src/createAsyncMiddleware"),a=e("./index.js"),{unsafeRandomBytes:s,incrementHexInt:c}=e("./hexUtils.js"),u=e("./getBlocksForRange.js");function l(e){return{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}t.exports=function({blockTracker:e,provider:t}){const r={},f=a({blockTracker:e,provider:t});let d=!1;const h=new n,p=i({eth_subscribe:o((async function(n,i){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const o=n.params[0],a=s(16);let h;switch(o){case"newHeads":h=function({subId:r}){const n={type:o,destroy:async()=>{e.removeListener("sync",n.update)},update:async({oldBlock:e,newBlock:n})=>{const i=n,o=c(e);(await u({provider:t,fromBlock:o,toBlock:i})).map(l).forEach(e=>{m(r,e)})}};return e.on("sync",n.update),n}({subId:a});break;case"logs":const r=n.params[1];h=function({subId:e,filter:t}){return t.on("update",t=>m(e,t)),{type:o,destroy:async()=>await f.uninstallFilter(t.idHex)}}({subId:a,filter:await f.newLogFilter(r)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${o}"`)}return r[a]=h,void(i.result=a)})),eth_unsubscribe:o((async function(e,t){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const n=e.params[0],i=r[n];i?(delete r[n],await i.destroy(),t.result=!0):t.result=!1}))});return p.destroy=function(){h.removeAllListeners();for(const e in r)r[e].destroy(),delete r[e];d=!0},{events:h,middleware:p};function m(e,t){h.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}}},{"./getBlocksForRange.js":610,"./hexUtils.js":611,"./index.js":612,"eth-json-rpc-middleware/scaffold":614,"json-rpc-engine/src/createAsyncMiddleware":615,"safe-event-emitter":1038}],619:[function(e,t,r){const n=e("lodash.flatmap"),i=e("./base-filter"),o=e("./getBlocksForRange"),{incrementHexInt:a}=e("./hexUtils");t.exports=class extends i{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){const t=e,r=a(e),i=await o({provider:this.provider,fromBlock:r,toBlock:t}),s=n(i,e=>e.transactions);this.addResults(s)}}},{"./base-filter":608,"./getBlocksForRange":610,"./hexUtils":611,"lodash.flatmap":841}],620:[function(e,t,r){(function(e,n,i){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.async=e.async||{})}(this,(function(r){"use strict";function o(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i<r;i++)n[i]=e[t+i];return n}var a=function(e){var t=o(arguments,1);return function(){var r=o(arguments);return e.apply(null,t.concat(r))}},s=function(e){return function(){var t=o(arguments),r=t.pop();e.call(this,t,r)}};function c(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var u="function"==typeof i&&i,l="object"==typeof e&&"function"==typeof e.nextTick;function f(e){setTimeout(e,0)}function d(e){return function(t){var r=o(arguments,1);e((function(){t.apply(null,r)}))}}var h=d(u?i:l?e.nextTick:f);function p(e){return s((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}c(n)&&"function"==typeof n.then?n.then((function(e){m(r,null,e)}),(function(e){m(r,e.message?e:new Error(e))})):r(null,n)}))}function m(e,t,r){try{e(t,r)}catch(e){h(y,e)}}function y(e){throw e}var g="function"==typeof Symbol;function b(e){return g&&"AsyncFunction"===e[Symbol.toStringTag]}function v(e){return b(e)?p(e):e}function w(e){return function(t){var r=o(arguments,1),n=s((function(r,n){var i=this;return e(t,(function(e,t){v(e).apply(i,r.concat(t))}),n)}));return r.length?n.apply(this,r):n}}var _="object"==typeof n&&n&&n.Object===Object&&n,x="object"==typeof self&&self&&self.Object===Object&&self,k=_||x||Function("return this")(),S=k.Symbol,E=Object.prototype,A=E.hasOwnProperty,T=E.toString,C=S?S.toStringTag:void 0,O=Object.prototype.toString,j=S?S.toStringTag:void 0;function P(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=A.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var i=T.call(e);return n&&(t?e[C]=r:delete e[C]),i}(e):function(e){return O.call(e)}(e)}function M(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function I(e){return null!=e&&M(e.length)&&!function(e){if(!c(e))return!1;var t=P(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}var N={};function B(){}function R(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var D="function"==typeof Symbol&&Symbol.iterator;function L(e){return null!=e&&"object"==typeof e}function U(e){return L(e)&&"[object Arguments]"==P(e)}var F=Object.prototype,q=F.hasOwnProperty,H=F.propertyIsEnumerable,z=U(function(){return arguments}())?U:function(e){return L(e)&&q.call(e,"callee")&&!H.call(e,"callee")},K=Array.isArray,V="object"==typeof r&&r&&!r.nodeType&&r,G=V&&"object"==typeof t&&t&&!t.nodeType&&t,W=G&&G.exports===V?k.Buffer:void 0,Y=(W?W.isBuffer:void 0)||function(){return!1},$=/^(?:0|[1-9]\d*)$/;function J(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$.test(e))&&e>-1&&e%1==0&&e<t}var Q={};Q["[object Float32Array]"]=Q["[object Float64Array]"]=Q["[object Int8Array]"]=Q["[object Int16Array]"]=Q["[object Int32Array]"]=Q["[object Uint8Array]"]=Q["[object Uint8ClampedArray]"]=Q["[object Uint16Array]"]=Q["[object Uint32Array]"]=!0,Q["[object Arguments]"]=Q["[object Array]"]=Q["[object ArrayBuffer]"]=Q["[object Boolean]"]=Q["[object DataView]"]=Q["[object Date]"]=Q["[object Error]"]=Q["[object Function]"]=Q["[object Map]"]=Q["[object Number]"]=Q["[object Object]"]=Q["[object RegExp]"]=Q["[object Set]"]=Q["[object String]"]=Q["[object WeakMap]"]=!1;var Z,X="object"==typeof r&&r&&!r.nodeType&&r,ee=X&&"object"==typeof t&&t&&!t.nodeType&&t,te=ee&&ee.exports===X&&_.process,re=function(){try{return ee&&ee.require&&ee.require("util").types||te&&te.binding&&te.binding("util")}catch(e){}}(),ne=re&&re.isTypedArray,ie=ne?(Z=ne,function(e){return Z(e)}):function(e){return L(e)&&M(e.length)&&!!Q[P(e)]},oe=Object.prototype.hasOwnProperty;var ae=Object.prototype,se=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),ce=Object.prototype.hasOwnProperty;function ue(e){return I(e)?function(e,t){var r=K(e),n=!r&&z(e),i=!r&&!n&&Y(e),o=!r&&!n&&!i&&ie(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!oe.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||J(u,c))||s.push(u);return s}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||ae))return se(e);var t,r,n=[];for(var i in Object(e))ce.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}function le(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}function fe(e){return function(t,r,n){if(n=R(n||B),e<=0||!t)return n(null);var i=function(e){if(I(e))return function(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}(e);var t,r,n,i,o=function(e){return D&&e[D]&&e[D]()}(e);return o?function(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}(o):(r=ue(t=e),n=-1,i=r.length,function(){var e=r[++n];return n<i?{value:t[e],key:e}:null})}(t),o=!1,a=0,s=!1;function c(e,t){if(a-=1,e)o=!0,n(e);else{if(t===N||o&&a<=0)return o=!0,n(null);s||u()}}function u(){for(s=!0;a<e&&!o;){var t=i();if(null===t)return o=!0,void(a<=0&&n(null));a+=1,r(t.value,t.key,le(c))}s=!1}u()}}function de(e,t,r,n){fe(t)(e,v(r),n)}function he(e,t){return function(r,n,i){return e(r,t,n,i)}}function pe(e,t,r){r=R(r||B);var n=0,i=0,o=e.length;function a(e,t){e?r(e):++i!==o&&t!==N||r(null)}for(0===o&&r(null);n<o;n++)t(e[n],n,le(a))}var me=he(de,1/0),ye=function(e,t,r){(I(e)?pe:me)(e,v(t),r)};function ge(e){return function(t,r,n){return e(ye,t,v(r),n)}}function be(e,t,r,n){n=n||B,t=t||[];var i=[],o=0,a=v(r);e(t,(function(e,t,r){var n=o++;a(e,(function(e,t){i[n]=t,r(e)}))}),(function(e){n(e,i)}))}var ve=ge(be),we=w(ve);function _e(e){return function(t,r,n,i){return e(fe(r),t,v(n),i)}}var xe=_e(be),ke=he(xe,1),Se=w(ke);function Ee(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ae(e,t){return e&&function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e}(e,t,ue)}function Te(e){return e!=e}function Ce(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):function(e,t,r,n){for(var i=e.length,o=r+-1;++o<i;)if(t(e[o],o,e))return o;return-1}(e,Te,r)}var Oe=function(e,t,r){"function"==typeof t&&(r=t,t=null),r=R(r||B);var n=ue(e).length;if(!n)return r(null);t||(t=n);var i={},a=0,s=!1,c=Object.create(null),u=[],l=[],f={};function d(e,t){u.push((function(){!function(e,t){if(!s){var n=le((function(t,n){if(a--,arguments.length>2&&(n=o(arguments,1)),t){var u={};Ae(i,(function(e,t){u[t]=e})),u[e]=n,s=!0,c=Object.create(null),r(t,u)}else i[e]=n,p(e)}));a++;var u=v(t[t.length-1]);t.length>1?u(i,n):u(n)}}(e,t)}))}function h(){if(0===u.length&&0===a)return r(null,i);for(;u.length&&a<t;)u.shift()()}function p(e){Ee(c[e]||[],(function(e){e()})),h()}function m(t){var r=[];return Ae(e,(function(e,n){K(e)&&Ce(e,t,0)>=0&&r.push(n)})),r}Ae(e,(function(t,r){if(!K(t))return d(r,[t]),void l.push(r);var n=t.slice(0,t.length-1),i=n.length;if(0===i)return d(r,t),void l.push(r);f[r]=i,Ee(n,(function(o){if(!e[o])throw new Error("async.auto task `"+r+"` has a non-existent dependency `"+o+"` in "+n.join(", "));!function(e,t){var r=c[e];r||(r=c[e]=[]),r.push(t)}(o,(function(){0==--i&&d(r,t)}))}))})),function(){for(var e=0;l.length;)e++,Ee(m(l.pop()),(function(e){0==--f[e]&&l.push(e)}));if(e!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h()};function je(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Pe=S?S.prototype:void 0,Me=Pe?Pe.toString:void 0;function Ie(e){if("string"==typeof e)return e;if(K(e))return je(e,Ie)+"";if(function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==P(e)}(e))return Me?Me.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Ne=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Be="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Re="\\ud83c[\\udffb-\\udfff]",De="[^\\ud800-\\udfff]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="(?:"+Be+"|"+Re+")?",qe="[\\ufe0e\\ufe0f]?"+Fe+"(?:\\u200d(?:"+[De,Le,Ue].join("|")+")[\\ufe0e\\ufe0f]?"+Fe+")*",He="(?:"+[De+Be+"?",Be,Le,Ue,"[\\ud800-\\udfff]"].join("|")+")",ze=RegExp(Re+"(?="+Re+")|"+He+qe,"g");function Ke(e){return function(e){return Ne.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.split("")}(e)}var Ve=/^\s+|\s+$/g;function Ge(e,t,r){var n;if((e=null==(n=e)?"":Ie(n))&&(r||void 0===t))return e.replace(Ve,"");if(!e||!(t=Ie(t)))return e;var i=Ke(e),o=Ke(t);return function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}(e,t,r)}(i,function(e,t){for(var r=-1,n=e.length;++r<n&&Ce(t,e[r],0)>-1;);return r}(i,o),function(e,t){for(var r=e.length;r--&&Ce(t,e[r],0)>-1;);return r}(i,o)+1).join("")}var We=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Ye=/,/,$e=/(=.+)?(\s*)$/,Je=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function Qe(e,t){var r={};Ae(e,(function(e,t){var n,i=b(e),o=!i&&1===e.length||i&&0===e.length;if(K(e))n=e.slice(0,-1),e=e[e.length-1],r[t]=n.concat(n.length>0?a:e);else if(o)r[t]=e;else{if(n=function(e){return(e=(e=(e=e.toString().replace(Je,"")).match(We)[2].replace(" ",""))?e.split(Ye):[]).map((function(e){return Ge(e.replace($e,""))}))}(e),0===e.length&&!i&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");i||n.pop(),r[t]=n.concat(a)}function a(t,r){var i=je(n,(function(e){return t[e]}));i.push(r),v(e).apply(null,i)}})),Oe(r,t)}function Ze(){this.head=this.tail=null,this.length=0}function Xe(e,t){e.length=1,e.head=e.tail=t}function et(e,t,r){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var n=v(e),i=0,o=[],a=!1;function s(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(l.started=!0,K(e)||(e=[e]),0===e.length&&l.idle())return h((function(){l.drain()}));for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:r||B};t?l._tasks.unshift(o):l._tasks.push(o)}a||(a=!0,h((function(){a=!1,l.process()})))}function c(e){return function(t){i-=1;for(var r=0,n=e.length;r<n;r++){var a=e[r],s=Ce(o,a,0);0===s?o.shift():s>0&&o.splice(s,1),a.callback.apply(a,arguments),null!=t&&l.error(t,a.data)}i<=l.concurrency-l.buffer&&l.unsaturated(),l.idle()&&l.drain(),l.process()}}var u=!1,l={_tasks:new Ze,concurrency:t,payload:r,saturated:B,unsaturated:B,buffer:t/4,empty:B,drain:B,error:B,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){l.drain=B,l._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){l._tasks.remove(e)},process:function(){if(!u){for(u=!0;!l.paused&&i<l.concurrency&&l._tasks.length;){var e=[],t=[],r=l._tasks.length;l.payload&&(r=Math.min(r,l.payload));for(var a=0;a<r;a++){var s=l._tasks.shift();e.push(s),o.push(s),t.push(s.data)}i+=1,0===l._tasks.length&&l.empty(),i===l.concurrency&&l.saturated();var f=le(c(e));n(t,f)}u=!1}},length:function(){return l._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return l._tasks.length+i===0},pause:function(){l.paused=!0},resume:function(){!1!==l.paused&&(l.paused=!1,h(l.process))}};return l}function tt(e,t){return et(e,1,t)}Ze.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},Ze.prototype.empty=function(){for(;this.head;)this.shift();return this},Ze.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},Ze.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},Ze.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):Xe(this,e)},Ze.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):Xe(this,e)},Ze.prototype.shift=function(){return this.head&&this.removeLink(this.head)},Ze.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},Ze.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,r=0;r<this.length;r++)e[r]=t.data,t=t.next;return e},Ze.prototype.remove=function(e){for(var t=this.head;t;){var r=t.next;e(t)&&this.removeLink(t),t=r}return this};var rt=he(de,1);function nt(e,t,r,n){n=R(n||B);var i=v(r);rt(e,(function(e,r,n){i(t,e,(function(e,r){t=r,n(e)}))}),(function(e){n(e,t)}))}function it(){var e=je(arguments,v);return function(){var t=o(arguments),r=this,n=t[t.length-1];"function"==typeof n?t.pop():n=B,nt(e,t,(function(e,t,n){t.apply(r,e.concat((function(e){var t=o(arguments,1);n(e,t)})))}),(function(e,t){n.apply(r,[e].concat(t))}))}}var ot=function(){return it.apply(null,o(arguments).reverse())},at=Array.prototype.concat,st=function(e,t,r,n){n=n||B;var i=v(r);xe(e,t,(function(e,t){i(e,(function(e){return e?t(e):t(null,o(arguments,1))}))}),(function(e,t){for(var r=[],i=0;i<t.length;i++)t[i]&&(r=at.apply(r,t[i]));return n(e,r)}))},ct=he(st,1/0),ut=he(st,1),lt=function(){var e=o(arguments),t=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,t)}};function ft(e){return e}function dt(e,t){return function(r,n,i,o){o=o||B;var a,s=!1;r(n,(function(r,n,o){i(r,(function(n,i){n?o(n):e(i)&&!a?(s=!0,a=t(!0,r),o(null,N)):o()}))}),(function(e){e?o(e):o(null,s?a:t(!1))}))}}function ht(e,t){return t}var pt=ge(dt(ft,ht)),mt=_e(dt(ft,ht)),yt=he(mt,1);function gt(e){return function(t){var r=o(arguments,1);r.push((function(t){var r=o(arguments,1);"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&Ee(r,(function(t){console[e](t)})))})),v(t).apply(null,r)}}var bt=gt("dir");function vt(e,t,r){r=le(r||B);var n=v(e),i=v(t);function a(e){if(e)return r(e);var t=o(arguments,1);t.push(s),i.apply(this,t)}function s(e,t){return e?r(e):t?void n(a):r(null)}s(null,!0)}function wt(e,t,r){r=le(r||B);var n=v(e),i=function(e){if(e)return r(e);var a=o(arguments,1);if(t.apply(this,a))return n(i);r.apply(null,[null].concat(a))};n(i)}function _t(e,t,r){wt(e,(function(){return!t.apply(this,arguments)}),r)}function xt(e,t,r){r=le(r||B);var n=v(t),i=v(e);function o(e){if(e)return r(e);i(a)}function a(e,t){return e?r(e):t?void n(o):r(null)}i(a)}function kt(e){return function(t,r,n){return e(t,n)}}function St(e,t,r){ye(e,kt(v(t)),r)}function Et(e,t,r,n){fe(t)(e,kt(v(r)),n)}var At=he(Et,1);function Tt(e){return b(e)?e:s((function(t,r){var n=!0;t.push((function(){var e=arguments;n?h((function(){r.apply(null,e)})):r.apply(null,e)})),e.apply(this,t),n=!1}))}function Ct(e){return!e}var Ot=ge(dt(Ct,Ct)),jt=_e(dt(Ct,Ct)),Pt=he(jt,1);function Mt(e){return function(t){return null==t?void 0:t[e]}}function It(e,t,r,n){var i=new Array(t.length);e(t,(function(e,t,n){r(e,(function(e,r){i[t]=!!r,n(e)}))}),(function(e){if(e)return n(e);for(var r=[],o=0;o<t.length;o++)i[o]&&r.push(t[o]);n(null,r)}))}function Nt(e,t,r,n){var i=[];e(t,(function(e,t,n){r(e,(function(r,o){r?n(r):(o&&i.push({index:t,value:e}),n())}))}),(function(e){e?n(e):n(null,je(i.sort((function(e,t){return e.index-t.index})),Mt("value")))}))}function Bt(e,t,r,n){(I(t)?It:Nt)(e,t,v(r),n||B)}var Rt=ge(Bt),Dt=_e(Bt),Lt=he(Dt,1);function Ut(e,t){var r=le(t||B),n=v(Tt(e));!function e(t){if(t)return r(t);n(e)}()}var Ft=function(e,t,r,n){n=n||B;var i=v(r);xe(e,t,(function(e,t){i(e,(function(r,n){return r?t(r):t(null,{key:n,val:e})}))}),(function(e,t){for(var r={},i=Object.prototype.hasOwnProperty,o=0;o<t.length;o++)if(t[o]){var a=t[o].key,s=t[o].val;i.call(r,a)?r[a].push(s):r[a]=[s]}return n(e,r)}))},qt=he(Ft,1/0),Ht=he(Ft,1),zt=gt("log");function Kt(e,t,r,n){n=R(n||B);var i={},o=v(r);de(e,t,(function(e,t,r){o(e,t,(function(e,n){if(e)return r(e);i[t]=n,r()}))}),(function(e){n(e,i)}))}var Vt=he(Kt,1/0),Gt=he(Kt,1);function Wt(e,t){return t in e}function Yt(e,t){var r=Object.create(null),n=Object.create(null);t=t||ft;var i=v(e),a=s((function(e,a){var s=t.apply(null,e);Wt(r,s)?h((function(){a.apply(null,r[s])})):Wt(n,s)?n[s].push(a):(n[s]=[a],i.apply(null,e.concat((function(){var e=o(arguments);r[s]=e;var t=n[s];delete n[s];for(var i=0,a=t.length;i<a;i++)t[i].apply(null,e)}))))}));return a.memo=r,a.unmemoized=e,a}var $t=d(l?e.nextTick:u?i:f);function Jt(e,t,r){r=r||B;var n=I(t)?[]:{};e(t,(function(e,t,r){v(e)((function(e,i){arguments.length>2&&(i=o(arguments,1)),n[t]=i,r(e)}))}),(function(e){r(e,n)}))}function Qt(e,t){Jt(ye,e,t)}function Zt(e,t,r){Jt(fe(t),e,r)}var Xt=function(e,t){var r=v(e);return et((function(e,t){r(e[0],t)}),t,1)},er=function(e,t){var r=Xt(e,t);return r.push=function(e,t,n){if(null==n&&(n=B),"function"!=typeof n)throw new Error("task callback must be a function");if(r.started=!0,K(e)||(e=[e]),0===e.length)return h((function(){r.drain()}));t=t||0;for(var i=r._tasks.head;i&&t>=i.priority;)i=i.next;for(var o=0,a=e.length;o<a;o++){var s={data:e[o],priority:t,callback:n};i?r._tasks.insertBefore(i,s):r._tasks.push(s)}h(r.process)},delete r.unshift,r};function tr(e,t){if(t=R(t||B),!K(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,n=e.length;r<n;r++)v(e[r])(t)}function rr(e,t,r,n){nt(o(e).reverse(),t,r,n)}function nr(e){var t=v(e);return s((function(e,r){return e.push((function(e,t){var n;e?r(null,{error:e}):(n=arguments.length<=2?t:o(arguments,1),r(null,{value:n}))})),t.apply(this,e)}))}function ir(e){var t;return K(e)?t=je(e,nr):(t={},Ae(e,(function(e,r){t[r]=nr.call(this,e)}))),t}function or(e,t,r,n){Bt(e,t,(function(e,t){r(e,(function(e,r){t(e,!r)}))}),n)}var ar=ge(or),sr=_e(or),cr=he(sr,1);function ur(e){return function(){return e}}function lr(e,t,r){var n=5,i=0,o={times:n,intervalFunc:ur(i)};function a(e,t){if("object"==typeof t)e.times=+t.times||n,e.intervalFunc="function"==typeof t.interval?t.interval:ur(+t.interval||i),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||n}}if(arguments.length<3&&"function"==typeof e?(r=t||B,t=e):(a(o,e),r=r||B),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var s=v(t),c=1;function u(){s((function(e){e&&c++<o.times&&("function"!=typeof o.errorFilter||o.errorFilter(e))?setTimeout(u,o.intervalFunc(c)):r.apply(null,arguments)}))}u()}var fr=function(e,t){t||(t=e,e=null);var r=v(t);return s((function(t,n){function i(e){r.apply(null,t.concat(e))}e?lr(e,i,n):lr(i,n)}))};function dr(e,t){Jt(rt,e,t)}var hr=ge(dt(Boolean,ft)),pr=_e(dt(Boolean,ft)),mr=he(pr,1);function yr(e,t,r){var n=v(t);function i(e,t){var r=e.criteria,n=t.criteria;return r<n?-1:r>n?1:0}ve(e,(function(e,t){n(e,(function(r,n){if(r)return t(r);t(null,{value:e,criteria:n})}))}),(function(e,t){if(e)return r(e);r(null,je(t.sort(i),Mt("value")))}))}function gr(e,t,r){var n=v(e);return s((function(i,o){var a,s=!1;i.push((function(){s||(o.apply(null,arguments),clearTimeout(a))})),a=setTimeout((function(){var t=e.name||"anonymous",n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),s=!0,o(n)}),t),n.apply(null,i)}))}var br=Math.ceil,vr=Math.max;function wr(e,t,r,n){var i=v(r);xe(function(e,t,r,n){for(var i=-1,o=vr(br((t-e)/1),0),a=Array(o);o--;)a[++i]=e,e+=1;return a}(0,e),t,i,n)}var _r=he(wr,1/0),xr=he(wr,1);function kr(e,t,r,n){arguments.length<=3&&(n=r,r=t,t=K(e)?[]:{}),n=R(n||B);var i=v(r);ye(e,(function(e,r,n){i(t,e,r,n)}),(function(e){n(e,t)}))}function Sr(e,t){var r,n=null;t=t||B,At(e,(function(e,t){v(e)((function(e,i){r=arguments.length>2?o(arguments,1):i,n=e,t(!e)}))}),(function(){t(n,r)}))}function Er(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function Ar(e,t,r){r=le(r||B);var n=v(t);if(!e())return r(null);var i=function(t){if(t)return r(t);if(e())return n(i);var a=o(arguments,1);r.apply(null,[null].concat(a))};n(i)}function Tr(e,t,r){Ar((function(){return!e.apply(this,arguments)}),t,r)}var Cr=function(e,t){if(t=R(t||B),!K(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function n(t){var n=v(e[r++]);t.push(le(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);n(o(arguments,1))}n([])},Or={apply:a,applyEach:we,applyEachSeries:Se,asyncify:p,auto:Oe,autoInject:Qe,cargo:tt,compose:ot,concat:ct,concatLimit:st,concatSeries:ut,constant:lt,detect:pt,detectLimit:mt,detectSeries:yt,dir:bt,doDuring:vt,doUntil:_t,doWhilst:wt,during:xt,each:St,eachLimit:Et,eachOf:ye,eachOfLimit:de,eachOfSeries:rt,eachSeries:At,ensureAsync:Tt,every:Ot,everyLimit:jt,everySeries:Pt,filter:Rt,filterLimit:Dt,filterSeries:Lt,forever:Ut,groupBy:qt,groupByLimit:Ft,groupBySeries:Ht,log:zt,map:ve,mapLimit:xe,mapSeries:ke,mapValues:Vt,mapValuesLimit:Kt,mapValuesSeries:Gt,memoize:Yt,nextTick:$t,parallel:Qt,parallelLimit:Zt,priorityQueue:er,queue:Xt,race:tr,reduce:nt,reduceRight:rr,reflect:nr,reflectAll:ir,reject:ar,rejectLimit:sr,rejectSeries:cr,retry:lr,retryable:fr,seq:it,series:dr,setImmediate:h,some:hr,someLimit:pr,someSeries:mr,sortBy:yr,timeout:gr,times:_r,timesLimit:wr,timesSeries:xr,transform:kr,tryEach:Sr,unmemoize:Er,until:Tr,waterfall:Cr,whilst:Ar,all:Ot,allLimit:jt,allSeries:Pt,any:hr,anyLimit:pr,anySeries:mr,find:pt,findLimit:mt,findSeries:yt,forEach:St,forEachSeries:At,forEachLimit:Et,forEachOf:ye,forEachOfSeries:rt,forEachOfLimit:de,inject:nt,foldl:nt,foldr:rr,select:Rt,selectLimit:Dt,selectSeries:Lt,wrapSync:p};r.default=Or,r.apply=a,r.applyEach=we,r.applyEachSeries=Se,r.asyncify=p,r.auto=Oe,r.autoInject=Qe,r.cargo=tt,r.compose=ot,r.concat=ct,r.concatLimit=st,r.concatSeries=ut,r.constant=lt,r.detect=pt,r.detectLimit=mt,r.detectSeries=yt,r.dir=bt,r.doDuring=vt,r.doUntil=_t,r.doWhilst=wt,r.during=xt,r.each=St,r.eachLimit=Et,r.eachOf=ye,r.eachOfLimit=de,r.eachOfSeries=rt,r.eachSeries=At,r.ensureAsync=Tt,r.every=Ot,r.everyLimit=jt,r.everySeries=Pt,r.filter=Rt,r.filterLimit=Dt,r.filterSeries=Lt,r.forever=Ut,r.groupBy=qt,r.groupByLimit=Ft,r.groupBySeries=Ht,r.log=zt,r.map=ve,r.mapLimit=xe,r.mapSeries=ke,r.mapValues=Vt,r.mapValuesLimit=Kt,r.mapValuesSeries=Gt,r.memoize=Yt,r.nextTick=$t,r.parallel=Qt,r.parallelLimit=Zt,r.priorityQueue=er,r.queue=Xt,r.race=tr,r.reduce=nt,r.reduceRight=rr,r.reflect=nr,r.reflectAll=ir,r.reject=ar,r.rejectLimit=sr,r.rejectSeries=cr,r.retry=lr,r.retryable=fr,r.seq=it,r.series=dr,r.setImmediate=h,r.some=hr,r.someLimit=pr,r.someSeries=mr,r.sortBy=yr,r.timeout=gr,r.times=_r,r.timesLimit=wr,r.timesSeries=xr,r.transform=kr,r.tryEach=Sr,r.unmemoize=Er,r.until=Tr,r.waterfall=Cr,r.whilst=Ar,r.all=Ot,r.allLimit=jt,r.allSeries=Pt,r.any=hr,r.anyLimit=pr,r.anySeries=mr,r.find=pt,r.findLimit=mt,r.findSeries=yt,r.forEach=St,r.forEachSeries=At,r.forEachLimit=Et,r.forEachOf=ye,r.forEachOfSeries=rt,r.forEachOfLimit=de,r.inject=nt,r.foldl=nt,r.foldr=rr,r.select=Rt,r.selectLimit=Dt,r.selectSeries=Lt,r.wrapSync=p,Object.defineProperty(r,"__esModule",{value:!0})}))}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{_process:952,timers:1088}],621:[function(e,t,r){const{JsonRpcError:n,EthJsonRpcError:i}=e("./src/classes"),{serializeError:o,getMessageFromCode:a}=e("./src/utils"),s=e("./src/errors"),c=e("./src/errorCodes.json");t.exports={errors:s,JsonRpcError:n,EthJsonRpcError:i,serializeError:o,getMessageFromCode:a,ERROR_CODES:c}},{"./src/classes":622,"./src/errorCodes.json":623,"./src/errors":625,"./src/utils":626}],622:[function(e,t,r){const n=e("fast-safe-stringify");class i extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return n(this.serialize(),o,2)}}function o(e,t){if("[Circular]"!==t)return t}t.exports={JsonRpcError:i,EthJsonRpcError:class extends i{constructor(e,t,r){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}}},{"fast-safe-stringify":782}],623:[function(e,t,r){t.exports={jsonRpc:{parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},eth:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200}}},{}],624:[function(e,t,r){t.exports={"-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."},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."}}},{}],625:[function(e,t,r){const{JsonRpcError:n,EthJsonRpcError:i}=e("./classes"),{getMessageFromCode:o}=e("./utils"),a=e("./errorCodes.json");function s(e,t,r){return new n(e,t||o(e),r)}function c(e,t,r){return new i(e,t||o(e),r)}t.exports={parse:(e,t)=>s(a.jsonRpc.parse,e,t),invalidRequest:(e,t)=>s(a.jsonRpc.invalidRequest,e,t),invalidParams:(e,t)=>s(a.jsonRpc.invalidParams,e,t),methodNotFound:(e,t)=>s(a.jsonRpc.methodNotFound,e,t),internal:(e,t)=>s(a.jsonRpc.internal,e,t),server:(e,t,r)=>{if(!Number.isInteger(e)||e>-32e3||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32000');return s(e,t,r)},eth:{userRejectedRequest:(e,t)=>c(a.eth.userRejectedRequest,e,t),unauthorized:(e,t)=>c(a.eth.unauthorized,e,t),unsupportedMethod:(e,t)=>c(a.eth.unsupportedMethod,e,t),custom:(e,t,r)=>{if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string');return new i(e,t,r)}}}},{"./classes":622,"./errorCodes.json":623,"./utils":626}],626:[function(e,t,r){const n=e("./errorValues.json"),i=e("./errorCodes.json").jsonRpc.internal,{JsonRpcError:o}=e("./classes"),a={code:i,message:s(i)};function s(e,t="Unspecified error message. This is bug, please report it."){if(Number.isInteger(e)){const t=e.toString();if(n[t])return n[t].message;if(u(e))return"Unspecified server error."}return t}function c(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!n[t]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}t.exports={getMessageFromCode:s,isValidCode:c,serializeError:function(e,t=a){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("fallbackError must contain integer number code and string message.");if("object"==typeof e&&e instanceof o)return e.serialize();const r={};return e&&c(e.code)?(r.code=e.code,e.message&&"string"==typeof e.message?(r.message=e.message,e.hasOwnProperty("data")&&(r.data=e.data)):(r.message=s(r.code),r.data={originalError:l(e)})):(r.code=t.code,r.message=e&&e.message?e.message:t.message,r.data={originalError:l(e)}),e&&e.stack&&(r.stack=e.stack),r},JSON_RPC_SERVER_ERROR_MESSAGE:"Unspecified server error."}},{"./classes":622,"./errorCodes.json":623,"./errorValues.json":624}],627:[function(e,t,r){const n=e("safe-event-emitter");t.exports=function(e){const t=new n;return t.sendAsync=e.handle.bind(e),t.send=(t,r)=>{if(!r)throw new Error('Web3 Provider - must provider callback to "send" method');e.handle(t,r)},e.on&&e.on("notification",e=>{t.emit("data",null,e)}),t}},{"safe-event-emitter":1038}],628:[function(e,t,r){arguments[4][601][0].apply(r,arguments)},{"./src/classes":629,"./src/errorCodes.json":630,"./src/errors":632,"./src/utils":633,dup:601}],629:[function(e,t,r){arguments[4][602][0].apply(r,arguments)},{dup:602,"fast-safe-stringify":782}],630:[function(e,t,r){arguments[4][603][0].apply(r,arguments)},{dup:603}],631:[function(e,t,r){arguments[4][604][0].apply(r,arguments)},{dup:604}],632:[function(e,t,r){arguments[4][605][0].apply(r,arguments)},{"./classes":629,"./errorCodes.json":630,"./utils":633,dup:605}],633:[function(e,t,r){arguments[4][606][0].apply(r,arguments)},{"./classes":629,"./errorCodes.json":630,"./errorValues.json":631,dup:606}],634:[function(e,t,r){arguments[4][615][0].apply(r,arguments)},{dup:615,"promise-to-callback":953}],635:[function(e,t,r){"use strict";const n=e("async"),i=e("safe-event-emitter"),{serializeError:o,EthereumRpcError:a,ERROR_CODES:s}=e("eth-json-rpc-errors");t.exports=class extends i{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){Array.isArray(e)?this._handleBatch(e,t):this._handle(e,t)}async _handleBatch(e,t){try{t(null,await Promise.all(e.map(this._promiseHandle.bind(this))))}catch(e){t(e)}}_promiseHandle(e){return new Promise((t,r)=>{this._handle(e,(e,n)=>{n?t(n):r(e||new a(s.rpc.internal,"JsonRpcEngine: Request handler returned neither error nor response."))})})}_handle(e,t){const r=Object.assign({},e),n={id:r.id,jsonrpc:r.jsonrpc};this._runMiddleware(r,n,e=>{const r=n._originalError;if(delete n._originalError,r)return delete n.result,t(r,n);t(e,n)})}_runMiddleware(e,t,r){n.waterfall([r=>this._runMiddlewareDown(e,t,r),function({isComplete:r,returnHandlers:n},i){if(!("result"in t)&&!("error"in t)){const t="JsonRpcEngine: Response has no error or result for request:\n"+JSON.stringify(e,null,2);return i(new a(s.rpc.internal,t,e))}if(!r){const t="JsonRpcEngine: Nothing ended request:\n"+JSON.stringify(e,null,2);return i(new a(s.rpc.internal,t,e))}return i(null,n)},(e,t)=>this._runReturnHandlersUp(e,t)],r)}_runMiddlewareDown(e,t,r){let i=[],a=!1;n.mapSeries(this._middleware,(function(r,n){if(a)return n();function s(e){const r=e||t&&t.error;r&&(t.error=o(r),t._originalError=r),a=!0,n()}r(e,t,(function(e){t.error?s(t.error):(i.push(e),n())}),s)}),(function(e){if(e)return t.error=o(e),delete t.result,r(e,t);const n=i.filter(Boolean).reverse();r(null,{isComplete:a,returnHandlers:n})}))}_runReturnHandlersUp(e,t){n.eachSeries(e,(e,t)=>e(t),t)}}},{async:620,"eth-json-rpc-errors":628,"safe-event-emitter":1038}],636:[function(e,t,r){const n=e("json-rpc-engine"),i=e("eth-json-rpc-middleware/providerFromEngine"),o=e("./index");t.exports=function(e){const t=new n;return t.push(o(e)),i(t)}},{"./index":637,"eth-json-rpc-middleware/providerFromEngine":627,"json-rpc-engine":635}],637:[function(e,t,r){const n=e("json-rpc-engine/src/createAsyncMiddleware"),{errors:i}=e("eth-json-rpc-errors"),o=e("cross-fetch"),a=["eth_call","eth_estimateGas","eth_sendRawTransaction"],s=["Gateway timeout","ETIMEDOUT","ECONNRESET","SyntaxError"];function c(e){return new Promise(t=>{setTimeout(t,e)})}function u(e){const t=e.toString();return s.some(e=>t.includes(e))}async function l(e,t,r,n){const{fetchUrl:a,fetchParams:s}=f({network:e,req:t,source:n}),c=await o(a,s),u=await c.text();if(!c.ok)switch(c.status){case 405:throw i.methodNotFound();case 418:throw d("Request is being rate limited.");case 503:case 504:throw function(){let e="Gateway timeout. The request took too long to process. ";return e+="This can happen when querying logs over too wide a block range.",d("Gateway timeout. The request took too long to process. This can happen when querying logs over too wide a block range.")}();default:throw d(u)}if("eth_getBlockByNumber"===t.method&&"Not Found"===u)return void(r.result=null);const l=JSON.parse(u);r.result=l.result,r.error=l.error}function f({network:e,req:t,source:r}){const n=t.origin||"internal",i=function(e){return{id:e.id,jsonrpc:e.jsonrpc,method:e.method,params:e.params}}(t),{method:o,params:s}=i,c={};let u="https://api.infura.io/v1/jsonrpc/"+e;return a.includes(o)?(c.method="POST",c.headers={Accept:"application/json","Content-Type":"application/json"},r&&(c.headers["Infura-Source"]=`${r}/${n}`),c.body=JSON.stringify(i)):(c.method="GET",r&&(c.headers={"Infura-Source":`${r}/${n}`}),u+=`/${o}?params=${encodeURIComponent(JSON.stringify(s))}`),{fetchUrl:u,fetchParams:c}}function d(e){return i.internal(e)}t.exports=function(e={}){const t=e.network||"mainnet",r=e.maxAttempts||5,i=e.source;if(!r)throw new Error(`Invalid value for 'maxAttempts': "${r}" (${typeof r})`);return n(async(e,n,o)=>{for(let o=1;o<=r;o++)try{await l(t,e,n,i);break}catch(e){if(!u(e))throw e;if(!(r-o)){const t=`InfuraProvider - cannot complete request. All retries exhausted.\nOriginal Error:\n${e.toString()}\n\n`;throw new Error(t)}await c(1e3)}})},t.exports.fetchConfigFromReq=f},{"cross-fetch":504,"eth-json-rpc-errors":621,"json-rpc-engine/src/createAsyncMiddleware":634}],638:[function(e,t,r){const n=e("./cache-utils.js"),i=e("json-rpc-engine/src/createAsyncMiddleware"),o=[void 0,null,"<nil>"];t.exports=function(e={}){const{blockTracker:t}=e;if(!t)throw new Error("createBlockCacheMiddleware - No BlockTracker specified");const r=new a,o={perma:r,block:r,fork:r};return i(async(e,i,a)=>{if(e.skipCache)return a();const s=n.cacheTypeForPayload(e),c=o[s];if(!c)return a();if(!c.canCacheRequest(e))return a();let u,l=n.blockTagForPayload(e);if(l||(l="latest"),"earliest"===l)u="0x00";else if("latest"===l){const e=await t.getLatestBlock();r.clearBefore(e),u=e}else u=l;const f=await c.get(e,u);void 0===f?(await a(),await c.set(e,u,i.result)):i.result=f})};class a{constructor(){this.cache={}}getBlockCacheForPayload(e,t){const r=Number.parseInt(t,16);let n=this.cache[r];if(!n){const e={};this.cache[r]=e,n=e}return n}async get(e,t){const r=this.getBlockCacheForPayload(e,t);if(r)return r[n.cacheIdentifierForPayload(e,!0)]}async set(e,t,r){this.canCacheResult(e,r)&&(this.getBlockCacheForPayload(e,t)[n.cacheIdentifierForPayload(e,!0)]=r)}canCacheRequest(e){return!!n.canCache(e)&&"pending"!==n.blockTagForPayload(e)}canCacheResult(e,t){if(!o.includes(t))return!!(!["eth_getTransactionByHash","eth_getTransactionReceipt"].includes(e.method)||t&&t.blockHash&&"0x0000000000000000000000000000000000000000000000000000000000000000"!==t.blockHash)}clearBefore(e){const t=this,r=Number.parseInt(e,16);Object.keys(t.cache).map(Number).filter(e=>e<r).forEach(e=>delete t.cache[e])}}},{"./cache-utils.js":642,"json-rpc-engine/src/createAsyncMiddleware":653}],639:[function(e,t,r){const n=e("json-rpc-engine/src/createAsyncMiddleware"),i=e("./cache-utils").blockTagParamIndex;t.exports=function(e={}){const{blockTracker:t}=e;if(!t)throw Error('BlockRefRewriteMiddleware - mandatory "blockTracker" option is missing.');return n(async(e,r,n)=>{const o=i(e);if(void 0===o)return n();let a=e.params[o];if(void 0===a&&(a="latest"),"latest"!==a)return n();const s=await t.getLatestBlock();e.params[o]=s,n()})}},{"./cache-utils":642,"json-rpc-engine/src/createAsyncMiddleware":653}],640:[function(e,t,r){const n=e("pify"),i=e("clone"),o=e("json-rpc-engine/src/createAsyncMiddleware"),a=e("./cache-utils").blockTagParamIndex;t.exports=function(e={}){const{provider:t,blockTracker:r}=e;if(!t)throw Error('BlockRefMiddleware - mandatory "provider" option is missing.');if(!r)throw Error('BlockRefMiddleware - mandatory "blockTracker" option is missing.');return o(async(e,o,s)=>{const c=a(e);if(void 0===c)return s();let u=e.params[c];if(void 0===u&&(u="latest"),"latest"!==u)return s();const l=await r.getLatestBlock(),f=i(e);f.params[c]=l;const d=await n(t.sendAsync).call(t,f);o.result=d.result,o.error=d.error})}},{"./cache-utils":642,clone:490,"json-rpc-engine/src/createAsyncMiddleware":653,pify:656}],641:[function(e,t,r){const n=e("json-rpc-engine/src/createAsyncMiddleware"),i=["eth_getTransactionByHash","eth_getTransactionReceipt"];t.exports=function({blockTracker:e}){return n(async(t,r,n)=>{if(!i.includes(t.method))return n();await n(),r.result&&r.result.blockNumber&&Number.parseInt(r.result.blockNumber,16)>Number.parseInt(e.getCurrentBlock(),16)&&await e.checkForLatestBlock()})}},{"json-rpc-engine/src/createAsyncMiddleware":653}],642:[function(e,t,r){const n=e("json-stable-stringify");function i(e){return"never"!==s(e)}function o(e){const t=a(e);return t>=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}function a(e){switch(e.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":return 1;case"eth_getBlockByNumber":return 0;default:return}}function s(e){switch(e.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":case"test_permaCache":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":case"test_forkCache":return"fork";case"eth_gasPrice":case"eth_blockNumber":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"test_blockCache":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":case"test_neverCache":return"never"}}t.exports={cacheIdentifierForPayload:function(e,t){const r=t?o(e):e.params;return i(e)?e.method+":"+n(r):null},canCache:i,blockTagForPayload:function(e){let t=a(e);return t>=e.params.length?null:e.params[t]},paramsWithoutBlockTag:o,blockTagParamIndex:a,cacheTypeForPayload:s}},{"json-stable-stringify":823}],643:[function(e,t,r){(function(r){const n=r.fetch||e("fetch-ponyfill")().fetch,i=e("url"),{ethErrors:o}=e("eth-rpc-errors"),a=e("btoa"),s=e("json-rpc-engine/src/createAsyncMiddleware");t.exports=function({rpcUrl:e,originHttpHeaderKey:t}){return s(async(r,i,o)=>{const{fetchUrl:a,fetchParams:s}=f({req:r,rpcUrl:e,originHttpHeaderKey:t});for(let e=0;e<5;e++){try{const e=await n(a,s);u(e);const t=await e.text();let r;try{r=JSON.parse(t)}catch(e){throw new Error(`FetchMiddleware - failed to parse response body: "${t}"`)}const o=l(e,r);return void(i.result=o)}catch(e){const t=e.toString();if(!c.some(e=>t.includes(e)))throw e}await d(1e3)}})},t.exports.createFetchConfigFromReq=f;const c=["Gateway timeout","ETIMEDOUT","failed to parse response body","Failed to fetch"];function u(e){switch(e.status){case 405:throw o.rpc.methodNotFound();case 418:throw o.rpc.internal({message:"Request is being rate limited."});case 503:case 504:throw function(){let e="Gateway timeout. The request took too long to process. ";return e+="This can happen when querying logs over too wide a block range.",o.rpc.internal({message:"Gateway timeout. The request took too long to process. This can happen when querying logs over too wide a block range."})}()}}function l(e,t){if(200!==e.status)throw o.rpc.internal({message:`Non-200 status code: '${e.status}'`,data:t});if(t.error)throw o.rpc.internal({data:t.error});return t.result}function f({req:e,rpcUrl:t,originHttpHeaderKey:r}){const n=i.parse(t),o=function(e){let t="";return t+=e.protocol,e.slashes&&(t+="//"),t+=e.hostname,e.port&&(t+=":"+e.port),t+=""+e.path,t}(n),s={id:e.id,jsonrpc:e.jsonrpc,method:e.method,params:e.params},c=e.origin,u={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(s)};if(n.auth){const e=a(n.auth);u.headers.Authorization="Basic "+e}return r&&c&&(u.headers[r]=c),{fetchUrl:o,fetchParams:u}}function d(e){return new Promise(t=>setTimeout(t,e))}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{btoa:481,"eth-rpc-errors":688,"fetch-ponyfill":783,"json-rpc-engine/src/createAsyncMiddleware":653,url:1127}],644:[function(e,t,r){const n=e("clone"),i=e("json-rpc-engine/src/createAsyncMiddleware"),o=e("./cache-utils").cacheIdentifierForPayload;t.exports=function(){const e={};return i(async(t,r,i)=>{if(t.skipCache)return i();const a=o(t);if(!a)return i();let s=e[a];s?await function(e,t){const{resolve:r,promise:i}=function(){let e;const t=new Promise(t=>{e=t});return{resolve:e,promise:t}}();return t.push(t=>{e.result=n(t.result),e.error=n(t.error),r()}),i}(r,s):(s=[],e[a]=s,await i(),delete e[a],function(e,t){setTimeout(()=>{t.forEach(t=>{try{t(e)}catch(e){console.error(e)}})})}(r,s))})}},{"./cache-utils":642,clone:490,"json-rpc-engine/src/createAsyncMiddleware":653}],645:[function(e,t,r){(function(e,n,i){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.async=e.async||{})}(this,(function(r){"use strict";function o(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i<r;i++)n[i]=e[t+i];return n}var a=function(e){var t=o(arguments,1);return function(){var r=o(arguments);return e.apply(null,t.concat(r))}},s=function(e){return function(){var t=o(arguments),r=t.pop();e.call(this,t,r)}};function c(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var u="function"==typeof i&&i,l="object"==typeof e&&"function"==typeof e.nextTick;function f(e){setTimeout(e,0)}function d(e){return function(t){var r=o(arguments,1);e((function(){t.apply(null,r)}))}}var h=d(u?i:l?e.nextTick:f);function p(e){return s((function(t,r){var n;try{n=e.apply(this,t)}catch(e){return r(e)}c(n)&&"function"==typeof n.then?n.then((function(e){m(r,null,e)}),(function(e){m(r,e.message?e:new Error(e))})):r(null,n)}))}function m(e,t,r){try{e(t,r)}catch(e){h(y,e)}}function y(e){throw e}var g="function"==typeof Symbol;function b(e){return g&&"AsyncFunction"===e[Symbol.toStringTag]}function v(e){return b(e)?p(e):e}function w(e){return function(t){var r=o(arguments,1),n=s((function(r,n){var i=this;return e(t,(function(e,t){v(e).apply(i,r.concat(t))}),n)}));return r.length?n.apply(this,r):n}}var _="object"==typeof n&&n&&n.Object===Object&&n,x="object"==typeof self&&self&&self.Object===Object&&self,k=_||x||Function("return this")(),S=k.Symbol,E=Object.prototype,A=E.hasOwnProperty,T=E.toString,C=S?S.toStringTag:void 0,O=Object.prototype.toString,j=S?S.toStringTag:void 0;function P(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=A.call(e,C),r=e[C];try{e[C]=void 0;var n=!0}catch(e){}var i=T.call(e);return n&&(t?e[C]=r:delete e[C]),i}(e):function(e){return O.call(e)}(e)}function M(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function I(e){return null!=e&&M(e.length)&&!function(e){if(!c(e))return!1;var t=P(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)}var N={};function B(){}function R(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}}var D="function"==typeof Symbol&&Symbol.iterator;function L(e){return null!=e&&"object"==typeof e}function U(e){return L(e)&&"[object Arguments]"==P(e)}var F=Object.prototype,q=F.hasOwnProperty,H=F.propertyIsEnumerable,z=U(function(){return arguments}())?U:function(e){return L(e)&&q.call(e,"callee")&&!H.call(e,"callee")},K=Array.isArray,V="object"==typeof r&&r&&!r.nodeType&&r,G=V&&"object"==typeof t&&t&&!t.nodeType&&t,W=G&&G.exports===V?k.Buffer:void 0,Y=(W?W.isBuffer:void 0)||function(){return!1},$=/^(?:0|[1-9]\d*)$/;function J(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&$.test(e))&&e>-1&&e%1==0&&e<t}var Q={};Q["[object Float32Array]"]=Q["[object Float64Array]"]=Q["[object Int8Array]"]=Q["[object Int16Array]"]=Q["[object Int32Array]"]=Q["[object Uint8Array]"]=Q["[object Uint8ClampedArray]"]=Q["[object Uint16Array]"]=Q["[object Uint32Array]"]=!0,Q["[object Arguments]"]=Q["[object Array]"]=Q["[object ArrayBuffer]"]=Q["[object Boolean]"]=Q["[object DataView]"]=Q["[object Date]"]=Q["[object Error]"]=Q["[object Function]"]=Q["[object Map]"]=Q["[object Number]"]=Q["[object Object]"]=Q["[object RegExp]"]=Q["[object Set]"]=Q["[object String]"]=Q["[object WeakMap]"]=!1;var Z,X="object"==typeof r&&r&&!r.nodeType&&r,ee=X&&"object"==typeof t&&t&&!t.nodeType&&t,te=ee&&ee.exports===X&&_.process,re=function(){try{return ee&&ee.require&&ee.require("util").types||te&&te.binding&&te.binding("util")}catch(e){}}(),ne=re&&re.isTypedArray,ie=ne?(Z=ne,function(e){return Z(e)}):function(e){return L(e)&&M(e.length)&&!!Q[P(e)]},oe=Object.prototype.hasOwnProperty;var ae=Object.prototype,se=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),ce=Object.prototype.hasOwnProperty;function ue(e){return I(e)?function(e,t){var r=K(e),n=!r&&z(e),i=!r&&!n&&Y(e),o=!r&&!n&&!i&&ie(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!oe.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||J(u,c))||s.push(u);return s}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||ae))return se(e);var t,r,n=[];for(var i in Object(e))ce.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}function le(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}function fe(e){return function(t,r,n){if(n=R(n||B),e<=0||!t)return n(null);var i=function(e){if(I(e))return function(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}(e);var t,r,n,i,o=function(e){return D&&e[D]&&e[D]()}(e);return o?function(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}(o):(r=ue(t=e),n=-1,i=r.length,function(){var e=r[++n];return n<i?{value:t[e],key:e}:null})}(t),o=!1,a=0,s=!1;function c(e,t){if(a-=1,e)o=!0,n(e);else{if(t===N||o&&a<=0)return o=!0,n(null);s||u()}}function u(){for(s=!0;a<e&&!o;){var t=i();if(null===t)return o=!0,void(a<=0&&n(null));a+=1,r(t.value,t.key,le(c))}s=!1}u()}}function de(e,t,r,n){fe(t)(e,v(r),n)}function he(e,t){return function(r,n,i){return e(r,t,n,i)}}function pe(e,t,r){r=R(r||B);var n=0,i=0,o=e.length;function a(e,t){e?r(e):++i!==o&&t!==N||r(null)}for(0===o&&r(null);n<o;n++)t(e[n],n,le(a))}var me=he(de,1/0),ye=function(e,t,r){(I(e)?pe:me)(e,v(t),r)};function ge(e){return function(t,r,n){return e(ye,t,v(r),n)}}function be(e,t,r,n){n=n||B,t=t||[];var i=[],o=0,a=v(r);e(t,(function(e,t,r){var n=o++;a(e,(function(e,t){i[n]=t,r(e)}))}),(function(e){n(e,i)}))}var ve=ge(be),we=w(ve);function _e(e){return function(t,r,n,i){return e(fe(r),t,v(n),i)}}var xe=_e(be),ke=he(xe,1),Se=w(ke);function Ee(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Ae(e,t){return e&&function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e}(e,t,ue)}function Te(e){return e!=e}function Ce(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):function(e,t,r,n){for(var i=e.length,o=r+-1;++o<i;)if(t(e[o],o,e))return o;return-1}(e,Te,r)}var Oe=function(e,t,r){"function"==typeof t&&(r=t,t=null),r=R(r||B);var n=ue(e).length;if(!n)return r(null);t||(t=n);var i={},a=0,s=!1,c=Object.create(null),u=[],l=[],f={};function d(e,t){u.push((function(){!function(e,t){if(!s){var n=le((function(t,n){if(a--,arguments.length>2&&(n=o(arguments,1)),t){var u={};Ae(i,(function(e,t){u[t]=e})),u[e]=n,s=!0,c=Object.create(null),r(t,u)}else i[e]=n,p(e)}));a++;var u=v(t[t.length-1]);t.length>1?u(i,n):u(n)}}(e,t)}))}function h(){if(0===u.length&&0===a)return r(null,i);for(;u.length&&a<t;)u.shift()()}function p(e){Ee(c[e]||[],(function(e){e()})),h()}function m(t){var r=[];return Ae(e,(function(e,n){K(e)&&Ce(e,t,0)>=0&&r.push(n)})),r}Ae(e,(function(t,r){if(!K(t))return d(r,[t]),void l.push(r);var n=t.slice(0,t.length-1),i=n.length;if(0===i)return d(r,t),void l.push(r);f[r]=i,Ee(n,(function(o){if(!e[o])throw new Error("async.auto task `"+r+"` has a non-existent dependency `"+o+"` in "+n.join(", "));!function(e,t){var r=c[e];r||(r=c[e]=[]),r.push(t)}(o,(function(){0==--i&&d(r,t)}))}))})),function(){for(var e=0;l.length;)e++,Ee(m(l.pop()),(function(e){0==--f[e]&&l.push(e)}));if(e!==n)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h()};function je(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Pe=S?S.prototype:void 0,Me=Pe?Pe.toString:void 0;function Ie(e){if("string"==typeof e)return e;if(K(e))return je(e,Ie)+"";if(function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==P(e)}(e))return Me?Me.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var Ne=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Be="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Re="\\ud83c[\\udffb-\\udfff]",De="[^\\ud800-\\udfff]",Le="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="(?:"+Be+"|"+Re+")?",qe="[\\ufe0e\\ufe0f]?"+Fe+"(?:\\u200d(?:"+[De,Le,Ue].join("|")+")[\\ufe0e\\ufe0f]?"+Fe+")*",He="(?:"+[De+Be+"?",Be,Le,Ue,"[\\ud800-\\udfff]"].join("|")+")",ze=RegExp(Re+"(?="+Re+")|"+He+qe,"g");function Ke(e){return function(e){return Ne.test(e)}(e)?function(e){return e.match(ze)||[]}(e):function(e){return e.split("")}(e)}var Ve=/^\s+|\s+$/g;function Ge(e,t,r){var n;if((e=null==(n=e)?"":Ie(n))&&(r||void 0===t))return e.replace(Ve,"");if(!e||!(t=Ie(t)))return e;var i=Ke(e),o=Ke(t);return function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:function(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(i);++n<i;)o[n]=e[n+t];return o}(e,t,r)}(i,function(e,t){for(var r=-1,n=e.length;++r<n&&Ce(t,e[r],0)>-1;);return r}(i,o),function(e,t){for(var r=e.length;r--&&Ce(t,e[r],0)>-1;);return r}(i,o)+1).join("")}var We=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Ye=/,/,$e=/(=.+)?(\s*)$/,Je=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function Qe(e,t){var r={};Ae(e,(function(e,t){var n,i=b(e),o=!i&&1===e.length||i&&0===e.length;if(K(e))n=e.slice(0,-1),e=e[e.length-1],r[t]=n.concat(n.length>0?a:e);else if(o)r[t]=e;else{if(n=function(e){return(e=(e=(e=e.toString().replace(Je,"")).match(We)[2].replace(" ",""))?e.split(Ye):[]).map((function(e){return Ge(e.replace($e,""))}))}(e),0===e.length&&!i&&0===n.length)throw new Error("autoInject task functions require explicit parameters.");i||n.pop(),r[t]=n.concat(a)}function a(t,r){var i=je(n,(function(e){return t[e]}));i.push(r),v(e).apply(null,i)}})),Oe(r,t)}function Ze(){this.head=this.tail=null,this.length=0}function Xe(e,t){e.length=1,e.head=e.tail=t}function et(e,t,r){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var n=v(e),i=0,o=[],a=!1;function s(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(l.started=!0,K(e)||(e=[e]),0===e.length&&l.idle())return h((function(){l.drain()}));for(var n=0,i=e.length;n<i;n++){var o={data:e[n],callback:r||B};t?l._tasks.unshift(o):l._tasks.push(o)}a||(a=!0,h((function(){a=!1,l.process()})))}function c(e){return function(t){i-=1;for(var r=0,n=e.length;r<n;r++){var a=e[r],s=Ce(o,a,0);0===s?o.shift():s>0&&o.splice(s,1),a.callback.apply(a,arguments),null!=t&&l.error(t,a.data)}i<=l.concurrency-l.buffer&&l.unsaturated(),l.idle()&&l.drain(),l.process()}}var u=!1,l={_tasks:new Ze,concurrency:t,payload:r,saturated:B,unsaturated:B,buffer:t/4,empty:B,drain:B,error:B,started:!1,paused:!1,push:function(e,t){s(e,!1,t)},kill:function(){l.drain=B,l._tasks.empty()},unshift:function(e,t){s(e,!0,t)},remove:function(e){l._tasks.remove(e)},process:function(){if(!u){for(u=!0;!l.paused&&i<l.concurrency&&l._tasks.length;){var e=[],t=[],r=l._tasks.length;l.payload&&(r=Math.min(r,l.payload));for(var a=0;a<r;a++){var s=l._tasks.shift();e.push(s),o.push(s),t.push(s.data)}i+=1,0===l._tasks.length&&l.empty(),i===l.concurrency&&l.saturated();var f=le(c(e));n(t,f)}u=!1}},length:function(){return l._tasks.length},running:function(){return i},workersList:function(){return o},idle:function(){return l._tasks.length+i===0},pause:function(){l.paused=!0},resume:function(){!1!==l.paused&&(l.paused=!1,h(l.process))}};return l}function tt(e,t){return et(e,1,t)}Ze.prototype.removeLink=function(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e},Ze.prototype.empty=function(){for(;this.head;)this.shift();return this},Ze.prototype.insertAfter=function(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1},Ze.prototype.insertBefore=function(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1},Ze.prototype.unshift=function(e){this.head?this.insertBefore(this.head,e):Xe(this,e)},Ze.prototype.push=function(e){this.tail?this.insertAfter(this.tail,e):Xe(this,e)},Ze.prototype.shift=function(){return this.head&&this.removeLink(this.head)},Ze.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},Ze.prototype.toArray=function(){for(var e=Array(this.length),t=this.head,r=0;r<this.length;r++)e[r]=t.data,t=t.next;return e},Ze.prototype.remove=function(e){for(var t=this.head;t;){var r=t.next;e(t)&&this.removeLink(t),t=r}return this};var rt=he(de,1);function nt(e,t,r,n){n=R(n||B);var i=v(r);rt(e,(function(e,r,n){i(t,e,(function(e,r){t=r,n(e)}))}),(function(e){n(e,t)}))}function it(){var e=je(arguments,v);return function(){var t=o(arguments),r=this,n=t[t.length-1];"function"==typeof n?t.pop():n=B,nt(e,t,(function(e,t,n){t.apply(r,e.concat((function(e){var t=o(arguments,1);n(e,t)})))}),(function(e,t){n.apply(r,[e].concat(t))}))}}var ot=function(){return it.apply(null,o(arguments).reverse())},at=Array.prototype.concat,st=function(e,t,r,n){n=n||B;var i=v(r);xe(e,t,(function(e,t){i(e,(function(e){return e?t(e):t(null,o(arguments,1))}))}),(function(e,t){for(var r=[],i=0;i<t.length;i++)t[i]&&(r=at.apply(r,t[i]));return n(e,r)}))},ct=he(st,1/0),ut=he(st,1),lt=function(){var e=o(arguments),t=[null].concat(e);return function(){var e=arguments[arguments.length-1];return e.apply(this,t)}};function ft(e){return e}function dt(e,t){return function(r,n,i,o){o=o||B;var a,s=!1;r(n,(function(r,n,o){i(r,(function(n,i){n?o(n):e(i)&&!a?(s=!0,a=t(!0,r),o(null,N)):o()}))}),(function(e){e?o(e):o(null,s?a:t(!1))}))}}function ht(e,t){return t}var pt=ge(dt(ft,ht)),mt=_e(dt(ft,ht)),yt=he(mt,1);function gt(e){return function(t){var r=o(arguments,1);r.push((function(t){var r=o(arguments,1);"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&Ee(r,(function(t){console[e](t)})))})),v(t).apply(null,r)}}var bt=gt("dir");function vt(e,t,r){r=le(r||B);var n=v(e),i=v(t);function a(e){if(e)return r(e);var t=o(arguments,1);t.push(s),i.apply(this,t)}function s(e,t){return e?r(e):t?void n(a):r(null)}s(null,!0)}function wt(e,t,r){r=le(r||B);var n=v(e),i=function(e){if(e)return r(e);var a=o(arguments,1);if(t.apply(this,a))return n(i);r.apply(null,[null].concat(a))};n(i)}function _t(e,t,r){wt(e,(function(){return!t.apply(this,arguments)}),r)}function xt(e,t,r){r=le(r||B);var n=v(t),i=v(e);function o(e){if(e)return r(e);i(a)}function a(e,t){return e?r(e):t?void n(o):r(null)}i(a)}function kt(e){return function(t,r,n){return e(t,n)}}function St(e,t,r){ye(e,kt(v(t)),r)}function Et(e,t,r,n){fe(t)(e,kt(v(r)),n)}var At=he(Et,1);function Tt(e){return b(e)?e:s((function(t,r){var n=!0;t.push((function(){var e=arguments;n?h((function(){r.apply(null,e)})):r.apply(null,e)})),e.apply(this,t),n=!1}))}function Ct(e){return!e}var Ot=ge(dt(Ct,Ct)),jt=_e(dt(Ct,Ct)),Pt=he(jt,1);function Mt(e){return function(t){return null==t?void 0:t[e]}}function It(e,t,r,n){var i=new Array(t.length);e(t,(function(e,t,n){r(e,(function(e,r){i[t]=!!r,n(e)}))}),(function(e){if(e)return n(e);for(var r=[],o=0;o<t.length;o++)i[o]&&r.push(t[o]);n(null,r)}))}function Nt(e,t,r,n){var i=[];e(t,(function(e,t,n){r(e,(function(r,o){r?n(r):(o&&i.push({index:t,value:e}),n())}))}),(function(e){e?n(e):n(null,je(i.sort((function(e,t){return e.index-t.index})),Mt("value")))}))}function Bt(e,t,r,n){(I(t)?It:Nt)(e,t,v(r),n||B)}var Rt=ge(Bt),Dt=_e(Bt),Lt=he(Dt,1);function Ut(e,t){var r=le(t||B),n=v(Tt(e));!function e(t){if(t)return r(t);n(e)}()}var Ft=function(e,t,r,n){n=n||B;var i=v(r);xe(e,t,(function(e,t){i(e,(function(r,n){return r?t(r):t(null,{key:n,val:e})}))}),(function(e,t){for(var r={},i=Object.prototype.hasOwnProperty,o=0;o<t.length;o++)if(t[o]){var a=t[o].key,s=t[o].val;i.call(r,a)?r[a].push(s):r[a]=[s]}return n(e,r)}))},qt=he(Ft,1/0),Ht=he(Ft,1),zt=gt("log");function Kt(e,t,r,n){n=R(n||B);var i={},o=v(r);de(e,t,(function(e,t,r){o(e,t,(function(e,n){if(e)return r(e);i[t]=n,r()}))}),(function(e){n(e,i)}))}var Vt=he(Kt,1/0),Gt=he(Kt,1);function Wt(e,t){return t in e}function Yt(e,t){var r=Object.create(null),n=Object.create(null);t=t||ft;var i=v(e),a=s((function(e,a){var s=t.apply(null,e);Wt(r,s)?h((function(){a.apply(null,r[s])})):Wt(n,s)?n[s].push(a):(n[s]=[a],i.apply(null,e.concat((function(){var e=o(arguments);r[s]=e;var t=n[s];delete n[s];for(var i=0,a=t.length;i<a;i++)t[i].apply(null,e)}))))}));return a.memo=r,a.unmemoized=e,a}var $t=d(l?e.nextTick:u?i:f);function Jt(e,t,r){r=r||B;var n=I(t)?[]:{};e(t,(function(e,t,r){v(e)((function(e,i){arguments.length>2&&(i=o(arguments,1)),n[t]=i,r(e)}))}),(function(e){r(e,n)}))}function Qt(e,t){Jt(ye,e,t)}function Zt(e,t,r){Jt(fe(t),e,r)}var Xt=function(e,t){var r=v(e);return et((function(e,t){r(e[0],t)}),t,1)},er=function(e,t){var r=Xt(e,t);return r.push=function(e,t,n){if(null==n&&(n=B),"function"!=typeof n)throw new Error("task callback must be a function");if(r.started=!0,K(e)||(e=[e]),0===e.length)return h((function(){r.drain()}));t=t||0;for(var i=r._tasks.head;i&&t>=i.priority;)i=i.next;for(var o=0,a=e.length;o<a;o++){var s={data:e[o],priority:t,callback:n};i?r._tasks.insertBefore(i,s):r._tasks.push(s)}h(r.process)},delete r.unshift,r};function tr(e,t){if(t=R(t||B),!K(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var r=0,n=e.length;r<n;r++)v(e[r])(t)}function rr(e,t,r,n){nt(o(e).reverse(),t,r,n)}function nr(e){var t=v(e);return s((function(e,r){return e.push((function(e,t){var n;e?r(null,{error:e}):(n=arguments.length<=2?t:o(arguments,1),r(null,{value:n}))})),t.apply(this,e)}))}function ir(e){var t;return K(e)?t=je(e,nr):(t={},Ae(e,(function(e,r){t[r]=nr.call(this,e)}))),t}function or(e,t,r,n){Bt(e,t,(function(e,t){r(e,(function(e,r){t(e,!r)}))}),n)}var ar=ge(or),sr=_e(or),cr=he(sr,1);function ur(e){return function(){return e}}function lr(e,t,r){var n=5,i=0,o={times:n,intervalFunc:ur(i)};function a(e,t){if("object"==typeof t)e.times=+t.times||n,e.intervalFunc="function"==typeof t.interval?t.interval:ur(+t.interval||i),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||n}}if(arguments.length<3&&"function"==typeof e?(r=t||B,t=e):(a(o,e),r=r||B),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var s=v(t),c=1;function u(){s((function(e){e&&c++<o.times&&("function"!=typeof o.errorFilter||o.errorFilter(e))?setTimeout(u,o.intervalFunc(c)):r.apply(null,arguments)}))}u()}var fr=function(e,t){t||(t=e,e=null);var r=v(t);return s((function(t,n){function i(e){r.apply(null,t.concat(e))}e?lr(e,i,n):lr(i,n)}))};function dr(e,t){Jt(rt,e,t)}var hr=ge(dt(Boolean,ft)),pr=_e(dt(Boolean,ft)),mr=he(pr,1);function yr(e,t,r){var n=v(t);function i(e,t){var r=e.criteria,n=t.criteria;return r<n?-1:r>n?1:0}ve(e,(function(e,t){n(e,(function(r,n){if(r)return t(r);t(null,{value:e,criteria:n})}))}),(function(e,t){if(e)return r(e);r(null,je(t.sort(i),Mt("value")))}))}function gr(e,t,r){var n=v(e);return s((function(i,o){var a,s=!1;i.push((function(){s||(o.apply(null,arguments),clearTimeout(a))})),a=setTimeout((function(){var t=e.name||"anonymous",n=new Error('Callback function "'+t+'" timed out.');n.code="ETIMEDOUT",r&&(n.info=r),s=!0,o(n)}),t),n.apply(null,i)}))}var br=Math.ceil,vr=Math.max;function wr(e,t,r,n){var i=v(r);xe(function(e,t,r,n){for(var i=-1,o=vr(br((t-e)/1),0),a=Array(o);o--;)a[++i]=e,e+=1;return a}(0,e),t,i,n)}var _r=he(wr,1/0),xr=he(wr,1);function kr(e,t,r,n){arguments.length<=3&&(n=r,r=t,t=K(e)?[]:{}),n=R(n||B);var i=v(r);ye(e,(function(e,r,n){i(t,e,r,n)}),(function(e){n(e,t)}))}function Sr(e,t){var r,n=null;t=t||B,At(e,(function(e,t){v(e)((function(e,i){r=arguments.length>2?o(arguments,1):i,n=e,t(!e)}))}),(function(){t(n,r)}))}function Er(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function Ar(e,t,r){r=le(r||B);var n=v(t);if(!e())return r(null);var i=function(t){if(t)return r(t);if(e())return n(i);var a=o(arguments,1);r.apply(null,[null].concat(a))};n(i)}function Tr(e,t,r){Ar((function(){return!e.apply(this,arguments)}),t,r)}var Cr=function(e,t){if(t=R(t||B),!K(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function n(t){var n=v(e[r++]);t.push(le(i)),n.apply(null,t)}function i(i){if(i||r===e.length)return t.apply(null,arguments);n(o(arguments,1))}n([])},Or={apply:a,applyEach:we,applyEachSeries:Se,asyncify:p,auto:Oe,autoInject:Qe,cargo:tt,compose:ot,concat:ct,concatLimit:st,concatSeries:ut,constant:lt,detect:pt,detectLimit:mt,detectSeries:yt,dir:bt,doDuring:vt,doUntil:_t,doWhilst:wt,during:xt,each:St,eachLimit:Et,eachOf:ye,eachOfLimit:de,eachOfSeries:rt,eachSeries:At,ensureAsync:Tt,every:Ot,everyLimit:jt,everySeries:Pt,filter:Rt,filterLimit:Dt,filterSeries:Lt,forever:Ut,groupBy:qt,groupByLimit:Ft,groupBySeries:Ht,log:zt,map:ve,mapLimit:xe,mapSeries:ke,mapValues:Vt,mapValuesLimit:Kt,mapValuesSeries:Gt,memoize:Yt,nextTick:$t,parallel:Qt,parallelLimit:Zt,priorityQueue:er,queue:Xt,race:tr,reduce:nt,reduceRight:rr,reflect:nr,reflectAll:ir,reject:ar,rejectLimit:sr,rejectSeries:cr,retry:lr,retryable:fr,seq:it,series:dr,setImmediate:h,some:hr,someLimit:pr,someSeries:mr,sortBy:yr,timeout:gr,times:_r,timesLimit:wr,timesSeries:xr,transform:kr,tryEach:Sr,unmemoize:Er,until:Tr,waterfall:Cr,whilst:Ar,all:Ot,allLimit:jt,allSeries:Pt,any:hr,anyLimit:pr,anySeries:mr,find:pt,findLimit:mt,findSeries:yt,forEach:St,forEachSeries:At,forEachLimit:Et,forEachOf:ye,forEachOfSeries:rt,forEachOfLimit:de,inject:nt,foldl:nt,foldr:rr,select:Rt,selectLimit:Dt,selectSeries:Lt,wrapSync:p};r.default=Or,r.apply=a,r.applyEach=we,r.applyEachSeries=Se,r.asyncify=p,r.auto=Oe,r.autoInject=Qe,r.cargo=tt,r.compose=ot,r.concat=ct,r.concatLimit=st,r.concatSeries=ut,r.constant=lt,r.detect=pt,r.detectLimit=mt,r.detectSeries=yt,r.dir=bt,r.doDuring=vt,r.doUntil=_t,r.doWhilst=wt,r.during=xt,r.each=St,r.eachLimit=Et,r.eachOf=ye,r.eachOfLimit=de,r.eachOfSeries=rt,r.eachSeries=At,r.ensureAsync=Tt,r.every=Ot,r.everyLimit=jt,r.everySeries=Pt,r.filter=Rt,r.filterLimit=Dt,r.filterSeries=Lt,r.forever=Ut,r.groupBy=qt,r.groupByLimit=Ft,r.groupBySeries=Ht,r.log=zt,r.map=ve,r.mapLimit=xe,r.mapSeries=ke,r.mapValues=Vt,r.mapValuesLimit=Kt,r.mapValuesSeries=Gt,r.memoize=Yt,r.nextTick=$t,r.parallel=Qt,r.parallelLimit=Zt,r.priorityQueue=er,r.queue=Xt,r.race=tr,r.reduce=nt,r.reduceRight=rr,r.reflect=nr,r.reflectAll=ir,r.reject=ar,r.rejectLimit=sr,r.rejectSeries=cr,r.retry=lr,r.retryable=fr,r.seq=it,r.series=dr,r.setImmediate=h,r.some=hr,r.someLimit=pr,r.someSeries=mr,r.sortBy=yr,r.timeout=gr,r.times=_r,r.timesLimit=wr,r.timesSeries=xr,r.transform=kr,r.tryEach=Sr,r.unmemoize=Er,r.until=Tr,r.waterfall=Cr,r.whilst=Ar,r.all=Ot,r.allLimit=jt,r.allSeries=Pt,r.any=hr,r.anyLimit=pr,r.anySeries=mr,r.find=pt,r.findLimit=mt,r.findSeries=yt,r.forEach=St,r.forEachSeries=At,r.forEachLimit=Et,r.forEachOf=ye,r.forEachOfSeries=rt,r.forEachOfLimit=de,r.inject=nt,r.foldl=nt,r.foldr=rr,r.select=Rt,r.selectLimit=Dt,r.selectSeries=Lt,r.wrapSync=p,Object.defineProperty(r,"__esModule",{value:!0})}))}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{_process:952,timers:1088}],646:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],647:[function(e,t,r){arguments[4][171][0].apply(r,arguments)},{dup:171,"ethereumjs-abi":648,"ethereumjs-util":651}],648:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{"./lib/index.js":649,dup:176}],649:[function(e,t,r){(function(r){const n=e("ethereumjs-util"),i=e("bn.js");var o=function(){};function a(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function f(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function d(e,t){var o,a,f,h;if("address"===e)return d("uint160",l(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",r.from(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)f.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);f.unshift(p)}return r.concat(f)}if("bytes"===e)return t=r.from(t),f=r.concat([d("uint256",t.length),t]),t.length%32!=0&&(f=r.concat([f,n.zeros(32-t.length%32)])),f;if(e.startsWith("bytes")){if((o=s(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",a.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=c(e),d("int256",l(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,a,s,c;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=h(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),c=0;c<o;c++){var l=h(e.subArray,t,n);s.push(l),n+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),t.slice(n+32,n+32+o);if(e.name.startsWith("bytes"))return t.slice(n,n+e.size);if(e.name.startsWith("uint")){if((a=new i(t.slice(n,n+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(y(e)){t=u(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var i=e+"("+t.map(a).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(y(e)){var t=u(e);o+="dynamic"!==t?32*t:32}else o+=32}));for(var s=0;s<e.length;s++){var c=a(e[s]),l=d(c,t[s]);m(c)?(n.push(d("uint256",o)),i.push(l),o+=l.length):n.push(l)}return r.concat(n.concat(i))},o.rawDecode=function(e,t){var n=[];t=r.from(t);for(var i=0,o=0;o<e.length;o++){var s=p(a(e[o])),c=h(s,t,i);i+=s.memoryUsage,n.push(c)}return n},o.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),n=f(e);if(t.length!==n.args.length)throw new Error("Argument count mismatch");return r.concat([o.methodID(n.method,n.args),o.rawEncode(n.args,t)])},o.simpleDecode=function(e,t){var r=f(e);if(!r.retargs)throw new Error("No return values in method");return o.rawDecode(r.retargs,t)},o.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return g(i,e)})).join(", "):g(i,o),r.push(o)}return r},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var i,o,c=[],u=0;u<e.length;u++){var f=a(e[u]),d=t[u];if("bytes"===f)c.push(d);else if("string"===f)c.push(r.from(d,"utf8"));else if("bool"===f)c.push(r.from(d?"01":"00","hex"));else if("address"===f)c.push(n.setLengthLeft(d,20));else if(f.startsWith("bytes")){if((i=s(f))<1||i>32)throw new Error("Invalid bytes<N> width: "+i);c.push(n.setLengthRight(d,i))}else if(f.startsWith("uint")){if((i=s(f))%8||i<8||i>256)throw new Error("Invalid uint<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+o.bitLength());c.push(o.toArrayLike(r,"be",i/8))}else{if(!f.startsWith("int"))throw new Error("Unsupported or invalid type: "+f);if((i=s(f))%8||i<8||i>256)throw new Error("Invalid int<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+o.bitLength());c.push(o.toTwos(i).toArrayLike(r,"be",i/8))}}return r.concat(c)},o.soliditySHA3=function(e,t){return n.keccak256(o.solidityPack(e,t))},o.soliditySHA256=function(e,t){return n.sha256(o.solidityPack(e,t))},o.solidityRIPEMD160=function(e,t){return n.ripemd160(o.solidityPack(e,t),!0)},o.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+s(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},t.exports=o}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,"ethereumjs-util":650}],650:[function(e,t,r){arguments[4][178][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":646,dup:178,"ethjs-util":652,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],651:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":646,dup:172,"ethjs-util":652,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],652:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],653:[function(e,t,r){arguments[4][615][0].apply(r,arguments)},{dup:615,"promise-to-callback":953}],654:[function(e,t,r){arguments[4][616][0].apply(r,arguments)},{dup:616}],655:[function(e,t,r){arguments[4][635][0].apply(r,arguments)},{async:645,dup:635,"eth-json-rpc-errors":601,"safe-event-emitter":1038}],656:[function(e,t,r){arguments[4][589][0].apply(r,arguments)},{dup:589}],657:[function(e,t,r){t.exports=function(e){return(t,r,n,i)=>{e.sendAsync(t,(e,t)=>{if(e)return i(e);Object.assign(r,t),i()})}}},{}],658:[function(e,t,r){arguments[4][627][0].apply(r,arguments)},{dup:627,"safe-event-emitter":1038}],659:[function(e,t,r){const n=e("json-rpc-engine"),i=e("./providerFromEngine");t.exports=function(e){const t=new n;return t.push(e),i(t)}},{"./providerFromEngine":658,"json-rpc-engine":655}],660:[function(e,t,r){const n=e("clone"),i=e("pify"),o=e("json-rpc-engine/src/createAsyncMiddleware"),a=e("./cache-utils").blockTagParamIndex;t.exports=function(e={}){const{provider:t,blockTracker:r}=e;if(!t)throw Error('BlockRefRewriteMiddleware - mandatory "provider" option is missing.');if(!r)throw Error('BlockRefRewriteMiddleware - mandatory "blockTracker" option is missing.');return o(async(e,o,u)=>{const l=a(e);if(void 0===l)return u();let f=e.params[l];if(void 0===f&&(f="latest"),["latest","pending"].includes(f))return u();const d=Number.parseInt(f.slice(2),16);if(Number.isNaN(d))return u();const h=await r.getLatestBlock();if(d>Number.parseInt(h.slice(2),16))return u();const p=n(e),m=await async function(e,t){for(let r=0;r<10;r++)try{return await t()}catch(e){await c(1e3)}throw new Error("BlockReEmitMiddleware - retries exhausted")}(0,async()=>{const e=await i(t.sendAsync).call(t,p);if(s.includes(e.result))throw new Error(`RetryOnEmptyMiddleware - empty response "${JSON.stringify(e)}" for request "${JSON.stringify(p)}"`);return e});o.result=m.result,o.error=m.error})};const s=[void 0,null,"<nil>"];function c(e){return new Promise(t=>setTimeout(t,e))}},{"./cache-utils":642,clone:490,"json-rpc-engine/src/createAsyncMiddleware":653,pify:656}],661:[function(e,t,r){const n=e("json-rpc-engine/src/createAsyncMiddleware"),i=e("json-rpc-engine/src/createScaffoldMiddleware"),o=e("eth-sig-util"),{ethErrors:a}=e("eth-rpc-errors");function s(e){return 42===e.length}t.exports=function(e={}){const t=e.getAccounts,r=e.processTypedMessage,c=e.processTypedMessageV3,u=e.processTypedMessageV4,l=e.processPersonalMessage,f=e.processEthSignMessage,d=e.processTransaction,h=e.processDecryptMessage,p=e.processEncryptionPublicKey;if(!t)throw new Error("opts.getAccounts is required");return i({eth_accounts:n((async function(e,r){r.result=await t(e)})),eth_coinbase:n((async function(e,r){const n=await t(e);r.result=n[0]||null})),eth_sendTransaction:n((async function(e,t){if(!d)throw a.rpc.methodNotSupported();const r=e.params[0]||{};r.from=await m(r.from,e),t.result=await d(r,e)})),eth_sign:n((async function(e,t){if(!f)throw a.rpc.methodNotSupported();const r=await m(e.params[0],e),n=e.params[1],i=e.params[2]||{},o=Object.assign({},i,{from:r,data:n});t.result=await f(o,e)})),eth_signTypedData:n((async function(e,t){if(!r)throw a.rpc.methodNotSupported();const n=e.params[0],i=await m(e.params[1],e),o=e.params[2]||{},s=Object.assign({},o,{from:i,data:n});t.result=await r(s,e,"V1")})),eth_signTypedData_v3:n((async function(e,t){if(!c)throw a.rpc.methodNotSupported();const r=await m(e.params[0],e),n={data:e.params[1],from:r,version:"V3"};t.result=await c(n,e,"V3")})),eth_signTypedData_v4:n((async function(e,t){if(!u)throw a.rpc.methodNotSupported();const r=await m(e.params[0],e),n={data:e.params[1],from:r,version:"V4"};t.result=await u(n,e,"V4")})),personal_sign:n((async function(e,t){if(!l)throw a.rpc.methodNotSupported();const r=e.params[0],n=e.params[1],i=e.params[2]||{};let o,c;if(s(r)&&!s(n)){let e="The eth_personalSign method requires params ordered ";e+="[message, address]. This was previously handled incorrectly, ",e+="and has been corrected automatically. ",e+="Please switch this param order for smooth behavior in the future.",t.warning=e,o=r,c=n}else c=r,o=n;o=await m(o,e);const u=Object.assign({},i,{from:o,data:c});t.result=await l(u,e)})),eth_getEncryptionPublicKey:n((async function(e,t){if(!p)throw a.rpc.methodNotSupported();const r=await m(e.params[0],e);t.result=await p(r,e)})),eth_decrypt:n((async function(e,t){if(!h)throw a.rpc.methodNotSupported();const r=e.params[0],n=await m(e.params[1],e),i=e.params[2]||{},o=Object.assign({},i,{from:n,data:r});t.result=await h(o,e)})),personal_ecRecover:n((async function(e,t){const r=e.params[0],n=e.params[1],i=e.params[2]||{},a=Object.assign({},i,{sig:n,data:r}),s=o.recoverPersonalSignature(a);t.result=s}))});async function m(e,r){if("string"==typeof e&&e.length>0){const n=(await t(r)).map(e=>e.toLowerCase()),i=e.toLowerCase();if(n.includes(i))return i}throw a.rpc.invalidParams({message:"Invalid parameters: must provide an Ethereum address."})}}},{"eth-rpc-errors":688,"eth-sig-util":647,"json-rpc-engine/src/createAsyncMiddleware":653,"json-rpc-engine/src/createScaffoldMiddleware":654}],662:[function(e,t,r){const{EventEmitter:n}=e("events"),i=e("loglevel"),o=e("ethereumjs-util"),{BN:a}=o,s=e("bip39"),c=e("obs-store"),u=e("browser-passworder"),{normalize:l}=e("eth-sig-util"),f=[e("eth-simple-keyring"),e("eth-hd-keyring")];t.exports=class extends n{constructor(e){super();const t=e.initState||{};this.keyringTypes=e.keyringTypes?f.concat(e.keyringTypes):f,this.store=new c(t),this.memStore=new c({isUnlocked:!1,keyringTypes:this.keyringTypes.map(e=>e.type),keyrings:[]}),this.encryptor=e.encryptor||u,this.keyrings=[],this.getNetwork=e.getNetwork}fullUpdate(){return this.emit("update",this.memStore.getState()),this.memStore.getState()}createNewVaultAndKeychain(e){return this.persistAllKeyrings(e).then(this.createFirstKeyTree.bind(this)).then(this.persistAllKeyrings.bind(this,e)).then(this.setUnlocked.bind(this)).then(this.fullUpdate.bind(this))}createNewVaultAndRestore(e,t){return"string"!=typeof e?Promise.reject(new Error("Password must be text.")):s.validateMnemonic(t)?(this.clearKeyrings(),this.persistAllKeyrings(e).then(()=>this.addNewKeyring("HD Key Tree",{mnemonic:t,numberOfAccounts:1})).then(e=>e.getAccounts()).then(([e])=>{if(!e)throw new Error("KeyringController - First Account not found.");return null}).then(this.persistAllKeyrings.bind(this,e)).then(this.setUnlocked.bind(this)).then(this.fullUpdate.bind(this))):Promise.reject(new Error("Seed phrase is invalid."))}async setLocked(){return this.password=null,this.memStore.updateState({isUnlocked:!1}),this.keyrings=[],await this._updateMemStoreKeyrings(),this.emit("lock"),this.fullUpdate()}submitPassword(e){return this.unlockKeyrings(e).then(e=>(this.keyrings=e,this.setUnlocked(),this.fullUpdate()))}async verifyPassword(e){const t=this.store.getState().vault;if(!t)throw new Error("Cannot unlock without a previous vault.");await this.encryptor.decrypt(e,t)}addNewKeyring(e,t){const r=new(this.getKeyringClassForType(e))(t);return r.getAccounts().then(t=>this.checkForDuplicate(e,t)).then(()=>(this.keyrings.push(r),this.persistAllKeyrings())).then(()=>this._updateMemStoreKeyrings()).then(()=>this.fullUpdate()).then(()=>r)}async removeEmptyKeyrings(){const e=[];await Promise.all(this.keyrings.map(async t=>{(await t.getAccounts()).length>0&&e.push(t)})),this.keyrings=e}checkForDuplicate(e,t){return this.getAccounts().then(r=>{switch(e){case"Simple Key Pair":return Boolean(r.find(e=>e===t[0]||e===o.stripHexPrefix(t[0])))?Promise.reject(new Error("The account you're are trying to import is a duplicate")):Promise.resolve(t);default:return Promise.resolve(t)}})}addNewAccount(e){return e.addAccounts(1).then(e=>{e.forEach(e=>{this.emit("newAccount",e)})}).then(this.persistAllKeyrings.bind(this)).then(this._updateMemStoreKeyrings.bind(this)).then(this.fullUpdate.bind(this))}exportAccount(e){try{return this.getKeyringForAccount(e).then(t=>t.exportAccount(l(e)))}catch(e){return Promise.reject(e)}}removeAccount(e){return this.getKeyringForAccount(e).then(t=>"function"==typeof t.removeAccount?(t.removeAccount(e),this.emit("removedAccount",e),t.getAccounts()):Promise.reject(new Error(`Keyring ${t.type} doesn't support account removal operations`))).then(e=>{if(0===e.length)return this.removeEmptyKeyrings()}).then(this.persistAllKeyrings.bind(this)).then(this._updateMemStoreKeyrings.bind(this)).then(this.fullUpdate.bind(this)).catch(e=>Promise.reject(e))}signTransaction(e,t,r={}){const n=l(t);return this.getKeyringForAccount(n).then(t=>t.signTransaction(n,e,r))}signMessage(e,t={}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.signMessage(r,e.data,t))}signPersonalMessage(e,t={}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.signPersonalMessage(r,e.data,t))}getEncryptionPublicKey(e,t={}){const r=l(e);return this.getKeyringForAccount(r).then(e=>e.getEncryptionPublicKey(r,t))}decryptMessage(e,t={}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.decryptMessage(r,e.data,t))}signTypedMessage(e,t={version:"V1"}){const r=l(e.from);return this.getKeyringForAccount(r).then(n=>n.signTypedData(r,e.data,t))}async getAppKeyAddress(e,t){const r=l(e);return(await this.getKeyringForAccount(r)).getAppKeyAddress(r,t)}async exportAppKeyForAddress(e,t){const r=l(e),n=await this.getKeyringForAccount(r);if(!("exportAccount"in n))throw new Error(`The keyring for address ${e} does not support exporting.`);return n.exportAccount(r,{withAppKeyOrigin:t})}createFirstKeyTree(){return this.clearKeyrings(),this.addNewKeyring("HD Key Tree",{numberOfAccounts:1}).then(e=>e.getAccounts()).then(([e])=>{if(!e)throw new Error("KeyringController - No account found on keychain.");const t=l(e);return this.emit("newVault",t),null})}persistAllKeyrings(e=this.password){return"string"!=typeof e?Promise.reject(new Error("KeyringController - password is not a string")):(this.password=e,Promise.all(this.keyrings.map(e=>Promise.all([e.type,e.serialize()]).then(e=>({type:e[0],data:e[1]})))).then(e=>this.encryptor.encrypt(this.password,e)).then(e=>(this.store.updateState({vault:e}),!0)))}async unlockKeyrings(e){const t=this.store.getState().vault;if(!t)throw new Error("Cannot unlock without a previous vault.");await this.clearKeyrings();const r=await this.encryptor.decrypt(e,t);return this.password=e,await Promise.all(r.map(this._restoreKeyring.bind(this))),await this._updateMemStoreKeyrings(),this.keyrings}async restoreKeyring(e){const t=await this._restoreKeyring(e);return await this._updateMemStoreKeyrings(),t}async _restoreKeyring(e){const{type:t,data:r}=e,n=new(this.getKeyringClassForType(t));return await n.deserialize(r),await n.getAccounts(),this.keyrings.push(n),n}getKeyringClassForType(e){return this.keyringTypes.find(t=>t.type===e)}getKeyringsByType(e){return this.keyrings.filter(t=>t.type===e)}async getAccounts(){const e=this.keyrings||[];return(await Promise.all(e.map(e=>e.getAccounts())).then(e=>e.reduce((e,t)=>e.concat(t),[]))).map(l)}getKeyringForAccount(e){const t=l(e);return i.debug("KeyringController - getKeyringForAccount: "+t),Promise.all(this.keyrings.map(e=>Promise.all([e,e.getAccounts()]))).then(e=>{const r=e.filter(e=>e[1].map(l).includes(t));if(r&&r.length>0)return r[0][0];throw new Error("No keyring found for the requested account.")})}displayForKeyring(e){return e.getAccounts().then(t=>({type:e.type,accounts:t.map(l)}))}addGasBuffer(e){const t=new a("100000",10),r=new a(o.stripHexPrefix(e),16).add(t);return o.addHexPrefix(r.toString(16))}async clearKeyrings(){this.keyrings=[],this.memStore.updateState({keyrings:[]})}async _updateMemStoreKeyrings(){const e=await Promise.all(this.keyrings.map(this.displayForKeyring));return this.memStore.updateState({keyrings:e})}setUnlocked(){this.memStore.updateState({isUnlocked:!0}),this.emit("unlock")}}},{bip39:430,"browser-passworder":441,"eth-hd-keyring":596,"eth-sig-util":664,"eth-simple-keyring":698,"ethereumjs-util":668,events:476,loglevel:872,"obs-store":898}],663:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],664:[function(e,t,r){arguments[4][171][0].apply(r,arguments)},{dup:171,"ethereumjs-abi":665,"ethereumjs-util":668}],665:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{"./lib/index.js":666,dup:176}],666:[function(e,t,r){(function(r){const n=e("ethereumjs-util"),i=e("bn.js");var o=function(){};function a(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function f(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function d(e,t){var o,a,f,h;if("address"===e)return d("uint160",l(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",r.from(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)f.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);f.unshift(p)}return r.concat(f)}if("bytes"===e)return t=r.from(t),f=r.concat([d("uint256",t.length),t]),t.length%32!=0&&(f=r.concat([f,n.zeros(32-t.length%32)])),f;if(e.startsWith("bytes")){if((o=s(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",a.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=c(e),d("int256",l(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,a,s,c;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=h(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),c=0;c<o;c++){var l=h(e.subArray,t,n);s.push(l),n+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),t.slice(n+32,n+32+o);if(e.name.startsWith("bytes"))return t.slice(n,n+e.size);if(e.name.startsWith("uint")){if((a=new i(t.slice(n,n+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(y(e)){t=u(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var i=e+"("+t.map(a).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(y(e)){var t=u(e);o+="dynamic"!==t?32*t:32}else o+=32}));for(var s=0;s<e.length;s++){var c=a(e[s]),l=d(c,t[s]);m(c)?(n.push(d("uint256",o)),i.push(l),o+=l.length):n.push(l)}return r.concat(n.concat(i))},o.rawDecode=function(e,t){var n=[];t=r.from(t);for(var i=0,o=0;o<e.length;o++){var s=p(a(e[o])),c=h(s,t,i);i+=s.memoryUsage,n.push(c)}return n},o.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),n=f(e);if(t.length!==n.args.length)throw new Error("Argument count mismatch");return r.concat([o.methodID(n.method,n.args),o.rawEncode(n.args,t)])},o.simpleDecode=function(e,t){var r=f(e);if(!r.retargs)throw new Error("No return values in method");return o.rawDecode(r.retargs,t)},o.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return g(i,e)})).join(", "):g(i,o),r.push(o)}return r},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var i,o,c=[],u=0;u<e.length;u++){var f=a(e[u]),d=t[u];if("bytes"===f)c.push(d);else if("string"===f)c.push(r.from(d,"utf8"));else if("bool"===f)c.push(r.from(d?"01":"00","hex"));else if("address"===f)c.push(n.setLengthLeft(d,20));else if(f.startsWith("bytes")){if((i=s(f))<1||i>32)throw new Error("Invalid bytes<N> width: "+i);c.push(n.setLengthRight(d,i))}else if(f.startsWith("uint")){if((i=s(f))%8||i<8||i>256)throw new Error("Invalid uint<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+o.bitLength());c.push(o.toArrayLike(r,"be",i/8))}else{if(!f.startsWith("int"))throw new Error("Unsupported or invalid type: "+f);if((i=s(f))%8||i<8||i>256)throw new Error("Invalid int<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+o.bitLength());c.push(o.toTwos(i).toArrayLike(r,"be",i/8))}}return r.concat(c)},o.soliditySHA3=function(e,t){return n.keccak256(o.solidityPack(e,t))},o.soliditySHA256=function(e,t){return n.sha256(o.solidityPack(e,t))},o.solidityRIPEMD160=function(e,t){return n.ripemd160(o.solidityPack(e,t),!0)},o.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+s(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},t.exports=o}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,"ethereumjs-util":667}],667:[function(e,t,r){arguments[4][178][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":663,dup:178,"ethjs-util":669,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],668:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":663,dup:172,"ethjs-util":669,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],669:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],670:[function(e,t,r){arguments[4][173][0].apply(r,arguments)},{dup:173}],671:[function(e,t,r){const n=e("ethjs"),i=e("./registry-map.json"),o=e("./abi");t.exports=class{constructor(e={}){this.provider=e.provider||new n.HttpProvider("https://mainnet.infura.io/eth-contract-registry"),this.eth=new n(this.provider);const t=i[e.network||"1"];if(!t)throw new Error("No method registry found on the requested network.");this.registry=this.eth.contract(o).at(t)}async lookup(e){return(await this.registry.entries(e))[0]}parse(e){const t=e.match(new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"));let r;r=t?t[1].charAt(0).toUpperCase()+t[1].slice(1).split(/(?=[A-Z])/).join(" "):"";const n=e.match(new RegExp(t[1]+"\\(+([a-z1-9,()]+)\\)"));let i=[];return n&&(i=n[1].match(/[A-z1-9]+/g).map(e=>({type:e}))),{name:r,args:i}}}},{"./abi":670,"./registry-map.json":683,ethjs:681}],672:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],673:[function(e,t,r){(function(r){"use strict";var n=e("./utils/index.js"),i=n.uint256Coder,o=(n.coderBoolean,n.coderFixedBytes,n.coderAddress,n.coderDynamicBytes,n.coderString,n.coderArray,n.paramTypePart,n.getParamCoder);function a(){}function s(e,t){if(e.length!==t.length)throw new Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+e.length+" types (arguments), and you passed in "+t.length);var n=[];function a(e){return parseInt(32*Math.ceil(e/32))}e.forEach((function(e,r){var i=o(e);n.push({dynamic:i.dynamic,value:i.encode(t[r])})}));var s=0,c=0;n.forEach((function(e){e.dynamic?(s+=32,c+=a(e.value.length)):s+=a(e.value.length)}));var u=0,l=s,f=new r(s+c);return n.forEach((function(e,t){e.dynamic?(i.encode(l).copy(f,u),u+=32,e.value.copy(f,l),l+=a(e.value.length)):(e.value.copy(f,u),u+=a(e.value.length))})),"0x"+f.toString("hex")}function c(e,t,r){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(r=t,t=e,e=[]),r=n.hexOrBuffer(r);var c=new a,u=0;return t.forEach((function(t,n){var a=o(t);if(a.dynamic){var l=i.decode(r,u),f=a.decode(r,l.value.toNumber());u+=l.consumed}else f=a.decode(r,u),u+=f.consumed;s&&(c[n]=f.value),e[n]&&(c[e[n]]=f.value)})),c}function u(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+new r(n.keccak256(t),"hex").slice(0,4).toString("hex")}function l(e,t){var r=s(n.getKeys(e.inputs,"type"),t).substring(2);return""+u(e)+r}function f(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+n.keccak256(t)}function d(e,t,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=e.inputs.filter((function(e){return!e.indexed})),u=n.getKeys(s,"name",!0),l=n.getKeys(s,"type"),f=c(u,l,n.hexOrBuffer(t),a),d=e.anonymous?0:1;return e.inputs.filter((function(e){return e.indexed})).map((function(e,t){var n=new r(i[t+d].slice(2),"hex"),a=o(e.type);f[e.name]=a.decode(n,0).value})),f._eventName=e.name,f}function h(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t.topics[0]===f(e))return d(e,t.data,t.topics,r)}t.exports={encodeParams:s,decodeParams:c,encodeMethod:l,decodeMethod:function(e,t){return c(n.getKeys(e.outputs,"name",!0),n.getKeys(e.outputs,"type"),n.hexOrBuffer(t))},encodeEvent:function(e,t){return l(e,t)},decodeEvent:d,decodeLogItem:h,logDecoder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return e.filter((function(e){return"event"===e.type})).map((function(e){r[f(e)]=e})),function(e){return e.map((function(e){return h(r[e.topics[0]],e,t)})).filter((function(e){return e}))}},eventSignature:f,encodeSignature:u}}).call(this,e("buffer").Buffer)},{"./utils/index.js":674,buffer:475}],674:[function(e,t,r){(function(r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=e("js-sha3").keccak_256;function a(e){for(var t=e,r=t[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t}function s(e){var t=e.toString(16);return t.length%2&&(t="0"+t),a(new r(t,"hex"))}function c(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function u(e,t){var n=e;if(!r.isBuffer(n)){if(!c(n)){var i=new Error(t?"[ethjs-abi] invalid "+t:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=n,i}(n=n.substring(2)).length%2&&(n="0"+n),n=new r(n,"hex")}return n}function l(e,t){return{encode:function(n){var o=n;return"object"==typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!=typeof o&&"number"!=typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*e).maskn(8*e),t&&(o=o.fromTwos(8*e).toTwos(256)),o.toArrayLike(r,"be",32)},decode:function(r,i){var o=32-e,a=new n(r.slice(i+o,i+32));return a=t?a.fromTwos(8*e):a.maskn(8*e),{consumed:32,value:new n(a.toString(10))}}}}var f=l(32,!1),d={encode:function(e){return f.encode(e?1:0)},decode:function(e,t){var r=f.decode(e,t);return{consumed:r.consumed,value:!r.value.isZero()}}};function h(e){return{encode:function(e){var t=e;if(32===(t=u(t)).length)return t;var n=new r(32);return n.fill(0),t.copy(n),n},decode:function(t,r){if(0!==t.length&&t.length<r+32)throw new Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+e);return{consumed:32,value:"0x"+t.slice(r,r+e).toString("hex")}}}}var p={encode:function(e){var t=e,n=new r(32);if(!c(t,20))throw new Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return t=u(t),n.fill(0),t.copy(n,12),n},decode:function(e,t){if(0===e.length)return{consumed:32,value:"0x"};if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+e.length);return{consumed:32,value:"0x"+e.slice(t+12,t+32).toString("hex")}}};function m(e){var t=parseInt(32*Math.ceil(e.length/32)),n=new r(t-e.length);return n.fill(0),r.concat([f.encode(e.length),e,n])}function y(e,t){if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32));var r=f.decode(e,t).value;if(r=r.toNumber(),0!==e.length&&e.length<t+32+r)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32+r));return{consumed:parseInt(32+32*Math.ceil(r/32),10),value:e.slice(t+32,t+32+r)}}var g={encode:function(e){return m(u(e))},decode:function(e,t){var r=y(e,t);return r.value="0x"+r.value.toString("hex"),r},dynamic:!0},b={encode:function(e){return m(new r(e,"utf8"))},decode:function(e,t){var r=y(e,t);return r.value=r.value.toString("utf8"),r},dynamic:!0};function v(e,t){return{encode:function(n){var i=new r(0),o=t;if(!Array.isArray(n))throw new Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=n.length,i=f.encode(o)),o!==n.length)throw new Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+n.length);return n.forEach((function(t){i=r.concat([i,e.encode(t)])})),i},decode:function(r,n){var i,o=t,a=n,s=0;-1===o&&(o=(i=f.decode(r,a)).value.toNumber(),s+=i.consumed,a+=i.consumed);for(var c=[],u=0;u<o;u++){var l=e.decode(r,a);s+=l.consumed,a+=l.consumed,c.push(l.value)}return{consumed:s,value:c}},dynamic:-1===t}}var w=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:n,bnToBuffer:s,isHexString:c,hexOrBuffer:u,hexlify:function(e){return"number"==typeof e?"0x"+s(new n(e)).toString("hex"):e.mod||e.modulo?"0x"+s(e).toString("hex"):"0x"+u(e).toString("hex")},stripZeros:a,keccak256:o,getKeys:function(e,t,r){var n=[];if(!Array.isArray(e))throw new Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(e));for(var i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");n.push(o)}return n},numberToBN:i,coderNumber:l,uint256Coder:f,coderBoolean:d,coderFixedBytes:h,coderAddress:p,coderDynamicBytes:g,coderString:b,coderArray:v,paramTypePart:w,getParamCoder:function(e){for(var t=e,r=null,n="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(t)+" is either invalid or unsupported by ethjs-abi.";t;){var i=t.match(w);if(!i)throw new Error(n);t=t.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(r)throw new Error(n);var a=parseInt(i[3]||256);if(0===a||a>256||a%8!=0)throw new Error("[ethjs-abi] while getting param coder for type "+t+", invalid "+o+"<N> width: "+t);r=l(a/8,"int"===o);break;case"bool":if(r)throw new Error(n);r=d;break;case"string":if(r)throw new Error(n);r=b;break;case"bytes":if(r)throw new Error(n);if(i[3]){var s=parseInt(i[3]);if(0===s||s>32)throw new Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+t+", size "+s+" should be 0 or greater than 32");r=h(s)}else r=g;break;case"address":if(r)throw new Error(n);r=p;break;case"[]":if(!r||r.dynamic)throw new Error(n);r=v(r,-1);break;default:if(!r||r.dynamic)throw new Error(n);r=v(r,parseInt(i[6]))}}if(!r)throw new Error(n);return r}}}).call(this,e("buffer").Buffer)},{"bn.js":672,buffer:475,"js-sha3":815,"number-to-bn":895}],675:[function(e,t,r){arguments[4][182][0].apply(r,arguments)},{"./has-tx-object":676,"babel-runtime/core-js/json/stringify":331,"babel-runtime/core-js/object/assign":332,"babel-runtime/helpers/asyncToGenerator":336,"babel-runtime/regenerator":420,dup:182,"ethjs-abi":678,"ethjs-filter":748,"ethjs-util":759,"js-sha3":815,"promise-to-callback":953}],676:[function(e,t,r){arguments[4][183][0].apply(r,arguments)},{"babel-runtime/core-js/object/keys":334,dup:183}],677:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{"./contract":675,"./has-tx-object":676,"babel-runtime/core-js/object/assign":332,dup:184,"ethjs-abi":678,"ethjs-filter":748,"ethjs-util":759,"js-sha3":815}],678:[function(e,t,r){(function(r){"use strict";var n=e("./utils/index.js"),i=n.uint256Coder,o=(n.coderBoolean,n.coderFixedBytes,n.coderAddress,n.coderDynamicBytes,n.coderString,n.coderArray,n.paramTypePart,n.getParamCoder);function a(){}function s(e,t){if(e.length!==t.length)throw new Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+e.length+" types (arguments), and you passed in "+t.length);var n=[];function a(e){return parseInt(32*Math.ceil(e/32))}e.forEach((function(e,r){var i=o(e);n.push({dynamic:i.dynamic,value:i.encode(t[r])})}));var s=0,c=0;n.forEach((function(e){e.dynamic?(s+=32,c+=a(e.value.length)):s+=a(e.value.length)}));var u=0,l=s,f=new r(s+c);return n.forEach((function(e,t){e.dynamic?(i.encode(l).copy(f,u),u+=32,e.value.copy(f,l),l+=a(e.value.length)):(e.value.copy(f,u),u+=a(e.value.length))})),"0x"+f.toString("hex")}function c(e,t,r){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(r=t,t=e,e=[]),r=n.hexOrBuffer(r);var c=new a,u=0;return t.forEach((function(t,n){var a=o(t);if(a.dynamic){var l=i.decode(r,u),f=a.decode(r,l.value.toNumber());u+=l.consumed}else f=a.decode(r,u),u+=f.consumed;s&&(c[n]=f.value),e[n]&&(c[e[n]]=f.value)})),c}function u(e,t){var i=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+new r(n.keccak256(i),"hex").slice(0,4).toString("hex")+s(n.getKeys(e.inputs,"type"),t).substring(2)}function l(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+n.keccak256(t)}function f(e,t,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=e.inputs.filter((function(e){return!e.indexed})),u=n.getKeys(s,"name",!0),l=n.getKeys(s,"type"),f=c(u,l,n.hexOrBuffer(t),a),d=e.anonymous?0:1;return e.inputs.filter((function(e){return e.indexed})).map((function(e,t){var n=new r(i[t+d].slice(2),"hex"),a=o(e.type);f[e.name]=a.decode(n,0).value})),f._eventName=e.name,f}function d(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t.topics[0]===l(e))return f(e,t.data,t.topics,r)}t.exports={encodeParams:s,decodeParams:c,encodeMethod:u,decodeMethod:function(e,t){return c(n.getKeys(e.outputs,"name",!0),n.getKeys(e.outputs,"type"),n.hexOrBuffer(t))},encodeEvent:function(e,t){return u(e,t)},decodeEvent:f,decodeLogItem:d,logDecoder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return e.filter((function(e){return"event"===e.type})).map((function(e){r[l(e)]=e})),function(e){return e.map((function(e){return d(r[e.topics[0]],e,t)})).filter((function(e){return e}))}},eventSignature:l}}).call(this,e("buffer").Buffer)},{"./utils/index.js":679,buffer:475}],679:[function(e,t,r){(function(r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=e("js-sha3").keccak_256;function a(e){for(var t=e,r=t[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t}function s(e){var t=e.toString(16);return t.length%2&&(t="0"+t),a(new r(t,"hex"))}function c(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function u(e,t){var n=e;if(!r.isBuffer(n)){if(!c(n)){var i=new Error(t?"[ethjs-abi] invalid "+t:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=n,i}(n=n.substring(2)).length%2&&(n="0"+n),n=new r(n,"hex")}return n}function l(e,t){return{encode:function(n){var o=n;return"object"==typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!=typeof o&&"number"!=typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*e).maskn(8*e),t&&(o=o.fromTwos(8*e).toTwos(256)),o.toArrayLike(r,"be",32)},decode:function(r,i){var o=32-e,a=new n(r.slice(i+o,i+32));return a=t?a.fromTwos(8*e):a.maskn(8*e),{consumed:32,value:new n(a.toString(10))}}}}var f=l(32,!1),d={encode:function(e){return f.encode(e?1:0)},decode:function(e,t){var r=f.decode(e,t);return{consumed:r.consumed,value:!r.value.isZero()}}};function h(e){return{encode:function(e){var t=e;if(32===(t=u(t)).length)return t;var n=new r(32);return n.fill(0),t.copy(n),n},decode:function(t,r){if(0!==t.length&&t.length<r+32)throw new Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+e);return{consumed:32,value:"0x"+t.slice(r,r+e).toString("hex")}}}}var p={encode:function(e){var t=e,n=new r(32);if(!c(t,20))throw new Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return t=u(t),n.fill(0),t.copy(n,12),n},decode:function(e,t){if(0===e.length)return{consumed:32,value:"0x"};if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+e.length);return{consumed:32,value:"0x"+e.slice(t+12,t+32).toString("hex")}}};function m(e){var t=parseInt(32*Math.ceil(e.length/32)),n=new r(t-e.length);return n.fill(0),r.concat([f.encode(e.length),e,n])}function y(e,t){if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32));var r=f.decode(e,t).value;if(r=r.toNumber(),0!==e.length&&e.length<t+32+r)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32+r));return{consumed:parseInt(32+32*Math.ceil(r/32),10),value:e.slice(t+32,t+32+r)}}var g={encode:function(e){return m(u(e))},decode:function(e,t){var r=y(e,t);return r.value="0x"+r.value.toString("hex"),r},dynamic:!0},b={encode:function(e){return m(new r(e,"utf8"))},decode:function(e,t){var r=y(e,t);return r.value=r.value.toString("utf8"),r},dynamic:!0};function v(e,t){return{encode:function(n){var i=new r(0),o=t;if(!Array.isArray(n))throw new Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=n.length,i=f.encode(o)),o!==n.length)throw new Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+n.length);return n.forEach((function(t){i=r.concat([i,e.encode(t)])})),i},decode:function(r,n){var i,o=t,a=n,s=0;-1===o&&(o=(i=f.decode(r,a)).value.toNumber(),s+=i.consumed,a+=i.consumed);for(var c=[],u=0;u<o;u++){var l=e.decode(r,a);s+=l.consumed,a+=l.consumed,c.push(l.value)}return{consumed:s,value:c}},dynamic:-1===t}}var w=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:n,bnToBuffer:s,isHexString:c,hexOrBuffer:u,hexlify:function(e){return"number"==typeof e?"0x"+s(new n(e)).toString("hex"):e.mod||e.modulo?"0x"+s(e).toString("hex"):"0x"+u(e).toString("hex")},stripZeros:a,keccak256:o,getKeys:function(e,t,r){var n=[];if(!Array.isArray(e))throw new Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(e));for(var i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");n.push(o)}return n},numberToBN:i,coderNumber:l,uint256Coder:f,coderBoolean:d,coderFixedBytes:h,coderAddress:p,coderDynamicBytes:g,coderString:b,coderArray:v,paramTypePart:w,getParamCoder:function(e){for(var t=e,r=null,n="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(t)+" is either invalid or unsupported by ethjs-abi.";t;){var i=t.match(w);if(!i)throw new Error(n);t=t.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(r)throw new Error(n);var a=parseInt(i[3]||256);if(0===a||a>256||a%8!=0)throw new Error("[ethjs-abi] while getting param coder for type "+t+", invalid "+o+"<N> width: "+t);r=l(a/8,"int"===o);break;case"bool":if(r)throw new Error(n);r=d;break;case"string":if(r)throw new Error(n);r=b;break;case"bytes":if(r)throw new Error(n);if(i[3]){var s=parseInt(i[3]);if(0===s||s>32)throw new Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+t+", size "+s+" should be 0 or greater than 32");r=h(s)}else r=g;break;case"address":if(r)throw new Error(n);r=p;break;case"[]":if(!r||r.dynamic)throw new Error(n);r=v(r,-1);break;default:if(!r||r.dynamic)throw new Error(n);r=v(r,parseInt(i[6]))}}if(!r)throw new Error(n);return r}}}).call(this,e("buffer").Buffer)},{"bn.js":672,buffer:475,"js-sha3":815,"number-to-bn":895}],680:[function(e,t,r){arguments[4][194][0].apply(r,arguments)},{"babel-runtime/core-js/json/stringify":331,"babel-runtime/core-js/object/assign":332,"babel-runtime/core-js/object/define-property":333,"babel-runtime/core-js/object/keys":334,"babel-runtime/helpers/asyncToGenerator":336,"babel-runtime/regenerator":420,dup:194,"ethjs-format":749,"ethjs-rpc":755,"promise-to-callback":953}],681:[function(e,t,r){(function(r){"use strict";var n=e("ethjs-query"),i=e("ethjs-filter"),o=e("ethjs-contract"),a=e("ethjs-provider-http"),s=e("ethjs-abi"),c=e("ethjs-unit"),u=e("js-sha3").keccak_256,l=e("number-to-bn"),f=e("bn.js"),d=e("ethjs-util"),h=e("./lib/getTransactionSuccess.js");function p(e,t){if(!(this instanceof p))throw new Error('[ethjs] the Eth object requires you construct it with the "new" flag (i.e. `const eth = new Eth(...);`).');var r=this;r.options=t||{};var a=new n(e,r.options.query);Object.keys(Object.getPrototypeOf(a)).forEach((function(e){r[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return a[e].apply(a,r)}})),r.filter=new i(a,r.options.query),r.contract=new o(a,r.options.query),r.currentProvider=a.rpc.currentProvider,r.setProvider=a.setProvider,r.getTransactionSuccess=h(r)}t.exports=p,p.BN=f,p.isAddress=function(e){return d.isHexString(e,20)},p.keccak256=function(e){return"0x"+u(e)},p.Buffer=r,p.isHexString=d.isHexString,p.fromWei=c.fromWei,p.toWei=c.toWei,p.toBN=l,p.abi=s,p.fromAscii=d.fromAscii,p.toAscii=d.toAscii,p.fromUtf8=d.fromUtf8,p.toUtf8=d.toUtf8,p.HttpProvider=a}).call(this,e("buffer").Buffer)},{"./lib/getTransactionSuccess.js":682,"bn.js":672,buffer:475,"ethjs-abi":673,"ethjs-contract":677,"ethjs-filter":748,"ethjs-provider-http":750,"ethjs-query":680,"ethjs-unit":757,"ethjs-util":759,"js-sha3":815,"number-to-bn":895}],682:[function(e,t,r){arguments[4][192][0].apply(r,arguments)},{dup:192}],683:[function(e,t,r){arguments[4][175][0].apply(r,arguments)},{dup:175}],684:[function(e,t,r){t.exports={version:2,tolerance:2,fuzzylist:["metamask.io","myetherwallet.com","cryptokitties.co","mycrypto.com","localethereum.com","dfinity.org","hederahashgraph.com","auctus.org"],whitelist:["aditus.net","amatus.com","aureus.aero","aginity.com","aurus.io","afiniti.com","actu.fr","nuclus.co","auctus.org","ncrypto.io","dfinery.com","hederahashgraph.com","ancrypto.ru","mycrypto.education","metamesh.io","crypto.by","mycrypto.toys","hkcrypto.com","crypto.deals","crypto.quebec","crypto.dance","vncrypto.info","crypto.ms","ncrypto.com","mrcrypto.dk","nedfinity.com","affinity.me","crypto.cat","winity.io","gfinity.net","p-crypto.ru","mycryptons.com","aicrypto.ai","azcrypto.net","crypto.com","affinity.photography","abcrypto.info","ucrypto.net","vscrypto.com","affinity.com","affinity.co","crypto.news","dbcrypto.com","ezcrypto.guide","gocrypto.me","finity.ai","weffkemining.com","nwcrypto.com","cobinhood.com","affinity.vc","trinity.tech","metahusk.com","mrcrypto.fr","affinity.store","affinity.serif.com","xfinity.com","dfinity.org","ggcrypto.net","mycrypto.website","pqcrypto.org","z-crypto.com","mpcrypo.com","localethereum.com","localbitcoins.com","huobipro.com","ncrypto.tech","9crypto.co","netmask.hu","cryptokittens.club","rucrypto.com","cryptocities.world","mqtcrypto.com","crypto.press","becrypto.xyz","hicrypto.io","crypto.nl","zycrypto.com","mmcrypto.io","mycrypter.com","crypto.tickets","crypto.pro","ocrypto.org","wecrypto.net","iccrypto.io","crypto.kred","ohmycrypto.io","spcrypto.net","melcrypto.com","zzcrypto.org","zzcrypto.net","crypto.bg","mycrypto24.online","acrypto.io","mycrypto.ca","scrypto.io","mycrypto.dk","mvzcrypto.com","ambcrypto.com","crypto.bi","crypto.jobs","crypto.help","my.crypt.observer","crypt.observer","ucrypto.com","cryptojobslist.com","crypto.review","crypto.me","b3crypto.com","mycrypto.ninja","jkcrypto.com","crypto.cr","mycrypto.live","yocrypto.io","crypto.ba","zacrypto.info","mycrypto.com","remix.ethereum.org","metahash.io","metahash.net","metahash.org","cryptotitties.com","cryptocities.net","cryptoshitties.co","cryptotitties.fun","cryptokitties.forsale","cryptokitties.care","metamate.cc","metamesh.tech","ico.nexus.social","metamesh.org","metatask.io","metmask.com","metarasa.com","metapack.com","metacase.com","metafas.nl","metamako.com","metamast.com","metamax.ru","metadesk.io","metadisk.com","metallsk.ru","metamag.fr","metamaks.ru","metamap.ru","metamaps.cc","metamats.com","metamax.by","metamax.com","metamax.io","metamuse.net","metarank.com","metaxas.com","megamas2.ru","metamask.io","myetherwallet.com","ethereum.org","myetheroll.com","myetherapi.com","ledgerwallet.com","databrokerdao.com","etherscan.io","etherid.org","ether.cards","etheroll.com","ethnews.com","ethex.market","ethereumdev.io","ethereumdev.kr","dether.io","ethermine.org","slaask.com","etherbtc.io","ethereal.capital","etherisc.com","m.famalk.net","etherecho.com","ethereum.os.tc","theethereum.wiki","metajack.im","etherhub.io","ethereum.network","ethereum.link","ethereum.com","prethereum.org","ethereumj.io","etheraus.com","ethereum.dev","1ethereum.ru","ethereum.nz","nethereum.com","metabank.com","metamas.com","aventus.io","metabase.com","etherdelta.com","metabase.one","cryptokitties.co","remme.io","jibrel.network","twinity.com"],blacklist:["mycrypto.company","myetherapywaillet.com","myetherapywalilet.com","myetherapywallet.com","myetherapywalliet.com","mybethernvwallet.com","myotherapywallet.com","myuuetheraswallet.com","nnyctncrwalliet.com","nnyctncrvvallet.com","myetheurwallet.com","ico-telegram-ton.com.ru","ton-ico.ga","mailingserver2.com","gram-token.org","lco-telegram.org","tonogram.org","eth-give.kissr.com","myegethercowwallet.com","tron-giveavay-weeklyreport.bitballoon.com","ethdropnew.ml","cryptoplus.be","dfinity.org.in","payforfees.online","nnyctncrwaillet.com","myunetherhawallet.com","airdrop-bluzelle.com","tronfoundation.tech","safely-transfer.com","eth.vu","xn--myeterallet-nl8eo0c.com","get-eth.pl","cz-binance.com","signalsx.com","eth-gift.tw1.su","myetnarvellat.com","mynbethernvwallet.com","myehcrwalilet.com","gdaxsupport.com","coinbaseexchange.org","coinbasehelp.info","coinbaseassist.info","kinecosystem.net","telegramtoken.global","telcoinairdrop.com","wax.community","xn--mytherwalet-3qb10c.com","ethgiveaway.club","coinnbase.com","dailyinequality.org","ethg.cz","crypto-payout.tk","vechain-ven.com","tokensale-telegram.com","ethr.cc","nnyecthenwellat.com","nnyiicteherwailiatt.com","themisnetwork.org","www-myetherwellet.com","eth-today.com","ethg.gift","ether-zero.info","ethgiveaway.info","bonus.ethersgive.com","ethersgive.com","tronfoundation.me","eths.li","auctus.network","auctuss.org","auctus.org.in","auctus-ico.network","xn--aucts-1gb.org","coinmakerbot.com","blnnance.com","myetherwallet.heliohost.org","ton-telegram.com","tonpublic.org","claim.ethdeal.info","telegram.trade","telegram-coin.org","nnyiictehervvailiatt.com","eths.vu","shivoms.io","telegramsale.com","hederashashgraph.com","eth-transaction.site44.com","xn--metherwllet-ln9eqi.com","xn--bitcointlk-85a.org","coinbaase.cf","coinnbase.ml","coinnbase.tk","binaance.ga","binaance.cf","binancce.cf","binancce.ml","xn--myetlherallet-341g.com","paveldurov.bitballoon.com","secure-eth-transactions.bitballoon.com","giveaway-ethereum.org","ethpayd.com","ethdrop.info","i-myetherwalnet.com","metronome-token.io","coin-zc.com","xn--bitcon-mwa.com","myettherwallet.xyz","ethpayment.bitballoon.com","ethopen.com","telegramnetwork.org","geth.cc","telegram.ceo","etherscan-giveaway.epizy.com","eths.bz","swaapy.network","binance.ethdeal.info","ethdeal.info","gramnetwork.org","galaxy-es0lutions.com","eth.altervista.org","musk.gift","mycrypto.bz","eth.vg","eth-giveaway-vote.bitballoon.com","eth-promo.com","work.nelsconsult.com.ng","etherfreegive.com","secure-s28h3h2j54jehdh43jh3k5h42l4h23hk6l49sjxvsatoshilite.bitballoon.com","giveaway-payment-add.bitballoon.com","big-promo-march.tumblr.com","ethgive.github.io","myetherwalletradeico.blogspot.de","owainpritchard.co.uk","et.gl","xn--condesk-ww4c.com","xn--myethrwllet-6qb2249g.com","airdrop-ether.bitballoon.com","info-transaction.com","eth.hn","binance-promo.net","trust-cryptopayment.com","ethereum-transfer.online","icotonsale.com","etherbonuses.com","ethfreeget.com","tongram.me","funfaircoin.org","coinbase-secure-a2k34j.bitballoon.com","ethereumtrans.com","xn--condes-8bb1661d.com","ethergiveawaytweet.tk","eth-giveaway.gq","nnyettiervwallat.com","nnyettiervwallet.com","eth.vote","eth-promo.bitballoon.com","ethfreepay.com","promo-trx.tk","paymentaddress.tumblr.com","cryptongram.org","campaigntoken.blogspot.de","coin-promos.com","xn--ytherwallet-iw8ex8c.com","smartexchangecenter.tk","xn--oindesk-15a.com","eth-transaction.secure.kissr.com","otoeveryday.info","ethfreecandy.bitballoon.com","etherscanio.github.io","ico-gram.net","gramtoken.network","ethfreegive.com","ether-promo.bitballoon.com","xn--cindesk-cx4c.com","theadsleader.000webhostapp.com","myetherwalletico.blogspot.de","eth-giveaway.info","syncfab.eu","eth-giveaway.com","icoeth.tk","eth-giveaway-706.htmlcomponentservice.com","htmlcomponentservice.com","mybinance.info","xn--myethewallet-kjc.com","polyswamr.io","polyswarm.me","polyswarms.io","eth4free.ml","ico-telegram-ton.com","telegram.tw","gramton.info","gramsap.enterprises","ico-telegram.club","telegram.one","etharscan.io","xn--coindes-jhb.com","blocikchair.info","eth-cz-319.htmlcomponentservice.com","xn--myetherwaet-0t8ea.com","eth-giveaway-514.htmlcomponentservice.com","xn--mtherwallet-z19ex1a.com","xn--eo-e9a.com","cosss.io","callistonetwork.tech","xn--metherwallt-819eo1a.com","ethfreepays.com","nnyettiervwailet.com","xn--hapehift-oh0de.com","gram.vc","bonus.etherpayout.com","etherpayout.com","ethereum-giveaway.info","xn--bnanc-fsax.com","xn--binnce-y0a.com","geocities.ws","eth-giveaway-209.statichtmlapp.com","binance.bitballoon.com","binance-give.com","ilil.pw","myetherwallet.com.send-transaction_8hlg6z8mgt6zyg.ilil.pw","telegram.site","telegram.auction","miroskii.com","eth-transactions.neocities.org","online-eos.org","data-token.org","eth953883.htmlcomponentservice.com","reeveclancy.wixsite.com","transfer-eth.neocities.org","eth.secure-transactionssecure.com","secure-transactionssecure.com","nnyiictehervvailiat.com","odachi.neocities.org","bittrex-give.com","policypal.info","changlley.org","rnyertherwallet.com","xn--thabyss-u8a.com","callisto-airdrop.com","telegramfoundation.org","polymathnetwork.org","ethereum-promo.bitballoon.com","dfintty.org","dftnity.org","usermd.net","xn--gemn-nzab.com","xn--bnance-3va.com","xn--binnce-yc8b.com","xn--bnance-p9a.com","xn--binane-0ua.com","binalce.com","binince.com","xn--conbase-pza.com","xn--conbase-sfb.com","xn--coinbas-xya.com","xn--coinbas-z8a.com","xn--coinbse-9wa.com","xn--coinbse-lwa.com","xn--polonex-vfb.com","xn--ploniex-l0a.com","xn--plniex-bxab.com","xn--havvn-9za.io","havvenio.com","nucelus.vision","metronometoken.io","meganfoxloveyou.com","xn--yetherwalle-iw8e1s.com","tron-online.org","myenthereumwallet.com","myetherwallet-team.com","myetherwallet.usermd.net","xn--yetherwalle-tv8ezt.com","xn--coindek-873c.com","dflinity.org","ipsx.promo","havven-sale.com","tokensale-adhive.com","ataritoken.ltd","transfer-address-confirmation.droppages.com","droppages.com","dfinlty.org","poloniex.work","tokensale-havven.in","ico-havven.org","secure.poloniex.work","vechain-foundation.org","telegram.tokyo","forkdelta.io","ton-sale.com","ico-telegram.online","telegramtoken.io","gonetwork-airdrop.co","secure-transaction-confirmation.droppages.com","neonexchanges.org","eth-transact.secure.droppages.com","6khb.payment-checker-ethereum-id-bslyftexjuwcgv8.filesusr.com","akasha-world.com","address-transfer-confirmation.droppages.com","b5z.net","p.b5z.net","tokensale.xn--havve-7l1b.com","xn--coindes-bx3c.com","xn--coindek-s73c.com","locaeltherum.com","myetherwallet.tokenimport.com","tokenimport.com","leadscoin.network","localethereom.com","havvens.win","xn--metherwalle-jb9ejq.com","xn--myetheralle-jb9exm.com","tefood.me","havventoken.com","havven.cc","havven.eu","havven.top","mywalletether.com","myetherwallett.site","xn--myethewalle-w48erh.com","el-petro-coin.com","xn--yeterwallet-bm8eym.com","sale-orchid.com","electrify-asia.info","tron-foundation.org","dflnlty.org","polyswarm.tech","tokensale.polyswarm.tech","polyswarm.ru","dock.click","leadcoins.network","dock-tokensale.eu","polyswarm.pw","dock-io.org","heavven.io","havven.live","havven.sale","havven.info","dock.network","blocklancer.me","tokensale-havven.io","havven.pro","tokentelegram.com","ico-telegram.me","myetherzero.com","seele-token.pro","tokensale-havven.com","polyswarm.in","sale-dock.com","polyswarm.co","polyswarm.bid","ton.fund","forkdeita.github.io","xn--binnce-5nf.com","xn--biace-4l1bb.com","jiocoins.io","xn--polonx-0va26t.com","myetlherewallet.org","myeithereiuwallet.com","fin-trux.com","finetrux.com","telcoin.pro","xn--es-8bb.com","xn--myetherallt-pl9elw.com","ico-dock.org","dock.io-bonus.online","docks.site","dock-ico.pro","dock-ico.eu","dock.su","tokensale-dock.io","dock-ico.site","openplatform.tech","rightmesh.in","waxtoken.in","metamaskgiveaway.xyz","nebulastoken.in","vechain-foundation.com","icotoken-current.top","xn--myethrwalle-jb9e19a.com","xn--myetheralle-7b9ezl.com","iconfoundation.co","fundrequest.info","xn--myetherwale-os8e7x.com","remme-ico.eu","gonetwork.live","token.gonetwork.pro","gonetwork.pro","gonetwork.eu","nucleus-vision.cc","jibreltoken.in","dock.so","dock.promo","xn--mycrypt-r0a.com","xn--mycrypt-g1a.com","xn--mycrpto-y2a.com","ethexploit.org","remme.in","remme.ws","remme.com.ng","nyeitthervvallet.com","xn--myeerhwailet-ooc.com","myeterhwaliot.com","remme.live","xn--yethewalle-to2exkhi.com","myetherwallet.custom-token.com","custom-token.com","sale-earn.com","bankera.live","originprotocol.io","originprotocol.online","trx.foundation","tokensale.adhive.net","adhive.net","decentral.market","cryptoexploite.com","blockclain.net","xn--blckchin-5za9o.info","xn--blkhain-m0a4pb.info","xn--blocchal-gmb8m.info","xn--blocchaln-orb.info","xn--blocchan-gmb7c.info","xn--blockaden-lsen-5pb.com","xn--blockchai-3vb.info","xn--blockchai-jvb.info","xn--blockchal-3vb.info","xn--blockcham-ipb.info","xn--blockchan-2pb.com","xn--blockchan-75a.com","xn--blockchan-7sb.info","xn--blockchan-d5a.net","xn--blockchan-dob.info","xn--blockchan-ipb.com","xn--blockchan-ipb.info","xn--blockchan-nk7d.com","xn--blockchan-xub.info","xn--blockchann-4ub.com","xn--blockchi-n7a50e.info","xn--blockchi-o8a54d.info","xn--blockchi-p99co8a.com","xn--blockchim-hdb.info","xn--blockchin-1xb.info","xn--blockchin-61a.info","xn--blockchin-61a.net","xn--blockchin-6ib.info","xn--blockchin-ccb.info","xn--blockchin-h4a.com","xn--blockchin-h4a.info","xn--blockchin-hdb.info","xn--blockchin-hhb.info","xn--blockchin-mib.net","xn--blockchin-wcb.com","xn--blockchn-fza4j.com","xn--blockchn-fza4j.info","xn--blockchn-n7a43b.info","xn--blockchn-p0a.info","xn--blockchn-tx0d4p.com","xn--blockclai-3vb.info","xn--blockclin-hdb.com","xn--blockclin-hdb.info","xn--blockclin-hdb.org","xn--blockflte-kirchrode-w6b.de","xn--blockfltenquartett-windspiel-81c.de","xn--blockhai-obb78c.info","xn--blockhain-4eb.com","xn--blockhain-pfb.com","xn--blockhain-pfb.info","xn--blockhain-zdb.info","xn--blockhan-obb65a.info","xn--blockhas-d6a.com","xn--blockwallt-j7a.com","xn--blokchai-fqb.info","xn--blokchain-nfb.info","xn--blokhain-28ab.info","xn--bockclnain-eyb.info","xn--mymoeo-zt7bzf.com","xn--mymoer-nqc1368c.com","xn--mymoero-c13c.com","xn--mymoero-s13c.com","xn--mymoneo-f63c.com","xn--mymoneo-v63c.com","xn--mymoneo-y53c.com","xn--mymoner-j0a.com","xn--mymoner-j5b.com","xn--mymoner-r0a.com","xn--mymoner-z0a.com","xn--mymoner-z2c.com","xn--mymonro-fya.com","xn--mymonro-x8a.com","xn--myetheallet-l58emu.com","xn--myetheraet-9k2ea77h.com","xn--myetheralet-ms8e21b.com","xn--myetheralle-7b9exm.com","xn--myetherallet-5s5f.com","xn--myetherallet-fs5f.com","xn--myetherewalle-1t1g.com","xn--myetherllet-pl9e6k.com","xn--myethervvalle-8vc.com","xn--myetherwaet-61ea.com","xn--myetherwaet-8eda.com","xn--myetherwaet-ns8ea.com","xn--myetherwale-ns8e8x.com","xn--myetherwalet-0fb.com","xn--myetherwalet-0z4f.com","xn--myetherwalet-814f.com","xn--myetherwalet-d9b.com","xn--myetherwalet-h14f.com","xn--myetherwalle-9me.com","xn--myetherwalle-ek5f.com","xn--myetherwalle-fqc.com","xn--myetherwalle-opc.com","xn--myetherwalle-q05f.com","xn--myetherwllet-wob.com","xn--myetherwllt-r7a0i.com","xn--myethewaliet-9d5f.com","xn--myethewalle-3ic0947g.com","xn--myethewallet-0e5f.com","xn--myethewallet-1kc.com","xn--myethewallet-bkc.com","xn--myethewallet-vof.com","xn--myethewalliet-nm1g.com","xn--myethewallt-kbb3019g.com","xn--myethewallt-w48ew7b.com","xn--myethrwalet-6qb6408g.com","xn--myethrwalet-ms8e83d.com","xn--myethrwallet-1db.com","xn--myethrwallt-29af.com","xn--myethrwallt-29as.com","xn--myethrwllet-q7a31e.com","xn--myethrwllet-r8a3c.com","fintrux.eu","refereum-ico.eu","arcblock-ico.org","xn--fuson-1sa.org","refereum-token.com","fintrux.co","ico-ton.org","xn--mytherwallt-cbbv.com","xmoneta.co","data-wallet.co","tokensale.data-wallet.co","xn--myeerhwallot-ooc.com","xn--myeterwalet-cm8epi.com","xn--myeterwalle-cm8ev6a.com","rnyetherumwallet.com","republic-protocol.net","nyeihitervvallatt.com","arcblock.eu","republicprotocol.eu","tokensale-fusion.com","myetherwalletjoin.com","medicalchian.com","myeahteirwaliet.com","myenhtersvvailct.com","trinity-token.com","xn--eo-yzs.com","zilliqa.in","sparc.pro","myetherwallet.import-tokens.com","token-gram.org","xn--shapshift-e4a.com","xn--shapshift-y4a.com","xn--shpeshift-c2a.com","xn--shpeshift-r1a.com","xn--shapshift-o4a.com","xn--shpeshift-w2a.com","xn--shapeshft-w5a.com","tokensale-fusion.org","fusion-ico.com","beetolen.com","tokencrowdsale.online","fusion.tokencrowdsale.online","beetokem.com","block.chaiins.in","origintrail.in","bit-z.ru","xn--myetherallet-nu5f.com","xn--mytherwalet-3qb08c.com","xn--myeterwllet-cm8et1d.com","xn--mytherwllet-q7a01e.com","xn--biance-xt7b.com","xn--bnance-wic.com","xn--biance-jeb.com","xn--bttrx-9za8334c.com","wwwkodakcoin.com","myetherwallet.uk.com","kodakone.cc","nyeihitervvallet.com","xn--myeterwalet-cm8eoi.com","nucleus.foundation","beetoken-ico.com","data-token.com","tron-labs.com","ocoin.tech","aionfoundation.com","ico-telegram.org","nyeihitervvallat.com","telegramcoin.us","daddi.cloud","daditoken.com","blockarray.org","dadi-cloud.net","wanchainfunding.org","ico-telegram.io","iconfoundation.site","iost.co","beetoken-ico.eu","cindicator.network","wanchainetwork.org","wamchain.org","wanchainltd.org","wanchainalliance.org","nucleus-vision.net","ledgerwallet.by","nucleuss.vision","myenhterswailct.com","cobin-hood.com","wanchainfoundation.org","xn--polniex-ex4c.com","xn--polniex-s1a.com","xn--polonex-ieb.com","xn--polonex-sza.com","xn--polonex-zw4c.com","xn--polonix-ws4c.com","xn--polonix-y8a.com","xn--pooniex-ojb.com","gramico.info","dimnsions.network","www-gemini.com","login-kucoin.net","venchain.foundation","grampreico.com","tgram.cc","ton-gramico.com","wwwpaywithink.com","coniomi.com","paywithnk.com","paywithlnk.com","iluminatto.com.br","pundix.eu","xn--bttrx-esay.com","xn--bttrex-w8a.com","xn--bnance-bwa.com","xn--shpeshift-11a.com","xn--shapeshif-ts6d.com","xn--shapshift-yf7d.com","wwwbluzelle.com","bluzelie.com","nucleus-vision.org","omisegonetwork.site","etlherzero.com","etlherdelta.com","xn--condesk-0ya.com","xn--condesk-sfb.com","xn--coindsk-vs4c.com","iexecplatform.com","tongramico.com","nucleus-vision.eu","intchain.network","wanchain.cloud","bluzelle-ico.com","ethzero-wallet.com","xn--metherwalle-jb9et7d.com","xn--coinesk-jo3c.com","venchainfoundation.com","myenhtersvvailot.com","ether-zero.net","ins.foundation","nastoken.org","telcointoken.com","ether0.org","eterzero.org","bluzelle-ico.eu","bleuzelle.com","appcoinstoken.org","xn--quanstamp-8s6d.com","myehntersvvailct.com","myeherwalllet.com","ico-bluzelle.com","bluzelle.im","bluzelle.one","bluzele.sale","bluzele.co","sether.ws","xn--myetherwalet-6gf.com","xn--rnyethewaliet-om1g.com","rnyethervailet.com","mvetherwaliet.com","rnyetherwailet.com","myethervaliet.com","rnyethervaliet.com","mvetherwalilet.com","xn--myethewalie-3ic0947g.com","xn--mthrwallet-z6ac3y.com","xn--myeherwalie-vici.com","xn--myethervvalie-8vc.com","xn--mythrwallt-06acf.com","xn--mtherwallet-y9a6y.com","myetherwallet.applytoken.tk","ethereum-zero.com","quanstamptoken.tk","bluzelle.network","ether-wallet.org","tron-wallet.info","appcoinsproject.com","vechain.foundation","tronlab.site","tronlabs.network","bluzelle.cc","ethblender.com","ethpaperwallet.net","waltontoken.org","icoselfkey.org","etherzeroclaim.com","etherzero.promo","bluzelle.pro","token-selfkey.org","xn--etherdlta-0f7d.com","sether.in","xn--ttrex-ysa9423c.com","bluzelle.eu","bluzelle.site","gifto.tech","xn--os-g7s.com","selfkey.co","xn--myeherwalet-ns8exy.com","xn--coinelegraph-wk5f.com","dai-stablecoin.com","eos-token.org","venchain.org","gatcoins.io","deepbrainchain.co","myetherwalililet.info","myehvterwallet.com","myehterumswallet.com","nucleusico.com","tronlab.tech","0x-project.com","gift-token-events.mywebcommunity.org","funfairtoken.org","breadtokenapp.com","cloudpetstore.com","myethwalilet.com","selfkeys.org","wallet-ethereum.com","xn--methrwallt-26ar0z.com","xn--mytherwllet-r8a0c.com","bluzelle.promo","tokensale.bluzelle.promo","cedarlake.org","marketingleads4u.com","cashaa.co","xn--inance-hrb.com","wanchain.tech","zenprolocol.com","ethscan.io","etherscan.in","props-project.com","zilliaq.com","reqestnetwork.com","etherdelta.pw","ethereum-giveaway.org","mysimpletoken.org","binancc.com","blnance.org","elherdelta.io","xn--hapeshit-ez9c2y.com","tenxwallet.co","singularitynet.info","mytlherwaliet.info","iconmainnet.ml","tokenselfkey.org","xn--myetewallet-cm8e5y.com","envione.org","myetherwalletet.com","claimbcd.com","ripiocreditnetwork.in","xn--yeterwallet-ml8euo.com","ethclassicwallet.info","myltherwallet.ru.com","etherdella.com","xn--yeterwallet-bm8ewn.com","singularty.net","cloudkitties.co","iconfoundation.io","kittystat.com","gatscoin.io","singularitynet.in","sale.canay.io","canay.io","wabicoin.co","envion.top","sirinslabs.com","tronlab.co","paxful.com.ng","changellyli.com","ethereum-code.com","xn--plonex-6va6c.com","envion.co","envion.cc","envion.site","ethereumchain.info","xn--envon-1sa.org","xn--btstamp-rfb.net","envlon.org","envion-ico.org","spectivvr.org","sirinlbs.com","ethereumdoubler.life","xn--myetherwllet-fnb.com","sirin-labs.com","sirin-labs.org","envion.one","envion.live","propsproject.org","propsprojects.com","decentralland.org","xn--metherwalet-ns8ep4b.com","redpulsetoken.co","propsproject.tech","xn--myeterwalet-nl8emj.com","powrerledger.com","cryptokitties.com","sirinlabs.pro","sirinlabs.co","sirnlabs.com","superbitcoin-blockchain.info","hellobloom.me","mobus.network","powrrledger.com","xn--myeherwalet-ms8eyy.com","qlink-ico.com","gatcoin.in","tokensale.gamefllp.com","gamefllp.com","xn--myeherwalle-vici.com","xn--myetherwalet-39b.com","xn--polonex-ffb.com","xn--birex-leba.com","raiden-network.org","sirintabs.com","xn--metherwallt-79a30a.com","xn--myethrwllet-2kb3p.com","myethlerwallet.eu","xn--btrex-b4a.com","powerrledger.com","xn--cointeegraph-wz4f.com","myerherwalet.com","qauntstanp.com","myetherermwallet.com","xn--myethewalet-ns8eqq.com","xn--nvion-hza.org","nnyetherwallelt.ru.com","ico-wacoin.com","xn--myeterwalet-nl8enj.com","bitcoinsilver.io","t0zero.com","tokensale.gizer.in","gizer.in","wabitoken.com","gladius.ws","xn--metherwallt-8bb4w.com","quanttstamp.com","gladius.im","ethereumstorage.net","powerledgerr.com","xn--myeherwallet-4j5f.com","quamtstamp.com","quntstamp.com","xn--changely-j59c.com","shapeshlft.com","coinbasenews.co.uk","xn--metherwallet-hmb.com","envoin.org","powerledger.com","bitstannp.net","xn--myetherallet-4k5fwn.com","xn--coinbas-pya.com","requestt.network","oracls.network","sirinlabs.website","powrledger.io","slackconfirm.com","shape-shift.io","oracles-network.org","xn--myeherwalle-zb9eia.com","blockstack.one","urtust.io","bittrex.one","t0-ico.com","xn--cinbase-90a.com","xn--metherwalet-ns8ez1g.com","tzero-ico.com","tzero.su","tzero.website","blockstack.network","ico-tzero.com","spectre.site","tzero.pw","spectre-ai.net","xn--waxtokn-y8a.com","dmarket.pro","bittrex.com11648724328774.cf","bittrex.com1987465798.ga","autcus.org","t-zero.org","xn--zero-zxb.com","myetherwalletfork.com","blokclbain.info","datum.sale","spectre-ai.org","powerledgr.com","simpletoken.live","sale.simpletoken.live","qauntstamp.com","raiden-network.com","metalpayme.com","quantstamp-ico.com","myetherwailetclient.com","biockchain.biz","wallets-blockchain.com","golemairdrop.com","omisegoairdrop.net","blodkchainwallet.info","walton-chain.org","elite888-ico.com","bitflyerjp.com","chainlinksmartcontract.com","stormtoken.eu","omise-go.tech","saltending.com","stormltoken.com","xn--quanttamp-42b.com","stormtoken.co","storntoken.com","stromtoken.com","storm-token.com","stormtokens.io","ether-delta.com","ethconnect.live","ethconnect.trade","xn--bttrex-3va.net","quantstamp.com.co","wancha.in","augur-network.com","quantstamp.com.ua","myetherwalletmew.com","myetherumwalletts.com","xn--quanstamp-tmd.com","quantsstamps.com","changellyl.net","xn--myetherwalet-1fb.com","myethereumwallets.com","xn--myetherwalet-e9b.com","quantslamp.com","metelpay.com","xn--eterdelta-m75d.com","linksmartcontract.com","myetherwalletaccess.com","myetherwalletcheck.com","myetherwalletcheck.info","myetherwalletconf.com","myetherwalleteal.com","myetherwalletec.com","myetherwalletgeth.com","myetherwalletmetamask.com","myetherwalletmm.com","myetherwalletmy.com","myetherwalletnh.com","myetherwalletnod.com","myetherwalletrr.com","myetherwalletrty.com","myetherwalletsec.com","myetherwalletsecure.com","myetherwalletutc.com","myetherwalletver.info","myetherwalletview.com","myetherwalletview.info","myetherwalletvrf.com","myetherwalletmist.com","myetherwalletext.com","myetherwalletjson.com","mettalpay.com","bricklblock.io","bittrexy.com","utrust.so","myethierwallet.org","metallpay.com","kraken-wallet.com","dmarkt.io","etherdeltla.com","unlversa.io","universa.sale","mercuryprotocol.live","ripiocredlt.network","myetlherwa11et.com","dentacoin.in","rdrtg.com","myetherwallet.com.rdrgh.com","rdrgh.com","ripiocreditnetwork.co","riaden.network","hydrominer.biz","rdrblock.com","reqest.network","senstoken.com","myetherwallat.services","ripiocredit.net","xn--metherwallet-c06f.com","ico.ripiocredits.com","ripiocredits.com","raidens.network","artoken.co","myetherwalletlgn.com","etherblog.click","stormtoken.site","httpmyetherwallet.com","myetherwalletverify.com","byzantiumfork.com","myetherwallet.com.byzantiumfork.com","www-myethervvallet.com","ether24.info","block-v.io","bittrex.cash","shapishift.io","ripiocerdit.network","rnyetherwa11et.com","claimether.com","enigmatokensale.com","ethereum-org.com","mvetnerwallet.com","myctherwallet.com","myetherwaltet.com","myetherwatlet.com","privatix.me","myetherwalletcnf.com","myetherwalletver.com","privatix.top","privatix.pro","privatex.io","stormtoken.cc","raiden.online","stormstoken.com","myetereumwallet.com","stormtokens.net","myetherwalletconf.info","storrntoken.com","worldofbattles.io","ico.worldofbattles.io","privatix.live","riden.network","raidan.network","ralden.network","mymyetherwallet.com","myetherwallets.net","myetherwalletverify.info","stormxtoken.com","myethereum-wallet.com","myetherwallet-forkprep.pagedemo.co","myetnerwailet.com","www-mvetherwallet.com","etheirdelta.com","myetherwalletiu.com","myetherwaiiett.com","xn--mytherwalet-cbb87i.com","xn--myethrwallet-ivb.co","xn--myeterwallet-f1b.com","myehterwaliet.com","omegaone.co","myetherwaiietw.com","slack.com.ru","polkodot.network","request-network.net","requestnetwork.live","binancie.com","first-eth.info","myewerthwalliet.com","enjincoin.pw","xn--bitrex-k17b.com","alrswap.io","www-request.network","myetnenwallet.com","www-enigma.co","cryptoinsidenews.com","air-swap.tech","launch.airswap.cc","airswap.cc","airswaptoken.com","launch.airswap.in","airswap.in","security-steemit.com.mx","blockchalnwallet.com","blodkchainwallet.com","blodkchaln.com","myethereumwaiiet.com","myethereumwaliet.com","myethereumwalilet.com","myetherswailet.com","myetherswaliet.com","myetherswalilet.com","myetherwalilett.com","myetherwalletl.com","myetherwalletww.com","myethereunwallet.com","myethereumwallct.com","myetherwaiieti.com","myetherwaiiete.com","upfirng.com","paypie.net","paypie.tech","soam.co","myetherwaiict.com","numerai-token.com","www-bankera.com","vvanchain.org","omisegoairdrop.com","xn--enjncoin-41a.io","suncontract.su","myetherwaiietr.com","shapeshiff.io","warchain.org","myethwallett.com","myethervvaliet.com","wanchains.org","etherparty.in","enjincoin.me","etiam.io","invest.smartlands.tech","smartlands.tech","enijncoin.io","wanchain.network","nimiq.su","enjincoin.sale","tenxwallet.io","golem-network.net","myyethwallet.ml","mywetherwailiet.com","omg-omise.com","district0x.tech","centra-token.com","etherdetla.com","etnerparty.io","etherdelta.su","myetherwallett.neocities.org","myetherwallet-secure.com","myethereumwalletntw.info","real-markets.io","wallet-ethereum.org","request-network.com","shapeshifth.io","shiapeshift.in","coin.red-puise.com","ibittreix.com","coinkbase.com","cindicator.pro","myetherwallet.com.ailogin.me","eventchain.co","kinkik.in","myetherumwalletview.com","protostokenhub.com","coinrbase.com","myetherwalletlogin.com","omisegotoken.com","myethereumwalletntw.com","reall.markets","cobinhood.org","cobinhood.io","happy-coin.org","bitfinex.com.co","bitfienex.com","iconn.foundation","centra.vip","smartcontract.live","icon.community","air-token.com","centra.credit","myetherwallet-singin.com","smartcontractlink.com","shapesshift.io","0xtoken.io","augurproject.co","ethereumus.one","myetherumwalet.com","myetherwalletsignin.com","change-bank.org","charge-bank.com","myetherwalletsingin.com","myetherwalletcontract.com","change-bank.io","chainlink.tech","myetherwallet-confirm.com","tokensale.kybernet.network","kybernet.network","kyberr.network","kybernetwork.io","myetherwalletconfirm.com","kvnuke.github.io","kin.kikpro.co","myethereumwallet.co.uk","tokensale-kyber.network","kyber-network.co","tokensale.kyber-network.co","pyro0.github.io","tokensale.kyber.digital","kyber.digital","omise-go.me","my.etherwallet.com.de","bepartof.change-bank.co","change-bank.co","enigma-tokens.co","coinbase.com.eslogin.co","xn--bittrx-mva.com","ethrdelta.github.io","etherdellta.com","ico-nexus.social","red-pulse.tech","bitj0b.io","xn--bttrex-bwa.com","kin-klk.com","kin-crowdsale.com","ethedelta.com","coindash.su","myethwallet.co.uk","swarm.credit","myethereumwallet.uk","iconexu.social","wanchain.co","enigrna.co","linknetwork.co","qtum-token.com","omisego.com.co","rivetzintl.org","etherdelta.one","the-ether.pro","etherdelta.gitnub.io","kirkik.com","monetha.ltd","vlberate.io","ethereumwallet-kr.info","omise-go.org","iconexus.social","bittirrex.com","aventus.pro","atlant.solutions","aventus.group","metamak.io","omise.com.co","herotokens.io","starbase.pro","etherdelta.githulb.io","herotoken.co","kinico.net","dmarket.ltd","etherdelta.gilthub.io","golem-network.com","etnerscan.io","bllttriex.com","monetha.me","monetha.co","monetha-crowdsale.com","starbase.tech","aventus-crowdsale.com","shapeshift.pro","bllttrex.com","kickico.co","statustoken.im","bilttrex.com","tenxpay.io","bittrex.ltd","metalpay.im","aragon.im","coindash.tech","decentraland.tech","decentraland.pro","status-token.com","bittrex.cam","enigmatoken.com","unocoin.company","unocoin.fund","0xproject.io","0xtoken.com","numerai.tech","decentraiand.org","blockcrein.info","blockchealn.info","bllookchain.info","blockcbhain.info","myetherwallet.com.ethpromonodes.com","mettamask.io","tokenswap.org","netherum.com","etherexx.org","etherume.io","ethereum.plus","ehtereum.org","etereurm.org","etheream.com","ethererum.org","ethereum.io","etherdelta-glthub.com","cryptoalliance.herokuapp.com","bitspark2.com","indorsetoken.com","iconexus.tk","iconexus.ml","iconexus.ga","iconexus.cf","etherwallet.online","wallet-ethereum.net","bitsdigit.com","etherswap.org","eos.ac","uasfwallet.com","ziber.io","multiply-ethereum.info","bittrex.comze.com","karbon.vacau.com","etherdelta.gitlhub.io","etherdelta.glthub.io","digitaldevelopersfund.vacau.com","district-0x.io","coin-dash.com","coindash.ru","district0x.net","aragonproject.io","coin-wallet.info","coinswallet.info","contribute-status.im","ether-api.com","ether-wall.com","mycoinwallet.net","ethereumchamber.com","ethereumchamber.net","ethereumchest.com","ethewallet.com","myetherwallet.com.vc","myetherwallet.com.pe","myetherwallet.us.com","myetherwallet.com.u0387831.cp.regruhosting.ru","myethereumwallet.su","myetherweb.com.de","myetherieumwallet.com","myetehrwallet.com","myeterwalet.com","myetherwaiiet.com","myetherwallet.info","myetherwallet.ch","myetherwallet.om","myethervallet.com","myetherwallet.com.cm","myetherwallet.com.co","myetherwallet.com.de","myetherwallet.com.gl","myetherwallet.com.im","myetherwallet.com.ua","secure-myetherwallet.com","update-myetherwallet.com","wwwmyetherwallet.com","myeatherwallet.com","myetharwallet.com","myelherwallel.com","myetherwaillet.com","myetherwaliet.com","myetherwallel.com","myetherwallet.cam","myetherwallet.cc","myetherwallet.co","myetherwallet.cm","myetherwallet.cz","myetherwallet.org","myetherwallet.tech","myetherwallet.top","myetherwallet.net","myetherwallet.ru.com","myetherwallet.com.ru","metherwallet.com","myetrerwallet.com","myetlerwallet.com","myethterwallet.com","myethwallet.io","myethterwallet.co","myehterwallet.co","myaetherwallet.com","myetthterwallet.com","myetherwallet.one","myelterwallet.com","myetherwallet.gdn","myetherwallt.com","myeterwallet.com","myeteherwallet.com","myethearwailet.com","myetherwallelt.com","myetherwallett.com","etherwallet.org","myetherewallet.com","myeherwallet.com","myethcrwallet.com","myetherwallet.link","myetherwallets.com","myethearwaillet.com","myethearwallet.com","myetherawllet.com","myethereallet.com","myetherswallet.com","myetherwalet.com","myetherwaller.com","myetherwalliet.com","myetherwllet.com","etherwallet.io","myetherwallet.ca","myetherwallet.me","myetherwallet.ru","myetherwallet.xyz","myetherwallte.com","myethirwallet.com","myethrewallet.com","etherwallet.net","maetherwallet.com","meyetherwallet.com","my.ether-wallet.pw","myehterwallet.com","myeitherwallet.com","myelherwallet.com","myeltherwallet.com","myerherwallet.com","myethearwalet.com","myetherewalle.com","myethervvallet.com","myetherwallent.com","myetherwallet.fm","myetherwalllet.com","myetherwalltet.com","myetherwollet.com","myetlherwalet.com","myetlherwallet.com","rnyetherwallet.com","etherclassicwallet.com","omg-omise.co","omise-go.com","omise-go.net","omise-omg.com","omise-go.io","tenx-tech.com","bitclaive.com","tokensale-tenx.tech","ubiqcoin.org","metamask.com","ethtrade.io","myetcwallet.com","account-kigo.net","bitcoin-wallet.net","blocklichan.info","bloclkicihan.info","coindash.ml","eos-bonus.com","eos-io.info","ether-wallet.net","ethereum-wallet.info","ethereum-wallet.net","ethereumchest.net","reservations-kigo.net","reservations-lodgix.com","secure-liverez.com","secure-onerooftop.com","settings-liverez.com","software-liverez.com","software-lodgix.com","unhackableetherwallets.com","www-myetherwallet.com","etherwallet.co.za","etherwalletchain.com","etherwallets.net","etherwallets.nl","my-ethwallet.com","my.ether-wallet.co","myetherwallet.com.am","myetherwallet.com.ht","myetherwalletcom.com","myehterwailet.com","xn--myetherwalle-xoc.com","xn--myetherwalle-44i.com","xn--myetherwalle-xhk.com","xn--myetherwallt-cfb.com","xn--myetherwallt-6tb.com","xn--myetherwallt-xub.com","xn--myetherwallt-ovb.com","xn--myetherwallt-fwb.com","xn--myetherwallt-5wb.com","xn--myetherwallt-jzi.com","xn--myetherwallt-2ck.com","xn--myetherwallt-lok.com","xn--myetherwallt-lsl.com","xn--myetherwallt-ce6f.com","xn--myetherwalet-mcc.com","xn--myetherwalet-xhf.com","xn--myetherwalet-lcc.com","xn--myetherwaet-15ba.com","xn--myetherwalet-whf.com","xn--myetherwaet-v2ea.com","xn--myetherwllet-59a.com","xn--myetherwllet-jbb.com","xn--myetherwllet-wbb.com","xn--myetherwllet-9bb.com","xn--myetherwllet-ncb.com","xn--myetherwllet-0cb.com","xn--myetherwllet-5nb.com","xn--myetherwllet-ktd.com","xn--myetherwllet-mre.com","xn--myetherwllet-76e.com","xn--myetherwllet-o0l.com","xn--myetherwllet-c45f.com","xn--myetherallet-ejn.com","xn--myethewallet-4nf.com","xn--myethewallet-iof.com","xn--myethewallet-mpf.com","xn--myethewallet-6bk.com","xn--myethewallet-i31f.com","xn--myethrwallet-feb.com","xn--myethrwallt-fbbf.com","xn--myethrwallet-seb.com","xn--myethrwallt-rbbf.com","xn--myethrwallet-5eb.com","xn--myethrwallt-3bbf.com","xn--myethrwallet-0tb.com","xn--myethrwallt-tpbf.com","xn--myethrwallet-rub.com","xn--myethrwallt-iqbf.com","xn--myethrwallet-ivb.com","xn--myethrwallt-6qbf.com","xn--myethrwallet-8vb.com","xn--myethrwallt-vrbf.com","xn--myethrwallet-zwb.com","xn--myethrwallt-ksbf.com","xn--myethrwallet-dzi.com","xn--myethrwallt-wbif.com","xn--myethrwallet-wck.com","xn--myethrwallt-skjf.com","xn--myethrwallet-fok.com","xn--myethrwallt-fvjf.com","xn--myethrwallet-fsl.com","xn--myethrwallt-fwkf.com","xn--myethrwallet-5d6f.com","xn--myethrwallt-319ef.com","xn--myeterwallet-ufk.com","xn--myeterwallet-nrl.com","xn--myeterwallet-von.com","xn--myeterwallet-jl6c.com","xn--myeherwallet-ooc.com","xn--myeherwalle-6hci.com","xn--myeherwallet-v4i.com","xn--myeherwalle-zgii.com","xn--myeherwallet-ohk.com","xn--myeherwalle-6oji.com","xn--mytherwallet-ceb.com","xn--mythrwallet-cbbc.com","xn--mythrwallt-c7acf.com","xn--mytherwallet-peb.com","xn--mythrwallet-obbc.com","xn--mythrwallt-n7acf.com","xn--mytherwallet-2eb.com","xn--mythrwallet-0bbc.com","xn--mythrwallt-y7acf.com","xn--mytherwallet-xtb.com","xn--mythrwallet-qpbc.com","xn--mythrwallt-jlbcf.com","xn--mytherwallet-oub.com","xn--mythrwallet-fqbc.com","xn--mythrwallt-5lbcf.com","xn--mythrwallet-3qbc.com","xn--mythrwallt-smbcf.com","xn--mytherwallet-5vb.com","xn--mythrwallet-srbc.com","xn--mythrwallt-fnbcf.com","xn--mytherwallet-wwb.com","xn--mythrwallet-hsbc.com","xn--mythrwallt-1nbcf.com","xn--mytherwallet-9yi.com","xn--mythrwallet-tbic.com","xn--mythrwallt-dnhcf.com","xn--mytherwallet-tck.com","xn--mythrwallet-pkjc.com","xn--mythrwallt-lsicf.com","xn--mytherwallet-cok.com","xn--mythrwallet-cvjc.com","xn--mythrwallt-c2icf.com","xn--mytherwallet-csl.com","xn--mythrwallet-cwkc.com","xn--mythrwallt-c0jcf.com","xn--mytherwallet-2d6f.com","xn--mythrwallet-019ec.com","xn--mythrwallt-yq3ecf.com","xn--metherwallet-qlb.com","xn--metherwallet-1uf.com","xn--metherwallet-iyi.com","xn--metherwallet-zhk.com","xn--metherwallet-3ml.com","xn--mytherwallet-fvb.com","xn--myetherwallt-7db.com","xn--myetherwallt-leb.com","xn--myetherwallt-yeb.com","xn--yetherwallet-vjf.com","xn--yetherwallet-dfk.com","xn--yetherwallet-1t1f.com","xn--yetherwallet-634f.com","xn--myeherwallet-fpc.com","xn--myethewallt-crb.com","xn--metherwallet-1vc.com","xn--myeherwallt-kbb8039g.com","xn--myeherwallet-vk5f.com","xn--yethewallet-iw8ejl.com","xn--bittrx-th8b.com","xn--polniex-n0a.com","thekey.vin","thekey-vip.com","digitexftures.com","ethzero-wallet.org","zeepln.io","wepowers.network","wepower.vision","seele.promo","seele-ico.eu","seele-ico.pro","syncfab.tech","tokensale.syncfab.tech","havven.promo","havven-ico.com","havven-ico.eu","hawen.io","havven.xyz","tomo-coin.io","tomocoln.io","docai.science","tomocoin.network","celsius-ico.network","celsiuss.network","coti.cf","xn--mercadobtcon-mfbd.com","quantstump.com","quantstampcoin.com","quantistamp.com"]}},{}],685:[function(e,t,r){const n=e("fast-levenshtein");function i(e){return e.map(o)}function o(e){return e.split(".").reverse()}function a(e){return e.slice(1).reverse().join(".")}function s(e,t){return t.some(t=>!(t.length>e.length)&&t.every((t,r)=>e[r]===t))}t.exports=class{constructor(e){this.whitelist=i(e.whitelist||[]),this.blacklist=i(e.blacklist||[]),this.fuzzylist=i(e.fuzzylist||[]),this.tolerance="tolerance"in e?e.tolerance:3}check(e){const t=o(e);if(s(t,this.whitelist))return{type:"whitelist",result:!1};if(s(t,this.blacklist))return{type:"blacklist",result:!0};if(this.tolerance>0){let e=a(t);e=e.replace("www.","");const r=this.fuzzylist.find(t=>{const r=a(t);return n.get(e,r)<=this.tolerance});if(r)return{type:"fuzzy",result:!0,match:r.slice().reverse().join(".")}}return{type:"all",result:!1}}}},{"fast-levenshtein":781}],686:[function(e,t,r){const n=e("xtend"),i=e("json-rpc-random-id")();function o(e){this.currentProvider=e}function a(e){return function(){const t=this;var r=[].slice.call(arguments),n=r.pop();t.sendAsync({method:e,params:r},n)}}function s(e,t){return function(){const r=this;var n=[].slice.call(arguments),i=n.pop();n.length<e&&n.push("latest"),r.sendAsync({method:t,params:n},i)}}t.exports=o,o.prototype.getBalance=s(2,"eth_getBalance"),o.prototype.getCode=s(2,"eth_getCode"),o.prototype.getTransactionCount=s(2,"eth_getTransactionCount"),o.prototype.getStorageAt=s(3,"eth_getStorageAt"),o.prototype.call=s(2,"eth_call"),o.prototype.protocolVersion=a("eth_protocolVersion"),o.prototype.syncing=a("eth_syncing"),o.prototype.coinbase=a("eth_coinbase"),o.prototype.mining=a("eth_mining"),o.prototype.hashrate=a("eth_hashrate"),o.prototype.gasPrice=a("eth_gasPrice"),o.prototype.accounts=a("eth_accounts"),o.prototype.blockNumber=a("eth_blockNumber"),o.prototype.getBlockTransactionCountByHash=a("eth_getBlockTransactionCountByHash"),o.prototype.getBlockTransactionCountByNumber=a("eth_getBlockTransactionCountByNumber"),o.prototype.getUncleCountByBlockHash=a("eth_getUncleCountByBlockHash"),o.prototype.getUncleCountByBlockNumber=a("eth_getUncleCountByBlockNumber"),o.prototype.sign=a("eth_sign"),o.prototype.sendTransaction=a("eth_sendTransaction"),o.prototype.sendRawTransaction=a("eth_sendRawTransaction"),o.prototype.estimateGas=a("eth_estimateGas"),o.prototype.getBlockByHash=a("eth_getBlockByHash"),o.prototype.getBlockByNumber=a("eth_getBlockByNumber"),o.prototype.getTransactionByHash=a("eth_getTransactionByHash"),o.prototype.getTransactionByBlockHashAndIndex=a("eth_getTransactionByBlockHashAndIndex"),o.prototype.getTransactionByBlockNumberAndIndex=a("eth_getTransactionByBlockNumberAndIndex"),o.prototype.getTransactionReceipt=a("eth_getTransactionReceipt"),o.prototype.getUncleByBlockHashAndIndex=a("eth_getUncleByBlockHashAndIndex"),o.prototype.getUncleByBlockNumberAndIndex=a("eth_getUncleByBlockNumberAndIndex"),o.prototype.getCompilers=a("eth_getCompilers"),o.prototype.compileLLL=a("eth_compileLLL"),o.prototype.compileSolidity=a("eth_compileSolidity"),o.prototype.compileSerpent=a("eth_compileSerpent"),o.prototype.newFilter=a("eth_newFilter"),o.prototype.newBlockFilter=a("eth_newBlockFilter"),o.prototype.newPendingTransactionFilter=a("eth_newPendingTransactionFilter"),o.prototype.uninstallFilter=a("eth_uninstallFilter"),o.prototype.getFilterChanges=a("eth_getFilterChanges"),o.prototype.getFilterLogs=a("eth_getFilterLogs"),o.prototype.getLogs=a("eth_getLogs"),o.prototype.getWork=a("eth_getWork"),o.prototype.submitWork=a("eth_submitWork"),o.prototype.submitHashrate=a("eth_submitHashrate"),o.prototype.sendAsync=function(e,t){var r;this.currentProvider.sendAsync((r=e,n({id:i(),jsonrpc:"2.0",params:[]},r)),(function(e,r){if(!e&&r.error&&(e=new Error("EthQuery - RPC Error - "+r.error.message)),e)return t(e);t(null,r.result)}))}},{"json-rpc-random-id":822,xtend:687}],687:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},{}],688:[function(e,t,r){const{EthereumRpcError:n,EthereumProviderError:i}=e("./src/classes"),{serializeError:o,getMessageFromCode:a}=e("./src/utils"),s=e("./src/errors"),c=e("./src/errorCodes.json");t.exports={ethErrors:s,EthereumRpcError:n,EthereumProviderError:i,serializeError:o,getMessageFromCode:a,ERROR_CODES:c}},{"./src/classes":689,"./src/errorCodes.json":690,"./src/errors":692,"./src/utils":693}],689:[function(e,t,r){const n=e("fast-safe-stringify");class i extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return n(this.serialize(),o,2)}}function o(e,t){if("[Circular]"!==t)return t}t.exports={EthereumRpcError:i,EthereumProviderError:class extends i{constructor(e,t,r){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}}},{"fast-safe-stringify":782}],690:[function(e,t,r){t.exports={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}}},{}],691:[function(e,t,r){t.exports={"-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."}}},{}],692:[function(e,t,r){const{EthereumRpcError:n,EthereumProviderError:i}=e("./classes"),{getMessageFromCode:o}=e("./utils"),a=e("./errorCodes.json");function s(e,t){const[r,i]=u(t);return new n(e,r||o(e),i)}function c(e,t){const[r,n]=u(t);return new i(e,r||o(e),n)}function u(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:r}=e;return[t,r]}}return[]}t.exports={rpc:{parse:e=>s(a.rpc.parse,e),invalidRequest:e=>s(a.rpc.invalidRequest,e),invalidParams:e=>s(a.rpc.invalidParams,e),methodNotFound:e=>s(a.rpc.methodNotFound,e),internal:e=>s(a.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return s(t,e)},invalidInput:e=>s(a.rpc.invalidInput,e),resourceNotFound:e=>s(a.rpc.resourceNotFound,e),resourceUnavailable:e=>s(a.rpc.resourceUnavailable,e),transactionRejected:e=>s(a.rpc.transactionRejected,e),methodNotSupported:e=>s(a.rpc.methodNotSupported,e),limitExceeded:e=>s(a.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>c(a.provider.userRejectedRequest,e),unauthorized:e=>c(a.provider.unauthorized,e),unsupportedMethod:e=>c(a.provider.unsupportedMethod,e),disconnected:e=>c(a.provider.disconnected,e),chainDisconnected:e=>c(a.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new i(t,r,n)}}}},{"./classes":689,"./errorCodes.json":690,"./utils":693}],693:[function(e,t,r){const n=e("./errorValues.json"),i=e("./errorCodes.json").rpc.internal,{EthereumRpcError:o}=e("./classes"),a={code:i,message:s(i)};function s(e,t="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){const t=e.toString();if(n[t])return n[t].message;if(u(e))return"Unspecified server error."}return t}function c(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!n[t]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?{...e}:e}t.exports={getMessageFromCode:s,isValidCode:c,serializeError:function(e,t=a){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("fallbackError must contain integer number code and string message.");if(e instanceof o)return e.serialize();const r={};return e&&c(e.code)?(r.code=e.code,e.message&&"string"==typeof e.message?(r.message=e.message,"data"in e&&(r.data=e.data)):(r.message=s(r.code),r.data={originalError:l(e)})):(r.code=t.code,r.message=e&&e.message?e.message:t.message,r.data={originalError:l(e)}),e&&e.stack&&(r.stack=e.stack),r},JSON_RPC_SERVER_ERROR_MESSAGE:"Unspecified server error."}},{"./classes":689,"./errorCodes.json":690,"./errorValues.json":691}],694:[function(e,t,r){const{Buffer:n}=e("buffer"),i=e("ethereumjs-util"),o=e("ethereumjs-abi"),a=e("tweetnacl");a.util=e("tweetnacl-util");const s={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"]},c={encodeData(e,t,r,a=!0){const s=["bytes32"],c=[this.hashType(e,r)];if(a){const u=(e,t,s)=>{if(void 0!==r[t])return["bytes32",null==s?"0x0000000000000000000000000000000000000000000000000000000000000000":i.sha3(this.encodeData(t,s,r,a))];if(void 0===s)throw new Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",i.sha3(s)];if("string"===t)return"string"==typeof s&&(s=n.from(s,"utf8")),["bytes32",i.sha3(s)];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),n=s.map(t=>u(e,r,t));return["bytes32",i.sha3(o.rawEncode(n.map(([e])=>e),n.map(([,e])=>e)))]}return[t,s]};for(const n of r[e]){const[e,r]=u(n.name,n.type,t[n.name]);s.push(e),c.push(r)}}else for(const o of r[e]){let e=t[o.name];if(void 0!==e)if("bytes"===o.type)s.push("bytes32"),e=i.sha3(e),c.push(e);else if("string"===o.type)s.push("bytes32"),"string"==typeof e&&(e=n.from(e,"utf8")),e=i.sha3(e),c.push(e);else if(void 0!==r[o.type])s.push("bytes32"),e=i.sha3(this.encodeData(o.type,e,r,a)),c.push(e);else{if(o.type.lastIndexOf("]")===o.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");s.push(o.type),c.push(e)}}return o.rawEncode(s,c)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter(t=>t!==e);n=[e].concat(n.sort());for(const e of n){if(!t[e])throw new Error("No type definition specified: "+e);r+=e+"("+t[e].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||void 0===t[e])return r;r.push(e);for(const n of t[e])for(const e of this.findTypeDependencies(n.type,t,r))!r.includes(e)&&r.push(e);return r},hashStruct(e,t,r,n=!0){return i.sha3(this.encodeData(e,t,r,n))},hashType(e,t){return i.sha3(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in s.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},sign(e,t=!0){const r=this.sanitizeData(e),o=[n.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),"EIP712Domain"!==r.primaryType&&o.push(this.hashStruct(r.primaryType,r.message,r.types,t)),i.sha3(n.concat(o))}};function u(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;const r=e.map((function(e){return"bytes"===e.type?i.toBuffer(e.value):e.value})),n=e.map((function(e){return e.type})),a=e.map((function(e){if(!e.name)throw t;return e.type+" "+e.name}));return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(new Array(e.length).fill("string"),a),o.soliditySHA3(n,r)])}function l(e,t){const r=i.toBuffer(t),n=i.fromRpcSig(r);return i.ecrecover(e,n.v,n.r,n.s)}function f(e){const t=i.toBuffer(e.data);return l(i.hashPersonalMessage(t),e.sig)}function d(e,t){for(var r=""+e;r.length<t;)r="0"+r;return r}function h(e){var t=new n(e,"hex").toString("base64");return a.util.decodeBase64(t)}t.exports={TYPED_MESSAGE_SCHEMA:s,TypedDataUtils:c,concatSig:function(e,t,r){const n=i.fromSigned(t),o=i.fromSigned(r),a=i.bufferToInt(e),s=d(i.toUnsigned(n).toString("hex"),64),c=d(i.toUnsigned(o).toString("hex"),64),u=i.stripHexPrefix(i.intToHex(a));return i.addHexPrefix(s.concat(c,u)).toString("hex")},normalize:function(e){if(e){if("number"==typeof e){const t=i.toBuffer(e);e=i.bufferToHex(t)}if("string"!=typeof e){var t="eth-sig-util.normalize() requires hex string or integer input.";throw new Error(t+=" received "+typeof e+": "+e)}return i.addHexPrefix(e.toLowerCase())}},personalSign:function(e,t){var r=i.toBuffer(t.data),n=i.hashPersonalMessage(r),o=i.ecsign(n,e);return i.bufferToHex(this.concatSig(o.v,o.r,o.s))},recoverPersonalSignature:function(e){const t=f(e),r=i.publicToAddress(t);return i.bufferToHex(r)},extractPublicKey:function(e){return"0x"+f(e).toString("hex")},typedSignatureHash:function(e){const t=u(e);return i.bufferToHex(t)},signTypedDataLegacy:function(e,t){const r=u(t.data),n=i.ecsign(r,e);return i.bufferToHex(this.concatSig(n.v,n.r,n.s))},recoverTypedSignatureLegacy:function(e){const t=l(u(e.data),e.sig),r=i.publicToAddress(t);return i.bufferToHex(r)},encrypt:function(e,t,r){switch(r){case"x25519-xsalsa20-poly1305":if(void 0===t.data)throw new Error('Cannot detect secret message, message params should be of the form {data: "secret message"} ');var n=a.box.keyPair();try{var i=a.util.decodeBase64(e)}catch(e){throw new Error("Bad public key")}var o=a.util.decodeUTF8(t.data),s=a.randomBytes(a.box.nonceLength),c=a.box(o,s,i,n.secretKey);return{version:"x25519-xsalsa20-poly1305",nonce:a.util.encodeBase64(s),ephemPublicKey:a.util.encodeBase64(n.publicKey),ciphertext:a.util.encodeBase64(c)};default:throw new Error("Encryption type/version not supported")}},encryptSafely:function(e,t,r){let i=t.data;if(!i)throw new Error("Cannot encrypt empty msg.data");if("object"==typeof i&&i.toJSON)throw new Error("Cannot encrypt with toJSON property. Please remove toJSON property");const o={data:i,padding:""},a=n.byteLength(JSON.stringify(o),"utf-8")%2048;let s=0;a>0&&(s=2048-a-16),o.padding="0".repeat(s);const c={data:JSON.stringify(o)};return this.encrypt(e,c,r)},decrypt:function(e,t){switch(e.version){case"x25519-xsalsa20-poly1305":var r=h(t),n=a.box.keyPair.fromSecretKey(r).secretKey,i=a.util.decodeBase64(e.nonce),o=a.util.decodeBase64(e.ciphertext),s=a.util.decodeBase64(e.ephemPublicKey),c=a.box.open(o,i,s,n);try{var u=a.util.encodeUTF8(c)}catch(e){throw new Error("Decryption failed.")}if(u)return u;throw new Error("Decryption failed.");default:throw new Error("Encryption type/version not supported.")}},decryptSafely:function(e,t){return JSON.parse(this.decrypt(e,t)).data},getEncryptionPublicKey:function(e){var t=h(e),r=a.box.keyPair.fromSecretKey(t).publicKey;return a.util.encodeBase64(r)},signTypedData:function(e,t){const r=c.sign(t.data,!1),n=i.ecsign(r,e);return i.bufferToHex(this.concatSig(n.v,n.r,n.s))},signTypedData_v4:function(e,t){const r=c.sign(t.data),n=i.ecsign(r,e);return i.bufferToHex(this.concatSig(n.v,n.r,n.s))},recoverTypedSignature:function(e){const t=l(c.sign(e.data,!1),e.sig),r=i.publicToAddress(t);return i.bufferToHex(r)},recoverTypedSignature_v4:function(e){const t=l(c.sign(e.data),e.sig),r=i.publicToAddress(t);return i.bufferToHex(r)}}},{buffer:475,"ethereumjs-abi":708,"ethereumjs-util":696,tweetnacl:1125,"tweetnacl-util":1124}],695:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],696:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":695,dup:172,"ethjs-util":697,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],697:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],698:[function(e,t,r){(function(r){const n=e("events").EventEmitter,i=e("ethereumjs-wallet"),o=e("ethereumjs-util"),a="Simple Key Pair",s=e("eth-sig-util");class c extends n{constructor(e){super(),this.type=a,this.wallets=[],this.deserialize(e)}serialize(){return Promise.resolve(this.wallets.map(e=>e.getPrivateKey().toString("hex")))}deserialize(e=[]){return new Promise((t,n)=>{try{this.wallets=e.map(e=>{const t=o.stripHexPrefix(e),n=new r(t,"hex");return i.fromPrivateKey(n)})}catch(e){n(e)}t()})}addAccounts(e=1){for(var t=[],r=0;r<e;r++)t.push(i.generate());this.wallets=this.wallets.concat(t);const n=t.map(e=>o.bufferToHex(e.getAddress()));return Promise.resolve(n)}getAccounts(){return Promise.resolve(this.wallets.map(e=>o.bufferToHex(e.getAddress())))}signTransaction(e,t,r={}){const n=this.getPrivateKeyFor(e,r);return t.sign(n),Promise.resolve(t)}signMessage(e,t,n={}){const i=o.stripHexPrefix(t),a=this.getPrivateKeyFor(e,n);var c=o.ecsign(new r(i,"hex"),a),u=o.bufferToHex(s.concatSig(c.v,c.r,c.s));return Promise.resolve(u)}newGethSignMessage(e,t,r={}){const n=this.getPrivateKeyFor(e,r),i=o.toBuffer(t),a=o.hashPersonalMessage(i),c=o.ecsign(a,n),u=o.bufferToHex(s.concatSig(c.v,c.r,c.s));return Promise.resolve(u)}signPersonalMessage(e,t,n={}){const i=this.getPrivateKeyFor(e,n),o=new r(i,"hex"),a=s.personalSign(o,{data:t});return Promise.resolve(a)}decryptMessage(e,t){const n=this._getWalletForAccount(e),i=o.stripHexPrefix(n.getPrivateKey()),a=(new r(i,"hex"),s.decrypt(t,i));return Promise.resolve(a)}decryptMessage(e,t){const n=this._getWalletForAccount(e),i=o.stripHexPrefix(n.getPrivateKey()),a=(new r(i,"hex"),s.decrypt(t,i));return Promise.resolve(a)}signTypedData(e,t,r={version:"V1"}){switch(r.version){case"V1":return this.signTypedData_v1(e,t,r);case"V3":return this.signTypedData_v3(e,t,r);case"V4":return this.signTypedData_v4(e,t,r);default:return this.signTypedData_v1(e,t,r)}}signTypedData_v1(e,t,r={}){const n=this.getPrivateKeyFor(e,r),i=s.signTypedDataLegacy(n,{data:t});return Promise.resolve(i)}signTypedData_v3(e,t,r={}){const n=this.getPrivateKeyFor(e,r),i=s.signTypedData(n,{data:t});return Promise.resolve(i)}signTypedData_v4(e,t,r={}){const n=this.getPrivateKeyFor(e,r),i=s.signTypedData_v4(n,{data:t});return Promise.resolve(i)}getEncryptionPublicKey(e,t={}){const r=this.getPrivateKeyFor(e,t),n=s.getEncryptionPublicKey(r);return Promise.resolve(n)}getPrivateKeyFor(e,t={}){if(!e)throw new Error("Must specify address.");const r=this._getWalletForAccount(e,t);return o.toBuffer(r.getPrivateKey())}getAppKeyAddress(e,t){return new Promise((r,n)=>{try{const n=this._getWalletForAccount(e,{withAppKeyOrigin:t});return r(s.normalize(n.getAddress().toString("hex")))}catch(e){return n(e)}})}exportAccount(e,t={}){const r=this._getWalletForAccount(e,t);return Promise.resolve(r.getPrivateKey().toString("hex"))}removeAccount(e){if(!this.wallets.map(e=>o.bufferToHex(e.getAddress()).toLowerCase()).includes(e.toLowerCase()))throw new Error(`Address ${e} not found in this keyring`);this.wallets=this.wallets.filter(t=>o.bufferToHex(t.getAddress()).toLowerCase()!==e.toLowerCase())}_getWalletForAccount(e,t={}){const n=s.normalize(e);let a=this.wallets.find(e=>o.bufferToHex(e.getAddress())===n);if(!a)throw new Error("Simple Keyring - Unable to find matching address.");if(t.withAppKeyOrigin){const e=a.getPrivateKey(),n=r.from(t.withAppKeyOrigin,"utf8"),s=r.concat([e,n]),c=o.keccak(s,256);a=i.fromPrivateKey(c)}return a}}c.type=a,t.exports=c}).call(this,e("buffer").Buffer)},{buffer:475,"eth-sig-util":700,"ethereumjs-util":701,"ethereumjs-wallet":720,events:476}],699:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],700:[function(e,t,r){arguments[4][598][0].apply(r,arguments)},{buffer:475,dup:598,"ethereumjs-abi":708,"ethereumjs-util":701,tweetnacl:1125,"tweetnacl-util":1124}],701:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":699,dup:172,"ethjs-util":702,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],702:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],703:[function(e,t,r){(function(r){const{EventEmitter:n}=e("events"),i=e("ethereumjs-util"),o=e("ethereumjs-tx"),a=e("hdkey"),s=e("trezor-connect").default,c={email:"[email protected]",appUrl:"https://metamask.io"};class u extends n{constructor(e={}){super(),this.type="Trezor Hardware",this.accounts=[],this.hdk=new a,this.page=0,this.perPage=5,this.unlockedAccount=0,this.paths={},this.deserialize(e),s.manifest(c)}serialize(){return Promise.resolve({hdPath:this.hdPath,accounts:this.accounts,page:this.page,paths:this.paths,perPage:this.perPage,unlockedAccount:this.unlockedAccount})}deserialize(e={}){return this.hdPath=e.hdPath||"m/44'/60'/0'/0",this.accounts=e.accounts||[],this.page=e.page||0,this.perPage=e.perPage||5,Promise.resolve()}isUnlocked(){return!(!this.hdk||!this.hdk.publicKey)}unlock(){return this.isUnlocked()?Promise.resolve("already unlocked"):new Promise((e,t)=>{s.getPublicKey({path:this.hdPath,coin:"ETH"}).then(n=>{n.success?(this.hdk.publicKey=new r(n.payload.publicKey,"hex"),this.hdk.chainCode=new r(n.payload.chainCode,"hex"),e("just unlocked")):t(new Error(n.payload&&n.payload.error||"Unknown error"))}).catch(e=>{t(new Error(e&&e.toString()||"Unknown error"))})})}setAccountToUnlock(e){this.unlockedAccount=parseInt(e,10)}addAccounts(e=1){return new Promise((t,r)=>{this.unlock().then(r=>{const n=this.unlockedAccount,i=n+e;this.accounts=[];for(let e=n;e<i;e++){const t=this._addressFromIndex("m",e);this.accounts.push(t),this.page=0}t(this.accounts)}).catch(e=>{r(e)})})}getFirstPage(){return this.page=0,this.__getPage(1)}getNextPage(){return this.__getPage(1)}getPreviousPage(){return this.__getPage(-1)}__getPage(e){return this.page+=e,this.page<=0&&(this.page=1),new Promise((e,t)=>{this.unlock().then(t=>{const r=(this.page-1)*this.perPage,n=r+this.perPage,o=[];for(let e=r;e<n;e++){const t=this._addressFromIndex("m",e);o.push({address:t,balance:null,index:e}),this.paths[i.toChecksumAddress(t)]=e}e(o)}).catch(e=>{t(e)})})}getAccounts(){return Promise.resolve(this.accounts.slice())}removeAccount(e){if(!this.accounts.map(e=>e.toLowerCase()).includes(e.toLowerCase()))throw new Error(`Address ${e} not found in this keyring`);this.accounts=this.accounts.filter(t=>t.toLowerCase()!==e.toLowerCase())}signTransaction(e,t){return new Promise((r,n)=>{this.unlock().then(a=>{setTimeout(a=>{s.ethereumSignTransaction({path:this._pathFromAddress(e),transaction:{to:this._normalize(t.to),value:this._normalize(t.value),data:this._normalize(t.data),chainId:t._chainId,nonce:this._normalize(t.nonce),gasLimit:this._normalize(t.gasLimit),gasPrice:this._normalize(t.gasPrice)}}).then(a=>{if(a.success){t.v=a.payload.v,t.r=a.payload.r,t.s=a.payload.s;const s=new o(t);i.toChecksumAddress("0x"+s.from.toString("hex"))!==i.toChecksumAddress(e)&&n(new Error("signature doesnt match the right address")),r(s)}else n(new Error(a.payload&&a.payload.error||"Unknown error"))}).catch(e=>{n(new Error(e&&e.toString()||"Unknown error"))})},"just unlocked"===a?1e3:0)}).catch(e=>{n(new Error(e&&e.toString()||"Unknown error"))})})}signMessage(e,t){return this.signPersonalMessage(e,t)}signPersonalMessage(e,t){return new Promise((r,n)=>{this.unlock().then(o=>{setTimeout(o=>{s.ethereumSignMessage({path:this._pathFromAddress(e),message:i.stripHexPrefix(t),hex:!0}).then(t=>{if(t.success){t.payload.address!==i.toChecksumAddress(e)&&n(new Error("signature doesnt match the right address"));const o="0x"+t.payload.signature;r(o)}else n(new Error(t.payload&&t.payload.error||"Unknown error"))}).catch(e=>{console.log("Error while trying to sign a message ",e),n(new Error(e&&e.toString()||"Unknown error"))})},"just unlocked"===o?1e3:0)}).catch(e=>{console.log("Error while trying to sign a message ",e),n(new Error(e&&e.toString()||"Unknown error"))})})}signTypedData(e,t){return Promise.reject(new Error("Not supported on this device"))}exportAccount(e){return Promise.reject(new Error("Not supported on this device"))}forgetDevice(){this.accounts=[],this.hdk=new a,this.page=0,this.unlockedAccount=0,this.paths={}}_normalize(e){return i.bufferToHex(e).toString()}_addressFromIndex(e,t){const r=this.hdk.derive(`${e}/${t}`),n=i.publicToAddress(r.publicKey,!0).toString("hex");return i.toChecksumAddress(n)}_pathFromAddress(e){const t=i.toChecksumAddress(e);let r=this.paths[t];if(void 0===r)for(let e=0;e<1e3;e++)if(t===this._addressFromIndex("m",e)){r=e;break}if(void 0===r)throw new Error("Unknown address");return`${this.hdPath}/${r}`}}u.type="Trezor Hardware",t.exports=u}).call(this,e("buffer").Buffer)},{buffer:475,"ethereumjs-tx":712,"ethereumjs-util":705,events:476,hdkey:797,"trezor-connect":1101}],704:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],705:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":704,dup:172,"ethjs-util":706,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],706:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],707:[function(e,t,r){t.exports={1:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",3:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",4:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",5:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"}},{}],708:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{"./lib/index.js":709,dup:176}],709:[function(e,t,r){(function(r){const n=e("ethereumjs-util"),i=e("bn.js");var o=function(){};function a(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function f(e){var t=/^(\w+)\((.+)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);return null!==r&&3===r.length?{method:t[1],args:r[1].split(","),retargs:r[2].split(",")}:{method:t[1],args:t[2].split(",")}}function d(e,t){var o,a,f,h;if("address"===e)return d("uint160",l(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",new r(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)f.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);f.unshift(p)}return r.concat(f)}if("bytes"===e)return t=new r(t),f=r.concat([d("uint256",t.length),t]),t.length%32!=0&&(f=r.concat([f,n.zeros(32-t.length%32)])),f;if(e.startsWith("bytes")){if((o=s(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",a.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=c(e),d("int256",l(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,a,s,c;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=h(e.rawType,t,n);return new r(u,"utf8").toString()}if(e.isArray){for(s=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),c=0;c<o;c++){var l=h(e.subArray,t,n);s.push(l),n+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),t.slice(n+32,n+32+o);if(e.name.startsWith("bytes"))return t.slice(n,n+e.size);if(e.name.startsWith("uint")){if((a=new i(t.slice(n,n+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(y(e)){t=u(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var i=e+"("+t.map(a).join(",")+")";return n.sha3(new r(i))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=32*e.length;for(var s in e){var c=a(e[s]),u=d(c,t[s]);m(c)?(n.push(d("uint256",o)),i.push(u),o+=u.length):n.push(u)}return r.concat(n.concat(i))},o.rawDecode=function(e,t){var n=[];t=new r(t);var i=0;for(var o in e){var s=p(a(e[o])),c=h(s,t,i);i+=s.memoryUsage,n.push(c)}return n},o.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),n=f(e);if(t.length!==n.args.length)throw new Error("Argument count mismatch");return r.concat([o.methodID(n.method,n.args),o.rawEncode(n.args,t)])},o.simpleDecode=function(e,t){var r=f(e);if(!r.retargs)throw new Error("No return values in method");return o.rawDecode(r.retargs,t)},o.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return g(i,e)})).join(", "):g(i,o),r.push(o)}return r},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var i,o,c=[],u=0;u<e.length;u++){var f=a(e[u]),d=t[u];if("bytes"===f)c.push(d);else if("string"===f)c.push(new r(d,"utf8"));else if("bool"===f)c.push(new r(d?"01":"00","hex"));else if("address"===f)c.push(n.setLengthLeft(d,20));else if(f.startsWith("bytes")){if((i=s(f))<1||i>32)throw new Error("Invalid bytes<N> width: "+i);c.push(n.setLengthRight(d,i))}else if(f.startsWith("uint")){if((i=s(f))%8||i<8||i>256)throw new Error("Invalid uint<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+o.bitLength());c.push(o.toArrayLike(r,"be",i/8))}else{if(!f.startsWith("int"))throw new Error("Unsupported or invalid type: "+f);if((i=s(f))%8||i<8||i>256)throw new Error("Invalid int<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+o.bitLength());c.push(o.toTwos(i).toArrayLike(r,"be",i/8))}}return r.concat(c)},o.soliditySHA3=function(e,t){return n.sha3(o.solidityPack(e,t))},o.soliditySHA256=function(e,t){return n.sha256(o.solidityPack(e,t))},o.solidityRIPEMD160=function(e,t){return n.ripemd160(o.solidityPack(e,t),!0)},o.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+s(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},t.exports=o}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,"ethereumjs-util":711}],710:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],711:[function(e,t,r){(function(t){const n=e("keccakjs"),i=e("secp256k1"),o=e("assert"),a=e("rlp"),s=e("bn.js"),c=e("create-hash");r.MAX_INTEGER=new s("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new s("10000000000000000000000000000000000000000000000000000000000000000",16),r.SHA3_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.SHA3_NULL=new t(r.SHA3_NULL_S,"hex"),r.SHA3_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.SHA3_RLP_ARRAY=new t(r.SHA3_RLP_ARRAY_S,"hex"),r.SHA3_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.SHA3_RLP=new t(r.SHA3_RLP_S,"hex"),r.BN=s,r.rlp=a,r.secp256k1=i,r.zeros=function(e){var r=new t(e);return r.fill(0),r},r.setLengthLeft=r.setLength=function(e,t,n){var i=r.zeros(t);return e=r.toBuffer(e),n?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)},r.setLengthRight=function(e,t){return r.setLength(e,t,!0)},r.unpad=r.stripZeros=function(e){for(var t=(e=r.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},r.toBuffer=function(e){if(!t.isBuffer(e))if(Array.isArray(e))e=new t(e);else if("string"==typeof e)e=r.isHexPrefixed(e)?new t(r.padToEven(r.stripHexPrefix(e)),"hex"):new t(e);else if("number"==typeof e)e=r.intToBuffer(e);else if(null==e)e=new t([]);else{if(!e.toArray)throw new Error("invalid type");e=new t(e.toArray())}return e},r.intToHex=function(e){o(e%1==0,"number is not a integer"),o(e>=0,"number must be positive");var t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t},r.intToBuffer=function(e){var n=r.intToHex(e);return new t(n.slice(2),"hex")},r.bufferToInt=function(e){return parseInt(r.bufferToHex(e),16)},r.bufferToHex=function(e){return 0===(e=r.toBuffer(e)).length?0:"0x"+e.toString("hex")},r.fromSigned=function(e){return new s(e).fromTwos(256)},r.toUnsigned=function(e){return new t(e.toTwos(256).toArray())},r.sha3=function(e,i){e=r.toBuffer(e),i||(i=256);var o=new n(i);return e&&o.update(e),new t(o.digest("hex"),"hex")},r.sha256=function(e){return e=r.toBuffer(e),c("sha256").update(e).digest()},r.ripemd160=function(e,t){e=r.toBuffer(e);var n=c("rmd160").update(e).digest();return!0===t?r.setLength(n,32):n},r.rlphash=function(e){return r.sha3(a.encode(e))},r.isValidPrivate=function(e){return i.privateKeyVerify(e)},r.isValidPublic=function(e,r){return 64===e.length?i.publicKeyVerify(t.concat([new t([4]),e])):!!r&&i.publicKeyVerify(e)},r.pubToAddress=r.publicToAddress=function(e,t){return e=r.toBuffer(e),t&&64!==e.length&&(e=i.publicKeyConvert(e,!1).slice(1)),o(64===e.length),r.sha3(e).slice(-20)};var u=r.privateToPublic=function(e){return e=r.toBuffer(e),i.publicKeyCreate(e,!1).slice(1)};r.importPublic=function(e){return 64!==(e=r.toBuffer(e)).length&&(e=i.publicKeyConvert(e,!1).slice(1)),e},r.ecsign=function(e,t){var r=i.sign(e,t),n={};return n.r=r.signature.slice(0,32),n.s=r.signature.slice(32,64),n.v=r.recovery+27,n},r.ecrecover=function(e,n,o,a){var s=t.concat([r.setLength(o,32),r.setLength(a,32)],64),c=r.bufferToInt(n)-27;if(0!==c&&1!==c)throw new Error("Invalid signature v value");var u=i.recover(e,s,c);return i.publicKeyConvert(u,!1).slice(1)},r.toRpcSig=function(e,n,i){return r.bufferToHex(t.concat([n,i,r.toBuffer(e-27)]))},r.fromRpcSig=function(e){var t=(e=r.toBuffer(e))[64];return t<27&&(t+=27),{v:t,r:e.slice(0,32),s:e.slice(32,64)}},r.privateToAddress=function(e){return r.publicToAddress(u(e))},r.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/i.test(e)},r.toChecksumAddress=function(e){e=r.stripHexPrefix(e).toLowerCase();for(var t=r.sha3(e).toString("hex"),n="0x",i=0;i<e.length;i++)parseInt(t[i],16)>=8?n+=e[i].toUpperCase():n+=e[i];return n},r.isValidChecksumAddress=function(e){return r.isValidAddress(e)&&r.toChecksumAddress(e)===e},r.generateAddress=function(e,n){return e=r.toBuffer(e),n=(n=new s(n)).isZero()?null:new t(n.toArray()),r.rlphash([e,n]).slice(-20)},r.isPrecompiled=function(e){var t=r.unpad(e);return 1===t.length&&t[0]>0&&t[0]<5},r.isHexPrefixed=function(e){return"0x"===e.slice(0,2)},r.stripHexPrefix=function(e){return"string"!=typeof e?e:r.isHexPrefixed(e)?e.slice(2):e},r.addHexPrefix=function(e){return"string"!=typeof e||r.isHexPrefixed(e)?e:"0x"+e},r.padToEven=function(e){return e.length%2&&(e="0"+e),e},r.baToJSON=function(e){if(t.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],i=0;i<e.length;i++)n.push(r.baToJSON(e[i]));return n}},r.defineProperties=function(e,n,i){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(t){var n={};return e._fields.forEach((function(t){n[t]="0x"+e[t].toString("hex")})),n}return r.baToJSON(this.raw)},e.serialize=function(){return a.encode(e.raw)},n.forEach((function(n,i){function a(){return e.raw[i]}function s(a){"00"!==(a=r.toBuffer(a)).toString("hex")||n.allowZero||(a=new t([])),n.allowLess&&n.length?(a=r.stripZeros(a),o(n.length>=a.length,"The field "+n.name+" must not have more "+n.length+" bytes")):n.allowZero&&0===a.length||!n.length||o(n.length===a.length,"The field "+n.name+" must have byte length of "+n.length),e.raw[i]=a}e._fields.push(n.name),Object.defineProperty(e,n.name,{enumerable:!0,configurable:!0,get:a,set:s}),n.default&&(e[n.name]=n.default),n.alias&&Object.defineProperty(e,n.alias,{enumerable:!1,configurable:!0,set:s,get:a})})),i)if("string"==typeof i&&(i=new t(r.stripHexPrefix(i),"hex")),t.isBuffer(i)&&(i=a.decode(i)),Array.isArray(i)){if(i.length>e._fields.length)throw new Error("wrong number of fields in data");i.forEach((function(t,n){e[e._fields[n]]=r.toBuffer(t)}))}else{if("object"!=typeof i)throw new Error("invalid data");for(var s in i)-1!==e._fields.indexOf(s)&&(e[s]=i[s])}}}).call(this,e("buffer").Buffer)},{assert:329,"bn.js":439,buffer:475,"create-hash":710,keccakjs:838,rlp:984,secp256k1:1041}],712:[function(e,t,r){(function(r){"use strict";var n=e("ethereumjs-util"),i=e("ethereum-common/params.json"),o=n.BN,a=new o("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{};var i=[{name:"nonce",length:32,allowLess:!0,default:new r([])},{name:"gasPrice",length:32,allowLess:!0,default:new r([])},{name:"gasLimit",alias:"gas",length:32,allowLess:!0,default:new r([])},{name:"to",allowZero:!0,length:20,default:new r([])},{name:"value",length:32,allowLess:!0,default:new r([])},{name:"data",alias:"input",allowZero:!0,default:new r([])},{name:"v",allowZero:!0,default:new r([28])},{name:"r",length:32,allowZero:!0,allowLess:!0,default:new r([])},{name:"s",length:32,allowZero:!0,allowLess:!0,default:new r([])}];n.defineProperties(this,i,t),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,get:this.getSenderAddress.bind(this)});var o=n.bufferToInt(this.v),a=Math.floor((o-35)/2);a<0&&(a=0),this._chainId=a||t.chainId||0,this._homestead=!0}return e.prototype.toCreationAddress=function(){return""===this.to.toString("hex")},e.prototype.hash=function(e){void 0===e&&(e=!0);var t=void 0;if(e)t=this.raw;else if(this._chainId>0){var r=this.raw.slice();this.v=this._chainId,this.r=0,this.s=0,t=this.raw,this.raw=r}else t=this.raw.slice(0,6);return n.rlphash(t)},e.prototype.getChainId=function(){return this._chainId},e.prototype.getSenderAddress=function(){if(this._from)return this._from;var e=this.getSenderPublicKey();return this._from=n.publicToAddress(e),this._from},e.prototype.getSenderPublicKey=function(){if(!(this._senderPubKey&&this._senderPubKey.length||this.verifySignature()))throw new Error("Invalid Signature");return this._senderPubKey},e.prototype.verifySignature=function(){var e=this.hash(!1);if(this._homestead&&1===new o(this.s).cmp(a))return!1;try{var t=n.bufferToInt(this.v);this._chainId>0&&(t-=2*this._chainId+8),this._senderPubKey=n.ecrecover(e,t,this.r,this.s)}catch(e){return!1}return!!this._senderPubKey},e.prototype.sign=function(e){var t=this.hash(!1),r=n.ecsign(t,e);this._chainId>0&&(r.v+=2*this._chainId+8),Object.assign(this,r)},e.prototype.getDataFee=function(){for(var e=this.raw[5],t=new o(0),r=0;r<e.length;r++)0===e[r]?t.iaddn(i.txDataZeroGas.v):t.iaddn(i.txDataNonZeroGas.v);return t},e.prototype.getBaseFee=function(){var e=this.getDataFee().iaddn(i.txGas.v);return this._homestead&&this.toCreationAddress()&&e.iaddn(i.txCreation.v),e},e.prototype.getUpfrontCost=function(){return new o(this.gasLimit).imul(new o(this.gasPrice)).iadd(new o(this.value))},e.prototype.validate=function(e){var t=[];return this.verifySignature()||t.push("Invalid Signature"),this.getBaseFee().cmp(new o(this.gasLimit))>0&&t.push(["gas limit is too low. Need at least "+this.getBaseFee()]),void 0===e||!1===e?0===t.length:t.join(" ")},e}();t.exports=s}).call(this,e("buffer").Buffer)},{buffer:475,"ethereum-common/params.json":714,"ethereumjs-util":715}],713:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],714:[function(e,t,r){t.exports={genesisGasLimit:{v:5e3,d:"Gas limit of the Genesis block."},genesisDifficulty:{v:17179869184,d:"Difficulty of the Genesis block."},genesisNonce:{v:"0x0000000000000042",d:"the geneis nonce"},genesisExtraData:{v:"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa",d:"extra data "},genesisHash:{v:"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",d:"genesis hash"},genesisStateRoot:{v:"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544",d:"the genesis state root"},minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be."},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations."},minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be."},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations."},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not."},maximumExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis."},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs."},stackLimit:{v:1024,d:"Maximum size of VM stack allowed."},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack."},tierStepGas:{v:[0,2,3,5,8,10,20],d:"Once per operation, for a selection of them."},expGas:{v:10,d:"Once per EXP instuction."},expByteGas:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction."},sha3Gas:{v:30,d:"Once per SHA3 operation."},sha3WordGas:{v:6,d:"Once per word of the SHA3 operation's data."},sloadGas:{v:50,d:"Once per SLOAD operation."},sstoreSetGas:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero."},sstoreResetGas:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero."},sstoreRefundGas:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero."},jumpdestGas:{v:1,d:"Refunded gas, once per SSTORE operation if the zeroness changes to zero."},logGas:{v:375,d:"Per LOG* operation."},logDataGas:{v:8,d:"Per byte in a LOG* operation's data."},logTopicGas:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas."},createGas:{v:32e3,d:"Once per CREATE operation & contract-creation transaction."},callGas:{v:40,d:"Once per CALL operation & message call transaction."},callStipend:{v:2300,d:"Free gas given at beginning of call."},callValueTransferGas:{v:9e3,d:"Paid for CALL when the value transfor is non-zero."},callNewAccountGas:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior."},suicideRefundGas:{v:24e3,d:"Refunded following a suicide operation."},memoryGas:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL."},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation."},createDataGas:{v:200,d:""},txGas:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions."},txCreation:{v:32e3,d:"the cost of creating a contract via tx"},txDataZeroGas:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions."},txDataNonZeroGas:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions."},copyGas:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added."},ecrecoverGas:{v:3e3,d:""},sha256Gas:{v:60,d:""},sha256WordGas:{v:12,d:""},ripemd160Gas:{v:600,d:""},ripemd160WordGas:{v:120,d:""},identityGas:{v:15,d:""},identityWordGas:{v:3,d:""},minerReward:{v:"5000000000000000000",d:"the amount a miner get rewarded for mining a block"},ommerReward:{v:"625000000000000000",d:"The amount of wei a miner of an uncle block gets for being inculded in the blockchain"},niblingReward:{v:"156250000000000000",d:"the amount a miner gets for inculding a uncle"},homeSteadForkNumber:{v:115e4,d:"the block that the Homestead fork started at"},homesteadRepriceForkNumber:{v:2463e3,d:"the block that the Homestead Reprice (EIP150) fork started at"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},freeBlockPeriod:{v:2}}},{}],715:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":713,dup:172,"ethjs-util":716,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],716:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],717:[function(e,t,r){(function(t){const n=e("keccak"),i=e("secp256k1"),o=e("assert"),a=e("rlp"),s=e("bn.js"),c=e("create-hash");r.MAX_INTEGER=new s("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new s("10000000000000000000000000000000000000000000000000000000000000000",16),r.SHA3_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.SHA3_NULL=t.from(r.SHA3_NULL_S,"hex"),r.SHA3_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.SHA3_RLP_ARRAY=t.from(r.SHA3_RLP_ARRAY_S,"hex"),r.SHA3_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.SHA3_RLP=t.from(r.SHA3_RLP_S,"hex"),r.BN=s,r.rlp=a,r.secp256k1=i,r.zeros=function(e){return t.allocUnsafe(e).fill(0)},r.setLengthLeft=r.setLength=function(e,t,n){var i=r.zeros(t);return e=r.toBuffer(e),n?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)},r.setLengthRight=function(e,t){return r.setLength(e,t,!0)},r.unpad=r.stripZeros=function(e){for(var t=(e=r.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},r.toBuffer=function(e){if(!t.isBuffer(e))if(Array.isArray(e))e=t.from(e);else if("string"==typeof e)e=r.isHexPrefixed(e)?t.from(r.padToEven(r.stripHexPrefix(e)),"hex"):t.from(e);else if("number"==typeof e)e=r.intToBuffer(e);else if(null==e)e=t.allocUnsafe(0);else{if(!e.toArray)throw new Error("invalid type");e=t.from(e.toArray())}return e},r.intToHex=function(e){o(e%1==0,"number is not a integer"),o(e>=0,"number must be positive");var t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t},r.intToBuffer=function(e){var n=r.intToHex(e);return t.from(n.slice(2),"hex")},r.bufferToInt=function(e){return new s(r.toBuffer(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=r.toBuffer(e)).toString("hex")},r.fromSigned=function(e){return new s(e).fromTwos(256)},r.toUnsigned=function(e){return t.from(e.toTwos(256).toArray())},r.sha3=function(e,t){return e=r.toBuffer(e),t||(t=256),n("keccak"+t).update(e).digest()},r.sha256=function(e){return e=r.toBuffer(e),c("sha256").update(e).digest()},r.ripemd160=function(e,t){e=r.toBuffer(e);var n=c("rmd160").update(e).digest();return!0===t?r.setLength(n,32):n},r.rlphash=function(e){return r.sha3(a.encode(e))},r.isValidPrivate=function(e){return i.privateKeyVerify(e)},r.isValidPublic=function(e,r){return 64===e.length?i.publicKeyVerify(t.concat([t.from([4]),e])):!!r&&i.publicKeyVerify(e)},r.pubToAddress=r.publicToAddress=function(e,t){return e=r.toBuffer(e),t&&64!==e.length&&(e=i.publicKeyConvert(e,!1).slice(1)),o(64===e.length),r.sha3(e).slice(-20)};var u=r.privateToPublic=function(e){return e=r.toBuffer(e),i.publicKeyCreate(e,!1).slice(1)};r.importPublic=function(e){return 64!==(e=r.toBuffer(e)).length&&(e=i.publicKeyConvert(e,!1).slice(1)),e},r.ecsign=function(e,t){var r=i.sign(e,t),n={};return n.r=r.signature.slice(0,32),n.s=r.signature.slice(32,64),n.v=r.recovery+27,n},r.hashPersonalMessage=function(e){var n=r.toBuffer("Ethereum Signed Message:\n"+e.length.toString());return r.sha3(t.concat([n,e]))},r.ecrecover=function(e,n,o,a){var s=t.concat([r.setLength(o,32),r.setLength(a,32)],64),c=n-27;if(0!==c&&1!==c)throw new Error("Invalid signature v value");var u=i.recover(e,s,c);return i.publicKeyConvert(u,!1).slice(1)},r.toRpcSig=function(e,n,i){if(27!==e&&28!==e)throw new Error("Invalid recovery id");return r.bufferToHex(t.concat([r.setLengthLeft(n,32),r.setLengthLeft(i,32),r.toBuffer(e-27)]))},r.fromRpcSig=function(e){if(65!==(e=r.toBuffer(e)).length)throw new Error("Invalid signature length");var t=e[64];return t<27&&(t+=27),{v:t,r:e.slice(0,32),s:e.slice(32,64)}},r.privateToAddress=function(e){return r.publicToAddress(u(e))},r.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/i.test(e)},r.toChecksumAddress=function(e){e=r.stripHexPrefix(e).toLowerCase();for(var t=r.sha3(e).toString("hex"),n="0x",i=0;i<e.length;i++)parseInt(t[i],16)>=8?n+=e[i].toUpperCase():n+=e[i];return n},r.isValidChecksumAddress=function(e){return r.isValidAddress(e)&&r.toChecksumAddress(e)===e},r.generateAddress=function(e,n){return e=r.toBuffer(e),n=(n=new s(n)).isZero()?null:t.from(n.toArray()),r.rlphash([e,n]).slice(-20)},r.isPrecompiled=function(e){var t=r.unpad(e);return 1===t.length&&t[0]>0&&t[0]<5},r.isHexPrefixed=function(e){return"0x"===e.slice(0,2)},r.stripHexPrefix=function(e){return"string"!=typeof e?e:r.isHexPrefixed(e)?e.slice(2):e},r.addHexPrefix=function(e){return"string"!=typeof e||r.isHexPrefixed(e)?e:"0x"+e},r.padToEven=function(e){return e.length%2&&(e="0"+e),e};const l=new s("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),f=new s("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);r.isValidSignature=function(e,t,r,n){return!(32!==t.length||32!==r.length||27!==e&&28!==e||(t=new s(t),r=new s(r),t.isZero()||t.gt(f)||r.isZero()||r.gt(f)||!1===n&&1===new s(r).cmp(l)))},r.baToJSON=function(e){if(t.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],i=0;i<e.length;i++)n.push(r.baToJSON(e[i]));return n}},r.defineProperties=function(e,n,i){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(t){var n={};return e._fields.forEach((function(t){n[t]="0x"+e[t].toString("hex")})),n}return r.baToJSON(this.raw)},e.serialize=function(){return a.encode(e.raw)},n.forEach((function(n,i){function a(){return e.raw[i]}function s(a){"00"!==(a=r.toBuffer(a)).toString("hex")||n.allowZero||(a=t.allocUnsafe(0)),n.allowLess&&n.length?(a=r.stripZeros(a),o(n.length>=a.length,"The field "+n.name+" must not have more "+n.length+" bytes")):n.allowZero&&0===a.length||!n.length||o(n.length===a.length,"The field "+n.name+" must have byte length of "+n.length),e.raw[i]=a}e._fields.push(n.name),Object.defineProperty(e,n.name,{enumerable:!0,configurable:!0,get:a,set:s}),n.default&&(e[n.name]=n.default),n.alias&&Object.defineProperty(e,n.alias,{enumerable:!1,configurable:!0,set:s,get:a})})),i)if("string"==typeof i&&(i=t.from(r.stripHexPrefix(i),"hex")),t.isBuffer(i)&&(i=a.decode(i)),Array.isArray(i)){if(i.length>e._fields.length)throw new Error("wrong number of fields in data");i.forEach((function(t,n){e[e._fields[n]]=r.toBuffer(t)}))}else{if("object"!=typeof i)throw new Error("invalid data");{const t=Object.keys(i);n.forEach((function(r){-1!==t.indexOf(r.name)&&(e[r.name]=i[r.name]),-1!==t.indexOf(r.alias)&&(e[r.alias]=i[r.alias])}))}}}}).call(this,e("buffer").Buffer)},{assert:329,"bn.js":439,buffer:475,"create-hash":718,keccak:832,rlp:984,secp256k1:1041}],718:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],719:[function(e,t,r){const n=e("hdkey"),i=e("./index.js");function o(){}function a(e){var t=new o;return t._hdkey=e,t}o.fromMasterSeed=function(e){return a(n.fromMasterSeed(e))},o.fromExtendedKey=function(e){return a(n.fromExtendedKey(e))},o.prototype.privateExtendedKey=function(){if(!this._hdkey._privateKey)throw new Error("Private key is not available");return this._hdkey.privateExtendedKey},o.prototype.publicExtendedKey=function(){return this._hdkey.publicExtendedKey},o.prototype.derivePath=function(e){return a(this._hdkey.derive(e))},o.prototype.deriveChild=function(e){return a(this._hdkey.deriveChild(e))},o.prototype.getWallet=function(){return this._hdkey._privateKey?i.fromPrivateKey(this._hdkey._privateKey):i.fromPublicKey(this._hdkey._publicKey,!0)},t.exports=o},{"./index.js":720,hdkey:727}],720:[function(e,t,r){(function(r){var n=e("ethereumjs-util"),i=e("crypto"),o=e("scrypt.js"),a=e("uuid"),s=e("bs58check");function c(e,t){if(!e)throw new Error(t||"Assertion failed")}function u(e,t){return r.concat([e.update(t),e.final()])}var l=function(e,t){if(e&&t)throw new Error("Cannot supply both a private and a public key to the constructor");if(e&&!n.isValidPrivate(e))throw new Error("Private key does not satisfy the curve requirements (ie. it is invalid)");if(t&&!n.isValidPublic(t))throw new Error("Invalid public key");this._privKey=e,this._pubKey=t};Object.defineProperty(l.prototype,"privKey",{get:function(){return c(this._privKey,"This is a public key only wallet"),this._privKey}}),Object.defineProperty(l.prototype,"pubKey",{get:function(){return this._pubKey||(this._pubKey=n.privateToPublic(this.privKey)),this._pubKey}}),l.generate=function(e){if(!e)return new l(i.randomBytes(32));for(;;){var t=i.randomBytes(32);if(0===n.privateToAddress(t)[0])return new l(t)}},l.prototype.getPrivateKey=function(){return this.privKey},l.prototype.getPrivateKeyString=function(){return n.bufferToHex(this.getPrivateKey())},l.prototype.getPublicKey=function(){return this.pubKey},l.prototype.getPublicKeyString=function(){return n.bufferToHex(this.getPublicKey())},l.prototype.getAddress=function(){return n.publicToAddress(this.pubKey)},l.prototype.getAddressString=function(){return n.bufferToHex(this.getAddress())},l.prototype.getChecksumAddressString=function(){return n.toChecksumAddress(this.getAddressString())},l.prototype.toV3=function(e,t){c(this._privKey,"This is a public key only wallet");var s,u=(t=t||{}).salt||i.randomBytes(32),l=t.iv||i.randomBytes(16),f=t.kdf||"scrypt",d={dklen:t.dklen||32,salt:u.toString("hex")};if("pbkdf2"===f)d.c=t.c||262144,d.prf="hmac-sha256",s=i.pbkdf2Sync(new r(e),u,d.c,d.dklen,"sha256");else{if("scrypt"!==f)throw new Error("Unsupported kdf");d.n=t.n||262144,d.r=t.r||8,d.p=t.p||1,s=o(new r(e),u,d.n,d.r,d.p,d.dklen)}var h=i.createCipheriv(t.cipher||"aes-128-ctr",s.slice(0,16),l);if(!h)throw new Error("Unsupported cipher");var p=r.concat([h.update(this.privKey),h.final()]),m=n.sha3(r.concat([s.slice(16,32),new r(p,"hex")]));return{version:3,id:a.v4({random:t.uuid||i.randomBytes(16)}),address:this.getAddress().toString("hex"),crypto:{ciphertext:p.toString("hex"),cipherparams:{iv:l.toString("hex")},cipher:t.cipher||"aes-128-ctr",kdf:f,kdfparams:d,mac:m.toString("hex")}}},l.prototype.getV3Filename=function(e){return["UTC--",(e?new Date(e):new Date).toJSON().replace(/:/g,"-"),"--",this.getAddress().toString("hex")].join("")},l.prototype.toV3String=function(e,t){return JSON.stringify(this.toV3(e,t))},l.fromPublicKey=function(e,t){return t&&(e=n.importPublic(e)),new l(null,e)},l.fromExtendedPublicKey=function(e){return c("xpub"===e.slice(0,4),"Not an extended public key"),e=s.decode(e).slice(45),l.fromPublicKey(e,!0)},l.fromPrivateKey=function(e){return new l(e)},l.fromExtendedPrivateKey=function(e){c("xprv"===e.slice(0,4),"Not an extended private key");var t=s.decode(e);return c(0===t[45],"Invalid extended private key"),l.fromPrivateKey(t.slice(46))},l.fromV1=function(e,t){c("string"==typeof t);var a="object"==typeof e?e:JSON.parse(e);if("1"!==a.Version)throw new Error("Not a V1 wallet");if("scrypt"!==a.Crypto.KeyHeader.Kdf)throw new Error("Unsupported key derivation scheme");var s=a.Crypto.KeyHeader.KdfParams,f=o(new r(t),new r(a.Crypto.Salt,"hex"),s.N,s.R,s.P,s.DkLen),d=new r(a.Crypto.CipherText,"hex");if(n.sha3(r.concat([f.slice(16,32),d])).toString("hex")!==a.Crypto.MAC)throw new Error("Key derivation failed - possibly wrong passphrase");var h=u(i.createDecipheriv("aes-128-cbc",n.sha3(f.slice(0,16)).slice(0,16),new r(a.Crypto.IV,"hex")),d);return new l(h)},l.fromV3=function(e,t,a){c("string"==typeof t);var s,f,d="object"==typeof e?e:JSON.parse(a?e.toLowerCase():e);if(3!==d.version)throw new Error("Not a V3 wallet");if("scrypt"===d.crypto.kdf)f=d.crypto.kdfparams,s=o(new r(t),new r(f.salt,"hex"),f.n,f.r,f.p,f.dklen);else{if("pbkdf2"!==d.crypto.kdf)throw new Error("Unsupported key derivation scheme");if("hmac-sha256"!==(f=d.crypto.kdfparams).prf)throw new Error("Unsupported parameters to PBKDF2");s=i.pbkdf2Sync(new r(t),new r(f.salt,"hex"),f.c,f.dklen,"sha256")}var h=new r(d.crypto.ciphertext,"hex");if(n.sha3(r.concat([s.slice(16,32),h])).toString("hex")!==d.crypto.mac)throw new Error("Key derivation failed - possibly wrong passphrase");var p=u(i.createDecipheriv(d.crypto.cipher,s.slice(0,16),new r(d.crypto.cipherparams.iv,"hex")),h);return new l(p)},l.fromEthSale=function(e,t){c("string"==typeof t);var o="object"==typeof e?e:JSON.parse(e),a=new r(o.encseed,"hex"),s=i.pbkdf2Sync(t,t,2e3,32,"sha256").slice(0,16),f=u(i.createDecipheriv("aes-128-cbc",s,a.slice(0,16)),a.slice(16)),d=new l(n.sha3(f));if(d.getAddress().toString("hex")!==o.ethaddr)throw new Error("Decoded key mismatch - possibly wrong passphrase");return d},t.exports=l}).call(this,e("buffer").Buffer)},{bs58check:724,buffer:475,crypto:505,"ethereumjs-util":725,"scrypt.js":1039,uuid:729}],721:[function(e,t,r){(function(e){"use strict";(function(){this.mymodule;var t,n=null,i=null,o=function(e){if("number"==typeof e){for(var t=[],r=0;r<e;r++)t.push(0);return t}for(r=0;r<e.length;r++)if(e[r]<0||e[r]>=256||"number"!=typeof e[r])throw new Error("invalid byte at index "+r+"("+e[r]+")");if(e.slice)return e.slice(0);for(t=[],r=0;r<e.length;r++)t.push(e[r]);return t};if(void 0===e){n=o,Array.prototype.copy=function(e,t,r,n){null==t&&(t=0),null==r&&(r=0),null==n&&(n=this.length);for(var i=r;i<n;i++)e[t++]=this[i]},i=function(e,t){if(null==t||"utf8"==t.toLowerCase().replace(/ |-/g,"")){var r=[],n=0;for(e=encodeURI(e);n<e.length;){var i=e.charCodeAt(n++);37===i?(r.push(parseInt(e.substr(n,2),16)),n+=2):r.push(i)}return r}if("hex"==t.toLowerCase()){for(r=[],n=0;n<e.length;n+=2)r.push(parseInt(e.substr(n,2),16));return r}return null};var a="0123456789abcdef";t=function(e,t){if(null==t||"utf8"==t.toLowerCase().replace(/ |-/g,"")){for(var r=[],n=0;n<e.length;){var i=e[n];i<128?(r.push(String.fromCharCode(i)),n++):i>191&&i<224?(r.push(String.fromCharCode((31&i)<<6|63&e[n+1])),n+=2):(r.push(String.fromCharCode((15&i)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return r.join("")}if("hex"==t.toLowerCase()){for(r=[],n=0;n<e.length;n++){var o=e[n];r.push(a[(240&o)>>4]+a[15&o])}return r.join("")}return r}}else n=function(t){return new e(t)},i=function(t,r){return new e(t,r)},t=function(t,r){return new e(t).toString(r)};var s={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],u=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],f=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],d=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],h=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],p=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],m=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],g=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],b=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],v=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],w=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],_=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],x=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function k(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var S=function(e){this.key=n(e),this._prepare()};S.prototype._prepare=function(){var e=s[this.key.length];if(null==e)throw new Error("invalid key size (must be length 16, 24 or 32)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(e+1),i=this.key.length/4,o=k(this.key);for(t=0;t<i;t++)r=t>>2,this._Ke[r][t%4]=o[t],this._Kd[e-r][t%4]=o[t];for(var a,l=0,f=i;f<n;){if(a=o[i-1],o[0]^=u[a>>16&255]<<24^u[a>>8&255]<<16^u[255&a]<<8^u[a>>24&255]^c[l]<<24,l+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];for(a=o[i/2-1],o[i/2]^=u[255&a]^u[a>>8&255]<<8^u[a>>16&255]<<16^u[a>>24&255]<<24,t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&f<n;)d=f>>2,h=f%4,this._Ke[d][h]=o[t],this._Kd[e-d][h]=o[t++],f++}for(var d=1;d<e;d++)for(var h=0;h<4;h++)a=this._Kd[d][h],this._Kd[d][h]=v[a>>24&255]^w[a>>16&255]^_[a>>8&255]^x[255&a]},S.prototype.encrypt=function(e){if(16!=e.length)return new Error("plaintext must be a block of size 16");for(var t=this._Ke.length-1,r=[0,0,0,0],i=k(e),o=0;o<4;o++)i[o]^=this._Ke[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)r[o]=f[i[o]>>24&255]^d[i[(o+1)%4]>>16&255]^h[i[(o+2)%4]>>8&255]^p[255&i[(o+3)%4]]^this._Ke[a][o];i=r.slice(0)}var s,c=n(16);for(o=0;o<4;o++)s=this._Ke[t][o],c[4*o]=255&(u[i[o]>>24&255]^s>>24),c[4*o+1]=255&(u[i[(o+1)%4]>>16&255]^s>>16),c[4*o+2]=255&(u[i[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(u[255&i[(o+3)%4]]^s);return c},S.prototype.decrypt=function(e){if(16!=e.length)return new Error("ciphertext must be a block of size 16");for(var t=this._Kd.length-1,r=[0,0,0,0],i=k(e),o=0;o<4;o++)i[o]^=this._Kd[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)r[o]=m[i[o]>>24&255]^y[i[(o+3)%4]>>16&255]^g[i[(o+2)%4]>>8&255]^b[255&i[(o+1)%4]]^this._Kd[a][o];i=r.slice(0)}var s,c=n(16);for(o=0;o<4;o++)s=this._Kd[t][o],c[4*o]=255&(l[i[o]>>24&255]^s>>24),c[4*o+1]=255&(l[i[(o+3)%4]>>16&255]^s>>16),c[4*o+2]=255&(l[i[(o+2)%4]>>8&255]^s>>8),c[4*o+3]=255&(l[255&i[(o+1)%4]]^s);return c};var E=function(e){this.description="Electronic Code Block",this.name="ecb",this._aes=new S(e)};E.prototype.encrypt=function(e){return this._aes.encrypt(e)},E.prototype.decrypt=function(e,t){return this._aes.decrypt(e)};var A=function(e,t){if(this.description="Cipher Block Chaining",this.name="cbc",null===t)t=n([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);else if(16!=t.length)return new Error("initialation vector iv must be of length 16");this._lastCipherblock=n(t),this._aes=new S(e)};A.prototype.encrypt=function(e){if(16!=e.length)return new Error("plaintext must be a block of size 16");for(var t=n(e),r=0;r<16;r++)t[r]^=this._lastCipherblock[r];return this._lastCipherblock=this._aes.encrypt(t),this._lastCipherblock},A.prototype.decrypt=function(e){if(16!=e.length)return new Error("ciphertext must be a block of size 16");for(var t=this._aes.decrypt(e),r=0;r<16;r++)t[r]^=this._lastCipherblock[r];return e.copy(this._lastCipherblock),t};var T=function(e,t,r){if(this.description="Cipher Feedback",this.name="cfb",null===t)t=n([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);else if(16!=t.length)return new Error("initialation vector iv must be of length 16");r||(r=1),this.segmentSize=r,this._shiftRegister=n(t),this._aes=new S(e)};T.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)return new Error("plaintext must be a block of size module segmentSize ("+this.segmentSize+")");for(var t,r=n(e),i=0;i<r.length;i+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[i+o]^=t[o];this._shiftRegister.copy(this._shiftRegister,0,this.segmentSize),r.copy(this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return r},T.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)return new Error("ciphertext must be a block of size module segmentSize ("+this.segmentSize+")");for(var t,r=n(e),i=0;i<r.length;i+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)r[i+o]^=t[o];this._shiftRegister.copy(this._shiftRegister,0,this.segmentSize),e.copy(this._shiftRegister,16-this.segmentSize,i,i+this.segmentSize)}return r};var C=function(e,t){if(this.description="Output Feedback",this.name="ofb",null===t)t=n([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);else if(16!=t.length)return new Error("initialation vector iv must be of length 16");this._lastPrecipher=n(t),this._lastPrecipherIndex=16,this._aes=new S(e)};C.prototype.encrypt=function(e){for(var t=n(e),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},C.prototype.decrypt=C.prototype.encrypt;var O=function(e){null==e&&(e=1),"number"==typeof e?(this._counter=n([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),this.setValue(e)):this.setBytes(e)};O.prototype.setValue=function(e){if("number"!=typeof e)throw new Error("value must be a number");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},O.prototype.setBytes=function(e){if(16!=e.length)throw new Error("invalid counter bytes size (must be 16)");this._counter=n(e)},O.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var j=function(e,t){this.description="Counter",this.name="ctr",null===t&&(t=new O),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new S(e)};j.prototype.encrypt=function(e){for(var t=n(e),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},j.prototype.decrypt=j.prototype.encrypt;var P={ecb:E,cbc:A,cfb:T,ofb:C,ctr:j},M={AES:S,Counter:O,ModeOfOperation:P,util:{convertBytesToString:t,convertStringToBytes:i,_slowCreateBuffer:o}};void 0!==r?(r.AES=S,r.Counter=O,r.ModeOfOperation=P,r.util={convertBytesToString:t,convertStringToBytes:i,_slowCreateBuffer:o}):this.aesjs=M}).call(this)}).call(this,e("buffer").Buffer)},{buffer:475}],722:[function(e,t,r){t.exports=function(e){for(var t={},r=e.length,n=e.charAt(0),i=0;i<e.length;i++)t[e.charAt(i)]=i;function o(e){if(0===e.length)return[];for(var i=[0],o=0;o<e.length;o++){var a=t[e[o]];if(void 0===a)return;for(var s=0,c=a;s<i.length;++s)c+=i[s]*r,i[s]=255&c,c>>=8;for(;c>0;)i.push(255&c),c>>=8}for(var u=0;e[u]===n&&u<e.length-1;++u)i.push(0);return i.reverse()}return{encode:function(t){if(0===t.length)return"";for(var n=[0],i=0;i<t.length;++i){for(var o=0,a=t[i];o<n.length;++o)a+=n[o]<<8,n[o]=a%r,a=a/r|0;for(;a>0;)n.push(a%r),a=a/r|0}for(var s="",c=0;0===t[c]&&c<t.length-1;++c)s+=e[0];for(var u=n.length-1;u>=0;--u)s+=e[n[u]];return s},decodeUnsafe:o,decode:function(e){var t=o(e);if(t)return t;throw new Error("Non-base"+r+" character")}}}},{}],723:[function(e,t,r){arguments[4][480][0].apply(r,arguments)},{"base-x":722,dup:480}],724:[function(e,t,r){(function(r){"use strict";var n=e("bs58"),i=e("create-hash");function o(e){var t=i("sha256").update(e).digest();return i("sha256").update(t).digest()}function a(e){var t=e.slice(0,-4),r=e.slice(-4),n=o(t);if(!(r[0]^n[0]|r[1]^n[1]|r[2]^n[2]|r[3]^n[3]))return t}function s(e){var t=n.decodeUnsafe(e);if(t)return a(new r(t))}t.exports={encode:function(e){var t=o(e);return n.encode(r.concat([e,t],e.length+4))},decode:function(e){var t=n.decode(e),i=a(new r(t));if(!i)throw new Error("Invalid checksum");return i},decodeUnsafe:s,decodeRaw:s}}).call(this,e("buffer").Buffer)},{bs58:723,buffer:475,"create-hash":501}],725:[function(e,t,r){(function(t){const n=e("keccakjs"),i=e("secp256k1"),o=e("assert"),a=e("rlp"),s=e("bn.js"),c=e("create-hash");r.MAX_INTEGER=new s("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new s("10000000000000000000000000000000000000000000000000000000000000000",16),r.SHA3_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.SHA3_NULL=new t(r.SHA3_NULL_S,"hex"),r.SHA3_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.SHA3_RLP_ARRAY=new t(r.SHA3_RLP_ARRAY_S,"hex"),r.SHA3_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.SHA3_RLP=new t(r.SHA3_RLP_S,"hex"),r.BN=s,r.rlp=a,r.secp256k1=i,r.zeros=function(e){var r=new t(e);return r.fill(0),r},r.setLengthLeft=r.setLength=function(e,t,n){var i=r.zeros(t);return e=r.toBuffer(e),n?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)},r.setLengthRight=function(e,t){return r.setLength(e,t,!0)},r.unpad=r.stripZeros=function(e){for(var t=(e=r.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},r.toBuffer=function(e){if(!t.isBuffer(e))if(Array.isArray(e))e=new t(e);else if("string"==typeof e)e=r.isHexPrefixed(e)?new t(r.padToEven(r.stripHexPrefix(e)),"hex"):new t(e);else if("number"==typeof e)e=r.intToBuffer(e);else if(null==e)e=new t([]);else{if(!e.toArray)throw new Error("invalid type");e=new t(e.toArray())}return e},r.intToHex=function(e){o(e%1==0,"number is not a integer"),o(e>=0,"number must be positive");var t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t},r.intToBuffer=function(e){var n=r.intToHex(e);return new t(n.slice(2),"hex")},r.bufferToInt=function(e){return parseInt(r.bufferToHex(e),16)},r.bufferToHex=function(e){return 0===(e=r.toBuffer(e)).length?0:"0x"+e.toString("hex")},r.fromSigned=function(e){return new s(e).fromTwos(256)},r.toUnsigned=function(e){return new t(e.toTwos(256).toArray())},r.sha3=function(e,i){e=r.toBuffer(e),i||(i=256);var o=new n(i);return e&&o.update(e),new t(o.digest("hex"),"hex")},r.sha256=function(e){return e=r.toBuffer(e),c("sha256").update(e).digest()},r.ripemd160=function(e,t){e=r.toBuffer(e);var n=c("rmd160").update(e).digest();return!0===t?r.setLength(n,32):n},r.rlphash=function(e){return r.sha3(a.encode(e))},r.isValidPrivate=function(e){return i.privateKeyVerify(e)},r.isValidPublic=function(e,r){return 64===e.length?i.publicKeyVerify(t.concat([new t([4]),e])):!!r&&i.publicKeyVerify(e)},r.pubToAddress=r.publicToAddress=function(e,t){return e=r.toBuffer(e),t&&64!==e.length&&(e=i.publicKeyConvert(e,!1).slice(1)),o(64===e.length),r.sha3(e).slice(-20)};var u=r.privateToPublic=function(e){return e=r.toBuffer(e),i.publicKeyCreate(e,!1).slice(1)};r.importPublic=function(e){return 64!==(e=r.toBuffer(e)).length&&(e=i.publicKeyConvert(e,!1).slice(1)),e},r.ecsign=function(e,t){var r=i.sign(e,t),n={};return n.r=r.signature.slice(0,32),n.s=r.signature.slice(32,64),n.v=r.recovery+27,n},r.ecrecover=function(e,n,o,a){var s=t.concat([r.setLength(o,32),r.setLength(a,32)],64),c=r.bufferToInt(n)-27;if(0!==c&&1!==c)throw new Error("Invalid signature v value");var u=i.recover(e,s,c);return i.publicKeyConvert(u,!1).slice(1)},r.toRpcSig=function(e,n,i){return r.bufferToHex(t.concat([n,i,r.toBuffer(e-27)]))},r.fromRpcSig=function(e){var t=(e=r.toBuffer(e))[64];return t<27&&(t+=27),{v:t,r:e.slice(0,32),s:e.slice(32,64)}},r.privateToAddress=function(e){return r.publicToAddress(u(e))},r.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/i.test(e)},r.toChecksumAddress=function(e){e=r.stripHexPrefix(e).toLowerCase();for(var t=r.sha3(e).toString("hex"),n="0x",i=0;i<e.length;i++)parseInt(t[i],16)>=8?n+=e[i].toUpperCase():n+=e[i];return n},r.isValidChecksumAddress=function(e){return r.isValidAddress(e)&&r.toChecksumAddress(e)===e},r.generateAddress=function(e,n){return e=r.toBuffer(e),n=(n=new s(n)).isZero()?null:new t(n.toArray()),r.rlphash([e,n]).slice(-20)},r.isPrecompiled=function(e){var t=r.unpad(e);return 1===t.length&&t[0]>0&&t[0]<5},r.isHexPrefixed=function(e){return"0x"===e.slice(0,2)},r.stripHexPrefix=function(e){return"string"!=typeof e?e:r.isHexPrefixed(e)?e.slice(2):e},r.addHexPrefix=function(e){return"string"!=typeof e||r.isHexPrefixed(e)?e:"0x"+e},r.padToEven=function(e){return e.length%2&&(e="0"+e),e},r.baToJSON=function(e){if(t.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],i=0;i<e.length;i++)n.push(r.baToJSON(e[i]));return n}},r.defineProperties=function(e,n,i){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(t){var n={};return e._fields.forEach((function(t){n[t]="0x"+e[t].toString("hex")})),n}return r.baToJSON(this.raw)},e.serialize=function(){return a.encode(e.raw)},n.forEach((function(n,i){function a(){return e.raw[i]}function s(a){"00"!==(a=r.toBuffer(a)).toString("hex")||n.allowZero||(a=new t([])),n.allowLess&&n.length?(a=r.stripZeros(a),o(n.length>=a.length,"The field "+n.name+" must not have more "+n.length+" bytes")):n.allowZero&&0===a.length||!n.length||o(n.length===a.length,"The field "+n.name+" must have byte length of "+n.length),e.raw[i]=a}e._fields.push(n.name),Object.defineProperty(e,n.name,{enumerable:!0,configurable:!0,get:a,set:s}),n.default&&(e[n.name]=n.default),n.alias&&Object.defineProperty(e,n.alias,{enumerable:!1,configurable:!0,set:s,get:a})})),i)if("string"==typeof i&&(i=new t(r.stripHexPrefix(i),"hex")),t.isBuffer(i)&&(i=a.decode(i)),Array.isArray(i)){if(i.length>e._fields.length)throw new Error("wrong number of fields in data");i.forEach((function(t,n){e[e._fields[n]]=r.toBuffer(t)}))}else{if("object"!=typeof i)throw new Error("invalid data");for(var s in i)-1!==e._fields.indexOf(s)&&(e[s]=i[s])}}}).call(this,e("buffer").Buffer)},{assert:329,"bn.js":439,buffer:475,"create-hash":726,keccakjs:838,rlp:984,secp256k1:1041}],726:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],727:[function(e,t,r){(function(r){var n=e("assert"),i=e("crypto"),o=e("coinstring"),a=e("secp256k1"),s=new r("Bitcoin seed"),c={private:76066276,public:76067358};function u(e){this.versions=e||c,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function l(e,t,n){var i=new r(78);i.writeUInt32BE(t,0),i.writeUInt8(e.depth,4);var o=e.depth?e.parentFingerprint:0;return i.writeUInt32BE(o,5),i.writeUInt32BE(e.index,9),e.chainCode.copy(i,13),n.copy(i,45),i}function f(e){var t=i.createHash("sha256").update(e).digest();return i.createHash("rmd160").update(t).digest()}Object.defineProperty(u.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(u.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(u.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(u.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){n.equal(e.length,32,"Private key must be 32 bytes."),n(!0===a.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=a.publicKeyCreate(e,!0),this._identifier=f(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(u.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){n(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),n(!0===a.publicKeyVerify(e),"Invalid public key"),this._publicKey=a.publicKeyConvert(e,!0),this._identifier=f(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(u.prototype,"privateExtendedKey",{get:function(){return this._privateKey?o.encode(l(this,this.versions.private,r.concat([new r([0]),this.privateKey]))):null}}),Object.defineProperty(u.prototype,"publicExtendedKey",{get:function(){return o.encode(l(this,this.versions.public,this.publicKey))}}),u.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),r=this;return t.forEach((function(e,t){if(0!==t){var i=e.length>1&&"'"===e[e.length-1],o=parseInt(e,10);n(o<2147483648,"Invalid index"),i&&(o+=2147483648),r=r.deriveChild(o)}else n(e,"m","Invalid path")})),r},u.prototype.deriveChild=function(e){var t,o=e>=2147483648,s=new r(4);if(s.writeUInt32BE(e,0),o){n(this.privateKey,"Could not derive hardened child key");var c=this.privateKey,l=new r([0]);c=r.concat([l,c]),t=r.concat([c,s])}else t=r.concat([this.publicKey,s]);var f=i.createHmac("sha512",this.chainCode).update(t).digest(),d=f.slice(0,32),h=f.slice(32),p=new u(this.versions);if(this.privateKey)try{p.privateKey=a.privateKeyTweakAdd(this.privateKey,d)}catch(t){return this.derive(e+1)}else try{p.publicKey=a.publicKeyTweakAdd(this.publicKey,d,!0)}catch(t){return this.derive(e+1,o)}return p.chainCode=h,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},u.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},u.fromMasterSeed=function(e,t){var r=i.createHmac("sha512",s).update(e).digest(),n=r.slice(0,32),o=r.slice(32),a=new u(t);return a.chainCode=o,a.privateKey=n,a},u.fromExtendedKey=function(e,t){var r=new u(t=t||c),i=o.decode(e),a=i.readUInt32BE(0);n(a===t.private||a===t.public,"Version mismatch: does not match private or public"),r.depth=i.readUInt8(4),r.parentFingerprint=i.readUInt32BE(5),r.index=i.readUInt32BE(9),r.chainCode=i.slice(13,45);var s=i.slice(45);return 0===s.readUInt8(0)?(n(a===t.private,"Version mismatch: version does not match private"),r.privateKey=s.slice(1)):(n(a===t.public,"Version mismatch: version does not match public"),r.publicKey=s),r},u.fromJSON=function(e){return u.fromExtendedKey(e.xpriv)},u.HARDENED_OFFSET=2147483648,t.exports=u}).call(this,e("buffer").Buffer)},{assert:329,buffer:475,coinstring:491,crypto:505,secp256k1:1041}],728:[function(e,t,r){(function(e){var r,n=e.crypto||e.msCrypto;if(n&&n.getRandomValues){var i=new Uint8Array(16);r=function(){return n.getRandomValues(i),i}}if(!r){var o=new Array(16);r=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],729:[function(e,t,r){for(var n=e("./rng"),i=[],o={},a=0;a<256;a++)i[a]=(a+256).toString(16).substr(1),o[i[a]]=a;function s(e,t){var r=t||0,n=i;return n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+"-"+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]+n[e[r++]]}var c=n(),u=[1|c[0],c[1],c[2],c[3],c[4],c[5]],l=16383&(c[6]<<8|c[7]),f=0,d=0;function h(e,t,r){var i=t&&r||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;a++)t[i+a]=o[a];return t||s(o)}var p=h;p.v1=function(e,t,r){var n=t&&r||0,i=t||[],o=void 0!==(e=e||{}).clockseq?e.clockseq:l,a=void 0!==e.msecs?e.msecs:(new Date).getTime(),c=void 0!==e.nsecs?e.nsecs:d+1,h=a-f+(c-d)/1e4;if(h<0&&void 0===e.clockseq&&(o=o+1&16383),(h<0||a>f)&&void 0===e.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=a,d=c,l=o;var p=(1e4*(268435455&(a+=122192928e5))+c)%4294967296;i[n++]=p>>>24&255,i[n++]=p>>>16&255,i[n++]=p>>>8&255,i[n++]=255&p;var m=a/4294967296*1e4&268435455;i[n++]=m>>>8&255,i[n++]=255&m,i[n++]=m>>>24&15|16,i[n++]=m>>>16&255,i[n++]=o>>>8|128,i[n++]=255&o;for(var y=e.node||u,g=0;g<6;g++)i[n+g]=y[g];return t||s(i)},p.v4=h,p.parse=function(e,t,r){var n=t&&r||0,i=0;for(t=t||[],e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){i<16&&(t[n+i++]=o[e])}));i<16;)t[n+i++]=0;return t},p.unparse=s,t.exports=p},{"./rng":728}],730:[function(e,t,r){(function(r){var n=e("./index.js"),i=e("ethereumjs-util"),o=e("crypto"),a=e("scrypt.js"),s=e("utf8"),c=e("aes-js");function u(e,t){if(!e)throw new Error(t||"Assertion failed")}var l={fromEtherWallet:function(e,t){var i,a="object"==typeof e?e:JSON.parse(e);if(a.locked){if("string"!=typeof t)throw new Error("Password required");if(t.length<7)throw new Error("Password must be at least 7 characters");var c=a.encrypted?a.private.slice(0,128):a.private;if(!(c=function(e){var t=new r(e,"base64");return"Salted__"===t.slice(0,8).toString()?{salt:t.slice(8,16),ciphertext:t.slice(16)}:{ciphertext:t}}(c)).salt)throw new Error("Unsupported EtherWallet key format");var u=function(e,t,n){function i(r){var i=o.createHash(n.digest||"md5");i.update(r),i.update(e),i.update(t),r=i.digest();for(var a=1;a<(n.count||1);a++)(i=o.createHash(n.digest||"md5")).update(r),r=i.digest();return r}for(var a=n.keysize||16,s=n.ivsize||16,c=[],u=0;r.concat(c).length<a+s;)c[u]=i(0===u?new r(0):c[u-1]),u++;var l=r.concat(c);return{key:l.slice(0,a),iv:l.slice(a,a+s)}}(new r(t),c.salt,{keysize:32,ivsize:16});i=function(e,t){return r.concat([e.update(t),e.final()])}(o.createDecipheriv("aes-256-cbc",u.key,u.iv),new r(c.ciphertext)),i=new r(s.decode(i.toString()),"hex")}else{if(64!==a.private.length)throw new Error("Invalid private key length");i=new r(a.private,"hex")}var l=new n(i);if(l.getAddressString()!==a.address)throw new Error("Invalid private key or address");return l},fromEtherCamp:function(e){return new n(i.sha3(new r(e)))},fromKryptoKit:function(e,t){"#"===e[0]&&(e=e.slice(1));var o,s=e[0];if(e=e.slice(1),"d"===s)o=i.sha256(e);else{if("q"!==s)throw new Error("Unsupported or invalid entropy type");if("string"!=typeof t)throw new Error("Password required");var u=i.sha256(new r(e.slice(0,30))),l=e.slice(30,46),f=function(e){function t(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}for(var n="",i="",o=0;o<e.length;o++)e[o]<=127?(n+=t(i)+String.fromCharCode(e[o]),i=""):i+="%"+e[o].toString(16);return new r(n+t(i))}(u),d=a(new r(t,"utf8"),f,16384,8,1,32),h=new c.ModeOfOperation.ecb(d);if(o=r.concat([h.decrypt(u.slice(0,16)),h.decrypt(u.slice(16,32))]),l.length>0&&l!==i.sha256(i.sha256(o)).slice(0,8).toString("hex"))throw new Error("Failed to decrypt input - possibly invalid passphrase")}return new n(o)},fromQuorumWallet:function(e,t){u(e.length>=10),u(t.length>=10);var r=e+t;return r=o.pbkdf2Sync(r,r,2e3,32,"sha256"),new n(r)}};t.exports=l}).call(this,e("buffer").Buffer)},{"./index.js":720,"aes-js":721,buffer:475,crypto:505,"ethereumjs-util":725,"scrypt.js":1039,utf8:1129}],731:[function(e,t,r){(function(r){"use strict";var n=e("./utils/index.js"),i=n.uint256Coder,o=(n.coderBoolean,n.coderFixedBytes,n.coderAddress,n.coderDynamicBytes,n.coderString,n.coderArray,n.paramTypePart,n.getParamCoder);function a(){}function s(e,t){if(e.length!==t.length)throw new Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+e.length+" types (arguments), and you passed in "+t.length);var n=[];function a(e){return parseInt(32*Math.ceil(e/32))}e.forEach((function(e,r){var i=o(e);n.push({dynamic:i.dynamic,value:i.encode(t[r])})}));var s=0,c=0;n.forEach((function(e){e.dynamic?(s+=32,c+=a(e.value.length)):s+=a(e.value.length)}));var u=0,l=s,f=new r(s+c);return n.forEach((function(e,t){e.dynamic?(i.encode(l).copy(f,u),u+=32,e.value.copy(f,l),l+=a(e.value.length)):(e.value.copy(f,u),u+=a(e.value.length))})),"0x"+f.toString("hex")}function c(e,t,r){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(r=t,t=e,e=[]),r=n.hexOrBuffer(r);var c=new a,u=0;return t.forEach((function(t,n){var a=o(t);if(a.dynamic){var l=i.decode(r,u),f=a.decode(r,l.value.toNumber());u+=l.consumed}else f=a.decode(r,u),u+=f.consumed;s&&(c[n]=f.value),e[n]&&(c[e[n]]=f.value)})),c}function u(e,t){var i=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+new r(n.keccak256(i),"hex").slice(0,4).toString("hex")+s(n.getKeys(e.inputs,"type"),t).substring(2)}function l(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+n.keccak256(t)}function f(e,t,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=e.inputs.filter((function(e){return!e.indexed})),u=n.getKeys(s,"name",!0),l=n.getKeys(s,"type"),f=c(u,l,n.hexOrBuffer(t),a),d=e.anonymous?0:1;return e.inputs.filter((function(e){return e.indexed})).map((function(e,t){var n=new r(i[t+d].slice(2),"hex"),a=o(e.type);f[e.name]=a.decode(n,0).value})),f._eventName=e.name,f}function d(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t.topics[0]===l(e))return f(e,t.data,t.topics,r)}t.exports={encodeParams:s,decodeParams:c,encodeMethod:u,decodeMethod:function(e,t){return c(n.getKeys(e.outputs,"name",!0),n.getKeys(e.outputs,"type"),n.hexOrBuffer(t))},encodeEvent:function(e,t){return u(e,t)},decodeEvent:f,decodeLogItem:d,logDecoder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return e.filter((function(e){return"event"===e.type})).map((function(e){r[l(e)]=e})),function(e){return e.map((function(e){return d(r[e.topics[0]],e,t)})).filter((function(e){return e}))}},eventSignature:l}}).call(this,e("buffer").Buffer)},{"./utils/index.js":732,buffer:475}],732:[function(e,t,r){(function(r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=e("js-sha3").keccak_256;function a(e){for(var t=e,r=t[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t}function s(e){var t=e.toString(16);return t.length%2&&(t="0"+t),a(new r(t,"hex"))}function c(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function u(e,t){var n=e;if(!r.isBuffer(n)){if(!c(n)){var i=new Error(t?"[ethjs-abi] invalid "+t:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=n,i}(n=n.substring(2)).length%2&&(n="0"+n),n=new r(n,"hex")}return n}function l(e,t){return{encode:function(n){var o=n;return"object"==typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!=typeof o&&"number"!=typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*e).maskn(8*e),t&&(o=o.fromTwos(8*e).toTwos(256)),o.toArrayLike(r,"be",32)},decode:function(r,i){var o=32-e,a=new n(r.slice(i+o,i+32));return a=t?a.fromTwos(8*e):a.maskn(8*e),{consumed:32,value:new n(a.toString(10))}}}}var f=l(32,!1),d={encode:function(e){return f.encode(e?1:0)},decode:function(e,t){var r=f.decode(e,t);return{consumed:r.consumed,value:!r.value.isZero()}}};function h(e){return{encode:function(e){var t=e;if(32===(t=u(t)).length)return t;var n=new r(32);return n.fill(0),t.copy(n),n},decode:function(t,r){if(0!==t.length&&t.length<r+32)throw new Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+e);return{consumed:32,value:"0x"+t.slice(r,r+e).toString("hex")}}}}var p={encode:function(e){var t=e,n=new r(32);if(!c(t,20))throw new Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return t=u(t),n.fill(0),t.copy(n,12),n},decode:function(e,t){if(0===e.length)return{consumed:32,value:"0x"};if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+e.length);return{consumed:32,value:"0x"+e.slice(t+12,t+32).toString("hex")}}};function m(e){var t=parseInt(32*Math.ceil(e.length/32)),n=new r(t-e.length);return n.fill(0),r.concat([f.encode(e.length),e,n])}function y(e,t){if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32));var r=f.decode(e,t).value;if(r=r.toNumber(),0!==e.length&&e.length<t+32+r)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32+r));return{consumed:parseInt(32+32*Math.ceil(r/32),10),value:e.slice(t+32,t+32+r)}}var g={encode:function(e){return m(u(e))},decode:function(e,t){var r=y(e,t);return r.value="0x"+r.value.toString("hex"),r},dynamic:!0},b={encode:function(e){return m(new r(e,"utf8"))},decode:function(e,t){var r=y(e,t);return r.value=r.value.toString("utf8"),r},dynamic:!0};function v(e,t){return{encode:function(n){var i=new r(0),o=t;if(!Array.isArray(n))throw new Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=n.length,i=f.encode(o)),o!==n.length)throw new Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+n.length);return n.forEach((function(t){i=r.concat([i,e.encode(t)])})),i},decode:function(r,n){var i,o=t,a=n,s=0;-1===o&&(o=(i=f.decode(r,a)).value.toNumber(),s+=i.consumed,a+=i.consumed);for(var c=[],u=0;u<o;u++){var l=e.decode(r,a);s+=l.consumed,a+=l.consumed,c.push(l.value)}return{consumed:s,value:c}},dynamic:-1===t}}var w=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:n,bnToBuffer:s,isHexString:c,hexOrBuffer:u,hexlify:function(e){return"number"==typeof e?"0x"+s(new n(e)).toString("hex"):e.mod||e.modulo?"0x"+s(e).toString("hex"):"0x"+u(e).toString("hex")},stripZeros:a,keccak256:o,getKeys:function(e,t,r){var n=[];if(!Array.isArray(e))throw new Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(e));for(var i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");n.push(o)}return n},numberToBN:i,coderNumber:l,uint256Coder:f,coderBoolean:d,coderFixedBytes:h,coderAddress:p,coderDynamicBytes:g,coderString:b,coderArray:v,paramTypePart:w,getParamCoder:function(e){for(var t=e,r=null,n="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(t)+" is either invalid or unsupported by ethjs-abi.";t;){var i=t.match(w);if(!i)throw new Error(n);t=t.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(r)throw new Error(n);var a=parseInt(i[3]||256);if(0===a||a>256||a%8!=0)throw new Error("[ethjs-abi] while getting param coder for type "+t+", invalid "+o+"<N> width: "+t);r=l(a/8,"int"===o);break;case"bool":if(r)throw new Error(n);r=d;break;case"string":if(r)throw new Error(n);r=b;break;case"bytes":if(r)throw new Error(n);if(i[3]){var s=parseInt(i[3]);if(0===s||s>32)throw new Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+t+", size "+s+" should be 0 or greater than 32");r=h(s)}else r=g;break;case"address":if(r)throw new Error(n);r=p;break;case"[]":if(!r||r.dynamic)throw new Error(n);r=v(r,-1);break;default:if(!r||r.dynamic)throw new Error(n);r=v(r,parseInt(i[6]))}}if(!r)throw new Error(n);return r}}}).call(this,e("buffer").Buffer)},{"bn.js":733,buffer:475,"js-sha3":815,"number-to-bn":895}],733:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],734:[function(e,t,r){arguments[4][182][0].apply(r,arguments)},{"./has-tx-object":735,"babel-runtime/core-js/json/stringify":331,"babel-runtime/core-js/object/assign":332,"babel-runtime/helpers/asyncToGenerator":336,"babel-runtime/regenerator":420,dup:182,"ethjs-abi":731,"ethjs-filter":748,"ethjs-util":759,"js-sha3":815,"promise-to-callback":953}],735:[function(e,t,r){arguments[4][183][0].apply(r,arguments)},{"babel-runtime/core-js/object/keys":334,dup:183}],736:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{"./contract":734,"./has-tx-object":735,"babel-runtime/core-js/object/assign":332,dup:184,"ethjs-abi":731,"ethjs-filter":748,"ethjs-util":759,"js-sha3":815}],737:[function(e,t,r){t.exports=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],type:"function"}]},{}],738:[function(e,t,r){t.exports=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"",type:"string"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"kind",type:"bytes32"}],name:"has",outputs:[{name:"",type:"bool"}],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"}],name:"ABI",outputs:[{name:"",type:"uint256"},{name:"",type:"bytes"}],payable:!1,type:"function"}]},{}],739:[function(e,t,r){const n=e("ethjs-query"),i=e("ethjs-contract"),o=e("eth-ens-namehash"),a=e("./abis/registry.json"),s=e("./abis/resolver.json"),c=e("ethereum-ens-network-map"),u="0x0000000000000000000000000000000000000000000000000000000000000000",l="0x0000000000000000000000000000000000000000",f=new Error("ENS name not defined."),d=new Error("Illegal Character for ENS.");t.exports=class{constructor(e={}){const{provider:t,network:r}=e;let{registryAddress:u}=e;if(!t)throw new Error("The EthJsENS Constructor requires a provider.");if(!r&&!u)throw new Error("The EthJsENS Constructor requires a network or registry address.");this.provider=t,this.eth=new n(this.provider),this.contract=new i(this.eth),this.namehash=o,this.Registry=this.contract(a),!u&&r&&(u=c[r]),this.registry=this.Registry.at(u),this.Resolver=this.contract(s)}lookup(e=""){return this.getNamehash(e).then(e=>e===u?Promise.reject(f):this.resolveAddressForNode(e))}getNamehash(e){try{return Promise.resolve(o(e))}catch(e){return Promise.reject(d)}}getOwner(e=""){return this.getNamehash(e).then(e=>this.getOwnerForNode(e))}getOwnerForNode(e){return e===u?Promise.reject(f):this.registry.owner(e).then(e=>{const t=e[0];if(t===l)throw f;return t})}getResolver(e=""){return this.getNamehash(e).then(e=>this.getResolverForNode(e))}getResolverAddress(e=""){return this.getNamehash(e).then(e=>this.getResolverAddressForNode(e))}getResolverForNode(e){return e.startsWith("0x")||(e="0x"+e),this.getResolverAddressForNode(e).then(e=>this.Resolver.at(e))}getResolverAddressForNode(e){return this.registry.resolver(e).then(e=>{const t=e[0];if(t===l)throw f;return t})}resolveAddressForNode(e){return this.getResolverForNode(e).then(t=>t.addr(e)).then(e=>e[0])}reverse(e){if(!e)return Promise.reject(new Error("Must supply an address to reverse lookup."));e.startsWith("0x")&&(e=e.slice(2));const t=e.toLowerCase()+".addr.reverse",r=o(t);return this.getNamehash(t).then(e=>this.getResolverForNode(e)).then(e=>e.name(r)).then(e=>e[0])}}},{"./abis/registry.json":737,"./abis/resolver.json":738,"eth-ens-namehash":740,"ethereum-ens-network-map":707,"ethjs-contract":742,"ethjs-query":745}],740:[function(e,t,r){(function(r){var n=e("js-sha3").keccak_256,i=e("idna-uts46");t.exports=function(e){for(var t="",o=0;o<32;o++)t+="00";if(name=function(e){return e?i.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}(e),name){var a=name.split(".");for(o=a.length-1;o>=0;o--){var s=n(a[o]);t=n(new r(t+s,"hex"))}}return"0x"+t}}).call(this,e("buffer").Buffer)},{buffer:475,"idna-uts46":805,"js-sha3":741}],741:[function(e,t,r){(function(e,r){
|
||
/**
|
||
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
||
*
|
||
* @version 0.5.7
|
||
* @author Chen, Yi-Cyuan [[email protected]]
|
||
* @copyright Chen, Yi-Cyuan 2015-2016
|
||
* @license MIT
|
||
*/
|
||
!function(){"use strict";var n="object"==typeof window?window:{};!n.JS_SHA3_NO_NODE_JS&&"object"==typeof e&&e.versions&&e.versions.node&&(n=r);for(var i=!n.JS_SHA3_NO_COMMON_JS&&"object"==typeof t&&t.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],u=["hex","buffer","arrayBuffer","array"],l=function(e,t,r){return function(n){return new _(e,t,e).update(n)[r]()}},f=function(e,t,r){return function(n,i){return new _(e,t,i).update(n)[r]()}},d=function(e,t){var r=l(e,t,"hex");r.create=function(){return new _(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=l(e,t,i)}return r},h=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var r=f(e,t,"hex");r.create=function(r){return new _(e,t,r)},r.update=function(e,t){return r.create(t).update(e)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=f(e,t,i)}return r}}],p={},m=[],y=0;y<h.length;++y)for(var g=h[y],b=g.bits,v=0;v<b.length;++v){var w=g.name+"_"+b[v];m.push(w),p[w]=g.createMethod(b[v],g.padding)}function _(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}_.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,i=e.length,o=this.blocks,s=this.byteCount,c=this.blockCount,u=0,l=this.s;u<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<c+1;++r)o[r]=0;if(t)for(r=this.start;u<i&&r<s;++u)o[r>>2]|=e[u]<<a[3&r++];else for(r=this.start;u<i&&r<s;++u)(n=e.charCodeAt(u))<128?o[r>>2]|=n<<a[3&r++]:n<2048?(o[r>>2]|=(192|n>>6)<<a[3&r++],o[r>>2]|=(128|63&n)<<a[3&r++]):n<55296||n>=57344?(o[r>>2]|=(224|n>>12)<<a[3&r++],o[r>>2]|=(128|n>>6&63)<<a[3&r++],o[r>>2]|=(128|63&n)<<a[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++u)),o[r>>2]|=(240|n>>18)<<a[3&r++],o[r>>2]|=(128|n>>12&63)<<a[3&r++],o[r>>2]|=(128|n>>6&63)<<a[3&r++],o[r>>2]|=(128|63&n)<<a[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[c],r=0;r<c;++r)l[r]^=o[r];x(l),this.reset=!0}else this.start=r}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];x(n)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,s=0,c="";s<n;){for(a=0;a<t&&s<n;++a,++s)e=r[a],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(x(r),a=0)}return i&&(e=r[a],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)c[a]=r[o];a%t==0&&x(r)}return i&&(c[o]=r[o],e=e.slice(0,s)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&x(n)}return o&&(e=s<<2,t=n[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var x=function(e){var t,r,n,i,o,a,c,u,l,f,d,h,p,m,y,g,b,v,w,_,x,k,S,E,A,T,C,O,j,P,M,I,N,B,R,D,L,U,F,q,H,z,K,V,G,W,Y,$,J,Q,Z,X,ee,te,re,ne,ie,oe,ae,se,ce,ue,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|c>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|l>>>31),r=o^(l<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|d>>>31),r=c^(d<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|p>>>31),r=l^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],W=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,B=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=y^~b&w,e[10]=E^~T&O,e[11]=A^~C&j,e[20]=B^~D&U,e[21]=R^~L&F,e[30]=V^~W&$,e[31]=G^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=b^~w&x,e[12]=T^~O&P,e[13]=C^~j&M,e[22]=D^~U&q,e[23]=L^~F&H,e[32]=W^~$&Q,e[33]=Y^~J&Z,e[42]=ne^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&k,e[5]=w^~x&S,e[14]=O^~P&I,e[15]=j^~M&N,e[24]=U^~q&z,e[25]=F^~H&K,e[34]=$^~Q&X,e[35]=J^~Z&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&le,e[6]=_^~k&m,e[7]=x^~S&y,e[16]=P^~I&E,e[17]=M^~N&A,e[26]=q^~z&B,e[27]=H^~K&R,e[36]=Q^~X&V,e[37]=Z^~ee&G,e[46]=se^~ue&te,e[47]=ce^~le&re,e[8]=k^~m&g,e[9]=S^~y&b,e[18]=I^~E&T,e[19]=N^~A&C,e[28]=z^~B&D,e[29]=K^~R&L,e[38]=X^~V&W,e[39]=ee^~G&Y,e[48]=ue^~te&ne,e[49]=le^~re&ie,e[0]^=s[n],e[1]^=s[n+1]};if(i)t.exports=p;else for(y=0;y<m.length;++y)n[m[y]]=p[m[y]]}()}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952}],742:[function(e,t,r){"use strict";var n=e("ethjs-abi"),i=e("js-sha3").keccak_256,o=e("ethjs-filter"),a=e("ethjs-util").getKeys,s=e("ethjs-util").arrayContainsArray;function c(e){return!(!("object"==typeof e&&!0===Array.isArray(e)&&e.length>0&&"object"==typeof e[e.length-1])||0!==Object.keys(e[e.length-1]).length&&!s(Object.keys(e[e.length-1]),["from","to","data","value","gasPrice","gas"],!0))}function u(e){return e.filter((function(e){return"constructor"===e.type}))[0]}t.exports=function(e){return function(e){return function(t,r,s){if(!Array.isArray(t))throw new Error("[ethjs-contract] Contract ABI must be type Array, got type "+typeof t);if(void 0!==r&&"string"!=typeof r)throw new Error("[ethjs-contract] Contract bytecode must be type String, got type "+typeof r);if(void 0!==s&&"object"!=typeof s)throw new Error("[ethjs-contract] Contract default tx object must be type Object, got type "+typeof t);return{at:function(u){return new function(){var l=this;l.abi=t||[],l.query=e,l.address=u||"0x",l.bytecode=r||"0x",l.defaultTxObject=s||{},l.filters=new o(e),function(e){return e.filter((function(e){return("function"===e.type||"event"===e.type)&&e.name.length>0}))}(t).forEach((function(t){l[t.name]=function(){var r,o,s,u="call",f={},d=function(){},h=[].slice.call(arguments);if("function"==typeof h[h.length-1]&&(d=h.pop()),"function"===t.type)return new Promise((function(r,i){c(h)&&(f=h.pop());var o=Object.assign({},l.defaultTxObject,f,{to:l.address});o.data=n.encodeMethod(t,h),!1===t.constant&&(u="sendTransaction"),e[u](o,(function(e,o){if("call"!==u||e)"sendTransaction"!==u||e?(i(e),d(e,null)):(r(o),d(null,o));else try{var a=n.decodeMethod(t,o);r(a),d(null,a)}catch(e){var s=new Error("[ethjs-contract] while formatting incoming raw call data "+JSON.stringify(o)+" "+e);i(s),d(s,null)}}))}));if("event"===t.type){var p=(r=a(t.inputs,"type",!1),o=["0x"+i(t.name+"("+r.join(",")+")")],s=Object.assign({},h[0])||{},{v:new l.filters.Filter(Object.assign({},s,{decoder:function(e){return n.decodeEvent(t,e,o)},defaultFilterObject:Object.assign({},h[0]||{},{to:l.address,topics:o})}))});if("object"==typeof p)return p.v}}}))}},new:function(){var i={},o=function(){},l=[].slice.call(arguments);"function"==typeof l[l.length-1]&&(o=l.pop()),c(l)&&(i=l.pop());var f=u(t),d=Object.assign({},s,i);if(r&&(d.data=r),f){var h=n.encodeParams(a(f.inputs,"type"),l).substring(2);d.data=""+d.data+h}return e.sendTransaction(d,o)}}}}(e)}},{"ethjs-abi":731,"ethjs-filter":743,"ethjs-util":759,"js-sha3":815}],743:[function(e,t,r){"use strict";function n(e,t){function r(e){var r=this;r.filterId=null,r.options=Object.assign({delay:300,decoder:function(e){return e},defaultFilterObject:{}},e||{}),r.watchers={},r.interval=setInterval((function(){null!==r.filterId&&Object.keys(r.watchers).length>0&&t.getFilterChanges(r.filterId,(function(e,t){var n=[],i=null;if(!e)try{t.forEach((function(e,i){n[i]=t[i],n[i].data=r.options.decoder(n[i].data)}))}catch(e){i=new Error("[ethjs-filter] while decoding filter change event data from RPC '"+JSON.stringify(n)+"': "+e)}Object.keys(r.watchers).forEach((function(o){var a=r.watchers[o];!0!==a.stop?i?(a.reject(i),a.callback(i,null)):(e?a.reject(e):Array.isArray(n)&&t.length>0&&a.resolve(n),a.callback(e,n)):delete r.watchers[o]}))}))}),r.options.delay)}return r.prototype.at=function(e){this.filterId=e},r.prototype.watch=function(e){var t=e||function(){},r=this,n=Math.random().toString(36).substring(7),i=new Promise((function(e,i){r.watchers[n]={resolve:e,reject:i,callback:t,stop:!1}}));return i.stopWatching=function(){r.watchers[n].stop=!0},i},r.prototype.uninstall=function(e){var r=this,n=e||function(){};return r.watchers=Object.assign({}),clearInterval(r.interval),new Promise((function(e,i){t.uninstallFilter(r.filterId,(function(t,r){t?i(t):e(r),n(t,r)}))}))},r.prototype.new=function(){var r=function(){},n=this,i=[],o=[].slice.call(arguments);return"function"==typeof o[o.length-1]&&(r=o.pop()),"Filter"===e&&i.push(Object.assign(n.options.defaultFilterObject,o[o.length-1]||{})),new Promise((function(o,a){i.push((function(e,t){e?a(e):(n.filterId=t,o(t)),r(e,t)})),t["new"+e].apply(t,i)}))},r}t.exports=function e(t){if(!(this instanceof e))throw new Error("the EthFilter object must be instantiated with `new` flag.. (e.g. `const filters = new EthFilter(query);`)");if("object"!=typeof t)throw new Error("the EthFilter object must be instantiated with an EthQuery instance (e.g. `const filters = new EthFilter(new EthQuery(provider));`). See github.com/ethjs/ethjs-query for more details..");this.Filter=n("Filter",t),this.BlockFilter=n("BlockFilter",t),this.PendingTransactionFilter=n("PendingTransactionFilter",t)}},{}],744:[function(e,t,r){"use strict";var n=e("ethjs-schema"),i=e("ethjs-util"),o=e("number-to-bn"),a=e("strip-hex-prefix"),s=i.padToEven,c=i.arrayContainsArray,u=i.getBinarySize;function l(e,t){if(-1===["string","number","object"].indexOf(typeof e)||null===e)return e;var r=o(e);if(o(e).isNeg())throw new Error("[ethjs-format] while formatting quantity '"+r.toString(10)+"', invalid negative number. Number must be positive or zero.");return t?"0x"+r.toString(16):r}function f(e,t){var r=e;return-1===n.tags.indexOf(e)&&(r=l(e,t)),r}function d(e,t){var r=e,n=0;if("string"==typeof e&&(r="0x"+s(a(e)),n=u(r)),"0x00"===r&&(r="0x0"),"number"==typeof t&&null!==e&&"0x"!==r&&"0x0"!==r&&(!/^[0-9A-Fa-f]+$/.test(a(r))||n!==2+2*t))throw new Error("[ethjs-format] hex string '"+r+"' must be an alphanumeric "+(2+2*t)+" utf8 byte hex (chars: a-fA-F) string, is "+n+" bytes");return r}function h(e,t,r){var i=Object.assign({},t),o=null;if("string"==typeof e&&(o="Boolean|EthSyncing"===e?Object.assign({},n.objects.EthSyncing):"DATA|Transaction"===e?Object.assign({},n.objects.Transaction):Object.assign({},n.objects[e])),!c(Object.keys(t),o.__required))throw new Error("[ethjs-format] object "+JSON.stringify(t)+" must contain properties: "+o.__required.join(", "));return Object.keys(o).forEach((function(e){"__required"!==e&&void 0!==t[e]&&(i[e]=m(o[e],t[e],r))})),i}function p(e,t,r,n){var i=t.slice(),o=e;if("Array|DATA"===e&&(o=["D"]),"FilterChange"===e&&"string"==typeof t[0]&&(o=["D32"]),!0===r&&"number"==typeof n&&t.length<n)throw new Error("array "+JSON.stringify(t)+" must contain at least "+n+" params, but only contains "+t.length+".");return o=o.slice(),t.forEach((function(e,t){var n=0;o.length>1&&(n=t),i[t]=m(o[n],e,r)})),i}function m(e,t,r,n){var i=t;return"Q"===e?i=l(t,r):"Q|T"===e?i=f(t,r):"D"===e?i=d(t):"D20"===e?i=d(t,20):"D32"===e?i=d(t,32):"object"==typeof t&&null!==t&&!1===Array.isArray(t)?i=h(e,t,r):Array.isArray(t)&&(i=p(e,t,r,n)),i}t.exports={schema:n,formatQuantity:l,formatQuantityOrTag:f,formatObject:h,formatArray:p,format:m,formatInputs:function(e,t){return m(n.methods[e][0],t,!0,n.methods[e][2])},formatOutputs:function(e,t){return m(n.methods[e][1],t,!1)}}},{"ethjs-schema":747,"ethjs-util":759,"number-to-bn":895,"strip-hex-prefix":1081}],745:[function(e,t,r){"use strict";var n=e("ethjs-format"),i=e("ethjs-rpc");function o(e,t){var r=t||{};if(!(this instanceof o))throw new Error('[ethjs-query] the Eth object requires the "new" flag in order to function normally (i.e. `const eth = new Eth(provider);`).');if("object"!=typeof e)throw new Error("[ethjs-query] the Eth object requires that the first input 'provider' must be an object, got '"+typeof e+"' (i.e. 'const eth = new Eth(provider);')");this.options=Object.assign({debug:r.debug||!1,logger:r.logger||console,jsonSpace:r.jsonSpace||0}),this.rpc=new i(e),this.setProvider=this.rpc.setProvider}t.exports=o,o.prototype.log=function(e){this.options.debug&&this.options.logger.log("[ethjs-query log] "+e)},Object.keys(n.schema.methods).forEach((function(e){var t,r;Object.defineProperty(o.prototype,e.replace("eth_",""),{enumerable:!0,value:(t=e,r=n.schema.methods[e],function(){var e=function(){},i=null,o=this,a=[].slice.call(arguments),s=t.replace("eth_","");return a.length>0&&"function"==typeof a[a.length-1]&&(e=a.pop()),new Promise((function(c,u){var l=function(r,i){if(r)u(r),e(r,null);else try{o.log("attempting method formatting for '"+s+"' with raw outputs: "+JSON.stringify(i,null,o.options.jsonSpace));var a=n.formatOutputs(t,i);o.log("method formatting success for '"+s+"' formatted result: "+JSON.stringify(a,null,o.options.jsonSpace)),c(a),e(null,a)}catch(t){var l=new Error("[ethjs-query] while formatting outputs from RPC '"+JSON.stringify(i,null,o.options.jsonSpace)+"' for method '"+s+"' "+t);u(l),e(l,null)}};if(a.length<r[2])return l(new Error("[ethjs-query] method '"+s+"' requires at least "+r[2]+" input (format type "+r[0][0]+"), "+a.length+" provided. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+t.toLowerCase()));if(a.length>r[0].length)return l(new Error("[ethjs-query] method '"+s+"' requires at most "+r[0].length+" params, "+a.length+" provided '"+JSON.stringify(a,null,o.options.jsonSpace)+"'. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+t.toLowerCase()));r[3]&&a.length<r[3]&&a.push("latest"),o.log("attempting method formatting for '"+s+"' with inputs "+JSON.stringify(a,null,o.options.jsonSpace));try{i=n.formatInputs(t,a),o.log("method formatting success for '"+s+"' with formatted result: "+JSON.stringify(i,null,o.options.jsonSpace))}catch(e){return l(new Error("[ethjs-query] while formatting inputs '"+JSON.stringify(a,null,o.options.jsonSpace)+"' for method '"+s+"' error: "+e))}return o.rpc.sendAsync({method:t,params:i},l)}))})})}))},{"ethjs-format":744,"ethjs-rpc":746}],746:[function(e,t,r){"use strict";function n(e,t){var r=this,i=t||{};if(!(this instanceof n))throw new Error('[ethjs-rpc] the EthRPC object requires the "new" flag in order to function normally (i.e. `const eth = new EthRPC(provider);`).');r.options=Object.assign({jsonSpace:i.jsonSpace||0,max:i.max||9999999999999}),r.idCounter=Math.floor(Math.random()*r.options.max),r.setProvider=function(e){if("object"!=typeof e)throw new Error("[ethjs-rpc] the EthRPC object requires that the first input 'provider' must be an object, got '"+typeof e+"' (i.e. 'const eth = new EthRPC(provider);')");r.currentProvider=e},r.setProvider(e)}t.exports=n,n.prototype.sendAsync=function(e,t){var r=this;r.idCounter=r.idCounter%r.options.max;var n,i,o=(n=e,i=r.idCounter++,Object.assign({},{id:i,jsonrpc:"2.0",params:[]},n));r.currentProvider.sendAsync(o,(function(e,n){var i=n||{};if(e||i.error){var a="[ethjs-rpc] "+(i.error?"rpc":"")+" error with payload "+JSON.stringify(o,null,r.options.jsonSpace)+" "+(String(e)||JSON.stringify(i.error,null,r.options.jsonSpace)),s=new Error(a);return s.value=e||i.error,t(s,null)}return t(null,i.result)}))}},{}],747:[function(e,t,r){t.exports={methods:{web3_clientVersion:[[],"S"],web3_sha3:[["S"],"D",1],net_version:[[],"S"],net_peerCount:[[],"Q"],net_listening:[[],"B"],personal_sign:[["D20","D","S"],"D",2],personal_ecRecover:[["D","D"],"D20",2],eth_protocolVersion:[[],"S"],eth_syncing:[[],"Boolean|EthSyncing"],eth_coinbase:[[],"D20"],eth_mining:[[],"B"],eth_hashrate:[[],"Q"],eth_gasPrice:[[],"Q"],eth_accounts:[[],["D20"]],eth_blockNumber:[[],"Q"],eth_getBalance:[["D20","Q|T"],"Q",1,2],eth_getStorageAt:[["D20","Q","Q|T"],"D",2,2],eth_getTransactionCount:[["D20","Q|T"],"Q",1,2],eth_getBlockTransactionCountByHash:[["D32"],"Q",1],eth_getBlockTransactionCountByNumber:[["Q|T"],"Q",1],eth_getUncleCountByBlockHash:[["D32"],"Q",1],eth_getUncleCountByBlockNumber:[["Q"],"Q",1],eth_getCode:[["D20","Q|T"],"D",1,2],eth_sign:[["D20","D32"],"D",2],eth_sendTransaction:[["SendTransaction"],"D",1],eth_sendRawTransaction:[["D"],"D32",1],eth_call:[["CallTransaction","Q|T"],"D",1,2],eth_estimateGas:[["EstimateTransaction","Q|T"],"Q",1],eth_getBlockByHash:[["D32","B"],"Block",2],eth_getBlockByNumber:[["Q|T","B"],"Block",2],eth_getTransactionByHash:[["D32"],"Transaction",1],eth_getTransactionByBlockHashAndIndex:[["D32","Q"],"Transaction",2],eth_getTransactionByBlockNumberAndIndex:[["Q|T","Q"],"Transaction",2],eth_getTransactionReceipt:[["D32"],"Receipt",1],eth_getUncleByBlockHashAndIndex:[["D32","Q"],"Block",1],eth_getUncleByBlockNumberAndIndex:[["Q|T","Q"],"Block",2],eth_getCompilers:[[],["S"]],eth_compileLLL:[["S"],"D",1],eth_compileSolidity:[["S"],"D",1],eth_compileSerpent:[["S"],"D",1],eth_newFilter:[["Filter"],"Q",1],eth_newBlockFilter:[[],"Q"],eth_newPendingTransactionFilter:[[],"Q"],eth_uninstallFilter:[["Q"],"B",1],eth_getFilterChanges:[["Q"],["FilterChange"],1],eth_getFilterLogs:[["Q"],["FilterChange"],1],eth_getLogs:[["Filter"],["FilterChange"],1],eth_getWork:[[],["D"]],eth_submitWork:[["D","D32","D32"],"B",3],eth_submitHashrate:[["D","D"],"B",2],db_putString:[["S","S","S"],"B",2],db_getString:[["S","S"],"S",2],db_putHex:[["S","S","D"],"B",2],db_getHex:[["S","S"],"D",2],shh_post:[["SHHPost"],"B",1],shh_version:[[],"S"],shh_newIdentity:[[],"D"],shh_hasIdentity:[["D"],"B"],shh_newGroup:[[],"D"],shh_addToGroup:[["D"],"B",1],shh_newFilter:[["SHHFilter"],"Q",1],shh_uninstallFilter:[["Q"],"B",1],shh_getFilterChanges:[["Q"],["SHHFilterChange"],1],shh_getMessages:[["Q"],["SHHFilterChange"],1]},tags:["latest","earliest","pending"],objects:{EthSyncing:{__required:[],startingBlock:"Q",currentBlock:"Q",highestBlock:"Q"},SendTransaction:{__required:["from","data"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},EstimateTransaction:{__required:[],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},CallTransaction:{__required:["to"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},Block:{__required:[],number:"Q",hash:"D32",parentHash:"D32",nonce:"D",sha3Uncles:"D",logsBloom:"D",transactionsRoot:"D",stateRoot:"D",receiptsRoot:"D",miner:"D",difficulty:"Q",totalDifficulty:"Q",extraData:"D",size:"Q",gasLimit:"Q",gasUsed:"Q",timestamp:"Q",transactions:["DATA|Transaction"],uncles:["D"]},Transaction:{__required:[],hash:"D32",nonce:"Q",blockHash:"D32",blockNumber:"Q",transactionIndex:"Q",from:"D20",to:"D20",value:"Q",gasPrice:"Q",gas:"Q",input:"D"},Receipt:{__required:[],transactionHash:"D32",transactionIndex:"Q",blockHash:"D32",blockNumber:"Q",cumulativeGasUsed:"Q",gasUsed:"Q",contractAddress:"D20",logs:["FilterChange"]},Filter:{__required:[],fromBlock:"Q|T",toBlock:"Q|T",address:"Array|Data",topics:["D"]},FilterChange:{__required:[],removed:"B",logIndex:"Q",transactionIndex:"Q",transactionHash:"D32",blockHash:"D32",blockNumber:"Q",address:"D20",data:"Array|DATA",topics:["D"]},SHHPost:{__required:["topics","payload","priority","ttl"],from:"D",to:"D",topics:["D"],payload:"D",priority:"Q",ttl:"Q"},SHHFilter:{__required:["topics"],to:"D",topics:["D"]},SHHFilterChange:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"},SHHMessage:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"}}}},{}],748:[function(e,t,r){"use strict";function n(e,t){function r(e){var r=this;r.filterId=null,r.options=Object.assign({delay:300,decoder:function(e){return e},defaultFilterObject:{}},e||{}),r.watchers={},r.interval=setInterval((function(){null!==r.filterId&&Object.keys(r.watchers).length>0&&t.getFilterChanges(r.filterId,(function(e,t){var n=[],i=null;if(!e)try{t.forEach((function(e,i){n[i]=t[i],"object"==typeof t[i]&&(n[i].data=r.options.decoder(n[i].data))}))}catch(e){i=new Error("[ethjs-filter] while decoding filter change event data from RPC '"+JSON.stringify(n)+"': "+e)}Object.keys(r.watchers).forEach((function(o){var a=r.watchers[o];!0!==a.stop?i?a.callback(i,null):e?a.callback(e,null):Array.isArray(n)&&t.length>0&&a.callback(e,n):delete r.watchers[o]}))}))}),r.options.delay)}return r.prototype.at=function(e){this.filterId=e},r.prototype.watch=function(e){var t=e||function(){},r=this,n=Math.random().toString(36).substring(7);return r.watchers[n]={callback:t,stop:!1,stopWatching:function(){r.watchers[n].stop=!0}},r.watchers[n]},r.prototype.uninstall=function(e){var r=this,n=e||null;r.watchers=Object.assign({}),clearInterval(r.interval);var i=new Promise((function(e,n){t.uninstallFilter(r.filterId,(function(t,r){t?n(t):e(r)}))}));return n&&i.then((function(e){return n(null,e)})).catch((function(e){return n(e,null)})),n?null:i},r.prototype.new=function(){var r=null,n=this,i=[],o=[].slice.call(arguments);"function"==typeof o[o.length-1]&&(r=o.pop()),"Filter"===e&&i.push(Object.assign(n.options.defaultFilterObject,o[o.length-1]||{}));var a=new Promise((function(r,o){i.push((function(e,t){e?o(e):(n.filterId=t,r(t))})),t["new"+e].apply(t,i)}));return r&&a.then((function(e){return r(null,e)})).catch((function(e){return r(e,null)})),r?null:a},r}t.exports=function e(t){if(!(this instanceof e))throw new Error("the EthFilter object must be instantiated with `new` flag.. (e.g. `const filters = new EthFilter(query);`)");if("object"!=typeof t)throw new Error("the EthFilter object must be instantiated with an EthQuery instance (e.g. `const filters = new EthFilter(new EthQuery(provider));`). See github.com/ethjs/ethjs-query for more details..");this.Filter=n("Filter",t),this.BlockFilter=n("BlockFilter",t),this.PendingTransactionFilter=n("PendingTransactionFilter",t)}},{}],749:[function(e,t,r){"use strict";var n=e("ethjs-schema"),i=e("ethjs-util"),o=e("number-to-bn"),a=e("strip-hex-prefix"),s=i.padToEven,c=i.arrayContainsArray,u=i.getBinarySize;function l(e,t,r){if(-1===["string","number","object"].indexOf(typeof e)||null===e)return e;var n=o(e),i=r&&n.toString(16).length%2?"0":"";if(o(e).isNeg())throw new Error("[ethjs-format] while formatting quantity '"+n.toString(10)+"', invalid negative number. Number must be positive or zero.");return t?"0x"+i+n.toString(16):n}function f(e,t){var r=e;return-1===n.tags.indexOf(e)&&(r=l(e,t)),r}function d(e,t){var r=e,n=0;if("string"==typeof e&&(r="0x"+s(a(e)),n=u(r)),"0x00"===r&&(r="0x0"),"number"==typeof t&&null!==e&&"0x"!==r&&"0x0"!==r&&(!/^[0-9A-Fa-f]+$/.test(a(r))||n!==2+2*t))throw new Error("[ethjs-format] hex string '"+r+"' must be an alphanumeric "+(2+2*t)+" utf8 byte hex (chars: a-fA-F) string, is "+n+" bytes");return r}function h(e,t,r){var i=Object.assign({},t),o=null;if("string"==typeof e&&(o="Boolean|EthSyncing"===e?Object.assign({},n.objects.EthSyncing):"DATA|Transaction"===e?Object.assign({},n.objects.Transaction):Object.assign({},n.objects[e])),!c(Object.keys(t),o.__required))throw new Error("[ethjs-format] object "+JSON.stringify(t)+" must contain properties: "+o.__required.join(", "));return Object.keys(o).forEach((function(e){"__required"!==e&&void 0!==t[e]&&(i[e]=m(o[e],t[e],r))})),i}function p(e,t,r,n){var i=t.slice(),o=e;if("Array|DATA"===e&&(o=["D"]),"FilterChange"===e&&"string"==typeof t[0]&&(o=["D32"]),!0===r&&"number"==typeof n&&t.length<n)throw new Error("array "+JSON.stringify(t)+" must contain at least "+n+" params, but only contains "+t.length+".");return o=o.slice(),t.forEach((function(e,t){var n=0;o.length>1&&(n=t),i[t]=m(o[n],e,r)})),i}function m(e,t,r,n){var i=t;return"Q"===e?i=l(t,r):"QP"===e?i=l(t,r,!0):"Q|T"===e?i=f(t,r):"D"===e?i=d(t):"D20"===e?i=d(t,20):"D32"===e?i=d(t,32):"object"==typeof t&&null!==t&&!1===Array.isArray(t)?i=h(e,t,r):Array.isArray(t)&&(i=p(e,t,r,n)),i}t.exports={schema:n,formatQuantity:l,formatQuantityOrTag:f,formatObject:h,formatArray:p,format:m,formatInputs:function(e,t){return m(n.methods[e][0],t,!0,n.methods[e][2])},formatOutputs:function(e,t){return m(n.methods[e][1],t,!1)}}},{"ethjs-schema":756,"ethjs-util":759,"number-to-bn":895,"strip-hex-prefix":1081}],750:[function(e,t,r){"use strict";var n=e("xhr2");function i(e,t){if(!(this instanceof i))throw new Error('[ethjs-provider-http] the HttpProvider instance requires the "new" flag in order to function normally (e.g. `const eth = new Eth(new HttpProvider());`).');if("string"!=typeof e)throw new Error('[ethjs-provider-http] the HttpProvider instance requires that the host be specified (e.g. `new HttpProvider("http://localhost:8545")` or via service like infura `new HttpProvider("http://ropsten.infura.io")`)');this.host=e,this.timeout=t||0}i.prototype.sendAsync=function(e,t){var r=this,i=new n;i.timeout=r.timeout,i.open("POST",r.host,!0),i.setRequestHeader("Content-Type","application/json"),i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var e=i.responseText,n=null;try{e=JSON.parse(e)}catch(e){n=function(e,t){var r=new Error("[ethjs-provider-http] Invalid JSON RPC response from provider\n host: "+t+"\n response: "+String(e.responseText)+" "+JSON.stringify(e.responseText,null,2)+"\n responseURL: "+e.responseURL+"\n status: "+e.status+"\n statusText: "+e.statusText+"\n ");return r.value=e,r}(i,r.host)}t(n,e)}},i.ontimeout=function(){t("[ethjs-provider-http] CONNECTION TIMEOUT: http request timeout after "+r.timeout+" ms. (i.e. your connect has timed out for whatever reason, check your provider).",null)};try{i.send(JSON.stringify(e))}catch(e){t("[ethjs-provider-http] CONNECTION ERROR: Couldn't connect to node '"+r.host+"': "+JSON.stringify(e,null,2),null)}},t.exports=i},{xhr2:1266}],751:[function(e,t,r){"use strict";var n=e("ethjs-format"),i=e("ethjs-rpc");function o(e,t){var r=t||{};if(!(this instanceof o))throw new Error('[ethjs-query] the Eth object requires the "new" flag in order to function normally (i.e. `const eth = new Eth(provider);`).');if("object"!=typeof e)throw new Error("[ethjs-query] the Eth object requires that the first input 'provider' must be an object, got '"+typeof e+"' (i.e. 'const eth = new Eth(provider);')");this.options=Object.assign({debug:r.debug||!1,logger:r.logger||console,jsonSpace:r.jsonSpace||0}),this.rpc=new i(e),this.setProvider=this.rpc.setProvider}t.exports=o,o.prototype.log=function(e){this.options.debug&&this.options.logger.log("[ethjs-query log] "+e)},Object.keys(n.schema.methods).forEach((function(e){var t,r;Object.defineProperty(o.prototype,e.replace("eth_",""),{enumerable:!0,value:(t=e,r=n.schema.methods[e],function(){var e=null,i=null,o=this,a=[].slice.call(arguments),s=t.replace("eth_","");a.length>0&&"function"==typeof a[a.length-1]&&(e=a.pop());var c=new Promise((function(e,c){var u=function(r,i){if(r)c(r);else try{o.log("attempting method formatting for '"+s+"' with raw outputs: "+JSON.stringify(i,null,o.options.jsonSpace));var a=n.formatOutputs(t,i);o.log("method formatting success for '"+s+"' formatted result: "+JSON.stringify(a,null,o.options.jsonSpace)),e(a)}catch(e){var u=new Error("[ethjs-query] while formatting outputs from RPC '"+JSON.stringify(i,null,o.options.jsonSpace)+"' for method '"+s+"' "+e);c(u)}};if(a.length<r[2])return u(new Error("[ethjs-query] method '"+s+"' requires at least "+r[2]+" input (format type "+r[0][0]+"), "+a.length+" provided. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+t.toLowerCase()));if(a.length>r[0].length)return u(new Error("[ethjs-query] method '"+s+"' requires at most "+r[0].length+" params, "+a.length+" provided '"+JSON.stringify(a,null,o.options.jsonSpace)+"'. For more information visit: https://github.com/ethereum/wiki/wiki/JSON-RPC#"+t.toLowerCase()));r[3]&&a.length<r[3]&&a.push("latest"),o.log("attempting method formatting for '"+s+"' with inputs "+JSON.stringify(a,null,o.options.jsonSpace));try{i=n.formatInputs(t,a),o.log("method formatting success for '"+s+"' with formatted result: "+JSON.stringify(i,null,o.options.jsonSpace))}catch(e){return u(new Error("[ethjs-query] while formatting inputs '"+JSON.stringify(a,null,o.options.jsonSpace)+"' for method '"+s+"' error: "+e))}return o.rpc.sendAsync({method:t,params:i},u)}));if(!e)return c;c.then((function(t){return e(null,t)})).catch((function(t){return e(t,null)}))})})}))},{"ethjs-format":752,"ethjs-rpc":753}],752:[function(e,t,r){arguments[4][744][0].apply(r,arguments)},{dup:744,"ethjs-schema":754,"ethjs-util":759,"number-to-bn":895,"strip-hex-prefix":1081}],753:[function(e,t,r){"use strict";function n(e,t){var r=this,i=t||{};if(!(this instanceof n))throw new Error('[ethjs-rpc] the EthRPC object requires the "new" flag in order to function normally (i.e. `const eth = new EthRPC(provider);`).');r.options=Object.assign({jsonSpace:i.jsonSpace||0,max:i.max||9999999999999}),r.idCounter=Math.floor(Math.random()*r.options.max),r.setProvider=function(e){if("object"!=typeof e)throw new Error("[ethjs-rpc] the EthRPC object requires that the first input 'provider' must be an object, got '"+typeof e+"' (i.e. 'const eth = new EthRPC(provider);')");r.currentProvider=e},r.setProvider(e)}t.exports=n,n.prototype.sendAsync=function(e,t){var r=this;r.idCounter=r.idCounter%r.options.max;var n,i,o=(n=e,i=r.idCounter++,Object.assign({},{id:i,jsonrpc:"2.0",params:[]},n)),a=new Promise((function(e,t){r.currentProvider.sendAsync(o,(function(n,i){var a=i||{};if(n||a.error){var s="[ethjs-rpc] "+(a.error?"rpc":"")+" error with payload "+JSON.stringify(o,null,r.options.jsonSpace)+" "+(n?String(n):JSON.stringify(a.error,null,r.options.jsonSpace)),c=new Error(s);return c.value=n||a.error,void t(c)}e(a.result)}))}));if(!t)return a;a.then((function(e){t(null,e)})).catch((function(e){t(e)}))}},{}],754:[function(e,t,r){t.exports={methods:{web3_clientVersion:[[],"S"],web3_sha3:[["S"],"D",1],net_version:[[],"S"],net_peerCount:[[],"Q"],net_listening:[[],"B"],personal_sign:[["D","D20","S"],"D",2],personal_ecRecover:[["D","D"],"D20",2],eth_protocolVersion:[[],"S"],eth_syncing:[[],"B|EthSyncing"],eth_coinbase:[[],"D20"],eth_mining:[[],"B"],eth_hashrate:[[],"Q"],eth_gasPrice:[[],"Q"],eth_accounts:[[],["D20"]],eth_blockNumber:[[],"Q"],eth_getBalance:[["D20","Q|T"],"Q",1,2],eth_getStorageAt:[["D20","Q","Q|T"],"D",2,2],eth_getTransactionCount:[["D20","Q|T"],"Q",1,2],eth_getBlockTransactionCountByHash:[["D32"],"Q",1],eth_getBlockTransactionCountByNumber:[["Q|T"],"Q",1],eth_getUncleCountByBlockHash:[["D32"],"Q",1],eth_getUncleCountByBlockNumber:[["Q"],"Q",1],eth_getCode:[["D20","Q|T"],"D",1,2],eth_sign:[["D20","D"],"D",2],eth_signTypedData:[["Array|DATA","D20"],"D",1],eth_sendTransaction:[["SendTransaction"],"D",1],eth_sendRawTransaction:[["D"],"D32",1],eth_call:[["CallTransaction","Q|T"],"D",1,2],eth_estimateGas:[["EstimateTransaction","Q|T"],"Q",1],eth_getBlockByHash:[["D32","B"],"Block",2],eth_getBlockByNumber:[["Q|T","B"],"Block",2],eth_getTransactionByHash:[["D32"],"Transaction",1],eth_getTransactionByBlockHashAndIndex:[["D32","Q"],"Transaction",2],eth_getTransactionByBlockNumberAndIndex:[["Q|T","Q"],"Transaction",2],eth_getTransactionReceipt:[["D32"],"Receipt",1],eth_getUncleByBlockHashAndIndex:[["D32","Q"],"Block",1],eth_getUncleByBlockNumberAndIndex:[["Q|T","Q"],"Block",2],eth_getCompilers:[[],["S"]],eth_compileLLL:[["S"],"D",1],eth_compileSolidity:[["S"],"D",1],eth_compileSerpent:[["S"],"D",1],eth_newFilter:[["Filter"],"Q",1],eth_newBlockFilter:[[],"Q"],eth_newPendingTransactionFilter:[[],"Q"],eth_uninstallFilter:[["Q"],"B",1],eth_getFilterChanges:[["Q"],["FilterChange"],1],eth_getFilterLogs:[["Q"],["FilterChange"],1],eth_getLogs:[["Filter"],["FilterChange"],1],eth_getWork:[[],["D"]],eth_submitWork:[["D","D32","D32"],"B",3],eth_submitHashrate:[["D","D"],"B",2],db_putString:[["S","S","S"],"B",2],db_getString:[["S","S"],"S",2],db_putHex:[["S","S","D"],"B",2],db_getHex:[["S","S"],"D",2],shh_post:[["SHHPost"],"B",1],shh_version:[[],"S"],shh_newIdentity:[[],"D"],shh_hasIdentity:[["D"],"B"],shh_newGroup:[[],"D"],shh_addToGroup:[["D"],"B",1],shh_newFilter:[["SHHFilter"],"Q",1],shh_uninstallFilter:[["Q"],"B",1],shh_getFilterChanges:[["Q"],["SHHFilterChange"],1],shh_getMessages:[["Q"],["SHHFilterChange"],1]},tags:["latest","earliest","pending"],objects:{EthSyncing:{__required:[],startingBlock:"Q",currentBlock:"Q",highestBlock:"Q"},SendTransaction:{__required:["from","data"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},EstimateTransaction:{__required:[],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},CallTransaction:{__required:["to"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},Block:{__required:[],number:"Q",hash:"D32",parentHash:"D32",nonce:"D",sha3Uncles:"D",logsBloom:"D",transactionsRoot:"D",stateRoot:"D",receiptsRoot:"D",miner:"D",difficulty:"Q",totalDifficulty:"Q",extraData:"D",size:"Q",gasLimit:"Q",gasUsed:"Q",timestamp:"Q",transactions:["DATA|Transaction"],uncles:["D"]},Transaction:{__required:[],hash:"D32",nonce:"Q",blockHash:"D32",blockNumber:"Q",transactionIndex:"Q",from:"D20",to:"D20",value:"Q",gasPrice:"Q",gas:"Q",input:"D"},Receipt:{__required:[],transactionHash:"D32",transactionIndex:"Q",blockHash:"D32",blockNumber:"Q",cumulativeGasUsed:"Q",gasUsed:"Q",contractAddress:"D20",logs:["FilterChange"]},Filter:{__required:[],fromBlock:"Q|T",toBlock:"Q|T",address:"D20",topics:["D"]},FilterChange:{__required:[],removed:"B",logIndex:"Q",transactionIndex:"Q",transactionHash:"D32",blockHash:"D32",blockNumber:"Q",address:"D20",data:"Array|DATA",topics:["D"]},SHHPost:{__required:["topics","payload","priority","ttl"],from:"D",to:"D",topics:["D"],payload:"D",priority:"Q",ttl:"Q"},SHHFilter:{__required:["topics"],to:"D",topics:["D"]},SHHFilterChange:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"},SHHMessage:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"}}}},{}],755:[function(e,t,r){"use strict";var n=e("promise-to-callback");function i(e,t){var r=this,n=t||{};if(!(this instanceof i))throw new Error('[ethjs-rpc] the EthRPC object requires the "new" flag in order to function normally (i.e. `const eth = new EthRPC(provider);`).');r.options=Object.assign({jsonSpace:n.jsonSpace||0,max:n.max||9999999999999}),r.idCounter=Math.floor(Math.random()*r.options.max),r.setProvider=function(e){if("object"!=typeof e)throw new Error("[ethjs-rpc] the EthRPC object requires that the first input 'provider' must be an object, got '"+typeof e+"' (i.e. 'const eth = new EthRPC(provider);')");r.currentProvider=e},r.setProvider(e)}t.exports=i,i.prototype.sendAsync=function(e,t){var r=this;r.idCounter=r.idCounter%r.options.max;var i,o,a=(i=e,o=r.idCounter++,Object.assign({},{id:o,jsonrpc:"2.0",params:[]},i)),s=new Promise((function(e,t){r.currentProvider.sendAsync(a,(function(n,i){var o=i||{};if(n||o.error){var s="[ethjs-rpc] "+(o.error?"rpc":"")+" error with payload "+JSON.stringify(a,null,r.options.jsonSpace)+" "+(n?String(n):JSON.stringify(o.error,null,r.options.jsonSpace)),c=new Error(s);return c.value=n||o.error,void t(c)}e(o.result)}))}));return t?n(s)(t):s}},{"promise-to-callback":953}],756:[function(e,t,r){t.exports={methods:{web3_clientVersion:[[],"S"],web3_sha3:[["S"],"D",1],net_version:[[],"S"],net_peerCount:[[],"Q"],net_listening:[[],"B"],personal_sign:[["D","D20","S"],"D",2],personal_ecRecover:[["D","D"],"D20",2],eth_protocolVersion:[[],"S"],eth_syncing:[[],"B|EthSyncing"],eth_coinbase:[[],"D20"],eth_mining:[[],"B"],eth_hashrate:[[],"Q"],eth_gasPrice:[[],"Q"],eth_accounts:[[],["D20"]],eth_blockNumber:[[],"Q"],eth_getBalance:[["D20","Q|T"],"Q",1,2],eth_getStorageAt:[["D20","Q","Q|T"],"D",2,2],eth_getTransactionCount:[["D20","Q|T"],"Q",1,2],eth_getBlockTransactionCountByHash:[["D32"],"Q",1],eth_getBlockTransactionCountByNumber:[["Q|T"],"Q",1],eth_getUncleCountByBlockHash:[["D32"],"Q",1],eth_getUncleCountByBlockNumber:[["Q"],"Q",1],eth_getCode:[["D20","Q|T"],"D",1,2],eth_sign:[["D20","D"],"D",2],eth_signTypedData:[["Array|DATA","D20"],"D",1],eth_sendTransaction:[["SendTransaction"],"D",1],eth_sendRawTransaction:[["D"],"D32",1],eth_call:[["CallTransaction","Q|T"],"D",1,2],eth_estimateGas:[["EstimateTransaction","Q|T"],"Q",1],eth_getBlockByHash:[["D32","B"],"Block",2],eth_getBlockByNumber:[["Q|T","B"],"Block",2],eth_getTransactionByHash:[["D32"],"Transaction",1],eth_getTransactionByBlockHashAndIndex:[["D32","Q"],"Transaction",2],eth_getTransactionByBlockNumberAndIndex:[["Q|T","Q"],"Transaction",2],eth_getTransactionReceipt:[["D32"],"Receipt",1],eth_getUncleByBlockHashAndIndex:[["D32","Q"],"Block",1],eth_getUncleByBlockNumberAndIndex:[["Q|T","Q"],"Block",2],eth_getCompilers:[[],["S"]],eth_compileLLL:[["S"],"D",1],eth_compileSolidity:[["S"],"D",1],eth_compileSerpent:[["S"],"D",1],eth_newFilter:[["Filter"],"Q",1],eth_newBlockFilter:[[],"Q"],eth_newPendingTransactionFilter:[[],"Q"],eth_uninstallFilter:[["QP"],"B",1],eth_getFilterChanges:[["QP"],["FilterChange"],1],eth_getFilterLogs:[["QP"],["FilterChange"],1],eth_getLogs:[["Filter"],["FilterChange"],1],eth_getWork:[[],["D"]],eth_submitWork:[["D","D32","D32"],"B",3],eth_submitHashrate:[["D","D"],"B",2],db_putString:[["S","S","S"],"B",2],db_getString:[["S","S"],"S",2],db_putHex:[["S","S","D"],"B",2],db_getHex:[["S","S"],"D",2],shh_post:[["SHHPost"],"B",1],shh_version:[[],"S"],shh_newIdentity:[[],"D"],shh_hasIdentity:[["D"],"B"],shh_newGroup:[[],"D"],shh_addToGroup:[["D"],"B",1],shh_newFilter:[["SHHFilter"],"Q",1],shh_uninstallFilter:[["Q"],"B",1],shh_getFilterChanges:[["Q"],["SHHFilterChange"],1],shh_getMessages:[["Q"],["SHHFilterChange"],1]},tags:["latest","earliest","pending"],objects:{EthSyncing:{__required:[],startingBlock:"Q",currentBlock:"Q",highestBlock:"Q"},SendTransaction:{__required:["from","data"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},EstimateTransaction:{__required:[],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},CallTransaction:{__required:["to"],from:"D20",to:"D20",gas:"Q",gasPrice:"Q",value:"Q",data:"D",nonce:"Q"},Block:{__required:[],number:"Q",hash:"D32",parentHash:"D32",nonce:"D",sha3Uncles:"D",logsBloom:"D",transactionsRoot:"D",stateRoot:"D",receiptsRoot:"D",miner:"D",difficulty:"Q",totalDifficulty:"Q",extraData:"D",size:"Q",gasLimit:"Q",gasUsed:"Q",timestamp:"Q",transactions:["DATA|Transaction"],uncles:["D"]},Transaction:{__required:[],hash:"D32",nonce:"Q",blockHash:"D32",blockNumber:"Q",transactionIndex:"Q",from:"D20",to:"D20",value:"Q",gasPrice:"Q",gas:"Q",input:"D"},Receipt:{__required:[],transactionHash:"D32",transactionIndex:"Q",blockHash:"D32",blockNumber:"Q",cumulativeGasUsed:"Q",gasUsed:"Q",contractAddress:"D20",logs:["FilterChange"]},Filter:{__required:[],fromBlock:"Q|T",toBlock:"Q|T",address:"D20",topics:["D"]},FilterChange:{__required:[],removed:"B",logIndex:"Q",transactionIndex:"Q",transactionHash:"D32",blockHash:"D32",blockNumber:"Q",address:"D20",data:"Array|DATA",topics:["D"]},SHHPost:{__required:["topics","payload","priority","ttl"],from:"D",to:"D",topics:["D"],payload:"D",priority:"Q",ttl:"Q"},SHHFilter:{__required:["topics"],to:"D",topics:["D"]},SHHFilterChange:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"},SHHMessage:{__required:[],hash:"D",from:"D",to:"D",expiry:"Q",ttl:"Q",sent:"Q",topics:["D"],payload:"D",workProved:"Q"}}}},{}],757:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=new n(0),a=new n(-1),s={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(e){var t=e?e.toLowerCase():"ether",r=s[t];if("string"!=typeof r)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(s,null,2));return new n(r,10)}function u(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"==typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}t.exports={unitMap:s,numberToString:u,getValueOfUnit:c,fromWei:function(e,t,r){var n=i(e),u=n.lt(o),l=c(t),f=s[t].length-1||1,d=r||{};u&&(n=n.mul(a));for(var h=n.mod(l).toString(10);h.length<f;)h="0"+h;d.pad||(h=h.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var p=n.div(l).toString(10);d.commify&&(p=p.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=p+("0"==h?"":"."+h);return u&&(m="-"+m),m},toWei:function(e,t){var r=u(e),i=c(t),o=s[t].length-1||1,l="-"===r.substring(0,1);if(l&&(r=r.substring(1)),"."===r)throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var f=r.split(".");if(f.length>2)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal points");var d=f[0],h=f[1];if(d||(d="0"),h||(h="0"),h.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;h.length<o;)h+="0";d=new n(d),h=new n(h);var p=d.mul(i).add(h);return l&&(p=p.mul(a)),new n(p.toString(10),10)}}},{"bn.js":758,"number-to-bn":895}],758:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],759:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+o(e.toString(16))}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return r.from(t.slice(2),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],760:[function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,o,a,s;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function f(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,e))}function d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=f.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var u=c.length,l=m(c,u);for(r=0;r<u;++r)o(l[r],this,t)}return!0},s.prototype.addListener=function(e,t){return l(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return l(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,d(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,d(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,o,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],761:[function(e,t,r){var n=e("safe-buffer").Buffer,i=e("md5.js");t.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,s=n.alloc(a),c=n.alloc(o||0),u=n.alloc(0);a>0||o>0;){var l=new i;l.update(u),l.update(e),t&&l.update(t),u=l.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,u.length),u.copy(s,d,0,f),a-=f}if(f<u.length&&o>0){var h=c.length-o,p=Math.min(o,u.length-f);u.copy(c,h,f,f+p),o-=p}}return u.fill(0),{key:s,iv:c}}},{"md5.js":874,"safe-buffer":1037}],762:[function(e,t,r){(function(r){const n=e("readable-stream").Duplex,i=e("util").inherits;function o(e){n.call(this,{objectMode:!0}),this._port=e,e.onMessage.addListener(this._onMessage.bind(this)),e.onDisconnect.addListener(this._onDisconnect.bind(this))}t.exports=o,i(o,n),o.prototype._onMessage=function(e){if(r.isBuffer(e)){delete e._isBuffer;var t=new r(e);this.push(t)}else this.push(e)},o.prototype._onDisconnect=function(){this.destroy()},o.prototype._read=function(){},o.prototype._write=function(e,t,n){try{if(r.isBuffer(e)){var i=e.toJSON();i._isBuffer=!0,this._port.postMessage(i)}else this._port.postMessage(e)}catch(e){return n(new Error("PortDuplexStream - disconnected"))}n()}}).call(this,e("buffer").Buffer)},{buffer:475,"readable-stream":773,util:1133}],763:[function(e,t,r){(function(e){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,e("_process"))},{_process:952}],764:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=f;var o=e("core-util-is");o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(f,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":766,"./_stream_writable":768,"core-util-is":499,inherits:772,"process-nextick-args":763}],765:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_transform"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":767,"core-util-is":499,inherits:772}],766:[function(e,t,r){(function(r,n){"use strict";var i=e("process-nextick-args");t.exports=v;var o,a=e("isarray");v.ReadableState=b,e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},c=e("./internal/streams/stream"),u=e("safe-buffer").Buffer,l=n.Uint8Array||function(){},f=e("core-util-is");f.inherits=e("inherits");var d=e("util"),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(v,c);var g=["error","close","destroy","pause","resume"];function b(t,r){t=t||{};var n=r instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):E(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),E(e,t)}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){h("emit readable"),e.emit("readable"),O(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?j(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var c=t&&!1===t.end||e===r.stdout||e===r.stderr?b:u;function u(){h("onend"),e.end()}o.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",(function t(r,i){h("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",m),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(n);e.on("drain",l);var f=!1,d=!1;function p(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function m(t){h("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),b()}function g(){h("onfinish"),e.removeListener("close",y),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",y),e.once("finish",g),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=I(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):i.nextTick(T,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(C,e,t))}(this,e)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=j}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":764,"./internal/streams/BufferList":769,"./internal/streams/destroy":770,"./internal/streams/stream":771,_process:952,"core-util-is":499,events:476,inherits:772,isarray:812,"process-nextick-args":763,"safe-buffer":774,"string_decoder/":775,util:442}],767:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_duplex"),i=e("core-util-is");function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},{"./_stream_duplex":764,"core-util-is":499,inherits:772}],768:[function(e,t,r){(function(r,n,i){"use strict";var o=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}t.exports=b;var s,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;b.WritableState=g;var u=e("core-util-is");u.inherits=e("inherits");var l,f={deprecate:e("util-deprecate")},d=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,p=n.Uint8Array||function(){},m=e("./internal/streams/destroy");function y(){}function g(t,r){s=s||e("./_stream_duplex"),t=t||{};var n=r instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,u=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,i);else{var a=x(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?c(w,e,r,a,i):w(e,r,a,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(t){if(s=s||e("./_stream_duplex"),!(l.call(b,this)||this instanceof s))return new b(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=x(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(b,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===b&&e&&e._writableState instanceof g}})):l=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=e,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,o);return c}(this,i,s,e,t,r)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":764,"./internal/streams/destroy":770,"./internal/streams/stream":771,_process:952,"core-util-is":499,inherits:772,"process-nextick-args":763,"safe-buffer":774,timers:1088,"util-deprecate":1130}],769:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":774,util:442}],770:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":763}],771:[function(e,t,r){t.exports=e("events").EventEmitter},{events:476}],772:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],773:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":764,"./lib/_stream_passthrough.js":765,"./lib/_stream_readable.js":766,"./lib/_stream_transform.js":767,"./lib/_stream_writable.js":768}],774:[function(e,t,r){arguments[4][478][0].apply(r,arguments)},{buffer:475,dup:478}],775:[function(e,t,r){arguments[4][479][0].apply(r,arguments)},{dup:479,"safe-buffer":774}],776:[function(e,t,r){const n=["alarms","bookmarks","browserAction","commands","contextMenus","cookies","downloads","events","extension","extensionTypes","history","i18n","idle","notifications","pageAction","runtime","storage","tabs","webNavigation","webRequest","windows"],i="undefined"!=typeof chrome,o="undefined"!=typeof window,a="undefined"!=typeof browser;t.exports=function(){const e=this;if(n.forEach((function(t){if(e[t]=null,i)try{chrome[t]&&(e[t]=chrome[t])}catch(e){}if(o)try{window[t]&&(e[t]=window[t])}catch(e){}if(a){try{browser[t]&&(e[t]=browser[t])}catch(e){}try{e.api=browser.extension[t]}catch(e){}}})),a){try{browser&&browser.runtime&&(this.runtime=browser.runtime)}catch(e){}try{browser&&browser.browserAction&&(this.browserAction=browser.browserAction)}catch(e){}}}},{}],777:[function(e,t,r){const n=e("./extension-instance");t.exports=new n},{"./extension-instance":776}],778:[function(e,t,r){var n={strict:!0},i=e("deep-equal"),o=function(e,t){return i(e,t,n)},a=e("./helpers");r.JsonPatchError=a.PatchError,r.deepClone=a._deepClone;var s={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=u(r,this.path);n&&(n=a._deepClone(n));var i=l(r,{op:"remove",path:this.from}).removed;return l(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=u(r,this.from);return l(r,{op:"add",path:this.path,value:a._deepClone(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:o(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},c={add:function(e,t,r){return a.isInteger(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:s.move,copy:s.copy,test:s.test,_get:s._get};function u(e,t){if(""==t)return e;var r={op:"_get",path:t};return l(e,r),r.value}function l(e,t,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!0),n&&("function"==typeof n?n(t,0,e,t.path):d(t,0)),""===t.path){var l={newDocument:e};if("add"===t.op)return l.newDocument=t.value,l;if("replace"===t.op)return l.newDocument=t.value,l.removed=e,l;if("move"===t.op||"copy"===t.op)return l.newDocument=u(e,t.from),"move"===t.op&&(l.removed=e),l;if("test"===t.op){if(l.test=o(e,t.value),!1===l.test)throw new r.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",0,t,e);return l.newDocument=e,l}if("remove"===t.op)return l.removed=e,l.newDocument=null,l;if("_get"===t.op)return t.value=e,l;if(n)throw new r.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",0,t,e);return l}i||(e=a._deepClone(e));var f=(t.path||"").split("/"),h=e,p=1,m=f.length,y=void 0,g=void 0,b=void 0;for(b="function"==typeof n?n:d;;){if(g=f[p],n&&void 0===y&&(void 0===h[g]?y=f.slice(0,p).join("/"):p==m-1&&(y=t.path),void 0!==y&&b(t,0,e,y)),p++,Array.isArray(h)){if("-"===g)g=h.length;else{if(n&&!a.isInteger(g))throw new r.JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",0,t.path,t);a.isInteger(g)&&(g=~~g)}if(p>=m){if(n&&"add"===t.op&&g>h.length)throw new r.JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",0,t.path,t);if(!1===(l=c[t.op].call(t,h,g,e)).test)throw new r.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",0,t,e);return l}}else if(g&&-1!=g.indexOf("~")&&(g=a.unescapePathComponent(g)),p>=m){if(!1===(l=s[t.op].call(t,h,g,e)).test)throw new r.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",0,t,e);return l}h=h[g]}}function f(e,t,n,i){if(void 0===i&&(i=!0),n&&!Array.isArray(t))throw new r.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");i||(e=a._deepClone(e));for(var o=new Array(t.length),s=0,c=t.length;s<c;s++)o[s]=l(e,t[s],n),e=o[s].newDocument;return o.newDocument=e,o}function d(e,t,n,i){if("object"!=typeof e||null===e||Array.isArray(e))throw new r.JsonPatchError("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,n);if(!s[e.op])throw new r.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,n);if("string"!=typeof e.path)throw new r.JsonPatchError("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,n);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new r.JsonPatchError('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new r.JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new r.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&a.hasUndefined(e.value))throw new r.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var o=e.path.split("/").length,c=i.split("/").length;if(o!==c+1&&o!==c)throw new r.JsonPatchError("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==i)throw new r.JsonPatchError("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var u=h([{op:"_get",path:e.from,value:void 0}],n);if(u&&"OPERATION_PATH_UNRESOLVABLE"===u.name)throw new r.JsonPatchError("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function h(e,t,n){try{if(!Array.isArray(e))throw new r.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)f(a._deepClone(t),a._deepClone(e),n||!0);else{n=n||d;for(var i=0;i<e.length;i++)n(e[i],i,t,void 0)}}catch(e){if(e instanceof r.JsonPatchError)return e;throw e}}r.getValueByPointer=u,r.applyOperation=l,r.applyPatch=f,r.applyReducer=function(e,t){var n=l(e,t);if(!1===n.test)throw new r.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",0,t,e);return n.newDocument},r.validator=d,r.validate=h},{"./helpers":780,"deep-equal":549}],779:[function(e,t,r){e("deep-equal");var n=e("./helpers"),i=e("./core"),o=e("./core");r.applyOperation=o.applyOperation,r.applyPatch=o.applyPatch,r.applyReducer=o.applyReducer,r.getValueByPointer=o.getValueByPointer,r.validate=o.validate,r.validator=o.validator;var a=e("./helpers");r.JsonPatchError=a.PatchError,r.deepClone=a._deepClone,r.escapePathComponent=a.escapePathComponent,r.unescapePathComponent=a.unescapePathComponent;var s=[],c=function(e){this.observers=[],this.obj=e},u=function(e,t){this.callback=e,this.observer=t};function l(e){for(var t,r=0,n=s.length;r<n;r++)if(s[r].obj===e.object){t=s[r];break}f(t.value,e.object,e.patches,""),e.patches.length&&i.applyPatch(t.value,e.patches);var o=e.patches;return o.length>0&&(e.patches=[],e.callback&&e.callback(o)),o}function f(e,t,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=n._objectKeys(t),a=n._objectKeys(e),s=!1,c=a.length-1;c>=0;c--){var u=e[d=a[c]];if(!n.hasOwnProperty(t,d)||void 0===t[d]&&void 0!==u&&!1===Array.isArray(t))r.push({op:"remove",path:i+"/"+n.escapePathComponent(d)}),s=!0;else{var l=t[d];"object"==typeof u&&null!=u&&"object"==typeof l&&null!=l?f(u,l,r,i+"/"+n.escapePathComponent(d)):u!==l&&r.push({op:"replace",path:i+"/"+n.escapePathComponent(d),value:n._deepClone(l)})}}if(s||o.length!=a.length)for(c=0;c<o.length;c++){var d=o[c];n.hasOwnProperty(e,d)||void 0===t[d]||r.push({op:"add",path:i+"/"+n.escapePathComponent(d),value:n._deepClone(t[d])})}}}r.unobserve=function(e,t){t.unobserve()},r.observe=function(e,t){var r,i=function(e){for(var t=0,r=s.length;t<r;t++)if(s[t].obj===e)return s[t]}(e);if(i?r=function(e,t){for(var r=0,n=e.observers.length;r<n;r++)if(e.observers[r].callback===t)return e.observers[r].observer}(i,t):(i=new c(e),s.push(i)),r)return r;if(r={},i.value=n._deepClone(e),t){r.callback=t,r.next=null;var o=function(){l(r)},a=function(){clearTimeout(r.next),r.next=setTimeout(o)};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a)):(document.documentElement.attachEvent("onmouseup",a),document.documentElement.attachEvent("onkeyup",a),document.documentElement.attachEvent("onmousedown",a),document.documentElement.attachEvent("onkeydown",a),document.documentElement.attachEvent("onchange",a)))}return r.patches=[],r.object=e,r.unobserve=function(){l(r),clearTimeout(r.next),function(e,t){for(var r=0,n=e.observers.length;r<n;r++)if(e.observers[r].observer===t)return void e.observers.splice(r,1)}(i,r),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a)):(document.documentElement.detachEvent("onmouseup",a),document.documentElement.detachEvent("onkeyup",a),document.documentElement.detachEvent("onmousedown",a),document.documentElement.detachEvent("onkeydown",a)))},i.observers.push(new u(t,r)),r},r.generate=l,r.compare=function(e,t){var r=[];return f(e,t,r,""),r}},{"./core":778,"./helpers":780,"deep-equal":549}],780:[function(e,t,r){var n=this&&this.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},i=Object.prototype.hasOwnProperty;
|
||
/*!
|
||
* https://github.com/Starcounter-Jack/JSON-Patch
|
||
* (c) 2017 Joachim Wester
|
||
* MIT license
|
||
*/function o(e,t){return i.call(e,t)}function a(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);for(var n in t=[],e)o(e,n)&&t.push(n);return t}function s(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e,t){var r;for(var n in e)if(o(e,n)){if(e[n]===t)return s(n)+"/";if("object"==typeof e[n]&&""!=(r=c(e[n],t)))return s(n)+"/"+r}return""}r.hasOwnProperty=o,r._objectKeys=a,r._deepClone=function(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}},r.isInteger=function(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0},r.escapePathComponent=s,r.unescapePathComponent=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},r._getPathRecursive=c,r.getPath=function(e,t){if(e===t)return"/";var r=c(e,t);if(""===r)throw new Error("Object not found in root");return"/"+r},r.hasUndefined=function e(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var r=0,n=t.length;r<n;r++)if(e(t[r]))return!0}else if("object"==typeof t){var i=a(t),o=i.length;for(r=0;r<o;r++)if(e(t[i[r]]))return!0}return!1};var u=function(e){function t(t,r,n,i,o){e.call(this,t),this.message=t,this.name=r,this.index=n,this.operation=i,this.tree=o}return n(t,e),t}(Error);r.PatchError=u},{}],781:[function(e,t,r){!function(){"use strict";var e;try{e="undefined"!=typeof Intl&&void 0!==Intl.Collator?Intl.Collator("generic",{sensitivity:"base"}):null}catch(e){console.log("Collator could not be initialized and wouldn't be used")}var n=[],i=[],o={get:function(t,r,o){var a,s,c,u,l,f,d=o&&e&&o.useCollator,h=t.length,p=r.length;if(0===h)return p;if(0===p)return h;for(c=0;c<p;++c)n[c]=c,i[c]=r.charCodeAt(c);if(n[p]=p,d)for(c=0;c<h;++c){for(s=c+1,u=0;u<p;++u)a=s,f=0===e.compare(t.charAt(c),String.fromCharCode(i[u])),(s=n[u]+(f?0:1))>(l=a+1)&&(s=l),s>(l=n[u+1]+1)&&(s=l),n[u]=a;n[u]=s}else for(c=0;c<h;++c){for(s=c+1,u=0;u<p;++u)a=s,f=t.charCodeAt(c)===i[u],(s=n[u]+(f?0:1))>(l=a+1)&&(s=l),s>(l=n[u+1]+1)&&(s=l),n[u]=a;n[u]=s}return s}};"undefined"!=typeof define&&null!==define&&define.amd?define((function(){return o})):null!=t&&void 0!==r&&t.exports===r?t.exports=o:"undefined"!=typeof self&&"function"==typeof self.postMessage&&"function"==typeof self.importScripts?self.Levenshtein=o:"undefined"!=typeof window&&null!==window&&(window.Levenshtein=o)}()},{}],782:[function(e,t,r){t.exports=o,o.default=o,o.stable=s,o.stableStringify=s;var n=[],i=[];function o(e,t,r){var o;for(function e(t,r,o,a){var s;if("object"==typeof t&&null!==t){for(s=0;s<o.length;s++)if(o[s]===t){var c=Object.getOwnPropertyDescriptor(a,r);return void(void 0!==c.get?c.configurable?(Object.defineProperty(a,r,{value:"[Circular]"}),n.push([a,r,t,c])):i.push([t,r]):(a[r]="[Circular]",n.push([a,r,t])))}if(o.push(t),Array.isArray(t))for(s=0;s<t.length;s++)e(t[s],s,o,t);else{var u=Object.keys(t);for(s=0;s<u.length;s++){var l=u[s];e(t[l],l,o,t)}}o.pop()}}(e,"",[],void 0),o=0===i.length?JSON.stringify(e,t,r):JSON.stringify(e,c(t),r);0!==n.length;){var a=n.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return o}function a(e,t){return e<t?-1:e>t?1:0}function s(e,t,r){var o,s=function e(t,r,o,s){var c;if("object"==typeof t&&null!==t){for(c=0;c<o.length;c++)if(o[c]===t){var u=Object.getOwnPropertyDescriptor(s,r);return void(void 0!==u.get?u.configurable?(Object.defineProperty(s,r,{value:"[Circular]"}),n.push([s,r,t,u])):i.push([t,r]):(s[r]="[Circular]",n.push([s,r,t])))}if("function"==typeof t.toJSON)return;if(o.push(t),Array.isArray(t))for(c=0;c<t.length;c++)e(t[c],c,o,t);else{var l={},f=Object.keys(t).sort(a);for(c=0;c<f.length;c++){var d=f[c];e(t[d],d,o,t),l[d]=t[d]}if(void 0===s)return l;n.push([s,r,t]),s[r]=l}o.pop()}}(e,"",[],void 0)||e;for(o=0===i.length?JSON.stringify(s,t,r):JSON.stringify(s,c(t),r);0!==n.length;){var u=n.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}return o}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(i.length>0)for(var n=0;n<i.length;n++){var o=i[n];if(o[1]===t&&o[0]===r){r="[Circular]",i.splice(n,1);break}}return e.call(this,t,r)}}},{}],783:[function(e,t,r){!function(e){"use strict";function n(t){var r=t&&t.Promise||e.Promise,n=t&&t.XMLHttpRequest||e.XMLHttpRequest,i=e;return function(){var e=Object.create(i,{fetch:{value:void 0,writable:!0}});return function(e){if(!e.fetch){var t="URLSearchParams"in e,i="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in e,s="ArrayBuffer"in e;if(s)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=function(e){return e&&DataView.prototype.isPrototypeOf(e)},l=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};y.prototype.append=function(e,t){e=h(e),t=p(t);var r=this.map[e];this.map[e]=r?r+","+t:t},y.prototype.delete=function(e){delete this.map[h(e)]},y.prototype.get=function(e){return e=h(e),this.has(e)?this.map[e]:null},y.prototype.has=function(e){return this.map.hasOwnProperty(h(e))},y.prototype.set=function(e,t){this.map[h(e)]=p(t)},y.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},y.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),m(e)},y.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),m(e)},y.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),m(e)},i&&(y.prototype[Symbol.iterator]=y.prototype.entries);var f=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},_.call(x.prototype),_.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var d=[301,302,303,307,308];S.redirect=function(e,t){if(-1===d.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},e.Headers=y,e.Request=x,e.Response=S,e.fetch=function(e,t){return new r((function(r,i){var a=new x(e,t),s=new n;s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new y,e.split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new S(i,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.open(a.method,a.url,!0),"include"===a.credentials&&(s.withCredentials=!0),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),s.send(void 0===a._bodyInit?null:a._bodyInit)}))},e.fetch.polyfill=!0}function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i&&(t[Symbol.iterator]=function(){return t}),t}function y(e){this.map={},e instanceof y?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return r.reject(new TypeError("Already read"));e.bodyUsed=!0}function b(e){return new r((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function v(e){var t=new FileReader,r=b(t);return t.readAsArrayBuffer(e),r}function w(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(o&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(a&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(s&&o&&u(e))this._bodyArrayBuffer=w(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!s||!ArrayBuffer.prototype.isPrototypeOf(e)&&!l(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=w(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return r.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return r.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return r.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||r.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,i=g(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,n=b(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return r.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return r.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(k)}),this.json=function(){return this.text().then(JSON.parse)},this}function x(e,t){var r,n,i=(t=t||{}).body;if(e instanceof x){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new y(e.headers)),this.method=e.method,this.mode=e.mode,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new y(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),f.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function S(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new y(t.headers),this.url=t.url||"",this._initBody(e)}}(void 0!==e?e:this),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response}}()}"function"==typeof define&&define.amd?define((function(){return n})):"object"==typeof r?t.exports=n:e.fetchPonyfill=n}("undefined"==typeof self?this:self)},{}],784:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("stream").Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},{inherits:807,"safe-buffer":1037,stream:1059}],785:[function(e,t,r){var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":786,"./hash/hmac":787,"./hash/ripemd":788,"./hash/sha":789,"./hash/utils":796}],786:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}r.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},{"./utils":796,"minimalistic-assert":876}],787:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}t.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":796,"minimalistic-assert":876}],788:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./common"),o=n.rotl32,a=n.sum32,s=n.sum32_3,c=n.sum32_4,u=i.BlockHash;function l(){if(!(this instanceof l))return new l;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(l,u),r.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],u=this.h[3],l=this.h[4],b=r,v=n,w=i,_=u,x=l,k=0;k<80;k++){var S=a(o(c(r,f(k,n,i,u),e[p[k]+t],d(k)),y[k]),l);r=l,l=u,u=o(i,10),i=n,n=S,S=a(o(c(b,f(79-k,v,w,_),e[m[k]+t],h(k)),g[k]),x),b=x,x=_,_=o(w,10),w=v,v=S}S=s(this.h[1],i,_),this.h[1]=s(this.h[2],u,x),this.h[2]=s(this.h[3],l,b),this.h[3]=s(this.h[4],r,v),this.h[4]=s(this.h[0],n,w),this.h[0]=S},l.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":786,"./utils":796}],789:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":790,"./sha/224":791,"./sha/256":792,"./sha/384":793,"./sha/512":794}],790:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),a=n.rotl32,s=n.sum32,c=n.sum32_5,u=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,l),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=c(a(i,5),u(p,o,l,d),h,r[n],f[p]);h=d,d=l,l=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":786,"../utils":796,"./common":795}],791:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./256");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":796,"./256":792}],792:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),a=e("minimalistic-assert"),s=n.sum32,c=n.sum32_4,u=n.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,y=i.BlockHash,g=[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];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(b,y),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=c(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],g=this.h[3],b=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var x=u(_,h(b),l(b,v,w),this.k[n],r[n]),k=s(d(i),f(i,o,y));_=w,w=v,v=b,b=s(g,x),g=y,y=o,o=i,i=s(x,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":786,"../utils":796,"./common":795,"minimalistic-assert":876}],793:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./512");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":796,"./512":794}],794:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("minimalistic-assert"),a=n.rotr64_hi,s=n.rotr64_lo,c=n.shr64_hi,u=n.shr64_lo,l=n.sum64,f=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,y=n.sum64_5_lo,g=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function k(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function S(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function E(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function C(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function j(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(v,g),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=j(r[n-4],r[n-3]),o=P(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],c=C(r[n-30],r[n-29]),u=O(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,c,u,l,f),r[n+1]=p(i,o,a,s,c,u,l,f)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],c=this.h[4],u=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],b=this.h[9],v=this.h[10],C=this.h[11],O=this.h[12],j=this.h[13],P=this.h[14],M=this.h[15];o(this.k.length===r.length);for(var I=0;I<r.length;I+=2){var N=P,B=M,R=A(g,b),D=T(g,b),L=w(g,0,v,0,O),U=_(0,b,0,C,0,j),F=this.k[I],q=this.k[I+1],H=r[I],z=r[I+1],K=m(N,B,R,D,L,U,F,q,H,z),V=y(N,B,R,D,L,U,F,q,H,z);N=S(n,i),B=E(n,i),R=x(n,0,a,0,c),D=k(0,i,0,s,0,u);var G=f(N,B,R,D),W=d(N,B,R,D);P=O,M=j,O=v,j=C,v=g,C=b,g=f(h,p,K,V),b=d(p,p,K,V),h=c,p=u,c=a,u=s,a=n,s=i,n=f(K,V,G,W),i=d(K,V,G,W)}l(this.h,0,n,i),l(this.h,2,a,s),l(this.h,4,c,u),l(this.h,6,h,p),l(this.h,8,g,b),l(this.h,10,v,C),l(this.h,12,O,j),l(this.h,14,P,M)},v.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":786,"../utils":796,"minimalistic-assert":876}],795:[function(e,t,r){"use strict";var n=e("../utils").rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}r.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},r.ch32=i,r.maj32=o,r.p32=a,r.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},r.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},r.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":796}],796:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits");function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=i,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n<e.length;n++)r[n]=0|e[n];return r},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},r.htonl=o,r.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=s(i.toString(16))}return r},r.zero2=a,r.zero8=s,r.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var a=new Array(o/4),s=0,c=t;s<a.length;s++,c+=4){var u;u="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],a[s]=u>>>0}return a},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},r.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,o,a,s){var c=0,u=t;return c+=(u=u+n>>>0)<t?1:0,c+=(u=u+o>>>0)<o?1:0,e+r+i+a+(c+=(u=u+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},r.sum64_5_hi=function(e,t,r,n,i,o,a,s,c,u){var l=0,f=t;return l+=(f=f+n>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+s>>>0)<s?1:0,e+r+i+a+c+(l+=(f=f+u>>>0)<u?1:0)>>>0},r.sum64_5_lo=function(e,t,r,n,i,o,a,s,c,u){return t+n+o+s+u>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:807,"minimalistic-assert":876}],797:[function(e,t,r){var n=e("assert"),i=e("safe-buffer").Buffer,o=e("crypto"),a=e("coinstring"),s=e("secp256k1"),c=i.from("Bitcoin seed","utf8"),u={private:76066276,public:76067358};function l(e){this.versions=e||u,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function f(e,t,r){var n=i.allocUnsafe(78);n.writeUInt32BE(t,0),n.writeUInt8(e.depth,4);var o=e.depth?e.parentFingerprint:0;return n.writeUInt32BE(o,5),n.writeUInt32BE(e.index,9),e.chainCode.copy(n,13),r.copy(n,45),n}function d(e){var t=o.createHash("sha256").update(e).digest();return o.createHash("rmd160").update(t).digest()}Object.defineProperty(l.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(l.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(l.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(l.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){n.equal(e.length,32,"Private key must be 32 bytes."),n(!0===s.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=s.publicKeyCreate(e,!0),this._identifier=d(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(l.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){n(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),n(!0===s.publicKeyVerify(e),"Invalid public key"),this._publicKey=s.publicKeyConvert(e,!0),this._identifier=d(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(l.prototype,"privateExtendedKey",{get:function(){return this._privateKey?a.encode(f(this,this.versions.private,i.concat([i.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(l.prototype,"publicExtendedKey",{get:function(){return a.encode(f(this,this.versions.public,this.publicKey))}}),l.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),r=this;return t.forEach((function(e,t){if(0!==t){var i=e.length>1&&"'"===e[e.length-1],o=parseInt(e,10);n(o<2147483648,"Invalid index"),i&&(o+=2147483648),r=r.deriveChild(o)}else n(e,"m","Invalid path")})),r},l.prototype.deriveChild=function(e){var t,r=e>=2147483648,a=i.allocUnsafe(4);if(a.writeUInt32BE(e,0),r){n(this.privateKey,"Could not derive hardened child key");var c=this.privateKey,u=i.alloc(1,0);c=i.concat([u,c]),t=i.concat([c,a])}else t=i.concat([this.publicKey,a]);var f=o.createHmac("sha512",this.chainCode).update(t).digest(),d=f.slice(0,32),h=f.slice(32),p=new l(this.versions);if(this.privateKey)try{p.privateKey=s.privateKeyTweakAdd(this.privateKey,d)}catch(t){return this.derive(e+1)}else try{p.publicKey=s.publicKeyTweakAdd(this.publicKey,d,!0)}catch(t){return this.derive(e+1,r)}return p.chainCode=h,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},l.prototype.sign=function(e){return s.sign(e,this.privateKey).signature},l.prototype.verify=function(e,t){return s.verify(e,t,this.publicKey)},l.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},l.fromMasterSeed=function(e,t){var r=o.createHmac("sha512",c).update(e).digest(),n=r.slice(0,32),i=r.slice(32),a=new l(t);return a.chainCode=i,a.privateKey=n,a},l.fromExtendedKey=function(e,t){var r=new l(t=t||u),i=a.decode(e),o=i.readUInt32BE(0);n(o===t.private||o===t.public,"Version mismatch: does not match private or public"),r.depth=i.readUInt8(4),r.parentFingerprint=i.readUInt32BE(5),r.index=i.readUInt32BE(9),r.chainCode=i.slice(13,45);var s=i.slice(45);return 0===s.readUInt8(0)?(n(o===t.private,"Version mismatch: version does not match private"),r.privateKey=s.slice(1)):(n(o===t.public,"Version mismatch: version does not match public"),r.publicKey=s),r},l.fromJSON=function(e){return l.fromExtendedKey(e.xpriv)},l.HARDENED_OFFSET=2147483648,t.exports=l},{assert:329,coinstring:491,crypto:505,"safe-buffer":1037,secp256k1:1041}],798:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("minimalistic-crypto-utils"),o=e("minimalistic-assert");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},{"hash.js":785,"minimalistic-assert":876,"minimalistic-crypto-utils":877}],799:[function(e,t,r){var n=e("http"),i=e("url"),o=t.exports;for(var a in n)n.hasOwnProperty(a)&&(o[a]=n[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),n.request.call(this,e,t)},o.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},{http:1060,url:1127}],800:[function(e,t,r){t.exports=[{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{name:"_name",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"getApproved",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_approved",type:"address"},{name:"_tokenId",type:"uint256"}],name:"approve",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"transferFrom",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"ownerOf",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"_symbol",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_operator",type:"address"},{name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_tokenId",type:"uint256"},{name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_from",type:"address"},{indexed:!0,name:"_to",type:"address"},{indexed:!0,name:"_tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_owner",type:"address"},{indexed:!0,name:"_approved",type:"address"},{indexed:!0,name:"_tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_owner",type:"address"},{indexed:!0,name:"_operator",type:"address"},{indexed:!1,name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"}]},{}],801:[function(e,t,r){t.exports=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"success",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"success",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint256"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"version",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"success",type:"bool"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"},{name:"_extraData",type:"bytes"}],name:"approveAndCall",outputs:[{name:"success",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"remaining",type:"uint256"}],payable:!1,type:"function"},{inputs:[{name:"_initialAmount",type:"uint256"},{name:"_tokenName",type:"string"},{name:"_decimalUnits",type:"uint8"},{name:"_tokenSymbol",type:"string"}],type:"constructor"},{payable:!1,type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"_from",type:"address"},{indexed:!0,name:"_to",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_owner",type:"address"},{indexed:!0,name:"_spender",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"Approval",type:"event"}]},{}],802:[function(e,t,r){var n;n=function(){var e=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],t=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]);return{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀",mapChar:function(r){return r>=196608?r>=917760&&r<=917999?18874368:0:e[t[r>>4]][15&r]}}},"function"==typeof define&&define.amd?define([],(function(){return n()})):"object"==typeof r?t.exports=n():this.uts46_map=n()},{}],803:[function(e,t,r){var n,i;n=this,i=function(e,t){function r(r,n,i){for(var o=[],a=e.ucs2.decode(r),s=0;s<a.length;s++){var c=a[s],u=e.ucs2.encode([a[s]]),l=t.mapChar(c),f=l>>23,d=l>>21&3,h=l>>5&65535,p=31&l,m=t.mapStr.substr(h,p);if(0===d||n&&1&f)throw new Error("Illegal char "+u);1===d?o.push(m):2===d?o.push(i?m:u):3===d&&o.push(u)}return o.join("").normalize("NFC")}function n(t,n,o){void 0===o&&(o=!1);var a=r(t,o,n).split(".");return(a=a.map((function(t){return t.startsWith("xn--")?i(t=e.decode(t.substring(4)),o,!1):i(t,o,n),t}))).join(".")}function i(e,n,i){if("-"===e[2]&&"-"===e[3])throw new Error("Failed to validate "+e);if(e.startsWith("-")||e.endsWith("-"))throw new Error("Failed to validate "+e);if(e.includes("."))throw new Error("Failed to validate "+e);if(r(e,n,i)!==e)throw new Error("Failed to validate "+e);var o=e.codePointAt(0);if(t.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}return{toUnicode:function(e,t){return void 0===t&&(t={}),n(e,!1,"useStd3ASCII"in t&&t.useStd3ASCII)},toAscii:function(t,r){void 0===r&&(r={});var i,o=!("transitional"in r)||r.transitional,a="useStd3ASCII"in r&&r.useStd3ASCII,s="verifyDnsLength"in r&&r.verifyDnsLength,c=n(t,o,a).split(".").map(e.toASCII),u=c.join(".");if(s){if(u.length<1||u.length>253)throw new Error("DNS name has wrong length: "+u);for(i=0;i<c.length;i++){var l=c[i];if(l.length<1||l.length>63)throw new Error("DNS label has wrong length: "+l)}}return u}}},"function"==typeof define&&define.amd?define(["punycode","./idna-map"],(function(e,t){return i(e,t)})):"object"==typeof r?t.exports=i(e("punycode"),e("./idna-map")):n.uts46=i(n.punycode,n.idna_map)},{"./idna-map":802,punycode:477}],804:[function(e,t,r){arguments[4][802][0].apply(r,arguments)},{dup:802}],805:[function(e,t,r){var n,i;n=this,i=function(e,t){function r(e,r,n){var i=[];for(var o of e){var a=o.codePointAt(0),s=t.mapChar(a),c=s>>23,u=s>>21&3,l=s>>5&65535,f=31&s,d=t.mapStr.substr(l,f);if(0==u||r&&1&c)throw new Error("Illegal char "+o);1==u?i.push(d):2==u?i.push(n?d:o):3==u&&i.push(o)}return i.join("").normalize("NFC")}function n(t,n,o){void 0===o&&(o=!1);var a=r(t,o,n).split(".");return(a=a.map((function(t){return t.startsWith("xn--")?i(t=e.decode(t.substring(4)),o,!1):i(t,o,n),t}))).join(".")}function i(e,n,i){if("-"==e[2]&&"-"==e[3])throw new Error("Failed to validate "+e);if(e.startsWith("-")||e.endsWith("-"))throw new Error("Failed to validate "+e);if(e.includes("."))throw new Error("Failed to validate "+e);if(r(e,n,i)!=e)throw new Error("Failed to validate "+e);var o=e.codePointAt(0);if(t.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}return{toUnicode:function(e,t){return void 0===t&&(t={}),n(e,!1,"useStd3ASCII"in t&&t.useStd3ASCII)},toAscii:function(t,r){void 0===r&&(r={});var i=!("transitional"in r)||r.transitional,o="useStd3ASCII"in r&&r.useStd3ASCII,a="verifyDnsLength"in r&&r.verifyDnsLength,s=n(t,i,o).split(".").map(e.toASCII),c=s.join(".");if(a){if(c.length<1||c.length>253)throw new Error("DNS name has wrong length: "+c);for(var u of s)if(u.length<1||u.length>63)throw new Error("DNS label has wrong length: "+u)}return c}}},"function"==typeof define&&define.amd?define(["punycode","./idna-map"],(function(e,t){return i(e,t)})):"object"==typeof r?t.exports=i(e("punycode"),e("./idna-map")):n.uts46=i(n.punycode,n.idna_map)},{"./idna-map":804,punycode:477}],806:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,f=r?i-1:0,d=r?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*m}},{}],807:[function(e,t,r){arguments[4][772][0].apply(r,arguments)},{dup:772}],808:[function(e,t,r){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
|
||
/*!
|
||
* Determine if an object is a Buffer
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/t.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],809:[function(e,t,r){"use strict";var n=Object.prototype.toString;t.exports=function(e){return"[object Function]"===n.call(e)}},{}],810:[function(e,t,r){t.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},{}],811:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&Object.keys(t).every((function(r){if(!e.propertyIsEnumerable(r))return!1;var i=t[r],o=e[r];return!!("object"==typeof i&&null!==i?n(o,i):o===i)}))}));r.default=n,t.exports=r.default},{}],812:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],813:[function(e,t,r){e("whatwg-fetch"),t.exports=self.fetch.bind(self)},{"whatwg-fetch":814}],814:[function(e,t,r){!function(e){"use strict";if(!e.fetch){var t="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,n="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};p.prototype.append=function(e,t){e=f(e),t=d(t);var r=this.map[e];this.map[e]=r?r+","+t:t},p.prototype.delete=function(e){delete this.map[f(e)]},p.prototype.get=function(e){return e=f(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(f(e))},p.prototype.set=function(e,t){this.map[f(e)]=d(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),h(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),h(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},v.call(w.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var l=[301,302,303,307,308];x.redirect=function(e,t){if(-1===l.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},e.Headers=p,e.Request=w,e.Response=x,e.fetch=function(e,t){return new Promise((function(r,i){var o=new w(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new x(i,n))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&n&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===o._bodyInit?null:o._bodyInit)}))},e.fetch.polyfill=!0}function f(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function y(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=y(t);return t.readAsArrayBuffer(e),r}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(n&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(o&&n&&s(e))this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!o||!ArrayBuffer.prototype.isPrototypeOf(e)&&!c(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=b(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,r,n=m(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=y(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}function w(e,t){var r,n,i=(t=t||{}).body;if(e instanceof w){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),u.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function x(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},{}],815:[function(e,t,r){(function(e,r){
|
||
/**
|
||
* [js-sha3]{@link https://github.com/emn178/js-sha3}
|
||
*
|
||
* @version 0.5.5
|
||
* @author Chen, Yi-Cyuan [[email protected]]
|
||
* @copyright Chen, Yi-Cyuan 2015-2016
|
||
* @license MIT
|
||
*/
|
||
!function(n){"use strict";"object"==typeof e&&e.versions&&e.versions.node&&(n=r);for(var i=!n.JS_SHA3_TEST&&"object"==typeof t&&t.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],c=[224,256,384,512],u=["hex","buffer","arrayBuffer","array"],l=function(e,t,r){return function(n){return new v(e,t,e).update(n)[r]()}},f=function(e,t,r){return function(n,i){return new v(e,t,i).update(n)[r]()}},d=function(e,t){var r=l(e,t,"hex");r.create=function(){return new v(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=l(e,t,i)}return r},h=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var r=f(e,t,"hex");r.create=function(r){return new v(e,t,r)},r.update=function(e,t){return r.create(t).update(e)};for(var n=0;n<u.length;++n){var i=u[n];r[i]=f(e,t,i)}return r}}],p={},m=0;m<h.length;++m)for(var y=h[m],g=y.bits,b=0;b<g.length;++b)p[y.name+"_"+g[b]]=y.createMethod(g[b],y.padding);function v(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}v.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor==n.ArrayBuffer&&(e=new Uint8Array(e));for(var r,i,o=e.length,s=this.blocks,c=this.byteCount,u=this.blockCount,l=0,f=this.s;l<o;){if(this.reset)for(this.reset=!1,s[0]=this.block,r=1;r<u+1;++r)s[r]=0;if(t)for(r=this.start;l<o&&r<c;++l)s[r>>2]|=e[l]<<a[3&r++];else for(r=this.start;l<o&&r<c;++l)(i=e.charCodeAt(l))<128?s[r>>2]|=i<<a[3&r++]:i<2048?(s[r>>2]|=(192|i>>6)<<a[3&r++],s[r>>2]|=(128|63&i)<<a[3&r++]):i<55296||i>=57344?(s[r>>2]|=(224|i>>12)<<a[3&r++],s[r>>2]|=(128|i>>6&63)<<a[3&r++],s[r>>2]|=(128|63&i)<<a[3&r++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++l)),s[r>>2]|=(240|i>>18)<<a[3&r++],s[r>>2]|=(128|i>>12&63)<<a[3&r++],s[r>>2]|=(128|i>>6&63)<<a[3&r++],s[r>>2]|=(128|63&i)<<a[3&r++]);if(this.lastByteIndex=r,r>=c){for(this.start=r-c,this.block=s[u],r=0;r<u;++r)f[r]^=s[r];w(f),this.reset=!0}else this.start=r}return this},v.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex==this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];w(n)},v.prototype.toString=v.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,a=0,s=0,c="";s<n;){for(a=0;a<t&&s<n;++a,++s)e=r[a],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(w(r),a=0)}return i&&(e=r[a],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},v.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<n;){for(o=0;o<t&&a<n;++o,++a)c[a]=r[o];a%t==0&&w(r)}return i&&(c[o]=r[o],e=e.slice(0,s)),e},v.prototype.buffer=v.prototype.arrayBuffer,v.prototype.digest=v.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<r&&s<i;++a,++s)e=s<<2,t=n[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%r==0&&w(n)}return o&&(e=s<<2,t=n[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var w=function(e){var t,r,n,i,o,a,c,u,l,f,d,h,p,m,y,g,b,v,w,_,x,k,S,E,A,T,C,O,j,P,M,I,N,B,R,D,L,U,F,q,H,z,K,V,G,W,Y,$,J,Q,Z,X,ee,te,re,ne,ie,oe,ae,se,ce,ue,le;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|c>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|l>>>31),r=o^(l<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|d>>>31),r=c^(d<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(h<<1|p>>>31),r=l^(p<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(i<<1|o>>>31),r=d^(o<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],y=e[1],W=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,j=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,K=e[41]<<18|e[40]>>>14,B=e[2]<<1|e[3]>>>31,R=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,J=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,I=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,E=e[6]<<28|e[7]>>>4,A=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~g&v,e[1]=y^~b&w,e[10]=E^~T&O,e[11]=A^~C&j,e[20]=B^~D&U,e[21]=R^~L&F,e[30]=V^~W&$,e[31]=G^~Y&J,e[40]=te^~ne&oe,e[41]=re^~ie&ae,e[2]=g^~v&_,e[3]=b^~w&x,e[12]=T^~O&P,e[13]=C^~j&M,e[22]=D^~U&q,e[23]=L^~F&H,e[32]=W^~$&Q,e[33]=Y^~J&Z,e[42]=ne^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&k,e[5]=w^~x&S,e[14]=O^~P&I,e[15]=j^~M&N,e[24]=U^~q&z,e[25]=F^~H&K,e[34]=$^~Q&X,e[35]=J^~Z&ee,e[44]=oe^~se&ue,e[45]=ae^~ce&le,e[6]=_^~k&m,e[7]=x^~S&y,e[16]=P^~I&E,e[17]=M^~N&A,e[26]=q^~z&B,e[27]=H^~K&R,e[36]=Q^~X&V,e[37]=Z^~ee&G,e[46]=se^~ue&te,e[47]=ce^~le&re,e[8]=k^~m&g,e[9]=S^~y&b,e[18]=I^~E&T,e[19]=N^~A&C,e[28]=z^~B&D,e[29]=K^~R&L,e[38]=X^~V&W,e[39]=ee^~G&Y,e[48]=ue^~te&ne,e[49]=le^~re&ie,e[0]^=s[n],e[1]^=s[n+1]};if(i)t.exports=p;else if(n)for(var _ in p)n[_]=p[_]}(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952}],816:[function(e,t,r){"use strict";t.exports=function(e){return function(t,r,n,i){e._runAllMiddleware(t,r).then(async({isComplete:t,returnHandlers:r})=>t?(await e._runReturnHandlers(r),i()):n(async t=>{try{await e._runReturnHandlers(r)}catch(e){return t(e)}return t()})).catch(e=>{i(e)})}}},{}],817:[function(e,t,r){t.exports=function(e){return(t,r,n,i)=>{let o;const a=new Promise(e=>{o=e});let s,c;e(t,r,async()=>{c=!0,n(e=>{s=e,o()}),await a}).then(async()=>{c?(await a,s(null)):i(null)}).catch(e=>{s?s(e):i(e)})}}},{}],818:[function(e,t,r){t.exports=function(e){return(t,r,n,i)=>{const o=e[t.method];return void 0===o?n():"function"==typeof o?o(t,r,n,i):(r.result=o,i())}}},{}],819:[function(e,t,r){"use strict";const n=e("safe-event-emitter"),{serializeError:i,EthereumRpcError:o,ERROR_CODES:a}=e("eth-rpc-errors");t.exports=class e extends n{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){return Array.isArray(e)?t?void this._handleBatch(e).then(e=>t(null,e)).catch(e=>t(e)):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}async _handleBatch(e){return await Promise.all(e.map(this._promiseHandle.bind(this)))}_promiseHandle(e){return new Promise(t=>{this._handle(e,(e,r)=>{t(r)})})}_handle(e,t){const r=Object.assign({},e),n={id:r.id,jsonrpc:r.jsonrpc};let o;this._processRequest(r,n).catch(e=>{o=e}).finally(()=>{const e=n._originalError;delete n._originalError;const r=e||o||null;r&&(delete n.result,n.error||(n.error=i(r))),t(r,n)})}async _processRequest(e,t){const{isComplete:r,returnHandlers:n}=await this._runAllMiddleware(e,t);this._checkForCompletion(e,t,r),await this._runReturnHandlers(n)}async _runReturnHandlers(e){for(const t of e)await new Promise((e,r)=>{t(t=>t?r(t):e())})}_checkForCompletion(e,t,r){if(!("result"in t)&&!("error"in t)){const t="JsonRpcEngine: Response has no error or result for request:\n"+JSON.stringify(e,null,2);throw new o(a.rpc.internal,t,e)}if(!r){const t="JsonRpcEngine: Nothing ended request:\n"+JSON.stringify(e,null,2);throw new o(a.rpc.internal,t,e)}}async _runAllMiddleware(t,r){const n=[];let i=!1;for(const o of this._middleware)if(i=await e._runMiddleware(t,r,o,n),i)break;return{isComplete:i,returnHandlers:n.reverse()}}static _runMiddleware(e,t,r,n){return new Promise(o=>{const a=e=>{const r=e||t&&t.error;r&&(t.error=i(r),t._originalError=r),o(!0)},s=e=>{t.error?a(t.error):(e&&n.push(e),o(!1))};try{r(e,t,s,a)}catch(e){a(e)}})}}},{"eth-rpc-errors":688,"safe-event-emitter":1038}],820:[function(e,t,r){const n=e("./asMiddleware"),i=e(".");t.exports=function(e){const t=new i;return e.forEach(e=>t.push(e)),n(t)}},{".":819,"./asMiddleware":816}],821:[function(e,t,r){const n=e("readable-stream").Duplex;t.exports=function({engine:e}){if(!e)throw new Error("Missing engine parameter!");const t=new n({objectMode:!0,read:function(){return!1},write:function(t,r,n){e.handle(t,(e,t)=>{this.push(t)}),n()}});return e.on&&e.on("notification",e=>{t.push(e)}),t}},{"readable-stream":979}],822:[function(e,t,r){t.exports=function(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,r=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return r%=t,r++}}},{}],823:[function(e,t,r){var n="undefined"!=typeof JSON?JSON:e("jsonify");t.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r=t.space||"";"number"==typeof r&&(r=Array(r+1).join(" "));var a,s="boolean"==typeof t.cycles&&t.cycles,c=t.replacer||function(e,t){return t},u=t.cmp&&(a=t.cmp,function(e){return function(t,r){var n={key:t,value:e[t]},i={key:r,value:e[r]};return a(n,i)}}),l=[];return function e(t,a,f,d){var h=r?"\n"+new Array(d+1).join(r):"",p=r?": ":":";if(f&&f.toJSON&&"function"==typeof f.toJSON&&(f=f.toJSON()),void 0!==(f=c.call(t,a,f))){if("object"!=typeof f||null===f)return n.stringify(f);if(i(f)){for(var m=[],y=0;y<f.length;y++){var g=e(f,y,f[y],d+1)||n.stringify(null);m.push(h+r+g)}return"["+m.join(",")+h+"]"}if(-1!==l.indexOf(f)){if(s)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}l.push(f);var b=o(f).sort(u&&u(f));for(m=[],y=0;y<b.length;y++){var v=e(f,a=b[y],f[a],d+1);if(v){var w=n.stringify(a)+p+v;m.push(h+r+w)}}return l.splice(l.indexOf(f),1),"{"+m.join(",")+h+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in e)t.call(e,n)&&r.push(n);return r}},{jsonify:824}],824:[function(e,t,r){r.parse=e("./lib/parse"),r.stringify=e("./lib/stringify")},{"./lib/parse":825,"./lib/stringify":826}],825:[function(e,t,r){var n,i,o,a,s={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(e){throw{name:"SyntaxError",message:e,at:n,text:o}},u=function(e){return e&&e!==i&&c("Expected '"+e+"' instead of '"+i+"'"),i=o.charAt(n),n+=1,i},l=function(){var e,t="";for("-"===i&&(t="-",u("-"));i>="0"&&i<="9";)t+=i,u();if("."===i)for(t+=".";u()&&i>="0"&&i<="9";)t+=i;if("e"===i||"E"===i)for(t+=i,u(),"-"!==i&&"+"!==i||(t+=i,u());i>="0"&&i<="9";)t+=i,u();if(e=+t,isFinite(e))return e;c("Bad number")},f=function(){var e,t,r,n="";if('"'===i)for(;u();){if('"'===i)return u(),n;if("\\"===i)if(u(),"u"===i){for(r=0,t=0;t<4&&(e=parseInt(u(),16),isFinite(e));t+=1)r=16*r+e;n+=String.fromCharCode(r)}else{if("string"!=typeof s[i])break;n+=s[i]}else n+=i}c("Bad string")},d=function(){for(;i&&i<=" ";)u()};a=function(){switch(d(),i){case"{":return function(){var e,t={};if("{"===i){if(u("{"),d(),"}"===i)return u("}"),t;for(;i;){if(e=f(),d(),u(":"),Object.hasOwnProperty.call(t,e)&&c('Duplicate key "'+e+'"'),t[e]=a(),d(),"}"===i)return u("}"),t;u(","),d()}}c("Bad object")}();case"[":return function(){var e=[];if("["===i){if(u("["),d(),"]"===i)return u("]"),e;for(;i;){if(e.push(a()),d(),"]"===i)return u("]"),e;u(","),d()}}c("Bad array")}();case'"':return f();case"-":return l();default:return i>="0"&&i<="9"?l():function(){switch(i){case"t":return u("t"),u("r"),u("u"),u("e"),!0;case"f":return u("f"),u("a"),u("l"),u("s"),u("e"),!1;case"n":return u("n"),u("u"),u("l"),u("l"),null}c("Unexpected '"+i+"'")}()}},t.exports=function(e,t){var r;return o=e,n=0,i=" ",r=a(),d(),i&&c("Syntax error"),"function"==typeof t?function e(r,n){var i,o,a=r[n];if(a&&"object"==typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(r,n,a)}({"":r},""):r}},{}],826:[function(e,t,r){var n,i,o,a=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function c(e){return a.lastIndex=0,a.test(e)?'"'+e.replace(a,(function(e){var t=s[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}t.exports=function(e,t,r){var a;if(n="",i="","number"==typeof r)for(a=0;a<r;a+=1)i+=" ";else"string"==typeof r&&(i=r);if(o=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return function e(t,r){var a,s,u,l,f,d=n,h=r[t];switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(t)),"function"==typeof o&&(h=o.call(r,t,h)),typeof h){case"string":return c(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h)return"null";if(n+=i,f=[],"[object Array]"===Object.prototype.toString.apply(h)){for(l=h.length,a=0;a<l;a+=1)f[a]=e(a,h)||"null";return u=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+d+"]":"["+f.join(",")+"]",n=d,u}if(o&&"object"==typeof o)for(l=o.length,a=0;a<l;a+=1)"string"==typeof(s=o[a])&&(u=e(s,h))&&f.push(c(s)+(n?": ":":")+u);else for(s in h)Object.prototype.hasOwnProperty.call(h,s)&&(u=e(s,h))&&f.push(c(s)+(n?": ":":")+u);return u=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+d+"}":"{"+f.join(",")+"}",n=d,u}}("",{"":e})}},{}],827:[function(e,t,r){"use strict";var n=e("./helpers"),i=n.ValidatorResult,o=n.SchemaError,a={ignoreProperties:{id:!0,default:!0,description:!0,title:!0,exclusiveMinimum:!0,exclusiveMaximum:!0,additionalItems:!0,$schema:!0,$ref:!0,extends:!0}},s=a.validators={};function c(e,t,r,n,i){var o=t.throwError;t.throwError=!1;var a=this.validateSchema(e,i,t,r);return t.throwError=o,!a.valid&&n instanceof Function&&n(a),a.valid}function u(e,t,r,n,i,o){if(this.types.object(e)&&(!t.properties||void 0===t.properties[i]))if(!1===t.additionalProperties)o.addError({name:"additionalProperties",argument:i,message:"additionalProperty "+JSON.stringify(i)+" exists in instance when not allowed"});else{var a=t.additionalProperties||{};"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,i,a,r,n);var s=this.validateSchema(e[i],a,r,n.makeChild(a,i));s.instance!==o.instance[i]&&(o.instance[i]=s.instance),o.importErrors(s)}}s.type=function(e,t,r,n){if(void 0===e)return null;var o=new i(e,t,r,n),a=Array.isArray(t.type)?t.type:[t.type];if(!a.some(this.testType.bind(this,e,t,r,n))){var s=a.map((function(e){return e.id&&"<"+e.id+">"||e+""}));o.addError({name:"type",argument:s,message:"is not of a type(s) "+s})}return o},s.anyOf=function(e,t,r,n){if(void 0===e)return null;var a=new i(e,t,r,n),s=new i(e,t,r,n);if(!Array.isArray(t.anyOf))throw new o("anyOf must be an array");if(!t.anyOf.some(c.bind(this,e,r,n,(function(e){s.importErrors(e)})))){var u=t.anyOf.map((function(e,t){return e.id&&"<"+e.id+">"||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"}));r.nestedErrors&&a.importErrors(s),a.addError({name:"anyOf",argument:u,message:"is not any of "+u.join(",")})}return a},s.allOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.allOf))throw new o("allOf must be an array");var a=new i(e,t,r,n),s=this;return t.allOf.forEach((function(t,i){var o=s.validateSchema(e,t,r,n);if(!o.valid){var c=t.id&&"<"+t.id+">"||t.title&&JSON.stringify(t.title)||t.$ref&&"<"+t.$ref+">"||"[subschema "+i+"]";a.addError({name:"allOf",argument:{id:c,length:o.errors.length,valid:o},message:"does not match allOf schema "+c+" with "+o.errors.length+" error[s]:"}),a.importErrors(o)}})),a},s.oneOf=function(e,t,r,n){if(void 0===e)return null;if(!Array.isArray(t.oneOf))throw new o("oneOf must be an array");var a=new i(e,t,r,n),s=new i(e,t,r,n),u=t.oneOf.filter(c.bind(this,e,r,n,(function(e){s.importErrors(e)}))).length,l=t.oneOf.map((function(e,t){return e.id&&"<"+e.id+">"||e.title&&JSON.stringify(e.title)||e.$ref&&"<"+e.$ref+">"||"[subschema "+t+"]"}));return 1!==u&&(r.nestedErrors&&a.importErrors(s),a.addError({name:"oneOf",argument:l,message:"is not exactly one from "+l.join(",")})),a},s.properties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),a=t.properties||{};for(var s in a){"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,s,a[s],r,n);var c=Object.hasOwnProperty.call(e,s)?e[s]:void 0,u=this.validateSchema(c,a[s],r,n.makeChild(a[s],s));u.instance!==o.instance[s]&&(o.instance[s]=u.instance),o.importErrors(u)}return o}},s.patternProperties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n),a=t.patternProperties||{};for(var s in e){var c=!0;for(var l in a)if(new RegExp(l).test(s)){c=!1,"function"==typeof r.preValidateProperty&&r.preValidateProperty(e,s,a[l],r,n);var f=this.validateSchema(e[s],a[l],r,n.makeChild(a[l],s));f.instance!==o.instance[s]&&(o.instance[s]=f.instance),o.importErrors(f)}c&&u.call(this,e,t,r,n,s,o)}return o}},s.additionalProperties=function(e,t,r,n){if(this.types.object(e)){if(t.patternProperties)return null;var o=new i(e,t,r,n);for(var a in e)u.call(this,e,t,r,n,a,o);return o}},s.minProperties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n);return Object.keys(e).length>=t.minProperties||o.addError({name:"minProperties",argument:t.minProperties,message:"does not meet minimum property length of "+t.minProperties}),o}},s.maxProperties=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n);return Object.keys(e).length<=t.maxProperties||o.addError({name:"maxProperties",argument:t.maxProperties,message:"does not meet maximum property length of "+t.maxProperties}),o}},s.items=function(e,t,r,n){var o=this;if(this.types.array(e)&&t.items){var a=new i(e,t,r,n);return e.every((function(e,i){var s=Array.isArray(t.items)?t.items[i]||t.additionalItems:t.items;if(void 0===s)return!0;if(!1===s)return a.addError({name:"items",message:"additionalItems not permitted"}),!1;var c=o.validateSchema(e,s,r,n.makeChild(s,i));return c.instance!==a.instance[i]&&(a.instance[i]=c.instance),a.importErrors(c),!0})),a}},s.minimum=function(e,t,r,n){if(this.types.number(e)){var o=new i(e,t,r,n);return(t.exclusiveMinimum&&!0===t.exclusiveMinimum?e>t.minimum:e>=t.minimum)||o.addError({name:"minimum",argument:t.minimum,message:"must have a minimum value of "+t.minimum}),o}},s.maximum=function(e,t,r,n){if(this.types.number(e)){var o=new i(e,t,r,n);return(t.exclusiveMaximum&&!0===t.exclusiveMaximum?e<t.maximum:e<=t.maximum)||o.addError({name:"maximum",argument:t.maximum,message:"must have a maximum value of "+t.maximum}),o}};var l=function(e,t,r,a,s,c){if(this.types.number(e)){var u=t[s];if(0==u)throw new o(s+" cannot be zero");var l=new i(e,t,r,a),f=n.getDecimalPlaces(e),d=n.getDecimalPlaces(u),h=Math.max(f,d),p=Math.pow(10,h);return Math.round(e*p)%Math.round(u*p)!=0&&l.addError({name:s,argument:u,message:c+JSON.stringify(u)}),l}};function f(e,t,r){var i,o=r.length;for(i=t+1;i<o;i++)if(n.deepCompareStrict(e,r[i]))return!1;return!0}s.multipleOf=function(e,t,r,n){return l.call(this,e,t,r,n,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(e,t,r,n){return l.call(this,e,t,r,n,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(e,t,r,n){var o=new i(e,t,r,n);return void 0===e&&!0===t.required?o.addError({name:"required",message:"is required"}):this.types.object(e)&&Array.isArray(t.required)&&t.required.forEach((function(t){void 0===e[t]&&o.addError({name:"required",argument:t,message:"requires property "+JSON.stringify(t)})})),o},s.pattern=function(e,t,r,n){if(this.types.string(e)){var o=new i(e,t,r,n);return e.match(t.pattern)||o.addError({name:"pattern",argument:t.pattern,message:"does not match pattern "+JSON.stringify(t.pattern)}),o}},s.format=function(e,t,r,o){if(void 0!==e){var a=new i(e,t,r,o);return a.disableFormat||n.isFormat(e,t.format,this)||a.addError({name:"format",argument:t.format,message:"does not conform to the "+JSON.stringify(t.format)+" format"}),a}},s.minLength=function(e,t,r,n){if(this.types.string(e)){var o=new i(e,t,r,n),a=e.match(/[\uDC00-\uDFFF]/g);return e.length-(a?a.length:0)>=t.minLength||o.addError({name:"minLength",argument:t.minLength,message:"does not meet minimum length of "+t.minLength}),o}},s.maxLength=function(e,t,r,n){if(this.types.string(e)){var o=new i(e,t,r,n),a=e.match(/[\uDC00-\uDFFF]/g);return e.length-(a?a.length:0)<=t.maxLength||o.addError({name:"maxLength",argument:t.maxLength,message:"does not meet maximum length of "+t.maxLength}),o}},s.minItems=function(e,t,r,n){if(this.types.array(e)){var o=new i(e,t,r,n);return e.length>=t.minItems||o.addError({name:"minItems",argument:t.minItems,message:"does not meet minimum length of "+t.minItems}),o}},s.maxItems=function(e,t,r,n){if(this.types.array(e)){var o=new i(e,t,r,n);return e.length<=t.maxItems||o.addError({name:"maxItems",argument:t.maxItems,message:"does not meet maximum length of "+t.maxItems}),o}},s.uniqueItems=function(e,t,r,o){if(this.types.array(e)){var a=new i(e,t,r,o);return e.every((function(e,t,r){for(var i=t+1;i<r.length;i++)if(n.deepCompareStrict(e,r[i]))return!1;return!0}))||a.addError({name:"uniqueItems",message:"contains duplicate item"}),a}},s.uniqueItems=function(e,t,r,n){if(this.types.array(e)){var o=new i(e,t,r,n);return e.every(f)||o.addError({name:"uniqueItems",message:"contains duplicate item"}),o}},s.dependencies=function(e,t,r,n){if(this.types.object(e)){var o=new i(e,t,r,n);for(var a in t.dependencies)if(void 0!==e[a]){var s=t.dependencies[a],c=n.makeChild(s,a);if("string"==typeof s&&(s=[s]),Array.isArray(s))s.forEach((function(t){void 0===e[t]&&o.addError({name:"dependencies",argument:c.propertyPath,message:"property "+t+" not found, required by "+c.propertyPath})}));else{var u=this.validateSchema(e,s,r,c);o.instance!==u.instance&&(o.instance=u.instance),u&&u.errors.length&&(o.addError({name:"dependencies",argument:c.propertyPath,message:"does not meet dependency required by "+c.propertyPath}),o.importErrors(u))}}return o}},s.enum=function(e,t,r,a){if(void 0===e)return null;if(!Array.isArray(t.enum))throw new o("enum expects an array",t);var s=new i(e,t,r,a);return t.enum.some(n.deepCompareStrict.bind(null,e))||s.addError({name:"enum",argument:t.enum,message:"is not one of enum values: "+t.enum.map(String).join(",")}),s},s.const=function(e,t,r,o){if(void 0===e)return null;var a=new i(e,t,r,o);return n.deepCompareStrict(t.const,e)||a.addError({name:"const",argument:t.const,message:"does not exactly match expected constant: "+t.const}),a},s.not=s.disallow=function(e,t,r,n){var o=this;if(void 0===e)return null;var a=new i(e,t,r,n),s=t.not||t.disallow;return s?(Array.isArray(s)||(s=[s]),s.forEach((function(i){if(o.testType(e,t,r,n,i)){var s=i&&i.id&&"<"+i.id+">"||i;a.addError({name:"not",argument:s,message:"is of prohibited type "+s})}})),a):null},t.exports=a},{"./helpers":828}],828:[function(e,t,r){"use strict";var n=e("url"),i=r.ValidationError=function(e,t,r,n,i,o){n&&(this.property=n),e&&(this.message=e),r&&(r.id?this.schema=r.id:this.schema=r),t&&(this.instance=t),this.name=i,this.argument=o,this.stack=this.toString()};i.prototype.toString=function(){return this.property+" "+this.message};var o=r.ValidatorResult=function(e,t,r,n){this.instance=e,this.schema=t,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.disableFormat=r&&!0===r.disableFormat};function a(e,t){return t+": "+e.toString()+"\n"}o.prototype.addError=function(e){var t;if("string"==typeof e)t=new i(e,this.instance,this.schema,this.propertyPath);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");t=new i(e.message,this.instance,this.schema,this.propertyPath,e.name,e.argument)}if(this.throwError)throw t;return this.errors.push(t),t},o.prototype.importErrors=function(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&Array.prototype.push.apply(this.errors,e.errors)},o.prototype.toString=function(e){return this.errors.map(a).join("")},Object.defineProperty(o.prototype,"valid",{get:function(){return!this.errors.length}});var s=r.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),Error.captureStackTrace(this,e)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var c=r.SchemaContext=function(e,t,r,n,i){this.schema=e,this.options=t,this.propertyPath=r,this.base=n,this.schemas=i};c.prototype.resolve=function(e){return n.resolve(this.base,e)},c.prototype.makeChild=function(e,t){var r=void 0===t?this.propertyPath:this.propertyPath+l(t),i=n.resolve(this.base,e.id||""),o=new c(e,this.options,r,i,Object.create(this.schemas));return e.id&&!o.schemas[i]&&(o.schemas[i]=e),o};var u=r.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/\s*(.+?):\s*([^;]+);?/g,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],r.isFormat=function(e,t,r){if("string"==typeof e&&void 0!==u[t]){if(u[t]instanceof RegExp)return u[t].test(e);if("function"==typeof u[t])return u[t](e)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[t])return r.customFormats[t](e);return!0};var l=r.makeSuffix=function(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function f(e,t,r,n){"object"==typeof r?t[n]=p(e[n],r):-1===e.indexOf(r)&&t.push(r)}function d(e,t,r){t[r]=e[r]}function h(e,t,r,n){"object"==typeof t[n]&&t[n]&&e[n]?r[n]=p(e[n],t[n]):r[n]=t[n]}function p(e,t){var r=Array.isArray(t),n=r&&[]||{};return r?(e=e||[],n=n.concat(e),t.forEach(f.bind(null,e,n))):(e&&"object"==typeof e&&Object.keys(e).forEach(d.bind(null,e,n)),Object.keys(t).forEach(h.bind(null,e,t,n))),n}function m(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}r.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(t instanceof Array)return r instanceof Array&&t.length===r.length&&t.every((function(n,i){return e(t[i],r[i])}));if("object"==typeof t){if(!t||!r)return t===r;var n=Object.keys(t),i=Object.keys(r);return n.length===i.length&&n.every((function(n){return e(t[n],r[n])}))}return t===r},t.exports.deepMerge=p,r.objectGetPath=function(e,t){for(var r,n=t.split("/").slice(1);"string"==typeof(r=n.shift());){var i=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(i in e))return;e=e[i]}return e},r.encodePath=function(e){return e.map(m).join("")},r.getDecimalPlaces=function(e){var t=0;if(isNaN(e))return t;"number"!=typeof e&&(e=Number(e));var r=e.toString().split("e");if(2===r.length){if("-"!==r[1][0])return t;t=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(t+=n[1].length),t}},{url:1127}],829:[function(e,t,r){"use strict";var n=t.exports.Validator=e("./validator");t.exports.ValidatorResult=e("./helpers").ValidatorResult,t.exports.ValidationError=e("./helpers").ValidationError,t.exports.SchemaError=e("./helpers").SchemaError,t.exports.SchemaScanResult=e("./scan").SchemaScanResult,t.exports.scan=e("./scan").scan,t.exports.validate=function(e,t,r){return(new n).validate(e,t,r)}},{"./helpers":828,"./scan":830,"./validator":831}],830:[function(e,t,r){var n=e("url"),i=e("./helpers");function o(e,t){this.id=e,this.ref=t}t.exports.SchemaScanResult=o,t.exports.scan=function(e,t){function r(e,t){if(t&&"object"==typeof t)if(t.$ref){var o=n.resolve(e,t.$ref);u[o]=u[o]?u[o]+1:0}else{var l=t.id?n.resolve(e,t.id):e;if(l){if(l.indexOf("#")<0&&(l+="#"),c[l]){if(!i.deepCompareStrict(c[l],t))throw new Error("Schema <"+t+"> already exists with different definition");return c[l]}c[l]=t,"#"==l[l.length-1]&&(c[l.substring(0,l.length-1)]=t)}a(l+"/items",t.items instanceof Array?t.items:[t.items]),a(l+"/extends",t.extends instanceof Array?t.extends:[t.extends]),r(l+"/additionalItems",t.additionalItems),s(l+"/properties",t.properties),r(l+"/additionalProperties",t.additionalProperties),s(l+"/definitions",t.definitions),s(l+"/patternProperties",t.patternProperties),s(l+"/dependencies",t.dependencies),a(l+"/disallow",t.disallow),a(l+"/allOf",t.allOf),a(l+"/anyOf",t.anyOf),a(l+"/oneOf",t.oneOf),r(l+"/not",t.not)}}function a(e,t){if(t instanceof Array)for(var n=0;n<t.length;n++)r(e+"/"+n,t[n])}function s(e,t){if(t&&"object"==typeof t)for(var n in t)r(e+"/"+n,t[n])}var c={},u={};return r(e,t),new o(c,u)}},{"./helpers":828,url:1127}],831:[function(e,t,r){"use strict";var n=e("url"),i=e("./attribute"),o=e("./helpers"),a=e("./scan").scan,s=o.ValidatorResult,c=o.SchemaError,u=o.SchemaContext,l=function e(){this.customFormats=Object.create(e.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(d),this.attributes=Object.create(i.validators)};function f(e){var t="string"==typeof e?e:e.$ref;return"string"==typeof t&&t}l.prototype.customFormats={},l.prototype.schemas=null,l.prototype.types=null,l.prototype.attributes=null,l.prototype.unresolvedRefs=null,l.prototype.addSchema=function(e,t){var r=this;if(!e)return null;var n=a(t||"/",e),i=t||e.id;for(var o in n.id)this.schemas[o]=n.id[o];for(var o in n.ref)this.unresolvedRefs.push(o);return this.unresolvedRefs=this.unresolvedRefs.filter((function(e){return void 0===r.schemas[e]})),this.schemas[i]},l.prototype.addSubSchemaArray=function(e,t){if(t instanceof Array)for(var r=0;r<t.length;r++)this.addSubSchema(e,t[r])},l.prototype.addSubSchemaObject=function(e,t){if(t&&"object"==typeof t)for(var r in t)this.addSubSchema(e,t[r])},l.prototype.setSchemas=function(e){this.schemas=e},l.prototype.getSchema=function(e){return this.schemas[e]},l.prototype.validate=function(e,t,r,i){r||(r={});var o=r.propertyName||"instance",s=n.resolve(r.base||"/",t.id||"");if(!i){(i=new u(t,r,o,s,Object.create(this.schemas))).schemas[s]||(i.schemas[s]=t);var l=a(s,t);for(var f in l.id){var d=l.id[f];i.schemas[f]=d}}if(t){var h=this.validateSchema(e,t,r,i);if(!h)throw new Error("Result undefined");return h}throw new c("no schema specified",t)},l.prototype.validateSchema=function(e,t,r,n){var a,l=new s(e,t,r,n);if("boolean"==typeof t)!0===t?t={}:!1===t&&(t={type:[]});else if(!t)throw new Error("schema is undefined");if(t.extends)if(t.extends instanceof Array){var d={schema:t,ctx:n};t.extends.forEach(this.schemaTraverser.bind(this,d)),t=d.schema,d.schema=null,d.ctx=null,d=null}else t=o.deepMerge(t,this.superResolve(t.extends,n));if(a=f(t)){var h=this.resolve(t,a,n),p=new u(h.subschema,r,n.propertyPath,h.switchSchema,n.schemas);return this.validateSchema(e,h.subschema,r,p)}var m=r&&r.skipAttributes||[];for(var y in t)if(!i.ignoreProperties[y]&&m.indexOf(y)<0){var g=null,b=this.attributes[y];if(b)g=b.call(this,e,t,r,n);else if(!1===r.allowUnknownAttributes)throw new c("Unsupported attribute: "+y,t);g&&l.importErrors(g)}if("function"==typeof r.rewrite){var v=r.rewrite.call(this,e,t,r,n);l.instance=v}return l},l.prototype.schemaTraverser=function(e,t){e.schema=o.deepMerge(e.schema,this.superResolve(t,e.ctx))},l.prototype.superResolve=function(e,t){var r;return(r=f(e))?this.resolve(e,r,t).subschema:e},l.prototype.resolve=function(e,t,r){if(t=r.resolve(t),r.schemas[t])return{subschema:r.schemas[t],switchSchema:t};var i=n.parse(t),a=i&&i.hash,s=a&&a.length&&t.substr(0,t.length-a.length);if(!s||!r.schemas[s])throw new c("no such schema <"+t+">",e);var u=o.objectGetPath(r.schemas[s],a.substr(1));if(void 0===u)throw new c("no such schema "+a+" located in <"+s+">",e);return{subschema:u,switchSchema:t}},l.prototype.testType=function(e,t,r,n,i){if("function"==typeof this.types[i])return this.types[i].call(this,e);if(i&&"object"==typeof i){var o=this.validateSchema(e,i,r,n);return void 0===o||!(o&&o.errors.length)}return!0};var d=l.prototype.types={};d.string=function(e){return"string"==typeof e},d.number=function(e){return"number"==typeof e&&isFinite(e)},d.integer=function(e){return"number"==typeof e&&e%1==0},d.boolean=function(e){return"boolean"==typeof e},d.array=function(e){return Array.isArray(e)},d.null=function(e){return null===e},d.date=function(e){return e instanceof Date},d.any=function(e){return!0},d.object=function(e){return e&&"object"==typeof e&&!(e instanceof Array)&&!(e instanceof Date)},t.exports=l},{"./attribute":827,"./helpers":828,"./scan":830,url:1127}],832:[function(e,t,r){"use strict";t.exports=e("./lib/api")(e("./lib/keccak"))},{"./lib/api":833,"./lib/keccak":837}],833:[function(e,t,r){"use strict";var n=e("./keccak"),i=e("./shake");t.exports=function(e){var t=n(e),r=i(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+e)}}}},{"./keccak":834,"./shake":835}],834:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("stream").Transform,o=e("inherits");t.exports=function(e){function t(t,r,n,o,a){i.call(this,a),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=o,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}return o(t,i),t.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},t.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},t.prototype.update=function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this},t.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t},t.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},t.prototype._clone=function(){var e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e},t}},{inherits:807,"safe-buffer":1037,stream:1059}],835:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("stream").Transform,o=e("inherits");t.exports=function(e){function t(t,r,n,o){i.call(this,o),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=o,this._state=new e,this._state.initialize(t,r),this._finalized=!1}return o(t,i),t.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},t.prototype._flush=function(){},t.prototype._read=function(e){this.push(this.squeeze(e))},t.prototype.update=function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this},t.prototype.squeeze=function(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r},t.prototype._resetState=function(){return this._state.initialize(this._rate,this._capacity),this},t.prototype._clone=function(){var e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e},t}},{inherits:807,"safe-buffer":1037,stream:1059}],836:[function(e,t,r){"use strict";var n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(var t=0;t<24;++t){var r=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],s=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49],h=f^(o<<1|a>>>31),p=d^(a<<1|o>>>31),m=e[0]^h,y=e[1]^p,g=e[10]^h,b=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,x=e[31]^p,k=e[40]^h,S=e[41]^p;h=r^(s<<1|c>>>31),p=i^(c<<1|s>>>31);var E=e[2]^h,A=e[3]^p,T=e[12]^h,C=e[13]^p,O=e[22]^h,j=e[23]^p,P=e[32]^h,M=e[33]^p,I=e[42]^h,N=e[43]^p;h=o^(u<<1|l>>>31),p=a^(l<<1|u>>>31);var B=e[4]^h,R=e[5]^p,D=e[14]^h,L=e[15]^p,U=e[24]^h,F=e[25]^p,q=e[34]^h,H=e[35]^p,z=e[44]^h,K=e[45]^p;h=s^(f<<1|d>>>31),p=c^(d<<1|f>>>31);var V=e[6]^h,G=e[7]^p,W=e[16]^h,Y=e[17]^p,$=e[26]^h,J=e[27]^p,Q=e[36]^h,Z=e[37]^p,X=e[46]^h,ee=e[47]^p;h=u^(r<<1|i>>>31),p=l^(i<<1|r>>>31);var te=e[8]^h,re=e[9]^p,ne=e[18]^h,ie=e[19]^p,oe=e[28]^h,ae=e[29]^p,se=e[38]^h,ce=e[39]^p,ue=e[48]^h,le=e[49]^p,fe=m,de=y,he=b<<4|g>>>28,pe=g<<4|b>>>28,me=v<<3|w>>>29,ye=w<<3|v>>>29,ge=x<<9|_>>>23,be=_<<9|x>>>23,ve=k<<18|S>>>14,we=S<<18|k>>>14,_e=E<<1|A>>>31,xe=A<<1|E>>>31,ke=C<<12|T>>>20,Se=T<<12|C>>>20,Ee=O<<10|j>>>22,Ae=j<<10|O>>>22,Te=M<<13|P>>>19,Ce=P<<13|M>>>19,Oe=I<<2|N>>>30,je=N<<2|I>>>30,Pe=R<<30|B>>>2,Me=B<<30|R>>>2,Ie=D<<6|L>>>26,Ne=L<<6|D>>>26,Be=F<<11|U>>>21,Re=U<<11|F>>>21,De=q<<15|H>>>17,Le=H<<15|q>>>17,Ue=K<<29|z>>>3,Fe=z<<29|K>>>3,qe=V<<28|G>>>4,He=G<<28|V>>>4,ze=Y<<23|W>>>9,Ke=W<<23|Y>>>9,Ve=$<<25|J>>>7,Ge=J<<25|$>>>7,We=Q<<21|Z>>>11,Ye=Z<<21|Q>>>11,$e=ee<<24|X>>>8,Je=X<<24|ee>>>8,Qe=te<<27|re>>>5,Ze=re<<27|te>>>5,Xe=ne<<20|ie>>>12,et=ie<<20|ne>>>12,tt=ae<<7|oe>>>25,rt=oe<<7|ae>>>25,nt=se<<8|ce>>>24,it=ce<<8|se>>>24,ot=ue<<14|le>>>18,at=le<<14|ue>>>18;e[0]=fe^~ke&Be,e[1]=de^~Se&Re,e[10]=qe^~Xe&me,e[11]=He^~et&ye,e[20]=_e^~Ie&Ve,e[21]=xe^~Ne&Ge,e[30]=Qe^~he&Ee,e[31]=Ze^~pe&Ae,e[40]=Pe^~ze&tt,e[41]=Me^~Ke&rt,e[2]=ke^~Be&We,e[3]=Se^~Re&Ye,e[12]=Xe^~me&Te,e[13]=et^~ye&Ce,e[22]=Ie^~Ve&nt,e[23]=Ne^~Ge&it,e[32]=he^~Ee&De,e[33]=pe^~Ae&Le,e[42]=ze^~tt&ge,e[43]=Ke^~rt&be,e[4]=Be^~We&ot,e[5]=Re^~Ye&at,e[14]=me^~Te&Ue,e[15]=ye^~Ce&Fe,e[24]=Ve^~nt&ve,e[25]=Ge^~it&we,e[34]=Ee^~De&$e,e[35]=Ae^~Le&Je,e[44]=tt^~ge&Oe,e[45]=rt^~be&je,e[6]=We^~ot&fe,e[7]=Ye^~at&de,e[16]=Te^~Ue&qe,e[17]=Ce^~Fe&He,e[26]=nt^~ve&_e,e[27]=it^~we&xe,e[36]=De^~$e&Qe,e[37]=Le^~Je&Ze,e[46]=ge^~Oe&Pe,e[47]=be^~je&Me,e[8]=ot^~fe&ke,e[9]=at^~de&Se,e[18]=Ue^~qe&Xe,e[19]=Fe^~He&et,e[28]=ve^~_e&Ie,e[29]=we^~xe&Ne,e[38]=$e^~Qe&he,e[39]=Je^~Ze&pe,e[48]=Oe^~Pe&ze,e[49]=je^~Me&Ke,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},{}],837:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("./keccak-state-unroll");function o(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}o.prototype.initialize=function(e,t){for(var r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(e){for(var t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},o.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);for(var t=n.alloc(e),r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},o.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},t.exports=o},{"./keccak-state-unroll":836,"safe-buffer":1037}],838:[function(e,t,r){t.exports=e("browserify-sha3").SHA3Hash},{"browserify-sha3":464}],839:[function(e,t,r){var n=e("./map");r.getCurrency=function(e){var t,r,i=(t=e,r=t.split("_"),2==r.length||2==(r=t.split("-")).length?r.pop():t).toUpperCase();return i in n?n[i]:null},r.getLocales=function(e){e=e.toUpperCase();var t=[];for(countryCode in n)n[countryCode]===e&&t.push(countryCode);return t}},{"./map":840}],840:[function(e,t,r){t.exports={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AN:"ANG",AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AX:"EUR",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BQ:"USD",BR:"BRL",BS:"BSD",BT:"BTN",BV:"NOK",BW:"BWP",BY:"BYR",BZ:"BZD",CA:"CAD",CC:"AUD",CD:"CDF",CF:"XAF",CG:"XAF",CH:"CHF",CI:"XOF",CK:"NZD",CL:"CLP",CM:"XAF",CN:"CNY",CO:"COP",CR:"CRC",CU:"CUP",CV:"CVE",CW:"ANG",CX:"AUD",CY:"EUR",CZ:"CZK",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GS:"GBP",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HM:"AUD",HN:"HNL",HR:"HRK",HT:"HTG",HU:"HUF",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IO:"USD",IQ:"IQD",IR:"IRR",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KG:"KGS",KH:"KHR",KI:"AUD",KM:"KMF",KN:"XCD",KP:"KPW",KR:"KRW",KW:"KWD",KY:"KYD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LR:"LRD",LS:"LSL",LT:"LTL",LU:"EUR",LV:"LVL",LY:"LYD",MA:"MAD",MC:"EUR",MD:"MDL",ME:"EUR",MF:"EUR",MG:"MGA",MH:"USD",MK:"MKD",ML:"XOF",MM:"MMK",MN:"MNT",MO:"MOP",MP:"USD",MQ:"EUR",MR:"MRO",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MW:"MWK",MX:"MXN",MY:"MYR",MZ:"MZN",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",PH:"PHP",PK:"PKR",PL:"PLN",PM:"EUR",PN:"NZD",PR:"USD",PS:"ILS",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RE:"EUR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SD:"SDG",SE:"SEK",SG:"SGD",SH:"SHP",SI:"EUR",SJ:"NOK",SK:"EUR",SL:"SLL",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",ST:"STD",SV:"SVC",SX:"ANG",SY:"SYP",SZ:"SZL",TC:"USD",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TL:"USD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",UM:"USD",US:"USD",UY:"UYU",UZ:"UZS",VA:"EUR",VC:"XCD",VE:"VEF",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WF:"XPF",WS:"WST",YE:"YER",YT:"EUR",ZA:"ZAR",ZM:"ZMK",ZW:"ZWL"}},{}],841:[function(e,t,r){(function(e){var n="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[n]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[o]=p["[object RegExp]"]=p[a]=p["[object String]"]=p["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,y="object"==typeof self&&self&&self.Object===Object&&self,g=m||y||Function("return this")(),b="object"==typeof r&&r&&!r.nodeType&&r,v=b&&"object"==typeof t&&t&&!t.nodeType&&t,w=v&&v.exports===b&&m.process,_=function(){try{return w&&w.binding("util")}catch(e){}}(),x=_&&_.isTypedArray;function k(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function S(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function E(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function A(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function T(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function C(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var O,j,P,M=Array.prototype,I=Function.prototype,N=Object.prototype,B=g["__core-js_shared__"],R=(O=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",D=I.toString,L=N.hasOwnProperty,U=N.toString,F=RegExp("^"+D.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=g.Symbol,H=g.Uint8Array,z=N.propertyIsEnumerable,K=M.splice,V=q?q.isConcatSpreadable:void 0,G=(j=Object.keys,P=Object,function(e){return j(P(e))}),W=ke(g,"DataView"),Y=ke(g,"Map"),$=ke(g,"Promise"),J=ke(g,"Set"),Q=ke(g,"WeakMap"),Z=ke(Object,"create"),X=Me(W),ee=Me(Y),te=Me($),re=Me(J),ne=Me(Q),ie=q?q.prototype:void 0,oe=ie?ie.valueOf:void 0,ae=ie?ie.toString:void 0;function se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ce(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ue(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function le(e){var t=-1,r=e?e.length:0;for(this.__data__=new ue;++t<r;)this.add(e[t])}function fe(e){this.__data__=new ce(e)}function de(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1}se.prototype.clear=function(){this.__data__=Z?Z(null):{}},se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},se.prototype.get=function(e){var t=this.__data__;if(Z){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return L.call(t,e)?t[e]:void 0},se.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:L.call(t,e)},se.prototype.set=function(e,t){return this.__data__[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this},ce.prototype.clear=function(){this.__data__=[]},ce.prototype.delete=function(e){var t=this.__data__,r=de(t,e);return!(r<0||(r==t.length-1?t.pop():K.call(t,r,1),0))},ce.prototype.get=function(e){var t=this.__data__,r=de(t,e);return r<0?void 0:t[r][1]},ce.prototype.has=function(e){return de(this.__data__,e)>-1},ce.prototype.set=function(e,t){var r=this.__data__,n=de(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ue.prototype.clear=function(){this.__data__={hash:new se,map:new(Y||ce),string:new se}},ue.prototype.delete=function(e){return xe(this,e).delete(e)},ue.prototype.get=function(e){return xe(this,e).get(e)},ue.prototype.has=function(e){return xe(this,e).has(e)},ue.prototype.set=function(e,t){return xe(this,e).set(e,t),this},le.prototype.add=le.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},le.prototype.has=function(e){return this.__data__.has(e)},fe.prototype.clear=function(){this.__data__=new ce},fe.prototype.delete=function(e){return this.__data__.delete(e)},fe.prototype.get=function(e){return this.__data__.get(e)},fe.prototype.has=function(e){return this.__data__.has(e)},fe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ce){var n=r.__data__;if(!Y||n.length<199)return n.push([e,t]),this;r=this.__data__=new ue(n)}return r.set(e,t),this};var he,pe=(he=function(e,t){return e&&me(e,t,Ke)},function(e,t){if(null==e)return e;if(!De(e))return he(e,t);for(var r=e.length,n=-1,i=Object(e);++n<r&&!1!==t(i[n],n,i););return e}),me=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e};function ye(e,t){for(var r=0,n=(t=Te(t,e)?[t]:we(t)).length;null!=e&&r<n;)e=e[Pe(t[r++])];return r&&r==n?e:void 0}function ge(e,t){return null!=e&&t in Object(e)}function be(e,t,r,s,c){return e===t||(null==e||null==t||!Fe(e)&&!qe(t)?e!=e&&t!=t:function(e,t,r,s,c,u){var l=Re(e),f=Re(t),d="[object Array]",h="[object Array]";l||(d=(d=Se(e))==n?o:d),f||(h=(h=Se(t))==n?o:h);var p=d==o&&!A(e),m=h==o&&!A(t),y=d==h;if(y&&!p)return u||(u=new fe),l||ze(e)?_e(e,t,r,s,c,u):function(e,t,r,n,o,s,c){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!n(new H(e),new H(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ne(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var u=T;case a:var l=2&s;if(u||(u=C),e.size!=t.size&&!l)return!1;var f=c.get(e);if(f)return f==t;s|=1,c.set(e,t);var d=_e(u(e),u(t),n,o,s,c);return c.delete(e),d;case"[object Symbol]":if(oe)return oe.call(e)==oe.call(t)}return!1}(e,t,d,r,s,c,u);if(!(2&c)){var g=p&&L.call(e,"__wrapped__"),b=m&&L.call(t,"__wrapped__");if(g||b){var v=g?e.value():e,w=b?t.value():t;return u||(u=new fe),r(v,w,s,c,u)}}return!!y&&(u||(u=new fe),function(e,t,r,n,i,o){var a=2&i,s=Ke(e),c=s.length;if(c!=Ke(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:L.call(t,l)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var d=!0;o.set(e,t),o.set(t,e);for(var h=a;++u<c;){var p=e[l=s[u]],m=t[l];if(n)var y=a?n(m,p,l,t,e,o):n(p,m,l,e,t,o);if(!(void 0===y?p===m||r(p,m,n,i,o):y)){d=!1;break}h||(h="constructor"==l)}if(d&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return o.delete(e),o.delete(t),d}(e,t,r,s,c,u))}(e,t,be,r,s,c))}function ve(e,t){var r=-1,n=De(e)?Array(e.length):[];return pe(e,(function(e,i,o){n[++r]=t(e,i,o)})),n}function we(e){return Re(e)?e:je(e)}function _e(e,t,r,n,i,o){var a=2&i,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var l=-1,f=!0,d=1&i?new le:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var h=e[l],p=t[l];if(n)var m=a?n(p,h,l,t,e,o):n(h,p,l,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!E(t,(function(e,t){if(!d.has(t)&&(h===e||r(h,e,n,i,o)))return d.add(t)}))){f=!1;break}}else if(h!==p&&!r(h,p,n,i,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function xe(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function ke(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Fe(e)||function(e){return!!R&&R in e}(e))&&(Le(e)||A(e)?F:d).test(Me(e))}(r)?r:void 0}var Se=function(e){return U.call(e)};function Ee(e){return Re(e)||Be(e)||!!(V&&e&&e[V])}function Ae(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e<t}function Te(e,t){if(Re(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!He(e))||c.test(e)||!s.test(e)||null!=t&&e in Object(t)}function Ce(e){return e==e&&!Fe(e)}function Oe(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(W&&"[object DataView]"!=Se(new W(new ArrayBuffer(1)))||Y&&Se(new Y)!=i||$&&"[object Promise]"!=Se($.resolve())||J&&Se(new J)!=a||Q&&"[object WeakMap]"!=Se(new Q))&&(Se=function(e){var t=U.call(e),r=t==o?e.constructor:void 0,n=r?Me(r):void 0;if(n)switch(n){case X:return"[object DataView]";case ee:return i;case te:return"[object Promise]";case re:return a;case ne:return"[object WeakMap]"}return t});var je=Ie((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(He(e))return ae?ae.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return u.test(e)&&r.push(""),e.replace(l,(function(e,t,n,i){r.push(n?i.replace(f,"$1"):t||e)})),r}));function Pe(e){if("string"==typeof e||He(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Me(e){if(null!=e){try{return D.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ie(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(Ie.Cache||ue),r}function Ne(e,t){return e===t||e!=e&&t!=t}function Be(e){return function(e){return qe(e)&&De(e)}(e)&&L.call(e,"callee")&&(!z.call(e,"callee")||U.call(e)==n)}Ie.Cache=ue;var Re=Array.isArray;function De(e){return null!=e&&Ue(e.length)&&!Le(e)}function Le(e){var t=Fe(e)?U.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Ue(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Fe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return!!e&&"object"==typeof e}function He(e){return"symbol"==typeof e||qe(e)&&"[object Symbol]"==U.call(e)}var ze=x?function(e){return function(t){return e(t)}}(x):function(e){return qe(e)&&Ue(e.length)&&!!p[U.call(e)]};function Ke(e){return De(e)?function(e,t){var r=Re(e)||Be(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!L.call(e,o)||i&&("length"==o||Ae(o,n))||r.push(o);return r}(e):function(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||N))return G(e);var t,r,n=[];for(var i in Object(e))L.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}function Ve(e){return e}t.exports=function(e,t){return function e(t,r,n,i,o){var a=-1,s=t.length;for(n||(n=Ee),o||(o=[]);++a<s;){var c=t[a];r>0&&n(c)?r>1?e(c,r-1,n,i,o):S(o,c):i||(o[o.length]=c)}return o}(function(e,t){return(Re(e)?k:ve)(e,function(e){return"function"==typeof e?e:null==e?Ve:"object"==typeof e?Re(e)?function(e,t){return Te(e)&&Ce(t)?Oe(Pe(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:ye(e,t);return void 0===n?void 0:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){for(var n,i=-1,o=(t=Te(t,e)?[t]:we(t)).length;++i<o;){var a=Pe(t[i]);if(!(n=null!=e&&r(e,a)))break;e=e[a]}return n||!!(o=e?e.length:0)&&Ue(o)&&Ae(a,o)&&(Re(e)||Be(e))}(e,t,ge)}(r,e):be(t,n,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ke(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ce(i)]}return t}(e);return 1==t.length&&t[0][2]?Oe(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var i=r.length,o=i;if(null==e)return!o;for(e=Object(e);i--;){var a=r[i];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var s=(a=r[i])[0],c=e[s],u=a[1];if(a[2]){if(void 0===c&&!(s in e))return!1}else{var l,f=new fe;if(!(void 0===l?be(u,c,n,3,f):l))return!1}}return!0}(r,0,t)}}(e):Te(t=e)?(r=Pe(t),function(e){return null==e?void 0:e[r]}):function(e){return function(t){return ye(t,e)}}(t);var t,r}(t))}(e,t),1)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],842:[function(e,t,r){var n=e("./_root").Symbol;t.exports=n},{"./_root":858}],843:[function(e,t,r){var n=e("./_baseTimes"),i=e("./isArguments"),o=e("./isArray"),a=e("./isBuffer"),s=e("./_isIndex"),c=e("./isTypedArray"),u=Object.prototype.hasOwnProperty;t.exports=function(e,t){var r=o(e),l=!r&&i(e),f=!r&&!l&&a(e),d=!r&&!l&&!f&&c(e),h=r||l||f||d,p=h?n(e.length,String):[],m=p.length;for(var y in e)!t&&!u.call(e,y)||h&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,m))||p.push(y);return p}},{"./_baseTimes":848,"./_isIndex":852,"./isArguments":859,"./isArray":860,"./isBuffer":862,"./isTypedArray":867}],844:[function(e,t,r){var n=e("./_Symbol"),i=e("./_getRawTag"),o=e("./_objectToString"),a=n?n.toStringTag:void 0;t.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},{"./_Symbol":842,"./_getRawTag":851,"./_objectToString":856}],845:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObjectLike");t.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},{"./_baseGetTag":844,"./isObjectLike":866}],846:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isLength"),o=e("./isObjectLike"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(e){return o(e)&&i(e.length)&&!!a[n(e)]}},{"./_baseGetTag":844,"./isLength":864,"./isObjectLike":866}],847:[function(e,t,r){var n=e("./_isPrototype"),i=e("./_nativeKeys"),o=Object.prototype.hasOwnProperty;t.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},{"./_isPrototype":853,"./_nativeKeys":854}],848:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},{}],849:[function(e,t,r){t.exports=function(e){return function(t){return e(t)}}},{}],850:[function(e,t,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],851:[function(e,t,r){var n=e("./_Symbol"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},{"./_Symbol":842}],852:[function(e,t,r){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},{}],853:[function(e,t,r){var n=Object.prototype;t.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},{}],854:[function(e,t,r){var n=e("./_overArg")(Object.keys,Object);t.exports=n},{"./_overArg":857}],855:[function(e,t,r){var n=e("./_freeGlobal"),i="object"==typeof r&&r&&!r.nodeType&&r,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s},{"./_freeGlobal":850}],856:[function(e,t,r){var n=Object.prototype.toString;t.exports=function(e){return n.call(e)}},{}],857:[function(e,t,r){t.exports=function(e,t){return function(r){return e(t(r))}}},{}],858:[function(e,t,r){var n=e("./_freeGlobal"),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},{"./_freeGlobal":850}],859:[function(e,t,r){var n=e("./_baseIsArguments"),i=e("./isObjectLike"),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};t.exports=c},{"./_baseIsArguments":845,"./isObjectLike":866}],860:[function(e,t,r){var n=Array.isArray;t.exports=n},{}],861:[function(e,t,r){var n=e("./isFunction"),i=e("./isLength");t.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},{"./isFunction":863,"./isLength":864}],862:[function(e,t,r){var n=e("./_root"),i=e("./stubFalse"),o="object"==typeof r&&r&&!r.nodeType&&r,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c},{"./_root":858,"./stubFalse":871}],863:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObject");t.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},{"./_baseGetTag":844,"./isObject":865}],864:[function(e,t,r){t.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},{}],865:[function(e,t,r){t.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},{}],866:[function(e,t,r){t.exports=function(e){return null!=e&&"object"==typeof e}},{}],867:[function(e,t,r){var n=e("./_baseIsTypedArray"),i=e("./_baseUnary"),o=e("./_nodeUtil"),a=o&&o.isTypedArray,s=a?i(a):n;t.exports=s},{"./_baseIsTypedArray":846,"./_baseUnary":849,"./_nodeUtil":855}],868:[function(e,t,r){var n=e("./_arrayLikeKeys"),i=e("./_baseKeys"),o=e("./isArrayLike");t.exports=function(e){return o(e)?n(e):i(e)}},{"./_arrayLikeKeys":843,"./_baseKeys":847,"./isArrayLike":861}],869:[function(e,t,r){(function(e){(function(){var n="Expected a function",i="__lodash_placeholder__",o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",s="[object Array]",c="[object Boolean]",u="[object Date]",l="[object Error]",f="[object Function]",d="[object GeneratorFunction]",h="[object Map]",p="[object Number]",m="[object Object]",y="[object RegExp]",g="[object Set]",b="[object String]",v="[object Symbol]",w="[object WeakMap]",_="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",S="[object Float64Array]",E="[object Int8Array]",A="[object Int16Array]",T="[object Int32Array]",C="[object Uint8Array]",O="[object Uint16Array]",j="[object Uint32Array]",P=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,I=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,R=RegExp(N.source),D=RegExp(B.source),L=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,F=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,V=RegExp(K.source),G=/^\s+|\s+$/g,W=/^\s+/,Y=/\s+$/,$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,Z=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,X=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,oe=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,ue=/['\n\r\u2028\u2029\\]/g,le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",de="["+fe+"]",he="["+le+"]",pe="\\d+",me="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+fe+pe+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ge="\\ud83c[\\udffb-\\udfff]",be="[^\\ud800-\\udfff]",ve="(?:\\ud83c[\\udde6-\\uddff]){2}",we="[\\ud800-\\udbff][\\udc00-\\udfff]",_e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xe="(?:"+me+"|"+ye+")",ke="(?:"+_e+"|"+ye+")",Se="(?:"+he+"|"+ge+")?",Ee="[\\ufe0e\\ufe0f]?"+Se+"(?:\\u200d(?:"+[be,ve,we].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*",Ae="(?:"+["[\\u2700-\\u27bf]",ve,we].join("|")+")"+Ee,Te="(?:"+[be+he+"?",he,ve,we,"[\\ud800-\\udfff]"].join("|")+")",Ce=RegExp("['’]","g"),Oe=RegExp(he,"g"),je=RegExp(ge+"(?="+ge+")|"+Te+Ee,"g"),Pe=RegExp([_e+"?"+me+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[de,_e,"$"].join("|")+")",ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[de,_e+xe,"$"].join("|")+")",_e+"?"+xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",_e+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pe,Ae].join("|"),"g"),Me=RegExp("[\\u200d\\ud800-\\udfff"+le+"\\ufe0e\\ufe0f]"),Ie=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Be=-1,Re={};Re[k]=Re[S]=Re[E]=Re[A]=Re[T]=Re[C]=Re["[object Uint8ClampedArray]"]=Re[O]=Re[j]=!0,Re[a]=Re[s]=Re[_]=Re[c]=Re[x]=Re[u]=Re[l]=Re[f]=Re[h]=Re[p]=Re[m]=Re[y]=Re[g]=Re[b]=Re[w]=!1;var De={};De[a]=De[s]=De[_]=De[x]=De[c]=De[u]=De[k]=De[S]=De[E]=De[A]=De[T]=De[h]=De[p]=De[m]=De[y]=De[g]=De[b]=De[v]=De[C]=De["[object Uint8ClampedArray]"]=De[O]=De[j]=!0,De[l]=De[f]=De[w]=!1;var Le={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ue=parseFloat,Fe=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,He="object"==typeof self&&self&&self.Object===Object&&self,ze=qe||He||Function("return this")(),Ke="object"==typeof r&&r&&!r.nodeType&&r,Ve=Ke&&"object"==typeof t&&t&&!t.nodeType&&t,Ge=Ve&&Ve.exports===Ke,We=Ge&&qe.process,Ye=function(){try{return Ve&&Ve.require&&Ve.require("util").types||We&&We.binding&&We.binding("util")}catch(e){}}(),$e=Ye&&Ye.isArrayBuffer,Je=Ye&&Ye.isDate,Qe=Ye&&Ye.isMap,Ze=Ye&&Ye.isRegExp,Xe=Ye&&Ye.isSet,et=Ye&&Ye.isTypedArray;function tt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function rt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(n,a,r(a),e)}return n}function nt(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function it(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function ot(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function at(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}function st(e,t){return!(null==e||!e.length)&>(e,t,0)>-1}function ct(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function ut(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function lt(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function ft(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}function dt(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function ht(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var pt=_t("length");function mt(e,t,r){var n;return r(e,(function(e,r,i){if(t(e,r,i))return n=r,!1})),n}function yt(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function gt(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,r):yt(e,vt,r)}function bt(e,t,r,n){for(var i=r-1,o=e.length;++i<o;)if(n(e[i],t))return i;return-1}function vt(e){return e!=e}function wt(e,t){var r=null==e?0:e.length;return r?St(e,t)/r:NaN}function _t(e){return function(t){return null==t?void 0:t[e]}}function xt(e){return function(t){return null==e?void 0:e[t]}}function kt(e,t,r,n,i){return i(e,(function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)})),r}function St(e,t){for(var r,n=-1,i=e.length;++n<i;){var o=t(e[n]);void 0!==o&&(r=void 0===r?o:r+o)}return r}function Et(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function At(e){return function(t){return e(t)}}function Tt(e,t){return ut(t,(function(t){return e[t]}))}function Ct(e,t){return e.has(t)}function Ot(e,t){for(var r=-1,n=e.length;++r<n&>(t,e[r],0)>-1;);return r}function jt(e,t){for(var r=e.length;r--&>(t,e[r],0)>-1;);return r}function Pt(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Mt=xt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),It=xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Le[e]}function Bt(e){return Me.test(e)}function Rt(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Dt(e,t){return function(r){return e(t(r))}}function Lt(e,t){for(var r=-1,n=e.length,o=0,a=[];++r<n;){var s=e[r];s!==t&&s!==i||(e[r]=i,a[o++]=r)}return a}function Ut(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function Ft(e){return Bt(e)?function(e){for(var t=je.lastIndex=0;je.test(e);)++t;return t}(e):pt(e)}function qt(e){return Bt(e)?function(e){return e.match(je)||[]}(e):function(e){return e.split("")}(e)}var Ht=xt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),zt=function e(t){var r,le=(t=null==t?ze:zt.defaults(ze.Object(),t,zt.pick(ze,Ne))).Array,fe=t.Date,de=t.Error,he=t.Function,pe=t.Math,me=t.Object,ye=t.RegExp,ge=t.String,be=t.TypeError,ve=le.prototype,we=he.prototype,_e=me.prototype,xe=t["__core-js_shared__"],ke=we.toString,Se=_e.hasOwnProperty,Ee=0,Ae=(r=/[^.]+$/.exec(xe&&xe.keys&&xe.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Te=_e.toString,je=ke.call(me),Me=ze._,Le=ye("^"+ke.call(Se).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=Ge?t.Buffer:void 0,He=t.Symbol,Ke=t.Uint8Array,Ve=qe?qe.allocUnsafe:void 0,We=Dt(me.getPrototypeOf,me),Ye=me.create,pt=_e.propertyIsEnumerable,xt=ve.splice,Kt=He?He.isConcatSpreadable:void 0,Vt=He?He.iterator:void 0,Gt=He?He.toStringTag:void 0,Wt=function(){try{var e=Qi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Yt=t.clearTimeout!==ze.clearTimeout&&t.clearTimeout,$t=fe&&fe.now!==ze.Date.now&&fe.now,Jt=t.setTimeout!==ze.setTimeout&&t.setTimeout,Qt=pe.ceil,Zt=pe.floor,Xt=me.getOwnPropertySymbols,er=qe?qe.isBuffer:void 0,tr=t.isFinite,rr=ve.join,nr=Dt(me.keys,me),ir=pe.max,or=pe.min,ar=fe.now,sr=t.parseInt,cr=pe.random,ur=ve.reverse,lr=Qi(t,"DataView"),fr=Qi(t,"Map"),dr=Qi(t,"Promise"),hr=Qi(t,"Set"),pr=Qi(t,"WeakMap"),mr=Qi(me,"create"),yr=pr&&new pr,gr={},br=Eo(lr),vr=Eo(fr),wr=Eo(dr),_r=Eo(hr),xr=Eo(pr),kr=He?He.prototype:void 0,Sr=kr?kr.valueOf:void 0,Er=kr?kr.toString:void 0;function Ar(e){if(Ha(e)&&!Pa(e)&&!(e instanceof jr)){if(e instanceof Or)return e;if(Se.call(e,"__wrapped__"))return Ao(e)}return new Or(e)}var Tr=function(){function e(){}return function(t){if(!qa(t))return{};if(Ye)return Ye(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Cr(){}function Or(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function jr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Pr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Mr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ir(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Nr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ir;++t<r;)this.add(e[t])}function Br(e){var t=this.__data__=new Mr(e);this.size=t.size}function Rr(e,t){var r=Pa(e),n=!r&&ja(e),i=!r&&!n&&Ba(e),o=!r&&!n&&!i&&Ja(e),a=r||n||i||o,s=a?Et(e.length,ge):[],c=s.length;for(var u in e)!t&&!Se.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||io(u,c))||s.push(u);return s}function Dr(e){var t=e.length;return t?e[Nn(0,t-1)]:void 0}function Lr(e,t){return xo(mi(e),Wr(t,0,e.length))}function Ur(e){return xo(mi(e))}function Fr(e,t,r){(void 0!==r&&!Ta(e[t],r)||void 0===r&&!(t in e))&&Vr(e,t,r)}function qr(e,t,r){var n=e[t];Se.call(e,t)&&Ta(n,r)&&(void 0!==r||t in e)||Vr(e,t,r)}function Hr(e,t){for(var r=e.length;r--;)if(Ta(e[r][0],t))return r;return-1}function zr(e,t,r,n){return Zr(e,(function(e,i,o){t(n,e,r(e),o)})),n}function Kr(e,t){return e&&yi(t,bs(t),e)}function Vr(e,t,r){"__proto__"==t&&Wt?Wt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Gr(e,t){for(var r=-1,n=t.length,i=le(n),o=null==e;++r<n;)i[r]=o?void 0:hs(e,t[r]);return i}function Wr(e,t,r){return e==e&&(void 0!==r&&(e=e<=r?e:r),void 0!==t&&(e=e>=t?e:t)),e}function Yr(e,t,r,n,i,o){var s,l=1&t,w=2&t,P=4&t;if(r&&(s=i?r(e,n,i,o):r(e)),void 0!==s)return s;if(!qa(e))return e;var M=Pa(e);if(M){if(s=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&Se.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!l)return mi(e,s)}else{var I=eo(e),N=I==f||I==d;if(Ba(e))return ui(e,l);if(I==m||I==a||N&&!i){if(s=w||N?{}:ro(e),!l)return w?function(e,t){return yi(e,Xi(e),t)}(e,function(e,t){return e&&yi(t,vs(t),e)}(s,e)):function(e,t){return yi(e,Zi(e),t)}(e,Kr(s,e))}else{if(!De[I])return i?e:{};s=function(e,t,r){var n,i=e.constructor;switch(t){case _:return li(e);case c:case u:return new i(+e);case x:return function(e,t){var r=t?li(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case k:case S:case E:case A:case T:case C:case"[object Uint8ClampedArray]":case O:case j:return fi(e,r);case h:return new i;case p:case b:return new i(e);case y:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return new i;case v:return n=e,Sr?me(Sr.call(n)):{}}}(e,I,l)}}o||(o=new Br);var B=o.get(e);if(B)return B;o.set(e,s),Wa(e)?e.forEach((function(n){s.add(Yr(n,t,r,n,e,o))})):za(e)&&e.forEach((function(n,i){s.set(i,Yr(n,t,r,i,e,o))}));var R=M?void 0:(P?w?Ki:zi:w?vs:bs)(e);return nt(R||e,(function(n,i){R&&(n=e[i=n]),qr(s,i,Yr(n,t,r,i,e,o))})),s}function $r(e,t,r){var n=r.length;if(null==e)return!n;for(e=me(e);n--;){var i=r[n],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Jr(e,t,r){if("function"!=typeof e)throw new be(n);return bo((function(){e.apply(void 0,r)}),t)}function Qr(e,t,r,n){var i=-1,o=st,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;r&&(t=ut(t,At(r))),n?(o=ct,a=!1):t.length>=200&&(o=Ct,a=!1,t=new Nr(t));e:for(;++i<s;){var l=e[i],f=null==r?l:r(l);if(l=n||0!==l?l:0,a&&f==f){for(var d=u;d--;)if(t[d]===f)continue e;c.push(l)}else o(t,f,n)||c.push(l)}return c}Ar.templateSettings={escape:L,evaluate:U,interpolate:F,variable:"",imports:{_:Ar}},Ar.prototype=Cr.prototype,Ar.prototype.constructor=Ar,Or.prototype=Tr(Cr.prototype),Or.prototype.constructor=Or,jr.prototype=Tr(Cr.prototype),jr.prototype.constructor=jr,Pr.prototype.clear=function(){this.__data__=mr?mr(null):{},this.size=0},Pr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Pr.prototype.get=function(e){var t=this.__data__;if(mr){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return Se.call(t,e)?t[e]:void 0},Pr.prototype.has=function(e){var t=this.__data__;return mr?void 0!==t[e]:Se.call(t,e)},Pr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=mr&&void 0===t?"__lodash_hash_undefined__":t,this},Mr.prototype.clear=function(){this.__data__=[],this.size=0},Mr.prototype.delete=function(e){var t=this.__data__,r=Hr(t,e);return!(r<0||(r==t.length-1?t.pop():xt.call(t,r,1),--this.size,0))},Mr.prototype.get=function(e){var t=this.__data__,r=Hr(t,e);return r<0?void 0:t[r][1]},Mr.prototype.has=function(e){return Hr(this.__data__,e)>-1},Mr.prototype.set=function(e,t){var r=this.__data__,n=Hr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ir.prototype.clear=function(){this.size=0,this.__data__={hash:new Pr,map:new(fr||Mr),string:new Pr}},Ir.prototype.delete=function(e){var t=$i(this,e).delete(e);return this.size-=t?1:0,t},Ir.prototype.get=function(e){return $i(this,e).get(e)},Ir.prototype.has=function(e){return $i(this,e).has(e)},Ir.prototype.set=function(e,t){var r=$i(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Nr.prototype.add=Nr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Nr.prototype.has=function(e){return this.__data__.has(e)},Br.prototype.clear=function(){this.__data__=new Mr,this.size=0},Br.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Br.prototype.get=function(e){return this.__data__.get(e)},Br.prototype.has=function(e){return this.__data__.has(e)},Br.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Mr){var n=r.__data__;if(!fr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ir(n)}return r.set(e,t),this.size=r.size,this};var Zr=vi(sn),Xr=vi(cn,!0);function en(e,t){var r=!0;return Zr(e,(function(e,n,i){return r=!!t(e,n,i)})),r}function tn(e,t,r){for(var n=-1,i=e.length;++n<i;){var o=e[n],a=t(o);if(null!=a&&(void 0===s?a==a&&!$a(a):r(a,s)))var s=a,c=o}return c}function rn(e,t){var r=[];return Zr(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function nn(e,t,r,n,i){var o=-1,a=e.length;for(r||(r=no),i||(i=[]);++o<a;){var s=e[o];t>0&&r(s)?t>1?nn(s,t-1,r,n,i):lt(i,s):n||(i[i.length]=s)}return i}var on=wi(),an=wi(!0);function sn(e,t){return e&&on(e,t,bs)}function cn(e,t){return e&&an(e,t,bs)}function un(e,t){return at(t,(function(t){return La(e[t])}))}function ln(e,t){for(var r=0,n=(t=oi(t,e)).length;null!=e&&r<n;)e=e[So(t[r++])];return r&&r==n?e:void 0}function fn(e,t,r){var n=t(e);return Pa(e)?n:lt(n,r(e))}function dn(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Gt&&Gt in me(e)?function(e){var t=Se.call(e,Gt),r=e[Gt];try{e[Gt]=void 0;var n=!0}catch(e){}var i=Te.call(e);return n&&(t?e[Gt]=r:delete e[Gt]),i}(e):function(e){return Te.call(e)}(e)}function hn(e,t){return e>t}function pn(e,t){return null!=e&&Se.call(e,t)}function mn(e,t){return null!=e&&t in me(e)}function yn(e,t,r){for(var n=r?ct:st,i=e[0].length,o=e.length,a=o,s=le(o),c=1/0,u=[];a--;){var l=e[a];a&&t&&(l=ut(l,At(t))),c=or(l.length,c),s[a]=!r&&(t||i>=120&&l.length>=120)?new Nr(a&&l):void 0}l=e[0];var f=-1,d=s[0];e:for(;++f<i&&u.length<c;){var h=l[f],p=t?t(h):h;if(h=r||0!==h?h:0,!(d?Ct(d,p):n(u,p,r))){for(a=o;--a;){var m=s[a];if(!(m?Ct(m,p):n(e[a],p,r)))continue e}d&&d.push(p),u.push(h)}}return u}function gn(e,t,r){var n=null==(e=po(e,t=oi(t,e)))?e:e[So(Do(t))];return null==n?void 0:tt(n,e,r)}function bn(e){return Ha(e)&&dn(e)==a}function vn(e,t,r,n,i){return e===t||(null==e||null==t||!Ha(e)&&!Ha(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var f=Pa(e),d=Pa(t),w=f?s:eo(e),k=d?s:eo(t),S=(w=w==a?m:w)==m,E=(k=k==a?m:k)==m,A=w==k;if(A&&Ba(e)){if(!Ba(t))return!1;f=!0,S=!1}if(A&&!S)return o||(o=new Br),f||Ja(e)?qi(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new Ke(e),new Ke(t)));case c:case u:case p:return Ta(+e,+t);case l:return e.name==t.name&&e.message==t.message;case y:case b:return e==t+"";case h:var s=Rt;case g:var f=1&n;if(s||(s=Ut),e.size!=t.size&&!f)return!1;var d=a.get(e);if(d)return d==t;n|=2,a.set(e,t);var m=qi(s(e),s(t),n,i,o,a);return a.delete(e),m;case v:if(Sr)return Sr.call(e)==Sr.call(t)}return!1}(e,t,w,r,n,i,o);if(!(1&r)){var T=S&&Se.call(e,"__wrapped__"),C=E&&Se.call(t,"__wrapped__");if(T||C){var O=T?e.value():e,j=C?t.value():t;return o||(o=new Br),i(O,j,r,n,o)}}return!!A&&(o||(o=new Br),function(e,t,r,n,i,o){var a=1&r,s=zi(e),c=s.length;if(c!=zi(t).length&&!a)return!1;for(var u=c;u--;){var l=s[u];if(!(a?l in t:Se.call(t,l)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var h=!0;o.set(e,t),o.set(t,e);for(var p=a;++u<c;){var m=e[l=s[u]],y=t[l];if(n)var g=a?n(y,m,l,t,e,o):n(m,y,l,e,t,o);if(!(void 0===g?m===y||i(m,y,r,n,o):g)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,r,n,i,o))}(e,t,r,n,vn,i))}function wn(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=me(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=r[i])[0],u=e[c],l=s[1];if(a&&s[2]){if(void 0===u&&!(c in e))return!1}else{var f=new Br;if(n)var d=n(u,l,c,e,t,f);if(!(void 0===d?vn(l,u,3,n,f):d))return!1}}return!0}function _n(e){return!(!qa(e)||(t=e,Ae&&Ae in t))&&(La(e)?Le:ie).test(Eo(e));var t}function xn(e){return"function"==typeof e?e:null==e?Ks:"object"==typeof e?Pa(e)?Tn(e[0],e[1]):An(e):Xs(e)}function kn(e){if(!uo(e))return nr(e);var t=[];for(var r in me(e))Se.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Sn(e,t){return e<t}function En(e,t){var r=-1,n=Ia(e)?le(e.length):[];return Zr(e,(function(e,i,o){n[++r]=t(e,i,o)})),n}function An(e){var t=Ji(e);return 1==t.length&&t[0][2]?fo(t[0][0],t[0][1]):function(r){return r===e||wn(r,e,t)}}function Tn(e,t){return ao(e)&&lo(t)?fo(So(e),t):function(r){var n=hs(r,e);return void 0===n&&n===t?ps(r,e):vn(t,n,3)}}function Cn(e,t,r,n,i){e!==t&&on(t,(function(o,a){if(i||(i=new Br),qa(o))!function(e,t,r,n,i,o,a){var s=yo(e,r),c=yo(t,r),u=a.get(c);if(u)Fr(e,r,u);else{var l=o?o(s,c,r+"",e,t,a):void 0,f=void 0===l;if(f){var d=Pa(c),h=!d&&Ba(c),p=!d&&!h&&Ja(c);l=c,d||h||p?Pa(s)?l=s:Na(s)?l=mi(s):h?(f=!1,l=ui(c,!0)):p?(f=!1,l=fi(c,!0)):l=[]:Va(c)||ja(c)?(l=s,ja(s)?l=is(s):qa(s)&&!La(s)||(l=ro(c))):f=!1}f&&(a.set(c,l),i(l,c,n,o,a),a.delete(c)),Fr(e,r,l)}}(e,t,a,r,Cn,n,i);else{var s=n?n(yo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Fr(e,a,s)}}),vs)}function On(e,t){var r=e.length;if(r)return io(t+=t<0?r:0,r)?e[t]:void 0}function jn(e,t,r){t=t.length?ut(t,(function(e){return Pa(e)?function(t){return ln(t,1===e.length?e[0]:e)}:e})):[Ks];var n=-1;return t=ut(t,At(Yi())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(En(e,(function(e,r,i){return{criteria:ut(t,(function(t){return t(e)})),index:++n,value:e}})),(function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,o=t.criteria,a=i.length,s=r.length;++n<a;){var c=di(i[n],o[n]);if(c)return n>=s?c:c*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function Pn(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t[n],s=ln(e,a);r(s,a)&&Un(o,oi(a,e),s)}return o}function Mn(e,t,r,n){var i=n?bt:gt,o=-1,a=t.length,s=e;for(e===t&&(t=mi(t)),r&&(s=ut(e,At(r)));++o<a;)for(var c=0,u=t[o],l=r?r(u):u;(c=i(s,l,c,n))>-1;)s!==e&&xt.call(s,c,1),xt.call(e,c,1);return e}function In(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;io(i)?xt.call(e,i,1):Qn(e,i)}}return e}function Nn(e,t){return e+Zt(cr()*(t-e+1))}function Bn(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=Zt(t/2))&&(e+=e)}while(t);return r}function Rn(e,t){return vo(ho(e,t,Ks),e+"")}function Dn(e){return Dr(Ts(e))}function Ln(e,t){var r=Ts(e);return xo(r,Wr(t,0,r.length))}function Un(e,t,r,n){if(!qa(e))return e;for(var i=-1,o=(t=oi(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=So(t[i]),u=r;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var l=s[c];void 0===(u=n?n(l,c,s):void 0)&&(u=qa(l)?l:io(t[i+1])?[]:{})}qr(s,c,u),s=s[c]}return e}var Fn=yr?function(e,t){return yr.set(e,t),e}:Ks,qn=Wt?function(e,t){return Wt(e,"toString",{configurable:!0,enumerable:!1,value:qs(t),writable:!0})}:Ks;function Hn(e){return xo(Ts(e))}function zn(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=le(i);++n<i;)o[n]=e[n+t];return o}function Kn(e,t){var r;return Zr(e,(function(e,n,i){return!(r=t(e,n,i))})),!!r}function Vn(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;n<i;){var o=n+i>>>1,a=e[o];null!==a&&!$a(a)&&(r?a<=t:a<t)?n=o+1:i=o}return i}return Gn(e,t,Ks,r)}function Gn(e,t,r,n){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=r(t))!=t,s=null===t,c=$a(t),u=void 0===t;i<o;){var l=Zt((i+o)/2),f=r(e[l]),d=void 0!==f,h=null===f,p=f==f,m=$a(f);if(a)var y=n||p;else y=u?p&&(n||d):s?p&&d&&(n||!h):c?p&&d&&!h&&(n||!m):!h&&!m&&(n?f<=t:f<t);y?i=l+1:o=l}return or(o,4294967294)}function Wn(e,t){for(var r=-1,n=e.length,i=0,o=[];++r<n;){var a=e[r],s=t?t(a):a;if(!r||!Ta(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Yn(e){return"number"==typeof e?e:$a(e)?NaN:+e}function $n(e){if("string"==typeof e)return e;if(Pa(e))return ut(e,$n)+"";if($a(e))return Er?Er.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Jn(e,t,r){var n=-1,i=st,o=e.length,a=!0,s=[],c=s;if(r)a=!1,i=ct;else if(o>=200){var u=t?null:Bi(e);if(u)return Ut(u);a=!1,i=Ct,c=new Nr}else c=t?[]:s;e:for(;++n<o;){var l=e[n],f=t?t(l):l;if(l=r||0!==l?l:0,a&&f==f){for(var d=c.length;d--;)if(c[d]===f)continue e;t&&c.push(f),s.push(l)}else i(c,f,r)||(c!==s&&c.push(f),s.push(l))}return s}function Qn(e,t){return null==(e=po(e,t=oi(t,e)))||delete e[So(Do(t))]}function Zn(e,t,r,n){return Un(e,t,r(ln(e,t)),n)}function Xn(e,t,r,n){for(var i=e.length,o=n?i:-1;(n?o--:++o<i)&&t(e[o],o,e););return r?zn(e,n?0:o,n?o+1:i):zn(e,n?o+1:0,n?i:o)}function ei(e,t){var r=e;return r instanceof jr&&(r=r.value()),ft(t,(function(e,t){return t.func.apply(t.thisArg,lt([e],t.args))}),r)}function ti(e,t,r){var n=e.length;if(n<2)return n?Jn(e[0]):[];for(var i=-1,o=le(n);++i<n;)for(var a=e[i],s=-1;++s<n;)s!=i&&(o[i]=Qr(o[i]||a,e[s],t,r));return Jn(nn(o,1),t,r)}function ri(e,t,r){for(var n=-1,i=e.length,o=t.length,a={};++n<i;){var s=n<o?t[n]:void 0;r(a,e[n],s)}return a}function ni(e){return Na(e)?e:[]}function ii(e){return"function"==typeof e?e:Ks}function oi(e,t){return Pa(e)?e:ao(e,t)?[e]:ko(os(e))}var ai=Rn;function si(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:zn(e,t,r)}var ci=Yt||function(e){return ze.clearTimeout(e)};function ui(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function li(e){var t=new e.constructor(e.byteLength);return new Ke(t).set(new Ke(e)),t}function fi(e,t){var r=t?li(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function di(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=e==e,o=$a(e),a=void 0!==t,s=null===t,c=t==t,u=$a(t);if(!s&&!u&&!o&&e>t||o&&a&&c&&!s&&!u||n&&a&&c||!r&&c||!i)return 1;if(!n&&!o&&!u&&e<t||u&&r&&i&&!n&&!o||s&&r&&i||!a&&i||!c)return-1}return 0}function hi(e,t,r,n){for(var i=-1,o=e.length,a=r.length,s=-1,c=t.length,u=ir(o-a,0),l=le(c+u),f=!n;++s<c;)l[s]=t[s];for(;++i<a;)(f||i<o)&&(l[r[i]]=e[i]);for(;u--;)l[s++]=e[i++];return l}function pi(e,t,r,n){for(var i=-1,o=e.length,a=-1,s=r.length,c=-1,u=t.length,l=ir(o-s,0),f=le(l+u),d=!n;++i<l;)f[i]=e[i];for(var h=i;++c<u;)f[h+c]=t[c];for(;++a<s;)(d||i<o)&&(f[h+r[a]]=e[i++]);return f}function mi(e,t){var r=-1,n=e.length;for(t||(t=le(n));++r<n;)t[r]=e[r];return t}function yi(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=n?n(r[s],e[s],s,r,e):void 0;void 0===c&&(c=e[s]),i?Vr(r,s,c):qr(r,s,c)}return r}function gi(e,t){return function(r,n){var i=Pa(r)?rt:zr,o=t?t():{};return i(r,e,Yi(n,2),o)}}function bi(e){return Rn((function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,a=i>2?r[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&oo(r[0],r[1],a)&&(o=i<3?void 0:o,i=1),t=me(t);++n<i;){var s=r[n];s&&e(t,s,n,o)}return t}))}function vi(e,t){return function(r,n){if(null==r)return r;if(!Ia(r))return e(r,n);for(var i=r.length,o=t?i:-1,a=me(r);(t?o--:++o<i)&&!1!==n(a[o],o,a););return r}}function wi(e){return function(t,r,n){for(var i=-1,o=me(t),a=n(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===r(o[c],c,o))break}return t}}function _i(e){return function(t){var r=Bt(t=os(t))?qt(t):void 0,n=r?r[0]:t.charAt(0),i=r?si(r,1).join(""):t.slice(1);return n[e]()+i}}function xi(e){return function(t){return ft(Ls(js(t).replace(Ce,"")),e,"")}}function ki(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=Tr(e.prototype),n=e.apply(r,t);return qa(n)?n:r}}function Si(e){return function(t,r,n){var i=me(t);if(!Ia(t)){var o=Yi(r,3);t=bs(t),r=function(e){return o(i[e],e,i)}}var a=e(t,r,n);return a>-1?i[o?t[a]:a]:void 0}}function Ei(e){return Hi((function(t){var r=t.length,i=r,o=Or.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new be(n);if(o&&!s&&"wrapper"==Gi(a))var s=new Or([],!0)}for(i=s?i:r;++i<r;){var c=Gi(a=t[i]),u="wrapper"==c?Vi(a):void 0;s=u&&so(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?s[Gi(u[0])].apply(s,u[3]):1==a.length&&so(a)?s[c]():s.thru(a)}return function(){var e=arguments,n=e[0];if(s&&1==e.length&&Pa(n))return s.plant(n).value();for(var i=0,o=r?t[i].apply(this,e):n;++i<r;)o=t[i].call(this,o);return o}}))}function Ai(e,t,r,n,i,o,a,s,c,u){var l=128&t,f=1&t,d=2&t,h=24&t,p=512&t,m=d?void 0:ki(e);return function y(){for(var g=arguments.length,b=le(g),v=g;v--;)b[v]=arguments[v];if(h)var w=Wi(y),_=Pt(b,w);if(n&&(b=hi(b,n,i,h)),o&&(b=pi(b,o,a,h)),g-=_,h&&g<u){var x=Lt(b,w);return Ii(e,t,Ai,y.placeholder,r,b,x,s,c,u-g)}var k=f?r:this,S=d?k[e]:e;return g=b.length,s?b=mo(b,s):p&&g>1&&b.reverse(),l&&c<g&&(b.length=c),this&&this!==ze&&this instanceof y&&(S=m||ki(S)),S.apply(k,b)}}function Ti(e,t){return function(r,n){return function(e,t,r,n){return sn(e,(function(e,i,o){t(n,r(e),i,o)})),n}(r,e,t(n),{})}}function Ci(e,t){return function(r,n){var i;if(void 0===r&&void 0===n)return t;if(void 0!==r&&(i=r),void 0!==n){if(void 0===i)return n;"string"==typeof r||"string"==typeof n?(r=$n(r),n=$n(n)):(r=Yn(r),n=Yn(n)),i=e(r,n)}return i}}function Oi(e){return Hi((function(t){return t=ut(t,At(Yi())),Rn((function(r){var n=this;return e(t,(function(e){return tt(e,n,r)}))}))}))}function ji(e,t){var r=(t=void 0===t?" ":$n(t)).length;if(r<2)return r?Bn(t,e):t;var n=Bn(t,Qt(e/Ft(t)));return Bt(t)?si(qt(n),0,e).join(""):n.slice(0,e)}function Pi(e){return function(t,r,n){return n&&"number"!=typeof n&&oo(t,r,n)&&(r=n=void 0),t=es(t),void 0===r?(r=t,t=0):r=es(r),function(e,t,r,n){for(var i=-1,o=ir(Qt((t-e)/(r||1)),0),a=le(o);o--;)a[n?o:++i]=e,e+=r;return a}(t,r,n=void 0===n?t<r?1:-1:es(n),e)}}function Mi(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ns(t),r=ns(r)),e(t,r)}}function Ii(e,t,r,n,i,o,a,s,c,u){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,i,l?o:void 0,l?a:void 0,l?void 0:o,l?void 0:a,s,c,u],d=r.apply(void 0,f);return so(e)&&go(d,f),d.placeholder=n,wo(d,e,t)}function Ni(e){var t=pe[e];return function(e,r){if(e=ns(e),(r=null==r?0:or(ts(r),292))&&tr(e)){var n=(os(e)+"e").split("e");return+((n=(os(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Bi=hr&&1/Ut(new hr([,-0]))[1]==1/0?function(e){return new hr(e)}:$s;function Ri(e){return function(t){var r=eo(t);return r==h?Rt(t):r==g?function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}(t):function(e,t){return ut(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Di(e,t,r,o,a,s,c,u){var l=2&t;if(!l&&"function"!=typeof e)throw new be(n);var f=o?o.length:0;if(f||(t&=-97,o=a=void 0),c=void 0===c?c:ir(ts(c),0),u=void 0===u?u:ts(u),f-=a?a.length:0,64&t){var d=o,h=a;o=a=void 0}var p=l?void 0:Vi(e),m=[e,t,r,o,a,d,h,s,c,u];if(p&&function(e,t){var r=e[1],n=t[1],o=r|n,a=o<131,s=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!a&&!s)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?hi(u,c,t[4]):c,e[4]=u?Lt(e[3],i):t[4]}(c=t[5])&&(u=e[5],e[5]=u?pi(u,c,t[6]):c,e[6]=u?Lt(e[5],i):t[6]),(c=t[7])&&(e[7]=c),128&n&&(e[8]=null==e[8]?t[8]:or(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(m,p),e=m[0],t=m[1],r=m[2],o=m[3],a=m[4],!(u=m[9]=void 0===m[9]?l?0:e.length:ir(m[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)y=8==t||16==t?function(e,t,r){var n=ki(e);return function i(){for(var o=arguments.length,a=le(o),s=o,c=Wi(i);s--;)a[s]=arguments[s];var u=o<3&&a[0]!==c&&a[o-1]!==c?[]:Lt(a,c);if((o-=u.length)<r)return Ii(e,t,Ai,i.placeholder,void 0,a,u,void 0,void 0,r-o);var l=this&&this!==ze&&this instanceof i?n:e;return tt(l,this,a)}}(e,t,u):32!=t&&33!=t||a.length?Ai.apply(void 0,m):function(e,t,r,n){var i=1&t,o=ki(e);return function t(){for(var a=-1,s=arguments.length,c=-1,u=n.length,l=le(u+s),f=this&&this!==ze&&this instanceof t?o:e;++c<u;)l[c]=n[c];for(;s--;)l[c++]=arguments[++a];return tt(f,i?r:this,l)}}(e,t,r,o);else var y=function(e,t,r){var n=1&t,i=ki(e);return function t(){var o=this&&this!==ze&&this instanceof t?i:e;return o.apply(n?r:this,arguments)}}(e,t,r);return wo((p?Fn:go)(y,m),e,t)}function Li(e,t,r,n){return void 0===e||Ta(e,_e[r])&&!Se.call(n,r)?t:e}function Ui(e,t,r,n,i,o){return qa(e)&&qa(t)&&(o.set(t,e),Cn(e,t,void 0,Ui,o),o.delete(t)),e}function Fi(e){return Va(e)?void 0:e}function qi(e,t,r,n,i,o){var a=1&r,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=o.get(e),l=o.get(t);if(u&&l)return u==t&&l==e;var f=-1,d=!0,h=2&r?new Nr:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var p=e[f],m=t[f];if(n)var y=a?n(m,p,f,t,e,o):n(p,m,f,e,t,o);if(void 0!==y){if(y)continue;d=!1;break}if(h){if(!ht(t,(function(e,t){if(!Ct(h,t)&&(p===e||i(p,e,r,n,o)))return h.push(t)}))){d=!1;break}}else if(p!==m&&!i(p,m,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Hi(e){return vo(ho(e,void 0,Mo),e+"")}function zi(e){return fn(e,bs,Zi)}function Ki(e){return fn(e,vs,Xi)}var Vi=yr?function(e){return yr.get(e)}:$s;function Gi(e){for(var t=e.name+"",r=gr[t],n=Se.call(gr,t)?r.length:0;n--;){var i=r[n],o=i.func;if(null==o||o==e)return i.name}return t}function Wi(e){return(Se.call(Ar,"placeholder")?Ar:e).placeholder}function Yi(){var e=Ar.iteratee||Vs;return e=e===Vs?xn:e,arguments.length?e(arguments[0],arguments[1]):e}function $i(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Ji(e){for(var t=bs(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,lo(i)]}return t}function Qi(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return _n(r)?r:void 0}var Zi=Xt?function(e){return null==e?[]:(e=me(e),at(Xt(e),(function(t){return pt.call(e,t)})))}:rc,Xi=Xt?function(e){for(var t=[];e;)lt(t,Zi(e)),e=We(e);return t}:rc,eo=dn;function to(e,t,r){for(var n=-1,i=(t=oi(t,e)).length,o=!1;++n<i;){var a=So(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Fa(i)&&io(a,i)&&(Pa(e)||ja(e))}function ro(e){return"function"!=typeof e.constructor||uo(e)?{}:Tr(We(e))}function no(e){return Pa(e)||ja(e)||!!(Kt&&e&&e[Kt])}function io(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&ae.test(e))&&e>-1&&e%1==0&&e<t}function oo(e,t,r){if(!qa(r))return!1;var n=typeof t;return!!("number"==n?Ia(r)&&io(t,r.length):"string"==n&&t in r)&&Ta(r[t],e)}function ao(e,t){if(Pa(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!$a(e))||H.test(e)||!q.test(e)||null!=t&&e in me(t)}function so(e){var t=Gi(e),r=Ar[t];if("function"!=typeof r||!(t in jr.prototype))return!1;if(e===r)return!0;var n=Vi(r);return!!n&&e===n[0]}(lr&&eo(new lr(new ArrayBuffer(1)))!=x||fr&&eo(new fr)!=h||dr&&"[object Promise]"!=eo(dr.resolve())||hr&&eo(new hr)!=g||pr&&eo(new pr)!=w)&&(eo=function(e){var t=dn(e),r=t==m?e.constructor:void 0,n=r?Eo(r):"";if(n)switch(n){case br:return x;case vr:return h;case wr:return"[object Promise]";case _r:return g;case xr:return w}return t});var co=xe?La:nc;function uo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||_e)}function lo(e){return e==e&&!qa(e)}function fo(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in me(r))}}function ho(e,t,r){return t=ir(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=ir(n.length-t,0),a=le(o);++i<o;)a[i]=n[t+i];i=-1;for(var s=le(t+1);++i<t;)s[i]=n[i];return s[t]=r(a),tt(e,this,s)}}function po(e,t){return t.length<2?e:ln(e,zn(t,0,-1))}function mo(e,t){for(var r=e.length,n=or(t.length,r),i=mi(e);n--;){var o=t[n];e[n]=io(o,r)?i[o]:void 0}return e}function yo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var go=_o(Fn),bo=Jt||function(e,t){return ze.setTimeout(e,t)},vo=_o(qn);function wo(e,t,r){var n=t+"";return vo(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace($,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return nt(o,(function(r){var n="_."+r[0];t&r[1]&&!st(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Q):[]}(n),r)))}function _o(e){var t=0,r=0;return function(){var n=ar(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function xo(e,t){var r=-1,n=e.length,i=n-1;for(t=void 0===t?n:t;++r<t;){var o=Nn(r,i),a=e[o];e[o]=e[r],e[r]=a}return e.length=t,e}var ko=function(e){var t=_a((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(z,(function(e,r,n,i){t.push(n?i.replace(X,"$1"):r||e)})),t}),(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}();function So(e){if("string"==typeof e||$a(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Eo(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ao(e){if(e instanceof jr)return e.clone();var t=new Or(e.__wrapped__,e.__chain__);return t.__actions__=mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var To=Rn((function(e,t){return Na(e)?Qr(e,nn(t,1,Na,!0)):[]})),Co=Rn((function(e,t){var r=Do(t);return Na(r)&&(r=void 0),Na(e)?Qr(e,nn(t,1,Na,!0),Yi(r,2)):[]})),Oo=Rn((function(e,t){var r=Do(t);return Na(r)&&(r=void 0),Na(e)?Qr(e,nn(t,1,Na,!0),void 0,r):[]}));function jo(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ts(r);return i<0&&(i=ir(n+i,0)),yt(e,Yi(t,3),i)}function Po(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return void 0!==r&&(i=ts(r),i=r<0?ir(n+i,0):or(i,n-1)),yt(e,Yi(t,3),i,!0)}function Mo(e){return null!=e&&e.length?nn(e,1):[]}function Io(e){return e&&e.length?e[0]:void 0}var No=Rn((function(e){var t=ut(e,ni);return t.length&&t[0]===e[0]?yn(t):[]})),Bo=Rn((function(e){var t=Do(e),r=ut(e,ni);return t===Do(r)?t=void 0:r.pop(),r.length&&r[0]===e[0]?yn(r,Yi(t,2)):[]})),Ro=Rn((function(e){var t=Do(e),r=ut(e,ni);return(t="function"==typeof t?t:void 0)&&r.pop(),r.length&&r[0]===e[0]?yn(r,void 0,t):[]}));function Do(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Lo=Rn(Uo);function Uo(e,t){return e&&e.length&&t&&t.length?Mn(e,t):e}var Fo=Hi((function(e,t){var r=null==e?0:e.length,n=Gr(e,t);return In(e,ut(t,(function(e){return io(e,r)?+e:e})).sort(di)),n}));function qo(e){return null==e?e:ur.call(e)}var Ho=Rn((function(e){return Jn(nn(e,1,Na,!0))})),zo=Rn((function(e){var t=Do(e);return Na(t)&&(t=void 0),Jn(nn(e,1,Na,!0),Yi(t,2))})),Ko=Rn((function(e){var t=Do(e);return t="function"==typeof t?t:void 0,Jn(nn(e,1,Na,!0),void 0,t)}));function Vo(e){if(!e||!e.length)return[];var t=0;return e=at(e,(function(e){if(Na(e))return t=ir(e.length,t),!0})),Et(t,(function(t){return ut(e,_t(t))}))}function Go(e,t){if(!e||!e.length)return[];var r=Vo(e);return null==t?r:ut(r,(function(e){return tt(t,void 0,e)}))}var Wo=Rn((function(e,t){return Na(e)?Qr(e,t):[]})),Yo=Rn((function(e){return ti(at(e,Na))})),$o=Rn((function(e){var t=Do(e);return Na(t)&&(t=void 0),ti(at(e,Na),Yi(t,2))})),Jo=Rn((function(e){var t=Do(e);return t="function"==typeof t?t:void 0,ti(at(e,Na),void 0,t)})),Qo=Rn(Vo),Zo=Rn((function(e){var t=e.length,r=t>1?e[t-1]:void 0;return r="function"==typeof r?(e.pop(),r):void 0,Go(e,r)}));function Xo(e){var t=Ar(e);return t.__chain__=!0,t}function ea(e,t){return t(e)}var ta=Hi((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,i=function(t){return Gr(t,e)};return!(t>1||this.__actions__.length)&&n instanceof jr&&io(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ea,args:[i],thisArg:void 0}),new Or(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)})),ra=gi((function(e,t,r){Se.call(e,r)?++e[r]:Vr(e,r,1)})),na=Si(jo),ia=Si(Po);function oa(e,t){return(Pa(e)?nt:Zr)(e,Yi(t,3))}function aa(e,t){return(Pa(e)?it:Xr)(e,Yi(t,3))}var sa=gi((function(e,t,r){Se.call(e,r)?e[r].push(t):Vr(e,r,[t])})),ca=Rn((function(e,t,r){var n=-1,i="function"==typeof t,o=Ia(e)?le(e.length):[];return Zr(e,(function(e){o[++n]=i?tt(t,e,r):gn(e,t,r)})),o})),ua=gi((function(e,t,r){Vr(e,r,t)}));function la(e,t){return(Pa(e)?ut:En)(e,Yi(t,3))}var fa=gi((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]})),da=Rn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&oo(e,t[0],t[1])?t=[]:r>2&&oo(t[0],t[1],t[2])&&(t=[t[0]]),jn(e,nn(t,1),[])})),ha=$t||function(){return ze.Date.now()};function pa(e,t,r){return t=r?void 0:t,Di(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var r;if("function"!=typeof t)throw new be(n);return e=ts(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}var ya=Rn((function(e,t,r){var n=1;if(r.length){var i=Lt(r,Wi(ya));n|=32}return Di(e,n,t,r,i)})),ga=Rn((function(e,t,r){var n=3;if(r.length){var i=Lt(r,Wi(ga));n|=32}return Di(t,n,e,r,i)}));function ba(e,t,r){var i,o,a,s,c,u,l=0,f=!1,d=!1,h=!0;if("function"!=typeof e)throw new be(n);function p(t){var r=i,n=o;return i=o=void 0,l=t,s=e.apply(n,r)}function m(e){return l=e,c=bo(g,t),f?p(e):s}function y(e){var r=e-u;return void 0===u||r>=t||r<0||d&&e-l>=a}function g(){var e=ha();if(y(e))return b(e);c=bo(g,function(e){var r=t-(e-u);return d?or(r,a-(e-l)):r}(e))}function b(e){return c=void 0,h&&i?p(e):(i=o=void 0,s)}function v(){var e=ha(),r=y(e);if(i=arguments,o=this,u=e,r){if(void 0===c)return m(u);if(d)return ci(c),c=bo(g,t),p(u)}return void 0===c&&(c=bo(g,t)),s}return t=ns(t)||0,qa(r)&&(f=!!r.leading,a=(d="maxWait"in r)?ir(ns(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),v.cancel=function(){void 0!==c&&ci(c),l=0,i=u=o=c=void 0},v.flush=function(){return void 0===c?s:b(ha())},v}var va=Rn((function(e,t){return Jr(e,1,t)})),wa=Rn((function(e,t,r){return Jr(e,ns(t)||0,r)}));function _a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(n);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(_a.Cache||Ir),r}function xa(e){if("function"!=typeof e)throw new be(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}_a.Cache=Ir;var ka=ai((function(e,t){var r=(t=1==t.length&&Pa(t[0])?ut(t[0],At(Yi())):ut(nn(t,1),At(Yi()))).length;return Rn((function(n){for(var i=-1,o=or(n.length,r);++i<o;)n[i]=t[i].call(this,n[i]);return tt(e,this,n)}))})),Sa=Rn((function(e,t){return Di(e,32,void 0,t,Lt(t,Wi(Sa)))})),Ea=Rn((function(e,t){return Di(e,64,void 0,t,Lt(t,Wi(Ea)))})),Aa=Hi((function(e,t){return Di(e,256,void 0,void 0,void 0,t)}));function Ta(e,t){return e===t||e!=e&&t!=t}var Ca=Mi(hn),Oa=Mi((function(e,t){return e>=t})),ja=bn(function(){return arguments}())?bn:function(e){return Ha(e)&&Se.call(e,"callee")&&!pt.call(e,"callee")},Pa=le.isArray,Ma=$e?At($e):function(e){return Ha(e)&&dn(e)==_};function Ia(e){return null!=e&&Fa(e.length)&&!La(e)}function Na(e){return Ha(e)&&Ia(e)}var Ba=er||nc,Ra=Je?At(Je):function(e){return Ha(e)&&dn(e)==u};function Da(e){if(!Ha(e))return!1;var t=dn(e);return t==l||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Va(e)}function La(e){if(!qa(e))return!1;var t=dn(e);return t==f||t==d||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ua(e){return"number"==typeof e&&e==ts(e)}function Fa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function qa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var za=Qe?At(Qe):function(e){return Ha(e)&&eo(e)==h};function Ka(e){return"number"==typeof e||Ha(e)&&dn(e)==p}function Va(e){if(!Ha(e)||dn(e)!=m)return!1;var t=We(e);if(null===t)return!0;var r=Se.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ke.call(r)==je}var Ga=Ze?At(Ze):function(e){return Ha(e)&&dn(e)==y},Wa=Xe?At(Xe):function(e){return Ha(e)&&eo(e)==g};function Ya(e){return"string"==typeof e||!Pa(e)&&Ha(e)&&dn(e)==b}function $a(e){return"symbol"==typeof e||Ha(e)&&dn(e)==v}var Ja=et?At(et):function(e){return Ha(e)&&Fa(e.length)&&!!Re[dn(e)]},Qa=Mi(Sn),Za=Mi((function(e,t){return e<=t}));function Xa(e){if(!e)return[];if(Ia(e))return Ya(e)?qt(e):mi(e);if(Vt&&e[Vt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Vt]());var t=eo(e);return(t==h?Rt:t==g?Ut:Ts)(e)}function es(e){return e?(e=ns(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ts(e){var t=es(e),r=t%1;return t==t?r?t-r:t:0}function rs(e){return e?Wr(ts(e),0,4294967295):0}function ns(e){if("number"==typeof e)return e;if($a(e))return NaN;if(qa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=qa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var r=ne.test(e);return r||oe.test(e)?Fe(e.slice(2),r?2:8):re.test(e)?NaN:+e}function is(e){return yi(e,vs(e))}function os(e){return null==e?"":$n(e)}var as=bi((function(e,t){if(uo(t)||Ia(t))yi(t,bs(t),e);else for(var r in t)Se.call(t,r)&&qr(e,r,t[r])})),ss=bi((function(e,t){yi(t,vs(t),e)})),cs=bi((function(e,t,r,n){yi(t,vs(t),e,n)})),us=bi((function(e,t,r,n){yi(t,bs(t),e,n)})),ls=Hi(Gr),fs=Rn((function(e,t){e=me(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&oo(t[0],t[1],i)&&(n=1);++r<n;)for(var o=t[r],a=vs(o),s=-1,c=a.length;++s<c;){var u=a[s],l=e[u];(void 0===l||Ta(l,_e[u])&&!Se.call(e,u))&&(e[u]=o[u])}return e})),ds=Rn((function(e){return e.push(void 0,Ui),tt(_s,void 0,e)}));function hs(e,t,r){var n=null==e?void 0:ln(e,t);return void 0===n?r:n}function ps(e,t){return null!=e&&to(e,t,mn)}var ms=Ti((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),e[t]=r}),qs(Ks)),ys=Ti((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Te.call(t)),Se.call(e,t)?e[t].push(r):e[t]=[r]}),Yi),gs=Rn(gn);function bs(e){return Ia(e)?Rr(e):kn(e)}function vs(e){return Ia(e)?Rr(e,!0):function(e){if(!qa(e))return function(e){var t=[];if(null!=e)for(var r in me(e))t.push(r);return t}(e);var t=uo(e),r=[];for(var n in e)("constructor"!=n||!t&&Se.call(e,n))&&r.push(n);return r}(e)}var ws=bi((function(e,t,r){Cn(e,t,r)})),_s=bi((function(e,t,r,n){Cn(e,t,r,n)})),xs=Hi((function(e,t){var r={};if(null==e)return r;var n=!1;t=ut(t,(function(t){return t=oi(t,e),n||(n=t.length>1),t})),yi(e,Ki(e),r),n&&(r=Yr(r,7,Fi));for(var i=t.length;i--;)Qn(r,t[i]);return r})),ks=Hi((function(e,t){return null==e?{}:function(e,t){return Pn(e,t,(function(t,r){return ps(e,r)}))}(e,t)}));function Ss(e,t){if(null==e)return{};var r=ut(Ki(e),(function(e){return[e]}));return t=Yi(t),Pn(e,r,(function(e,r){return t(e,r[0])}))}var Es=Ri(bs),As=Ri(vs);function Ts(e){return null==e?[]:Tt(e,bs(e))}var Cs=xi((function(e,t,r){return t=t.toLowerCase(),e+(r?Os(t):t)}));function Os(e){return Ds(os(e).toLowerCase())}function js(e){return(e=os(e))&&e.replace(se,Mt).replace(Oe,"")}var Ps=xi((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ms=xi((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Is=_i("toLowerCase"),Ns=xi((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()})),Bs=xi((function(e,t,r){return e+(r?" ":"")+Ds(t)})),Rs=xi((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ds=_i("toUpperCase");function Ls(e,t,r){return e=os(e),void 0===(t=r?void 0:t)?function(e){return Ie.test(e)}(e)?function(e){return e.match(Pe)||[]}(e):function(e){return e.match(Z)||[]}(e):e.match(t)||[]}var Us=Rn((function(e,t){try{return tt(e,void 0,t)}catch(e){return Da(e)?e:new de(e)}})),Fs=Hi((function(e,t){return nt(t,(function(t){t=So(t),Vr(e,t,ya(e[t],e))})),e}));function qs(e){return function(){return e}}var Hs=Ei(),zs=Ei(!0);function Ks(e){return e}function Vs(e){return xn("function"==typeof e?e:Yr(e,1))}var Gs=Rn((function(e,t){return function(r){return gn(r,e,t)}})),Ws=Rn((function(e,t){return function(r){return gn(e,r,t)}}));function Ys(e,t,r){var n=bs(t),i=un(t,n);null!=r||qa(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=un(t,bs(t)));var o=!(qa(r)&&"chain"in r&&!r.chain),a=La(e);return nt(i,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__),i=r.__actions__=mi(this.__actions__);return i.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,lt([this.value()],arguments))})})),e}function $s(){}var Js=Oi(ut),Qs=Oi(ot),Zs=Oi(ht);function Xs(e){return ao(e)?_t(So(e)):function(e){return function(t){return ln(t,e)}}(e)}var ec=Pi(),tc=Pi(!0);function rc(){return[]}function nc(){return!1}var ic,oc=Ci((function(e,t){return e+t}),0),ac=Ni("ceil"),sc=Ci((function(e,t){return e/t}),1),cc=Ni("floor"),uc=Ci((function(e,t){return e*t}),1),lc=Ni("round"),fc=Ci((function(e,t){return e-t}),0);return Ar.after=function(e,t){if("function"!=typeof t)throw new be(n);return e=ts(e),function(){if(--e<1)return t.apply(this,arguments)}},Ar.ary=pa,Ar.assign=as,Ar.assignIn=ss,Ar.assignInWith=cs,Ar.assignWith=us,Ar.at=ls,Ar.before=ma,Ar.bind=ya,Ar.bindAll=Fs,Ar.bindKey=ga,Ar.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Pa(e)?e:[e]},Ar.chain=Xo,Ar.chunk=function(e,t,r){t=(r?oo(e,t,r):void 0===t)?1:ir(ts(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var i=0,o=0,a=le(Qt(n/t));i<n;)a[o++]=zn(e,i,i+=t);return a},Ar.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var o=e[t];o&&(i[n++]=o)}return i},Ar.concat=function(){var e=arguments.length;if(!e)return[];for(var t=le(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return lt(Pa(r)?mi(r):[r],nn(t,1))},Ar.cond=function(e){var t=null==e?0:e.length,r=Yi();return e=t?ut(e,(function(e){if("function"!=typeof e[1])throw new be(n);return[r(e[0]),e[1]]})):[],Rn((function(r){for(var n=-1;++n<t;){var i=e[n];if(tt(i[0],this,r))return tt(i[1],this,r)}}))},Ar.conforms=function(e){return function(e){var t=bs(e);return function(r){return $r(r,e,t)}}(Yr(e,1))},Ar.constant=qs,Ar.countBy=ra,Ar.create=function(e,t){var r=Tr(e);return null==t?r:Kr(r,t)},Ar.curry=function e(t,r,n){var i=Di(t,8,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=e.placeholder,i},Ar.curryRight=function e(t,r,n){var i=Di(t,16,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return i.placeholder=e.placeholder,i},Ar.debounce=ba,Ar.defaults=fs,Ar.defaultsDeep=ds,Ar.defer=va,Ar.delay=wa,Ar.difference=To,Ar.differenceBy=Co,Ar.differenceWith=Oo,Ar.drop=function(e,t,r){var n=null==e?0:e.length;return n?zn(e,(t=r||void 0===t?1:ts(t))<0?0:t,n):[]},Ar.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?zn(e,0,(t=n-(t=r||void 0===t?1:ts(t)))<0?0:t):[]},Ar.dropRightWhile=function(e,t){return e&&e.length?Xn(e,Yi(t,3),!0,!0):[]},Ar.dropWhile=function(e,t){return e&&e.length?Xn(e,Yi(t,3),!0):[]},Ar.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&oo(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=ts(r))<0&&(r=-r>i?0:i+r),(n=void 0===n||n>i?i:ts(n))<0&&(n+=i),n=r>n?0:rs(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Ar.filter=function(e,t){return(Pa(e)?at:rn)(e,Yi(t,3))},Ar.flatMap=function(e,t){return nn(la(e,t),1)},Ar.flatMapDeep=function(e,t){return nn(la(e,t),1/0)},Ar.flatMapDepth=function(e,t,r){return r=void 0===r?1:ts(r),nn(la(e,t),r)},Ar.flatten=Mo,Ar.flattenDeep=function(e){return null!=e&&e.length?nn(e,1/0):[]},Ar.flattenDepth=function(e,t){return null!=e&&e.length?nn(e,t=void 0===t?1:ts(t)):[]},Ar.flip=function(e){return Di(e,512)},Ar.flow=Hs,Ar.flowRight=zs,Ar.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},Ar.functions=function(e){return null==e?[]:un(e,bs(e))},Ar.functionsIn=function(e){return null==e?[]:un(e,vs(e))},Ar.groupBy=sa,Ar.initial=function(e){return null!=e&&e.length?zn(e,0,-1):[]},Ar.intersection=No,Ar.intersectionBy=Bo,Ar.intersectionWith=Ro,Ar.invert=ms,Ar.invertBy=ys,Ar.invokeMap=ca,Ar.iteratee=Vs,Ar.keyBy=ua,Ar.keys=bs,Ar.keysIn=vs,Ar.map=la,Ar.mapKeys=function(e,t){var r={};return t=Yi(t,3),sn(e,(function(e,n,i){Vr(r,t(e,n,i),e)})),r},Ar.mapValues=function(e,t){var r={};return t=Yi(t,3),sn(e,(function(e,n,i){Vr(r,n,t(e,n,i))})),r},Ar.matches=function(e){return An(Yr(e,1))},Ar.matchesProperty=function(e,t){return Tn(e,Yr(t,1))},Ar.memoize=_a,Ar.merge=ws,Ar.mergeWith=_s,Ar.method=Gs,Ar.methodOf=Ws,Ar.mixin=Ys,Ar.negate=xa,Ar.nthArg=function(e){return e=ts(e),Rn((function(t){return On(t,e)}))},Ar.omit=xs,Ar.omitBy=function(e,t){return Ss(e,xa(Yi(t)))},Ar.once=function(e){return ma(2,e)},Ar.orderBy=function(e,t,r,n){return null==e?[]:(Pa(t)||(t=null==t?[]:[t]),Pa(r=n?void 0:r)||(r=null==r?[]:[r]),jn(e,t,r))},Ar.over=Js,Ar.overArgs=ka,Ar.overEvery=Qs,Ar.overSome=Zs,Ar.partial=Sa,Ar.partialRight=Ea,Ar.partition=fa,Ar.pick=ks,Ar.pickBy=Ss,Ar.property=Xs,Ar.propertyOf=function(e){return function(t){return null==e?void 0:ln(e,t)}},Ar.pull=Lo,Ar.pullAll=Uo,Ar.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Mn(e,t,Yi(r,2)):e},Ar.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Mn(e,t,void 0,r):e},Ar.pullAt=Fo,Ar.range=ec,Ar.rangeRight=tc,Ar.rearg=Aa,Ar.reject=function(e,t){return(Pa(e)?at:rn)(e,xa(Yi(t,3)))},Ar.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,i=[],o=e.length;for(t=Yi(t,3);++n<o;){var a=e[n];t(a,n,e)&&(r.push(a),i.push(n))}return In(e,i),r},Ar.rest=function(e,t){if("function"!=typeof e)throw new be(n);return Rn(e,t=void 0===t?t:ts(t))},Ar.reverse=qo,Ar.sampleSize=function(e,t,r){return t=(r?oo(e,t,r):void 0===t)?1:ts(t),(Pa(e)?Lr:Ln)(e,t)},Ar.set=function(e,t,r){return null==e?e:Un(e,t,r)},Ar.setWith=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:Un(e,t,r,n)},Ar.shuffle=function(e){return(Pa(e)?Ur:Hn)(e)},Ar.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&oo(e,t,r)?(t=0,r=n):(t=null==t?0:ts(t),r=void 0===r?n:ts(r)),zn(e,t,r)):[]},Ar.sortBy=da,Ar.sortedUniq=function(e){return e&&e.length?Wn(e):[]},Ar.sortedUniqBy=function(e,t){return e&&e.length?Wn(e,Yi(t,2)):[]},Ar.split=function(e,t,r){return r&&"number"!=typeof r&&oo(e,t,r)&&(t=r=void 0),(r=void 0===r?4294967295:r>>>0)?(e=os(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=$n(t))&&Bt(e)?si(qt(e),0,r):e.split(t,r):[]},Ar.spread=function(e,t){if("function"!=typeof e)throw new be(n);return t=null==t?0:ir(ts(t),0),Rn((function(r){var n=r[t],i=si(r,0,t);return n&<(i,n),tt(e,this,i)}))},Ar.tail=function(e){var t=null==e?0:e.length;return t?zn(e,1,t):[]},Ar.take=function(e,t,r){return e&&e.length?zn(e,0,(t=r||void 0===t?1:ts(t))<0?0:t):[]},Ar.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?zn(e,(t=n-(t=r||void 0===t?1:ts(t)))<0?0:t,n):[]},Ar.takeRightWhile=function(e,t){return e&&e.length?Xn(e,Yi(t,3),!1,!0):[]},Ar.takeWhile=function(e,t){return e&&e.length?Xn(e,Yi(t,3)):[]},Ar.tap=function(e,t){return t(e),e},Ar.throttle=function(e,t,r){var i=!0,o=!0;if("function"!=typeof e)throw new be(n);return qa(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),ba(e,t,{leading:i,maxWait:t,trailing:o})},Ar.thru=ea,Ar.toArray=Xa,Ar.toPairs=Es,Ar.toPairsIn=As,Ar.toPath=function(e){return Pa(e)?ut(e,So):$a(e)?[e]:mi(ko(os(e)))},Ar.toPlainObject=is,Ar.transform=function(e,t,r){var n=Pa(e),i=n||Ba(e)||Ja(e);if(t=Yi(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:qa(e)&&La(o)?Tr(We(e)):{}}return(i?nt:sn)(e,(function(e,n,i){return t(r,e,n,i)})),r},Ar.unary=function(e){return pa(e,1)},Ar.union=Ho,Ar.unionBy=zo,Ar.unionWith=Ko,Ar.uniq=function(e){return e&&e.length?Jn(e):[]},Ar.uniqBy=function(e,t){return e&&e.length?Jn(e,Yi(t,2)):[]},Ar.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jn(e,void 0,t):[]},Ar.unset=function(e,t){return null==e||Qn(e,t)},Ar.unzip=Vo,Ar.unzipWith=Go,Ar.update=function(e,t,r){return null==e?e:Zn(e,t,ii(r))},Ar.updateWith=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:Zn(e,t,ii(r),n)},Ar.values=Ts,Ar.valuesIn=function(e){return null==e?[]:Tt(e,vs(e))},Ar.without=Wo,Ar.words=Ls,Ar.wrap=function(e,t){return Sa(ii(t),e)},Ar.xor=Yo,Ar.xorBy=$o,Ar.xorWith=Jo,Ar.zip=Qo,Ar.zipObject=function(e,t){return ri(e||[],t||[],qr)},Ar.zipObjectDeep=function(e,t){return ri(e||[],t||[],Un)},Ar.zipWith=Zo,Ar.entries=Es,Ar.entriesIn=As,Ar.extend=ss,Ar.extendWith=cs,Ys(Ar,Ar),Ar.add=oc,Ar.attempt=Us,Ar.camelCase=Cs,Ar.capitalize=Os,Ar.ceil=ac,Ar.clamp=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=ns(r))==r?r:0),void 0!==t&&(t=(t=ns(t))==t?t:0),Wr(ns(e),t,r)},Ar.clone=function(e){return Yr(e,4)},Ar.cloneDeep=function(e){return Yr(e,5)},Ar.cloneDeepWith=function(e,t){return Yr(e,5,t="function"==typeof t?t:void 0)},Ar.cloneWith=function(e,t){return Yr(e,4,t="function"==typeof t?t:void 0)},Ar.conformsTo=function(e,t){return null==t||$r(e,t,bs(t))},Ar.deburr=js,Ar.defaultTo=function(e,t){return null==e||e!=e?t:e},Ar.divide=sc,Ar.endsWith=function(e,t,r){e=os(e),t=$n(t);var n=e.length,i=r=void 0===r?n:Wr(ts(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Ar.eq=Ta,Ar.escape=function(e){return(e=os(e))&&D.test(e)?e.replace(B,It):e},Ar.escapeRegExp=function(e){return(e=os(e))&&V.test(e)?e.replace(K,"\\$&"):e},Ar.every=function(e,t,r){var n=Pa(e)?ot:en;return r&&oo(e,t,r)&&(t=void 0),n(e,Yi(t,3))},Ar.find=na,Ar.findIndex=jo,Ar.findKey=function(e,t){return mt(e,Yi(t,3),sn)},Ar.findLast=ia,Ar.findLastIndex=Po,Ar.findLastKey=function(e,t){return mt(e,Yi(t,3),cn)},Ar.floor=cc,Ar.forEach=oa,Ar.forEachRight=aa,Ar.forIn=function(e,t){return null==e?e:on(e,Yi(t,3),vs)},Ar.forInRight=function(e,t){return null==e?e:an(e,Yi(t,3),vs)},Ar.forOwn=function(e,t){return e&&sn(e,Yi(t,3))},Ar.forOwnRight=function(e,t){return e&&cn(e,Yi(t,3))},Ar.get=hs,Ar.gt=Ca,Ar.gte=Oa,Ar.has=function(e,t){return null!=e&&to(e,t,pn)},Ar.hasIn=ps,Ar.head=Io,Ar.identity=Ks,Ar.includes=function(e,t,r,n){e=Ia(e)?e:Ts(e),r=r&&!n?ts(r):0;var i=e.length;return r<0&&(r=ir(i+r,0)),Ya(e)?r<=i&&e.indexOf(t,r)>-1:!!i&>(e,t,r)>-1},Ar.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ts(r);return i<0&&(i=ir(n+i,0)),gt(e,t,i)},Ar.inRange=function(e,t,r){return t=es(t),void 0===r?(r=t,t=0):r=es(r),function(e,t,r){return e>=or(t,r)&&e<ir(t,r)}(e=ns(e),t,r)},Ar.invoke=gs,Ar.isArguments=ja,Ar.isArray=Pa,Ar.isArrayBuffer=Ma,Ar.isArrayLike=Ia,Ar.isArrayLikeObject=Na,Ar.isBoolean=function(e){return!0===e||!1===e||Ha(e)&&dn(e)==c},Ar.isBuffer=Ba,Ar.isDate=Ra,Ar.isElement=function(e){return Ha(e)&&1===e.nodeType&&!Va(e)},Ar.isEmpty=function(e){if(null==e)return!0;if(Ia(e)&&(Pa(e)||"string"==typeof e||"function"==typeof e.splice||Ba(e)||Ja(e)||ja(e)))return!e.length;var t=eo(e);if(t==h||t==g)return!e.size;if(uo(e))return!kn(e).length;for(var r in e)if(Se.call(e,r))return!1;return!0},Ar.isEqual=function(e,t){return vn(e,t)},Ar.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:void 0)?r(e,t):void 0;return void 0===n?vn(e,t,void 0,r):!!n},Ar.isError=Da,Ar.isFinite=function(e){return"number"==typeof e&&tr(e)},Ar.isFunction=La,Ar.isInteger=Ua,Ar.isLength=Fa,Ar.isMap=za,Ar.isMatch=function(e,t){return e===t||wn(e,t,Ji(t))},Ar.isMatchWith=function(e,t,r){return r="function"==typeof r?r:void 0,wn(e,t,Ji(t),r)},Ar.isNaN=function(e){return Ka(e)&&e!=+e},Ar.isNative=function(e){if(co(e))throw new de("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _n(e)},Ar.isNil=function(e){return null==e},Ar.isNull=function(e){return null===e},Ar.isNumber=Ka,Ar.isObject=qa,Ar.isObjectLike=Ha,Ar.isPlainObject=Va,Ar.isRegExp=Ga,Ar.isSafeInteger=function(e){return Ua(e)&&e>=-9007199254740991&&e<=9007199254740991},Ar.isSet=Wa,Ar.isString=Ya,Ar.isSymbol=$a,Ar.isTypedArray=Ja,Ar.isUndefined=function(e){return void 0===e},Ar.isWeakMap=function(e){return Ha(e)&&eo(e)==w},Ar.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==dn(e)},Ar.join=function(e,t){return null==e?"":rr.call(e,t)},Ar.kebabCase=Ps,Ar.last=Do,Ar.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return void 0!==r&&(i=(i=ts(r))<0?ir(n+i,0):or(i,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):yt(e,vt,i,!0)},Ar.lowerCase=Ms,Ar.lowerFirst=Is,Ar.lt=Qa,Ar.lte=Za,Ar.max=function(e){return e&&e.length?tn(e,Ks,hn):void 0},Ar.maxBy=function(e,t){return e&&e.length?tn(e,Yi(t,2),hn):void 0},Ar.mean=function(e){return wt(e,Ks)},Ar.meanBy=function(e,t){return wt(e,Yi(t,2))},Ar.min=function(e){return e&&e.length?tn(e,Ks,Sn):void 0},Ar.minBy=function(e,t){return e&&e.length?tn(e,Yi(t,2),Sn):void 0},Ar.stubArray=rc,Ar.stubFalse=nc,Ar.stubObject=function(){return{}},Ar.stubString=function(){return""},Ar.stubTrue=function(){return!0},Ar.multiply=uc,Ar.nth=function(e,t){return e&&e.length?On(e,ts(t)):void 0},Ar.noConflict=function(){return ze._===this&&(ze._=Me),this},Ar.noop=$s,Ar.now=ha,Ar.pad=function(e,t,r){e=os(e);var n=(t=ts(t))?Ft(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return ji(Zt(i),r)+e+ji(Qt(i),r)},Ar.padEnd=function(e,t,r){e=os(e);var n=(t=ts(t))?Ft(e):0;return t&&n<t?e+ji(t-n,r):e},Ar.padStart=function(e,t,r){e=os(e);var n=(t=ts(t))?Ft(e):0;return t&&n<t?ji(t-n,r)+e:e},Ar.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),sr(os(e).replace(W,""),t||0)},Ar.random=function(e,t,r){if(r&&"boolean"!=typeof r&&oo(e,t,r)&&(t=r=void 0),void 0===r&&("boolean"==typeof t?(r=t,t=void 0):"boolean"==typeof e&&(r=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=es(e),void 0===t?(t=e,e=0):t=es(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=cr();return or(e+i*(t-e+Ue("1e-"+((i+"").length-1))),t)}return Nn(e,t)},Ar.reduce=function(e,t,r){var n=Pa(e)?ft:kt,i=arguments.length<3;return n(e,Yi(t,4),r,i,Zr)},Ar.reduceRight=function(e,t,r){var n=Pa(e)?dt:kt,i=arguments.length<3;return n(e,Yi(t,4),r,i,Xr)},Ar.repeat=function(e,t,r){return t=(r?oo(e,t,r):void 0===t)?1:ts(t),Bn(os(e),t)},Ar.replace=function(){var e=arguments,t=os(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ar.result=function(e,t,r){var n=-1,i=(t=oi(t,e)).length;for(i||(i=1,e=void 0);++n<i;){var o=null==e?void 0:e[So(t[n])];void 0===o&&(n=i,o=r),e=La(o)?o.call(e):o}return e},Ar.round=lc,Ar.runInContext=e,Ar.sample=function(e){return(Pa(e)?Dr:Dn)(e)},Ar.size=function(e){if(null==e)return 0;if(Ia(e))return Ya(e)?Ft(e):e.length;var t=eo(e);return t==h||t==g?e.size:kn(e).length},Ar.snakeCase=Ns,Ar.some=function(e,t,r){var n=Pa(e)?ht:Kn;return r&&oo(e,t,r)&&(t=void 0),n(e,Yi(t,3))},Ar.sortedIndex=function(e,t){return Vn(e,t)},Ar.sortedIndexBy=function(e,t,r){return Gn(e,t,Yi(r,2))},Ar.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=Vn(e,t);if(n<r&&Ta(e[n],t))return n}return-1},Ar.sortedLastIndex=function(e,t){return Vn(e,t,!0)},Ar.sortedLastIndexBy=function(e,t,r){return Gn(e,t,Yi(r,2),!0)},Ar.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var r=Vn(e,t,!0)-1;if(Ta(e[r],t))return r}return-1},Ar.startCase=Bs,Ar.startsWith=function(e,t,r){return e=os(e),r=null==r?0:Wr(ts(r),0,e.length),t=$n(t),e.slice(r,r+t.length)==t},Ar.subtract=fc,Ar.sum=function(e){return e&&e.length?St(e,Ks):0},Ar.sumBy=function(e,t){return e&&e.length?St(e,Yi(t,2)):0},Ar.template=function(e,t,r){var n=Ar.templateSettings;r&&oo(e,t,r)&&(t=void 0),e=os(e),t=cs({},t,n,Li);var i,o,a=cs({},t.imports,n.imports,Li),s=bs(a),c=Tt(a,s),u=0,l=t.interpolate||ce,f="__p += '",d=ye((t.escape||ce).source+"|"+l.source+"|"+(l===F?ee:ce).source+"|"+(t.evaluate||ce).source+"|$","g"),h="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Be+"]")+"\n";e.replace(d,(function(t,r,n,a,s,c){return n||(n=a),f+=e.slice(u,c).replace(ue,Nt),r&&(i=!0,f+="' +\n__e("+r+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),n&&(f+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),u=c+t.length,t})),f+="';\n";var p=Se.call(t,"variable")&&t.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(P,""):f).replace(M,"$1").replace(I,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=Us((function(){return he(s,h+"return "+f).apply(void 0,c)}));if(m.source=f,Da(m))throw m;return m},Ar.times=function(e,t){if((e=ts(e))<1||e>9007199254740991)return[];var r=4294967295,n=or(e,4294967295);e-=4294967295;for(var i=Et(n,t=Yi(t));++r<e;)t(r);return i},Ar.toFinite=es,Ar.toInteger=ts,Ar.toLength=rs,Ar.toLower=function(e){return os(e).toLowerCase()},Ar.toNumber=ns,Ar.toSafeInteger=function(e){return e?Wr(ts(e),-9007199254740991,9007199254740991):0===e?e:0},Ar.toString=os,Ar.toUpper=function(e){return os(e).toUpperCase()},Ar.trim=function(e,t,r){if((e=os(e))&&(r||void 0===t))return e.replace(G,"");if(!e||!(t=$n(t)))return e;var n=qt(e),i=qt(t);return si(n,Ot(n,i),jt(n,i)+1).join("")},Ar.trimEnd=function(e,t,r){if((e=os(e))&&(r||void 0===t))return e.replace(Y,"");if(!e||!(t=$n(t)))return e;var n=qt(e);return si(n,0,jt(n,qt(t))+1).join("")},Ar.trimStart=function(e,t,r){if((e=os(e))&&(r||void 0===t))return e.replace(W,"");if(!e||!(t=$n(t)))return e;var n=qt(e);return si(n,Ot(n,qt(t))).join("")},Ar.truncate=function(e,t){var r=30,n="...";if(qa(t)){var i="separator"in t?t.separator:i;r="length"in t?ts(t.length):r,n="omission"in t?$n(t.omission):n}var o=(e=os(e)).length;if(Bt(e)){var a=qt(e);o=a.length}if(r>=o)return e;var s=r-Ft(n);if(s<1)return n;var c=a?si(a,0,s).join(""):e.slice(0,s);if(void 0===i)return c+n;if(a&&(s+=c.length-s),Ga(i)){if(e.slice(s).search(i)){var u,l=c;for(i.global||(i=ye(i.source,os(te.exec(i))+"g")),i.lastIndex=0;u=i.exec(l);)var f=u.index;c=c.slice(0,void 0===f?s:f)}}else if(e.indexOf($n(i),s)!=s){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+n},Ar.unescape=function(e){return(e=os(e))&&R.test(e)?e.replace(N,Ht):e},Ar.uniqueId=function(e){var t=++Ee;return os(e)+t},Ar.upperCase=Rs,Ar.upperFirst=Ds,Ar.each=oa,Ar.eachRight=aa,Ar.first=Io,Ys(Ar,(ic={},sn(Ar,(function(e,t){Se.call(Ar.prototype,t)||(ic[t]=e)})),ic),{chain:!1}),Ar.VERSION="4.17.19",nt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ar[e].placeholder=Ar})),nt(["drop","take"],(function(e,t){jr.prototype[e]=function(r){r=void 0===r?1:ir(ts(r),0);var n=this.__filtered__&&!t?new jr(this):this.clone();return n.__filtered__?n.__takeCount__=or(r,n.__takeCount__):n.__views__.push({size:or(r,4294967295),type:e+(n.__dir__<0?"Right":"")}),n},jr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),nt(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;jr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Yi(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),nt(["head","last"],(function(e,t){var r="take"+(t?"Right":"");jr.prototype[e]=function(){return this[r](1).value()[0]}})),nt(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");jr.prototype[e]=function(){return this.__filtered__?new jr(this):this[r](1)}})),jr.prototype.compact=function(){return this.filter(Ks)},jr.prototype.find=function(e){return this.filter(e).head()},jr.prototype.findLast=function(e){return this.reverse().find(e)},jr.prototype.invokeMap=Rn((function(e,t){return"function"==typeof e?new jr(this):this.map((function(r){return gn(r,e,t)}))})),jr.prototype.reject=function(e){return this.filter(xa(Yi(e)))},jr.prototype.slice=function(e,t){e=ts(e);var r=this;return r.__filtered__&&(e>0||t<0)?new jr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t&&(r=(t=ts(t))<0?r.dropRight(-t):r.take(t-e)),r)},jr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},jr.prototype.toArray=function(){return this.take(4294967295)},sn(jr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Ar[n?"take"+("last"==t?"Right":""):t],o=n||/^find/.test(t);i&&(Ar.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,s=t instanceof jr,c=a[0],u=s||Pa(t),l=function(e){var t=i.apply(Ar,lt([e],a));return n&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,d=!!this.__actions__.length,h=o&&!f,p=s&&!d;if(!o&&u){t=p?t:new jr(this);var m=e.apply(t,a);return m.__actions__.push({func:ea,args:[l],thisArg:void 0}),new Or(m,f)}return h&&p?e.apply(this,a):(m=this.thru(l),h?n?m.value()[0]:m.value():m)})})),nt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Ar.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(Pa(i)?i:[],e)}return this[r]((function(r){return t.apply(Pa(r)?r:[],e)}))}})),sn(jr.prototype,(function(e,t){var r=Ar[t];if(r){var n=r.name+"";Se.call(gr,n)||(gr[n]=[]),gr[n].push({name:t,func:r})}})),gr[Ai(void 0,2).name]=[{name:"wrapper",func:void 0}],jr.prototype.clone=function(){var e=new jr(this.__wrapped__);return e.__actions__=mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mi(this.__views__),e},jr.prototype.reverse=function(){if(this.__filtered__){var e=new jr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},jr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Pa(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var o=r[n],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=or(t,e+a);break;case"takeRight":e=ir(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,u=n?s:a-1,l=this.__iteratees__,f=l.length,d=0,h=or(c,this.__takeCount__);if(!r||!n&&i==c&&h==c)return ei(e,this.__actions__);var p=[];e:for(;c--&&d<h;){for(var m=-1,y=e[u+=t];++m<f;){var g=l[m],b=g.iteratee,v=g.type,w=b(y);if(2==v)y=w;else if(!w){if(1==v)continue e;break e}}p[d++]=y}return p},Ar.prototype.at=ta,Ar.prototype.chain=function(){return Xo(this)},Ar.prototype.commit=function(){return new Or(this.value(),this.__chain__)},Ar.prototype.next=function(){void 0===this.__values__&&(this.__values__=Xa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Ar.prototype.plant=function(e){for(var t,r=this;r instanceof Cr;){var n=Ao(r);n.__index__=0,n.__values__=void 0,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Ar.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof jr){var t=e;return this.__actions__.length&&(t=new jr(this)),(t=t.reverse()).__actions__.push({func:ea,args:[qo],thisArg:void 0}),new Or(t,this.__chain__)}return this.thru(qo)},Ar.prototype.toJSON=Ar.prototype.valueOf=Ar.prototype.value=function(){return ei(this.__wrapped__,this.__actions__)},Ar.prototype.first=Ar.prototype.head,Vt&&(Ar.prototype[Vt]=function(){return this}),Ar}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ze._=zt,define((function(){return zt}))):Ve?((Ve.exports=zt)._=zt,Ke._=zt):ze._=zt}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],870:[function(e,t,r){t.exports=function(){}},{}],871:[function(e,t,r){t.exports=function(){return!1}},{}],872:[function(e,t,r){!function(e,r){"use strict";"function"==typeof define&&define.amd?define(r):"object"==typeof t&&t.exports?t.exports=r():e.log=r()}(this,(function(){"use strict";var e=function(){},t=["trace","debug","info","warn","error"];function r(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function n(t){return"debug"===t&&(t="log"),"undefined"!=typeof console&&(void 0!==console[t]?r(console,t):void 0!==console.log?r(console,"log"):e)}function i(r,n){for(var i=0;i<t.length;i++){var o=t[i];this[o]=i<r?e:this.methodFactory(o,r,n)}this.log=this.debug}function o(e,t,r){return function(){"undefined"!=typeof console&&(i.call(this,t,r),this[e].apply(this,arguments))}}function a(e,t,r){return n(e)||o.apply(this,arguments)}function s(e,r,n){var o,s=this,c="loglevel";function u(){var e;if("undefined"!=typeof window){try{e=window.localStorage[c]}catch(e){}if(void 0===e)try{var t=window.document.cookie,r=t.indexOf(encodeURIComponent(c)+"=");-1!==r&&(e=/^([^;]+)/.exec(t.slice(r))[1])}catch(e){}return void 0===s.levels[e]&&(e=void 0),e}}e&&(c+=":"+e),s.name=e,s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=n||a,s.getLevel=function(){return o},s.setLevel=function(r,n){if("string"==typeof r&&void 0!==s.levels[r.toUpperCase()]&&(r=s.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==n&&function(e){var r=(t[e]||"silent").toUpperCase();if("undefined"!=typeof window){try{return void(window.localStorage[c]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+r+";"}catch(e){}}}(r),i.call(s,r,e),"undefined"==typeof console&&r<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){u()||s.setLevel(e,!1)},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};var l=u();null==l&&(l=null==r?"WARN":r),s.setLevel(l,!1)}var c=new s,u={};c.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=u[e];return t||(t=u[e]=new s(e,c.getLevel(),c.methodFactory)),t};var l="undefined"!=typeof window?window.log:void 0;return c.noConflict=function(){return"undefined"!=typeof window&&window.log===c&&(window.log=l),c},c.getLoggers=function(){return u},c}))},{}],873:[function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,r){return(u=c()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&s(i,r.prototype),i}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s(n,e)})(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e){var t=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(e)))return function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}Object.defineProperty(r,"__esModule",{value:!0});var h=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(l(Error)),p=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return o(t,e),t}(h),m=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return o(t,e),t}(h),y=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return o(t,e),t}(h),g=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(h),b=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return o(t,e),t}(h),v=function(e){function t(){return e.apply(this,arguments)||this}return o(t,e),t}(h),w=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return o(t,e),t}(h),_="numeric",x="short",k="long",S={year:_,month:_,day:_},E={year:_,month:x,day:_},A={year:_,month:k,day:_},T={year:_,month:k,day:_,weekday:k},C={hour:_,minute:_},O={hour:_,minute:_,second:_},j={hour:_,minute:_,second:_,timeZoneName:x},P={hour:_,minute:_,second:_,timeZoneName:k},M={hour:_,minute:_,hour12:!1},I={hour:_,minute:_,second:_,hour12:!1},N={hour:_,minute:_,second:_,hour12:!1,timeZoneName:x},B={hour:_,minute:_,second:_,hour12:!1,timeZoneName:k},R={year:_,month:_,day:_,hour:_,minute:_},D={year:_,month:_,day:_,hour:_,minute:_,second:_},L={year:_,month:x,day:_,hour:_,minute:_},U={year:_,month:x,day:_,hour:_,minute:_,second:_},F={year:_,month:x,day:_,weekday:x,hour:_,minute:_},q={year:_,month:k,day:_,hour:_,minute:_,timeZoneName:x},H={year:_,month:k,day:_,hour:_,minute:_,second:_,timeZoneName:x},z={year:_,month:k,day:_,weekday:k,hour:_,minute:_,timeZoneName:k},K={year:_,month:k,day:_,weekday:k,hour:_,minute:_,second:_,timeZoneName:k};function V(e){return void 0===e}function G(e){return"number"==typeof e}function W(e){return"number"==typeof e&&e%1==0}function Y(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function $(){return!V(Intl.DateTimeFormat.prototype.formatToParts)}function J(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Q(e,t,r){if(0!==e.length)return e.reduce((function(e,n){var i=[t(n),n];return e&&r(e[0],i[0])===e[0]?e:i}),null)[1]}function Z(e,t){return t.reduce((function(t,r){return t[r]=e[r],t}),{})}function X(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ee(e,t,r){return W(e)&&e>=t&&e<=r}function te(e,t){return void 0===t&&(t=2),e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString()}function re(e){return V(e)||null===e||""===e?void 0:parseInt(e,10)}function ne(e){if(!V(e)&&null!==e&&""!==e){var t=1e3*parseFloat("0."+e);return Math.floor(t)}}function ie(e,t,r){void 0===r&&(r=!1);var n=Math.pow(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function oe(e){return e%4==0&&(e%100!=0||e%400==0)}function ae(e){return oe(e)?366:365}function se(e,t){var r=function(e,t){return e-12*Math.floor(e/12)}(t-1)+1;return 2===r?oe(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ce(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function ue(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,r=e-1,n=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===n?53:52}function le(e){return e>99?e:e>60?1900+e:2e3+e}function fe(e,t,r,n){void 0===n&&(n=null);var i=new Date(e),o={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);var a=Object.assign({timeZoneName:t},o),s=Y();if(s&&$()){var c=new Intl.DateTimeFormat(r,a).formatToParts(i).find((function(e){return"timezonename"===e.type.toLowerCase()}));return c?c.value:null}if(s){var u=new Intl.DateTimeFormat(r,o).format(i);return new Intl.DateTimeFormat(r,a).format(i).substring(u.length).replace(/^[, \u200e]+/,"")}return null}function de(e,t){var r=parseInt(e,10);Number.isNaN(r)&&(r=0);var n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function he(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new v("Invalid unit value "+e);return t}function pe(e,t,r){var n={};for(var i in e)if(X(e,i)){if(r.indexOf(i)>=0)continue;var o=e[i];if(null==o)continue;n[t(i)]=he(o)}return n}function me(e,t){var r=Math.trunc(e/60),n=Math.abs(e%60),i=r>=0&&!Object.is(r,-0)?"+":"-",o=""+i+Math.abs(r);switch(t){case"short":return""+i+te(Math.abs(r),2)+":"+te(n,2);case"narrow":return n>0?o+":"+n:o;case"techie":return""+i+te(Math.abs(r),2)+te(n,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function ye(e){return Z(e,["hour","minute","second","millisecond"])}var ge=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function be(e){return JSON.stringify(e,Object.keys(e).sort())}var ve=["January","February","March","April","May","June","July","August","September","October","November","December"],we=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],_e=["J","F","M","A","M","J","J","A","S","O","N","D"];function xe(e){switch(e){case"narrow":return _e;case"short":return we;case"long":return ve;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var ke=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Se=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ee=["M","T","W","T","F","S","S"];function Ae(e){switch(e){case"narrow":return Ee;case"short":return Se;case"long":return ke;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Te=["AM","PM"],Ce=["Before Christ","Anno Domini"],Oe=["BC","AD"],je=["B","A"];function Pe(e){switch(e){case"narrow":return je;case"short":return Oe;case"long":return Ce;default:return null}}function Me(e,t){for(var r,n="",i=d(e);!(r=i()).done;){var o=r.value;o.literal?n+=o.val:n+=t(o.val)}return n}var Ie={D:S,DD:E,DDD:A,DDDD:T,t:C,tt:O,ttt:j,tttt:P,T:M,TT:I,TTT:N,TTTT:B,f:R,ff:L,fff:q,ffff:z,F:D,FF:U,FFF:H,FFFF:K},Ne=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,r){return void 0===r&&(r={}),new e(t,r)},e.parseFormat=function(e){for(var t=null,r="",n=!1,i=[],o=0;o<e.length;o++){var a=e.charAt(o);"'"===a?(r.length>0&&i.push({literal:n,val:r}),t=null,r="",n=!n):n||a===t?r+=a:(r.length>0&&i.push({literal:!1,val:r}),r=a,t=a)}return r.length>0&&i.push({literal:n,val:r}),i},e.macroTokenToFormatOpts=function(e){return Ie[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return te(e,t);var r=Object.assign({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)},t.formatDateTimeFromString=function(t,r){var n=this,i="en"===this.loc.listingMode(),o=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&$(),a=function(e,r){return n.loc.extract(t,e,r)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},c=function(e,r){return i?function(e,t){return xe(t)[e.month-1]}(t,e):a(r?{month:e}:{month:e,day:"numeric"},"month")},u=function(e,r){return i?function(e,t){return Ae(t)[e.weekday-1]}(t,e):a(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},l=function(e){return i?function(e,t){return Pe(t)[e.year<0?0:1]}(t,e):a({era:e},"era")};return Me(e.parseFormat(r),(function(r){switch(r){case"S":return n.num(t.millisecond);case"u":case"SSS":return n.num(t.millisecond,3);case"s":return n.num(t.second);case"ss":return n.num(t.second,2);case"m":return n.num(t.minute);case"mm":return n.num(t.minute,2);case"h":return n.num(t.hour%12==0?12:t.hour%12);case"hh":return n.num(t.hour%12==0?12:t.hour%12,2);case"H":return n.num(t.hour);case"HH":return n.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return s({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:n.loc.locale});case"z":return t.zoneName;case"a":return i?function(e){return Te[e.hour<12?0:1]}(t):a({hour:"numeric",hour12:!0},"dayperiod");case"d":return o?a({day:"numeric"},"day"):n.num(t.day);case"dd":return o?a({day:"2-digit"},"day"):n.num(t.day,2);case"c":return n.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return n.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return o?a({month:"numeric",day:"numeric"},"month"):n.num(t.month);case"LL":return o?a({month:"2-digit",day:"numeric"},"month"):n.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return o?a({month:"numeric"},"month"):n.num(t.month);case"MM":return o?a({month:"2-digit"},"month"):n.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return o?a({year:"numeric"},"year"):n.num(t.year);case"yy":return o?a({year:"2-digit"},"year"):n.num(t.year.toString().slice(-2),2);case"yyyy":return o?a({year:"numeric"},"year"):n.num(t.year,4);case"yyyyyy":return o?a({year:"numeric"},"year"):n.num(t.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return n.num(t.weekYear.toString().slice(-2),2);case"kkkk":return n.num(t.weekYear,4);case"W":return n.num(t.weekNumber);case"WW":return n.num(t.weekNumber,2);case"o":return n.num(t.ordinal);case"ooo":return n.num(t.ordinal,3);case"q":return n.num(t.quarter);case"qq":return n.num(t.quarter,2);case"X":return n.num(Math.floor(t.ts/1e3));case"x":return n.num(t.ts);default:return function(r){var i=e.macroTokenToFormatOpts(r);return i?n.formatWithSystemDefault(t,i):r}(r)}}))},t.formatDurationFromString=function(t,r){var n,i=this,o=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},a=e.parseFormat(r),s=a.reduce((function(e,t){var r=t.literal,n=t.val;return r?e:e.concat(n)}),[]),c=t.shiftTo.apply(t,s.map(o).filter((function(e){return e})));return Me(a,(n=c,function(e){var t=o(e);return t?i.num(n.get(t),e.length):e}))},e}(),Be=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Re=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new w},t.formatOffset=function(e,t){throw new w},t.offset=function(e){throw new w},t.equals=function(e){throw new w},i(e,[{key:"type",get:function(){throw new w}},{key:"name",get:function(){throw new w}},{key:"universal",get:function(){throw new w}},{key:"isValid",get:function(){throw new w}}]),e}(),De=null,Le=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var r=t.prototype;return r.offsetName=function(e,t){return fe(e,t.format,t.locale)},r.formatOffset=function(e,t){return me(this.offset(e),t)},r.offset=function(e){return-new Date(e).getTimezoneOffset()},r.equals=function(e){return"local"===e.type},i(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return Y()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===De&&(De=new t),De}}]),t}(Re),Ue=RegExp("^"+ge.source+"$"),Fe={},qe={year:0,month:1,day:2,hour:3,minute:4,second:5},He={},ze=function(e){function t(r){var n;return(n=e.call(this)||this).zoneName=r,n.valid=t.isValidZone(r),n}o(t,e),t.create=function(e){return He[e]||(He[e]=new t(e)),He[e]},t.resetCache=function(){He={},Fe={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Ue))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var r=t.prototype;return r.offsetName=function(e,t){return fe(e,t.format,t.locale,this.name)},r.formatOffset=function(e,t){return me(this.offset(e),t)},r.offset=function(e){var t,r=new Date(e),n=(t=this.name,Fe[t]||(Fe[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Fe[t]),i=n.formatToParts?function(e,t){for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var o=r[i],a=o.type,s=o.value,c=qe[a];V(c)||(n[c]=parseInt(s,10))}return n}(n,r):function(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r),i=n[1],o=n[2];return[n[3],i,o,n[4],n[5],n[6]]}(n,r),o=i[0],a=i[1],s=i[2],c=i[3],u=+r,l=u%1e3;return(ce({year:o,month:a,day:s,hour:24===c?0:c,minute:i[4],second:i[5],millisecond:0})-(u-=l>=0?l:1e3+l))/6e4},r.equals=function(e){return"iana"===e.type&&e.name===this.name},i(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Re),Ke=null,Ve=function(e){function t(t){var r;return(r=e.call(this)||this).fixed=t,r}o(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(de(r[1],r[2]))}return null},i(t,null,[{key:"utcInstance",get:function(){return null===Ke&&(Ke=new t(0)),Ke}}]);var r=t.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(e,t){return me(this.fixed,t)},r.offset=function(){return this.fixed},r.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+me(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Re),Ge=function(e){function t(t){var r;return(r=e.call(this)||this).zoneName=t,r}o(t,e);var r=t.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},i(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Re);function We(e,t){var r;if(V(e)||null===e)return t;if(e instanceof Re)return e;if("string"==typeof e){var n=e.toLowerCase();return"local"===n?t:"utc"===n||"gmt"===n?Ve.utcInstance:null!=(r=ze.parseGMTOffset(e))?Ve.instance(r):ze.isValidSpecifier(n)?ze.create(e):Ve.parseSpecifier(n)||new Ge(e)}return G(e)?Ve.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ge(e)}var Ye=function(){return Date.now()},$e=null,Je=null,Qe=null,Ze=null,Xe=!1,et=function(){function e(){}return e.resetCaches=function(){lt.resetCache(),ze.resetCache()},i(e,null,[{key:"now",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){$e=e?We(e):null}},{key:"defaultZone",get:function(){return $e||Le.instance}},{key:"defaultLocale",get:function(){return Je},set:function(e){Je=e}},{key:"defaultNumberingSystem",get:function(){return Qe},set:function(e){Qe=e}},{key:"defaultOutputCalendar",get:function(){return Ze},set:function(e){Ze=e}},{key:"throwOnInvalid",get:function(){return Xe},set:function(e){Xe=e}}]),e}(),tt={};function rt(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),n=tt[r];return n||(n=new Intl.DateTimeFormat(e,t),tt[r]=n),n}var nt={},it={};var ot=null;function at(e,t,r,n,i){var o=e.listingMode(r);return"error"===o?null:"en"===o?n(t):i(t)}var st=function(){function e(e,t,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!t&&Y()){var n={useGrouping:!1};r.padTo>0&&(n.minimumIntegerDigits=r.padTo),this.inf=function(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),n=nt[r];return n||(n=new Intl.NumberFormat(e,t),nt[r]=n),n}(e,n)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return te(this.floor?Math.floor(e):ie(e,3),this.padTo)},e}(),ct=function(){function e(e,t,r){var n;if(this.opts=r,this.hasIntl=Y(),e.zone.universal&&this.hasIntl?(n="UTC",r.timeZoneName?this.dt=e:this.dt=0===e.offset?e:tn.fromMillis(e.ts+60*e.offset*1e3)):"local"===e.zone.type?this.dt=e:(this.dt=e,n=e.zone.name),this.hasIntl){var i=Object.assign({},this.opts);n&&(i.timeZone=n),this.dtf=rt(t,i)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){switch(be(Z(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case be(S):return"M/d/yyyy";case be(E):return"LLL d, yyyy";case be(A):return"LLLL d, yyyy";case be(T):return"EEEE, LLLL d, yyyy";case be(C):return"h:mm a";case be(O):return"h:mm:ss a";case be(j):case be(P):return"h:mm a";case be(M):return"HH:mm";case be(I):return"HH:mm:ss";case be(N):case be(B):return"HH:mm";case be(R):return"M/d/yyyy, h:mm a";case be(L):return"LLL d, yyyy, h:mm a";case be(q):return"LLLL d, yyyy, h:mm a";case be(z):return"EEEE, LLLL d, yyyy, h:mm a";case be(D):return"M/d/yyyy, h:mm:ss a";case be(U):return"LLL d, yyyy, h:mm:ss a";case be(F):return"EEE, d LLL yyyy, h:mm a";case be(H):return"LLLL d, yyyy, h:mm:ss a";case be(K):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return"EEEE, LLLL d, yyyy, h:mm a"}}(this.opts),t=lt.create("en-US");return Ne.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&$()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),ut=function(){function e(e,t,r){this.opts=Object.assign({style:"long"},r),!t&&J()&&(this.rtf=function(e,t){void 0===t&&(t={});var r=t,n=(r.base,function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(r,["base"])),i=JSON.stringify([e,n]),o=it[i];return o||(o=new Intl.RelativeTimeFormat(e,t),it[i]=o),o}(e,r))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r,n){void 0===r&&(r="always"),void 0===n&&(n=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&o){var a="days"===e;switch(t){case 1:return a?"tomorrow":"next "+i[e][0];case-1:return a?"yesterday":"last "+i[e][0];case 0:return a?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,c=Math.abs(t),u=1===c,l=i[e],f=n?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return s?c+" "+f+" ago":"in "+c+" "+f}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),lt=function(){function e(e,t,r,n){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var r,n=e.substring(0,t);try{r=rt(e).resolvedOptions()}catch(e){r=rt(n).resolvedOptions()}var i=r;return[n,i.numberingSystem,i.calendar]}(e),o=i[0],a=i[1],s=i[2];this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=r||s||null,this.intl=function(e,t,r){return Y()?r||t?(e+="-u",r&&(e+="-ca-"+r),t&&(e+="-nu-"+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,r,n,i){void 0===i&&(i=!1);var o=t||et.defaultLocale;return new e(o||(i?"en-US":function(){if(ot)return ot;if(Y()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return ot=e&&"und"!==e?e:"en-US"}return ot="en-US"}()),r||et.defaultNumberingSystem,n||et.defaultOutputCalendar,o)},e.resetCache=function(){ot=null,tt={},nt={},it={}},e.fromObject=function(t){var r=void 0===t?{}:t,n=r.locale,i=r.numberingSystem,o=r.outputCalendar;return e.create(n,i,o)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=Y()&&$(),r=this.isEnglish(),n=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||r&&n||e?!t||r&&n?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,r){var n=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),at(this,e,r,xe,(function(){var r=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return n.monthsCache[i][e]||(n.monthsCache[i][e]=function(e){for(var t=[],r=1;r<=12;r++){var n=tn.utc(2016,r,1);t.push(e(n))}return t}((function(e){return n.extract(e,r,"month")}))),n.monthsCache[i][e]}))},t.weekdays=function(e,t,r){var n=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),at(this,e,r,Ae,(function(){var r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return n.weekdaysCache[i][e]||(n.weekdaysCache[i][e]=function(e){for(var t=[],r=1;r<=7;r++){var n=tn.utc(2016,11,13+r);t.push(e(n))}return t}((function(e){return n.extract(e,r,"weekday")}))),n.weekdaysCache[i][e]}))},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),at(this,void 0,e,(function(){return Te}),(function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[tn.utc(2016,11,13,9),tn.utc(2016,11,13,19)].map((function(r){return t.extract(r,e,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(e,t){var r=this;return void 0===t&&(t=!0),at(this,e,t,Pe,(function(){var t={era:e};return r.eraCache[e]||(r.eraCache[e]=[tn.utc(-40,1,1),tn.utc(2017,1,1)].map((function(e){return r.extract(e,t,"era")}))),r.eraCache[e]}))},t.extract=function(e,t,r){var n=this.dtFormatter(e,t).formatToParts().find((function(e){return e.type.toLowerCase()===r}));return n?n.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new st(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ct(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new ut(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Y()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||Y()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ft(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.reduce((function(e,t){return e+t.source}),"");return RegExp("^"+n+"$")}function dt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce((function(t,r){var n=t[0],i=t[1],o=t[2],a=r(e,o),s=a[0],c=a[1],u=a[2];return[Object.assign(n,s),i||c,u]}),[{},null,1]).slice(0,2)}}function ht(e){if(null==e)return[null,null];for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0,o=r;i<o.length;i++){var a=o[i],s=a[0],c=a[1],u=s.exec(e);if(u)return c(u)}return[null,null]}function pt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n,i={};for(n=0;n<t.length;n++)i[t[n]]=re(e[r+n]);return[i,null,r+n]}}var mt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,yt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,9}))?)?)?/,gt=RegExp(""+yt.source+mt.source+"?"),bt=RegExp("(?:T"+gt.source+")?"),vt=pt("weekYear","weekNumber","weekDay"),wt=pt("year","ordinal"),_t=RegExp(yt.source+" ?(?:"+mt.source+"|("+ge.source+"))?"),xt=RegExp("(?: "+_t.source+")?");function kt(e,t,r){var n=e[t];return V(n)?r:re(n)}function St(e,t){return[{year:kt(e,t),month:kt(e,t+1,1),day:kt(e,t+2,1)},null,t+3]}function Et(e,t){return[{hour:kt(e,t,0),minute:kt(e,t+1,0),second:kt(e,t+2,0),millisecond:ne(e[t+3])},null,t+4]}function At(e,t){var r=!e[t]&&!e[t+1],n=de(e[t+1],e[t+2]);return[{},r?null:Ve.instance(n),t+3]}function Tt(e,t){return[{},e[t]?ze.create(e[t]):null,t+1]}var Ct=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Ot(e){var t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=e[6],c=e[7],u=e[8],l="-"===t[0],f=function(e){return e&&l?-e:e};return[{years:f(re(r)),months:f(re(n)),weeks:f(re(i)),days:f(re(o)),hours:f(re(a)),minutes:f(re(s)),seconds:f(re(c)),milliseconds:f(ne(u))}]}var jt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pt(e,t,r,n,i,o,a){var s={year:2===t.length?le(re(t)):re(t),month:we.indexOf(r)+1,day:re(n),hour:re(i),minute:re(o)};return a&&(s.second=re(a)),e&&(s.weekday=e.length>3?ke.indexOf(e)+1:Se.indexOf(e)+1),s}var Mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function It(e){var t,r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=e[6],c=e[7],u=e[8],l=e[9],f=e[10],d=e[11],h=Pt(r,o,i,n,a,s,c);return t=u?jt[u]:l?0:de(f,d),[h,new Ve(t)]}var Nt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Bt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Rt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Dt(e){var t=e[1],r=e[2],n=e[3];return[Pt(t,e[4],n,r,e[5],e[6],e[7]),Ve.utcInstance]}function Lt(e){var t=e[1],r=e[2],n=e[3],i=e[4],o=e[5],a=e[6];return[Pt(t,e[7],r,n,i,o,a),Ve.utcInstance]}var Ut=ft(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,bt),Ft=ft(/(\d{4})-?W(\d\d)(?:-?(\d))?/,bt),qt=ft(/(\d{4})-?(\d{3})/,bt),Ht=ft(gt),zt=dt(St,Et,At),Kt=dt(vt,Et,At),Vt=dt(wt,Et),Gt=dt(Et,At),Wt=ft(/(\d{4})-(\d\d)-(\d\d)/,xt),Yt=ft(_t),$t=dt(St,Et,At,Tt),Jt=dt(Et,At,Tt),Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Zt=Object.assign({years:{months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),Xt=Object.assign({years:{months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),er=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tr=er.slice(0).reverse();function rr(e,t,r){void 0===r&&(r=!1);var n={values:r?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new or(n)}function nr(e,t,r,n,i){var o=e[i][r],a=t[r]/o,s=Math.sign(a)!==Math.sign(n[i])&&0!==n[i]&&Math.abs(a)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(a):Math.trunc(a);n[i]+=s,t[r]-=s*o}function ir(e,t){tr.reduce((function(r,n){return V(t[n])?r:(r&&nr(e,t,r,t,n),n)}),null)}var or=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||lt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Xt:Zt,this.isLuxonDuration=!0}e.fromMillis=function(t,r){return e.fromObject(Object.assign({milliseconds:t},r))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new v("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:pe(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:lt.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,r){var n=function(e){return ht(e,[Ct,Ot])}(t)[0];if(n){var i=Object.assign(n,r);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new v("need to specify a reason the Duration is invalid");var n=t instanceof Be?t:new Be(t,r);if(et.throwOnInvalid)throw new y(n);return new e({invalid:n})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new b(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var r=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?Ne.create(this.loc,r).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ie(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.valueOf=function(){return this.as("milliseconds")},t.plus=function(e){if(!this.isValid)return this;for(var t,r=ar(e),n={},i=d(er);!(t=i()).done;){var o=t.value;(X(r.values,o)||X(this.values,o))&&(n[o]=r.get(o)+this.get(o))}return rr(this,{values:n},!0)},t.minus=function(e){if(!this.isValid)return this;var t=ar(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},r=0,n=Object.keys(this.values);r<n.length;r++){var i=n[r];t[i]=he(e(this.values[i],i))}return rr(this,{values:t},!0)},t.get=function(t){return this[e.normalizeUnit(t)]},t.set=function(t){return this.isValid?rr(this,{values:Object.assign(this.values,pe(t,e.normalizeUnit,[]))}):this},t.reconfigure=function(e){var t=void 0===e?{}:e,r=t.locale,n=t.numberingSystem,i=t.conversionAccuracy,o={loc:this.loc.clone({locale:r,numberingSystem:n})};return i&&(o.conversionAccuracy=i),rr(this,o)},t.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},t.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return ir(this.matrix,e),rr(this,{values:e},!0)},t.shiftTo=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!this.isValid)return this;if(0===r.length)return this;r=r.map((function(t){return e.normalizeUnit(t)}));var i,o={},a={},s=this.toObject();ir(this.matrix,s);for(var c,u=d(er);!(c=u()).done;){var l=c.value;if(r.indexOf(l)>=0){i=l;var f=0;for(var h in a)f+=this.matrix[h][l]*a[h],a[h]=0;G(s[l])&&(f+=s[l]);var p=Math.trunc(f);for(var m in o[l]=p,a[l]=f-p,s)er.indexOf(m)>er.indexOf(l)&&nr(this.matrix,s,m,o,l)}else G(s[l])&&(a[l]=s[l])}for(var y in a)0!==a[y]&&(o[i]+=y===i?a[y]:a[y]/this.matrix[i][y]);return rr(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,r=Object.keys(this.values);t<r.length;t++){var n=r[t];e[n]=-this.values[n]}return rr(this,{values:e},!0)},t.equals=function(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(var t,r=d(er);!(t=r()).done;){var n=t.value;if(this.values[n]!==e.values[n])return!1}return!0},i(e,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}();function ar(e){if(G(e))return or.fromMillis(e);if(or.isDuration(e))return e;if("object"==typeof e)return or.fromObject(e);throw new v("Unknown duration argument "+e+" of type "+typeof e)}var sr="Invalid Interval";var cr=function(){function e(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new v("need to specify a reason the Interval is invalid");var n=t instanceof Be?t:new Be(t,r);if(et.throwOnInvalid)throw new m(n);return new e({invalid:n})},e.fromDateTimes=function(t,r){var n=rn(t),i=rn(r),o=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?cr.invalid("end before start","The end of an interval must be after its start, but you had start="+e.toISO()+" and end="+t.toISO()):null:cr.invalid("missing or invalid end"):cr.invalid("missing or invalid start")}(n,i);return null==o?new e({start:n,end:i}):o},e.after=function(t,r){var n=ar(r),i=rn(t);return e.fromDateTimes(i,i.plus(n))},e.before=function(t,r){var n=ar(r),i=rn(t);return e.fromDateTimes(i.minus(n),i)},e.fromISO=function(t,r){var n=(t||"").split("/",2),i=n[0],o=n[1];if(i&&o){var a=tn.fromISO(i,r),s=tn.fromISO(o,r);if(a.isValid&&s.isValid)return e.fromDateTimes(a,s);if(a.isValid){var c=or.fromISO(o,r);if(c.isValid)return e.after(a,c)}else if(s.isValid){var u=or.fromISO(i,r);if(u.isValid)return e.before(s,u)}}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.isInterval=function(e){return e&&e.isLuxonInterval||!1};var t=e.prototype;return t.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},t.count=function(e){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(e),r=this.end.startOf(e);return Math.floor(r.diff(t,e).get(e))+1},t.hasSame=function(e){return!!this.isValid&&this.e.minus(1).hasSame(this.s,e)},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(e){return!!this.isValid&&this.s>e},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var r=void 0===t?{}:t,n=r.start,i=r.end;return this.isValid?e.fromDateTimes(n||this.s,i||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];for(var o=n.map(rn).filter((function(e){return t.contains(e)})).sort(),a=[],s=this.s,c=0;s<this.e;){var u=o[c]||this.e,l=+u>+this.e?this.e:u;a.push(e.fromDateTimes(s,l)),s=l,c+=1}return a},t.splitBy=function(t){var r=ar(t);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var n,i,o=this.s,a=[];o<this.e;)i=+(n=o.plus(r))>+this.e?this.e:n,a.push(e.fromDateTimes(o,i)),o=i;return a},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s<e.e},t.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},t.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},t.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>n?null:e.fromDateTimes(r,n)},t.union=function(t){if(!this.isValid)return this;var r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)},e.merge=function(e){var t=e.sort((function(e,t){return e.s-t.s})).reduce((function(e,t){var r=e[0],n=e[1];return n?n.overlaps(t)||n.abutsStart(t)?[r,n.union(t)]:[r.concat([n]),t]:[r,t]}),[[],null]),r=t[0],n=t[1];return n&&r.push(n),r},e.xor=function(t){for(var r,n,i=null,o=0,a=[],s=t.map((function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]})),c=d((r=Array.prototype).concat.apply(r,s).sort((function(e,t){return e.time-t.time})));!(n=c()).done;){var u=n.value;1===(o+="s"===u.type?1:-1)?i=u.time:(i&&+i!=+u.time&&a.push(e.fromDateTimes(i,u.time)),i=null)}return e.merge(a)},t.difference=function(){for(var t=this,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return e.xor([this].concat(n)).map((function(e){return t.intersection(e)})).filter((function(e){return e&&!e.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":sr},t.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):sr},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():sr},t.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):sr},t.toFormat=function(e,t){var r=(void 0===t?{}:t).separator,n=void 0===r?" – ":r;return this.isValid?""+this.s.toFormat(e)+n+this.e.toFormat(e):sr},t.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):or.invalid(this.invalidReason)},t.mapEndpoints=function(t){return e.fromDateTimes(t(this.s),t(this.e))},i(e,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),e}(),ur=function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=et.defaultZone);var t=tn.local().setZone(e).set({month:12});return!e.universal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return ze.isValidSpecifier(e)&&ze.isValidZone(e)},e.normalizeZone=function(e){return We(e,et.defaultZone)},e.months=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=void 0===n?null:n,o=r.numberingSystem,a=void 0===o?null:o,s=r.outputCalendar,c=void 0===s?"gregory":s;return lt.create(i,a,c).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=void 0===n?null:n,o=r.numberingSystem,a=void 0===o?null:o,s=r.outputCalendar,c=void 0===s?"gregory":s;return lt.create(i,a,c).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=void 0===n?null:n,o=r.numberingSystem,a=void 0===o?null:o;return lt.create(i,a,null).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=void 0===n?null:n,o=r.numberingSystem,a=void 0===o?null:o;return lt.create(i,a,null).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale,r=void 0===t?null:t;return lt.create(r).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var r=(void 0===t?{}:t).locale,n=void 0===r?null:r;return lt.create(n,null,"gregory").eras(e)},e.features=function(){var e=!1,t=!1,r=!1,n=!1;if(Y()){e=!0,t=$(),n=J();try{r="America/New_York"===new Intl.DateTimeFormat("en",{timeZone:"America/New_York"}).resolvedOptions().timeZone}catch(e){r=!1}}return{intl:e,intlTokens:t,zones:r,relative:n}},e}();function lr(e,t){var r=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=r(t)-r(e);return Math.floor(or.fromMillis(n).as("days"))}var fr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},hr=fr.hanidec.replace(/[\[|\]]/g,"").split("");function pr(e,t){var r=e.numberingSystem;return void 0===t&&(t=""),new RegExp(""+fr[r||"latn"]+t)}function mr(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var r=e[0];return t(function(e){var t=parseInt(e,10);if(isNaN(t)){t="";for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(-1!==e[r].search(fr.hanidec))t+=hr.indexOf(e[r]);else for(var i in dr){var o=dr[i],a=o[0],s=o[1];n>=a&&n<=s&&(t+=n-a)}}return parseInt(t,10)}return t}(r))}}}function yr(e){return e.replace(/\./,"\\.?")}function gr(e){return e.replace(/\./,"").toLowerCase()}function br(e,t){return null===e?null:{regex:RegExp(e.map(yr).join("|")),deser:function(r){var n=r[0];return e.findIndex((function(e){return gr(n)===gr(e)}))+t}}}function vr(e,t){return{regex:e,deser:function(e){return de(e[1],e[2])},groups:t}}function wr(e){return{regex:e,deser:function(e){return e[0]}}}var _r={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},xr=null;function kr(e,t,r){var n=function(e,t){var r;return(r=Array.prototype).concat.apply(r,e.map((function(e){return function(e,t){if(e.literal)return e;var r=Ne.macroTokenToFormatOpts(e.val);if(!r)return e;var n=Ne.create(t,r).formatDateTimeParts((xr||(xr=tn.fromMillis(1555555555555)),xr)).map((function(e){return function(e,t,r){var n=e.type,i=e.value;if("literal"===n)return{literal:!0,val:i};var o=r[n],a=_r[n];return"object"==typeof a&&(a=a[o]),a?{literal:!1,val:a}:void 0}(e,0,r)}));return n.includes(void 0)?e:n}(e,t)})))}(Ne.parseFormat(r),e),i=n.map((function(t){return r=t,i=pr(n=e),o=pr(n,"{2}"),a=pr(n,"{3}"),s=pr(n,"{4}"),c=pr(n,"{6}"),u=pr(n,"{1,2}"),l=pr(n,"{1,3}"),f=pr(n,"{1,6}"),d=pr(n,"{1,9}"),h=pr(n,"{2,4}"),p=pr(n,"{4,6}"),m=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(y=function(e){if(r.literal)return m(e);switch(e.val){case"G":return br(n.eras("short",!1),0);case"GG":return br(n.eras("long",!1),0);case"y":return mr(f);case"yy":return mr(h,le);case"yyyy":return mr(s);case"yyyyy":return mr(p);case"yyyyyy":return mr(c);case"M":return mr(u);case"MM":return mr(o);case"MMM":return br(n.months("short",!0,!1),1);case"MMMM":return br(n.months("long",!0,!1),1);case"L":return mr(u);case"LL":return mr(o);case"LLL":return br(n.months("short",!1,!1),1);case"LLLL":return br(n.months("long",!1,!1),1);case"d":return mr(u);case"dd":return mr(o);case"o":return mr(l);case"ooo":return mr(a);case"HH":return mr(o);case"H":return mr(u);case"hh":return mr(o);case"h":return mr(u);case"mm":return mr(o);case"m":case"q":return mr(u);case"qq":return mr(o);case"s":return mr(u);case"ss":return mr(o);case"S":return mr(l);case"SSS":return mr(a);case"u":return wr(d);case"a":return br(n.meridiems(),0);case"kkkk":return mr(s);case"kk":return mr(h,le);case"W":return mr(u);case"WW":return mr(o);case"E":case"c":return mr(i);case"EEE":return br(n.weekdays("short",!1,!1),1);case"EEEE":return br(n.weekdays("long",!1,!1),1);case"ccc":return br(n.weekdays("short",!0,!1),1);case"cccc":return br(n.weekdays("long",!0,!1),1);case"Z":case"ZZ":return vr(new RegExp("([+-]"+u.source+")(?::("+o.source+"))?"),2);case"ZZZ":return vr(new RegExp("([+-]"+u.source+")("+o.source+")?"),2);case"z":return wr(/[a-z_+-/]{1,256}?/i);default:return m(e)}}(r)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=r,y;var r,n,i,o,a,s,c,u,l,f,d,h,p,m,y})),o=i.find((function(e){return e.invalidReason}));if(o)return{input:t,tokens:n,invalidReason:o.invalidReason};var a=function(e){return["^"+e.map((function(e){return e.regex})).reduce((function(e,t){return e+"("+t.source+")"}),"")+"$",e]}(i),s=a[0],c=a[1],u=RegExp(s,"i"),l=function(e,t,r){var n=e.match(t);if(n){var i={},o=1;for(var a in r)if(X(r,a)){var s=r[a],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(o,o+c))),o+=c}return[n,i]}return[n,{}]}(t,u,c),f=l[0],d=l[1],h=d?function(e){var t;return t=V(e.Z)?V(e.z)?null:ze.create(e.z):new Ve(e.Z),V(e.q)||(e.M=3*(e.q-1)+1),V(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),V(e.u)||(e.S=ne(e.u)),[Object.keys(e).reduce((function(t,r){var n=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(r);return n&&(t[n]=e[r]),t}),{}),t]}(d):[null,null],p=h[0],m=h[1];if(X(d,"a")&&X(d,"H"))throw new g("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:f,matches:d,result:p,zone:m}}var Sr=[0,31,59,90,120,151,181,212,243,273,304,334],Er=[0,31,60,91,121,152,182,213,244,274,305,335];function Ar(e,t){return new Be("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Tr(e,t,r){var n=new Date(Date.UTC(e,t-1,r)).getUTCDay();return 0===n?7:n}function Cr(e,t,r){return r+(oe(e)?Er:Sr)[t-1]}function Or(e,t){var r=oe(e)?Er:Sr,n=r.findIndex((function(e){return e<t}));return{month:n+1,day:t-r[n]}}function jr(e){var t,r=e.year,n=e.month,i=e.day,o=Cr(r,n,i),a=Tr(r,n,i),s=Math.floor((o-a+10)/7);return s<1?s=ue(t=r-1):s>ue(r)?(t=r+1,s=1):t=r,Object.assign({weekYear:t,weekNumber:s,weekday:a},ye(e))}function Pr(e){var t,r=e.weekYear,n=e.weekNumber,i=e.weekday,o=Tr(r,1,4),a=ae(r),s=7*n+i-o-3;s<1?s+=ae(t=r-1):s>a?(t=r+1,s-=ae(r)):t=r;var c=Or(t,s),u=c.month,l=c.day;return Object.assign({year:t,month:u,day:l},ye(e))}function Mr(e){var t=e.year,r=Cr(t,e.month,e.day);return Object.assign({year:t,ordinal:r},ye(e))}function Ir(e){var t=e.year,r=Or(t,e.ordinal),n=r.month,i=r.day;return Object.assign({year:t,month:n,day:i},ye(e))}function Nr(e){var t=W(e.year),r=ee(e.month,1,12),n=ee(e.day,1,se(e.year,e.month));return t?r?!n&&Ar("day",e.day):Ar("month",e.month):Ar("year",e.year)}function Br(e){var t=e.hour,r=e.minute,n=e.second,i=e.millisecond,o=ee(t,0,23)||24===t&&0===r&&0===n&&0===i,a=ee(r,0,59),s=ee(n,0,59),c=ee(i,0,999);return o?a?s?!c&&Ar("millisecond",i):Ar("second",n):Ar("minute",r):Ar("hour",t)}function Rr(e){return new Be("unsupported zone",'the zone "'+e.name+'" is not supported')}function Dr(e){return null===e.weekData&&(e.weekData=jr(e.c)),e.weekData}function Lr(e,t){var r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new tn(Object.assign({},r,t,{old:r}))}function Ur(e,t,r){var n=e-60*t*1e3,i=r.offset(n);if(t===i)return[n,t];n-=60*(i-t)*1e3;var o=r.offset(n);return i===o?[n,i]:[e-60*Math.min(i,o)*1e3,Math.max(i,o)]}function Fr(e,t){var r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function qr(e,t,r){return Ur(ce(e),t,r)}function Hr(e,t){var r,n=Object.keys(t.values);-1===n.indexOf("milliseconds")&&n.push("milliseconds"),t=(r=t).shiftTo.apply(r,n);var i=e.o,o=e.c.year+t.years,a=e.c.month+t.months+3*t.quarters,s=Object.assign({},e.c,{year:o,month:a,day:Math.min(e.c.day,se(o,a))+t.days+7*t.weeks}),c=or.fromObject({hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),u=Ur(ce(s),i,e.zone),l=u[0],f=u[1];return 0!==c&&(l+=c,f=e.zone.offset(l)),{ts:l,o:f}}function zr(e,t,r,n,i){var o=r.setZone,a=r.zone;if(e&&0!==Object.keys(e).length){var s=t||a,c=tn.fromObject(Object.assign(e,r,{zone:s,setZone:void 0}));return o?c:c.setZone(a)}return tn.invalid(new Be("unparsable",'the input "'+i+"\" can't be parsed as "+n))}function Kr(e,t,r){return void 0===r&&(r=!0),e.isValid?Ne.create(lt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Vr(e,t){var r=t.suppressSeconds,n=void 0!==r&&r,i=t.suppressMilliseconds,o=void 0!==i&&i,a=t.includeOffset,s=t.includeZone,c=void 0!==s&&s,u=t.spaceZone,l=void 0!==u&&u,f=t.format,d=void 0===f?"extended":f,h="basic"===d?"HHmm":"HH:mm";return n&&0===e.second&&0===e.millisecond||(h+="basic"===d?"ss":":ss",o&&0===e.millisecond||(h+=".SSS")),(c||a)&&l&&(h+=" "),c?h+="z":a&&(h+="basic"===d?"ZZZ":"ZZ"),Kr(e,h)}var Gr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Wr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Yr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},$r=["year","month","day","hour","minute","second","millisecond"],Jr=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Qr=["year","ordinal","hour","minute","second","millisecond"];function Zr(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new b(e);return t}function Xr(e,t){for(var r,n=d($r);!(r=n()).done;){var i=r.value;V(e[i])&&(e[i]=Gr[i])}var o=Nr(e)||Br(e);if(o)return tn.invalid(o);var a=et.now(),s=qr(e,t.offset(a),t),c=s[0],u=s[1];return new tn({ts:c,zone:t,o:u})}function en(e,t,r){var n=!!V(r.round)||r.round,i=function(e,i){return e=ie(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,i)},o=function(n){return r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n)};if(r.unit)return i(o(r.unit),r.unit);for(var a,s=d(r.units);!(a=s()).done;){var c=a.value,u=o(c);if(Math.abs(u)>=1)return i(u,c)}return i(0,r.units[r.units.length-1])}var tn=function(){function e(e){var t=e.zone||et.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new Be("invalid input"):null)||(t.isValid?null:Rr(t));this.ts=V(e.ts)?et.now():e.ts;var n=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var o=[e.old.c,e.old.o];n=o[0],i=o[1]}else{var a=t.offset(this.ts);n=Fr(this.ts,a),n=(r=Number.isNaN(n.year)?new Be("invalid input"):null)?null:n,i=r?null:a}this._zone=t,this.loc=e.loc||lt.create(),this.invalid=r,this.weekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}e.local=function(t,r,n,i,o,a,s){return V(t)?new e({ts:et.now()}):Xr({year:t,month:r,day:n,hour:i,minute:o,second:a,millisecond:s},et.defaultZone)},e.utc=function(t,r,n,i,o,a,s){return V(t)?new e({ts:et.now(),zone:Ve.utcInstance}):Xr({year:t,month:r,day:n,hour:i,minute:o,second:a,millisecond:s},Ve.utcInstance)},e.fromJSDate=function(t,r){void 0===r&&(r={});var n,i=(n=t,"[object Date]"===Object.prototype.toString.call(n)?t.valueOf():NaN);if(Number.isNaN(i))return e.invalid("invalid input");var o=We(r.zone,et.defaultZone);return o.isValid?new e({ts:i,zone:o,loc:lt.fromObject(r)}):e.invalid(Rr(o))},e.fromMillis=function(t,r){if(void 0===r&&(r={}),G(t))return t<-864e13||t>864e13?e.invalid("Timestamp out of range"):new e({ts:t,zone:We(r.zone,et.defaultZone),loc:lt.fromObject(r)});throw new v("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,r){if(void 0===r&&(r={}),G(t))return new e({ts:1e3*t,zone:We(r.zone,et.defaultZone),loc:lt.fromObject(r)});throw new v("fromSeconds requires a numerical input")},e.fromObject=function(t){var r=We(t.zone,et.defaultZone);if(!r.isValid)return e.invalid(Rr(r));var n=et.now(),i=r.offset(n),o=pe(t,Zr,["zone","locale","outputCalendar","numberingSystem"]),a=!V(o.ordinal),s=!V(o.year),c=!V(o.month)||!V(o.day),u=s||c,l=o.weekYear||o.weekNumber,f=lt.fromObject(t);if((u||a)&&l)throw new g("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new g("Can't mix ordinal dates with month/day");var h,p,m=l||o.weekday&&!u,y=Fr(n,i);m?(h=Jr,p=Wr,y=jr(y)):a?(h=Qr,p=Yr,y=Mr(y)):(h=$r,p=Gr);for(var b,v=!1,w=d(h);!(b=w()).done;){var _=b.value;V(o[_])?o[_]=v?p[_]:y[_]:v=!0}var x=(m?function(e){var t=W(e.weekYear),r=ee(e.weekNumber,1,ue(e.weekYear)),n=ee(e.weekday,1,7);return t?r?!n&&Ar("weekday",e.weekday):Ar("week",e.week):Ar("weekYear",e.weekYear)}(o):a?function(e){var t=W(e.year),r=ee(e.ordinal,1,ae(e.year));return t?!r&&Ar("ordinal",e.ordinal):Ar("year",e.year)}(o):Nr(o))||Br(o);if(x)return e.invalid(x);var k=qr(m?Pr(o):a?Ir(o):o,i,r),S=new e({ts:k[0],zone:r,o:k[1],loc:f});return o.weekday&&u&&t.weekday!==S.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+S.toISO()):S},e.fromISO=function(e,t){void 0===t&&(t={});var r=function(e){return ht(e,[Ut,zt],[Ft,Kt],[qt,Vt],[Ht,Gt])}(e);return zr(r[0],r[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var r=function(e){return ht(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Mt,It])}(e);return zr(r[0],r[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var r=function(e){return ht(e,[Nt,Dt],[Bt,Dt],[Rt,Lt])}(e);return zr(r[0],r[1],t,"HTTP",t)},e.fromFormat=function(t,r,n){if(void 0===n&&(n={}),V(t)||V(r))throw new v("fromFormat requires an input string and a format");var i=n,o=i.locale,a=void 0===o?null:o,s=i.numberingSystem,c=void 0===s?null:s,u=function(e,t,r){var n=kr(e,t,r);return[n.result,n.zone,n.invalidReason]}(lt.fromOpts({locale:a,numberingSystem:c,defaultToEN:!0}),t,r),l=u[0],f=u[1],d=u[2];return d?e.invalid(d):zr(l,f,n,"format "+r,t)},e.fromString=function(t,r,n){return void 0===n&&(n={}),e.fromFormat(t,r,n)},e.fromSQL=function(e,t){void 0===t&&(t={});var r=function(e){return ht(e,[Wt,$t],[Yt,Jt])}(e);return zr(r[0],r[1],t,"SQL",e)},e.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new v("need to specify a reason the DateTime is invalid");var n=t instanceof Be?t:new Be(t,r);if(et.throwOnInvalid)throw new p(n);return new e({invalid:n})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=Ne.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(Ve.instance(e),t)},t.toLocal=function(){return this.setZone(et.defaultZone)},t.setZone=function(t,r){var n=void 0===r?{}:r,i=n.keepLocalTime,o=void 0!==i&&i,a=n.keepCalendarTime,s=void 0!==a&&a;if((t=We(t,et.defaultZone)).equals(this.zone))return this;if(t.isValid){var c=this.ts;if(o||s){var u=t.offset(this.ts);c=qr(this.toObject(),u,t)[0]}return Lr(this,{ts:c,zone:t})}return e.invalid(Rr(t))},t.reconfigure=function(e){var t=void 0===e?{}:e,r=t.locale,n=t.numberingSystem,i=t.outputCalendar;return Lr(this,{loc:this.loc.clone({locale:r,numberingSystem:n,outputCalendar:i})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,r=pe(e,Zr,[]);V(r.weekYear)&&V(r.weekNumber)&&V(r.weekday)?V(r.ordinal)?(t=Object.assign(this.toObject(),r),V(r.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=Ir(Object.assign(Mr(this.c),r)):t=Pr(Object.assign(jr(this.c),r));var n=qr(t,this.o,this.zone);return Lr(this,{ts:n[0],o:n[1]})},t.plus=function(e){return this.isValid?Lr(this,Hr(this,ar(e))):this},t.minus=function(e){return this.isValid?Lr(this,Hr(this,ar(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},r=or.normalizeUnit(e);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){var n=Math.ceil(this.month/3);t.month=3*(n-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?Ne.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):"Invalid DateTime"},t.toLocaleString=function(e){return void 0===e&&(e=S),this.isValid?Ne.create(this.loc.clone(e),e).formatDateTime(this):"Invalid DateTime"},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?Ne.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,r="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(r="+"+r),Kr(this,r)},t.toISOWeekDate=function(){return Kr(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,r=t.suppressMilliseconds,n=void 0!==r&&r,i=t.suppressSeconds,o=void 0!==i&&i,a=t.includeOffset,s=void 0===a||a,c=t.format;return Vr(this,{suppressSeconds:o,suppressMilliseconds:n,includeOffset:s,format:void 0===c?"extended":c})},t.toRFC2822=function(){return Kr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Kr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Kr(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,r=t.includeOffset,n=void 0===r||r,i=t.includeZone;return Vr(this,{includeOffset:n,includeZone:void 0!==i&&i,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():"Invalid DateTime"},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,r){if(void 0===t&&(t="milliseconds"),void 0===r&&(r={}),!this.isValid||!e.isValid)return or.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var n,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},r),o=(n=t,Array.isArray(n)?n:[n]).map(or.normalizeUnit),a=e.valueOf()>this.valueOf(),s=function(e,t,r,n){var i,o=function(e,t,r){for(var n,i,o={},a=0,s=[["years",function(e,t){return t.year-e.year}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var r=lr(e,t);return(r-r%7)/7}],["days",lr]];a<s.length;a++){var c=s[a],u=c[0],l=c[1];if(r.indexOf(u)>=0){var f;n=u;var d,h=l(e,t);(i=e.plus(((f={})[u]=h,f)))>t?(e=e.plus(((d={})[u]=h-1,d)),h-=1):e=i,o[u]=h}}return[e,o,i,n]}(e,t,r),a=o[0],s=o[1],c=o[2],u=o[3],l=t-a,f=r.filter((function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0}));0===f.length&&(c<t&&(c=a.plus(((i={})[u]=1,i))),c!==a&&(s[u]=(s[u]||0)+l/(c-a)));var d,h=or.fromObject(Object.assign(s,n));return f.length>0?(d=or.fromMillis(l,n)).shiftTo.apply(d,f).plus(h):h}(a?this:e,a?e:this,o,i);return a?s.negate():s},t.diffNow=function(t,r){return void 0===t&&(t="milliseconds"),void 0===r&&(r={}),this.diff(e.local(),t,r)},t.until=function(e){return this.isValid?cr.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;if("millisecond"===t)return this.valueOf()===e.valueOf();var r=e.valueOf();return this.startOf(t)<=r&&r<=this.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var r=t.base||e.fromObject({zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0;return en(r,this.plus(n),Object.assign(t,{numeric:"always",units:["years","months","days","hours","minutes","seconds"]}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?en(t.base||e.fromObject({zone:this.zone}),this,Object.assign(t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},e.min=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.every(e.isDateTime))throw new v("min requires all arguments be DateTimes");return Q(r,(function(e){return e.valueOf()}),Math.min)},e.max=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.every(e.isDateTime))throw new v("max requires all arguments be DateTimes");return Q(r,(function(e){return e.valueOf()}),Math.max)},e.fromFormatExplain=function(e,t,r){void 0===r&&(r={});var n=r,i=n.locale,o=void 0===i?null:i,a=n.numberingSystem,s=void 0===a?null:a;return kr(lt.fromOpts({locale:o,numberingSystem:s,defaultToEN:!0}),e,t)},e.fromStringExplain=function(t,r,n){return void 0===n&&(n={}),e.fromFormatExplain(t,r,n)},i(e,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Dr(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Dr(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Dr(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Mr(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?ur.months("short",{locale:this.locale})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?ur.months("long",{locale:this.locale})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?ur.weekdays("short",{locale:this.locale})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?ur.weekdays("long",{locale:this.locale})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.universal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return oe(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?ae(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?ue(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return S}},{key:"DATE_MED",get:function(){return E}},{key:"DATE_FULL",get:function(){return A}},{key:"DATE_HUGE",get:function(){return T}},{key:"TIME_SIMPLE",get:function(){return C}},{key:"TIME_WITH_SECONDS",get:function(){return O}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return j}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return P}},{key:"TIME_24_SIMPLE",get:function(){return M}},{key:"TIME_24_WITH_SECONDS",get:function(){return I}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return N}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return B}},{key:"DATETIME_SHORT",get:function(){return R}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return D}},{key:"DATETIME_MED",get:function(){return L}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return U}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return F}},{key:"DATETIME_FULL",get:function(){return q}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return H}},{key:"DATETIME_HUGE",get:function(){return z}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return K}}]),e}();function rn(e){if(tn.isDateTime(e))return e;if(e&&e.valueOf&&G(e.valueOf()))return tn.fromJSDate(e);if(e&&"object"==typeof e)return tn.fromObject(e);throw new v("Unknown datetime argument: "+e+", of type "+typeof e)}r.DateTime=tn,r.Duration=or,r.FixedOffsetZone=Ve,r.IANAZone=ze,r.Info=ur,r.Interval=cr,r.InvalidZone=Ge,r.LocalZone=Le,r.Settings=et,r.Zone=Re},{}],874:[function(e,t,r){"use strict";var n=e("inherits"),i=e("hash-base"),o=e("safe-buffer").Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],3614090360,7),o=u(o,r,n,i,e[1],3905402710,12),i=u(i,o,r,n,e[2],606105819,17),n=u(n,i,o,r,e[3],3250441966,22),r=u(r,n,i,o,e[4],4118548399,7),o=u(o,r,n,i,e[5],1200080426,12),i=u(i,o,r,n,e[6],2821735955,17),n=u(n,i,o,r,e[7],4249261313,22),r=u(r,n,i,o,e[8],1770035416,7),o=u(o,r,n,i,e[9],2336552879,12),i=u(i,o,r,n,e[10],4294925233,17),n=u(n,i,o,r,e[11],2304563134,22),r=u(r,n,i,o,e[12],1804603682,7),o=u(o,r,n,i,e[13],4254626195,12),i=u(i,o,r,n,e[14],2792965006,17),r=l(r,n=u(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,r,n,i,e[6],3225465664,9),i=l(i,o,r,n,e[11],643717713,14),n=l(n,i,o,r,e[0],3921069994,20),r=l(r,n,i,o,e[5],3593408605,5),o=l(o,r,n,i,e[10],38016083,9),i=l(i,o,r,n,e[15],3634488961,14),n=l(n,i,o,r,e[4],3889429448,20),r=l(r,n,i,o,e[9],568446438,5),o=l(o,r,n,i,e[14],3275163606,9),i=l(i,o,r,n,e[3],4107603335,14),n=l(n,i,o,r,e[8],1163531501,20),r=l(r,n,i,o,e[13],2850285829,5),o=l(o,r,n,i,e[2],4243563512,9),i=l(i,o,r,n,e[7],1735328473,14),r=f(r,n=l(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,r,n,i,e[8],2272392833,11),i=f(i,o,r,n,e[11],1839030562,16),n=f(n,i,o,r,e[14],4259657740,23),r=f(r,n,i,o,e[1],2763975236,4),o=f(o,r,n,i,e[4],1272893353,11),i=f(i,o,r,n,e[7],4139469664,16),n=f(n,i,o,r,e[10],3200236656,23),r=f(r,n,i,o,e[13],681279174,4),o=f(o,r,n,i,e[0],3936430074,11),i=f(i,o,r,n,e[3],3572445317,16),n=f(n,i,o,r,e[6],76029189,23),r=f(r,n,i,o,e[9],3654602809,4),o=f(o,r,n,i,e[12],3873151461,11),i=f(i,o,r,n,e[15],530742520,16),r=d(r,n=f(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":784,inherits:807,"safe-buffer":1037}],875:[function(e,t,r){var n=e("bn.js"),i=e("brorand");function o(e){this.rand=e||new i.Rand}t.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),l=s.toRed(o);t>0;t--){var f=this._randrange(new n(2),s);r&&r(f);var d=f.toRed(o).redPow(u);if(0!==d.cmp(a)&&0!==d.cmp(l)){for(var h=1;h<c;h++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(l))break}if(h===c)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var c=e.shrn(s),u=a.toRed(i);t>0;t--){var l=this._randrange(new n(2),a),f=e.gcd(l);if(0!==f.cmpn(1))return f;var d=l.toRed(i).redPow(c);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(u))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":439,brorand:440}],876:[function(e,t,r){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],877:[function(e,t,r){"use strict";var n=r;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},{}],878:[function(e,t,r){"use strict";t.exports=class{constructor(e,t,r,n){this.name=e,this.code=t,this.alphabet=n,r&&n&&(this.engine=r(n))}encode(e){return this.engine.encode(e)}decode(e){return this.engine.decode(e)}isImplemented(){return this.engine}}},{}],879:[function(e,t,r){(function(e){"use strict";t.exports=function(t){return{encode:t=>"string"==typeof t?e.from(t).toString("hex"):t.toString("hex"),decode(r){for(let e of r)if(t.indexOf(e)<0)throw new Error("invalid base16 character");return e.from(r,"hex")}}}}).call(this,e("buffer").Buffer)},{buffer:475}],880:[function(e,t,r){(function(e){"use strict";t.exports=function(t){return{encode:r=>function(e,t){let r=e.byteLength,n=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-2));let o=0,a=0,s="";for(let e=0;e<r;e++)for(a=a<<8|n[e],o+=8;o>=5;)s+=t[a>>>o-5&31],o-=5;if(o>0&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}("string"==typeof r?e.from(r):r,t),decode(e){for(let r of e)if(t.indexOf(r)<0)throw new Error("invalid base32 character");return function(e,t){let r=(e=e.replace(new RegExp("=","g"),"")).length,n=0,i=0,o=0,a=new Uint8Array(5*r/8|0);for(let s=0;s<r;s++)i=i<<5|t.indexOf(e[s]),n+=5,n>=8&&(a[o++]=i>>>n-8&255,n-=8);return a.buffer}(e,t)}}}}).call(this,e("buffer").Buffer)},{buffer:475}],881:[function(e,t,r){(function(e){"use strict";t.exports=function(t){const r=t.indexOf("=")>-1,n=t.indexOf("-")>-1&&t.indexOf("_")>-1;return{encode(t){let i="";i="string"==typeof t?e.from(t).toString("base64"):t.toString("base64"),n&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));const o=i.indexOf("=");return o>0&&!r&&(i=i.substring(0,o)),i},decode(r){for(let e of r)if(t.indexOf(e)<0)throw new Error("invalid base64 character");return e.from(r,"base64")}}}}).call(this,e("buffer").Buffer)},{buffer:475}],882:[function(e,t,r){"use strict";const n=e("./base.js"),i=e("base-x"),o=e("./base16"),a=e("./base32"),s=e("./base64"),c=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],u=c.reduce((e,t)=>(e[t[0]]=new n(t[0],t[1],t[2],t[3]),e),{}),l=c.reduce((e,t)=>(e[t[1]]=u[t[0]],e),{});t.exports={names:u,codes:l}},{"./base.js":878,"./base16":879,"./base32":880,"./base64":881,"base-x":427}],883:[function(e,t,r){(function(n){"use strict";const i=e("./constants");(r=t.exports=a).encode=function(e,t){const r=s(e);return a(r.name,n.from(r.encode(t)))},r.decode=function(e){n.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=n.from(e));const r=s(t);return n.from(r.decode(e.toString()))},r.isEncoded=function(e){if(n.isBuffer(e)&&(e=e.toString()),"[object String]"!==Object.prototype.toString.call(e))return!1;const t=e.substring(0,1);try{return s(t).name}catch(e){return!1}},r.names=Object.freeze(Object.keys(i.names)),r.codes=Object.freeze(Object.keys(i.codes));const o=new Error("Unsupported encoding");function a(e,t){if(!t)throw new Error("requires an encoded buffer");const r=s(e),i=n.from(r.code);return function(e,t){s(e).decode(t.toString())}(r.name,t),n.concat([i,t])}function s(e){let t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw o;t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}}).call(this,e("buffer").Buffer)},{"./constants":882,buffer:475}],884:[function(e,t,r){(function(e){"use strict";r.protobuf=e.from("50","hex"),r.cbor=e.from("51","hex"),r.rlp=e.from("60","hex"),r.bencode=e.from("63","hex"),r.json=e.from("0200","hex"),r.messagepack=e.from("0201","hex"),r.multicodec=e.from("30","hex"),r.multihash=e.from("31","hex"),r.multiaddr=e.from("32","hex"),r.multibase=e.from("33","hex"),r.identity=e.from("00","hex"),r.sha1=e.from("11","hex"),r["sha2-256"]=e.from("12","hex"),r["sha2-512"]=e.from("13","hex"),r["sha3-512"]=e.from("14","hex"),r["sha3-384"]=e.from("15","hex"),r["sha3-256"]=e.from("16","hex"),r["sha3-224"]=e.from("17","hex"),r["shake-128"]=e.from("18","hex"),r["shake-256"]=e.from("19","hex"),r["keccak-224"]=e.from("1a","hex"),r["keccak-256"]=e.from("1b","hex"),r["keccak-384"]=e.from("1c","hex"),r["keccak-512"]=e.from("1d","hex"),r["murmur3-128"]=e.from("22","hex"),r["murmur3-32"]=e.from("23","hex"),r["dbl-sha2-256"]=e.from("56","hex"),r.md4=e.from("d4","hex"),r.md5=e.from("d5","hex"),r.bmt=e.from("d6","hex"),r.x11=e.from("1100","hex"),r["blake2b-8"]=e.from("b201","hex"),r["blake2b-16"]=e.from("b202","hex"),r["blake2b-24"]=e.from("b203","hex"),r["blake2b-32"]=e.from("b204","hex"),r["blake2b-40"]=e.from("b205","hex"),r["blake2b-48"]=e.from("b206","hex"),r["blake2b-56"]=e.from("b207","hex"),r["blake2b-64"]=e.from("b208","hex"),r["blake2b-72"]=e.from("b209","hex"),r["blake2b-80"]=e.from("b20a","hex"),r["blake2b-88"]=e.from("b20b","hex"),r["blake2b-96"]=e.from("b20c","hex"),r["blake2b-104"]=e.from("b20d","hex"),r["blake2b-112"]=e.from("b20e","hex"),r["blake2b-120"]=e.from("b20f","hex"),r["blake2b-128"]=e.from("b210","hex"),r["blake2b-136"]=e.from("b211","hex"),r["blake2b-144"]=e.from("b212","hex"),r["blake2b-152"]=e.from("b213","hex"),r["blake2b-160"]=e.from("b214","hex"),r["blake2b-168"]=e.from("b215","hex"),r["blake2b-176"]=e.from("b216","hex"),r["blake2b-184"]=e.from("b217","hex"),r["blake2b-192"]=e.from("b218","hex"),r["blake2b-200"]=e.from("b219","hex"),r["blake2b-208"]=e.from("b21a","hex"),r["blake2b-216"]=e.from("b21b","hex"),r["blake2b-224"]=e.from("b21c","hex"),r["blake2b-232"]=e.from("b21d","hex"),r["blake2b-240"]=e.from("b21e","hex"),r["blake2b-248"]=e.from("b21f","hex"),r["blake2b-256"]=e.from("b220","hex"),r["blake2b-264"]=e.from("b221","hex"),r["blake2b-272"]=e.from("b222","hex"),r["blake2b-280"]=e.from("b223","hex"),r["blake2b-288"]=e.from("b224","hex"),r["blake2b-296"]=e.from("b225","hex"),r["blake2b-304"]=e.from("b226","hex"),r["blake2b-312"]=e.from("b227","hex"),r["blake2b-320"]=e.from("b228","hex"),r["blake2b-328"]=e.from("b229","hex"),r["blake2b-336"]=e.from("b22a","hex"),r["blake2b-344"]=e.from("b22b","hex"),r["blake2b-352"]=e.from("b22c","hex"),r["blake2b-360"]=e.from("b22d","hex"),r["blake2b-368"]=e.from("b22e","hex"),r["blake2b-376"]=e.from("b22f","hex"),r["blake2b-384"]=e.from("b230","hex"),r["blake2b-392"]=e.from("b231","hex"),r["blake2b-400"]=e.from("b232","hex"),r["blake2b-408"]=e.from("b233","hex"),r["blake2b-416"]=e.from("b234","hex"),r["blake2b-424"]=e.from("b235","hex"),r["blake2b-432"]=e.from("b236","hex"),r["blake2b-440"]=e.from("b237","hex"),r["blake2b-448"]=e.from("b238","hex"),r["blake2b-456"]=e.from("b239","hex"),r["blake2b-464"]=e.from("b23a","hex"),r["blake2b-472"]=e.from("b23b","hex"),r["blake2b-480"]=e.from("b23c","hex"),r["blake2b-488"]=e.from("b23d","hex"),r["blake2b-496"]=e.from("b23e","hex"),r["blake2b-504"]=e.from("b23f","hex"),r["blake2b-512"]=e.from("b240","hex"),r["blake2s-8"]=e.from("b241","hex"),r["blake2s-16"]=e.from("b242","hex"),r["blake2s-24"]=e.from("b243","hex"),r["blake2s-32"]=e.from("b244","hex"),r["blake2s-40"]=e.from("b245","hex"),r["blake2s-48"]=e.from("b246","hex"),r["blake2s-56"]=e.from("b247","hex"),r["blake2s-64"]=e.from("b248","hex"),r["blake2s-72"]=e.from("b249","hex"),r["blake2s-80"]=e.from("b24a","hex"),r["blake2s-88"]=e.from("b24b","hex"),r["blake2s-96"]=e.from("b24c","hex"),r["blake2s-104"]=e.from("b24d","hex"),r["blake2s-112"]=e.from("b24e","hex"),r["blake2s-120"]=e.from("b24f","hex"),r["blake2s-128"]=e.from("b250","hex"),r["blake2s-136"]=e.from("b251","hex"),r["blake2s-144"]=e.from("b252","hex"),r["blake2s-152"]=e.from("b253","hex"),r["blake2s-160"]=e.from("b254","hex"),r["blake2s-168"]=e.from("b255","hex"),r["blake2s-176"]=e.from("b256","hex"),r["blake2s-184"]=e.from("b257","hex"),r["blake2s-192"]=e.from("b258","hex"),r["blake2s-200"]=e.from("b259","hex"),r["blake2s-208"]=e.from("b25a","hex"),r["blake2s-216"]=e.from("b25b","hex"),r["blake2s-224"]=e.from("b25c","hex"),r["blake2s-232"]=e.from("b25d","hex"),r["blake2s-240"]=e.from("b25e","hex"),r["blake2s-248"]=e.from("b25f","hex"),r["blake2s-256"]=e.from("b260","hex"),r["skein256-8"]=e.from("b301","hex"),r["skein256-16"]=e.from("b302","hex"),r["skein256-24"]=e.from("b303","hex"),r["skein256-32"]=e.from("b304","hex"),r["skein256-40"]=e.from("b305","hex"),r["skein256-48"]=e.from("b306","hex"),r["skein256-56"]=e.from("b307","hex"),r["skein256-64"]=e.from("b308","hex"),r["skein256-72"]=e.from("b309","hex"),r["skein256-80"]=e.from("b30a","hex"),r["skein256-88"]=e.from("b30b","hex"),r["skein256-96"]=e.from("b30c","hex"),r["skein256-104"]=e.from("b30d","hex"),r["skein256-112"]=e.from("b30e","hex"),r["skein256-120"]=e.from("b30f","hex"),r["skein256-128"]=e.from("b310","hex"),r["skein256-136"]=e.from("b311","hex"),r["skein256-144"]=e.from("b312","hex"),r["skein256-152"]=e.from("b313","hex"),r["skein256-160"]=e.from("b314","hex"),r["skein256-168"]=e.from("b315","hex"),r["skein256-176"]=e.from("b316","hex"),r["skein256-184"]=e.from("b317","hex"),r["skein256-192"]=e.from("b318","hex"),r["skein256-200"]=e.from("b319","hex"),r["skein256-208"]=e.from("b31a","hex"),r["skein256-216"]=e.from("b31b","hex"),r["skein256-224"]=e.from("b31c","hex"),r["skein256-232"]=e.from("b31d","hex"),r["skein256-240"]=e.from("b31e","hex"),r["skein256-248"]=e.from("b31f","hex"),r["skein256-256"]=e.from("b320","hex"),r["skein512-8"]=e.from("b321","hex"),r["skein512-16"]=e.from("b322","hex"),r["skein512-24"]=e.from("b323","hex"),r["skein512-32"]=e.from("b324","hex"),r["skein512-40"]=e.from("b325","hex"),r["skein512-48"]=e.from("b326","hex"),r["skein512-56"]=e.from("b327","hex"),r["skein512-64"]=e.from("b328","hex"),r["skein512-72"]=e.from("b329","hex"),r["skein512-80"]=e.from("b32a","hex"),r["skein512-88"]=e.from("b32b","hex"),r["skein512-96"]=e.from("b32c","hex"),r["skein512-104"]=e.from("b32d","hex"),r["skein512-112"]=e.from("b32e","hex"),r["skein512-120"]=e.from("b32f","hex"),r["skein512-128"]=e.from("b330","hex"),r["skein512-136"]=e.from("b331","hex"),r["skein512-144"]=e.from("b332","hex"),r["skein512-152"]=e.from("b333","hex"),r["skein512-160"]=e.from("b334","hex"),r["skein512-168"]=e.from("b335","hex"),r["skein512-176"]=e.from("b336","hex"),r["skein512-184"]=e.from("b337","hex"),r["skein512-192"]=e.from("b338","hex"),r["skein512-200"]=e.from("b339","hex"),r["skein512-208"]=e.from("b33a","hex"),r["skein512-216"]=e.from("b33b","hex"),r["skein512-224"]=e.from("b33c","hex"),r["skein512-232"]=e.from("b33d","hex"),r["skein512-240"]=e.from("b33e","hex"),r["skein512-248"]=e.from("b33f","hex"),r["skein512-256"]=e.from("b340","hex"),r["skein512-264"]=e.from("b341","hex"),r["skein512-272"]=e.from("b342","hex"),r["skein512-280"]=e.from("b343","hex"),r["skein512-288"]=e.from("b344","hex"),r["skein512-296"]=e.from("b345","hex"),r["skein512-304"]=e.from("b346","hex"),r["skein512-312"]=e.from("b347","hex"),r["skein512-320"]=e.from("b348","hex"),r["skein512-328"]=e.from("b349","hex"),r["skein512-336"]=e.from("b34a","hex"),r["skein512-344"]=e.from("b34b","hex"),r["skein512-352"]=e.from("b34c","hex"),r["skein512-360"]=e.from("b34d","hex"),r["skein512-368"]=e.from("b34e","hex"),r["skein512-376"]=e.from("b34f","hex"),r["skein512-384"]=e.from("b350","hex"),r["skein512-392"]=e.from("b351","hex"),r["skein512-400"]=e.from("b352","hex"),r["skein512-408"]=e.from("b353","hex"),r["skein512-416"]=e.from("b354","hex"),r["skein512-424"]=e.from("b355","hex"),r["skein512-432"]=e.from("b356","hex"),r["skein512-440"]=e.from("b357","hex"),r["skein512-448"]=e.from("b358","hex"),r["skein512-456"]=e.from("b359","hex"),r["skein512-464"]=e.from("b35a","hex"),r["skein512-472"]=e.from("b35b","hex"),r["skein512-480"]=e.from("b35c","hex"),r["skein512-488"]=e.from("b35d","hex"),r["skein512-496"]=e.from("b35e","hex"),r["skein512-504"]=e.from("b35f","hex"),r["skein512-512"]=e.from("b360","hex"),r["skein1024-8"]=e.from("b361","hex"),r["skein1024-16"]=e.from("b362","hex"),r["skein1024-24"]=e.from("b363","hex"),r["skein1024-32"]=e.from("b364","hex"),r["skein1024-40"]=e.from("b365","hex"),r["skein1024-48"]=e.from("b366","hex"),r["skein1024-56"]=e.from("b367","hex"),r["skein1024-64"]=e.from("b368","hex"),r["skein1024-72"]=e.from("b369","hex"),r["skein1024-80"]=e.from("b36a","hex"),r["skein1024-88"]=e.from("b36b","hex"),r["skein1024-96"]=e.from("b36c","hex"),r["skein1024-104"]=e.from("b36d","hex"),r["skein1024-112"]=e.from("b36e","hex"),r["skein1024-120"]=e.from("b36f","hex"),r["skein1024-128"]=e.from("b370","hex"),r["skein1024-136"]=e.from("b371","hex"),r["skein1024-144"]=e.from("b372","hex"),r["skein1024-152"]=e.from("b373","hex"),r["skein1024-160"]=e.from("b374","hex"),r["skein1024-168"]=e.from("b375","hex"),r["skein1024-176"]=e.from("b376","hex"),r["skein1024-184"]=e.from("b377","hex"),r["skein1024-192"]=e.from("b378","hex"),r["skein1024-200"]=e.from("b379","hex"),r["skein1024-208"]=e.from("b37a","hex"),r["skein1024-216"]=e.from("b37b","hex"),r["skein1024-224"]=e.from("b37c","hex"),r["skein1024-232"]=e.from("b37d","hex"),r["skein1024-240"]=e.from("b37e","hex"),r["skein1024-248"]=e.from("b37f","hex"),r["skein1024-256"]=e.from("b380","hex"),r["skein1024-264"]=e.from("b381","hex"),r["skein1024-272"]=e.from("b382","hex"),r["skein1024-280"]=e.from("b383","hex"),r["skein1024-288"]=e.from("b384","hex"),r["skein1024-296"]=e.from("b385","hex"),r["skein1024-304"]=e.from("b386","hex"),r["skein1024-312"]=e.from("b387","hex"),r["skein1024-320"]=e.from("b388","hex"),r["skein1024-328"]=e.from("b389","hex"),r["skein1024-336"]=e.from("b38a","hex"),r["skein1024-344"]=e.from("b38b","hex"),r["skein1024-352"]=e.from("b38c","hex"),r["skein1024-360"]=e.from("b38d","hex"),r["skein1024-368"]=e.from("b38e","hex"),r["skein1024-376"]=e.from("b38f","hex"),r["skein1024-384"]=e.from("b390","hex"),r["skein1024-392"]=e.from("b391","hex"),r["skein1024-400"]=e.from("b392","hex"),r["skein1024-408"]=e.from("b393","hex"),r["skein1024-416"]=e.from("b394","hex"),r["skein1024-424"]=e.from("b395","hex"),r["skein1024-432"]=e.from("b396","hex"),r["skein1024-440"]=e.from("b397","hex"),r["skein1024-448"]=e.from("b398","hex"),r["skein1024-456"]=e.from("b399","hex"),r["skein1024-464"]=e.from("b39a","hex"),r["skein1024-472"]=e.from("b39b","hex"),r["skein1024-480"]=e.from("b39c","hex"),r["skein1024-488"]=e.from("b39d","hex"),r["skein1024-496"]=e.from("b39e","hex"),r["skein1024-504"]=e.from("b39f","hex"),r["skein1024-512"]=e.from("b3a0","hex"),r["skein1024-520"]=e.from("b3a1","hex"),r["skein1024-528"]=e.from("b3a2","hex"),r["skein1024-536"]=e.from("b3a3","hex"),r["skein1024-544"]=e.from("b3a4","hex"),r["skein1024-552"]=e.from("b3a5","hex"),r["skein1024-560"]=e.from("b3a6","hex"),r["skein1024-568"]=e.from("b3a7","hex"),r["skein1024-576"]=e.from("b3a8","hex"),r["skein1024-584"]=e.from("b3a9","hex"),r["skein1024-592"]=e.from("b3aa","hex"),r["skein1024-600"]=e.from("b3ab","hex"),r["skein1024-608"]=e.from("b3ac","hex"),r["skein1024-616"]=e.from("b3ad","hex"),r["skein1024-624"]=e.from("b3ae","hex"),r["skein1024-632"]=e.from("b3af","hex"),r["skein1024-640"]=e.from("b3b0","hex"),r["skein1024-648"]=e.from("b3b1","hex"),r["skein1024-656"]=e.from("b3b2","hex"),r["skein1024-664"]=e.from("b3b3","hex"),r["skein1024-672"]=e.from("b3b4","hex"),r["skein1024-680"]=e.from("b3b5","hex"),r["skein1024-688"]=e.from("b3b6","hex"),r["skein1024-696"]=e.from("b3b7","hex"),r["skein1024-704"]=e.from("b3b8","hex"),r["skein1024-712"]=e.from("b3b9","hex"),r["skein1024-720"]=e.from("b3ba","hex"),r["skein1024-728"]=e.from("b3bb","hex"),r["skein1024-736"]=e.from("b3bc","hex"),r["skein1024-744"]=e.from("b3bd","hex"),r["skein1024-752"]=e.from("b3be","hex"),r["skein1024-760"]=e.from("b3bf","hex"),r["skein1024-768"]=e.from("b3c0","hex"),r["skein1024-776"]=e.from("b3c1","hex"),r["skein1024-784"]=e.from("b3c2","hex"),r["skein1024-792"]=e.from("b3c3","hex"),r["skein1024-800"]=e.from("b3c4","hex"),r["skein1024-808"]=e.from("b3c5","hex"),r["skein1024-816"]=e.from("b3c6","hex"),r["skein1024-824"]=e.from("b3c7","hex"),r["skein1024-832"]=e.from("b3c8","hex"),r["skein1024-840"]=e.from("b3c9","hex"),r["skein1024-848"]=e.from("b3ca","hex"),r["skein1024-856"]=e.from("b3cb","hex"),r["skein1024-864"]=e.from("b3cc","hex"),r["skein1024-872"]=e.from("b3cd","hex"),r["skein1024-880"]=e.from("b3ce","hex"),r["skein1024-888"]=e.from("b3cf","hex"),r["skein1024-896"]=e.from("b3d0","hex"),r["skein1024-904"]=e.from("b3d1","hex"),r["skein1024-912"]=e.from("b3d2","hex"),r["skein1024-920"]=e.from("b3d3","hex"),r["skein1024-928"]=e.from("b3d4","hex"),r["skein1024-936"]=e.from("b3d5","hex"),r["skein1024-944"]=e.from("b3d6","hex"),r["skein1024-952"]=e.from("b3d7","hex"),r["skein1024-960"]=e.from("b3d8","hex"),r["skein1024-968"]=e.from("b3d9","hex"),r["skein1024-976"]=e.from("b3da","hex"),r["skein1024-984"]=e.from("b3db","hex"),r["skein1024-992"]=e.from("b3dc","hex"),r["skein1024-1000"]=e.from("b3dd","hex"),r["skein1024-1008"]=e.from("b3de","hex"),r["skein1024-1016"]=e.from("b3df","hex"),r["skein1024-1024"]=e.from("b3e0","hex"),r.ip4=e.from("04","hex"),r.tcp=e.from("06","hex"),r.dccp=e.from("21","hex"),r.ip6=e.from("29","hex"),r.ip6zone=e.from("2a","hex"),r.dns=e.from("35","hex"),r.dns4=e.from("36","hex"),r.dns6=e.from("37","hex"),r.dnsaddr=e.from("38","hex"),r.sctp=e.from("84","hex"),r.udp=e.from("0111","hex"),r["p2p-webrtc-star"]=e.from("0113","hex"),r["p2p-webrtc-direct"]=e.from("0114","hex"),r["p2p-stardust"]=e.from("0115","hex"),r["p2p-circuit"]=e.from("0122","hex"),r.udt=e.from("012d","hex"),r.utp=e.from("012e","hex"),r.unix=e.from("0190","hex"),r.p2p=e.from("01a5","hex"),r.ipfs=e.from("01a5","hex"),r.https=e.from("01bb","hex"),r.onion=e.from("01bc","hex"),r.onion3=e.from("01bd","hex"),r.garlic64=e.from("01be","hex"),r.garlic32=e.from("01bf","hex"),r.quic=e.from("01cc","hex"),r.ws=e.from("01dd","hex"),r.wss=e.from("01de","hex"),r["p2p-websocket-star"]=e.from("01df","hex"),r.http=e.from("01e0","hex"),r.raw=e.from("55","hex"),r["dag-pb"]=e.from("70","hex"),r["dag-cbor"]=e.from("71","hex"),r["libp2p-key"]=e.from("72","hex"),r["git-raw"]=e.from("78","hex"),r["torrent-info"]=e.from("7b","hex"),r["torrent-file"]=e.from("7c","hex"),r["leofcoin-block"]=e.from("81","hex"),r["leofcoin-tx"]=e.from("82","hex"),r["leofcoin-pr"]=e.from("83","hex"),r["eth-block"]=e.from("90","hex"),r["eth-block-list"]=e.from("91","hex"),r["eth-tx-trie"]=e.from("92","hex"),r["eth-tx"]=e.from("93","hex"),r["eth-tx-receipt-trie"]=e.from("94","hex"),r["eth-tx-receipt"]=e.from("95","hex"),r["eth-state-trie"]=e.from("96","hex"),r["eth-account-snapshot"]=e.from("97","hex"),r["eth-storage-trie"]=e.from("98","hex"),r["bitcoin-block"]=e.from("b0","hex"),r["bitcoin-tx"]=e.from("b1","hex"),r["zcash-block"]=e.from("c0","hex"),r["zcash-tx"]=e.from("c1","hex"),r["stellar-block"]=e.from("d0","hex"),r["stellar-tx"]=e.from("d1","hex"),r["decred-block"]=e.from("e0","hex"),r["decred-tx"]=e.from("e1","hex"),r["dash-block"]=e.from("f0","hex"),r["dash-tx"]=e.from("f1","hex"),r["swarm-manifest"]=e.from("fa","hex"),r["swarm-feed"]=e.from("fb","hex"),r["dag-json"]=e.from("0129","hex"),r.path=e.from("2f","hex"),r["ipld-ns"]=e.from("e2","hex"),r["ipfs-ns"]=e.from("e3","hex"),r["swarm-ns"]=e.from("e4","hex"),r["ipns-ns"]=e.from("e5","hex"),r.zeronet=e.from("e6","hex"),r["ed25519-pub"]=e.from("ed","hex"),r["holochain-adr-v0"]=e.from("807124","hex"),r["holochain-adr-v1"]=e.from("817124","hex"),r["holochain-key-v0"]=e.from("947124","hex"),r["holochain-key-v1"]=e.from("957124","hex"),r["holochain-sig-v0"]=e.from("a27124","hex"),r["holochain-sig-v1"]=e.from("a37124","hex")}).call(this,e("buffer").Buffer)},{buffer:475}],885:[function(e,t,r){"use strict";t.exports=Object.freeze({PROTOBUF:80,CBOR:81,RLP:96,BENCODE:99,JSON:512,MESSAGEPACK:513,MULTICODEC:48,MULTIHASH:49,MULTIADDR:50,MULTIBASE:51,IDENTITY:0,SHA1:17,SHA2_256:18,SHA2_512:19,SHA3_512:20,SHA3_384:21,SHA3_256:22,SHA3_224:23,SHAKE_128:24,SHAKE_256:25,KECCAK_224:26,KECCAK_256:27,KECCAK_384:28,KECCAK_512:29,MURMUR3_128:34,MURMUR3_32:35,DBL_SHA2_256:86,MD4:212,MD5:213,BMT:214,X11:4352,BLAKE2B_8:45569,BLAKE2B_16:45570,BLAKE2B_24:45571,BLAKE2B_32:45572,BLAKE2B_40:45573,BLAKE2B_48:45574,BLAKE2B_56:45575,BLAKE2B_64:45576,BLAKE2B_72:45577,BLAKE2B_80:45578,BLAKE2B_88:45579,BLAKE2B_96:45580,BLAKE2B_104:45581,BLAKE2B_112:45582,BLAKE2B_120:45583,BLAKE2B_128:45584,BLAKE2B_136:45585,BLAKE2B_144:45586,BLAKE2B_152:45587,BLAKE2B_160:45588,BLAKE2B_168:45589,BLAKE2B_176:45590,BLAKE2B_184:45591,BLAKE2B_192:45592,BLAKE2B_200:45593,BLAKE2B_208:45594,BLAKE2B_216:45595,BLAKE2B_224:45596,BLAKE2B_232:45597,BLAKE2B_240:45598,BLAKE2B_248:45599,BLAKE2B_256:45600,BLAKE2B_264:45601,BLAKE2B_272:45602,BLAKE2B_280:45603,BLAKE2B_288:45604,BLAKE2B_296:45605,BLAKE2B_304:45606,BLAKE2B_312:45607,BLAKE2B_320:45608,BLAKE2B_328:45609,BLAKE2B_336:45610,BLAKE2B_344:45611,BLAKE2B_352:45612,BLAKE2B_360:45613,BLAKE2B_368:45614,BLAKE2B_376:45615,BLAKE2B_384:45616,BLAKE2B_392:45617,BLAKE2B_400:45618,BLAKE2B_408:45619,BLAKE2B_416:45620,BLAKE2B_424:45621,BLAKE2B_432:45622,BLAKE2B_440:45623,BLAKE2B_448:45624,BLAKE2B_456:45625,BLAKE2B_464:45626,BLAKE2B_472:45627,BLAKE2B_480:45628,BLAKE2B_488:45629,BLAKE2B_496:45630,BLAKE2B_504:45631,BLAKE2B_512:45632,BLAKE2S_8:45633,BLAKE2S_16:45634,BLAKE2S_24:45635,BLAKE2S_32:45636,BLAKE2S_40:45637,BLAKE2S_48:45638,BLAKE2S_56:45639,BLAKE2S_64:45640,BLAKE2S_72:45641,BLAKE2S_80:45642,BLAKE2S_88:45643,BLAKE2S_96:45644,BLAKE2S_104:45645,BLAKE2S_112:45646,BLAKE2S_120:45647,BLAKE2S_128:45648,BLAKE2S_136:45649,BLAKE2S_144:45650,BLAKE2S_152:45651,BLAKE2S_160:45652,BLAKE2S_168:45653,BLAKE2S_176:45654,BLAKE2S_184:45655,BLAKE2S_192:45656,BLAKE2S_200:45657,BLAKE2S_208:45658,BLAKE2S_216:45659,BLAKE2S_224:45660,BLAKE2S_232:45661,BLAKE2S_240:45662,BLAKE2S_248:45663,BLAKE2S_256:45664,SKEIN256_8:45825,SKEIN256_16:45826,SKEIN256_24:45827,SKEIN256_32:45828,SKEIN256_40:45829,SKEIN256_48:45830,SKEIN256_56:45831,SKEIN256_64:45832,SKEIN256_72:45833,SKEIN256_80:45834,SKEIN256_88:45835,SKEIN256_96:45836,SKEIN256_104:45837,SKEIN256_112:45838,SKEIN256_120:45839,SKEIN256_128:45840,SKEIN256_136:45841,SKEIN256_144:45842,SKEIN256_152:45843,SKEIN256_160:45844,SKEIN256_168:45845,SKEIN256_176:45846,SKEIN256_184:45847,SKEIN256_192:45848,SKEIN256_200:45849,SKEIN256_208:45850,SKEIN256_216:45851,SKEIN256_224:45852,SKEIN256_232:45853,SKEIN256_240:45854,SKEIN256_248:45855,SKEIN256_256:45856,SKEIN512_8:45857,SKEIN512_16:45858,SKEIN512_24:45859,SKEIN512_32:45860,SKEIN512_40:45861,SKEIN512_48:45862,SKEIN512_56:45863,SKEIN512_64:45864,SKEIN512_72:45865,SKEIN512_80:45866,SKEIN512_88:45867,SKEIN512_96:45868,SKEIN512_104:45869,SKEIN512_112:45870,SKEIN512_120:45871,SKEIN512_128:45872,SKEIN512_136:45873,SKEIN512_144:45874,SKEIN512_152:45875,SKEIN512_160:45876,SKEIN512_168:45877,SKEIN512_176:45878,SKEIN512_184:45879,SKEIN512_192:45880,SKEIN512_200:45881,SKEIN512_208:45882,SKEIN512_216:45883,SKEIN512_224:45884,SKEIN512_232:45885,SKEIN512_240:45886,SKEIN512_248:45887,SKEIN512_256:45888,SKEIN512_264:45889,SKEIN512_272:45890,SKEIN512_280:45891,SKEIN512_288:45892,SKEIN512_296:45893,SKEIN512_304:45894,SKEIN512_312:45895,SKEIN512_320:45896,SKEIN512_328:45897,SKEIN512_336:45898,SKEIN512_344:45899,SKEIN512_352:45900,SKEIN512_360:45901,SKEIN512_368:45902,SKEIN512_376:45903,SKEIN512_384:45904,SKEIN512_392:45905,SKEIN512_400:45906,SKEIN512_408:45907,SKEIN512_416:45908,SKEIN512_424:45909,SKEIN512_432:45910,SKEIN512_440:45911,SKEIN512_448:45912,SKEIN512_456:45913,SKEIN512_464:45914,SKEIN512_472:45915,SKEIN512_480:45916,SKEIN512_488:45917,SKEIN512_496:45918,SKEIN512_504:45919,SKEIN512_512:45920,SKEIN1024_8:45921,SKEIN1024_16:45922,SKEIN1024_24:45923,SKEIN1024_32:45924,SKEIN1024_40:45925,SKEIN1024_48:45926,SKEIN1024_56:45927,SKEIN1024_64:45928,SKEIN1024_72:45929,SKEIN1024_80:45930,SKEIN1024_88:45931,SKEIN1024_96:45932,SKEIN1024_104:45933,SKEIN1024_112:45934,SKEIN1024_120:45935,SKEIN1024_128:45936,SKEIN1024_136:45937,SKEIN1024_144:45938,SKEIN1024_152:45939,SKEIN1024_160:45940,SKEIN1024_168:45941,SKEIN1024_176:45942,SKEIN1024_184:45943,SKEIN1024_192:45944,SKEIN1024_200:45945,SKEIN1024_208:45946,SKEIN1024_216:45947,SKEIN1024_224:45948,SKEIN1024_232:45949,SKEIN1024_240:45950,SKEIN1024_248:45951,SKEIN1024_256:45952,SKEIN1024_264:45953,SKEIN1024_272:45954,SKEIN1024_280:45955,SKEIN1024_288:45956,SKEIN1024_296:45957,SKEIN1024_304:45958,SKEIN1024_312:45959,SKEIN1024_320:45960,SKEIN1024_328:45961,SKEIN1024_336:45962,SKEIN1024_344:45963,SKEIN1024_352:45964,SKEIN1024_360:45965,SKEIN1024_368:45966,SKEIN1024_376:45967,SKEIN1024_384:45968,SKEIN1024_392:45969,SKEIN1024_400:45970,SKEIN1024_408:45971,SKEIN1024_416:45972,SKEIN1024_424:45973,SKEIN1024_432:45974,SKEIN1024_440:45975,SKEIN1024_448:45976,SKEIN1024_456:45977,SKEIN1024_464:45978,SKEIN1024_472:45979,SKEIN1024_480:45980,SKEIN1024_488:45981,SKEIN1024_496:45982,SKEIN1024_504:45983,SKEIN1024_512:45984,SKEIN1024_520:45985,SKEIN1024_528:45986,SKEIN1024_536:45987,SKEIN1024_544:45988,SKEIN1024_552:45989,SKEIN1024_560:45990,SKEIN1024_568:45991,SKEIN1024_576:45992,SKEIN1024_584:45993,SKEIN1024_592:45994,SKEIN1024_600:45995,SKEIN1024_608:45996,SKEIN1024_616:45997,SKEIN1024_624:45998,SKEIN1024_632:45999,SKEIN1024_640:46e3,SKEIN1024_648:46001,SKEIN1024_656:46002,SKEIN1024_664:46003,SKEIN1024_672:46004,SKEIN1024_680:46005,SKEIN1024_688:46006,SKEIN1024_696:46007,SKEIN1024_704:46008,SKEIN1024_712:46009,SKEIN1024_720:46010,SKEIN1024_728:46011,SKEIN1024_736:46012,SKEIN1024_744:46013,SKEIN1024_752:46014,SKEIN1024_760:46015,SKEIN1024_768:46016,SKEIN1024_776:46017,SKEIN1024_784:46018,SKEIN1024_792:46019,SKEIN1024_800:46020,SKEIN1024_808:46021,SKEIN1024_816:46022,SKEIN1024_824:46023,SKEIN1024_832:46024,SKEIN1024_840:46025,SKEIN1024_848:46026,SKEIN1024_856:46027,SKEIN1024_864:46028,SKEIN1024_872:46029,SKEIN1024_880:46030,SKEIN1024_888:46031,SKEIN1024_896:46032,SKEIN1024_904:46033,SKEIN1024_912:46034,SKEIN1024_920:46035,SKEIN1024_928:46036,SKEIN1024_936:46037,SKEIN1024_944:46038,SKEIN1024_952:46039,SKEIN1024_960:46040,SKEIN1024_968:46041,SKEIN1024_976:46042,SKEIN1024_984:46043,SKEIN1024_992:46044,SKEIN1024_1000:46045,SKEIN1024_1008:46046,SKEIN1024_1016:46047,SKEIN1024_1024:46048,IP4:4,TCP:6,DCCP:33,IP6:41,IP6ZONE:42,DNS:53,DNS4:54,DNS6:55,DNSADDR:56,SCTP:132,UDP:273,P2P_WEBRTC_STAR:275,P2P_WEBRTC_DIRECT:276,P2P_STARDUST:277,P2P_CIRCUIT:290,UDT:301,UTP:302,UNIX:400,P2P:421,IPFS:421,HTTPS:443,ONION:444,ONION3:445,GARLIC64:446,GARLIC32:447,QUIC:460,WS:477,WSS:478,P2P_WEBSOCKET_STAR:479,HTTP:480,RAW:85,DAG_PB:112,DAG_CBOR:113,LIBP2P_KEY:114,GIT_RAW:120,TORRENT_INFO:123,TORRENT_FILE:124,LEOFCOIN_BLOCK:129,LEOFCOIN_TX:130,LEOFCOIN_PR:131,ETH_BLOCK:144,ETH_BLOCK_LIST:145,ETH_TX_TRIE:146,ETH_TX:147,ETH_TX_RECEIPT_TRIE:148,ETH_TX_RECEIPT:149,ETH_STATE_TRIE:150,ETH_ACCOUNT_SNAPSHOT:151,ETH_STORAGE_TRIE:152,BITCOIN_BLOCK:176,BITCOIN_TX:177,ZCASH_BLOCK:192,ZCASH_TX:193,STELLAR_BLOCK:208,STELLAR_TX:209,DECRED_BLOCK:224,DECRED_TX:225,DASH_BLOCK:240,DASH_TX:241,SWARM_MANIFEST:250,SWARM_FEED:251,DAG_JSON:297,PATH:47,IPLD_NS:226,IPFS_NS:227,SWARM_NS:228,IPNS_NS:229,ZERONET:230,ED25519_PUB:237,HOLOCHAIN_ADR_V0:8417572,HOLOCHAIN_ADR_V1:8483108,HOLOCHAIN_KEY_V0:9728292,HOLOCHAIN_KEY_V1:9793828,HOLOCHAIN_SIG_V0:10645796,HOLOCHAIN_SIG_V1:10711332})},{}],886:[function(e,t,r){(function(n){"use strict";const i=e("varint"),o=e("./varint-table"),a=e("./name-table"),s=e("./util");(r=t.exports).addPrefix=(e,t)=>{let r;if(n.isBuffer(e))r=s.varintBufferEncode(e);else{if(!o[e])throw new Error("multicodec not recognized");r=o[e]}return n.concat([r,t])},r.rmPrefix=e=>(i.decode(e),e.slice(i.decode.bytes)),r.getCodec=e=>{const t=s.varintBufferDecode(e),r=a[t.toString("hex")];if(void 0===r)throw new Error("Code `0x"+t.toString("hex")+"` not found");return r},r.getName=e=>a[e.toString(16)],r.getNumber=e=>{const t=o[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]},r.getCode=e=>i.decode(e),r.getCodeVarint=e=>{const t=o[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},r.getVarint=e=>i.encode(e);const c=e("./constants");Object.assign(r,c),r.print=e("./print")}).call(this,e("buffer").Buffer)},{"./constants":885,"./name-table":887,"./print":888,"./util":889,"./varint-table":890,buffer:475,varint:1140}],887:[function(e,t,r){"use strict";const n=e("./base-table"),i={};t.exports=i;for(let e in n)i[n[e].toString("hex")]=e},{"./base-table":884}],888:[function(e,t,r){"use strict";t.exports=Object.freeze({80:"protobuf",81:"cbor",96:"rlp",99:"bencode",512:"json",513:"messagepack",48:"multicodec",49:"multihash",50:"multiaddr",51:"multibase",0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",20:"sha3-512",21:"sha3-384",22:"sha3-256",23:"sha3-224",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",86:"dbl-sha2-256",212:"md4",213:"md5",214:"bmt",4352:"x11",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"skein256-8",45826:"skein256-16",45827:"skein256-24",45828:"skein256-32",45829:"skein256-40",45830:"skein256-48",45831:"skein256-56",45832:"skein256-64",45833:"skein256-72",45834:"skein256-80",45835:"skein256-88",45836:"skein256-96",45837:"skein256-104",45838:"skein256-112",45839:"skein256-120",45840:"skein256-128",45841:"skein256-136",45842:"skein256-144",45843:"skein256-152",45844:"skein256-160",45845:"skein256-168",45846:"skein256-176",45847:"skein256-184",45848:"skein256-192",45849:"skein256-200",45850:"skein256-208",45851:"skein256-216",45852:"skein256-224",45853:"skein256-232",45854:"skein256-240",45855:"skein256-248",45856:"skein256-256",45857:"skein512-8",45858:"skein512-16",45859:"skein512-24",45860:"skein512-32",45861:"skein512-40",45862:"skein512-48",45863:"skein512-56",45864:"skein512-64",45865:"skein512-72",45866:"skein512-80",45867:"skein512-88",45868:"skein512-96",45869:"skein512-104",45870:"skein512-112",45871:"skein512-120",45872:"skein512-128",45873:"skein512-136",45874:"skein512-144",45875:"skein512-152",45876:"skein512-160",45877:"skein512-168",45878:"skein512-176",45879:"skein512-184",45880:"skein512-192",45881:"skein512-200",45882:"skein512-208",45883:"skein512-216",45884:"skein512-224",45885:"skein512-232",45886:"skein512-240",45887:"skein512-248",45888:"skein512-256",45889:"skein512-264",45890:"skein512-272",45891:"skein512-280",45892:"skein512-288",45893:"skein512-296",45894:"skein512-304",45895:"skein512-312",45896:"skein512-320",45897:"skein512-328",45898:"skein512-336",45899:"skein512-344",45900:"skein512-352",45901:"skein512-360",45902:"skein512-368",45903:"skein512-376",45904:"skein512-384",45905:"skein512-392",45906:"skein512-400",45907:"skein512-408",45908:"skein512-416",45909:"skein512-424",45910:"skein512-432",45911:"skein512-440",45912:"skein512-448",45913:"skein512-456",45914:"skein512-464",45915:"skein512-472",45916:"skein512-480",45917:"skein512-488",45918:"skein512-496",45919:"skein512-504",45920:"skein512-512",45921:"skein1024-8",45922:"skein1024-16",45923:"skein1024-24",45924:"skein1024-32",45925:"skein1024-40",45926:"skein1024-48",45927:"skein1024-56",45928:"skein1024-64",45929:"skein1024-72",45930:"skein1024-80",45931:"skein1024-88",45932:"skein1024-96",45933:"skein1024-104",45934:"skein1024-112",45935:"skein1024-120",45936:"skein1024-128",45937:"skein1024-136",45938:"skein1024-144",45939:"skein1024-152",45940:"skein1024-160",45941:"skein1024-168",45942:"skein1024-176",45943:"skein1024-184",45944:"skein1024-192",45945:"skein1024-200",45946:"skein1024-208",45947:"skein1024-216",45948:"skein1024-224",45949:"skein1024-232",45950:"skein1024-240",45951:"skein1024-248",45952:"skein1024-256",45953:"skein1024-264",45954:"skein1024-272",45955:"skein1024-280",45956:"skein1024-288",45957:"skein1024-296",45958:"skein1024-304",45959:"skein1024-312",45960:"skein1024-320",45961:"skein1024-328",45962:"skein1024-336",45963:"skein1024-344",45964:"skein1024-352",45965:"skein1024-360",45966:"skein1024-368",45967:"skein1024-376",45968:"skein1024-384",45969:"skein1024-392",45970:"skein1024-400",45971:"skein1024-408",45972:"skein1024-416",45973:"skein1024-424",45974:"skein1024-432",45975:"skein1024-440",45976:"skein1024-448",45977:"skein1024-456",45978:"skein1024-464",45979:"skein1024-472",45980:"skein1024-480",45981:"skein1024-488",45982:"skein1024-496",45983:"skein1024-504",45984:"skein1024-512",45985:"skein1024-520",45986:"skein1024-528",45987:"skein1024-536",45988:"skein1024-544",45989:"skein1024-552",45990:"skein1024-560",45991:"skein1024-568",45992:"skein1024-576",45993:"skein1024-584",45994:"skein1024-592",45995:"skein1024-600",45996:"skein1024-608",45997:"skein1024-616",45998:"skein1024-624",45999:"skein1024-632",46e3:"skein1024-640",46001:"skein1024-648",46002:"skein1024-656",46003:"skein1024-664",46004:"skein1024-672",46005:"skein1024-680",46006:"skein1024-688",46007:"skein1024-696",46008:"skein1024-704",46009:"skein1024-712",46010:"skein1024-720",46011:"skein1024-728",46012:"skein1024-736",46013:"skein1024-744",46014:"skein1024-752",46015:"skein1024-760",46016:"skein1024-768",46017:"skein1024-776",46018:"skein1024-784",46019:"skein1024-792",46020:"skein1024-800",46021:"skein1024-808",46022:"skein1024-816",46023:"skein1024-824",46024:"skein1024-832",46025:"skein1024-840",46026:"skein1024-848",46027:"skein1024-856",46028:"skein1024-864",46029:"skein1024-872",46030:"skein1024-880",46031:"skein1024-888",46032:"skein1024-896",46033:"skein1024-904",46034:"skein1024-912",46035:"skein1024-920",46036:"skein1024-928",46037:"skein1024-936",46038:"skein1024-944",46039:"skein1024-952",46040:"skein1024-960",46041:"skein1024-968",46042:"skein1024-976",46043:"skein1024-984",46044:"skein1024-992",46045:"skein1024-1000",46046:"skein1024-1008",46047:"skein1024-1016",46048:"skein1024-1024",4:"ip4",6:"tcp",33:"dccp",41:"ip6",42:"ip6zone",53:"dns",54:"dns4",55:"dns6",56:"dnsaddr",132:"sctp",273:"udp",275:"p2p-webrtc-star",276:"p2p-webrtc-direct",277:"p2p-stardust",290:"p2p-circuit",301:"udt",302:"utp",400:"unix",421:"p2p",443:"https",444:"onion",445:"onion3",446:"garlic64",447:"garlic32",460:"quic",477:"ws",478:"wss",479:"p2p-websocket-star",480:"http",85:"raw",112:"dag-pb",113:"dag-cbor",114:"libp2p-key",120:"git-raw",123:"torrent-info",124:"torrent-file",129:"leofcoin-block",130:"leofcoin-tx",131:"leofcoin-pr",144:"eth-block",145:"eth-block-list",146:"eth-tx-trie",147:"eth-tx",148:"eth-tx-receipt-trie",149:"eth-tx-receipt",150:"eth-state-trie",151:"eth-account-snapshot",152:"eth-storage-trie",176:"bitcoin-block",177:"bitcoin-tx",192:"zcash-block",193:"zcash-tx",208:"stellar-block",209:"stellar-tx",224:"decred-block",225:"decred-tx",240:"dash-block",241:"dash-tx",250:"swarm-manifest",251:"swarm-feed",297:"dag-json",47:"path",226:"ipld-ns",227:"ipfs-ns",228:"swarm-ns",229:"ipns-ns",230:"zeronet",237:"ed25519-pub",8417572:"holochain-adr-v0",8483108:"holochain-adr-v1",9728292:"holochain-key-v0",9793828:"holochain-key-v1",10645796:"holochain-sig-v0",10711332:"holochain-sig-v1"})},{}],889:[function(e,t,r){(function(r){"use strict";const n=e("varint");function i(e){return parseInt(e.toString("hex"),16)}function o(e){let t=e.toString(16);return t.length%2==1&&(t="0"+t),r.from(t,"hex")}t.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:function(e){return r.from(n.encode(i(e)))},varintBufferDecode:function(e){return o(n.decode(e))}}}).call(this,e("buffer").Buffer)},{buffer:475,varint:1140}],890:[function(e,t,r){"use strict";const n=e("./base-table"),i=e("./util").varintBufferEncode,o={};t.exports=o;for(let e in n){let t=n[e];o[e]=i(t)}},{"./base-table":884,"./util":889}],891:[function(e,t,r){var n=self.crypto||self.msCrypto;t.exports=function(e){e=e||21;for(var t="",r=n.getRandomValues(new Uint8Array(e));e--;)t+="Uint8ArdomValuesObj012345679BCDEFGHIJKLMNPQRSTWXYZ_cfghkpqvwxyz-"[63&r[e]];return t}},{}],892:[function(e,t,r){const n=e("ethjs-query"),i=e("assert"),o=e("await-semaphore").Mutex;t.exports=class{constructor({provider:e,blockTracker:t,getPendingTransactions:r,getConfirmedTransactions:i}){this.provider=e,this.blockTracker=t,this.ethQuery=new n(e),this.getPendingTransactions=r,this.getConfirmedTransactions=i,this.lockMap={}}async getGlobalLock(){const e=this._lookupMutex("global");return{releaseLock:await e.acquire()}}async getNonceLock(e){await this._globalMutexFree();const t=await this._takeMutex(e);try{const r={},n=await this._getNetworkNextNonce(e),o=this._getHighestLocallyConfirmed(e),a=n.nonce,s=Math.max(a,o),c=this.getPendingTransactions(e),u=this._getHighestContinuousFrom(c,s)||0;r.params={highestLocallyConfirmed:o,highestSuggested:s,nextNetworkNonce:a},r.local=u,r.network=n;const l=Math.max(n.nonce,u.nonce);return i(Number.isInteger(l),`nonce-tracker - nextNonce is not an integer - got: (${typeof l}) "${l}"`),{nextNonce:l,nonceDetails:r,releaseLock:t}}catch(e){throw t(),e}}async _globalMutexFree(){const e=this._lookupMutex("global");(await e.acquire())()}async _takeMutex(e){const t=this._lookupMutex(e);return await t.acquire()}_lookupMutex(e){let t=this.lockMap[e];return t||(t=new o,this.lockMap[e]=t),t}async _getNetworkNextNonce(e){const t=await this.blockTracker.getLatestBlock(),r=(await this.ethQuery.getTransactionCount(e,t)).toNumber();return i(Number.isInteger(r),`nonce-tracker - baseCount is not an integer - got: (${typeof r}) "${r}"`),{name:"network",nonce:r,details:{blockNumber:t,baseCount:r}}}_getHighestLocallyConfirmed(e){const t=this.getConfirmedTransactions(e),r=this._getHighestNonce(t);return Number.isInteger(r)?r+1:0}_getHighestNonce(e){const t=e.map(e=>{const t=e.txParams.nonce;return i(typeof t,"string","nonces should be hex strings"),parseInt(t,16)});return Math.max.apply(null,t)}_getHighestContinuousFrom(e,t){const r=e.map(e=>{const t=e.txParams.nonce;return i(typeof t,"string","nonces should be hex strings"),parseInt(t,16)});let n=t;for(;r.includes(n);)n++;return{name:"local",nonce:n,details:{startPoint:t,highest:n}}}}},{assert:329,"await-semaphore":330,"ethjs-query":893}],893:[function(e,t,r){arguments[4][189][0].apply(r,arguments)},{dup:189,"ethjs-format":749,"ethjs-rpc":755,"promise-to-callback":953}],894:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],895:[function(e,t,r){var n=e("bn.js"),i=e("strip-hex-prefix");t.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new n(1),r=String(e).toLowerCase().trim(),o="0x"===r.substr(0,2)||"-0x"===r.substr(0,3),a=i(r);if("-"===a.substr(0,1)&&(a=i(a.slice(1)),t=new n(-1,10)),!(a=""===a?"0":a).match(/^-?[0-9]+$/)&&a.match(/^[0-9A-Fa-f]+$/)||a.match(/^[a-fA-F]+$/)||!0===o&&a.match(/^[0-9A-Fa-f]+$/))return new n(a,16).mul(t);if((a.match(/^-?[0-9]+$/)||""===a)&&!1===o)return new n(a,10).mul(t)}else if("object"==typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new n(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},{"bn.js":894,"strip-hex-prefix":1081}],896:[function(e,t,r){const{Duplex:n}=e("readable-stream"),i=e("end-of-stream"),o=e("once"),a={};class s extends n{constructor({parent:e,name:t}){super({objectMode:!0}),this._parent=e,this._name=t}_read(){}_write(e,t,r){this._parent.push({name:this._name,data:e}),r()}}t.exports=class extends n{constructor(e={}){super(Object.assign({},e,{objectMode:!0})),this._substreams={}}createStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error('ObjectMultiplex - Substream for name "${name}" already exists');const t=new s({parent:this,name:e});return this._substreams[e]=t,function(e,t){const r=o(t);i(e,{readable:!1},r),i(e,{writable:!1},r)}(this,e=>{t.destroy(e)}),t}ignoreStream(e){if(!e)throw new Error("ObjectMultiplex - name must not be empty");if(this._substreams[e])throw new Error('ObjectMultiplex - Substream for name "${name}" already exists');this._substreams[e]=a}_read(){}_write(e,t,r){const n=e.name,i=e.data;if(!n)return console.warn(`ObjectMultiplex - malformed chunk without name "${e}"`),r();const o=this._substreams[n];if(!o)return console.warn(`ObjectMultiplex - orphaned data for stream "${n}"`),r();o!==a&&o.push(i),r()}}},{"end-of-stream":588,once:903,"readable-stream":979}],897:[function(e,t,r){
|
||
/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/
|
||
"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,s,c=a(e),u=1;u<arguments.length;u++){for(var l in r=Object(arguments[u]))i.call(r,l)&&(c[l]=r[l]);if(n){s=n(r);for(var f=0;f<s.length;f++)o.call(r,s[f])&&(c[s[f]]=r[s[f]])}}return c}},{}],898:[function(e,t,r){"use strict";e("xtend");const n=e("safe-event-emitter");t.exports=class extends n{constructor(e={}){super(),this._state=e}getState(){return this._getState()}putState(e){this._putState(e),this.emit("update",e)}updateState(e){if(e&&"object"==typeof e){const t=this.getState(),r=Object.assign({},t,e);this.putState(r)}else this.putState(e)}subscribe(e){this.on("update",e)}unsubscribe(e){this.removeListener("update",e)}_getState(){return this._state}_putState(e){this._state=e}}},{"safe-event-emitter":1038,xtend:902}],899:[function(e,t,r){const n=e("stream").Duplex;t.exports=function(e){return new i(e)};class i extends n{constructor(e){super({objectMode:!0}),this.resume(),this.handler=e=>this.push(e),this.obsStore=e,this.obsStore.subscribe(this.handler)}pipe(e,t){const r=n.prototype.pipe.call(this,e,t);return e.write(this.obsStore.getState()),r}_write(e,t,r){this.obsStore.putState(e),r()}_read(e){}_destroy(e,t){this.obsStore.unsubscribe(this.handler),super._destroy(e,t)}}},{stream:1059}],900:[function(e,t,r){"use strict";const n=e("../");t.exports=class extends n{constructor(e){super(),this.getState()||this.putState({}),this._children=e||{},Object.keys(this._children).forEach(e=>{let t=this._children[e];this._addChild(e,t)})}_addChild(e,t){const r=this;function n(t){let n=r.getState();n[e]=t,r.putState(n)}t.subscribe(n),n(t.getState())}}},{"../":898}],901:[function(e,t,r){"use strict";const n=e("through2").obj;t.exports=function(e){return n((t,r,n)=>{try{n(null,e(t))}catch(e){n(e)}})}},{through2:1087}],902:[function(e,t,r){arguments[4][687][0].apply(r,arguments)},{dup:687}],903:[function(e,t,r){var n=e("wrappy");function i(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=n(i),t.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:1259}],904:[function(e,t,r){r.endianness=function(){return"LE"},r.hostname=function(){return"undefined"!=typeof location?location.hostname:""},r.loadavg=function(){return[]},r.uptime=function(){return 0},r.freemem=function(){return Number.MAX_VALUE},r.totalmem=function(){return Number.MAX_VALUE},r.cpus=function(){return[]},r.type=function(){return"Browser"},r.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},r.networkInterfaces=r.getNetworkInterfaces=function(){return{}},r.arch=function(){return"javascript"},r.platform=function(){return"browser"},r.tmpdir=r.tmpDir=function(){return"/tmp"},r.EOL="\n",r.homedir=function(){return"/"}},{}],905:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],906:[function(e,t,r){"use strict";var n=e("asn1.js");r.certificate=e("./certificate");var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));r.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));r.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));r.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));r.PrivateKey=c;var u=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));r.EncryptedPrivateKey=u;var l=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));r.DSAPrivateKey=l,r.DSAparam=n.define("DSAparam",(function(){this.int()}));var f=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));r.ECPrivateKey=f;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));r.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":907,"asn1.js":910}],907:[function(e,t,r){"use strict";var n=e("asn1.js"),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),c=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),u=n.define("RDNSequence",(function(){this.seqof(c)})),l=n.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),f=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},{"asn1.js":910}],908:[function(e,t,r){(function(r){var n=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,o=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,a=e("evp_bytestokey"),s=e("browserify-aes");t.exports=function(e,t){var c,u=e.toString(),l=u.match(n);if(l){var f="aes"+l[1],d=new r(l[2],"hex"),h=new r(l[3].replace(/\r?\n/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(l[1],10)).key,m=[],y=s.createDecipheriv(f,p,d);m.push(y.update(h)),m.push(y.final()),c=r.concat(m)}else{var g=u.match(o);c=new r(g[2].replace(/\r?\n/g,""),"base64")}return{tag:u.match(i)[1],data:c}}}).call(this,e("buffer").Buffer)},{"browserify-aes":926,buffer:475,evp_bytestokey:761}],909:[function(e,t,r){(function(r){var n=e("./asn1"),i=e("./aesid.json"),o=e("./fixProc"),a=e("browserify-aes"),s=e("pbkdf2");function c(e){var t;"object"!=typeof e||r.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=new r(e));var c,u,l=o(e,t),f=l.tag,d=l.data;switch(f){case"CERTIFICATE":u=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=n.PublicKey.decode(d,"der")),c=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=n.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+f);case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,o=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),c=i[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,l=e.subjectPrivateKey,f=parseInt(c.split("-")[1],10)/8,d=s.pbkdf2Sync(t,n,o,f),h=a.createDecipheriv(c,d,u),p=[];return p.push(h.update(l)),p.push(h.final()),r.concat(p)}(d=n.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(c=(u=n.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:n.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=n.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+c)}throw new Error("unknown key type "+f);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=n.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=c,c.signature=n.signature}).call(this,e("buffer").Buffer)},{"./aesid.json":905,"./asn1":906,"./fixProc":908,"browserify-aes":926,buffer:475,pbkdf2:941}],910:[function(e,t,r){var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":911,"./asn1/base":913,"./asn1/constants":917,"./asn1/decoders":919,"./asn1/encoders":922,"bn.js":439}],911:[function(e,t,r){var n=e("../asn1"),i=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return i(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"../asn1":910,inherits:807,vm:1142}],912:[function(e,t,r){var n=e("inherits"),i=e("../base").Reporter,o=e("buffer").Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),r.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=s,s.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base":913,buffer:475,inherits:807}],913:[function(e,t,r){var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":912,"./node":914,"./reporter":915}],914:[function(e,t,r){var n=e("../base").Reporter,i=e("../base").EncoderBuffer,o=e("../base").DecoderBuffer,a=e("minimalistic-assert"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};l.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),u.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var c=null;if(null!==r.explicit?c=r.explicit:null!==r.implicit?c=r.implicit:null!==r.tag&&(c=r.tag),null!==c||r.any){if(a=this._peekTag(e,c,r.any),e.isError(a))return a}else{var u=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(u)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){var l=this._decodeTag(e,r.explicit);if(e.isError(l))return l;e=l}var f=e.offset;if(null===r.use&&null===r.choice){r.any&&(u=e.save());var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(d))return d;r.any?i=e.raw(u):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var h=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(h,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},u.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},u.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var a=e.save(),s=r.choice[o];try{var c=s._decode(e,t);if(e.isError(c))return!1;n={type:o,value:c},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},u.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},u.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),c))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var u=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===u?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(u,s,l,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},{"../base":913,"minimalistic-assert":876}],915:[function(e,t,r){var n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}r.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:807}],916:[function(e,t,r){var n=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n._reverse(r.tag)},{"../constants":917}],917:[function(e,t,r){var n=r;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=e("./der")},{"./der":916}],918:[function(e,t,r){var n=e("inherits"),i=e("../../asn1"),o=i.base,a=i.bignum,s=i.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}t.exports=c,c.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(u,o.Node),u.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},u.prototype._decodeTag=function(e,t,r){var n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},u.prototype._skipUntilEnd=function(e,t){for(;;){var r=l(e,t);if(e.isError(r))return r;var n,i=f(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},u.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},u.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},u.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,c=i[0]%40;if(n=r?i:[s,c].concat(i.slice(1)),t){var u=t[n.join(" ")];void 0===u&&(u=t[n.join(".")]),void 0!==u&&(n=u)}return n},u.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),c=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),c=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,c,0)},u.prototype._decodeNull=function(e){return null},u.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},u.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":910,inherits:807}],919:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":918,"./pem":920}],920:[function(e,t,r){var n=e("inherits"),i=e("buffer").Buffer,o=e("./der");function a(e){o.call(this,e),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,c=-1,u=0;u<r.length;u++){var l=r[u].match(a);if(null!==l&&l[2]===n){if(-1!==s){if("END"!==l[1])break;c=u;break}if("BEGIN"!==l[1])break;s=u}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+n);var f=r.slice(s+1,c).join("");f.replace(/[^a-z0-9\+\/=]+/gi,"");var d=new i(f,"base64");return o.prototype.decode.call(this,d,t)}},{"./der":918,buffer:475,inherits:807}],921:[function(e,t,r){var n=e("inherits"),i=e("buffer").Buffer,o=e("../../asn1"),a=o.base,s=o.constants.der;function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){a.Node.call(this,"der",e)}function l(e){return e<10?"0"+e:e}t.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o,a=function(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|s.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var c=1,u=n.length;u>=256;u>>=8)c++;(o=new i(2+c))[0]=a,o[1]=128|c,u=1+c;for(var l=n.length;l>0;u--,l>>=8)o[u]=255&l;return this._createEncoderBuffer([o,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e))for(e=e.slice(),n=0;n<e.length;n++)e[n]|=0;if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var a=e[n];for(o++;a>=128;a>>=7)o++}var s=new i(o),c=s.length-1;for(n=e.length-1;n>=0;n--)for(a=e[n],s[c--]=127&a;(a>>=7)>0;)s[c--]=128|127&a;return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[l(n.getFullYear()),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[l(n.getFullYear()%100),l(n.getUTCMonth()+1),l(n.getUTCDate()),l(n.getUTCHours()),l(n.getUTCMinutes()),l(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},{"../../asn1":910,buffer:475,inherits:807}],922:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":921,"./pem":923}],923:[function(e,t,r){var n=e("inherits"),i=e("./der");function o(e){i.call(this,e),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":921,inherits:807}],924:[function(e,t,r){arguments[4][444][0].apply(r,arguments)},{dup:444,"safe-buffer":1037}],925:[function(e,t,r){arguments[4][445][0].apply(r,arguments)},{"./aes":924,"./ghash":929,"./incr32":930,"buffer-xor":482,"cipher-base":488,dup:445,inherits:807,"safe-buffer":1037}],926:[function(e,t,r){arguments[4][446][0].apply(r,arguments)},{"./decrypter":927,"./encrypter":928,"./modes/list.json":938,dup:446}],927:[function(e,t,r){arguments[4][447][0].apply(r,arguments)},{"./aes":924,"./authCipher":925,"./modes":937,"./streamCipher":940,"cipher-base":488,dup:447,evp_bytestokey:761,inherits:807,"safe-buffer":1037}],928:[function(e,t,r){arguments[4][448][0].apply(r,arguments)},{"./aes":924,"./authCipher":925,"./modes":937,"./streamCipher":940,"cipher-base":488,dup:448,evp_bytestokey:761,inherits:807,"safe-buffer":1037}],929:[function(e,t,r){arguments[4][449][0].apply(r,arguments)},{dup:449,"safe-buffer":1037}],930:[function(e,t,r){arguments[4][450][0].apply(r,arguments)},{dup:450}],931:[function(e,t,r){arguments[4][451][0].apply(r,arguments)},{"buffer-xor":482,dup:451}],932:[function(e,t,r){arguments[4][452][0].apply(r,arguments)},{"buffer-xor":482,dup:452,"safe-buffer":1037}],933:[function(e,t,r){arguments[4][453][0].apply(r,arguments)},{dup:453,"safe-buffer":1037}],934:[function(e,t,r){arguments[4][454][0].apply(r,arguments)},{dup:454,"safe-buffer":1037}],935:[function(e,t,r){arguments[4][455][0].apply(r,arguments)},{"../incr32":930,"buffer-xor":482,dup:455,"safe-buffer":1037}],936:[function(e,t,r){arguments[4][456][0].apply(r,arguments)},{dup:456}],937:[function(e,t,r){arguments[4][457][0].apply(r,arguments)},{"./cbc":931,"./cfb":932,"./cfb1":933,"./cfb8":934,"./ctr":935,"./ecb":936,"./list.json":938,"./ofb":939,dup:457}],938:[function(e,t,r){arguments[4][458][0].apply(r,arguments)},{dup:458}],939:[function(e,t,r){(function(t){var n=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this,e("buffer").Buffer)},{buffer:475,"buffer-xor":482}],940:[function(e,t,r){arguments[4][460][0].apply(r,arguments)},{"./aes":924,"cipher-base":488,dup:460,inherits:807,"safe-buffer":1037}],941:[function(e,t,r){r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":942,"./lib/sync":945}],942:[function(e,t,r){(function(r,n){var i,o=e("./precondition"),a=e("./default-encoding"),s=e("./sync"),c=e("safe-buffer").Buffer,u=n.crypto&&n.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function d(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return c.from(e)}))}t.exports=function(e,t,h,p,m,y){"function"==typeof m&&(y=m,m=void 0);var g=l[(m=m||"sha1").toLowerCase()];if(!g||"function"!=typeof n.Promise)return r.nextTick((function(){var r;try{r=s(e,t,h,p,m)}catch(e){return y(e)}y(null,r)}));if(o(e,t,h,p),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");c.isBuffer(e)||(e=c.from(e,a)),c.isBuffer(t)||(t=c.from(t,a)),function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(n.process&&!n.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=d(i=i||c.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}(g).then((function(r){return r?d(e,t,h,p,g):s(e,t,h,p,m)})),y)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":943,"./precondition":944,"./sync":945,_process:952,"safe-buffer":1037}],943:[function(e,t,r){(function(e){var r;r=e.browser||parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",t.exports=r}).call(this,e("_process"))},{_process:952}],944:[function(e,t,r){(function(e){var r=Math.pow(2,30)-1;function n(t,r){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(r+" must be a buffer or string")}t.exports=function(e,t,i,o){if(n(e,"Password"),n(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>r||o!=o)throw new TypeError("Bad key length")}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":808}],945:[function(e,t,r){var n=e("create-hash/md5"),i=e("ripemd160"),o=e("sha.js"),a=e("./precondition"),s=e("./default-encoding"),c=e("safe-buffer").Buffer,u=c.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,r){var a=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),s="sha512"===e||"sha384"===e?128:64;t.length>s?t=a(t):t.length<s&&(t=c.concat([t,u],s));for(var f=c.allocUnsafe(s+l[e]),d=c.allocUnsafe(s+l[e]),h=0;h<s;h++)f[h]=54^t[h],d[h]=92^t[h];var p=c.allocUnsafe(s+r+4);f.copy(p,0,0,s),this.ipad1=p,this.ipad2=f,this.opad=d,this.alg=e,this.blocksize=s,this.hash=a,this.size=l[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,n,i){a(e,t,r,n),c.isBuffer(e)||(e=c.from(e,s)),c.isBuffer(t)||(t=c.from(t,s));var o=new f(i=i||"sha1",e,t.length),u=c.allocUnsafe(n),d=c.allocUnsafe(t.length+4);t.copy(d,0,0,t.length);for(var h=0,p=l[i],m=Math.ceil(n/p),y=1;y<=m;y++){d.writeUInt32BE(y,t.length);for(var g=o.run(d,o.ipad1),b=g,v=1;v<r;v++){b=o.run(b,o.ipad2);for(var w=0;w<p;w++)g[w]^=b[w]}g.copy(u,h),h+=p}return u}},{"./default-encoding":943,"./precondition":944,"create-hash/md5":946,ripemd160:983,"safe-buffer":1037,"sha.js":1051}],946:[function(e,t,r){var n=e("md5.js");t.exports=function(e){return(new n).update(e).digest()}},{"md5.js":874}],947:[function(e,t,r){"use strict";const n=(e,t,r,n)=>function(...i){return new(0,t.promiseModule)((o,a)=>{t.multiArgs?i.push((...e)=>{t.errorFirst?e[0]?a(e):(e.shift(),o(e)):o(e)}):t.errorFirst?i.push((e,t)=>{e?a(e):o(t)}):i.push(o);const s=this===r?n:this;Reflect.apply(e,s,i)})},i=new WeakMap;t.exports=(e,t)=>{t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};const r=typeof e;if(null===e||"object"!==r&&"function"!==r)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);const o=new WeakMap,a=new Proxy(e,{apply(e,r,i){const s=o.get(e);if(s)return Reflect.apply(s,r,i);const c=t.excludeMain?e:n(e,t,a,e);return o.set(e,c),Reflect.apply(c,r,i)},get(e,r){const s=e[r];if(!((e,r)=>{let n=i.get(e);if(n||(n={},i.set(e,n)),r in n)return n[r];const o=e=>"string"==typeof e||"symbol"==typeof r?r===e:e.test(r),a=Reflect.getOwnPropertyDescriptor(e,r),s=void 0===a||a.writable||a.configurable,c=(t.include?t.include.some(o):!t.exclude.some(o))&&s;return n[r]=c,c})(e,r)||s===Function.prototype[r])return s;const c=o.get(s);if(c)return c;if("function"==typeof s){const r=n(s,t,a,e);return o.set(s,r),r}return s}});return a}},{}],948:[function(e,t,r){t.exports=e("./lib/checks")},{"./lib/checks":949}],949:[function(e,t,r){var n=e("util"),i=t.exports=e("./errors");function o(e,t,r,i){r=r||"";var o=new e(n.format.apply(this,[r].concat(i)));throw Error.captureStackTrace(o,t),o}function a(e,t,r){o(i.IllegalArgumentError,e,t,r)}function s(e,t,r){o(i.IllegalStateError,e,t,r)}function c(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array"}return t}function u(e){return function(t,r){var n=c(t);if(n==e)return t;a(arguments.callee,r||'Expected "'+e+'" but got "'+n+'".',Array.prototype.slice.call(arguments,2))}}t.exports.checkArgument=function(e,t){e||a(arguments.callee,t,Array.prototype.slice.call(arguments,2))},t.exports.checkState=function(e,t){e||s(arguments.callee,t,Array.prototype.slice.call(arguments,2))},t.exports.checkIsDef=function(e,t){if(void 0!==e)return e;a(arguments.callee,t||"Expected value to be defined but was undefined.",Array.prototype.slice.call(arguments,2))},t.exports.checkIsDefAndNotNull=function(e,t){if(null!=e)return e;a(arguments.callee,t||'Expected value to be defined and not null but got "'+c(e)+'".',Array.prototype.slice.call(arguments,2))},t.exports.checkIsString=u("string"),t.exports.checkIsArray=u("array"),t.exports.checkIsNumber=u("number"),t.exports.checkIsBoolean=u("boolean"),t.exports.checkIsFunction=u("function"),t.exports.checkIsObject=u("object")},{"./errors":950,util:1133}],950:[function(e,t,r){var n=e("util");function i(e){Error.call(this,e),this.message=e}function o(e){Error.call(this,e),this.message=e}n.inherits(i,Error),i.prototype.name="IllegalArgumentError",n.inherits(o,Error),o.prototype.name="IllegalStateError",t.exports.IllegalStateError=o,t.exports.IllegalArgumentError=i},{util:1133}],951:[function(e,t,r){(function(e){"use strict";!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=function(t,r,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}:t.exports=e.nextTick}).call(this,e("_process"))},{_process:952}],952:[function(e,t,r){var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var u,l=[],f=!1,d=-1;function h(){f&&u&&(f=!1,u.length?l=u.concat(l):d=-1,l.length&&p())}function p(){if(!f){var e=c(h);f=!0;for(var t=l.length;t;){for(u=l,l=[];++d<t;)u&&u[d].run();d=-1,t=l.length}u=null,f=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||f||c(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],953:[function(e,t,r){"use strict";var n=e("is-fn"),i=e("set-immediate-shim");t.exports=function(e){if(!n(e.then))throw new TypeError("Expected a promise");return function(t){e.then((function(e){i(t,null,e)}),(function(e){i(t,e)}))}}},{"is-fn":809,"set-immediate-shim":1049}],954:[function(e,t,r){r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":956,"./publicEncrypt":957}],955:[function(e,t,r){(function(r){var n=e("create-hash");function i(e){var t=new r(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var o,a=new r(""),s=0;a.length<t;)o=i(s++),a=r.concat([a,n("sha1").update(e).update(o).digest()]);return a.slice(0,t)}}).call(this,e("buffer").Buffer)},{buffer:475,"create-hash":501}],956:[function(e,t,r){(function(r){var n=e("parse-asn1"),i=e("./mgf"),o=e("./xor"),a=e("bn.js"),s=e("browserify-rsa"),c=e("create-hash"),u=e("./withPublic");t.exports=function(e,t,l){var f;f=e.padding?e.padding:l?1:4;var d,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=l?u(new a(t),h):s(t,h);var m=new r(p-d.length);if(m.fill(0),d=r.concat([m,d],p),4===f)return function(e,t){e.modulus;var n=e.modulus.byteLength(),a=(t.length,c("sha1").update(new r("")).digest()),s=a.length;if(0!==t[0])throw new Error("decryption error");var u=t.slice(1,s+1),l=t.slice(s+1),f=o(u,i(l,s)),d=o(l,i(f,n-s-1));if(function(e,t){e=new r(e),t=new r(t);var n=0,i=e.length;e.length!==t.length&&(n++,i=Math.min(e.length,t.length));for(var o=-1;++o<i;)n+=e[o]^t[o];return n}(a,d.slice(0,s)))throw new Error("decryption error");for(var h=s;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===f)return function(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);if(t.slice(i-1,i),("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,d,l);if(3===f)return d;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":955,"./withPublic":958,"./xor":959,"bn.js":439,"browserify-rsa":463,buffer:475,"create-hash":501,"parse-asn1":909}],957:[function(e,t,r){(function(r){var n=e("parse-asn1"),i=e("randombytes"),o=e("create-hash"),a=e("./mgf"),s=e("./xor"),c=e("bn.js"),u=e("./withPublic"),l=e("browserify-rsa");t.exports=function(e,t,f){var d;d=e.padding?e.padding:f?1:4;var h,p=n(e);if(4===d)h=function(e,t){var n=e.modulus.byteLength(),u=t.length,l=o("sha1").update(new r("")).digest(),f=l.length,d=2*f;if(u>n-d-2)throw new Error("message too long");var h=new r(n-u-d-2);h.fill(0);var p=n-f-1,m=i(f),y=s(r.concat([l,h,new r([1]),t],p),a(m,p)),g=s(m,a(y,f));return new c(r.concat([new r([0]),g,y],n))}(p,t);else if(1===d)h=function(e,t,n){var o,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw new Error("message too long");return n?(o=new r(s-a-3)).fill(255):o=function(e,t){for(var n,o=new r(e),a=0,s=i(2*e),c=0;a<e;)c===s.length&&(s=i(2*e),c=0),(n=s[c++])&&(o[a++]=n);return o}(s-a-3),new c(r.concat([new r([0,n?1:2]),o,new r([0]),t],s))}(p,t,f);else{if(3!==d)throw new Error("unknown padding");if((h=new c(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return f?l(h,p):u(h,p)}}).call(this,e("buffer").Buffer)},{"./mgf":955,"./withPublic":958,"./xor":959,"bn.js":439,"browserify-rsa":463,buffer:475,"create-hash":501,"parse-asn1":909,randombytes:964}],958:[function(e,t,r){(function(r){var n=e("bn.js");t.exports=function(e,t){return new r(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475}],959:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],960:[function(e,t,r){(function(r){var n=e("once"),i=e("end-of-stream"),o=e("fs"),a=function(){},s=/^v?\.0/.test(r.version),c=function(e){return"function"==typeof e},u=function(e,t,r,u){u=n(u);var l=!1;e.on("close",(function(){l=!0})),i(e,{readable:t,writable:r},(function(e){if(e)return u(e);l=!0,u()}));var f=!1;return function(t){if(!l&&!f)return f=!0,function(e){return!!s&&!!o&&(e instanceof(o.ReadStream||a)||e instanceof(o.WriteStream||a))&&c(e.close)}(e)?e.close(a):function(e){return e.setHeader&&c(e.abort)}(e)?e.abort():c(e.destroy)?e.destroy():void u(t||new Error("stream was destroyed"))}},l=function(e){e()},f=function(e,t){return e.pipe(t)};t.exports=function(){var e,t=Array.prototype.slice.call(arguments),r=c(t[t.length-1]||a)&&t.pop()||a;if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Error("pump requires two streams per minimum");var n=t.map((function(i,o){var a=o<t.length-1;return u(i,a,o>0,(function(t){e||(e=t),t&&n.forEach(l),a||(n.forEach(l),r(e))}))}));return t.reduce(f)}}).call(this,e("_process"))},{_process:952,"end-of-stream":588,fs:442,once:903}],961:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,d,h,p,m=e[l].replace(s,"%20"),y=m.indexOf(r);y>=0?(f=m.substr(0,y),d=m.substr(y+1)):(f=m,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),n(a,h)?i(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],962:[function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[a]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],963:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":961,"./encode":962}],964:[function(e,t,r){(function(r,n){"use strict";var i=e("safe-buffer").Buffer,o=n.crypto||n.msCrypto;o&&o.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(n.slice(a,a+65536));else o.getRandomValues(n);return"function"==typeof t?r.nextTick((function(){t(null,n)})):n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952,"safe-buffer":1037}],965:[function(e,t,r){(function(t,n){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=e("safe-buffer"),a=e("randombytes"),s=o.Buffer,c=o.kMaxLength,u=n.crypto||n.msCrypto,l=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>c)throw new RangeError("buffer too small")}function h(e,r,n,i){if(t.browser){var o=e.buffer,s=new Uint8Array(o,r,n);return u.getRandomValues(s),i?void t.nextTick((function(){i(null,e)})):e}if(!i)return a(n).copy(e,r),e;a(n,(function(t,n){if(t)return i(t);n.copy(e,r),i(null,e)}))}u&&u.getRandomValues||!t.browser?(r.randomFill=function(e,t,r,i){if(!(s.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return f(t,e.length),d(r,t,e.length),h(e,t,r,i)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(t,e.length),void 0===r&&(r=e.length-t),d(r,t,e.length),h(e,t,r)}):(r.randomFill=i,r.randomFillSync=i)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952,randombytes:966,"safe-buffer":1037}],966:[function(e,t,r){(function(r,n){"use strict";var i=e("safe-buffer").Buffer,o=n.crypto||n.msCrypto;o&&o.getRandomValues?t.exports=function(e,t){if(e>65536)throw new Error("requested too many random bytes");var a=new n.Uint8Array(e);e>0&&o.getRandomValues(a);var s=i.from(a.buffer);return"function"==typeof t?r.nextTick((function(){t(null,s)})):s}:t.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:952,"safe-buffer":1037}],967:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":968}],968:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=f;var o=e("core-util-is");o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(f,a);for(var c=i(s.prototype),u=0;u<c.length;u++){var l=c[u];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n(t,e)}},{"./_stream_readable":970,"./_stream_writable":972,"core-util-is":499,inherits:807,"process-nextick-args":951}],969:[function(e,t,r){arguments[4][765][0].apply(r,arguments)},{"./_stream_transform":971,"core-util-is":499,dup:765,inherits:807}],970:[function(e,t,r){(function(r,n){"use strict";var i=e("process-nextick-args");t.exports=v;var o,a=e("isarray");v.ReadableState=b,e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},c=e("./internal/streams/stream"),u=e("safe-buffer").Buffer,l=n.Uint8Array||function(){},f=e("core-util-is");f.inherits=e("inherits");var d=e("util"),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");f.inherits(v,c);var g=["error","close","destroy","pause","resume"];function b(t,r){o=o||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,r instanceof o&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function v(t){if(o=o||e("./_stream_duplex"),!(this instanceof v))return new v(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function w(e,t,r,n,i){var o,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,a)):(i||(o=function(e,t){var r,n;return n=t,u.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):E(e,a)):_(e,a,t,!1))):n||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),E(e,t)}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i(S,e):S(e))}function S(e){h("emit readable"),e.emit("readable"),O(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i(A,e,t))}function A(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){h("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0==(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0==(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=y.destroy,v.prototype._undestroy=y.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},v.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?j(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var c=t&&!1===t.end||e===r.stdout||e===r.stderr?b:u;function u(){h("onend"),e.end()}o.endEmitted?i(c):n.once("end",c),e.on("unpipe",(function t(r,i){h("onunpipe"),r===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",l),e.removeListener("error",m),e.removeListener("unpipe",t),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",p),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}));var l=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,O(e))}}(n);e.on("drain",l);var f=!1,d=!1;function p(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function m(t){h("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),b()}function g(){h("onfinish"),e.removeListener("close",y),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",p),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",m),e.once("close",y),e.once("finish",g),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=I(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},v.prototype.on=function(e,t){var r=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):i(T,this))}return r},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i(C,e,t))}(this,e)),this},v.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",(function(){if(h("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)})),e.on("data",(function(i){h("wrapped data"),t.decoder&&(i=t.decoder.write(i)),t.objectMode&&null==i||(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],n.emit.bind(n,g[o]));return n._read=function(t){h("wrapped _read",t),r&&(r=!1,e.resume())},n},v._fromList=j}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":968,"./internal/streams/BufferList":973,"./internal/streams/destroy":974,"./internal/streams/stream":975,_process:952,"core-util-is":499,events:476,inherits:807,isarray:812,"process-nextick-args":951,"safe-buffer":976,"string_decoder/":977,util:442}],971:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_duplex"),i=e("core-util-is");function o(e){this.afterTransform=function(t,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",(function(){"function"==typeof this._flush?this._flush((function(e,r){s(t,e,r)})):s(t)}))}function s(e,t,r){if(t)return e.emit("error",t);null!=r&&e.push(r);var n=e._writableState,i=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},{"./_stream_duplex":968,"core-util-is":499,inherits:807}],972:[function(e,t,r){(function(r,n,i){"use strict";var o=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}t.exports=b;var s,c=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o;b.WritableState=g;var u=e("core-util-is");u.inherits=e("inherits");var l,f={deprecate:e("util-deprecate")},d=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,p=n.Uint8Array||function(){},m=e("./internal/streams/destroy");function y(){}function g(t,r){s=s||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,r instanceof s&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o(i,n),o(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,i);else{var a=x(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?c(w,e,r,a,i):w(e,r,a,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(t){if(s=s||e("./_stream_duplex"),!(l.call(b,this)||this instanceof s))return new b(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),d.call(this)}function v(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t)}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(v(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=x(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(b,d),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||e&&e._writableState instanceof g}})):l=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n,i=this._writableState,a=!1,s=(n=e,(h.isBuffer(n)||n instanceof p)&&!i.objectMode);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o(t,r)}(this,r):(s||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o(n,a),i=!1),i}(this,i,e,r))&&(i.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,n,i,o);return c}(this,i,s,e,t,r)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?o(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":968,"./internal/streams/destroy":974,"./internal/streams/stream":975,_process:952,"core-util-is":499,inherits:807,"process-nextick-args":951,"safe-buffer":976,timers:1088,"util-deprecate":1130}],973:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=i,r=a,o.data.copy(t,r),a+=o.data.length,o=o.next;return i},e}()},{"safe-buffer":976}],974:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;o||a?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n(i,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":951}],975:[function(e,t,r){arguments[4][771][0].apply(r,arguments)},{dup:771,events:476}],976:[function(e,t,r){arguments[4][478][0].apply(r,arguments)},{buffer:475,dup:478}],977:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(r);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(r+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(r+2)}}(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r?0:(i=a(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r?0:(i=a(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":976}],978:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":979}],979:[function(e,t,r){arguments[4][773][0].apply(r,arguments)},{"./lib/_stream_duplex.js":968,"./lib/_stream_passthrough.js":969,"./lib/_stream_readable.js":970,"./lib/_stream_transform.js":971,"./lib/_stream_writable.js":972,dup:773}],980:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":979}],981:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":972}],982:[function(e,t,r){"use strict";function n(e,t){return e===t}function i(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,i=0;i<n;i++)if(!e(t[i],r[i]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,r=null,o=null;return function(){return i(t,r,arguments)||(o=e.apply(null,arguments)),r=arguments,o}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var r=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+r+"]")}return t}function s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var s=0,c=n.pop(),u=a(n),l=e.apply(void 0,[function(){return s++,c.apply(null,arguments)}].concat(r)),f=o((function(){for(var e=[],t=u.length,r=0;r<t;r++)e.push(u[r].apply(null,arguments));return l.apply(null,e)}));return f.resultFunc=c,f.recomputations=function(){return s},f.resetRecomputations=function(){return s=0},f}}r.__esModule=!0,r.defaultMemoize=o,r.createSelectorCreator=s,r.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var r=Object.keys(e);return t(r.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t,n){return e[r[n]]=t,e}),{})}))};var c=r.createSelector=s(o)},{}],983:[function(e,t,r){"use strict";var n=e("buffer").Buffer,i=e("inherits"),o=e("hash-base"),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,x=0|this._c,k=0|this._d,S=0|this._e,E=0;E<80;E+=1){var A,T;E<16?(A=m(r,n,i,o,h,e[s[E]],f[0],u[E]),T=v(w,_,x,k,S,e[c[E]],d[0],l[E])):E<32?(A=y(r,n,i,o,h,e[s[E]],f[1],u[E]),T=b(w,_,x,k,S,e[c[E]],d[1],l[E])):E<48?(A=g(r,n,i,o,h,e[s[E]],f[2],u[E]),T=g(w,_,x,k,S,e[c[E]],d[2],l[E])):E<64?(A=b(r,n,i,o,h,e[s[E]],f[3],u[E]),T=y(w,_,x,k,S,e[c[E]],d[3],l[E])):(A=v(r,n,i,o,h,e[s[E]],f[4],u[E]),T=m(w,_,x,k,S,e[c[E]],d[4],l[E])),r=h,h=o,o=p(i,10),i=n,n=A,w=S,S=k,k=p(x,10),x=_,_=T}var C=this._b+i+k|0;this._b=this._c+o+S|0,this._c=this._d+h+w|0,this._d=this._e+r+_|0,this._e=this._a+n+x|0,this._a=C},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=h},{buffer:475,"hash-base":784,inherits:807}],984:[function(e,t,r){(function(t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("bn.js");function i(e,t){if("00"===e.slice(0,2))throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,r){if(e<56)return t.from([e+r]);var n=s(e),i=s(r+55+n.length/2);return t.from(i+n,"hex")}function a(e){return"0x"===e.slice(0,2)}function s(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function c(e){if(!t.isBuffer(e)){if("string"==typeof e)return a(e)?t.from((i="string"!=typeof(o=e)?o:a(o)?o.slice(2):o).length%2?"0"+i:i,"hex"):t.from(e);if("number"==typeof e)return e?(r=s(e),t.from(r,"hex")):t.from([]);if(null==e)return t.from([]);if(e instanceof Uint8Array)return t.from(e);if(n.isBN(e))return t.from(e.toArray());throw new Error("invalid type")}var r,i,o;return e}r.encode=function e(r){if(Array.isArray(r)){for(var n=[],i=0;i<r.length;i++)n.push(e(r[i]));var a=t.concat(n);return t.concat([o(a.length,192),a])}var s=c(r);return 1===s.length&&s[0]<128?s:t.concat([o(s.length,128),s])},r.decode=function(e,r){if(void 0===r&&(r=!1),!e||0===e.length)return t.from([]);var n=function e(r){var n,o,a,s,c,u=[],l=r[0];if(l<=127)return{data:r.slice(0,1),remainder:r.slice(1)};if(l<=183){if(n=l-127,a=128===l?t.from([]):r.slice(1,n),2===n&&a[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:a,remainder:r.slice(n)}}if(l<=191){if(o=l-182,n=i(r.slice(1,o).toString("hex"),16),(a=r.slice(o,n+o)).length<n)throw new Error("invalid RLP");return{data:a,remainder:r.slice(n+o)}}if(l<=247){for(n=l-191,s=r.slice(1,n);s.length;)c=e(s),u.push(c.data),s=c.remainder;return{data:u,remainder:r.slice(n)}}var f=(o=l-246)+(n=i(r.slice(1,o).toString("hex"),16));if(f>r.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(s=r.slice(o,f)).length)throw new Error("invalid rlp, List has a invalid length");for(;s.length;)c=e(s),u.push(c.data),s=c.remainder;return{data:u,remainder:r.slice(f)}}(c(e));if(r)return n;if(0!==n.remainder.length)throw new Error("invalid remainder");return n.data},r.getLength=function(e){if(!e||0===e.length)return t.from([]);var r=c(e),n=r[0];if(n<=127)return r.length;if(n<=183)return n-127;if(n<=191)return n-182;if(n<=247)return n-191;var o=n-246;return o+i(r.slice(1,o).toString("hex"),16)}}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475}],985:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=n(e("uuid/v4")),o=e("@metamask/controllers"),a=e("./src/caveats"),s=e("./src/errors"),c=e("json-rpc-engine"),u=e("json-rpc-engine/src/asMiddleware");class l{constructor({method:e,caveats:t,invoker:r}){this["@context"]=["https://github.com/MetaMask/rpc-cap"],this.parentCapability=e,this.id=i.default(),this.date=Date.now(),this.invoker=r,t&&(this.caveats=t)}toJSON(){return{"@context":this["@context"],invoker:this.invoker,parentCapability:this.parentCapability,id:this.id,date:this.date,caveats:this.caveats}}toString(){return JSON.stringify(this.toJSON())}}class f extends o.BaseController{constructor(e,t){if(super(e,t||{}),this.caveats={requireParams:a.requireParams,filterResponse:a.filterResponse,limitResponseLength:a.limitResponseLength,forceParams:a.forceParams},this.safeMethods=e.safeMethods||[],this.restrictedMethods=e.restrictedMethods||{},this.methodPrefix=e.methodPrefix||"",this.engine=e.engine||void 0,!e.requestUserApproval)throw new Error("User approval prompt required.");this.requestUserApproval=e.requestUserApproval,this.defaultState={permissionsRequests:[],permissionsDescriptions:Object.keys(this.restrictedMethods).reduce((e,t)=>(e[t]=this.restrictedMethods[t].description,e),{})},this.internalMethods={},this.internalMethods[this.methodPrefix+"getPermissions"]=this.getPermissionsMiddleware.bind(this),this.internalMethods[this.methodPrefix+"requestPermissions"]=this.requestPermissionsMiddleware.bind(this),this.initialize()}serialize(){return this.state}createBoundMiddleware(e){return this.providerMiddlewareFunction.bind(this,{origin:e})}createPermissionedEngine(e){const t=new c;return t.push(this.createBoundMiddleware(e)),t}providerMiddlewareFunction(e,t,r,n,i){const o=t.method;if(this.safeMethods.includes(o))return n();if(this.internalMethods[o])return this.internalMethods[o](e,t,r,n,i);if(!this.getMethodKeyFor(o))return r.error=s.methodNotFound({methodName:o,data:t}),i(r.error);let a;try{a=this.getPermission(e.origin,o)}catch(e){return r.error=s.internalError({data:e}),i(r.error)}if(!a)return r.error=s.unauthorized({data:t}),i(r.error);this.executeMethod(e,t,r,n,i)}getMethodKeyFor(e){const t=Object.keys(this.restrictedMethods);if(t.includes(e))return e;const r=t.reduce((e,t)=>{const r=t.match(/(.+)\*$/);return r?Object.assign(Object.assign({},e),{[r[1]]:!0}):e},{}),n=e.split("_");let i="";for(;n.length>0&&!t.includes(i)&&!r[i];)i+=n.shift()+"_";return t.includes(i)?i:r[i]?i+"*":""}executeMethod(e,t,r,n,i){var o;const a=this.getMethodKeyFor(t.method),l=this.getPermission(e.origin,t.method);if(a&&"function"==typeof this.restrictedMethods[a].method){const s=this.createVirtualEngineFor(e);if((null===(o=l)||void 0===o?void 0:o.caveats)&&l.caveats.length>0){const e=new c;return l.caveats.forEach(t=>{const r=(0,this.caveats[t.type])(t);e.push(r)}),e.push((e,t,r,n)=>this.restrictedMethods[a].method(e,t,r,n,s)),u(e)(t,r,n,i)}return this.restrictedMethods[a].method(t,r,n,i,s)}return r.error=s.methodNotFound({methodName:t.method,data:t}),i(r.error)}createVirtualEngineFor(e){const t=new c;return t.push(this.providerMiddlewareFunction.bind(this,e)),this.engine&&t.push(u(this.engine)),t.domain=e.origin,t}getPermissionsForDomain(e){const{domains:t={}}=this.state;if(t[e]){const{permissions:r}=t[e];return r}return[]}getPermission(e,t){const r=this.getPermissionsForDomain(e).filter(e=>e.parentCapability===t);if(r.length>0)return r.shift()}getPermissionsRequests(){return this.state.permissionsRequests||[]}removePermissionsRequest(e){const t=this.getPermissionsRequests().filter(t=>t.metadata.id!==e);this.setPermissionsRequests(t)}setPermissionsRequests(e){this.update({permissionsRequests:e})}grantNewPermissions(e,t,r,n){if(!e||"string"!=typeof e)return r.error=s.invalidReq(`Invalid domain: '${e}'.`),n(r.error);for(const e in t)if(!this.getMethodKeyFor(e))return r.error=s.methodNotFound({methodName:e}),n(r.error);const i={};for(const o in t){const a=new l({method:o,invoker:e,caveats:t[o].caveats});if(a.caveats&&!this.validateCaveats(a.caveats))return r.error=s.internalError({message:"Invalid caveats.",data:a}),n(r.error);i[o]=a}this.addPermissionsFor(e,i),r.result=this.getPermissionsForDomain(e),n()}getDomains(){const{domains:e}=this.state;return e||{}}setDomains(e){this.update({domains:e})}getOrCreateDomainSettings(e){const t=this.getDomainSettings(e);return void 0===t?{permissions:[]}:t}getDomainSettings(e){return this.getDomains()[e]}setDomain(e,t){const r=this.getDomains();t.permissions.length>0?r[e]=t:delete r[e],this.setDomains(r)}addPermissionsFor(e,t){const r=this.getOrCreateDomainSettings(e),n=Object.keys(t);r.permissions=r.permissions.filter(e=>!n.includes(e.parentCapability));for(const e in t)r.permissions.push(t[e]);this.setDomain(e,r)}validateCaveats(e){const t={};for(const r of e){if(!this.validateCaveat(r)||r.name&&t[r.name])return!1;r.name&&(t[r.name]=!0)}return!0}validateCaveat(e){return!(!e||"object"!=typeof e||Array.isArray(e)||!e.type||"string"!=typeof e.type||""===e.name||e.name&&"string"!=typeof e.name)}getCaveats(e,t){var r;return null===(r=this.getPermission(e,t))||void 0===r?void 0:r.caveats}getCaveat(e,t,r){const n=this.getPermission(e,t);return n?n.caveats&&n.caveats.find(e=>e.name===r):void 0}addCaveatFor(e,t,r){if(!this.validateCaveat(r))throw s.internalError({message:"Invalid caveat param. Must be a valid caveat object.",data:r});const n=this._getPermissionForCaveat(e,t),i=n.caveats?[...n.caveats,r]:[r];this._validateAndUpdateCaveats(e,t,i,n)}updateCaveatFor(e,t,r,n){if(!r||"string"!=typeof r)throw s.internalError({message:"Invalid caveat param. Must specify a string name.",data:r});const i=this._getPermissionForCaveat(e,t),o=i.caveats&&i.caveats.find(e=>e.name===r),a=[];if(i.caveats&&i.caveats.forEach(e=>{e.name!==r&&a.push(e)}),!o||!i.caveats)throw s.internalError({message:"No such caveat exists for the relevant permission.",data:r});if(typeof o.value!=typeof n)throw s.internalError({message:"New caveat value is of different type than original.",data:{caveat:o,newValue:n}});o.value=n,a.push(o),this._validateAndUpdateCaveats(e,t,a,i)}_getPermissionForCaveat(e,t){const r=this.getPermission(e,t);if(!r)throw s.internalError({message:"No such permission exists for the given domain.",data:{domain:e,method:t}});return r}_validateAndUpdateCaveats(e,t,r,n){if(!this.validateCaveats(r))throw s.internalError({message:"The new caveats are jointly invalid.",data:r});const i={};n.caveats=r,i[t]=n,this.addPermissionsFor(e,i)}removePermissionsFor(e,t){const r=this.getDomainSettings(e);r&&(r.permissions=r.permissions.filter(e=>{for(const r of t)if(r.parentCapability===e.parentCapability)return!1;return!0}),this.setDomain(e,r))}clearDomains(){this.setDomains({})}validatePermissionsRequest(e){if(!e||!Array.isArray(e.params)||"object"!=typeof e.params[0]||Array.isArray(e.params[0]))throw s.invalidReq({data:e});const t=e.params[0];for(const r in t){if(void 0!==t[r].parentCapability&&r!==t[r].parentCapability)throw s.invalidReq({data:e});if(!this.getMethodKeyFor(r))throw s.methodNotFound({methodName:r,data:e})}}getPermissionsMiddleware(e,t,r,n,i){const o=this.getPermissionsForDomain(e.origin);r.result=o,i()}requestPermissionsMiddleware(e,t,r,n,o){try{this.validatePermissionsRequest(t)}catch(e){return r.error=e,o(r.error)}const a="number"==typeof t.id||t.id?t.id.toString():i.default(),c=t.params[0],u=this.getPermissionsRequests(),l={metadata:{origin:e.origin,id:a},permissions:c};u.push(l),this.setPermissionsRequests(u),this.requestUserApproval(l).then(n=>{if(0===Object.keys(n).length)return r.error=s.userRejectedRequest(t),o(r.error);this.grantNewPermissions(e.origin,n,r,o)}).catch(e=>(r.error=e,o(e))).finally(()=>{this.removePermissionsRequest(l.metadata.id)})}}r.CapabilitiesController=f},{"./src/caveats":986,"./src/errors":987,"@metamask/controllers":997,"json-rpc-engine":819,"json-rpc-engine/src/asMiddleware":816,"uuid/v4":1137}],986:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=e("./errors"),o=n(e("is-subset"));r.requireParams=function(e){const{value:t}=e;return(e,r,n,a)=>{if(!o.default(e.params,t))return r.error=i.unauthorized({data:e}),a(r.error);n()}},r.filterResponse=function(e){const{value:t}=e;return(e,r,n,i)=>{n(e=>{Array.isArray(r.result)&&(r.result=r.result.filter(e=>t.includes(e))),e()})}},r.limitResponseLength=function(e){const{value:t}=e;return(e,r,n,i)=>{n(e=>{Array.isArray(r.result)&&(r.result=r.result.slice(0,t)),e()})}},r.forceParams=function(e){const{value:t}=e;return(e,r,n)=>{e.params=[...t],n()}}},{"./errors":987,"is-subset":811}],987:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("eth-rpc-errors").ethErrors;r.unauthorized=function(e){var t,r;return n.provider.unauthorized({message:(null===(t=e)||void 0===t?void 0:t.message)||"Unauthorized to perform action. Try requesting permission first using the `requestPermissions` method. More info available at https://github.com/MetaMask/rpc-cap",data:(null===(r=e)||void 0===r?void 0:r.data)||void 0})};const i=n.rpc.invalidRequest;r.invalidReq=i;const o=n.rpc.internal;r.internalError=o,r.methodNotFound=function(e){const t=e.methodName?`The method '${e.methodName}' does not exist / is not available.`:null;return n.rpc.methodNotFound({data:e.data,message:t})},r.userRejectedRequest=function(e){return n.provider.userRejectedRequest({data:e})}},{"eth-rpc-errors":688}],988:[function(e,t,r){arguments[4][147][0].apply(r,arguments)},{dup:147}],989:[function(e,t,r){arguments[4][148][0].apply(r,arguments)},{"./BaseController":988,dup:148}],990:[function(e,t,r){arguments[4][149][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,dup:149,"ethjs-query":1030}],991:[function(e,t,r){arguments[4][150][0].apply(r,arguments)},{"../BaseController":988,dup:150,"ethereumjs-util":1019,"human-standard-collectible-abi":800,"human-standard-token-abi":801,"single-call-balance-checker-abi":1058,web3:1208}],992:[function(e,t,r){arguments[4][151][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,"await-semaphore":330,dup:151,"ethereumjs-util":1019,events:476,"uuid/v1":1136}],993:[function(e,t,r){arguments[4][152][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,dup:152,"eth-contract-metadata":593,"ethereumjs-util":1019}],994:[function(e,t,r){arguments[4][153][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,"await-semaphore":330,dup:153}],995:[function(e,t,r){arguments[4][154][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,dup:154,"ethereumjs-util":1019}],996:[function(e,t,r){arguments[4][155][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,dup:155,"ethereumjs-util":1019}],997:[function(e,t,r){arguments[4][156][0].apply(r,arguments)},{"./BaseController":988,"./ComposableController":989,"./assets/AccountTrackerController":990,"./assets/AssetsContractController":991,"./assets/AssetsController":992,"./assets/AssetsDetectionController":993,"./assets/CurrencyRateController":994,"./assets/TokenBalancesController":995,"./assets/TokenRatesController":996,"./keyring/KeyringController":998,"./message-manager/MessageManager":1e3,"./message-manager/PersonalMessageManager":1001,"./message-manager/TypedMessageManager":1002,"./network/NetworkController":1003,"./network/NetworkStatusController":1004,"./third-party/PhishingController":1005,"./transaction/TransactionController":1006,"./user/AddressBookController":1007,"./user/PreferencesController":1008,"./util":1009,dup:156,"isomorphic-fetch":813}],998:[function(e,t,r){arguments[4][157][0].apply(r,arguments)},{"../BaseController":988,"await-semaphore":330,dup:157,"eth-keyring-controller":1011,"eth-sig-util":694,"ethereumjs-util":1019,"ethereumjs-wallet":720,"ethereumjs-wallet/thirdparty":730}],999:[function(e,t,r){arguments[4][158][0].apply(r,arguments)},{"../BaseController":988,dup:158,events:476}],1e3:[function(e,t,r){arguments[4][159][0].apply(r,arguments)},{"../util":1009,"./AbstractMessageManager":999,dup:159,"uuid/v1":1136}],1001:[function(e,t,r){arguments[4][160][0].apply(r,arguments)},{"../util":1009,"./AbstractMessageManager":999,dup:160,"uuid/v1":1136}],1002:[function(e,t,r){arguments[4][161][0].apply(r,arguments)},{"../util":1009,"./AbstractMessageManager":999,dup:161,"uuid/v1":1136}],1003:[function(e,t,r){arguments[4][162][0].apply(r,arguments)},{"../BaseController":988,"await-semaphore":330,dup:162,"eth-json-rpc-infura/src/createProvider":636,"eth-query":686,"web3-provider-engine//zero.js":1207,"web3-provider-engine/subproviders/provider.js":1197}],1004:[function(e,t,r){arguments[4][163][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,dup:163}],1005:[function(e,t,r){arguments[4][164][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,dup:164,"eth-phishing-detect/src/config.json":684,"eth-phishing-detect/src/detector":685}],1006:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("events"),o=e("ethereumjs-util"),a=e("../BaseController"),s=e("eth-json-rpc-errors").ethErrors,c=e("../util"),u=e("eth-method-registry"),l=e("eth-query"),f=e("ethereumjs-tx"),d=e("uuid/v1"),{BN:h}=e("ethereumjs-util"),p=e("await-semaphore").Mutex;r.CANCEL_RATE=1.5,r.SPEED_UP_RATE=1.1;class m extends a.default{constructor(e,t){super(e,t),this.mutex=new p,this.normalizeTxFromAlehio=(e,t)=>{const{attributes:{symbol:r,blockCreationTime:n,decimals:i,transactionGasLimit:o,transactionGasPrice:a,value:s},relationships:{to:c,from:u,transaction:l,token:f}}=e,h=1e3*parseInt(n,10);return{id:d({msecs:h}),isTransfer:!0,networkID:t,status:"confirmed",time:1e3*parseInt(n,10),transaction:{chainId:1,from:u.data.id,gas:o,gasPrice:a,to:c.data.id,value:s},transactionHash:l.data.id,transferInformation:{contractAddress:f.data.id,decimals:i,symbol:r}}},this.hub=new i.EventEmitter,this.name="TransactionController",this.requiredControllers=["NetworkController"],this.defaultConfig={interval:5e3,provider:void 0},this.defaultState={methodData:{},transactions:[]},this.initialize(),this.poll()}failTransaction(e,t){e.status="failed",e.error=t,this.updateTransaction(e),this.hub.emit(e.id+":finished",e)}query(e,t=[]){return new Promise((r,n)=>{this.ethQuery[e](...t,(e,t)=>{e?n(e):r(t)})})}registryLookup(e){return n(this,void 0,void 0,(function*(){const t=yield this.registry.lookup(e);return{registryMethod:t,parsedRegistryMethod:this.registry.parse(t)}}))}normalizeTxFromEtherscan(e,t){const r=1e3*parseInt(e.timeStamp,10),n="0"===e.isError?"confirmed":"failed";return{blockNumber:e.blockNumber,id:d({msecs:r}),networkID:t,status:n,time:r,transaction:{data:e.input,from:e.from,gas:c.BNToHex(new h(e.gas)),gasPrice:c.BNToHex(new h(e.gasPrice)),nonce:c.BNToHex(new h(e.nonce)),to:e.to,value:c.BNToHex(new h(e.value))},transactionHash:e.hash}}poll(e){return n(this,void 0,void 0,(function*(){e&&this.configure({interval:e},!1,!1),this.handle&&clearTimeout(this.handle),yield c.safelyExecute(()=>this.queryTransactionStatuses()),this.handle=setTimeout(()=>{this.poll(this.config.interval)},this.config.interval)}))}handleMethodData(e){return n(this,void 0,void 0,(function*(){const t=yield this.mutex.acquire();try{const{methodData:r}=this.state;if(Object.keys(r).find(t=>e===t))return r[e];const n=yield this.registryLookup(e);return this.update({methodData:Object.assign(Object.assign({},r),{[e]:n})}),n}finally{t()}}))}addTransaction(e,t){return n(this,void 0,void 0,(function*(){const r=this.context.NetworkController,{transactions:n}=this.state;e=c.normalizeTransaction(e),c.validateTransaction(e);const i={id:d(),networkID:r?r.state.network:"1",origin:t,status:"unapproved",time:Date.now(),transaction:e};try{const{gas:t,gasPrice:r}=yield this.estimateGas(e);e.gas=t,e.gasPrice=r}catch(e){return this.failTransaction(i,e),Promise.reject(e)}const o=new Promise((e,t)=>{this.hub.once(i.id+":finished",r=>{switch(r.status){case"submitted":return e(r.transactionHash);case"rejected":return t(s.provider.userRejectedRequest("User rejected the transaction"));case"cancelled":return t(s.rpc.internal("User cancelled the transaction"));case"failed":return t(s.rpc.internal(r.error.message));default:return t(s.rpc.internal("MetaMask Tx Signature: Unknown problem: "+JSON.stringify(r)))}})});return n.push(i),this.update({transactions:[...n]}),this.hub.emit("unapprovedTransaction",i),{result:o,transactionMeta:i}}))}approveTransaction(e){return n(this,void 0,void 0,(function*(){const{transactions:t}=this.state,r=this.context.NetworkController,n=r?r.state.network:"1",i=t.findIndex(({id:t})=>e===t),a=t[i],{from:s}=a.transaction;if(this.sign)try{a.status="approved",a.transaction.nonce=yield this.query("getTransactionCount",[s,"pending"]),a.transaction.chainId=parseInt(n,void 0);const e=new f(Object.assign({},a.transaction));yield this.sign(e,a.transaction.from),a.status="signed",this.updateTransaction(a);const t=o.bufferToHex(e.serialize());a.rawTransaction=t,this.updateTransaction(a);const r=yield this.query("sendRawTransaction",[t]);a.transactionHash=r,a.status="submitted",this.updateTransaction(a),this.hub.emit(a.id+":finished",a)}catch(e){this.failTransaction(a,e)}else this.failTransaction(a,new Error("No sign method defined."))}))}cancelTransaction(e){const t=this.state.transactions.find(({id:t})=>t===e);if(!t)return;t.status="rejected",this.hub.emit(t.id+":finished",t);const r=this.state.transactions.filter(({id:t})=>t!==e);this.update({transactions:[...r]})}stopTransaction(e){return n(this,void 0,void 0,(function*(){const t=this.state.transactions.find(({id:t})=>t===e);if(!t)return;if(!this.sign)throw new Error("No sign method defined.");const n=t.transaction.gasPrice,i=parseInt(void 0===n?"0x0":n,16),a=o.addHexPrefix(""+parseFloat(""+i*r.CANCEL_RATE).toString(16)),s=new f({from:t.transaction.from,gas:t.transaction.gas,gasPrice:a,nonce:t.transaction.nonce,to:t.transaction.from,value:"0x0"});yield this.sign(s,t.transaction.from);const c=o.bufferToHex(s.serialize());yield this.query("sendRawTransaction",[c]),t.status="cancelled",this.hub.emit(t.id+":finished",t)}))}speedUpTransaction(e){return n(this,void 0,void 0,(function*(){const t=this.state.transactions.find(({id:t})=>t===e);if(!t)return;if(!this.sign)throw new Error("No sign method defined.");const{transactions:n}=this.state,i=t.transaction.gasPrice,a=parseInt(void 0===i?"0x0":i,16),s=o.addHexPrefix(""+parseFloat(""+a*r.SPEED_UP_RATE).toString(16)),c=new f(Object.assign(Object.assign({},t.transaction),{gasPrice:s}));yield this.sign(c,t.transaction.from);const u=o.bufferToHex(c.serialize()),l=yield this.query("sendRawTransaction",[u]),h=Object.assign(Object.assign({},t),{id:d(),time:Date.now(),transaction:Object.assign(Object.assign({},t.transaction),{gasPrice:s}),transactionHash:l});n.push(h),this.update({transactions:[...n]}),this.hub.emit(t.id+":speedup",h)}))}estimateGas(e){return n(this,void 0,void 0,(function*(){const t=Object.assign({},e),{gasLimit:r}=yield this.query("getBlockByNumber",["latest",!1]),{gas:n,gasPrice:i,to:a,value:s,data:u}=t,l=void 0===i?yield this.query("gasPrice"):i;if(void 0!==n)return{gas:n,gasPrice:l};const f=a?yield this.query("getCode",[a]):void 0;if(!a||a&&!u&&(!f||"0x"===f))return{gas:"0x5208",gasPrice:l};t.data=u?o.addHexPrefix(u):u,t.value=void 0===s?"0x0":s;const d=c.hexToBN(r);t.gas=c.BNToHex(c.fractionBN(d,19,20));const h=yield this.query("estimateGas",[t]),p=c.hexToBN(h),m=d.muln(.9),y=p.muln(1.5);return p.gt(m)?{gas:o.addHexPrefix(h),gasPrice:l}:y.lt(m)?{gas:o.addHexPrefix(c.BNToHex(y)),gasPrice:l}:{gas:o.addHexPrefix(c.BNToHex(m)),gasPrice:l}}))}onComposed(){super.onComposed();const e=this.context.NetworkController,t=()=>{this.ethQuery=e.provider?new l(e.provider):null,this.registry=e.provider?new u({provider:e.provider}):null};t(),e.subscribe(t)}queryTransactionStatuses(){return n(this,void 0,void 0,(function*(){const{transactions:e}=this.state,t=this.context.NetworkController.state.network;let r=!1;yield c.safelyExecute(()=>Promise.all(e.map((i,o)=>n(this,void 0,void 0,(function*(){if("submitted"===i.status&&i.networkID===t){const t=yield this.query("getTransactionByHash",[i.transactionHash]);t&&t.blockNumber&&(e[o].status="confirmed",this.hub.emit(i.id+":confirmed",i),r=!0)}}))))),r&&this.update({transactions:[...e]})}))}updateTransaction(e){const{transactions:t}=this.state;e.transaction=c.normalizeTransaction(e.transaction),c.validateTransaction(e.transaction);const r=t.findIndex(({id:t})=>e.id===t);t[r]=e,this.update({transactions:[...t]})}wipeTransactions(e){if(e)return void this.update({transactions:[]});const t=this.context.NetworkController;if(!t)return;const r=t.state.network,n=this.state.transactions.filter(({networkID:e})=>e!==r);this.update({transactions:n})}fetchAll(e,t){return n(this,void 0,void 0,(function*(){const r=this.context.NetworkController,{state:{network:i,provider:{type:o}}}=r;if(-1===["1","3","4","42"].indexOf(i))return;const[a,s]=yield c.handleTransactionFetch(o,e,t),u={},l=[];a.result.forEach(e=>{u[e.hash]||(l.push(this.normalizeTxFromEtherscan(e,i)),u[e.hash]=1)}),s.data.forEach(e=>{const t=this.normalizeTxFromAlehio(e,i);l.push(t),u[t.transactionHash||""]=1});const f=this.state.transactions.filter(e=>!u[""+e.transactionHash]),d=[...l,...f];let h;return d.sort((e,t)=>e.time<t.time?-1:1),d.forEach(t=>n(this,void 0,void 0,(function*(){if(t.networkID===i&&t.transaction.to&&t.transaction.to.toLowerCase()===e.toLowerCase()&&t.blockNumber&&(!h||parseInt(h,10)<parseInt(t.blockNumber,10))&&(h=t.blockNumber),void 0===t.toSmartContract)if(!t.transaction.to||t.transaction.data&&"0x"===t.transaction.data)t.toSmartContract=!1;else{const e=yield this.query("getCode",[t.transaction.to]);t.toSmartContract=c.isSmartContractCode(e)}}))),d.length>this.state.transactions.length&&this.update({transactions:d}),h}))}}r.TransactionController=m,r.default=m},{"../BaseController":988,"../util":1009,"await-semaphore":330,"eth-json-rpc-errors":601,"eth-method-registry":1015,"eth-query":686,"ethereumjs-tx":712,"ethereumjs-util":1019,events:476,"uuid/v1":1136}],1007:[function(e,t,r){arguments[4][166][0].apply(r,arguments)},{"../BaseController":988,"../util":1009,dup:166,"ethereumjs-util":1019}],1008:[function(e,t,r){arguments[4][167][0].apply(r,arguments)},{"../BaseController":988,dup:167,"ethereumjs-util":1019}],1009:[function(e,t,r){(function(t){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(r,"__esModule",{value:!0});const i=e("ethereumjs-util"),o=e("eth-sig-util"),a=e("jsonschema"),{BN:s,stripHexPrefix:c}=e("ethereumjs-util"),u=e("eth-ens-namehash"),l=/^[0-9A-Fa-f]+$/g,f={data:e=>i.addHexPrefix(e),from:e=>i.addHexPrefix(e).toLowerCase(),gas:e=>i.addHexPrefix(e),gasPrice:e=>i.addHexPrefix(e),nonce:e=>i.addHexPrefix(e),to:e=>i.addHexPrefix(e).toLowerCase(),value:e=>i.addHexPrefix(e)};function d(e){return i.addHexPrefix(e.toString(16))}function h(e,t,r){const n=new s(t),i=new s(r);return e.mul(n).div(i)}function p(e="1",t,r=5){switch(e){case"1":return`https://buy.coinbase.com/?code=9ec56d01-7e81-5017-930c-513daa27bb6a&amount=${r}&address=${t}&crypto_currency=ETH`;case"3":return"https://faucet.metamask.io/";case"4":return"https://www.rinkeby.io/";case"5":return"https://goerli-faucet.slock.it/";case"42":return"https://github.com/kovan-testnet/faucet"}}function m(e,t,r){let n="api";"mainnet"!==e&&(n="api-"+e);let i=`https://${n}.etherscan.io/api?module=account&action=txlist&address=${t}&tag=latest&page=1`;return r&&(i+="&startBlock="+r),i}function y(e,t,r){if("mainnet"!==e)return{url:"",headers:{}};let n="https://api.aleth.io/v1/token-transfers?filter[to]="+t,i=r&&r.fromBlock;if(i){i=parseInt(i).toString(16);let e=`0x00${i}ffff`;for(;e.length<34;)e+="0";n+="&page[prev]="+e}return{url:n,headers:r&&r.alethioApiKey?{Authorization:"Bearer "+r.alethioApiKey}:void 0}}function g(e){return new s(c(e),16)}function b(e){try{const r=c(e);return t.from(r,"hex").toString("utf8")}catch(t){return e}}function v(e){const t={from:""};let r;for(r in f)e[r]&&(t[r]=f[r](e[r]));return t}function w(e,t=!1,r){return n(this,void 0,void 0,(function*(){try{return yield e()}catch(e){t&&console.error(e),r&&r(e)}}))}function _(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if("0x"===e.to||void 0===e.to){if(!e.data)throw new Error(`Invalid "to" address: ${e.to} must be a valid string.`);delete e.to}else if(void 0!==e.to&&!i.isValidAddress(e.to))throw new Error(`Invalid "to" address: ${e.to} must be a valid string.`);if(void 0!==e.value){const t=e.value.toString();if(t.includes("-"))throw new Error(`Invalid "value": ${t} is not a positive number.`);if(t.includes("."))throw new Error(`Invalid "value": ${t} number must be denominated in wei.`);const r=parseInt(e.value,10);if(!Number.isFinite(r)||Number.isNaN(r)||isNaN(+t)||!Number.isSafeInteger(r))throw new Error(`Invalid "value": ${t} number must be a valid number.`)}}function x(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if(!e.data||!Array.isArray(e.data))throw new Error(`Invalid message "data": ${e.data} must be a valid array.`);try{o.typedSignatureHash(e.data)}catch(e){throw new Error("Expected EIP712 typed data.")}}function k(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if(!e.data||"string"!=typeof e.data)throw new Error(`Invalid message "data": ${e.data} must be a valid array.`);let t;try{t=JSON.parse(e.data)}catch(e){throw new Error("Data must be passed as a valid JSON string.")}if(a.validate(t,o.TYPED_MESSAGE_SCHEMA).errors.length>0)throw new Error("Data must conform to EIP-712 schema. See https://git.io/fNtcx.")}function S(e){const{address:t,symbol:r,decimals:n}=e;if(!t||!r||void 0===n)throw new Error("Cannot suggest token without address, symbol, and decimals");if(!(r.length<7))throw new Error(`Invalid symbol ${r} more than six characters`);if(isNaN(n)||n>36||n<0)throw new Error(`Invalid decimals ${n} must be at least 0, and not over 36`);if(!i.isValidAddress(t))throw new Error("Invalid address "+t)}function E(e){return!!e&&("0x"!==e&&"0x0"!==e)}function A(e,t){return n(this,void 0,void 0,(function*(){const r=yield fetch(e,t);if(!r.ok)throw new Error(`Fetch failed with status '${r.status}' for request '${e}'`);return r}))}function T(e,t){return n(this,void 0,void 0,(function*(){const r=yield A(e,t);return yield r.json()}))}function C(e,t,r=500){return n(this,void 0,void 0,(function*(){return Promise.race([A(e,t),new Promise((e,t)=>setTimeout(()=>{t(new Error("timeout"))},r))])}))}r.BNToHex=d,r.fractionBN=h,r.getBuyURL=p,r.getEtherscanApiUrl=m,r.getAlethioApiUrl=y,r.handleTransactionFetch=function(e,t,r){return n(this,void 0,void 0,(function*(){const n=T(m(e,t,r&&r.fromBlock)),i=y(e,t,r),o=""!==i.url&&T(i.url,{headers:i.headers});let[a,s]=yield Promise.all([n,o]);return("0"===a.status||a.result.length<=0)&&(a={result:[]}),i.url&&s&&s.data||(s={data:[]}),[a,s]}))},r.hexToBN=g,r.hexToText=b,r.normalizeTransaction=v,r.safelyExecute=w,r.validateTransaction=_,r.normalizeMessageData=function(e){try{const t=c(e);if(t.match(l))return i.addHexPrefix(t)}catch(e){}return i.bufferToHex(t.from(e,"utf8"))},r.validateSignMessageData=function(e){if(!e.from||"string"!=typeof e.from||!i.isValidAddress(e.from))throw new Error(`Invalid "from" address: ${e.from} must be a valid string.`);if(!e.data||"string"!=typeof e.data)throw new Error(`Invalid message "data": ${e.data} must be a valid string.`)},r.validateTypedSignMessageDataV1=x,r.validateTypedSignMessageDataV3=k,r.validateTokenToWatch=S,r.isSmartContractCode=E,r.successfulFetch=A,r.handleFetch=T,r.timeoutFetch=C,r.normalizeEnsName=function(e){if(e&&"string"==typeof e)try{const t=u.normalize(e.trim());if(t.match(/^(([\w\d\-]+)\.)*[\w\d\-]{7,}\.(eth|test)$/))return t}catch(e){}return null},r.default={BNToHex:d,fractionBN:h,getBuyURL:p,handleFetch:T,hexToBN:g,hexToText:b,isSmartContractCode:E,normalizeTransaction:v,safelyExecute:w,successfulFetch:A,timeoutFetch:C,validateTokenToWatch:S,validateTransaction:_,validateTypedSignMessageDataV1:x,validateTypedSignMessageDataV3:k}}).call(this,e("buffer").Buffer)},{buffer:475,"eth-ens-namehash":594,"eth-sig-util":694,"ethereumjs-util":1019,jsonschema:829}],1010:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],1011:[function(e,t,r){arguments[4][170][0].apply(r,arguments)},{bip39:430,"browser-passworder":441,dup:170,"eth-hd-keyring":596,"eth-sig-util":1012,"eth-simple-keyring":698,"ethereumjs-util":1013,events:476,loglevel:872,"obs-store":898}],1012:[function(e,t,r){arguments[4][171][0].apply(r,arguments)},{dup:171,"ethereumjs-abi":1017,"ethereumjs-util":1013}],1013:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":1010,dup:172,"ethjs-util":1031,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],1014:[function(e,t,r){arguments[4][173][0].apply(r,arguments)},{dup:173}],1015:[function(e,t,r){arguments[4][174][0].apply(r,arguments)},{"./abi":1014,"./registry-map.json":1016,dup:174,ethjs:1032}],1016:[function(e,t,r){arguments[4][175][0].apply(r,arguments)},{dup:175}],1017:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{"./lib/index.js":1018,dup:176}],1018:[function(e,t,r){(function(r){const n=e("ethereumjs-util"),i=e("bn.js");var o=function(){};function a(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function f(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function d(e,t){var o,a,f,h;if("address"===e)return d("uint160",l(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",r.from(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)f.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);f.unshift(p)}return r.concat(f)}if("bytes"===e)return t=r.from(t),f=r.concat([d("uint256",t.length),t]),t.length%32!=0&&(f=r.concat([f,n.zeros(32-t.length%32)])),f;if(e.startsWith("bytes")){if((o=s(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",a.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=c(e),d("int256",l(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,a,s,c;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=h(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),c=0;c<o;c++){var l=h(e.subArray,t,n);s.push(l),n+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),t.slice(n+32,n+32+o);if(e.name.startsWith("bytes"))return t.slice(n,n+e.size);if(e.name.startsWith("uint")){if((a=new i(t.slice(n,n+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(y(e)){t=u(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var i=e+"("+t.map(a).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(y(e)){var t=u(e);o+="dynamic"!==t?32*t:32}else o+=32}));for(var s=0;s<e.length;s++){var c=a(e[s]),l=d(c,t[s]);m(c)?(n.push(d("uint256",o)),i.push(l),o+=l.length):n.push(l)}return r.concat(n.concat(i))},o.rawDecode=function(e,t){var n=[];t=r.from(t);for(var i=0,o=0;o<e.length;o++){var s=p(a(e[o])),c=h(s,t,i);i+=s.memoryUsage,n.push(c)}return n},o.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),n=f(e);if(t.length!==n.args.length)throw new Error("Argument count mismatch");return r.concat([o.methodID(n.method,n.args),o.rawEncode(n.args,t)])},o.simpleDecode=function(e,t){var r=f(e);if(!r.retargs)throw new Error("No return values in method");return o.rawDecode(r.retargs,t)},o.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return g(i,e)})).join(", "):g(i,o),r.push(o)}return r},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var i,o,c=[],u=0;u<e.length;u++){var f=a(e[u]),d=t[u];if("bytes"===f)c.push(d);else if("string"===f)c.push(r.from(d,"utf8"));else if("bool"===f)c.push(r.from(d?"01":"00","hex"));else if("address"===f)c.push(n.setLengthLeft(d,20));else if(f.startsWith("bytes")){if((i=s(f))<1||i>32)throw new Error("Invalid bytes<N> width: "+i);c.push(n.setLengthRight(d,i))}else if(f.startsWith("uint")){if((i=s(f))%8||i<8||i>256)throw new Error("Invalid uint<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+o.bitLength());c.push(o.toArrayLike(r,"be",i/8))}else{if(!f.startsWith("int"))throw new Error("Unsupported or invalid type: "+f);if((i=s(f))%8||i<8||i>256)throw new Error("Invalid int<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+o.bitLength());c.push(o.toTwos(i).toArrayLike(r,"be",i/8))}}return r.concat(c)},o.soliditySHA3=function(e,t){return n.keccak256(o.solidityPack(e,t))},o.soliditySHA256=function(e,t){return n.sha256(o.solidityPack(e,t))},o.solidityRIPEMD160=function(e,t){return n.ripemd160(o.solidityPack(e,t),!0)},o.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+s(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},t.exports=o}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,"ethereumjs-util":1019}],1019:[function(e,t,r){arguments[4][178][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":1010,dup:178,"ethjs-util":1031,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],1020:[function(e,t,r){(function(r){"use strict";var n=e("./utils/index.js"),i=n.uint256Coder,o=(n.coderBoolean,n.coderFixedBytes,n.coderAddress,n.coderDynamicBytes,n.coderString,n.coderArray,n.paramTypePart,n.getParamCoder);function a(){}function s(e,t){if(e.length!==t.length)throw new Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+e.length+" types (arguments), and you passed in "+t.length);var n=[];function a(e){return parseInt(32*Math.ceil(e/32))}e.forEach((function(e,r){var i=o(e);n.push({dynamic:i.dynamic,value:i.encode(t[r])})}));var s=0,c=0;n.forEach((function(e){e.dynamic?(s+=32,c+=a(e.value.length)):s+=a(e.value.length)}));var u=0,l=s,f=new r(s+c);return n.forEach((function(e,t){e.dynamic?(i.encode(l).copy(f,u),u+=32,e.value.copy(f,l),l+=a(e.value.length)):(e.value.copy(f,u),u+=a(e.value.length))})),"0x"+f.toString("hex")}function c(e,t,r){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(r=t,t=e,e=[]),r=n.hexOrBuffer(r);var c=new a,u=0;return t.forEach((function(t,n){var a=o(t);if(a.dynamic){var l=i.decode(r,u),f=a.decode(r,l.value.toNumber());u+=l.consumed}else f=a.decode(r,u),u+=f.consumed;s&&(c[n]=f.value),e[n]&&(c[e[n]]=f.value)})),c}function u(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+new r(n.keccak256(t),"hex").slice(0,4).toString("hex")}function l(e,t){var r=s(n.getKeys(e.inputs,"type"),t).substring(2);return""+u(e)+r}function f(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+n.keccak256(t)}function d(e,t,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=e.inputs.filter((function(e){return!e.indexed})),u=n.getKeys(s,"name",!0),l=n.getKeys(s,"type"),f=c(u,l,n.hexOrBuffer(t),a),d=e.anonymous?0:1;return e.inputs.filter((function(e){return e.indexed})).map((function(e,t){var n=new r(i[t+d].slice(2),"hex"),a=o(e.type);f[e.name]=a.decode(n,0).value})),f._eventName=e.name,f}function h(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t.topics[0]===f(e))return d(e,t.data,t.topics,r)}t.exports={encodeParams:s,decodeParams:c,encodeMethod:l,decodeMethod:function(e,t){return c(n.getKeys(e.outputs,"name",!0),n.getKeys(e.outputs,"type"),n.hexOrBuffer(t))},encodeEvent:function(e,t){return l(e,t)},decodeEvent:d,decodeLogItem:h,logDecoder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return e.filter((function(e){return"event"===e.type})).map((function(e){r[f(e)]=e})),function(e){return e.map((function(e){return h(r[e.topics[0]],e,t)})).filter((function(e){return e}))}},eventSignature:f,encodeSignature:u}}).call(this,e("buffer").Buffer)},{"./utils/index.js":1021,buffer:475}],1021:[function(e,t,r){(function(r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=e("js-sha3").keccak_256;function a(e){for(var t=e,r=t[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t}function s(e){var t=e.toString(16);return t.length%2&&(t="0"+t),a(new r(t,"hex"))}function c(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function u(e,t){var n=e;if(!r.isBuffer(n)){if(!c(n)){var i=new Error(t?"[ethjs-abi] invalid "+t:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=n,i}(n=n.substring(2)).length%2&&(n="0"+n),n=new r(n,"hex")}return n}function l(e,t){return{encode:function(n){var o=n;return"object"==typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!=typeof o&&"number"!=typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*e).maskn(8*e),t&&(o=o.fromTwos(8*e).toTwos(256)),o.toArrayLike(r,"be",32)},decode:function(r,i){var o=32-e,a=new n(r.slice(i+o,i+32));return a=t?a.fromTwos(8*e):a.maskn(8*e),{consumed:32,value:new n(a.toString(10))}}}}var f=l(32,!1),d={encode:function(e){return f.encode(e?1:0)},decode:function(e,t){var r=f.decode(e,t);return{consumed:r.consumed,value:!r.value.isZero()}}};function h(e){return{encode:function(e){var t=e;if(32===(t=u(t)).length)return t;var n=new r(32);return n.fill(0),t.copy(n),n},decode:function(t,r){if(0!==t.length&&t.length<r+32)throw new Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+e);return{consumed:32,value:"0x"+t.slice(r,r+e).toString("hex")}}}}var p={encode:function(e){var t=e,n=new r(32);if(!c(t,20))throw new Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return t=u(t),n.fill(0),t.copy(n,12),n},decode:function(e,t){if(0===e.length)return{consumed:32,value:"0x"};if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+e.length);return{consumed:32,value:"0x"+e.slice(t+12,t+32).toString("hex")}}};function m(e){var t=parseInt(32*Math.ceil(e.length/32)),n=new r(t-e.length);return n.fill(0),r.concat([f.encode(e.length),e,n])}function y(e,t){if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32));var r=f.decode(e,t).value;if(r=r.toNumber(),0!==e.length&&e.length<t+32+r)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32+r));return{consumed:parseInt(32+32*Math.ceil(r/32),10),value:e.slice(t+32,t+32+r)}}var g={encode:function(e){return m(u(e))},decode:function(e,t){var r=y(e,t);return r.value="0x"+r.value.toString("hex"),r},dynamic:!0},b={encode:function(e){return m(new r(e,"utf8"))},decode:function(e,t){var r=y(e,t);return r.value=r.value.toString("utf8"),r},dynamic:!0};function v(e,t){return{encode:function(n){var i=new r(0),o=t;if(!Array.isArray(n))throw new Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=n.length,i=f.encode(o)),o!==n.length)throw new Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+n.length);return n.forEach((function(t){i=r.concat([i,e.encode(t)])})),i},decode:function(r,n){var i,o=t,a=n,s=0;-1===o&&(o=(i=f.decode(r,a)).value.toNumber(),s+=i.consumed,a+=i.consumed);for(var c=[],u=0;u<o;u++){var l=e.decode(r,a);s+=l.consumed,a+=l.consumed,c.push(l.value)}return{consumed:s,value:c}},dynamic:-1===t}}var w=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:n,bnToBuffer:s,isHexString:c,hexOrBuffer:u,hexlify:function(e){return"number"==typeof e?"0x"+s(new n(e)).toString("hex"):e.mod||e.modulo?"0x"+s(e).toString("hex"):"0x"+u(e).toString("hex")},stripZeros:a,keccak256:o,getKeys:function(e,t,r){var n=[];if(!Array.isArray(e))throw new Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(e));for(var i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");n.push(o)}return n},numberToBN:i,coderNumber:l,uint256Coder:f,coderBoolean:d,coderFixedBytes:h,coderAddress:p,coderDynamicBytes:g,coderString:b,coderArray:v,paramTypePart:w,getParamCoder:function(e){for(var t=e,r=null,n="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(t)+" is either invalid or unsupported by ethjs-abi.";t;){var i=t.match(w);if(!i)throw new Error(n);t=t.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(r)throw new Error(n);var a=parseInt(i[3]||256);if(0===a||a>256||a%8!=0)throw new Error("[ethjs-abi] while getting param coder for type "+t+", invalid "+o+"<N> width: "+t);r=l(a/8,"int"===o);break;case"bool":if(r)throw new Error(n);r=d;break;case"string":if(r)throw new Error(n);r=b;break;case"bytes":if(r)throw new Error(n);if(i[3]){var s=parseInt(i[3]);if(0===s||s>32)throw new Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+t+", size "+s+" should be 0 or greater than 32");r=h(s)}else r=g;break;case"address":if(r)throw new Error(n);r=p;break;case"[]":if(!r||r.dynamic)throw new Error(n);r=v(r,-1);break;default:if(!r||r.dynamic)throw new Error(n);r=v(r,parseInt(i[6]))}}if(!r)throw new Error(n);return r}}}).call(this,e("buffer").Buffer)},{"bn.js":1022,buffer:475,"js-sha3":815,"number-to-bn":895}],1022:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],1023:[function(e,t,r){arguments[4][182][0].apply(r,arguments)},{"./has-tx-object":1024,"babel-runtime/core-js/json/stringify":331,"babel-runtime/core-js/object/assign":332,"babel-runtime/helpers/asyncToGenerator":336,"babel-runtime/regenerator":420,dup:182,"ethjs-abi":1027,"ethjs-filter":748,"ethjs-util":1029,"js-sha3":815,"promise-to-callback":953}],1024:[function(e,t,r){arguments[4][183][0].apply(r,arguments)},{"babel-runtime/core-js/object/keys":334,dup:183}],1025:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{"./contract":1023,"./has-tx-object":1024,"babel-runtime/core-js/object/assign":332,dup:184,"ethjs-abi":1027,"ethjs-filter":748,"ethjs-util":1029,"js-sha3":815}],1026:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],1027:[function(e,t,r){(function(r){"use strict";var n=e("./utils/index.js"),i=n.uint256Coder,o=(n.coderBoolean,n.coderFixedBytes,n.coderAddress,n.coderDynamicBytes,n.coderString,n.coderArray,n.paramTypePart,n.getParamCoder);function a(){}function s(e,t){if(e.length!==t.length)throw new Error("[ethjs-abi] while encoding params, types/values mismatch, Your contract requires "+e.length+" types (arguments), and you passed in "+t.length);var n=[];function a(e){return parseInt(32*Math.ceil(e/32))}e.forEach((function(e,r){var i=o(e);n.push({dynamic:i.dynamic,value:i.encode(t[r])})}));var s=0,c=0;n.forEach((function(e){e.dynamic?(s+=32,c+=a(e.value.length)):s+=a(e.value.length)}));var u=0,l=s,f=new r(s+c);return n.forEach((function(e,t){e.dynamic?(i.encode(l).copy(f,u),u+=32,e.value.copy(f,l),l+=a(e.value.length)):(e.value.copy(f,u),u+=a(e.value.length))})),"0x"+f.toString("hex")}function c(e,t,r){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];arguments.length<3&&(r=t,t=e,e=[]),r=n.hexOrBuffer(r);var c=new a,u=0;return t.forEach((function(t,n){var a=o(t);if(a.dynamic){var l=i.decode(r,u),f=a.decode(r,l.value.toNumber());u+=l.consumed}else f=a.decode(r,u),u+=f.consumed;s&&(c[n]=f.value),e[n]&&(c[e[n]]=f.value)})),c}function u(e,t){var i=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+new r(n.keccak256(i),"hex").slice(0,4).toString("hex")+s(n.getKeys(e.inputs,"type"),t).substring(2)}function l(e){var t=e.name+"("+n.getKeys(e.inputs,"type").join(",")+")";return"0x"+n.keccak256(t)}function f(e,t,i){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=e.inputs.filter((function(e){return!e.indexed})),u=n.getKeys(s,"name",!0),l=n.getKeys(s,"type"),f=c(u,l,n.hexOrBuffer(t),a),d=e.anonymous?0:1;return e.inputs.filter((function(e){return e.indexed})).map((function(e,t){var n=new r(i[t+d].slice(2),"hex"),a=o(e.type);f[e.name]=a.decode(n,0).value})),f._eventName=e.name,f}function d(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e&&t.topics[0]===l(e))return f(e,t.data,t.topics,r)}t.exports={encodeParams:s,decodeParams:c,encodeMethod:u,decodeMethod:function(e,t){return c(n.getKeys(e.outputs,"name",!0),n.getKeys(e.outputs,"type"),n.hexOrBuffer(t))},encodeEvent:function(e,t){return u(e,t)},decodeEvent:f,decodeLogItem:d,logDecoder:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={};return e.filter((function(e){return"event"===e.type})).map((function(e){r[l(e)]=e})),function(e){return e.map((function(e){return d(r[e.topics[0]],e,t)})).filter((function(e){return e}))}},eventSignature:l}}).call(this,e("buffer").Buffer)},{"./utils/index.js":1028,buffer:475}],1028:[function(e,t,r){(function(r){"use strict";var n=e("bn.js"),i=e("number-to-bn"),o=e("js-sha3").keccak_256;function a(e){for(var t=e,r=t[0];t.length>0&&"0"===r.toString();)r=(t=t.slice(1))[0];return t}function s(e){var t=e.toString(16);return t.length%2&&(t="0"+t),a(new r(t,"hex"))}function c(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function u(e,t){var n=e;if(!r.isBuffer(n)){if(!c(n)){var i=new Error(t?"[ethjs-abi] invalid "+t:"[ethjs-abi] invalid hex or buffer, must be a prefixed alphanumeric even length hex string");throw i.reason="[ethjs-abi] invalid hex string, hex must be prefixed and alphanumeric (e.g. 0x023..)",i.value=n,i}(n=n.substring(2)).length%2&&(n="0"+n),n=new r(n,"hex")}return n}function l(e,t){return{encode:function(n){var o=n;return"object"==typeof o&&o.toString&&(o.toTwos||o.dividedToIntegerBy)&&(o=o.toString(10).split(".")[0]),"string"!=typeof o&&"number"!=typeof o||(o=String(o).split(".")[0]),o=(o=i(o)).toTwos(8*e).maskn(8*e),t&&(o=o.fromTwos(8*e).toTwos(256)),o.toArrayLike(r,"be",32)},decode:function(r,i){var o=32-e,a=new n(r.slice(i+o,i+32));return a=t?a.fromTwos(8*e):a.maskn(8*e),{consumed:32,value:new n(a.toString(10))}}}}var f=l(32,!1),d={encode:function(e){return f.encode(e?1:0)},decode:function(e,t){var r=f.decode(e,t);return{consumed:r.consumed,value:!r.value.isZero()}}};function h(e){return{encode:function(e){var t=e;if(32===(t=u(t)).length)return t;var n=new r(32);return n.fill(0),t.copy(n),n},decode:function(t,r){if(0!==t.length&&t.length<r+32)throw new Error("[ethjs-abi] while decoding fixed bytes, invalid bytes data length: "+e);return{consumed:32,value:"0x"+t.slice(r,r+e).toString("hex")}}}}var p={encode:function(e){var t=e,n=new r(32);if(!c(t,20))throw new Error("[ethjs-abi] while encoding address, invalid address value, not alphanumeric 20 byte hex string");return t=u(t),n.fill(0),t.copy(n,12),n},decode:function(e,t){if(0===e.length)return{consumed:32,value:"0x"};if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding address data, invalid address data, invalid byte length "+e.length);return{consumed:32,value:"0x"+e.slice(t+12,t+32).toString("hex")}}};function m(e){var t=parseInt(32*Math.ceil(e.length/32)),n=new r(t-e.length);return n.fill(0),r.concat([f.encode(e.length),e,n])}function y(e,t){if(0!==e.length&&e.length<t+32)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32));var r=f.decode(e,t).value;if(r=r.toNumber(),0!==e.length&&e.length<t+32+r)throw new Error("[ethjs-abi] while decoding dynamic bytes data, invalid bytes length: "+e.length+" should be less than "+(t+32+r));return{consumed:parseInt(32+32*Math.ceil(r/32),10),value:e.slice(t+32,t+32+r)}}var g={encode:function(e){return m(u(e))},decode:function(e,t){var r=y(e,t);return r.value="0x"+r.value.toString("hex"),r},dynamic:!0},b={encode:function(e){return m(new r(e,"utf8"))},decode:function(e,t){var r=y(e,t);return r.value=r.value.toString("utf8"),r},dynamic:!0};function v(e,t){return{encode:function(n){var i=new r(0),o=t;if(!Array.isArray(n))throw new Error("[ethjs-abi] while encoding array, invalid array data, not type Object (Array)");if(-1===o&&(o=n.length,i=f.encode(o)),o!==n.length)throw new Error("[ethjs-abi] while encoding array, size mismatch array length "+o+" does not equal "+n.length);return n.forEach((function(t){i=r.concat([i,e.encode(t)])})),i},decode:function(r,n){var i,o=t,a=n,s=0;-1===o&&(o=(i=f.decode(r,a)).value.toNumber(),s+=i.consumed,a+=i.consumed);for(var c=[],u=0;u<o;u++){var l=e.decode(r,a);s+=l.consumed,a+=l.consumed,c.push(l.value)}return{consumed:s,value:c}},dynamic:-1===t}}var w=new RegExp(/^((u?int|bytes)([0-9]*)|(address|bool|string)|(\[([0-9]*)\]))/);t.exports={BN:n,bnToBuffer:s,isHexString:c,hexOrBuffer:u,hexlify:function(e){return"number"==typeof e?"0x"+s(new n(e)).toString("hex"):e.mod||e.modulo?"0x"+s(e).toString("hex"):"0x"+u(e).toString("hex")},stripZeros:a,keccak256:o,getKeys:function(e,t,r){var n=[];if(!Array.isArray(e))throw new Error("[ethjs-abi] while getting keys, invalid params value "+JSON.stringify(e));for(var i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("[ethjs-abi] while getKeys found invalid ABI data structure, type value not string");n.push(o)}return n},numberToBN:i,coderNumber:l,uint256Coder:f,coderBoolean:d,coderFixedBytes:h,coderAddress:p,coderDynamicBytes:g,coderString:b,coderArray:v,paramTypePart:w,getParamCoder:function(e){for(var t=e,r=null,n="[ethjs-abi] while getting param coder (getParamCoder) type value "+JSON.stringify(t)+" is either invalid or unsupported by ethjs-abi.";t;){var i=t.match(w);if(!i)throw new Error(n);t=t.substring(i[0].length);var o=i[2]||i[4]||i[5];switch(o){case"int":case"uint":if(r)throw new Error(n);var a=parseInt(i[3]||256);if(0===a||a>256||a%8!=0)throw new Error("[ethjs-abi] while getting param coder for type "+t+", invalid "+o+"<N> width: "+t);r=l(a/8,"int"===o);break;case"bool":if(r)throw new Error(n);r=d;break;case"string":if(r)throw new Error(n);r=b;break;case"bytes":if(r)throw new Error(n);if(i[3]){var s=parseInt(i[3]);if(0===s||s>32)throw new Error("[ethjs-abi] while getting param coder for prefix bytes, invalid type "+t+", size "+s+" should be 0 or greater than 32");r=h(s)}else r=g;break;case"address":if(r)throw new Error(n);r=p;break;case"[]":if(!r||r.dynamic)throw new Error(n);r=v(r,-1);break;default:if(!r||r.dynamic)throw new Error(n);r=v(r,parseInt(i[6]))}}if(!r)throw new Error(n);return r}}}).call(this,e("buffer").Buffer)},{"bn.js":1026,buffer:475,"js-sha3":815,"number-to-bn":895}],1029:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+o(e.toString(16))}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return r.from(t.slice(2),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],1030:[function(e,t,r){arguments[4][189][0].apply(r,arguments)},{dup:189,"ethjs-format":749,"ethjs-rpc":755,"promise-to-callback":953}],1031:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],1032:[function(e,t,r){(function(r){"use strict";var n=e("ethjs-query"),i=e("ethjs-filter"),o=e("ethjs-contract"),a=e("ethjs-provider-http"),s=e("ethjs-abi"),c=e("ethjs-unit"),u=e("js-sha3").keccak_256,l=e("number-to-bn"),f=e("bn.js"),d=e("ethjs-util"),h=e("./lib/getTransactionSuccess.js");function p(e,t){if(!(this instanceof p))throw new Error('[ethjs] the Eth object requires you construct it with the "new" flag (i.e. `const eth = new Eth(...);`).');var r=this;r.options=t||{};var a=new n(e,r.options.query);Object.keys(Object.getPrototypeOf(a)).forEach((function(e){r[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return a[e].apply(a,r)}})),r.filter=new i(a,r.options.query),r.contract=new o(a,r.options.query),r.currentProvider=a.rpc.currentProvider,r.setProvider=a.setProvider,r.getTransactionSuccess=h(r)}t.exports=p,p.BN=f,p.isAddress=function(e){return d.isHexString(e,20)},p.keccak256=function(e){return"0x"+u(e)},p.Buffer=r,p.isHexString=d.isHexString,p.fromWei=c.fromWei,p.toWei=c.toWei,p.toBN=l,p.abi=s,p.fromAscii=d.fromAscii,p.toAscii=d.toAscii,p.fromUtf8=d.fromUtf8,p.toUtf8=d.toUtf8,p.HttpProvider=a}).call(this,e("buffer").Buffer)},{"./lib/getTransactionSuccess.js":1033,"bn.js":1034,buffer:475,"ethjs-abi":1020,"ethjs-contract":1025,"ethjs-filter":748,"ethjs-provider-http":750,"ethjs-query":1035,"ethjs-unit":757,"ethjs-util":1036,"js-sha3":815,"number-to-bn":895}],1033:[function(e,t,r){arguments[4][192][0].apply(r,arguments)},{dup:192}],1034:[function(e,t,r){arguments[4][181][0].apply(r,arguments)},{dup:181}],1035:[function(e,t,r){arguments[4][194][0].apply(r,arguments)},{"babel-runtime/core-js/json/stringify":331,"babel-runtime/core-js/object/assign":332,"babel-runtime/core-js/object/define-property":333,"babel-runtime/core-js/object/keys":334,"babel-runtime/helpers/asyncToGenerator":336,"babel-runtime/regenerator":420,dup:194,"ethjs-format":749,"ethjs-rpc":755,"promise-to-callback":953}],1036:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+o(e.toString(16))}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return r.from(t.slice(2),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],1037:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:475}],1038:[function(e,t,r){const n=e("util"),i=e("events/");var o="object"==typeof Reflect?Reflect:null,a=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function s(){i.call(this)}function c(e,t,r){try{a(e,t,r)}catch(e){setTimeout(()=>{throw e})}}function u(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}t.exports=s,n.inherits(s,i),s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)c(s,this,t);else{var l=s.length,f=u(s,l);for(r=0;r<l;++r)c(f[r],this,t)}return!0}},{"events/":760,util:1133}],1039:[function(e,t,r){t.exports=e("scryptsy")},{scryptsy:1040}],1040:[function(e,t,r){(function(r){var n=e("pbkdf2").pbkdf2Sync;function i(e,t,n,i,o){if(r.isBuffer(e)&&r.isBuffer(n))e.copy(n,i,t,t+o);else for(;o--;)n[i++]=e[t++]}t.exports=function(e,t,o,a,s,c,u){if(0===o||0!=(o&o-1))throw Error("N must be > 0 and a power of 2");if(o>2147483647/128/a)throw Error("Parameter N is too large");if(a>2147483647/128/s)throw Error("Parameter r is too large");var l,f=new r(256*a),d=new r(128*a*o),h=new Int32Array(16),p=new Int32Array(16),m=new r(64),y=n(e,t,1,128*s*a,"sha256");if(u){var g=s*o*2,b=0;l=function(){++b%1e3==0&&u({current:b,total:g,percent:b/g*100})}}for(var v=0;v<s;v++)w(y,128*v*a,a,o,d,f);return n(e,y,1,c,"sha256");function w(e,t,r,n,i,o){var a,s=128*r;for(e.copy(o,0,t,t+s),a=0;a<n;a++)o.copy(i,a*s,0,0+s),_(o,0,s,r),l&&l();for(a=0;a<n;a++){var c=0+64*(2*r-1);S(i,(o.readUInt32LE(c)&n-1)*s,o,0,s),_(o,0,s,r),l&&l()}o.copy(e,t,0,0+s)}function _(e,t,r,n){var o;for(i(e,t+64*(2*n-1),m,0,64),o=0;o<2*n;o++)S(e,64*o,m,0,64),k(m),i(m,0,e,r+64*o,64);for(o=0;o<n;o++)i(e,r+2*o*64,e,t+64*o,64);for(o=0;o<n;o++)i(e,r+64*(2*o+1),e,t+64*(o+n),64)}function x(e,t){return e<<t|e>>>32-t}function k(e){var t;for(t=0;t<16;t++)h[t]=(255&e[4*t+0])<<0,h[t]|=(255&e[4*t+1])<<8,h[t]|=(255&e[4*t+2])<<16,h[t]|=(255&e[4*t+3])<<24;for(i(h,0,p,0,16),t=8;t>0;t-=2)p[4]^=x(p[0]+p[12],7),p[8]^=x(p[4]+p[0],9),p[12]^=x(p[8]+p[4],13),p[0]^=x(p[12]+p[8],18),p[9]^=x(p[5]+p[1],7),p[13]^=x(p[9]+p[5],9),p[1]^=x(p[13]+p[9],13),p[5]^=x(p[1]+p[13],18),p[14]^=x(p[10]+p[6],7),p[2]^=x(p[14]+p[10],9),p[6]^=x(p[2]+p[14],13),p[10]^=x(p[6]+p[2],18),p[3]^=x(p[15]+p[11],7),p[7]^=x(p[3]+p[15],9),p[11]^=x(p[7]+p[3],13),p[15]^=x(p[11]+p[7],18),p[1]^=x(p[0]+p[3],7),p[2]^=x(p[1]+p[0],9),p[3]^=x(p[2]+p[1],13),p[0]^=x(p[3]+p[2],18),p[6]^=x(p[5]+p[4],7),p[7]^=x(p[6]+p[5],9),p[4]^=x(p[7]+p[6],13),p[5]^=x(p[4]+p[7],18),p[11]^=x(p[10]+p[9],7),p[8]^=x(p[11]+p[10],9),p[9]^=x(p[8]+p[11],13),p[10]^=x(p[9]+p[8],18),p[12]^=x(p[15]+p[14],7),p[13]^=x(p[12]+p[15],9),p[14]^=x(p[13]+p[12],13),p[15]^=x(p[14]+p[13],18);for(t=0;t<16;++t)h[t]=p[t]+h[t];for(t=0;t<16;t++){var r=4*t;e[r+0]=h[t]>>0&255,e[r+1]=h[t]>>8&255,e[r+2]=h[t]>>16&255,e[r+3]=h[t]>>24&255}}function S(e,t,r,n,i){for(var o=0;o<i;o++)r[n+o]^=e[t+o]}}}).call(this,e("buffer").Buffer)},{buffer:475,pbkdf2:941}],1041:[function(e,t,r){"use strict";t.exports=e("./lib")(e("./lib/elliptic"))},{"./lib":1045,"./lib/elliptic":1044}],1042:[function(e,t,r){(function(e){"use strict";var t=Object.prototype.toString;r.isArray=function(e,t){if(!Array.isArray(e))throw TypeError(t)},r.isBoolean=function(e,r){if("[object Boolean]"!==t.call(e))throw TypeError(r)},r.isBuffer=function(t,r){if(!e.isBuffer(t))throw TypeError(r)},r.isFunction=function(e,r){if("[object Function]"!==t.call(e))throw TypeError(r)},r.isNumber=function(e,r){if("[object Number]"!==t.call(e))throw TypeError(r)},r.isObject=function(e,r){if("[object Object]"!==t.call(e))throw TypeError(r)},r.isBufferLength=function(e,t,r){if(e.length!==t)throw RangeError(r)},r.isBufferLength2=function(e,t,r,n){if(e.length!==t&&e.length!==r)throw RangeError(n)},r.isLengthGTZero=function(e,t){if(0===e.length)throw RangeError(t)},r.isNumberInInterval=function(e,t,r,n){if(e<=t||e>=r)throw RangeError(n)}}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":808}],1043:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("bip66"),o=n.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),a=n.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);r.privateKeyExport=function(e,t,r){var i=n.from(r?o:a);return e.copy(i,r?8:9),t.copy(i,r?181:214),i},r.privateKeyImport=function(e){var t=e.length,r=0;if(!(t<r+1||48!==e[r])&&!(t<(r+=1)+1)&&128&e[r]){var n=127&e[r];if(r+=1,!(n<1||n>2||t<r+n)){var i=e[r+n-1]|(n>1?e[r+n-2]<<8:0);if(!(t<(r+=n)+i||t<r+3||2!==e[r]||1!==e[r+1]||1!==e[r+2]||t<(r+=3)+2||4!==e[r]||e[r+1]>32||t<r+2+e[r+1]))return e.slice(r+2,r+2+e[r+1])}}},r.signatureExport=function(e){for(var t=n.concat([n.from([0]),e.r]),r=33,o=0;r>1&&0===t[o]&&!(128&t[o+1]);--r,++o);for(var a=n.concat([n.from([0]),e.s]),s=33,c=0;s>1&&0===a[c]&&!(128&a[c+1]);--s,++c);return i.encode(t.slice(o),a.slice(c))},r.signatureImport=function(e){var t=n.alloc(32,0),r=n.alloc(32,0);try{var o=i.decode(e);if(33===o.r.length&&0===o.r[0]&&(o.r=o.r.slice(1)),o.r.length>32)throw new Error("R length is too long");if(33===o.s.length&&0===o.s[0]&&(o.s=o.s.slice(1)),o.s.length>32)throw new Error("S length is too long")}catch(e){return}return o.r.copy(t,32-o.r.length),o.s.copy(r,32-o.s.length),{r:t,s:r}},r.signatureImportLax=function(e){var t=n.alloc(32,0),r=n.alloc(32,0),i=e.length,o=0;if(48===e[o++]){var a=e[o++];if(!(128&a&&(o+=a-128)>i)&&2===e[o++]){var s=e[o++];if(128&s){if(o+(a=s-128)>i)return;for(;a>0&&0===e[o];o+=1,a-=1);for(s=0;a>0;o+=1,a-=1)s=(s<<8)+e[o]}if(!(s>i-o)){var c=o;if(o+=s,2===e[o++]){var u=e[o++];if(128&u){if(o+(a=u-128)>i)return;for(;a>0&&0===e[o];o+=1,a-=1);for(u=0;a>0;o+=1,a-=1)u=(u<<8)+e[o]}if(!(u>i-o)){var l=o;for(o+=u;s>0&&0===e[c];s-=1,c+=1);if(!(s>32)){var f=e.slice(c,c+s);for(f.copy(t,32-f.length);u>0&&0===e[l];u-=1,l+=1);if(!(u>32)){var d=e.slice(l,l+u);return d.copy(r,32-d.length),{r:t,s:r}}}}}}}}}},{bip66:438,"safe-buffer":1037}],1044:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("create-hash"),o=e("bn.js"),a=e("elliptic").ec,s=e("../messages.json"),c=new a("secp256k1"),u=c.curve;function l(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var r=new o(t);if(r.cmp(u.p)>=0)return null;var n=(r=r.toRed(u.red)).redSqr().redIMul(r).redIAdd(u.b).redSqrt();return 3===e!==n.isOdd()&&(n=n.redNeg()),c.keyPair({pub:{x:r,y:n}})}(t,e.slice(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,r){var n=new o(t),i=new o(r);if(n.cmp(u.p)>=0||i.cmp(u.p)>=0)return null;if(n=n.toRed(u.red),i=i.toRed(u.red),(6===e||7===e)&&i.isOdd()!==(7===e))return null;var a=n.redSqr().redIMul(n);return i.redSqr().redISub(a.redIAdd(u.b)).isZero()?c.keyPair({pub:{x:n,y:i}}):null}(t,e.slice(1,33),e.slice(33,65));default:return null}}r.privateKeyVerify=function(e){var t=new o(e);return t.cmp(u.n)<0&&!t.isZero()},r.privateKeyExport=function(e,t){var r=new o(e);if(r.cmp(u.n)>=0||r.isZero())throw new Error(s.EC_PRIVATE_KEY_EXPORT_DER_FAIL);return n.from(c.keyFromPrivate(e).getPublic(t,!0))},r.privateKeyNegate=function(e){var t=new o(e);return t.isZero()?n.alloc(32):u.n.sub(t).umod(u.n).toArrayLike(n,"be",32)},r.privateKeyModInverse=function(e){var t=new o(e);if(t.cmp(u.n)>=0||t.isZero())throw new Error(s.EC_PRIVATE_KEY_RANGE_INVALID);return t.invm(u.n).toArrayLike(n,"be",32)},r.privateKeyTweakAdd=function(e,t){var r=new o(t);if(r.cmp(u.n)>=0)throw new Error(s.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);if(r.iadd(new o(e)),r.cmp(u.n)>=0&&r.isub(u.n),r.isZero())throw new Error(s.EC_PRIVATE_KEY_TWEAK_ADD_FAIL);return r.toArrayLike(n,"be",32)},r.privateKeyTweakMul=function(e,t){var r=new o(t);if(r.cmp(u.n)>=0||r.isZero())throw new Error(s.EC_PRIVATE_KEY_TWEAK_MUL_FAIL);return r.imul(new o(e)),r.cmp(u.n)&&(r=r.umod(u.n)),r.toArrayLike(n,"be",32)},r.publicKeyCreate=function(e,t){var r=new o(e);if(r.cmp(u.n)>=0||r.isZero())throw new Error(s.EC_PUBLIC_KEY_CREATE_FAIL);return n.from(c.keyFromPrivate(e).getPublic(t,!0))},r.publicKeyConvert=function(e,t){var r=l(e);if(null===r)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);return n.from(r.getPublic(t,!0))},r.publicKeyVerify=function(e){return null!==l(e)},r.publicKeyTweakAdd=function(e,t,r){var i=l(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new o(t)).cmp(u.n)>=0)throw new Error(s.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);var a=u.g.mul(t).add(i.pub);if(a.isInfinity())throw new Error(s.EC_PUBLIC_KEY_TWEAK_ADD_FAIL);return n.from(a.encode(!0,r))},r.publicKeyTweakMul=function(e,t,r){var i=l(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);if((t=new o(t)).cmp(u.n)>=0||t.isZero())throw new Error(s.EC_PUBLIC_KEY_TWEAK_MUL_FAIL);return n.from(i.pub.mul(t).encode(!0,r))},r.publicKeyCombine=function(e,t){for(var r=new Array(e.length),i=0;i<e.length;++i)if(r[i]=l(e[i]),null===r[i])throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);for(var o=r[0].pub,a=1;a<r.length;++a)o=o.add(r[a].pub);if(o.isInfinity())throw new Error(s.EC_PUBLIC_KEY_COMBINE_FAIL);return n.from(o.encode(!0,t))},r.signatureNormalize=function(e){var t=new o(e.slice(0,32)),r=new o(e.slice(32,64));if(t.cmp(u.n)>=0||r.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);var i=n.from(e);return 1===r.cmp(c.nh)&&u.n.sub(r).toArrayLike(n,"be",32).copy(i,32),i},r.signatureExport=function(e){var t=e.slice(0,32),r=e.slice(32,64);if(new o(t).cmp(u.n)>=0||new o(r).cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);return{r:t,s:r}},r.signatureImport=function(e){var t=new o(e.r);t.cmp(u.n)>=0&&(t=new o(0));var r=new o(e.s);return r.cmp(u.n)>=0&&(r=new o(0)),n.concat([t.toArrayLike(n,"be",32),r.toArrayLike(n,"be",32)])},r.sign=function(e,t,r,i){if("function"==typeof r){var a=r;r=function(r){var c=a(e,t,null,i,r);if(!n.isBuffer(c)||32!==c.length)throw new Error(s.ECDSA_SIGN_FAIL);return new o(c)}}var l=new o(t);if(l.cmp(u.n)>=0||l.isZero())throw new Error(s.ECDSA_SIGN_FAIL);var f=c.sign(e,t,{canonical:!0,k:r,pers:i});return{signature:n.concat([f.r.toArrayLike(n,"be",32),f.s.toArrayLike(n,"be",32)]),recovery:f.recoveryParam}},r.verify=function(e,t,r){var n={r:t.slice(0,32),s:t.slice(32,64)},i=new o(n.r),a=new o(n.s);if(i.cmp(u.n)>=0||a.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);if(1===a.cmp(c.nh)||i.isZero()||a.isZero())return!1;var f=l(r);if(null===f)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);return c.verify(e,n,{x:f.pub.x,y:f.pub.y})},r.recover=function(e,t,r,i){var a={r:t.slice(0,32),s:t.slice(32,64)},l=new o(a.r),f=new o(a.s);if(l.cmp(u.n)>=0||f.cmp(u.n)>=0)throw new Error(s.ECDSA_SIGNATURE_PARSE_FAIL);try{if(l.isZero()||f.isZero())throw new Error;var d=c.recoverPubKey(e,a,r);return n.from(d.encode(!0,i))}catch(e){throw new Error(s.ECDSA_RECOVER_FAIL)}},r.ecdh=function(e,t){var n=r.ecdhUnsafe(e,t,!0);return i("sha256").update(n).digest()},r.ecdhUnsafe=function(e,t,r){var i=l(e);if(null===i)throw new Error(s.EC_PUBLIC_KEY_PARSE_FAIL);var a=new o(t);if(a.cmp(u.n)>=0||a.isZero())throw new Error(s.ECDH_FAIL);return n.from(i.pub.mul(a).encode(!0,r))}},{"../messages.json":1046,"bn.js":439,"create-hash":1047,elliptic:572,"safe-buffer":1037}],1045:[function(e,t,r){"use strict";var n=e("./assert"),i=e("./der"),o=e("./messages.json");function a(e,t){return void 0===e?t:(n.isBoolean(e,o.COMPRESSED_TYPE_INVALID),e)}t.exports=function(e){return{privateKeyVerify:function(t){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),32===t.length&&e.privateKeyVerify(t)},privateKeyExport:function(t,r){n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),r=a(r,!0);var s=e.privateKeyExport(t,r);return i.privateKeyExport(t,s,r)},privateKeyImport:function(t){if(n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),(t=i.privateKeyImport(t))&&32===t.length&&e.privateKeyVerify(t))return t;throw new Error(o.EC_PRIVATE_KEY_IMPORT_DER_FAIL)},privateKeyNegate:function(t){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyNegate(t)},privateKeyModInverse:function(t){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.privateKeyModInverse(t)},privateKeyTweakAdd:function(t,r){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),e.privateKeyTweakAdd(t,r)},privateKeyTweakMul:function(t,r){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),e.privateKeyTweakMul(t,r)},publicKeyCreate:function(t,r){return n.isBuffer(t,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(t,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),r=a(r,!0),e.publicKeyCreate(t,r)},publicKeyConvert:function(t,r){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),r=a(r,!0),e.publicKeyConvert(t,r)},publicKeyVerify:function(t){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),e.publicKeyVerify(t)},publicKeyTweakAdd:function(t,r,i){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),i=a(i,!0),e.publicKeyTweakAdd(t,r,i)},publicKeyTweakMul:function(t,r,i){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.TWEAK_TYPE_INVALID),n.isBufferLength(r,32,o.TWEAK_LENGTH_INVALID),i=a(i,!0),e.publicKeyTweakMul(t,r,i)},publicKeyCombine:function(t,r){n.isArray(t,o.EC_PUBLIC_KEYS_TYPE_INVALID),n.isLengthGTZero(t,o.EC_PUBLIC_KEYS_LENGTH_INVALID);for(var i=0;i<t.length;++i)n.isBuffer(t[i],o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t[i],33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID);return r=a(r,!0),e.publicKeyCombine(t,r)},signatureNormalize:function(t){return n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(t,64,o.ECDSA_SIGNATURE_LENGTH_INVALID),e.signatureNormalize(t)},signatureExport:function(t){n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(t,64,o.ECDSA_SIGNATURE_LENGTH_INVALID);var r=e.signatureExport(t);return i.signatureExport(r)},signatureImport:function(t){n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isLengthGTZero(t,o.ECDSA_SIGNATURE_LENGTH_INVALID);var r=i.signatureImport(t);if(r)return e.signatureImport(r);throw new Error(o.ECDSA_SIGNATURE_PARSE_DER_FAIL)},signatureImportLax:function(t){n.isBuffer(t,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isLengthGTZero(t,o.ECDSA_SIGNATURE_LENGTH_INVALID);var r=i.signatureImportLax(t);if(r)return e.signatureImport(r);throw new Error(o.ECDSA_SIGNATURE_PARSE_DER_FAIL)},sign:function(t,r,i){n.isBuffer(t,o.MSG32_TYPE_INVALID),n.isBufferLength(t,32,o.MSG32_LENGTH_INVALID),n.isBuffer(r,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(r,32,o.EC_PRIVATE_KEY_LENGTH_INVALID);var a=null,s=null;return void 0!==i&&(n.isObject(i,o.OPTIONS_TYPE_INVALID),void 0!==i.data&&(n.isBuffer(i.data,o.OPTIONS_DATA_TYPE_INVALID),n.isBufferLength(i.data,32,o.OPTIONS_DATA_LENGTH_INVALID),a=i.data),void 0!==i.noncefn&&(n.isFunction(i.noncefn,o.OPTIONS_NONCEFN_TYPE_INVALID),s=i.noncefn)),e.sign(t,r,s,a)},verify:function(t,r,i){return n.isBuffer(t,o.MSG32_TYPE_INVALID),n.isBufferLength(t,32,o.MSG32_LENGTH_INVALID),n.isBuffer(r,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(r,64,o.ECDSA_SIGNATURE_LENGTH_INVALID),n.isBuffer(i,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(i,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),e.verify(t,r,i)},recover:function(t,r,i,s){return n.isBuffer(t,o.MSG32_TYPE_INVALID),n.isBufferLength(t,32,o.MSG32_LENGTH_INVALID),n.isBuffer(r,o.ECDSA_SIGNATURE_TYPE_INVALID),n.isBufferLength(r,64,o.ECDSA_SIGNATURE_LENGTH_INVALID),n.isNumber(i,o.RECOVERY_ID_TYPE_INVALID),n.isNumberInInterval(i,-1,4,o.RECOVERY_ID_VALUE_INVALID),s=a(s,!0),e.recover(t,r,i,s)},ecdh:function(t,r){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(r,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),e.ecdh(t,r)},ecdhUnsafe:function(t,r,i){return n.isBuffer(t,o.EC_PUBLIC_KEY_TYPE_INVALID),n.isBufferLength2(t,33,65,o.EC_PUBLIC_KEY_LENGTH_INVALID),n.isBuffer(r,o.EC_PRIVATE_KEY_TYPE_INVALID),n.isBufferLength(r,32,o.EC_PRIVATE_KEY_LENGTH_INVALID),i=a(i,!0),e.ecdhUnsafe(t,r,i)}}}},{"./assert":1042,"./der":1043,"./messages.json":1046}],1046:[function(e,t,r){t.exports={COMPRESSED_TYPE_INVALID:"compressed should be a boolean",EC_PRIVATE_KEY_TYPE_INVALID:"private key should be a Buffer",EC_PRIVATE_KEY_LENGTH_INVALID:"private key length is invalid",EC_PRIVATE_KEY_RANGE_INVALID:"private key range is invalid",EC_PRIVATE_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting private key is invalid",EC_PRIVATE_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PRIVATE_KEY_EXPORT_DER_FAIL:"couldn't export to DER format",EC_PRIVATE_KEY_IMPORT_DER_FAIL:"couldn't import from DER format",EC_PUBLIC_KEYS_TYPE_INVALID:"public keys should be an Array",EC_PUBLIC_KEYS_LENGTH_INVALID:"public keys Array should have at least 1 element",EC_PUBLIC_KEY_TYPE_INVALID:"public key should be a Buffer",EC_PUBLIC_KEY_LENGTH_INVALID:"public key length is invalid",EC_PUBLIC_KEY_PARSE_FAIL:"the public key could not be parsed or is invalid",EC_PUBLIC_KEY_CREATE_FAIL:"private was invalid, try again",EC_PUBLIC_KEY_TWEAK_ADD_FAIL:"tweak out of range or resulting public key is invalid",EC_PUBLIC_KEY_TWEAK_MUL_FAIL:"tweak out of range",EC_PUBLIC_KEY_COMBINE_FAIL:"the sum of the public keys is not valid",ECDH_FAIL:"scalar was invalid (zero or overflow)",ECDSA_SIGNATURE_TYPE_INVALID:"signature should be a Buffer",ECDSA_SIGNATURE_LENGTH_INVALID:"signature length is invalid",ECDSA_SIGNATURE_PARSE_FAIL:"couldn't parse signature",ECDSA_SIGNATURE_PARSE_DER_FAIL:"couldn't parse DER signature",ECDSA_SIGNATURE_SERIALIZE_DER_FAIL:"couldn't serialize signature to DER format",ECDSA_SIGN_FAIL:"nonce generation function failed or private key is invalid",ECDSA_RECOVER_FAIL:"couldn't recover public key from signature",MSG32_TYPE_INVALID:"message should be a Buffer",MSG32_LENGTH_INVALID:"message length is invalid",OPTIONS_TYPE_INVALID:"options should be an Object",OPTIONS_DATA_TYPE_INVALID:"options.data should be a Buffer",OPTIONS_DATA_LENGTH_INVALID:"options.data length is invalid",OPTIONS_NONCEFN_TYPE_INVALID:"options.noncefn should be a Function",RECOVERY_ID_TYPE_INVALID:"recovery should be a Number",RECOVERY_ID_VALUE_INVALID:"recovery should have value between -1 and 4",TWEAK_TYPE_INVALID:"tweak should be a Buffer",TWEAK_LENGTH_INVALID:"tweak length is invalid"}},{}],1047:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],1048:[function(e,t,r){(function(e){!function(n){"use strict";var i=function(e){setTimeout(e,0)};function o(e){var t={capacity:e||1,current:0,queue:[],firstHere:!1,take:function(){if(!1===t.firstHere){t.current++,t.firstHere=!0;var e=1}else e=0;var r={n:1};"function"==typeof arguments[0]?r.task=arguments[0]:r.n=arguments[0],arguments.length>=2&&("function"==typeof arguments[1]?r.task=arguments[1]:r.n=arguments[1]);var n=r.task;if(r.task=function(){n(t.leave)},t.current+r.n-e>t.capacity)return 1===e&&(t.current--,t.firstHere=!1),t.queue.push(r);t.current+=r.n-e,r.task(t.leave),1===e&&(t.firstHere=!1)},leave:function(e){if(e=e||1,t.current-=e,t.queue.length){var r=t.queue[0];r.n+t.current>t.capacity||(t.queue.shift(),t.current+=r.n,i(r.task))}else if(t.current<0)throw new Error("leave called too many times.")},available:function(e){return e=e||1,t.current+e<=t.capacity}};return t}void 0!==e&&e&&"function"==typeof e.nextTick&&(i=e.nextTick),"object"==typeof r?t.exports=o:"function"==typeof define&&define.amd?define((function(){return o})):n.semaphore=o}(this)}).call(this,e("_process"))},{_process:952}],1049:[function(e,t,r){(function(e){"use strict";t.exports="function"==typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this,e("timers").setImmediate)},{timers:1088}],1050:[function(e,t,r){var n=e("safe-buffer").Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var c=a%i,u=Math.min(o-s,i-c),l=0;l<u;l++)r[c+l]=e[s+l];s+=u,(a+=u)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":1037}],1051:[function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":1052,"./sha1":1053,"./sha224":1054,"./sha256":1055,"./sha384":1056,"./sha512":1057}],1052:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)r[f]=e.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((t=n)<<5|t>>>27)+l(h,i,o,s)+c+r[d]+a[h];c=s,s=o,o=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":1050,inherits:807,"safe-buffer":1037}],1053:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=u(n)+f(p,i,o,s)+c+r[h]+a[p]|0;c=s,s=o,o=l(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=c},{"./hash":1050,inherits:807,"safe-buffer":1037}],1054:[function(e,t,r){var n=e("inherits"),i=e("./sha256"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=c},{"./hash":1050,"./sha256":1055,inherits:807,"safe-buffer":1037}],1055:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,p=0|this._f,m=0|this._g,y=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+h(r[g-15])+r[g-16];for(var b=0;b<64;++b){var v=y+d(c)+u(c,p,m)+a[b]+r[b]|0,w=f(n)+l(n,i,o)|0;y=m,m=p,p=c,c=s+v|0,s=o,o=i,i=n,n=v+w|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=y+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=c},{"./hash":1050,inherits:807,"safe-buffer":1037}],1056:[function(e,t,r){var n=e("inherits"),i=e("./sha512"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=c},{"./hash":1050,"./sha512":1057,inherits:807,"safe-buffer":1037}],1057:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,b=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,x=0|this._cl,k=0|this._dl,S=0|this._el,E=0|this._fl,A=0|this._gl,T=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var O=t[C-30],j=t[C-30+1],P=h(O,j),M=p(j,O),I=m(O=t[C-4],j=t[C-4+1]),N=y(j,O),B=t[C-14],R=t[C-14+1],D=t[C-32],L=t[C-32+1],U=M+R|0,F=P+B+g(U,M)|0;F=(F=F+I+g(U=U+N|0,N)|0)+D+g(U=U+L|0,L)|0,t[C]=F,t[C+1]=U}for(var q=0;q<160;q+=2){F=t[q],U=t[q+1];var H=l(r,n,i),z=l(w,_,x),K=f(r,w),V=f(w,r),G=d(s,S),W=d(S,s),Y=a[q],$=a[q+1],J=u(s,c,b),Q=u(S,E,A),Z=T+W|0,X=v+G+g(Z,T)|0;X=(X=(X=X+J+g(Z=Z+Q|0,Q)|0)+Y+g(Z=Z+$|0,$)|0)+F+g(Z=Z+U|0,U)|0;var ee=V+z|0,te=K+H+g(ee,V)|0;v=b,T=A,b=c,A=E,c=s,E=S,s=o+X+g(S=k+Z|0,k)|0,o=i,k=x,i=n,x=_,n=r,_=w,r=X+te+g(w=Z+ee|0,Z)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+S|0,this._fl=this._fl+E|0,this._gl=this._gl+A|0,this._hl=this._hl+T|0,this._ah=this._ah+r+g(this._al,w)|0,this._bh=this._bh+n+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,x)|0,this._dh=this._dh+o+g(this._dl,k)|0,this._eh=this._eh+s+g(this._el,S)|0,this._fh=this._fh+c+g(this._fl,E)|0,this._gh=this._gh+b+g(this._gl,A)|0,this._hh=this._hh+v+g(this._hl,T)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=c},{"./hash":1050,inherits:807,"safe-buffer":1037}],1058:[function(e,t,r){t.exports=[{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[{name:"user",type:"address"},{name:"token",type:"address"}],name:"tokenBalance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"users",type:"address[]"},{name:"tokens",type:"address[]"}],name:"balances",outputs:[{name:"",type:"uint256[]"}],payable:!1,stateMutability:"view",type:"function"}]},{}],1059:[function(e,t,r){t.exports=i;var n=e("events").EventEmitter;function i(){n.call(this)}e("inherits")(i,n),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},{events:476,inherits:807,"readable-stream/duplex.js":967,"readable-stream/passthrough.js":978,"readable-stream/readable.js":979,"readable-stream/transform.js":980,"readable-stream/writable.js":981}],1060:[function(e,t,r){(function(t){var n=e("./lib/request"),i=e("./lib/response"),o=e("xtend"),a=e("builtin-status-codes"),s=e("url"),c=r;c.request=function(e,r){e="string"==typeof e?s.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?a+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new n(e);return r&&f.on("response",r),f},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=n,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":1062,"./lib/response":1063,"builtin-status-codes":483,url:1127,xtend:1267}],1061:[function(e,t,r){(function(e){var t;function n(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function i(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function o(e){return"function"==typeof e}r.fetch=o(e.fetch)&&o(e.ReadableStream),r.writableStream=o(e.WritableStream),r.abortController=o(e.AbortController),r.arraybuffer=r.fetch||i("arraybuffer"),r.msstream=!r.fetch&&i("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&i("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!n()&&o(n().overrideMimeType),t=null}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],1062:[function(e,t,r){(function(r,n,i){var o=e("./capability"),a=e("inherits"),s=e("./response"),c=e("readable-stream"),u=s.IncomingMessage,l=s.readyStates,f=t.exports=function(e){var t,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+i.from(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":"text"}(t,n),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};a(f,c.Writable),f.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===d.indexOf(r)&&(this._headers[r]={name:e,value:t})},f.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},f.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},f.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,i=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=new Blob(e._body,{type:(i["content-type"]||{}).value||""}));var s=[];if(Object.keys(i).forEach((function(e){var t=i[e].name,r=i[e].value;Array.isArray(r)?r.forEach((function(e){s.push([t,e])})):s.push([t,r])})),"fetch"===e._mode){var c=null;if(o.abortController){var u=new AbortController;c=u.signal,e._fetchAbortController=u,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),t.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:c}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){n.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}"responseType"in f&&(f.responseType=e._mode),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),s.forEach((function(e){f.setRequestHeader(e[0],e[1])})),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case l.LOADING:case l.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(t){return void r.nextTick((function(){e.emit("error",t)}))}}}},f.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},f.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},f.prototype._write=function(e,t,r){this._body.push(e),r()},f.prototype.abort=f.prototype.destroy=function(){this._destroyed=!0,n.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},f.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(this,e,t,r)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":1061,"./response":1063,_process:952,buffer:475,inherits:807,"readable-stream":1078}],1063:[function(e,t,r){(function(t,n,i){var o=e("./capability"),a=e("inherits"),s=e("readable-stream"),c=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=r.IncomingMessage=function(e,r,a,c){var u=this;if(s.Readable.call(u),u._mode=a,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){t.nextTick((function(){u.emit("close")}))})),"fetch"===a){if(u._fetchResponse=r,u.url=r.url,u.statusCode=r.status,u.statusMessage=r.statusText,r.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),o.writableStream){var l=new WritableStream({write:function(e){return new Promise((function(t,r){u._destroyed?r():u.push(i.from(e))?t():u._resumeFetch=t}))},close:function(){n.clearTimeout(c),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{return void r.body.pipeTo(l).catch((function(e){n.clearTimeout(c),u._destroyed||u.emit("error",e)}))}catch(e){}}var f=r.body.getReader();!function e(){f.read().then((function(t){if(!u._destroyed){if(t.done)return n.clearTimeout(c),void u.push(null);u.push(i.from(t.value)),e()}})).catch((function(e){n.clearTimeout(c),u._destroyed||u.emit("error",e)}))}()}else if(u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!o.overrideMimeType){var d=u.rawHeaders["mime-type"];if(d){var h=d.match(/;\s*charset=([^;])(;|$)/);h&&(u._charset=h[1].toLowerCase())}u._charset||(u._charset="utf-8")}};a(u,s.Readable),u.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},u.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text":if((r=t.responseText).length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=i.alloc(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;r=t.response,e.push(i.from(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==c.LOADING||!r)break;e.push(i.from(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==c.LOADING)break;var u=new n.MSStreamReader;u.onprogress=function(){u.result.byteLength>e._pos&&(e.push(i.from(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(r)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":1061,_process:952,buffer:475,inherits:807,"readable-stream":1078}],1064:[function(e,t,r){"use strict";var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,r){var n,i,a;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var s=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+".".length>e.length)&&-1!==e.indexOf(".",r)}(e)?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(o(t,"type"))}return a+". Received type ".concat(typeof r)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],1065:[function(e,t,r){(function(r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=u;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(u,i);for(var a=n(o.prototype),s=0;s<a.length;s++){var c=a[s];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,e("_process"))},{"./_stream_readable":1067,"./_stream_writable":1069,_process:952,inherits:807}],1066:[function(e,t,r){"use strict";t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":1068,inherits:807}],1067:[function(e,t,r){(function(r,n){"use strict";var i;t.exports=E,E.ReadableState=S,e("events").EventEmitter;var o,a=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),c=e("buffer").Buffer,u=n.Uint8Array||function(){},l=e("util");o=l&&l.debuglog?l.debuglog("stream"):function(){};var f,d,h,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),y=e("./internal/streams/state").getHighWaterMark,g=e("../errors").codes,b=g.ERR_INVALID_ARG_TYPE,v=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(E,s);var x=m.errorOrDestroy,k=["error","close","destroy","pause","resume"];function S(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=y(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=e("string_decoder/").StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function E(t){if(i=i||e("./_stream_duplex"),!(this instanceof E))return new E(t);var r=this instanceof i;this._readableState=new S(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function A(e,t,r,n,i){o("readableAddChunk",t);var a,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,s);else if(i||(a=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],t)),r}(s,t)),a)x(e,a);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n)s.endEmitted?x(e,new _):T(e,s,t,!0);else if(s.ended)x(e,new v);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?T(e,s,t,!1):P(e,s)):T(e,s,t,!1)}else n||(s.reading=!1,P(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function T(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&O(e)),P(e,t)}function C(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(j,e))}function j(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function P(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(M,e,t))}function M(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){o("readable nexttick read 0"),e.read(0)}function B(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),R(e),t.flowing&&!t.reading&&e.read(0)}function R(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function L(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=m.destroy,E.prototype._undestroy=m.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),A(this,e,t,!1,r)},E.prototype.unshift=function(e){return A(this,e,null,!0,!1)},E.prototype.isPaused=function(){return!1===this._readableState.flowing},E.prototype.setEncoding=function(t){f||(f=e("string_decoder/").StringDecoder);var r=new f(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},E.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):O(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&L(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=C(r,t))),null===(n=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==n&&this.emit("data",n),n},E.prototype._read=function(e){x(this,new w("_read()"))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?m:c;function c(){o("onend"),e.end()}i.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",(function t(r,a){o("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",u),e.removeListener("error",d),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",m),n.removeListener("data",f),l=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,R(e))}}(n);e.on("drain",u);var l=!1;function f(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(t){o("onerror",t),m(),e.removeListener("error",d),0===a(e,"error")&&x(e,t)}function h(){e.removeListener("finish",p),m()}function p(){o("onfinish"),e.removeListener("close",h),m()}function m(){o("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",d),e.once("close",h),e.once("finish",p),e.emit("pipe",n),i.flowing||(o("pipe resume"),n.resume()),e},E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},E.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?O(this):i.reading||r.nextTick(N,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(I,this),n},E.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(I,this),t},E.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(B,e,t))}(this,e)),e.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<k.length;a++)e.on(k[a],this.emit.bind(this,k[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(E.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=e("./internal/streams/async_iterator")),d(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=D,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(E.from=function(t,r){return void 0===h&&(h=e("./internal/streams/from")),h(E,t,r)})}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":1064,"./_stream_duplex":1065,"./internal/streams/async_iterator":1070,"./internal/streams/buffer_list":1071,"./internal/streams/destroy":1072,"./internal/streams/from":1074,"./internal/streams/state":1076,"./internal/streams/stream":1077,_process:952,buffer:475,events:476,inherits:807,"string_decoder/":1080,util:442}],1068:[function(e,t,r){"use strict";t.exports=l;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=e("./_stream_duplex");function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,r){d(e,t,r)}))}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}e("inherits")(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new i("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":1064,"./_stream_duplex":1065,inherits:807}],1069:[function(e,t,r){(function(r,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;t.exports=E,E.WritableState=S;var a,s={deprecate:e("util-deprecate")},c=e("./internal/streams/stream"),u=e("buffer").Buffer,l=n.Uint8Array||function(){},f=e("./internal/streams/destroy"),d=e("./internal/streams/state").getHighWaterMark,h=e("../errors").codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,v=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,x=f.errorOrDestroy;function k(){}function S(t,n,a){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof a&&(a=n instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(P,e,t),e._writableState.errorEmitted=!0,x(e,i)):(o(i),e._writableState.errorEmitted=!0,x(e,i),P(e,t))}(e,n,i,t,o);else{var a=O(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||C(e,n),i?r.nextTick(T,e,n,a,o):T(e,n,a,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function E(t){var r=this instanceof(o=o||e("./_stream_duplex"));if(!r&&!a.call(E,this))return new E(t);this._writableState=new S(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),c.call(this)}function A(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),P(e,t)}function C(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)o[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;o.allBuffers=c,A(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(A(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final((function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var n=O(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(j,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(E,c),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===E&&e&&e._writableState instanceof S}})):a=function(e){return e instanceof this},E.prototype.pipe=function(){x(this,new g)},E.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,u.isBuffer(i)||i instanceof l);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=k),o.ending?function(e,t){var n=new w;x(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new v:"string"==typeof n||t.objectMode||(o=new p("chunk",["string","Buffer"],n)),!o||(x(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r)),t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,n,i,o);return c}(this,o,s,e,t,n)),a},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||C(this,e))},E.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(e,t,r){r(new m("_write()"))},E.prototype._writev=null,E.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":1064,"./_stream_duplex":1065,"./internal/streams/destroy":1072,"./internal/streams/state":1076,"./internal/streams/stream":1077,_process:952,buffer:475,inherits:807,"util-deprecate":1130}],1070:[function(e,t,r){(function(r){"use strict";var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[d].read();null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(h(r,!1)))}}function m(e){r.nextTick(p,e)}var y=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(t,n){r.nextTick((function(){e[c]?n(e[c]):t(h(void 0,!0))}))}));var n,i=this[l];if(i)n=new Promise(function(e,t){return function(r,n){e.then((function(){t[u]?r(h(void 0,!0)):t[f](r,n)}),n)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[f])}return this[l]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var e=this;return new Promise((function(t,r){e[d].destroy(null,(function(e){e?r(e):t(h(void 0,!0))}))}))})),n),y);t.exports=function(e){var t,r=Object.create(g,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var n=r[d].read();n?(r[l]=null,r[a]=null,r[s]=null,e(h(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[l]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[c]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(h(void 0,!0))),r[u]=!0})),e.on("readable",m.bind(null,r)),r}}).call(this,e("_process"))},{"./end-of-stream":1073,_process:952}],1071:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("buffer").Buffer,s=e("util").inspect,c=s&&s.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,r,n,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,a.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),e}()},{buffer:475,util:442}],1072:[function(e,t,r){(function(e){"use strict";function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(n,a):(a._writableState.errorEmitted=!0,e.nextTick(r,a,t)):e.nextTick(r,a,t):o?(e.nextTick(n,a),o(t)):e.nextTick(n,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,e("_process"))},{_process:952}],1073:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){s=!1,u=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,f=!0,s||o.call(t)},h=function(e){o.call(t,e)},p=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",p)}}},{"../../../errors":1064}],1074:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],1075:[function(e,t,r){"use strict";var n,i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(e){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function u(e){e()}function l(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}t.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,r){var o=r<t.length-1;return c(e,o,r>0,(function(e){n||(n=e),e&&a.forEach(u),o||(a.forEach(u),i(n))}))}));return t.reduce(l)}},{"../../../errors":1064,"./end-of-stream":1073}],1076:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":1064}],1077:[function(e,t,r){arguments[4][771][0].apply(r,arguments)},{dup:771,events:476}],1078:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":1065,"./lib/_stream_passthrough.js":1066,"./lib/_stream_readable.js":1067,"./lib/_stream_transform.js":1068,"./lib/_stream_writable.js":1069,"./lib/internal/streams/end-of-stream.js":1073,"./lib/internal/streams/pipeline.js":1075}],1079:[function(e,t,r){arguments[4][478][0].apply(r,arguments)},{buffer:475,dup:478}],1080:[function(e,t,r){arguments[4][479][0].apply(r,arguments)},{dup:479,"safe-buffer":1079}],1081:[function(e,t,r){var n=e("is-hex-prefixed");t.exports=function(e){return"string"!=typeof e?e:n(e)?e.slice(2):e}},{"is-hex-prefixed":810}],1082:[function(e,t,r){const n=()=>!0,i=["newListener","removeListener"],o=e=>!i.includes(e);t.exports=function(e,t){let r=(t=t||{}).eventFilter||n;if("skipInternal"===r&&(r=o),"function"!=typeof r)throw new Error("createEventEmitterProxy - Invalid eventFilter");let i=e;return new Proxy({},{get:(e,t)=>"setTarget"===t?a:i[t],set:(e,t,r)=>"setTarget"===t?(a=r,!0):(i[t]=r,!0)});function a(e){const t=i;i=e,t.eventNames().filter(r).forEach(r=>{(function(e,t){if(e.rawListeners)return e.rawListeners(t);let r=e._events[t]||[];return Array.isArray(r)||(r=[r]),r.slice()})(t,r).forEach(t=>e.on(r,t))}),t.removeAllListeners()}}},{}],1083:[function(e,t,r){t.exports=function(e){let t=e;return new Proxy({},{get:(e,n)=>"setTarget"===n?r:t[n],set:(e,n,i)=>"setTarget"===n?(r=i,!0):(t[n]=i,!0)});function r(e){t=e}}},{}],1084:[function(e,t,r){const n=e("./createSwappableProxy"),i=e("./createEventEmitterProxy");t.exports={createSwappableProxy:n,createEventEmitterProxy:i}},{"./createEventEmitterProxy":1082,"./createSwappableProxy":1083}],1085:[function(e,t,r){(function(r){var n=e("stream");function i(e,t,i){e=e||function(e){this.queue(e)},t=t||function(){this.queue(null)};var o=!1,a=!1,s=[],c=!1,u=new n;function l(){for(;s.length&&!u.paused;){var e=s.shift();if(null===e)return u.emit("end");u.emit("data",e)}}function f(){u.writable=!1,t.call(u),!u.readable&&u.autoDestroy&&u.destroy()}return u.readable=u.writable=!0,u.paused=!1,u.autoDestroy=!(i&&!1===i.autoDestroy),u.write=function(t){return e.call(this,t),!u.paused},u.queue=u.push=function(e){return c||(null===e&&(c=!0),s.push(e),l()),u},u.on("end",(function(){u.readable=!1,!u.writable&&u.autoDestroy&&r.nextTick((function(){u.destroy()}))})),u.end=function(e){if(!o)return o=!0,arguments.length&&u.write(e),f(),u},u.destroy=function(){if(!a)return a=!0,o=!0,s.length=0,u.writable=u.readable=!1,u.emit("close"),u},u.pause=function(){if(!u.paused)return u.paused=!0,u},u.resume=function(){return u.paused&&(u.paused=!1,u.emit("resume")),l(),u.paused||u.emit("drain"),u},u}t.exports=i,i.through=i}).call(this,e("_process"))},{_process:952,stream:1059}],1086:[function(e,t,r){arguments[4][687][0].apply(r,arguments)},{dup:687}],1087:[function(e,t,r){(function(r){var n=e("readable-stream/transform"),i=e("util").inherits,o=e("xtend");function a(e){n.call(this,e),this._destroyed=!1}function s(e,t,r){r(null,e)}function c(e){return function(t,r,n){return"function"==typeof t&&(n=r,r=t,t={}),"function"!=typeof r&&(r=s),"function"!=typeof n&&(n=null),e(t,r,n)}}i(a,n),a.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;r.nextTick((function(){e&&t.emit("error",e),t.emit("close")}))}},t.exports=c((function(e,t,r){var n=new a(e);return n._transform=t,r&&(n._flush=r),n})),t.exports.ctor=c((function(e,t,r){function n(t){if(!(this instanceof n))return new n(t);this.options=o(e,t),a.call(this,this.options)}return i(n,a),n.prototype._transform=t,r&&(n.prototype._flush=r),n})),t.exports.obj=c((function(e,t,r){var n=new a(o({objectMode:!0,highWaterMark:16},e));return n._transform=t,r&&(n._flush=r),n}))}).call(this,e("_process"))},{_process:952,"readable-stream/transform":980,util:1133,xtend:1086}],1088:[function(e,t,r){(function(t,n){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},c=0;function u(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"==typeof t?t:function(e){var t=c++,n=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"==typeof n?n:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":952,timers:1088}],1089:[function(e,t,r){var n=t.exports=function(e){return new i(e)};function i(e){this.value=e}function o(e,t,r){var n=[],i=[],o=!0;return function e(c){var d=r?a(c):c,h={},p=!0,m={node:d,node_:c,path:[].concat(n),parent:i[i.length-1],parents:i,key:n.slice(-1)[0],isRoot:0===n.length,level:n.length,circular:null,update:function(e,t){m.isRoot||(m.parent.node[m.key]=e),m.node=e,t&&(p=!1)},delete:function(e){delete m.parent.node[m.key],e&&(p=!1)},remove:function(e){u(m.parent.node)?m.parent.node.splice(m.key,1):delete m.parent.node[m.key],e&&(p=!1)},keys:null,before:function(e){h.before=e},after:function(e){h.after=e},pre:function(e){h.pre=e},post:function(e){h.post=e},stop:function(){o=!1},block:function(){p=!1}};if(!o)return m;function y(){if("object"==typeof m.node&&null!==m.node){m.keys&&m.node_===m.node||(m.keys=s(m.node)),m.isLeaf=0==m.keys.length;for(var e=0;e<i.length;e++)if(i[e].node_===c){m.circular=i[e];break}}else m.isLeaf=!0,m.keys=null;m.notLeaf=!m.isLeaf,m.notRoot=!m.isRoot}y();var g=t.call(m,m.node);return void 0!==g&&m.update&&m.update(g),h.before&&h.before.call(m,m.node),p?("object"!=typeof m.node||null===m.node||m.circular||(i.push(m),y(),l(m.keys,(function(t,i){n.push(t),h.pre&&h.pre.call(m,m.node[t],t);var o=e(m.node[t]);r&&f.call(m.node,t)&&(m.node[t]=o.node),o.isLast=i==m.keys.length-1,o.isFirst=0==i,h.post&&h.post.call(m,o),n.pop()})),i.pop()),h.after&&h.after.call(m,m.node),m):m}(e).node}function a(e){if("object"==typeof e&&null!==e){var t;if(u(e))t=[];else if("[object Date]"===c(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===c(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===c(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===c(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===c(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===c(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var r=e.constructor&&e.constructor.prototype||e.__proto__||{},n=function(){};n.prototype=r,t=new n}return l(s(e),(function(r){t[r]=e[r]})),t}return e}i.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!f.call(t,n)){t=void 0;break}t=t[n]}return t},i.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!f.call(t,n))return!1;t=t[n]}return!0},i.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var i=e[n];f.call(r,i)||(r[i]={}),r=r[i]}return r[e[n]]=t,t},i.prototype.map=function(e){return o(this.value,e,!0)},i.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},i.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},i.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},i.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},i.prototype.clone=function(){var e=[],t=[];return function r(n){for(var i=0;i<e.length;i++)if(e[i]===n)return t[i];if("object"==typeof n&&null!==n){var o=a(n);return e.push(n),t.push(o),l(s(n),(function(e){o[e]=r(n[e])})),e.pop(),t.pop(),o}return n}(this.value)};var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};function c(e){return Object.prototype.toString.call(e)}var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)};l(s(i.prototype),(function(e){n[e]=function(t){var r=[].slice.call(arguments,1),n=new i(t);return n[e].apply(n,r)}}));var f=Object.hasOwnProperty||function(e,t){return t in e}},{}],1090:[function(e,t,r){"use strict";r.__esModule=!0,r.NOTIFICATION=r.BLOCK=r.CONNECT=r.ERROR=void 0,r.ERROR="blockchain-error",r.CONNECT="blockchain-connect",r.BLOCK="blockchain-block",r.NOTIFICATION="blockchain-notification"},{}],1091:[function(e,t,r){"use strict";r.__esModule=!0,r.UNREADABLE=r.WAIT_FOR_SELECTION=r.WORD=r.PASSPHRASE_ON_DEVICE=r.PASSPHRASE=r.PIN=r.BUTTON=r.LOADING=r.USED_ELSEWHERE=r.RELEASED=r.ACQUIRED=r.RELEASE=r.ACQUIRE=r.CHANGED=r.DISCONNECT=r.CONNECT_UNACQUIRED=r.CONNECT=void 0,r.CONNECT="device-connect",r.CONNECT_UNACQUIRED="device-connect_unacquired",r.DISCONNECT="device-disconnect",r.CHANGED="device-changed",r.ACQUIRE="device-acquire",r.RELEASE="device-release",r.ACQUIRED="device-acquired",r.RELEASED="device-released",r.USED_ELSEWHERE="device-used_elsewhere",r.LOADING="device-loading",r.BUTTON="button",r.PIN="pin",r.PASSPHRASE="passphrase",r.PASSPHRASE_ON_DEVICE="passphrase_on_device",r.WORD="word",r.WAIT_FOR_SELECTION="device-wait_for_selection",r.UNREADABLE="unreadable-device"},{}],1092:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.NO_COIN_INFO=r.BACKEND_NO_URL=r.WEBUSB_ERROR_MESSAGE=r.INVALID_PIN_ERROR_MESSAGE=r.WRONG_PREVIOUS_SESSION_ERROR_MESSAGE=r.INVALID_STATE=r.CALL_OVERRIDE=r.INITIALIZATION_FAILED=r.DEVICE_USED_ELSEWHERE=r.PERMISSIONS_NOT_GRANTED=r.POPUP_CLOSED=r.INVALID_PARAMETERS=r.DEVICE_CALL_IN_PROGRESS=r.DEVICE_NOT_FOUND=r.WRONG_TRANSPORT_CONFIG=r.NO_TRANSPORT=r.MANAGEMENT_NOT_ALLOWED=r.MANIFEST_NOT_SET=r.BROWSER_NOT_SUPPORTED=r.POPUP_TIMEOUT=r.IFRAME_TIMEOUT=r.IFRAME_INITIALIZED=r.IFRAME_BLOCKED=r.NO_IFRAME=r.invalidParameter=r.TrezorError=void 0;var i=n(e("@babel/runtime/helpers/inheritsLoose")),o=function(e){function t(t,r){var n;return(n=e.call(this,r)||this).code=t,n.message=r,n}return(0,i.default)(t,e),t}((0,n(e("@babel/runtime/helpers/wrapNativeSuper")).default)(Error));r.TrezorError=o;var a=function(e){return new o("Connect_InvalidParameter",e)};r.invalidParameter=a;var s=new o(100,"TrezorConnect not yet initialized");r.NO_IFRAME=s;var c=new o("iframe_blocked","TrezorConnect iframe was blocked");r.IFRAME_BLOCKED=c;var u=new o(101,"TrezorConnect has been already initialized");r.IFRAME_INITIALIZED=u;var l=new o(102,"Iframe timeout");r.IFRAME_TIMEOUT=l;var f=new o(103,"Popup timeout");r.POPUP_TIMEOUT=f;var d=new o(104,"Browser not supported");r.BROWSER_NOT_SUPPORTED=d;var h=new o(105,"Manifest not set. Read more at https://github.com/trezor/connect/blob/develop/docs/index.md");r.MANIFEST_NOT_SET=h;var p=new o(105,"Management method not allowed for this configuration");r.MANAGEMENT_NOT_ALLOWED=p;var m=new o(500,"Transport is missing");r.NO_TRANSPORT=m;var y=new o(5002,"Wrong config response");r.WRONG_TRANSPORT_CONFIG=y;var g=new o(501,"Device not found");r.DEVICE_NOT_FOUND=g;var b=new o(503,"Device call in progress");r.DEVICE_CALL_IN_PROGRESS=b;var v=new o(504,"Invalid parameters");r.INVALID_PARAMETERS=v;var w=new Error("Popup closed");r.POPUP_CLOSED=w;var _=new o(403,"Permissions not granted");r.PERMISSIONS_NOT_GRANTED=_;var x=new o(700,"Device is used in another window");r.DEVICE_USED_ELSEWHERE=x;var k=new o("Failure_Initialize","Initialization failed");r.INITIALIZATION_FAILED=k;var S=new o("Failure_ActionOverride","override");r.CALL_OVERRIDE=S;var E=new o("Failure_PassphraseState","Passphrase is incorrect");r.INVALID_STATE=E,r.WRONG_PREVIOUS_SESSION_ERROR_MESSAGE="wrong previous session",r.INVALID_PIN_ERROR_MESSAGE="PIN invalid",r.WEBUSB_ERROR_MESSAGE="NetworkError: Unable to claim interface.";var A=new o("Backend_init","Url not found");r.BACKEND_NO_URL=A;var T=a("Coin not found.");r.NO_COIN_INFO=T},{"@babel/runtime/helpers/inheritsLoose":134,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/wrapNativeSuper":144}],1093:[function(e,t,r){"use strict";r.__esModule=!0,r.RESPONSE=r.CALL=r.ERROR=r.BOOTSTRAP=void 0,r.BOOTSTRAP="iframe-bootstrap",r.ERROR="iframe-error",r.CALL="iframe-call",r.RESPONSE="iframe-response"},{}],1094:[function(e,t,r){"use strict";r.__esModule=!0,r.BLOCKCHAIN_EVENT=r.RESPONSE_EVENT=r.TRANSPORT_EVENT=r.DEVICE_EVENT=r.UI_EVENT=r.CORE_EVENT=void 0,r.CORE_EVENT="CORE_EVENT",r.UI_EVENT="UI_EVENT",r.DEVICE_EVENT="DEVICE_EVENT",r.TRANSPORT_EVENT="TRANSPORT_EVENT",r.RESPONSE_EVENT="RESPONSE_EVENT",r.BLOCKCHAIN_EVENT="BLOCKCHAIN_EVENT"},{}],1095:[function(e,t,r){"use strict";r.__esModule=!0,r.CLOSE_WINDOW=r.CANCEL_POPUP_REQUEST=r.CLOSED=r.CLOSE=r.HANDSHAKE=r.OPEN_TIMEOUT=r.OPENED=r.LOG=r.EXTENSION_USB_PERMISSIONS=r.EXTENSION_REQUEST=r.BOOTSTRAP=r.INIT=void 0,r.INIT="popup-init",r.BOOTSTRAP="popup-bootstrap",r.EXTENSION_REQUEST="popup-extension_request",r.EXTENSION_USB_PERMISSIONS="open-usb-permissions",r.LOG="popup-log",r.OPENED="popup-opened",r.OPEN_TIMEOUT="popup-open_timeout",r.HANDSHAKE="popup-handshake",r.CLOSE="popup-close",r.CLOSED="popup-closed",r.CANCEL_POPUP_REQUEST="ui-cancel-popup-request",r.CLOSE_WINDOW="window.close"},{}],1096:[function(e,t,r){"use strict";r.__esModule=!0,r.START_PENDING=r.RECONNECT=r.REQUEST=r.STREAM=r.UPDATE=r.ERROR=r.START=void 0,r.START="transport-start",r.ERROR="transport-error",r.UPDATE="transport-update",r.STREAM="transport-stream",r.REQUEST="transport-request_device",r.RECONNECT="transport-reconnect",r.START_PENDING="transport-start_pending"},{}],1097:[function(e,t,r){"use strict";r.__esModule=!0,r.ADDRESS_VALIDATION=r.BUNDLE_PROGRESS=r.LOGIN_CHALLENGE_RESPONSE=r.LOGIN_CHALLENGE_REQUEST=r.CUSTOM_MESSAGE_RESPONSE=r.CUSTOM_MESSAGE_REQUEST=r.CHANGE_SETTINGS=r.RECEIVE_WORD=r.RECEIVE_FEE=r.RECEIVE_ACCOUNT=r.CHANGE_ACCOUNT=r.RECEIVE_DEVICE=r.RECEIVE_PASSPHRASE=r.RECEIVE_PIN=r.RECEIVE_CONFIRMATION=r.RECEIVE_PERMISSION=r.REQUEST_WORD=r.REQUEST_BUTTON=r.INSUFFICIENT_FUNDS=r.UPDATE_CUSTOM_FEE=r.SELECT_FEE=r.SELECT_ACCOUNT=r.SELECT_DEVICE=r.SET_OPERATION=r.LOADING=r.CONNECT=r.INVALID_PASSPHRASE_ACTION=r.INVALID_PASSPHRASE=r.REQUEST_PASSPHRASE_ON_DEVICE=r.REQUEST_PASSPHRASE=r.INVALID_PIN=r.REQUEST_PIN=r.REQUEST_CONFIRMATION=r.REQUEST_PERMISSION=r.CLOSE_UI_WINDOW=r.REQUEST_UI_WINDOW=r.RECEIVE_BROWSER=r.BROWSER_OUTDATED=r.BROWSER_NOT_SUPPORTED=r.DEVICE_NEEDS_BACKUP=r.FIRMWARE_NOT_COMPATIBLE=r.FIRMWARE_NOT_SUPPORTED=r.FIRMWARE_OUTDATED=r.FIRMWARE_OLD=r.SEEDLESS=r.INITIALIZE=r.BOOTLOADER=r.TRANSPORT=r.IFRAME_HANDSHAKE=void 0,r.IFRAME_HANDSHAKE="iframe-handshake",r.TRANSPORT="ui-no_transport",r.BOOTLOADER="ui-device_bootloader_mode",r.INITIALIZE="ui-device_not_initialized",r.SEEDLESS="ui-device_seedless",r.FIRMWARE_OLD="ui-device_firmware_old",r.FIRMWARE_OUTDATED="ui-device_firmware_outdated",r.FIRMWARE_NOT_SUPPORTED="ui-device_firmware_unsupported",r.FIRMWARE_NOT_COMPATIBLE="ui-device_firmware_not_compatible",r.DEVICE_NEEDS_BACKUP="ui-device_needs_backup",r.BROWSER_NOT_SUPPORTED="ui-browser_not_supported",r.BROWSER_OUTDATED="ui-browser_outdated",r.RECEIVE_BROWSER="ui-receive_browser",r.REQUEST_UI_WINDOW="ui-request_window",r.CLOSE_UI_WINDOW="ui-close_window",r.REQUEST_PERMISSION="ui-request_permission",r.REQUEST_CONFIRMATION="ui-request_confirmation",r.REQUEST_PIN="ui-request_pin",r.INVALID_PIN="ui-invalid_pin",r.REQUEST_PASSPHRASE="ui-request_passphrase",r.REQUEST_PASSPHRASE_ON_DEVICE="ui-request_passphrase_on_device",r.INVALID_PASSPHRASE="ui-invalid_passphrase",r.INVALID_PASSPHRASE_ACTION="ui-invalid_passphrase_action",r.CONNECT="ui-connect",r.LOADING="ui-loading",r.SET_OPERATION="ui-set_operation",r.SELECT_DEVICE="ui-select_device",r.SELECT_ACCOUNT="ui-select_account",r.SELECT_FEE="ui-select_fee",r.UPDATE_CUSTOM_FEE="ui-update_custom_fee",r.INSUFFICIENT_FUNDS="ui-insufficient_funds",r.REQUEST_BUTTON="ui-button",r.REQUEST_WORD="ui-request_word",r.RECEIVE_PERMISSION="ui-receive_permission",r.RECEIVE_CONFIRMATION="ui-receive_confirmation",r.RECEIVE_PIN="ui-receive_pin",r.RECEIVE_PASSPHRASE="ui-receive_passphrase",r.RECEIVE_DEVICE="ui-receive_device",r.CHANGE_ACCOUNT="ui-change_account",r.RECEIVE_ACCOUNT="ui-receive_account",r.RECEIVE_FEE="ui-receive_fee",r.RECEIVE_WORD="ui-receive_word",r.CHANGE_SETTINGS="ui-change_settings",r.CUSTOM_MESSAGE_REQUEST="ui-custom_request",r.CUSTOM_MESSAGE_RESPONSE="ui-custom_response",r.LOGIN_CHALLENGE_REQUEST="ui-login_challenge_request",r.LOGIN_CHALLENGE_RESPONSE="ui-login_challenge_response",r.BUNDLE_PROGRESS="ui-bundle_progress",r.ADDRESS_VALIDATION="ui-address_validation"},{}],1098:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.parse=r.DEFAULT_PRIORITY=void 0;var i=n(e("@babel/runtime/helpers/objectSpread")),o="7.0.3".split(".").map((function(e){return parseInt(e)})),a="https://connect.trezor.io/"+o[0]+(o[1]>0?"."+o[1]:"")+"/";r.DEFAULT_PRIORITY=2;var s={configSrc:"data/config.json",version:"7.0.3",debug:!1,origin:null,priority:2,trustedHost:!1,connectSrc:a,iframeSrc:a+"iframe.html",popup:!0,popupSrc:a+"popup.html",webusbSrc:a+"webusb.html",transportReconnect:!1,webusb:!0,pendingTransportEvent:!0,supportedBrowser:"undefined"==typeof navigator||!/Trident|MSIE/.test(navigator.userAgent),extension:null,manifest:null};r.parse=function(e){if(!e)return s;var t,r=(0,i.default)({},s);return e.hasOwnProperty("debug")&&(Array.isArray(e),"boolean"==typeof e.debug?r.debug=e.debug:"string"==typeof e.debug&&(r.debug="true"===e.debug)),"string"==typeof e.connectSrc?r.connectSrc=e.connectSrc:"undefined"!=typeof window&&"string"==typeof window.__TREZOR_CONNECT_SRC&&(r.connectSrc=window.__TREZOR_CONNECT_SRC),r.iframeSrc=r.connectSrc+"iframe.html",r.popupSrc=r.connectSrc+"popup.html",r.webusbSrc=r.connectSrc+"webusb.html","boolean"==typeof e.transportReconnect&&(r.transportReconnect=e.transportReconnect),"boolean"==typeof e.webusb&&(r.webusb=e.webusb),"boolean"==typeof e.popup&&(r.popup=e.popup),"boolean"==typeof e.pendingTransportEvent&&(r.pendingTransportEvent=e.pendingTransportEvent),"undefined"!=typeof window&&"file:"===window.location.protocol&&(r.origin="file://"+window.location.pathname,r.webusb=!1),"string"==typeof e.extension&&(r.extension=e.extension),"object"==typeof e.manifest&&(r.manifest="string"!=typeof(t=e.manifest).email||"string"!=typeof t.appUrl?null:{email:t.email,appUrl:t.appUrl}),s=r}},{"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/objectSpread":139}],1099:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.clearTimeout=r.dispose=r.postMessage=r.init=r.messagePromises=r.error=r.timeout=r.initPromise=r.origin=r.instance=void 0;var i,o,a=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),c=e("../utils/deferred"),u=e("../constants/ui"),l=e("../constants/errors"),f=n(e("./inline-styles"));r.instance=i,r.origin=o;var d=(0,c.create)();r.initPromise=d;var h,p=0;r.timeout=p,r.error=h;var m=0,y={};r.messagePromises=y;var g=function(){var e=(0,s.default)(a.default.mark((function e(t){var n,s,c,f,h;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=document.getElementById("trezorconnect"))?r.instance=i=n:(r.instance=i=document.createElement("iframe"),i.frameBorder="0",i.width="0px",i.height="0px",i.style.position="absolute",i.style.display="none",i.style.border="0px",i.style.width="0px",i.style.height="0px",i.id="trezorconnect"),s="&version="+t.version+"&manifest="+encodeURIComponent(btoa(JSON.stringify(t.manifest))),c=t.iframeSrc+"?"+Date.now()+s,i.setAttribute("src",c),t.webusb&&i.setAttribute("allow","usb"),(f=i.src.match(/^.+\:\/\/[^\/]+/))&&f.length>0&&(r.origin=o=f[0]),r.timeout=p=window.setTimeout((function(){d.reject(l.IFRAME_TIMEOUT)}),1e4),h=function(){if(i){try{var e=i.contentWindow.location.origin;if(!e||"null"===e)return void v()}catch(e){}var r;"undefined"!=typeof chrome&&chrome.runtime&&void 0!==chrome.runtime.onConnect&&(chrome.runtime.onConnect.addListener((function(){})),r=chrome.runtime.id),i.contentWindow.postMessage({type:u.IFRAME_HANDSHAKE,payload:{settings:t,extension:r}},o),i.onload=void 0}else d.reject(l.IFRAME_BLOCKED)},i.attachEvent?i.attachEvent("onload",h):i.onload=h,document.body&&(document.body.appendChild(i),b()),e.prev=12,e.next=15,d.promise;case 15:e.next=20;break;case 17:throw e.prev=17,e.t0=e.catch(12),e.t0.message||e.t0;case 20:return e.prev=20,window.clearTimeout(p),r.timeout=p=0,e.finish(20);case 24:case"end":return e.stop()}}),e,this,[[12,17,20,24]])})));return function(t){return e.apply(this,arguments)}}();r.init=g;var b=function(){if(!i)throw l.IFRAME_BLOCKED;var e=i.ownerDocument,t=e.head||e.getElementsByTagName("head")[0],r=document.createElement("style");r.setAttribute("type","text/css"),r.setAttribute("id","TrezorConnectStylesheet"),r.styleSheet?r.styleSheet.cssText=f.default:r.appendChild(document.createTextNode(f.default)),t.append(r)},v=function(){window.clearTimeout(p),r.error=h=l.IFRAME_BLOCKED.message,w(),d.reject(l.IFRAME_BLOCKED)};r.postMessage=function(e,t){if(void 0===t&&(t=!0),!i)throw l.IFRAME_BLOCKED;return t?(m++,e.id=m,y[m]=(0,c.create)(),i.contentWindow.postMessage(e,o),y[m].promise):(i.contentWindow.postMessage(e,o),null)};var w=function(){if(i&&i.parentNode)try{i.parentNode.removeChild(i)}catch(e){}r.instance=i=null,r.timeout=p=0};r.dispose=w,r.clearTimeout=function(){window.clearTimeout(p)}},{"../constants/errors":1092,"../constants/ui":1097,"../utils/deferred":1119,"./inline-styles":1100,"@babel/runtime/helpers/asyncToGenerator":129,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/regenerator":146}],1100:[function(e,t,r){"use strict";r.__esModule=!0,r.default=void 0,r.default='.trezorconnect-container{position:fixed!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-orient:vertical!important;-webkit-box-direction:normal!important;-webkit-flex-direction:column!important;-ms-flex-direction:column!important;flex-direction:column!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important;z-index:10000!important;width:100%!important;height:100%!important;top:0!important;left:0!important;background:rgba(0,0,0,.35)!important;overflow:auto!important;padding:20px!important;margin:0!important}.trezorconnect-container .trezorconnect-window{position:relative!important;display:block!important;width:370px!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;margin:auto!important;border-radius:3px!important;background-color:#fff!important;text-align:center!important;overflow:hidden!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head{text-align:left;padding:12px 24px!important;display:-webkit-box!important;display:-webkit-flex!important;display:-ms-flexbox!important;display:flex!important;-webkit-box-align:center!important;-webkit-align-items:center!important;-ms-flex-align:center!important;align-items:center!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-logo{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close{cursor:pointer!important;height:24px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close svg{fill:#757575;-webkit-transition:fill .3s ease-in-out!important;transition:fill .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-head .trezorconnect-close:hover svg{fill:#494949}.trezorconnect-container .trezorconnect-window .trezorconnect-body{padding:24px 24px 32px!important;background:#FBFBFB!important;border-top:1px solid #EBEBEB}.trezorconnect-container .trezorconnect-window .trezorconnect-body h3{color:#505050!important;font-size:16px!important;font-weight:500!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body p{margin:8px 0 24px!important;font-weight:400!important;color:#A9A9A9!important;font-size:12px!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button{width:100%!important;padding:12px 24px!important;margin:0!important;border-radius:3px!important;font-size:14px!important;font-weight:300!important;cursor:pointer!important;background:#01B757!important;color:#fff!important;border:0!important;-webkit-transition:background-color .3s ease-in-out!important;transition:background-color .3s ease-in-out!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:hover{background-color:#00AB51!important}.trezorconnect-container .trezorconnect-window .trezorconnect-body button:active{background-color:#009546!important}/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlucHV0IiwiJHN0ZGluIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNBLHlCQUNJLFNBQUEsZ0JBQ0EsUUFBQSxzQkFDQSxRQUFBLHVCQUNBLFFBQUEsc0JBRUEsUUFBQSxlQUNBLG1CQUFBLG1CQUNBLHNCQUFBLGlCQUNBLHVCQUFBLGlCQUNBLG1CQUFBLGlCQUNBLGVBQUEsaUJBRUEsa0JBQUEsaUJBQ0Esb0JBQUEsaUJBQ0EsZUFBQSxpQkNmTSxZQUFhLGlCREFyQixRQUFTLGdCQWtCSCxNQUFBLGVBQ0EsT0FBQSxlQUNBLElBQUEsWUFDQSxLQUFBLFlBQ0EsV0FBQSwwQkFDQSxTQUFBLGVBQ0EsUUFBQSxlQUNBLE9BQUEsWUNkUiwrQ0RYRSxTQUFVLG1CQTZCQSxRQUFBLGdCQUNBLE1BQUEsZ0JBQ0EsWUFBQSxjQUFBLG1CQUFBLFdBQUEsT0FBQSxpQkFBQSxNQUFBLHFCQUNBLE9BQUEsZUNmVixjQUFlLGNEakJmLGlCQWlCRSxlQWtCWSxXQUFBLGlCQ2ZkLFNBQVUsaUJEbUJJLG1FQUNBLFdBQUEsS0NoQmQsUUFBUyxLQUFLLGVEeEJkLFFBQVMsc0JBMENTLFFBQUEsdUJBQ0EsUUFBQSxzQkNmbEIsUUFBUyxlRGlCSyxrQkE1QlosaUJBOEJvQixvQkFBQSxpQkNoQmxCLGVBQWdCLGlCRC9CWixZQWlCTixpQkFzQ1EsdUZBQ0EsaUJBQUEsRUNwQlYsYUFBYyxFRHBDVixTQUFVLEVBMkRBLEtBQUEsRUFFQSx3RkNwQmQsT0FBUSxrQkR6Q1IsT0FBUSxlQWlFTSw0RkFDQSxLQUFBLFFBQ0EsbUJBQUEsS0FBQSxJQUFBLHNCQ3BCZCxXQUFZLEtBQUssSUFBSyxzQkR3QlIsa0dBQ0EsS0FBQSxRQUVBLG1FQUNBLFFBQUEsS0FBQSxLQUFBLGVBQ0EsV0FBQSxrQkFDQSxXQUFBLElBQUEsTUFBQSxRQUVBLHNFQUNBLE1BQUEsa0JBQ0EsVUFBQSxlQ3JCZCxZQUFhLGNEd0JLLHFFQ3JCbEIsT0FBUSxJQUFJLEVBQUksZUR3QkYsWUFBQSxjQUNJLE1BQUEsa0JDdEJsQixVQUFXLGVBRWIsMEVBQ0UsTUFBTyxlQUNQLFFBQVMsS0FBSyxlQUNkLE9BQVEsWUFDUixjQUFlLGNBQ2YsVUFBVyxlQUNYLFlBQWEsY0FDYixPQUFRLGtCQUNSLFdBQVksa0JBQ1osTUFBTyxlQUNQLE9BQVEsWUFDUixtQkFBb0IsaUJBQWlCLElBQUssc0JBQzFDLFdBQVksaUJBQWlCLElBQUssc0JBRXBDLGdGQUNFLGlCQUFrQixrQkFFcEIsaUZBQ0UsaUJBQWtCIn0= */'},{}],1101:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),i=e("@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0;var o={UI_EVENT:!0,DEVICE_EVENT:!0,RESPONSE_EVENT:!0,TRANSPORT_EVENT:!0,BLOCKCHAIN_EVENT:!0,TRANSPORT:!0,UI:!0,DEVICE:!0,BLOCKCHAIN:!0};r.BLOCKCHAIN=r.DEVICE=r.UI=r.TRANSPORT=r.default=void 0;var a=i(e("@babel/runtime/helpers/objectSpread")),s=i(e("@babel/runtime/helpers/defineProperty")),c=i(e("@babel/runtime/regenerator")),u=i(e("@babel/runtime/helpers/asyncToGenerator")),l=i(e("events")),f=e("./constants");r.UI_EVENT=f.UI_EVENT,r.DEVICE_EVENT=f.DEVICE_EVENT,r.RESPONSE_EVENT=f.RESPONSE_EVENT,r.TRANSPORT_EVENT=f.TRANSPORT_EVENT,r.BLOCKCHAIN_EVENT=f.BLOCKCHAIN_EVENT;var d=n(e("./constants/transport"));r.TRANSPORT=d;var h=n(e("./constants/popup")),p=n(e("./constants/iframe")),m=n(e("./constants/ui"));r.UI=m;var y=n(e("./constants/device"));r.DEVICE=y;var g=n(e("./constants/blockchain"));r.BLOCKCHAIN=g;var b=n(e("./constants/errors")),v=i(e("./popup/PopupManager")),w=n(e("./iframe/builder")),_=i(e("./webusb/button")),x=n(e("./utils/debug")),k=e("./message"),S=e("./data/ConnectSettings"),E=(n(e("./types")),e("./types/blockchainEvent"));Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||(r[e]=E[e]))}));var A=e("./types/account");Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||(r[e]=A[e]))}));var T,C,O=new l.default,j=(0,x.init)("[trezor-connect.js]"),P=function(){var e=new v.default(T);return e.on(h.CLOSED,(function(){w.postMessage({type:h.CLOSED},!1)})),e},M=function(e){if(e.origin===w.origin){var t=(0,k.parseMessage)(e.data),r=t.id||0,n=t.event,i=t.type,o=t.payload;switch(j.log("handleMessage",t),n){case f.RESPONSE_EVENT:w.messagePromises[r]?(delete t.type,delete t.event,w.messagePromises[r].resolve(t),delete w.messagePromises[r]):j.warn("Unknown message id "+r);break;case f.DEVICE_EVENT:case f.TRANSPORT_EVENT:case f.BLOCKCHAIN_EVENT:O.emit(n,t),O.emit(i,o);break;case f.UI_EVENT:if(i===p.BOOTSTRAP){w.clearTimeout();break}if(i===h.BOOTSTRAP){C.cancelOpenTimeout();break}O.emit(n,t),O.emit(i,o),i===m.IFRAME_HANDSHAKE?o.error?w.initPromise.reject(new Error(o.error)):(C.setBroadcast(o.broadcast),w.initPromise.resolve()):i===h.CANCEL_POPUP_REQUEST?C.cancel():i===m.CLOSE_UI_WINDOW&&C.close();break;default:j.log("Undefined message",n,e)}}},I=function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===t&&(t={}),!w.instance){e.next=3;break}throw b.IFRAME_INITIALIZED;case 3:if(T||(T=(0,S.parse)(t)),T.manifest){e.next=6;break}throw b.MANIFEST_NOT_SET;case 6:if(T.supportedBrowser){e.next=8;break}throw b.BROWSER_NOT_SUPPORTED;case 8:return C||(C=P()),j.enabled=T.debug,window.addEventListener("message",M),window.addEventListener("beforeunload",(function(){C&&C.onBeforeUnload(),w.dispose()})),e.next=14,w.init(T);case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),N=function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w.instance||w.timeout){e.next=19;break}if((T=(0,S.parse)(T)).manifest){e.next=4;break}return e.abrupt("return",{success:!1,payload:{error:b.MANIFEST_NOT_SET.message}});case 4:if(T.supportedBrowser){e.next=6;break}return e.abrupt("return",{success:!1,payload:{error:b.BROWSER_NOT_SUPPORTED.message}});case 6:return(C=P()).request(!0),e.prev=8,e.next=11,I(T);case 11:return e.next=13,C.resolveLazyLoad();case 13:e.next=19;break;case 15:return e.prev=15,e.t0=e.catch(8),C.close(),e.abrupt("return",{success:!1,payload:{error:e.t0}});case 19:if(!w.timeout){e.next=23;break}return e.abrupt("return",{success:!1,payload:{error:b.NO_IFRAME.message}});case 23:if(!w.error){e.next=25;break}return e.abrupt("return",{success:!1,payload:{error:w.error}});case 25:return T.popup&&C.request(),e.prev=26,e.next=29,w.postMessage({type:p.CALL,payload:t});case 29:if(!(r=e.sent)){e.next=35;break}return r.payload.error!==b.DEVICE_CALL_IN_PROGRESS.message&&C.unlock(),e.abrupt("return",r);case 35:return C.unlock(),e.abrupt("return",{success:!1,payload:{error:"No response from iframe"}});case 37:e.next=43;break;case 39:return e.prev=39,e.t1=e.catch(26),j.error("__call error",e.t1),e.abrupt("return",e.t1);case 43:case"end":return e.stop()}}),e,this,[[8,15],[26,39]])})));return function(t){return e.apply(this,arguments)}}(),B=function(e){w.postMessage({event:f.UI_EVENT,type:m.CUSTOM_MESSAGE_RESPONSE,payload:e})},R=function(){};(0,s.default)(R,"manifest",(function(e){T=(0,S.parse)({manifest:e})})),(0,s.default)(R,"getSettings",(0,u.default)(c.default.mark((function e(){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w.instance){e.next=2;break}return e.abrupt("return",{success:!1,payload:{error:"Iframe not initialized yet, you need to call TrezorConnect.init or any other method first."}});case 2:return e.next=4,N({method:"getSettings"});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)})))),(0,s.default)(R,"init",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"on",(function(e,t){O.on(e,t)})),(0,s.default)(R,"off",(function(e,t){O.removeListener(e,t)})),(0,s.default)(R,"uiResponse",(function(e){w.postMessage((0,a.default)({event:f.UI_EVENT},e))})),(0,s.default)(R,"changeSettings",(function(e){var t=(0,S.parse)(e);j.enabled=t.debug,w.postMessage({type:m.CHANGE_SETTINGS,payload:t},!1)})),(0,s.default)(R,"blockchainDisconnect",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"blockchainDisconnect"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"blockchainEstimateFee",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"blockchainEstimateFee"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"blockchainSubscribe",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"blockchainSubscribe"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"blockchainUnsubscribe",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"blockchainUnsubscribe"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"customMessage",function(){var e=(0,u.default)(c.default.mark((function e(t){var r,n,i;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof t.callback){e.next=2;break}return e.abrupt("return",{success:!1,payload:{error:'Parameter "callback" is not a function'}});case 2:return r=t.callback,delete t.callback,n=function(){var e=(0,u.default)(c.default.mark((function e(t){var n,i;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.data)||n.type!==m.CUSTOM_MESSAGE_REQUEST){e.next=6;break}return e.next=4,r(n.payload);case 4:i=e.sent,B(i||{message:"release"});case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),window.addEventListener("message",n,!1),e.next=8,N((0,a.default)({method:"customMessage"},t));case 8:return i=e.sent,window.removeEventListener("message",n),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"requestLogin",function(){var e=(0,u.default)(c.default.mark((function e(t){var r,n,i;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t.callback){e.next=12;break}return r=t.callback,delete t.callback,n=function(){var e=(0,u.default)(c.default.mark((function e(t){var n,i;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.data)||n.type!==m.LOGIN_CHALLENGE_REQUEST){e.next=13;break}return e.prev=2,e.next=5,r();case 5:i=e.sent,w.postMessage({event:f.UI_EVENT,type:m.LOGIN_CHALLENGE_RESPONSE,payload:i}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.warn("TrezorConnect.requestLogin: callback error",e.t0),w.postMessage({event:f.UI_EVENT,type:m.LOGIN_CHALLENGE_RESPONSE,payload:e.t0.message});case 13:case"end":return e.stop()}}),e,this,[[2,9]])})));return function(t){return e.apply(this,arguments)}}(),window.addEventListener("message",n,!1),e.next=7,N((0,a.default)({method:"requestLogin"},t,{asyncChallenge:!0}));case 7:return i=e.sent,window.removeEventListener("message",n),e.abrupt("return",i);case 12:return e.next=14,N((0,a.default)({method:"requestLogin"},t));case 14:return e.abrupt("return",e.sent);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"resetDevice",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"resetDevice"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"cardanoGetAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"cardanoGetAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"cardanoGetPublicKey",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"cardanoGetPublicKey"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"cardanoSignTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"cardanoSignTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"cipherKeyValue",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"cipherKeyValue"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"composeTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"composeTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"debugLinkDecision",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"debugLinkDecision"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"debugLinkGetState",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"debugLinkGetState"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"ethereumGetAccountInfo",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"ethereumGetAccountInfo"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"ethereumGetAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"ethereumGetAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"ethereumGetPublicKey",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"ethereumGetPublicKey"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"ethereumSignMessage",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"ethereumSignMessage"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"ethereumSignTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"ethereumSignTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"ethereumVerifyMessage",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"ethereumVerifyMessage"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"getAccountInfo",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"getAccountInfo"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"getAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"getAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"getDeviceState",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"getDeviceState"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"getFeatures",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"getFeatures"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"getPublicKey",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"getPublicKey"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"liskGetAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"liskGetAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"liskGetPublicKey",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"liskGetPublicKey"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"liskSignMessage",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"liskSignMessage"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"liskSignTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"liskSignTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"liskVerifyMessage",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"liskVerifyMessage"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"nemGetAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"nemGetAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"nemSignTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"nemSignTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"pushTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"pushTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"rippleGetAccountInfo",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"rippleGetAccountInfo"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"rippleGetAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"rippleGetAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"rippleSignTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"rippleSignTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"signMessage",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"signMessage"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"signTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"signTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"stellarGetAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"stellarGetAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"stellarSignTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"stellarSignTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"tezosGetAddress",function(){var e=(0,u.default)(c.default.mark((function e(t){var r;return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=O.listenerCount(m.ADDRESS_VALIDATION)>0,e.next=3,N((0,a.default)({method:"tezosGetAddress"},t,{useEventListener:r}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"tezosGetPublicKey",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"tezosGetPublicKey"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"tezosSignTransaction",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"tezosSignTransaction"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"verifyMessage",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"verifyMessage"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"wipeDevice",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"wipeDevice"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"applyFlags",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"applyFlags"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"applySettings",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"applySettings"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"backupDevice",(0,u.default)(c.default.mark((function e(){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N({method:"backupDevice"});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})))),(0,s.default)(R,"changePin",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"changePin"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"firmwareErase",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"firmwareErase"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"firmwareUpload",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"firmwareUpload"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"recoveryDevice",function(){var e=(0,u.default)(c.default.mark((function e(t){return c.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,N((0,a.default)({method:"recoveryDevice"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),(0,s.default)(R,"dispose",(function(){w.dispose(),C&&C.close()})),(0,s.default)(R,"cancel",(function(){C&&C.emit(h.CLOSED)})),(0,s.default)(R,"renderWebUSBButton",(function(e){(0,_.default)(e,T.webusbSrc,w.origin)}));var D=R;r.default=D},{"./constants":1094,"./constants/blockchain":1090,"./constants/device":1091,"./constants/errors":1092,"./constants/iframe":1093,"./constants/popup":1095,"./constants/transport":1096,"./constants/ui":1097,"./data/ConnectSettings":1098,"./iframe/builder":1099,"./message":1102,"./popup/PopupManager":1103,"./types":1110,"./types/account":1105,"./types/blockchainEvent":1106,"./utils/debug":1118,"./webusb/button":1121,"@babel/runtime/helpers/asyncToGenerator":129,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/interopRequireWildcard":136,"@babel/runtime/helpers/objectSpread":139,"@babel/runtime/regenerator":146,events:476}],1102:[function(e,t,r){"use strict";r.__esModule=!0,r.parseMessage=void 0,r.parseMessage=function(e){var t={event:e.event,type:e.type,payload:e.payload};return"number"==typeof e.id&&(t.id=e.id),"boolean"==typeof e.success&&(t.success=e.success),t}},{}],1103:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),i=e("@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.default=void 0;var o=i(e("@babel/runtime/regenerator")),a=i(e("@babel/runtime/helpers/asyncToGenerator")),s=i(e("@babel/runtime/helpers/inheritsLoose")),c=i(e("@babel/runtime/helpers/assertThisInitialized")),u=i(e("@babel/runtime/helpers/defineProperty")),l=i(e("events")),f=n(e("../constants/popup")),d=n(e("../constants/errors")),h=e("./showPopupRequest"),p=e("../utils/networkUtils"),m=e("../utils/deferred"),y=function(e){function t(t){var r;return r=e.call(this)||this,(0,u.default)((0,c.default)((0,c.default)(r)),"requestTimeout",0),(0,u.default)((0,c.default)((0,c.default)(r)),"closeInterval",0),(0,u.default)((0,c.default)((0,c.default)(r)),"extension",!1),(0,u.default)((0,c.default)((0,c.default)(r)),"extensionTabId",0),r.settings=t,r.src=t.popupSrc,r.origin=(0,p.getOrigin)(t.popupSrc),r.handleLazyLoading=r.handleLazyLoading.bind((0,c.default)((0,c.default)(r))),r.extension="undefined"!=typeof chrome&&chrome.runtime&&void 0!==chrome.runtime.onConnect,r.extension&&(r.handleExtensionConnect=r.handleExtensionConnect.bind((0,c.default)((0,c.default)(r))),r.handleExtensionMessage=r.handleExtensionMessage.bind((0,c.default)((0,c.default)(r))),chrome.runtime.onConnect.addListener(r.handleExtensionConnect)),r}(0,s.default)(t,e);var r=t.prototype;return r.request=function(e){var t=this;if(void 0===e&&(e=!1),this.locked)this._window&&(this.extension?chrome.tabs.update(this._window.id,{active:!0}):this._window.focus());else{this.lazyLoad=e?(0,m.create)(f.INIT):null,this.lazyLoad&&(this.extension||window.addEventListener("message",this.handleLazyLoading,!1));var r=this.open.bind(this);this.locked=!0,this.settings.supportedBrowser?this.requestTimeout=window.setTimeout((function(){t.requestTimeout=0,r()}),e||this.extension?1:850):r()}},r.cancel=function(){this.close()},r.unlock=function(){this.locked=!1},r.open=function(){var e=this;this.settings.supportedBrowser?(this.openWrapper(this.lazyLoad?this.src+"#loading":this.src),this.closeInterval=window.setInterval((function(){e._window&&(e.extension?chrome.tabs.get(e._window.id,(function(t){t||(e.close(),e.emit(f.CLOSED))})):e._window.closed&&(e.close(),e.emit(f.CLOSED)))}),500),this.openTimeout=window.setTimeout((function(){e._window&&!e._window.closed||(e.close(),(0,h.showPopupRequest)(e.open.bind(e),(function(){e.emit(f.CLOSED)})))}),2e3)):this.openWrapper(this.src+"#unsupported")},r.openWrapper=function(e){var t=this;this.extension?chrome.windows.getCurrent(null,(function(r){"normal"!==r.type?chrome.windows.create({url:e},(function(e){chrome.tabs.query({windowId:e.id,active:!0},(function(e){t._window=e[0]}))})):chrome.tabs.query({currentWindow:!0,active:!0},(function(r){t.extensionTabId=r[0].id,chrome.tabs.create({url:e,index:r[0].index+1},(function(e){t._window=e}))}))})):(this._window=window.open("","_blank"),this._window&&(this._window.location.href=e))},r.handleExtensionConnect=function(e){if("trezor-connect"===e.name){if(!this._window||this._window&&this._window.id!==e.sender.tab.id)return void e.disconnect();this.extensionPort=e,this.extensionPort.onMessage.addListener(this.handleExtensionMessage)}else"trezor-usb-permissions"===e.name&&e.postMessage({broadcast:this.broadcast})},r.handleExtensionMessage=function(e){this.extensionPort&&(e===f.EXTENSION_REQUEST?this.extensionPort.postMessage({type:f.EXTENSION_REQUEST,broadcast:this.broadcast}):e===f.INIT&&this.lazyLoad?this.lazyLoad.resolve(!0):e===f.EXTENSION_USB_PERMISSIONS?chrome.tabs.query({currentWindow:!0,active:!0},(function(e){chrome.tabs.create({url:"trezor-usb-permissions.html",index:e[0].index+1},(function(e){}))})):e===f.CLOSE_WINDOW&&(this.emit(f.CLOSED),this.close()))},r.setBroadcast=function(e){this.broadcast=e},r.handleLazyLoading=function(e){this.lazyLoad&&e.data&&e.data===f.INIT&&(this.lazyLoad.resolve(!0),window.removeEventListener("message",this.handleLazyLoading,!1))},r.resolveLazyLoad=function(){var e=(0,a.default)(o.default.mark((function e(){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.lazyLoad){e.next=5;break}return e.next=3,this.lazyLoad.promise;case 3:e.next=6;break;case 5:throw d.POPUP_CLOSED.message;case 6:this.extension?this.extensionPort&&this.extensionPort.postMessage({type:f.INIT}):this._window&&this._window.postMessage({type:f.INIT},this.origin);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}(),r.close=function(){this.locked=!1,this.requestTimeout&&(window.clearTimeout(this.requestTimeout),this.requestTimeout=0),this.openTimeout&&(window.clearTimeout(this.openTimeout),this.openTimeout=0),this.closeInterval&&(window.clearInterval(this.closeInterval),this.closeInterval=0),this.extensionPort&&(this.extensionPort.disconnect(),this.extensionPort=null),this.extensionTabId&&(chrome.tabs.update(this.extensionTabId,{active:!0}),this.extensionTabId=0),this.lazyLoad&&(this.lazyLoad=null),this._window&&(this.extension?chrome.tabs.remove(this._window.id):this._window.close(),this._window=null)},r.postMessage=function(e){var t=this;if(!this.requestTimeout)return!this._window&&"ui_request_window"!==e.type&&this.openTimeout?(this.close(),void(0,h.showPopupRequest)(this.open.bind(this),(function(){t.emit(f.CLOSED)}))):void(this._window&&this._window.postMessage(e,this.origin))},r.onBeforeUnload=function(){this.close()},r.cancelOpenTimeout=function(){window.clearTimeout(this.openTimeout)},t}(l.default);r.default=y},{"../constants/errors":1092,"../constants/popup":1095,"../utils/deferred":1119,"../utils/networkUtils":1120,"./showPopupRequest":1104,"@babel/runtime/helpers/assertThisInitialized":128,"@babel/runtime/helpers/asyncToGenerator":129,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/inheritsLoose":134,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/interopRequireWildcard":136,"@babel/runtime/regenerator":146,events:476}],1104:[function(e,t,r){"use strict";r.__esModule=!0,r.showPopupRequest=void 0;var n="TrezorConnectInteractionLayer";r.showPopupRequest=function(e,t){if(!document.getElementById(n)){var r=document.createElement("div");r.id=n,r.className="trezorconnect-container",r.innerHTML='\n <div class="trezorconnect-container" id="TrezorConnectInteractionLayer">\n <div class="trezorconnect-window">\n <div class="trezorconnect-head">\n <svg class="trezorconnect-logo" x="0px" y="0px" viewBox="0 0 163.7 41.9" width="78px" height="20px" preserveAspectRatio="xMinYMin meet">\n <polygon points="101.1,12.8 118.2,12.8 118.2,17.3 108.9,29.9 118.2,29.9 118.2,35.2 101.1,35.2 101.1,30.7 110.4,18.1 101.1,18.1"/>\n <path d="M158.8,26.9c2.1-0.8,4.3-2.9,4.3-6.6c0-4.5-3.1-7.4-7.7-7.4h-10.5v22.3h5.8v-7.5h2.2l4.1,7.5h6.7L158.8,26.9z M154.7,22.5 h-4V18h4c1.5,0,2.5,0.9,2.5,2.2C157.2,21.6,156.2,22.5,154.7,22.5z"/>\n <path d="M130.8,12.5c-6.8,0-11.6,4.9-11.6,11.5s4.9,11.5,11.6,11.5s11.7-4.9,11.7-11.5S137.6,12.5,130.8,12.5z M130.8,30.3 c-3.4,0-5.7-2.6-5.7-6.3c0-3.8,2.3-6.3,5.7-6.3c3.4,0,5.8,2.6,5.8,6.3C136.6,27.7,134.2,30.3,130.8,30.3z"/>\n <polygon points="82.1,12.8 98.3,12.8 98.3,18 87.9,18 87.9,21.3 98,21.3 98,26.4 87.9,26.4 87.9,30 98.3,30 98.3,35.2 82.1,35.2 "/>\n <path d="M24.6,9.7C24.6,4.4,20,0,14.4,0S4.2,4.4,4.2,9.7v3.1H0v22.3h0l14.4,6.7l14.4-6.7h0V12.9h-4.2V9.7z M9.4,9.7 c0-2.5,2.2-4.5,5-4.5s5,2,5,4.5v3.1H9.4V9.7z M23,31.5l-8.6,4l-8.6-4V18.1H23V31.5z"/>\n <path d="M79.4,20.3c0-4.5-3.1-7.4-7.7-7.4H61.2v22.3H67v-7.5h2.2l4.1,7.5H80l-4.9-8.3C77.2,26.1,79.4,24,79.4,20.3z M71,22.5h-4V18 h4c1.5,0,2.5,0.9,2.5,2.2C73.5,21.6,72.5,22.5,71,22.5z"/>\n <polygon points="40.5,12.8 58.6,12.8 58.6,18.1 52.4,18.1 52.4,35.2 46.6,35.2 46.6,18.1 40.5,18.1 "/>\n </svg>\n <div class="trezorconnect-close">\n <svg x="0px" y="0px" viewBox="24 24 60 60" width="24px" height="24px" preserveAspectRatio="xMinYMin meet">\n <polygon class="st0" points="40,67.9 42.1,70 55,57.1 67.9,70 70,67.9 57.1,55 70,42.1 67.9,40 55,52.9 42.1,40 40,42.1 52.9,55 "/>\n </svg>\n </div>\n </div>\n <div class="trezorconnect-body">\n <h3>Popup was blocked</h3>\n <p>Please click to “Continue” to open popup manually</p>\n <button class="trezorconnect-open">Continue</button>\n </div>\n </div>\n </div>\n',document.body&&document.body.appendChild(r),r.getElementsByClassName("trezorconnect-open")[0].onclick=function(){e(),document.body&&document.body.removeChild(r)},r.getElementsByClassName("trezorconnect-close")[0].onclick=function(){t(),document.body&&document.body.removeChild(r)}}}},{}],1105:[function(e,t,r){},{}],1106:[function(e,t,r){"use strict";e("@babel/runtime/helpers/interopRequireWildcard")(e("../constants/blockchain"))},{"../constants/blockchain":1090,"@babel/runtime/helpers/interopRequireWildcard":136}],1107:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1108:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1109:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1110:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard");r.__esModule=!0,e("../constants"),n(e("../constants/transport")),n(e("../constants/popup")),n(e("../constants/ui")),n(e("../constants/device")),n(e("./params"));var i=n(e("./response"));Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(r[e]=i[e])})),n(e("./cardano")),n(e("./ripple")),n(e("./ethereum")),n(e("./nem")),n(e("./stellar")),n(e("./lisk")),n(e("./tezos"));var o=e("./coinInfo");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(r[e]=o[e])}))},{"../constants":1094,"../constants/device":1091,"../constants/popup":1095,"../constants/transport":1096,"../constants/ui":1097,"./cardano":1107,"./coinInfo":1108,"./ethereum":1109,"./lisk":1111,"./nem":1112,"./params":1113,"./response":1114,"./ripple":1115,"./stellar":1116,"./tezos":1117,"@babel/runtime/helpers/interopRequireWildcard":136}],1111:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1112:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1113:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1114:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1115:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1116:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1117:[function(e,t,r){arguments[4][1105][0].apply(r,arguments)},{dup:1105}],1118:[function(e,t,r){(function(e){"use strict";r.__esModule=!0,r.popupConsole=r.enableByPrefix=r.getLog=r.enable=r.init=r.default=void 0;var t={DescriptorStream:"color: #77ab59",DeviceList:"color: #36802d",Device:"color: #bada55",Core:"color: #c9df8a",IFrame:"color: #FFFFFF; background: #f4a742;",Popup:"color: #f48a00"},n=function(){function e(e,r){void 0===r&&(r=!1),this.prefix=e,this.enabled=r,this.messages=[],this.css=t[e]||"color: #000000; background: #FFFFFF;"}var r=e.prototype;return r.addMessage=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];this.messages.push({level:e,prefix:t,message:n,timestamp:(new Date).getTime()})},r.log=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;this.addMessage.apply(this,["log",this.prefix].concat(t)),this.enabled&&(n=console).log.apply(n,[this.prefix].concat(t))},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;this.addMessage.apply(this,["error",this.prefix].concat(t)),this.enabled&&(n=console).error.apply(n,[this.prefix].concat(t))},r.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;this.addMessage.apply(this,["warn",this.prefix].concat(t)),this.enabled&&(n=console).warn.apply(n,[this.prefix].concat(t))},r.debug=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;this.addMessage.apply(this,["debug",this.prefix].concat(t)),this.enabled&&(n=console).log.apply(n,["%c"+this.prefix,this.css].concat(t))},e}();r.default=n;var i={};r.init=function(e,t){var r=new n(e,"boolean"==typeof t&&t);return i[e]=r,r},r.enable=function(e){for(var t=Object.keys(i),r=0;r<t.length;r++){var n=t[r];i[n].enabled=e}},r.getLog=function(e){for(var t=[],r=Object.keys(i),n=0;n<r.length;n++){var o=r[n];t=t.concat(i[o].messages)}return t.sort((function(e,t){return e.timestamp-t.timestamp})),t},r.enableByPrefix=function(e,t){i[e]&&(i[e].enabled=t)},r.popupConsole=function(t,r){var n=e.console,i={error:n.error,info:n.info,debug:n.debug,log:n.log},o=[],a=function(e,i){return function(){for(var a=(new Date).toUTCString(),s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return o.push([i,a].concat(c)),r.apply(void 0,[{type:t,level:i,time:a,args:JSON.stringify(c)}]),e.apply(n,c)}};for(var s in i)n[s]=a(i[s],s)}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],1119:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.create=function(e,t){var r,n=function(e){},a=function(e){},s=new Promise(function(){var t=(0,o.default)(i.default.mark((function t(o,s){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=o,a=s,"function"!=typeof e){t.next=11;break}return t.prev=3,t.next=6,e();case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(3),s(t.t0);case 11:"string"==typeof e&&(r=e);case 12:case"end":return t.stop()}}),t,this,[[3,8]])})));return function(e,r){return t.apply(this,arguments)}}());return{id:r,device:t,resolve:n,reject:a,promise:s}},r.createAsync=function(e){var t=function(e){},r=function(e){},n=new Promise((function(e,n){t=e,r=n})),a=function(){var t=(0,o.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}();return{resolve:t,reject:r,promise:n,run:function(){return a(),n}}},r.resolveTimeoutPromise=function(e,t){return new Promise((function(r){setTimeout((function(){r(t)}),e)}))},r.rejectTimeoutPromise=function(e,t){return new Promise((function(r,n){setTimeout((function(){n(t)}),e)}))};var i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"))},{"@babel/runtime/helpers/asyncToGenerator":129,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/regenerator":146}],1120:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");r.__esModule=!0,r.getOrigin=r.httpRequest=void 0;var i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));e("whatwg-fetch");var a=function(){var e=(0,o.default)(i.default.mark((function e(t,r){var n,o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r="text"),e.next=3,fetch(t,{credentials:"same-origin"});case 3:if(!(n=e.sent).ok){e.next=23;break}if("json"!==r){e.next=12;break}return e.next=8,n.text();case 8:return o=e.sent,e.abrupt("return",JSON.parse(o));case 12:if("binary"!==r){e.next=18;break}return e.next=15,n.arrayBuffer();case 15:return e.abrupt("return",e.sent);case 18:return e.next=20,n.text();case 20:return e.abrupt("return",e.sent);case 21:e.next=24;break;case 23:throw new Error("httpRequest error: "+t+" "+n.statusText);case 24:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}();r.httpRequest=a,r.getOrigin=function(e){var t=e.match(/^.+\:\/\/[^\/]+/);return Array.isArray(t)&&t.length>0?t[0]:"unknown"}},{"@babel/runtime/helpers/asyncToGenerator":129,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/regenerator":146,"whatwg-fetch":1122}],1121:[function(e,t,r){"use strict";r.__esModule=!0,r.default=void 0;r.default=function(e,t,r){var n=e||".trezor-webusb-button",i=document.querySelectorAll(n),o=t+"?"+Date.now();i.forEach((function(e){if(e.getElementsByTagName("iframe").length<1){var t=e.getBoundingClientRect(),n=document.createElement("iframe");n.frameBorder="0",n.width=Math.round(t.width)+"px",n.height=Math.round(t.height)+"px",n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.style.zIndex="1",n.setAttribute("allow","usb"),n.setAttribute("scrolling","no"),n.onload=function(){n.contentWindow.postMessage({},r)},n.src=o,e.append(n)}}))}},{}],1122:[function(e,t,r){!function(e,n){"object"==typeof r&&void 0!==t?n(r):"function"==typeof define&&define.amd?define(["exports"],n):n(e.WHATWGFetch={})}(this,(function(e){"use strict";var t="URLSearchParams"in self,r="Symbol"in self&&"iterator"in Symbol,n="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in self,o="ArrayBuffer"in self;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function p(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var r;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:t&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&n&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,r,n=d(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=h(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=c(e),t=u(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[c(e)]},f.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},f.prototype.set=function(e,t){this.map[c(e)]=u(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),l(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),l(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),l(e)},r&&(f.prototype[Symbol.iterator]=f.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var r,n,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),g.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];w.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},e.DOMException=self.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function x(t,r){return new Promise((function(i,o){var a=new b(t,r);if(a.signal&&a.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var n="response"in s?s.response:s.responseText;i(new w(n,r))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&n&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}x.polyfill=!0,self.fetch||(self.fetch=x,self.Headers=f,self.Request=b,self.Response=w),e.Headers=f,e.Request=b,e.Response=w,e.fetch=x,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],1123:[function(e,t,r){(function(e){
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
var r,n,i,o,a,s,c,u,l,f,d,h,p,m,y,g,b,v,w;!function(r){var n="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:{};function i(e,t){return e!==n&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(r,n){return e[r]=t?t(r,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){r(i(n,i(e)))})):"object"==typeof t&&"object"==typeof t.exports?r(i(n,i(t.exports))):r(i(n))}((function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};r=function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&(r[n[i]]=e[n[i]])}return r},o=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a},a=function(e,t){return function(r,n){t(r,n,e)}},s=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new r((function(t){t(e.value)})).then(a,s)}c((n=n.apply(e,t||[])).next())}))},u=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},l=function(e,t){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])},f=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},h=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e},p=function(e){return this instanceof p?(this.v=e,this):new p(e)},m=function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=i[e](t)).value instanceof p?Promise.resolve(r.value.v).then(c,u):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}},y=function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:p(e[n](t)),done:"return"===n}:i?i(t):t}:i}},g=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=f(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},b=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},v=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},w=function(e){return e&&e.__esModule?e:{default:e}},e("__extends",r),e("__assign",n),e("__rest",i),e("__decorate",o),e("__param",a),e("__metadata",s),e("__awaiter",c),e("__generator",u),e("__exportStar",l),e("__values",f),e("__read",d),e("__spread",h),e("__await",p),e("__asyncGenerator",m),e("__asyncDelegator",y),e("__asyncValues",g),e("__makeTemplateObject",b),e("__importStar",v),e("__importDefault",w)}))}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],1124:[function(e,t,r){(function(e){!function(e,r){"use strict";void 0!==t&&t.exports?t.exports=r():(e.nacl||(e.nacl={}),e.nacl.util=r())}(this,(function(){"use strict";var t={};function r(e){if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return t.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,r=unescape(encodeURIComponent(e)),n=new Uint8Array(r.length);for(t=0;t<r.length;t++)n[t]=r.charCodeAt(t);return n},t.encodeUTF8=function(e){var t,r=[];for(t=0;t<e.length;t++)r.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(r.join("")))},"undefined"==typeof atob?void 0!==e.from?(t.encodeBase64=function(t){return e.from(t).toString("base64")},t.decodeBase64=function(t){return r(t),new Uint8Array(Array.prototype.slice.call(e.from(t,"base64"),0))}):(t.encodeBase64=function(t){return new e(t).toString("base64")},t.decodeBase64=function(t){return r(t),new Uint8Array(Array.prototype.slice.call(new e(t,"base64"),0))}):(t.encodeBase64=function(e){var t,r=[],n=e.length;for(t=0;t<n;t++)r.push(String.fromCharCode(e[t]));return btoa(r.join(""))},t.decodeBase64=function(e){r(e);var t,n=atob(e),i=new Uint8Array(n.length);for(t=0;t<n.length;t++)i[t]=n.charCodeAt(t);return i}),t}))}).call(this,e("buffer").Buffer)},{buffer:442}],1125:[function(e,t,r){!function(t){"use strict";var r=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=r(),s=r([1]),c=r([56129,1]),u=r([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=r([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),f=r([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=r([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=r([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function m(e,t,r,n,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^r[n+o];return(1&a-1>>>8)-1}function y(e,t,r,n){return m(e,t,r,n,16)}function g(e,t,r,n){return m(e,t,r,n,32)}function b(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=o,x=a,k=s,S=c,E=u,A=l,T=f,C=d,O=h,j=p,P=m,M=y,I=g,N=b,B=v,R=w,D=0;D<20;D+=2)_^=(i=(I^=(i=(O^=(i=(E^=(i=_+I|0)<<7|i>>>25)+_|0)<<9|i>>>23)+E|0)<<13|i>>>19)+O|0)<<18|i>>>14,A^=(i=(x^=(i=(N^=(i=(j^=(i=A+x|0)<<7|i>>>25)+A|0)<<9|i>>>23)+j|0)<<13|i>>>19)+N|0)<<18|i>>>14,P^=(i=(T^=(i=(k^=(i=(B^=(i=P+T|0)<<7|i>>>25)+P|0)<<9|i>>>23)+B|0)<<13|i>>>19)+k|0)<<18|i>>>14,R^=(i=(M^=(i=(C^=(i=(S^=(i=R+M|0)<<7|i>>>25)+R|0)<<9|i>>>23)+S|0)<<13|i>>>19)+C|0)<<18|i>>>14,_^=(i=(S^=(i=(k^=(i=(x^=(i=_+S|0)<<7|i>>>25)+_|0)<<9|i>>>23)+x|0)<<13|i>>>19)+k|0)<<18|i>>>14,A^=(i=(E^=(i=(C^=(i=(T^=(i=A+E|0)<<7|i>>>25)+A|0)<<9|i>>>23)+T|0)<<13|i>>>19)+C|0)<<18|i>>>14,P^=(i=(j^=(i=(O^=(i=(M^=(i=P+j|0)<<7|i>>>25)+P|0)<<9|i>>>23)+M|0)<<13|i>>>19)+O|0)<<18|i>>>14,R^=(i=(B^=(i=(N^=(i=(I^=(i=R+B|0)<<7|i>>>25)+R|0)<<9|i>>>23)+I|0)<<13|i>>>19)+N|0)<<18|i>>>14;_=_+o|0,x=x+a|0,k=k+s|0,S=S+c|0,E=E+u|0,A=A+l|0,T=T+f|0,C=C+d|0,O=O+h|0,j=j+p|0,P=P+m|0,M=M+y|0,I=I+g|0,N=N+b|0,B=B+v|0,R=R+w|0,e[0]=_>>>0&255,e[1]=_>>>8&255,e[2]=_>>>16&255,e[3]=_>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=k>>>0&255,e[9]=k>>>8&255,e[10]=k>>>16&255,e[11]=k>>>24&255,e[12]=S>>>0&255,e[13]=S>>>8&255,e[14]=S>>>16&255,e[15]=S>>>24&255,e[16]=E>>>0&255,e[17]=E>>>8&255,e[18]=E>>>16&255,e[19]=E>>>24&255,e[20]=A>>>0&255,e[21]=A>>>8&255,e[22]=A>>>16&255,e[23]=A>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=C>>>0&255,e[29]=C>>>8&255,e[30]=C>>>16&255,e[31]=C>>>24&255,e[32]=O>>>0&255,e[33]=O>>>8&255,e[34]=O>>>16&255,e[35]=O>>>24&255,e[36]=j>>>0&255,e[37]=j>>>8&255,e[38]=j>>>16&255,e[39]=j>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=I>>>0&255,e[49]=I>>>8&255,e[50]=I>>>16&255,e[51]=I>>>24&255,e[52]=N>>>0&255,e[53]=N>>>8&255,e[54]=N>>>16&255,e[55]=N>>>24&255,e[56]=B>>>0&255,e[57]=B>>>8&255,e[58]=B>>>16&255,e[59]=B>>>24&255,e[60]=R>>>0&255,e[61]=R>>>8&255,e[62]=R>>>16&255,e[63]=R>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,c=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,u=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,l=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,f=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,_=0;_<20;_+=2)o^=(i=(g^=(i=(h^=(i=(u^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+u|0)<<13|i>>>19)+h|0)<<18|i>>>14,l^=(i=(a^=(i=(b^=(i=(p^=(i=l+a|0)<<7|i>>>25)+l|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,m^=(i=(f^=(i=(s^=(i=(v^=(i=m+f|0)<<7|i>>>25)+m|0)<<9|i>>>23)+v|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(y^=(i=(d^=(i=(c^=(i=w+y|0)<<7|i>>>25)+w|0)<<9|i>>>23)+c|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,l^=(i=(u^=(i=(d^=(i=(f^=(i=l+u|0)<<7|i>>>25)+l|0)<<9|i>>>23)+f|0)<<13|i>>>19)+d|0)<<18|i>>>14,m^=(i=(p^=(i=(h^=(i=(y^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+y|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(v^=(i=(b^=(i=(g^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=l>>>0&255,e[5]=l>>>8&255,e[6]=l>>>16&255,e[7]=l>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=w>>>0&255,e[13]=w>>>8&255,e[14]=w>>>16&255,e[15]=w>>>24&255,e[16]=f>>>0&255,e[17]=f>>>8&255,e[18]=f>>>16&255,e[19]=f>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(e,t,r,n,i,o,a){var s,c,u=new Uint8Array(16),l=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=o[c];for(;i>=64;){for(b(l,u,a,w),c=0;c<64;c++)e[t+c]=r[n+c]^l[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;i-=64,t+=64,n+=64}if(i>0)for(b(l,u,a,w),c=0;c<i;c++)e[t+c]=r[n+c]^l[c];return 0}function x(e,t,r,n,i){var o,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=n[a];for(;r>=64;){for(b(c,s,i,w),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(b(c,s,i,w),a=0;a<r;a++)e[t+a]=c[a];return 0}function k(e,t,r,n,i){var o=new Uint8Array(32);v(o,n,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=n[s+16];return x(e,t,r,a,o)}function S(e,t,r,n,i,o,a){var s=new Uint8Array(32);v(s,o,a,w);for(var c=new Uint8Array(8),u=0;u<8;u++)c[u]=o[u+16];return _(e,t,r,n,i,c,s)}var E=function(e){var t,r,n,i,o,a,s,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function A(e,t,r,n,i,o){var a=new E(o);return a.update(r,n,i),a.finish(e,t),0}function T(e,t,r,n,i,o){var a=new Uint8Array(16);return A(a,0,r,n,i,o),y(e,t,a,0)}function C(e,t,r,n,i){var o;if(r<32)return-1;for(S(e,0,t,0,r,n,i),A(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0}function O(e,t,r,n,i){var o,a=new Uint8Array(32);if(r<32)return-1;if(k(a,0,32,n,i),0!==T(t,16,t,32,r-32,a))return-1;for(S(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0}function j(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function P(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function M(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function I(e,t){var n,i,o,a=r(),s=r();for(n=0;n<16;n++)s[n]=t[n];for(P(s),P(s),P(s),i=0;i<2;i++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,M(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function N(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return I(r,e),I(n,t),g(r,0,n,0)}function B(e){var t=new Uint8Array(32);return I(t,e),1&t[0]}function R(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function D(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function L(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function U(e,t,r){var n,i,o=0,a=0,s=0,c=0,u=0,l=0,f=0,d=0,h=0,p=0,m=0,y=0,g=0,b=0,v=0,w=0,_=0,x=0,k=0,S=0,E=0,A=0,T=0,C=0,O=0,j=0,P=0,M=0,I=0,N=0,B=0,R=r[0],D=r[1],L=r[2],U=r[3],F=r[4],q=r[5],H=r[6],z=r[7],K=r[8],V=r[9],G=r[10],W=r[11],Y=r[12],$=r[13],J=r[14],Q=r[15];o+=(n=t[0])*R,a+=n*D,s+=n*L,c+=n*U,u+=n*F,l+=n*q,f+=n*H,d+=n*z,h+=n*K,p+=n*V,m+=n*G,y+=n*W,g+=n*Y,b+=n*$,v+=n*J,w+=n*Q,a+=(n=t[1])*R,s+=n*D,c+=n*L,u+=n*U,l+=n*F,f+=n*q,d+=n*H,h+=n*z,p+=n*K,m+=n*V,y+=n*G,g+=n*W,b+=n*Y,v+=n*$,w+=n*J,_+=n*Q,s+=(n=t[2])*R,c+=n*D,u+=n*L,l+=n*U,f+=n*F,d+=n*q,h+=n*H,p+=n*z,m+=n*K,y+=n*V,g+=n*G,b+=n*W,v+=n*Y,w+=n*$,_+=n*J,x+=n*Q,c+=(n=t[3])*R,u+=n*D,l+=n*L,f+=n*U,d+=n*F,h+=n*q,p+=n*H,m+=n*z,y+=n*K,g+=n*V,b+=n*G,v+=n*W,w+=n*Y,_+=n*$,x+=n*J,k+=n*Q,u+=(n=t[4])*R,l+=n*D,f+=n*L,d+=n*U,h+=n*F,p+=n*q,m+=n*H,y+=n*z,g+=n*K,b+=n*V,v+=n*G,w+=n*W,_+=n*Y,x+=n*$,k+=n*J,S+=n*Q,l+=(n=t[5])*R,f+=n*D,d+=n*L,h+=n*U,p+=n*F,m+=n*q,y+=n*H,g+=n*z,b+=n*K,v+=n*V,w+=n*G,_+=n*W,x+=n*Y,k+=n*$,S+=n*J,E+=n*Q,f+=(n=t[6])*R,d+=n*D,h+=n*L,p+=n*U,m+=n*F,y+=n*q,g+=n*H,b+=n*z,v+=n*K,w+=n*V,_+=n*G,x+=n*W,k+=n*Y,S+=n*$,E+=n*J,A+=n*Q,d+=(n=t[7])*R,h+=n*D,p+=n*L,m+=n*U,y+=n*F,g+=n*q,b+=n*H,v+=n*z,w+=n*K,_+=n*V,x+=n*G,k+=n*W,S+=n*Y,E+=n*$,A+=n*J,T+=n*Q,h+=(n=t[8])*R,p+=n*D,m+=n*L,y+=n*U,g+=n*F,b+=n*q,v+=n*H,w+=n*z,_+=n*K,x+=n*V,k+=n*G,S+=n*W,E+=n*Y,A+=n*$,T+=n*J,C+=n*Q,p+=(n=t[9])*R,m+=n*D,y+=n*L,g+=n*U,b+=n*F,v+=n*q,w+=n*H,_+=n*z,x+=n*K,k+=n*V,S+=n*G,E+=n*W,A+=n*Y,T+=n*$,C+=n*J,O+=n*Q,m+=(n=t[10])*R,y+=n*D,g+=n*L,b+=n*U,v+=n*F,w+=n*q,_+=n*H,x+=n*z,k+=n*K,S+=n*V,E+=n*G,A+=n*W,T+=n*Y,C+=n*$,O+=n*J,j+=n*Q,y+=(n=t[11])*R,g+=n*D,b+=n*L,v+=n*U,w+=n*F,_+=n*q,x+=n*H,k+=n*z,S+=n*K,E+=n*V,A+=n*G,T+=n*W,C+=n*Y,O+=n*$,j+=n*J,P+=n*Q,g+=(n=t[12])*R,b+=n*D,v+=n*L,w+=n*U,_+=n*F,x+=n*q,k+=n*H,S+=n*z,E+=n*K,A+=n*V,T+=n*G,C+=n*W,O+=n*Y,j+=n*$,P+=n*J,M+=n*Q,b+=(n=t[13])*R,v+=n*D,w+=n*L,_+=n*U,x+=n*F,k+=n*q,S+=n*H,E+=n*z,A+=n*K,T+=n*V,C+=n*G,O+=n*W,j+=n*Y,P+=n*$,M+=n*J,I+=n*Q,v+=(n=t[14])*R,w+=n*D,_+=n*L,x+=n*U,k+=n*F,S+=n*q,E+=n*H,A+=n*z,T+=n*K,C+=n*V,O+=n*G,j+=n*W,P+=n*Y,M+=n*$,I+=n*J,N+=n*Q,w+=(n=t[15])*R,a+=38*(x+=n*L),s+=38*(k+=n*U),c+=38*(S+=n*F),u+=38*(E+=n*q),l+=38*(A+=n*H),f+=38*(T+=n*z),d+=38*(C+=n*K),h+=38*(O+=n*V),p+=38*(j+=n*G),m+=38*(P+=n*W),y+=38*(M+=n*Y),g+=38*(I+=n*$),b+=38*(N+=n*J),v+=38*(B+=n*Q),o=(n=(o+=38*(_+=n*D))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=u,e[5]=l,e[6]=f,e[7]=d,e[8]=h,e[9]=p,e[10]=m,e[11]=y,e[12]=g,e[13]=b,e[14]=v,e[15]=w}function F(e,t){U(e,t,t)}function q(e,t){var n,i=r();for(n=0;n<16;n++)i[n]=t[n];for(n=253;n>=0;n--)F(i,i),2!==n&&4!==n&&U(i,i,t);for(n=0;n<16;n++)e[n]=i[n]}function H(e,t,n){var i,o,a=new Uint8Array(32),s=new Float64Array(80),u=r(),l=r(),f=r(),d=r(),h=r(),p=r();for(o=0;o<31;o++)a[o]=t[o];for(a[31]=127&t[31]|64,a[0]&=248,R(s,n),o=0;o<16;o++)l[o]=s[o],d[o]=u[o]=f[o]=0;for(u[0]=d[0]=1,o=254;o>=0;--o)M(u,l,i=a[o>>>3]>>>(7&o)&1),M(f,d,i),D(h,u,f),L(u,u,f),D(f,l,d),L(l,l,d),F(d,h),F(p,u),U(u,f,u),U(f,l,h),D(h,u,f),L(u,u,f),F(l,u),L(f,d,p),U(u,f,c),D(u,u,d),U(f,f,u),U(u,d,p),U(d,l,s),F(l,h),M(u,l,i),M(f,d,i);for(o=0;o<16;o++)s[o+16]=u[o],s[o+32]=f[o],s[o+48]=l[o],s[o+64]=d[o];var m=s.subarray(32),y=s.subarray(16);return q(m,m),U(y,y,m),I(e,y),0}function z(e,t){return H(e,t,o)}function K(e,t){return n(t,32),z(e,t)}function V(e,t,r){var n=new Uint8Array(32);return H(n,r,t),v(e,i,n,w)}E.prototype.blocks=function(e,t,r){for(var n,i,o,a,s,c,u,l,f,d,h,p,m,y,g,b,v,w,_,x=this.fin?0:2048,k=this.h[0],S=this.h[1],E=this.h[2],A=this.h[3],T=this.h[4],C=this.h[5],O=this.h[6],j=this.h[7],P=this.h[8],M=this.h[9],I=this.r[0],N=this.r[1],B=this.r[2],R=this.r[3],D=this.r[4],L=this.r[5],U=this.r[6],F=this.r[7],q=this.r[8],H=this.r[9];r>=16;)d=f=0,d+=(k+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*I,d+=(S+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),d+=(E+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*q),d+=(A+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*F),f=(d+=(T+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*U))>>>13,d&=8191,d+=(C+=s>>>1&8191)*(5*L),d+=(O+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*D),d+=(j+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*R),d+=(P+=8191&(u>>>8|(l=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*B),h=f+=(d+=(M+=l>>>5|x)*(5*N))>>>13,h+=k*N,h+=S*I,h+=E*(5*H),h+=A*(5*q),f=(h+=T*(5*F))>>>13,h&=8191,h+=C*(5*U),h+=O*(5*L),h+=j*(5*D),h+=P*(5*R),f+=(h+=M*(5*B))>>>13,h&=8191,p=f,p+=k*B,p+=S*N,p+=E*I,p+=A*(5*H),f=(p+=T*(5*q))>>>13,p&=8191,p+=C*(5*F),p+=O*(5*U),p+=j*(5*L),p+=P*(5*D),m=f+=(p+=M*(5*R))>>>13,m+=k*R,m+=S*B,m+=E*N,m+=A*I,f=(m+=T*(5*H))>>>13,m&=8191,m+=C*(5*q),m+=O*(5*F),m+=j*(5*U),m+=P*(5*L),y=f+=(m+=M*(5*D))>>>13,y+=k*D,y+=S*R,y+=E*B,y+=A*N,f=(y+=T*I)>>>13,y&=8191,y+=C*(5*H),y+=O*(5*q),y+=j*(5*F),y+=P*(5*U),g=f+=(y+=M*(5*L))>>>13,g+=k*L,g+=S*D,g+=E*R,g+=A*B,f=(g+=T*N)>>>13,g&=8191,g+=C*I,g+=O*(5*H),g+=j*(5*q),g+=P*(5*F),b=f+=(g+=M*(5*U))>>>13,b+=k*U,b+=S*L,b+=E*D,b+=A*R,f=(b+=T*B)>>>13,b&=8191,b+=C*N,b+=O*I,b+=j*(5*H),b+=P*(5*q),v=f+=(b+=M*(5*F))>>>13,v+=k*F,v+=S*U,v+=E*L,v+=A*D,f=(v+=T*R)>>>13,v&=8191,v+=C*B,v+=O*N,v+=j*I,v+=P*(5*H),w=f+=(v+=M*(5*q))>>>13,w+=k*q,w+=S*F,w+=E*U,w+=A*L,f=(w+=T*D)>>>13,w&=8191,w+=C*R,w+=O*B,w+=j*N,w+=P*I,_=f+=(w+=M*(5*H))>>>13,_+=k*H,_+=S*q,_+=E*F,_+=A*U,f=(_+=T*L)>>>13,_&=8191,_+=C*D,_+=O*R,_+=j*B,_+=P*N,k=d=8191&(f=(f=((f+=(_+=M*I)>>>13)<<2)+f|0)+(d&=8191)|0),S=h+=f>>>=13,E=p&=8191,A=m&=8191,T=y&=8191,C=g&=8191,O=b&=8191,j=v&=8191,P=w&=8191,M=_&=8191,t+=16,r-=16;this.h[0]=k,this.h[1]=S,this.h[2]=E,this.h[3]=A,this.h[4]=T,this.h[5]=C,this.h[6]=O,this.h[7]=j,this.h[8]=P,this.h[9]=M},E.prototype.finish=function(e,t){var r,n,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,a[0]=this.h[0]+5,r=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+r,r=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,n=(1^r)-1,o=0;o<10;o++)a[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},E.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var G=C,W=O,Y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function $(e,t,r,n){for(var i,o,a,s,c,u,l,f,d,h,p,m,y,g,b,v,w,_,x,k,S,E,A,T,C,O,j=new Int32Array(16),P=new Int32Array(16),M=e[0],I=e[1],N=e[2],B=e[3],R=e[4],D=e[5],L=e[6],U=e[7],F=t[0],q=t[1],H=t[2],z=t[3],K=t[4],V=t[5],G=t[6],W=t[7],$=0;n>=128;){for(x=0;x<16;x++)k=8*x+$,j[x]=r[k+0]<<24|r[k+1]<<16|r[k+2]<<8|r[k+3],P[x]=r[k+4]<<24|r[k+5]<<16|r[k+6]<<8|r[k+7];for(x=0;x<80;x++)if(i=M,o=I,a=N,s=B,c=R,u=D,l=L,d=F,h=q,p=H,m=z,y=K,g=V,b=G,A=65535&(E=W),T=E>>>16,C=65535&(S=U),O=S>>>16,A+=65535&(E=(K>>>14|R<<18)^(K>>>18|R<<14)^(R>>>9|K<<23)),T+=E>>>16,C+=65535&(S=(R>>>14|K<<18)^(R>>>18|K<<14)^(K>>>9|R<<23)),O+=S>>>16,A+=65535&(E=K&V^~K&G),T+=E>>>16,C+=65535&(S=R&D^~R&L),O+=S>>>16,A+=65535&(E=Y[2*x+1]),T+=E>>>16,C+=65535&(S=Y[2*x]),O+=S>>>16,S=j[x%16],T+=(E=P[x%16])>>>16,C+=65535&S,O+=S>>>16,C+=(T+=(A+=65535&E)>>>16)>>>16,A=65535&(E=_=65535&A|T<<16),T=E>>>16,C=65535&(S=w=65535&C|(O+=C>>>16)<<16),O=S>>>16,A+=65535&(E=(F>>>28|M<<4)^(M>>>2|F<<30)^(M>>>7|F<<25)),T+=E>>>16,C+=65535&(S=(M>>>28|F<<4)^(F>>>2|M<<30)^(F>>>7|M<<25)),O+=S>>>16,T+=(E=F&q^F&H^q&H)>>>16,C+=65535&(S=M&I^M&N^I&N),O+=S>>>16,f=65535&(C+=(T+=(A+=65535&E)>>>16)>>>16)|(O+=C>>>16)<<16,v=65535&A|T<<16,A=65535&(E=m),T=E>>>16,C=65535&(S=s),O=S>>>16,T+=(E=_)>>>16,C+=65535&(S=w),O+=S>>>16,I=i,N=o,B=a,R=s=65535&(C+=(T+=(A+=65535&E)>>>16)>>>16)|(O+=C>>>16)<<16,D=c,L=u,U=l,M=f,q=d,H=h,z=p,K=m=65535&A|T<<16,V=y,G=g,W=b,F=v,x%16==15)for(k=0;k<16;k++)S=j[k],A=65535&(E=P[k]),T=E>>>16,C=65535&S,O=S>>>16,S=j[(k+9)%16],A+=65535&(E=P[(k+9)%16]),T+=E>>>16,C+=65535&S,O+=S>>>16,w=j[(k+1)%16],A+=65535&(E=((_=P[(k+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),T+=E>>>16,C+=65535&(S=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),O+=S>>>16,w=j[(k+14)%16],T+=(E=((_=P[(k+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,C+=65535&(S=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,j[k]=65535&C|O<<16,P[k]=65535&A|T<<16;A=65535&(E=F),T=E>>>16,C=65535&(S=M),O=S>>>16,S=e[0],T+=(E=t[0])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[0]=M=65535&C|O<<16,t[0]=F=65535&A|T<<16,A=65535&(E=q),T=E>>>16,C=65535&(S=I),O=S>>>16,S=e[1],T+=(E=t[1])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[1]=I=65535&C|O<<16,t[1]=q=65535&A|T<<16,A=65535&(E=H),T=E>>>16,C=65535&(S=N),O=S>>>16,S=e[2],T+=(E=t[2])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[2]=N=65535&C|O<<16,t[2]=H=65535&A|T<<16,A=65535&(E=z),T=E>>>16,C=65535&(S=B),O=S>>>16,S=e[3],T+=(E=t[3])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[3]=B=65535&C|O<<16,t[3]=z=65535&A|T<<16,A=65535&(E=K),T=E>>>16,C=65535&(S=R),O=S>>>16,S=e[4],T+=(E=t[4])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[4]=R=65535&C|O<<16,t[4]=K=65535&A|T<<16,A=65535&(E=V),T=E>>>16,C=65535&(S=D),O=S>>>16,S=e[5],T+=(E=t[5])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[5]=D=65535&C|O<<16,t[5]=V=65535&A|T<<16,A=65535&(E=G),T=E>>>16,C=65535&(S=L),O=S>>>16,S=e[6],T+=(E=t[6])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[6]=L=65535&C|O<<16,t[6]=G=65535&A|T<<16,A=65535&(E=W),T=E>>>16,C=65535&(S=U),O=S>>>16,S=e[7],T+=(E=t[7])>>>16,C+=65535&S,O+=S>>>16,O+=(C+=(T+=(A+=65535&E)>>>16)>>>16)>>>16,e[7]=U=65535&C|O<<16,t[7]=W=65535&A|T<<16,$+=128,n-=128}return n}function J(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,$(i,o,t,r),r%=128,n=0;n<r;n++)a[n]=t[s-r+n];for(a[r]=128,a[(r=256-128*(r<112?1:0))-9]=0,p(a,r-8,s/536870912|0,s<<3),$(i,o,a,r),n=0;n<8;n++)p(e,8*n,i[n],o[n]);return 0}function Q(e,t){var n=r(),i=r(),o=r(),a=r(),s=r(),c=r(),u=r(),f=r(),d=r();L(n,e[1],e[0]),L(d,t[1],t[0]),U(n,n,d),D(i,e[0],e[1]),D(d,t[0],t[1]),U(i,i,d),U(o,e[3],t[3]),U(o,o,l),U(a,e[2],t[2]),D(a,a,a),L(s,i,n),L(c,a,o),D(u,a,o),D(f,i,n),U(e[0],s,c),U(e[1],f,u),U(e[2],u,c),U(e[3],s,f)}function Z(e,t,r){var n;for(n=0;n<4;n++)M(e[n],t[n],r)}function X(e,t){var n=r(),i=r(),o=r();q(o,t[2]),U(n,t[0],o),U(i,t[1],o),I(e,i),e[31]^=B(n)<<7}function ee(e,t,r){var n,i;for(j(e[0],a),j(e[1],s),j(e[2],s),j(e[3],a),i=255;i>=0;--i)Z(e,t,n=r[i/8|0]>>(7&i)&1),Q(t,e),Q(e,e),Z(e,t,n)}function te(e,t){var n=[r(),r(),r(),r()];j(n[0],f),j(n[1],d),j(n[2],s),U(n[3],f,d),ee(e,n,t)}function re(e,t,i){var o,a=new Uint8Array(64),s=[r(),r(),r(),r()];for(i||n(t,32),J(a,t,32),a[0]&=248,a[31]&=127,a[31]|=64,te(s,a),X(e,s),o=0;o<32;o++)t[o+32]=e[o];return 0}var ne=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*ne[i-(n-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ne[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ne[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function oe(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,r)}function ae(e,t,n,i){var o,a,s=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),l=new Float64Array(64),f=[r(),r(),r(),r()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var d=n+64;for(o=0;o<n;o++)e[64+o]=t[o];for(o=0;o<32;o++)e[32+o]=s[32+o];for(J(u,e.subarray(32),n+32),oe(u),te(f,u),X(e,f),o=32;o<64;o++)e[o]=i[o];for(J(c,e,n+64),oe(c),o=0;o<64;o++)l[o]=0;for(o=0;o<32;o++)l[o]=u[o];for(o=0;o<32;o++)for(a=0;a<32;a++)l[o+a]+=c[o]*s[a];return ie(e.subarray(32),l),d}function se(e,t){var n=r(),i=r(),o=r(),c=r(),l=r(),f=r(),d=r();return j(e[2],s),R(e[1],t),F(o,e[1]),U(c,o,u),L(o,o,e[2]),D(c,e[2],c),F(l,c),F(f,l),U(d,f,l),U(n,d,o),U(n,n,c),function(e,t){var n,i=r();for(n=0;n<16;n++)i[n]=t[n];for(n=250;n>=0;n--)F(i,i),1!==n&&U(i,i,t);for(n=0;n<16;n++)e[n]=i[n]}(n,n),U(n,n,o),U(n,n,c),U(n,n,c),U(e[0],n,c),F(i,e[0]),U(i,i,c),N(i,o)&&U(e[0],e[0],h),F(i,e[0]),U(i,i,c),N(i,o)?-1:(B(e[0])===t[31]>>7&&L(e[0],a,e[0]),U(e[3],e[0],e[1]),0)}function ce(e,t,n,i){var o,a=new Uint8Array(32),s=new Uint8Array(64),c=[r(),r(),r(),r()],u=[r(),r(),r(),r()];if(n<64)return-1;if(se(u,i))return-1;for(o=0;o<n;o++)e[o]=t[o];for(o=0;o<32;o++)e[o+32]=i[o];if(J(s,e,n),oe(s),ee(c,u,s),te(u,t.subarray(32)),Q(c,u),X(a,c),n-=64,g(t,0,a,0)){for(o=0;o<n;o++)e[o]=0;return-1}for(o=0;o<n;o++)e[o]=t[o+64];return n}function ue(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function le(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function fe(e){for(var t=0;t<e.length;t++)e[t]=0}t.lowlevel={crypto_core_hsalsa20:v,crypto_stream_xor:S,crypto_stream:k,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:x,crypto_onetimeauth:A,crypto_onetimeauth_verify:T,crypto_verify_16:y,crypto_verify_32:g,crypto_secretbox:C,crypto_secretbox_open:O,crypto_scalarmult:H,crypto_scalarmult_base:z,crypto_box_beforenm:V,crypto_box_afternm:G,crypto_box:function(e,t,r,n,i,o){var a=new Uint8Array(32);return V(a,i,o),G(e,t,r,n,a)},crypto_box_open:function(e,t,r,n,i,o){var a=new Uint8Array(32);return V(a,i,o),W(e,t,r,n,a)},crypto_box_keypair:K,crypto_hash:J,crypto_sign:ae,crypto_sign_keypair:re,crypto_sign_open:ce,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},t.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},t.secretbox=function(e,t,r){le(e,t,r),ue(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+32]=e[o];return C(i,n,n.length,t,r),i.subarray(16)},t.secretbox.open=function(e,t,r){le(e,t,r),ue(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+16]=e[o];return n.length<32||0!==O(i,n,n.length,t,r)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=16,t.scalarMult=function(e,t){if(le(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return H(r,e,t),r},t.scalarMult.base=function(e){if(le(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return z(t,e),t},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox(e,r,o)},t.box.before=function(e,t){le(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return V(r,e,t),r},t.box.after=t.secretbox,t.box.open=function(e,r,n,i){var o=t.box.before(n,i);return t.secretbox.open(e,r,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return K(e,t),{publicKey:e,secretKey:t}},t.box.keyPair.fromSecretKey=function(e){if(le(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return z(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(e,t){if(le(e,t),64!==t.length)throw new Error("bad secret key size");var r=new Uint8Array(64+e.length);return ae(r,e,e.length,t),r},t.sign.open=function(e,t){if(le(e,t),32!==t.length)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=ce(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached=function(e,r){for(var n=t.sign(e,r),i=new Uint8Array(64),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached.verify=function(e,t,r){if(le(e,t,r),64!==t.length)throw new Error("bad signature size");if(32!==r.length)throw new Error("bad public key size");var n,i=new Uint8Array(64+e.length),o=new Uint8Array(64+e.length);for(n=0;n<64;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+64]=e[n];return ce(o,i,i.length,r)>=0},t.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return re(e,t),{publicKey:e,secretKey:t}},t.sign.keyPair.fromSecretKey=function(e){if(le(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},t.sign.keyPair.fromSeed=function(e){if(le(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),r=new Uint8Array(64),n=0;n<32;n++)r[n]=e[n];return re(t,r,!0),{publicKey:t,secretKey:r}},t.sign.publicKeyLength=32,t.sign.secretKeyLength=64,t.sign.seedLength=32,t.sign.signatureLength=64,t.hash=function(e){le(e);var t=new Uint8Array(64);return J(t,e,e.length),t},t.hash.hashLength=64,t.verify=function(e,t){return le(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===m(e,0,t,0,e.length)},t.setPRNG=function(e){n=e},function(){var r="undefined"!=typeof self?self.crypto||self.msCrypto:null;r&&r.getRandomValues?t.setPRNG((function(e,t){var n,i=new Uint8Array(t);for(n=0;n<t;n+=65536)r.getRandomValues(i.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=i[n];fe(i)})):void 0!==e&&(r=e("crypto"))&&r.randomBytes&&t.setPRNG((function(e,t){var n,i=r.randomBytes(t);for(n=0;n<t;n++)e[n]=i[n];fe(i)}))}()}(void 0!==t&&t.exports?t.exports:self.nacl=self.nacl||{})},{crypto:442}],1126:[function(e,t,r){!function(e){"use strict";for(var r=[null,0,{}],n=function(e,t){this.codepoint=e,this.feature=t},i={},o=[],a=0;a<=255;++a)o[a]=0;var s=[function(e,t,i){return t<60||13311<t&&t<42607?new n(t,r):e(t,i)},function(e,t,r){var n=i[t];return n||(n=e(t,r)).feature&&++o[t>>8&255]>10&&(i[t]=n),n},function(e,t,r){return r?e(t,r):new n(t,null)},function(e,t,r){var i;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,r);if(4352<=t&&t<4371){var o={},a=21*(t-4352);for(i=0;i<21;++i)o[4449+i]=44032+28*(i+a);return new n(t,[,,o])}var s=t-44032,c=s%28,u=[];if(0!==c)u[0]=[44032+s-c,4519+c];else for(u[0]=[4352+Math.floor(s/588),4449+Math.floor(s%588/28)],u[2]={},i=1;i<28;++i)u[2][4519+i]=t+i;return new n(t,u)},function(e,t,i){var o=(n.udata[65280&t]||{})[t];return new n(t,o||r)}];n.fromCharCode=s.reduceRight((function(e,t){return function(r,n){return t(e,r,n)}}),null),n.isHighSurrogate=function(e){return e>=55296&&e<=56319},n.isLowSurrogate=function(e){return e>=56320&&e<=57343},n.prototype.prepFeature=function(){this.feature||(this.feature=n.fromCharCode(this.codepoint,!0).feature)},n.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},n.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},n.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},n.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},n.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},n.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?n.fromCharCode(t):null};var c=function(e){this.str=e,this.cursor=0};c.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return n.isHighSurrogate(t)&&this.cursor<this.str.length&&n.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),n.fromCharCode(t)}return this.str=null,null};var u=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};u.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,r){var i=r.getDecomp();if(!i||t&&r.isCompatibility())return[r];for(var o=[],a=0;a<i.length;++a){var s=e(t,n.fromCharCode(i[a]));o=o.concat(s)}return o}(this.canonical,e)}return this.resBuf.shift()};var l=function(e){this.it=e,this.resBuf=[]};l.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var r=this.resBuf.length;if(0!==e)for(;r>0&&!(this.resBuf[r-1].getCanonicalClass()<=e);--r);this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var f=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};f.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass<r||0===this.lastClass)?this.procBuf[0]=t:(0===r&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=r,this.procBuf.push(e))}}return this.resBuf.shift()};var d=function(e,t){for(var r,n=function(e,t){switch(e){case"NFD":return new l(new u(new c(t),!0));case"NFKD":return new l(new u(new c(t),!1));case"NFC":return new f(new l(new u(new c(t),!0)));case"NFKC":return new f(new l(new u(new c(t),!1)))}throw e+" is invalid"}(e,t),i="";r=n.next();)i+=r.toString();return i};n.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var h={nfc:function(e){return d("NFC",e)},nfd:function(e){return d("NFD",e)},nfkc:function(e){return d("NFKC",e)},nfkd:function(e){return d("NFKD",e)}};"object"==typeof t?t.exports=h:"function"==typeof define&&define.amd?define("unorm",(function(){return h})):e.unorm=h,h.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=""+this;if("NFC"===(e=void 0===e?"NFC":e))return h.nfc(t);if("NFD"===e)return h.nfd(t);if("NFKC"===e)return h.nfkc(t);if("NFKD"===e)return h.nfkd(t);throw new RangeError("Invalid normalization form: "+e)}}),h.shimApplied=!0)}(this)},{}],1127:[function(e,t,r){"use strict";var n=e("punycode"),i=e("./util");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=v,r.resolve=function(e,t){return v(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},r.format=function(e){return i.isString(e)&&(e=v(e)),e instanceof o?e.format():o.prototype.format.call(e)},r.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=e("querystring");function v(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(s);u[0]=u[0].replace(/\\/g,"/");var v=e=u.join(s);if(v=v.trim(),!r&&1===e.split("#").length){var w=c.exec(v);if(w)return this.path=v,this.href=v,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(v);if(_){var x=(_=_[0]).toLowerCase();this.protocol=x,v=v.substr(_.length)}if(r||_||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var k="//"===v.substr(0,2);!k||_&&y[_]||(v=v.substr(2),this.slashes=!0)}if(!y[_]&&(k||_&&!g[_])){for(var S,E,A=-1,T=0;T<d.length;T++)-1!==(C=v.indexOf(d[T]))&&(-1===A||C<A)&&(A=C);for(-1!==(E=-1===A?v.lastIndexOf("@"):v.lastIndexOf("@",A))&&(S=v.slice(0,E),v=v.slice(E+1),this.auth=decodeURIComponent(S)),A=-1,T=0;T<f.length;T++){var C;-1!==(C=v.indexOf(f[T]))&&(-1===A||C<A)&&(A=C)}-1===A&&(A=v.length),this.host=v.slice(0,A),v=v.slice(A),this.parseHost(),this.hostname=this.hostname||"";var O="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!O)for(var j=this.hostname.split(/\./),P=(T=0,j.length);T<P;T++){var M=j[T];if(M&&!M.match(h)){for(var I="",N=0,B=M.length;N<B;N++)M.charCodeAt(N)>127?I+="x":I+=M[N];if(!I.match(h)){var R=j.slice(0,T),D=j.slice(T+1),L=M.match(p);L&&(R.push(L[1]),D.unshift(L[2])),D.length&&(v="/"+D.join(".")+v),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),O||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+U,this.href+=this.host,O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!m[x])for(T=0,P=l.length;T<P;T++){var q=l[T];if(-1!==v.indexOf(q)){var H=encodeURIComponent(q);H===q&&(H=escape(q)),v=v.split(q).join(H)}}var z=v.indexOf("#");-1!==z&&(this.hash=v.substr(z),v=v.slice(0,z));var K=v.indexOf("?");if(-1!==K?(this.search=v.substr(K),this.query=v.substr(K+1),t&&(this.query=b.parse(this.query)),v=v.slice(0,K)):t&&(this.search="",this.query={}),v&&(this.pathname=v),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var V=this.search||"";this.path=U+V}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),u=0;u<c.length;u++){var l=c[u];"protocol"!==l&&(r[l]=e[l])}return g[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var h=f[d];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||y[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",b=r.search||"";r.path=m+b}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||v||r.host&&e.pathname,x=_,k=r.pathname&&r.pathname.split("/")||[],S=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!g[r.protocol]);if(S&&(r.hostname="",r.port=null,r.host&&(""===k[0]?k[0]=r.host:k.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(""===p[0]||""===k[0])),w)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,k=p;else if(p.length)k||(k=[]),k.pop(),k=k.concat(p),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search))return S&&(r.hostname=r.host=k.shift(),(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!k.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=k.slice(-1)[0],A=(r.host||e.host||k.length>1)&&("."===E||".."===E)||""===E,T=0,C=k.length;C>=0;C--)"."===(E=k[C])?k.splice(C,1):".."===E?(k.splice(C,1),T++):T&&(k.splice(C,1),T--);if(!_&&!x)for(;T--;T)k.unshift("..");!_||""===k[0]||k[0]&&"/"===k[0].charAt(0)||k.unshift(""),A&&"/"!==k.join("/").substr(-1)&&k.push("");var O,j=""===k[0]||k[0]&&"/"===k[0].charAt(0);return S&&(r.hostname=r.host=j?"":k.length?k.shift():"",(O=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=O.shift(),r.host=r.hostname=O.shift())),(_=_||r.host&&k.length)&&!j&&k.unshift(""),k.length?r.pathname=k.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":1128,punycode:477,querystring:963}],1128:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],1129:[function(e,t,r){(function(e){!function(n){var i="object"==typeof r&&r,o="object"==typeof t&&t&&t.exports==i&&t,a="object"==typeof e&&e;a.global!==a&&a.window!==a||(n=a);var s,c,u,l=String.fromCharCode;function f(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function d(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function h(e,t){return l(e>>t&63|128)}function p(e){if(0==(4294967168&e))return l(e);var t="";return 0==(4294965248&e)?t=l(e>>6&31|192):0==(4294901760&e)?(d(e),t=l(e>>12&15|224),t+=h(e,6)):0==(4292870144&e)&&(t=l(e>>18&7|240),t+=h(e,12),t+=h(e,6)),t+l(63&e|128)}function m(){if(u>=c)throw Error("Invalid byte index");var e=255&s[u];if(u++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function y(){var e,t;if(u>c)throw Error("Invalid byte index");if(u==c)return!1;if(e=255&s[u],u++,0==(128&e))return e;if(192==(224&e)){if((t=(31&e)<<6|m())>=128)return t;throw Error("Invalid continuation byte")}if(224==(240&e)){if((t=(15&e)<<12|m()<<6|m())>=2048)return d(t),t;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=(7&e)<<18|m()<<12|m()<<6|m())>=65536&&t<=1114111)return t;throw Error("Invalid UTF-8 detected")}var g={version:"2.1.2",encode:function(e){for(var t=f(e),r=t.length,n=-1,i="";++n<r;)i+=p(t[n]);return i},decode:function(e){s=f(e),c=s.length,u=0;for(var t,r=[];!1!==(t=y());)r.push(t);return function(e){for(var t,r=e.length,n=-1,i="";++n<r;)(t=e[n])>65535&&(i+=l((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=l(t);return i}(r)}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define((function(){return g}));else if(i&&!i.nodeType)if(o)o.exports=g;else{var b={}.hasOwnProperty;for(var v in g)b.call(g,v)&&(i[v]=g[v])}else n.utf8=g}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],1130:[function(e,t,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],1131:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],1132:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],1133:[function(e,t,r){(function(t,n){var i=/%[sdj%]/g;r.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),c=n[r];r<o;c=n[++r])m(c)||!w(c)?a+=" "+c:a+=" "+s(c);return a},r.deprecate=function(e,i){if(b(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,a={};function s(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function u(e,t){return e}function l(e,t,n){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var a=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),x(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(t);if(0===a.length){if(k(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(v(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(_(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return f(t)}var u,w="",S=!1,E=["{","}"];return h(t)&&(S=!0,E=["[","]"]),k(t)&&(w=" [Function"+(t.name?": "+t.name:"")+"]"),v(t)&&(w=" "+RegExp.prototype.toString.call(t)),_(t)&&(w=" "+Date.prototype.toUTCString.call(t)),x(t)&&(w=" "+f(t)),0!==a.length||S&&0!=t.length?n<0?v(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=S?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)C(t,String(a))?o.push(d(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,r,n,i,!0))})),o}(e,t,n,s,a):a.map((function(r){return d(e,t,n,s,r,S)})),e.seen.pop(),function(e,t,r){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(u,w,E)):E[0]+w+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),C(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function h(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function v(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===S(e)}function x(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function k(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(b(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;a[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else a[e]=function(){};return a[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=h,r.isBoolean=p,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=y,r.isString=g,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=b,r.isRegExp=v,r.isObject=w,r.isDate=_,r.isError=x,r.isFunction=k,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function C(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",T(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":1132,_process:952,inherits:1131}],1134:[function(e,t,r){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},{}],1135:[function(e,t,r){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var o=new Array(16);t.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},{}],1136:[function(e,t,r){var n,i,o=e("./lib/rng"),a=e("./lib/bytesToUuid"),s=0,c=0;t.exports=function(e,t,r){var u=t&&r||0,l=t||[],f=(e=e||{}).node||n,d=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==d){var h=o();null==f&&(f=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=i=16383&(h[6]<<8|h[7]))}var p=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,y=p-s+(m-c)/1e4;if(y<0&&void 0===e.clockseq&&(d=d+1&16383),(y<0||p>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,c=m,i=d;var g=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;l[u++]=g>>>24&255,l[u++]=g>>>16&255,l[u++]=g>>>8&255,l[u++]=255&g;var b=p/4294967296*1e4&268435455;l[u++]=b>>>8&255,l[u++]=255&b,l[u++]=b>>>24&15|16,l[u++]=b>>>16&255,l[u++]=d>>>8|128,l[u++]=255&d;for(var v=0;v<6;++v)l[u+v]=f[v];return t||a(l)}},{"./lib/bytesToUuid":1134,"./lib/rng":1135}],1137:[function(e,t,r){var n=e("./lib/rng"),i=e("./lib/bytesToUuid");t.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},{"./lib/bytesToUuid":1134,"./lib/rng":1135}],1138:[function(e,t,r){t.exports=function e(t,r){var n,i=0,o=0,a=r=r||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");n=t[a++],i+=o<28?(127&n)<<o:(127&n)*Math.pow(2,o),o+=7}while(n>=128);return e.bytes=a-r,i}},{}],1139:[function(e,t,r){t.exports=function e(t,r,i){r=r||[];for(var o=i=i||0;t>=n;)r[i++]=255&t|128,t/=128;for(;-128&t;)r[i++]=255&t|128,t>>>=7;return r[i]=0|t,e.bytes=i-o+1,r};var n=Math.pow(2,31)},{}],1140:[function(e,t,r){t.exports={encode:e("./encode.js"),decode:e("./decode.js"),encodingLength:e("./length.js")}},{"./decode.js":1138,"./encode.js":1139,"./length.js":1141}],1141:[function(e,t,r){var n=Math.pow(2,7),i=Math.pow(2,14),o=Math.pow(2,21),a=Math.pow(2,28),s=Math.pow(2,35),c=Math.pow(2,42),u=Math.pow(2,49),l=Math.pow(2,56),f=Math.pow(2,63);t.exports=function(e){return e<n?1:e<i?2:e<o?3:e<a?4:e<s?5:e<c?6:e<u?7:e<l?8:e<f?9:10}},{}],1142:[function(require,module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),(function(t){r[t]=e[t]})),forEach(globals,(function(t){e[t]&&(r[t]=e[t])}));var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),(function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,r[t])})),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),r},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),t}},{}],1143:[function(e,t,r){const n=e("events").EventEmitter,i=e("util").inherits,o=e("ethereumjs-util"),a=e("eth-block-tracker"),s=e("async/map"),c=e("async/eachSeries"),u=e("./util/stoplight.js"),l=(e("./util/rpc-cache-utils.js"),e("./util/create-payload.js")),f=function(){};function d(e){n.call(this),this.setMaxListeners(30),e=e||{};const t={sendAsync:this._handleAsync.bind(this)},r=e.blockTrackerProvider||t;this._blockTracker=e.blockTracker||new a({provider:r,pollingInterval:e.pollingInterval||4e3,setSkipCacheFlag:!0}),this._ready=new u,this.currentBlock=null,this._providers=[]}t.exports=d,i(d,n),d.prototype.start=function(e=f){const t=this;t._ready.go(),t._blockTracker.on("latest",e=>{t._getBlockByNumber(e,(e,r)=>{if(e)return void this.emit("error",e);if(!r)return void this.emit("error",new Error("Could not find block"));const n=(i=r,{number:o.toBuffer(i.number),hash:o.toBuffer(i.hash),parentHash:o.toBuffer(i.parentHash),nonce:o.toBuffer(i.nonce),mixHash:o.toBuffer(i.mixHash),sha3Uncles:o.toBuffer(i.sha3Uncles),logsBloom:o.toBuffer(i.logsBloom),transactionsRoot:o.toBuffer(i.transactionsRoot),stateRoot:o.toBuffer(i.stateRoot),receiptsRoot:o.toBuffer(i.receiptRoot||i.receiptsRoot),miner:o.toBuffer(i.miner),difficulty:o.toBuffer(i.difficulty),totalDifficulty:o.toBuffer(i.totalDifficulty),size:o.toBuffer(i.size),extraData:o.toBuffer(i.extraData),gasLimit:o.toBuffer(i.gasLimit),gasUsed:o.toBuffer(i.gasUsed),timestamp:o.toBuffer(i.timestamp),transactions:i.transactions});var i;t._setCurrentBlock(n),t.emit("rawBlock",r),t.emit("latest",r)})}),t._blockTracker.on("sync",t.emit.bind(t,"sync")),t._blockTracker.on("error",t.emit.bind(t,"error")),t._running=!0,t.emit("start")},d.prototype.stop=function(){this._blockTracker.removeAllListeners(),this._running=!1,this.emit("stop")},d.prototype.isRunning=function(){return this._running},d.prototype.addProvider=function(e,t){"number"==typeof t?this._providers.splice(t,0,e):this._providers.push(e),e.setEngine(this)},d.prototype.removeProvider=function(e){const t=this._providers.indexOf(e);if(t<0)throw new Error("Provider not found.");this._providers.splice(t,1)},d.prototype.send=function(e){throw new Error("Web3ProviderEngine does not support synchronous requests.")},d.prototype.sendAsync=function(e,t){const r=this;r._ready.await((function(){Array.isArray(e)?s(e,r._handleAsync.bind(r),t):r._handleAsync(e,t)}))},d.prototype._getBlockByNumber=function(e,t){const r=l({method:"eth_getBlockByNumber",params:[e,!1],skipCache:!0});this._handleAsync(r,(e,r)=>e?t(e):t(null,r.result))},d.prototype._handleAsync=function(e,t){var r=this,n=-1,i=null,o=null,a=[];function s(r,n){o=r,i=n,c(a,(function(e,t){e?e(o,i,t):t()}),(function(){var r={id:e.id,jsonrpc:e.jsonrpc,result:i};null!=o?(r.error={message:o.stack||o.message||o,code:-32e3},t(o,r)):t(null,r)}))}!function t(i){if(n+=1,a.unshift(i),n>=r._providers.length)s(new Error('Request for method "'+e.method+'" not handled by any subprovider. Please check your subprovider configuration to ensure this method is handled.'));else try{r._providers[n].handleRequest(e,t,s)}catch(e){s(e)}}()},d.prototype._setCurrentBlock=function(e){this.currentBlock=e,this.emit("block",e)}},{"./util/create-payload.js":1202,"./util/rpc-cache-utils.js":1205,"./util/stoplight.js":1206,"async/eachSeries":1148,"async/map":1164,"eth-block-tracker":591,"ethereumjs-util":1182,events:476,util:1133}],1144:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return(0,i.default)((function(t,r){var i;try{i=e.apply(this,t)}catch(e){return r(e)}(0,n.default)(i)&&"function"==typeof i.then?i.then((function(e){s(r,null,e)}),(function(e){s(r,e.message?e:new Error(e))})):r(null,i)}))};var n=a(e("lodash/isObject")),i=a(e("./internal/initialParams")),o=a(e("./internal/setImmediate"));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r){try{e(t,r)}catch(e){(0,o.default)(c,e)}}function c(e){throw e}t.exports=r.default},{"./internal/initialParams":1154,"./internal/setImmediate":1160,"lodash/isObject":865}],1145:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r,a){(0,n.default)(t)(e,(0,i.default)((0,o.default)(r)),a)};var n=a(e("./internal/eachOfLimit")),i=a(e("./internal/withoutIndex")),o=a(e("./internal/wrapAsync"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./internal/eachOfLimit":1152,"./internal/withoutIndex":1162,"./internal/wrapAsync":1163}],1146:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){((0,n.default)(e)?d:h)(e,(0,l.default)(t),r)};var n=f(e("lodash/isArrayLike")),i=f(e("./internal/breakLoop")),o=f(e("./eachOfLimit")),a=f(e("./internal/doLimit")),s=f(e("lodash/noop")),c=f(e("./internal/once")),u=f(e("./internal/onlyOnce")),l=f(e("./internal/wrapAsync"));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){r=(0,c.default)(r||s.default);var n=0,o=0,a=e.length;function l(e,t){e?r(e):++o!==a&&t!==i.default||r(null)}for(0===a&&r(null);n<a;n++)t(e[n],n,(0,u.default)(l))}var h=(0,a.default)(o.default,1/0);t.exports=r.default},{"./eachOfLimit":1147,"./internal/breakLoop":1149,"./internal/doLimit":1150,"./internal/once":1157,"./internal/onlyOnce":1158,"./internal/wrapAsync":1163,"lodash/isArrayLike":861,"lodash/noop":870}],1147:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r,o){(0,n.default)(t)(e,(0,i.default)(r),o)};var n=o(e("./internal/eachOfLimit")),i=o(e("./internal/wrapAsync"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./internal/eachOfLimit":1152,"./internal/wrapAsync":1163}],1148:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=o(e("./eachLimit")),i=o(e("./internal/doLimit"));function o(e){return e&&e.__esModule?e:{default:e}}r.default=(0,i.default)(n.default,1),t.exports=r.default},{"./eachLimit":1145,"./internal/doLimit":1150}],1149:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={},t.exports=r.default},{}],1150:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){return function(r,n,i){return e(r,t,n,i)}},t.exports=r.default},{}],1151:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,o){return e(n.default,t,(0,i.default)(r),o)}};var n=o(e("../eachOf")),i=o(e("./wrapAsync"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"../eachOf":1146,"./wrapAsync":1163}],1152:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,c){if(c=(0,i.default)(c||n.default),e<=0||!t)return c(null);var u=(0,o.default)(t),l=!1,f=0,d=!1;function h(e,t){if(f-=1,e)l=!0,c(e);else{if(t===s.default||l&&f<=0)return l=!0,c(null);d||p()}}function p(){for(d=!0;f<e&&!l;){var t=u();if(null===t)return l=!0,void(f<=0&&c(null));f+=1,r(t.value,t.key,(0,a.default)(h))}d=!1}p()}};var n=c(e("lodash/noop")),i=c(e("./once")),o=c(e("./iterator")),a=c(e("./onlyOnce")),s=c(e("./breakLoop"));function c(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./breakLoop":1149,"./iterator":1155,"./once":1157,"./onlyOnce":1158,"lodash/noop":870}],1153:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return n&&e[n]&&e[n]()};var n="function"==typeof Symbol&&Symbol.iterator;t.exports=r.default},{}],1154:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(){var t=(0,i.default)(arguments),r=t.pop();e.call(this,t,r)}};var n,i=(n=e("./slice"))&&n.__esModule?n:{default:n};t.exports=r.default},{"./slice":1161}],1155:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){if((0,n.default)(e))return function(e){var t=-1,r=e.length;return function(){return++t<r?{value:e[t],key:t}:null}}(e);var t,r,a,s,c=(0,i.default)(e);return c?function(e){var t=-1;return function(){var r=e.next();return r.done?null:(t++,{value:r.value,key:t})}}(c):(t=e,r=(0,o.default)(t),a=-1,s=r.length,function(){var e=r[++a];return a<s?{value:t[e],key:e}:null})};var n=a(e("lodash/isArrayLike")),i=a(e("./getIterator")),o=a(e("lodash/keys"));function a(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./getIterator":1153,"lodash/isArrayLike":861,"lodash/keys":868}],1156:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r,o){o=o||n.default,t=t||[];var a=[],s=0,c=(0,i.default)(r);e(t,(function(e,t,r){var n=s++;c(e,(function(e,t){a[n]=t,r(e)}))}),(function(e){o(e,a)}))};var n=o(e("lodash/noop")),i=o(e("./wrapAsync"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./wrapAsync":1163,"lodash/noop":870}],1157:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(){if(null!==e){var t=e;e=null,t.apply(this,arguments)}}},t.exports=r.default},{}],1158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}},t.exports=r.default},{}],1159:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){r=r||n.default;var s=(0,i.default)(t)?[]:{};e(t,(function(e,t,r){(0,a.default)(e)((function(e,n){arguments.length>2&&(n=(0,o.default)(arguments,1)),s[t]=n,r(e)}))}),(function(e){r(e,s)}))};var n=s(e("lodash/noop")),i=s(e("lodash/isArrayLike")),o=s(e("./slice")),a=s(e("./wrapAsync"));function s(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./slice":1161,"./wrapAsync":1163,"lodash/isArrayLike":861,"lodash/noop":870}],1160:[function(e,t,r){(function(t,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hasNextTick=r.hasSetImmediate=void 0,r.fallback=u,r.wrap=l;var i,o,a=(i=e("./slice"))&&i.__esModule?i:{default:i},s=r.hasSetImmediate="function"==typeof n&&n,c=r.hasNextTick="object"==typeof t&&"function"==typeof t.nextTick;function u(e){setTimeout(e,0)}function l(e){return function(t){var r=(0,a.default)(arguments,1);e((function(){t.apply(null,r)}))}}o=s?n:c?t.nextTick:u,r.default=l(o)}).call(this,e("_process"),e("timers").setImmediate)},{"./slice":1161,_process:952,timers:1088}],1161:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){t|=0;for(var r=Math.max(e.length-t,0),n=Array(r),i=0;i<r;i++)n[i]=e[t+i];return n},t.exports=r.default},{}],1162:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return function(t,r,n){return e(t,n)}},t.exports=r.default},{}],1163:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isAsync=void 0;var n,i=(n=e("../asyncify"))&&n.__esModule?n:{default:n},o="function"==typeof Symbol;function a(e){return o&&"AsyncFunction"===e[Symbol.toStringTag]}r.default=function(e){return a(e)?(0,i.default)(e):e},r.isAsync=a},{"../asyncify":1144}],1164:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=o(e("./internal/doParallel")),i=o(e("./internal/map"));function o(e){return e&&e.__esModule?e:{default:e}}r.default=(0,n.default)(i.default),t.exports=r.default},{"./internal/doParallel":1151,"./internal/map":1156}],1165:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,i.default)(n.default,e,t)};var n=o(e("./eachOf")),i=o(e("./internal/parallel"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./eachOf":1146,"./internal/parallel":1159}],1166:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){if(t=(0,o.default)(t||i.default),!(0,n.default)(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var r=0;function u(t){var n=(0,c.default)(e[r++]);t.push((0,s.default)(l)),n.apply(null,t)}function l(n){if(n||r===e.length)return t.apply(null,arguments);u((0,a.default)(arguments,1))}u([])};var n=u(e("lodash/isArray")),i=u(e("lodash/noop")),o=u(e("./internal/once")),a=u(e("./internal/slice")),s=u(e("./internal/onlyOnce")),c=u(e("./internal/wrapAsync"));function u(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./internal/once":1157,"./internal/onlyOnce":1158,"./internal/slice":1161,"./internal/wrapAsync":1163,"lodash/isArray":860,"lodash/noop":870}],1167:[function(e,t,r){arguments[4][169][0].apply(r,arguments)},{"cipher-base":488,dup:169,inherits:807,"md5.js":874,ripemd160:983,"sha.js":1051}],1168:[function(e,t,r){arguments[4][621][0].apply(r,arguments)},{"./src/classes":1169,"./src/errorCodes.json":1170,"./src/errors":1172,"./src/utils":1173,dup:621}],1169:[function(e,t,r){arguments[4][622][0].apply(r,arguments)},{dup:622,"fast-safe-stringify":782}],1170:[function(e,t,r){arguments[4][623][0].apply(r,arguments)},{dup:623}],1171:[function(e,t,r){arguments[4][624][0].apply(r,arguments)},{dup:624}],1172:[function(e,t,r){arguments[4][625][0].apply(r,arguments)},{"./classes":1169,"./errorCodes.json":1170,"./utils":1173,dup:625}],1173:[function(e,t,r){arguments[4][626][0].apply(r,arguments)},{"./classes":1169,"./errorCodes.json":1170,"./errorValues.json":1171,dup:626}],1174:[function(e,t,r){arguments[4][638][0].apply(r,arguments)},{"./cache-utils.js":1175,dup:638,"json-rpc-engine/src/createAsyncMiddleware":1184}],1175:[function(e,t,r){arguments[4][642][0].apply(r,arguments)},{dup:642,"json-stable-stringify":823}],1176:[function(e,t,r){(function(r){const n=r.fetch||e("fetch-ponyfill")().fetch,i=e("url"),{errors:o}=e("eth-json-rpc-errors"),a=e("btoa"),s=e("json-rpc-engine/src/createAsyncMiddleware");t.exports=function({rpcUrl:e,originHttpHeaderKey:t}){return s(async(r,i,o)=>{const{fetchUrl:a,fetchParams:s}=f({req:r,rpcUrl:e,originHttpHeaderKey:t});for(let e=0;e<5;e++){try{const e=await n(a,s);u(e);const t=await e.text();let r;try{r=JSON.parse(t)}catch(e){throw new Error(`FetchMiddleware - failed to parse response body: "${t}"`)}const o=l(e,r);return void(i.result=o)}catch(e){const t=e.toString();if(!c.some(e=>t.includes(e)))throw e}await d(1e3)}})},t.exports.createFetchConfigFromReq=f;const c=["Gateway timeout","ETIMEDOUT","failed to parse response body","Failed to fetch"];function u(e){switch(e.status){case 405:throw o.methodNotFound();case 418:throw o.internal("Request is being rate limited.");case 503:case 504:throw function(){let e="Gateway timeout. The request took too long to process. ";return e+="This can happen when querying logs over too wide a block range.",o.internal("Gateway timeout. The request took too long to process. This can happen when querying logs over too wide a block range.")}()}}function l(e,t){if(200!==e.status)throw o.internal(`Non-200 status code: '${e.status}'`,t);if(t.error)throw o.internal(t.error.toString(),t.error);return t.result}function f({req:e,rpcUrl:t,originHttpHeaderKey:r}){const n=i.parse(t),o=function(e){let t="";return t+=e.protocol,e.slashes&&(t+="//"),t+=e.hostname,e.port&&(t+=":"+e.port),t+=""+e.path,t}(n),s={id:e.id,jsonrpc:e.jsonrpc,method:e.method,params:e.params},c=e.origin,u={method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(s)};if(n.auth){const e=a(n.auth);u.headers.Authorization="Basic "+e}return r&&c&&(u.headers[r]=c),{fetchUrl:o,fetchParams:u}}function d(e){return new Promise(t=>setTimeout(t,e))}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{btoa:481,"eth-json-rpc-errors":1168,"fetch-ponyfill":783,"json-rpc-engine/src/createAsyncMiddleware":1184,url:1127}],1177:[function(e,t,r){arguments[4][644][0].apply(r,arguments)},{"./cache-utils":1175,clone:490,dup:644,"json-rpc-engine/src/createAsyncMiddleware":1184}],1178:[function(e,t,r){arguments[4][171][0].apply(r,arguments)},{dup:171,"ethereumjs-abi":1179,"ethereumjs-util":1182}],1179:[function(e,t,r){arguments[4][176][0].apply(r,arguments)},{"./lib/index.js":1180,dup:176}],1180:[function(e,t,r){(function(r){const n=e("ethereumjs-util"),i=e("bn.js");var o=function(){};function a(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function s(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return n.isHexPrefixed(e)?new i(n.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function f(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var r=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==r&&3===r.length)return{method:t[1],args:r[1].split(","),retargs:r[2].split(",")};var n=t[2].split(",");return 1===n.length&&""===n[0]&&(n=[]),{method:t[1],args:n}}function d(e,t){var o,a,f,h;if("address"===e)return d("uint160",l(t));if("bool"===e)return d("uint8",t?1:0);if("string"===e)return d("bytes",r.from(t,"utf8"));if(y(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(o=u(e))&&0!==o&&t.length>o)throw new Error("Elements exceed array size: "+o);for(h in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)f.push(d(e,t[h]));if("dynamic"===o){var p=d("uint256",t.length);f.unshift(p)}return r.concat(f)}if("bytes"===e)return t=r.from(t),f=r.concat([d("uint256",t.length),t]),t.length%32!=0&&(f=r.concat([f,n.zeros(32-t.length%32)])),f;if(e.startsWith("bytes")){if((o=s(e))<1||o>32)throw new Error("Invalid bytes<N> width: "+o);return n.setLengthRight(t,32)}if(e.startsWith("uint")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid uint<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+a.bitLength());if(a<0)throw new Error("Supplied uint is negative");return a.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((o=s(e))%8||o<8||o>256)throw new Error("Invalid int<N> width: "+o);if((a=l(t)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(o=c(e),(a=l(t))<0)throw new Error("Supplied ufixed is negative");return d("uint256",a.mul(new i(2).pow(new i(o[1]))))}if(e.startsWith("fixed"))return o=c(e),d("int256",l(t).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+e)}function h(e,t,n){var o,a,s,c;if("string"==typeof e&&(e=p(e)),"address"===e.name)return h(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return h(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=h(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],o=e.size,"dynamic"===e.size&&(n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),n+=32),c=0;c<o;c++){var l=h(e.subArray,t,n);s.push(l),n+=e.subArray.memoryUsage}return s}if("bytes"===e.name)return n=h("uint256",t,n).toNumber(),o=h("uint256",t,n).toNumber(),t.slice(n+32,n+32+o);if(e.name.startsWith("bytes"))return t.slice(n,n+e.size);if(e.name.startsWith("uint")){if((a=new i(t.slice(n,n+32),16,"be")).bitLength()>e.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("int")){if((a=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+a.bitLength());return a}if(e.name.startsWith("ufixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("uint256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}if(e.name.startsWith("fixed")){if(o=new i(2).pow(new i(e.size[1])),!(a=h("int256",t,n)).mod(o).isZero())throw new Error("Decimals not supported yet");return a.div(o)}throw new Error("Unsupported or invalid type: "+e.name)}function p(e){var t,r,n;if(y(e)){t=u(e);var i=e.slice(0,e.lastIndexOf("["));return i=p(i),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:i.memoryUsage*t,subArray:i}}switch(e){case"address":n="uint160";break;case"bool":n="uint8";break;case"string":n="bytes"}if(r={rawType:n,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?r.size=s(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(r.size=c(e)),e.startsWith("bytes")&&"bytes"!==e&&(r.size<1||r.size>32))throw new Error("Invalid bytes<N> width: "+r.size);if((e.startsWith("uint")||e.startsWith("int"))&&(r.size%8||r.size<8||r.size>256))throw new Error("Invalid int/uint<N> width: "+r.size);return r}function m(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function y(e){return e.lastIndexOf("]")===e.length-1}function g(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var i=e+"("+t.map(a).join(",")+")";return n.keccak256(r.from(i))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],i=[],o=0;e.forEach((function(e){if(y(e)){var t=u(e);o+="dynamic"!==t?32*t:32}else o+=32}));for(var s=0;s<e.length;s++){var c=a(e[s]),l=d(c,t[s]);m(c)?(n.push(d("uint256",o)),i.push(l),o+=l.length):n.push(l)}return r.concat(n.concat(i))},o.rawDecode=function(e,t){var n=[];t=r.from(t);for(var i=0,o=0;o<e.length;o++){var s=p(a(e[o])),c=h(s,t,i);i+=s.memoryUsage,n.push(c)}return n},o.simpleEncode=function(e){var t=Array.prototype.slice.call(arguments).slice(1),n=f(e);if(t.length!==n.args.length)throw new Error("Argument count mismatch");return r.concat([o.methodID(n.method,n.args),o.rawEncode(n.args,t)])},o.simpleDecode=function(e,t){var r=f(e);if(!r.retargs)throw new Error("No return values in method");return o.rawDecode(r.retargs,t)},o.stringify=function(e,t){var r=[];for(var n in e){var i=e[n],o=t[n];o=/^[^\[]+\[.*\]$/.test(i)?o.map((function(e){return g(i,e)})).join(", "):g(i,o),r.push(o)}return r},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var i,o,c=[],u=0;u<e.length;u++){var f=a(e[u]),d=t[u];if("bytes"===f)c.push(d);else if("string"===f)c.push(r.from(d,"utf8"));else if("bool"===f)c.push(r.from(d?"01":"00","hex"));else if("address"===f)c.push(n.setLengthLeft(d,20));else if(f.startsWith("bytes")){if((i=s(f))<1||i>32)throw new Error("Invalid bytes<N> width: "+i);c.push(n.setLengthRight(d,i))}else if(f.startsWith("uint")){if((i=s(f))%8||i<8||i>256)throw new Error("Invalid uint<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+o.bitLength());c.push(o.toArrayLike(r,"be",i/8))}else{if(!f.startsWith("int"))throw new Error("Unsupported or invalid type: "+f);if((i=s(f))%8||i<8||i>256)throw new Error("Invalid int<N> width: "+i);if((o=l(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+o.bitLength());c.push(o.toTwos(i).toArrayLike(r,"be",i/8))}}return r.concat(c)},o.soliditySHA3=function(e,t){return n.keccak256(o.solidityPack(e,t))},o.soliditySHA256=function(e,t){return n.sha256(o.solidityPack(e,t))},o.solidityRIPEMD160=function(e,t){return n.ripemd160(o.solidityPack(e,t),!0)},o.fromSerpent=function(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];if("s"===i)r.push("bytes");else if("b"===i){for(var o="bytes",a=n+1;a<e.length&&(t=e[a])>="0"&&t<="9";)o+=e[a]-"0",a++;n=a-1,r.push(o)}else if("i"===i)r.push("int256");else{if("a"!==i)throw new Error("Unsupported or invalid type: "+i);r.push("int256[]")}}return r},o.toSerpent=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if("bytes"===n)t.push("s");else if(n.startsWith("bytes"))t.push("b"+s(n));else if("int256"===n)t.push("i");else{if("int256[]"!==n)throw new Error("Unsupported or invalid type: "+n);t.push("a")}}return t.join("")},t.exports=o}).call(this,e("buffer").Buffer)},{"bn.js":439,buffer:475,"ethereumjs-util":1181}],1181:[function(e,t,r){arguments[4][178][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":1167,dup:178,"ethjs-util":1183,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],1182:[function(e,t,r){arguments[4][172][0].apply(r,arguments)},{assert:329,"bn.js":439,"create-hash":1167,dup:172,"ethjs-util":1183,keccak:832,rlp:984,"safe-buffer":1037,secp256k1:1041}],1183:[function(e,t,r){(function(r){"use strict";var n=e("is-hex-prefixed"),i=e("strip-hex-prefix");function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}t.exports={arrayContainsArray:function(e,t,r){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(r)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var t=a(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:n,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",r=0;r<e.length;r++){var n=e.charCodeAt(r).toString(16);t+=n.length<2?"0"+n:n}return"0x"+t},fromUtf8:function(e){return"0x"+o(new r(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new r(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,r){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var n=[],i=0;i<e.length;i++){var o=e[i][t];if(r&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");n.push(o)}return n},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}}}).call(this,e("buffer").Buffer)},{buffer:475,"is-hex-prefixed":810,"strip-hex-prefix":1081}],1184:[function(e,t,r){arguments[4][615][0].apply(r,arguments)},{dup:615,"promise-to-callback":953}],1185:[function(e,t,r){arguments[4][687][0].apply(r,arguments)},{dup:687}],1186:[function(e,t,r){t.exports={name:"web3-provider-engine",version:"15.0.4",description:"",repository:"https://github.com/MetaMask/web3-provider-engine",main:"index.js",scripts:{test:"node test/index.js && npm run lint",prepublishOnly:"npm run build && npm run bundle",build:"babel zero.js index.js -d dist/es5 && babel subproviders -d dist/es5/subproviders && babel util -d dist/es5/util",bundle:"mkdir -p ./dist && npm run bundle-engine && npm run bundle-zero","bundle-zero":"browserify -s ZeroClientProvider -e zero.js -t [ babelify --presets [ @babel/preset-env ] ] > dist/ZeroClientProvider.js","bundle-engine":"browserify -s ProviderEngine -e index.js -t [ babelify --presets [ @babel/preset-env ] ] > dist/ProviderEngine.js",lint:"eslint --quiet --ignore-path .gitignore ."},author:"",license:"MIT",dependencies:{async:"^2.5.0",backoff:"^2.5.0",clone:"^2.0.0","cross-fetch":"^2.1.0","eth-block-tracker":"^4.4.2","eth-json-rpc-errors":"^1.0.1","eth-json-rpc-filters":"^4.1.1","eth-json-rpc-infura":"^4.0.1","eth-json-rpc-middleware":"^4.1.5","eth-sig-util":"^1.4.2","ethereumjs-block":"^1.2.2","ethereumjs-tx":"^1.2.0","ethereumjs-util":"^5.1.5","ethereumjs-vm":"^2.3.4","json-stable-stringify":"^1.0.1","promise-to-callback":"^1.0.0","readable-stream":"^2.2.9",request:"^2.85.0",semaphore:"^1.0.3",ws:"^5.1.1",xhr:"^2.2.0",xtend:"^4.0.1"},devDependencies:{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5",babelify:"^10.0.0",browserify:"^16.5.0",eslint:"^6.2.0",ethjs:"^0.3.6","ganache-core":"^2.7.0",tape:"^4.4.0"},browser:{request:!1,ws:!1}}},{}],1187:[function(e,t,r){const n=e("./json-rpc-engine-middleware"),i=e("eth-json-rpc-middleware/block-cache");t.exports=class extends n{constructor(e){super(({blockTracker:t})=>i(Object.assign({blockTracker:t},e)))}}},{"./json-rpc-engine-middleware":1195,"eth-json-rpc-middleware/block-cache":1174}],1188:[function(e,t,r){const n=e("util").inherits,i=e("xtend"),o=e("./fixture.js"),a=e("../package.json").version;function s(e){var t=i({web3_clientVersion:"ProviderEngine/v"+a+"/javascript",net_listening:!0,eth_hashrate:"0x00",eth_mining:!1},e=e||{});o.call(this,t)}t.exports=s,n(s,o)},{"../package.json":1186,"./fixture.js":1191,util:1133,xtend:1185}],1189:[function(e,t,r){const n=e("./json-rpc-engine-middleware"),i=e("eth-json-rpc-middleware/fetch");t.exports=class extends n{constructor(e){super(({blockTracker:t,provider:r,engine:n})=>i(e))}}},{"./json-rpc-engine-middleware":1195,"eth-json-rpc-middleware/fetch":1176}],1190:[function(e,t,r){const n=e("./json-rpc-engine-middleware"),i=e("eth-json-rpc-filters");t.exports=class extends n{constructor(){super(({blockTracker:e,provider:t,engine:r})=>i({blockTracker:e,provider:t}))}}},{"./json-rpc-engine-middleware":1195,"eth-json-rpc-filters":612}],1191:[function(e,t,r){const n=e("util").inherits,i=e("./subprovider.js");function o(e){e=e||{},this.staticResponses=e}t.exports=o,n(o,i),o.prototype.handleRequest=function(e,t,r){var n=this.staticResponses[e.method];"function"==typeof n?n(e,t,r):void 0!==n?setTimeout(()=>r(null,n)):t()}},{"./subprovider.js":1199,util:1133}],1192:[function(e,t,r){const n=e("async/waterfall"),i=e("async/parallel"),o=e("util").inherits,a=e("ethereumjs-util"),s=e("eth-sig-util"),c=e("xtend"),u=e("semaphore"),l=e("./subprovider.js"),f=e("../util/estimate-gas.js"),d=/^[0-9A-Fa-f]+$/g;function h(e){this.nonceLock=u(1),e.getAccounts&&(this.getAccounts=e.getAccounts),e.processTransaction&&(this.processTransaction=e.processTransaction),e.processSignTransaction&&(this.processSignTransaction=e.processSignTransaction),e.processMessage&&(this.processMessage=e.processMessage),e.processPersonalMessage&&(this.processPersonalMessage=e.processPersonalMessage),e.processTypedMessage&&(this.processTypedMessage=e.processTypedMessage),this.approveTransaction=e.approveTransaction||this.autoApprove,this.approveMessage=e.approveMessage||this.autoApprove,this.approvePersonalMessage=e.approvePersonalMessage||this.autoApprove,this.approveTypedMessage=e.approveTypedMessage||this.autoApprove,this.signTransaction=e.signTransaction||y("signTransaction"),this.signMessage=e.signMessage||y("signMessage"),this.signPersonalMessage=e.signPersonalMessage||y("signPersonalMessage"),this.signTypedMessage=e.signTypedMessage||y("signTypedMessage"),e.recoverPersonalSignature&&(this.recoverPersonalSignature=e.recoverPersonalSignature),e.publishTransaction&&(this.publishTransaction=e.publishTransaction),this.estimateGas=e.estimateGas||this.estimateGas,this.getGasPrice=e.getGasPrice||this.getGasPrice}function p(e){return e.toLowerCase()}function m(e){return"string"==typeof e&&("0x"===e.slice(0,2)&&e.slice(2).match(d))}function y(e){return function(t,r){r(new Error('ProviderEngine - HookedWalletSubprovider - Must provide "'+e+'" fn in constructor options'))}}t.exports=h,o(h,l),h.prototype.handleRequest=function(e,t,r){const i=this;let o,s,u,l,f;switch(i._parityRequests={},i._parityRequestCount=0,e.method){case"eth_coinbase":return void i.getAccounts((function(e,t){if(e)return r(e);let n=t[0]||null;r(null,n)}));case"eth_accounts":return void i.getAccounts((function(e,t){if(e)return r(e);r(null,t)}));case"eth_sendTransaction":return o=e.params[0],void n([e=>i.validateTransaction(o,e),e=>i.processTransaction(o,e)],r);case"eth_signTransaction":return o=e.params[0],void n([e=>i.validateTransaction(o,e),e=>i.processSignTransaction(o,e)],r);case"eth_sign":return f=e.params[0],l=e.params[1],u=e.params[2]||{},s=c(u,{from:f,data:l}),void n([e=>i.validateMessage(s,e),e=>i.processMessage(s,e)],r);case"personal_sign":return function(){const t=e.params[0];if(function(e){const t=a.addHexPrefix(e);return!a.isValidAddress(t)&&m(e)}(e.params[1])&&function(e){const t=a.addHexPrefix(e);return a.isValidAddress(t)}(t)){let t="The eth_personalSign method requires params ordered ";t+="[message, address]. This was previously handled incorrectly, ",t+="and has been corrected automatically. ",t+="Please switch this param order for smooth behavior in the future.",console.warn(t),f=e.params[0],l=e.params[1]}else l=e.params[0],f=e.params[1];u=e.params[2]||{},s=c(u,{from:f,data:l}),n([e=>i.validatePersonalMessage(s,e),e=>i.processPersonalMessage(s,e)],r)}();case"personal_ecRecover":return function(){l=e.params[0];let t=e.params[1];u=e.params[2]||{},s=c(u,{sig:t,data:l}),i.recoverPersonalSignature(s,r)}();case"eth_signTypedData":return l=e.params[0],f=e.params[1],u=e.params[2]||{},s=c(u,{from:f,data:l}),void n([e=>i.validateTypedMessage(s,e),e=>i.processTypedMessage(s,e)],r);case"parity_postTransaction":return o=e.params[0],void i.parityPostTransaction(o,r);case"parity_postSign":return f=e.params[0],l=e.params[1],void i.parityPostSign(f,l,r);case"parity_checkRequest":return function(){const t=e.params[0];i.parityCheckRequest(t,r)}();case"parity_defaultAccount":return void i.getAccounts((function(e,t){if(e)return r(e);const n=t[0]||null;r(null,n)}));default:return void t()}},h.prototype.getAccounts=function(e){e(null,[])},h.prototype.processTransaction=function(e,t){const r=this;n([t=>r.approveTransaction(e,t),(e,t)=>r.checkApproval("transaction",e,t),t=>r.finalizeAndSubmitTx(e,t)],t)},h.prototype.processSignTransaction=function(e,t){const r=this;n([t=>r.approveTransaction(e,t),(e,t)=>r.checkApproval("transaction",e,t),t=>r.finalizeTx(e,t)],t)},h.prototype.processMessage=function(e,t){const r=this;n([t=>r.approveMessage(e,t),(e,t)=>r.checkApproval("message",e,t),t=>r.signMessage(e,t)],t)},h.prototype.processPersonalMessage=function(e,t){const r=this;n([t=>r.approvePersonalMessage(e,t),(e,t)=>r.checkApproval("message",e,t),t=>r.signPersonalMessage(e,t)],t)},h.prototype.processTypedMessage=function(e,t){const r=this;n([t=>r.approveTypedMessage(e,t),(e,t)=>r.checkApproval("message",e,t),t=>r.signTypedMessage(e,t)],t)},h.prototype.autoApprove=function(e,t){t(null,!0)},h.prototype.checkApproval=function(e,t,r){r(t?null:new Error("User denied "+e+" signature."))},h.prototype.parityPostTransaction=function(e,t){const r=this,n="0x"+r._parityRequestCount.toString(16);r._parityRequestCount++,r.emitPayload({method:"eth_sendTransaction",params:[e]},(function(e,t){if(e)return void(r._parityRequests[n]={error:e});const i=t.result;r._parityRequests[n]=i})),t(null,n)},h.prototype.parityPostSign=function(e,t,r){const n=this,i="0x"+n._parityRequestCount.toString(16);n._parityRequestCount++,n.emitPayload({method:"eth_sign",params:[e,t]},(function(e,t){if(e)return void(n._parityRequests[i]={error:e});const r=t.result;n._parityRequests[i]=r})),r(null,i)},h.prototype.parityCheckRequest=function(e,t){const r=this._parityRequests[e]||null;return r?r.error?t(r.error):void t(null,r):t(null,null)},h.prototype.recoverPersonalSignature=function(e,t){let r;try{r=s.recoverPersonalSignature(e)}catch(e){return t(e)}t(null,r)},h.prototype.validateTransaction=function(e,t){if(void 0===e.from)return t(new Error("Undefined address - from address required to sign transaction."));this.validateSender(e.from,(function(r,n){return r?t(r):n?void t():t(new Error(`Unknown address - unable to sign transaction for this address: "${e.from}"`))}))},h.prototype.validateMessage=function(e,t){if(void 0===e.from)return t(new Error("Undefined address - from address required to sign message."));this.validateSender(e.from,(function(r,n){return r?t(r):n?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))}))},h.prototype.validatePersonalMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to sign personal message.")):void 0===e.data?t(new Error("Undefined message - message required to sign personal message.")):m(e.data)?void this.validateSender(e.from,(function(r,n){return r?t(r):n?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))})):t(new Error("HookedWalletSubprovider - validateMessage - message was not encoded as hex."))},h.prototype.validateTypedMessage=function(e,t){return void 0===e.from?t(new Error("Undefined address - from address required to sign typed data.")):void 0===e.data?t(new Error("Undefined data - message required to sign typed data.")):void this.validateSender(e.from,(function(r,n){return r?t(r):n?void t():t(new Error(`Unknown address - unable to sign message for this address: "${e.from}"`))}))},h.prototype.validateSender=function(e,t){if(!e)return t(null,!1);this.getAccounts((function(r,n){if(r)return t(r);const i=-1!==n.map(p).indexOf(e.toLowerCase());t(null,i)}))},h.prototype.finalizeAndSubmitTx=function(e,t){const r=this;r.nonceLock.take((function(){n([r.fillInTxExtras.bind(r,e),r.signTransaction.bind(r),r.publishTransaction.bind(r)],(function(e,n){if(r.nonceLock.leave(),e)return t(e);t(null,n)}))}))},h.prototype.finalizeTx=function(e,t){const r=this;r.nonceLock.take((function(){n([r.fillInTxExtras.bind(r,e),r.signTransaction.bind(r)],(function(n,i){if(r.nonceLock.leave(),n)return t(n);t(null,{raw:i,tx:e})}))}))},h.prototype.publishTransaction=function(e,t){this.emitPayload({method:"eth_sendRawTransaction",params:[e]},(function(e,r){if(e)return t(e);t(null,r.result)}))},h.prototype.estimateGas=function(e,t){f(this.engine,e,t)},h.prototype.getGasPrice=function(e){this.emitPayload({method:"eth_gasPrice",params:[]},(function(t,r){if(t)return e(t);e(null,r.result)}))},h.prototype.fillInTxExtras=function(e,t){const r=this,n=e.from,o={};void 0===e.gasPrice&&(o.gasPrice=r.getGasPrice.bind(r)),void 0===e.nonce&&(o.nonce=r.emitPayload.bind(r,{method:"eth_getTransactionCount",params:[n,"pending"]})),void 0===e.gas&&(o.gas=r.estimateGas.bind(r,function(e){return{from:e.from,to:e.to,value:e.value,data:e.data,gas:e.gas,gasPrice:e.gasPrice,nonce:e.nonce}}(e))),i(o,(function(r,n){if(r)return t(r);const i={};n.gasPrice&&(i.gasPrice=n.gasPrice),n.nonce&&(i.nonce=n.nonce.result),n.gas&&(i.gas=n.gas),t(null,c(e,i))}))}},{"../util/estimate-gas.js":1203,"./subprovider.js":1199,"async/parallel":1165,"async/waterfall":1166,"eth-sig-util":1178,"ethereumjs-util":1182,semaphore:1048,util:1133,xtend:1185}],1193:[function(e,t,r){const n=e("./json-rpc-engine-middleware"),i=e("eth-json-rpc-middleware/inflight-cache");t.exports=class extends n{constructor(e){super(()=>i(e))}}},{"./json-rpc-engine-middleware":1195,"eth-json-rpc-middleware/inflight-cache":1177}],1194:[function(e,t,r){const n=e("eth-json-rpc-infura/src/createProvider"),i=e("./provider.js");t.exports=class extends i{constructor(e={}){super(n(e))}}},{"./provider.js":1197,"eth-json-rpc-infura/src/createProvider":636}],1195:[function(e,t,r){const n=e("./subprovider.js");t.exports=class extends n{constructor(e){if(super(),!e)throw new Error("JsonRpcEngineMiddlewareSubprovider - no constructorFn specified");this._constructorFn=e}setEngine(e){if(this.middleware)throw new Error("JsonRpcEngineMiddlewareSubprovider - subprovider added to engine twice");const t=e._blockTracker,r=this._constructorFn({engine:e,provider:e,blockTracker:t});if(!r)throw new Error("JsonRpcEngineMiddlewareSubprovider - _constructorFn did not return middleware");if("function"!=typeof r)throw new Error("JsonRpcEngineMiddlewareSubprovider - specified middleware is not a function");this.middleware=r}handleRequest(e,t,r){const n={id:e.id};this.middleware(e,n,(function(e){t((t,r,i)=>{t?(delete n.result,n.error={message:t.message||t}):n.result=r,e?e(i):i()})}),(function(e){if(e)return r(e);r(null,n.result)}))}}},{"./subprovider.js":1199}],1196:[function(e,t,r){(function(r){const n=e("util").inherits,i=e("ethereumjs-tx"),o=e("ethereumjs-util"),a=e("./subprovider.js"),s=e("../util/rpc-cache-utils").blockTagForPayload;function c(e){this.nonceCache={}}t.exports=c,n(c,a),c.prototype.handleRequest=function(e,t,n){const a=this;switch(e.method){case"eth_getTransactionCount":var c=s(e),u=e.params[0].toLowerCase(),l=a.nonceCache[u];return void("pending"===c?l?n(null,l):t((function(e,t,r){if(e)return r();void 0===a.nonceCache[u]&&(a.nonceCache[u]=t),r()})):t());case"eth_sendRawTransaction":return void t((function(t,n,s){if(t)return s();var c=e.params[0],u=(o.stripHexPrefix(c),r.from(o.stripHexPrefix(c),"hex"),new i(r.from(o.stripHexPrefix(c),"hex"))),l="0x"+u.getSenderAddress().toString("hex").toLowerCase(),f=o.bufferToInt(u.nonce),d=(++f).toString(16);d.length%2&&(d="0"+d),d="0x"+d,a.nonceCache[l]=d,s()}));case"evm_revert":return a.nonceCache={},void t();default:return void t()}}}).call(this,e("buffer").Buffer)},{"../util/rpc-cache-utils":1205,"./subprovider.js":1199,buffer:475,"ethereumjs-tx":712,"ethereumjs-util":1182,util:1133}],1197:[function(e,t,r){const n=e("util").inherits,i=e("./subprovider.js");function o(e){if(!e)throw new Error("ProviderSubprovider - no provider specified");if(!e.sendAsync)throw new Error("ProviderSubprovider - specified provider does not have a sendAsync method");this.provider=e}t.exports=o,n(o,i),o.prototype.handleRequest=function(e,t,r){this.provider.sendAsync(e,(function(e,t){return e?r(e):t.error?r(new Error(t.error.message)):void r(null,t.result)}))}},{"./subprovider.js":1199,util:1133}],1198:[function(e,t,r){const n=e("util").inherits,i=e("./subprovider.js"),o=(e("xtend"),e("ethereumjs-util"));function a(e){}t.exports=a,n(a,i),a.prototype.handleRequest=function(e,t,r){var n=e.params[0];if("object"==typeof n&&!Array.isArray(n)){var i=function(e){return s.reduce((function(t,r){return r in e&&(Array.isArray(e[r])?t[r]=e[r].map((function(e){return c(e)})):t[r]=c(e[r])),t}),{})}(n);e.params[0]=i}t()};var s=["from","to","value","data","gas","gasPrice","nonce","fromBlock","toBlock","address","topics"];function c(e){switch(e){case"latest":case"pending":case"earliest":return e;default:return"string"==typeof e?o.addHexPrefix(e.toLowerCase()):e}}},{"./subprovider.js":1199,"ethereumjs-util":1182,util:1133,xtend:1185}],1199:[function(e,t,r){const n=e("../util/create-payload.js");function i(){}t.exports=i,i.prototype.setEngine=function(e){const t=this;t.engine||(t.engine=e,e.on("block",(function(e){t.currentBlock=e})),e.on("start",(function(){t.start()})),e.on("stop",(function(){t.stop()})))},i.prototype.handleRequest=function(e,t,r){throw new Error("Subproviders should override `handleRequest`.")},i.prototype.emitPayload=function(e,t){this.engine.sendAsync(n(e),t)},i.prototype.stop=function(){},i.prototype.start=function(){}},{"../util/create-payload.js":1202}],1200:[function(e,t,r){const n=e("./json-rpc-engine-middleware"),i=e("eth-json-rpc-filters/subscriptionManager");t.exports=class extends n{constructor(){super(({blockTracker:e,provider:t,engine:r})=>{const{events:n,middleware:o}=i({blockTracker:e,provider:t});return n.on("notification",e=>r.emit("data",null,e)),o})}}},{"./json-rpc-engine-middleware":1195,"eth-json-rpc-filters/subscriptionManager":618}],1201:[function(e,t,r){(function(r){const n=e("backoff"),i=e("events"),o=(e("util").inherits,r.WebSocket||e("ws")),a=e("./subprovider"),s=e("../util/create-payload");class c extends a{constructor({rpcUrl:e,debug:t,origin:r}){super(),i.call(this),Object.defineProperties(this,{_backoff:{value:n.exponential({randomisationFactor:.2,maxDelay:5e3})},_connectTime:{value:null,writable:!0},_log:{value:t?(...e)=>console.info.apply(console,["[WSProvider]",...e]):()=>{}},_origin:{value:r},_pendingRequests:{value:new Map},_socket:{value:null,writable:!0},_unhandledRequests:{value:[]},_url:{value:e}}),this._handleSocketClose=this._handleSocketClose.bind(this),this._handleSocketMessage=this._handleSocketMessage.bind(this),this._handleSocketOpen=this._handleSocketOpen.bind(this),this._backoff.on("ready",()=>{this._openSocket()}),this._openSocket()}handleRequest(e,t,r){if(!this._socket||this._socket.readyState!==o.OPEN)return this._unhandledRequests.push(Array.from(arguments)),void this._log("Socket not open. Request queued.");this._pendingRequests.set(e.id,[e,r]);const n=s(e);delete n.origin,this._socket.send(JSON.stringify(n)),this._log(`Sent: ${n.method} #${n.id}`)}_handleSocketClose({reason:e,code:t}){this._log(`Socket closed, code ${t} (${e||"no reason"})`),this._connectTime&&Date.now()-this._connectTime>5e3&&this._backoff.reset(),this._socket.removeEventListener("close",this._handleSocketClose),this._socket.removeEventListener("message",this._handleSocketMessage),this._socket.removeEventListener("open",this._handleSocketOpen),this._socket=null,this._backoff.backoff()}_handleSocketMessage(e){let t;try{t=JSON.parse(e.data)}catch(e){return void this._log("Received a message that is not valid JSON:",t)}if(void 0===t.id)return this.engine.emit("data",null,t);if(!this._pendingRequests.has(t.id))return;const[r,n]=this._pendingRequests.get(t.id);if(this._pendingRequests.delete(t.id),this._log(`Received: ${r.method} #${t.id}`),t.error)return n(new Error(t.error.message));n(null,t.result)}_handleSocketOpen(){this._log("Socket open."),this._connectTime=Date.now(),this._pendingRequests.forEach(([e,t])=>{this._unhandledRequests.push([e,null,t])}),this._pendingRequests.clear(),this._unhandledRequests.splice(0,this._unhandledRequests.length).forEach(e=>{this.handleRequest.apply(this,e)})}_openSocket(){this._log("Opening socket..."),this._socket=new o(this._url,[],this._origin?{headers:{origin:this._origin}}:{}),this._socket.addEventListener("close",this._handleSocketClose),this._socket.addEventListener("message",this._handleSocketMessage),this._socket.addEventListener("open",this._handleSocketOpen)}}Object.assign(c.prototype,i.prototype),t.exports=c}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util/create-payload":1202,"./subprovider":1199,backoff:421,events:476,util:1133,ws:442}],1202:[function(e,t,r){const n=e("./random-id.js"),i=e("xtend");t.exports=function(e){return i({id:n(),jsonrpc:"2.0",params:[]},e)}},{"./random-id.js":1204,xtend:1185}],1203:[function(e,t,r){const n=e("./create-payload.js");t.exports=function(e,t,r){e.sendAsync(n({method:"eth_estimateGas",params:[t]}),(function(e,t){if(e)return"no contract code at given address"===e.message?r(null,"0xcf08"):r(e);r(null,t.result)}))}},{"./create-payload.js":1202}],1204:[function(e,t,r){t.exports=function(){return(new Date).getTime()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}},{}],1205:[function(e,t,r){const n=e("json-stable-stringify");function i(e){return"never"!==s(e)}function o(e){var t=a(e);return t>=e.params.length?e.params:"eth_getBlockByNumber"===e.method?e.params.slice(1):e.params.slice(0,t)}function a(e){switch(e.method){case"eth_getStorageAt":return 2;case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":return 1;case"eth_getBlockByNumber":return 0;default:return}}function s(e){switch(e.method){case"web3_clientVersion":case"web3_sha3":case"eth_protocolVersion":case"eth_getBlockTransactionCountByHash":case"eth_getUncleCountByBlockHash":case"eth_getCode":case"eth_getBlockByHash":case"eth_getTransactionByHash":case"eth_getTransactionByBlockHashAndIndex":case"eth_getTransactionReceipt":case"eth_getUncleByBlockHashAndIndex":case"eth_getCompilers":case"eth_compileLLL":case"eth_compileSolidity":case"eth_compileSerpent":case"shh_version":return"perma";case"eth_getBlockByNumber":case"eth_getBlockTransactionCountByNumber":case"eth_getUncleCountByBlockNumber":case"eth_getTransactionByBlockNumberAndIndex":case"eth_getUncleByBlockNumberAndIndex":return"fork";case"eth_gasPrice":case"eth_getBalance":case"eth_getStorageAt":case"eth_getTransactionCount":case"eth_call":case"eth_estimateGas":case"eth_getFilterLogs":case"eth_getLogs":case"eth_blockNumber":return"block";case"net_version":case"net_peerCount":case"net_listening":case"eth_syncing":case"eth_sign":case"eth_coinbase":case"eth_mining":case"eth_hashrate":case"eth_accounts":case"eth_sendTransaction":case"eth_sendRawTransaction":case"eth_newFilter":case"eth_newBlockFilter":case"eth_newPendingTransactionFilter":case"eth_uninstallFilter":case"eth_getFilterChanges":case"eth_getWork":case"eth_submitWork":case"eth_submitHashrate":case"db_putString":case"db_getString":case"db_putHex":case"db_getHex":case"shh_post":case"shh_newIdentity":case"shh_hasIdentity":case"shh_newGroup":case"shh_addToGroup":case"shh_newFilter":case"shh_uninstallFilter":case"shh_getFilterChanges":case"shh_getMessages":return"never"}}t.exports={cacheIdentifierForPayload:function(e,t={}){if(!i(e))return null;const{includeBlockRef:r}=t,a=r?e.params:o(e);return e.method+":"+n(a)},canCache:i,blockTagForPayload:function(e){var t=a(e);return t>=e.params.length?null:e.params[t]},paramsWithoutBlockTag:o,blockTagParamIndex:a,cacheTypeForPayload:s}},{"json-stable-stringify":823}],1206:[function(e,t,r){const n=e("events").EventEmitter,i=e("util").inherits;function o(){n.call(this),this.isLocked=!0}t.exports=o,i(o,n),o.prototype.go=function(){this.isLocked=!1,this.emit("unlock")},o.prototype.stop=function(){this.isLocked=!0,this.emit("lock")},o.prototype.await=function(e){this.isLocked?this.once("unlock",e):setTimeout(e)}},{events:476,util:1133}],1207:[function(e,t,r){const n=e("./index.js"),i=e("./subproviders/default-fixture.js"),o=e("./subproviders/nonce-tracker.js"),a=e("./subproviders/cache.js"),s=e("./subproviders/filters"),c=e("./subproviders/subscriptions"),u=e("./subproviders/inflight-cache"),l=e("./subproviders/hooked-wallet.js"),f=e("./subproviders/sanitizer.js"),d=e("./subproviders/infura.js"),h=e("./subproviders/fetch.js"),p=e("./subproviders/websocket.js");t.exports=function(e={}){const t=function({rpcUrl:e}){if(e)switch(e.split(":")[0].toLowerCase()){case"http":case"https":return"http";case"ws":case"wss":return"ws";default:throw new Error(`ProviderEngine - unrecognized protocol in "${e}"`)}}(e),r=new n(e.engineParams),m=new i(e.static);r.addProvider(m),r.addProvider(new o);const y=new f;r.addProvider(y);const g=new a;r.addProvider(g),"ws"!==t&&(r.addProvider(new c),r.addProvider(new s));const b=new u;r.addProvider(b);const v=new l({getAccounts:e.getAccounts,processTransaction:e.processTransaction,approveTransaction:e.approveTransaction,signTransaction:e.signTransaction,publishTransaction:e.publishTransaction,processMessage:e.processMessage,approveMessage:e.approveMessage,signMessage:e.signMessage,processPersonalMessage:e.processPersonalMessage,processTypedMessage:e.processTypedMessage,approvePersonalMessage:e.approvePersonalMessage,approveTypedMessage:e.approveTypedMessage,signPersonalMessage:e.signPersonalMessage,signTypedMessage:e.signTypedMessage,personalRecoverSigner:e.personalRecoverSigner});r.addProvider(v);const w=e.dataSubprovider||function(e,t){const{rpcUrl:r,debug:n}=t;if(!e)return new d;if("http"===e)return new h({rpcUrl:r,debug:n});if("ws"===e)return new p({rpcUrl:r,debug:n});throw new Error(`ProviderEngine - unrecognized connectionType "${e}"`)}(t,e);return r.addProvider(w),e.stopped||r.start(),r}},{"./index.js":1143,"./subproviders/cache.js":1187,"./subproviders/default-fixture.js":1188,"./subproviders/fetch.js":1189,"./subproviders/filters":1190,"./subproviders/hooked-wallet.js":1192,"./subproviders/inflight-cache":1193,"./subproviders/infura.js":1194,"./subproviders/nonce-tracker.js":1196,"./subproviders/sanitizer.js":1198,"./subproviders/subscriptions":1200,"./subproviders/websocket.js":1201}],1208:[function(e,t,r){arguments[4][277][0].apply(r,arguments)},{"./lib/web3":1230,dup:277}],1209:[function(e,t,r){arguments[4][278][0].apply(r,arguments)},{dup:278}],1210:[function(e,t,r){arguments[4][279][0].apply(r,arguments)},{dup:279}],1211:[function(e,t,r){arguments[4][280][0].apply(r,arguments)},{dup:280}],1212:[function(e,t,r){arguments[4][281][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:281}],1213:[function(e,t,r){arguments[4][282][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:282}],1214:[function(e,t,r){arguments[4][283][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:283}],1215:[function(e,t,r){var n=e("./formatters"),i=e("./address"),o=e("./bool"),a=e("./int"),s=e("./uint"),c=e("./dynamicbytes"),u=e("./string"),l=e("./real"),f=e("./ureal"),d=e("./bytes"),h=function(e,t){return e.isDynamicType(t)||e.isDynamicArray(t)},p=function(e){this._types=e};p.prototype._requireType=function(e){var t=this._types.filter((function(t){return t.isType(e)}))[0];if(!t)throw Error("invalid solidity type!: "+e);return t},p.prototype.encodeParam=function(e,t){return this.encodeParams([e],[t])},p.prototype.encodeParams=function(e,t){var r=this.getSolidityTypes(e),n=r.map((function(r,n){return r.encode(t[n],e[n])})),i=r.reduce((function(t,n,i){var o=n.staticPartLength(e[i]),a=32*Math.floor((o+31)/32);return t+(h(r[i],e[i])?32:a)}),0);return this.encodeMultiWithOffset(e,r,n,i)},p.prototype.encodeMultiWithOffset=function(e,t,r,i){var o="",a=this;return e.forEach((function(s,c){if(h(t[c],e[c])){o+=n.formatInputInt(i).encode();var u=a.encodeWithOffset(e[c],t[c],r[c],i);i+=u.length/2}else o+=a.encodeWithOffset(e[c],t[c],r[c],i)})),e.forEach((function(n,s){if(h(t[s],e[s])){var c=a.encodeWithOffset(e[s],t[s],r[s],i);i+=c.length/2,o+=c}})),o},p.prototype.encodeWithOffset=function(e,t,r,i){var o=t.isDynamicArray(e)?1:t.isStaticArray(e)?2:3;if(3!==o){var a=t.nestedName(e),s=t.staticPartLength(a),c=1===o?r[0]:"";if(t.isDynamicArray(a))for(var u=1===o?2:0,l=0;l<r.length;l++)1===o?u+=+r[l-1][0]||0:2===o&&(u+=+(r[l-1]||[])[0]||0),c+=n.formatInputInt(i+l*s+32*u).encode();for(var f=1===o?r.length-1:r.length,d=0;d<f;d++){var h=c/2;1===o?c+=this.encodeWithOffset(a,t,r[d+1],i+h):2===o&&(c+=this.encodeWithOffset(a,t,r[d],i+h))}return c}return r},p.prototype.decodeParam=function(e,t){return this.decodeParams([e],t)[0]},p.prototype.decodeParams=function(e,t){var r=this.getSolidityTypes(e),n=this.getOffsets(e,r);return r.map((function(r,i){return r.decode(t,n[i],e[i],i)}))},p.prototype.getOffsets=function(e,t){for(var r=t.map((function(t,r){return t.staticPartLength(e[r])})),n=1;n<r.length;n++)r[n]+=r[n-1];return r.map((function(r,n){return r-t[n].staticPartLength(e[n])}))},p.prototype.getSolidityTypes=function(e){var t=this;return e.map((function(e){return t._requireType(e)}))};var m=new p([new i,new o,new a,new s,new c,new d,new u,new l,new f]);t.exports=m},{"./address":1212,"./bool":1213,"./bytes":1214,"./dynamicbytes":1216,"./formatters":1217,"./int":1218,"./real":1220,"./string":1221,"./uint":1223,"./ureal":1224}],1216:[function(e,t,r){arguments[4][285][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:285}],1217:[function(e,t,r){arguments[4][286][0].apply(r,arguments)},{"../utils/config":1226,"../utils/utils":1228,"./param":1219,"bignumber.js":1258,dup:286}],1218:[function(e,t,r){arguments[4][287][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:287}],1219:[function(e,t,r){arguments[4][288][0].apply(r,arguments)},{"../utils/utils":1228,dup:288}],1220:[function(e,t,r){arguments[4][289][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:289}],1221:[function(e,t,r){arguments[4][290][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:290}],1222:[function(e,t,r){arguments[4][291][0].apply(r,arguments)},{"./formatters":1217,"./param":1219,dup:291}],1223:[function(e,t,r){arguments[4][292][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:292}],1224:[function(e,t,r){arguments[4][293][0].apply(r,arguments)},{"./formatters":1217,"./type":1222,dup:293}],1225:[function(e,t,r){arguments[4][294][0].apply(r,arguments)},{dup:294}],1226:[function(e,t,r){arguments[4][295][0].apply(r,arguments)},{"bignumber.js":1258,dup:295}],1227:[function(e,t,r){arguments[4][296][0].apply(r,arguments)},{"crypto-js":517,"crypto-js/sha3":538,dup:296}],1228:[function(e,t,r){var n=e("bignumber.js"),i=e("./sha3.js"),o=e("utf8"),a={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"},s=function(e,t,r){return new Array(t-e.length+1).join(r||"0")+e},c=function(e,t){e=o.encode(e);for(var r="",n=0;n<e.length;n++){var i=e.charCodeAt(n);if(0===i){if(!t)break;r+="00"}else{var a=i.toString(16);r+=a.length<2?"0"+a:a}}return"0x"+r},u=function(e){var t=d(e),r=t.toString(16);return t.lessThan(0)?"-0x"+r.substr(1):"0x"+r},l=function(e){if(g(e))return u(+e);if(m(e))return u(e);if("object"==typeof e)return c(JSON.stringify(e));if(y(e)){if(0===e.indexOf("-0x"))return u(e);if(0===e.indexOf("0x"))return e;if(!isFinite(e))return c(e,1)}return u(e)},f=function(e){e=e?e.toLowerCase():"ether";var t=a[e];if(void 0===t)throw new Error("This unit doesn't exists, please use the one of the following units"+JSON.stringify(a,null,2));return new n(t,10)},d=function(e){return m(e=e||0)?e:!y(e)||0!==e.indexOf("0x")&&0!==e.indexOf("-0x")?new n(e.toString(10),10):new n(e.replace("0x",""),16)},h=function(e){return/^0x[0-9a-f]{40}$/i.test(e)},p=function(e){e=e.replace("0x","");for(var t=i(e.toLowerCase()),r=0;r<40;r++)if(parseInt(t[r],16)>7&&e[r].toUpperCase()!==e[r]||parseInt(t[r],16)<=7&&e[r].toLowerCase()!==e[r])return!1;return!0},m=function(e){return e instanceof n||e&&e.constructor&&"BigNumber"===e.constructor.name},y=function(e){return"string"==typeof e||e&&e.constructor&&"String"===e.constructor.name},g=function(e){return"boolean"==typeof e};t.exports={padLeft:s,padRight:function(e,t,r){return e+new Array(t-e.length+1).join(r||"0")},toHex:l,toDecimal:function(e){return d(e).toNumber()},fromDecimal:u,toUtf8:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);if(0===i)break;t+=String.fromCharCode(i)}return o.decode(t)},toAscii:function(e){var t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){var i=parseInt(e.substr(r,2),16);t+=String.fromCharCode(i)}return t},fromUtf8:c,fromAscii:function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charCodeAt(n).toString(16);r+=i.length<2?"0"+i:i}return"0x"+r.padEnd(t,"0")},transformToFullName:function(e){if(-1!==e.name.indexOf("("))return e.name;var t=e.inputs.map((function(e){return e.type})).join();return e.name+"("+t+")"},extractDisplayName:function(e){var t=e.indexOf("("),r=e.indexOf(")");return-1!==t&&-1!==r?e.substr(0,t):e},extractTypeName:function(e){var t=e.indexOf("("),r=e.indexOf(")");return-1!==t&&-1!==r?e.substr(t+1,r-t-1).replace(" ",""):""},toWei:function(e,t){var r=d(e).times(f(t));return m(e)?r:r.toString(10)},fromWei:function(e,t){var r=d(e).dividedBy(f(t));return m(e)?r:r.toString(10)},toBigNumber:d,toTwosComplement:function(e){var t=d(e).round();return t.lessThan(0)?new n("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16).plus(t).plus(1):t},toAddress:function(e){return h(e)?e:/^[0-9a-f]{40}$/.test(e)?"0x"+e:"0x"+s(l(e).substr(2),40)},isBigNumber:m,isStrictAddress:h,isAddress:function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e))||p(e))},isChecksumAddress:p,toChecksumAddress:function(e){if(void 0===e)return"";e=e.toLowerCase().replace("0x","");for(var t=i(e),r="0x",n=0;n<e.length;n++)parseInt(t[n],16)>7?r+=e[n].toUpperCase():r+=e[n];return r},isFunction:function(e){return"function"==typeof e},isString:y,isObject:function(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e},isBoolean:g,isArray:function(e){return Array.isArray(e)},isJson:function(e){try{return!!JSON.parse(e)}catch(e){return!1}},isBloom:function(e){return!(!/^(0x)?[0-9a-f]{512}$/i.test(e)||!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e))},isTopic:function(e){return!(!/^(0x)?[0-9a-f]{64}$/i.test(e)||!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e))}}},{"./sha3.js":1227,"bignumber.js":1258,utf8:1129}],1229:[function(e,t,r){t.exports={version:"0.20.7"}},{}],1230:[function(e,t,r){
|
||
/*!
|
||
* web3.js - Ethereum JavaScript API
|
||
*
|
||
* @license lgpl-3.0
|
||
* @see https://github.com/ethereum/web3.js
|
||
*/
|
||
var n=e("./web3/requestmanager"),i=e("./web3/iban"),o=e("./web3/methods/eth"),a=e("./web3/methods/db"),s=e("./web3/methods/shh"),c=e("./web3/methods/net"),u=e("./web3/methods/personal"),l=e("./web3/methods/swarm"),f=e("./web3/settings"),d=e("./version.json"),h=e("./utils/utils"),p=e("./utils/sha3"),m=e("./web3/extend"),y=e("./web3/batch"),g=e("./web3/property"),b=e("./web3/httpprovider"),v=e("./web3/ipcprovider"),w=e("bignumber.js");function _(e){this._requestManager=new n(e),this.currentProvider=e,this.eth=new o(this),this.db=new a(this),this.shh=new s(this),this.net=new c(this),this.personal=new u(this),this.bzz=new l(this),this.settings=new f,this.version={api:d.version},this.providers={HttpProvider:b,IpcProvider:v},this._extend=m(this),this._extend({properties:x()})}_.providers={HttpProvider:b,IpcProvider:v},_.prototype.setProvider=function(e){this._requestManager.setProvider(e),this.currentProvider=e},_.prototype.reset=function(e){this._requestManager.reset(e),this.settings=new f},_.prototype.BigNumber=w,_.prototype.toHex=h.toHex,_.prototype.toAscii=h.toAscii,_.prototype.toUtf8=h.toUtf8,_.prototype.fromAscii=h.fromAscii,_.prototype.fromUtf8=h.fromUtf8,_.prototype.toDecimal=h.toDecimal,_.prototype.fromDecimal=h.fromDecimal,_.prototype.toBigNumber=h.toBigNumber,_.prototype.toWei=h.toWei,_.prototype.fromWei=h.fromWei,_.prototype.isAddress=h.isAddress,_.prototype.isChecksumAddress=h.isChecksumAddress,_.prototype.toChecksumAddress=h.toChecksumAddress,_.prototype.isIBAN=h.isIBAN,_.prototype.padLeft=h.padLeft,_.prototype.padRight=h.padRight,_.prototype.sha3=function(e,t){return"0x"+p(e,t)},_.prototype.fromICAP=function(e){return new i(e).address()};var x=function(){return[new g({name:"version.node",getter:"web3_clientVersion"}),new g({name:"version.network",getter:"net_version",inputFormatter:h.toDecimal}),new g({name:"version.ethereum",getter:"eth_protocolVersion",inputFormatter:h.toDecimal}),new g({name:"version.whisper",getter:"shh_version",inputFormatter:h.toDecimal})]};_.prototype.isConnected=function(){return this.currentProvider&&this.currentProvider.isConnected()},_.prototype.createBatch=function(){return new y(this)},t.exports=_},{"./utils/sha3":1227,"./utils/utils":1228,"./version.json":1229,"./web3/batch":1232,"./web3/extend":1236,"./web3/httpprovider":1240,"./web3/iban":1241,"./web3/ipcprovider":1242,"./web3/methods/db":1245,"./web3/methods/eth":1246,"./web3/methods/net":1247,"./web3/methods/personal":1248,"./web3/methods/shh":1249,"./web3/methods/swarm":1250,"./web3/property":1253,"./web3/requestmanager":1254,"./web3/settings":1255,"bignumber.js":1258}],1231:[function(e,t,r){var n=e("../utils/sha3"),i=e("./event"),o=e("./formatters"),a=e("../utils/utils"),s=e("./filter"),c=e("./methods/watches"),u=function(e,t,r){this._requestManager=e,this._json=t,this._address=r};u.prototype.encode=function(e){e=e||{};var t={};return["fromBlock","toBlock"].filter((function(t){return void 0!==e[t]})).forEach((function(r){t[r]=o.inputBlockNumberFormatter(e[r])})),t.address=this._address,t},u.prototype.decode=function(e){e.data=e.data||"";var t=a.isArray(e.topics)&&a.isString(e.topics[0])?e.topics[0].slice(2):"",r=this._json.filter((function(e){return t===n(a.transformToFullName(e))}))[0];return r?new i(this._requestManager,r,this._address).decode(e):o.outputLogFormatter(e)},u.prototype.execute=function(e,t){a.isFunction(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],1===arguments.length&&(e=null));var r=this.encode(e),n=this.decode.bind(this);return new s(r,"eth",this._requestManager,c.eth(),n,t)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this);e.allEvents=t},t.exports=u},{"../utils/sha3":1227,"../utils/utils":1228,"./event":1235,"./filter":1237,"./formatters":1238,"./methods/watches":1251}],1232:[function(e,t,r){arguments[4][301][0].apply(r,arguments)},{"./errors":1234,"./jsonrpc":1243,dup:301}],1233:[function(e,t,r){var n=e("../utils/utils"),i=e("../solidity/coder"),o=e("./event"),a=e("./function"),s=e("./allevents"),c=function(e,t){return e.filter((function(e){return"constructor"===e.type&&e.inputs.length===t.length})).map((function(e){return e.inputs.map((function(e){return e.type}))})).map((function(e){return i.encodeParams(e,t)}))[0]||""},u=function(e){e.abi.filter((function(e){return"function"===e.type})).map((function(t){return new a(e._eth,t,e.address)})).forEach((function(t){t.attachToContract(e)}))},l=function(e){var t=e.abi.filter((function(e){return"event"===e.type}));new s(e._eth._requestManager,t,e.address).attachToContract(e),t.map((function(t){return new o(e._eth._requestManager,t,e.address)})).forEach((function(t){t.attachToContract(e)}))},f=function(e,t){var r=0,n=!1,i=e._eth.filter("latest",(function(o){if(!o&&!n)if(++r>50){if(i.stopWatching((function(){})),n=!0,!t)throw new Error("Contract transaction couldn't be found after 50 blocks");t(new Error("Contract transaction couldn't be found after 50 blocks"))}else e._eth.getTransactionReceipt(e.transactionHash,(function(r,o){o&&o.blockHash&&!n&&e._eth.getCode(o.contractAddress,(function(r,a){if(!n&&a)if(i.stopWatching((function(){})),n=!0,a.length>3)e.address=o.contractAddress,u(e),l(e),t&&t(null,e);else{if(!t)throw new Error("The contract code couldn't be stored, please check your gas amount.");t(new Error("The contract code couldn't be stored, please check your gas amount."))}}))}))}))},d=function(e,t){this.eth=e,this.abi=t,this.new=function(){var e,r=new h(this.eth,this.abi),i={},o=Array.prototype.slice.call(arguments);n.isFunction(o[o.length-1])&&(e=o.pop());var a=o[o.length-1];if(n.isObject(a)&&!n.isArray(a)&&(i=o.pop()),i.value>0){var s=t.filter((function(e){return"constructor"===e.type&&e.inputs.length===o.length}))[0]||{};if(!s.payable)throw new Error("Cannot send value to non-payable constructor")}var u=c(this.abi,o);if(i.data+=u,e)this.eth.sendTransaction(i,(function(t,n){t?e(t):(r.transactionHash=n,e(null,r),f(r,e))}));else{var l=this.eth.sendTransaction(i);r.transactionHash=l,f(r)}return r},this.new.getData=this.getData.bind(this)};d.prototype.at=function(e,t){var r=new h(this.eth,this.abi,e);return u(r),l(r),t&&t(null,r),r},d.prototype.getData=function(){var e={},t=Array.prototype.slice.call(arguments),r=t[t.length-1];n.isObject(r)&&!n.isArray(r)&&(e=t.pop());var i=c(this.abi,t);return e.data+=i,e.data};var h=function(e,t,r){this._eth=e,this.transactionHash=null,this.address=r,this.abi=t};t.exports=d},{"../solidity/coder":1215,"../utils/utils":1228,"./allevents":1231,"./event":1235,"./function":1239}],1234:[function(e,t,r){t.exports={InvalidNumberOfSolidityArgs:function(){return new Error("Invalid number of arguments to Solidity function")},InvalidNumberOfRPCParams:function(){return new Error("Invalid number of input parameters to RPC method")},InvalidConnection:function(e){return new Error("CONNECTION ERROR: Couldn't connect to node "+e+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")}}},{}],1235:[function(e,t,r){var n=e("../utils/utils"),i=e("../solidity/coder"),o=e("./formatters"),a=e("../utils/sha3"),s=e("./filter"),c=e("./methods/watches"),u=function(e,t,r){this._requestManager=e,this._params=t.inputs,this._name=n.transformToFullName(t),this._address=r,this._anonymous=t.anonymous};u.prototype.types=function(e){return this._params.filter((function(t){return t.indexed===e})).map((function(e){return e.type}))},u.prototype.displayName=function(){return n.extractDisplayName(this._name)},u.prototype.typeName=function(){return n.extractTypeName(this._name)},u.prototype.signature=function(){return a(this._name)},u.prototype.encode=function(e,t){e=e||{},t=t||{};var r={};["fromBlock","toBlock"].filter((function(e){return void 0!==t[e]})).forEach((function(e){r[e]=o.inputBlockNumberFormatter(t[e])})),r.topics=[],r.address=this._address,this._anonymous||r.topics.push("0x"+this.signature());var a=this._params.filter((function(e){return!0===e.indexed})).map((function(t){var r=e[t.name];return null==r?null:n.isArray(r)?r.map((function(e){return"0x"+i.encodeParam(t.type,e)})):"0x"+i.encodeParam(t.type,r)}));return r.topics=r.topics.concat(a),r},u.prototype.decode=function(e){e.data=e.data||"",e.topics=e.topics||[];var t=(this._anonymous?e.topics:e.topics.slice(1)).map((function(e){return e.slice(2)})).join(""),r=i.decodeParams(this.types(!0),t),n=e.data.slice(2),a=i.decodeParams(this.types(!1),n),s=o.outputLogFormatter(e);return s.event=this.displayName(),s.address=e.address,s.args=this._params.reduce((function(e,t){return e[t.name]=t.indexed?r.shift():a.shift(),e}),{}),delete s.data,delete s.topics,s},u.prototype.execute=function(e,t,r){n.isFunction(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],2===arguments.length&&(t=null),1===arguments.length&&(t=null,e={}));var i=this.encode(e,t),o=this.decode.bind(this);return new s(i,"eth",this._requestManager,c.eth(),o,r)},u.prototype.attachToContract=function(e){var t=this.execute.bind(this),r=this.displayName();e[r]||(e[r]=t),e[r][this.typeName()]=this.execute.bind(this,e)},t.exports=u},{"../solidity/coder":1215,"../utils/sha3":1227,"../utils/utils":1228,"./filter":1237,"./formatters":1238,"./methods/watches":1251}],1236:[function(e,t,r){arguments[4][305][0].apply(r,arguments)},{"./../utils/utils":1228,"./formatters":1238,"./method":1244,"./property":1253,dup:305}],1237:[function(e,t,r){var n=e("./formatters"),i=e("../utils/utils"),o=function(e){return null==e?null:0===(e=String(e)).indexOf("0x")?e:i.fromUtf8(e)},a=function(e,t){i.isString(e.options)||e.get((function(e,r){e&&t(e),i.isArray(r)&&r.forEach((function(e){t(null,e)}))}))},s=function(e){e.requestManager.startPolling({method:e.implementation.poll.call,params:[e.filterId]},e.filterId,(function(t,r){if(t)return e.callbacks.forEach((function(e){e(t)}));i.isArray(r)&&r.forEach((function(t){t=e.formatter?e.formatter(t):t,e.callbacks.forEach((function(e){e(null,t)}))}))}),e.stopWatching.bind(e))},c=function(e,t,r,c,u,l,f){var d=this,h={};return c.forEach((function(e){e.setRequestManager(r),e.attachToObject(h)})),this.requestManager=r,this.options=function(e,t){if(i.isString(e))return e;switch(e=e||{},t){case"eth":return e.topics=e.topics||[],e.topics=e.topics.map((function(e){return i.isArray(e)?e.map(o):o(e)})),{topics:e.topics,from:e.from,to:e.to,address:e.address,fromBlock:n.inputBlockNumberFormatter(e.fromBlock),toBlock:n.inputBlockNumberFormatter(e.toBlock)};case"shh":return e}}(e,t),this.implementation=h,this.filterId=null,this.callbacks=[],this.getLogsCallbacks=[],this.pollFilters=[],this.formatter=u,this.implementation.newFilter(this.options,(function(e,t){if(e)d.callbacks.forEach((function(t){t(e)})),"function"==typeof f&&f(e);else if(d.filterId=t,d.getLogsCallbacks.forEach((function(e){d.get(e)})),d.getLogsCallbacks=[],d.callbacks.forEach((function(e){a(d,e)})),d.callbacks.length>0&&s(d),"function"==typeof l)return d.watch(l)})),this};c.prototype.watch=function(e){return this.callbacks.push(e),this.filterId&&(a(this,e),s(this)),this},c.prototype.stopWatching=function(e){if(this.requestManager.stopPolling(this.filterId),this.callbacks=[],!e)return this.implementation.uninstallFilter(this.filterId);this.implementation.uninstallFilter(this.filterId,e)},c.prototype.get=function(e){var t=this;if(!i.isFunction(e)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");return this.implementation.getLogs(this.filterId).map((function(e){return t.formatter?t.formatter(e):e}))}return null===this.filterId?this.getLogsCallbacks.push(e):this.implementation.getLogs(this.filterId,(function(r,n){r?e(r):e(null,n.map((function(e){return t.formatter?t.formatter(e):e})))})),this},t.exports=c},{"../utils/utils":1228,"./formatters":1238}],1238:[function(e,t,r){"use strict";var n=e("../utils/utils"),i=e("../utils/config"),o=e("./iban"),a=function(e){if(void 0!==e)return function(e){return"latest"===e||"pending"===e||"earliest"===e}(e)?e:n.toHex(e)},s=function(e){return null!==e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.nonce=n.toDecimal(e.nonce),e.gas=n.toDecimal(e.gas),e.gasPrice=n.toBigNumber(e.gasPrice),e.value=n.toBigNumber(e.value),e},c=function(e){return e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.logIndex&&(e.logIndex=n.toDecimal(e.logIndex)),e},u=function(e){var t=new o(e);if(t.isValid()&&t.isDirect())return"0x"+t.address();if(n.isStrictAddress(e))return e;if(n.isAddress(e))return"0x"+e;throw new Error("invalid address")};t.exports={inputDefaultBlockNumberFormatter:function(e){return void 0===e?i.defaultBlock:a(e)},inputBlockNumberFormatter:a,inputCallFormatter:function(e){return e.from=e.from||i.defaultAccount,e.from&&(e.from=u(e.from)),e.to&&(e.to=u(e.to)),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=n.fromDecimal(e[t])})),e},inputTransactionFormatter:function(e){return e.from=e.from||i.defaultAccount,e.from=u(e.from),e.to&&(e.to=u(e.to)),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=n.fromDecimal(e[t])})),e},inputAddressFormatter:u,inputPostFormatter:function(e){return e.ttl=n.fromDecimal(e.ttl),e.workToProve=n.fromDecimal(e.workToProve),e.priority=n.fromDecimal(e.priority),n.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map((function(e){return 0===e.indexOf("0x")?e:n.fromUtf8(e)})),e},outputBigNumberFormatter:function(e){return n.toBigNumber(e)},outputTransactionFormatter:s,outputTransactionReceiptFormatter:function(e){return null!==e.blockNumber&&(e.blockNumber=n.toDecimal(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=n.toDecimal(e.transactionIndex)),e.cumulativeGasUsed=n.toDecimal(e.cumulativeGasUsed),e.gasUsed=n.toDecimal(e.gasUsed),n.isArray(e.logs)&&(e.logs=e.logs.map((function(e){return c(e)}))),e},outputBlockFormatter:function(e){return e.gasLimit=n.toDecimal(e.gasLimit),e.gasUsed=n.toDecimal(e.gasUsed),e.size=n.toDecimal(e.size),e.timestamp=n.toDecimal(e.timestamp),null!==e.number&&(e.number=n.toDecimal(e.number)),e.difficulty=n.toBigNumber(e.difficulty),e.totalDifficulty=n.toBigNumber(e.totalDifficulty),n.isArray(e.transactions)&&e.transactions.forEach((function(e){if(!n.isString(e))return s(e)})),e},outputLogFormatter:c,outputPostFormatter:function(e){return e.expiry=n.toDecimal(e.expiry),e.sent=n.toDecimal(e.sent),e.ttl=n.toDecimal(e.ttl),e.workProved=n.toDecimal(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map((function(e){return n.toAscii(e)})),e},outputSyncingFormatter:function(e){return e?(e.startingBlock=n.toDecimal(e.startingBlock),e.currentBlock=n.toDecimal(e.currentBlock),e.highestBlock=n.toDecimal(e.highestBlock),e.knownStates&&(e.knownStates=n.toDecimal(e.knownStates),e.pulledStates=n.toDecimal(e.pulledStates)),e):e}}},{"../utils/config":1226,"../utils/utils":1228,"./iban":1241}],1239:[function(e,t,r){var n=e("../solidity/coder"),i=e("../utils/utils"),o=e("./errors"),a=e("./formatters"),s=e("../utils/sha3"),c=function(e,t,r){this._eth=e,this._inputTypes=t.inputs.map((function(e){return e.type})),this._outputTypes=t.outputs.map((function(e){return e.type})),this._constant="view"===t.stateMutability||"pure"===t.stateMutability||t.constant,this._payable="payable"===t.stateMutability||t.payable,this._name=i.transformToFullName(t),this._address=r};c.prototype.extractCallback=function(e){if(i.isFunction(e[e.length-1]))return e.pop()},c.prototype.extractDefaultBlock=function(e){if(e.length>this._inputTypes.length&&!i.isObject(e[e.length-1]))return a.inputDefaultBlockNumberFormatter(e.pop())},c.prototype.validateArgs=function(e){if(e.filter((function(e){return!(!0===i.isObject(e)&&!1===i.isArray(e)&&!1===i.isBigNumber(e))})).length!==this._inputTypes.length)throw o.InvalidNumberOfSolidityArgs()},c.prototype.toPayload=function(e){var t={};return e.length>this._inputTypes.length&&i.isObject(e[e.length-1])&&(t=e[e.length-1]),this.validateArgs(e),t.to=this._address,t.data="0x"+this.signature()+n.encodeParams(this._inputTypes,e),t},c.prototype.signature=function(){return s(this._name).slice(0,8)},c.prototype.unpackOutput=function(e){if(e){e=e.length>=2?e.slice(2):e;var t=n.decodeParams(this._outputTypes,e);return 1===t.length?t[0]:t}},c.prototype.call=function(){var e=Array.prototype.slice.call(arguments).filter((function(e){return void 0!==e})),t=this.extractCallback(e),r=this.extractDefaultBlock(e),n=this.toPayload(e);if(!t){var i=this._eth.call(n,r);return this.unpackOutput(i)}var o=this;this._eth.call(n,r,(function(e,r){if(e)return t(e,null);var n=null;try{n=o.unpackOutput(r)}catch(t){e=t}t(e,n)}))},c.prototype.sendTransaction=function(){var e=Array.prototype.slice.call(arguments).filter((function(e){return void 0!==e})),t=this.extractCallback(e),r=this.toPayload(e);if(r.value>0&&!this._payable)throw new Error("Cannot send value to non-payable function");if(!t)return this._eth.sendTransaction(r);this._eth.sendTransaction(r,t)},c.prototype.estimateGas=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),r=this.toPayload(e);if(!t)return this._eth.estimateGas(r);this._eth.estimateGas(r,t)},c.prototype.getData=function(){var e=Array.prototype.slice.call(arguments),t=this.toPayload(e);return t.data},c.prototype.displayName=function(){return i.extractDisplayName(this._name)},c.prototype.typeName=function(){return i.extractTypeName(this._name)},c.prototype.request=function(){var e=Array.prototype.slice.call(arguments),t=this.extractCallback(e),r=this.toPayload(e),n=this.unpackOutput.bind(this);return{method:this._constant?"eth_call":"eth_sendTransaction",callback:t,params:[r],format:n}},c.prototype.execute=function(){var e=!this._constant;return e?this.sendTransaction.apply(this,Array.prototype.slice.call(arguments)):this.call.apply(this,Array.prototype.slice.call(arguments))},c.prototype.attachToContract=function(e){var t=this.execute.bind(this);t.request=this.request.bind(this),t.call=this.call.bind(this),t.sendTransaction=this.sendTransaction.bind(this),t.estimateGas=this.estimateGas.bind(this),t.getData=this.getData.bind(this);var r=this.displayName();e[r]||(e[r]=t),e[r][this.typeName()]=t},t.exports=c},{"../solidity/coder":1215,"../utils/sha3":1227,"../utils/utils":1228,"./errors":1234,"./formatters":1238}],1240:[function(e,t,r){(function(r){var n=e("./errors");"undefined"!=typeof window&&window.XMLHttpRequest?XMLHttpRequest=window.XMLHttpRequest:XMLHttpRequest=e("xmlhttprequest").XMLHttpRequest;var i=e("xhr2-cookies").XMLHttpRequest,o=function(e,t,r,n,i){this.host=e||"http://localhost:8545",this.timeout=t||0,this.user=r,this.password=n,this.headers=i};o.prototype.prepareRequest=function(e){var t;if(e?(t=new i).timeout=this.timeout:t=new XMLHttpRequest,t.withCredentials=!0,t.open("POST",this.host,e),this.user&&this.password){var n="Basic "+new r(this.user+":"+this.password).toString("base64");t.setRequestHeader("Authorization",n)}return t.setRequestHeader("Content-Type","application/json"),this.headers&&this.headers.forEach((function(e){t.setRequestHeader(e.name,e.value)})),t},o.prototype.send=function(e){var t=this.prepareRequest(!1);try{t.send(JSON.stringify(e))}catch(e){throw n.InvalidConnection(this.host)}var r=t.responseText;try{r=JSON.parse(r)}catch(e){throw n.InvalidResponse(t.responseText)}return r},o.prototype.sendAsync=function(e,t){var r=this.prepareRequest(!0);r.onreadystatechange=function(){if(4===r.readyState&&1!==r.timeout){var e=r.responseText,i=null;try{e=JSON.parse(e)}catch(e){i=n.InvalidResponse(r.responseText)}t(i,e)}},r.ontimeout=function(){t(n.ConnectionTimeout(this.timeout))};try{r.send(JSON.stringify(e))}catch(e){t(n.InvalidConnection(this.host))}},o.prototype.isConnected=function(){try{return this.send({id:9999999999,jsonrpc:"2.0",method:"net_listening",params:[]}),!0}catch(e){return!1}},t.exports=o}).call(this,e("buffer").Buffer)},{"./errors":1234,buffer:475,"xhr2-cookies":1261,xmlhttprequest:1225}],1241:[function(e,t,r){arguments[4][310][0].apply(r,arguments)},{"bignumber.js":1258,dup:310}],1242:[function(e,t,r){arguments[4][311][0].apply(r,arguments)},{"../utils/utils":1228,"./errors":1234,dup:311}],1243:[function(e,t,r){arguments[4][312][0].apply(r,arguments)},{dup:312}],1244:[function(e,t,r){var n=e("../utils/utils"),i=e("./errors"),o=function(e){this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.requestManager=null};o.prototype.setRequestManager=function(e){this.requestManager=e},o.prototype.getCall=function(e){return n.isFunction(this.call)?this.call(e):this.call},o.prototype.extractCallback=function(e){if(n.isFunction(e[e.length-1]))return e.pop()},o.prototype.validateArgs=function(e){if(e.length!==this.params)throw i.InvalidNumberOfRPCParams()},o.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter.map((function(t,r){return t?t(e[r]):e[r]})):e},o.prototype.formatOutput=function(e){return this.outputFormatter&&e?this.outputFormatter(e):e},o.prototype.toPayload=function(e){var t=this.getCall(e),r=this.extractCallback(e),n=this.formatInput(e);return this.validateArgs(n),{method:t,params:n,callback:r}},o.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var r=this.name.split(".");r.length>1?(e[r[0]]=e[r[0]]||{},e[r[0]][r[1]]=t):e[r[0]]=t},o.prototype.buildCall=function(){var e=this,t=function(){var t=e.toPayload(Array.prototype.slice.call(arguments));return t.callback?e.requestManager.sendAsync(t,(function(r,n){t.callback(r,e.formatOutput(n))})):e.formatOutput(e.requestManager.send(t))};return t.request=this.request.bind(this),t},o.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},t.exports=o},{"../utils/utils":1228,"./errors":1234}],1245:[function(e,t,r){arguments[4][314][0].apply(r,arguments)},{"../method":1244,dup:314}],1246:[function(e,t,r){"use strict";var n=e("../formatters"),i=e("../../utils/utils"),o=e("../method"),a=e("../property"),s=e("../../utils/config"),c=e("../contract"),u=e("./watches"),l=e("../filter"),f=e("../syncing"),d=e("../namereg"),h=e("../iban"),p=e("../transfer"),m=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},y=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},g=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},b=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},v=function(e){return i.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"};function w(e){this._requestManager=e._requestManager;var t=this;_().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),x().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),this.iban=h,this.sendIBANTransaction=p.bind(null,this)}Object.defineProperty(w.prototype,"defaultBlock",{get:function(){return s.defaultBlock},set:function(e){return s.defaultBlock=e,e}}),Object.defineProperty(w.prototype,"defaultAccount",{get:function(){return s.defaultAccount},set:function(e){return s.defaultAccount=e,e}});var _=function(){var e=new o({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[n.inputAddressFormatter,n.inputDefaultBlockNumberFormatter],outputFormatter:n.outputBigNumberFormatter}),t=new o({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[null,i.toHex,n.inputDefaultBlockNumberFormatter]}),r=new o({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[n.inputAddressFormatter,n.inputDefaultBlockNumberFormatter]}),a=new o({name:"getBlock",call:m,params:2,inputFormatter:[n.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:n.outputBlockFormatter}),s=new o({name:"getUncle",call:g,params:2,inputFormatter:[n.inputBlockNumberFormatter,i.toHex],outputFormatter:n.outputBlockFormatter}),c=new o({name:"getCompilers",call:"eth_getCompilers",params:0}),u=new o({name:"getBlockTransactionCount",call:b,params:1,inputFormatter:[n.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),l=new o({name:"getBlockUncleCount",call:v,params:1,inputFormatter:[n.inputBlockNumberFormatter],outputFormatter:i.toDecimal}),f=new o({name:"getTransaction",call:"eth_getTransactionByHash",params:1,outputFormatter:n.outputTransactionFormatter}),d=new o({name:"getTransactionFromBlock",call:y,params:2,inputFormatter:[n.inputBlockNumberFormatter,i.toHex],outputFormatter:n.outputTransactionFormatter}),h=new o({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,outputFormatter:n.outputTransactionReceiptFormatter}),p=new o({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[null,n.inputDefaultBlockNumberFormatter],outputFormatter:i.toDecimal}),w=new o({name:"sendRawTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null]}),_=new o({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[n.inputTransactionFormatter]}),x=new o({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[n.inputTransactionFormatter]}),k=new o({name:"sign",call:"eth_sign",params:2,inputFormatter:[n.inputAddressFormatter,null]});return[e,t,r,a,s,c,u,l,f,d,h,p,new o({name:"call",call:"eth_call",params:2,inputFormatter:[n.inputCallFormatter,n.inputDefaultBlockNumberFormatter]}),new o({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[n.inputCallFormatter],outputFormatter:i.toDecimal}),w,x,_,k,new o({name:"compile.solidity",call:"eth_compileSolidity",params:1}),new o({name:"compile.lll",call:"eth_compileLLL",params:1}),new o({name:"compile.serpent",call:"eth_compileSerpent",params:1}),new o({name:"submitWork",call:"eth_submitWork",params:3}),new o({name:"getWork",call:"eth_getWork",params:0})]},x=function(){return[new a({name:"coinbase",getter:"eth_coinbase"}),new a({name:"mining",getter:"eth_mining"}),new a({name:"hashrate",getter:"eth_hashrate",outputFormatter:i.toDecimal}),new a({name:"syncing",getter:"eth_syncing",outputFormatter:n.outputSyncingFormatter}),new a({name:"gasPrice",getter:"eth_gasPrice",outputFormatter:n.outputBigNumberFormatter}),new a({name:"accounts",getter:"eth_accounts"}),new a({name:"blockNumber",getter:"eth_blockNumber",outputFormatter:i.toDecimal}),new a({name:"protocolVersion",getter:"eth_protocolVersion"})]};w.prototype.contract=function(e){return new c(this,e)},w.prototype.filter=function(e,t,r){return new l(e,"eth",this._requestManager,u.eth(),n.outputLogFormatter,t,r)},w.prototype.namereg=function(){return this.contract(d.global.abi).at(d.global.address)},w.prototype.icapNamereg=function(){return this.contract(d.icap.abi).at(d.icap.address)},w.prototype.isSyncing=function(e){return new f(this._requestManager,e)},t.exports=w},{"../../utils/config":1226,"../../utils/utils":1228,"../contract":1233,"../filter":1237,"../formatters":1238,"../iban":1241,"../method":1244,"../namereg":1252,"../property":1253,"../syncing":1256,"../transfer":1257,"./watches":1251}],1247:[function(e,t,r){arguments[4][316][0].apply(r,arguments)},{"../../utils/utils":1228,"../property":1253,dup:316}],1248:[function(e,t,r){"use strict";var n=e("../method"),i=e("../property"),o=e("../formatters");t.exports=function(e){this._requestManager=e._requestManager;var t=this;(function(){var e=new n({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null]}),t=new n({name:"importRawKey",call:"personal_importRawKey",params:2}),r=new n({name:"sign",call:"personal_sign",params:3,inputFormatter:[null,o.inputAddressFormatter,null]}),i=new n({name:"ecRecover",call:"personal_ecRecover",params:2});return[e,t,new n({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[o.inputAddressFormatter,null,null]}),i,r,new n({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[o.inputTransactionFormatter,null]}),new n({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[o.inputAddressFormatter]})]})().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)})),[new i({name:"listAccounts",getter:"personal_listAccounts"})].forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))}},{"../formatters":1238,"../method":1244,"../property":1253}],1249:[function(e,t,r){var n=e("../method"),i=e("../filter"),o=e("./watches"),a=function(e){this._requestManager=e._requestManager;var t=this;s().forEach((function(e){e.attachToObject(t),e.setRequestManager(t._requestManager)}))};a.prototype.newMessageFilter=function(e,t,r){return new i(e,"shh",this._requestManager,o.shh(),null,t,r)};var s=function(){return[new n({name:"version",call:"shh_version",params:0}),new n({name:"info",call:"shh_info",params:0}),new n({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new n({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new n({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new n({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new n({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new n({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new n({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new n({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new n({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new n({name:"newSymKey",call:"shh_newSymKey",params:0}),new n({name:"addSymKey",call:"shh_addSymKey",params:1}),new n({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new n({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new n({name:"getSymKey",call:"shh_getSymKey",params:1}),new n({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new n({name:"post",call:"shh_post",params:1,inputFormatter:[null]})]};t.exports=a},{"../filter":1237,"../method":1244,"./watches":1251}],1250:[function(e,t,r){arguments[4][319][0].apply(r,arguments)},{"../method":1244,"../property":1253,dup:319}],1251:[function(e,t,r){var n=e("../method");t.exports={eth:function(){return[new n({name:"newFilter",call:function(e){switch(e[0]){case"latest":return e.shift(),this.params=0,"eth_newBlockFilter";case"pending":return e.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new n({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new n({name:"getLogs",call:"eth_getFilterLogs",params:1}),new n({name:"poll",call:"eth_getFilterChanges",params:1})]},shh:function(){return[new n({name:"newFilter",call:"shh_newMessageFilter",params:1}),new n({name:"uninstallFilter",call:"shh_deleteMessageFilter",params:1}),new n({name:"getLogs",call:"shh_getFilterMessages",params:1}),new n({name:"poll",call:"shh_getFilterMessages",params:1})]}}},{"../method":1244}],1252:[function(e,t,r){arguments[4][321][0].apply(r,arguments)},{"../contracts/GlobalRegistrar.json":1209,"../contracts/ICAPRegistrar.json":1210,dup:321}],1253:[function(e,t,r){arguments[4][322][0].apply(r,arguments)},{"../utils/utils":1228,dup:322}],1254:[function(e,t,r){arguments[4][323][0].apply(r,arguments)},{"../utils/config":1226,"../utils/utils":1228,"./errors":1234,"./jsonrpc":1243,dup:323}],1255:[function(e,t,r){arguments[4][324][0].apply(r,arguments)},{dup:324}],1256:[function(e,t,r){arguments[4][325][0].apply(r,arguments)},{"../utils/utils":1228,"./formatters":1238,dup:325}],1257:[function(e,t,r){arguments[4][326][0].apply(r,arguments)},{"../contracts/SmartExchange.json":1211,"./iban":1241,dup:326}],1258:[function(e,t,r){arguments[4][276][0].apply(r,arguments)},{crypto:505,dup:276}],1259:[function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"==typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},{}],1260:[function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.SecurityError=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.InvalidStateError=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.NetworkError=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);r.SyntaxError=c},{}],1261:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),function(e){for(var t in e)r.hasOwnProperty(t)||(r[t]=e[t])}(e("./xml-http-request"));var n=e("./xml-http-request-event-target");r.XMLHttpRequestEventTarget=n.XMLHttpRequestEventTarget},{"./xml-http-request":1265,"./xml-http-request-event-target":1263}],1262:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.ProgressEvent=function(e){this.type=e,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0}},{}],1263:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){e=e.toLowerCase(),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t.handleEvent||t)},e.prototype.removeEventListener=function(e,t){if(e=e.toLowerCase(),this.listeners[e]){var r=this.listeners[e].indexOf(t.handleEvent||t);r<0||this.listeners[e].splice(r,1)}},e.prototype.dispatchEvent=function(e){var t=e.type.toLowerCase();if(e.target=this,this.listeners[t])for(var r=0,n=this.listeners[t];r<n.length;r++)n[r].call(this,e);var i=this["on"+t];return i&&i.call(this,e),!0},e}();r.XMLHttpRequestEventTarget=n},{}],1264:[function(e,t,r){(function(t){"use strict";var n,i=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=function(e){function r(){var t=e.call(this)||this;return t._contentType=null,t._body=null,t._reset(),t}return i(r,e),r.prototype._reset=function(){this._contentType=null,this._body=null},r.prototype._setData=function(e){if(null!=e)if("string"==typeof e)0!==e.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new t(e,"utf-8");else if(t.isBuffer(e))this._body=e;else if(e instanceof ArrayBuffer){for(var r=new t(e.byteLength),n=new Uint8Array(e),i=0;i<e.byteLength;i++)r[i]=n[i];this._body=r}else{if(!(e.buffer&&e.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+e);r=new t(e.byteLength);var o=e.byteOffset;for(n=new Uint8Array(e.buffer),i=0;i<e.byteLength;i++)r[i]=n[i+o];this._body=r}},r.prototype._finalizeHeaders=function(e,t){this._contentType&&!t["content-type"]&&(e["Content-Type"]=this._contentType),this._body&&(e["Content-Length"]=this._body.length.toString())},r.prototype._startUpload=function(e){this._body&&e.write(this._body),e.end()},r}(e("./xml-http-request-event-target").XMLHttpRequestEventTarget);r.XMLHttpRequestUpload=o}).call(this,e("buffer").Buffer)},{"./xml-http-request-event-target":1263,buffer:475}],1265:[function(e,t,r){(function(t,n){"use strict";var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(r,"__esModule",{value:!0});var s=e("http"),c=e("https"),u=e("os"),l=e("url"),f=e("./progress-event"),d=e("./errors"),h=e("./xml-http-request-event-target"),p=e("./xml-http-request-upload"),m=e("cookiejar"),y=function(e){function r(n){void 0===n&&(n={});var i=e.call(this)||this;return i.UNSENT=r.UNSENT,i.OPENED=r.OPENED,i.HEADERS_RECEIVED=r.HEADERS_RECEIVED,i.LOADING=r.LOADING,i.DONE=r.DONE,i.onreadystatechange=null,i.readyState=r.UNSENT,i.response=null,i.responseText="",i.responseType="",i.status=0,i.statusText="",i.timeout=0,i.upload=new p.XMLHttpRequestUpload,i.responseUrl="",i.withCredentials=!1,i._method=null,i._url=null,i._sync=!1,i._headers={},i._loweredHeaders={},i._mimeOverride=null,i._request=null,i._response=null,i._responseParts=null,i._responseHeaders=null,i._aborting=null,i._error=null,i._loadedBytes=0,i._totalBytes=0,i._lengthComputable=!1,i._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},i._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},i._privateHeaders={"set-cookie":!0,"set-cookie2":!0},i._userAgent="Mozilla/5.0 ("+u.type()+" "+u.arch()+") node.js/"+t.versions.node+" v8/"+t.versions.v8,i._anonymous=n.anon||!1,i}return o(r,e),r.prototype.open=function(e,t,n,i,o){if(void 0===n&&(n=!0),e=e.toUpperCase(),this._restrictedMethods[e])throw new r.SecurityError("HTTP method "+e+" is not allowed in XHR");var a=this._parseUrl(t,i,o);this.readyState===r.HEADERS_RECEIVED||(this.readyState,r.LOADING),this._method=e,this._url=a,this._sync=!n,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(r.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},r.prototype.setRequestHeader=function(e,t){if(this.readyState!==r.OPENED)throw new r.InvalidStateError("XHR readyState must be OPENED");var n=e.toLowerCase();this._restrictedHeaders[n]||/^sec-/.test(n)||/^proxy-/.test(n)?console.warn('Refused to set unsafe header "'+e+'"'):(t=t.toString(),null!=this._loweredHeaders[n]?(e=this._loweredHeaders[n],this._headers[e]=this._headers[e]+", "+t):(this._loweredHeaders[n]=e,this._headers[e]=t))},r.prototype.send=function(e){if(this.readyState!==r.OPENED)throw new r.InvalidStateError("XHR readyState must be OPENED");if(this._request)throw new r.InvalidStateError("send() already called");switch(this._url.protocol){case"file:":return this._sendFile(e);case"http:":case"https:":return this._sendHttp(e);default:throw new r.NetworkError("Unsupported protocol "+this._url.protocol)}},r.prototype.abort=function(){null!=this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},r.prototype.getResponseHeader=function(e){if(null==this._responseHeaders||null==e)return null;var t=e.toLowerCase();return this._responseHeaders.hasOwnProperty(t)?this._responseHeaders[e.toLowerCase()]:null},r.prototype.getAllResponseHeaders=function(){var e=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map((function(t){return t+": "+e._responseHeaders[t]})).join("\r\n")},r.prototype.overrideMimeType=function(e){if(this.readyState===r.LOADING||this.readyState===r.DONE)throw new r.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=e.toLowerCase()},r.prototype.nodejsSet=function(e){if(this.nodejsHttpAgent=e.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=e.httpsAgent||this.nodejsHttpsAgent,e.hasOwnProperty("baseUrl")){if(null!=e.baseUrl&&!l.parse(e.baseUrl,!1,!0).protocol)throw new r.SyntaxError("baseUrl must be an absolute URL");this.nodejsBaseUrl=e.baseUrl}},r.nodejsSet=function(e){r.prototype.nodejsSet(e)},r.prototype._setReadyState=function(e){this.readyState=e,this.dispatchEvent(new f.ProgressEvent("readystatechange"))},r.prototype._sendFile=function(e){throw new Error("Protocol file: not implemented")},r.prototype._sendHttp=function(e){if(this._sync)throw new Error("Synchronous XHR processing not implemented");!e||"GET"!==this._method&&"HEAD"!==this._method?e=e||"":(console.warn("Discarding entity body for "+this._method+" requests"),e=null),this.upload._setData(e),this._finalizeHeaders(),this._sendHxxpRequest()},r.prototype._sendHxxpRequest=function(){var e=this;if(this.withCredentials){var t=r.cookieJar.getCookies(m.CookieAccessInfo(this._url.hostname,this._url.pathname,"https:"===this._url.protocol)).toValueString();this._headers.cookie=this._headers.cookie2=t}var n="http:"===this._url.protocol?[s,this.nodejsHttpAgent]:[c,this.nodejsHttpsAgent],i=n[0],o=n[1],a=i.request.bind(i)({hostname:this._url.hostname,port:+this._url.port,path:this._url.path,auth:this._url.auth,method:this._method,headers:this._headers,agent:o});this._request=a,this.timeout&&a.setTimeout(this.timeout,(function(){return e._onHttpTimeout(a)})),a.on("response",(function(t){return e._onHttpResponse(a,t)})),a.on("error",(function(t){return e._onHttpRequestError(a,t)})),this.upload._startUpload(a),this._request===a&&this._dispatchProgress("loadstart")},r.prototype._finalizeHeaders=function(){this._headers=a({},this._headers,{Connection:"keep-alive",Host:this._url.host,"User-Agent":this._userAgent},this._anonymous?{Referer:"about:blank"}:{}),this.upload._finalizeHeaders(this._headers,this._loweredHeaders)},r.prototype._onHttpResponse=function(e,t){var n=this;if(this._request===e){if(this.withCredentials&&(t.headers["set-cookie"]||t.headers["set-cookie2"])&&r.cookieJar.setCookies(t.headers["set-cookie"]||t.headers["set-cookie2"]),[301,302,303,307,308].indexOf(t.statusCode)>=0)return this._url=this._parseUrl(t.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest();this._response=t,this._response.on("data",(function(e){return n._onHttpResponseData(t,e)})),this._response.on("end",(function(){return n._onHttpResponseEnd(t)})),this._response.on("close",(function(){return n._onHttpResponseClose(t)})),this.responseUrl=this._url.href.split("#")[0],this.status=t.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(t);var i=this._responseHeaders["content-length"]||"";this._totalBytes=+i,this._lengthComputable=!!i,this._setReadyState(r.HEADERS_RECEIVED)}},r.prototype._onHttpResponseData=function(e,t){this._response===e&&(this._responseParts.push(new n(t)),this._loadedBytes+=t.length,this.readyState!==r.LOADING&&this._setReadyState(r.LOADING),this._dispatchProgress("progress"))},r.prototype._onHttpResponseEnd=function(e){this._response===e&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(r.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},r.prototype._onHttpResponseClose=function(e){if(this._response===e){var t=this._request;this._setError(),t.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},r.prototype._onHttpTimeout=function(e){this._request===e&&(this._setError(),e.abort(),this._setReadyState(r.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},r.prototype._onHttpRequestError=function(e,t){this._request===e&&(this._setError(),e.abort(),this._setReadyState(r.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},r.prototype._dispatchProgress=function(e){var t=new r.ProgressEvent(e);t.lengthComputable=this._lengthComputable,t.loaded=this._loadedBytes,t.total=this._totalBytes,this.dispatchEvent(t)},r.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},r.prototype._parseUrl=function(e,t,r){var n=null==this.nodejsBaseUrl?e:l.resolve(this.nodejsBaseUrl,e),i=l.parse(n,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),a=o[0],s=o[1];return(a||s||t||r)&&(i.auth=(t||a||"")+":"+(r||s||"")),i},r.prototype._parseResponseHeaders=function(e){for(var t in this._responseHeaders={},e.headers){var r=t.toLowerCase();this._privateHeaders[r]||(this._responseHeaders[r]=e.headers[t])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},r.prototype._parseResponse=function(){var e=n.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(e.toString("utf-8"))}catch(e){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=e);case"arraybuffer":this.responseText=null;for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i<e.length;i++)r[i]=e[i];return void(this.response=t);case"text":default:try{this.responseText=e.toString(this._parseResponseEncoding())}catch(t){this.responseText=e.toString("binary")}this.response=this.responseText}},r.prototype._parseResponseEncoding=function(){return/;\s*charset=(.*)$/.exec(this._responseHeaders["content-type"]||"")[1]||"utf-8"},r.ProgressEvent=f.ProgressEvent,r.InvalidStateError=d.InvalidStateError,r.NetworkError=d.NetworkError,r.SecurityError=d.SecurityError,r.SyntaxError=d.SyntaxError,r.XMLHttpRequestUpload=p.XMLHttpRequestUpload,r.UNSENT=0,r.OPENED=1,r.HEADERS_RECEIVED=2,r.LOADING=3,r.DONE=4,r.cookieJar=m.CookieJar(),r}(h.XMLHttpRequestEventTarget);r.XMLHttpRequest=y,y.prototype.nodejsHttpAgent=s.globalAgent,y.prototype.nodejsHttpsAgent=c.globalAgent,y.prototype.nodejsBaseUrl=null}).call(this,e("_process"),e("buffer").Buffer)},{"./errors":1260,"./progress-event":1262,"./xml-http-request-event-target":1263,"./xml-http-request-upload":1264,_process:952,buffer:475,cookiejar:498,http:1060,https:799,os:904,url:1127}],1266:[function(e,t,r){t.exports=XMLHttpRequest},{}],1267:[function(e,t,r){arguments[4][687][0].apply(r,arguments)},{dup:687}],1268:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.GAS_ESTIMATE_TYPES=r.NETWORK_TYPES=r.SECONDARY=r.PRIMARY=r.WEI=r.GWEI=r.ETH=void 0,r.ETH="ETH",r.GWEI="GWEI",r.WEI="WEI",r.PRIMARY="PRIMARY",r.SECONDARY="SECONDARY",r.NETWORK_TYPES={KOVAN:"kovan",MAINNET:"mainnet",RINKEBY:"rinkeby",ROPSTEN:"ropsten",GOERLI:"goerli"},r.GAS_ESTIMATE_TYPES={SLOW:"SLOW",AVERAGE:"AVERAGE",FAST:"FAST"}},{}],1269:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TRANSACTION_NO_CONTRACT_ERROR_KEY=r.TRANSACTION_ERROR_KEY=r.GAS_LIMIT_TOO_LOW_ERROR_KEY=r.INSUFFICIENT_FUNDS_ERROR_KEY=void 0,r.INSUFFICIENT_FUNDS_ERROR_KEY="insufficientFunds",r.GAS_LIMIT_TOO_LOW_ERROR_KEY="gasLimitTooLow",r.TRANSACTION_ERROR_KEY="transactionError",r.TRANSACTION_NO_CONTRACT_ERROR_KEY="transactionErrorNoContract"},{}],1270:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CONNECTED_ACCOUNTS_ROUTE=r.CONNECTED_ROUTE=r.CONNECT_CONFIRM_PERMISSIONS_ROUTE=r.CONNECT_ROUTE=r.INITIALIZE_BACKUP_SEED_PHRASE_ROUTE=r.NETWORKS_ROUTE=r.CONTACT_MY_ACCOUNTS_EDIT_ROUTE=r.CONTACT_MY_ACCOUNTS_VIEW_ROUTE=r.CONTACT_MY_ACCOUNTS_ROUTE=r.CONTACT_VIEW_ROUTE=r.CONTACT_ADD_ROUTE=r.CONTACT_EDIT_ROUTE=r.CONTACT_LIST_ROUTE=r.ABOUT_US_ROUTE=r.CONNECTIONS_ROUTE=r.GENERAL_ROUTE=r.SECURITY_ROUTE=r.ADVANCED_ROUTE=r.INITIALIZE_METAMETRICS_OPT_IN_ROUTE=r.ENCRYPTION_PUBLIC_KEY_REQUEST_PATH=r.DECRYPT_MESSAGE_REQUEST_PATH=r.SIGNATURE_REQUEST_PATH=r.CONFIRM_TOKEN_METHOD_PATH=r.CONFIRM_TRANSFER_FROM_PATH=r.CONFIRM_APPROVE_PATH=r.CONFIRM_DEPLOY_CONTRACT_PATH=r.CONFIRM_SEND_TOKEN_PATH=r.CONFIRM_SEND_ETHER_PATH=r.CONFIRM_TRANSACTION_ROUTE=r.INITIALIZE_END_OF_FLOW_ROUTE=r.INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE=r.INITIALIZE_SEED_PHRASE_ROUTE=r.INITIALIZE_SELECT_ACTION_ROUTE=r.INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE=r.INITIALIZE_CREATE_PASSWORD_ROUTE=r.INITIALIZE_UNLOCK_ROUTE=r.INITIALIZE_WELCOME_ROUTE=r.INITIALIZE_ROUTE=r.SEND_ROUTE=r.CONNECT_HARDWARE_ROUTE=r.IMPORT_ACCOUNT_ROUTE=r.NEW_ACCOUNT_ROUTE=r.CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE=r.CONFIRM_ADD_TOKEN_ROUTE=r.ADD_TOKEN_ROUTE=r.RESTORE_VAULT_ROUTE=r.MOBILE_SYNC_ROUTE=r.REVEAL_SEED_ROUTE=r.SETTINGS_ROUTE=r.LOCK_ROUTE=r.UNLOCK_ROUTE=r.ASSET_ROUTE=r.ALERTS_ROUTE=r.DEFAULT_ROUTE=void 0,r.DEFAULT_ROUTE="/",r.UNLOCK_ROUTE="/unlock",r.LOCK_ROUTE="/lock",r.ASSET_ROUTE="/asset",r.SETTINGS_ROUTE="/settings",r.GENERAL_ROUTE="/settings/general",r.CONNECTIONS_ROUTE="/settings/connections",r.ADVANCED_ROUTE="/settings/advanced",r.SECURITY_ROUTE="/settings/security",r.ABOUT_US_ROUTE="/settings/about-us",r.ALERTS_ROUTE="/settings/alerts",r.NETWORKS_ROUTE="/settings/networks",r.CONTACT_LIST_ROUTE="/settings/contact-list",r.CONTACT_EDIT_ROUTE="/settings/contact-list/edit-contact",r.CONTACT_ADD_ROUTE="/settings/contact-list/add-contact",r.CONTACT_VIEW_ROUTE="/settings/contact-list/view-contact",r.CONTACT_MY_ACCOUNTS_ROUTE="/settings/contact-list/my-accounts",r.CONTACT_MY_ACCOUNTS_VIEW_ROUTE="/settings/contact-list/my-accounts/view",r.CONTACT_MY_ACCOUNTS_EDIT_ROUTE="/settings/contact-list/my-accounts/edit",r.REVEAL_SEED_ROUTE="/seed",r.MOBILE_SYNC_ROUTE="/mobile-sync",r.RESTORE_VAULT_ROUTE="/restore-vault",r.ADD_TOKEN_ROUTE="/add-token",r.CONFIRM_ADD_TOKEN_ROUTE="/confirm-add-token",r.CONFIRM_ADD_SUGGESTED_TOKEN_ROUTE="/confirm-add-suggested-token",r.NEW_ACCOUNT_ROUTE="/new-account",r.IMPORT_ACCOUNT_ROUTE="/new-account/import",r.CONNECT_HARDWARE_ROUTE="/new-account/connect",r.SEND_ROUTE="/send",r.CONNECT_ROUTE="/connect",r.CONNECT_CONFIRM_PERMISSIONS_ROUTE="/confirm-permissions",r.CONNECTED_ROUTE="/connected",r.CONNECTED_ACCOUNTS_ROUTE="/connected/accounts",r.INITIALIZE_ROUTE="/initialize",r.INITIALIZE_WELCOME_ROUTE="/initialize/welcome",r.INITIALIZE_UNLOCK_ROUTE="/initialize/unlock",r.INITIALIZE_CREATE_PASSWORD_ROUTE="/initialize/create-password",r.INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE="/initialize/create-password/import-with-seed-phrase",r.INITIALIZE_SELECT_ACTION_ROUTE="/initialize/select-action",r.INITIALIZE_SEED_PHRASE_ROUTE="/initialize/seed-phrase",r.INITIALIZE_BACKUP_SEED_PHRASE_ROUTE="/initialize/backup-seed-phrase",r.INITIALIZE_END_OF_FLOW_ROUTE="/initialize/end-of-flow",r.INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE="/initialize/seed-phrase/confirm",r.INITIALIZE_METAMETRICS_OPT_IN_ROUTE="/initialize/metametrics-opt-in",r.CONFIRM_TRANSACTION_ROUTE="/confirm-transaction",r.CONFIRM_SEND_ETHER_PATH="/send-ether",r.CONFIRM_SEND_TOKEN_PATH="/send-token",r.CONFIRM_DEPLOY_CONTRACT_PATH="/deploy-contract",r.CONFIRM_APPROVE_PATH="/approve",r.CONFIRM_TRANSFER_FROM_PATH="/transfer-from",r.CONFIRM_TOKEN_METHOD_PATH="/token-method",r.SIGNATURE_REQUEST_PATH="/signature-request",r.DECRYPT_MESSAGE_REQUEST_PATH="/decrypt-message-request",r.ENCRYPTION_PUBLIC_KEY_REQUEST_PATH="/encryption-public-key-request"},{}],1271:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.TRANSACTION_CATEGORY_SIGNATURE_REQUEST=r.TRANSACTION_CATEGORY_APPROVAL=r.TRANSACTION_CATEGORY_INTERACTION=r.TRANSACTION_CATEGORY_RECEIVE=r.TRANSACTION_CATEGORY_SEND=r.DEPOSIT_TRANSACTION_KEY=r.CANCEL_ATTEMPT_ACTION_KEY=r.CONTRACT_INTERACTION_KEY=r.ENCRYPTION_PUBLIC_KEY_REQUEST_KEY=r.DECRYPT_REQUEST_KEY=r.SIGNATURE_REQUEST_KEY=r.TRANSFER_FROM_ACTION_KEY=r.SEND_TOKEN_ACTION_KEY=r.APPROVE_ACTION_KEY=r.DEPLOY_CONTRACT_ACTION_KEY=r.SEND_ETHER_ACTION_KEY=r.INCOMING_TRANSACTION=r.TOKEN_CATEGORY_HASH=r.TOKEN_METHOD_TRANSFER_FROM=r.TOKEN_METHOD_APPROVE=r.TOKEN_METHOD_TRANSFER=r.PRIORITY_STATUS_HASH=r.PENDING_STATUS_HASH=r.CANCELLED_STATUS=r.DROPPED_STATUS=r.FAILED_STATUS=r.CONFIRMED_STATUS=r.SUBMITTED_STATUS=r.SIGNED_STATUS=r.APPROVED_STATUS=r.REJECTED_STATUS=r.UNAPPROVED_STATUS=void 0;var i=n(e("@babel/runtime/helpers/defineProperty"));function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r.UNAPPROVED_STATUS="unapproved",r.REJECTED_STATUS="rejected",r.APPROVED_STATUS="approved",r.SIGNED_STATUS="signed",r.SUBMITTED_STATUS="submitted",r.CONFIRMED_STATUS="confirmed",r.FAILED_STATUS="failed",r.DROPPED_STATUS="dropped",r.CANCELLED_STATUS="cancelled";const a={unapproved:!0,approved:!0,submitted:!0};r.PENDING_STATUS_HASH=a;const s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},a,{confirmed:!0});r.PRIORITY_STATUS_HASH=s,r.TOKEN_METHOD_TRANSFER="transfer",r.TOKEN_METHOD_APPROVE="approve",r.TOKEN_METHOD_TRANSFER_FROM="transferfrom";r.TOKEN_CATEGORY_HASH={approve:!0,transfer:!0,transferfrom:!0},r.INCOMING_TRANSACTION="incoming",r.SEND_ETHER_ACTION_KEY="sentEther",r.DEPLOY_CONTRACT_ACTION_KEY="contractDeployment",r.APPROVE_ACTION_KEY="approve",r.SEND_TOKEN_ACTION_KEY="sentTokens",r.TRANSFER_FROM_ACTION_KEY="transferFrom",r.SIGNATURE_REQUEST_KEY="signatureRequest",r.DECRYPT_REQUEST_KEY="decryptRequest",r.ENCRYPTION_PUBLIC_KEY_REQUEST_KEY="encryptionPublicKeyRequest",r.CONTRACT_INTERACTION_KEY="contractInteraction",r.CANCEL_ATTEMPT_ACTION_KEY="cancelAttempt",r.DEPOSIT_TRANSACTION_KEY="deposit",r.TRANSACTION_CATEGORY_SEND="send",r.TRANSACTION_CATEGORY_RECEIVE="receive",r.TRANSACTION_CATEGORY_INTERACTION="interaction",r.TRANSACTION_CATEGORY_APPROVAL="approval",r.TRANSACTION_CATEGORY_SIGNATURE_REQUEST="signature-request"},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135}],1272:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.increaseLastGasPrice=function(e){return a.default.addHexPrefix((0,c.multiplyCurrencies)(e||"0x0",1.1,{multiplicandBase:16,multiplierBase:10,toNumericBase:"hex"}))},r.hexGreaterThan=function(e,t){return(0,c.conversionGreaterThan)({value:e,fromNumericBase:"hex"},{value:t,fromNumericBase:"hex"})},r.getHexGasTotal=function({gasLimit:e,gasPrice:t}){return a.default.addHexPrefix((0,c.multiplyCurrencies)(e||"0x0",t||"0x0",{toNumericBase:"hex",multiplicandBase:16,multiplierBase:16}))},r.addEth=function(...e){return e.reduce((e,t)=>(0,c.addCurrencies)(e,t,{toNumericBase:"dec",numberOfDecimals:6}))},r.addFiat=function(...e){return e.reduce((e,t)=>(0,c.addCurrencies)(e,t,{toNumericBase:"dec",numberOfDecimals:2}))},r.getValueFromWeiHex=function({value:e,fromCurrency:t="ETH",toCurrency:r,conversionRate:n,numberOfDecimals:i,toDenomination:o}){return(0,c.conversionUtil)(e,{fromNumericBase:"hex",toNumericBase:"dec",fromCurrency:t,toCurrency:r,numberOfDecimals:i,fromDenomination:"WEI",toDenomination:o,conversionRate:n})},r.getTransactionFee=function({value:e,fromCurrency:t="ETH",toCurrency:r,conversionRate:n,numberOfDecimals:i}){return(0,c.conversionUtil)(e,{fromNumericBase:"BN",toNumericBase:"dec",fromDenomination:"WEI",fromCurrency:t,toCurrency:r,numberOfDecimals:i,conversionRate:n})},r.formatCurrency=function(e,t){const r=t.toUpperCase();return o.default.find(e=>e.code===r)?i.default.format(Number(e),{code:r,style:"currency"}):e},r.convertTokenToFiat=function({value:e,fromCurrency:t="ETH",toCurrency:r,conversionRate:n,contractExchangeRate:i}){const o=n*i;return(0,c.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"dec",fromCurrency:t,toCurrency:r,numberOfDecimals:2,conversionRate:o})},r.hasUnconfirmedTransactions=function(e){return(0,u.unconfirmedTransactionsCountSelector)(e)>0},r.roundExponential=function(e){const t=new s.default(String(e));return t.e>20?Number(t.toPrecision(4)):e};var i=n(e("currency-formatter")),o=n(e("currency-formatter/currencies")),a=n(e("ethereumjs-util")),s=n(e("bignumber.js")),c=e("./conversion-util"),u=e("../../selectors")},{"../../selectors":1286,"./conversion-util":1273,"@babel/runtime/helpers/interopRequireDefault":135,"bignumber.js":429,"currency-formatter":545,"currency-formatter/currencies":544,"ethereumjs-util":717}],1273:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),i=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.subtractCurrencies=r.toNegative=r.conversionMax=r.conversionLTE=r.conversionGTE=r.conversionLessThan=r.conversionGreaterThan=r.multiplyCurrencies=r.addCurrencies=r.conversionUtil=void 0;var o=i(e("@babel/runtime/helpers/extends")),a=i(e("@babel/runtime/helpers/defineProperty")),s=i(e("@babel/runtime/helpers/objectWithoutProperties")),c=i(e("bignumber.js")),u=n(e("ethereumjs-util"));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,a.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const d=u.default.BN,h=new c.default("1000000000000000000"),p=new c.default("1000000000"),m=new c.default("1"),y={hex:e=>new c.default((0,u.stripHexPrefix)(e),16),dec:e=>new c.default(String(e),10),BN:e=>new c.default(e.toString(16),16)},g={WEI:e=>e.div(h),GWEI:e=>e.div(p),ETH:e=>e.div(m)},b={WEI:e=>e.times(h).round(),GWEI:e=>e.times(p).round(9),ETH:e=>e.times(m).round(9)},v={hex:e=>e.toString(16),dec:e=>new c.default(e).toString(10),BN:e=>new d(e.toString(16))},w=({value:e,fromNumericBase:t,fromDenomination:r,fromCurrency:n,toNumericBase:i,toDenomination:o,toCurrency:a,numberOfDecimals:s,conversionRate:u,invertConversionRate:l,roundDown:f})=>{let d=t?y[t](e):e;if(r&&(d=g[r](d)),n!==a){if(null==u)throw new Error(`Converting from ${n} to ${a} requires a conversionRate, but one was not provided`);let e=y.dec(u);l&&(e=new c.default(1).div(u)),d=d.times(e)}return o&&(d=b[o](d)),s&&(d=d.round(s,c.default.ROUND_HALF_DOWN)),f&&(d=d.round(f,c.default.ROUND_DOWN)),i&&(d=v[i](d)),d};r.conversionUtil=(e,{fromCurrency:t=null,toCurrency:r=t,fromNumericBase:n,toNumericBase:i,fromDenomination:o,toDenomination:a,numberOfDecimals:s,conversionRate:c,invertConversionRate:u})=>w({fromCurrency:t,toCurrency:r,fromNumericBase:n,toNumericBase:i,fromDenomination:o,toDenomination:a,numberOfDecimals:s,conversionRate:c,invertConversionRate:u,value:e||"0"}),r.addCurrencies=(e,t,r={})=>{const{aBase:n,bBase:i}=r,o=(0,s.default)(r,["aBase","bBase"]),a=new c.default(e.toString(),n).add(t.toString(),i);return w(f({value:a},o))},r.subtractCurrencies=(e,t,r={})=>{const{aBase:n,bBase:i}=r,o=(0,s.default)(r,["aBase","bBase"]),a=new c.default(String(e),n).minus(t,i);return w(f({value:a},o))};const _=(e,t,r={})=>{const{multiplicandBase:n,multiplierBase:i}=r,o=(0,s.default)(r,["multiplicandBase","multiplierBase"]),a=new c.default(String(e),n),u=new c.default(String(t),i),l=a.times(u);return w(f({value:l},o))};r.multiplyCurrencies=_;const x=(e,t)=>{let r=(0,o.default)({},e),n=(0,o.default)({},t);const i=w(f({},r)),a=w(f({},n));return i.gt(a)};r.conversionGreaterThan=x,r.conversionLessThan=(e,t)=>{let r=(0,o.default)({},e),n=(0,o.default)({},t);const i=w(f({},r)),a=w(f({},n));return i.lt(a)},r.conversionMax=(e,t)=>{let r=(0,o.default)({},e),n=(0,o.default)({},t);return x(f({},r),f({},n))?r.value:n.value},r.conversionGTE=(e,t)=>{let r=(0,o.default)({},e),n=(0,o.default)({},t);const i=w(f({},r)),a=w(f({},n));return i.greaterThanOrEqualTo(a)},r.conversionLTE=(e,t)=>{let r=(0,o.default)({},e),n=(0,o.default)({},t);const i=w(f({},r)),a=w(f({},n));return i.lessThanOrEqualTo(a)},r.toNegative=(e,t={})=>_(e,-1,t)},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/extends":132,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/interopRequireWildcard":136,"@babel/runtime/helpers/objectWithoutProperties":140,"bignumber.js":429,"ethereumjs-util":717}],1274:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.bnToHex=function(e){return i.default.addHexPrefix(e.toString(16))},r.hexToDecimal=function(e){return(0,a.conversionUtil)(e,{fromNumericBase:"hex",toNumericBase:"dec"})},r.decimalToHex=function(e){return(0,a.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"hex"})},r.getEthConversionFromWeiHex=function({value:e,fromCurrency:t=o.ETH,conversionRate:r,numberOfDecimals:n=6}){const i=[t,o.GWEI,o.WEI];let a;for(let o=0;o<i.length;o++){const c=s({value:e,conversionRate:r,fromCurrency:t,toCurrency:t,numberOfDecimals:n,toDenomination:i[o]});if("0"!==c||o===i.length-1){a=`${c} ${i[o]}`;break}}return a},r.getValueFromWeiHex=s,r.getWeiHexFromDecimalValue=function({value:e,fromCurrency:t,conversionRate:r,fromDenomination:n,invertConversionRate:i}){return(0,a.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"hex",toCurrency:o.ETH,fromCurrency:t,conversionRate:r,invertConversionRate:i,fromDenomination:n,toDenomination:o.WEI})},r.addHexWEIsToDec=function(e,t){return(0,a.addCurrencies)(e,t,{aBase:16,bBase:16,fromDenomination:"WEI",numberOfDecimals:6})},r.subtractHexWEIsToDec=function(e,t){return(0,a.subtractCurrencies)(e,t,{aBase:16,bBase:16,fromDenomination:"WEI",numberOfDecimals:6})},r.decEthToConvertedCurrency=function(e,t,r){return(0,a.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"dec",fromCurrency:"ETH",toCurrency:t,numberOfDecimals:2,conversionRate:r})},r.decGWEIToHexWEI=function(e){return(0,a.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"hex",fromDenomination:"GWEI",toDenomination:"WEI"})},r.hexWEIToDecGWEI=function(e){return(0,a.conversionUtil)(e,{fromNumericBase:"hex",toNumericBase:"dec",fromDenomination:"WEI",toDenomination:"GWEI"})};var i=n(e("ethereumjs-util")),o=e("../constants/common"),a=e("./conversion-util");function s({value:e,fromCurrency:t=o.ETH,toCurrency:r,conversionRate:n,numberOfDecimals:i,toDenomination:s}){return(0,a.conversionUtil)(e,{fromNumericBase:"hex",toNumericBase:"dec",fromCurrency:t,toCurrency:r,numberOfDecimals:i,fromDenomination:o.WEI,toDenomination:s,conversionRate:n})}},{"../constants/common":1268,"./conversion-util":1273,"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717}],1275:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("../../../lib/local-storage-helpers"),a=n(e("../../../../app/scripts/lib/fetch-with-timeout"));function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}r.default=async(e,t={},{cacheRefreshTime:r=36e4,timeout:n=3e4}={})=>{if(t.body||t.method&&"GET"!==t.method)throw new Error("fetchWithCache only supports GET requests");if(t.headers instanceof window.Headers||(t.headers=new window.Headers(t.headers)),t.headers&&t.headers.has("Content-Type")&&"application/json"!==t.headers.get("Content-Type"))throw new Error("fetchWithCache only supports JSON responses");const c=Date.now(),u=(0,o.loadLocalStorageData)("cachedFetch")||{},{cachedResponse:l,cachedTime:f}=u[e]||{};if(l&&c-f<r)return l;{t.headers.set("Content-Type","application/json");const r=n?(0,a.default)({timeout:n}):window.fetch,l=await r(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({referrerPolicy:"no-referrer-when-downgrade",body:null,method:"GET",mode:"cors"},t));if(!l.ok)throw new Error(`Fetch failed with status '${l.status}': '${l.statusText}'`);const f=await l.json(),d={cachedResponse:f,cachedTime:c};return u[e]=d,(0,o.saveLocalStorageData)(u,"cachedFetch"),f}}},{"../../../../app/scripts/lib/fetch-with-timeout":58,"../../../lib/local-storage-helpers":1292,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135}],1276:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.formatETHFee=function(e){return e+" ETH"}},{}],1277:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.sendMetaMetricsEvent=function(e){return window.fetch(function(e){const{eventOpts:t={},customVariables:r="",pageOpts:n="",network:s,environmentType:c,activeCurrency:p,accountType:m,numberOfTokens:y,numberOfAccounts:g,version:b,previousPath:v="",currentPath:w,metaMetricsId:_,confirmTransactionOrigin:x,excludeMetaMetricsId:k,isNewVisit:S}=e,E=S?"&new_visit=1":"";var A;return[u,h(t.category,"e_c"),h(t.action,"e_a"),h(t.name,"e_n"),r&&function(e){const t=Object.keys(e).reduce((t,r)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[f[r]]:[r,e[r]]},t),{});return"&cvar="+encodeURIComponent(JSON.stringify(t))}(r)||"","",v&&function(e,t){return"&urlref="+(t&&"metamask"!==t?"EXTERNAL":encodeURIComponent(`${l}${e}`))}(v,x),n.hideDimensions?"":(A={network:s,environmentType:c,activeCurrency:p,accountType:m,version:b,numberOfTokens:r&&r.numberOfTokens||y,numberOfAccounts:r&&r.numberOfAccounts||g},"&"+Object.keys(A).reduce((e,t)=>[...e,`dimension${d[t]}=${A[t]}`],[]).join("&")),w?"&url="+encodeURIComponent(`${l}${w}`):"",_&&!k?"&_id="+_.slice(2,18):"","&rand="+String(Math.random()).slice(2),w?"&pv_id="+o.default.bufferToHex(o.default.sha3(w)).slice(2,8):"",_&&!k?"&uid="+_.slice(2,18):k?"&uid=0000000000000000":"",E].join("")}(e),{headers:{},method:"GET"})},r.verifyUserPermission=function(e,t){const{eventOpts:r={}}=e,{userPermissionPreferences:n}=t,{allowAll:i,allowNone:o,allowSendMetrics:a}=n;return!(o||!i&&(!a||"send"!==r.name))},r.sendCountIsTrackable=function(e){return Boolean(p[e])};var i=n(e("@babel/runtime/helpers/defineProperty")),o=n(e("ethereumjs-util"));function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const s=t.env.METAMASK_DEBUG||!1;let c=t.env.METAMETRICS_PROJECT_ID;c||(c=s?1:2);const u=`https://chromeextensionmm.innocraft.cloud/piwik.php?idsite=${c}&rec=1&apiv=1`,l=s?"http://www.metamask.io/metametrics":"http://www.metamask.io/metametrics-prod",f={functionType:1,recipientKnown:2,origin:3,gasLimitChange:4,gasPriceChange:5,fromNetwork:1,toNetwork:2,networkId:1,chainId:2,errorField:3,errorMessage:4,gasChanged:1,assetSelected:2},d={network:5,environmentType:6,activeCurrency:7,accountType:8,numberOfAccounts:9,numberOfTokens:10,version:11};function h(e,t){return 0===e||e?`&${t}=${e}`:""}const p={1:!0,10:!0,30:!0,50:!0,100:!0,250:!0,500:!0,1e3:!0,2500:!0,5e3:!0,1e4:!0,25e3:!0}}).call(this,e("_process"))},{"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,_process:952,"ethereumjs-util":717}],1278:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard"),i=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.fetchSymbolAndDecimals=async function(e){let t,r;try{t=await m(e),r=await y(e)}catch(t){a.default.warn(`symbol() and decimal() calls for token at address ${e} resulted in error:`,t)}return{symbol:t||"",decimals:r||"0"}},r.getSymbolAndDecimals=g,r.tokenInfoGetter=function(){const e={};return async t=>(e[t]||(e[t]=await g(t)),e[t])},r.calcTokenAmount=function(e,t){const r=Math.pow(10,Number(t||0));return new c.default(String(e)).div(r)},r.calcTokenValue=function(e,t){const r=Math.pow(10,Number(t||0));return new c.default(String(e)).times(r)},r.getTokenValue=function(e=[]){const t=e.find(e=>"_value"===e.name);return t&&t.value},r.getTokenToAddress=function(e=[]){const t=e.find(e=>"_to"===e.name);return t?t.value:e[0].value},r.getFormattedTokenFiatAmount=function(e,t,r,n,i){if(t<=0||!e||void 0===n)return;const o=(0,l.multiplyCurrencies)(e,t),a=(0,l.conversionUtil)(n,{fromNumericBase:"dec",fromCurrency:i,toCurrency:r.toUpperCase(),numberOfDecimals:2,conversionRate:o});return`${(0,f.formatCurrency)(a,r)} ${r.toUpperCase()}`};var o=i(e("@babel/runtime/helpers/defineProperty")),a=i(e("loglevel")),s=n(e("./util")),c=i(e("bignumber.js")),u=i(e("eth-contract-metadata")),l=e("./conversion-util"),f=e("./confirm-tx.util");function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const h=Object.keys(u.default).reduce((e,t)=>function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,o.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e,{[t.toLowerCase()]:u.default[t]}),{});function p(e){return e&&h[e.toLowerCase()]}async function m(e){let t=await async function(e){const t=s.getContractAtAddress(e);try{return(await t.symbol())[0]}catch(t){a.default.warn(`symbol() call for token at address ${e} resulted in error:`,t)}}(e);if(!t){const r=p(e);r&&(t=r.symbol)}return t}async function y(e){let t=await async function(e){const t=s.getContractAtAddress(e);try{const e=(await t.decimals())[0];return e&&e.toString()}catch(t){a.default.warn(`decimals() call for token at address ${e} resulted in error:`,t)}}(e);if(!t||"0"===t){const r=p(e);r&&(t=r.decimals)}return t}async function g(e,t=[]){const r=t.find(({address:t})=>e===t);if(r)return{symbol:r.symbol,decimals:r.decimals};let n,i;try{n=await m(e),i=await y(e)}catch(t){a.default.warn(`symbol() and decimal() calls for token at address ${e} resulted in error:`,t)}return{symbol:n||"",decimals:i||"0"}}},{"./confirm-tx.util":1272,"./conversion-util":1273,"./util":1280,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"@babel/runtime/helpers/interopRequireWildcard":136,"bignumber.js":429,"eth-contract-metadata":593,loglevel:872}],1279:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.getTokenData=function(e=""){return s.default.decodeMethod(e)},r.getMethodDataAsync=async function(e){try{const r=async function(e){const t=await(0,f.default)("https://www.4byte.directory/api/v1/signatures/?hex_signature="+e,{referrerPolicy:"no-referrer-when-downgrade",body:null,method:"GET",mode:"cors"});return 1===t.count?t.results[0].text_signature:null}(e).catch(e=>(h.default.error(e),null));m||(m=new o.default({provider:t.ethereumProvider}));let n=await m.lookup(e);if(n||(n=await r),!n)return{};const i=m.parse(n);return{name:i.name,params:i.args}}catch(e){return h.default.error(e),{}}},r.isConfirmDeployContract=y,r.getFourBytePrefix=function(e=""){return i.default.addHexPrefix(e).slice(0,10)},r.isTokenMethodAction=g,r.getTransactionActionKey=function(e){const{msgParams:t,type:r,transactionCategory:n}=e;if("incoming"===n)return d.DEPOSIT_TRANSACTION_KEY;if("cancel"===r)return d.CANCEL_ATTEMPT_ACTION_KEY;if(t)return r===u.MESSAGE_TYPE.ETH_DECRYPT?d.DECRYPT_REQUEST_KEY:r===u.MESSAGE_TYPE.ETH_GET_ENCRYPTION_PUBLIC_KEY?d.ENCRYPTION_PUBLIC_KEY_REQUEST_KEY:d.SIGNATURE_REQUEST_KEY;if(y(e))return d.DEPLOY_CONTRACT_ACTION_KEY;const i=g(n),o=n===d.CONTRACT_INTERACTION_KEY;if(!i&&!o)return d.SEND_ETHER_ACTION_KEY;switch(n){case d.TOKEN_METHOD_TRANSFER:return d.SEND_TOKEN_ACTION_KEY;case d.TOKEN_METHOD_APPROVE:return d.APPROVE_ACTION_KEY;case d.TOKEN_METHOD_TRANSFER_FROM:return d.TRANSFER_FROM_ACTION_KEY;case d.CONTRACT_INTERACTION_KEY:return d.CONTRACT_INTERACTION_KEY;default:return}},r.getLatestSubmittedTxWithNonce=function(e=[],t="0x0"){return e.length?e.reduce((e,r)=>{const{submittedTime:n,txParams:{nonce:i}={}}=r;return i===t?e.submittedTime?n>e.submittedTime?r:e:r:e},{}):{}},r.isSmartContractAddress=async function(e){const r=await t.eth.getCode(e);return!(!r||"0x"===r||"0x0"===r)},r.sumHexes=function(...e){const t=e.reduce((e,t)=>(0,p.addCurrencies)(e,t,{toNumericBase:"hex"}));return i.default.addHexPrefix(t)},r.getStatusKey=function(e){const{txReceipt:{status:t}={},type:r,status:n}=e;return"0x0"===t?"failed":n===c.TRANSACTION_STATUS_CONFIRMED&&r===c.TRANSACTION_TYPE_CANCEL?"cancelled":e.status},r.getBlockExplorerUrlForTx=function(e,t,r={}){return r.blockExplorerUrl?`${r.blockExplorerUrl.replace(/\/+$/,"")}/tx/${t}`:`https://${(0,l.getEtherscanNetworkPrefix)(e)}etherscan.io/tx/${t}`};var i=n(e("ethereumjs-util")),o=n(e("eth-method-registry")),a=n(e("human-standard-token-abi")),s=n(e("abi-decoder")),c=e("../../../../app/scripts/controllers/transactions/enums"),u=e("../../../../app/scripts/lib/enums"),l=e("../../../lib/etherscan-prefix-for-network"),f=n(e("./fetch-with-cache")),d=e("../constants/transactions"),h=n(e("loglevel")),p=e("./conversion-util");let m;function y(e={}){const{txParams:t={}}=e;return!t.to}function g(e){return[d.TOKEN_METHOD_TRANSFER,d.TOKEN_METHOD_APPROVE,d.TOKEN_METHOD_TRANSFER_FROM].includes(e)}s.default.addABI(a.default)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../../../app/scripts/controllers/transactions/enums":31,"../../../../app/scripts/lib/enums":56,"../../../lib/etherscan-prefix-for-network":1291,"../constants/transactions":1271,"./conversion-util":1273,"./fetch-with-cache":1275,"@babel/runtime/helpers/interopRequireDefault":135,"abi-decoder":275,"eth-method-registry":671,"ethereumjs-util":717,"human-standard-token-abi":801,loglevel:872}],1280:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.formatDate=function(e,t="M/d/y 'at' T"){return a.DateTime.fromMillis(e).toFormat(t)},r.formatDateWithYearContext=function(e,t="MMM d",r="MMM d, y"){const n=a.DateTime.fromMillis(e),i=a.DateTime.local();return n.toFormat(i.year===n.year?t:r)},r.isEthNetwork=function(e){return!e||"1"===e||"3"===e||"4"===e||"42"===e||"5777"===e},r.valuesFor=function(e){return e?Object.keys(e).map((function(t){return e[t]})):[]},r.addressSummary=function(e,t=10,r=4,n=!0){if(!e)return"";let i=b(e);return n||(i=o.default.stripHexPrefix(i)),i?i.slice(0,t)+"..."+i.slice(i.length-r):"..."},r.isValidAddress=function(e){if(!e||"0x0000000000000000000000000000000000000000"===e)return!1;const t=e.startsWith("0X")?e:o.default.addHexPrefix(e);return l(t.slice(2))&&o.default.isValidAddress(t)||o.default.isValidChecksumAddress(t)},r.isValidDomainName=function(e){return null!==s.default.toASCII(e).toLowerCase().match(/^(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+[a-z0-9][-a-z0-9]*[a-z0-9]$/)},r.isAllOneCase=l,r.numericBalance=f,r.parseBalance=d,r.formatBalance=function(e,t,r=!0,n="ETH"){const i=r?d(e):e.split("."),o=i[0];let a=i[1],s="None";if(void 0===t)if("0"===o){if("0"!==a){const e=a.match(/^0*(.{2})/);e&&(a=e[0]),s="0."+a+" "+n}}else s=o+"."+a.slice(0,3)+" "+n;else a+=Array(t).join("0"),s=o+"."+a.slice(0,t)+" "+n;return s},r.generateBalanceObject=function(e,t=1){let r=e.split(" ")[0];const n=e.split(" ")[1],i=r.split(".")[0],o=r.split(".")[1],a=h(r,t);return"0"===i&&"00000"===o.substr(0,5)?r=0==o?"0":"<1.0e-5":"0"!==i&&(r=`${i}.${o.slice(0,t)}`),{balance:r,label:n,shortBalance:a}},r.shortenBalance=h,r.normalizeToWei=p,r.normalizeEthStringToWei=function(e){const t=e.split(".");let r=new o.default.BN(t[0],10).mul(u.wei);if(t[1]){let e=t[1];for(;e.length<18;)e+="0";e.length>18&&(e=e.slice(0,18));const n=new o.default.BN(e,10);r=r.add(n)}return r},r.normalizeNumberToWei=function(e,t){const r=1e4*e;return p(new o.default.BN(String(r),10),t).div(m)},r.isHex=y,r.getContractAtAddress=function(e){return t.eth.contract(i.default).at(e)},r.getRandomFileName=g,r.exportAsFile=function(e,t,r="text/csv"){e=e||g();const n=new window.Blob([t],{type:r});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(n,e);else{const t=window.document.createElement("a");t.target="_blank",t.href=window.URL.createObjectURL(n),t.download=e,document.body.appendChild(t),t.click(),document.body.removeChild(t)}},r.checksumAddress=b,r.shortenAddress=function(e=""){return e.length<11?e:`${e.slice(0,6)}...${e.slice(-4)}`},r.isValidAddressHead=function(e){const t=e.length<42,r=y(e);return t&&r},r.getAccountByAddress=function(e=[],t){return e.find(({address:e})=>e===t)},r.stripHttpSchemes=function(e){return e.replace(/^https?:\/\//u,"")},r.isExtensionUrl=function(e){const t=["chrome-extension:","moz-extension:"];if("string"==typeof e)for(const r of t)if(e.startsWith(r))return!0;return!!(null==e?void 0:e.protocol)&&t.includes(e.protocol)},r.checkExistingAddresses=function(e,t=[]){return!!e&&t.some(t=>t.address.toLowerCase()===e.toLowerCase())};var i=n(e("human-standard-token-abi")),o=n(e("ethereumjs-util")),a=e("luxon"),s=n(e("punycode"));const c={wei:"1000000000000000000",kwei:"1000000000000000",mwei:"1000000000000",gwei:"1000000000",szabo:"1000000",finney:"1000",ether:"1",kether:"0.001",mether:"0.000001",gether:"0.000000001",tether:"0.000000000001"},u={};function l(e){if(!e)return!0;const t=e.toLowerCase(),r=e.toUpperCase();return e===t||e===r}function f(e){if(!e)return new o.default.BN(0,16);const t=o.default.stripHexPrefix(e);return new o.default.BN(t,16)}function d(e){let t;const r=f(e),n=r.toString(),i=n.length>18?n.slice(0,n.length-18):"0";return t=("000000000000000000"+r).slice(-18).replace(/0+$/,""),""===t&&(t="0"),[i,t]}function h(e,t=1){let r;const n=parseFloat(e);if(n>1e6)return r=(e/1e6).toFixed(t),r+"m";if(n>1e3)return r=(e/1e3).toFixed(t),r+"k";if(0===n)return"0";if(n<.001)return"<0.001";if(n<1){const e=n.toString();return e.split(".")[1].length>3?n.toFixed(3):e}return n.toFixed(t)}function p(e,t){try{return e.mul(u.wei).div(u[t])}catch(e){}return e}Object.keys(c).forEach(e=>{u[e]=new o.default.BN(c[e],10)});const m=new o.default.BN("10000",10);function y(e){return Boolean(e.match(/^(0x)?[0-9a-fA-F]+$/))}function g(){let e="";const t=[..."abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"],r=Math.floor(7*Math.random()+6);for(let n=0;n<r;n++)e+=t[Math.floor(Math.random()*t.length)];return e}function b(e){return e?o.default.toChecksumAddress(e):""}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717,"human-standard-token-abi":801,luxon:873,punycode:477}],1281:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.BASE_TOKEN_GAS_COST=r.TOKEN_TRANSFER_FUNCTION_SIGNATURE=r.SIMPLE_GAS_COST=r.REQUIRED_ERROR=r.NEGATIVE_ETH_ERROR=r.MIN_GAS_TOTAL=r.MIN_GAS_PRICE_HEX=r.MIN_GAS_PRICE_GWEI=r.MIN_GAS_PRICE_DEC=r.MIN_GAS_LIMIT_HEX=r.MIN_GAS_LIMIT_DEC=r.INVALID_RECIPIENT_ADDRESS_NOT_ETH_NETWORK_ERROR=r.KNOWN_RECIPIENT_ADDRESS_ERROR=r.INVALID_RECIPIENT_ADDRESS_ERROR=r.INSUFFICIENT_TOKENS_ERROR=r.INSUFFICIENT_FUNDS_ERROR=void 0;var i=n(e("ethereumjs-util")),o=e("../../helpers/utils/conversion-util");r.MIN_GAS_PRICE_DEC="0";const a=parseInt("0").toString(16);r.MIN_GAS_PRICE_HEX=a,r.MIN_GAS_LIMIT_DEC="21000";const s=parseInt("21000").toString(16);r.MIN_GAS_LIMIT_HEX=s;const c=i.default.addHexPrefix((0,o.conversionUtil)(a,{fromDenomination:"WEI",toDenomination:"GWEI",fromNumericBase:"hex",toNumericBase:"hex",numberOfDecimals:1}));r.MIN_GAS_PRICE_GWEI=c;const u=(0,o.multiplyCurrencies)(s,a,{toNumericBase:"hex",multiplicandBase:16,multiplierBase:16});r.MIN_GAS_TOTAL=u,r.TOKEN_TRANSFER_FUNCTION_SIGNATURE="0xa9059cbb",r.INSUFFICIENT_FUNDS_ERROR="insufficientFunds",r.INSUFFICIENT_TOKENS_ERROR="insufficientTokens",r.NEGATIVE_ETH_ERROR="negativeETH",r.INVALID_RECIPIENT_ADDRESS_ERROR="invalidAddressRecipient",r.INVALID_RECIPIENT_ADDRESS_NOT_ETH_NETWORK_ERROR="invalidAddressRecipientNotEthNetwork",r.REQUIRED_ERROR="required",r.KNOWN_RECIPIENT_ADDRESS_ERROR="knownAddressRecipient",r.SIMPLE_GAS_COST="0x5208",r.BASE_TOKEN_GAS_COST="0x186a0"},{"../../helpers/utils/conversion-util":1273,"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717}],1282:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.addGasBuffer=f,r.calcGasTotal=function(e="0",t="0"){return(0,i.multiplyCurrencies)(e,t,{toNumericBase:"hex",multiplicandBase:16,multiplierBase:16})},r.calcTokenBalance=function({sendToken:e,usersToken:t}){const{decimals:r}=e||{};return(0,o.calcTokenAmount)(t.balance.toString(),r).toString(16)},r.doesAmountErrorRequireUpdate=function({balance:e,gasTotal:t,prevBalance:r,prevGasTotal:n,prevTokenBalance:i,sendToken:o,tokenBalance:a}){return e!==r||t!==n||o&&a!==i},r.estimateGas=async function({selectedAddress:e,sendToken:r,blockGasLimit:n=a.MIN_GAS_LIMIT_HEX,to:o,value:s,data:u,gasPrice:l,estimateGasMethod:h}){const p={from:e,value:s,gasPrice:l};if(r||u){if(r&&!o)return a.BASE_TOKEN_GAS_COST}else{const e=Boolean(o)&&await t.eth.getCode(o);if(!e||"0x"===e||"0x0"===e)return a.SIMPLE_GAS_COST}r?(p.value="0x0",p.data=d({toAddress:o,amount:s,sendToken:r}),p.to=r.address):(u&&(p.data=u),o&&(p.to=o),s&&"0"!==s||(p.value="0xff")),n||(n=a.MIN_GAS_LIMIT_HEX),p.gas=c.default.addHexPrefix((0,i.multiplyCurrencies)(n,.95,{multiplicandBase:16,multiplierBase:10,roundDown:"0",toNumericBase:"hex"}));try{const e=f((await h(p)).toString(16),n,1.5);return c.default.addHexPrefix(e)}catch(e){if(e.message.includes("Transaction execution error.")||e.message.includes("gas required exceeds allowance or always failing transaction")){const e=f(p.gas,n,1.5);return c.default.addHexPrefix(e)}throw e}},r.generateTokenTransferData=d,r.getAmountErrorObject=function({amount:e,balance:t,conversionRate:r,gasTotal:n,primaryCurrency:o,sendToken:s,tokenBalance:c}){let f=!1;n&&r&&!s&&(f=!u({amount:e,balance:t,conversionRate:r,gasTotal:n,primaryCurrency:o}));let d=!1;if(s&&null!==c){const{decimals:t}=s;d=!l({tokenBalance:c,amount:e,decimals:t})}const h=(0,i.conversionGreaterThan)({value:0,fromNumericBase:"dec"},{value:e,fromNumericBase:"hex"});let p=null;return f?p=a.INSUFFICIENT_FUNDS_ERROR:d?p=a.INSUFFICIENT_TOKENS_ERROR:h&&(p=a.NEGATIVE_ETH_ERROR),{amount:p}},r.getGasFeeErrorObject=function({balance:e,conversionRate:t,gasTotal:r,primaryCurrency:n}){let i=null;return r&&t&&!u({amount:"0x0",balance:e,conversionRate:t,gasTotal:r,primaryCurrency:n})&&(i=a.INSUFFICIENT_FUNDS_ERROR),{gasFee:i}},r.getToAddressForGasUpdate=function(...e){return[...e,""].find(e=>null!=e).toLowerCase()},r.isBalanceSufficient=u,r.isTokenBalanceSufficient=l,r.removeLeadingZeroes=function(e){return e.replace(/^0*(?=\d)/,"")},r.ellipsify=function(e,t=6,r=4){return`${e.slice(0,t)}...${e.slice(-r)}`};var i=e("../../helpers/utils/conversion-util"),o=e("../../helpers/utils/token-util"),a=e("./send.constants"),s=n(e("ethereumjs-abi")),c=n(e("ethereumjs-util"));function u({amount:e="0x0",balance:t="0x0",conversionRate:r=1,gasTotal:n="0x0",primaryCurrency:o}){const a=(0,i.addCurrencies)(e,n,{aBase:16,bBase:16,toNumericBase:"hex"});return(0,i.conversionGTE)({value:t,fromNumericBase:"hex",fromCurrency:o,conversionRate:r},{value:a,fromNumericBase:"hex",conversionRate:r,fromCurrency:o})}function l({amount:e="0x0",tokenBalance:t,decimals:r}){const n=(0,i.conversionUtil)(e,{fromNumericBase:"hex"});return(0,i.conversionGTE)({value:t,fromNumericBase:"hex"},{value:(0,o.calcTokenAmount)(n,r)})}function f(e,t,r=1.5){const n=(0,i.multiplyCurrencies)(t,.9,{toNumericBase:"hex",multiplicandBase:16,multiplierBase:10,numberOfDecimals:"0"}),o=(0,i.multiplyCurrencies)(e,r,{toNumericBase:"hex",multiplicandBase:16,multiplierBase:10,numberOfDecimals:"0"});return(0,i.conversionGreaterThan)({value:e,fromNumericBase:"hex"},{value:n,fromNumericBase:"hex"})?e:(0,i.conversionLessThan)({value:o,fromNumericBase:"hex"},{value:n,fromNumericBase:"hex"})?o:n}function d({toAddress:e="0x0",amount:t="0x0",sendToken:r}){if(r)return a.TOKEN_TRANSFER_FUNCTION_SIGNATURE+Array.prototype.map.call(s.default.rawEncode(["address","uint256"],[e,c.default.addHexPrefix(t)]),e=>("00"+e.toString(16)).slice(-2)).join("")}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../helpers/utils/conversion-util":1273,"../../helpers/utils/token-util":1278,"./send.constants":1281,"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-abi":708,"ethereumjs-util":717}],1283:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.transactionFeeSelector=r.contractExchangeRateSelector=r.sendTokenTokenAmountAndToAddressSelector=r.approveTokenAmountAndToAddressSelector=r.tokenAmountAndToAddressSelector=r.tokenAddressSelector=r.txDataSelector=r.conversionRateSelector=r.currentCurrencySelector=r.unconfirmedTransactionsCountSelector=r.unconfirmedTransactionsHashSelector=r.unconfirmedTransactionsListSelector=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("reselect"),a=n(e("../../lib/tx-helper")),s=e("../helpers/utils/token-util"),c=e("../helpers/utils/confirm-tx.util"),u=e("../helpers/utils/transactions.util"),l=e(".");function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const h=e=>e.metamask.unapprovedTxs,p=e=>e.metamask.unapprovedMsgs,m=e=>e.metamask.unapprovedPersonalMsgs,y=e=>e.metamask.unapprovedDecryptMsgs,g=e=>e.metamask.unapprovedEncryptionPublicKeyMsgs,b=e=>e.metamask.unapprovedTypedMessages,v=e=>e.metamask.network,w=(0,o.createSelector)(h,p,m,y,g,b,v,(e={},t={},r={},n={},i={},o={},s)=>(0,a.default)(e,t,r,n,i,o,s)||[]);r.unconfirmedTransactionsListSelector=w;const _=(0,o.createSelector)(h,p,m,y,g,b,v,(e={},t={},r={},n={},i={},o={},a)=>{const s=Object.keys(e).reduce((t,r)=>{const{metamaskNetworkId:n}=e[r],i=d({},t);return n===a&&(i[r]=e[r]),i},{});return d({},s,{},t,{},r,{},n,{},i,{},o)});r.unconfirmedTransactionsHashSelector=_;const x=(0,o.createSelector)(h,e=>e.metamask.unapprovedMsgCount,e=>e.metamask.unapprovedPersonalMsgCount,e=>e.metamask.unapprovedDecryptMsgCount,e=>e.metamask.unapprovedEncryptionPublicKeyMsgCount,e=>e.metamask.unapprovedTypedMessagesCount,v,(e={},t=0,r=0,n=0,i=0,o=0,a)=>Object.keys(e).filter(t=>{const{metamaskNetworkId:r}=e[t];return r===a}).length+o+t+r+n+i);r.unconfirmedTransactionsCountSelector=x;const k=e=>e.metamask.currentCurrency;r.currentCurrencySelector=k;const S=e=>e.metamask.conversionRate;r.conversionRateSelector=S;const E=e=>e.confirmTransaction.txData;r.txDataSelector=E;const A=(0,o.createSelector)(e=>e.confirmTransaction.tokenProps,e=>e&&e.tokenDecimals),T=(0,o.createSelector)(e=>e.confirmTransaction.tokenData,e=>e&&e.params||[]),C=(0,o.createSelector)(E,e=>e&&e.txParams||{}),O=(0,o.createSelector)(C,e=>e&&e.to);r.tokenAddressSelector=O;const j=(0,o.createSelector)(T,A,(e,t)=>{let r="",n=0;if(e&&e.length){const i=e.find(e=>"_to"===e.name),o=e.find(e=>"_value"===e.name);r=i?i.value:e[0].value;const a=Number(o?o.value:e[1].value);t&&(n=(0,s.calcTokenAmount)(a,t).toNumber()),n=(0,c.roundExponential)(n)}return{toAddress:r,tokenAmount:n}});r.tokenAmountAndToAddressSelector=j;const P=(0,o.createSelector)(T,A,(e,t)=>{let r="",n=0;if(e&&e.length){r=e.find(e=>"_spender"===e.name).value;const i=Number(e.find(e=>"_value"===e.name).value);t&&(n=(0,s.calcTokenAmount)(i,t).toNumber()),n=(0,c.roundExponential)(n)}return{toAddress:r,tokenAmount:n}});r.approveTokenAmountAndToAddressSelector=P;const M=(0,o.createSelector)(T,A,(e,t)=>{let r="",n=0;if(e&&e.length){r=e.find(e=>"_to"===e.name).value;let i=Number(e.find(e=>"_value"===e.name).value);t&&(i=(0,s.calcTokenAmount)(i,t).toNumber()),n=(0,c.roundExponential)(i)}return{toAddress:r,tokenAmount:n}});r.sendTokenTokenAmountAndToAddressSelector=M;const I=(0,o.createSelector)(e=>e.metamask.contractExchangeRates,O,(e,t)=>e[t]);r.contractExchangeRateSelector=I,r.transactionFeeSelector=function(e,t){const r=k(e),n=S(e),i=(0,l.getNativeCurrency)(e),{txParams:{value:o="0x0",gas:a="0x0",gasPrice:s="0x0"}={}}=t,f=(0,c.getValueFromWeiHex)({value:o,fromCurrency:i,toCurrency:r,conversionRate:n,numberOfDecimals:2}),d=(0,c.getValueFromWeiHex)({value:o,fromCurrency:i,toCurrency:i,conversionRate:n,numberOfDecimals:6}),h=(0,c.getHexGasTotal)({gasLimit:a,gasPrice:s}),p=(0,c.getTransactionFee)({value:h,fromCurrency:i,toCurrency:r,numberOfDecimals:2,conversionRate:n}),m=(0,c.getTransactionFee)({value:h,fromCurrency:i,toCurrency:i,numberOfDecimals:6,conversionRate:n});return{hexTransactionAmount:o,fiatTransactionAmount:f,ethTransactionAmount:d,hexTransactionFee:h,fiatTransactionFee:p,ethTransactionFee:m,fiatTransactionTotal:(0,c.addFiat)(p,f),ethTransactionTotal:(0,c.addEth)(m,d),hexTransactionTotal:(0,u.sumHexes)(o,h)}}},{".":1286,"../../lib/tx-helper":1293,"../helpers/utils/confirm-tx.util":1272,"../helpers/utils/token-util":1278,"../helpers/utils/transactions.util":1279,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,reselect:982}],1284:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getCustomGasErrors=function(e){return e.gas.errors},r.getCustomGasLimit=f,r.getCustomGasPrice=d,r.getCustomGasTotal=function(e){return e.gas.customData.total},r.getBasicGasEstimateLoadingStatus=h,r.getGasEstimatesLoadingStatus=function(e){return e.gas.gasEstimatesLoading},r.getPriceAndTimeEstimates=p,r.getEstimatedGasPrices=function(e){return p(e).map(({gasprice:e})=>e)},r.getEstimatedGasTimes=function(e){return p(e).map(({expectedTime:e})=>e)},r.getAveragePriceEstimateInHexWEI=function(e){return k(e.gas.basicEstimates.average||"0x0")},r.getFastPriceEstimateInHexWEI=function(e){return k(e.gas.basicEstimates.fast||"0x0")},r.getDefaultActiveButtonIndex=function(e,t,r){return e.findIndex(({priceInHexWei:e})=>e===(0,u.addHexPrefix)(t||r))},r.getSafeLowEstimate=m,r.isCustomPriceSafe=function(e){const t=m(e),r=d(e);return!r||(null===t?null:(0,n.conversionGreaterThan)({value:r,fromNumericBase:"hex",fromDenomination:"WEI",toDenomination:"GWEI"},{value:t,fromNumericBase:"dec"}))},r.getBasicGasEstimateBlockTime=function(e){return e.gas.basicEstimates.blockTime},r.basicPriceEstimateToETHTotal=y,r.getRenderableEthFee=g,r.getRenderableConvertedCurrencyFee=b,r.getTimeEstimateInSeconds=v,r.formatTimeEstimate=w,r.getRenderableTimeEstimate=_,r.priceEstimateToWei=x,r.getGasPriceInHexWei=k,r.getRenderableBasicEstimateData=function(e,t){if(h(e))return[];const{showFiatInTestnets:r}=(0,i.getPreferences)(e),n=(0,i.getIsMainnet)(e)||!!r,o=e.metamask.conversionRate,a=(0,i.getCurrentCurrency)(e),{gas:{basicEstimates:{safeLow:s,average:c,fast:u,safeLowWait:f,avgWait:d,fastWait:p}}}=e;return[{gasEstimateType:l.GAS_ESTIMATE_TYPES.SLOW,feeInPrimaryCurrency:g(s,t),feeInSecondaryCurrency:n?b(s,t,a,o):"",timeEstimate:f&&_(f),priceInHexWei:k(s)},{gasEstimateType:l.GAS_ESTIMATE_TYPES.AVERAGE,feeInPrimaryCurrency:g(c,t),feeInSecondaryCurrency:n?b(c,t,a,o):"",timeEstimate:d&&_(d),priceInHexWei:k(c)},{gasEstimateType:l.GAS_ESTIMATE_TYPES.FAST,feeInPrimaryCurrency:g(u,t),feeInSecondaryCurrency:n?b(u,t,a,o):"",timeEstimate:p&&_(p),priceInHexWei:k(u)}]},r.getRenderableEstimateDataForSmallButtonsFromGWEI=function(e){if(h(e))return[];const{showFiatInTestnets:t}=(0,i.getPreferences)(e),r=(0,i.getIsMainnet)(e)||!!t,n=e.metamask.send.gasLimit||f(e)||"0x5208",o=e.metamask.conversionRate,a=(0,i.getCurrentCurrency)(e),{gas:{basicEstimates:{safeLow:s,average:c,fast:u}}}=e;return[{gasEstimateType:l.GAS_ESTIMATE_TYPES.SLOW,feeInSecondaryCurrency:r?b(s,n,a,o):"",feeInPrimaryCurrency:g(s,n,5),priceInHexWei:k(s)},{gasEstimateType:l.GAS_ESTIMATE_TYPES.AVERAGE,feeInSecondaryCurrency:r?b(c,n,a,o):"",feeInPrimaryCurrency:g(c,n,5),priceInHexWei:k(c)},{gasEstimateType:l.GAS_ESTIMATE_TYPES.FAST,feeInSecondaryCurrency:r?b(u,n,a,o):"",feeInPrimaryCurrency:g(u,n,5),priceInHexWei:k(u)}]};var n=e("../helpers/utils/conversion-util"),i=e("."),o=e("../helpers/utils/confirm-tx.util"),a=e("../helpers/utils/conversions.util"),s=e("../helpers/utils/formatters"),c=e("../pages/send/send.utils"),u=e("ethereumjs-util"),l=e("../helpers/constants/common");function f(e){return e.gas.customData.limit}function d(e){return e.gas.customData.price}function h(e){return e.gas.basicEstimateIsLoading}function p(e){return e.gas.priceAndTimeEstimates}function m(e){const{gas:{basicEstimates:{safeLow:t}}}=e;return t}function y(e,t,r=9){return(0,n.conversionUtil)((0,c.calcGasTotal)(t,e),{fromNumericBase:"hex",toNumericBase:"dec",fromDenomination:"GWEI",numberOfDecimals:r})}function g(e,t,r=9){const i=y((0,n.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"hex"}),t,r);return(0,s.formatETHFee)(i)}function b(e,t,r,i){const s=y((0,n.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"hex"}),t),c=(0,a.decEthToConvertedCurrency)(s,r,i);return(0,o.formatCurrency)(c,r)}function v(e){return(0,n.multiplyCurrencies)(e,60,{toNumericBase:"dec",multiplicandBase:10,multiplierBase:10,numberOfDecimals:1})}function w(e,t,r){const n=Math.floor(e/60),i=Math.floor(e%60);if(!n&&!i)return"...";let o="~";t?o="< ":r&&(o="> ");const a=n?n+" min":"",s=i?i+" sec":"";return a&&s?`${o}${a} ${s}`:o+[a,s].find(e=>e)}function _(e){return w(v(e))}function x(e){return(0,n.conversionUtil)(e,{fromNumericBase:"hex",toNumericBase:"hex",fromDenomination:"GWEI",toDenomination:"WEI",numberOfDecimals:9})}function k(e){const t=(0,n.conversionUtil)(e,{fromNumericBase:"dec",toNumericBase:"hex"});return(0,u.addHexPrefix)(x(t))}},{".":1286,"../helpers/constants/common":1268,"../helpers/utils/confirm-tx.util":1272,"../helpers/utils/conversion-util":1273,"../helpers/utils/conversions.util":1274,"../helpers/utils/formatters":1276,"../pages/send/send.utils":1282,"ethereumjs-util":717}],1285:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getFirstTimeFlowTypeRoute=function(e){const{firstTimeFlowType:t}=e.metamask;let r;return r="create"===t?n.INITIALIZE_CREATE_PASSWORD_ROUTE:"import"===t?n.INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE:n.DEFAULT_ROUTE,r},r.getOnboardingInitiator=void 0;var n=e("../helpers/constants/routes");r.getOnboardingInitiator=e=>{const{onboardingTabs:t}=e.metamask;if(!t||1!==Object.keys(t).length)return null;const r=Object.keys(t)[0];return{location:r,tabId:t[r]}}},{"../helpers/constants/routes":1270}],1286:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./confirm-transaction");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}})}));var i=e("./custom-gas");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}})}));var o=e("./first-time-flow");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}));var a=e("./permissions");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})}));var s=e("./selectors");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}})}));var c=e("./send");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}));var u=e("./transactions");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})}))},{"./confirm-transaction":1283,"./custom-gas":1284,"./first-time-flow":1285,"./permissions":1287,"./selectors":1288,"./send":1289,"./transactions":1290}],1287:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.getPermissionDomains=l,r.getPermissionDomainsMetadata=f,r.getPermittedAccounts=d,r.getPermittedAccountsForCurrentTab=h,r.getPermittedAccountsByOrigin=p,r.getConnectedDomainsForSelectedAddress=function(e){const{selectedAddress:t}=e.metamask,r=l(e),n=f(e),i=[];return(0,o.forOwn)(r,(e,r)=>{if(!y(m(e)).includes(t))return;const{extensionId:o,name:a,icon:s,host:c}=n[r]||{};i.push({extensionId:o,origin:r,name:a,icon:s,host:c})}),i},r.getAddressConnectedDomainMap=function(e){const t=f(e),r=p(e),n={};return Object.keys(r).forEach(e=>{const{icon:i,name:o}=t[e]||{};r[e].forEach(t=>{const r=o||e;n[t]=n[t]?u({},n[t],{[e]:{icon:i,name:r}}):{[e]:{icon:i,name:r}}})}),n},r.getAccountToConnectToActiveTab=function(e){const t=(0,a.getSelectedAddress)(e),r=h(e),{metamask:{identities:n}}=e,i=Object.keys(n).length;if(r.length&&r.length!==i&&-1===r.findIndex(e=>e===t))return n[t]},r.getOrderedConnectedAccountsForActiveTab=function(e){var t,r;const{activeTab:n,metamask:{permissionsHistory:i}}=e,o=null===(t=i[n.origin])||void 0===t||null===(r=t.eth_accounts)||void 0===r?void 0:r.accounts,s=(0,a.getMetaMaskAccountsOrdered)(e),c=h(e);return s.filter(e=>c.includes(e.address)).map(e=>u({},e,{lastActive:null==o?void 0:o[e.address]})).sort(({lastSelected:e},{lastSelected:t})=>e===t?0:void 0===e?1:void 0===t?-1:t-e)},r.getPermissionsForActiveTab=function(e){var t,r;const{activeTab:n,metamask:i}=e,{domains:o={}}=i;return null===(t=o[n.origin])||void 0===t||null===(r=t.permissions)||void 0===r?void 0:r.map(({parentCapability:e})=>({key:e}))},r.getLastConnectedInfo=function(e){const{permissionsHistory:t={}}=e.metamask;return Object.keys(t).reduce((e,r)=>u({},e,{[r]:JSON.parse(JSON.stringify(t[r].eth_accounts))}),{})},r.getPermissionsMetadataHostCounts=function(e){const t=f(e);return Object.values(t).reduce((e,{host:t})=>(t&&(e[t]?e[t]+=1:e[t]=1),e),{})},r.getPermissionsRequests=g,r.getPermissionsRequestCount=function(e){return g(e).length},r.getFirstPermissionRequest=b,r.hasPermissionRequests=function(e){return Boolean(b(e))};var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("lodash"),a=e("."),s=e("../../../app/scripts/controllers/permissions/enums");function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e){return e.metamask.domains||{}}function f(e){return e.metamask.domainMetadata||{}}function d(e,t){return y(m(function(e,t){var r;return t&&(null===(r=e.metamask.domains)||void 0===r?void 0:r[t])}(e,t)))}function h(e){return d(e,(0,a.getOriginOfCurrentTab)(e))}function p(e){const t=l(e);return Object.keys(t).reduce((e,r)=>{const n=y(m(t[r]));return n.length>0&&(e[r]=n),e},{})}function m(e={}){return Array.isArray(e.permissions)?e.permissions.find(e=>"eth_accounts"===e.parentCapability):{}}function y(e){const t=function(e={}){return Array.isArray(e.caveats)&&e.caveats.find(e=>e.name===s.CAVEAT_NAMES.exposedAccounts)}(e);return t&&Array.isArray(t.value)?t.value:[]}function g(e){return e.metamask.permissionsRequests||[]}function b(e){const t=g(e);return t&&t[0]?t[0]:null}},{".":1286,"../../../app/scripts/controllers/permissions/enums":23,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,lodash:869}],1288:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.getNetworkIdentifier=d,r.getCurrentKeyring=h,r.getAccountType=p,r.getCurrentNetworkId=m,r.getSelectedAddress=g,r.getSelectedIdentity=b,r.getNumberOfAccounts=v,r.getNumberOfTokens=w,r.getMetaMaskKeyrings=_,r.getMetaMaskIdentities=x,r.getMetaMaskAccountsRaw=k,r.getMetaMaskCachedBalances=S,r.isBalanceCached=function(e){const t=e.metamask.accounts[g(e)].balance,r=A(e);return Boolean(!t&&r)},r.getSelectedAccountCachedBalance=A,r.getSelectedAccount=function(e){return y(e)[g(e)]},r.getTargetAccount=function(e,t){return y(e)[t]},r.getAssetImages=function(e){return e.metamask.assetImages||{}},r.getAddressBook=T,r.getAddressBookEntry=C,r.getAddressBookEntryName=function(e,t){const r=C(e,t)||e.metamask.identities[t];return r&&""!==r.name?r.name:(0,c.shortenAddress)(t)},r.accountsWithSendEtherInfoSelector=O,r.getAccountsWithLabels=function(e){return E(e).map(({address:e,name:t,balance:r})=>({address:e,addressLabel:`${t} (...${e.slice(e.length-4)})`,label:t,balance:r}))},r.getCurrentAccountWithSendEtherInfo=j,r.getTargetAccountWithSendEtherInfo=function(e,t){const r=O(e);return(0,c.getAccountByAddress)(r,t)},r.getCurrentEthBalance=function(e){return j(e).balance},r.getGasIsLoading=function(e){return e.appState.gasIsLoading},r.getCurrentCurrency=function(e){return e.metamask.currentCurrency},r.getTotalUnapprovedCount=function(e){const{unapprovedMsgCount:t=0,unapprovedPersonalMsgCount:r=0,unapprovedDecryptMsgCount:n=0,unapprovedEncryptionPublicKeyMsgCount:i=0,unapprovedTypedMessagesCount:o=0}=e.metamask;return t+r+n+i+o+function(e){const{unapprovedTxs:t={}}=e.metamask;return Object.keys(t).length}(e)+(0,u.getPermissionsRequestCount)(e)+function(e){const{suggestedTokens:t={}}=e.metamask;return Object.keys(t).length}(e)},r.getIsMainnet=P,r.isEthereumNetwork=function(e){const t=d(e),{KOVAN:r,MAINNET:n,RINKEBY:i,ROPSTEN:a,GOERLI:s}=o.NETWORK_TYPES;return[r,n,i,a,s].includes(t)},r.getPreferences=M,r.getShouldShowFiat=function(e){const t=P(e),{showFiatInTestnets:r}=M(e);return Boolean(t||r)},r.getAdvancedInlineGasShown=function(e){return Boolean(e.metamask.featureFlags.advancedInlineGas)},r.getUseNonceField=function(e){return Boolean(e.metamask.useNonceField)},r.getCustomNonceValue=function(e){return String(e.metamask.customNonceValue)},r.getDomainMetadata=function(e){return e.metamask.domainMetadata},r.getRpcPrefsForCurrentProvider=function(e){const{frequentRpcListDetail:t,provider:r}=e.metamask,n=t.find(e=>e.rpcUrl===r.rpcTarget),{rpcPrefs:i={}}=n||{};return i},r.getKnownMethodData=function(e,t){if(!t)return null;const r=(0,a.addHexPrefix)(t).slice(0,10),{knownMethodData:n}=e.metamask;return n&&n[r]},r.getFeatureFlags=function(e){return e.metamask.featureFlags},r.getOriginOfCurrentTab=function(e){return e.activeTab.origin},r.getIpfsGateway=function(e){return e.metamask.ipfsGateway},r.getBackgroundMetaMetricState=r.getTokenExchangeRates=r.getMetaMaskAccountsOrdered=r.getMetaMaskAccounts=void 0;var i=n(e("@babel/runtime/helpers/defineProperty")),o=e("../helpers/constants/common"),a=e("ethereumjs-util"),s=e("reselect"),c=e("../helpers/utils/util"),u=e("./permissions");function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e){const{metamask:{provider:{type:t,nickname:r,rpcTarget:n}}}=e;return r||n||t}function h(e){const t=b(e);if(!t)return null;const r=(0,a.stripHexPrefix)(t.address).toLowerCase();return e.metamask.keyrings.find(e=>e.accounts.includes(r)||e.accounts.includes(t.address))}function p(e){const t=h(e);switch(t&&t.type){case"Trezor Hardware":case"Ledger Hardware":return"hardware";case"Simple Key Pair":return"imported";default:return"default"}}function m(e){return e.metamask.network}const y=(0,s.createSelector)(k,S,(e,t)=>Object.entries(e).reduce((e,[r,n])=>null===n.balance||void 0===n.balance?f({},e,{[r]:f({},n,{balance:t&&t[r]})}):f({},e,{[r]:n}),{}));function g(e){return e.metamask.selectedAddress}function b(e){const t=g(e);return e.metamask.identities[t]}function v(e){return Object.keys(e.metamask.accounts).length}function w(e){const t=e.metamask.tokens;return t?t.length:0}function _(e){return e.metamask.keyrings}function x(e){return e.metamask.identities}function k(e){return e.metamask.accounts}function S(e){const t=m(e);return e.metamask.cachedBalances[t]}r.getMetaMaskAccounts=y;const E=(0,s.createSelector)(_,x,y,(e,t,r)=>e.reduce((e,t)=>e.concat(t.accounts),[]).filter(e=>!!t[e]).map(e=>f({},t[e],{},r[e])));function A(e){const t=e.metamask.cachedBalances[e.metamask.network],r=g(e);return t&&t[r]}function T(e){const t=e.metamask.network;return e.metamask.addressBook[t]?Object.values(e.metamask.addressBook[t]):[]}function C(e,t){return T(e).find(e=>e.address===(0,c.checksumAddress)(t))}function O(e){const t=y(e),r=x(e);return Object.entries(r).map(([e,r])=>Object.assign({},r,t[e]))}function j(e){const t=g(e),r=O(e);return(0,c.getAccountByAddress)(r,t)}function P(e){return d(e)===o.NETWORK_TYPES.MAINNET}function M({metamask:e}){return e.preferences}r.getMetaMaskAccountsOrdered=E,r.getTokenExchangeRates=e=>e.metamask.contractExchangeRates,r.getBackgroundMetaMetricState=e=>({network:m(e),accountType:p(e),metaMetricsId:e.metamask.metaMetricsId,numberOfTokens:w(e),numberOfAccounts:v(e),participateInMetaMetrics:e.metamask.participateInMetaMetrics})},{"../helpers/constants/common":1268,"../helpers/utils/util":1280,"./permissions":1287,"@babel/runtime/helpers/defineProperty":131,"@babel/runtime/helpers/interopRequireDefault":135,"ethereumjs-util":717,reselect:982}],1289:[function(e,t,r){(function(t){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.getBlockGasLimit=function(e){return e.metamask.currentBlockGasLimit},r.getConversionRate=function(e){return e.metamask.conversionRate},r.getNativeCurrency=function(e){return e.metamask.nativeCurrency},r.getCurrentNetwork=function(e){return e.metamask.network},r.getGasLimit=s,r.getGasPrice=c,r.getGasTotal=function(e){return(0,a.calcGasTotal)(s(e),c(e))},r.getPrimaryCurrency=function(e){const t=u(e);return null==t?void 0:t.symbol},r.getSendToken=u,r.getSendTokenAddress=l,r.getSendTokenContract=function(e){const r=l(e);return r?t.eth.contract(i.default).at(r):null},r.getSendAmount=function(e){return e.metamask.send.amount},r.getSendHexData=function(e){return e.metamask.send.data},r.getSendHexDataFeatureFlagState=function(e){return e.metamask.featureFlags.sendHexData},r.getSendEditingTransactionId=f,r.getSendErrors=d,r.sendAmountIsInError=function(e){return Boolean(e.send.errors.amount)},r.getSendFrom=h,r.getSendFromBalance=function(e){return p(e).balance},r.getSendFromObject=p,r.getSendMaxModeState=function(e){return e.metamask.send.maxModeOn},r.getSendTo=m,r.getSendToNickname=function(e){return e.metamask.send.toNickname},r.getSendToAccounts=function(e){return[...(0,o.accountsWithSendEtherInfoSelector)(e),...(0,o.getAddressBook)(e)]},r.getTokenBalance=function(e){return e.metamask.send.tokenBalance},r.getSendEnsResolution=function(e){return e.metamask.send.ensResolution},r.getSendEnsResolutionError=function(e){return e.metamask.send.ensResolutionError},r.getUnapprovedTxs=function(e){return e.metamask.unapprovedTxs},r.getQrCodeData=function(e){return e.appState.qrCodeData},r.getGasLoadingError=function(e){return e.send.errors.gasLoading},r.gasFeeIsInError=function(e){return Boolean(e.send.errors.gasFee)},r.getGasButtonGroupShown=function(e){return e.send.gasButtonGroupShown},r.getTitleKey=function(e){const t=Boolean(f(e)),r=Boolean(u(e));return m(e)?t?"edit":r?"sendTokens":"sendETH":"addRecipient"},r.isSendFormInError=function(e){return Object.values(d(e)).some(e=>e)};var i=n(e("human-standard-token-abi")),o=e("."),a=e("../pages/send/send.utils");function s(e){return e.metamask.send.gasLimit||"0"}function c(e){return e.metamask.send.gasPrice||(0,o.getAveragePriceEstimateInHexWEI)(e)}function u(e){return e.metamask.send.token}function l(e){var t;return null===(t=u(e))||void 0===t?void 0:t.address}function f(e){return e.metamask.send.editingTransactionId}function d(e){return e.send.errors}function h(e){return e.metamask.send.from}function p(e){const t=h(e);return t?(0,o.getTargetAccount)(e,t):(0,o.getSelectedAccount)(e)}function m(e){return e.metamask.send.to}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{".":1286,"../pages/send/send.utils":1282,"@babel/runtime/helpers/interopRequireDefault":135,"human-standard-token-abi":801}],1290:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.submittedPendingTransactionsSelector=r.nonceSortedCompletedTransactionsSelector=r.nonceSortedPendingTransactionsSelector=r.nonceSortedTransactionsSelector=r.transactionsSelector=r.transactionSubSelector=r.unapprovedMessagesSelector=r.selectedAddressTxListSelector=r.networkSelector=r.unapprovedTypedMessagesSelector=r.unapprovedEncryptionPublicKeyMsgsSelector=r.unapprovedDecryptMsgsSelector=r.unapprovedPersonalMsgsSelector=r.currentNetworkTxListSelector=r.unapprovedMsgsSelector=r.incomingTxListSelector=void 0;var i=e("reselect"),o=e("../helpers/constants/transactions"),a=e("../../../app/scripts/controllers/transactions/enums"),s=e("../helpers/utils/conversions.util"),c=e("."),u=n(e("../../lib/tx-helper"));const l=e=>{const{showIncomingTransactions:t}=e.metamask.featureFlags;if(!t)return[];const r=e.metamask.network,n=(0,c.getSelectedAddress)(e);return Object.values(e.metamask.incomingTransactions).filter(({metamaskNetworkId:e,txParams:t})=>t.to===n&&e===r)};r.incomingTxListSelector=l;const f=e=>e.metamask.unapprovedMsgs;r.unapprovedMsgsSelector=f;const d=e=>e.metamask.currentNetworkTxList;r.currentNetworkTxListSelector=d;const h=e=>e.metamask.unapprovedPersonalMsgs;r.unapprovedPersonalMsgsSelector=h;const p=e=>e.metamask.unapprovedDecryptMsgs;r.unapprovedDecryptMsgsSelector=p;const m=e=>e.metamask.unapprovedEncryptionPublicKeyMsgs;r.unapprovedEncryptionPublicKeyMsgsSelector=m;const y=e=>e.metamask.unapprovedTypedMessages;r.unapprovedTypedMessagesSelector=y;const g=e=>e.metamask.network;r.networkSelector=g;const b=(0,i.createSelector)(c.getSelectedAddress,d,(e,t=[])=>t.filter(({txParams:t})=>t.from===e));r.selectedAddressTxListSelector=b;const v=(0,i.createSelector)(f,h,p,m,y,g,(e={},t={},r={},n={},i={},o)=>(0,u.default)({},e,t,r,n,i,o)||[]);r.unapprovedMessagesSelector=v;const w=(0,i.createSelector)(v,l,(e=[],t=[])=>e.concat(t));r.transactionSubSelector=w;const _=(0,i.createSelector)(w,b,(e=[],t=[])=>t.concat(e).sort((e,t)=>t.time-e.time));r.transactionsSelector=_;const x=(e,t)=>{const{primaryTransaction:{time:r}={}}=t;let n=e.length;for(let t=0;t<e.length;t++){const i=e[t],{primaryTransaction:{time:o}={}}=i;if(o>r){n=t;break}}e.splice(n,0,t)},k=(0,i.createSelector)(_,(e=[])=>{const t=[],r=[],n=[],i={};e.forEach(e=>{const{txParams:{nonce:c}={},status:u,type:l,time:f,transactionCategory:d}=e;if(void 0===c||"incoming"===d){const n={transactions:[e],initialTransaction:e,primaryTransaction:e,hasRetried:!1,hasCancelled:!1};"incoming"===d?r.push(n):x(t,n)}else if(c in i){const t=i[c];if(((e,t)=>{const{time:r}=t;let n=e.length;for(let t=0;t<e.length;t++)if(e[t].time>r){n=t;break}e.splice(n,0,t)})(t.transactions,e),u in o.PRIORITY_STATUS_HASH){const{primaryTransaction:{time:r=0}={}}=t;(u===o.CONFIRMED_STATUS||f>r)&&(t.primaryTransaction=e)}const{initialTransaction:{time:r=0}={}}=t;f<r&&(t.initialTransaction=e),l===a.TRANSACTION_TYPE_RETRY&&(t.hasRetried=!0),l===a.TRANSACTION_TYPE_CANCEL&&(t.hasCancelled=!0)}else i[c]={nonce:c,transactions:[e],initialTransaction:e,primaryTransaction:e,hasRetried:e.type===a.TRANSACTION_TYPE_RETRY,hasCancelled:e.type===a.TRANSACTION_TYPE_CANCEL},((e,t)=>{let r=e.length;for(let n=0;n<e.length;n++){const i=e[n];if(Number((0,s.hexToDecimal)(i))>Number((0,s.hexToDecimal)(t))){r=n;break}}e.splice(r,0,t)})(n,c)});const c=n.map(e=>i[e]);return((e,t)=>{t.forEach(t=>{x(e,t)})})(c,r),t.concat(c)});r.nonceSortedTransactionsSelector=k;const S=(0,i.createSelector)(k,(e=[])=>e.filter(({primaryTransaction:e})=>e.status in o.PENDING_STATUS_HASH));r.nonceSortedPendingTransactionsSelector=S;const E=(0,i.createSelector)(k,(e=[])=>e.filter(({primaryTransaction:e})=>!(e.status in o.PENDING_STATUS_HASH)).reverse());r.nonceSortedCompletedTransactionsSelector=E;const A=(0,i.createSelector)(_,(e=[])=>e.filter(e=>e.status===o.SUBMITTED_STATUS));r.submittedPendingTransactionsSelector=A},{".":1286,"../../../app/scripts/controllers/transactions/enums":31,"../../lib/tx-helper":1293,"../helpers/constants/transactions":1271,"../helpers/utils/conversions.util":1274,"@babel/runtime/helpers/interopRequireDefault":135,reselect:982}],1291:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(r,"__esModule",{value:!0}),r.getEtherscanNetworkPrefix=function(e){switch(e){case i.ROPSTEN_NETWORK_ID:return"ropsten.";case i.RINKEBY_NETWORK_ID:return"rinkeby.";case i.KOVAN_NETWORK_ID:return"kovan.";case i.GOERLI_NETWORK_ID:return"goerli.";default:return""}};var i=n(e("../../app/scripts/controllers/network/enums"))},{"../../app/scripts/controllers/network/enums":17,"@babel/runtime/helpers/interopRequireWildcard":136}],1292:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.loadLocalStorageData=function(e){try{const t=window.localStorage.getItem(e);if(null===t)return;return JSON.parse(t)}catch(e){return}},r.saveLocalStorageData=function(e,t){try{const r=JSON.stringify(e);window.localStorage.setItem(t,r)}catch(e){console.warn(e)}}},{}],1293:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r,n,a,s,c){o.default.debug("tx-helper called with params:"),o.default.debug({unapprovedTxs:e,unapprovedMsgs:t,personalMsgs:r,decryptMsgs:n,encryptionPublicKeyMsgs:a,typedMessages:s,network:c});const u=c?(0,i.valuesFor)(e).filter(e=>e.metamaskNetworkId===c):(0,i.valuesFor)(e);o.default.debug(`tx helper found ${u.length} unapproved txs`);const l=(0,i.valuesFor)(t);o.default.debug(`tx helper found ${l.length} unsigned messages`);let f=u.concat(l);const d=(0,i.valuesFor)(r);o.default.debug(`tx helper found ${d.length} unsigned personal messages`),f=f.concat(d);const h=(0,i.valuesFor)(n);o.default.debug(`tx helper found ${h.length} decrypt requests`),f=f.concat(h);const p=(0,i.valuesFor)(a);o.default.debug(`tx helper found ${p.length} encryptionPublicKey requests`),f=f.concat(p);const m=(0,i.valuesFor)(s);return o.default.debug(`tx helper found ${m.length} unsigned typed messages`),f=f.concat(m),f=f.sort((e,t)=>e.time-t.time),f};var i=e("../app/helpers/utils/util"),o=n(e("loglevel"))},{"../app/helpers/utils/util":1280,"@babel/runtime/helpers/interopRequireDefault":135,loglevel:872}]},{},[4]); |