1/*! For license information please see 7336.7b4839f0.chunk.js.LICENSE.txt */ 2(self.webpackChunkpechakucha_dot_com_v3=self.webpackChunkpechakucha_dot_com_v3||[]).push([[7336],{41089:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletSDK=void 0;var o=n(62354),s=n(11406),u=n(33553),a=n(14597),c=n(74227),h=n(30569),l=n(78504),f={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PK_API_URL:"https://liveapi.pechakucha.com/",REACT_APP_PK_STRIPE_KEY:"pk_live_CS4Cl41NijtnXgur4memLCID00RrIPmpps",REACT_APP_PK_ENV:"live",REACT_APP_INFURA_API_KEY:"fe27b81a57ac453b9fde945b32c01c04",REACT_APP_PK_WEBSITE_URL:"https://www.pechakucha.com",REACT_APP_PK_API_KEY:"6WdMumlfh26EkJbvGNrbF2xaulxlxUGL5WDcAsXg"}.LINK_API_URL||"https://www.walletlink.org",d={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PK_API_URL:"https://liveapi.pechakucha.com/",REACT_APP_PK_STRIPE_KEY:"pk_live_CS4Cl41NijtnXgur4memLCID00RrIPmpps",REACT_APP_PK_ENV:"live",REACT_APP_INFURA_API_KEY:"fe27b81a57ac453b9fde945b32c01c04",REACT_APP_PK_WEBSITE_URL:"https://www.pechakucha.com",REACT_APP_PK_API_KEY:"6WdMumlfh26EkJbvGNrbF2xaulxlxUGL5WDcAsXg"}.SDK_VERSION||n(40626).i8||"unknown",p=function(){function t(e){var n,i,o;r(this,t),this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;var u,l=e.linkAPIUrl||f;if(u=e.uiConstructor?e.uiConstructor:function(t){return new a.WalletSDKUI(t)},"undefined"===typeof e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(n=e.overrideIsCoinbaseWallet)||void 0===n||n,this._overrideIsCoinbaseBrowser=null!==(i=e.overrideIsCoinbaseBrowser)&&void 0!==i&&i,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(o=e.reloadOnDisconnect)||void 0===o||o;var p=new URL(l),v="".concat(p.protocol,"//").concat(p.host);this._storage=new s.ScopedLocalStorage("-walletlink:".concat(v)),this._storage.setItem("version",t.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new h.WalletSDKRelayEventManager,this._relay=new c.WalletSDKRelay({linkAPIUrl:l,version:d,darkMode:!!e.darkMode,uiConstructor:u,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger}),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode||this._relay.attachUI())}return i(t,[{key:"makeWeb3Provider",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(t,e),!1===this._reloadOnDisconnect&&"function"===typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;var r=this.coinbaseBrowser;if(r)return r;var i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||i.setConnectDisabled(!0),new u.CoinbaseWalletProvider({relayProvider:function(){return Promise.resolve(i)},relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:e,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}},{key:"setAppInfo",value:function(t,e){var n;this._appName=t||"DApp",this._appLogoUrl=e||(0,l.getFavicon)();var r=this.walletExtension;r?this.isCipherProvider(r)||r.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}},{key:"disconnect",value:function(){var t,e=this.walletExtension;e?e.close():null===(t=this._relay)||void 0===t||t.resetAndReload()}},{key:"getQrUrl",value:function(){var t,e;return null!==(e=null===(t=this._relay)||void 0===t?void 0:t.getQRCodeUrl())&&void 0!==e?e:null}},{key:"getCoinbaseWalletLogo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:240;return(0,o.walletLogo)(t,e)}},{key:"walletExtension",get:function(){var t;return null!==(t=window.coinbaseWalletExtension)&&void 0!==t?t:window.walletLinkExtension}},{key:"coinbaseBrowser",get:function(){var t,e;try{var n=null!==(t=window.ethereum)&&void 0!==t?t:null===(e=window.top)||void 0===e?void 0:e.ethereum;if(!n)return;return"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch(r){return}}},{key:"isCipherProvider",value:function(t){return"boolean"===typeof t.isCipher&&t.isCipher}}]),t}();e.CoinbaseWalletSDK=p,p.VERSION=d},62354:function(t,e){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.walletLogo=void 0;e.walletLogo=function(t,e){var n;switch(t){case"standard":default:return n=e,"data:image/svg+xml,%3Csvg width='".concat(e,"' height='").concat(n,"' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E ");case"circle":return n=e,"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='".concat(e,"' height='").concat(n,"' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E");case"text":return n=(.1*e).toFixed(2),"data:image/svg+xml,%3Csvg width='".concat(e,"' height='").concat(n,"' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7
2h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E");case"textWithLogo":return n=(.25*e).toFixed(2),"data:image/svg+xml,%3Csvg width='".concat(e,"' height='").concat(n,"' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E");case"textLight":return n=(.1*e).toFixed(2),"data:image/svg+xml,%3Csvg width='".concat(e,"' height='").concat(n,"' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E");case"textWithLogoLight":return n=(.25*e).toFixed(2),"data:image/svg+xml,%3Csvg width='".concat(e,"' height='").concat(n,"' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.8
21,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E")}}},87270:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.LinkFlow=void 0;var o=n(3341),s=n(92001),u=n(66151),a=function(){function t(e){r(this,t),this.extensionUI$=new s.BehaviorSubject({}),this.subscriptions=new s.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}return i(t,[{key:"attach",value:function(t){var e=this;this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((function(t){e.isConnected!==t&&(e.isConnected=t,e.render())}))),this.subscriptions.add(this.chainId$.subscribe((function(t){e.chainId!==t&&(e.chainId=t,e.render())})))}},{key:"detach",value:function(){var t;this.root&&(this.subscriptions.unsubscribe(),(0,o.render)(null,this.root),null===(t=this.root.parentElement)||void 0===t||t.removeChild(this.root))}},{key:"setConnectDisabled",value:function(t){this.connectDisabled=t}},{key:"open",value:function(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}},{key:"close",value:function(){this.isOpen=!1,this.onCancel=null,this.render()}},{key:"render",value:function(){var t=this;if(this.root){var e=this.extensionUI$.subscribe((function(){t.root&&(0,o.render)((0,o.h)(u.TryExtensionLinkDialog,{darkMode:t.darkMode,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isOpen:t.isOpen,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel,connectDisabled:t.connectDisabled}),t.root)}));this.subscriptions.add(e)}}}]),t}();e.LinkFlow=a},72481:function(t,e,n){"use strict";var r=n(97429).Buffer,i=n(27424).default,o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.QRCode=void 0;var s=n(3341),u=n(93312),a=o(n(77793));e.QRCode=function(t){var e=(0,u.useState)(""),n=i(e,2),o=n[0],c=n[1];return(0,u.useEffect)((function(){var e,n,i=new a.default({content:t.content,background:t.bgColor||"#ffffff",color:t.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(e=t.width)&&void 0!==e?e:256,height:null!==(n=t.height)&&void 0!==n?n:256,padding:0,image:t.image}),o=r.from(i.svg(),"utf8").toString("base64");c("data:image/svg+xml;base64,".concat(o))})),o?(0,s.h)("img",{src:o,alt:"QR Code"}):null}},88242:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}
2.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},93362:function(t,e,n){"use strict";var r=n(27424).default,i=n(56690).default,o=n(89728).default,s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;var u=s(n(49482)),a=n(3341),c=n(93312),h=s(n(88242)),l=function(){function t(e){i(this,t),this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}return o(t,[{key:"attach",value:function(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",t.appendChild(this.root),this.render()}},{key:"presentItem",value:function(t){var e=this,n=this.nextItemKey++;return this.items.set(n,t),this.render(),function(){e.items.delete(n),e.render()}}},{key:"clear",value:function(){this.items.clear(),this.render()}},{key:"render",value:function(){this.root&&(0,a.render)((0,a.h)("div",null,(0,a.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((function(t){var n=r(t,2),i=n[0],o=n[1];return(0,a.h)(e.SnackbarInstance,Object.assign({},o,{key:i}))})))),this.root)}}]),t}();e.Snackbar=l;e.SnackbarContainer=function(t){return(0,a.h)("div",{class:(0,u.default)("-cbwsdk-snackbar-container")},(0,a.h)("style",null,h.default),(0,a.h)("div",{class:"-cbwsdk-snackbar"},t.children))};e.SnackbarInstance=function(t){var e=t.autoExpand,n=t.message,i=t.menuItems,o=(0,c.useState)(!0),s=r(o,2),h=s[0],l=s[1],f=(0,c.useState)(null!==e&&void 0!==e&&e),d=r(f,2),p=d[0],v=d[1];(0,c.useEffect)((function(){var t=[window.setTimeout((function(){l(!1)}),1),window.setTimeout((function(){v(!0)}),1e4)];return function(){t.forEach(window.clearTimeout)}}));return(0,a.h)("div",{class:(0,u.default)("-cbwsdk-snackbar-instance",h&&"-cbwsdk-snackbar-instance-hidden",p&&"-cbwsdk-snackbar-instance-expanded")},(0,a.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:function(){v(!p)}},(0,a.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiA
2wIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,a.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},n),(0,a.h)("div",{class:"-gear-container"},!p&&(0,a.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,a.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),i&&i.length>0&&(0,a.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},i.map((function(t,e){return(0,a.h)("div",{class:(0,u.default)("-cbwsdk-snackbar-instance-menu-item",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:t.onClick,key:e},(0,a.h)("svg",{width:t.svgWidth,height:t.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.h)("path",{"fill-rule":t.defaultFillRule,"clip-rule":t.defaultClipRule,d:t.path,fill:"#AAAAAA"})),(0,a.h)("span",{class:(0,u.default)("-cbwsdk-snackbar-instance-menu-item-info",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},t.info))}))))}},84670:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},98615:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;var i=n(3341),o=r(n(84670));e.Spinner=function(t){var e,n=null!==(e=t.size)&&void 0!==e?e:64,r=t.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,o.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:r}})))}},47289:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='.-cbwsdk-css-reset .-cbwsdk-extension-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-backdrop-hidden{opacity:0}
2.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box{display:flex;position:relative;max-width:500px;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top{display:flex;flex-direction:row;border-radius:8px;overflow:hidden;min-height:300px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top.dark{color:#fff;background-color:#000;box-shadow:0 4px 16px rgba(255,255,255,.05)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top.light{background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-subtext{margin-top:15px;font-size:12px;line-height:1.5}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-install-region{display:flex;flex-basis:50%;flex-direction:column;justify-content:center;padding:32px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-install-region button{display:block;border-radius:8px;background-color:#1652f0;color:#fff;width:90%;min-width:fit-content;height:44px;margin-top:16px;font-size:16px;padding-left:16px;padding-right:16px;cursor:pointer;font-weight:500;text-align:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-install-region button.dark{background-color:#3773f5}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-info-region{display:flex;flex-basis:50%;flex-direction:column;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-info-region.light{background-color:#fafbfc}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-info-region.dark{background-color:#141519}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description{display:flex;flex-direction:row;align-items:center;padding-top:14px;padding-bottom:14px;padding-left:24px;padding-right:32px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-icon-wrapper{display:block;position:relative;width:40px;height:40px;flex-shrink:0;flex-grow:0;border-radius:20px;background-color:#fff;box-shadow:0px 0px 8px rgba(0,0,0,.04),0px 16px 24px rgba(0,0,0,.06)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-icon-wrapper img{position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-text{margin-left:16px;flex-grow:1;font-size:13px;line-height:19px;align-self:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-text.light{color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-top-description-text.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom{display:flex;flex-direction:row;overflow:hidden;border-radius:8px;margin-top:8px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom.light{background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom.dark{background-color:#000;box-shadow:0 4px 16px rgba(255,255,255,.05)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description-region{display:flex;flex-direction:column;justify-content:center;padding:32px;flex-grow:1}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description{font-size:13px;line-height:19px;margin-top:12px;color:#aaa}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description.dark a{color:#3773f5}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-description a{font-size:inherit;line-height:inherit;color:#1652f0;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-region{position:relative;flex-shrink:0;display:flex;flex-direction:column;justify-content:center;padding-left:24px;padding-right:24px;padding-top:16px;padding-bottom:16px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-wrapper{position:relative;display:block;padding:8px;border-radius:8px;box-shadow:0px 4px 12px rgba(0,0,0,.1);background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-wrapper img{display:block}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.light>p{color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.dark{background-color:rgba(20,21,25,.9)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-bottom-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel{position:absolute;-webkit-appearance:none;display:flex;align-items:center;justify-content:center;top:16px;right:16px;width:24px;height:24px;border-radius:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel.light{background-color:#fafbfc}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel.dark{background-color:#141519}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.light::before,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.light::after{background-color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.dark::before,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x.dark::after{background-color:#fff}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::before,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::after{content:"";position:absolute;display:block;top:-1px;left:-7px;width:14px;
2height:1px;transition:background-color .2s}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::before{transform:rotate(45deg)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel-x::after{transform:rotate(135deg)}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel:hover .-cbwsdk-link-dialog-box-cancel-x-a,.-cbwsdk-css-reset .-cbwsdk-extension-dialog-box-cancel:hover .-cbwsdk-link-dialog-box-cancel-x-b{background-color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-extension-dialog-container-hidden{display:none}.-cbwsdk-css-reset .-cbwsdk-extension-dialog h2{display:block;text-align:left;font-size:22px;font-weight:600;line-height:28px}.-cbwsdk-css-reset .-cbwsdk-extension-dialog h2.light{color:#000}.-cbwsdk-css-reset .-cbwsdk-extension-dialog h2.dark{color:#fff}'},66151:function(t,e,n){"use strict";var r=n(27424).default,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TryExtensionLinkDialog=void 0;var o=i(n(49482)),s=n(3341),u=n(93312),a=n(78504),c=n(21787),h=i(n(82281)),l=i(n(27311)),f=i(n(15265)),d=i(n(38846)),p=n(72481),v=n(98615),m=i(n(47289));e.TryExtensionLinkDialog=function(t){var e=t.isOpen,n=t.darkMode,i=(0,u.useState)(!e),a=r(i,2),c=a[0],h=a[1],l=(0,u.useState)(!e),f=r(l,2),d=f[0],p=f[1];(0,u.useEffect)((function(){var t=[window.setTimeout((function(){p(!e)}),10)];return e?h(!1):t.push(window.setTimeout((function(){h(!0)}),360)),function(){t.forEach(window.clearTimeout)}}),[t.isOpen]);var v=n?"dark":"light";return(0,s.h)("div",{class:(0,o.default)("-cbwsdk-extension-dialog-container",c&&"-cbwsdk-extension-dialog-container-hidden")},(0,s.h)("style",null,m.default),(0,s.h)("div",{class:(0,o.default)("-cbwsdk-extension-dialog-backdrop",v,d&&"-cbwsdk-extension-dialog-backdrop-hidden")}),(0,s.h)("div",{class:"-cbwsdk-extension-dialog"},(0,s.h)("div",{class:(0,o.default)("-cbwsdk-extension-dialog-box",d&&"-cbwsdk-extension-dialog-box-hidden")},(0,s.h)(y,{darkMode:n,onInstallClick:function(){window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}}),t.connectDisabled?null:(0,s.h)(g,{darkMode:n,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId}),t.onCancel&&(0,s.h)(w,{darkMode:n,onClick:t.onCancel}))))};var y=function(t){var e=t.darkMode,n=t.onInstallClick,i=(0,u.useState)(!1),a=r(i,2),c=a[0],d=a[1],p=(0,u.useCallback)((function(){c?window.location.reload():(n(),d(!0))}),[n,c]),v=e?"dark":"light";return(0,s.h)("div",{class:(0,o.default)("-cbwsdk-extension-dialog-box-top",v)},(0,s.h)("div",{class:"-cbwsdk-extension-dialog-box-top-install-region"},(0,s.h)("h2",{class:v},"Try the Coinbase Wallet extension"),c&&(0,s.h)("div",{class:"-cbwsdk-extension-dialog-box-top-subtext"},"After installing Coinbase Wallet, refresh the page and connect again."),(0,s.h)("button",{type:"button",onClick:p},c?"Refresh":"Install")),(0,s.h)("div",{class:(0,o.default)("-cbwsdk-extension-dialog-box-top-info-region",v)},(0,s.h)(b,{darkMode:e,icon:l.default,text:"Connect to crypto apps with one click"}),(0,s.h)(b,{darkMode:e,icon:f.default,text:"Your private key is stored securely"}),(0,s.h)(b,{darkMode:e,icon:h.default,text:"Works with Ethereum, Polygon, and more"})))},g=function(t){var e=(0,a.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.chainId),n=t.darkMode?"dark":"light";return(0,s.h)("div",{"data-testid":"scan-qr-box",class:(0,o.default)("-cbwsdk-extension-dialog-box-bottom",n)},(0,s.h)("div",{class:"-cbwsdk-extension-dialog-box-bottom-description-region"},(0,s.h)("h2",{class:n},"Or scan to connect"),(0,s.h)("body",{class:(0,o.default)("-cbwsdk-extension-dialog-box-bottom-description",n)},"Open"," ",(0,s.h)("a",{href:"https://wallet.coinbase.com/",target:"_blank",rel:"noopener noreferrer"},"Coinbase Wallet")," ","on your mobile phone and scan")),(0,s.h)("div",{class:"-cbwsdk-extension-dialog-box-bottom-qr-region"},(0,s.h)("div",{class:"-cbwsdk-extension-dialog-box-bottom-qr-wrapper"},(0,s.h)(p.QRCode,{content:e,width:150,height:150,fgColor:"#000",bgColor:"transparent",image:{svg:d.default,width:34,he
2ight:34}})),(0,s.h)("input",{type:"hidden",name:"cbwsdk-version",value:c.LIB_VERSION}),(0,s.h)("input",{type:"hidden",value:e}),!t.isConnected&&(0,s.h)("div",{"data-testid":"connecting-spinner",class:(0,o.default)("-cbwsdk-extension-dialog-box-bottom-qr-connecting",n)},(0,s.h)(v.Spinner,{size:36,color:t.darkMode?"#FFF":"#000"}),(0,s.h)("p",null,"Connecting..."))))},b=function(t){var e=t.darkMode?"dark":"light";return(0,s.h)("div",{class:"-cbwsdk-extension-dialog-box-top-description"},(0,s.h)("div",{class:"-cbwsdk-extension-dialog-box-top-description-icon-wrapper"},(0,s.h)("img",{src:t.icon})),(0,s.h)("body",{class:(0,o.default)("-cbwsdk-extension-dialog-box-top-description-text",e)},t.text))},w=function(t){var e=t.darkMode?"dark":"light";return(0,s.h)("button",{type:"button",class:(0,o.default)("-cbwsdk-extension-dialog-box-cancel",e),onClick:t.onClick},(0,s.h)("div",{class:(0,o.default)("-cbwsdk-extension-dialog-box-cancel-x",e)}))}},38846:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default='<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">\n<circle cx="50" cy="50" r="50" fill="white"/>\n<circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/>\n<circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M19.3379 49.9484C19.3379 66.8508 33.04 80.553 49.9425 80.553C66.8449 80.553 80.5471 66.8508 80.5471 49.9484C80.5471 33.0459 66.8449 19.3438 49.9425 19.3438C33.04 19.3438 19.3379 33.0459 19.3379 49.9484ZM44.0817 40.0799C41.8725 40.0799 40.0817 41.8708 40.0817 44.0799V55.8029C40.0817 58.012 41.8725 59.8029 44.0817 59.8029H55.8046C58.0138 59.8029 59.8046 58.012 59.8046 55.8029V44.0799C59.8046 41.8708 58.0138 40.0799 55.8046 40.0799H44.0817Z" fill="white"/>\n</svg>\n\n'},82281:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTggMEMzLjU4IDAgMCAzLjU4IDAgOHMzLjU4IDggOCA4IDgtMy41OCA4LTgtMy41OC04LTgtOFptNS45MSA3aC0xLjk0Yy0uMS0xLjU3LS40Mi0zLS45MS00LjE1IDEuNDguODggMi41NSAyLjM4IDIuODUgNC4xNVpNOCAxNGMtLjQ1IDAtMS43Mi0xLjc3LTEuOTUtNWgzLjljLS4yMyAzLjIzLTEuNSA1LTEuOTUgNVpNNi4wNSA3QzYuMjggMy43NyA3LjU1IDIgOCAyYy40NSAwIDEuNzIgMS43NyAxLjk1IDVoLTMuOVpNNC45NCAyLjg1QzQuNDYgNCA0LjEzIDUuNDMgNC4wMyA3SDIuMDljLjMtMS43NyAxLjM3LTMuMjcgMi44NS00LjE1Wk0yLjA5IDloMS45NGMuMSAxLjU3LjQyIDMgLjkxIDQuMTVBNS45OTggNS45OTggMCAwIDEgMi4wOSA5Wm04Ljk3IDQuMTVjLjQ4LTEuMTUuODEtMi41OC45MS00LjE1aDEuOTRhNS45OTggNS45OTggMCAwIDEtMi44NSA0LjE1WiIgZmlsbD0iIzE2NTJGMCIvPjwvc3ZnPg=="},27311:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTciIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1LjYzNSAyLjExN2EzLjg4OSAzLjg4OSAwIDAgMC01LjUyMSAwTDYuODkgNS4zMzVBMy44OTQgMy44OTQgMCAwIDAgNS44IDguNzM5Yy4wODMuNTA2LjI2OCAxLjAxMS41NTMgMS40NjYuMTUxLjI1My4zMzYuNDcyLjUzNy42OTFsLjYyMS42MjQgMS4xNDEtMS4xNDYtLjYyLS42MjRhMi4xMDUgMi4xMDUgMCAwIDEtLjQ4Ny0uNzQxIDIuMzQgMi4zNCAwIDAgMSAuNTAzLTIuNTFsMy4yMDYtMy4yMmEyLjI5MyAyLjI5MyAwIDAgMSAzLjIzOSAwYy44OS44OTQuODkgMi4zNDMgMCAzLjI1M2wtMS41MjcgMS41MzNjLjIzNC42NC4zMzUgMS4zMzEuMzAyIDIuMDA1bDIuMzgzLTIuMzkyYzEuNTEtMS41MzQgMS40OTMtNC4wMjgtLjAxNy01LjU2MVoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBkPSJNMTEuMjcxIDcuNzQ1YTMuMTMgMy4xMyAwIDAgMC0uNTU0LS42OWwtLjYyLS42MjQtMS4xNDIgMS4xNDYuNjIxLjYyM2MuMjE4LjIyLjM4Ni40ODkuNDg3Ljc1OC4zMzUuODI2LjE2NyAxLjgyLS41MDQgMi40OTRsLTMuMjA1IDMuMjE5YTIuMjkzIDIuMjkzIDAgMCAxLTMuMjQgMCAyLjMxNiAyLjMxNiAwIDAgMSAwLTMuMjUybDEuNTI4LTEuNTM0YTQuODE1IDQuODE1IDAgMCAxLS4yODUtMi4wMDVsLTIuMzgzIDIuMzkzYTMuOTI3IDMuOTI3IDAgMCAwIDAgNS41NDQgMy45MDkgMy45MDkgMCAwIDAgNS41MzggMGwzLjIwNS0zLjIxOWEzLjk1OCAzLjk1OCAwIDAgMCAxLjA5MS0zLjQwNCA0LjIxMSA0LjIxMSAwIDAgMC0uNTM3LTEuNDQ5WiIgZmlsbD0iIzE2NTJGMCIvPjwvc3ZnPg=="},15265:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEgN3Y5aDE0VjdIMVptNy41IDQuMzlWMTRoLTF2LTIuNjFjLS40NC0uMTktLjc1LS42My0uNzUtMS4xNGExLjI1IDEuMjUgMCAwIDEgMi41IDBjMCAuNTEtLjMxLjk1LS43NSAxLjE0Wk01LjY3IDZWNC4zM0M1LjY3IDMuMDUgNi43MSAyIDggMnMyLjMzIDEuMDUgMi4zMyAyLjMzVjZoMlY0LjMzQzEyLjMzIDEuOTQgMTAuMzkgMCA4IDBTMy42NyAxLjk0IDMuNjcgNC4zM1Y2aDJaIiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"},96994:function(t,e){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.ClientMessagePublishEvent=e.ClientMessageSetSessionConfig=e.ClientMessageGetSessionConfig=e.ClientMessageIsLinked=e.ClientMessageHostSession=void 0,e.ClientMessageHostSession=function(t){return Object.assign({type:"HostSession"},t)},e.ClientMessageIsLinked=function(t){return Object.assign({type:"IsLinked"},t)},e.ClientMessageGetSessionConfig=function(t){return Object.assign({type:"GetSessionConfig"},t)},e.ClientMessageSetSessionConfig=function(t){return Object.assign({type:"SetSessionConfig"},t)},e.ClientMessagePublishEvent=function(t){return Object.assign({type:"PublishEvent"},t)}},35002:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=void 0,e.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},30079:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.RxWebSocket=e.ConnectionState=void 0;var o,s=n(92001),u=n(14824);!function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"}(o=e.ConnectionState||(e.ConnectionState={}));var a=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WebSocket;r(this,t),this.WebSocketClass=n,this.webSocket=null,this.connectionStateSubject=new s.BehaviorSubject(o.DISCONNECTED),this.incomingDataSubject=ne
2w s.Subject,this.url=e.replace(/^http/,"ws")}return i(t,[{key:"connect",value:function(){var t=this;return this.webSocket?(0,s.throwError)(new Error("webSocket object is not null")):new s.Observable((function(e){var n;try{t.webSocket=n=new t.WebSocketClass(t.url)}catch(r){return void e.error(r)}t.connectionStateSubject.next(o.CONNECTING),n.onclose=function(n){t.clearWebSocket(),e.error(new Error("websocket error ".concat(n.code,": ").concat(n.reason))),t.connectionStateSubject.next(o.DISCONNECTED)},n.onopen=function(n){e.next(),e.complete(),t.connectionStateSubject.next(o.CONNECTED)},n.onmessage=function(e){t.incomingDataSubject.next(e.data)}})).pipe((0,u.take)(1))}},{key:"disconnect",value:function(){var t=this.webSocket;if(t){this.clearWebSocket(),this.connectionStateSubject.next(o.DISCONNECTED);try{t.close()}catch(e){}}}},{key:"connectionState$",get:function(){return this.connectionStateSubject.asObservable()}},{key:"incomingData$",get:function(){return this.incomingDataSubject.asObservable()}},{key:"incomingJSONData$",get:function(){return this.incomingData$.pipe((0,u.flatMap)((function(t){var e;try{e=JSON.parse(t)}catch(n){return(0,s.empty)()}return(0,s.of)(e)})))}},{key:"sendData",value:function(t){var e=this.webSocket;if(!e)throw new Error("websocket is not connected");e.send(t)}},{key:"clearWebSocket",value:function(){var t=this.webSocket;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}]),t}();e.RxWebSocket=a},21133:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isServerMessageFail=void 0,e.isServerMessageFail=function(t){return t&&"Fail"===t.type&&"number"===typeof t.id&&"string"===typeof t.sessionId&&"string"===typeof t.error}},57026:function(t,e,n){"use strict";var r=n(38416).default,i=n(56690).default,o=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKConnection=void 0;var s=n(92001),u=n(14824),a=n(28588),c=n(19406),h=n(96994),l=n(35002),f=n(30079),d=n(21133),p=1e4,v=function(){function t(e,n,r,o){var h=this,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:WebSocket;i(this,t),this.sessionId=e,this.sessionKey=n,this.diagnostic=o,this.subscriptions=new s.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,c.IntNumber)(1),this.connectedSubject=ne
2w s.BehaviorSubject(!1),this.linkedSubject=new s.BehaviorSubject(!1),this.sessionConfigSubject=new s.ReplaySubject(1);var v=new f.RxWebSocket(r+"/rpc",d);this.ws=v,this.subscriptions.add(v.connectionState$.pipe((0,u.tap)((function(t){var n;return null===(n=h.diagnostic)||void 0===n?void 0:n.log(l.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:a.Session.hash(e)})})),(0,u.skip)(1),(0,u.filter)((function(t){return t===f.ConnectionState.DISCONNECTED&&!h.destroyed})),(0,u.delay)(5e3),(0,u.filter)((function(t){return!h.destroyed})),(0,u.flatMap)((function(t){return v.connect()})),(0,u.retry)()).subscribe()),this.subscriptions.add(v.connectionState$.pipe((0,u.skip)(2),(0,u.switchMap)((function(t){return(0,s.iif)((function(){return t===f.ConnectionState.CONNECTED}),h.authenticate().pipe((0,u.tap)((function(t){return h.sendIsLinked()})),(0,u.tap)((function(t){return h.sendGetSessionConfig()})),(0,u.map)((function(t){return!0}))),(0,s.of)(!1))})),(0,u.distinctUntilChanged)(),(0,u.catchError)((function(t){return(0,s.of)(!1)}))).subscribe((function(t){return h.connectedSubject.next(t)}))),this.subscriptions.add(v.connectionState$.pipe((0,u.skip)(1),(0,u.switchMap)((function(t){return(0,s.iif)((function(){return t===f.ConnectionState.CONNECTED}),(0,s.timer)(0,p))}))).subscribe((function(t){return 0===t?h.updateLastHeartbeat():h.heartbeat()}))),this.subscriptions.add(v.incomingData$.pipe((0,u.filter)((function(t){return"h"===t}))).subscribe((function(t){return h.updateLastHeartbeat()}))),this.subscriptions.add(v.incomingJSONData$.pipe((0,u.filter)((function(t){return["IsLinkedOK","Linked"].includes(t.type)}))).subscribe((function(t){var n,r=t;null===(n=h.diagnostic)||void 0===n||n.log(l.EVENTS.LINKED,{sessionIdHash:a.Session.hash(e),linked:r.linked,type:t.type,onlineGuests:r.onlineGuests}),h.linkedSubject.next(r.linked||r.onlineGuests>0)}))),this.subscriptions.add(v.incomingJSONData$.pipe((0,u.filter)((function(t){return["GetSessionConfigOK","SessionConfigUpdated"].includes(t.type)}))).subscribe((function(t){var n,r=t;null===(n=h.diagnostic)||void 0===n||n.log(l.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:a.Session.hash(e),metadata_keys:r&&r.metadata?Object.keys(r.metadata):void 0}),h.sessionConfigSubject.next({webhookId:r.webhookId,webhookUrl:r.webhookUrl,metadata:r.metadata})})))}
2return o(t,[{key:"connect",value:function(){var t;if(this.destroyed)throw new Error("instance is destroyed");null===(t=this.diagnostic)||void 0===t||t.log(l.EVENTS.STARTED_CONNECTING,{sessionIdHash:a.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}},{key:"destroy",value:function(){var t;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(t=this.diagnostic)||void 0===t||t.log(l.EVENTS.DISCONNECTED,{sessionIdHash:a.Session.hash(this.sessionId)}),this.destroyed=!0}},{key:"isDestroyed",get:function(){return this.destroyed}},{key:"connected$",get:function(){return this.connectedSubject.asObservable()}},{key:"onceConnected$",get:function(){return this.connected$.pipe((0,u.filter)((function(t){return t})),(0,u.take)(1),(0,u.map)((function(){})))}},{key:"linked$",get:function(){return this.linkedSubject.asObservable()}},{key:"onceLinked$",get:function(){return this.linked$.pipe((0,u.filter)((function(t){return t})),(0,u.take)(1),(0,u.map)((function(){})))}},{key:"sessionConfig$",get:function(){return this.sessionConfigSubject.asObservable()}},{key:"incomingEvent$",get:function(){return this.ws.incomingJSONData$.pipe((0,u.filter)((function(t){if("Event"!==t.type)return!1;var e=t;return"string"===typeof e.sessionId&&"string"===typeof e.eventId&&"string"===typeof e.event&&"string"===typeof e.data})),(0,u.map)((function(t){return t})))}},{key:"setSessionMetadata",value:function(t,e){var n=this,i=(0,h.ClientMessageSetSessionConfig)({id:(0,c.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:r({},t,e)});return this.onceConnected$.pipe((0,u.flatMap)((function(t){return n.makeRequest(i)})),(0,u.map)((function(t){if((0,d.isServerMessageFail)(t))throw new Error(t.error||"failed to set session metadata")})))}},{key:"publishEvent",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(0,h.ClientMessagePublishEvent)({id:(0,c.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:t,data:e,callWebhook:r});return this.onceLinked$.pipe((0,u.flatMap)((function(t){return n.makeRequest(i)})),(0,u.map)((function(t){if((0,d.isServerMessageFail)(t))throw new Error(t.error||"failed to publish event");return t.eventId})))}},{key:"sendData",value:function(t){this.ws.sendData(JSON.stringify(t))}},{key:"updateLastHeartbeat",value:function(){this.lastHeartbeatResponse=Date.now()}},{key:"heartbeat",value:function(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(t){}}},{key:"makeRequest",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,n=t.id;try{this.sendData(t)}catch(r){return(0,s.throwError)(r)}return this.ws.incomingJSONData$.pipe((0,u.timeoutWith)(e,(0,s.throwError)(new Error("request ".concat(n," timed out")))),(0,u.filter)((function(t){return t.id===n})),(0,u.take)(1))}},{key:"authenticate",value:function(){var t=(0,h.ClientMessageHostSession)({id:(0,c.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(t).pipe((0,u.map)((function(t){if((0,d.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")})))}},{key:"sendIsLinked",value:function(){var t=(0,h.ClientMessageIsLinked)({id:(0,c.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}},{key:"sendGetSessionConfig",value:function(){var t=(0,h.ClientMessageGetSessionConfig)({id:(0,c.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}}]),t}();e.WalletSDKConnection=v},89452:function(t,e,n){"use strict";var r=n(41089),i=n(33553),o=n(41089);var s=n(33553);e.ZP=r.CoinbaseWalletSDK,"undefined"!==typeof window&&(window.CoinbaseWalletSDK=r.CoinbaseWalletSDK,window.CoinbaseWalletProvider=i.CoinbaseWalletProvider,window.WalletLink=r.CoinbaseWalletSDK,window.WalletLinkProvider=i.CoinbaseWalletProvider)},11406:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.ScopedLocalStorage=void 0;var o=function(){function t(e){r(this,t),this.scope=e}return i(t,[{key:"setItem",value:function(t,e){localStorage.setItem(this.scopedKey(t),e)}},{key:"getItem",value:function(t){return localStorage.getItem(this.scopedKey(t))}},{key:"removeItem",value:function(t){localStorage.removeItem(this.scopedKey(t))}},{key:"clear",value:function(){for(var t=this.scopedKey(""),e=[],n=0;n<localStorage.length;n++){var r=localStorage.key(n);"string"===typeof r&&r.startsWith(t)&&e.push(r)}e.forEach((function(t){return localStorage.removeItem(t)}))}},{key:"scopedKey",value:function(t){return"".concat(this.scope,":").concat(t)}}]),t}();e.ScopedLocalStorage=o},81703:function(t,e){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;bottom:auto;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;direction:ltr;display:block;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;left:auto;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";right:auto;tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;width:auto;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset *{box-sizing:border-box;display:initial;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},29179:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.injectCssReset=void 0;var i=r(n(81703));e.injectCssReset=function(){var t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(t)}},33553:function(t,e,n){"use strict";var r=n(97429).Buffer,i=n(861).default,o=n(17061).default,s=n(17156).default,u=n(56690).default,a=n(89728).default,c=n(66115).default,h=n(61655).default,l=n(26389).default,f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=void 0;var d=f(n(28050)),p=f(n(35974)),v=n(51956),m=n(35002),y=n(28588),g=n(93336),b=n(78504),w=f(n(37631)),_=n(86737),M=n(16587),k=n(28501),x="DefaultChainId",S="DefaultJsonRpcUrl",E=[1,10,137,61,56,250,42161,100,43114,3,4,5,42,69,80001,97,4002,421611,43113],C=function(t){h(n,t);var e=l(n);function n(t){var r,i,o;u(this,n),(r=e.call(this))._filterPolyfill=new _.FilterPolyfill(c(r)),r._subscriptionManager=new k.SubscriptionManager(c(r)),r._relay=null,r._addresses=[],r.hasMadeFirstChainChangedEmission=!1,r._send=r.send.bind(c(r)),r._sendAsync=r.sendAsync.bind(c(r)),r.setProviderInfo=r.setProviderInfo.bind(c(r)),r.updateProviderInfo=r.updateProviderInfo.bind(c(r)),r.getChainId=r.getChainId.bind(c(r)),r.setAppInfo=r.setAppInfo.bind(c(r)),r.enable=r.enable.bind(c(r)),r.close=r.close.bind(c(r)),r.send=r.send.bind(c(r)),r.sendAsync=r.sendAsync.bind(c(r)),r.request=r.request.bind(c(r)),r._setAddresses=r._setAddresses.bind(c(r)),r.scanQRCode=r.scanQ
2RCode.bind(c(r)),r.genericRequest=r.genericRequest.bind(c(r)),r._chainIdFromOpts=t.chainId,r._jsonRpcUrlFromOpts=t.jsonRpcUrl,r._overrideIsMetaMask=t.overrideIsMetaMask,r._relayProvider=t.relayProvider,r._storage=t.storage,r._relayEventManager=t.relayEventManager,r.diagnostic=t.diagnosticLogger,r.reloadOnDisconnect=!0,r.isCoinbaseWallet=null===(i=t.overrideIsCoinbaseWallet)||void 0===i||i,r.isCoinbaseBrowser=null!==(o=t.overrideIsCoinbaseBrowser)&&void 0!==o&&o,r.qrUrl=t.qrUrl,r.supportsAddressSwitching=t.supportsAddressSwitching;var s=r.getChainId(),a=(0,b.prepend0x)(s.toString(16));r.emit("connect",{chainIdStr:a});var h=r._storage.getItem(g.LOCAL_STORAGE_ADDRESSES_KEY);if(h){var l=h.split(" ");""!==l[0]&&(r._addresses=l.map((function(t){return(0,b.ensureAddressString)(t)})),r.emit("accountsChanged",l))}return r._subscriptionManager.events.on("notification",(function(t){r.emit("message",{type:t.method,data:t.params})})),r._addresses.length>0&&r.initializeRelay(),window.addEventListener("message",(function(t){var e;if("walletLinkMessage"===t.data.type){if("defaultChainChanged"===t.data.data.action||"dappChainSwitched"===t.data.data.action){var n=t.data.data.chainId,i=null!==(e=t.data.data.jsonRpcUrl)&&void 0!==e?e:r.jsonRpcUrl;r.updateProviderInfo(i,Number(n))}"addressChanged"===t.data.data.action&&r._setAddresses([t.data.data.address])}})),r}return a(n,[{key:"selectedAddress",get:function(){return this._addresses[0]||void 0}},{key:"networkVersion",get:function(){return this.getChainId().toString(10)}},{key:"chainId",get:function(){return(0,b.prepend0x)(this.getChainId().toString(16))}},{key:"isWalletLink",get:function(){return!0}},{key:"isMetaMask",get:function(){return this._overrideIsMetaMask}},{key:"host",get:function(){return this.jsonRpcUrl}},{key:"connected",get:function(){return!0}},{key:"isConnected",value:function(){return!0}},{key:"jsonRpcUrl",get:function(){var t;return null!==(t=this._storage.getItem(S))&&void 0!==t?t:this._jsonRpcUrlFromOpts},set:function(t){this._storage.setItem(S,t)}},{key:"disableReloadOnDisconnect",value:function(){this.reloadOnDisconnect=!1}},{key:"setProviderInfo",value:function(t,e){this._chainIdFromOpts=e,this._jsonRpcUrlFromOpts=t,this.updateProviderInfo(t,e)}},{key:"updateProviderInfo",value:function(t,e){this.jsonRpcUrl=t;var n=this.getChainId();this._storage.setItem(x,e.toString(10)),!((0,b.ensureIntNumber)(e)!==n)&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}},{key:"watchAsset",value:function(){var t=s(o().mark((function t(e,n,r,i,s,u){var a,c;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initializeRelay();case 2:return a=t.sent,t.next=5,a.watchAsset(e,n,r,i,s,null===u||void 0===u?void 0:u.toString()).promise;case 5:return c=t.sent,t.abrupt("return",!!c.result);case 7:case"end":return t.stop()}}),t,this)})));return function(e,n,r,i,o,s){return t.apply(this,arguments)}}()},{key:"addEthereumChain",value:function(){var t=s(o().mark((function t(e,n,r,i,s,u){var a,c,h,l,f;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((0,b.ensureIntNumber)(e)!==this.getChainId()){t.next=2;break}return t.abrupt("return",!1);case 2:return t.next=4,this.initializeRelay();case 4:if(h=t.sent,l=h.inlineAddEthereumChain(e.toString()),this._isAuthorized()||l){t.next=9;break}return t.next=9,h.requestEthereumAccounts().promise;case 9:return t.next=11,h.addEthereumChain(e.toString(),n,s,r,i,u).promise;case 11:return f=t.sent,!0===(null===(a=f.result)||void 0===a?void 0:a.isApproved)&&this.updateProviderInfo(n[0],e),t.abrupt("return",!0===(null===(c=f.result)||void 0===c?void 0:c.isApproved));case 14:case"end":return t.stop()}}),t,this)})));return function(e,n,r,i,o,s){return t.apply(this,arguments)}}()},{key:"switchEthereumChain",value:function(){var t=s(o().mark((function t(e){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return E.includes(e)&&this.updateProviderInfo(this.jsonRpcUrl,e),t.next=3,this.initializeRelay();case 3:return n=t.sent,t.next=6,n.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;
2case 6:if(!(r=t.sent).errorCode){t.next=9;break}throw v.ethErrors.provider.custom({code:r.errorCode});case 9:(i=r.result).isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setAppInfo",value:function(t,e){this.initializeRelay().then((function(n){return n.setAppInfo(t,e)}))}},{key:"enable",value:function(){var t=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(e=this.diagnostic)||void 0===e||e.log(m.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?y.Session.hash(this._relay.session.id):void 0}),!(this._addresses.length>0)){t.next=3;break}return t.abrupt("return",i(this._addresses));case 3:return t.next=5,this._send(M.JSONRPCMethod.eth_requestAccounts);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"close",value:function(){var t=s(o().mark((function t(){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initializeRelay();case 2:t.sent.resetAndReload();case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"send",value:function(t,e){var n=this;if("string"===typeof t){var r={jsonrpc:"2.0",id:0,method:t,params:Array.isArray(e)?e:void 0!==e?[e]:[]};return this._sendRequestAsync(r).then((function(t){return t.result}))}if("function"===typeof e){var i=t,o=e;return this._sendAsync(i,o)}if(Array.isArray(t))return t.map((function(t){return n._sendRequest(t)}));var s=t;return this._sendRequest(s)}},{key:"sendAsync",value:function(){var t=s(o().mark((function t(e,n){var r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"===typeof n){t.next=2;break}throw new Error("callback is required");case 2:if(!Array.isArray(e)){t.next=6;break}return r=n,this._sendMultipleRequestsAsync(e).then((function(t){return r(null,t)})).catch((function(t){return r(t,null)})),t.abrupt("return");case 6:return i=n,t.abrupt("return",this._sendRequestAsync(e).then((function(t){return i(null,t)})).catch((function(t){return i(t,null)})));case 8:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"request",value:function(){var t=s(o().mark((function t(e){var n,r,i,s,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&"object"===typeof e&&!Array.isArray(e)){t.next=2;break}throw v.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});case 2:if(n=e.method,r=e.params,"string"===typeof n&&0!==n.length){t.next=5;break}throw v.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});case 5:if(void 0===r||Array.isArray(r)||"object"===typeof r&&null!==r){t.next=7;break}throw v.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});case 7:return i=void 0===r?[]:r,s=this._relayEventManager.makeRequestId(),t.next=11,this._sendRequestAsync({method:n,params:i,jsonrpc:"2.0",id:s});case 11:return u=t.sent,t.abrupt("return",u.result);case 13:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"scanQRCode",value:function(){var t=s(o().mark((function t(e){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initializeRelay();case 2:return n=t.sent,t.next=5,n.scanQRCode((0,b.ensureRegExpString)(e)).promise;case 5:if("string"===typeof(r=t.sent).result){t.next=8;break}throw new Error("result was not a string");case 8:return t.abrupt("return",r.result);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"genericRequest",value:function(){var t=s(o().mark((function t(e,n){var r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initializeRelay();case 2:return r=t.sent,t.next=5,r.genericRequest(e,n).promise;case 5:if("string"===typeof(i=t.sent).result){t.next=8;break}throw new Error("result was not a string");case 8:return t.abrupt("return",i.result);case 9:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"selectProvider",value:function(){var t=s(o().mark((function t(e){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initializeRelay();case 2:return n=t.sent,t.next=5,n.selectProvider(e).promise;case 5:if("string"===typeof(r=t.sent).result){t.next=8;break}throw new Error("result was not a string");case 8:return t.abrupt("return",r.result);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"supportsSubscriptions",value:function(){return!1}},{key:"subscribe",value:function(){throw new Error("Subscriptions are not supported")}},{key:"unsubscribe",value:function(){throw new Error("Subscriptions are not supported")}},{key:"disconnect",value:function(){return!0}},{key:"_sendRequest",value:function(t){var e={jsonrpc:"2.0",id:t.
2id},n=t.method;if(e.result=this._handleSynchronousMethods(t),void 0===e.result)throw new Error("Coinbase Wallet does not support calling ".concat(n," synchronously without ")+"a callback. Please provide a callback parameter to call ".concat(n," ")+"asynchronously.");return e}},{key:"_setAddresses",value:function(t,e){if(!Array.isArray(t))throw new Error("addresses is not an array");var n=t.map((function(t){return(0,b.ensureAddressString)(t)}));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&!1===this.supportsAddressSwitching&&!e||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(g.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}},{key:"_sendRequestAsync",value:function(t){var e=this;return new Promise((function(n,r){try{var i=e._handleSynchronousMethods(t);if(void 0!==i)return n({jsonrpc:"2.0",id:t.id,result:i});var o=e._handleAsynchronousFilterMethods(t);if(void 0!==o)return void o.then((function(e){return n(Object.assign(Object.assign({},e),{id:t.id}))})).catch((function(t){return r(t)}));var s=e._handleSubscriptionMethods(t);if(void 0!==s)return void s.then((function(e){return n({jsonrpc:"2.0",id:t.id,result:e.result})})).catch((function(t){return r(t)}))}catch(u){return r(u)}e._handleAsynchronousMethods(t).then((function(e){return e&&n(Object.assign(Object.assign({},e),{id:t.id}))})).catch((function(t){return r(t)}))}))}},{key:"_sendMultipleRequestsAsync",value:function(t){var e=this;return Promise.all(t.map((function(t){return e._sendRequestAsync(t)})))}},{key:"_handleSynchronousMethods",value:function(t){var e=t.method,n=t.params||[];switch(e){case M.JSONRPCMethod.eth_accounts:return this._eth_accounts();case M.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case M.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case M.JSONRPCMethod.net_version:return this._net_version();case M.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}},{key:"_handleAsynchronousMethods",value:function(){var t=s(o().mark((function t(e){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.method,r=e.params||[],t.t0=n,t.next=t.t0===M.JSONRPCMethod.eth_requestAccounts?5:t.t0===M.JSONRPCMethod.eth_sign?6:t.t0===M.JSONRPCMethod.eth_ecRecover?7:t.t0===M.JSONRPCMethod.personal_sign?8:t.t0===M.JSONRPCMethod.personal_ecRecover?9:t.t0===M.JSONRPCMethod.eth_signTransaction?10:t.t0===M.JSONRPCMethod.eth_sendRawTransaction?11:t.t0===M.JSONRPCMethod.eth_sendTransaction?12:t.t0===M.JSONRPCMethod.eth_signTypedData_v1?13:t.t0===M.JSONRPCMethod.eth_signTypedData_v2?14:t.t0===M.JSONRPCMethod.eth_signTypedData_v3?15:t.t0===M.JSONRPCMethod.eth_signTypedData_v4||t.t0===M.JSONRPCMethod.eth_signTypedData?16:t.t0===M.JSONRPCMethod.cbWallet_arbitrary?17:t.t0===M.JSONRPCMethod.wallet_addEthereumChain?18:t.t0===M.JSONRPCMethod.wallet_switchEthereumChain?19:t.t0===M.JSONRPCMethod.wallet_watchAsset?20:21;break;case 5:return t.abrupt("return",this._eth_requestAccounts());case 6:return t.abrupt("return",this._eth_sign(r));case 7:return t.abrupt("return",this._eth_ecRecover(r));case 8:return t.abrupt("return",this._personal_sign(r));case 9:return t.abrupt("return",this._personal_ecRecover(r));case 10:return t.abrupt("return",this._eth_signTransaction(r));case 11:return t.abrupt("return",this._eth_sendRawTransaction(r));case 12:return t.abrupt("return",this._eth_sendTransaction(r));case 13:return t.abrupt("return",this._eth_signTypedData_v1(r));case 14:return t.abrupt("return",this._throwUnsupportedMethodError());case 15:return t.abrupt("return",this._eth_signTypedData_v3(r));case 16:return t.abrupt("return",this._eth_signTypedData_v4(r));case 17:return t.abrupt("return",this._cbwallet_arbitrary(r));case 18:return t.abrupt("return",this._wallet_addEthereumChain(r));case 19:return t.abrupt("return",this._wallet_switchEthereumChain(r));case 20:return t.abrupt("return",this._wallet_watchAsset(r));case 21:return t.next=23,this.initializeRelay();case 23:return i=t.sent,t.abrupt("return",i.makeEthereumJSONRPCRequest(e,this.jsonRpcUrl));case 25:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_handleAsynchronousFilterMethods",value:function(t){var e=t.method,n=t.params||[];switch(e){case M.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case M.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case M.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case M.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case M.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}},{key:"_handleSubscriptionMethods",value:function(t){switch(t.method){case M.JSONRPCMethod.eth_subscribe:case M.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(t)}}},{key:"_isKnownAddress",value:function(t){try{var e=(0,b.ensureAddressString)(t);return this._addresses.map((function(t){return(0,b.ensureAddressString)(t)})).includes(e)}catch(n){}return!1}},{key:"_ensureKnownAddress",value:function(t){var e;if(!this._isKnownAddress(t))throw null===(e=this.diagnostic)||void 0===e||e.log(m.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}},{key:"_prepareTransactionParams",value:function(t){var e=t.from?(0,b.ensureAddressString)(t.from):this.selectedAddress;if(!e)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(e),{fromAddress:e,toAddress:t.to?(0,b.ensureAddressString)(t.to):null,weiValue:null!=t.value?(0,b.ensureBN)(t.value):new p.default(0),data:t.data?(0,b.ensureBuffer)(t.data):r.alloc(0),nonce:null!=t.nonce?(0,b.ensureIntNumber)(t.nonce):null,gasPriceInWei:null!=t.gasPrice?(0,b.ensureBN)(t.gasPrice):null,maxFeePerGas:null!=t.maxFeePerGas?(0,b.ensureBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:null!=t.maxPriorityFeePerGas?(0,b.ensureBN)(t.maxPriorityFeePerGas):null,gasLimit:null!=t.gas?(0,b.ensureBN)(t.gas):null,chainId:this.getChainId()}}},{key:"_isAuthorized",value:function(){return this._addresses.length>0}},{key:"_requireAuthorization",value:function(){if(!this._isAuthorized())throw v.ethErrors.provider.unauthorized({})}},{key:"_throwUnsupportedMethodError",value:function(){throw v.ethErrors.provider.unsupportedMethod({})}},{key:"_signEthereumMessage",value:function(){var t=s(o().mark((function t(e,n,r,i){var s,u;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._ensureKnownAddress(n),t.prev=1,t.next=4,this.initializeRelay();case 4:return s=t.sent,t.next=7,s.signEthereumMessage(e,n,r,i).promise;case 7:return u=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:u.result});case 11:if(t.prev=11,t.t0=t.catch(1),"string"!==typeof t.t0.message||!t.t0.message.match(/(denied|rejected)/i)){t.next=15;break}throw v.ethErrors.provider.userRejectedRequest("User denied message signature");case 15:throw t.t0;case 16:case"end":return t.stop()}}),t,this,[[1,11]])})));return function(e,n,r,i){return t.apply(this,arguments)}}()},{key:"_ethereumAddressFromSignedMessage",value:function(){var t=s(o().mark((function t(e,n,r){var i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initializeRelay();case 2:return i=t.sent,t.next=5,i.ethereumAddressFromSignedMessage(e,n,r).promise;case 5:return s=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:s.result});case 7:case"end":return t.stop()}}),t,this)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"_eth_accounts",value:function(){return i(this._addresses)}},{key:"_eth_coinbase",value:function(){return this.selectedAddress||null}},{key:"_net_version",value:function(){return this.getChainId().toString(10)}},{key:"_eth_chainId",value:function(){return(0,b.hexStringFromIntNumber)(this.getChainId())}},{key:"getChainId",value:function(){var t=this._storage.getItem(x);if(!t)return(0,b.ensureIntNumber)(this._chainIdFromOpts);var e=parseInt(t,10);return(0,b.ensureIntNumber)(e)}},{key:"_eth_requestAccounts",value:function(){var t=s(o().mark((function t(){var e,n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(e=this.diagnostic)||void 0===e||e.log(m.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?y.Session.hash(this._relay.session.id):void 0}),!(this._addresses.length>0)){t.next=3;break}return t.abrupt("return",Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses}));case 3:return t.prev=3,t.next=6,this.initializeRelay();case 6:return r=t.sent,t.next=9,r.requestEthereumAccounts().promise;case 9:n=t.sent,t.next=17;break;case 12:if(t.prev=12,t.t0=t.catch(3),"string"!==typeof t.t0.message||!t.t0.message.match(/(denied|rejected)/i)){t.next=16;break}throw v.ethErrors.provider.userRejectedRequest("User denied account authorization");case 16:throw t.t0;case 17:if(n.result){t.next=19;break}throw new Error("accounts received is empty");case 19:return this._setAddresses(n.result),t.next=22,this.switchEthereumChain(this.getChainId());case 22:return t.abrupt("return",{jsonrpc:"2.0",id:0,result:this._addresses});case 23:case"end":return t.stop()}}
2),t,this,[[3,12]])})));return function(){return t.apply(this,arguments)}}()},{key:"_eth_sign",value:function(t){this._requireAuthorization();var e=(0,b.ensureAddressString)(t[0]),n=(0,b.ensureBuffer)(t[1]);return this._signEthereumMessage(n,e,!1)}},{key:"_eth_ecRecover",value:function(t){var e=(0,b.ensureBuffer)(t[0]),n=(0,b.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,n,!1)}},{key:"_personal_sign",value:function(t){this._requireAuthorization();var e=(0,b.ensureBuffer)(t[0]),n=(0,b.ensureAddressString)(t[1]);return this._signEthereumMessage(e,n,!0)}},{key:"_personal_ecRecover",value:function(t){var e=(0,b.ensureBuffer)(t[0]),n=(0,b.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,n,!0)}},{key:"_eth_signTransaction",value:function(){var t=s(o().mark((function t(e){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._requireAuthorization(),n=this._prepareTransactionParams(e[0]||{}),t.prev=2,t.next=5,this.initializeRelay();case 5:return r=t.sent,t.next=8,r.signEthereumTransaction(n).promise;case 8:return i=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:i.result});case 12:if(t.prev=12,t.t0=t.catch(2),"string"!==typeof t.t0.message||!t.t0.message.match(/(denied|rejected)/i)){t.next=16;break}throw v.ethErrors.provider.userRejectedRequest("User denied transaction signature");case 16:throw t.t0;case 17:case"end":return t.stop()}}),t,this,[[2,12]])})));return function(e){return t.apply(this,arguments)}}()},{key:"_eth_sendRawTransaction",value:function(){var t=s(o().mark((function t(e){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,b.ensureBuffer)(e[0]),t.next=3,this.initializeRelay();case 3:return r=t.sent,t.next=6,r.submitEthereumTransaction(n,this.getChainId()).promise;case 6:return i=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:i.result});case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_eth_sendTransaction",value:function(){var t=s(o().mark((function t(e){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._requireAuthorization(),n=this._prepareTransactionParams(e[0]||{}),t.prev=2,t.next=5,this.initializeRelay();case 5:return r=t.sent,t.next=8,r.signAndSubmitEthereumTransaction(n).promise;case 8:return i=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:i.result});case 12:if(t.prev=12,t.t0=t.catch(2),"string"!==typeof t.t0.message||!t.t0.message.match(/(denied|rejected)/i)){t.next=16;break}throw v.ethErrors.provider.userRejectedRequest("User denied transaction signature");case 16:throw t.t0;case 17:case"end":return t.stop()}}),t,this,[[2,12]])})));return function(e){return t.apply(this,arguments)}}()},{key:"_eth_signTypedData_v1",value:function(){var t=s(o().mark((function t(e){var n,r,i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._requireAuthorization(),n=(0,b.ensureParsedJSONObject)(e[0]),r=(0,b.ensureAddressString)(e[1]),this._ensureKnownAddress(r),i=w.default.hashForSignTypedDataLegacy({data:n}),s=JSON.stringify(n,null,2),t.abrupt("return",this._signEthereumMessage(i,r,!1,s));case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_eth_signTypedData_v3",value:function(){var t=s(o().mark((function t(e){var n,r,i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._requireAuthorization(),n=(0,b.ensureAddressString)(e[0]),r=(0,b.ensureParsedJSONObject)(e[1]),this._ensureKnownAddress(n),i=w.default.hashForSignTypedData_v3({data:r}),s=JSON.stringify(r,null,2),t.abrupt("return",this._signEthereumMessage(i,n,!1,s));case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_eth_signTypedData_v4",value:function(){var t=s(o().mark((function t(e){var n,r,i,s;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._requireAuthorization(),n=(0,b.ensureAddressString)(e[0]),r=(0,b.ensureParsedJSONObject)(e[1]),this._ensureKnownAddress(n),i=w.default.hashForSignTypedData_v4({data:r}),s=JSON.stringify(r,null,2),t.abrupt("return",this._signEthereumMessage(i,n,!1,s));case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_cbwallet_arbitrary",value:function(){var t=s(o().mark((function t(e){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e[0],"string"===typeof(r=e[1])){t.next=4;break}throw new Error("parameter must be a string");case 4:if("object"===typeof n&&null!==n){t.next=6;break}throw new Error("parameter must be an object");case 6:return t.next=8,this.genericRequest(n,r);case 8:return i=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:i});case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_wallet_addEthereumChain",value:function(){var t=s(o().mark((function t(e){var n,r,i,s,u,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u=e[0],0!==(null===(n=u.rpcUrls)||void 0===n?void 0:n.length)){t.next=3;break}return t.abrupt("return",{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}});case 3:if(u.chainName&&""!==u.chainName.trim()){t.next=5;break}throw v.ethErrors.provider.custom({code:0,message:"chainName is a required field"});case 5:if(u.nativeCurrency){t.next=7;break}throw v.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});case 7:return a=parseInt(u.chainId,16),t.next=10,this.addEthereumChain(a,null!==(r=u.rpcUrls)&&void 0!==r?r:[],null!==(i=u.blockExplorerUrls)&&void 0!==i?i:[],u.chainName,null!==(s=u.iconUrls)&&void 0!==s?s:[],u.nativeCurrency);case 10:if(!t.sent){t.next=15;break}return t.abrupt("return",{jsonrpc:"2.0",id:0,result:null});case 15:return t.abrupt("return",{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}});case 16:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_wallet_switchEthereumChain",value:function(){var t=s(o().mark((function t(e){var n;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e[0],t.next=3,this.switchEthereumChain(parseInt(n.chainId,16));case 3:return t.abrupt("return",{jsonrpc:"2.0",id:0,result:null});case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_wallet_watchAsset",value:function(){var t=s(o().mark((function t(e){var n,r,i,s,u,a,c,h;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=Array.isArray(e)?e[0]:e).type){t.next=3;break}throw v.ethErrors.rpc.invalidParams({message:"Type is required"});case 3:if("ERC20"===(null===n||void 0===n?void 0:n.type)){t.next=5;break}throw v.ethErrors.rpc.invalidParams({message:"Asset of type '".concat(n.type,"' is not supported")});case 5:if(null===n||void 0===n?void 0:n.options){t.next=7;break}throw v.ethErrors.rpc.invalidParams({message:"Options are required"});case 7:if(null===n||void 0===n?void 0:n.options.address){t.next=9;break}throw v.ethErrors.rpc.invalidParams({message:"Address is required"});case 9:return r=this.getChainId(),i=n.options,s=i.address,u=i.symbol,a=i.image,c=i.decimals,t.next=13,this.watchAsset(n.type,s,u,c,a,r);case 13:return h=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:h});case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_eth_uninstallFilter",value:function(t){var e=(0,b.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(e)}},{key:"_eth_newFilter",value:function(){var t=s(o().mark((function t(e){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e[0],t.next=3,this._filterPolyfill.newFilter(n);case 3:return r=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:r});case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_eth_newBlockFilter",value:function(){var t=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._filterPolyfill.newBlockFilter();case 2:return e=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:e});case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_eth_newPendingTransactionFilter",value:function(){var t=s(o().mark((function t(){var e;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._filterPolyfill.newPendingTransactionFilter();case 2:return e=t.sent,t.abrupt("return",{jsonrpc:"2.0",id:0,result:e});case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_eth_getFilterChanges",value:function(t){var e=(0,b.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(e)}},{key:"_eth_getFilterLogs",value:function(t){var e=(0,b.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(e)}},{key:"initializeRelay",value:function(){var t=this;return this._relay?Promise.resolve(this._relay):this._relayProvider().then((function(e){return e.setAccountsCallback((function(e,n){return t._setAddresses(e,n)})),e.setChainCallback((function(e,n){t.updateProviderInfo(n,parseInt(e,10))})),e.setDappDefaultChainCallback(t._chainIdFromOpts),t._relay=e,e}))}}]),n}(d.default);e.CoinbaseWalletProvider=C},86737:function(t,e,n){"use strict";var r=n(861).default,i=n(17061).default,o=n(17156).default,s=n(56690).default,u=n(89728).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.filterFromParam=e.FilterPolyfill=void 0;var a=n(19406),c=n(78504),h={jsonrpc:"2.0",id:0},l=function(){function t(e){s(this,t),this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,a.IntNumber)(1),this.provider=e}return u(t,[{key:"newFilter",value:function(){var t=o(i().mark((function t(e){var n,r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=f(e),r=this.makeFilterId(),t.next=4,this.setInitialCursorPosition(r,n.fromBlock);case 4:return o=t.sent,console.log("Installing new log filter(".concat(r,"):"),n,"initial cursor position:",o),this.logFilters.set(r,n),this.setFilterTimeout(r),t.abrupt("return",(0,c.hexStringFromIntNumber)(r));case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"newBlockFilter",value:function(){var t=o(i().mark((function t(){var e,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.makeFilterId(),t.next=3,this.setInitialCursorPosition(e,"latest");case 3:return n=t.sent,console.log("Installing new block filter (".concat(e,") with initial cursor position:"),n),this.blockFilters.add(e),this.setFilterTimeout(e),t.abrupt("return",(0,c.hexStringFromIntNumber)(e));case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"newPendingTransactionFilter",value:function(){var t=o(i().mark((function t(){var e,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.makeFilterId(),t.next=3,this.setInitialCursorPosition(e,"latest");case 3:return n=t.sent,console.log("Installing new block filter (".concat(e,") with initial cursor position:"),n),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),t.abrupt("return",(0,c.hexStringFromIntNumber)(e));case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"uninstallFilter",value:function(t){var e=(0,c.intNumberFromHexString)(t);return console.log("Uninstalling filter (".concat(e,")")),this.deleteFilter(e),!0}},{key:"getFilterChanges",value:function(t){var e=(0,c.intNumberFromHexString)(t);return this.timeouts.has(e)&&this.setFilterTimeout(e),this.logFilters.has(e)?this.getLogFilterChanges(e):this.blockFilters.has(e)?this.getBlockFilterChanges(e):this.pendingTransactionFilters.has(e)?this.getPendingTransactionFilterChanges(e):Promise.resolve(m())}},{key:"getFilterLogs",value:function(){var t=o(i().mark((function t(e){var n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,c.intNumberFromHexString)(e),r=this.logFilters.get(n)){t.next=4;break}return t.abrupt("return",m());case 4:return t.abrupt("return",this.sendAsyncPromise(Object.assign(Object.assign({},h),{method:"eth_getLogs",params:[d(r)]})));case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"makeFilterId",value:function(){return(0,a.IntNumber)(++this.nextFilterId)}},{key:"sendAsyncPromise",value:function(t){var e=this;return new Promise((function(n,r){e.provider.sendAsync(t,(function(t,e){return t?r(t):Array.isArray(e)||null==e?r(new Error("unexpected response received: ".concat(JSON.stringify(e)))):void n(e)}))}))}},{key:"deleteFilter",value:function(t){console.log("Deleting filter (".concat(t,")")),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}},{key:"getLogFilterChanges",value:function(){var t=o(i().mark((function t(e){var n,o,s,u,l,f,p,v;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.logFilters.get(e),(o=this.cursors.get(e))&&n){t.next=4;break}return t.abrupt("return",m());case 4:return t.next=6,this.getCurrentBlockHeight();case 6:if(s=t.sent,u="latest"===n.toBlock?s:n.toBlock,!(o>s)){t.next=10;break}return t.abrupt("return",y());case 10:if(!(o>n.toBlock)){t.next=12;break}return t.abrupt("return",y());case 12:return console.log("Fetching logs from ".concat(o," to ").concat(u," for filter ").concat(e)),t.next=15,this.sendAsyncPromise(Object.assign(Object.assign({},h),{method:"eth_getLogs",params:[d(Object.assign(Object.assign({},n),{fromBlock:o,toBlock:u}))]}));
2case 15:return l=t.sent,Array.isArray(l.result)&&(f=l.result.map((function(t){return(0,c.intNumberFromHexString)(t.blockNumber||"0x0")})),(p=Math.max.apply(Math,r(f)))&&p>o&&(v=(0,a.IntNumber)(p+1),console.log("Moving cursor position for filter (".concat(e,") from ").concat(o," to ").concat(v)),this.cursors.set(e,v))),t.abrupt("return",l);case 18:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getBlockFilterChanges",value:function(){var t=o(i().mark((function t(e){var n,r,o,s,u=this;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.cursors.get(e)){t.next=3;break}return t.abrupt("return",m());case 3:return t.next=5,this.getCurrentBlockHeight();case 5:if(r=t.sent,!(n>r)){t.next=8;break}return t.abrupt("return",y());case 8:return console.log("Fetching blocks from ".concat(n," to ").concat(r," for filter (").concat(e,")")),t.next=11,Promise.all((0,c.range)(n,r+1).map((function(t){return u.getBlockHashByNumber((0,a.IntNumber)(t))})));case 11:return o=t.sent.filter((function(t){return!!t})),s=(0,a.IntNumber)(n+o.length),console.log("Moving cursor position for filter (".concat(e,") from ").concat(n," to ").concat(s)),this.cursors.set(e,s),t.abrupt("return",Object.assign(Object.assign({},h),{result:o}));case 16:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getPendingTransactionFilterChanges",value:function(){var t=o(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve(y()));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"setInitialCursorPosition",value:function(){var t=o(i().mark((function t(e,n){var r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getCurrentBlockHeight();case 2:return r=t.sent,o="number"===typeof n&&n>r?n:r,this.cursors.set(e,o),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()},{key:"setFilterTimeout",value:function(t){var e=this,n=this.timeouts.get(t);n&&window.clearTimeout(n);var r=window.setTimeout((function(){console.log("Filter (".concat(t,") timed out")),e.deleteFilter(t)}),3e5);this.timeouts.set(t,r)}},{key:"getCurrentBlockHeight",value:function(){var t=o(i().mark((function t(){var e,n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sendAsyncPromise(Object.assign(Object.assign({},h),{method:"eth_blockNumber",params:[]}));case 2:return e=t.sent,n=e.result,t.abrupt("return",(0,c.intNumberFromHexString)((0,c.ensureHexString)(n)));case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getBlockHashByNumber",value:function(){var t=o(i().mark((function t(e){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sendAsyncPromise(Object.assign(Object.assign({},h),{method:"eth_getBlockByNumber",params:[(0,c.hexStringFromIntNumber)(e),!1]}));case 2:if(!(n=t.sent).result||"string"!==typeof n.result.hash){t.next=5;break}return t.abrupt("return",(0,c.ensureHexString)(n.result.hash));case 5:return t.abrupt("return",null);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}();function f(t){return{fromBlock:p(t.fromBlock),toBlock:p(t.toBlock),addresses:void 0===t.address?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}function d(t){var e={fromBlock:v(t.fromBlock),toBlock:v(t.toBlock),topics:t.topics};return null!==t.addresses&&(e.address=t.addresses),e}function p(t){if(void 0===t||"latest"===t||"pending"===t)return"latest";if("earliest"===t)return(0,a.IntNumber)(0);if((0,c.isHexString)(t))return(0,c.intNumberFromHexString)(t);throw new Error("Invalid block option: ".concat(String(t)))}function v(t){return"latest"===t?t:(0,c.hexStringFromIntNumber)(t)}function m(){return Object.assign(Object.assign({},h),{error:{code:-32e3,message:"filter not found"}})}function y(){return Object.assign(Object.assign({},h),{result:[]})}e.FilterPolyfill=l,e.filterFromParam=f},16587:function(t,e){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCMethod=void 0,function(t){t.eth_accounts="eth_accounts",t.eth_coinbase="eth_coinbase",t.net_version="net_version",t.eth_chainId="eth_chainId",t.eth_uninstallFilter="eth_uninstallFilter",t.eth_requestAccounts="eth_requestAccounts",t.eth_sign="eth_sign",t.eth_ecRecover="eth_ecRecover",t.personal_sign="personal_sign",t.personal_ecRecover="personal_ecRecover",t.eth_signTransaction="eth_signTransaction",t.eth_sendRawTransaction="eth_sendRawTransaction",t.eth_sendTransaction="eth_sendTransaction",t.eth_signTypedData_v1="eth_signTypedData_v1",t.eth_signTypedData_v2="eth_signTypedData_v2",t.eth_signTypedData_v3="eth_signTypedData_v3",t.eth_signTypedData_v4="eth_signTypedData_v4",t.eth_signTypedData="eth_signTypedData",t.cbWallet_arbitrary="walletlink_arbitrary",t.wallet_addEthereumChain="wallet_addEthereumChain",t.wallet_switchEthereumChain="wallet_switchEthereumChain",t.wallet_watchAsset="wallet_watchAsset",t.eth_subscribe="eth_subscribe",t.eth_unsubscribe="eth_unsubscribe",t.eth_newFilter="eth_newFilter",t.eth_newBlockFilter="eth_newBlockFilter",t.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",t.eth_getFilterChanges="eth_getFilterChanges",t.eth_getFilterLogs="eth_getFilterLogs"}(e.JSONRPCMethod||(e.JSONRPCMethod={}))},28501:function(t,e,n){"use strict";var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionManager=void 0;var u=n(61909),a=n(40390),c=function(){},h=function(){function t(e){o(this,t);var n=new u({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),r=a({blockTracker:n,provider:e}),i=r.events,s=r.middleware;this.events=i,this.subscriptionMiddleware=s}return s(t,[{key:"handleRequest",value:function(){var t=i(r().mark((function t(e){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={},t.next=3,this.subscriptionMiddleware(e,n,c,c);case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"destroy",value:function(){this.subscriptionMiddleware.destroy()}}]),t}();e.SubscriptionManager=h},14597:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKUI=void 0;var o=n(87270),s=n(93362),u=n(29179),a=function(){function t(e){r(this,t),this.standalone=null,this.attached=!1,this.snackbar=new s.Snackbar({darkMode:e.darkMode}),this.linkFlow=new o.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}return i(t,[{key:"attach",value:function(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");var t=document.documentElement,e=document.createElement("div");e.className="-cbwsdk-css-reset",t.appendChild(e),this.linkFlow.attach(e),this.snackbar.attach(e),this.attached=!0,(0,u.injectCssReset)()}},{key:"setConnectDisabled",value:function(t){this.linkFlow.setConnectDisabled(t)}},{key:"addEthereumChain",value:function(t){}},{key:"watchAsset",value:function(t){}},{key:"switchEthereumChain",value:function(t){}},{key:"requestEthereumAccounts",value:function(t){this.linkFlow.open({onCancel:t.onCancel})}},{key:"hideRequestEthereumAccounts",value:function(){this.linkFlow.close()}},{key:"signEthereumMessage",value:function(t){}},{key:"signEthereumTransaction",value:function(t){}},{key:"submitEthereumTransaction",value:function(t){}},{key:"ethereumAddressFromSignedMessage",value:function(t){}},{key:"showConnecting",value:function(t){var e;return e=t.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.9687
25 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:{message:"Confirm on phone",menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:t.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]},this.snackbar.presentItem(e)}},{key:"reloadUI",value:function(){document.location.reload()}},{key:"inlineAccountsResponse",value:function(){return!1}},{key:"inlineAddEthereumChain",value:function(t){return!1}},{key:"inlineWatchAsset",value:function(){return!1}},{key:"inlineSwitchEthereumChain",value:function(){return!1}},{key:"setStandalone",value:function(t){this.standalone=t}},{key:"isStandalone",value:function(){var t;return null!==(t=this.standalone)&&void 0!==t&&t}}]),t}();e.WalletSDKUI=a},92303:function(t,e,n){"use strict";var r=n(89728).default,i=n(56690).default,o=n(61655).default,s=n(26389).default,u=n(33496).default;Object.defineProperty(e,"__esModule",{value:!0}),e.WalletUIError=void 0;var a=function(t){o(n,t);var e=s(n);function n(t,r){var o;return i(this,n),(o=e.call(this,t)).message=t,o.errorCode=r,o}return r(n)}(u(Error));e.WalletUIError=a,a.UserRejectedRequest=new a("User rejected request"),a.SwitchEthereumChainUnsupportedChainId=new a("Unsupported chainId",4902)},38195:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RelayMessageType=void 0,function(t){t.SESSION_ID_REQUEST="SESSION_ID_REQUEST",t.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",t.LINKED="LINKED",t.UNLINKED="UNLINKED",t.WEB3_REQUEST="WEB3_REQUEST",t.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",t.WEB3_RESPONSE="WEB3_RESPONSE"}(e.RelayMessageType||(e.RelayMessageType={}))},28588:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.Session=void 0;var o=n(92001),s=n(14824),u=n(33031),a=n(78504),c="session:id",h="session:secret",l="session:linked",f=function(){function t(e,n,i,o){r(this,t),this._storage=e,this._id=n||(0,a.randomBytesHex)(16),this._secret=i||(0,a.randomBytesHex)(32),this._key=(new u.sha256).update("".concat(this._id,", ").concat(this._secret," WalletLink")).digest("hex"),this._linked=!!o}return i(t,[{key:"id",get:function(){return this._id}},{key:"secret",get:function(){return this._secret}},{key:"key",get:function(){return this._key}},{key:"linked",get:function(){return this._linked},set:function(t){this._linked=t,this.persistLinked()}},{key:"save",value:function(){return this._storage.setItem(c,this._id),this._storage.setItem(h,this._secret),this.persistLinked(),this}},{key:"persistLinked",value:function(){this._storage.setItem(l,this._linked?"1":"0")}}],[{key:"load",value:function(e){var n=e.getItem(c),r=e.getItem(l),i=e.getItem(h);return n&&i?new t(e,n,i,"1"===r):null}},{key:"persistedSessionIdChange$",get:function(){return(0,o.fromEvent)(window,"storage").pipe((0,s.filter)((function(t){return t.key===c})),(0,s.map)((function(t){return{oldValue:t.oldValue||null,newValue:t.
2newValue||null}})))}},{key:"hash",value:function(t){return(new u.sha256).update(t).digest("hex")}}]),t}();e.Session=f},74227:function(t,e,n){"use strict";var r=n(27424).default,i=n(56690).default,o=n(89728).default,s=n(61655).default,u=n(26389).default,a=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),c=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),h=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},l=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&a(e,t,n);return c(e,t),e},f=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelay=void 0;var d=f(n(89144)),p=n(51956),v=n(92001),m=n(14824),y=n(35002),g=n(57026),b=n(92303),w=n(19406),_=n(78504),M=l(n(21693)),k=n(28588),x=n(93336),S=n(24859),E=n(88383),C=n(77988),A=n(58674),I=n(97727),T=function(t){s(n,t);var e=u(n);function n(t){var r,o;i(this,n),(r=e.call(this)).accountsCallback=null,r.chainCallback=null,r.dappDefaultChainSubject=new v.BehaviorSubject(1),r.dappDefaultChain=1,r.appName="",r.appLogoUrl=null,r.subscriptions=new v.Subscription,r.linkAPIUrl=t.linkAPIUrl,r.storage=t.storage,r.options=t;var s=r.subscribe(),u=s.session,a=s.ui,c=s.connection;if(r._session=u,r.connection=c,r.relayEventManager=t.relayEventManager,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");return t.eventListener?r.diagnostic={log:t.eventListener.onEvent}:r.diagnostic=t.diagnosticLogger,r._reloadOnDisconnect=null===(o=t.reloadOnDisconnect)||void 0===o||o,r.ui=a,r}return o(n,[{key:"subscribe",value:function(){var t=this;this.subscriptions.add(this.dappDefaultChainSubject.subscribe((function(e){t.dappDefaultChain!==e&&(t.dappDefaultChain=e)})));var e=k.Session.load(this.storage)||new k.Session(this.storage).save(),i=new g.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(i.sessionConfig$.subscribe({next:function(e){t.onSessionConfigChanged(e)},error:function(){var e;null===(e=t.diagnostic)||void 0===e||e.log(y.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(i.incomingEvent$.pipe((0,m.filter)((function(t){return"Web3Response"===t.event}))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(i.linked$.pipe((0,m.skip)(1),(0,m.tap)((function(e){var n;t.isLinked=e;var r=t.storage.getItem(x.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(t.session.linked=e),t.isUnlinkedErrorState=!1,r){var i=r.split(" "),o="true"===t.storage.getItem("IsStandaloneSigning");if(""!==i[0]&&!e&&t.session.linked&&!o){t.isUnlinkedErrorState=!0;var s=t.getSessionIdHash();null===(n=t.diagnostic)||void 0===n||n.log(y.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:s})}}}))).subscribe()),this.subscriptions.add(i.sessionConfig$.pipe((0,m.filter)((function(t){return!!t.metadata&&"1"===t.metadata.__destroyed}))).subscribe((function(){var e,n=i.isDestroyed;return null===(e=t.diagnostic)||void 0===e||e.log(y.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:t.getSessionIdHash()}),t.resetAndReload()}))),this.subscriptions.add(i.sessionConfig$.pipe((0,m.filter)((function(t){return t.metadata&&void 0!==t.metadata.WalletUsername}))).pipe((0,m.mergeMap)((function(t){return M.decrypt(t.metadata.WalletUsername,e.secret)}))).subscribe({next:function(e){t.storage.setItem(x.WALLET_USER_NAME_KEY,e)},error:function(){var e;
2null===(e=t.diagnostic)||void 0===e||e.log(y.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(i.sessionConfig$.pipe((0,m.filter)((function(t){return t.metadata&&void 0!==t.metadata.AppVersion}))).pipe((0,m.mergeMap)((function(t){return M.decrypt(t.metadata.AppVersion,e.secret)}))).subscribe({next:function(e){t.storage.setItem(x.APP_VERSION_KEY,e)},error:function(){var e;null===(e=t.diagnostic)||void 0===e||e.log(y.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(i.sessionConfig$.pipe((0,m.filter)((function(t){return t.metadata&&void 0!==t.metadata.ChainId&&void 0!==t.metadata.JsonRpcUrl}))).pipe((0,m.mergeMap)((function(t){return(0,v.zip)(M.decrypt(t.metadata.ChainId,e.secret),M.decrypt(t.metadata.JsonRpcUrl,e.secret))}))).pipe((0,m.distinctUntilChanged)()).subscribe({next:function(e){var n=r(e,2),i=n[0],o=n[1];t.chainCallback&&t.chainCallback(i,o)},error:function(){var e;null===(e=t.diagnostic)||void 0===e||e.log(y.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(i.sessionConfig$.pipe((0,m.filter)((function(t){return t.metadata&&void 0!==t.metadata.EthereumAddress}))).pipe((0,m.mergeMap)((function(t){return M.decrypt(t.metadata.EthereumAddress,e.secret)}))).subscribe({next:function(e){t.accountsCallback&&t.accountsCallback([e]),n.accountRequestCallbackIds.size>0&&(Array.from(n.accountRequestCallbackIds.values()).forEach((function(n){var r=(0,I.Web3ResponseMessage)({id:n,response:(0,A.RequestEthereumAccountsResponse)([e])});t.invokeCallback(Object.assign(Object.assign({},r),{id:n}))})),n.accountRequestCallbackIds.clear())},error:function(){var e;null===(e=t.diagnostic)||void 0===e||e.log(y.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}}));var o=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:i.connected$,chainId$:this.dappDefaultChainSubject});return i.connect(),{session:e,ui:o,connection:i}}},{key:"attachUI",value:function(){this.ui.attach()}},{key:"resetAndReload",value:function(){var t=this;this.connection.setSessionMetadata("__destroyed","1").pipe((0,m.timeout)(1e3),(0,m.catchError)((function(t){return(0,v.of)(null)}))).subscribe((function(e){var n,r,i,o=t.ui.isStandalone();try{t.subscriptions.unsubscribe()}catch(l){null===(n=t.diagnostic)||void 0===n||n.log(y.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(r=t.diagnostic)||void 0===r||r.log(y.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:t.getSessionIdHash()}),t.connection.destroy();var s=k.Session.load(t.storage);if((null===s||void 0===s?void 0:s.id)===t._session.id?t.storage.clear():s&&(null===(i=t.diagnostic)||void 0===i||i.log(y.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:t.getSessionIdHash(),storedSessionIdHash:k.Session.hash(s.id)})),t._reloadOnDisconnect)t.ui.reloadUI();else{t.accountsCallback&&t.accountsCallback([],!0);var u=t.subscribe(),a=u.session,c=u.ui,h=u.connection;t._session=a,t.connection=h,t.ui=c,o&&t.ui.setStandalone&&t.ui.setStandalone(!0),t.attachUI()}}),(function(e){var n;null===(n=t.diagnostic)||void 0===n||n.log(y.EVENTS.FAILURE,{method:"relay::resetAndReload",message:"failed to reset and reload with ".concat(e),sessionIdHash:t.getSessionIdHash()})}))}},{key:"setAppInfo",value:function(t,e){this.appName=t,this.appLogoUrl=e}},{key:"getStorageItem",value:function(t){return this.storage.getItem(t)}},{key:"session",get:function(){return this._session}},{key:"setStorageItem",value:function(t,e){this.storage.setItem(t,e)}},{key:"signEthereumMessage",value:function(t,e,n,r){return this.sendRequest({method:S.Web3Method.signEthereumMessage,params:{message:(0,_.hexStringFromBuffer)(t,!0),address:e,addPrefix:n,typedDataJson:r||null}})}},{key:"ethereumAddressFromSignedMessage",value:function(t,e,n){return this.sendRequest({method:S.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,_.hexStringFromBuffer)(t,!0),signature:(0,_.hexStringFromBuffer)(e,!0),addPrefix:n}})}},{key:"signEthereumTransaction",value:function(t){return this.sendRequest({method:S.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,_.bigIntStringFromBN)(t.weiValue),data:(0,_.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,_.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,_.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,_.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,_.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}},{key:"signAndSubmitEthereumTransaction",value:function(t){return this.sendRequest({method:S.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,_.bigIntStringFromBN)(t.weiValue),data:(0,_.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,_.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,_.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,_.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,_.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}},{key:"submitEthereumTransaction",value:function(t,e){return this.sendRequest({method:S.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,_.hexStringFromBuffer)(t,!0),chainId:e}})}},{key:"scanQRCode",value:function(t){return this.sendRequest({method:S.Web3Method.scanQRCode,params:{regExp:t}})}},{key:"getQRCodeUrl",value:function(){return(0,_.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.dappDefaultChain)}},{key:"genericRequest",value:function(t,e){return this.sendRequest({method:S.Web3Method.generic,params:{action:e,data:t}})}},{key:"sendGenericMessage",value:function(t){return this.sendRequest(t)}},{key:"sendRequest",value:function(t){var e=this,n=null,r=(0,_.randomBytesHex)(8),i=function(i){e.publishWeb3RequestCanceledEvent(r),e.handleErrorResponse(r,t.method,i),null===n||void 0===n||n()};return{promise:new Promise((function(o,s){e.ui.isStandalone()||(n=e.ui.showConnecting({isUnlinkedErrorState:e.isUnlinkedErrorState,onCancel:i,onResetConnection:e.resetAndReload})),e.relayEventManager.callbacks.set(r,(function(t){if(null===n||void 0===n||n(),t.errorMessage)return s(new Error(t.errorMessage));o(t)})),e.ui.isStandalone()?e.sendRequestStandalone(r,t):e.publishWeb3RequestEvent(r,t)})),cancel:i}}},{key:"setConnectDisabled",value:function(t){this.ui.setConnectDisabled(t)}},{key:"setAccountsCallback",value:function(t){this.accountsCallback=t}},{key:"setChainCallback",value:function(t){this.chainCallback=t}},{key:"setDappDefaultChainCallback",value:function(t){this.dappDefaultChainSubject.next(t)}},{key:"publishWeb3RequestEvent",value:function(t,e){var n,r=this,i=(0,C.Web3RequestMessage)({id:t,request:e}),o=k.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(y.EVENTS.WEB3_REQUEST,{eventId:i.id,method:"relay::".concat(i.request.method),sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o?k.Session.hash(o.id):"",isSessionMismatched:((null===o||void 0===o?void 0:o.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",i,!0).subscribe({next:function(t){var e;null===(e=r.diagnostic)||void 0===e||e.log(y.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:"relay::".concat(i.request.method),sessionIdHash:r.getSessionIdHash(),storedSessionIdHash:o?k.Session.hash(o.id):"",isSessionMismatched:((null===o||void 0===o?void 0:o.id)!==r._session.id).toString()})},error:function(t){r.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:i.id,response:{method:i.request.method,errorMessage:t.message}}))}}))}},{key:"publishWeb3RequestCanceledEvent",value:function(t){var e=(0,E.Web3RequestCanceledMessage)(t);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",e,!1).subscribe())}},{key:"publishEvent",value:function(t,e,n){var r=this,i=this.session.secret;
2return new v.Observable((function(t){M.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{origin:location.origin})),i).then((function(e){t.next(e),t.complete()}))})).pipe((0,m.mergeMap)((function(e){return r.connection.publishEvent(t,e,n)})))}},{key:"handleIncomingEvent",value:function(t){var e=this;try{this.subscriptions.add(M.decrypt(t.data,this.session.secret).pipe((0,m.map)((function(t){return JSON.parse(t)}))).subscribe({next:function(t){var n=(0,I.isWeb3ResponseMessage)(t)?t:null;n&&e.handleWeb3ResponseMessage(n)},error:function(){var t;null===(t=e.diagnostic)||void 0===t||t.log(y.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(n){return}}},{key:"handleWeb3ResponseMessage",value:function(t){var e,r=this,i=t.response;if(null===(e=this.diagnostic)||void 0===e||e.log(y.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:"relay::".concat(i.method),sessionIdHash:this.getSessionIdHash()}),(0,A.isRequestEthereumAccountsResponse)(i))return n.accountRequestCallbackIds.forEach((function(e){return r.invokeCallback(Object.assign(Object.assign({},t),{id:e}))})),void n.accountRequestCallbackIds.clear();this.invokeCallback(t)}},{key:"handleErrorResponse",value:function(t,e,n,r){this.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:t,response:(0,A.ErrorResponse)(e,(null!==n&&void 0!==n?n:b.WalletUIError.UserRejectedRequest).message,r)}))}},{key:"invokeCallback",value:function(t){var e=this.relayEventManager.callbacks.get(t.id);e&&(e(t.response),this.relayEventManager.callbacks.delete(t.id))}},{key:"requestEthereumAccounts",value:function(){var t=this,e={method:S.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},r=(0,_.randomBytesHex)(8),i=function(n){t.publishWeb3RequestCanceledEvent(r),t.handleErrorResponse(r,e.method,n)};return{promise:new Promise((function(o,s){var u;t.relayEventManager.callbacks.set(r,(function(e){if(t.ui.hideRequestEthereumAccounts(),e.errorMessage)return s(new Error(e.errorMessage));o(e)}));var a=(null===(u=null===window||void 0===window?void 0:window.navigator)||void 0===u?void 0:u.userAgent)||null;if(a&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)){var c;try{c=(0,_.isInIFrame)()&&window.top?window.top.location:window.location}catch(l){c=window.location}c.href="https://go.cb-w.com/xoXnYwQimhb?cb_url=".concat(encodeURIComponent(c.href))}else{if(t.ui.inlineAccountsResponse()){t.ui.requestEthereumAccounts({onCancel:i,onAccounts:function(e){t.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:r,response:(0,A.RequestEthereumAccountsResponse)(e)}))}})}else{var h=p.ethErrors.provider.userRejectedRequest("User denied account authorization");t.ui.requestEthereumAccounts({onCancel:function(){return i(h)}})}n.accountRequestCallbackIds.add(r),t.ui.inlineAccountsResponse()||t.ui.isStandalone()||t.publishWeb3RequestEvent(r,e)}})),cancel:i}}},{key:"selectProvider",value:function(t){var e=this,n={method:S.Web3Method.selectProvider,params:{providerOptions:t}},r=(0,_.randomBytesHex)(8);return{cancel:function(t){e.publishWeb3RequestCanceledEvent(r),e.handleErrorResponse(r,n.method,t)},promise:new Promise((function(n,i){e.relayEventManager.callbacks.set(r,(function(t){if(t.errorMessage)return i(new Error(t.errorMessage));n(t)}));e.ui.selectProvider&&e.ui.selectProvider({onApprove:function(t){e.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:r,response:(0,A.SelectProviderResponse)(t)}))},onCancel:function(t){e.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:r,response:(0,A.SelectProviderResponse)(w.ProviderType.Unselected)}))},providerOptions:t})}))}}},{key:"watchAsset",value:function(t,e,n,r,i,o){var s=this,u={method:S.Web3Method.watchAsset,params:{type:t,options:{address:e,symbol:n,decimals:r,image:i},chainId:o}},a=null,c=(0,_.randomBytesHex)(8),h=function(t){s.publishWeb3RequestCanceledEvent(c),s.handleErrorResponse(c,u.method,t),null===a||void 0===a||a()};return this.ui.inlineWatchAsset()||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:h,onResetConnection:this.resetAndReload})),{cancel:h,promise:new Promise((function(h,l){s.relayEventManager.callbacks.set(c,(function(t){if(null===a||void 0===a||a(),t.errorMessage)return l(new Error(t.errorMessage));h(t)}));s.ui.inlineWatchAsset()&&s.ui.watchAsset({onApprove:function(){s.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:c,response:(0,A.WatchAssetReponse)(!0)}))},onCancel:function(t){s.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:c,response:(0,A.WatchAssetReponse)(!1)}))}
2,type:t,address:e,symbol:n,decimals:r,image:i,chainId:o}),s.ui.inlineWatchAsset()||s.ui.isStandalone()||s.publishWeb3RequestEvent(c,u)}))}}},{key:"addEthereumChain",value:function(t,e,n,r,i,o){var s=this,u={method:S.Web3Method.addEthereumChain,params:{chainId:t,rpcUrls:e,blockExplorerUrls:r,chainName:i,iconUrls:n,nativeCurrency:o}},a=null,c=(0,_.randomBytesHex)(8),h=function(t){s.publishWeb3RequestCanceledEvent(c),s.handleErrorResponse(c,u.method,t),null===a||void 0===a||a()};return this.ui.inlineAddEthereumChain(t)||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:h,onResetConnection:this.resetAndReload})),{promise:new Promise((function(e,n){s.relayEventManager.callbacks.set(c,(function(t){if(null===a||void 0===a||a(),t.errorMessage)return n(new Error(t.errorMessage));e(t)}));s.ui.inlineAddEthereumChain(t)&&s.ui.addEthereumChain({onCancel:function(t){s.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:c,response:(0,A.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:function(t){s.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:c,response:(0,A.AddEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:u.params.chainId,rpcUrls:u.params.rpcUrls,blockExplorerUrls:u.params.blockExplorerUrls,chainName:u.params.chainName,iconUrls:u.params.iconUrls,nativeCurrency:u.params.nativeCurrency}),s.ui.inlineAddEthereumChain(t)||s.ui.isStandalone()||s.publishWeb3RequestEvent(c,u)})),cancel:h}}},{key:"switchEthereumChain",value:function(t,e){var n=this,r={method:S.Web3Method.switchEthereumChain,params:Object.assign({chainId:t},{address:e})},i=(0,_.randomBytesHex)(8);return{promise:new Promise((function(t,e){n.relayEventManager.callbacks.set(i,(function(n){return n.errorMessage&&n.errorCode?e(p.ethErrors.provider.custom({code:n.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):n.errorMessage?e(new Error(n.errorMessage)):void t(n)}));n.ui.switchEthereumChain({onCancel:function(t){if("number"===typeof t){var e=t;n.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:i,response:(0,A.ErrorResponse)(S.Web3Method.switchEthereumChain,b.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,e)}))}else t instanceof b.WalletUIError?n.handleErrorResponse(i,S.Web3Method.switchEthereumChain,t,t.errorCode):n.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:i,response:(0,A.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:function(t){n.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:i,response:(0,A.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:r.params.chainId,address:r.params.address}),n.ui.inlineSwitchEthereumChain()||n.ui.isStandalone()||n.publishWeb3RequestEvent(i,r)})),cancel:function(t){n.publishWeb3RequestCanceledEvent(i),n.handleErrorResponse(i,r.method,t)}}}},{key:"inlineAddEthereumChain",value:function(t){return this.ui.inlineAddEthereumChain(t)}},{key:"getSessionIdHash",value:function(){return k.Session.hash(this._session.id)}},{key:"sendRequestStandalone",value:function(t,e){var n=this,r=function(r){n.handleErrorResponse(t,e.method,r)},i=function(e){n.handleWeb3ResponseMessage((0,I.Web3ResponseMessage)({id:t,response:e}))};switch(e.method){case S.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:e,onSuccess:i,onCancel:r});break;case S.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:e,onSuccess:i,onCancel:r});break;case S.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:e,onSuccess:i,onCancel:r});break;case S.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:e,onSuccess:i});break;default:r()}}},{key:"onSessionConfigChanged",value:function(t){}}]),n}(x.WalletSDKRelayAbstract);T.accountRequestCallbackIds=new Set,h([d.default],T.prototype,"resetAndReload",null),h([d.default],T.prototype,"handleIncomingEvent",null),e.WalletSDKRelay=T},93336:function(t,e,n){"use strict";var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayAbstract=e.APP_VERSION_KEY=e.LOCAL_STORAGE_ADDRESSES_KEY=e.WALLET_USER_NAME_KEY=void 0;var u=n(51956);e.WALLET_USER_NAME_KEY="walletUsername",e.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",e.APP_VERSION_KEY="AppVersion";var a=function(){function t(){o(this,t)}return s(t,[{key:"makeEthereumJSONRPCRequest",value:function(){var t=i(r().mark((function t(e,n){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n){t.next=2;break}throw new Error("Error: No jsonRpcUrl provided");case 2:return t.abrupt("return",window.fetch(n,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then((function(t){return t.json()})).then((function(t){if(!t)throw u.ethErrors.rpc.parse({});var e=t,n=e.error;if(n)throw(0,u.serializeError)(n);return e})));case 3:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}]),t}();e.WalletSDKRelayAbstract=a},30569:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default;Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayEventManager=void 0;var o=n(78504),s=function(){function t(){r(this,t),this._nextRequestId=0,this.callbacks=new Map}return i(t,[{key:"makeRequestId",value:function(){this._nextRequestId=(this._nextRequestId+1)%2147483647;var t=this._nextRequestId,e=(0,o.prepend0x)(t.toString(16));return this.callbacks.get(e)&&this.callbacks.delete(e),t}}]),t}();e.WalletSDKRelayEventManager=s},24859:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Method=void 0,function(t){t.requestEthereumAccounts="requestEthereumAccounts",t.signEthereumMessage="signEthereumMessage",t.signEthereumTransaction="signEthereumTransaction",t.submitEthereumTransaction="submitEthereumTransaction",t.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",t.scanQRCode="scanQRCode",t.generic="generic",t.childRequestEthereumAccounts="childRequestEthereumAccounts",t.addEthereumChain="addEthereumChain",t.switchEthereumChain="switchEthereumChain",t.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",t.watchAsset="watchAsset",t.selectProvider="selectProvider"}(e.Web3Method||(e.Web3Method={}))},88383:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestCanceledMessage=void 0;var r=n(38195);e.Web3RequestCanceledMessage=function(t){return{type:r.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}},77988:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestMessage=void 0;var r=n(38195);e.Web3RequestMessage=function(t){return Object.assign({type:r.RelayMessageType.WEB3_REQUEST},t)}},58674:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumAddressFromSignedMessageResponse=e.SubmitEthereumTransactionResponse=e.SignEthereumTransactionResponse=e.SignEthereumMessageResponse=e.isRequestEthereumAccountsResponse=e.SelectProviderResponse=e.WatchAssetReponse=e.RequestEthereumAccountsResponse=e.SwitchEthereumChainResponse=e.AddEthereumChainResponse=e.ErrorResponse=void 0;var r=n(24859);e.ErrorResponse=function(t,e,n){return{method:t,errorMessage:e,errorCode:n}},e.AddEthereumChainResponse=function(t){return{method:r.Web3Method.addEthereumChain,result:t}},e.SwitchEthereumChainResponse=function(t){return{method:r.Web3Method.switchEthereumChain,result:t}},e.RequestEthereumAccountsResponse=function(t){return{method:r.Web3Method.requestEthereumAccounts,result:t}},e.WatchAssetReponse=function(t){return{method:r.Web3Method.watchAsset,result:t}},e.SelectProviderResponse=function(t){return{method:r.Web3Method.selectProvider,result:t}},e.isRequestEthereumAccountsResponse=function(t){return t&&t.method===r.Web3Method.requestEthereumAccounts},e.SignEthereumMessageResponse=function(t){return{method:r.Web3Method.signEthereumMessage,result:t}},e.SignEthereumTransactionResponse=function(t){return{method:r.Web3Method.signEthereumTransaction,result:t}},e.SubmitEthereumTransactionResponse=function(t){return{method:r.Web3Method.submitEthereumTransaction,result:t}},e.EthereumAddressFromSignedMessageResponse=function(t){return{method:r.Web3Method.ethereumAddressFromSignedMessage,result:t}}},97727:function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.isWeb3ResponseMessage=e.Web3ResponseMessage=void 0;var r=n(38195);e.Web3ResponseMessage=function(t){return Object.assign({type:r.RelayMessageType.WEB3_RESPONSE},t)},e.isWeb3ResponseMessage=function(t){return t&&t.type===r.RelayMessageType.WEB3_RESPONSE}},21693:function(t,e,n){"use strict";var r=n(17061).default,i=n(861).default,o=n(17156).default;Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=void 0;var s=n(92001),u=n(78504);function a(){return(a=o(r().mark((function t(e,n){var o,s,a,c,h,l,f,d,p;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(64===n.length){t.next=2;break}throw Error("secret must be 256 bits");case 2:return o=crypto.getRandomValues(new Uint8Array(12)),t.next=5,crypto.subtle.importKey("raw",(0,u.hexStringToUint8Array)(n),{name:"aes-gcm"},!1,["encrypt","decrypt"]);case 5:return s=t.sent,a=new TextEncoder,t.next=9,window.crypto.subtle.encrypt({name:"AES-GCM",iv:o},s,a.encode(e));case 9:return c=t.sent,16,h=c.slice(c.byteLength-16),l=c.slice(0,c.byteLength-16),f=new Uint8Array(h),d=new Uint8Array(l),p=new Uint8Array([].concat(i(o),i(f),i(d))),t.abrupt("return",(0,u.uint8ArrayToHex)(p));case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.encrypt=function(t,e){return a.apply(this,arguments)},e.decrypt=function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");return new s.Observable((function(n){o(r().mark((function o(){var s,a,c,h,l,f,d,p,v;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,crypto.subtle.importKey("raw",(0,u.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]);case 2:return s=r.sent,a=(0,u.hexStringToUint8Array)(t),c=a.slice(0,12),h=a.slice(12,28),l=a.slice(28),f=new Uint8Array([].concat(i(l),i(h))),d={name:"AES-GCM",iv:new Uint8Array(c)},r.prev=9,r.next=12,window.crypto.subtle.decrypt(d,s,f);case 12:p=r.sent,v=new TextDecoder,n.next(v.decode(p)),n.complete(),r.next=21;break;case 18:r.prev=18,r.t0=r.catch(9),n.error(r.t0);case 21:case"end":return r.stop()}}),o,null,[[9,18]])})))()}))}},19406:function(t,e){"use strict";function n(){return function(t){return t}}Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=e.RegExpString=e.IntNumber=e.BigIntString=e.AddressString=e.HexString=e.OpaqueType=void 0,e.OpaqueType=n,e.HexString=function(t){return t},e.AddressString=function(t){return t},e.BigIntString=function(t){return t},e.IntNumber=function(t){return Math.floor(t)},e.RegExpString=function(t){return t},function(t){t.CoinbaseWallet="CoinbaseWallet",t.MetaMask="MetaMask",t.Unselected=""}(e.ProviderType||(e.ProviderType={}))},78504:function(t,e,n){"use strict";var r=n(97429).Buffer,i=n(38416).default,o=n(861).default,s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isInIFrame=e.createQrUrl=e.getFavicon=e.range=e.isBigNumber=e.ensureParsedJSONObject=e.ensureBN=e.ensureRegExpString=e.ensureIntNumber=e.ensureBuffer=e.ensureAddressString=e.ensureEvenLengthHexString=e.ensureHexString=e.isHexString=e.prepend0x=e.strip0x=e.has0xPrefix=e.hexStringFromIntNumber=e.intNumberFromHexString=e.bigIntStringFromBN=e.hexStringFromBuffer=e.hexStringToUint8Array=e.uint8ArrayToHex=e.randomBytesHex=void 0;var u=s(n(35974)),a=n(2848),c=n(19406),h=/^[0-9]*$/,l=/^[a-f0-9]*$/;function f(t){return o(t).map((function(t){return t.toString(16).padStart(2,"0")})).join("")}function d(t){return t.startsWith("0x")||t.startsWith("0X")}function p(t){return d(t)?t.slice(2):t}function v(t){return d(t)?"0x"+t.slice(2):"0x"+t}function m(t){if("string"!==typeof t)return!1;var e=p(t).toLowerCase();return l.test(e)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"===typeof t){var n=p(t).toLowerCase();if(l.test(n))return(0,c.HexString)(e?"0x"+n:n)}throw new Error('"'.concat(String(t),'" is not a hexadecimal string'))}function g(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=y(t,!1);return n.length%2===1&&(n=(0,c.HexString)("0"+n)),e?(0,c.HexString)("0x"+n):n}function b(t){if("number"===typeof t&&Number.isInteger(t))return(0,c.IntNumber)(t);if("string"===typeof t){if(h.test(t))return(0,c.IntNumber)(Number(t));if(m(t))return(0,c.IntNumber)(new u.default(g(t,!1),16).toNumber())}throw new Error("Not an integer: ".concat(String(t)))}function w(t){if(null==t||"function"!==typeof t.constructor)return!1;var e=t.constructor;return"function"===typeof e.config&&"number"===typeof e.EUCLID}e.randomBytesHex=function(t){return f(crypto.getRandomValues(new Uint8Array(t)))},e.uint8ArrayToHex=f,e.hexStringToUint8Array=function(t){return new Uint8Array(t.match(/.{1,2}/g).map((function(t){return parseInt(t,16)})))},e.hexStringFromBuffer=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.toString("hex");return(0,c.HexString)(e?"0x"+n:n)},e.bigIntStringFromBN=function(t){return(0,c.BigIntString)(t.toString(10))},e.intNumberFromHexString=function(t){return(0,c.IntNumber)(new u.default(g(t,!1),16).toNumber())},e.hexStringFromIntNumber=function(t){return(0,c.HexString)("0x"+new u.default(t).toString(16))},e.has0xPrefix=d,e.strip0x=p,e.prepend0x=v,e.isHexString=m,e.ensureHexString=y,e.ensureEvenLengthHexString=g,e.ensureAddressString=function(t){if("string"===typeof t){var e=p(t).toLowerCase();if(m(e)&&40===e.length)return(0,c.AddressString)(v(e))}throw new Error("Invalid Ethereum address: ".concat(String(t)))},e.ensureBuffer=function(t){if(r.isBuffer(t))return t;if("string"===typeof t){if(m(t)){var e=g(t,!1);return r.from(e,"hex")}return r.from(t,"utf8")}throw new Error("Not binary data: ".concat(String(t)))},e.ensureIntNumber=b,e.ensureRegExpString=function(t){if(t instanceof RegExp)return(0,c.RegExpString)(t.toString());throw new Error("Not a RegExp: ".concat(String(t)))},e.ensureBN=function(t){if(null!==t&&(u.default.isBN(t)||w(t)))return new u.default(t.toString(10),10);if("number"===typeof t)return new u.default(b(t));if("string"===typeof t){if(h.test(t))return new u.default(t,10);if(m(t))return new u.default(g(t,!1),16)}throw new Error("Not an integer: ".concat(String(t)))},e.ensureParsedJSONObject=function(t){if("string"===typeof t)return JSON.parse(t);if("object"===typeof t)return t;throw new Error("Not a JSON string or an object: ".concat(String(t)))},e.isBigNumber=w,e.range=function(t,e){return Array.from({length:e-t},(function(e,n){return t+n}))},e.getFavicon=function(){var t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),e=document.location,n=e.protocol,r=e.host,i=t?t.getAttribute("href"):null;return!i||i.startsWith("javascript:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?n+i:"".concat(n,"//").concat(r).concat(i)},e.createQrUrl=function(t,e,n,r,o){var s,u=r?"parent-id":"id",c=(0,a.stringify)((i(s={},u,t),i(s,"secret",e),i(s,"server",n),i(s,"v","1"),i(s,"chainId",o),s));return"".concat(n,"/#/link?").concat(c)},e.isInIFrame=function(){try{return null!==window.frameElement}catch(t){return!1}}},26170:function(t,e,n){var r=n(97429).Buffer,i=n(94076),o=n(35974);function s(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t}function u(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function a(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function c(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function h(t){var e=typeof t;if("string"===e)return i.isHexString(t)?new o(i.stripHexPrefix(t),16):new o(t,10);if("number"===e)return new o(t);if(t.toArray)return t;throw new Error("Argument is not a number")}function l(t,e){var n,s,f,d;
2if("address"===t)return l("uint160",h(e));if("bool"===t)return l("uint8",e?1:0);if("string"===t)return l("bytes",new r(e,"utf8"));if(function(t){return t.lastIndexOf("]")===t.length-1}(t)){if("undefined"===typeof e.length)throw new Error("Not an array?");if("dynamic"!==(n=c(t))&&0!==n&&e.length>n)throw new Error("Elements exceed array size: "+n);for(d in f=[],t=t.slice(0,t.lastIndexOf("[")),"string"===typeof e&&(e=JSON.parse(e)),e)f.push(l(t,e[d]));if("dynamic"===n){var p=l("uint256",e.length);f.unshift(p)}return r.concat(f)}if("bytes"===t)return e=new r(e),f=r.concat([l("uint256",e.length),e]),e.length%32!==0&&(f=r.concat([f,i.zeros(32-e.length%32)])),f;if(t.startsWith("bytes")){if((n=u(t))<1||n>32)throw new Error("Invalid bytes<N> width: "+n);return i.setLengthRight(e,32)}if(t.startsWith("uint")){if((n=u(t))%8||n<8||n>256)throw new Error("Invalid uint<N> width: "+n);if((s=h(e)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+s.bitLength());if(s<0)throw new Error("Supplied uint is negative");return s.toArrayLike(r,"be",32)}if(t.startsWith("int")){if((n=u(t))%8||n<8||n>256)throw new Error("Invalid int<N> width: "+n);if((s=h(e)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+s.bitLength());return s.toTwos(256).toArrayLike(r,"be",32)}if(t.startsWith("ufixed")){if(n=a(t),(s=h(e))<0)throw new Error("Supplied ufixed is negative");return l("uint256",s.mul(new o(2).pow(new o(n[1]))))}if(t.startsWith("fixed"))return n=a(t),l("int256",h(e).mul(new o(2).pow(new o(n[1]))));throw new Error("Unsupported or invalid type: "+t)}function f(t){return"string"===t||"bytes"===t||"dynamic"===c(t)}function d(t,e){if(t.length!==e.length)throw new Error("Number of types are not matching the values");for(var n,o,a=[],c=0;c<t.length;c++){var l=s(t[c]),f=e[c];if("bytes"===l)a.push(f);else if("string"===l)a.push(new r(f,"utf8"));else if("bool"===l)a.push(new r(f?"01":"00","hex"));else if("address"===l)a.push(i.setLength(f,20));else if(l.startsWith("bytes")){if((n=u(l))<1||n>32)throw new Error("Invalid bytes<N> width: "+n);a.push(i.setLengthRight(f,n))}else if(l.startsWith("uint")){if((n=u(l))%8||n<8||n>256)throw new Error("Invalid uint<N> width: "+n);if((o=h(f)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());a.push(o.toArrayLike(r,"be",n/8))}else{if(!l.startsWith("int"))throw new Error("Unsupported or invalid type: "+l);if((n=u(l))%8||n<8||n>256)throw new Error("Invalid int<N> width: "+n);if((o=h(f)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());a.push(o.toTwos(n).toArrayLike(r,"be",n/8))}}return r.concat(a)}t.exports={rawEncode:function(t,e){var n=[],i=[],o=32*t.length;for(var u in t){var a=s(t[u]),c=l(a,e[u]);f(a)?(n.push(l("uint256",o)),i.push(c),o+=c.length):n.push(c)}return r.concat(n.concat(i))},solidityPack:d,soliditySHA3:function(t,e){return i.keccak(d(t,e))}}},37631:function(t,e,n){var r=n(97429).Buffer,i=n(74704).default,o=n(27424).default,s=n(94076),u=n(26170),a={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:function(t,e,n){var a=this,c=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],h=["bytes32"],l=[this.hashType(t,n)];if(c){var f,d=function t(e,i,h){if(void 0!==n[i])return["bytes32",null==h?"0x0000000000000000000000000000000000000000000000000000000000000000":s.keccak(a.encodeData(i,h,n,c))];if(void 0===h)throw new Error("missing value for field ".concat(e," of type ").concat(i));if("bytes"===i)return["bytes32",s.keccak(h)];if("string"===i)return"string"===typeof h&&(h=r.from(h,"utf8")),["bytes32",s.keccak(h)];if(i.lastIndexOf("]")===i.length-1){var l=i.slice(0,i.lastIndexOf("[")),f=h.map((function(n){return t(e,l,n)}));return["bytes32",s.keccak(u.rawEncode(f.map((function(t){return o(t,1)[0]})),f.map((function(t){return o(t,2)[1]}))))]}return[i,h]},p=i(n[t]);try{for(p.s();!(f=p.n()).done;){var v=f.value,m=d(v.name,v.type,e[v.name]),y=o(m,2),g=y[0],b=y[1];h.push(g),l.push(b)}}catch(x){p.e(x)}finally{p.f()}}else{var w,_=i(n[t]);try{for(_.s();!(w=_.n()).done;){var M=w.value,k=e[M.name];
2if(void 0!==k)if("bytes"===M.type)h.push("bytes32"),k=s.keccak(k),l.push(k);else if("string"===M.type)h.push("bytes32"),"string"===typeof k&&(k=r.from(k,"utf8")),k=s.keccak(k),l.push(k);else if(void 0!==n[M.type])h.push("bytes32"),k=s.keccak(this.encodeData(M.type,k,n,c)),l.push(k);else{if(M.type.lastIndexOf("]")===M.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");h.push(M.type),l.push(k)}}}catch(x){_.e(x)}finally{_.f()}}return u.rawEncode(h,l)},encodeType:function(t,e){var n="",r=this.findTypeDependencies(t,e).filter((function(e){return e!==t}));r=[t].concat(r.sort());var o,s=i(r);try{for(s.s();!(o=s.n()).done;){var u=o.value;if(!e[u])throw new Error("No type definition specified: "+u);n+=u+"("+e[u].map((function(t){var e=t.name;return t.type+" "+e})).join(",")+")"}}catch(a){s.e(a)}finally{s.f()}return n},findTypeDependencies:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t=t.match(/^\w*/)[0],n.includes(t)||void 0===e[t])return n;n.push(t);var r,o=i(e[t]);try{for(o.s();!(r=o.n()).done;){var s,u=r.value,a=i(this.findTypeDependencies(u.type,e,n));try{for(a.s();!(s=a.n()).done;){var c=s.value;!n.includes(c)&&n.push(c)}}catch(h){a.e(h)}finally{a.f()}}}catch(h){o.e(h)}finally{o.f()}return n},hashStruct:function(t,e,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return s.keccak(this.encodeData(t,e,n,r))},hashType:function(t,e){return s.keccak(this.encodeType(t,e))},sanitizeData:function(t){var e={};for(var n in a.properties)t[n]&&(e[n]=t[n]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.sanitizeData(t),i=[r.from("1901","hex")];return i.push(this.hashStruct("EIP712Domain",n.domain,n.types,e)),"EIP712Domain"!==n.primaryType&&i.push(this.hashStruct(n.primaryType,n.message,n.types,e)),s.keccak(r.concat(i))}};t.exports={TYPED_MESSAGE_SCHEMA:a,TypedDataUtils:c,hashForSignTypedDataLegacy:function(t){return function(t){var e=new Error("Expect argument to be non-empty array");if("object"!==typeof t||!t.length)throw e;var n=t.map((function(t){return"bytes"===t.type?s.toBuffer(t.value):t.value})),r=t.map((function(t){return t.type})),i=t.map((function(t){if(!t.name)throw e;return t.type+" "+t.name}));return u.soliditySHA3(["bytes32","bytes32"],[u.soliditySHA3(new Array(t.length).fill("string"),i),u.soliditySHA3(r,n)])}(t.data)},hashForSignTypedData_v3:function(t){return c.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return c.hash(t.data)}}},94076:function(t,e,n){var r=n(97429).Buffer,i=n(82138),o=n(35974);function s(t){return r.allocUnsafe(t).fill(0)}function u(t,e,n){var r=s(e);return t=a(t),n?t.length<e?(t.copy(r),r):t.slice(0,e):t.length<e?(t.copy(r,e-t.length),r):t.slice(-e)}function a(t){if(!r.isBuffer(t))if(Array.isArray(t))t=r.from(t);else if("string"===typeof t)t=c(t)?r.from((e=h(t)).length%2?"0"+e:e,"hex"):r.from(t);else if("number"===typeof t)t=intToBuffer(t);else if(null===t||void 0===t)t=r.allocUnsafe(0);else if(o.isBN(t))t=t.toArrayLike(r);else{if(!t.toArray)throw new Error("invalid type");t=r.from(t.toArray())}var e;return t}function c(t){return"string"===typeof t&&t.match(/^0x[0-9A-Fa-f]*$/)}function h(t){return"string"===typeof t&&t.startsWith("0x")?t.slice(2):t}t.exports={zeros:s,setLength:u,setLengthRight:function(t,e){return u(t,e,!0)},isHexString:c,stripHexPrefix:h,toBuffer:a,bufferToHex:function(t){return"0x"+(t=a(t)).toString("hex")},keccak:function(t,e){return t=a(t),e||(e=256),i("keccak"+e).update(t).digest()}}},77793:function(t){function e(t){this.mode=r.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,n=this.data.length;e<n;e++){var i=[],o=this.data.charCodeAt(e);o>65536?(i[0]=240|(1835008&o)>>>18,i[1]=128|(258048&o)>>>12,i[2]=128|(4032&o)>>>6,i[3]=128|63&o):o>2048?(i[0]=224|(61440&o)>>>12,i[1]=128|(4032&o)>>>6,i[2]=128|63&o):o>128?(i[0]=192|(1984&o)>>>6,i[1]=128|63&o):i[0]=o,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function n(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}e.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e<n;e++)t.put(this.parsedData[e],8)}},n.prototype={addData:function(t){var n=new e(t);this.dataList.push(n),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=m.getLostPoint(this);(0==n||t>r)&&(t=r,e=n)}return e},createMovieClip:function(t,e,n){var r=t.createEmptyMovieClip(e,n);this.make();for(var i=0;i<this.modules.length;i++)for(var o=1*i,s=0;s<this.modules[i].length;s++){var u=1*s;this.modules[i][s]&&(r.beginFill(0,100),r.moveTo(u,o),r.lineTo(u+1,o),r.lineTo(u+1,o+1),r.lineTo(u,o+1),r.endFill())}return r},setupTimingPattern:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)},setupPositionAdjustPattern:function(){for(var t=m.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var n=0;n<t.length;n++){var r=t[e],i=t[n];if(null==this.modules[r][i])for(var o=-2;o<=2;o++)for(var s=-2;s<=2;s++)this.modules[r+o][i+s]=-2==o||2==o||-2==s||2==s||0==o&&0==s}},setupTypeNumber:function(t){for(var e=m.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!t&&1==(e>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++){r=!t&&1==(e>>n&1);this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,r=m.getBCHTypeInfo(n),i=0;i<15;i++){var o=!t&&1==(r>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!t&&1==(r>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,r=this.moduleCount-1,i=7,o=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[r][s-u]){var a=!1;o<t.length&&(a=1==(t[o]>>>i&1)),m.getMask(e,r,s-u)&&(a=!a),this.modules[r][s-u]=a,-1==--i&&(o++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(t,e,r){for(var i=w.getRSBlocks(t,e),o=new _,s=0;s<r.length;s++){var u=r[s];o.put(u.mode,4),o.put(u.getLength(),m.getLengthInBits(u.mode,t)),u.write(o)}var a=0;for(s=0;s<i.length;s++)a+=i[s].dataCount;if(o.getLengthInBits()>8*a)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*a+")");for(o.getLengthInBits()+4<=8*a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*a)&&(o.put(n.PAD0,8),!(o.getLengthInBits()>=8*a));)o.put(n.PAD1,8);return n.createBytes(o,i)},n.createBytes=function(t,e){for(var n=0,r=0,i=0,o=new Array(e.length),s=new Array(e.length),u=0;u<e.length;u++){var a=e[u].dataCount,c=e[u].totalCount-a;r=Math.max(r,a),i=Math.max(i,c),o[u]=new Array(a);for(var h=0;h<o[u].length;h++)o[u][h]=255&t.buffer[h+n];n+=a;var l=m.getErrorCorrectPolynomial(c),f=new b(o[u],l.getLength()-1).mod(l);s[u]=new Array(l.getLength()-1);for(h=0;h<s[u].length;h++){var d=h+f.getLength()-s[u].length;s[u][h]=d>=0?f.get(d):0}}var p=0;for(h=0;h<e.length;h++)p+=e[h].totalCount;var v=new Array(p),y=0;for(h=0;h<r;h++)for(u=0;
vendor: 4,320 bytes, line 2
2u<e.length;u++)h<o[u].length&&(v[y++]=o[u][h]);for(h=0;h<i;h++)for(u=0;u<e.length;u++)h<s[u].length&&(v[y++]=s[u][h]);return v};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i=1,o=0,s=3,u=2,a=0,c=1,h=2,l=3,f=4,d=5,p=6,v=7,m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(t){for(var e=t<<10;m.getBCHDigit(e)-m.getBCHDigit(m.G15)>=0;)e^=m.G15<<m.getBCHDigit(e)-m.getBCHDigit(m.G15);return(t<<10|e)^m.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;m.getBCHDigit(e)-m.getBCHDigit(m.G18)>=0;)e^=m.G18<<m.getBCHDigit(e)-m.getBCHDigit(m.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return m.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case a:return(e+n)%2==0;case c:return e%2==0;case h:return n%3==0;case l:return(e+n)%3==0;case f:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case d:return e*n%2+e*n%3==0;case p:return(e*n%2+e*n%3)%2==0;case v:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new b([1],0),n=0;n<t;n++)e=e.multiply(new b([1,y.gexp(n)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),n=0,r=0;r<e;r++)for(var i=0;i<e;i++){for(var o=0,s=t.isDark(r,i),u=-1;u<=1;u++)if(!(r+u<0||e<=r+u))for(var a=-1;a<=1;a++)i+a<0||e<=i+a||0==u&&0==a||s==t.isDark(r+u,i+a)&&o++;o>5&&(n+=3+o-5)}for(r=0;r<e-1;r++)for(i=0;i<e-1;i++){var c=0;t.isDark(r,i)&&c++,t.isDark(r+1,i)&&c++,t.isDark(r,i+1)&&c++,t.isDark(r+1,i+1)&&c++,0!=c&&4!=c||(n+=3)}for(r=0;r<e;r++)for(i=0;i<e-6;i++)t.isDark(r,i)&&!t.isDark(r,i+1)&&t.isDark(r,i+2)&&t.isDark(r,i+3)&&t.isDark(r,i+4)&&!t.isDark(r,i+5)&&t.isDark(r,i+6)&&(n+=40);for(i=0;i<e;i++)for(r=0;r<e-6;r++)t.isDark(r,i)&&!t.isDark(r+1,i)&&t.isDark(r+2,i)&&t.isDark(r+3,i)&&t.isDark(r+4,i)&&!t.isDark(r+5,i)&&t.isDark(r+6,i)&&(n+=40);var h=0;for(i=0;i<e;i++)for(r=0;r<e;r++)t.isDark(r,i)&&h++;return n+=10*(Math.abs(100*h/e/e-50)/5)}},y={glog:function(t){if(t<1)throw new Error("glog("+t+")");return y.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return y.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},g=0;g<8;g++)y.EXP_TABLE[g]=1<<g;for(g=8;g<256;g++)y.EXP_TABLE[g]=y.EXP_TABLE[g-4]^y.EXP_TABLE[g-5]^y.EXP_TABLE[g-6]^y.EXP_TABLE[g-8];for(g=0;g<255;g++)y.LOG_TABLE[y.EXP_TABLE[g]]=g;function b(t,e){if(void 0==t.length)throw new Error(t.length+"/"+e);for(var n=0;n<t.length&&0==t[n];)n++;this.num=new Array(t.length-n+e);for(var r=0;r<t.length-n;r++)this.num[r]=t[r+n]}function w(t,e){this.totalCount=t,this.dataCount=e}function _(){this.buffer=[],this.length=0}b.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<t.getLength();r++)e[n+r]^=y.gexp(y.glog(this.get(n))+y.glog(t.get(r)));return new b(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=y.glog(this.get(0))-y.glog(t.get(0)),n=new Array(this.getLength()),r
vendor: 4,274 bytes, line 2
2=0;r<this.getLength();r++)n[r]=this.get(r);for(r=0;r<t.getLength();r++)n[r]^=y.gexp(y.glog(t.get(r))+e);return new b(n,0).mod(t)}},w.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],w.getRSBlocks=function(t,e){var n=w.getRsBlockTable(t,e);if(void 0==n)throw new Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var r=n.length/3,i=[],o=0;o<r;o++)for(var s=n[3*o+0],u=n[3*o+1],a=n[3*o+2],c=0;c<s;c++)i.push(new w(u,a));return i},w.getRsBlockTable=function(t,e){switch(e){case i:return w.RS_BLOCK_TABLE[4*(t-1)+0];case o:return w.RS_BLOCK_TABLE[4*(t-1)+1];case s:return w.RS_BLOCK_TABLE[4*(t-1)+2];case u:return w.RS_BLOCK_TABLE[4*(t-1)+3];default:return}},_.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var M=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,71
25,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function k(t){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"===typeof t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!==typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var r=this.options.content,a=function(t,e){for(var n=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),r=1,i=0,o=0,s=M.length;o<=s;o++){var u=M[o];if(!u)throw new Error("Content too long: expected "+i+" but got "+n);switch(e){case"L":i=u[0];break;case"M":i=u[1];break;case"Q":i=u[2];break;case"H":i=u[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(n<=i)break;r++}if(r>M.length)throw new Error("Content too long");return r}(r,this.options.ecl),c=function(t){switch(t){case"L":return i;case"M":return o;case"Q":return s;case"H":return u;default:throw new Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new n(a,c),this.qrcode.addData(r),this.qrcode.make()}k.prototype.svg=function(t){var e=this.options||{},n=this.qrcode.modules;"undefined"==typeof t&&(t={container:e.container||"svg"});for(var r="undefined"==typeof e.pretty||!!e.pretty,i=r?" ":"",o=r?"\r\n":"",s=e.width,u=e.height,a=n.length,c=s/(a+2*e.padding),h=u/(a+2*e.padding),l="undefined"!=typeof e.join&&!!e.join,f="undefined"!=typeof e.swap&&!!e.swap,d="undefined"==typeof e.xmlDeclaration||!!e.xmlDeclaration,p="undefined"!=typeof e.predefined&&!!e.predefined,v=p?i+'<defs><path id="qrmodule" d="M0 0 h'+h+" v"+c+' H0 z" style="fill:'+e.color+';shape-rendering:crispEdges;" /></defs>'+o:"",m=i+'<rect x="0" y="0" width="'+s+'" height="'+u+'" style="fill:'+e.background+';shape-rendering:crispEdges;"/>'+o,y="",g="",b=0;b<a;b++)for(var w=0;w<a;w++){if(n[w][b]){var _=w*c+e.padding*c,M=b*h+e.padding*h;if(f){var k=_;_=M,M=k}if(l){var x=c+_,S=h+M;_=Number.isInteger(_)?Number(_):_.toFixed(2),M=Number.isInteger(M)?Number(M):M.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),g+="M"+_+","+M+" V"+(S=Number.isInteger(S)?Number(S):S.toFixed(2))+" H"+x+" V"+M+" H"+_+" Z "}else y+=p?i+'<use x="'+_.toString()+'" y="'+M.toString()+'" href="#qrmodule" />'+o:i+'<rect x="'+_.toString()+'" y="'+M.toString()+'" width="'+c+'" height="'+h+'" style="fill:'+e.color+';shape-rendering:crispEdges;"/>'+o}}l&&(y=i+'<path x="0" y="0" style="fill:'+e.color+';shape-rendering:crispEdges;" d="'+g+'" />');var E="";if(void 0!==this.options.image&&this.options.image.svg){var C=s*this.options.image.width/100,A=u*this.options.image.height/100,I=u/2-A/2;E+='<svg x="'.concat(s/2-C/2,'" y="').concat(I,'" width="').concat(C,'" height="').concat(A,'" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">'),E+=this.options.image.svg+o,E+="</svg>"}var T="";switch(t.container){case"svg":d&&(T+='<?xml version="1.0" standalone="yes"?>'+o),T+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+s+'" height="'+u+'">'+o,T+=v+m+y,T+=E,T+="</svg>";break;case"svg-viewbox":d&&(T+='<?xml version="1.0" standalone="yes"?>'+o),T+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+s+" "+u+'">'+o,T+=v+m+y,T+=E,T+="</svg>";break;case"g":T+='<g width="'+s+'" height="'+u+'">'+o,T+=v+m+y,T+=E,T+="</g>";break;default:T+=(v+m+y+E).replace(/^\s+/,"")}return T},t.exports=k},21787:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LIB_VERSION=void 0,e.LIB_VERSION="3.5.1"},35974:function(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;
vendor: 4,361 bytes, line 2
2"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s=n(12769).Buffer}catch(C){}function u(t,e,n){for(var i=0,o=Math.min(t.length,n),s=0,u=e;u<o;u++){var a,c=t.charCodeAt(u)-48;i<<=4,i|=a=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,s|=a}return r(!(240&s),"Invalid character in "+t),i}function a(t,e,n,i){for(var o=0,s=0,u=Math.min(t.length,n),a=e;a<u;a++){var c=t.charCodeAt(a)-48;o*=i,s=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&s<i,"Invalid character"),o+=s}return o}function c(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,u=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=u(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=u(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,u=Math.min(o,o-s)+n,c=0,h=n;h<u;h+=r)c=a(t,h,h+r,e),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var l=1;for(c=a(t,h,t.length,e),h=0;h<s;h++)l*=e;this.imuln(l),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){c(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)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},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(C){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var l=["","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"],f=[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],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 13,009 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var u=this.words[s],a=(16777215&(u<<i|o)).toString(16);n=0!==(o=u>>>24-i&16777215)||s!==this.length-1?l[6-a.length]+a+n:a+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],h=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modrn(h).toString(t);n=(p=p.idivn(h)).isZero()?v+n:l[c-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,u=67108863&s,a=s/67108864|0;n.words[0]=u;for(var c=1;c<r;c++){for(var h=a>>>26,l=67108863&a,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;h+=(s=(i=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&s}n.words[c]=0|l,a=0|h}return 0!==a?n.words[c]=0|a:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n++]=255&s,n<t.length&&(t[n++]=s>>8&255),n<t.length&&(t[n++]=s>>16&255),6===o?(n<t.length&&(t[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n--]=255&s,n>=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===o?(n>=0&&(t[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(e=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<n.length;s++)o=(e=(0|n.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var v=function(t,e,n){var r,i,o,s=t.words,u=e.words,a=n.words,c=0,h=0|s[0],l=8191&h,f=h>>>13,d=0|s[1],p=8191&d,v=d>>>13,m=0|s[2],y=8191&m,g=m>>>13,b=0|s[3],w=8191&b,_=b>>>13,M=0|s[4],k=8191&M,x=M>>>13,S=0|s[5],E=8191&S,C=S>>>13,A=0|s[6],I=8191&A,T=A>>>13,N=0|s[7],R=8191&N,O=N>>>13,j=0|s[8],P=8191&j,L=j>>>13,D=0|s[9],B=8191&D,F=D>>>13,z=0|u[0],U=8191&z,W=z>>>13,H=0|u[1],V=8191&H,q=H>>>13,Z=0|u[2],K=8191&Z,Y=Z>>>13,G=0|u[3],J=8191&G,Q=G>>>13,$=0|u[4],X=8191&$,tt=$>>>13,et=0|u[5],nt=8191&et,rt=et>>>13,it=0|u[6],ot=8191&it,st=it>>>13,ut=0|u[7],at=8191&ut,ct=ut>>>13,ht=0|u[8],lt=8191&ht,ft=ht>>>13,dt=0|u[9],pt=8191&dt,vt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(l,U))|0)+((8191&(i=(i=Math.imul(l,W))+Math.imul(f,U)|0))<<13)|0;c=((o=Math.imul(f,W))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(v,U)|0,o=Math.imul(v,W);var yt=(c+(r=r+Math.imul(l,V)|0)|0)+((8191&(i=(i=i+Math.imul(l,q)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(g,U)|0,o=Math.imul(g,W),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,q)|0;var gt=(c+(r=r+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(f,K)|0))<<13)|0;c=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,W))+Math.imul(_,U)|0,o=Math.imul(_,W),r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,q)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,Y)|0;var bt=(c+(r=r+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Q)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(k,U),i=(i=Math.imul(k,W))+Math.imul(x,U)|0,o=Math.imul(x,W),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Q)|0;var wt=(c+(r=r+Math.imul(l,X)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,W))+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,q)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Q)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,tt)|0;var _t=(c+(r=r+Math.imul(l,nt)|0)|0)+((8191&(i=(i=i+Math.imul(l,rt)|0)+Math.imul(f,nt)|0))<<13)|0;c=((o=o+Math.imul(f,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(I,U),i=(i=Math.imul(I,W))+Math.imul(T,U)|0,o=Math.imul(T,W),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Q)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0;var Mt=(c+(r=r+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,st)|0)+Math.imul(f,ot)|0))<<13)|0;c=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,W))+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Q)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(g,nt)|0,o=o+Math.imul(g,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0;var kt=(c+(r=r+Math.imul(l,at)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(f,at)|0))<<13)|0;c=((o=o+Math.imul(f,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Q)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,st)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,r=r+Math.imul(p,at)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,at)|0,o=o+Math.imul(v,ct)|0;var xt=(c+(r=r+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ft)|0)+Math.imul(f,lt)|0))<<13)|0;c=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,U),i=(i=Math.imul(B,W))+Math.imul(F,U)|0,o=Math.imul(F,W),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Q)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,st)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,r=r+Math.imul(y,at)|0,i=(i=i+Math.imul(y,
vendor: 2,617 bytes, line 2
2ct)|0)+Math.imul(g,at)|0,o=o+Math.imul(g,ct)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,ft)|0;var St=(c+(r=r+Math.imul(l,pt)|0)|0)+((8191&(i=(i=i+Math.imul(l,vt)|0)+Math.imul(f,pt)|0))<<13)|0;c=((o=o+Math.imul(f,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,q))+Math.imul(F,V)|0,o=Math.imul(F,q),r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Q)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,r=r+Math.imul(w,at)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,at)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(g,lt)|0,o=o+Math.imul(g,ft)|0;var Et=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(F,K)|0,o=Math.imul(F,Y),r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,Q)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(k,at)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(x,at)|0,o=o+Math.imul(x,ct)|0,r=r+Math.imul(w,lt)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,lt)|0,o=o+Math.imul(_,ft)|0;var Ct=(c+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,vt)|0)+Math.imul(g,pt)|0))<<13)|0;c=((o=o+Math.imul(g,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,Q))+Math.imul(F,J)|0,o=Math.imul(F,Q),r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,st)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,r=r+Math.imul(E,at)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(C,at)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ft)|0;var At=(c+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,tt))+Math.imul(F,X
vendor: 23,500 bytes, line 2
2)|0,o=Math.imul(F,tt),r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(T,at)|0,o=o+Math.imul(T,ct)|0,r=r+Math.imul(E,lt)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ft)|0;var It=(c+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(x,pt)|0))<<13)|0;c=((o=o+Math.imul(x,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(R,at)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(O,at)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ft)|0)+Math.imul(T,lt)|0,o=o+Math.imul(T,ft)|0;var Tt=(c+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(F,ot)|0,o=Math.imul(F,st),r=r+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(L,at)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ft)|0;var Nt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,at),i=(i=Math.imul(B,ct))+Math.imul(F,at)|0,o=Math.imul(F,ct),r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(L,lt)|0,o=o+Math.imul(L,ft)|0;var Rt=(c+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,vt)|0)+Math.imul(O,pt)|0))<<13)|0;c=((o=o+Math.imul(O,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(B,lt),i=(i=Math.imul(B,ft))+Math.imul(F,lt)|0,o=Math.imul(F,ft);var Ot=(c+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var jt=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,a[0]=mt,a[1]=yt,a[2]=gt,a[3]=bt,a[4]=wt,a[5]=_t,a[6]=Mt,a[7]=kt,a[8]=xt,a[9]=St,a[10]=Et,a[11]=Ct,a[12]=At,a[13]=It,a[14]=Tt,a[15]=Nt,a[16]=Rt,a[17]=Ot,a[18]=jt,0!==c&&(a[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var u=67108863&r,a=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=a;c++){var h=o-c,l=(0|t.words[h])*(0|e.words[c]),f=67108863&l;u=67108863&(f=f+u|0),i+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}n.words[o]=u,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(t,e,n){return m(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(v=p),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):y(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},g.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s<o;s++)r[s]=e[t[s]],i[s]=n[t[s]]},g.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var s=1;s<i;s<<=1)for(var u=s<<1,a=Math.cos(2*Math.PI/u),c=Math.sin(2*Math.PI/u),h=0;h<i;h+=u)for(var l=a,f=c,d=0;d<s;d++){var p=n[h+d],v=r[h+d],m=n[h+d+s],y=r[h+d+s],g=l*m-f*y;y=l*y+f*m,m=g,n[h+d]=p+m,r[h+d]=v+y,n[h+d+s]=p-m,r[h+d+s]=v-y,d!==u&&(g=a*l-c*f,f=a*f+c*l,l=g)}},g.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},g.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,n,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)n[s]=0;r(0===o),r(0===(-8192&o))},g.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},g.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),u=new Array(r),a=new Array(r),c=new Array(r),h=new Array(r),l=new Array(r),f=n.words;f.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,c,r),this.transform(s,o,u,a,r,i),this.transform(c,o,h,l,r,i);for(var d=0;d<r;d++){var p=u[d]*h[d]-a[d]*l[d];a[d]=u[d]*l[d]+a[d]*h[d],u[d]=p}return this.conjugate(u,a,r),this.transform(u,a,f,o,r,i),this.conjugate(f,o,r),this.normalize13b(f,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),y(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"===typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=t.words[r]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,a=(0|this.words[e])-u<<n;this.words[e]=a|s,s=u>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,a=n;if(i-=s,i=Math.max(0,i),a){for(var c=0;c<s;c++)a.words[c]=this.words[c];a.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;c>=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&u}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+u;var a=(0|t.words[i])*e;u=((o-=67108863&a)>>26)-(a/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)u=(o=(0|this.words[i+n])+u)>>26,this.words[i+n]=67108863&o;if(0===u)return this._strip();for(r(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var u,a=r.length-i.length;if("mod"!==e){(u=new o(null)).length=a+1,u.words=new Array(u.length);for(var c=0;c<u.length;c++)u.words[c]=0}var h=r.clone()._ishlnsubmul(i,1,a);0===h.negative&&(r=h,u&&(u.words[a]=1));for(var l=a-1;l>=0;l--){var f=67108864*(0|r.words[i.length+l])+(0|r.words[i.length+l-1]);for(f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,l);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,l),r.isZero()||(r.negative^=1);u&&(u.words[l]=f)}return u&&u._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(s=u.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!==(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(s=u.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),u=new o(0),a=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var h=n.clone(),l=e.clone();!e.isZero();){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(u.isOdd()||a.isOdd())&&(u.iadd(h),a.isub(l)),u.iushrn(1),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(u),s.isub(a)):(n.isub(e),u.isub(i),a.isub(s))}return{a:u,b:a,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,s=new o(1),u=new o(0),a=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var l=0,f=1;0===(n.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(n.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(a),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(u)):(n.isub(e),u.isub(s))}return(i=0===e.cmpn(1)?s:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var u=0|this.words[s];o=(u+=o)>>>26,u&=67108863,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){S.call(this,t),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)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(_,w),_.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(M,w),i(k,w),i(x,w),x.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new M;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return b[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var u=new o(1).toRed(this),a=u.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,c).cmp(a);)h.redIAdd(a);for(var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(u);){for(var v=d,m=0;0!==v.cmp(u);m++)v=v.redSqr();r(m<p);var y=this.pow(l,new o(1).iushln(p-m-1));f=f.redMul(y),l=y.redSqr(),d=d.redMul(l),p=m}return f},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],s=0,u=0,a=e.bitLength()%26;for(0===a&&(a=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],h=a-1;h>=0;h--){var l=c>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==l||0!==s?(s<<=1,s|=l,(4===++u||0===r&&0===h)&&(i=this.mul(i,n[s]),u=0,s=0)):u=0}a=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,S),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>
2=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},88815:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default,o=n(61655).default,s=n(26389).default,u=n(33496).default;Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;var a=n(59431),c=function(t){o(n,t);var e=s(n);function n(t,i,o){var s;if(r(this,n),!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!i||"string"!==typeof i)throw new Error('"message" must be a nonempty string.');return(s=e.call(this,i)).code=t,void 0!==o&&(s.data=o),s}return i(n,[{key:"serialize",value:function(){var t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}},{key:"toString",value:function(){return a.default(this.serialize(),l,2)}}]),n}(u(Error));e.EthereumRpcError=c;var h=function(t){o(n,t);var e=s(n);function n(t,i,o){if(r(this,n),!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return e.call(this,t,i,o)}return i(n)}(c);function l(t,e){if("[Circular]"!==e)return e}e.EthereumProviderError=h},36903:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},e.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},56449:function(t,e,n){"use strict";var r=n(27424).default;Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;var i=n(88815),o=n(99869),s=n(36903);function u(t,e){var n=c(e),s=r(n,2),u=s[0],a=s[1];return new i.EthereumRpcError(t,u||o.getMessageFromCode(t),a)}function a(t,e){var n=c(e),s=r(n,2),u=s[0],a=s[1];return new i.EthereumProviderError(t,u||o.getMessageFromCode(t),a)}function c(t){if(t){if("string"===typeof t)return[t];if("object"===typeof t&&!Array.isArray(t)){var e=t.message,n=t.data;
2if(e&&"string"!==typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}e.ethErrors={rpc:{parse:function(t){return u(s.errorCodes.rpc.parse,t)},invalidRequest:function(t){return u(s.errorCodes.rpc.invalidRequest,t)},invalidParams:function(t){return u(s.errorCodes.rpc.invalidParams,t)},methodNotFound:function(t){return u(s.errorCodes.rpc.methodNotFound,t)},internal:function(t){return u(s.errorCodes.rpc.internal,t)},server:function(t){if(!t||"object"!==typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");var e=t.code;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return u(e,t)},invalidInput:function(t){return u(s.errorCodes.rpc.invalidInput,t)},resourceNotFound:function(t){return u(s.errorCodes.rpc.resourceNotFound,t)},resourceUnavailable:function(t){return u(s.errorCodes.rpc.resourceUnavailable,t)},transactionRejected:function(t){return u(s.errorCodes.rpc.transactionRejected,t)},methodNotSupported:function(t){return u(s.errorCodes.rpc.methodNotSupported,t)},limitExceeded:function(t){return u(s.errorCodes.rpc.limitExceeded,t)}},provider:{userRejectedRequest:function(t){return a(s.errorCodes.provider.userRejectedRequest,t)},unauthorized:function(t){return a(s.errorCodes.provider.unauthorized,t)},unsupportedMethod:function(t){return a(s.errorCodes.provider.unsupportedMethod,t)},disconnected:function(t){return a(s.errorCodes.provider.disconnected,t)},chainDisconnected:function(t){return a(s.errorCodes.provider.chainDisconnected,t)},custom:function(t){if(!t||"object"!==typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");var e=t.code,n=t.message,r=t.data;if(!n||"string"!==typeof n)throw new Error('"message" must be a nonempty string');return new i.EthereumProviderError(e,n,r)}}}},51956:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;var r=n(88815);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});var i=n(99869);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});var o=n(56449);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});var s=n(36903);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return s.errorCodes}})},99869:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var r=n(36903),i=n(88815),o=r.errorCodes.rpc.internal,s="Unspecified error message. This is a bug, please report it.",u={code:o,message:a(o)};function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if(Number.isInteger(t)){var i=t.toString();if(f(r.errorValues,i))return r.errorValues[i].message;if(h(t))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function c(t){if(!Number.isInteger(t))return!1;var e=t.toString();return!!r.errorValues[e]||!!h(t)}function h(t){return t>=-32099&&t<=-32e3}function l(t){return t&&"object"===typeof t&&!Array.isArray(t)?Object.assign({},t):t}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=a,e.isValidCode=c,e.serializeError=function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.fallbackError,s=void 0===o?u:o,h=r.shouldIncludeStack,d=void 0!==h&&h;if(!s||!Number.isInteger(s.code)||"string"!==typeof s.message)throw new Error("Mu
2st provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();var p={};if(t&&"object"===typeof t&&!Array.isArray(t)&&f(t,"code")&&c(t.code)){var v=t;p.code=v.code,v.message&&"string"===typeof v.message?(p.message=v.message,f(v,"data")&&(p.data=v.data)):(p.message=a(p.code),p.data={originalError:l(t)})}else{p.code=s.code;var m=null===(e=t)||void 0===e?void 0:e.message;p.message=m&&"string"===typeof m?m:s.message,p.data={originalError:l(t)}}var y=null===(n=t)||void 0===n?void 0:n.stack;return d&&t&&y&&"string"===typeof y&&(p.stack=y),p}},71669:function(t){"use strict";var e=String.prototype.replace,n=/%20/g,r="RFC1738",i="RFC3986";t.exports={default:i,formatters:{RFC1738:function(t){return e.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:r,RFC3986:i}},2848:function(t,e,n){"use strict";var r=n(47165),i=n(11720),o=n(71669);t.exports={formats:o,parse:i,stringify:r}},11720:function(t,e,n){"use strict";var r=n(97004),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},a=function(t,e){return t&&"string"===typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=u?o.slice(0,u.index):o,h=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;h.push(c)}for(var l=0;n.depth>0&&null!==(u=s.exec(o))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;h.push(u[1])}return u&&h.push("["+o.slice(u.index)+"]"),function(t,e,n,r){for(var i=r?e:a(e,n),o=t.length-1;o>=0;--o){var s,u=t[o];if("[]"===u&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,h=parseInt(c,10);n.parseArrays||""!==c?!isNaN(h)&&u!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(s=[])[h]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i}(h,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return s;if(null!==t.decoder&&void 0!==t.decoder&&"function"!==typeof t.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e="undefined"===typeof t.charset?s.charset:t.charset;return{allowDots:"undefined"===typeof t.allowDots?s.allowDots:!!t.allowDots,allowPrototypes:"boolean"===typeof t.allowPrototypes?t.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"===typeof t.allowSparse?t.allowSparse:s.allowSparse,arrayLimit:"number"===typeof t.arrayLimit?t.arrayLimit:s.arrayLimit,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:s.charsetSentinel,comma:"boolean"===typeof t.comma?t.comma:s.comma,decoder:"function"===typeof t.decoder?t.decoder:s.decoder,delimiter:"string"===typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:s.delimiter,depth:"number"===typeof t.depth||!1===t.depth?+t.depth:s.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof t.interpretNumericEntities?t.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"===typeof t.parameterLimit?t.parameterLimit:s.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"===typeof t.plainObjects?t.plainObjects:s.plainObjects,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:s.strictNullHandling}}(e);if(""===t||null===t||"undefined"===typeof t)return n.plainObjects?Object.create(null):{};for(var h="string"===typeof t?function(t,e){var n,c={},h=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=h.split(e.delimiter,l),d=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n<f.length;++n)0===f[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[n]?p="utf-8":"utf8=%26%2310003%3B"===f[n]&&(p="iso-8859-1"),d=n,n=f.length);for(n=0;n<f.length;++n)if(n!==d){var v,m,y=f[n],g=y.indexOf("]="),b=-1===g?y.indexOf("="):g+1;-1===b?(v=e.decoder(y,s.decoder,p,"key"),m=e.strictNullHandling?null:""):(v=e.decoder(y.slice(0,b),s.decoder,p,"key"),m=r.maybeMap(a(y.slice(b+1),e),(function(t){return e.decoder(t,s.decoder,p,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===p&&(m=u(m)),y.indexOf("[]=")>-1&&(m=o(m)?[m]:m),i.call(c,v)?c[v]=r.combine(c[v],m):c[v]=m}return c}(t,n):t,l=n.plainObjects?Object.create(null):{},f=Object.keys(h),d=0;d<f.length;++d){var p=f[d],v=c(p,h[p],n,"string"===typeof t);l=r.merge(l,v,n)}return!0===n.allowSparse?l:r.compact(l)}},47165:function(t,e,n){"use strict";var r=n(43472),i=n(97004),o=n(71669),s=Object.prototype.hasOwnProperty,u={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=String.prototype.split,h=Array.prototype.push,l=function(t,e){h.apply(t,a(e)?e:[e])},f=Date.prototype.toISOString,d=o.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},v={},m=function t(e,n,o,s,u,h,f,d,m,y,g,b,w,_,M){for(var k,x=e,S=M,E=0,C=!1;void 0!==(S=S.get(v))&&!C;){var A=S.get(e);if(E+=1,"undefined"!==typeof A){if(A===E)throw new RangeError("Cyclic object value");C=!0}"undefined"===typeof S.get(v)&&(E=0)}if("function"===typeof f?x=f(n,x):x instanceof Date?x=y(x):"comma"===o&&a(x)&&(x=i.maybeMap(x,(function(t){return t instanceof Date?y(t):t}
2))),null===x){if(s)return h&&!w?h(n,p.encoder,_,"key",g):n;x=""}if("string"===typeof(k=x)||"number"===typeof k||"boolean"===typeof k||"symbol"===typeof k||"bigint"===typeof k||i.isBuffer(x)){if(h){var I=w?n:h(n,p.encoder,_,"key",g);if("comma"===o&&w){for(var T=c.call(String(x),","),N="",R=0;R<T.length;++R)N+=(0===R?"":",")+b(h(T[R],p.encoder,_,"value",g));return[b(I)+"="+N]}return[b(I)+"="+b(h(x,p.encoder,_,"value",g))]}return[b(n)+"="+b(String(x))]}var O,j=[];if("undefined"===typeof x)return j;if("comma"===o&&a(x))O=[{value:x.length>0?x.join(",")||null:void 0}];else if(a(f))O=f;else{var P=Object.keys(x);O=d?P.sort(d):P}for(var L=0;L<O.length;++L){var D=O[L],B="object"===typeof D&&"undefined"!==typeof D.value?D.value:x[D];if(!u||null!==B){var F=a(x)?"function"===typeof o?o(n,D):n:n+(m?"."+D:"["+D+"]");M.set(e,E);var z=r();z.set(v,M),l(j,t(B,F,o,s,u,h,f,d,m,y,g,b,w,_,z))}}return j};t.exports=function(t,e){var n,i=t,c=function(t){if(!t)return p;if(null!==t.encoder&&"undefined"!==typeof t.encoder&&"function"!==typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if("undefined"!==typeof t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if("undefined"!==typeof t.format){if(!s.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],i=p.filter;return("function"===typeof t.filter||a(t.filter))&&(i=t.filter),{addQueryPrefix:"boolean"===typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:"undefined"===typeof t.allowDots?p.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"===typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,delimiter:"undefined"===typeof t.delimiter?p.delimiter:t.delimiter,encode:"boolean"===typeof t.encode?t.encode:p.encode,encoder:"function"===typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"===typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"===typeof t.sort?t.sort:null,strictNullHandling:"boolean"===typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}}(e);"function"===typeof c.filter?i=(0,c.filter)("",i):a(c.filter)&&(n=c.filter);var h,f=[];if("object"!==typeof i||null===i)return"";h=e&&e.arrayFormat in u?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=u[h];n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var v=r(),y=0;y<n.length;++y){var g=n[y];c.skipNulls&&null===i[g]||l(f,m(i[g],g,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,v))}var b=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),b.length>0?w+b:""}},97004:function(t,e,n){"use strict";var r=n(71669),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),u=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)"undefined"!==typeof t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:u,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],s=i.obj[i.prop],u=Object.keys(s),a=0;a<u.length;++a){var c=u[a],h=s[c];"object"===typeof h&&null!==h&&-1===n.indexOf(h)&&(e.push({obj:s,prop:c}),n.push(h))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&r.push(n[i]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},encode:function(t,e,n,i,o){if(0===t.length)return t;var u=t;if("symbol"===typeof t?u=Symbol.prototype.toString.call(t):"string"!==typeof t&&(u=String(t)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var a="",c=0;c<u.length;++c){var h=u.charCodeAt(c);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===r.RFC1738&&(40===h||41===h)?a+=u.charAt(c):h<128?a+=s[h]:h<2048?a+=s[192|h>>6]+s[128|63&h]:h<55296||h>=57344?a+=s[224|h>>12]+s[128|h>>6&63]+s[128|63&h]:(c+=1,h=65536+((1023&h)<<10|1023&u.charCodeAt(c)),a+=s[240|h>>18]+s[128|h>>12&63]+s[128|h>>6&63]+s[128|63&h])}return a},isBuffer:function(t){return!(!t||"object"!==typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;r<t.length;r+=1)n.push(e(t[r]));return n}return e(t)},merge:function t(e,n,r){if(!n)return e;if("object"!==typeof n){if(o(e))e.push(n);else{if(!e||"object"!==typeof e)return[e,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!==typeof e)return[e].concat(n);var s=e;return o(e)&&!o(n)&&(s=u(e,r)),o(e)&&o(n)?(n.forEach((function(n,o){if(i.call(e,o)){var s=e[o];s&&"object"===typeof s&&n&&"object"===typeof n?e[o]=t(s,n,r):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return i.call(e,o)?e[o]=t(e[o],s,r):e[o]=s,e}),s)}}},28050:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default,o=n(61655).default,s=n(26389).default;function u(t,e,n){try{Reflect.apply(t,e,n)}catch(r){setTimeout((function(){throw r}))}}function a(t){for(var e=t.length,n=new Array(e),r=0;r<e;r+=1)n[r]=t[r];return n}
2Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){o(n,t);var e=s(n);function n(){return r(this,n),e.apply(this,arguments)}return i(n,[{key:"emit",value:function(t){var e="error"===t,n=this._events;if(void 0!==n)e=e&&void 0===n.error;else if(!e)return!1;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(e){var s;if(i.length>0&&(s=i[0]),s instanceof Error)throw s;var c=new Error("Unhandled error.".concat(s?" (".concat(s.message,")"):""));throw c.context=s,c}var h=n[t];if(void 0===h)return!1;if("function"===typeof h)u(h,this,i);else for(var l=h.length,f=a(h),d=0;d<l;d+=1)u(f[d],this,i);return!0}}]),n}(n(36571).EventEmitter);e.default=c},55959:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67645),i=n(50249),o=function(){function t(){this._semaphore=new i.default(1)}return t.prototype.acquire=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=e.sent(),[2,t[1]]}}))}))},t.prototype.runExclusive=function(t){return this._semaphore.runExclusive((function(){return t()}))},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t}();e.default=o},50249:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(67645),i=function(){function t(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return t.prototype.acquire=function(){var t=this,e=this.isLocked(),n=new Promise((function(e){return t._queue.push(e)}));return e||this._dispatch(),n},t.prototype.runExclusive=function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n,i;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.acquire()];case 1:e=r.sent(),n=e[0],i=e[1],r.label=2;case 2:return r.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,r.sent()];case 4:return i(),[7];case 5:return[2]}}
2))}))},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},t.prototype._dispatch=function(){var t=this,e=this._queue.shift();if(e){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},e([this._value--,this._currentReleaser])}},t}();e.default=i},71051:function(t,e,n){"use strict";e.WU=void 0;var r=n(55959);Object.defineProperty(e,"WU",{enumerable:!0,get:function(){return r.default}});var i=n(50249);var o=n(97860)},97860:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=void 0;var r=n(67645);e.withTimeout=function(t,e,n){var i=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(o,s){return r.__awaiter(i,void 0,void 0,(function(){var i,u;return r.__generator(this,(function(r){switch(r.label){case 0:return i=!1,setTimeout((function(){i=!0,s(n)}),e),[4,t.acquire()];case 1:return u=r.sent(),i?(Array.isArray(u)?u[1]:u)():o(u),[2]}}))}))}))},runExclusive:function(t){return r.__awaiter(this,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(r){switch(r.label){case 0:e=function(){},r.label=1;case 1:return r.trys.push([1,,7,8]),[4,this.acquire()];case 2:return n=r.sent(),Array.isArray(n)?(e=n[1],[4,t(n[0])]):[3,4];case 3:return[2,r.sent()];case 4:return e=n,[4,t()];case 5:return[2,r.sent()];case 6:return[3,8];case 7:return e(),[7];case 8:return[2]}}
2))}))},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}},67645:function(t,e,n){"use strict";n.r(e),n.d(e,{__assign:function(){return o},__asyncDelegator:function(){return _},__asyncGenerator:function(){return w},__asyncValues:function(){return M},__await:function(){return b},__awaiter:function(){return h},__classPrivateFieldGet:function(){return C},__classPrivateFieldSet:function(){return A},__createBinding:function(){return f},__decorate:function(){return u},__exportStar:function(){return d},__extends:function(){return i},__generator:function(){return l},__importDefault:function(){return E},__importStar:function(){return S},__makeTemplateObject:function(){return k},__metadata:function(){return c},__param:function(){return a},__read:function(){return v},__rest:function(){return s},__spread:function(){return m},__spreadArray:function(){return g},__spreadArrays:function(){return y},__values:function(){return p}});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function u(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function a(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{a(r.next(t))}catch(e){o(e)}}function u(t){try{a(r.throw(t))}catch(e){o(e)}}function a(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,u)}a((r=r.apply(t,e||[])).next())}))}function l(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}var f=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function d(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||f(e,t,n)}function p(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function m(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(v(arguments[e]));return t}function y(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,u=o.length;s<u;s++,i++)r[i]=o[s];return r}function g(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function b(t){return this instanceof b?(this.v=t,this):new b(t)}function w(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||u(t,e)}))})}function u(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(a,c):h(o[0][2],n)}catch(r){h(o[0][3],r)}var n}function a(t){u("next",t)}function c(t){u("throw",t)}function h(t,e){t(e),o.shift(),o.length&&u(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function k(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var x=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function S(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&f(e,t,n);return x(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function C(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function A(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},89144:function(t,e){"use strict";var n;function r(t,e,r){if(!r||typeof r.value!==n.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:n.boolTrue,get:function(){var t=r.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:n.boolTrue,writable:n.boolTrue}),t}}}
2Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(n||(n={})),e.bind=r,e.default=r},48744:function(t,e,n){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"===typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(46601).Buffer}catch(A){}function u(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function a(t,e,n){var r=u(t,n);return n-1>=e&&(r|=u(t,n-1)<<4),r}function c(t,e,n,i){for(var o=0,s=0,u=Math.min(t.length,n),a=e;a<u;a++){var c=t.charCodeAt(a)-48;o*=i,s=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&s<i,"Invalid character"),o+=s}return o}function h(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<t.length&&(16===e?this._parseHex(t,i,n):(this._parseBase(t,e,i),"le"===n&&this._initArray(this.toArray(),e,n)))},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,u=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)s=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)s=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=s<<u&67108863,this.words[o+1]=s>>>26-u&67108863,(u+=24)>=26&&(u-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)i=a(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(t.length-e)%2===0?e+1:e;r<t.length;r+=2)i=a(t,e,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,s=o%r,u=Math.min(o,o-s)+n,a=0,h=n;h<u;h+=r)a=c(t,h,h+r,e),this.imuln(i),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a);if(0!==s){var l=1;for(a=c(t,h,t.length,e),h=0;h<s;h++)l*=e;this.imuln(l),this.words[0]+a<67108864?this.words[0]+=a:this._iaddn(a)}this._strip()},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){h(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)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},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(A){o.prototype.inspect=l}else o.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","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"],d=[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],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 13,009 bytes, line 2
2777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,s=0;s<this.length;s++){var u=this.words[s],a=(16777215&(u<<i|o)).toString(16);o=u>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?f[6-a.length]+a+n:a+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],h=p[t];n="";var l=this.clone();for(l.negative=0;!l.isZero();){var v=l.modrn(h).toString(t);n=(l=l.idivn(h)).isZero()?v+n:f[c-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function v(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],s=i*o,u=67108863&s,a=s/67108864|0;n.words[0]=u;for(var c=1;c<r;c++){for(var h=a>>>26,l=67108863&a,f=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=f;d++){var p=c-d|0;h+=(s=(i=0|t.words[p])*(o=0|e.words[d])+l)/67108864|0,l=67108863&s}n.words[c]=0|l,a=0|h}return 0!==a?n.words[c]=0|a:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n++]=255&s,n<t.length&&(t[n++]=s>>8&255),n<t.length&&(t[n++]=s>>16&255),6===o?(n<t.length&&(t[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;t[n--]=255&s,n>=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===o?(n>=0&&(t[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).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(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0===(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0===(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0===(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,s=0;s<r.length;s++)o=(e=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&e;for(;0!==o&&s<n.length;s++)o=(e=(0|n.words[s])+o)>>26,this.words[s]=67108863&e;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,n){var r,i,o,s=t.words,u=e.words,a=n.words,c=0,h=0|s[0],l=8191&h,f=h>>>13,d=0|s[1],p=8191&d,v=d>>>13,m=0|s[2],y=8191&m,g=m>>>13,b=0|s[3],w=8191&b,_=b>>>13,M=0|s[4],k=8191&M,x=M>>>13,S=0|s[5],E=8191&S,C=S>>>13,A=0|s[6],I=8191&A,T=A>>>13,N=0|s[7],R=8191&N,O=N>>>13,j=0|s[8],P=8191&j,L=j>>>13,D=0|s[9],B=8191&D,F=D>>>13,z=0|u[0],U=8191&z,W=z>>>13,H=0|u[1],V=8191&H,q=H>>>13,Z=0|u[2],K=8191&Z,Y=Z>>>13,G=0|u[3],J=8191&G,Q=G>>>13,$=0|u[4],X=8191&$,tt=$>>>13,et=0|u[5],nt=8191&et,rt=et>>>13,it=0|u[6],ot=8191&it,st=it>>>13,ut=0|u[7],at=8191&ut,ct=ut>>>13,ht=0|u[8],lt=8191&ht,ft=ht>>>13,dt=0|u[9],pt=8191&dt,vt=dt>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(l,U))|0)+((8191&(i=(i=Math.imul(l,W))+Math.imul(f,U)|0))<<13)|0;c=((o=Math.imul(f,W))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,U),i=(i=Math.imul(p,W))+Math.imul(v,U)|0,o=Math.imul(v,W);var yt=(c+(r=r+Math.imul(l,V)|0)|0)+((8191&(i=(i=i+Math.imul(l,q)|0)+Math.imul(f,V)|0))<<13)|0;c=((o=o+Math.imul(f,q)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(y,U),i=(i=Math.imul(y,W))+Math.imul(g,U)|0,o=Math.imul(g,W),r=r+Math.imul(p,V)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,V)|0,o=o+Math.imul(v,q)|0;var gt=(c+(r=r+Math.imul(l,K)|0)|0)+((8191&(i=(i=i+Math.imul(l,Y)|0)+Math.imul(f,K)|0))<<13)|0;c=((o=o+Math.imul(f,Y)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,W))+Math.imul(_,U)|0,o=Math.imul(_,W),r=r+Math.imul(y,V)|0,i=(i=i+Math.imul(y,q)|0)+Math.imul(g,V)|0,o=o+Math.imul(g,q)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,Y)|0;var bt=(c+(r=r+Math.imul(l,J)|0)|0)+((8191&(i=(i=i+Math.imul(l,Q)|0)+Math.imul(f,J)|0))<<13)|0;c=((o=o+Math.imul(f,Q)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(k,U),i=(i=Math.imul(k,W))+Math.imul(x,U)|0,o=Math.imul(x,W),r=r+Math.imul(w,V)|0,i=(i=i+Math.imul(w,q)|0)+Math.imul(_,V)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(y,K)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,K)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,Q)|0;var wt=(c+(r=r+Math.imul(l,X)|0)|0)+((8191&(i=(i=i+Math.imul(l,tt)|0)+Math.imul(f,X)|0))<<13)|0;c=((o=o+Math.imul(f,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(E,U),i=(i=Math.imul(E,W))+Math.imul(C,U)|0,o=Math.imul(C,W),r=r+Math.imul(k,V)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(x,V)|0,o=o+Math.imul(x,q)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,J)|0,i=(i=i+Math.imul(y,Q)|0)+Math.imul(g,J)|0,o=o+Math.imul(g,Q)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,tt)|0;var _t=(c+(r=r+Math.imul(l,nt)|0)|0)+((8191&(i=(i=i+Math.imul(l,rt)|0)+Math.imul(f,nt)|0))<<13)|0;c=((o=o+Math.imul(f,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(I,U),i=(i=Math.imul(I,W))+Math.imul(T,U)|0,o=Math.imul(T,W),r=r+Math.imul(E,V)|0,i=(i=i+Math.imul(E,q)|0)+Math.imul(C,V)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(k,K)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,Q)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,tt)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0;var Mt=(c+(r=r+Math.imul(l,ot)|0)|0)+((8191&(i=(i=i+Math.imul(l,st)|0)+Math.imul(f,ot)|0))<<13)|0;c=((o=o+Math.imul(f,st)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,W))+Math.imul(O,U)|0,o=Math.imul(O,W),r=r+Math.imul(I,V)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(T,V)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Q)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(y,nt)|0,i=(i=i+Math.imul(y,rt)|0)+Math.imul(g,nt)|0,o=o+Math.imul(g,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,st)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,st)|0;var kt=(c+(r=r+Math.imul(l,at)|0)|0)+((8191&(i=(i=i+Math.imul(l,ct)|0)+Math.imul(f,at)|0))<<13)|0;c=((o=o+Math.imul(f,ct)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(P,U),i=(i=Math.imul(P,W))+Math.imul(L,U)|0,o=Math.imul(L,W),r=r+Math.imul(R,V)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(O,V)|0,o=o+Math.imul(O,q)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,Q)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(y,ot)|0,i=(i=i+Math.imul(y,st)|0)+Math.imul(g,ot)|0,o=o+Math.imul(g,st)|0,r=r+Math.imul(p,at)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,at)|0,o=o+Math.imul(v,ct)|0;var xt=(c+(r=r+Math.imul(l,lt)|0)|0)+((8191&(i=(i=i+Math.imul(l,ft)|0)+Math.imul(f,lt)|0))<<13)|0;c=((o=o+Math.imul(f,ft)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,U),i=(i=Math.imul(B,W))+Math.imul(F,U)|0,o=Math.imul(F,W),r=r+Math.imul(P,V)|0,i=(i=i+Math.imul(P,q)|0)+Math.imul(L,V)|0,o=o+Math.imul(L,q)|0,r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,Q)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(k,nt)|0,i=(i=i+Math.imul(k,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,st)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,st)|0,r=r+Math.imul(y,at)|0,i=(i=i+Math.imul(y,
vendor: 2,617 bytes, line 2
2ct)|0)+Math.imul(g,at)|0,o=o+Math.imul(g,ct)|0,r=r+Math.imul(p,lt)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(v,lt)|0,o=o+Math.imul(v,ft)|0;var St=(c+(r=r+Math.imul(l,pt)|0)|0)+((8191&(i=(i=i+Math.imul(l,vt)|0)+Math.imul(f,pt)|0))<<13)|0;c=((o=o+Math.imul(f,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,V),i=(i=Math.imul(B,q))+Math.imul(F,V)|0,o=Math.imul(F,q),r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Q)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,Q)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,st)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,st)|0,r=r+Math.imul(w,at)|0,i=(i=i+Math.imul(w,ct)|0)+Math.imul(_,at)|0,o=o+Math.imul(_,ct)|0,r=r+Math.imul(y,lt)|0,i=(i=i+Math.imul(y,ft)|0)+Math.imul(g,lt)|0,o=o+Math.imul(g,ft)|0;var Et=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(F,K)|0,o=Math.imul(F,Y),r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,Q)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,st)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,st)|0,r=r+Math.imul(k,at)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(x,at)|0,o=o+Math.imul(x,ct)|0,r=r+Math.imul(w,lt)|0,i=(i=i+Math.imul(w,ft)|0)+Math.imul(_,lt)|0,o=o+Math.imul(_,ft)|0;var Ct=(c+(r=r+Math.imul(y,pt)|0)|0)+((8191&(i=(i=i+Math.imul(y,vt)|0)+Math.imul(g,pt)|0))<<13)|0;c=((o=o+Math.imul(g,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,Q))+Math.imul(F,J)|0,o=Math.imul(F,Q),r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(L,X)|0,o=o+Math.imul(L,tt)|0,r=r+Math.imul(R,nt)|0,i=(i=i+Math.imul(R,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,st)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,st)|0,r=r+Math.imul(E,at)|0,i=(i=i+Math.imul(E,ct)|0)+Math.imul(C,at)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(k,lt)|0,i=(i=i+Math.imul(k,ft)|0)+Math.imul(x,lt)|0,o=o+Math.imul(x,ft)|0;var At=(c+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,X),i=(i=Math.imul(B,tt))+Math.imul(F,X
vendor: 23,500 bytes, line 2
2)|0,o=Math.imul(F,tt),r=r+Math.imul(P,nt)|0,i=(i=i+Math.imul(P,rt)|0)+Math.imul(L,nt)|0,o=o+Math.imul(L,rt)|0,r=r+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,st)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,st)|0,r=r+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(T,at)|0,o=o+Math.imul(T,ct)|0,r=r+Math.imul(E,lt)|0,i=(i=i+Math.imul(E,ft)|0)+Math.imul(C,lt)|0,o=o+Math.imul(C,ft)|0;var It=(c+(r=r+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(x,pt)|0))<<13)|0;c=((o=o+Math.imul(x,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(F,nt)|0,o=Math.imul(F,rt),r=r+Math.imul(P,ot)|0,i=(i=i+Math.imul(P,st)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,st)|0,r=r+Math.imul(R,at)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(O,at)|0,o=o+Math.imul(O,ct)|0,r=r+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ft)|0)+Math.imul(T,lt)|0,o=o+Math.imul(T,ft)|0;var Tt=(c+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,vt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,vt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,st))+Math.imul(F,ot)|0,o=Math.imul(F,st),r=r+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(L,at)|0,o=o+Math.imul(L,ct)|0,r=r+Math.imul(R,lt)|0,i=(i=i+Math.imul(R,ft)|0)+Math.imul(O,lt)|0,o=o+Math.imul(O,ft)|0;var Nt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,at),i=(i=Math.imul(B,ct))+Math.imul(F,at)|0,o=Math.imul(F,ct),r=r+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ft)|0)+Math.imul(L,lt)|0,o=o+Math.imul(L,ft)|0;var Rt=(c+(r=r+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,vt)|0)+Math.imul(O,pt)|0))<<13)|0;c=((o=o+Math.imul(O,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(B,lt),i=(i=Math.imul(B,ft))+Math.imul(F,lt)|0,o=Math.imul(F,ft);var Ot=(c+(r=r+Math.imul(P,pt)|0)|0)+((8191&(i=(i=i+Math.imul(P,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863;var jt=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,a[0]=mt,a[1]=yt,a[2]=gt,a[3]=bt,a[4]=wt,a[5]=_t,a[6]=Mt,a[7]=kt,a[8]=xt,a[9]=St,a[10]=Et,a[11]=Ct,a[12]=At,a[13]=It,a[14]=Tt,a[15]=Nt,a[16]=Rt,a[17]=Ot,a[18]=jt,0!==c&&(a[19]=c,n.length++),n};function y(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var u=67108863&r,a=Math.min(o,e.length-1),c=Math.max(0,o-t.length+1);c<=a;c++){var h=o-c,l=(0|t.words[h])*(0|e.words[c]),f=67108863&l;u=67108863&(f=f+u|0),i+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}n.words[o]=u,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return y(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=v),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?v(this,t,e):n<1024?y(this,t,e):g(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},b.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var s=0;s<o;s++)r[s]=e[t[s]],i[s]=n[t[s]]},b.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var s=1;s<i;s<<=1)for(var u=s<<1,a=Math.cos(2*Math.PI/u),c=Math.sin(2*Math.PI/u),h=0;h<i;h+=u)for(var l=a,f=c,d=0;d<s;d++){var p=n[h+d],v=r[h+d],m=n[h+d+s],y=r[h+d+s],g=l*m-f*y;y=l*y+f*m,m=g,n[h+d]=p+m,r[h+d]=v+y,n[h+d+s]=p-m,r[h+d+s]=v-y,d!==u&&(g=a*l-c*f,f=a*f+c*l,l=g)}},b.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},b.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},b.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,n,i){for(var o=0,s=0;s<e;s++)o+=0|t[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<i;++s)n[s]=0;r(0===o),r(0===(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},b.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),s=new Array(r),u=new Array(r),a=new Array(r),c=new Array(r),h=new Array(r),l=new Array(r),f=n.words;f.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,c,r),this.transform(s,o,u,a,r,i),this.transform(c,o,h,l,r,i);for(var d=0;d<r;d++){var p=u[d]*h[d]-a[d]*l[d];a[d]=u[d]*l[d]+a[d]*h[d],u[d]=p}return this.conjugate(u,a,r),this.transform(u,a,f,o,r,i),this.conjugate(f,o,r),this.normalize13b(f,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"===typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=t.words[r]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"===typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e<this.length;e++){var u=this.words[e]&o,a=(0|this.words[e])-u<<n;this.words[e]=a|s,s=u>>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"===typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,s=Math.min((t-o)/26,this.length),u=67108863^67108863>>>o<<o,a=n;if(i-=s,i=Math.max(0,i),a){for(var c=0;c<s;c++)a.words[c]=this.words[c];a.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;c>=0&&(0!==h||c>=i);c--){var l=0|this.words[c];this.words[c]=h<<26-o|l>>>o,h=l&u}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"===typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,s=t.length+n;this._expand(s);var u=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+u;var a=(0|t.words[i])*e;u=((o-=67108863&a)>>26)-(a/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)u=(o=(0|this.words[i+n])+u)>>26,this.words[i+n]=67108863&o;if(0===u)return this._strip();for(r(-1===u),u=0,i=0;i<this.length;i++)u=(o=-(0|this.words[i])+u)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var u,a=r.length-i.length;if("mod"!==e){(u=new o(null)).length=a+1,u.words=new Array(u.length);for(var c=0;c<u.length;c++)u.words[c]=0}var h=r.clone()._ishlnsubmul(i,1,a);0===h.negative&&(r=h,u&&(u.words[a]=1));for(var l=a-1;l>=0;l--){var f=67108864*(0|r.words[i.length+l])+(0|r.words[i.length+l-1]);for(f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,l);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,l),r.isZero()||(r.negative^=1);u&&(u.words[l]=f)}return u&&u._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(i=u.div.neg()),"div"!==e&&(s=u.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(i=u.div.neg()),{div:i,mod:u.mod}):0!==(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(s=u.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:u.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,u},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),s=new o(0),u=new o(0),a=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var h=n.clone(),l=e.clone();!e.isZero();){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(h),s.isub(l)),i.iushrn(1),s.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(u.isOdd()||a.isOdd())&&(u.iadd(h),a.isub(l)),u.iushrn(1),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(u),s.isub(a)):(n.isub(e),u.isub(i),a.isub(s))}return{a:u,b:a,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,s=new o(1),u=new o(0),a=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,h=1;0===(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);for(var l=0,f=1;0===(n.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(n.iushrn(l);l-- >0;)u.isOdd()&&u.iadd(a),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(u)):(n.isub(e),u.isub(s))}return(i=0===e.cmpn(1)?s:u).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var u=0|this.words[s];o=(u+=o)>>>26,u&=67108863,this.words[s]=u}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){E.call(this,t),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)}_.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},i(M,_),M.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i<r;i++)e.words[i]=t.words[i];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=o&n,i=10;i<t.length;i++){var s=0|t.words[i];t.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(k,_),i(x,_),i(S,_),S.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new k;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return w[t]=e,e},E.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(h(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);r(!i.isZero());var u=new o(1).toRed(this),a=u.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,c).cmp(a);)h.redIAdd(a);for(var l=this.pow(h,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=s;0!==d.cmp(u);){for(var v=d,m=0;0!==v.cmp(u);m++)v=v.redSqr();r(m<p);var y=this.pow(l,new o(1).iushln(p-m-1));f=f.redMul(y),l=y.redSqr(),d=d.redMul(l),p=m}return f},E.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},E.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],s=0,u=0,a=e.bitLength()%26;for(0===a&&(a=26),r=e.length-1;r>=0;r--){for(var c=e.words[r],h=a-1;h>=0;h--){var l=c>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==l||0!==s?(s<<=1,s|=l,(4===++u||0===r&&0===h)&&(i=this.mul(i,n[s]),u=0,s=0)):u=0}a=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,E),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>
2=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=n.nmd(t),this)},49482:function(t,e,n){"use strict";function r(t){var e,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(i&&(i+=" "),i+=n);else for(e in t)t[e]&&(i&&(i+=" "),i+=e);return i}function i(){for(var t,e,n=0,i="";n<arguments.length;)(t=arguments[n++])&&(e=r(t))&&(i&&(i+=" "),i+=e);return i}n.r(e),n.d(e,{clsx:function(){return i}}),e.default=i},97305:function(t){"use strict";var e=function(t,e){return function(){for(var n=this,r=e.promiseModule,i=new Array(arguments.length),o=0;o<arguments.length;o++)i[o]=arguments[o];return new r((function(r,o){e.errorFirst?i.push((function(t,n){if(e.multiArgs){for(var i=new Array(arguments.length-1),s=1;s<arguments.length;s++)i[s-1]=arguments[s];t?(i.unshift(t),o(i)):r(i)}else t?o(t):r(n)})):i.push((function(t){if(e.multiArgs){for(var n=new Array(arguments.length-1),i=0;i<arguments.length;i++)n[i]=arguments[i];r(n)}else r(t)})),t.apply(n,i)}))}};t.exports=function(t,n){n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},n);var r,i=function(t){var e=function(e){return"string"===typeof e?t===e:e.test(t)};return n.include?n.include.some(e):!n.exclude.some(e)};for(var o in r="function"===typeof t?function(){return n.excludeMain?t.apply(this,arguments):e(t,n).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t)),t){var s=t[o];r[o]="function"===typeof s&&i(o)?e(s,n):s}return r}},30922:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default,u=n(66115).default,a=n(41588).default,c=n(73808).default,h=n(61655).default,l=n(26389).default,f=(n(19484),n(97305),n(1095)),d=function(t,e){return t+e},p=["sync","latest"],v=function(t){"use strict";h(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,n),(t=e.call(this))._blockResetDuration=r.blockResetDuration||2e4,t._blockResetTimeout,t._currentBlock=null,t._isRunning=!1,t._onNewListener=t._onNewListener.bind(u(t)),t._onRemoveListener=t._onRemoveListener.bind(u(t)),t._resetCurrentBlock=t._resetCurrentBlock.bind(u(t)),t._setupInternalEvents(),t}return s(n,[{key:"isRunning",value:function(){return this._isRunning}},{key:"getCurrentBlock",value:function(){return this._currentBlock}},{key:"getLatestBlock",value:function(){var t=i(r().mark((function t(){var e,n=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._currentBlock){t.next=2;break}return t.abrupt("return",this._currentBlock);case 2:return t.next=4,new Promise((function(t){return n.once("latest",t)}));case 4:return e=t.sent,t.abrupt("return",e);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"removeAllListeners",value:function(t){t?a(c(n.prototype),"removeAllListeners",this).call(this,t):a(c(n.prototype),"removeAllListeners",this).call(this),this._setupInternalEvents(),this._onRemoveListener()}},{key:"_start",value:function(){}},{key:"_end",value:function(){}},{key:"_setupInternalEvents",value:function(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}},{key:"_onNewListener",value:function(t,e){p.includes(t)&&this._maybeStart()}},{key:"_onRemoveListener",value:function(t,e){this._getBlockTrackerEventCount()>0||this._maybeEnd()}},{key:"_maybeStart",value:function(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}},{key:"_maybeEnd",value:function(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}},{key:"_getBlockTrackerEventCount",value:function(){var t=this;return p.map((function(e){return t.listenerCount(e)})).reduce(d)}},{key:"_newPotentialLatest",value:function(t){var e=this._currentBlock;e&&m(t)<=m(e)||this._setCurrentBlock(t)}},{key:"_setCurrentBlock",value:function(t){var e=this._currentBlock;
2this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:e,newBlock:t})}},{key:"_setupBlockResetTimeout",value:function(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}},{key:"_cancelBlockResetTimeout",value:function(){clearTimeout(this._blockResetTimeout)}},{key:"_resetCurrentBlock",value:function(){this._currentBlock=null}}]),n}(f);function m(t){return Number.parseInt(t,16)}t.exports=v},61909:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default,u=n(61655).default,a=n(26389).default,c=n(97305),h=n(30922),l=function(t){"use strict";u(n,t);var e=a(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o(this,n),!r.provider)throw new Error("PollingBlockTracker - no provider specified.");var i=r.pollingInterval||2e4,s=r.retryTimeout||i/10,u=void 0===r.keepEventLoopActive||r.keepEventLoopActive,a=r.setSkipCacheFlag||!1;return(t=e.call(this,Object.assign({blockResetDuration:i},r)))._provider=r.provider,t._pollingInterval=i,t._retryTimeout=s,t._keepEventLoopActive=u,t._setSkipCacheFlag=a,t}return s(n,[{key:"checkForLatestBlock",value:function(){var t=i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._updateLatestBlock();case 2:return t.next=4,this.getLatestBlock();case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_start",value:function(){var t=this;this._performSync().catch((function(e){return t.emit("error",e)}))}},{key:"_performSync",value:function(){var t=i(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._isRunning){t.next=16;break}return t.prev=1,t.next=4,this._updateLatestBlock();case 4:return t.next=6,f(this._pollingInterval,!this._keepEventLoopActive);case 6:t.next=14;break;case 8:t.prev=8,t.t0=t.catch(1),e=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n".concat(t.t0.stack));try{this.emit("error",e)}catch(n){console.error(e)}return t.next=14,f(this._retryTimeout,!this._keepEventLoopActive);case 14:t.next=0;break;case 16:case"end":return t.stop()}}),t,this,[[1,8]])})));return function(){return t.apply(this,arguments)}}()},{key:"_updateLatestBlock",value:function(){var t=i(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._fetchLatestBlock();case 2:e=t.sent,this._newPotentialLatest(e);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_fetchLatestBlock",value:function(){var t=i(r().mark((function t(){var e,n,i=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]},this._setSkipCacheFlag&&(e.skipCache=!0),t.next=4,c((function(t){return i._provider.sendAsync(e,t)}))();case 4:if(!(n=t.sent).error){t.next=7;break}throw new Error("PollingBlockTracker - encountered error fetching block:\n".concat(n.error));case 7:return t.abrupt("return",n.result);case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),n}(h);function f(t,e){return new Promise((function(n){var r=setTimeout(n,t);r.unref&&e&&r.unref()}))}t.exports=l},31914:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default,u=n(41588).default,a=n(73808).default,c=n(61655).default,h=n(26389).default,l=function(t){"use strict";c(n,t);var e=h(n);function n(){var t;return o(this,n),(t=e.call(this)).allResults=[],t}return s(n,[{key:"update",value:function(){var t=i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error("BaseFilterWithHistory - no update method specified");case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"addResults",value:function(t){this.allResults=this.allResults.concat(t),u(a(n.prototype),"addResults",this).call(this,t)}},{key:"addInitialResults",value:function(t){this.allResults=this.allResults.concat(t),u(a(n.prototype),"addInitialResults",this).call(this,t)}},{key:"getAllResults",value:function(){return this.allResults}}]),n}(n(73248));t.exports=l},73248:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default,u=n(61655).default,a=n(26389).default,c=function(t){"use strict";u(n,t);var e=a(n);function n(){var t;return o(this,n),(t=e.call(this)).updates=[],t}return s(n,[{key:"initialize",value:function(){var t=i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"update",value:function(){var t=i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error("BaseFilter - no update method specified");case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"addResults",value:function(t){var e=this;this.updates=this.updates.concat(t),t.forEach((function(t){return e.emit("update",t)}))}},{key:"addInitialResults",value:function(t){}}
2,{key:"getChangesAndClear",value:function(){var t=this.updates;return this.updates=[],t}}]),n}(n(28050).default);t.exports=c},62019:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default,u=n(61655).default,a=n(26389).default,c=n(73248),h=n(30643),l=n(21245).incrementHexInt,f=function(t){"use strict";u(n,t);var e=a(n);function n(t){var r,i=t.provider;t.params;return o(this,n),(r=e.call(this)).type="block",r.provider=i,r}return s(n,[{key:"update",value:function(){var t=i(r().mark((function t(e){var n,i,o,s,u,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.oldBlock,i=e.newBlock,o=i,s=l(n),t.next=5,h({provider:this.provider,fromBlock:s,toBlock:o});case 5:u=t.sent,a=u.map((function(t){return t.hash})),this.addResults(a);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),n}(c);t.exports=f},30643:function(t,e,n){var r=n(17061).default,i=n(17156).default;function o(){return(o=i(r().mark((function t(e){var n,i,o,c,h,l,f;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.provider,i=e.fromBlock,o=e.toBlock,i||(i=o),c=s(i),h=s(o),l=Array(h-c+1).fill().map((function(t,e){return c+e})).map(u),t.next=8,Promise.all(l.map((function(t){return a(n,"eth_getBlockByNumber",[t,!1])})));case 8:return f=t.sent,t.abrupt("return",f);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function s(t){return void 0===t||null===t?t:Number.parseInt(t,16)}function u(t){return void 0===t||null===t?t:"0x"+t.toString(16)}function a(t,e,n){return new Promise((function(r,i){t.sendAsync({id:1,jsonrpc:"2.0",method:e,params:n},(function(t,e){if(t)return i(t);r(e.result)}))}))}t.exports=function(t){return o.apply(this,arguments)}},21245:function(t){function e(t){return t.sort((function(t,e){return"latest"===t||"earliest"===e?1:"latest"===e||"earliest"===t?-1:n(t)-n(e)}))}function n(t){return void 0===t||null===t?t:Number.parseInt(t,16)}function r(t){if(void 0===t||null===t)return t;var e=t.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function i(){return Math.floor(16*Math.random()).toString(16)}t.exports={minBlockRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=e(n);return i[0]},maxBlockRef:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=e(n);return i[i.length-1]},sortBlockRefs:e,bnToHex:function(t){return"0x"+t.toString(16)},blockRefIsNumber:function(t){return t&&!["earliest","latest","pending"].includes(t)},hexToInt:n,incrementHexInt:function(t){return void 0===t||null===t?t:r(n(t)+1)},intToHex:r,unsafeRandomBytes:function(t){for(var e="0x",n=0;n<t;n++)e+=i(),e+=i();return e}}},58871:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(71051).WU,s=n(76265).createAsyncMiddleware,u=n(26450),a=n(24927),c=n(62019),h=n(58031),l=n(21245),f=l.intToHex,d=l.hexToInt;function p(t){return v(i(r().mark((function e(){var n,i,o=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(void 0,o);case 2:return n=e.sent,i=f(n.id),e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)}))))}function v(t){return s(function(){var e=i(r().mark((function e(n,i){var o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.apply(null,n.params);case 2:o=e.sent,i.result=o;case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}function m(t,e){var n=[];for(var r in t)n.push(t[r]);return n}t.exports=function(t){var e=t.blockTracker,n=t.provider,s=0,l={},y=new o,g=function(t){var e=t.mutex;return function(t){return function(){var n=i(r().mark((function n(i,o,s,u){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e.acquire();case 2:(0,n.sent)(),t(i,o,s,u);case 5:case"end":return n.stop()}}),n)})));return function(t,e,r,i){return n.apply(this,arguments)}}()}}({mutex:y}),b=u({eth_newFilter:g(p(_)),eth_newBlockFilter:g(p(k)),eth_newPendingTransactionFilter:g(p(S)),eth_uninstallFilter:g(v(N)),eth_getFilterChanges:g(v(C)),eth_getFilterLogs:g(v(I))}),w=function(){var t=i(r().mark((function t(e){var n,o,s;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.oldBlock,o=e.newBlock,0!==l.length){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,y.acquire();case 5:return s=t.sent,t.prev=6,t.next=9,Promise.all(m(l).map(function(){var t=i(r().mark((function t(e){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.update({oldBlock:n,newBlock:o});case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.error(t.t0);case 8:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}()));case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(6),console.error(t.t0);case 14:s();case 15:case"end":return t.stop()}}),t,null,[[6,11]])})));return function(e){return t.apply(this,arguments)}}();return b.newLogFilter=_,b.newBlockFilter=k,b.newPendingTransactionFilter=S,b.uninstallFilter=N,b.getFilterChanges=C,b.getFilterLogs=I,b.destroy=function(){!function(){D.apply(this,arguments)}()},b;function _(t){return M.apply(this,arguments)}function M(){return(M=i(r().mark((function t(e){var i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=new a({provider:n,params:e}),t.next=3,O(i);case 3:return t.sent,t.abrupt("return",i);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function k(){return x.apply(this,arguments)}function x(){return(x=i(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new c({provider:n}),t.next=3,O(e);case 3:return t.sent,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function S(){return E.apply(this,arguments)}function E(){return(E=i(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=new h({provider:n}),t.next=3,O(e);case 3:return t.sent,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(t){return A.apply(this,arguments)}function A(){return A=i(r().mark((function t(e){var n,i,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=d(e),i=l[n]){t.next=4;break}throw new Error('No filter for index "'.concat(n,'"'));case 4:return o=i.getChangesAndClear(),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)}))),A.apply(this,arguments)}function I(t){return T.apply(this,arguments)}function T(){return T=i(r().mark((function t(e){var n,i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=d(e),i=l[n]){t.next=4;break}throw new Error('No filter for index "'.concat(n,'"'));case 4:return"log"===i.type?results=i.getAllResults():results=[],t.abrupt("return",results);case 6:case"end":return t.stop()}}),t)}))),T.apply(this,arguments)}function N(t){return R.apply(this,arguments)}function R(){return R=i(r().mark((function t(e){var n,i,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=d(e),i=l[n],!(o=Boolean(i))){t.next=6;break}return t.next=6,P(n);case 6:return t.abrupt("return",o);case 7:case"end":return t.stop()}}),t)}))),R.apply(this,arguments)}function O(t){return j.apply(this,arguments)}function j(){return(j=i(r().mark((function t(n){var i,o,u;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=m(l).length,t.next=3,e.getLatestBlock();case 3:return o=t.sent,t.next=6,n.initialize({currentBlock:o});case 6:return s++,l[s]=n,n.id=s,n.idHex=f(s),u=m(l).length,B({prevFilterCount:i,newFilterCount:u}),t.abrupt("return",s);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function P(t){return L.apply(this,arguments)}function L(){return L=i(r().mark((function t(e){var n,i;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=m(l).length,delete l[e],i=m(l).length,B({prevFilterCount:n,newFilterCount:i});case 4:case"end":return t.stop()}}),t)}))),L.apply(this,arguments)}function D(){return(D=i(r().mark((function t(){var e;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=m(l).length,l={},B({prevFilterCount:e,newFilterCount:0});case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function B(t){var n=t.prevFilterCount,r=t.newFilterCount;0===n&&r>0?e.on("sync",w):n>0&&0===r&&e.removeListener("sync",w)}}},24927:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(56690).default,s=n(89728).default,u=n(61655).default,a=n(26389).default,c=n(19484),h=n(24001),l=n(31914),f=n(21245),d=(f.bnTo
2Hex,f.hexToInt),p=f.incrementHexInt,v=f.minBlockRef,m=f.blockRefIsNumber,y=function(t){"use strict";u(n,t);var e=a(n);function n(t){var r,i=t.provider,s=t.params;return o(this,n),(r=e.call(this)).type="log",r.ethQuery=new c(i),r.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},s),r.params.address&&(Array.isArray(r.params.address)||(r.params.address=[r.params.address]),r.params.address=r.params.address.map((function(t){return t.toLowerCase()}))),r}return s(n,[{key:"initialize",value:function(){var t=i(r().mark((function t(e){var n,i,o,s,u;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.currentBlock,i=this.params.fromBlock,["latest","pending"].includes(i)&&(i=n),"earliest"===i&&(i="0x0"),this.params.fromBlock=i,o=v(this.params.toBlock,n),s=Object.assign({},this.params,{toBlock:o}),t.next=9,this._fetchLogs(s);case 9:u=t.sent,this.addInitialResults(u);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"update",value:function(){var t=i(r().mark((function t(e){var n,i,o,s,u,a,c,h=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.oldBlock,i=e.newBlock,o=i,s=n?p(n):i,u=Object.assign({},this.params,{fromBlock:s,toBlock:o}),t.next=6,this._fetchLogs(u);case 6:a=t.sent,c=a.filter((function(t){return h.matchLog(t)})),this.addResults(c);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_fetchLogs",value:function(){var t=i(r().mark((function t(e){var n,i=this;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,h((function(t){return i.ethQuery.getLogs(e,t)}))();case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"matchLog",value:function(t){if(d(this.params.fromBlock)>=d(t.blockNumber))return!1;if(m(this.params.toBlock)&&d(this.params.toBlock)<=d(t.blockNumber))return!1;var e=t.address&&t.address.toLowerCase();return!(this.params.address&&e&&!this.params.address.includes(e))&&this.params.topics.every((function(e,n){var r=t.topics[n];if(!r)return!1;r=r.toLowerCase();var i=Array.isArray(e)?e:[e];return!!i.includes(null)||(i=i.map((function(t){return t.toLowerCase()}))).includes(r)}))}}]),n}(l);t.exports=y},24001:function(t,e,n){"use strict";var r=n(42122).default,i=function(t,e,n,r){return function(){for(var i=this,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var a=e.promiseModule;return new a((function(o,u){e.multiArgs?s.push((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.errorFirst?n[0]?u(n):(n.shift(),o(n)):o(n)})):e.errorFirst?s.push((function(t,e){t?u(t):o(e)})):s.push(o);var a=i===n?r:i;Reflect.apply(t,a,s)}))}},o=new WeakMap;t.exports=function(t,e){e=r({exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);var n=typeof t;if(null===t||"object"!==n&&"function"!==n)throw new TypeError("Expected `input` to be a `Function` or `Object`, got `".concat(null===t?"null":n,"`"));var s=new WeakMap,u=new Proxy(t,{apply:function(t,n,r){var o=s.get(t);if(o)return Reflect.apply(o,n,r);var a=e.excludeMain?t:i(t,e,u,t);return s.set(t,a),Reflect.apply(a,n,r)},get:function(t,n){var r=t[n];if(!function(t,n){var r=o.get(t);if(r||(r={},o.set(t,r)),n in r)return r[n];var i=function(t){return"string"===typeof t||"symbol"===typeof n?n===t:t.test(n)},s=Reflect.getOwnPropertyDescriptor(t,n),u=void 0===s||s.writable||s.configurable,a=(e.include?e.include.some(i):!e.exclude.some(i))&&u;return r[n]=a,a}(t,n)||r===Function.prototype[n])return r;var a=s.get(r);if(a)return a;if("function"===typeof r){var c=i(r,e,u,t);return s.set(r,c),c}return r}});return u}},40390:function(t,e,n){var r=n(17061).default,i=n(17156).default,o=n(28050).default,s=n(26450),u=n(76265).createAsyncMiddleware,a=n(58871),c=n(21245),h=c.unsafeRandomBytes,l=c.incrementHexInt,f=n(30643);function d(t){return{hash:t.hash,parentHash:t.parentHash,sha3Uncles:t.sha3Uncles,miner:t.miner,stateRoot:t.stateRoot,transactionsRoot:t.transactionsRoot,receiptsRoot:t.receiptsRoot,logsBloom:t.logsBloom,difficulty:t.difficulty,number:t.number,gasLim
2it:t.gasLimit,gasUsed:t.gasUsed,nonce:t.nonce,mixHash:t.mixHash,timestamp:t.timestamp,extraData:t.extraData}}t.exports=function(t){var e=t.blockTracker,n=t.provider,c={},p=a({blockTracker:e,provider:n}),v=!1,m=new o,y=s({eth_subscribe:u((function(t,e){return g.apply(this,arguments)})),eth_unsubscribe:u((function(t,e){return b.apply(this,arguments)}))});return y.destroy=function(){for(var t in m.removeAllListeners(),c)c[t].destroy(),delete c[t];v=!0},{events:m,middleware:y};function g(){return g=i(r().mark((function t(o,s){var u,a,m,y,g,b,_;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(_=function(t){var e=t.subId,n=t.filter;n.on("update",(function(t){return w(e,t)}));var o={type:u,destroy:function(){var t=i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,p.uninstallFilter(n.idHex);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()};return o},b=function(t){var o=t.subId,s={type:u,destroy:function(){var t=i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.removeListener("sync",s.update);case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),update:function(){var t=i(r().mark((function t(e){var i,s,u,a,c;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.oldBlock,s=e.newBlock,u=s,a=l(i),t.next=5,f({provider:n,fromBlock:a,toBlock:u});case 5:c=t.sent,c.map(d).forEach((function(t){w(o,t)}));case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};return e.on("sync",s.update),s},!v){t.next=4;break}throw new Error("SubscriptionManager - attempting to use after destroying");case 4:u=o.params[0],a=h(16),t.t0=u,t.next="newHeads"===t.t0?9:"logs"===t.t0?11:17;break;case 9:return m=b({subId:a}),t.abrupt("break",18);case 11:return y=o.params[1],t.next=14,p.newLogFilter(y);case 14:return g=t.sent,m=_({subId:a,filter:g}),t.abrupt("break",18);case 17:throw new Error('SubscriptionManager - unsupported subscription type "'.concat(u,'"'));case 18:return c[a]=m,s.result=a,t.abrupt("return");case 21:case"end":return t.stop()}}),t)}))),g.apply(this,arguments)}function b(){return(b=i(r().mark((function t(e,n){var i,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!v){t.next=2;break}throw new Error("SubscriptionManager - attempting to use after destroying");case 2:if(i=e.params[0],o=c[i]){t.next=7;break}return n.result=!1,t.abrupt("return");case 7:return delete c[i],t.next=10,o.destroy();case 10:n.result=!0;case 11:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t,e){m.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:t,result:e}})}}},58031:function(t,e,n){var r=n(17061).default,i=n(861).default,o=n(74704).default,s=n(17156).default,u=n(56690).default,a=n(89728).default,c=n(61655).default,h=n(26389).default,l=n(73248),f=n(30643),d=n(21245).incrementHexInt,p=function(t){"use strict";c(n,t);var e=h(n);function n(t){var r,i=t.provider;return u(this,n),(r=e.call(this)).type="tx",r.provider=i,r}return a(n,[{key:"update",value:function(){var t=s(r().mark((function t(e){var n,s,u,a,c,h,l,p;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.oldBlock,s=n,u=d(n),t.next=5,f({provider:this.provider,fromBlock:u,toBlock:s});case 5:a=t.sent,c=[],h=o(a);try{for(h.s();!(l=h.n()).done;)p=l.value,c.push.apply(c,i(p.transactions))}catch(r){h.e(r)}finally{h.f()}this.addResults(c);case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),n}(l);t.exports=p},905:function(t){t.exports=function(t){return function(e,n,r,i){var o=t[e.method];return void 0===o?r():"function"===typeof o?o(e,n,r,i):(n.result=o,i())}}},26450:function(t,e,n){t.exports=n(905)},19484:function(t,e,n){var r=n(2678),i=n(45926)();function o(t){this.currentProvider=t}function s(t){return function(){var e=this,n=[].slice.call(arguments),r=n.pop();e.sendAsync({method:t,params:n},r)}}function u(t,e){return function(){var n=this,r=[].slice.call(arguments),i=r.pop();r.length<t&&r.push("latest"),n.sendAsync({method:e,params:r},i)}}t.exports=o,o.prototype.getBalance=u(2,"eth_getBalance"),o.prototype.getCode=u(2,"eth_getCode"),o.prototype.getTransactionCount=u(2,"eth_getTransactionCount"),o.prototype.getStorageAt=u(3,"eth_getStorageAt"),o.prototype.call=u(2,"eth_call"),o.prototype.protocolVersion=s("eth_protocolVersion"),o.prototype.syncing=s("eth_syncing"),o.prototype.coinbase=s("eth_coinbase"),o.prototype.mining=s("eth_mining"),o.prototype.hashrate=s("eth_hashrate"),o.prototype.gasPrice=s("eth_gasPrice"),o.prototype.accounts=s("eth_accounts"),o.prototype.blockNumber=s("eth_blockNumber"),o.prototype.getBlockTransactionCountByHash=s("eth_getBlockTransactionCountByHash"),o.prototype.getBlockTransactionCountByNumber=s("eth_getBlockTransactionCountByNumber"),o.prototype.getUncleCountByBlockHash=s("eth_getUncleCountByBlockHash"),o.prototype.getUncleCountByBlockNumber=s("eth_getUncleCountByBlockNumber"),o.prototype.sign=s("eth_sign"),o.prototype.sendTransaction=s("eth_sendTransaction"),o.prototype.sendRawTransaction=s("eth_sendRawTransaction"),o.prototype.estimateGas=s("eth_estimateGas"),o.prototype.getBlockByHash=s("eth_getBlockByHash"),o.prototype.getBlockByNumber=s("eth_getBlockByNumber"),o.prototype.getTransactionByHash=s("eth_getTransactionByHash"),o.prototype.getTransactionByBlockHashAndIndex=s("eth_getTransactionByBlockHashAndIndex"),o.prototype.getTransactionByBlockNumberAndIndex=s("eth_getTransactionByBlockNumberAndIndex"),o.prototype.getTransactionReceipt=s("eth_getTransactionReceipt"),o.prototype.getUncleByBlockHashAndIndex=s("eth_getUncleByBlockHashAndIndex"),o.prototype.getUncleByBlockNumberAndIndex=s("eth_getUncleByBlockNumberAndIndex"),o.prototype.getCompilers=s("eth_getCompilers"),o.prototype.compileLLL=s("eth_compileLLL"),o.prototype.compileSolidity=s("eth_compileSolidity"),o.prototype.compileSerpent=s("eth_compileSerpent"),o.prototype.newFilter=s("eth_newFilter"),o.prototype.newBlockFilter=s("eth_newBlockFilter"),o.prototype.newPendingTransactionFilter=s("eth_newPendingTransactionFilter"),o.prototype.uninstallFilter=s("eth_uninstallFilter"),o.prototype.getFilterChanges=s("eth_getFilterChanges"),o.prototype.getFilterLogs=s("eth_getFilterLogs"),o.prototype.getLogs=s("eth_getLogs"),o.prototype.getWork=s("eth_getWork"),o.prototype.submitWork=s("eth_submitWork"),o.prototype.submitHashrate=s("eth_submitHashrate"),o.prototype.sendAsync=function(t,e){var n;this.currentProvider.sendAsync((n=t,r({id:i(),jsonrpc:"2.0",params:[]},n)),(function(t,n){if(!t&&n.error&&(t=new Error("EthQuery - RPC Error - "+n.error.message)),t)return e(t);e(null,n.result)}))}},59431:function(t){t.exports=s,s.default=s,s.stable=h,s.stableStringify=h;
2var e="[...]",n="[Circular]",r=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(t,e,n,s){var u;"undefined"===typeof s&&(s=o()),a(t,"",0,[],void 0,0,s);try{u=0===i.length?JSON.stringify(t,e,n):JSON.stringify(t,f(e),n)}catch(h){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function u(t,e,n,o){var s=Object.getOwnPropertyDescriptor(o,n);void 0!==s.get?s.configurable?(Object.defineProperty(o,n,{value:t}),r.push([o,n,e,s])):i.push([e,n,t]):(o[n]=t,r.push([o,n,e]))}function a(t,r,i,o,s,c,h){var l;if(c+=1,"object"===typeof t&&null!==t){for(l=0;l<o.length;l++)if(o[l]===t)return void u(n,t,r,s);if("undefined"!==typeof h.depthLimit&&c>h.depthLimit)return void u(e,t,r,s);if("undefined"!==typeof h.edgesLimit&&i+1>h.edgesLimit)return void u(e,t,r,s);if(o.push(t),Array.isArray(t))for(l=0;l<t.length;l++)a(t[l],l,l,o,t,c,h);else{var f=Object.keys(t);for(l=0;l<f.length;l++){var d=f[l];a(t[d],d,l,o,t,c,h)}}o.pop()}}function c(t,e){return t<e?-1:t>e?1:0}function h(t,e,n,s){"undefined"===typeof s&&(s=o());var u,a=l(t,"",0,[],void 0,0,s)||t;try{u=0===i.length?JSON.stringify(a,e,n):JSON.stringify(a,f(e),n)}catch(h){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return u}function l(t,i,o,s,a,h,f){var d;if(h+=1,"object"===typeof t&&null!==t){for(d=0;d<s.length;d++)if(s[d]===t)return void u(n,t,i,a);try{if("function"===typeof t.toJSON)return}catch(y){return}if("undefined"!==typeof f.depthLimit&&h>f.depthLimit)return void u(e,t,i,a);if("undefined"!==typeof f.edgesLimit&&o+1>f.edgesLimit)return void u(e,t,i,a);if(s.push(t),Array.isArray(t))for(d=0;d<t.length;d++)l(t[d],d,d,s,t,h,f);else{var p={},v=Object.keys(t).sort(c);for(d=0;d<v.length;d++){var m=v[d];l(t[m],m,d,s,t,h,f),p[m]=t[m]}if("undefined"===typeof a)return p;r.push([a,i,t]),a[i]=p}s.pop()}}function f(t){return t="undefined"!==typeof t?t:function(t,e){return e},function(e,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===e&&o[0]===n){n=o[2],i.splice(r,1);break}}return t.call(this,e,n)}}},51179:function(t,e,n){"use strict";var r=n(16557),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(t,e,n){for(var r=0,i=t.length;r<i;r++)o.call(t,r)&&(null==n?e(t[r],r,t):e.call(n,t[r],r,t))},u=function(t,e,n){for(var r=0,i=t.length;r<i;r++)null==n?e(t.charAt(r),r,t):e.call(n,t.charAt(r),r,t)},a=function(t,e,n){for(var r in t)o.call(t,r)&&(null==n?e(t[r],r,t):e.call(n,t[r],r,t))};t.exports=function(t,e,n){if(!r(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),"[object Array]"===i.call(t)?s(t,e,o):"string"===typeof t?u(t,e,o):a(t,e,o)}},16557:function(t){"use strict";var e,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,e)}catch(h){h!==n&&(i=null)}else i=null;var o=/^\s*class\b/,s=function(t){try{var e=r.call(t);return o.test(e)}catch(n){return!1}},u=Object.prototype.toString,a="function"===typeof Symbol&&!!Symbol.toStringTag,c="object"===typeof document&&"undefined"===typeof document.all&&void 0!==document.all?document.all:{};t.exports=i?function(t){if(t===c)return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if("function"===typeof t&&!t.prototype)return!0;try{i(t,null,e)}catch(r){if(r!==n)return!1}return!s(t)}:function(t){if(t===c)return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if("function"===typeof t&&!t.prototype)return!0;if(a)return function(t){try{return!s(t)&&(r.call(t),!0)}catch(e){return!1}}(t);if(s(t))return!1;var e=u.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e}},85106:function(t){"use strict";
2t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},44443:function(t,e,n){"use strict";var r=n(85106);t.exports=function(){return r()&&!!Symbol.toStringTag}},81739:function(t,e,n){var r=e;r.utils=n(685),r.common=n(98760),r.sha=n(57934),r.ripemd=n(87688),r.hmac=n(52792),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},98760:function(t,e,n){"use strict";var r=n(685),i=n(90224);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}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},52792:function(t,e,n){"use strict";var r=n(685),i=n(90224);function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},87688:function(t,e,n){"use strict";var r=n(685),i=n(98760),o=r.rotl32,s=r.sum32,u=r.sum32_3,a=r.sum32_4,c=i.BlockHash;function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function f(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function d(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}r.inherits(h,c),e.ripemd160=h,h.blockSize=512,h.outSize=160,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],h=this.h[4],g=n,b=r,w=i,_=c,M=h,k=0;k<80;k++){var x=s(o(a(n,l(k,r,i,c),t[p[k]+e],f(k)),m[k]),h);n=h,h=c,c=o(i,10),i=r,r=x,x=s(o(a(g,l(79-k,b,w,_),t[v[k]+e],d(k)),y[k]),M),g=M,M=_,_=o(w,10),w=b,b=x}x=u(this.h[1],i,_),this.h[1]=u(this.h[2],c,M),this.h[2]=u(this.h[3],h,g),this.h[3]=u(this.h[4],n,b),this.h[4]=u(this.h[0],r,w),this.h[0]=x},h.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.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],v=[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],m=[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],y=[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]},57934:function(t,e,n){"use strict";e.sha1=n(45508),e.sha224=n(77465),e.sha256=n(73276),e.sha384=n(35358),e.sha512=n(59699)},45508:function(t,e,n){"use strict";var r=n(685),i=n(98760),o=n(27885),s=r.rotl32,u=r.sum32,a=r.sum32_5,c=o.ft_1,h=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,h),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=s(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],h=this.h[2],f=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),v=a(s(i,5),c(p,o,h,f),d,n[r],l[p]);d=f,f=h,h=s(o,30),o=i,i=v}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],h),this.h[3]=u(this.h[3],f),this.h[4]=u(this.h[4],d)},f.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},77465:function(t,e,n){"use strict";var r=n(685),i=n(73276);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},73276:function(t,e,n){"use strict";var r=n(685),i=n(98760),o=n(27885),s=n(90224),u=r.sum32,a=r.sum32_4,c=r.sum32_5,h=o.ch32,l=o.maj32,f=o.s0_256,d=o.s1_256,p=o.g0_256,v=o.g1_256,m=i.BlockHash,y=[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,2756
vendor: 3,373 bytes, line 2
2734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(g,m),t.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(v(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],m=this.h[2],y=this.h[3],g=this.h[4],b=this.h[5],w=this.h[6],_=this.h[7];for(s(this.k.length===n.length),r=0;r<n.length;r++){var M=c(_,d(g),h(g,b,w),this.k[r],n[r]),k=u(f(i),l(i,o,m));_=w,w=b,b=g,g=u(y,M),y=m,m=o,o=i,i=u(M,k)}this.h[0]=u(this.h[0],i),this.h[1]=u(this.h[1],o),this.h[2]=u(this.h[2],m),this.h[3]=u(this.h[3],y),this.h[4]=u(this.h[4],g),this.h[5]=u(this.h[5],b),this.h[6]=u(this.h[6],w),this.h[7]=u(this.h[7],_)},g.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},35358:function(t,e,n){"use strict";var r=n(685),i=n(59699);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]}r.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},59699:function(t,e,n){"use strict";var r=n(685),i=n(98760),o=n(90224),s=r.rotr64_hi,u=r.rotr64_lo,a=r.shr64_hi,c=r.shr64_lo,h=r.sum64,l=r.sum64_hi,f=r.sum64_lo,d=r.sum64_4_hi,p=r.sum64_4_lo,v=r.sum64_5_hi,m=r.sum64_5_lo,y=i.BlockHash,g=[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,
21126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function _(t,e,n,r,i,o){var s=e&r^~e&o;return s<0&&(s+=4294967296),s}function M(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function k(t,e,n,r,i,o){var s=e&r^e&o^r&o;return s<0&&(s+=4294967296),s}function x(t,e){var n=s(t,e,28)^s(e,t,2)^s(e,t,7);return n<0&&(n+=4294967296),n}function S(t,e){var n=u(t,e,28)^u(e,t,2)^u(e,t,7);return n<0&&(n+=4294967296),n}function E(t,e){var n=s(t,e,14)^s(t,e,18)^s(e,t,9);return n<0&&(n+=4294967296),n}function C(t,e){var n=u(t,e,14)^u(t,e,18)^u(e,t,9);return n<0&&(n+=4294967296),n}function A(t,e){var n=s(t,e,1)^s(t,e,8)^a(t,e,7);return n<0&&(n+=4294967296),n}function I(t,e){var n=u(t,e,1)^u(t,e,8)^c(t,e,7);return n<0&&(n+=4294967296),n}function T(t,e){var n=s(t,e,19)^s(e,t,29)^a(t,e,6);return n<0&&(n+=4294967296),n}function N(t,e){var n=u(t,e,19)^u(e,t,29)^c(t,e,6);return n<0&&(n+=4294967296),n}r.inherits(b,y),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=T(n[r-4],n[r-3]),o=N(n[r-4],n[r-3]),s=n[r-14],u=n[r-13],a=A(n[r-30],n[r-29]),c=I(n[r-30],n[r-29]),h=n[r-32],l=n[r-31];n[r]=d(i,o,s,u,a,c,h,l),n[r+1]=p(i,o,s,u,a,c,h,l)}},b.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],s=this.h[2],u=this.h[3],a=this.h[4],c=this.h[5],d=this.h[6],p=this.h[7],y=this.h[8],g=this.h[9],b=this.h[10],A=this.h[11],I=this.h[12],T=this.h[13],N=this.h[14],R=this.h[15];o(this.k.length===n.length);for(var O=0;O<n.length;O+=2){var j=N,P=R,L=E(y,g),D=C(y,g),B=w(y,g,b,A,I),F=_(y,g,b,A,I,T),z=this.k[O],U=this.k[O+1],W=n[O],H=n[O+1],V=v(j,P,L,D,B,F,z,U,W,H),q=m(j,P,L,D,B,F,z,U,W,H);j=x(r,i),P=S(r,i),L=M(r,i,s,u,a),D=k(r,i,s,u,a,c);var Z=l(j,P,L,D),K=f(j,P,L,D);N=I,R=T,I=b,T=A,b=y,A=g,y=l(d,p,V,q),g=f(p,p,V,q),d=a,p=c,a=s,c=u,s=r,u=i,r=l(V,q,Z,K),i=f(V,q,Z,K)}h(this.h,0,r,i),h(this.h,2,s,u),h(this.h,4,a,c),h(this.h,6,d,p),h(this.h,8,y,g),h(this.h,10,b,A),h(this.h,12,I,T),h(this.h,14,N,R)},b.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},27885:function(t,e,n){"use strict";var r=n(685).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?s(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},685:function(t,e,n){"use strict";var r=n(90224),i=n(38439);function o(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function u(t){return 1===t.length?"0"+t:t}function a(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var s=t.charCodeAt(i);s<128?n[r++]=s:s<2048?(n[r++]=s>>6|192,n[r++]=63&s|128):o(t,i)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++i)),n[r++]=s>>18|240,n[r++]=s>>12&63|128,n[r++]=s>>6&63|128,n[r++]=63&s|128):(n[r++]=s>>12|224,n[r++]=s>>6&63|128,n[r++]=63&s|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=u(t[n].toString(16));return e},e.htonl=s,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=s(i)),n+=a(i.toString(16))}return n},e.zero2=u,e.zero8=a,e.join32=function(t,e,n,i){var o=n-e;r(o%4===0);for(var s=new Array(o/4),u=0,a=e;u<s.length;u++,a+=4){var c;c="big"===i?t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3]:t[a+3]<<24|t[a+2]<<16|t[a+1]<<8|t[a],s[u]=c>>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,s=(o<r?1:0)+n+i;t[e]=s>>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,s,u){var a=0,c=e;return a+=(c=c+r>>>0)<e?1:0,a+=(c=c+o>>>0)<o?1:0,t+n+i+s+(a+=(c=c+u>>>0)<u?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,o,s,u){return e+r+o+u>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,s,u,a,c){var h=0,l=e;return h+=(l=l+r>>>0)<e?1:0,h+=(l=l+o>>>0)<o?1:0,h+=(l=l+u>>>0)<u?1:0,t+n+i+s+a+(h+=(l=l+c>>>0)<c?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,o,s,u,a,c){return e+r+o+u+c>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},3512:function(t,e,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,i=n(12829)("Object.prototype.toString"),o=function(t){return!(r&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!o(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},u=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=u?o:s},39875:function(t,e,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,u=n(44443)(),a=Object.getPrototypeOf;t.exports=function(t){if("function"!==typeof t)return!1;if(s.test(o.call(t)))return!0;
2if(!u)return"[object GeneratorFunction]"===i.call(t);if(!a)return!1;if("undefined"===typeof r){var e=function(){if(!u)return!1;try{return Function("return function*() {}")()}catch(t){}}();r=!!e&&a(e)}return a(t)===r}},4732:function(t,e,n){"use strict";var r=n(51179),i=n(66754),o=n(12829),s=o("Object.prototype.toString"),u=n(44443)(),a="undefined"===typeof globalThis?n.g:globalThis,c=i(),h=o("Array.prototype.indexOf",!0)||function(t,e){for(var n=0;n<t.length;n+=1)if(t[n]===e)return n;return-1},l=o("String.prototype.slice"),f={},d=n(56397),p=Object.getPrototypeOf;u&&d&&p&&r(c,(function(t){var e=new a[t];if(Symbol.toStringTag in e){var n=p(e),r=d(n,Symbol.toStringTag);if(!r){var i=p(n);r=d(i,Symbol.toStringTag)}f[t]=r.get}}));t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!u||!(Symbol.toStringTag in t)){var e=l(s(t),8,-1);return h(c,e)>-1}return!!d&&function(t){var e=!1;return r(f,(function(n,r){if(!e)try{e=n.call(t)===r}catch(i){}})),e}(t)}},16348:function(t,e,n){var r,i=n(26477);!function(){"use strict";var o="input is invalid type",s="object"===typeof window,u=s?window:{};u.JS_SHA3_NO_WINDOW&&(s=!1);var a=!s&&"object"===typeof self;!u.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node?u=n.g:a&&(u=self);var c=!u.JS_SHA3_NO_COMMON_JS&&t.exports,h=n.amdO,l=!u.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,f="0123456789abcdef".split(""),d=[4,1024,262144,67108864],p=[0,8,16,24],v=[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],m=[224,256,384,512],y=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!u.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!l||!u.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"===typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var w=function(t,e,n){return function(r){return new P(t,e,t).update(r)[n]()}},_=function(t,e,n){return function(r,i){return new P(t,e,i).update(r)[n]()}},M=function(t,e,n){return function(e,r,i,o){return C["cshake"+t].update(e,r,i,o)[n]()}},k=function(t,e,n){return function(e,r,i,o){return C["kmac"+t].update(e,r,i,o)[n]()}},x=function(t,e,n,r){for(var i=0;i<g.length;++i){var o=g[i];t[o]=e(n,r,o)}return t},S=function(t,e){var n=w(t,e,"hex");return n.create=function(){return new P(t,e,t)},n.update=function(t){return n.create().update(t)},x(n,w,t,e)},E=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:S},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:S},{name:"shake",padding:[31,7936,2031616,520093696],bits:y,createMethod:function(t,e){var n=_(t,e,"hex");return n.create=function(n){return new P(t,e,n)},n.update=function(t,e){return n.create(e).update(t)},x(n,_,t,e)}},{name:"cshake",padding:d,bits:y,createMethod:function(t,e){var n=b[t],r=M(t,0,"hex");return r.create=function(r,i,o){return i||o?new P(t,e,r).bytepad([i,o],n):C["shake"+t].create(r)},r.update=function(t,e,n,i){return r.create(e,n,i).update(t)},x(r,M,t,e)}},{name:"kmac",padding:d,bits:y,createMethod:function(t,e){var n=b[t],r=k(t,0,"hex");return r.create=function(r,i,o){return new L(t,e,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(t,e,n,i){return r.create(t,n,i).update(e)},x(r,k,t,e)}}],C={},A=[],I=0;I<E.length;++I)for(var T=E[I],N=T.bits,R=0;R<N.length;++R){var O=T.name+"_"+N[R];if(A.push(O),C[O]=T.createMethod(N[R],T.padding),"sha3"!==T.name){var j=T.name+N[R];A.push(j),C[j]=C[O]}}function P(t,e,n){this.blocks=[],this.s=[],this.padding=e,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(t<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function L(t,e,n){P.call(this,t,e,n)}P.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(o);if(null===t)throw new Error(o);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(o);e=!0}for(var r,i,s=this.blocks,u=this.byteCount,a=t.length,c=this.blockCount,h=0,f=this.s;h<a;){if(this.reset)for(this.reset=!1,s[0]=this.block,r=1;r<c+1;++r)s[r]=0;if(e)for(r=this.start;h<a&&r<u;++h)s[r>>2]|=t[h]<<p[3&r++];else for(r=this.start;h<a&&r<u;++h)(i=t.charCodeAt(h))<128?s[r>>2]|=i<<p[3&r++]:i<2048?(s[r>>2]|=(192|i>>6)<<p[3&r++],s[r>>2]|=(128|63&i)<<p[3&r++]):i<55296||i>=57344?(s[r>>2]|=(224|i>>12)<<p[3&r++],s[r>>2]|=(128|i>>6&63)<<p[3&r++],s[r>>2]|=(128|63&i)<<p[3&r++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++h)),s[r>>2]|=(240|i>>18)<<p[3&r++],s[r>>2]|=(128|i>>12&63)<<p[3&r++],s[r>>2]|=(128|i>>6&63)<<p[3&r++],s[r>>2]|=(128|63&i)<<p[3&r++]);if(this.lastByteIndex=r,r>=u){for(this.start=r-u,this.block=s[c],r=0;r<c;++r)f[r]^=s[r];D(f),this.reset=!0}else this.start=r}return this},P.prototype.encode=function(t,e){var n=255&t,r=1,i=[n];for(n=255&(t>>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},P.prototype.encodeString=function(t){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(o);if(null===t)throw new Error(o);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!l||!ArrayBuffer.isView(t)))throw new Error(o);e=!0}var r=0,i=t.length;if(e)r=i;else for(var s=0;s<t.length;++s){var u=t.charCodeAt(s);u<128?r+=1:u<2048?r+=2:u<55296||u>=57344?r+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),r+=4)}return r+=this.encode(8*r),this.update(t),r},P.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r<t.length;++r)n+=this.encodeString(t[r]);var i=e-n%e,o=[];return o.length=i,this.update(o),this},P.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex,n=this.blockCount,r=this.s;if(t[e>>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e<n+1;++e)t[e]=0;for(t[n-1]|=2147483648,e=0;e<n;++e)r[e]^=t[e];D(r)}},P.prototype.toString=P.prototype.hex=function(){this.finalize();for(var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,u="";s<r;){for(o=0;o<e&&s<r;++o,++s)t=n[o],u+=f[t>>4&15]+f[15&t]+f[t>>12&15]+f[t>>8&15]+f[t>>20&15]+f[t>>16&15]+f[t>>28&15]+f[t>>24&15];s%e===0&&(D(n),o=0)}return i&&(t=n[o],u+=f[t>>4&15]+f[15&t],i>1&&(u+=f[t>>12&15]+f[t>>8&15]),i>2&&(u+=f[t>>20&15]+f[t>>16&15])),u},P.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,s=0,u=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(u);for(var a=new Uint32Array(t);s<r;){for(o=0;o<e&&s<r;++o,++s)a[s]=n[o];s%e===0&&D(n)}return i&&(a[o]=n[o],t=t.slice(0,u)),t},P.prototype.buffer=P.prototype.arrayBuffer,P.prototype.digest=P.prototype.array=function(){this.finalize();for(var t,e,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,s=0,u=0,a=[];u<i;){for(s=0;s<n&&u<i;++s,++u)t=u<<2,e=r[s],a[t]=255&e,a[t+1]=e>>8&255,a[t+2]=e>>16&255,a[t+3]=e>>24&255;u%n===0&&D(r)}return o&&(t=u<<2,e=r[s],a[t]=255&e,o>1&&(a[t+1]=e>>8&255),o>2&&(a[t+2]=e>>16&255)),a},L.prototype=new P,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var D=function(t){var e,n,r,i,o,s,u,a,c,h,l,f,d,p,m,y,g,b,w,_,M,k,x,S,E,C,A,I,T,N,R,O,j,P,L,D,B,F,z,U,W,H,V,q,Z,K,Y,G,J,Q,$,X,tt,et,nt,rt,it,ot,st,ut,at,ct,ht;
2for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],s=t[2]^t[12]^t[22]^t[32]^t[42],u=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(s<<1|u>>>31),n=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(u<<1|s>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(a<<1|c>>>31),n=o^(c<<1|a>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=s^(h<<1|l>>>31),n=u^(l<<1|h>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=a^(f<<1|d>>>31),n=c^(d<<1|f>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=h^(i<<1|o>>>31),n=l^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,p=t[0],m=t[1],K=t[11]<<4|t[10]>>>28,Y=t[10]<<4|t[11]>>>28,I=t[20]<<3|t[21]>>>29,T=t[21]<<3|t[20]>>>29,ut=t[31]<<9|t[30]>>>23,at=t[30]<<9|t[31]>>>23,H=t[40]<<18|t[41]>>>14,V=t[41]<<18|t[40]>>>14,P=t[2]<<1|t[3]>>>31,L=t[3]<<1|t[2]>>>31,y=t[13]<<12|t[12]>>>20,g=t[12]<<12|t[13]>>>20,G=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,N=t[33]<<13|t[32]>>>19,R=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,ht=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,D=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,Q=t[34]<<15|t[35]>>>17,$=t[35]<<15|t[34]>>>17,O=t[45]<<29|t[44]>>>3,j=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,F=t[26]<<25|t[27]>>>7,z=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,M=t[37]<<21|t[36]>>>11,X=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,Z=t[9]<<27|t[8]>>>5,C=t[18]<<20|t[19]>>>12,A=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,st=t[28]<<7|t[29]>>>25,U=t[38]<<8|t[39]>>>24,W=t[39]<<8|t[38]>>>24,k=t[48]<<14|t[49]>>>18,x=t[49]<<14|t[48]>>>18,t[0]=p^~y&b,t[1]=m^~g&w,t[10]=S^~C&I,t[11]=E^~A&T,t[20]=P^~D&F,t[21]=L^~B&z,t[30]=q^~K&G,t[31]=Z^~Y&J,t[40]=et^~rt&ot,t[41]=nt^~it&st,t[2]=y^~b&_,t[3]=g^~w&M,t[12]=C^~I&N,t[13]=A^~T&R,t[22]=D^~F&U,t[23]=B^~z&W,t[32]=K^~G&Q,t[33]=Y^~J&$,t[42]=rt^~ot&ut,t[43]=it^~st&at,t[4]=b^~_&k,t[5]=w^~M&x,t[14]=I^~N&O,t[15]=T^~R&j,t[24]=F^~U&H,t[25]=z^~W&V,t[34]=G^~Q&X,t[35]=J^~$&tt,t[44]=ot^~ut&ct,t[45]=st^~at&ht,t[6]=_^~k&p,t[7]=M^~x&m,t[16]=N^~O&S,t[17]=R^~j&E,t[26]=U^~H&P,t[27]=W^~V&L,t[36]=Q^~X&q,t[37]=$^~tt&Z,t[46]=ut^~ct&et,t[47]=at^~ht&nt,t[8]=k^~p&y,t[9]=x^~m&g,t[18]=O^~S&C,t[19]=j^~E&A,t[28]=H^~P&D,t[29]=V^~L&B,t[38]=X^~q&K,t[39]=tt^~Z&Y,t[48]=ct^~et&rt,t[49]=ht^~nt&it,t[0]^=v[r],t[1]^=v[r+1]};if(c)t.exports=C;else{for(I=0;I<A.length;++I)u[A[I]]=C[A[I]];h&&(void 0===(r=function(){return C}.call(e,n,e,t))||(t.exports=r))}}()},36432:function(t,e,n){"use strict";var r=n(74704).default,i=n(17061).default,o=n(27424).default,s=n(17156).default,u=n(56690).default,a=n(89728).default,c=n(61655).default,h=n(26389).default,l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonRpcEngine=void 0;var f=l(n(28050)),d=n(60978),p=function(t){c(n,t);var e=h(n);function n(){var t;return u(this,n),(t=e.call(this))._middleware=[],t}return a(n,[{key:"push",value:function(t){this._middleware.push(t)}},{key:"handle",value:function(t,e){if(e&&"function"!==typeof e)throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?e?this._handleBatch(t,e):this._handleBatch(t):e?this._handle(t,e):this._promiseHandle(t)}},{key:"asMiddleware",value:function(){var t=this;return function(){var e=s(i().mark((function e(r,u,a,c){var h,l,f,d,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n._runAllMiddleware(r,u,t._middleware);case 3:if(h=e.sent,l=o(h,3),f=l[0],d=l[1],p=l[2],!d){e.next=12;break}return e.next=11,n._runReturnHandlers(p);case 11:return e.abrupt("return",c(f));case 12:return e.abrupt("return",a(function(){var t=s(i().mark((function t(e){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n._runReturnHandlers(p);case 3:t.next=8;break;case 5:return t.prev=5,t.t0=t.catch(0),t.abrupt("return",e(t.t0));case 8:return t.abrupt("return",e());case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e){return t.apply(this,arguments)}}()));case 15:return e.prev=15,e.t0=e.catch(0),e.abrupt("return",c(e.t0));case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t,n,r,i){return e.apply(this,arguments)}}()}},{key:"_handleBatch",value:function(){var t=s(i().mark((function t(e,n){var r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Promise.all(e.map(this._promiseHandle.bind(this)));case 3:if(r=t.sent,!n){t.next=6;break}return t.abrupt("return",n(null,r));case 6:return t.abrupt("return",r);case 9:if(t.prev=9,t.t0=t.catch(0),!n){t.next=13;break}return t.abrupt("return",n(t.t0));case 13:throw t.t0;case 14:case"end":return t.stop()}}),t,this,[[0,9]])})));return function(e,n){return t.apply(this,arguments)}}()},{key:"_promiseHandle",value:function(t){var e=this;return new Promise((function(n){e._handle(t,(function(t,e){n(e)}))}))}},{key:"_handle",value:function(){var t=s(i().mark((function t(e,n){var r,o,s,u,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e&&!Array.isArray(e)&&"object"===typeof e){t.next=3;break}return r=new d.EthereumRpcError(d.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: ".concat(typeof e),{request:e}),t.abrupt("return",n(r,{id:void 0,jsonrpc:"2.0",error:r}));case 3:if("string"===typeof e.method){t.next=6;break}return o=new d.EthereumRpcError(d.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: ".concat(typeof e.method),{request:e}),t.abrupt("return",n(o,{id:e.id,jsonrpc:"2.0",error:o}));case 6:return s=Object.assign({},e),u={id:s.id,jsonrpc:s.jsonrpc},a=null,t.prev=9,t.next=12,this._processRequest(s,u);case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(9),a=t.t0;case 17:return a&&(delete u.result,u.error||(u.error=d.serializeError(a))),t.abrupt("return",n(a,u));case 19:case"end":return t.stop()}}),t,this,[[9,14]])})));return function(e,n){return t.apply(this,arguments)}}()},{key:"_processRequest",value:function(){var t=s(i().mark((function t(e,r){var s,u,a,c,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._runAllMiddleware(e,r,this._middleware);case 2:return s=t.sent,u=o(s,3),a=u[0],c=u[1],h=u[2],n._checkForCompletion(e,r,c),t.next=10,n._runReturnHandlers(h);case 10:if(!a){t.next=12;break}throw a;case 12:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}()}],[{key:"_runAllMiddleware",value:function(){var t=s(i().mark((function t(e,s,u){var a,c,h,l,f,d,p,v;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=[],c=null,h=!1,l=r(u),t.prev=4,l.s();case 6:if((f=l.n()).done){t.next=18;break}return d=f.value,t.next=10,n._runMiddleware(e,s,d,a);case 10:if(p=t.sent,v=o(p,2),c=v[0],!(h=v[1])){t.next=16;break}return t.abrupt("break",18);case 16:t.next=6;break;case 18:t.next=23;break;case 20:t.prev=20,t.t0=t.catch(4),l.e(t.t0);case 23:return t.prev=23,l.f(),t.finish(23);case 26:return t.abrupt("return",[c,h,a.reverse()]);case 27:case"end":return t.stop()}}),t,null,[[4,20,23,26]])})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"_runMiddleware",value:function(t,e,n,r){return new Promise((function(i){var o=function(t){var n=t||e.error;n&&(e.error=d.serializeError(n)),i([n,!0])};try{n(t,e,(function(n){e.error?o(e.error):(n&&("function"!==typeof n&&o(new d.EthereumRpcError(d.errorCodes.rpc.internal,'JsonRpcEngine: "next" return handlers must be functions. '+'Received "'.concat(typeof n,'" for request:\n').concat(v(t)),{request:t})),r.push(n)),i([null,!1]))}),o)}catch(s){o(s)}}))}},{key:"_runReturnHandlers",value:function(){var t=s(i().mark((function t(e){var n,o,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r(e),t.prev=1,s=i().mark((function t(){var e;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.value,t.next=3,new Promise((function(t,n){e((function(e){return e?n(e):t()}))}));case 3:case"end":return t.stop()}}),t)})),n.s();case 4:if((o=n.n()).done){t.next=8;break}return t.delegateYield(s(),"t0",6);case 6:t.next=4;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),n.e(t.t1);case 13:return t.prev=13,n.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])})));return function(e){return t.apply(this,arguments)}}()},{key:"_checkForCompletion",value:function(t,e,n){if(!("result"in e)&&!("error"in e))throw new d.EthereumRpcError(d.errorCodes.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n".concat(v(t)),{request:t});if(!n)throw new d.EthereumRpcError(d.errorCodes.rpc.internal,"JsonRpcEngine: Nothing ended request:\n".concat(v(t)),{request:t})}}]),n}(f.default);function v(t){return JSON.stringify(t,null,2)}e.JsonRpcEngine=p},52220:function(t,e,n){"use strict";var r=n(17061).default,i=n(17156).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.createAsyncMiddleware=void 0,e.createAsyncMiddleware=function(t){return function(){var e=i(r().mark((function e(n,o,s,u){var a,c,h,l,f;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=new Promise((function(t){a=t})),h=null,l=!1,f=function(){var t=i(r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=!0,s((function(t){h=t,a()})),t.next=4,c;case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),e.prev=4,e.next=7,t(n,o,f);case 7:if(!l){e.next=13;break}return e.next=10,c;case 10:h(null),e.next=14;break;case 13:u(null);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),h?h(e.t0):u(e.t0);case 19:case"end":return e.stop()}}),e,null,[[4,16]])})));return function(t,n,r,i){return e.apply(this,arguments)}}()}},63285:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createScaffoldMiddleware=void 0,e.createScaffoldMiddleware=function(t){return function(e,n,r,i){var o=t[e.method];return void 0===o?r():"function"===typeof o?o(e,n,r,i):(n.result=o,i())}}},23438:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUniqueId=void 0;var n=4294967295,r=Math.floor(Math.random()*n);e.getUniqueId=function(){return r=(r+1)%n}},97355:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createIdRemapMiddleware=void 0;var r=n(23438);e.createIdRemapMiddleware=function(){return function(t,e,n,i){var o=t.id,s=r.getUniqueId();t.id=s,e.id=s,n((function(n){t.id=o,e.id=o,n()}))}}},76265:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),i(n(97355),e),i(n(52220),e),i(n(63285),e),i(n(23438),e),i(n(36432),e),i(n(68807),e)},68807:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMiddleware=void 0;var r=n(36432);e.mergeMiddleware=function(t){var e=new r.JsonRpcEngine;return t.forEach((function(t){return e.push(t)})),e.asMiddleware()}},28102:function(t,e,n){"use strict";var r=n(56690).default,i=n(89728).default,o=n(61655).default,s=n(26389).default,u=n(33496).default;Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;var a=n(59431),c=function(t){o(n,t);var e=s(n);function n(t,i,o){var s;if(r(this,n),!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!i||"string"!==typeof i)throw new Error('"message" must be a nonempty string.');return(s=e.call(this,i)).code=t,void 0!==o&&(s.data=o),s}return i(n,[{key:"serialize",value:function(){var t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}},{key:"toString",value:function(){return a.default(this.serialize(),l,2)}}]),n}(u(Error));e.EthereumRpcError=c;var h=function(t){o(n,t);var e=s(n);function n(t,i,o){if(r(this,n),!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');return e.call(this,t,i,o)}return i(n)}(c);function l(t,e){if("[Circular]"!==e)return e}e.EthereumProviderError=h},74286:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},e.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},95858:function(t,e,n){"use strict";var r=n(27424).default;
2Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;var i=n(28102),o=n(59902),s=n(74286);function u(t,e){var n=c(e),s=r(n,2),u=s[0],a=s[1];return new i.EthereumRpcError(t,u||o.getMessageFromCode(t),a)}function a(t,e){var n=c(e),s=r(n,2),u=s[0],a=s[1];return new i.EthereumProviderError(t,u||o.getMessageFromCode(t),a)}function c(t){if(t){if("string"===typeof t)return[t];if("object"===typeof t&&!Array.isArray(t)){var e=t.message,n=t.data;if(e&&"string"!==typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}e.ethErrors={rpc:{parse:function(t){return u(s.errorCodes.rpc.parse,t)},invalidRequest:function(t){return u(s.errorCodes.rpc.invalidRequest,t)},invalidParams:function(t){return u(s.errorCodes.rpc.invalidParams,t)},methodNotFound:function(t){return u(s.errorCodes.rpc.methodNotFound,t)},internal:function(t){return u(s.errorCodes.rpc.internal,t)},server:function(t){if(!t||"object"!==typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");var e=t.code;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code
2<= -32005');return u(e,t)},invalidInput:function(t){return u(s.errorCodes.rpc.invalidInput,t)},resourceNotFound:function(t){return u(s.errorCodes.rpc.resourceNotFound,t)},resourceUnavailable:function(t){return u(s.errorCodes.rpc.resourceUnavailable,t)},transactionRejected:function(t){return u(s.errorCodes.rpc.transactionRejected,t)},methodNotSupported:function(t){return u(s.errorCodes.rpc.methodNotSupported,t)},limitExceeded:function(t){return u(s.errorCodes.rpc.limitExceeded,t)}},provider:{userRejectedRequest:function(t){return a(s.errorCodes.provider.userRejectedRequest,t)},unauthorized:function(t){return a(s.errorCodes.provider.unauthorized,t)},unsupportedMethod:function(t){return a(s.errorCodes.provider.unsupportedMethod,t)},disconnected:function(t){return a(s.errorCodes.provider.disconnected,t)},chainDisconnected:function(t){return a(s.errorCodes.provider.chainDisconnected,t)},custom:function(t){if(!t||"object"!==typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");var e=t.code,n=t.message,r=t.data;if(!n||"string"!==typeof n)throw new Error('"message" must be a nonempty string');return new i.EthereumProviderError(e,n,r)}}}},60978:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;var r=n(28102);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});var i=n(59902);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});var o=n(95858);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});var s=n(74286);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return s.errorCodes}})},59902:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var r=n(74286),i=n(28102),o=r.errorCodes.rpc.internal,s="Unspecified error message. This is a bug, please report it.",u={code:o,message:a(o)};function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if(Number.isInteger(t)){var i=t.toString();if(f(r.errorValues,i))return r.errorValues[i].message;if(h(t))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function c(t){if(!Number.isInteger(t))return!1;var e=t.toString();return!!r.errorValues[e]||!!h(t)}function h(t){return t>=-32099&&t<=-32e3}function l(t){return t&&"object"===typeof t&&!Array.isArray(t)?Object.assign({},t):t}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=a,e.isValidCode=c,e.serializeError=function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.fallbackError,s=void 0===o?u:o,h=r.shouldIncludeStack,d=void 0!==h&&h;if(!s||!Number.isInteger(s.code)||"string"!==typeof s.message)throw new Error("Mu
2st provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();var p={};if(t&&"object"===typeof t&&!Array.isArray(t)&&f(t,"code")&&c(t.code)){var v=t;p.code=v.code,v.message&&"string"===typeof v.message?(p.message=v.message,f(v,"data")&&(p.data=v.data)):(p.message=a(p.code),p.data={originalError:l(t)})}else{p.code=s.code;var m=null===(e=t)||void 0===e?void 0:e.message;p.message=m&&"string"===typeof m?m:s.message,p.data={originalError:l(t)}}var y=null===(n=t)||void 0===n?void 0:n.stack;return d&&t&&y&&"string"===typeof y&&(p.stack=y),p}},45926:function(t){t.exports=function(t){var e=(t=t||{}).max||Number.MAX_SAFE_INTEGER,n="undefined"!==typeof t.start?t.start:Math.floor(Math.random()*e);return function(){return n%=e,n++}}},82138:function(t,e,n){t.exports=n(32708)(n(45337))},32708:function(t,e,n){var r=n(17208),i=n(24340);t.exports=function(t){var e=r(t),n=i(t);return function(t,r){switch("string"===typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,r);case"keccak256":return new e(1088,512,null,256,r);case"keccak384":return new e(832,768,null,384,r);case"keccak512":return new e(576,1024,null,512,r);case"sha3-224":return new e(1152,448,6,224,r);case"sha3-256":return new e(1088,512,6,256,r);case"sha3-384":return new e(832,768,6,384,r);case"sha3-512":return new e(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+t)}}}},17208:function(t,e,n){var r=n(97429).Buffer,i=n(56690).default,o=n(89728).default,s=n(61655).default,u=n(26389).default,a=n(98403).Transform;t.exports=function(t){return function(e){"use strict";s(a,e);var n=u(a);function a(e,r,o,s,u){var c;return i(this,a),(c=n.call(this,u))._rate=e,c._capacity=r,c._delimitedSuffix=o,c._hashBitLength=s,c._options=u,c._state=new t,c._state.initialize(e,r),c._finalized=!1,c}return o(a,[{key:"_transform",value:function(t,e,n){var r=null;try{this.update(t,e)}catch(i){r=i}n(r)}},{key:"_flush",value:function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)}},{key:"update",value:function(t,e){if(!r.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return r.isBuffer(t)||(t=r.from(t,e)),this._state.absorb(t),this}},{key:"digest",value:function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);var e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new a(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),a}(a)}},24340:function(t,e,n){var r=n(97429).Buffer,i=n(56690).default,o=n(89728).default,s=n(61655).default,u=n(26389).default,a=n(98403).Transform;t.exports=function(t){return function(e){"use strict";s(a,e);var n=u(a);function a(e,r,o,s){var u;return i(this,a),(u=n.call(this,s))._rate=e,u._capacity=r,u._delimitedSuffix=o,u._options=s,u._state=new t,u._state.initialize(e,r),u._finalized=!1,u}return o(a,[{key:"_transform",value:function(t,e,n){var r=null;try{this.update(t,e)}catch(i){r=i}n(r)}},{key:"_flush",value:function(){}},{key:"_read",value:function(t){this.push(this.squeeze(t))}},{key:"update",value:function(t,e){if(!r.isBuffer(t)&&"string"!==typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return r.isBuffer(t)||(t=r.from(t,e)),this._state.absorb(t),this}},{key:"squeeze",value:function(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));var n=this._state.squeeze(t);return void 0!==e&&(n=n.toString(e)),n}},{key:"_resetState",value:function(){return this._state.initialize(this._rate,this._capacity),this}},{key:"_clone",value:function(){var t=new a(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}]),a}(a)}},78487:function(t,e){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];e.p1600=function(t){for(var e=0;e<24;++e){var r=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],a=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[3
26]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],l=t[8]^t[18]^t[28]^t[38]^t[48],f=t[9]^t[19]^t[29]^t[39]^t[49],d=l^(o<<1|s>>>31),p=f^(s<<1|o>>>31),v=t[0]^d,m=t[1]^p,y=t[10]^d,g=t[11]^p,b=t[20]^d,w=t[21]^p,_=t[30]^d,M=t[31]^p,k=t[40]^d,x=t[41]^p;d=r^(u<<1|a>>>31),p=i^(a<<1|u>>>31);var S=t[2]^d,E=t[3]^p,C=t[12]^d,A=t[13]^p,I=t[22]^d,T=t[23]^p,N=t[32]^d,R=t[33]^p,O=t[42]^d,j=t[43]^p;d=o^(c<<1|h>>>31),p=s^(h<<1|c>>>31);var P=t[4]^d,L=t[5]^p,D=t[14]^d,B=t[15]^p,F=t[24]^d,z=t[25]^p,U=t[34]^d,W=t[35]^p,H=t[44]^d,V=t[45]^p;d=u^(l<<1|f>>>31),p=a^(f<<1|l>>>31);var q=t[6]^d,Z=t[7]^p,K=t[16]^d,Y=t[17]^p,G=t[26]^d,J=t[27]^p,Q=t[36]^d,$=t[37]^p,X=t[46]^d,tt=t[47]^p;d=c^(r<<1|i>>>31),p=h^(i<<1|r>>>31);var et=t[8]^d,nt=t[9]^p,rt=t[18]^d,it=t[19]^p,ot=t[28]^d,st=t[29]^p,ut=t[38]^d,at=t[39]^p,ct=t[48]^d,ht=t[49]^p,lt=v,ft=m,dt=g<<4|y>>>28,pt=y<<4|g>>>28,vt=b<<3|w>>>29,mt=w<<3|b>>>29,yt=M<<9|_>>>23,gt=_<<9|M>>>23,bt=k<<18|x>>>14,wt=x<<18|k>>>14,_t=S<<1|E>>>31,Mt=E<<1|S>>>31,kt=A<<12|C>>>20,xt=C<<12|A>>>20,St=I<<10|T>>>22,Et=T<<10|I>>>22,Ct=R<<13|N>>>19,At=N<<13|R>>>19,It=O<<2|j>>>30,Tt=j<<2|O>>>30,Nt=L<<30|P>>>2,Rt=P<<30|L>>>2,Ot=D<<6|B>>>26,jt=B<<6|D>>>26,Pt=z<<11|F>>>21,Lt=F<<11|z>>>21,Dt=U<<15|W>>>17,Bt=W<<15|U>>>17,Ft=V<<29|H>>>3,zt=H<<29|V>>>3,Ut=q<<28|Z>>>4,Wt=Z<<28|q>>>4,Ht=Y<<23|K>>>9,Vt=K<<23|Y>>>9,qt=G<<25|J>>>7,Zt=J<<25|G>>>7,Kt=Q<<21|$>>>11,Yt=$<<21|Q>>>11,Gt=tt<<24|X>>>8,Jt=X<<24|tt>>>8,Qt=et<<27|nt>>>5,$t=nt<<27|et>>>5,Xt=rt<<20|it>>>12,te=it<<20|rt>>>12,ee=st<<7|ot>>>25,ne=ot<<7|st>>>25,re=ut<<8|at>>>24,ie=at<<8|ut>>>24,oe=ct<<14|ht>>>18,se=ht<<14|ct>>>18;t[0]=lt^~kt&Pt,t[1]=ft^~xt&Lt,t[10]=Ut^~Xt&vt,t[11]=Wt^~te&mt,t[20]=_t^~Ot&qt,t[21]=Mt^~jt&Zt,t[30]=Qt^~dt&St,t[31]=$t^~pt&Et,t[40]=Nt^~Ht&ee,t[41]=Rt^~Vt&ne,t[2]=kt^~Pt&Kt,t[3]=xt^~Lt&Yt,t[12]=Xt^~vt&Ct,t[13]=te^~mt&At,t[22]=Ot^~qt&re,t[23]=jt^~Zt&ie,t[32]=dt^~St&Dt,t[33]=pt^~Et&Bt,t[42]=Ht^~ee&yt,t[43]=Vt^~ne>,t[4]=Pt^~Kt&oe,t[5]=Lt^~Yt&se,t[14]=vt^~Ct&Ft,t[15]=mt^~At&zt,t[24]=qt^~re&bt,t[25]=Zt^~ie&wt,t[34]=St^~Dt&Gt,t[35]=Et^~Bt&Jt,t[44]=ee^~yt&It,t[45]=ne^~gt&Tt,t[6]=Kt^~oe<,t[7]=Yt^~se&ft,t[16]=Ct^~Ft&Ut,t[17]=At^~zt&Wt,t[26]=re^~bt&_t,t[27]=ie^~wt&Mt,t[36]=Dt^~Gt&Qt,t[37]=Bt^~Jt&$t,t[46]=yt^~It&Nt,t[47]=gt^~Tt&Rt,t[8]=oe^~lt&kt,t[9]=se^~ft&xt,t[18]=Ft^~Ut&Xt,t[19]=zt^~Wt&te,t[28]=bt^~_t&Ot,t[29]=wt^~Mt&jt,t[38]=Gt^~Qt&dt,t[39]=Jt^~$t&pt,t[48]=It^~Nt&Ht,t[49]=Tt^~Rt&Vt,t[0]^=n[2*e],t[1]^=n[2*e+1]}}},45337:function(t,e,n){var r=n(97429).Buffer,i=n(78487);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(t,e){for(var n=0;n<50;++n)this.state[n]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(t){for(var e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,0!==(128&t)&&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(t){this.squeezing||this.absorbLastFewBits(1);for(var e=r.alloc(t),n=0;n<t;++n)e[n]=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 e},o.prototype.copy=function(t){for(var e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=o},90224:function(t){function e(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=e,e.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},3341:function(t,e,n){"use strict";n.r(e),n.d(e,{Component:function(){return b},Fragment:function(){return g},cloneElement:function(){return z},createContext:function(){return U},createElement:function(){return v},createRef:function(){return y},h:function(){return v},hydrate:function(){return F},isValidElement:function(){return s},options:function(){return i},render:function(){return B},toChildArray:function(){return E}});var r,i,o,s,u,a,c,h={},l=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(t,e){for(var n in e)t[n]=e[n];return t}function p(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var i,o,s,u={};for(s in e)"key"==s?i=e[s]:"ref"==s?o=e[s]:u[s]=e[s];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===u[s]&&(u[s]=t.defaultProps[s]);return m(t,u,i,o,null)}function m(t,e,n,r,s){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++o:s};return null==s&&null!=i.vnode&&i.vnode(u),u}function y(){return{current:null}}function g(t){return t.children}function b(t,e){this.props=t,this.context=e}function w(t,e){if(null==e)return t.__?w(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?w(t):null}function _(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return _(t)}}function M(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!k.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||setTimeout)(k)}function k(){for(var t;k.__r=u.length;)t=u.sort((function(t,e){return t.__v.__b-e.__v.__b})),u=[],t.some((function(t){var e,n,r,i,o,s;t.__d&&(o=(i=(e=t).__v).__e,(s=e.__P)&&(n=[],(r=d({},i)).__v=i.__v+1,R(s,i,r,e.__n,void 0!==s.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?w(i):o,i.__h),O(n,i),i.__e!=o&&_(i)))}))}function x(t,e,n,r,i,o,s,u,a,c){var f,d,p,v,y,b,_,M=r&&r.__k||l,k=M.length;
vendor: 6,135 bytes, line 2
2for(n.__k=[],f=0;f<e.length;f++)if(null!=(v=n.__k[f]=null==(v=e[f])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?m(null,v,null,null,v):Array.isArray(v)?m(g,{children:v},null,null,null):v.__b>0?m(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(p=M[f])||p&&v.key==p.key&&v.type===p.type)M[f]=void 0;else for(d=0;d<k;d++){if((p=M[d])&&v.key==p.key&&v.type===p.type){M[d]=void 0;break}p=null}R(t,v,p=p||h,i,o,s,u,a,c),y=v.__e,(d=v.ref)&&p.ref!=d&&(_||(_=[]),p.ref&&_.push(p.ref,null,v),_.push(d,v.__c||y,v)),null!=y?(null==b&&(b=y),"function"==typeof v.type&&v.__k===p.__k?v.__d=a=S(v,a,t):a=C(t,v,p,M,y,a),"function"==typeof n.type&&(n.__d=a)):a&&p.__e==a&&a.parentNode!=t&&(a=w(p))}for(n.__e=b,f=k;f--;)null!=M[f]&&("function"==typeof n.type&&null!=M[f].__e&&M[f].__e==n.__d&&(n.__d=w(r,f+1)),L(M[f],M[f]));if(_)for(f=0;f<_.length;f++)P(_[f],_[++f],_[++f])}function S(t,e,n){for(var r,i=t.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=t,e="function"==typeof r.type?S(r,e,n):C(n,r,r,i,r.__e,e));return e}function E(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){E(t,e)})):e.push(t)),e}function C(t,e,n,r,i,o){var s,u,a;if(void 0!==e.__d)s=e.__d,e.__d=void 0;else if(null==n||i!=o||null==i.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(i),s=null;else{for(u=o,a=0;(u=u.nextSibling)&&a<r.length;a+=2)if(u==i)break t;t.insertBefore(i,o),s=o}return void 0!==s?s:i.nextSibling}function A(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||f.test(e)?n:n+"px"}function I(t,e,n,r,i){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||A(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||A(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r||t.addEventListener(e,o?N:T,o):t.removeEventListener(e,o?N:T,o);else if("dangerouslySetInnerHTML"!==e){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function T(t){this.l[t.type+!1](i.event?i.event(t):t)}function N(t){this.l[t.type+!0](i.event?i.event(t):t)}function R(t,e,n,r,o,s,u,a,c){var h,l,f,p,v,m,y,w,_,M,k,S,E,C=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(c=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(h=i.__b)&&h(e);try{t:if("function"==typeof C){if(w=e.props,_=(h=C.contextType)&&r[h.__c],M=h?_?_.props.value:h.__:r,n.__c?y=(l=e.__c=n.__c).__=l.__E:("prototype"in C&&C.prototype.render?e.__c=l=new C(w,M):(e.__c=l=new b(w,M),l.constructor=C,l.render=D),_&&_.sub(l),l.props=w,l.state||(l.state={}),l.context=M,l.__n=r,f=l.__d=!0,l.__h=[]),null==l.__s&&(l.__s=l.state),null!=C.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=d({},l.__s)),d(l.__s,C.getDerivedStateFromProps(w,l.__s))),p=l.props,v=l.state,f)null==C.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==C.getDerivedStateFromProps&&w!==p&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(w,M),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(w,l.__s,M)||e.__v===n.__v){l.props=w,l.state=l.__s,e.__v!==n.__v&&(l.__d=!1),l.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),l.__h.length&&u.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(w,l.__s,M),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(p,v,m)}))}if(l.context=M,l.props=w,l.__v=e,l.__P=t,k=i.__r,S=0,"prototype"in C&&C.prototype.render)l.state=l.__s,l.__d=!1,k&&k(e),h=l.render(l.props,l.state,l.context);else do{l.__d=!1,k&&k(e),h=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++S<25);l.state=l.__s,null!=l.getChildContext&&(r=d(d({},r),l.getChildContext())),f||null==l.getSnapshotBeforeUpdate||(m=l.getSnapshotBeforeUpdate(p,v)),E=null!=h&&h.type===g&&null==h.key?h.props.children:h,x(t,Array.isArray(E)?E:[E],e,n,r,o,s,u,a,c),l.base=e.__e,e.__h=null,l.__h.length&&u.push(l),y&&(l.__E=l.__=null),l.__e=!1}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=j(n.__e,e,n,r,o,s,u,c);(h=i.diffed)&&h(e)}catch(t){e.__v=null,(c||null!=s)&&(e.__e=a,e.__h=!!c,s[s.indexOf(a)]=null),i.__e(t,e,n)}}function O(t,e){i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function j(t,e,n,i,o,s,u,a){var c,l,f,d=n.props,v=e.props,m=e.type,y=0;if("svg"===m&&(o=!0),null!=s)for(;y<s.length;y++)if((c=s[y])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){t=c,s[y]=null;break}if(null==t){if(null===m)return document.createTextNode(v);t=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,v.is&&v),s=null,a=!1}if(null===m)d===v||a&&t.data===v||(t.data=v);else{if(s=s&&r.call(t.childNodes),l=(d=n.props||h).dangerouslySetInnerHTML,f=v.dangerouslySetInnerHTML,!a){if(null!=s)for(d={},y=0;y<t.attributes.length;y++)d[t.attributes[y].name]=t.attributes[y].value;(f||l)&&(f&&(l&&f.__html==l.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in e||I(t,o,null,n[o],r);for(o in e)i&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===e[o]||I(t,o,e[o],n[o],r)}(t,v,d,o,a),f)e.__k=[];else if(y=e.props.children,x(t,Array.isArray(y)?y:[y],e,n,i,o&&"foreignObject"!==m,s,u,s?s[0]:n.__k&&w(n,0),a),null!=s)for(y=s.length;y--;)null!=s[y]&&p(s[y]);a||("value"in v&&void 0!==(y=v.value)&&(y!==t.value||"progress"===m&&!y||"option"===m&&y!==d.value)&&I(t,"value",y,d.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==t.checked&&I(t,"checked",y,d.checked,!1))}return t}function P(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){i.__e(t,n)}}function L(t,e,n){var r,o;
2if(i.unmount&&i.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||P(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){i.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(o=0;o<r.length;o++)r[o]&&L(r[o],e,"function"!=typeof t.type);n||null==t.__e||p(t.__e),t.__e=t.__d=void 0}function D(t,e,n){return this.constructor(t,n)}function B(t,e,n){var o,s,u;i.__&&i.__(t,e),s=(o="function"==typeof n)?null:n&&n.__k||e.__k,u=[],R(e,t=(!o&&n||e).__k=v(g,null,[t]),s||h,h,void 0!==e.ownerSVGElement,!o&&n?[n]:s?null:e.firstChild?r.call(e.childNodes):null,u,!o&&n?n:s?s.__e:e.firstChild,o),O(u,t)}function F(t,e){B(t,e,F)}function z(t,e,n){var i,o,s,u=d({},t.props);for(s in e)"key"==s?i=e[s]:"ref"==s?o=e[s]:u[s]=e[s];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),m(t.type,u,i||t.key,o||t.ref,null)}function U(t,e){var n={__c:e="__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(M)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=l.slice,i={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(e){t=e}throw t}},o=0,s=function(t){return null!=t&&void 0===t.constructor},b.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},n),this.props)),t&&d(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),M(this))},b.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),M(this))},b.prototype.render=g,u=[],k.__r=0,c=0},93312:function(t,e,n){"use strict";n.r(e),n.d(e,{useCallback:function(){return x},useContext:function(){return S},useDebugValue:function(){return E},useEffect:function(){return b},useErrorBoundary:function(){return C},useImperativeHandle:function(){return M},useLayoutEffect:function(){return w},useMemo:function(){return k},useReducer:function(){return g},useRef:function(){return _},useState:function(){return y}});var r,i,o,s,u=n(3341),a=0,c=[],h=[],l=u.options.__b,f=u.options.__r,d=u.options.diffed,p=u.options.__c,v=u.options.unmount;function m(t,e){u.options.__h&&u.options.__h(i,t,a||e),a=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:h}),n.__[t]}function y(t){return a=1,g(O,t)}function g(t,e,n){var o=m(r++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):O(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=i,!o.__c.u)){o.__c.__H.u=!0;var s=o.__c.shouldComponentUpdate;o.__c.shouldComponentUpdate=function(t,e,n){var r=o.__c.__H.__.filter((function(t){return t.__c}));return(r.every((function(t){return!t.__N}))||!r.every((function(t){if(!t.__N)return!0;var e=t.__[0];return t.__=t.__N,t.__N=void 0,e===t.__[0]})))&&(!s||s(t,e,n))}}return o.__N||o.__}function b(t,e){var n=m(r++,3);!u.options.__s&&R(n.__H,e)&&(n.__=t,n.o=e,i.__H.__h.push(n))}function w(t,e){var n=m(r++,4);!u.options.__s&&R(n.__H,e)&&(n.__=t,n.o=e,i.__h.push(n))}function _(t){return a=5,k((function(){return{current:t}}),[])}function M(t,e,n){a=6,w((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function k(t,e){var n=m(r++,7);return R(n.__H,e)?(n.__V=t(),n.o=e,n.__h=t,n.__V):n.__}function x(t,e){return a=8,k((function(){return t}),e)}function S(t){var e=i.context[t.__c],n=m(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function E(t,e){u.options.useDebugValue&&u.options.useDebugValue(e?e(t):t)}function C(t){var e=m(r++,10),n=y();
2return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function A(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(T),t.__H.__h.forEach(N),t.__H.__h=[]}catch(i){t.__H.__h=[],u.options.__e(i,t.__v)}}u.options.__b=function(t){i=null,l&&l(t)},u.options.__r=function(t){f&&f(t),r=0;var e=(i=t.__c).__H;e&&(o===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=h,t.__N=t.o=void 0}))):(e.__h.forEach(T),e.__h.forEach(N),e.__h=[])),o=i},u.options.diffed=function(t){d&&d(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==c.push(e)&&s===u.options.requestAnimationFrame||((s=u.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),I&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);I&&(e=requestAnimationFrame(n))})(A)),e.__H.__.forEach((function(t){t.o&&(t.__H=t.o),t.__V!==h&&(t.__=t.__V),t.o=void 0,t.__V=h}))),o=i=null},u.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(T),t.__h=t.__h.filter((function(t){return!t.__||N(t)}))}catch(o){e.some((function(t){t.__h&&(t.__h=[])})),e=[],u.options.__e(o,t.__v)}})),p&&p(t,e)},u.options.unmount=function(t){v&&v(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{T(t)}catch(t){e=t}})),e&&u.options.__e(e,n.__v))};var I="function"==typeof requestAnimationFrame;function T(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function N(t){var e=i;t.__c=t.__(),i=e}function R(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function O(t,e){return"function"==typeof e?e(t):e}},98403:function(t,e,n){(e=t.exports=n(6077)).Stream=e,e.Readable=e,e.Writable=n(97596),e.Duplex=n(963),e.Transform=n(94665),e.PassThrough=n(57709),e.finished=n(45184),e.pipeline=n(27718)},92001:function(t,e,n){"use strict";n.r(e),n.d(e,{ArgumentOutOfRangeError:function(){return N.W},AsyncSubject:function(){return h.c},BehaviorSubject:function(){return a.X},ConnectableObservable:function(){return i.c},EMPTY:function(){return J.E},EmptyError:function(){return R.K},GroupedObservable:function(){return o.T},NEVER:function(){return ft},Notification:function(){return E.P},NotificationKind:function(){return E.W},ObjectUnsubscribedError:function(){return O.N},Observable:function(){return r.y},ReplaySubject:function(){return c.t},Scheduler:function(){return k.b},Subject:function(){return u.xQ},Subscriber:function(){return S.L},Subscription:function(){return x.w},TimeoutError:function(){return P.W},UnsubscriptionError:function(){return j.B},VirtualAction:function(){return M},VirtualTimeScheduler:function(){return _},animationFrame:function(){return w},animationFrameScheduler:function(){return b},asap:function(){return l.e},asapScheduler:function(){return l.E},async:function(){return f.P},asyncScheduler:function(){return f.z},bindCallback:function(){return z},bindNodeCallback:function(){return H},combineLatest:function(){return K.aj},concat:function(){return Y.z},config:function(){return Tt.v},defer:function(){return G.P},empty:function(){return J.c},forkJoin:function(){return X},from:function(){return $.D},fromEvent:function(){return nt},fromEventPattern:function(){return it},generate:function(){return ot},identity:function(){return I.y},iif:function(){return ut},interval:function(){return ct},isObservable:function(){return T},merge:function(){return lt.T},never:function(){return dt},noop:function(){return A.Z},observable:function(){return s.L},of:function(){return pt.of},onErrorResumeNext:function(){return vt},pairs:function(){return mt},partition:function(){return _t},pipe:function(){return C.z},queue:function(){return d.c},queueScheduler:function(){return d.N},race:function(){return Mt.S3},range:function(){return kt},scheduled:function(){return It.x},throwError:function(){return St._},timer:function(){return Et.H},using:function(){return Ct},zip:function(){return At.$R}});
2var r=n(62732),i=n(38461),o=n(48980),s=n(30232),u=n(71783),a=n(42166),c=n(33777),h=n(63455),l=n(88916),f=n(46544),d=n(8941),p=n(76639),v=n(56068),m=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return p.ZT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(v.o),y=n(76066),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p.ZT(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(y.v),b=new g(m),w=b,_=function(t){function e(e,n){void 0===e&&(e=M),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return p.ZT(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.v),M=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;
2return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return p.ZT(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(v.o),k=n(60250),x=n(21865),S=n(76207),E=n(24839),C=n(68443),A=n(70445),I=n(62444);function T(t){return!!t&&(t instanceof r.y||"function"===typeof t.lift&&"function"===typeof t.subscribe)}var N=n(8971),R=n(36182),O=n(9790),j=n(88457),P=n(84837),L=n(3095),D=n(29988),B=n(90910),F=n(20173);function z(t,e,n){if(e){if(!(0,F.K)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return z(t,n).apply(void 0,r).pipe((0,L.U)((function(t){return(0,B.k)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o,s=this,u={context:s,subject:o,callbackFunc:t,scheduler:n};return new r.y((function(r){if(n){var i={args:e,subscriber:r,params:u};return n.schedule(U,0,i)}if(!o){o=new h.c;try{t.apply(s,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(a){(0,D._)(o)?o.error(a):console.warn(a)}}return o.subscribe(r)}))}}function U(t){var e=this,n=t.args,r=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,a=i.subject;if(!a){a=i.subject=new h.c;try{o.apply(s,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length<=1?t[0]:t;e.add(u.schedule(W,0,{value:r,subject:a}))}]))}catch(c){a.error(c)}}this.add(a.subscribe(r))}function W(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function H(t,e,n){if(e){if(!(0,F.K)(e))return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return H(t,n).apply(void 0,r).pipe((0,L.U)((function(t){return(0,B.k)(t)?e.apply(void 0,t):e(t)})))};n=e}return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={subject:void 0,args:e,callbackFunc:t,scheduler:n,context:this};return new r.y((function(r){var i=o.context,s=o.subject;if(n)return n.schedule(V,0,{params:o,subscriber:r,context:i});if(!s){s=o.subject=new h.c;try{t.apply(i,e.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();n?s.error(n):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(u){(0,D._)(s)?s.error(u):console.warn(u)}}return s.subscribe(r)}))}}function V(t){var e=this,n=t.params,r=t.subscriber,i=t.context,o=n.callbackFunc,s=n.args,u=n.scheduler,a=n.subject;if(!a){a=n.subject=new h.c;try{o.apply(i,s.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.shift();if(r)e.add(u.schedule(Z,0,{err:r,subject:a}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(q,0,{value:i,subject:a}))}}]))}catch(c){this.add(u.schedule(Z,0,{err:c,subject:a}))}}this.add(a.subscribe(r))}function q(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function Z(t){var e=t.err;t.subject.error(e)}var K=n(24760),Y=n(76580),G=n(96374),J=n(24602),Q=n(7445),$=n(96141);function X(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var n=t[0];if((0,B.k)(n))return tt(n,null);if((0,Q.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return tt(r.map((function(t){return n[t]})),r)}}if("function"===typeof t[t.length-1]){var i=t.pop();return tt(t=1===t.length&&(0,B.k)(t[0])?t[0]:t,null).pipe((0,L.U)((function(t){return i.apply(void 0,t)})))}return tt(t,null)}function tt(t,e){return new r.y((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),o=0,s=0,u=function(u){var a=(0,$.D)(t[u]),c=!1;n.add(a.subscribe({next:function(t){c||(c=!0,s++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++o!==r&&c||(s===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},a=0;a<r;a++)u(a);else n.complete()}
2))}var et=n(45723);function nt(t,e,n,i){return(0,et.m)(n)&&(i=n,n=void 0),i?nt(t,e,n).pipe((0,L.U)((function(t){return(0,B.k)(t)?i.apply(void 0,t):i(t)}))):new r.y((function(r){rt(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function rt(t,e,n,r,i){var o;if(function(t){return t&&"function"===typeof t.addEventListener&&"function"===typeof t.removeEventListener}(t)){var s=t;t.addEventListener(e,n,i),o=function(){return s.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"===typeof t.on&&"function"===typeof t.off}(t)){var u=t;t.on(e,n),o=function(){return u.off(e,n)}}else if(function(t){return t&&"function"===typeof t.addListener&&"function"===typeof t.removeListener}(t)){var a=t;t.addListener(e,n),o=function(){return a.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var c=0,h=t.length;c<h;c++)rt(t[c],e,n,r,i)}r.add(o)}function it(t,e,n){return n?it(t,e).pipe((0,L.U)((function(t){return(0,B.k)(t)?n.apply(void 0,t):n(t)}))):new r.y((function(n){var r,i=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1===t.length?t[0]:t)};try{r=t(i)}catch(o){return void n.error(o)}if((0,et.m)(e))return function(){return e(i,r)}}))}function ot(t,e,n,i,o){var s,u;if(1==arguments.length){var a=t;u=a.initialState,e=a.condition,n=a.iterate,s=a.resultSelector||I.y,o=a.scheduler}else void 0===i||(0,F.K)(i)?(u=t,s=I.y,o=i):(u=t,s=i);return new r.y((function(t){var r=u;if(o)return o.schedule(st,0,{subscriber:t,iterate:n,condition:e,resultSelector:s,state:r});for(;;){if(e){var i=void 0;try{i=e(r)}catch(c){return void t.error(c)}if(!i){t.complete();break}}var a=void 0;try{a=s(r)}catch(c){return void t.error(c)}if(t.next(a),t.closed)break;try{r=n(r)}catch(c){return void t.error(c)}}}))}function st(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(o){return void e.error(o)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(o){return void e.error(o)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(o){return void e.error(o)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}}function ut(t,e,n){return void 0===e&&(e=J.E),void 0===n&&(n=J.E),(0,G.P)((function(){return t()?e:n}))}var at=n(20716);function ct(t,e){return void 0===t&&(t=0),void 0===e&&(e=f.P),(!(0,at.k)(t)||t<0)&&(t=0),e&&"function"===typeof e.schedule||(e=f.P),new r.y((function(n){return n.add(e.schedule(ht,t,{subscriber:n,counter:0,period:t})),n}))}function ht(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}var lt=n(14682),ft=new r.y(A.Z);function dt(){return ft}var pt=n(4107);function vt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return J.E;var n=t[0],i=t.slice(1);return 1===t.length&&(0,B.k)(n)?vt.apply(void 0,n):new r.y((function(t){var e=function(){return t.add(vt.apply(void 0,i).subscribe(t))};return(0,$.D)(n).subscribe({next:function(e){t.next(e)},error:e,complete:e})}))}function mt(t,e){return e?new r.y((function(n){var r=Object.keys(t),i=new x.w;return i.add(e.schedule(yt,0,{keys:r,index:0,subscriber:n,subscription:i,obj:t})),i})):new r.y((function(e){for(var n=Object.keys(t),r=0;r<n.length&&!e.closed;r++){var i=n[r];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()}))}function yt(t){var e=t.keys,n=t.index,r=t.subscriber,i=t.subscription,o=t.obj;if(!r.closed)if(n<e.length){var s=e[n];r.next([s,o[s]]),i.add(this.schedule({keys:e,index:n+1,subscriber:r,subscription:i,obj:o}))}else r.complete()}var gt=n(19061),bt=n(26632),wt=n(9094);function _t(t,e,n){return[(0,wt.h)(e,n)(new r.y((0,bt.s)(t))),(0,wt.h)((0,gt.f)(e,n))(new r.y((0,bt.s)(t)))]}var Mt=n(10495);function kt(t,e,n){return void 0===t&&(t=0),new r.y((function(r){void 0===e&&(e=t,t=0);var i=0,o=t;if(n)return n.schedule(xt,0,{index:i,count:e,start:t,subscriber:r});for(;;){if(i++>=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function xt(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var St=n(88538),Et=n(46896);function Ct(t,e){return new r.y((function(n){var r,i;try{r=t()}catch(s){return void n.error(s)}try{i=e(r)}catch(s){return void n.error(s)}var o=(i?(0,$.D)(i):J.E).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var At=n(35392),It=n(31899),Tt=n(86183)},63455:function(t,e,n){"use strict";n.d(e,{c:function(){return s}});var r=n(76639),i=n(71783),o=n(21865),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.ZT(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.w.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.xQ)},42166:function(t,e,n){"use strict";n.d(e,{X:function(){return s}});var r=n(76639),i=n(71783),o=n(9790),s=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.ZT(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.N;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.xQ)},24839:function(t,e,n){"use strict";n.d(e,{P:function(){return u},W:function(){return r}});var r,i=n(24602),o=n(4107),s=n(88538);r||(r={});var u=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"===typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,s._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!==typeof e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}()},62732:function(t,e,n){"use strict";n.d(e,{y:function(){return h}});var r=n(29988),i=n(76207),o=n(48451),s=n(67663);var u=n(30232),a=n(68443),c=n(86183),h=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,u=function(t,e,n){if(t){if(t instanceof i.L)return t;if(t[o.b])return t[o.b]()}return t||e||n?new i.L(t,e,n):new i.L(s.c)}(t,e,n);if(r?u.add(r.call(u,this.source)):u.add(this.source||c.v.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),c.v.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,r._)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=l(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[u.L]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:(0,a.U)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=l(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function l(t){if(t||(t=c.v.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},67663:function(t,e,n){"use strict";n.d(e,{c:function(){return o}});var r=n(86183),i=n(38661),o={closed:!0,next:function(t){},error:function(t){if(r.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete:function(){}}},15719:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(76639),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(n(76207).L)},33777:function(t,e,n){"use strict";n.d(e,{t:function(){return h}});var r=n(76639),i=n(71783),o=n(8941),s=n(21865),u=n(89489),a=n(9790),c=n(73689),h=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;
2return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.ZT(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new l(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new a.N;if(this.isStopped||this.hasError?e=s.w.EMPTY:(this.observers.push(t),e=new c.W(this,t)),i&&t.add(t=new u.ht(t,i)),n)for(var h=0;h<o&&!t.closed;h++)t.next(r[h]);else for(h=0;h<o&&!t.closed;h++)t.next(r[h].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.c).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.xQ),l=function(){return function(t,e){this.time=t,this.value=e}}()},60250:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},71783:function(t,e,n){"use strict";n.d(e,{Yc:function(){return h},xQ:function(){return l}});var r=n(76639),i=n(62732),o=n(76207),s=n(21865),u=n(9790),a=n(73689),c=n(48451),h=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.ZT(e,t),e}(o.L),l=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.ZT(e,t),e.prototype[c.b]=function(){return new h(this)},e.prototype.lift=function(t){var e=new f(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new u.N;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new u.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new u.N;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new u.N;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new u.N;return this.hasError?(t.error(this.thrownError),s.w.EMPTY):this.isStopped?(t.complete(),s.w.EMPTY):(this.observers.push(t),new a.W(this,t))},e.prototype.asObservable=function(){var t=new i.y;return t.source=this,t},e.create=function(t,e){return new f(t,e)},e}(i.y),f=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return r.ZT(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.w.EMPTY},e}(l)},73689:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});var r=n(76639),i=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.ZT(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(n(21865).w)},76207:function(t,e,n){"use strict";n.d(e,{L:function(){return h}});var r=n(76639),i=n(45723),o=n(67663),s=n(21865),u=n(48451),a=n(86183),c=n(38661),h=function(t){function e(n,r,i){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.c;break;case 1:if(!n){s.destination=o.c;break}if("object"===typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new l(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new l(s,n,r,i)}return s}return r.ZT(e,t),e.prototype[u.b]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.w),l=function(t){function e(e,n,r,s){var u,a=t.call(this)||this;a._parentSubscriber=e;var c=a;
2return(0,i.m)(n)?u=n:n&&(u=n.next,r=n.error,s=n.complete,n!==o.c&&(c=Object.create(n),(0,i.m)(c.unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=u,a._error=r,a._complete=s,a}return r.ZT(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=a.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,c.z)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;(0,c.z)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};a.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw n;(0,c.z)(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.v.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):((0,c.z)(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(h)},21865:function(t,e,n){"use strict";n.d(e,{w:function(){return u}});var r=n(90910),i=n(7445),o=n(45723),s=n(88457),u=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,u=n._parentOrParents,c=n._ctorUnsubscribe,h=n._unsubscribe,l=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,u instanceof t)u.remove(this);else if(null!==u)for(var f=0;f<u.length;++f){u[f].remove(this)}if((0,o.m)(h)){c&&(this._unsubscribe=void 0);try{h.call(this)}catch(v){e=v instanceof s.B?a(v.errors):[v]}}if((0,r.k)(l)){f=-1;for(var d=l.length;++f<d;){var p=l[f];if((0,i.K)(p))try{p.unsubscribe()}catch(v){e=e||[],v instanceof s.B?e=e.concat(a(v.errors)):e.push(v)}}}if(e)throw new s.B(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!==typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function a(t){return t.reduce((function(t,e){return t.concat(e instanceof s.B?e.errors:e)}),[])}},86183:function(t,e,n){"use strict";n.d(e,{v:function(){return i}});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},54658:function(t,e,n){"use strict";n.d(e,{Ds:function(){return a},IY:function(){return u},ft:function(){return c}});var r=n(76639),i=n(76207),o=n(62732),s=n(26632),u=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.ZT(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.L),a=(i.L,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.L));i.L;function c(t,e){if(!e.closed){if(t instanceof o.y)return t.subscribe(e);var n;try{n=(0,s.s)(t)(e)}catch(r){e.error(r)}return n}}},38461:function(t,e,n){"use strict";n.d(e,{N:function(){return h},c:function(){return c}});var r=n(76639),i=n(71783),o=n(62732),s=n(76207),u=n(21865),a=n(44327),c=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.ZT(e,t),e.prototype._subscribe=function(t){return this.get
2Subject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new u.w).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.w.EMPTY)),t},e.prototype.refCount=function(){return(0,a.x)()(this)},e}(o.y),h=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.ZT(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.Yc);s.L},24760:function(t,e,n){"use strict";n.d(e,{Ms:function(){return l},aj:function(){return h}});var r=n(76639),i=n(20173),o=n(90910),s=n(15719),u=n(8337),a=n(53876),c={};function h(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return(0,i.K)(t[t.length-1])&&(r=t.pop()),"function"===typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,o.k)(t[0])&&(t=t[0]),(0,a.n)(t,r).lift(new l(n))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.resultSelector))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.ZT(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add((0,u.D)(this,r,void 0,n))}}},e.prototype.notifyComplete=function(t){0===(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n){var r=this.values,i=r[n],o=this.toRespond?i===c?--this.toRespond:this.toRespond:0;r[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(s.L)},76580:function(t,e,n){"use strict";n.d(e,{z:function(){return o}});var r=n(4107),i=n(32257);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.u)()(r.of.apply(void 0,t))}},96374:function(t,e,n){"use strict";n.d(e,{P:function(){return s}});var r=n(62732),i=n(96141),o=n(24602);function s(t){return new r.y((function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?(0,i.D)(n):(0,o.c)()).subscribe(e)}))}},24602:function(t,e,n){"use strict";n.d(e,{E:function(){return i},c:function(){return o}});var r=n(62732),i=new r.y((function(t){return t.complete()}));function o(t){return t?function(t){return new r.y((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},96141:function(t,e,n){"use strict";n.d(e,{D:function(){return s}});var r=n(62732),i=n(26632),o=n(31899);function s(t,e){return e?(0,o.x)(t,e):t instanceof r.y?t:new r.y((0,i.s)(t))}},53876:function(t,e,n){"use strict";n.d(e,{n:function(){return s}});var r=n(62732),i=n(101),o=n(69977);function s(t,e){return e?(0,o.r)(t,e):new r.y((0,i.V)(t))}},14682:function(t,e,n){"use strict";n.d(e,{T:function(){return u}});var r=n(62732),i=n(20173),o=n(1638),s=n(53876);function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,u=null,a=t[t.length-1];return(0,i.K)(a)?(u=t.pop(),t.length>
21&&"number"===typeof t[t.length-1]&&(n=t.pop())):"number"===typeof a&&(n=t.pop()),null===u&&1===t.length&&t[0]instanceof r.y?t[0]:(0,o.J)(n)((0,s.n)(t,u))}},4107:function(t,e,n){"use strict";n.d(e,{of:function(){return s}});var r=n(20173),i=n(53876),o=n(69977);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return(0,r.K)(n)?(t.pop(),(0,o.r)(t,n)):(0,i.n)(t)}},10495:function(t,e,n){"use strict";n.d(e,{S3:function(){return a}});var r=n(76639),i=n(90910),o=n(53876),s=n(15719),u=n(8337);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){if(!(0,i.k)(t[0]))return t[0];t=t[0]}return(0,o.n)(t,void 0).lift(new c)}var c=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new h(t))},t}(),h=function(t){function e(e){var n=t.call(this,e)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.ZT(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=(0,u.D)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(s.L)},88538:function(t,e,n){"use strict";n.d(e,{_:function(){return i}});var r=n(62732);function i(t,e){return e?new r.y((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.y((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},46896:function(t,e,n){"use strict";n.d(e,{H:function(){return u}});var r=n(62732),i=n(46544),o=n(20716),s=n(20173);function u(t,e,n){void 0===t&&(t=0);var u=-1;return(0,o.k)(e)?u=Number(e)<1?1:Number(e):(0,s.K)(e)&&(n=e),(0,s.K)(n)||(n=i.P),new r.y((function(e){var r=(0,o.k)(t)?t:+t-n.now();return n.schedule(a,r,{index:0,period:u,subscriber:e})}))}function a(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},35392:function(t,e,n){"use strict";n.d(e,{$R:function(){return c},mx:function(){return h}});var r=n(76639),i=n(53876),o=n(90910),s=n(76207),u=n(3560),a=n(54658);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return"function"===typeof n&&t.pop(),(0,i.n)(t,void 0).lift(new h(n))}var h=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.resultSelector))},t}(),l=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"===typeof n?n:void 0,i}return r.ZT(e,t),e.prototype._next=function(t){var e=this.iterators;(0,o.k)(t)?e.push(new d(t)):"function"===typeof t[u.hZ]?e.push(new f(t[u.hZ]())):e.push(new p(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;n<e;n++){var r=t[n];if(r.stillUnsubscribed)this.destination.add(r.subscribe());else this.active--}}else this.destination.complete()},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){if("function"===typeof(s=t[r]).hasValue&&!s.hasValue())return}var i=!1,o=[];for(r=0;r<e;r++){var s,u=(s=t[r]).next();if(s.hasCompleted()&&(i=!0),u.done)return void n.complete();o.push(u.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),i&&n.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(s.L),f=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return Boolean(t&&t.done)},t}(),d=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[u.hZ]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.ZT(e,t),e.prototype[u.hZ]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return(0,a.ft)(this.observable,new a.IY(this))},e}(a.Ds)},32257:function(t,e,n){"use strict";n.d(e,{u:function(){return i}});var r=n(1638);function i(){return(0,r.J)(1)}},9094:function(t,e,n){"use strict";n.d(e,{h:function(){return o}});var r=n(76639),i=n(76207);function o(t,e){return function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(i.L)},48980:function(t,e,n){"use strict";n.d(e,{T:function(){return f},v:function(){return a}});
2var r=n(76639),i=n(76207),o=n(21865),s=n(62732),u=n(71783);function a(t,e,n,r){return function(i){return i.lift(new c(t,e,n,r))}}var c=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),h=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.keySelector=n,s.elementSelector=r,s.durationSelector=i,s.subjectSelector=o,s.groups=null,s.attemptedToUnsubscribe=!1,s.count=0,s}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(n){return void this.error(n)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(a){this.error(a)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new u.xQ,n.set(e,i);var o=new f(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;
2try{s=this.durationSelector(new f(e,i))}catch(a){return void this.error(a)}this.add(s.subscribe(new l(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.L),l=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.ZT(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.L),f=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.ZT(e,t),e.prototype._subscribe=function(t){var e=new o.w,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new d(n)),e.add(r.subscribe(t)),e},e}(s.y),d=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.ZT(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.w)},3095:function(t,e,n){"use strict";n.d(e,{U:function(){return o}});var r=n(76639),i=n(76207);function o(t,e){return function(n){if("function"!==typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.thisArg))},t}(),u=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(i.L)},1638:function(t,e,n){"use strict";n.d(e,{J:function(){return o}});var r=n(18902),i=n(62444);function o(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,r.zg)(i.y,t)}},18902:function(t,e,n){"use strict";n.d(e,{VS:function(){return h},zg:function(){return u}});var r=n(76639),i=n(3095),o=n(96141),s=n(54658);function u(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?function(r){return r.pipe(u((function(n,r){return(0,o.D)(t(n,r)).pipe((0,i.U)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"===typeof e&&(n=e),function(e){return e.lift(new a(t,n))})}var a=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent))},t}(),c=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new s.IY(this),n=this.destination;n.add(e);var r=(0,s.ft)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.Ds),h=u},89489:function(t,e,n){"use strict";n.d(e,{QV:function(){return s},ht:function(){return a}});var r=n(76639),i=n(76207),o=n(24839);function s(t,e){return void 0===e&&(e=0),function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){void 0===e&&(e=0),this.scheduler
2=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.scheduler,this.delay))},t}(),a=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.ZT(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.P.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.P.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()},e}(i.L),c=function(){return function(t,e){this.notification=t,this.destination=e}}()},44327:function(t,e,n){"use strict";n.d(e,{x:function(){return o}});var r=n(76639),i=n(76207);function o(){return function(t){return t.lift(new s(t))}}var s=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new u(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.ZT(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.L)},69977:function(t,e,n){"use strict";n.d(e,{r:function(){return o}});var r=n(62732),i=n(21865);function o(t,e){return new r.y((function(n){var r=new i.w,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},31899:function(t,e,n){"use strict";n.d(e,{x:function(){return h}});var r=n(62732),i=n(21865),o=n(30232);var s=n(69977),u=n(3560);var a=n(56742),c=n(22076);function h(t,e){if(null!=t){if(function(t){return t&&"function"===typeof t[o.L]}(t))return function(t,e){return new r.y((function(n){var r=new i.w;return r.add(e.schedule((function(){var i=t[o.L]();r.add(i.subscribe({next:function(t){r.add(e.schedule((function(){return n.next(t)})))},error:function(t){r.add(e.schedule((function(){return n.error(t)})))},complete:function(){r.add(e.schedule((function(){return n.complete()})))}}))}))),r}))}(t,e);if((0,a.t)(t))return function(t,e){return new r.y((function(n){var r=new i.w;return r.add(e.schedule((function(){return t.then((function(t){r.add(e.schedule((function(){n.next(t),r.add(e.schedule((function(){return n.complete()})))})))}),(function(t){r.add(e.schedule((function(){return n.error(t)})))}))}))),r}))}(t,e);if((0,c.z)(t))return(0,s.r)(t,e);if(function(t){return t&&"function"===typeof t[u.hZ]}(t)||"string"===typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.y((function(n){var r,o=new i.w;return o.add((function(){r&&"function"===typeof r.return&&r.return()})),o.add(e.schedule((function(){r=t[u.hZ](),o.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(o){return void n.error(o)}e?n.complete():(n.next(t),this.schedule())}})))}))),o}))}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}},56068:function(t,e,n){"use strict";n.d(e,{o:function(){return i}});var r=n(76639),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.ZT(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);
2this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.ZT(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n(21865).w))},76066:function(t,e,n){"use strict";n.d(e,{v:function(){return o}});var r=n(76639),i=n(60250),o=function(t){function e(n,r){void 0===r&&(r=i.b.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.ZT(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.b)},88916:function(t,e,n){"use strict";n.d(e,{e:function(){return d},E:function(){return f}});var r=n(76639),i=1,o=function(){return Promise.resolve()}(),s={};function u(t){return t in s&&(delete s[t],!0)}var a=function(t){var e=i++;return s[e]=!0,o.then((function(){return u(e)&&t()})),e},c=function(t){u(t)},h=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.ZT(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=a(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(c(n),e.scheduled=void 0)},e}(n(56068).o),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(n(76066).v),f=new l(h),d=f},46544:function(t,e,n){"use strict";n.d(e,{P:function(){return o},z:function(){return i}});var r=n(56068),i=new(n(76066).v)(r.o),o=i},8941:function(t,e,n){"use strict";n.d(e,{c:function(){return u},N:function(){return s}});var r=n(76639),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.ZT(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(56068).o),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e}(n(76066).v),s=new o(i),u=s},3560:function(t,e,n){"use strict";function r(){return"function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,{hZ:function(){return i}});var i=r()},30232:function(t,e,n){"use strict";n.d(e,{L:function(){return r}});var r=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}()},48451:function(t,e,n){"use strict";n.d(e,{b:function(){return r}});var r=function(){return"function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},8971:function(t,e,n){"use strict";n.d(e,{W:function(){return r}});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},36182:function(t,e,n){"use strict";n.d(e,{K:function(){return r}});var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},9790:function(t,e,n){"use strict";n.d(e,{N:function(){return r}});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},84837:function(t,e,n){"use strict";n.d(e,{W:function(){return r}});var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},88457:function(t,e,n){"use strict";n.d(e,{B:function(){return r}});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},29988:function(t,e,n){"use strict";n.d(e,{_:function(){return i}});var r=n(76207);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;
2if(n||o)return!1;t=i&&i instanceof r.L?i:null}return!0}},38661:function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,{z:function(){return r}})},62444:function(t,e,n){"use strict";function r(t){return t}n.d(e,{y:function(){return r}})},90910:function(t,e,n){"use strict";n.d(e,{k:function(){return r}});var r=function(){return Array.isArray||function(t){return t&&"number"===typeof t.length}}()},22076:function(t,e,n){"use strict";n.d(e,{z:function(){return r}});var r=function(t){return t&&"number"===typeof t.length&&"function"!==typeof t}},45723:function(t,e,n){"use strict";function r(t){return"function"===typeof t}n.d(e,{m:function(){return r}})},20716:function(t,e,n){"use strict";n.d(e,{k:function(){return i}});var r=n(90910);function i(t){return!(0,r.k)(t)&&t-parseFloat(t)+1>=0}},7445:function(t,e,n){"use strict";function r(t){return null!==t&&"object"===typeof t}n.d(e,{K:function(){return r}})},56742:function(t,e,n){"use strict";function r(t){return!!t&&"function"!==typeof t.subscribe&&"function"===typeof t.then}n.d(e,{t:function(){return r}})},20173:function(t,e,n){"use strict";function r(t){return t&&"function"===typeof t.schedule}n.d(e,{K:function(){return r}})},70445:function(t,e,n){"use strict";function r(){}n.d(e,{Z:function(){return r}})},19061:function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}
2return n.pred=t,n.thisArg=e,n}n.d(e,{f:function(){return r}})},68443:function(t,e,n){"use strict";n.d(e,{U:function(){return o},z:function(){return i}});var r=n(62444);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)}function o(t){return 0===t.length?r.y:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}},26632:function(t,e,n){"use strict";n.d(e,{s:function(){return h}});var r=n(101),i=n(38661),o=n(3560),s=n(30232),u=n(22076),a=n(56742),c=n(7445),h=function(t){if(t&&"function"===typeof t[s.L])return h=t,function(t){var e=h[s.L]();if("function"!==typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if((0,u.z)(t))return(0,r.V)(t);if((0,a.t)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.z),t};if(t&&"function"===typeof t[o.hZ])return e=t,function(t){for(var n=e[o.hZ]();;){var r=void 0;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"===typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,h,l=(0,c.K)(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+l+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},101:function(t,e,n){"use strict";n.d(e,{V:function(){return r}});var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},8337:function(t,e,n){"use strict";n.d(e,{D:function(){return u}});var r=n(76639),i=function(t){function e(e,n,r){var i=t.call(this)||this;return i.parent=e,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(n(76207).L),o=n(26632),s=n(62732);function u(t,e,n,r,u){if(void 0===u&&(u=new i(t,n,r)),!u.closed)return e instanceof s.y?e.subscribe(u):(0,o.s)(e)(u)}},14824:function(t,e,n){"use strict";n.r(e),n.d(e,{audit:function(){return o},auditTime:function(){return h},buffer:function(){return l},bufferCount:function(){return v},bufferTime:function(){return w},bufferToggle:function(){return T},bufferWhen:function(){return O},catchError:function(){return L},combineAll:function(){return z},combineLatest:function(){return H},concat:function(){return q},concatAll:function(){return Z.u},concatMap:function(){return Y},concatMapTo:function(){return G},count:function(){return J},debounce:function(){return X},debounceTime:function(){return nt},defaultIfEmpty:function(){return st},delay:function(){return lt},delayWhen:function(){return mt},dematerialize:function(){return _t},distinct:function(){return xt},distinctUntilChanged:function(){return Ct},distinctUntilKeyChanged:function(){return Tt},elementAt:function(){return Wt},endWith:function(){return Vt},every:function(){return qt},exhaust:function(){return Yt},exhaustMap:function(){return $t},expand:function(){return ee},filter:function(){return Rt.h},finalize:function(){return ie},find:function(){return ue},findIndex:function(){return he},first:function(){return fe},flatMap:function(){return K.VS},groupBy:function(){return de.v},ignoreElements:function(){return pe},isEmpty:function(){return ye},last:function(){return ke},map:function(){return Qt.U},mapTo:function(){return xe},materialize:function(){return Ce},max:function(){return Pe},merge:function(){return De},mergeAll:function(){return Be.J},mergeMap:function(){return K.zg},mergeMapTo:function(){return Fe},mergeScan:function(){return ze},min:function(){return He},multicast:function(){return qe},observeOn:function(){return Ke.QV},onErrorResumeNext:function(){return Ye},pairwise:function(){return Qe},partition:function(){return en},pluck:function(){return nn},publish:function(){return sn},publishBehavior:function(){return an},publishLast:function(){return hn},publishReplay:function(){return fn},race:function(){return pn},reduce:function(){return je},refCount:function(){return Cn.x},repeat:function(){return vn},repeatWhen:function(){return gn},retry:function(){return _n},retryWhen:function(){return xn},sample:function(){return An},sampleTime:function(){return Nn},scan:function(){return Te},sequenceEqual:function(){return Pn},share:function(){return zn},shareReplay:function(){return Un},single:function(){return Wn},skip:function(){return qn},skipLast:function(){return Yn},skipUntil:function(){return Qn},skipWhile:function(){return tr},startWith:function(){return rr},subscribeOn:function(){return ur},switchAll:function(){return fr},switchMap:function(){return cr},switchMapTo:function(){return dr},take:function(){return Ft},takeLast:function(){return we},takeUntil:function(){return pr},takeWhile:function(){return yr},tap:function(){return Mr},throttle:function(){return Er},throttleTime:function(){return Ir},throwIfEmpty:function(){return jt},timeInterval:function(){return jr},timeout:function(){return Ur},timeoutWith:function(){return Dr},timestamp:function(){return Wr},toArray:function(){return qr},window:function(){return Zr},windowCount:function(){return Gr},windowTime:function(){return $r},windowToggle:function(){return oi},windowWhen:function(){return ai},withLatestFrom:function(){return li},zip:function(){return vi},zipAll:function(){return mi}});var r=n(76639),i=n(54658);function o(t){return function(e){return e.lift(new s(t))}}var s=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.ZT(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=(0,i.ft)(e,new i.IY(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),n&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.Ds),a=n(46544),c=n(46896);function h(t,e){return void 0===e&&(e=a.P),o((function(){return(0,c.H)(t,e)}))}function l(t){return function(e){return e.lift(new f(t))}}var f=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.closingNotifier))},t}(),d=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add((0,i.ft)(n,new i.IY(r))),r}return r.ZT(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.Ds),p=n(76207);function v(t,e){return void 0===e&&(e=null),function(n){return n.lift(new m(t,e))}}var m=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?g:y}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(p.L),g=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.ZT(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,r=e.startBufferEvery,i=e.buffers,o=e.count;this.count++,o%r===0&&i.push([]);for(var s=i.length;s--;){var u=i[s];u.push(t),u.length===n&&(i.splice(s,1),this.destination.next(u))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(p.L),b=n(20173);function w(t){var e=arguments.length,n=a.P;(0,b.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new _(t,r,i,n))}}var _=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler
2=r}return t.prototype.call=function(t,e){return e.subscribe(new k(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),M=function(){return function(){this.buffer=[]}}(),k=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.bufferTimeSpan=n,s.bufferCreationInterval=r,s.maxBufferSize=i,s.scheduler=o,s.contexts=[];var u=s.openContext();if(s.timespanOnly=null==r||r<0,s.timespanOnly){var a={subscriber:s,context:u,bufferTimeSpan:n};s.add(u.closeAction=o.schedule(x,n,a))}else{var c={subscriber:s,context:u},h={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:s,scheduler:o};s.add(u.closeAction=o.schedule(E,n,c)),s.add(o.schedule(S,r,h))}return s}return r.ZT(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts,n=this.destination;e.length>0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(x,n,r))}},e.prototype.openContext=function(){var t=new M;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(p.L);function x(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function S(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(E,n,{subscriber:r,context:o})),this.schedule(t,e))}function E(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var C=n(21865),A=n(8337),I=n(15719);function T(t,e){return function(n){return n.lift(new N(t,e))}}var N=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new R(t,this.openings,this.closingSelector))},t}(),R=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add((0,A.D)(i,n)),i}return r.ZT(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(n){this._error(n)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new C.w,r={buffer:[],subscription:n};e.push(r);var i=(0,A.D)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(I.L);function O(t){return function(e){return e.lift(new j(t))}}var j=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new P(t,this.closingSelector))},t}(),P=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.ZT(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(r){return this.error(r)}t=new C.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.ft)(e,new i.IY(this))),this.subscribing=!1},e}(i.Ds);function L(t){return function(e){var n=new D(t),r=e.lift(n);return n.caught=r}}var D=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new B(t,this.selector,this.caught))},t}(),B=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(s){return void t.prototype.error.call(this,s)}this._unsubscribeAndRecycle();var r=new i.IY(this);this.add(r);var o=(0,i.ft)(n,r);o!==r&&this.add(o)}},e}(i.Ds),F=n(24760);function z(t){return function(e){return e.lift(new F.Ms(t))}}var U=n(90910),W=n(96141);function H(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=null;return"function"===typeof t[t.length-1]&&(n=t.pop()),1===t.length&&(0,U.k)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call((0,W.D)([e].concat(t)),new F.Ms(n))}}var V=n(76580);function q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(V.z.apply(void 0,[e].concat(t)))}}var Z=n(32257),K=n(18902);function Y(t,e){return(0,K.zg)(t,e,1)}function G(t,e){return Y((function(){return t}),e)}function J(t){return function(e){return e.lift(new Q(t,e))}}var Q=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new $(t,this.predicate,this.source))},t}(),$=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(p.L);function X(t){return function(e){return e.lift(new tt(t))}}var tt=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new et(t,this.durationSelector))},t}(),et=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.ZT(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=(0,i.ft)(e,new i.IY(this)))&&!n.closed&&this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,
2n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.Ds);function nt(t,e){return void 0===e&&(e=a.P),function(n){return n.lift(new rt(t,e))}}var rt=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new it(t,this.dueTime,this.scheduler))},t}(),it=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.ZT(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ot,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(p.L);function ot(t){t.debouncedNext()}function st(t){return void 0===t&&(t=null),function(e){return e.lift(new ut(t))}}var ut=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new at(t,this.defaultValue))},t}(),at=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.ZT(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(p.L);function ct(t){return t instanceof Date&&!isNaN(+t)}var ht=n(24839);function lt(t,e){void 0===e&&(e=a.P);var n=ct(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new ft(n,e))}}var ft=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new dt(t,this.delay,this.scheduler))},t}(),dt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.ZT(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new pt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(ht.P.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(ht.P.createComplete()),this.unsubscribe()},e}(p.L),pt=function(){return function(t,e){this.time=t,this.notification=e}}(),vt=n(62732);function mt(t,e){return e?function(n){return new bt(n,e).lift(new yt(t))}:function(e){return e.lift(new yt(t))}}var yt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new gt(t,this.delayDurationSelector))},t}(),gt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(r){this.destination.error(r)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=(0,A.D)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(I.L),bt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.ZT(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new wt(t,this.source))},e}(vt.y),wt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.ZT(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(p.L);function _t(){return function(t){return t.lift(new Mt)}}var Mt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new kt(t))},t}(),kt=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(p.L);function xt(t,e){return function(n){return n.lift(new St(t,e))}}var St=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new Et(t,this.keySelector,this.flushes))},t}(),Et=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add((0,i.ft)(r,new i.IY(o))),o}return r.ZT(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(r){return void n.error(r)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.Ds);function Ct(t,e){return function(n){return n.lift(new At(t,e))}}var At=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new It(t,this.compare,this.keySelector))},t}(),It=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"===typeof n&&(i.compare=n),i}return r.ZT(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(i){return this.destination.error(i)}
2var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(i){return this.destination.error(i)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(p.L);function Tt(t,e){return Ct((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var Nt=n(8971),Rt=n(9094),Ot=n(36182);function jt(t){return void 0===t&&(t=Dt),function(e){return e.lift(new Pt(t))}}var Pt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.errorFactory))},t}(),Lt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.ZT(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(p.L);function Dt(){return new Ot.K}var Bt=n(24602);function Ft(t){return function(e){return 0===t?(0,Bt.c)():e.lift(new zt(t))}}var zt=function(){function t(t){if(this.total=t,this.total<0)throw new Nt.W}return t.prototype.call=function(t,e){return e.subscribe(new Ut(t,this.total))},t}(),Ut=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(p.L);function Wt(t,e){if(t<0)throw new Nt.W;var n=arguments.length>=2;return function(r){return r.pipe((0,Rt.h)((function(e,n){return n===t})),Ft(1),n?st(e):jt((function(){return new Nt.W})))}}var Ht=n(4107);function Vt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return(0,V.z)(e,Ht.of.apply(void 0,t))}}function qt(t,e){return function(n){return n.lift(new Zt(t,e,n))}}var Zt=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new Kt(t,this.predicate,this.thisArg,this.source))},t}(),Kt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.ZT(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.L);function Yt(){return function(t){return t.lift(new Gt)}}var Gt=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Jt(t))},t}(),Jt=function(t){function e(e){var n=t.call(this,e)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.ZT(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add((0,i.ft)(t,new i.IY(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.Ds),Qt=n(3095);function $t(t,e){return e?function(n){return n.pipe($t((function(n,r){return(0,W.D)(t(n,r)).pipe((0,Qt.U)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new Xt(t))}}var Xt=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new te(t,this.project))},t}(),te=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.ZT(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.IY(this),n=this.destination;n.add(e);var r=(0,i.ft)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(i.Ds);function ee(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new ne(t,e,n))}}var ne=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler
2=n}return t.prototype.call=function(t,e){return e.subscribe(new re(t,this.project,this.concurrent,this.scheduler))},t}(),re=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.project=n,o.concurrent=r,o.scheduler=i,o.index=0,o.active=0,o.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return r.ZT(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)this._complete();else{var r=this.index++;if(this.active<this.concurrent){n.next(t);try{var i=(0,this.project)(t,r);if(this.scheduler){var o={subscriber:this,result:i,value:t,index:r};this.destination.add(this.scheduler.schedule(e.dispatch,0,o))}else this.subscribeToProjection(i,t,r)}catch(s){n.error(s)}}else this.buffer.push(t)}},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.destination.add((0,i.ft)(t,new i.IY(this)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this._next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.Ds);function ie(t){return function(e){return e.lift(new oe(t))}}var oe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new se(t,this.callback))},t}(),se=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new C.w(n)),r}return r.ZT(e,t),e}(p.L);function ue(t,e){if("function"!==typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ae(t,n,!1,e))}}var ae=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new ce(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),ce=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.predicate=n,s.source=r,s.yieldIndex=i,s.thisArg=o,s.index=0,s}return r.ZT(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(p.L);function he(t,e){return function(n){return n.lift(new ae(t,n,!0,e))}}var le=n(62444);function fe(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?(0,Rt.h)((function(e,n){return t(e,n,r)})):le.y,Ft(1),n?st(e):jt((function(){return new Ot.K})))}}var de=n(48980);function pe(){return function(t){return t.lift(new ve)}}var ve=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new me(t))},t}(),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.ZT(e,t),e.prototype._next=function(t){},e}(p.L);function ye(){return function(t){return t.lift(new ge)}}var ge=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new be(t))},t}(),be=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.L);function we(t){return function(e){return 0===t?(0,Bt.c)():e.lift(new _e(t))}}var _e=function(){function t(t){if(this.total=t,this.total<0)throw new Nt.W}return t.prototype.call=function(t,e){return e.subscribe(new Me(t,this.total))},t}(),Me=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(p.L);function ke(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?(0,Rt.h)((function(e,n){return t(e,n,r)})):le.y,we(1),n?st(e):jt((function(){return new Ot.K})))}}function xe(t){return function(e){return e.lift(new Se(t))}}var Se=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new Ee(t,this.value))},t}(),Ee=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.ZT(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(p.L);function Ce(){return function(t){return t.lift(new Ae)}}var Ae=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Ie(t))},t}(),Ie=function(t){function e(e){return t.call(this,e)||this}return r.ZT(e,t),e.prototype._next=function(t){this.destination.next(ht.P.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(ht.P.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(ht.P.createComplete()),t.complete()},e}(p.L);function Te(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ne(t,e,n))}}var Ne=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Re(t,this.accumulator,this.seed,this.hasSeed))},t}(),Re=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.ZT(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(p.L),Oe=n(68443);function je(t,e){return arguments.length>=2?function(n){return(0,Oe.z)(Te(t,e),we(1),st(e))(n)}:function(e){return(0,Oe.z)(Te((function(e,n,r){return t(e,n,r+1)})),we(1))(e)}}function Pe(t){return je("function"===typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Le=n(14682);function De(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(Le.T.apply(void 0,[e].concat(t)))}}var Be=n(1638);function Fe(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"===typeof e?(0,K.zg)((function(){return t}),e,n):("number"===typeof e&&(n=e),(0,K.zg)((function(){return t}),n))}function ze(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new Ue(t,e,n))}}var Ue=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new We(t,this.accumulator,this.seed,this.concurrent))},t}(),We=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o.acc=r,o.concurrent=i,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.ZT(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,t,e)}catch(i){return n.error(i)}this.active++,this._innerSub(r)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.IY(this),n=this.destination;n.add(e);var r=(0,i.ft)(t,e);r!==e&&n.add(r)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},e.prototype.notifyNext=function(t){var e=this.destination;this.acc=t,this.hasValue=!0,e.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.Ds);function He(t){return je("function"===typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e})}var Ve=n(38461);function qe(t,e){return function(n){var r;if(r="function"===typeof t?t:function(){return t},"function"===typeof e)return n.lift(new Ze(r,e));var i=Object.create(n,Ve.N);return i.source=n,i.subjectFactory=r,i}}var Ze=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}(),Ke=n(89489);function Ye(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&(0,U.k)(t[0])&&(t=t[0]),function(e){return e.lift(new Ge(t))}}var Ge=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new Je(t,this.nextSources))},t}(),Je=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.nextSources=n,r}return r.ZT(e,t),e.prototype.notifyError=function(){this.subscribeToNextSource()},e.prototype.notifyComplete=function(){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},e.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var e=new i.IY(this),n=this.destination;n.add(e);var r=(0,i.ft)(t,e);r!==e&&n.add(r)}else this.destination.complete()},e}(i.Ds);function Qe(){return function(t){return t.lift(new $e)}}var $e=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Xe(t))},t}(),Xe=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return r.ZT(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(p.L),tn=n(19061);function en(t,e){return function(n){return[(0,Rt.h)(t,e)(n),(0,Rt.h)((0,tn.f)(t,e))(n)]}}function nn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return(0,Qt.U)(rn(t,n))(e)}}function rn(t,e){return function(n){for(var r=n,i=0;i<e;i++){var o=null!=r?r[t[i]]:void 0;if(void 0===o)return;r=o}return r}}var on=n(71783);function sn(t){return t?qe((function(){return new on.xQ}),t):qe(new on.xQ)}var un=n(42166);function an(t){return function(e){return qe(new un.X(t))(e)}}var cn=n(63455);function hn(){return function(t){return qe(new cn.c)(t)}}var ln=n(33777);function fn(t,e,n,r){n&&"function"!==typeof n&&(r=n);var i="function"===typeof n?n:void 0,o=new ln.t(t,e,r);return function(t){return qe((function(){return o}
2),i)(t)}}var dn=n(10495);function pn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&(0,U.k)(t[0])&&(t=t[0]),e.lift.call(dn.S3.apply(void 0,[e].concat(t)))}}function vn(t){return void 0===t&&(t=-1),function(e){return 0===t?(0,Bt.c)():t<0?e.lift(new mn(-1,e)):e.lift(new mn(t-1,e))}}var mn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new yn(t,this.count,this.source))},t}(),yn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.ZT(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,n=this.count;if(0===n)return t.prototype.complete.call(this);n>-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function gn(t){return function(e){return e.lift(new bn(t))}}var bn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new wn(t,this.notifier,e))},t}(),wn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.ZT(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new on.xQ;try{e=(0,this.notifier)(this.notifications)}catch(n){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.ft)(e,new i.IY(this))},e}(i.Ds);function _n(t){return void 0===t&&(t=-1),function(e){return e.lift(new Mn(t,e))}}var Mn=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new kn(t,this.count,this.source))},t}(),kn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function xn(t){return function(e){return e.lift(new Sn(t,e))}}var Sn=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new En(t,this.notifier,this.source))},t}(),En=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new on.xQ;try{r=(0,this.notifier)(n)}catch(s){return t.prototype.error.call(this,s)}o=(0,i.ft)(r,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.Ds),Cn=n(44327);function An(t){return function(e){return e.lift(new In(t))}}var In=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Tn(t),r=e.subscribe(n);return r.add((0,i.ft)(this.notifier,new i.IY(n))),r},t}(),Tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.ZT(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.Ds);function Nn(t,e){return void 0===e&&(e=a.P),function(n){return n.lift(new Rn(t,e))}}
2var Rn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new On(t,this.period,this.scheduler))},t}(),On=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(jn,n,{subscriber:i,period:n})),i}return r.ZT(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(p.L);function jn(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function Pn(t,e){return function(n){return n.lift(new Ln(t,e))}}var Ln=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new Dn(t,this.compareTo,this.comparator))},t}(),Dn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Bn(e,i))),i}return r.ZT(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,r=t.comparator;e.length>0&&n.length>0;){var i=e.shift(),o=n.shift(),s=!1;try{s=r?r(i,o):i===o}catch(u){this.destination.error(u)}s||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(p.L),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.ZT(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(p.L);function Fn(){return new on.xQ}function zn(){return function(t){return(0,Cn.x)()(qe(Fn)(t))}}function Un(t,e,n){var r;return r=t&&"object"===typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,a=t.scheduler,c=0,h=!1,l=!1;return function(t){var r;c++,!e||h?(h=!1,e=new ln.t(i,s,a),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){l=!0,n=void 0,e.complete()}}),l&&(n=void 0)):r=e.subscribe(this),this.add((function(){c--,r.unsubscribe(),r=void 0,n&&!l&&u&&0===c&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Wn(t){return function(e){return e.lift(new Hn(t,e))}}var Hn=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Vn(t,this.predicate,this.source))},t}(),Vn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.ZT(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(n){this.destination.error(n)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Ot.K)},e}(p.L);function qn(t){return function(e){return e.lift(new Zn(t))}}var Zn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Kn(t,this.total))},t}(),Kn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.ZT(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(p.L);function Yn(t){return function(e){return e.lift(new Gn(t))}}var Gn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new Nt.W}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new p.L(t)):e.subscribe(new Jn(t,this._skipCount))},t}(),Jn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.ZT(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;
2if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(p.L);function Qn(t){return function(e){return e.lift(new $n(t))}}var $n=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new Xn(t,this.notifier))},t}(),Xn=function(t){function e(e,n){var r=t.call(this,e)||this;r.hasValue=!1;var o=new i.IY(r);r.add(o),r.innerSubscription=o;var s=(0,i.ft)(n,o);return s!==o&&(r.add(s),r.innerSubscription=s),r}return r.ZT(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(i.Ds);function tr(t){return function(e){return e.lift(new er(t))}}var er=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new nr(t,this.predicate))},t}(),nr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(n){this.destination.error(n)}},e}(p.L);function rr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return(0,b.K)(n)?(t.pop(),function(e){return(0,V.z)(t,e,n)}):function(e){return(0,V.z)(t,e)}}var ir=n(88916),or=n(20716),sr=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=ir.e);var i=t.call(this)||this;return i.source=e,i.delayTime=n,i.scheduler=r,(!(0,or.k)(n)||n<0)&&(i.delayTime=0),r&&"function"===typeof r.schedule||(i.scheduler=ir.e),i}return r.ZT(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=ir.e),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(vt.y);function ur(t,e){return void 0===e&&(e=0),function(n){return n.lift(new ar(t,e))}}var ar=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new sr(e,this.delay,this.scheduler).subscribe(t)},t}();function cr(t,e){return"function"===typeof e?function(n){return n.pipe(cr((function(n,r){return(0,W.D)(t(n,r)).pipe((0,Qt.U)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new hr(t))}}var hr=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new lr(t,this.project))},t}(),lr=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return r.ZT(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var n=new i.IY(this),r=this.destination;r.add(n),this.innerSubscription=(0,i.ft)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(i.Ds);function fr(){return cr(le.y)}function dr(t,e){return e?cr((function(){return t}),e):cr((function(){return t}))}function pr(t){return function(e){return e.lift(new vr(t))}}var vr=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new mr(t),r=(0,i.ft)(this.notifier,new i.IY(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),mr=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r.ZT(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.Ds);function yr(t,e){return void 0===e&&(e=!1),function(n){return n.lift(new gr(t,e))}}var gr=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new br(t,this.predicate,this.inclusive))},t}(),br=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.ZT(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())},e}(p.L),wr=n(70445),_r=n(45723);function Mr(t,e,n){return function(r){return r.lift(new kr(t,e,n))}}var kr=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new xr(t,this.nextOrObserver,this.error,this.complete))},t}(),xr=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o._tapNext=wr.Z,o._tapError=wr.Z,o._tapComplete=wr.Z,o._tapError=r||wr.Z,o._tapComplete=i||wr.Z,(0,_r.m)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||wr.Z,o._tapError=n.error||wr.Z,o._tapComplete=n.complete||wr.Z),o}return r.ZT(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(p.L),Sr={leading:!0,trailing:!1};function Er(t,e){return void 0===e&&(e=Sr),function(n){return n.lift(new Cr(t,!!e.leading,!!e.trailing))}}var Cr=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new Ar(t,this.durationSelector,this.leading,this.trailing))},t}(),Ar=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._hasValue=!1,o}return r.ZT(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=(0,i.ft)(e,new i.IY(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(e){return this.destination.error(e),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=void 0,e&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(i.Ds);function Ir(t,e,n){return void 0===e&&(e=a.P),void 0===n&&(n=Sr),function(r){return r.lift(new Tr(t,e,n.leading,n.trailing))}}var Tr=function(){function t(t,e,n,r){this.duration=t,this.scheduler
2=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new Nr(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Nr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.duration=n,s.scheduler=r,s.leading=i,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return r.ZT(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Rr,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(p.L);function Rr(t){t.subscriber.clearThrottle()}var Or=n(96374);function jr(t){return void 0===t&&(t=a.P),function(e){return(0,Or.P)((function(){return e.pipe(Te((function(e,n){var r=e.current;return{value:n,current:t.now(),last:r}}),{current:t.now(),value:void 0,last:void 0}),(0,Qt.U)((function(t){var e=t.current,n=t.last,r=t.value;return new Pr(r,e-n)})))}))}}var Pr=function(){return function(t,e){this.value=t,this.interval=e}}(),Lr=n(84837);function Dr(t,e,n){return void 0===n&&(n=a.P),function(r){var i=ct(t),o=i?+t-n.now():Math.abs(t);return r.lift(new Br(o,i,e,n))}}var Br=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new Fr(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),Fr=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;return s.absoluteTimeout=n,s.waitFor=r,s.withObservable=i,s.scheduler=o,s.scheduleTimeout(),s}return r.ZT(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add((0,i.ft)(e,new i.IY(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(i.Ds),zr=n(88538);function Ur(t,e){return void 0===e&&(e=a.P),Dr(t,(0,zr._)(new Lr.W),e)}function Wr(t){return void 0===t&&(t=a.P),(0,Qt.U)((function(e){return new Hr(e,t.now())}))}var Hr=function(){return function(t,e){this.value=t,this.timestamp=e}}();function Vr(t,e,n){return 0===n?[e]:(t.push(e),t)}function qr(){return je(Vr,[])}function Zr(t){return function(e){return e.lift(new Kr(t))}}var Kr=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new Yr(t),r=e.subscribe(n);return r.closed||n.add((0,i.ft)(this.windowBoundaries,new i.IY(n))),r},t}(),Yr=function(t){function e(e){var n=t.call(this,e)||this;return n.window=new on.xQ,e.next(n.window),n}return r.ZT(e,t),e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new on.xQ;e.next(n)},e}(i.Ds);function Gr(t,e){return void 0===e&&(e=0),function(n){return n.lift(new Jr(t,e))}}var Jr=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new Qr(t,this.windowSize,this.startWindowEvery))},t}(),Qr=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=n,i.startWindowEvery=r,i.windows=[new on.xQ],i.count=0,e.next(i.windows[0]),i}return r.ZT(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,s=0;s<o&&!this.closed;s++)i[s].next(t);var u=this.count-r+1;if(u>=0&&u%e===0&&!this.closed&&i.shift().complete(),++this.count%e===0&&!this.closed){var a=new on.xQ;i.push(a),n.next(a)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(p.L);function $r(t){var e=a.P,n=null,r=Number.POSITIVE_INFINITY;return(0,b.K)(arguments[3])&&(e=arguments[3]),(0,b.K)(arguments[2])?e=arguments[2]:(0,or.k)(arguments[2])&&(r=Number(arguments[2])),(0,b.K)(arguments[1])?e=arguments[1]:(0,or.k)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new Xr(t,n,r,e))}}var Xr=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler
2=r}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.ZT(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(on.xQ),ei=function(t){function e(e,n,r,i,o){var s=t.call(this,e)||this;s.destination=e,s.windowTimeSpan=n,s.windowCreationInterval=r,s.maxWindowSize=i,s.scheduler=o,s.windows=[];var u=s.openWindow();if(null!==r&&r>=0){var a={subscriber:s,window:u,context:null},c={windowTimeSpan:n,windowCreationInterval:r,subscriber:s,scheduler:o};s.add(o.schedule(ii,n,a)),s.add(o.schedule(ri,r,c))}else{var h={subscriber:s,window:u,windowTimeSpan:n};s.add(o.schedule(ni,n,h))}return s}return r.ZT(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new ti;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(p.L);function ni(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function ri(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),s=this,u={action:s,subscription:null},a={subscriber:n,window:o,context:u};u.subscription=r.schedule(ii,e,a),s.add(u.subscription),s.schedule(t,i)}function ii(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function oi(t,e){return function(n){return n.lift(new si(t,e))}}var si=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new ui(t,this.openings,this.closingSelector))},t}(),ui=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=(0,A.D)(i,n,n)),i}return r.ZT(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var o=void 0;try{o=(0,this.closingSelector)(e)}catch(h){return this.error(h)}var s=new on.xQ,u=new C.w,a={window:s,subscription:u};this.contexts.push(a);var c=(0,A.D)(this,o,a);c.closed?this.closeWindow(this.contexts.length-1):(c.context=a,u.add(c)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(I.L);function ai(t){return function(e){return e.lift(new ci(t))}}var ci=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new hi(t,this.closingSelector))},t}(),hi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.destination=e,r.closingSelector=n,r.openWindow(),r}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n,r=this.window=new on.xQ;this.destination.next(r);try{n=(0,this.closingSelector)()}catch(i){return this.destination.error(i),void this.window.error(i)}this.add(this.closingNotification=(0,A.D)(this,n))},e}(I.L);function li(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var n;"function"===typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new fi(r,n))}}var fi=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new di(t,this.observables,this.project))},t}(),di=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.observables=n,i.project=r,i.toRespond=[];var o=n.length;i.values=new Array(o);for(var s=0;s<o;s++)i.toRespond.push(s);for(s=0;s<o;s++){var u=n[s];i.add((0,A.D)(i,u,void 0,s))}return i}return r.ZT(e,t),e.prototype.notifyNext=function(t,e,n){this.values[n]=e;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(I.L),pi=n(35392);function vi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(pi.$R.apply(void 0,[e].concat(t)))}}function mi(t){return function(e){return e.lift(new pi.mx(t))}}},76639:function(t,e,n){"use strict";n.d(e,{ZT:function(){return i}});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},1095:function(t,e,n){var r=n(58404),i=n(79257),o="object"===typeof Reflect?Reflect:null,s=o&&"function"===typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};
2function u(){i.call(this)}function a(t,e,n){try{s(t,e,n)}catch(r){setTimeout((function(){throw r}))}}function c(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}t.exports=u,r.inherits(u,i),u.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(e.length>0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)a(u,this,e);else{var h=u.length,l=c(u,h);for(n=0;n<h;++n)a(l[n],this,e)}return!0}},79257:function(t){"use strict";var e,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};e=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!==t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(n,r){function i(){void 0!==o&&t.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==e&&(o=function(n){t.removeListener(e,i),r(n)},t.once("error",o)),t.once(e,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function u(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function a(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function c(t,e,n,r){var i,o,s,c;if(u(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"===typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=a(t))>0&&s.length>i&&!s.warned){s.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=s.length,c=h,console&&console.warn&&console.warn(c)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function f(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):p(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!==typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.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},o.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return a(this)},o.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var a=o[t];if(void 0===a)return!1;if("function"===typeof a)r(a,this,e);else{var c=a.length,h=p(a,c);for(n=0;n<c;++n)r(h[n],this,e)}return!0},o.prototype.addListener=function(t,e){return c(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return c(this,t,e,!0)},o.prototype.once=function(t,e){return u(e),this.on(t,l(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,l(this,t,e)),this},o.prototype.removeListener=function(t,e){var n,r,i,o,s;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit
2("removeListener",t,n.listener||e));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},o.prototype.listeners=function(t){return f(this,t,!0)},o.prototype.rawListeners=function(t){return f(this,t,!1)},o.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},5418:function(t,e,n){var r=n(21504).Buffer;function i(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=r.from(t,e));for(var n=this._block,i=this._blockSize,o=t.length,s=this._len,u=0;u<o;){for(var a=s%i,c=Math.min(o-u,i-a),h=0;h<c;h++)n[a+h]=t[u+h];u+=c,(s+=c)%i===0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},33031:function(t,e,n){var r=t.exports=function(t){t=t.toLowerCase();var e=r[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e};r.sha=n(17812),r.sha1=n(9240),r.sha224=n(98630),r.sha256=n(28941),r.sha384=n(83677),r.sha512=n(66055)},17812:function(t,e,n){var r=n(38439),i=n(5418),o=n(21504).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function a(){this.init(),this._w=u,i.call(this,64,56)}function c(t){return t<<30|t>>>2}function h(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(a,i),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,a=0|this._e,l=0;l<16;++l)n[l]=t.readInt32BE(4*l);for(;l<80;++l)n[l]=n[l-3]^n[l-8]^n[l-14]^n[l-16];for(var f=0;f<80;++f){var d=~~(f/20),p=0|((e=r)<<5|e>>>27)+h(d,i,o,u)+a+n[f]+s[d];a=u,u=o,o=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=a+this._e|0},a.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=a},9240:function(t,e,n){var r=n(38439),i=n(5418),o=n(21504).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],u=new Array(80);function a(){this.init(),this._w=u,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function h(t){return t<<30|t>>>2}function l(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(a,i),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,a=0|this._e,f=0;f<16;++f)n[f]=t.readInt32BE(4*f);for(;f<80;++f)n[f]=(e=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|e>>>31;for(var d=0;d<80;++d){var p=~~(d/20),v=c(r)+l(p,i,o,u)+a+n[d]+s[p]|0;a=u,u=o,o=h(i),i=r,r=v}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=a+this._e|0},a.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t}
vendor: 4,745 bytes, line 2
2,t.exports=a},98630:function(t,e,n){var r=n(38439),i=n(28941),o=n(5418),s=n(21504).Buffer,u=new Array(64);function a(){this.init(),this._w=u,o.call(this,64,56)}r(a,i),a.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},a.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=a},28941:function(t,e,n){var r=n(38439),i=n(5418),o=n(21504).Buffer,s=[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],u=new Array(64);function a(){this.init(),this._w=u,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function h(t,e,n){return t&e|n&(t|e)}function l(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function f(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(a,i),a.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},a.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,u=0|this._d,a=0|this._e,p=0|this._f,v=0|this._g,m=0|this._h,y=0;y<16;++y)n[y]=t.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((e=n[y-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[y-7]+d(n[y-15])+n[y-16];for(var g=0;g<64;++g){var b=m+f(a)+c(a,p,v)+s[g]+n[g]|0,w=l(r)+h(r,i,o)|0;m=v,v=p,p=a,a=u+b|0,u=o,o=i,i=r,r=b+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=u+this._d|0,this._e=a+this._e|0,this._f=p+this._f|0,this._g=v+this._g|0,this._h=m+this._h|0},a.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=a},83677:function(t,e,n){var r=n(38439),i=n(66055),o=n(5418),s=n(21504).Buffer,u=new Array(160);function a(){this.init(),this._w=u,o.call(this,128,112)}r(a,i),a.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},a.prototype._hash=function(){var t=s.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=a},66055:function(t,e,n){var r=n(38439),i=n(5418),o=n(21504).Buffer,s=[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,
21322822218,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],u=new Array(160);function a(){this.init(),this._w=u,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function h(t,e,n){return t&e|n&(t|e)}function l(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function f(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function y(t,e){return t>>>0<e>>>0?1:0}r(a,i),a.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},a.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,u=0|this._eh,a=0|this._fh,g=0|this._gh,b=0|this._hh,w=0|this._al,_=0|this._bl,M=0|this._cl,k=0|this._dl,x=0|this._el,S=0|this._fl,E=0|this._gl,C=0|this._hl,A=0;A<32;A+=2)e[A]=t.readInt32BE(4*A),e[A+1]=t.readInt32BE(4*A+4);for(;A<160;A+=2){var I=e[A-30],T=e[A-30+1],N=d(I,T),R=p(T,I),O=v(I=e[A-4],T=e[A-4+1]),j=m(T,I),P=e[A-14],L=e[A-14+1],D=e[A-32],B=e[A-32+1],F=R+L|0,z=N+P+y(F,R)|0;z=(z=z+O+y(F=F+j|0,j)|0)+D+y(F=F+B|0,B)|0,e[A]=z,e[A+1]=F}for(var U=0;U<160;U+=2){z=e[U],F=e[U+1];var W=h(n,r,i),H=h(w,_,M),V=l(n,w),q=l(w,n),Z=f(u,x),K=f(x,u),Y=s[U],G=s[U+1],J=c(u,a,g),Q=c(x,S,E),$=C+K|0,X=b+Z+y($,C)|0;X=(X=(X=X+J+y($=$+Q|0,Q)|0)+Y+y($=$+G|0,G)|0)+z+y($=$+F|0,F)|0;var tt=q+H|0,et=V+W+y(tt,q)|0;b=g,C=E,g=a,E=S,a=u,S=x,u=o+X+y(x=k+$|0,k)|0,o=i,k=M,i=r,M=_,r=n,_=w,n=X+et+y(w=$+tt|0,$)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+M|0,this._dl=this._dl+k|0,this._el=this._el+x|0,this._fl=this._fl+S|0,this._gl=this._gl+E|0,this._hl=this._hl+C|0,this._ah=this._ah+n+y(this._al,w)|0,this._bh=this._bh+r+y(this._bl,_)|0,this._ch=this._ch+i+y(this._cl,M)|0,this._dh=this._dh+o+y(this._dl,k)|0,this._eh=this._eh+u+y(this._el,x)|0,this._fh=this._fh+a+y(this._fl,S)|0,this._gh=this._gh+g+y(this._gl,E)|0,this._hh=this._hh+b+y(this._hl,C)|0},a.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=a},64015:function(t){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},18114:function(t,e,n){"use strict";var r=n(3512),i=n(39875),o=n(36104),s=n(4732);function u(t){return t.call.bind(t)}var a="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,h=u(Object.prototype.toString),l=u(Number.prototype.valueOf),f=u(String.prototype.valueOf),d=u(Boolean.prototype.valueOf);if(a)var p=u(BigInt.prototype.valueOf);if(c)var v=u(Symbol.prototype.valueOf);function m(t,e){if("object"!==typeof t)return!1;try{return e(t),!0}catch(n){return!1}}function y(t){return"[object Map]"===h(t)}function g(t){return"[object Set]"===h(t)}function b(t){return"[object WeakMap]"===h(t)}function w(t){return"[object WeakSet]"===h(t)}function _(t){return"[object ArrayBuffer]"===h(t)}function M(t){return"undefined"!==typeof ArrayBuffer&&(_.working?_(t):t instanceof ArrayBuffer)}function k(t){return"[object DataView]"===h(t)}
2function x(t){return"undefined"!==typeof DataView&&(k.working?k(t):t instanceof DataView)}e.isArgumentsObject=r,e.isGeneratorFunction=i,e.isTypedArray=s,e.isPromise=function(t){return"undefined"!==typeof Promise&&t instanceof Promise||null!==t&&"object"===typeof t&&"function"===typeof t.then&&"function"===typeof t.catch},e.isArrayBufferView=function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):s(t)||x(t)},e.isUint8Array=function(t){return"Uint8Array"===o(t)},e.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===o(t)},e.isUint16Array=function(t){return"Uint16Array"===o(t)},e.isUint32Array=function(t){return"Uint32Array"===o(t)},e.isInt8Array=function(t){return"Int8Array"===o(t)},e.isInt16Array=function(t){return"Int16Array"===o(t)},e.isInt32Array=function(t){return"Int32Array"===o(t)},e.isFloat32Array=function(t){return"Float32Array"===o(t)},e.isFloat64Array=function(t){return"Float64Array"===o(t)},e.isBigInt64Array=function(t){return"BigInt64Array"===o(t)},e.isBigUint64Array=function(t){return"BigUint64Array"===o(t)},y.working="undefined"!==typeof Map&&y(new Map),e.isMap=function(t){return"undefined"!==typeof Map&&(y.working?y(t):t instanceof Map)},g.working="undefined"!==typeof Set&&g(new Set),e.isSet=function(t){return"undefined"!==typeof Set&&(g.working?g(t):t instanceof Set)},b.working="undefined"!==typeof WeakMap&&b(new WeakMap),e.isWeakMap=function(t){return"undefined"!==typeof WeakMap&&(b.working?b(t):t instanceof WeakMap)},w.working="undefined"!==typeof WeakSet&&w(new WeakSet),e.isWeakSet=function(t){return w(t)},_.working="undefined"!==typeof ArrayBuffer&&_(new ArrayBuffer),e.isArrayBuffer=M,k.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=x;var S="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function E(t){return"[object SharedArrayBuffer]"===h(t)}function C(t){return"undefined"!==typeof S&&("undefined"===typeof E.working&&(E.working=E(new S)),E.working?E(t):t instanceof S)}function A(t){return m(t,l)}function I(t){return m(t,f)}function T(t){return m(t,d)}function N(t){return a&&m(t,p)}function R(t){return c&&m(t,v)}e.isSharedArrayBuffer=C,e.isAsyncFunction=function(t){return"[object AsyncFunction]"===h(t)},e.isMapIterator=function(t){return"[object Map Iterator]"===h(t)},e.isSetIterator=function(t){return"[object Set Iterator]"===h(t)},e.isGeneratorObject=function(t){return"[object Generator]"===h(t)},e.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===h(t)},e.isNumberObject=A,e.isStringObject=I,e.isBooleanObject=T,e.isBigIntObject=N,e.isSymbolObject=R,e.isBoxedPrimitive=function(t){return A(t)||I(t)||T(t)||N(t)||R(t)},e.isAnyArrayBuffer=function(t){return"undefined"!==typeof Uint8Array&&(M(t)||C(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},58404:function(t,e,n){var r=n(26477),i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r<e.length;r++)n[e[r]]=Object.getOwnPropertyDescriptor(t,e[r]);return n},o=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(c(arguments[n]));return e.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(t).replace(o,(function(t){if("%%"===t)return"%";if(n>=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),u=r[n];n<i;u=r[++n])y(u)||!M(u)?s+=" "+u:s+=" "+c(u);return s},e.deprecate=function(t,n){if("undefined"!==typeof r&&!0===r.noDeprecation)return t;if("undefined"===typeof r)return function(){return e.deprecate(t,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return t.apply(this,arguments)}};var s={},u=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PK_API_URL:"https://liveapi.pechakucha.com/",REACT_APP_PK_STRIPE_KEY:"pk_live_CS4Cl41NijtnXgur4memLCID00RrIPmpps",REACT_APP_PK_ENV:"live",REACT_APP_INFURA_API_KEY:"fe27b81a57ac453b9fde945b32c01c04",REACT_APP_PK_WEBSITE_URL:"https://www.pechakucha.com",REACT_APP_PK_API_KEY:"6WdMumlfh26EkJbvGNrbF2xaulxlxUGL5WDcAsXg"}.NODE_DEBUG){var a={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_PK_API_URL:"https://liveapi.pechakucha.com/",REACT_APP_PK_STRIPE_KEY:"pk_live_CS4Cl41NijtnXgur4memLCID00RrIPmpps",REACT_APP_PK_ENV:"live",REACT_APP_INFURA_API_KEY:"fe27b81a57ac453b9fde945b32c01c04",REACT_APP_PK_WEBSITE_URL:"https://www.pechakucha.com",REACT_APP_PK_API_KEY:"6WdMumlfh26EkJbvGNrbF2xaulxlxUGL5WDcAsXg"}.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),u=new RegExp("^"+a+"$","i")}function c(t,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&e._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=h),f(r,t,r.depth)}function h(t,e){var n=c.styles[e];return n?"\x1b["+c.colors[n][0]+"m"+t+"\x1b["+c.colors[n][1]+"m":t}function l(t,e){return t}function f(t,n,r){if(t.customInspect&&n&&S(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return b(i)||(i=f(t,i,r)),i}var o=function(t,e){if(w(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(g(e))return t.stylize(""+e,"number");if(m(e))return t.stylize(""+e,"boolean");if(y(e))return t.stylize("null","null")}(t,n);if(o)return o;var s=Object.keys(n),u=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),x(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.length){if(S(n)){var a=n.name?": "+n.name:"";return t.stylize("[Function"+a+"]","special")}if(_(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return t.stylize(Date.prototype.toString.call(n),"date");if(x(n))return d(n)}var c,h="",l=!1,M=["{","}"];(v(n)&&(l=!0,M=["[","]"]),S(n))&&(h=" [Function"+(n.name?": "+n.name:"")+"]");return _(n)&&(h=" "+RegExp.prototype.toString.call(n)),k(n)&&(h=" "+Date.prototype.toUTCString.call(n)),x(n)&&(h=" "+d(n)),0!==s.length||l&&0!=n.length?r<0?_(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=l?function(t,e,n,r,i){for(var o=[],s=0,u=e.length;s<u;++s)T(e,String(s))?o.push(p(t,e,n,r,String(s),!0)):o.push("");
2return i.forEach((function(i){i.match(/^\d+$/)||o.push(p(t,e,n,r,i,!0))})),o}(t,n,r,u,s):s.map((function(e){return p(t,n,r,u,e,l)})),t.seen.pop(),function(t,e,n){if(t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,h,M)):M[0]+h+M[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,i,o){var s,u,a;if((a=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?u=a.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):a.set&&(u=t.stylize("[Setter]","special")),T(r,i)||(s="["+i+"]"),u||(t.seen.indexOf(a.value)<0?(u=y(n)?f(t,a.value,null):f(t,a.value,n-1)).indexOf("\n")>-1&&(u=o?u.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+u.split("\n").map((function(t){return" "+t})).join("\n")):u=t.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return u;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+u}function v(t){return Array.isArray(t)}function m(t){return"boolean"===typeof t}function y(t){return null===t}function g(t){return"number"===typeof t}function b(t){return"string"===typeof t}function w(t){return void 0===t}function _(t){return M(t)&&"[object RegExp]"===E(t)}function M(t){return"object"===typeof t&&null!==t}function k(t){return M(t)&&"[object Date]"===E(t)}function x(t){return M(t)&&("[object Error]"===E(t)||t instanceof Error)}function S(t){return"function"===typeof t}function E(t){return Object.prototype.toString.call(t)}function C(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(u.test(t)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=c,c.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]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(18114),e.isArray=v,e.isBoolean=m,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=b,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=w,e.isRegExp=_,e.types.isRegExp=_,e.isObject=M,e.isDate=k,e.types.isDate=k,e.isError=x,e.types.isNativeError=x,e.isFunction=S,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=n(64015);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var t=new Date,e=[C(t.getHours()),C(t.getMinutes()),C(t.getSeconds())].join(":");return[t.getDate(),A[t.getMonth()],e].join(" ")}function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",I(),e.format.apply(e,arguments))},e.inherits=n(38439),e._extend=function(t,e){if(!e||!M(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var N="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function R(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(N&&t[N]){var e;if("function"!==typeof(e=t[N]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,N,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(t,r){t?n(t):e(r)}));try{t.apply(this,i)}catch(s){n(s)}return r}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),N&&Object.defineProperty(e,N,{value:e,enumerable:!1,writable:!1,
2configurable:!0}),Object.defineProperties(e,i(t))},e.promisify.custom=N,e.callbackify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n<arguments.length;n++)e.push(arguments[n]);var i=e.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};t.apply(this,e).then((function(t){r.nextTick(s.bind(null,null,t))}),(function(t){r.nextTick(R.bind(null,t,s))}))}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),Object.defineProperties(e,i(t)),e}},36104:function(t,e,n){"use strict";var r=n(51179),i=n(66754),o=n(12829),s=o("Object.prototype.toString"),u=n(44443)(),a="undefined"===typeof globalThis?n.g:globalThis,c=i(),h=o("String.prototype.slice"),l={},f=n(56397),d=Object.getPrototypeOf;u&&f&&d&&r(c,(function(t){if("function"===typeof a[t]){var e=new a[t];if(Symbol.toStringTag in e){var n=d(e),r=f(n,Symbol.toStringTag);if(!r){var i=d(n);r=f(i,Symbol.toStringTag)}l[t]=r.get}}}));var p=n(4732);t.exports=function(t){return!!p(t)&&(u&&Symbol.toStringTag in t?function(t){var e=!1;return r(l,(function(n,r){if(!e)try{var i=n.call(t);i===r&&(e=i)}catch(o){}})),e}(t):h(s(t),8,-1))}},2678:function(t){t.exports=function(){for(var t={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)e.call(r,i)&&(t[i]=r[i])}return t};var e=Object.prototype.hasOwnProperty},42122:function(t,e,n){var r=n(38416);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}t.exports=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t},t.exports.__esModule=!0,t.exports.default=t.exports},66754:function(t,e,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"===typeof globalThis?n.g:globalThis;t.exports=function(){for(var t=[],e=0;e<r.length;e++)"function"===typeof i[r[e]]&&(t[t.length]=r[e]);return t}},56397:function(t,e,n){"use strict";var r=n(89611)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}t.exports=r},40626:function(t){"use strict";t.exports={i8:"3.5.1"}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.