1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6080],{46111:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletSDK=void 0;let n=r(5814),i=r(97402),s=r(13603),o=r(61316),c=r(25238),u=r(44015),a=r(54822),l=r(79154),h=r(54750);class d{constructor(t){var e,r,n;let o;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let l=t.linkAPIUrl||i.LINK_API_URL;if(o=t.uiConstructor?t.uiConstructor:t=>new c.WalletSDKUI(t),void 0===t.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this._overrideIsCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,t.diagnosticLogger&&t.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this._diagnosticLogger={log:t.eventListener.onEvent}:this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=null===(n=t.reloadOnDisconnect)||void 0===n||n;let f=new URL(l),p=`${f.protocol}//${f.host}`;if(this._storage=new s.ScopedLocalStorage(`-walletlink:${p}`),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new a.WalletSDKRelayEventManager,this._relay=new u.WalletSDKRelay({linkAPIUrl:l,version:h.LIB_VERSION,darkMode:!!t.darkMode,uiConstructor:o,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(t.appName,t.appLogoUrl),t.headlessMode))return;this._relay.attachUI()}makeWeb3Provider(t="",e=1){let r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(t,e),!1===this._reloadOnDisconnect&&"function"==typeof r.disableReloadOnDisconnect&&r.disableReloadOnDisconnect(),r;let n=this.coinbaseBrowser;if(n)return n;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return t||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>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})}setAppInfo(t,e){var r;this._appName=t||"DApp",this._appLogoUrl=e||(0,l.getFavicon)();let n=this.walletExtension;n?this.isCipherProvider(n)||n.setAppInfo(this._appName,this._appLogoUrl):null===(r=this._relay)||void 0===r||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;let e=this.walletExtension;e?e.close():null===(t=this._relay)||void 0===t||t.resetAndReload()}getQrUrl(){var t,e;return null!==(e=null===(t=this._relay)||void 0===t?void 0:t.getQRCodeUrl())&&void 0!==e?e:null}getCoinbaseWalletLogo(t,e=240){return(0,n.walletLogo)(t,e)}get walletExtension(){var t;return null!==(t=window.coinbaseWalletExtension)&&void 0!==t?t:window.walletLinkExtension}get coinbaseBrowser(){var t,e;try{let r=null!==(t=window.ethereum)&&void 0!==t?t:null===(e=window.top)||void 0===e?void 0:e.ethereum;if(!r)return;if("isCoinbaseBrowser"in r&&r.isCoinbaseBrowser)return r;return}catch(t){return}}isCipherProvider(t){return"boolean"==typeof t.isCipher&&t.isCipher}}e.CoinbaseWalletSDK=d,d.VERSION=h.LIB_VERSION},5814:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.walletLogo=void 0,e.walletLogo=(t,e)=>{let r;switch(t){case"standard":default:return r=e,`data:image/svg+xml,%3Csvg width='${e}' height='${r}' 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 r=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${r}
1' 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 r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' 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.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.61V
152.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' 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 r=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' 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 r=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${r}' 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
11,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},62054:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-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-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},67303:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseAppSteps=e.CoinbaseWalletSteps=e.ConnectItem=e.ConnectContent=void 0;let i=n(r(25796)),s=r(57764),o=r(83148),c=r(79154),u=r(54750),a=r(84574),l=n(r(59653)),h=n(r(79494)),d=r(71200),f=n(r(25785)),p=n(r(85017)),b=r(24474),g=r(22926),y=r(65541),m=n(r(62054)),v={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:S},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:l.default,steps:x}},_=t=>"coinbase-app"===t?f.default:p.default,w=t=>"light"===t?"#FFFFFF":"#0A0B0D";function E({title:t,description:e,icon:r,selected:n,theme:o,onClick:c}){return(0,s.h)("div",{onClick:c,class:(0,i.default)("-cbwsdk-connect-item",o,{selected:n})},(0,s.h)("div",null,(0,s.h)("img",{src:r,alt:t})),(0,s.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,s.h)("h3",{class:"-cbwsdk-connect-item-title"},t),(0,s.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}function S({theme:t}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"Scan")," "),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(d.QRCodeIcon,{fill:w(t)})))))}function x({theme:t}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"More")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(b.StatusDotIcon,{fill:w(t)})),(0,s.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,s.h)("strong",null,"Scan")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,s.h)(d.QRCodeIcon,{fill:w(t)})))))}e.ConnectContent=function(t){let{theme:e}=t,[r,n]=(0,o.useState)("coinbase-wallet-app"),l=(0,o.useCallback)(t=>{n(t)},[]),h=(0,c.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId),d=v[r];if(!r)return null;let f=d.steps;return(0,s.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",e)},(0,s.h)("style",null,m.default),(0,s.h)("div",{class:"-cbwsdk-connect-content-header"},(0,s.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),t.onCancel&&(0,s.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:t.onCancel},(0,s.h)(a.CloseIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,s.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,s.h)("div",null,Object.entries(v).map(([t,n])=>(0,s.h)(E,{key:t,title:n.title,description:n.description,icon:n.icon,selected:r===t,onClick:()=>l(t),theme:e}))),"coinbase-app"===r&&(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",e)},"Donât see a ",(0,s.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,s.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,s.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,s.h)(g.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:_(r),width:25,height:25}}),(0,s.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:u.LIB_VERSION}),(0,s.h)("input",{type:"hidden",value:h})),(0,s.h)(f,{theme:e}),!t.isConnected&&(0,s.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,s.h)(y.Spinner,{size:36,color:"dark"===e?"#FFF":"#000"}),(0,s.h)("p",null,"Connecting...")))))},e.ConnectItem=E,e.CoinbaseWalletSteps=S,e.CoinbaseAppSteps=x},46926:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-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-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},19391:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectDialog=void 0;let i=n(r(25796)),s=r(57764),o=r(83148),c=r(67303),u=r(94223),a=n(r(46926));e.ConnectDialog=t=>{let{isOpen:e,darkMode:r}=t,[n,l]=(0,o.useState)(!e),[h,d]=(0,o.useState)(!e);(0,o.useEffect)(()=>{let t=[window.setTimeout(()=>{d(!e)},10)];return e?l(!1):t.push(window.setTimeout(()=>{l(!0)},360)),()=>{t.forEach(window.clearTimeout)}},[t.isOpen]);let f=r?"dark":"light";return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,s.h)("style",null,a.default),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",f,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,s.h)("div",{class:"-cbwsdk-connect-dialog"},(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},t.connectDisabled?null:(0,s.h)(c.ConnectContent,{theme:f,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,s.h)(u.TryExtensionContent,{theme:f}))))}},93981:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkFlow=void 0;let n=r(57764),i=r(40637),s=r(19391);class o{constructor(t){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection,this.connected$=t.connected$,this.chainId$=t.chainId$}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var t;this.root&&(this.subscriptions.unsubscribe(),(0,n.render)(null,this.root),null===(t=this.root.parentElement)||void 0===t||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let t=this.extensionUI$.subscribe(()=>{this.root&&(0,n.render)((0,n.h)(s.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(t)}}e.LinkFlow=o},22926:function(t,e,r){"use strict";var n=r(9109).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.QRCode=void 0;let s=r(57764),o=r(83148),c=i(r(53082));e.QRCode=t=>{let[e,r]=(0,o.useState)("");return(0,o.useEffect)(()=>{var e,i;let s=new c.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!==(i=t.height)&&void 0!==i?i:256,padding:0,image:t.image}),o=n.from(s.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${o}`)}),e?(0,s.h)("img",{src:e,alt:"QR Code"}):null}},67919: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}.-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}"},8549:function(t,e,r){"use strict";var n=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;let i=n(r(25796)),s=r(57764),o=r(83148),c=n(r(67919));class u{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",t.appendChild(this.root),this.render()}presentItem(t){let e=this.nextItemKey++;return this.items.set(e,t),this.render(),()=>{this.items.delete(e),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)("div",null,(0,s.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([t,r])=>(0,s.h)(e.SnackbarInstance,Object.assign({},r,{key:t}
1))))),this.root)}}e.Snackbar=u,e.SnackbarContainer=t=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,s.h)("style",null,c.default),(0,s.h)("div",{class:"-cbwsdk-snackbar"},t.children)),e.SnackbarInstance=({autoExpand:t,message:e,menuItems:r,appSrc:n})=>{let[c,u]=(0,o.useState)(!0),[a,l]=(0,o.useState)(null!=t&&t);return(0,o.useEffect)(()=>{let t=[window.setTimeout(()=>{u(!1)},1),window.setTimeout(()=>{l(!0)},1e4)];return()=>{t.forEach(window.clearTimeout)}}),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",c&&"-cbwsdk-snackbar-instance-hidden",a&&"-cbwsdk-snackbar-instance-expanded")},(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{l(!a)}},(0,s.h)("img",{src:"coinbase-app"===n?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,s.h)("div",{class:"-gear-container"},!a&&(0,s.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,s.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwu
1NTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),r&&r.length>0&&(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},r.map((t,e)=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:t.onClick,key:e},(0,s.h)("svg",{width:t.svgWidth,height:t.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{"fill-rule":t.defaultFillRule,"clip-rule":t.defaultClipRule,d:t.path,fill:"#AAAAAA"})),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},t.info)))))}},14884: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)}}"},65541:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;let i=r(57764),s=n(r(14884));e.Spinner=t=>{var e;let r=null!==(e=t.size)&&void 0!==e?e:64,n=t.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,s.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))}},49465:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},94223:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.TryExtensionContent=void 0;let i=n(r(25796)),s=r(57764),o=r(83148),c=r(9372),u=r(73963),a=r(96039),l=n(r(49465));e.TryExtensionContent=function({theme:t}){let[e,r]=(0,o.useState)(!1),n=(0,o.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),h=(0,o.useCallback)(()=>{e?window.location.reload():(n(),r(!0))},[n,e]);return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",t)},(0,s.h)("style",null,l.default),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",t)},"Or try the Coinbase Wallet browser extension"),(0,s.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,s.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",t),onClick:h},e?"Refresh":"Install"),(0,s.h)("div",null,!e&&(0,s.h)(c.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===t?"#0052FF":"#588AF5"})))),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,s.h)(u.LaptopIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Connect with dapps with just one click on your desktop browser")),(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,s.h)(a.SafeIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},9372:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrowLeftIcon=void 0;let n=r(57764);e.ArrowLeftIcon=function(t){return(0,n.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},84574:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CloseIcon=void 0;let n=r(57764);e.CloseIcon=function(t){return(0,n.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},73963:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LaptopIcon=void 0;let n=r(57764);e.LaptopIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,n.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},71200:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QRCodeIcon=void 0;let n=r(57764);e.QRCodeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,n.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,n.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,n.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,n.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,n.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,n.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,n.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,n.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},25785:function(t,e){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});let r=` 2 <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> 3 <path d="M50 100C77.6142 100 100 77.6142 100 50C100 22.3858 77.6142 0 50 0C22.3858 0 0 22.3858 0 50C0 77.6142 22.3858 100 50 100Z" fill="white"/> 4 <path d="M50.512 94C74.2907 94 93.5673 74.5244 93.5673 50.5C93.5673 26.4756 74.2907 7 50.512 7C26.7332 7 7.45667 26.4756 7.45667 50.5C7.45667 74.5244 26.7332 94 50.512 94Z" fill="#0052FF"/> 5 <path d="M50.6248 65.4335C42.3697 65.4335 35.8996 58.7469 35.8996 50.5C35.8996 42.2531 42.5928 35.5664 50.6248 35.5664C57.9873 35.5664 64.0111 40.9157 65.1267 48.0481H80.0749C78.7363 32.6688 66.0191 20.6328 50.6248 20.6328C34.3379 20.6328 20.9514 34.0062 20.9514 50.5C20.9514 66.9936 34.1148 80.3671 50.6248 80.3671C66.2422 80.3671 78.7363 68.331 80.0749 52.9516H65.1267C64.0111 60.0841 57.9873 65.4335 50.6248 65.4335Z" fill="white"/> 6 </svg> 7`;e.default=r},85017:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=` 8 <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> 9 <circle cx="50" cy="50" r="50" fill="white"/> 10 <circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/> 11 <circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/> 12 <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"/> 13 </svg> 14`},96039:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SafeIcon=void 0;let n=r(57764);e.SafeIcon=function(t){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},24474:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StatusDotIcon=void 0;let n=r(57764);e.StatusDotIcon=function(t){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},59653:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDgg
14NC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},79494:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},61490:function(t,e){"use strict";Object.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)}},28933: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"}},47370:function(t,e,r){"use strict";var n,i;Object.defineProperty(e,"__esModule",{value:!0}),e.RxWebSocket=e.ConnectionState=void 0;let s=r(40637),o=r(66793);(i=n=e.ConnectionState||(e.ConnectionState={}))[i.DISCONNECTED=0]="DISCONNECTED",i[i.CONNECTING=1]="CONNECTING",i[i.CONNECTED=2]="CONNECTED";class c{constructor(t,e=WebSocket){this.WebSocketClass=e,this.webSocket=null,this.connectionStateSubject=new s.BehaviorSubject(n.DISCONNECTED),this.incomingDataSubject=ne
14w s.Subject,this.url=t.replace(/^http/,"ws")}connect(){return this.webSocket?(0,s.throwError)(Error("webSocket object is not null")):new s.Observable(t=>{let e;try{this.webSocket=e=new this.WebSocketClass(this.url)}catch(e){t.error(e);return}this.connectionStateSubject.next(n.CONNECTING),e.onclose=e=>{this.clearWebSocket(),t.error(Error(`websocket error ${e.code}: ${e.reason}`)),this.connectionStateSubject.next(n.DISCONNECTED)},e.onopen=e=>{t.next(),t.complete(),this.connectionStateSubject.next(n.CONNECTED)},e.onmessage=t=>{this.incomingDataSubject.next(t.data)}}).pipe((0,o.take)(1))}disconnect(){let{webSocket:t}=this;if(t){this.clearWebSocket(),this.connectionStateSubject.next(n.DISCONNECTED);try{t.close()}catch(t){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,o.flatMap)(t=>{let e;try{e=JSON.parse(t)}catch(t){return(0,s.empty)()}return(0,s.of)(e)}))}sendData(t){let{webSocket:e}=this;if(!e)throw Error("websocket is not connected");e.send(t)}clearWebSocket(){let{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}e.RxWebSocket=c},46127: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}},7818:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKConnection=void 0;let n=r(40637),i=r(66793),s=r(61019),o=r(30066),c=r(61490),u=r(28933),a=r(47370),l=r(46127);class h{constructor(t,e,r,c,l=WebSocket){this.sessionId=t,this.sessionKey=e,this.diagnostic=c,this.subscriptions=new n.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,o.IntNumber)(1),this.connectedSubject=ne
14w n.BehaviorSubject(!1),this.linkedSubject=new n.BehaviorSubject(!1),this.sessionConfigSubject=new n.ReplaySubject(1);let h=new a.RxWebSocket(r+"/rpc",l);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)(e=>{var r;return null===(r=this.diagnostic)||void 0===r?void 0:r.log(u.EVENTS.CONNECTED_STATE_CHANGE,{state:e,sessionIdHash:s.Session.hash(t)})}),(0,i.skip)(1),(0,i.filter)(t=>t===a.ConnectionState.DISCONNECTED&&!this.destroyed),(0,i.delay)(5e3),(0,i.filter)(t=>!this.destroyed),(0,i.flatMap)(t=>h.connect()),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)(t=>(0,n.iif)(()=>t===a.ConnectionState.CONNECTED,this.authenticate().pipe((0,i.tap)(t=>this.sendIsLinked()),(0,i.tap)(t=>this.sendGetSessionConfig()),(0,i.map)(t=>!0)),(0,n.of)(!1))),(0,i.distinctUntilChanged)(),(0,i.catchError)(t=>(0,n.of)(!1))).subscribe(t=>this.connectedSubject.next(t))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)(t=>(0,n.iif)(()=>t===a.ConnectionState.CONNECTED,(0,n.timer)(0,1e4)))).subscribe(t=>0===t?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)(t=>"h"===t)).subscribe(t=>this.updateLastHeartbeat())),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)(t=>["IsLinkedOK","Linked"].includes(t.type))).subscribe(e=>{var r;null===(r=this.diagnostic)||void 0===r||r.log(u.EVENTS.LINKED,{sessionIdHash:s.Session.hash(t),linked:e.linked,type:e.type,onlineGuests:e.onlineGuests}),this.linkedSubject.next(e.linked||e.onlineGuests>0)})),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)(t=>["GetSessionConfigOK","SessionConfigUpdated"].includes(t.type))).subscribe(e=>{var r;null===(r=this.diagnostic)||void 0===r||r.log(u.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:s.Session.hash(t),metadata_keys:e&&e.metadata?Object.keys(e.metadata):void 0}),this.sessionConfigSubject.next({webhookId:e.webhookId,webhookUrl:e.webhookUrl,metadata:e.metadata})}))}connect(){var t;if(this.destroyed)throw Error("instance is destroyed");null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.STARTED_CONNECTING,{sessionIdHash:s.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var t;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.DISCONNECTED,{sessionIdHash:s.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)(t=>t),(0,i.take)(1),(0,i.map)(()=>void 0))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)(t=>t),(0,i.take)(1),(0,i.map)(()=>void 0))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)(t=>"Event"===t.type&&"string"==typeof t.sessionId&&"string"==typeof t.eventId&&"string"==typeof t.event&&"string"==typeof t.data),(0,i.map)(t=>t))}setSessionMetadata(t,e){let r=(0,c.ClientMessageSetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[t]:e}});return this.onceConnected$.pipe((0,i.flatMap)(t=>this.makeRequest(r)),(0,i.map)(t=>{if((0,l.isServerMessageFail)(t))throw Error(t.error||"failed to set session metadata")}))}publishEvent(t,e,r=!1){let n=(0,c.ClientMessagePublishEvent)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:t,data:e,callWebhook:r});return this.onceLinked$.pipe((0,i.flatMap)(t=>this.makeRequest(n)),(0,i.map)(t=>{if((0,l.isServerMessageFail)(t))throw Error(t.error||"failed to publish event");return t.eventId}))}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(t){}}makeRequest(t,e=6e4){let r=t.id;try{this.sendData(t)}catch(t){return(0,n.throwError)(t)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(e,(0,n.throwError)(Error(`request ${r} timed out`))),(0,i.filter)(t=>t.id===r),(0,i.take)(1))}authenticate(){let t=(0,c.ClientMessageHostSession)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});
14return this.makeRequest(t).pipe((0,i.map)(t=>{if((0,l.isServerMessageFail)(t))throw Error(t.error||"failed to authentcate")}))}sendIsLinked(){let t=(0,c.ClientMessageIsLinked)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}sendGetSessionConfig(){let t=(0,c.ClientMessageGetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}}e.WalletSDKConnection=h},97402:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINK_API_URL=void 0,e.LINK_API_URL="https://www.walletlink.org"},99195:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getErrorCode=e.serializeError=e.standardErrors=e.standardErrorMessage=e.standardErrorCodes=void 0;let n=r(77866),i=r(93166),s=r(54750);e.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},n.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},n.errorCodes.provider),{unsupportedChain:4902}))})),e.standardErrorMessage=function(t){return void 0!==t?(0,n.getMessageFromCode)(t):"Unknown error"},e.standardErrors=Object.freeze(Object.assign(Object.assign({},n.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},n.ethErrors.provider),{unsupportedChain:(t="")=>n.ethErrors.provider.custom({code:e.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${t}. Try adding the chain using wallet_addEthereumChain first.`})}))})),e.serializeError=function(t,r){let o=(0,n.serializeError)("string"==typeof t?{message:t,code:e.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(t)?Object.assign(Object.assign({},t),{message:t.errorMessage,code:t.errorCode,data:{method:t.method,result:t.result}}):t,{shouldIncludeStack:!0}),c=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");c.searchParams.set("version",s.LIB_VERSION),c.searchParams.set("code",o.code.toString());let u=function(t,e){let r=null==t?void 0:t.method;return r?r:void 0!==e?"string"==typeof e?e:Array.isArray(e)?e.length>0?e[0].method:void 0:e.method:void 0}(o.data,r);return u&&c.searchParams.set("method",u),c.searchParams.set("message",o.message),Object.assign(Object.assign({},o),{docUrl:c.href})},e.getErrorCode=function(t){var e;return"number"==typeof t?t:"object"==typeof t&&null!==t&&("number"==typeof t.code||"number"==typeof t.errorCode)?null!==(e=t.code)&&void 0!==e?e:t.errorCode:void 0}},86080:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=e.CoinbaseWalletSDK=void 0;let n=r(46111),i=r(61316);var s=r(46111);Object.defineProperty(e,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return s.CoinbaseWalletSDK}});var o=r(61316);Object.defineProperty(e,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return o.CoinbaseWalletProvider}}),e.default=n.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=n.CoinbaseWalletSDK,window.CoinbaseWalletProvider=i.CoinbaseWalletProvider,window.WalletLink=n.CoinbaseWalletSDK,window.WalletLinkProvider=i.CoinbaseWalletProvider)},13603:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScopedLocalStorage=void 0;class r{constructor(t){this.scope=t}setItem(t,e){localStorage.setItem(this.scopedKey(t),e)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){let t=this.scopedKey(""),e=[];for(let r=0;r<localStorage.length;r++){let n=localStorage.key(r);"string"==typeof n&&n.startsWith(t)&&e.push(n)}e.forEach(t=>localStorage.removeItem(t))}scopedKey(t){return`${this.scope}:${t}`}}e.ScopedLocalStorage=r},20877:function(t,e){"use strict";Object.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;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;counter-increment:none;counter-reset:none;direction:ltr;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;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;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";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;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;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;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}'},75874:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
14Object.defineProperty(e,"__esModule",{value:!0}),e.injectCssReset=void 0;let i=n(r(20877));e.injectCssReset=function(){let t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(t)}},61316:function(t,e,r){"use strict";var n=r(9109).Buffer,i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseWalletProvider=void 0;let s=i(r(96817)),o=i(r(58171)),c=r(28933),u=r(99195),a=r(61019),l=r(23223),h=r(57014),d=r(93166),f=r(79154),p=i(r(80745)),b=r(65057),g=r(20011),y=r(73819),m="DefaultChainId",v="DefaultJsonRpcUrl";class _ extends s.default{constructor(t){var e,r;super(),this._filterPolyfill=new b.FilterPolyfill(this),this._subscriptionManager=new y.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=t.chainId,this._jsonRpcUrlFromOpts=t.jsonRpcUrl,this._overrideIsMetaMask=t.overrideIsMetaMask,this._relayProvider=t.relayProvider,this._storage=t.storage,this._relayEventManager=t.relayEventManager,this.diagnostic=t.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this.isCoinbaseBrowser=null!==(r=t.overrideIsCoinbaseBrowser)&&void 0!==r&&r,this.qrUrl=t.qrUrl;let n=this.getChainId(),i=(0,f.prepend0x)(n.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(l.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let t=s.split(" ");""!==t[0]&&(this._addresses=t.map(t=>(0,f.ensureAddressString)(t)),this.emit("accountsChanged",t))}this._subscriptionManager.events.on("notification",t=>{this.emit("message",{type:t.method,data:t.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",t=>{var e;if(t.origin===location.origin&&t.source===window&&"walletLinkMessage"===t.data.type){if("dappChainSwitched"===t.data.data.action){let r=t.data.data.chainId,n=null!==(e=t.data.data.jsonRpcUrl)&&void 0!==e?e:this.jsonRpcUrl;this.updateProviderInfo(n,Number(r))}"addressChanged"===t.data.data.action&&this._setAddresses([t.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,f.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var t;return null!==(t=this._storage.getItem(v))&&void 0!==t?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem(v,t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,e){this.isCoinbaseBrowser||(this._chainIdFromOpts=e,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,e){this.jsonRpcUrl=t;let r=this.getChainId();this._storage.setItem(m,e.toString(10)),(0,f.ensureIntNumber)(e)===r&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,e,r,n,i,s){let o=await this.initializeRelay();return!!(await o.watchAsset(t,e,r,n,i,null==s?void 0:s.toString()).promise).result}async addEthereumChain(t,e,r,n,i,s){var o,c;if((0,f.ensureIntNumber)(t)===this.getChainId())return!1;let u=await this.initializeRelay(),a=u.inlineAddEthereumChain(t.toString());this._isAuthorized()||a||await u.requestEthereumAccounts().promise;let l=await u.addEthereumChain(t.toString(),e,i,r,n,s).promise;return(null===(o=l.result)||void 0===o?void 0:o.isApproved)===!0&&this.updateProviderInfo(e[0],t),(null===(c=l.result)||void 0===c?void 0:c.isApproved)===!0}async switchEthereumChain(t){let e=await this.initializeRelay(),r=await e.switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if((0,d.isErrorResponse)(r)&&r.errorCode){if(r.errorCode===u.standardErrorCodes.provider.unsupportedChain)throw u.standardErrors.provider.unsupportedChain(t);throw u.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode})}let n=r.result;n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,t)}setAppInfo(t,e){this.initializeRelay().then(r=>r.setAppInfo(t,e))}async enable(){var t;return(null===(t=this.diagnostic)||void 0===t||t.log(c.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?a.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())?[...this._addresses]:await this.send(g.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(t,e){try{let r=this._send(t,e);if(r instanceof Promise)return r.catch(e=>{throw(0,u.serializeError)(e,t)})}catch(e){throw(0,u.serializeError)(e,t)}}_send(t,e){if("string"==typeof t){let r=Array.isArray(e)?e:void 0!==e?[e]:[];return this._sendRequestAsync({jsonrpc:"2.0",id:0,method:t,params:r}).then(t=>t.result)}return"function"==typeof e?this._sendAsync(t,e):Array.isArray(t)?t.map(t=>this._sendRequest(t)):this._sendRequest(t)}async sendAsync(t,e){try{return this._sendAsync(t,e).catch(e=>{throw(0,u.serializeError)(e,t)})}catch(e){return Promise.reject((0,u.serializeError)(e,t))}}async _sendAsync(t,e){if("function"!=typeof e)throw Error("callback is required");if(Array.isArray(t)){this._sendMultipleRequestsAsync(t).then(t=>e(null,t)).catch(t=>e(t,null));return}return this._sendRequestAsync(t).then(t=>e(null,t)).catch(t=>e(t,null))}async request(t){try{return this._request(t).catch(e=>{throw(0,u.serializeError)(e,t.method)})}catch(e){return Promise.reject((0,u.serializeError)(e,t.method))}}async _request(t){if(!t||"object"!=typeof t||Array.isArray(t))throw u.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});let{method:e,params:r}=t;if("string"!=typeof e||0===e.length)throw u.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw u.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:t});
14let n=void 0===r?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:e,params:n,jsonrpc:"2.0",id:i})).result}async scanQRCode(t){var e;let r=await this.initializeRelay(),n=await r.scanQRCode((0,f.ensureRegExpString)(t)).promise;if("string"!=typeof n.result)throw(0,u.serializeError)(null!==(e=n.errorMessage)&&void 0!==e?e:"result was not a string",h.Web3Method.scanQRCode);return n.result}async genericRequest(t,e){var r;let n=await this.initializeRelay(),i=await n.genericRequest(t,e).promise;if("string"!=typeof i.result)throw(0,u.serializeError)(null!==(r=i.errorMessage)&&void 0!==r?r:"result was not a string",h.Web3Method.generic);return i.result}async selectProvider(t){var e;let r=await this.initializeRelay(),n=await r.selectProvider(t).promise;if("string"!=typeof n.result)throw(0,u.serializeError)(null!==(e=n.errorMessage)&&void 0!==e?e:"result was not a string",h.Web3Method.selectProvider);return n.result}supportsSubscriptions(){return!1}subscribe(){throw Error("Subscriptions are not supported")}unsubscribe(){throw Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){let e={jsonrpc:"2.0",id:t.id},{method:r}=t;if(e.result=this._handleSynchronousMethods(t),void 0===e.result)throw Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return e}_setAddresses(t,e){if(!Array.isArray(t))throw Error("addresses is not an array");let r=t.map(t=>(0,f.ensureAddressString)(t));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,this.emit("accountsChanged",this._addresses),this._storage.setItem(l.LOCAL_STORAGE_ADDRESSES_KEY,r.join(" ")))}_sendRequestAsync(t){return new Promise((e,r)=>{try{let n=this._handleSynchronousMethods(t);if(void 0!==n)return e({jsonrpc:"2.0",id:t.id,result:n});let i=this._handleAsynchronousFilterMethods(t);if(void 0!==i){i.then(r=>e(Object.assign(Object.assign({},r),{id:t.id}))).catch(t=>r(t));return}let s=this._handleSubscriptionMethods(t);if(void 0!==s){s.then(r=>e({jsonrpc:"2.0",id:t.id,result:r.result})).catch(t=>r(t));return}}catch(t){return r(t)}this._handleAsynchronousMethods(t).then(r=>r&&e(Object.assign(Object.assign({},r),{id:t.id}))).catch(t=>r(t))})}_sendMultipleRequestsAsync(t){return Promise.all(t.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(t){let{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_accounts:return this._eth_accounts();case g.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case g.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(r);case g.JSONRPCMethod.net_version:return this._net_version();case g.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){let{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case g.JSONRPCMethod.eth_sign:return this._eth_sign(r);case g.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(r);case g.JSONRPCMethod.personal_sign:return this._personal_sign(r);case g.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(r);case g.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(r);case g.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(r);case g.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(r);case g.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(r);case g.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case g.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(r);case g.JSONRPCMethod.eth_signTypedData_v4:case g.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(r);case g.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(r);case g.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(r);case g.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(r);case g.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(r)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(t){let{method:e}=t,r=t.params||[];switch(e){case g.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(r);case g.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case g.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case g.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(r);case g.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(t){switch(t.method){case g.JSONRPCMethod.eth_subscribe:case g.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{let e=(0,f.ensureAddressString)(t);return this._addresses.map(t=>(0,f.ensureAddressString)(t)).includes(e)}catch(t){}return!1}_ensureKnownAddress(t){var e;if(!this._isKnownAddress(t))throw null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(t){let e=t.from?(0,f.ensureAddressString)(t.from):this.selectedAddress;if(!e)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(e);let r=t.to?(0,f.ensureAddressString)(t.to):null,i=null!=t.value?(0,f.ensureBN)(t.value):new o.default(0),s=t.data?(0,f.ensureBuffer)(t.data):n.alloc(0),c=null!=t.nonce?(0,f.ensureIntNumber)(t.nonce):null,u=null!=t.gasPrice?(0,f.ensureBN)(t.gasPrice):null,a=null!=t.maxFeePerGas?(0,f.ensureBN)(t.maxFeePerGas):null;return{fromAddress:e,toAddress:r,weiValue:i,data:s,nonce:c,gasPriceInWei:u,maxFeePerGas:a,maxPriorityFeePerGas:null!=t.maxPriorityFeePerGas?(0,f.ensureBN)(t.maxPriorityFeePerGas):null,gasLimit:null!=t.gas?(0,f.ensureBN)(t.gas):null,chainId:this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw u.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw u.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(t,e,r,n){this._ensureKnownAddress(e);try{let i=await this.initializeRelay(),s=await i.signEthereumMessage(t,e,r,n).promise;return{jsonrpc:"2.0",id:0,result:s.result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied message signature");throw t}}async _ethereumAddressFromSignedMessage(t,e,r){let n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.ethereumAddressFromSignedMessage(t,e,r).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,f.hexStringFromIntNumber)(this.getChainId())}getChainId(){let t=this._storage.getItem(m);if(!t)return(0,f.ensureIntNumber)(this._chainIdFromOpts);let e=parseInt(t,10);return(0,f.ensureIntNumber)(e)}async _eth_requestAccounts(){var t;let e;if(null===(t=this.diagnostic)||void 0===t||t.log(c.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?a.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let t=await this.initializeRelay();e=await t.requestEthereumAccounts().promise}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied account authorization");throw t}if(!e.result)throw Error("accounts received is empty");return this._setAddresses(e.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();let e=(0,f.ensureAddressString)(t[0]),r=(0,f.ensureBuffer)(t[1]);return this._signEthereumMessage(r,e,!1)}_eth_ecRecover(t){let e=(0,f.ensureBuffer)(t[0]),r=(0,f.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!1)}_personal_sign(t){this._requireAuthorization();let e=(0,f.ensureBuffer)(t[0]),r=(0,f.ensureAddressString)(t[1]);return this._signEthereumMessage(e,r,!0)}_personal_ecRecover(t){let e=(0,f.ensureBuffer)(t[0]),r=(0,f.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,r,!0)}async _eth_signTransaction(t){this._requireAuthorization();let e=this._prepareTransactionParams(t[0]||{});try{let t=await this.initializeRelay(),r=await t.signEthereumTransaction(e).promise;return{jsonrpc:"2.0",id:0,result:r.result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_sendRawTransaction(t){let e=(0,f.ensureBuffer)(t[0]),r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.submitEthereumTransaction(e,this.getChainId()).promise).result}}async _eth_sendTransaction(t){this._requireAuthorization();let e=this._prepareTransactionParams(t[0]||{});try{let t=await this.initializeRelay(),r=await t.signAndSubmitEthereumTransaction(e).promise;return{jsonrpc:"2.0",id:0,result:r.result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw u.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_signTypedData_v1(t){this._requireAuthorization();let e=(0,f.ensureParsedJSONObject)(t[0]),r=(0,f.ensureAddressString)(t[1]);this._ensureKnownAddress(r);let n=p.default.hashForSignTypedDataLegacy({data:e}),i=JSON.stringify(e,null,2);return this._signEthereumMessage(n,r,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();let e=(0,f.ensureAddressString)(t[0]),r=(0,f.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);let n=p.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();let e=(0,f.ensureAddressString)(t[0]),r=(0,f.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);let n=p.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,e,!1,i)}async _cbwallet_arbitrary(t){let e=t[0],r=t[1];if("string"!=typeof r)throw Error("parameter must be a string");if("object"!=typeof e||null===e)throw Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(e,r)}}async _wallet_addEthereumChain(t){var e,r,n,i;let s=t[0];if((null===(e=s.rpcUrls)||void 0===e?void 0:e.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||""===s.chainName.trim())throw u.standardErrors.rpc.invalidParams("chainName is a required field");if(!s.nativeCurrency)throw u.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,null!==(r=s.rpcUrls)&&void 0!==r?r:[],null!==(n=s.blockExplorerUrls)&&void 0!==n?n:[],s.chainName,null!==(i=s.iconUrls)&&void 0!==i?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(t){let e=t[0];return await this.switchEthereumChain(parseInt(e.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){let e=Array.isArray(t)?t[0]:t;if(!e.type)throw u.standardErrors.rpc.invalidParams("Type is required");if((null==e?void 0:e.type)!=="ERC20")throw u.standardErrors.rpc.invalidParams(`Asset of type '${e.type}' is not supported`);if(!(null==e?void 0:e.options))throw u.standardErrors.rpc.invalidParams("Options are required");if(!(null==e?void 0:e.options.address))throw u.standardErrors.rpc.invalidParams("Address is required");let r=this.getChainId(),{address:n,symbol:i,image:s,decimals:o}=e.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(e.type,n,i,o,s,r)}}_eth_uninstallFilter(t){let e=(0,f.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(e)}async _eth_newFilter(t){let e=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(e)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(t){let e=(0,f.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(e)}_eth_getFilterLogs(t){let e=(0,f.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(e)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(t=>(t.setAccountsCallback((t,e)=>this._setAddresses(t,e)),t.setChainCallback((t,e)=>{this.updateProviderInfo(e,parseInt(t,10))}),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t))}}e.CoinbaseWalletProvider=_},65057:function(t,e,r){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0}),e.filterFromParam=e.FilterPolyfill=void 0;let n=r(30066),i=r(79154),s={jsonrpc:"2.0",id:0};class o{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,n.IntNumber)(1),this.provider=t}async newFilter(t){let e=c(t),r=this.makeFilterId(),n=await this.setInitialCursorPosition(r,e.fromBlock);return console.log(`Installing new log filter(${r}):`,e,"initial cursor position:",n),this.logFilters.set(r,e),this.setFilterTimeout(r),(0,i.hexStringFromIntNumber)(r)}async newBlockFilter(){let t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.blockFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){let t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}uninstallFilter(t){let e=(0,i.intNumberFromHexString)(t);return console.log(`Uninstalling filter (${e})`),this.deleteFilter(e),!0}getFilterChanges(t){let e=(0,i.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(h())}async getFilterLogs(t){let e=(0,i.intNumberFromHexString)(t),r=this.logFilters.get(e);return r?this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[u(r)]})):h()}makeFilterId(){return(0,n.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise((e,r)=>{this.provider.sendAsync(t,(t,n)=>t?r(t):Array.isArray(n)||null==n?r(Error(`unexpected response received: ${JSON.stringify(n)}`)):void e(n))})}deleteFilter(t){console.log(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){let e=this.logFilters.get(t),r=this.cursors.get(t);if(!r||!e)return h();let o=await this.getCurrentBlockHeight(),c="latest"===e.toBlock?o:e.toBlock;if(r>o||r>e.toBlock)return d();console.log(`Fetching logs from ${r} to ${c} for filter ${t}`);let a=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[u(Object.assign(Object.assign({},e),{fromBlock:r,toBlock:c}))]}));if(Array.isArray(a.result)){let e=Math.max(...a.result.map(t=>(0,i.intNumberFromHexString)(t.blockNumber||"0x0")));if(e&&e>r){let i=(0,n.IntNumber)(e+1);console.log(`Moving cursor position for filter (${t}) from ${r} to ${i}`),this.cursors.set(t,i)}}return a}async getBlockFilterChanges(t){let e=this.cursors.get(t);if(!e)return h();let r=await this.getCurrentBlockHeight();if(e>r)return d();console.log(`Fetching blocks from ${e} to ${r} for filter (${t})`);let o=(await Promise.all((0,i.range)(e,r+1).map(t=>this.getBlockHashByNumber((0,n.IntNumber)(t))))).filter(t=>!!t),c=(0,n.IntNumber)(e+o.length);return console.log(`Moving cursor position for filter (${t}) from ${e} to ${c}`),this.cursors.set(t,c),Object.assign(Object.assign({},s),{result:o})}async getPendingTransactionFilterChanges(t){return Promise.resolve(d())}async setInitialCursorPosition(t,e){let r=await this.getCurrentBlockHeight(),n="number"==typeof e&&e>r?e:r;return this.cursors.set(t,n),n}setFilterTimeout(t){let e=this.timeouts.get(t);e&&window.clearTimeout(e);let r=window.setTimeout(()=>{console.log(`Filter (${t}) timed out`),this.deleteFilter(t)},3e5);this.timeouts.set(t,r)}async getCurrentBlockHeight(){let{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(t))}async getBlockHashByNumber(t){let e=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(t),!1]}));return e.result&&"string"==typeof e.result.hash?(0,i.ensureHexString)(e.result.hash):null}}function c(t){return{fromBlock:a(t.fromBlock),toBlock:a(t.toBlock),addresses:void 0===t.address?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}function u(t){let e={fromBlock:l(t.fromBlock),toBlock:l(t.toBlock),topics:t.topics};return null!==t.addresses&&(e.address=t.addresses),e}function a(t){if(void 0===t||"latest"===t||"pending"===t)return"latest";if("earliest"===t)return(0,n.IntNumber)(0);if((0,i.isHexString)(t))return(0,i.intNumberFromHexString)(t);throw Error(`Invalid block option: ${String(t)}`)}function l(t){return"latest"===t?t:(0,i.hexStringFromIntNumber)(t)}function h(){return Object.assign(Object.assign({},s),{error:{code:-32e3,message:"filter not found"}})}function d(){return Object.assign(Object.assign({},s),{result:[]})}e.FilterPolyfill=o,e.filterFromParam=c},20011:function(t,e){"use strict";var r;
14Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCMethod=void 0,(r=e.JSONRPCMethod||(e.JSONRPCMethod={})).eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"},73819:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionManager=void 0;let n=r(15951),i=r(23617),s=()=>{};class o{constructor(t){let{events:e,middleware:r}=i({blockTracker:new n.PollingBlockTracker({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),provider:t});this.events=e,this.subscriptionMiddleware=r}async handleRequest(t){let e={};return await this.subscriptionMiddleware(t,e,s,s),e}destroy(){this.subscriptionMiddleware.destroy()}}e.SubscriptionManager=o},25238:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKUI=void 0;let n=r(93981),i=r(8549),s=r(75874);class o{constructor(t){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:t.darkMode}),this.linkFlow=new n.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,connected$:t.connected$,chainId$:t.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let 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,s.injectCssReset)()}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(t){}watchAsset(t){}switchEthereumChain(t){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(t){}signEthereumTransaction(t){}submitEthereumTransaction(t){}ethereumAddressFromSignedMessage(t){}showConnecting(t){let e;return e=t.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:t.onResetConnection}]}:{message:"Confirm on phone",appSrc:this.appSrc,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.9687
145C6.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)}setAppSrc(t){this.appSrc=t}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(t){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return null!==(t=this.standalone)&&void 0!==t&&t}}e.WalletSDKUI=o},82482:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.RelayMessageType=void 0,(r=e.RelayMessageType||(e.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"},61019:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Session=void 0;let n=r(42724),i=r(79154),s="session:id",o="session:secret",c="session:linked";class u{constructor(t,e,r,s){this._storage=t,this._id=e||(0,i.randomBytesHex)(16),this._secret=r||(0,i.randomBytesHex)(32),this._key=new n.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!s}static load(t){let e=t.getItem(s),r=t.getItem(c),n=t.getItem(o);return e&&n?new u(t,e,n,"1"===r):null}static hash(t){return new n.sha256().update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(o,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(c,this._linked?"1":"0")}}e.Session=u},44015:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelay=void 0;let u=c(r(74021)),a=r(40637),l=r(66793),h=r(28933),d=r(7818),f=r(99195),p=r(30066),b=r(79154),g=o(r(11293)),y=r(61019),m=r(23223),v=r(57014),_=r(82714),w=r(27600),E=r(93166),S=r(38574);class x extends m.WalletSDKRelayAbstract{constructor(t){var e;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new a.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new a.Subscription,this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;let{session:r,ui:n,connection:i}=this.subscribe();if(this._session=r,this.connection=i,this.relayEventManager=t.relayEventManager,t.diagnosticLogger&&t.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this.diagnostic={log:t.eventListener.onEvent}:this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=null===(e=t.reloadOnDisconnect)||void 0===e||e,this.ui=n}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(t=>{this.dappDefaultChain!==t&&(this.dappDefaultChain=t)}));let t=y.Session.load(this.storage)||new y.Session(this.storage).save(),e=new d.WalletSDKConnection(t.id,t.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(e.sessionConfig$.subscribe({next:t=>{this.onSessionConfigChanged(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ER
14ROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(e.incomingEvent$.pipe((0,l.filter)(t=>"Web3Response"===t.event)).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(e.linked$.pipe((0,l.skip)(1),(0,l.tap)(t=>{var e;this.isLinked=t;let r=this.storage.getItem(m.LOCAL_STORAGE_ADDRESSES_KEY);if(t&&(this.session.linked=t),this.isUnlinkedErrorState=!1,r){let n=r.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==n[0]&&!t&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;let t=this.getSessionIdHash();null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:t})}}})).subscribe()),this.subscriptions.add(e.sessionConfig$.pipe((0,l.filter)(t=>!!t.metadata&&"1"===t.metadata.__destroyed)).subscribe(()=>{var t;let r=e.isDestroyed;return null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:r,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(e.sessionConfig$.pipe((0,l.filter)(t=>t.metadata&&void 0!==t.metadata.WalletUsername)).pipe((0,l.mergeMap)(e=>g.decrypt(e.metadata.WalletUsername,t.secret))).subscribe({next:t=>{this.storage.setItem(m.WALLET_USER_NAME_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,l.filter)(t=>t.metadata&&void 0!==t.metadata.AppVersion)).pipe((0,l.mergeMap)(e=>g.decrypt(e.metadata.AppVersion,t.secret))).subscribe({next:t=>{this.storage.setItem(m.APP_VERSION_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,l.filter)(t=>t.metadata&&void 0!==t.metadata.ChainId&&void 0!==t.metadata.JsonRpcUrl)).pipe((0,l.mergeMap)(e=>(0,a.zip)(g.decrypt(e.metadata.ChainId,t.secret),g.decrypt(e.metadata.JsonRpcUrl,t.secret)))).pipe((0,l.distinctUntilChanged)()).subscribe({next:([t,e])=>{this.chainCallback&&this.chainCallback(t,e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,l.filter)(t=>t.metadata&&void 0!==t.metadata.EthereumAddress)).pipe((0,l.mergeMap)(e=>g.decrypt(e.metadata.EthereumAddress,t.secret))).subscribe({next:t=>{this.accountsCallback&&this.accountsCallback([t]),x.accountRequestCallbackIds.size>0&&(Array.from(x.accountRequestCallbackIds.values()).forEach(e=>{let r=(0,S.Web3ResponseMessage)({id:e,response:(0,E.RequestEthereumAccountsResponse)([t])});this.invokeCallback(Object.assign(Object.assign({},r),{id:e}))}),x.accountRequestCallbackIds.clear())},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,l.filter)(t=>t.metadata&&void 0!==t.metadata.AppSrc)).pipe((0,l.mergeMap)(e=>g.decrypt(e.metadata.AppSrc,t.secret))).subscribe({next:t=>{this.ui.setAppSrc(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let r=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:t,connected$:e.connected$,chainId$:this.dappDefaultChainSubject});return e.connect(),{session:t,ui:r,connection:e}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,l.timeout)(1e3),(0,l.catchError)(t=>(0,a.of)(null))).subscribe(t=>{var e,r,n;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(t){null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=y.Session.load(this.storage);if((null==s?void 0:s.id)===this._session.id?this.storage.clear():s&&(null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:y.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new a.Subscription;let{session:o,ui:c,connection:u}=this.subscribe();this._session=o,this.connection=u,this.ui=c,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${t}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(t,e){this.appName=t,this.appLogoUrl=e}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,e){this.storage.setItem(t,e)}signEthereumMessage(t,e,r,n){return this.sendRequest({method:v.Web3Method.signEthereumMessage,params:{message:(0,b.hexStringFromBuffer)(t,!0),address:e,addPrefix:r,typedDataJson:n||null}})}ethereumAddressFromSignedMessage(t,e,r){return this.sendRequest({method:v.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,b.hexStringFromBuffer)(t,!0),signature:(0,b.hexStringFromBuffer)(e,!0),addPrefix:r}})}signEthereumTransaction(t){return this.sendRequest({method:v.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,b.bigIntStringFromBN)(t.weiValue),data:(0,b.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,b.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,b.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,b.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,b.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:v.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,b.bigIntStringFromBN)(t.weiValue),data:(0,b.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,b.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,b.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,b.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,b.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,e){return this.sendRequest({method:v.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,b.hexStringFromBuffer)(t,!0),chainId:e}})}scanQRCode(t){return this.sendRequest({method:v.Web3Method.scanQRCode,params:{regExp:t}})}getQRCodeUrl(){return(0,b.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,e){return this.sendRequest({method:v.Web3Method.generic,params:{action:e,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let e=null,r=(0,b.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,n),null==e||e()};return{promise:new Promise((i,s)=>{this.ui.isStandalone()||(e=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,t=>{if(null==e||e(),t.errorMessage)return s(Error(t.errorMessage));i(t)}),this.ui.isStandalone()?this.sendRequestStandalone(r,t):this.publishWeb3RequestEvent(r,t)}),cancel:n}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChainSubject.next(t)}publishWeb3RequestEvent(t,e){var r;let n=(0,w.Web3RequestMessage)({id:t,request:e}),i=y.Session.load(this.storage);null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.WEB3_REQUEST,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?y.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",n,!0).subscribe({next:t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?y.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:n.id,response:{method:n.request.method,errorMessage:t.message}}))}}))}publishWeb3RequestCanceledEvent(t){let e=(0,_.Web3RequestCanceledMessage)(t);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",e,!1).subscribe())}publishEvent(t,e,r){let n=this.session.secret;return new a.Observable(t=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{origin:location.origin})),n).then(e=>{t.next(e),t.complete()})}).pipe((0,l.mergeMap)(e=>this.connection.publishEvent(t,e,r)))}handleIncomingEvent(t){try{this.subscriptions.add((0,a.from)(g.decrypt(t.data,this.session.secret)).pipe((0,l.map)(t=>JSON.parse(t))).subscribe({next:t=>{let e=(0,S.isWeb3ResponseMessage)(t)?t:null;e&&this.handleWeb3ResponseMessage(e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ER
14ROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(t){return}}handleWeb3ResponseMessage(t){var e;let{response:r}=t;if(null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),(0,E.isRequestEthereumAccountsResponse)(r)){x.accountRequestCallbackIds.forEach(e=>this.invokeCallback(Object.assign(Object.assign({},t),{id:e}))),x.accountRequestCallbackIds.clear();return}this.invokeCallback(t)}handleErrorResponse(t,e,r,n){var i;let s=null!==(i=null==r?void 0:r.message)&&void 0!==i?i:(0,f.standardErrorMessage)(n);this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:t,response:{method:e,errorMessage:s,errorCode:n}}))}invokeCallback(t){let e=this.relayEventManager.callbacks.get(t.id);e&&(e(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){let t={method:v.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},e=(0,b.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(e),this.handleErrorResponse(e,t.method,r)};return{promise:new Promise((n,i)=>{var s;this.relayEventManager.callbacks.set(e,t=>{if(this.ui.hideRequestEthereumAccounts(),t.errorMessage)return i(Error(t.errorMessage));n(t)});let o=(null===(s=null==window?void 0:window.navigator)||void 0===s?void 0:s.userAgent)||null;if(o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o)){let t;try{t=(0,b.isInIFrame)()&&window.top?window.top.location:window.location}catch(e){t=window.location}t.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(t.href)}`;return}if(this.ui.inlineAccountsResponse())this.ui.requestEthereumAccounts({onCancel:r,onAccounts:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:e,response:(0,E.RequestEthereumAccountsResponse)(t)}))}});else{let t=f.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>r(t)})}x.accountRequestCallbackIds.add(e),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(e,t)}),cancel:r}}selectProvider(t){let e={method:v.Web3Method.selectProvider,params:{providerOptions:t}},r=(0,b.randomBytesHex)(8);return{cancel:t=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,t)},promise:new Promise((e,n)=>{this.relayEventManager.callbacks.set(r,t=>{if(t.errorMessage)return n(Error(t.errorMessage));e(t)}),this.ui.selectProvider&&this.ui.selectProvider({onApprove:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:r,response:(0,E.SelectProviderResponse)(t)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:r,response:(0,E.SelectProviderResponse)(p.ProviderType.Unselected)}))},providerOptions:t})})}}watchAsset(t,e,r,n,i,s){let o={method:v.Web3Method.watchAsset,params:{type:t,options:{address:e,symbol:r,decimals:n,image:i},chainId:s}},c=null,u=(0,b.randomBytesHex)(8),a=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,t),null==c||c()};return this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),{cancel:a,promise:new Promise((a,l)=>{this.relayEventManager.callbacks.set(u,t=>{if(null==c||c(),t.errorMessage)return l(Error(t.errorMessage));a(t)}),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:u,response:(0,E.WatchAssetReponse)(!0)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:u,response:(0,E.WatchAssetReponse)(!1)}))},type:t,address:e,symbol:r,decimals:n,image:i,chainId:s}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,o)})}}addEthereumChain(t,e,r,n,i,s){let o={method:v.Web3Method.addEthereumChain,params:{chainId:t,rpcUrls:e,blockExplorerUrls:n,chainName:i,iconUrls:r,nativeCurrency:s}},c=null,u=(0,b.randomBytesHex)(8),a=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,t),null==c||c()};return this.ui.inlineAddEthereumChain(t)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),{promise:new Promise((e,r)=>{this.relayEventManager.callbacks.set(u,t=>{if(null==c||c(),t.errorMessage)return r(Error(t.errorMessage));e(t)}),this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:u,response:(0,E.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:u,response:(0,E.AddEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),this.ui.inlineAddEthereumChain(t)||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,o)}),cancel:a}}switchEthereumChain(t,e){let r={method:v.Web3Method.switchEthereumChain,params:Object.assign({chainId:t},{address:e})},n=(0,b.randomBytesHex)(8);return{promise:new Promise((e,i)=>{this.relayEventManager.callbacks.set(n,t=>(0,E.isErrorResponse)(t)&&t.errorCode?i(f.standardErrors.provider.custom({code:t.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):t.errorMessage?i(Error(t.errorMessage)):void e(t)),this.ui.switchEthereumChain({onCancel:e=>{var r;if(e){let i=null!==(r=(0,f.getErrorCode)(e))&&void 0!==r?r:f.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(n,v.Web3Method.switchEthereumChain,e instanceof Error?e:f.standardErrors.provider.unsupportedChain(t),i)}else this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:n,response:(0,E.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:n,response:(0,E.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:r.params.chainId,address:r.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(n,r)}),cancel:t=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,t)}}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return y.Session.hash(this._session.id)}sendRequestStandalone(t,e){let r=r=>{this.handleErrorResponse(t,e.method,r)},n=e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:t,response:e}))};switch(e.method){case v.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:e,onSuccess:n,onCancel:r});break;case v.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case v.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:e,onSuccess:n,onCancel:r});break;case v.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:e,onSuccess:n});break;default:r()}}onSessionConfigChanged(t){}}x.accountRequestCallbackIds=new Set,s([u.default],x.prototype,"resetAndReload",null),s([u.default],x.prototype,"handleIncomingEvent",null),e.WalletSDKRelay=x},23223:function(t,e,r){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayAbstract=e.APP_VERSION_KEY=e.LOCAL_STORAGE_ADDRESSES_KEY=e.WALLET_USER_NAME_KEY=void 0;let n=r(99195);e.WALLET_USER_NAME_KEY="walletUsername",e.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",e.APP_VERSION_KEY="AppVersion";class i{async makeEthereumJSONRPCRequest(t,e){if(!e)throw Error("Error: No jsonRpcUrl provided");return window.fetch(e,{method:"POST",body:JSON.stringify(t),mode:"cors",headers:{"Content-Type":"application/json"}}).then(t=>t.json()).then(e=>{if(!e)throw n.standardErrors.rpc.parse({});let{error:r}=e;if(r)throw(0,n.serializeError)(r,t.method);return e})}}e.WalletSDKRelayAbstract=i},54822:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayEventManager=void 0;let n=r(79154);class i{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let t=this._nextRequestId,e=(0,n.prepend0x)(t.toString(16));return this.callbacks.get(e)&&this.callbacks.delete(e),t}}e.WalletSDKRelayEventManager=i},57014:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Method=void 0,(r=e.Web3Method||(e.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"},82714:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestCanceledMessage=void 0;let n=r(82482);e.Web3RequestCanceledMessage=function(t){return{type:n.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}},27600:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestMessage=void 0;let n=r(82482);e.Web3RequestMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_REQUEST},t)}},93166:function(t,e,r){"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.isErrorResponse=void 0;let n=r(57014);e.isErrorResponse=function(t){return(null==t?void 0:t.method)!==void 0&&(null==t?void 0:t.errorMessage)!==void 0},e.AddEthereumChainResponse=function(t){return{method:n.Web3Method.addEthereumChain,result:t}},e.SwitchEthereumChainResponse=function(t){return{method:n.Web3Method.switchEthereumChain,result:t}},e.RequestEthereumAccountsResponse=function(t){return{method:n.Web3Method.requestEthereumAccounts,result:t}},e.WatchAssetReponse=function(t){return{method:n.Web3Method.watchAsset,result:t}},e.SelectProviderResponse=function(t){return{method:n.Web3Method.selectProvider,result:t}},e.isRequestEthereumAccountsResponse=function(t){return t&&t.method===n.Web3Method.requestEthereumAccounts},e.SignEthereumMessageResponse=function(t){return{method:n.Web3Method.signEthereumMessage,result:t}},e.SignEthereumTransactionResponse=function(t){return{method:n.Web3Method.signEthereumTransaction,result:t}},e.SubmitEthereumTransactionResponse=function(t){return{method:n.Web3Method.submitEthereumTransaction,result:t}},e.EthereumAddressFromSignedMessageResponse=function(t){return{method:n.Web3Method.ethereumAddressFromSignedMessage,result:t}}},38574:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWeb3ResponseMessage=e.Web3ResponseMessage=void 0;let n=r(82482);e.Web3ResponseMessage=function(t){return Object.assign({type:n.RelayMessageType.WEB3_RESPONSE},t)}
14,e.isWeb3ResponseMessage=function(t){return t&&t.type===n.RelayMessageType.WEB3_RESPONSE}},11293:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=void 0;let n=r(79154);async function i(t,e){if(64!==e.length)throw Error("secret must be 256 bits");let r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},i,s.encode(t)),c=o.slice(o.byteLength-16),u=o.slice(0,o.byteLength-16),a=new Uint8Array(c),l=new Uint8Array(u),h=new Uint8Array([...r,...a,...l]);return(0,n.uint8ArrayToHex)(h)}e.encrypt=i,e.decrypt=function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");return new Promise((r,i)=>{!async function(){let s=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,n.hexStringToUint8Array)(t),c=o.slice(0,12),u=o.slice(12,28),a=new Uint8Array([...o.slice(28),...u]),l={name:"AES-GCM",iv:new Uint8Array(c)};try{let t=await window.crypto.subtle.decrypt(l,s,a),e=new TextDecoder;r(e.decode(t))}catch(t){i(t)}}()})}},30066:function(t,e){"use strict";var r;function n(){return t=>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=n(),e.AddressString=n(),e.BigIntString=n(),e.IntNumber=function(t){return Math.floor(t)},e.RegExpString=n(),(r=e.ProviderType||(e.ProviderType={})).CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""},79154:function(t,e,r){"use strict";var n=r(9109).Buffer,i=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;let s=i(r(58171)),o=r(97334),c=r(99195),u=r(30066),a=/^[0-9]*$/,l=/^[a-f0-9]*$/;function h(t){return[...t].map(t=>t.toString(16).padStart(2,"0")).join("")}function d(t){return t.startsWith("0x")||t.startsWith("0X")}function f(t){return d(t)?t.slice(2):t}function p(t){return d(t)?"0x"+t.slice(2):"0x"+t}function b(t){if("string"!=typeof t)return!1;let e=f(t).toLowerCase();return l.test(e)}function g(t,e=!1){if("string"==typeof t){let r=f(t).toLowerCase();if(l.test(r))return(0,u.HexString)(e?"0x"+r:r)}throw c.standardErrors.rpc.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function y(t,e=!1){let r=g(t,!1);return r.length%2==1&&(r=(0,u.HexString)("0"+r)),e?(0,u.HexString)("0x"+r):r}function m(t){if("number"==typeof t&&Number.isInteger(t))return(0,u.IntNumber)(t);if("string"==typeof t){if(a.test(t))return(0,u.IntNumber)(Number(t));if(b(t))return(0,u.IntNumber)(new s.default(y(t,!1),16).toNumber())}throw c.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)}function v(t){if(null==t||"function"!=typeof t.constructor)return!1;let{constructor:e}=t;return"function"==typeof e.config&&"number"==typeof e.EUCLID}e.randomBytesHex=function(t){return h(crypto.getRandomValues(new Uint8Array(t)))},e.uint8ArrayToHex=h,e.hexStringToUint8Array=function(t){return new Uint8Array(t.match(/.{1,2}/g).map(t=>parseInt(t,16)))},e.hexStringFromBuffer=function(t,e=!1){let r=t.toString("hex");return(0,u.HexString)(e?"0x"+r:r)},e.bigIntStringFromBN=function(t){return(0,u.BigIntString)(t.toString(10))},e.intNumberFromHexString=function(t){return(0,u.IntNumber)(new s.default(y(t,!1),16).toNumber())},e.hexStringFromIntNumber=function(t){return(0,u.HexString)("0x"+new s.default(t).toString(16))},e.has0xPrefix=d,e.strip0x=f,e.prepend0x=p,e.isHexString=b,e.ensureHexString=g,e.ensureEvenLengthHexString=y,e.ensureAddressString=function(t){if("string"==typeof t){let e=f(t).toLowerCase();if(b(e)&&40===e.length)return(0,u.AddressString)(p(e))}throw c.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(t)}`)},e.ensureBuffer=function(t){if(n.isBuffer(t))return t;if("string"==typeof t){if(!b(t))return n.from(t,"utf8");{let e=y(t,!1);return n.from(e,"hex")}}throw c.standardErrors.rpc.invalidParams(`Not binary data: ${String(t)}`)},e.ensureIntNumber=m,e.ensureRegExpString=function(t){if(t instanceof RegExp)return(0,u.RegExpString)(t.toString());throw c.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(t)}`)},e.ensureBN=function(t){if(null!==t&&(s.default.isBN(t)||v(t)))return new s.default(t.toString(10),10);if("number"==typeof t)return new s.default(m(t));if("string"==typeof t){if(a.test(t))return new s.default(t,10);if(b(t))return new s.default(y(t,!1),16)}throw c.standardErrors.rpc.invalidParams(`Not an integer: ${String(t)}`)},e.ensureParsedJSONObject=function(t){if("string"==typeof t)return JSON.parse(t);if("object"==typeof t)return t;throw c.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(t)}`)}
14,e.isBigNumber=v,e.range=function(t,e){return Array.from({length:e-t},(e,r)=>t+r)},e.getFavicon=function(){let t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:r}=document.location,n=t?t.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${r}${n}`},e.createQrUrl=function(t,e,r,n,i,s){let c=(0,o.stringify)({[n?"parent-id":"id"]:t,secret:e,server:r,v:i,chainId:s});return`${r}/#/link?${c}`},e.isInIFrame=function(){try{return null!==window.frameElement}catch(t){return!1}}},86105:function(t,e,r){var n=r(9109).Buffer;let i=r(77114),s=r(58171);function o(t){if(t.startsWith("int["))return"int256"+t.slice(3);if("int"===t)return"int256";if(t.startsWith("uint["))return"uint256"+t.slice(4);if("uint"===t)return"uint256";if(t.startsWith("fixed["))return"fixed128x128"+t.slice(5);if("fixed"===t)return"fixed128x128";if(t.startsWith("ufixed["))return"ufixed128x128"+t.slice(6);else if("ufixed"===t)return"ufixed128x128";return t}function c(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function u(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function a(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function l(t){var e=typeof t;if("string"===e)return i.isHexString(t)?new s(i.stripHexPrefix(t),16):new s(t,10);if("number"===e)return new s(t);if(t.toArray)return t;throw Error("Argument is not a number")}function h(t,e){if("address"===t)return h("uint160",l(e));if("bool"===t)return h("uint8",e?1:0);if("string"===t)return h("bytes",new n(e,"utf8"));if((p=t).lastIndexOf("]")===p.length-1){if(void 0===e.length)throw Error("Not an array?");if("dynamic"!==(r=a(t))&&0!==r&&e.length>r)throw Error("Elements exceed array size: "+r);for(f in d=[],t=t.slice(0,t.lastIndexOf("[")),"string"==typeof e&&(e=JSON.parse(e)),e)d.push(h(t,e[f]));if("dynamic"===r){var r,o,d,f,p,b=h("uint256",e.length);d.unshift(b)}return n.concat(d)}if("bytes"===t)return e=new n(e),d=n.concat([h("uint256",e.length),e]),e.length%32!=0&&(d=n.concat([d,i.zeros(32-e.length%32)])),d;if(t.startsWith("bytes")){if((r=c(t))<1||r>32)throw Error("Invalid bytes<N> width: "+r);return i.setLengthRight(e,32)}else if(t.startsWith("uint")){if((r=c(t))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);if((o=l(e)).bitLength()>r)throw Error("Supplied uint exceeds width: "+r+" vs "+o.bitLength());if(o<0)throw Error("Supplied uint is negative");return o.toArrayLike(n,"be",32)}else if(t.startsWith("int")){if((r=c(t))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);if((o=l(e)).bitLength()>r)throw Error("Supplied int exceeds width: "+r+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(n,"be",32)}else if(t.startsWith("ufixed")){if(r=u(t),(o=l(e))<0)throw Error("Supplied ufixed is negative");return h("uint256",o.mul(new s(2).pow(new s(r[1]))))}else if(t.startsWith("fixed"))return r=u(t),h("int256",l(e).mul(new s(2).pow(new s(r[1]))));throw Error("Unsupported or invalid type: "+t)}function d(t,e){if(t.length!==e.length)throw Error("Number of types are not matching the values");for(var r,s,u=[],a=0;a<t.length;a++){var h=o(t[a]),d=e[a];if("bytes"===h)u.push(d);else if("string"===h)u.push(new n(d,"utf8"));else if("bool"===h)u.push(new n(d?"01":"00","hex"));else if("address"===h)u.push(i.setLength(d,20));else if(h.startsWith("bytes")){if((r=c(h))<1||r>32)throw Error("Invalid bytes<N> width: "+r);u.push(i.setLengthRight(d,r))}else if(h.startsWith("uint")){if((r=c(h))%8||r<8||r>256)throw Error("Invalid uint<N> width: "+r);if((s=l(d)).bitLength()>r)throw Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());u.push(s.toArrayLike(n,"be",r/8))}else if(h.startsWith("int")){if((r=c(h))%8||r<8||r>256)throw Error("Invalid int<N> width: "+r);if((s=l(d)).bitLength()>r)throw Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());u.push(s.toTwos(r).toArrayLike(n,"be",r/8))}else throw Error("Unsupported or invalid type: "+h)}return n.concat(u)}t.exports={rawEncode:function(t,e){var r=[],i=[],s=32*t.length;for(var c in t){var u=o(t[c]),l=h(u,e[c]);"string"===u||"bytes"===u||"dynamic"===a(u)?(r.push(h("uint256",s)),i.push(l),s+=l.length):r.push(l)}return n.concat(r.concat(i))},solidityPack:d,soliditySHA3:function(t,e){return i.keccak(d(t,e))}}},80745:function(t,e,r){var n=r(9109).Buffer;let i=r(77114),s=r(86105),o={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(t,e,r,o=!0){let c=["bytes32"],u=[this.hashType(t,r)];if(o){let a=(t,e,c)=>{if(void 0!==r[e])return["bytes32",null==c?"0x0000000000000000000000000000000000000000000000000000000000000000":i.keccak(this.encodeData(e,c,r,o))];if(void 0===c)throw Error(`missing value for field ${t} of type ${e}`);if("bytes"===e)return["bytes32",i.keccak(c)];if("string"===e)return"string"==typeof c&&(c=n.from(c,"utf8")),["bytes32",i.keccak(c)];if(e.lastIndexOf("]")===e.length-1){let r=e.slice(0,e.lastIndexOf("[")),n=c.map(e=>a(t,r,e));return["bytes32",i.keccak(s.rawEncode(n.map(([t])=>t),n.map(([,t])=>t)))]}return[e,c]};for(let n of r[t]){let[t,r]=a(n.name,n.type,e[n.name]);c.push(t),u.push(r)}}else for(let s of r[t]){let t=e[s.name];
14if(void 0!==t){if("bytes"===s.type)c.push("bytes32"),t=i.keccak(t),u.push(t);else if("string"===s.type)c.push("bytes32"),"string"==typeof t&&(t=n.from(t,"utf8")),t=i.keccak(t),u.push(t);else if(void 0!==r[s.type])c.push("bytes32"),t=i.keccak(this.encodeData(s.type,t,r,o)),u.push(t);else if(s.type.lastIndexOf("]")===s.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else c.push(s.type),u.push(t)}}return s.rawEncode(c,u)},encodeType(t,e){let r="",n=this.findTypeDependencies(t,e).filter(e=>e!==t);for(let i of n=[t].concat(n.sort())){if(!e[i])throw Error("No type definition specified: "+i);r+=i+"("+e[i].map(({name:t,type:e})=>e+" "+t).join(",")+")"}return r},findTypeDependencies(t,e,r=[]){if(t=t.match(/^\w*/)[0],r.includes(t)||void 0===e[t])return r;for(let n of(r.push(t),e[t]))for(let t of this.findTypeDependencies(n.type,e,r))r.includes(t)||r.push(t);return r},hashStruct(t,e,r,n=!0){return i.keccak(this.encodeData(t,e,r,n))},hashType(t,e){return i.keccak(this.encodeType(t,e))},sanitizeData(t){let e={};for(let r in o.properties)t[r]&&(e[r]=t[r]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,e=!0){let r=this.sanitizeData(t),s=[n.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",r.domain,r.types,e)),"EIP712Domain"!==r.primaryType&&s.push(this.hashStruct(r.primaryType,r.message,r.types,e)),i.keccak(n.concat(s))}};t.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:c,hashForSignTypedDataLegacy:function(t){return function(t){let e=Error("Expect argument to be non-empty array");if("object"!=typeof t||!t.length)throw e;let r=t.map(function(t){return"bytes"===t.type?i.toBuffer(t.value):t.value}),n=t.map(function(t){return t.type}),o=t.map(function(t){if(!t.name)throw e;return t.type+" "+t.name});return s.soliditySHA3(["bytes32","bytes32"],[s.soliditySHA3(Array(t.length).fill("string"),o),s.soliditySHA3(n,r)])}(t.data)},hashForSignTypedData_v3:function(t){return c.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return c.hash(t.data)}}},77114:function(t,e,r){var n=r(9109).Buffer;let i=r(6230),s=r(58171);function o(t){return n.allocUnsafe(t).fill(0)}function c(t,e,r){let n=o(e);return(t=u(t),r)?t.length<e?(t.copy(n),n):t.slice(0,e):t.length<e?(t.copy(n,e-t.length),n):t.slice(-e)}function u(t){if(!n.isBuffer(t)){if(Array.isArray(t))t=n.from(t);else if("string"==typeof t){var e;t=a(t)?n.from((e=l(t)).length%2?"0"+e:e,"hex"):n.from(t)}else if("number"==typeof t)t=intToBuffer(t);else if(null==t)t=n.allocUnsafe(0);else if(s.isBN(t))t=t.toArrayLike(n);else if(t.toArray)t=n.from(t.toArray());else throw Error("invalid type")}return t}function a(t){return"string"==typeof t&&t.match(/^0x[0-9A-Fa-f]*$/)}function l(t){return"string"==typeof t&&t.startsWith("0x")?t.slice(2):t}t.exports={zeros:o,setLength:c,setLengthRight:function(t,e){return c(t,e,!0)},isHexString:a,stripHexPrefix:l,toBuffer:u,bufferToHex:function(t){return"0x"+(t=u(t)).toString("hex")},keccak:function(t,e){return t=u(t),e||(e=256),i("keccak"+e).update(t).digest()}}},53082:function(t){function e(t){this.mode=n.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e<r;e++){var i=[],s=this.data.charCodeAt(e);s>65536?(i[0]=240|(1835008&s)>>>18,i[1]=128|(258048&s)>>>12,i[2]=128|(4032&s)>>>6,i[3]=128|63&s):s>2048?(i[0]=224|(61440&s)>>>12,i[1]=128|(4032&s)>>>6,i[2]=128|63&s):s>128?(i[0]=192|(1984&s)>>>6,i[1]=128|63&s):i[0]=s,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 r(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,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}},r.prototype={addData:function(t){var r=new e(t);this.dataList.push(r),this.dataCache=null},isDark:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw 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=Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][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=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1)&&!(this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?this.modules[t+r][e+n]=!0:this.modules[t+r][e+n]=!1)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=o.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r);this.make();for(var i=0;i<this.modules.length;i++)for(var s=1*i,o=0;o<this.modules[i].length;o++){var c=1*o;this.modules[i][o]&&(n.beginFill(0,100),n.moveTo(c,s),n.lineTo(c+1,s),n.lineTo(c+1,s+1),n.lineTo(c,s+1),n.endFill())}return n},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=o.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],i=t[r];
14if(null==this.modules[n][i])for(var s=-2;s<=2;s++)for(var c=-2;c<=2;c++)-2==s||2==s||-2==c||2==c||0==s&&0==c?this.modules[n+s][i+c]=!0:this.modules[n+s][i+c]=!1}},setupTypeNumber:function(t){for(var e=o.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(var r=0;r<18;r++){var n=!t&&(e>>r&1)==1;this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=o.getBCHTypeInfo(r),i=0;i<15;i++){var s=!t&&(n>>i&1)==1;i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s}for(var i=0;i<15;i++){var s=!t&&(n>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,s=0,c=this.moduleCount-1;c>0;c-=2)for(6==c&&c--;;){for(var u=0;u<2;u++)if(null==this.modules[n][c-u]){var a=!1;s<t.length&&(a=(t[s]>>>i&1)==1),o.getMask(e,n,c-u)&&(a=!a),this.modules[n][c-u]=a,-1==--i&&(s++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var i=l.getRSBlocks(t,e),s=new h,c=0;c<n.length;c++){var u=n[c];s.put(u.mode,4),s.put(u.getLength(),o.getLengthInBits(u.mode,t)),u.write(s)}for(var a=0,c=0;c<i.length;c++)a+=i[c].dataCount;if(s.getLengthInBits()>8*a)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*a+")");for(s.getLengthInBits()+4<=8*a&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*a)&&(s.put(r.PAD0,8),!(s.getLengthInBits()>=8*a));)s.put(r.PAD1,8);return r.createBytes(s,i)},r.createBytes=function(t,e){for(var r=0,n=0,i=0,s=Array(e.length),c=Array(e.length),u=0;u<e.length;u++){var l=e[u].dataCount,h=e[u].totalCount-l;n=Math.max(n,l),i=Math.max(i,h),s[u]=Array(l);for(var d=0;d<s[u].length;d++)s[u][d]=255&t.buffer[d+r];r+=l;var f=o.getErrorCorrectPolynomial(h),p=new a(s[u],f.getLength()-1).mod(f);c[u]=Array(f.getLength()-1);for(var d=0;d<c[u].length;d++){var b=d+p.getLength()-c[u].length;c[u][d]=b>=0?p.get(b):0}}for(var g=0,d=0;d<e.length;d++)g+=e[d].totalCount;for(var y=Array(g),m=0,d=0;d<n;d++)for(var u=0;u<e.length;u++)d<s[u].length&&(y[m++]=s[u][d]);for(var d=0;d<i;d++)for(var u=0;u<e.length;u++)d<c[u].length&&(y[m++]=c[u][d]);return y};for(var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},s={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={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;o.getBCHDigit(e)-o.getBCHDigit(o.G15)>=0;)e^=o.G15<<o.getBCHDigit(e)-o.getBCHDigit(o.G15);return(t<<10|e)^o.G15_MASK},getBCHTypeNumber:function(t){for(var e=t<<12;o.getBCHDigit(e)-o.getBCHDigit(o.G18)>=0;)e^=o.G18<<o.getBCHDigit(e)-o.getBCHDigit(o.G18);return t<<12|e},getBCHDigit:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e},getPatternPosition:function(t){return o.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case s.PATTERN000:return(e+r)%2==0;case s.PATTERN001:return e%2==0;case s.PATTERN010:return r%3==0;case s.PATTERN011:return(e+r)%3==0;case s.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case s.PATTERN101:return e*r%2+e*r%3==0;case s.PATTERN110:return(e*r%2+e*r%3)%2==0;case s.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new a([1],0),r=0;r<t;r++)e=e.multiply(new a([1,c.gexp(r)],0));return e},getLengthInBits:function(t,e){if(1<=e&&e<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;
14case n.MODE_8BIT_BYTE:case n.MODE_KANJI:return 8;default:throw Error("mode:"+t)}else if(e<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw Error("mode:"+t)}else if(e<41)switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw Error("mode:"+t)}else throw Error("type:"+e)},getLostPoint:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var i=0;i<e;i++){for(var s=0,o=t.isDark(n,i),c=-1;c<=1;c++)if(!(n+c<0)&&!(e<=n+c))for(var u=-1;u<=1;u++)!(i+u<0)&&!(e<=i+u)&&(0!=c||0!=u)&&o==t.isDark(n+c,i+u)&&s++;s>5&&(r+=3+s-5)}for(var n=0;n<e-1;n++)for(var i=0;i<e-1;i++){var a=0;t.isDark(n,i)&&a++,t.isDark(n+1,i)&&a++,t.isDark(n,i+1)&&a++,t.isDark(n+1,i+1)&&a++,(0==a||4==a)&&(r+=3)}for(var n=0;n<e;n++)for(var i=0;i<e-6;i++)t.isDark(n,i)&&!t.isDark(n,i+1)&&t.isDark(n,i+2)&&t.isDark(n,i+3)&&t.isDark(n,i+4)&&!t.isDark(n,i+5)&&t.isDark(n,i+6)&&(r+=40);for(var i=0;i<e;i++)for(var n=0;n<e-6;n++)t.isDark(n,i)&&!t.isDark(n+1,i)&&t.isDark(n+2,i)&&t.isDark(n+3,i)&&t.isDark(n+4,i)&&!t.isDark(n+5,i)&&t.isDark(n+6,i)&&(r+=40);for(var l=0,i=0;i<e;i++)for(var n=0;n<e;n++)t.isDark(n,i)&&l++;return r+Math.abs(100*l/e/e-50)/5*10}},c={glog:function(t){if(t<1)throw Error("glog("+t+")");return c.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return c.EXP_TABLE[t]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},u=0;u<8;u++)c.EXP_TABLE[u]=1<<u;for(var u=8;u<256;u++)c.EXP_TABLE[u]=c.EXP_TABLE[u-4]^c.EXP_TABLE[u-5]^c.EXP_TABLE[u-6]^c.EXP_TABLE[u-8];for(var u=0;u<255;u++)c.LOG_TABLE[c.EXP_TABLE[u]]=u;function a(t,e){if(void 0==t.length)throw Error(t.length+"/"+e);for(var r=0;r<t.length&&0==t[r];)r++;this.num=Array(t.length-r+e);for(var n=0;n<t.length-r;n++)this.num[n]=t[n+r]}function l(t,e){this.totalCount=t,this.dataCount=e}function h(){this.buffer=[],this.length=0}a.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<t.getLength();n++)e[r+n]^=c.gexp(c.glog(this.get(r))+c.glog(t.get(n)));return new a(e,0)},mod:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=c.glog(this.get(0))-c.glog(t.get(0)),r=Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(var n=0;n<t.getLength();n++)r[n]^=c.gexp(c.glog(t.get(n))+e);return new a(r,0).mod(t)}},l.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]],l.getRSBlocks=function(t,e){var r=l.getRsBlockTable(t,e);if(void 0==r)throw Error("bad rs block @ typeNumber:"+t+"/errorCorrectLevel:"+e);for(var n=r.length/3,i=[],s=0;s<n;s++)for(var o=r[3*s+0],c=r[3*s+1],u=r[3*s+2],a=0;a<o;a++)i.push(new l(c,u));return i},l.getRsBlockTable=function(t,e){switch(e){case i.L:return l.RS_BLOCK_TABLE[(t-1)*4+0];case i.M:return l.RS_BLOCK_TABLE[(t-1)*4+1];case i.Q:return l.RS_BLOCK_TABLE[(t-1)*4+2];case i.H:return l.RS_BLOCK_TABLE[(t-1)*4+3];default:return}},h.prototype={get:function(t){return(this.buffer[Math.floor(t/8)]>>>7-t%8&1)==1},put:function(t,e){for(var r=0;r<e;r++)this.putBit((t>>>e-r-1&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 d=[[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,8
146,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function f(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 Error("Expected 'content' as string!");if(0===this.options.content.length)throw Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,s=function(t,e){for(var r,n=(r=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(r.length!=t?3:0),i=1,s=0,o=0,c=d.length;o<=c;o++){var u=d[o];if(!u)throw Error("Content too long: expected "+s+" but got "+n);switch(e){case"L":s=u[0];break;case"M":s=u[1];break;case"Q":s=u[2];break;case"H":s=u[3];break;default:throw Error("Unknwon error correction level: "+e)}if(n<=s)break;i++}if(i>d.length)throw Error("Content too long");return i}(n,this.options.ecl),o=function(t){switch(t){case"L":return i.L;case"M":return i.M;case"Q":return i.Q;case"H":return i.H;default:throw Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new r(s,o),this.qrcode.addData(n),this.qrcode.make()}f.prototype.svg=function(t){var e=this.options||{},r=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var n=void 0===e.pretty||!!e.pretty,i=n?" ":"",s=n?"\r\n":"",o=e.width,c=e.height,u=r.length,a=o/(u+2*e.padding),l=c/(u+2*e.padding),h=void 0!==e.join&&!!e.join,d=void 0!==e.swap&&!!e.swap,f=void 0===e.xmlDeclaration||!!e.xmlDeclaration,p=void 0!==e.predefined&&!!e.predefined,b=p?i+'<defs><path id="qrmodule" d="M0 0 h'+l+" v"+a+' H0 z" style="fill:'+e.color+';shape-rendering:crispEdges;" /></defs>'+s:"",g=i+'<rect x="0" y="0" width="'+o+'" height="'+c+'" style="fill:'+e.background+';shape-rendering:crispEdges;"/>'+s,y="",m="",v=0;v<u;v++)for(var _=0;_<u;_++)if(r[_][v]){var w=_*a+e.padding*a,E=v*l+e.padding*l;if(d){var S=w;w=E,E=S}if(h){var x=a+w,k=l+E;w=Number.isInteger(w)?Number(w):w.toFixed(2),E=Number.isInteger(E)?Number(E):E.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),m+="M"+w+","+E+" V"+(k=Number.isInteger(k)?Number(k):k.toFixed(2))+" H"+x+" V"+E+" H"+w+" Z "}else p?y+=i+'<use x="'+w.toString()+'" y="'+E.toString()+'" href="#qrmodule" />'+s:y+=i+'<rect x="'+w.toString()+'" y="'+E.toString()+'" width="'+a+'" height="'+l+'" style="fill:'+e.color+';shape-rendering:crispEdges;"/>'+s}h&&(y=i+'<path x="0" y="0" style="fill:'+e.color+';shape-rendering:crispEdges;" d="'+m+'" />');let I="";if(void 0!==this.options.image&&this.options.image.svg){let t=o*this.options.image.width/100,e=c*this.options.image.height/100;I+=`<svg x="${o/2-t/2}" y="${c/2-e/2}" width="${t}" height="${e}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`+(this.options.image.svg+s)+"</svg>"}var C="";switch(t.container){case"svg":f&&(C+='<?xml version="1.0" standalone="yes"?>'+s),C+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+o+'" height="'+c+'">'+s+(b+g+y)+I+"</svg>";break;case"svg-viewbox":f&&(C+='<?xml version="1.0" standalone="yes"?>'+s),C+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+o+" "+c+'">'+s+(b+g+y)+I+"</svg>";break;case"g":C+='<g width="'+o+'" height="'+c+'">'+s+(b+g+y)+I+"</g>";break;default:C+=(b+g+y+I).replace(/^\s+/,"")}return C},t.exports=f},54750:function(t,e){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0}),e.LIB_VERSION=void 0,e.LIB_VERSION="3.7.2"},25796:function(t,e,r){"use strict";function n(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=function t(e){var r,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(n=t(e[r]))&&(i&&(i+=" "),i+=n);else for(r in e)e[r]&&(i&&(i+=" "),i+=r)}return i}(t))&&(n&&(n+=" "),n+=e);return n}r.r(e),r.d(e,{clsx:function(){return n}}),e.default=n},82903:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;let n=r(98794);class i extends Error{constructor(t,e,r){if(!Number.isInteger(t))throw Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==r&&(this.data=r)}serialize(){let t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return n.default(this.serialize(),o,2)}}e.EthereumRpcError=i;class s extends i{constructor(t,e,r){if(!(Number.isInteger(t)&&t>=1e3&&t<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,r)}}function o(t,e){if("[Circular]"!==e)return e}e.EthereumProviderError=s},45284: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."}}},2394:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;let n=r(82903),i=r(7294),s=r(45284);function o(t,e){let[r,s]=u(e);return new n.EthereumRpcError(t,r||i.getMessageFromCode(t),s)}function c(t,e){let[r,s]=u(e);return new n.EthereumProviderError(t,r||i.getMessageFromCode(t),s)}function u(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){let{message:e,data:r}=t;if(e&&"string"!=typeof e)throw Error("Must specify string message.");return[e||void 0,r]}}return[]}e.ethErrors={rpc:{parse:t=>o(s.errorCodes.rpc.parse,t),invalidRequest:t=>o(s.errorCodes.rpc.invalidRequest,t),invalidParams:t=>o(s.errorCodes.rpc.invalidParams,t),methodNotFound:t=>o(s.errorCodes.rpc.methodNotFound,t),internal:t=>o(s.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw Error('"code" must be an integer such that: -32099 <= code
14<= -32005');return o(e,t)},invalidInput:t=>o(s.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>o(s.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>o(s.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>o(s.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>o(s.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>o(s.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>c(s.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>c(s.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>c(s.errorCodes.provider.unsupportedMethod,t),disconnected:t=>c(s.errorCodes.provider.disconnected,t),chainDisconnected:t=>c(s.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:r,data:i}=t;if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string');return new n.EthereumProviderError(e,r,i)}}}},77866:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;let n=r(82903);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return n.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});let i=r(7294);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});let s=r(2394);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});let o=r(45284);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})},7294:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let n=r(45284),i=r(82903),s=n.errorCodes.rpc.internal,o={code:s,message:c(s)};function c(t,r="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(t)){let r=t.toString();if(l(n.errorValues,r))return n.errorValues[r].message;if(t>=-32099&&t<=-32e3)return e.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function u(t){if(!Number.isInteger(t))return!1;let e=t.toString();return!!(n.errorValues[e]||t>=-32099&&t<=-32e3)}function a(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=c,e.isValidCode=u,e.serializeError=function(t,{fallbackError:e=o,shouldIncludeStack:r=!1}={}){if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();let n={};if(t&&"object"==typeof t&&!Array.isArray(t)&&l(t,"code")&&u(t.code))n.code=t.code,t.message&&"string"==typeof t.message?(n.message=t.message,l(t,"data")&&(n.data=t.data)):(n.message=c(n.code),n.data={originalError:a(t)});else{n.code=e.code;let r=null==t?void 0:t.message;n.message=r&&"string"==typeof r?r:e.message,n.data={originalError:a(t)}}let s=null==t?void 0:t.stack;return r&&t&&s&&"string"==typeof s&&(n.stack=s),n}},96817:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let n=r(68885);function i(t,e,r){try{Reflect.apply(t,e,r)}catch(t){setTimeout(()=>{throw t})}}class s extends n.EventEmitter{emit(t,...e){let r="error"===t,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){let t;if(e.length>0&&([t]=e),t instanceof Error)throw t;let r=Error(`Unhandled error.${t?` (${t.message})`:""}`);throw r.context=t,r}let s=n[t];if(void 0===s)return!1;if("function"==typeof s)i(s,this,e);else{let t=s.length,r=function(t){let e=t.length,r=Array(e);for(let n=0;n<e;n+=1)r[n]=t[n];return r}(s);for(let n=0;n<t;n+=1)i(r[n],this,e)}return!0}}e.default=s},96519:function(t,e,r){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0}),e.assertExhaustive=e.assertStruct=e.assert=e.AssertionError=void 0;let n=r(66517);function i(t,e){var r,n;return"string"==typeof(null===(n=null===(r=null==t?void 0:t.prototype)||void 0===r?void 0:r.constructor)||void 0===n?void 0:n.name)?new t({message:e}):t({message:e})}class s extends Error{constructor(t){super(t.message),this.code="ERR_ASSERTION"}}e.AssertionError=s,e.assert=function(t,e="Assertion failed.",r=s){if(!t){if(e instanceof Error)throw e;throw i(r,e)}},e.assertStruct=function(t,e,r="Assertion failed",o=s){try{(0,n.assert)(t,e)}catch(t){throw i(o,`${r}: ${function(t){let e="object"==typeof t&&null!==t&&"message"in t?t.message:String(t);return e.endsWith(".")?e.slice(0,-1):e}(t)}.`)}},e.assertExhaustive=function(t){throw Error("Invalid branch reached. Should be detected during compilation.")}},21189:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.base64=void 0;let n=r(66517),i=r(96519);e.base64=(t,e={})=>{var r,s;let o,c;let u=null!==(r=e.paddingRequired)&&void 0!==r&&r,a=null!==(s=e.characterSet)&&void 0!==s?s:"base64";return"base64"===a?o=String.raw`[A-Za-z0-9+\/]`:((0,i.assert)("base64url"===a),o=String.raw`[-_A-Za-z0-9]`),c=u?RegExp(`^(?:${o}{4})*(?:${o}{3}=|${o}{2}==)?$`,"u"):RegExp(`^(?:${o}{4})*(?:${o}{2,3}|${o}{3}=|${o}{2}==)?$`,"u"),(0,n.pattern)(t,c)}},11583:function(t,e,r){"use strict";var n=r(9109).Buffer;Object.defineProperty(e,"__esModule",{value:!0}),e.createDataView=e.concatBytes=e.valueToBytes=e.stringToBytes=e.numberToBytes=e.signedBigIntToBytes=e.bigIntToBytes=e.hexToBytes=e.bytesToString=e.bytesToNumber=e.bytesToSignedBigInt=e.bytesToBigInt=e.bytesToHex=e.assertIsBytes=e.isBytes=void 0;let i=r(96519),s=r(36985),o=function(){let t=[];return()=>{if(0===t.length)for(let e=0;e<256;e++)t.push(e.toString(16).padStart(2,"0"));return t}}();function c(t){return t instanceof Uint8Array}function u(t){(0,i.assert)(c(t),"Value must be a Uint8Array.")}function a(t){if(u(t),0===t.length)return"0x";let e=o(),r=Array(t.length);for(let n=0;n<t.length;n++)r[n]=e[t[n]];return(0,s.add0x)(r.join(""))}function l(t){return u(t),BigInt(a(t))}function h(t){var e;if((null===(e=null==t?void 0:t.toLowerCase)||void 0===e?void 0:e.call(t))==="0x")return new Uint8Array;(0,s.assertIsHexString)(t);let r=(0,s.remove0x)(t).toLowerCase(),n=r.length%2==0?r:`0${r}`,i=new Uint8Array(n.length/2);for(let t=0;t<i.length;t++){let e=n.charCodeAt(2*t),r=n.charCodeAt(2*t+1),s=e-(e<58?48:87),o=r-(r<58?48:87);i[t]=16*s+o}return i}function d(t){return(0,i.assert)("bigint"==typeof t,"Value must be a bigint."),(0,i.assert)(t>=BigInt(0),"Value must be a non-negative bigint."),h(t.toString(16))}function f(t){return(0,i.assert)("number"==typeof t,"Value must be a number."),(0,i.assert)(t>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToBytes` instead."),h(t.toString(16))}function p(t){return(0,i.assert)("string"==typeof t,"Value must be a string."),new TextEncoder().encode(t)}function b(t){if("bigint"==typeof t)return d(t);if("number"==typeof t)return f(t);if("string"==typeof t)return t.startsWith("0x")?h(t):p(t);if(c(t))return t;throw TypeError(`Unsupported value type: "${typeof t}".`)}e.isBytes=c,e.assertIsBytes=u,e.bytesToHex=a,e.bytesToBigInt=l,e.bytesToSignedBigInt=function(t){u(t);let e=BigInt(0);for(let r of t)e=(e<<BigInt(8))+BigInt(r);return BigInt.asIntN(8*t.length,e)},e.bytesToNumber=function(t){u(t);let e=l(t);return(0,i.assert)(e<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(e)},e.bytesToString=function(t){return u(t),new TextDecoder().decode(t)},e.hexToBytes=h,e.bigIntToBytes=d,e.signedBigIntToBytes=function(t,e){(0,i.assert)("bigint"==typeof t,"Value must be a bigint."),(0,i.assert)("number"==typeof e,"Byte length must be a number."),(0,i.assert)(e>0,"Byte length must be greater than 0."),(0,i.assert)(function(t,e){(0,i.assert)(e>0);let r=t>>BigInt(31);return!((~t&r)+(t&~r)>>BigInt(8*e+-1))}(t,e),"Byte length is too small to represent the given value.");let r=t,n=new Uint8Array(e);for(let t=0;t<n.length;t++)n[t]=Number(BigInt.asUintN(8,r)),r>>=BigInt(8);return n.reverse()},e.numberToBytes=f,e.stringToBytes=p,e.valueToBytes=b,e.concatBytes=function(t){let e=Array(t.length),r=0;for(let n=0;n<t.length;n++){let i=b(t[n]);e[n]=i,r+=i.length}let n=new Uint8Array(r);for(let t=0,r=0;t<e.length;t++)n.set(e[t],r),r+=e[t].length;return n},e.createDataView=function(t){return void 0!==n&&t instanceof n?new DataView(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)):new DataView(t.buffer,t.byteOffset,t.byteLength)}},47883:function(t,e,r){"use strict";
14Object.defineProperty(e,"__esModule",{value:!0}),e.ChecksumStruct=void 0;let n=r(66517),i=r(21189);e.ChecksumStruct=(0,n.size)((0,i.base64)((0,n.string)(),{paddingRequired:!0}),44,44)},36857:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createHex=e.createBytes=e.createBigInt=e.createNumber=void 0;let n=r(66517),i=r(96519),s=r(11583),o=r(36985),c=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),o.StrictHexStruct]),u=(0,n.coerce)((0,n.number)(),c,Number),a=(0,n.coerce)((0,n.bigint)(),c,BigInt);(0,n.union)([o.StrictHexStruct,(0,n.instance)(Uint8Array)]);let l=(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([o.StrictHexStruct]),s.hexToBytes),h=(0,n.coerce)(o.StrictHexStruct,(0,n.instance)(Uint8Array),s.bytesToHex);e.createNumber=function(t){try{let e=(0,n.create)(t,u);return(0,i.assert)(Number.isFinite(e),`Expected a number-like value, got "${t}".`),e}catch(e){if(e instanceof n.StructError)throw Error(`Expected a number-like value, got "${t}".`);throw e}},e.createBigInt=function(t){try{return(0,n.create)(t,a)}catch(t){if(t instanceof n.StructError)throw Error(`Expected a number-like value, got "${String(t.value)}".`);throw t}},e.createBytes=function(t){if("string"==typeof t&&"0x"===t.toLowerCase())return new Uint8Array;try{return(0,n.create)(t,l)}catch(t){if(t instanceof n.StructError)throw Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}},e.createHex=function(t){if(t instanceof Uint8Array&&0===t.length||"string"==typeof t&&"0x"===t.toLowerCase())return"0x";try{return(0,n.create)(t,h)}catch(t){if(t instanceof n.StructError)throw Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}}},39544:function(t,e){"use strict";var r,n,i=this&&this.__classPrivateFieldSet||function(t,e,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(t,r):i?i.value=r:e.set(t,r),r},s=this&&this.__classPrivateFieldGet||function(t,e,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};Object.defineProperty(e,"__esModule",{value:!0}),e.FrozenSet=e.FrozenMap=void 0;class o{constructor(t){r.set(this,void 0),i(this,r,new Map(t),"f"),Object.freeze(this)}get size(){return s(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return s(this,r,"f")[Symbol.iterator]()}entries(){return s(this,r,"f").entries()}forEach(t,e){return s(this,r,"f").forEach((r,n,i)=>t.call(e,r,n,this))}get(t){return s(this,r,"f").get(t)}has(t){return s(this,r,"f").has(t)}keys(){return s(this,r,"f").keys()}values(){return s(this,r,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([t,e])=>`${String(t)} => ${String(e)}`).join(", ")} `:""}}`}}e.FrozenMap=o;class c{constructor(t){n.set(this,void 0),i(this,n,new Set(t),"f"),Object.freeze(this)}get size(){return s(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return s(this,n,"f")[Symbol.iterator]()}entries(){return s(this,n,"f").entries()}forEach(t,e){return s(this,n,"f").forEach((r,n,i)=>t.call(e,r,n,this))}has(t){return s(this,n,"f").has(t)}keys(){return s(this,n,"f").keys()}values(){return s(this,n,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(t=>String(t)).join(", ")} `:""}}`}}e.FrozenSet=c,Object.freeze(o),Object.freeze(o.prototype),Object.freeze(c),Object.freeze(c.prototype)},36985:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.remove0x=e.add0x=e.assertIsStrictHexString=e.assertIsHexString=e.isStrictHexString=e.isHexString=e.StrictHexStruct=e.HexStruct=void 0;let n=r(66517),i=r(96519);function s(t){return(0,n.is)(t,e.HexStruct)}function o(t){return(0,n.is)(t,e.StrictHexStruct)}e.HexStruct=(0,n.pattern)((0,n.string)(),/^(?:0x)?[0-9a-f]+$/iu),e.StrictHexStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]+$/iu),e.isHexString=s,e.isStrictHexString=o,e.assertIsHexString=function(t){(0,i.assert)(s(t),"Value must be a hexadecimal string.")},e.assertIsStrictHexString=function(t){(0,i.assert)(o(t),'Value must be a hexadecimal string, starting with "0x".')},e.add0x=function(t){return t.startsWith("0x")?t:t.startsWith("0X")?`0x${t.substring(2)}`:`0x${t}`},e.remove0x=function(t){return t.startsWith("0x")||t.startsWith("0X")?t.substring(2):t}},99153:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};
14Object.defineProperty(e,"__esModule",{value:!0}),i(r(96519),e),i(r(21189),e),i(r(11583),e),i(r(47883),e),i(r(36857),e),i(r(39544),e),i(r(36985),e),i(r(12677),e),i(r(47513),e),i(r(91676),e),i(r(31917),e),i(r(53091),e),i(r(45974),e),i(r(31875),e)},12677:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateJsonAndGetSize=e.getJsonRpcIdValidator=e.assertIsJsonRpcError=e.isJsonRpcError=e.assertIsJsonRpcFailure=e.isJsonRpcFailure=e.assertIsJsonRpcSuccess=e.isJsonRpcSuccess=e.assertIsJsonRpcResponse=e.isJsonRpcResponse=e.assertIsPendingJsonRpcResponse=e.isPendingJsonRpcResponse=e.JsonRpcResponseStruct=e.JsonRpcFailureStruct=e.JsonRpcSuccessStruct=e.PendingJsonRpcResponseStruct=e.assertIsJsonRpcRequest=e.isJsonRpcRequest=e.assertIsJsonRpcNotification=e.isJsonRpcNotification=e.JsonRpcNotificationStruct=e.JsonRpcRequestStruct=e.JsonRpcParamsStruct=e.JsonRpcErrorStruct=e.JsonRpcIdStruct=e.JsonRpcVersionStruct=e.jsonrpc2=e.isValidJson=e.JsonStruct=void 0;let n=r(66517),i=r(96519),s=r(91676);function o(t,e=!1){let r=new Set;return function t(e,n){if(void 0===e)return[!1,0];if(null===e)return[!0,n?0:s.JsonSize.Null];let i=typeof e;try{if("function"===i)return[!1,0];if("string"===i||e instanceof String)return[!0,n?0:(0,s.calculateStringSize)(e)+2*s.JsonSize.Quote];if("boolean"===i||e instanceof Boolean){if(n)return[!0,0];return[!0,!0==e?s.JsonSize.True:s.JsonSize.False]}if("number"===i||e instanceof Number){if(n)return[!0,0];return[!0,(0,s.calculateNumberSize)(e)]}else if(e instanceof Date){if(n)return[!0,0];return[!0,isNaN(e.getDate())?s.JsonSize.Null:s.JsonSize.Date+2*s.JsonSize.Quote]}}catch(t){return[!1,0]}if(!(0,s.isPlainObject)(e)&&!Array.isArray(e)||r.has(e))return[!1,0];r.add(e);try{return[!0,Object.entries(e).reduce((i,[o,c],u,a)=>{let[l,h]=t(c,n);if(!l)throw Error("JSON validation did not pass. Validation process stopped.");if(r.delete(e),n)return 0;let d=Array.isArray(e)?0:o.length+s.JsonSize.Comma+2*s.JsonSize.Colon,f=u<a.length-1?s.JsonSize.Comma:0;return i+d+h+f},n?0:2*s.JsonSize.Wrapper)]}catch(t){return[!1,0]}}(t,e)}e.JsonStruct=(0,n.define)("Json",t=>{let[e]=o(t,!0);return!!e||"Expected a valid JSON-serializable value"}),e.isValidJson=function(t){return(0,n.is)(t,e.JsonStruct)},e.jsonrpc2="2.0",e.JsonRpcVersionStruct=(0,n.literal)(e.jsonrpc2),e.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),e.JsonRpcErrorStruct=(0,n.object)({code:(0,n.integer)(),message:(0,n.string)(),data:(0,n.optional)(e.JsonStruct),stack:(0,n.optional)((0,n.string)())}),e.JsonRpcParamsStruct=(0,n.optional)((0,n.union)([(0,n.record)((0,n.string)(),e.JsonStruct),(0,n.array)(e.JsonStruct)])),e.JsonRpcRequestStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,method:(0,n.string)(),params:e.JsonRpcParamsStruct}),e.JsonRpcNotificationStruct=(0,n.omit)(e.JsonRpcRequestStruct,["id"]),e.isJsonRpcNotification=function(t){return(0,n.is)(t,e.JsonRpcNotificationStruct)},e.assertIsJsonRpcNotification=function(t,r){(0,i.assertStruct)(t,e.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",r)},e.isJsonRpcRequest=function(t){return(0,n.is)(t,e.JsonRpcRequestStruct)},e.assertIsJsonRpcRequest=function(t,r){(0,i.assertStruct)(t,e.JsonRpcRequestStruct,"Invalid JSON-RPC request",r)},e.PendingJsonRpcResponseStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(e.JsonRpcErrorStruct)}),e.JsonRpcSuccessStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,result:e.JsonStruct}),e.JsonRpcFailureStruct=(0,n.object)({id:e.JsonRpcIdStruct,jsonrpc:e.JsonRpcVersionStruct,error:e.JsonRpcErrorStruct}),e.JsonRpcResponseStruct=(0,n.union)([e.JsonRpcSuccessStruct,e.JsonRpcFailureStruct]),e.isPendingJsonRpcResponse=function(t){return(0,n.is)(t,e.PendingJsonRpcResponseStruct)},e.assertIsPendingJsonRpcResponse=function(t,r){(0,i.assertStruct)(t,e.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",r)},e.isJsonRpcResponse=function(t){return(0,n.is)(t,e.JsonRpcResponseStruct)},e.assertIsJsonRpcResponse=function(t,r){(0,i.assertStruct)(t,e.JsonRpcResponseStruct,"Invalid JSON-RPC response",r)},e.isJsonRpcSuccess=function(t){return(0,n.is)(t,e.JsonRpcSuccessStruct)},e.assertIsJsonRpcSuccess=function(t,r){(0,i.assertStruct)(t,e.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",r)},e.isJsonRpcFailure=function(t){return(0,n.is)(t,e.JsonRpcFailureStruct)},e.assertIsJsonRpcFailure=function(t,r){(0,i.assertStruct)(t,e.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",r)},e.isJsonRpcError=function(t){return(0,n.is)(t,e.JsonRpcErrorStruct)},e.assertIsJsonRpcError=function(t,r){(0,i.assertStruct)(t,e.JsonRpcErrorStruct,"Invalid JSON-RPC error",r)},e.getJsonRpcIdValidator=function(t){let{permitEmptyString:e,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},t);return t=>!!("number"==typeof t&&(r||Number.isInteger(t))||"string"==typeof t&&(e||t.length>0)||n&&null===t)},e.validateJsonAndGetSize=o},47513:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
14Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.createProjectLogger=void 0;let i=(0,n(r(55022)).default)("metamask");e.createProjectLogger=function(t){return i.extend(t)},e.createModuleLogger=function(t,e){return t.extend(e)}},91676:function(t,e){"use strict";var r;function n(t){return 127>=t.charCodeAt(0)}Object.defineProperty(e,"__esModule",{value:!0}),e.calculateNumberSize=e.calculateStringSize=e.isASCII=e.isPlainObject=e.ESCAPE_CHARACTERS_REGEXP=e.JsonSize=e.hasProperty=e.isObject=e.isNullOrUndefined=e.isNonEmptyArray=void 0,e.isNonEmptyArray=function(t){return Array.isArray(t)&&t.length>0},e.isNullOrUndefined=function(t){return null==t},e.isObject=function(t){return!!t&&"object"==typeof t&&!Array.isArray(t)},e.hasProperty=(t,e)=>Object.hasOwnProperty.call(t,e),(r=e.JsonSize||(e.JsonSize={}))[r.Null=4]="Null",r[r.Comma=1]="Comma",r[r.Wrapper=1]="Wrapper",r[r.True=4]="True",r[r.False=5]="False",r[r.Quote=1]="Quote",r[r.Colon=1]="Colon",r[r.Date=24]="Date",e.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,e.isPlainObject=function(t){if("object"!=typeof t||null===t)return!1;try{let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}catch(t){return!1}},e.isASCII=n,e.calculateStringSize=function(t){var r;return t.split("").reduce((t,e)=>n(e)?t+1:t+2,0)+(null!==(r=t.match(e.ESCAPE_CHARACTERS_REGEXP))&&void 0!==r?r:[]).length},e.calculateNumberSize=function(t){return t.toString().length}},31917:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBigInt=e.hexToNumber=e.bigIntToHex=e.numberToHex=void 0;let n=r(96519),i=r(36985);e.numberToHex=t=>((0,n.assert)("number"==typeof t,"Value must be a number."),(0,n.assert)(t>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,i.add0x)(t.toString(16))),e.bigIntToHex=t=>((0,n.assert)("bigint"==typeof t,"Value must be a bigint."),(0,n.assert)(t>=0,"Value must be a non-negative bigint."),(0,i.add0x)(t.toString(16))),e.hexToNumber=t=>{(0,i.assertIsHexString)(t);let e=parseInt(t,16);return(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `hexToBigInt` instead."),e},e.hexToBigInt=t=>((0,i.assertIsHexString)(t),BigInt((0,i.add0x)(t)))},53091:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},45974:function(t,e){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.timeSince=e.inMilliseconds=e.Duration=void 0,(r=e.Duration||(e.Duration={}))[r.Millisecond=1]="Millisecond",r[r.Second=1e3]="Second",r[r.Minute=6e4]="Minute",r[r.Hour=36e5]="Hour",r[r.Day=864e5]="Day",r[r.Week=6048e5]="Week",r[r.Year=31536e6]="Year";let n=t=>Number.isInteger(t)&&t>=0,i=(t,e)=>{if(!n(t))throw Error(`"${e}" must be a non-negative integer. Received: "${t}".`)};e.inMilliseconds=function(t,e){return i(t,"count"),t*e},e.timeSince=function(t){return i(t,"timestamp"),Date.now()-t}},31875:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.satisfiesVersionRange=e.gtRange=e.gtVersion=e.assertIsSemVerRange=e.assertIsSemVerVersion=e.isValidSemVerRange=e.isValidSemVerVersion=e.VersionRangeStruct=e.VersionStruct=void 0;let n=r(41120),i=r(66517),s=r(96519);e.VersionStruct=(0,i.refine)((0,i.string)(),"Version",t=>null!==(0,n.valid)(t)||`Expected SemVer version, got "${t}"`),e.VersionRangeStruct=(0,i.refine)((0,i.string)(),"Version range",t=>null!==(0,n.validRange)(t)||`Expected SemVer range, got "${t}"`),e.isValidSemVerVersion=function(t){return(0,i.is)(t,e.VersionStruct)},e.isValidSemVerRange=function(t){return(0,i.is)(t,e.VersionRangeStruct)},e.assertIsSemVerVersion=function(t){(0,s.assertStruct)(t,e.VersionStruct)},e.assertIsSemVerRange=function(t){(0,s.assertStruct)(t,e.VersionRangeStruct)},e.gtVersion=function(t,e){return(0,n.gt)(t,e)},e.gtRange=function(t,e){return(0,n.gtr)(t,e)},e.satisfiesVersionRange=function(t,e){return(0,n.satisfies)(t,e,{includePrerelease:!0})}},24208:function(t,e,r){let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=s(e),t instanceof i){if(!!e.loose===t.loose)return t;t=t.value}a("comparator",t=t.trim().split(/\s+/).join(" "),e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){let e=this.options.loose?o[c.COMPARATORLOOSE]:o[c.COMPARATOR],r=t.match(e);if(!r)throw TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;
14if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}return u(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new h(t.value,e).test(this.value):""===t.operator?""===t.value||new h(this.value,e).test(t.semver):!((e=s(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||u(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||u(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">"))}}t.exports=i;let s=r(7358),{safeRe:o,t:c}=r(90922),u=r(4206),a=r(26180),l=r(26815),h=r(30345)},30345:function(t,e,r){class n{constructor(t,e){if(e=s(e),t instanceof n){if(!!e.loose===t.loose&&!!e.includePrerelease===t.includePrerelease)return t;return new n(t.raw,e)}if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(t=>this.parseRange(t.trim())).filter(t=>t.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let t=this.set[0];if(this.set=this.set.filter(t=>!g(t[0])),0===this.set.length)this.set=[t];else if(this.set.length>1){for(let t of this.set)if(1===t.length&&y(t[0])){this.set=[t];break}}}this.format()}format(){return this.range=this.set.map(t=>t.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(t){let e=((this.options.includePrerelease&&p)|(this.options.loose&&b))+":"+t,r=i.get(e);if(r)return r;let n=this.options.loose,s=n?a[l.HYPHENRANGELOOSE]:a[l.HYPHENRANGE];c("hyphen replace",t=t.replace(s,N(this.options.includePrerelease))),c("comparator trim",t=t.replace(a[l.COMPARATORTRIM],h)),c("tilde trim",t=t.replace(a[l.TILDETRIM],d)),c("caret trim",t=t.replace(a[l.CARETTRIM],f));let u=t.split(" ").map(t=>v(t,this.options)).join(" ").split(/\s+/).map(t=>M(t,this.options));n&&(u=u.filter(t=>(c("loose invalid filter",t,this.options),!!t.match(a[l.COMPARATORLOOSE])))),c("range list",u);let y=new Map;for(let t of u.map(t=>new o(t,this.options))){if(g(t))return[t];y.set(t.value,t)}y.size>1&&y.has("")&&y.delete("");let m=[...y.values()];return i.set(e,m),m}intersects(t,e){if(!(t instanceof n))throw TypeError("a Range is required");return this.set.some(r=>m(r,e)&&t.set.some(t=>m(t,e)&&r.every(r=>t.every(t=>r.intersects(t,e)))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new u(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(R(this.set[e],t,this.options))return!0;return!1}}t.exports=n;let i=new(r(24768)),s=r(7358),o=r(24208),c=r(26180),u=r(26815),{safeRe:a,t:l,comparatorTrimReplace:h,tildeTrimReplace:d,caretTrimReplace:f}=r(90922),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:b}=r(85654),g=t=>"<0.0.0-0"===t.value,y=t=>""===t.value,m=(t,e)=>{let r=!0,n=t.slice(),i=n.pop();for(;r&&n.length;)r=n.every(t=>i.intersects(t,e)),i=n.pop();return r},v=(t,e)=>(c("comp",t,e),c("caret",t=S(t,e)),c("tildes",t=w(t,e)),c("xrange",t=k(t,e)),c("stars",t=C(t,e)),t),_=t=>!t||"x"===t.toLowerCase()||"*"===t,w=(t,e)=>t.trim().split(/\s+/).map(t=>E(t,e)).join(" "),E=(t,e)=>{let r=e.loose?a[l.TILDELOOSE]:a[l.TILDE];return t.replace(r,(e,r,n,i,s)=>{let o;return c("tilde",t,e,r,n,i,s),_(r)?o="":_(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:_(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(c("replaceTilde pr",s),o=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,c("tilde return",o),o})},S=(t,e)=>t.trim().split(/\s+/).map(t=>x(t,e)).join(" "),x=(t,e)=>{c("caret",t,e);let r=e.loose?a[l.CARETLOOSE]:a[l.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,(e,r,i,s,o)=>{let u;return c("caret",t,e,r,i,s,o),_(r)?u="":_(i)?u=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(s)?u="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(c("replaceCaret pr",o),u="0"===r?"0"===i?`>=${r}.${i}.${s}-${o} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${o} <${+r+1}.0.0-0`):(c("no pr"),u="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),c("caret return",u),u})},k=(t,e)=>(c("replaceXRanges",t,e),t.split(/\s+/).map(t=>I(t,e)).join(" ")),I=(t,e)=>{t=t.trim();let r=e.loose?a[l.XRANGELOOSE]:a[l.XRANGE];return t.replace(r,(r,n,i,s,o,u)=>{c("xRange",t,r,n,i,s,o,u);let a=_(i),l=a||_(s),h=l||_(o);return"="===n&&h&&(n=""),u=e.includePrerelease?"-0":"",a?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&h?(l&&(s=0),o=0,">"===n?(n=">=",l?(i=+i+1,s=0):s=+s+1,o=0):"<="===n&&(n="<",l?i=+i+1:s=+s+1),"<"===n&&(u="-0"),r=`${n+i}.${s}.${o}${u}`):l?r=`>=${i}.0.0${u} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${s}.0${u} <${i}.${+s+1}.0-0`),c("xRange return",r),r})},C=(t,e)=>(c("replaceStars",t,e),t.trim().replace(a[l.STAR],"")),M=(t,e)=>(c("replaceGTE0",t,e),t.trim().replace(a[e.includePrerelease?l.GTE0PRE:l.GTE0],"")),N=t=>(e,r,n,i,s,o,c,u,a,l,h,d)=>(r=_(n)?"":_(i)?`>=${n}.0.0${t?"-0":""}`:_(s)?`>=${n}.${i}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`,u=_(a)?"":_(l)?`<${+a+1}.0.0-0`:_(h)?`<${a}.${+l+1}.0-0`:d?`<=${a}
14.${l}.${h}-${d}`:t?`<${a}.${l}.${+h+1}-0`:`<=${u}`,`${r} ${u}`.trim()),R=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(c(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){let n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},26815:function(t,e,r){let n=r(26180),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(85654),{safeRe:o,t:c}=r(90922),u=r(7358),{compareIdentifiers:a}=r(60039);class l{constructor(t,e){if(e=u(e),t instanceof l){if(!!e.loose===t.loose&&!!e.includePrerelease===t.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;let r=t.trim().match(e.loose?o[c.LOOSE]:o[c.FULL]);if(!r)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(t=>{if(/^[0-9]+$/.test(t)){let e=+t;if(e>=0&&e<s)return e}return t}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof l||(t=new l(t,this.options)),a(this.major,t.major)||a(this.minor,t.minor)||a(this.patch,t.patch)}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return -1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{let r=this.prerelease[e],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;if(r===i)continue;else return a(r,i)}while(++e)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let e=0;do{let r=this.build[e],i=t.build[e];if(n("build compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return -1;if(r===i)continue;else return a(r,i)}while(++e)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let t=Number(r)?1:0;if(!e&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);
14if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===a(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=l},31375:function(t,e,r){let n=r(64306);t.exports=(t,e)=>{let r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},4206:function(t,e,r){let n=r(84421),i=r(42311),s=r(94235),o=r(57055),c=r(81844),u=r(7619);t.exports=(t,e,r,a)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,a);case"!=":return i(t,r,a);case">":return s(t,r,a);case">=":return o(t,r,a);case"<":return c(t,r,a);case"<=":return u(t,r,a);default:throw TypeError(`Invalid operator: ${e}`)}}},20225:function(t,e,r){let n=r(26815),i=r(64306),{safeRe:s,t:o}=r(90922);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let n;let i=e.includePrerelease?s[o.COERCERTLFULL]:s[o.COERCERTL];for(;(n=i.exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=t.match(e.includePrerelease?s[o.COERCEFULL]:s[o.COERCE]);if(null===r)return null;let c=r[2],u=r[3]||"0",a=r[4]||"0",l=e.includePrerelease&&r[5]?`-${r[5]}`:"",h=e.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${c}.${u}.${a}${l}${h}`,e)}},81288:function(t,e,r){let n=r(26815);t.exports=(t,e,r)=>{let i=new n(t,r),s=new n(e,r);return i.compare(s)||i.compareBuild(s)}},89279:function(t,e,r){let n=r(2559);t.exports=(t,e)=>n(t,e,!0)},2559:function(t,e,r){let n=r(26815);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},72100:function(t,e,r){let n=r(64306);t.exports=(t,e)=>{let r=n(t,null,!0),i=n(e,null,!0),s=r.compare(i);if(0===s)return null;let o=s>0,c=o?r:i,u=o?i:r,a=!!c.prerelease.length;if(u.prerelease.length&&!a)return u.patch||u.minor?c.patch?"patch":c.minor?"minor":"major":"major";let l=a?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"}},84421:function(t,e,r){let n=r(2559);t.exports=(t,e,r)=>0===n(t,e,r)},94235:function(t,e,r){let n=r(2559);t.exports=(t,e,r)=>n(t,e,r)>0},57055:function(t,e,r){let n=r(2559);t.exports=(t,e,r)=>n(t,e,r)>=0},62958:function(t,e,r){let n=r(26815);t.exports=(t,e,r,i,s)=>{"string"==typeof r&&(s=i,i=r,r=void 0);try{return new n(t instanceof n?t.version:t,r).inc(e,i,s).version}catch(t){return null}}},81844:function(t,e,r){let n=r(2559);t.exports=(t,e,r)=>0>n(t,e,r)},7619:function(t,e,r){let n=r(2559);t.exports=(t,e,r)=>0>=n(t,e,r)},47099:function(t,e,r){let n=r(26815);t.exports=(t,e)=>new n(t,e).major},60134:function(t,e,r){let n=r(26815);t.exports=(t,e)=>new n(t,e).minor},42311:function(t,e,r){let n=r(2559);t.exports=(t,e,r)=>0!==n(t,e,r)},64306:function(t,e,r){let n=r(26815);t.exports=(t,e,r=!1)=>{if(t instanceof n)return t;try{return new n(t,e)}catch(t){if(!r)return null;throw t}}},51734:function(t,e,r){let n=r(26815);t.exports=(t,e)=>new n(t,e).patch},38664:function(t,e,r){let n=r(64306);t.exports=(t,e)=>{let r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},48443:function(t,e,r){let n=r(2559);t.exports=(t,e,r)=>n(e,t,r)},57493:function(t,e,r){let n=r(81288);t.exports=(t,e)=>t.sort((t,r)=>n(r,t,e))},3505:function(t,e,r){let n=r(30345);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},52139:function(t,e,r){let n=r(81288);t.exports=(t,e)=>t.sort((t,r)=>n(t,r,e))},12669:function(t,e,r){let n=r(64306);t.exports=(t,e)=>{let r=n(t,e);return r?r.version:null}},41120:function(t,e,r){let n=r(90922),i=r(85654),s=r(26815),o=r(60039),c=r(64306),u=r(12669),a=r(31375),l=r(62958),h=r(72100),d=r(47099),f=r(60134),p=r(51734),b=r(38664),g=r(2559),y=r(48443),m=r(89279),v=r(81288),_=r(52139),w=r(57493),E=r(94235),S=r(81844),x=r(84421),k=r(42311),I=r(57055),C=r(7619),M=r(4206),N=r(20225),R=r(24208),T=r(30345),A=r(3505),L=r(77019),O=r(20747),j=r(43813),P=r(80396),D=r(71575),B=r(95789),F=r(27488),$=r(78328),V=r(66504),H=r(62285),z=r(36181);t.exports={parse:c,valid:u,clean:a,inc:l,diff:h,major:d,minor:f,patch:p,prerelease:b,compare:g,rcompare:y,compareLoose:m,compareBuild:v,sort:_,rsort:w,gt:E,lt:S,eq:x,neq:k,gte:I,lte:C,cmp:M,coerce:N,Comparator:R,Range:T,satisfies:A,toComparators:L,maxSatisfying:O,minSatisfying:j,minVersion:P,validRange:D,outside:B,gtr:F,ltr:$,intersects:V,simplifyRange:H,subset:z,SemVer:s,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},85654:function(t){let e=Number.MAX_SAFE_INTEGER||9007199254740991;
14t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},26180:function(t,e,r){var n=r(25566);let i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=i},60039:function(t){let e=/^[0-9]+$/,r=(t,r)=>{let n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},24768:function(t){class e{constructor(){this.max=1e3,this.map=new Map}get(t){let e=this.map.get(t);if(void 0!==e)return this.map.delete(t),this.map.set(t,e),e}delete(t){return this.map.delete(t)}set(t,e){if(!this.delete(t)&&void 0!==e){if(this.map.size>=this.max){let t=this.map.keys().next().value;this.delete(t)}this.map.set(t,e)}return this}}t.exports=e},7358:function(t){let e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},90922:function(t,e,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=r(85654),o=r(26180),c=(e=t.exports={}).re=[],u=e.safeRe=[],a=e.src=[],l=e.t={},h=0,d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",s],[d,i]],p=t=>{for(let[e,r]of f)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},b=(t,e,r)=>{let n=p(e),i=h++;o(t,i,e),l[t]=i,a[i]=e,c[i]=new RegExp(e,r?"g":void 0),u[i]=new RegExp(n,r?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),b("MAINVERSION",`(${a[l.NUMERICIDENTIFIER]})\\.(${a[l.NUMERICIDENTIFIER]})\\.(${a[l.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${a[l.NUMERICIDENTIFIERLOOSE]})\\.(${a[l.NUMERICIDENTIFIERLOOSE]})\\.(${a[l.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${a[l.NUMERICIDENTIFIER]}|${a[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${a[l.NUMERICIDENTIFIERLOOSE]}|${a[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${a[l.PRERELEASEIDENTIFIER]}(?:\\.${a[l.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${a[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[l.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${d}+`),b("BUILD",`(?:\\+(${a[l.BUILDIDENTIFIER]}(?:\\.${a[l.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${a[l.MAINVERSION]}${a[l.PRERELEASE]}?${a[l.BUILD]}?`),b("FULL",`^${a[l.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${a[l.MAINVERSIONLOOSE]}${a[l.PRERELEASELOOSE]}?${a[l.BUILD]}?`),b("LOOSE",`^${a[l.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${a[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${a[l.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${a[l.XRANGEIDENTIFIER]})(?:\\.(${a[l.XRANGEIDENTIFIER]})(?:\\.(${a[l.XRANGEIDENTIFIER]})(?:${a[l.PRERELEASE]})?${a[l.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${a[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[l.XRANGEIDENTIFIERLOOSE]})(?:${a[l.PRERELEASELOOSE]})?${a[l.BUILD]}?)?)?`),b("XRANGE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${a[l.GTLT]}\\s*${a[l.XRANGEPLAINLOOSE]}$`),b("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),b("COERCE",`${a[l.COERCEPLAIN]}(?:$|[^\\d])`),b("COERCEFULL",a[l.COERCEPLAIN]+`(?:${a[l.PRERELEASE]})?`+`(?:${a[l.BUILD]})?`+"(?:$|[^\\d])"),b("COERCERTL",a[l.COERCE],!0),b("COERCERTLFULL",a[l.COERCEFULL],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${a[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",b("TILDE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${a[l.LONETILDE]}${a[l.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${a[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",b("CARET",`^${a[l.LONECARET]}${a[l.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${a[l.LONECARET]}${a[l.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${a[l.GTLT]}\\s*(${a[l.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${a[l.GTLT]}\\s*(${a[l.LOOSEPLAIN]}|${a[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${a[l.XRANGEPLAIN]})\\s+-\\s+(${a[l.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${a[l.XRANGEPLAINLOOSE]}
14)\\s+-\\s+(${a[l.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},27488:function(t,e,r){let n=r(95789);t.exports=(t,e,r)=>n(t,e,">",r)},66504:function(t,e,r){let n=r(30345);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e,r))},78328:function(t,e,r){let n=r(95789);t.exports=(t,e,r)=>n(t,e,"<",r)},20747:function(t,e,r){let n=r(26815),i=r(30345);t.exports=(t,e,r)=>{let s=null,o=null,c=null;try{c=new i(e,r)}catch(t){return null}return t.forEach(t=>{c.test(t)&&(!s||-1===o.compare(t))&&(o=new n(s=t,r))}),s}},43813:function(t,e,r){let n=r(26815),i=r(30345);t.exports=(t,e,r)=>{let s=null,o=null,c=null;try{c=new i(e,r)}catch(t){return null}return t.forEach(t=>{c.test(t)&&(!s||1===o.compare(t))&&(o=new n(s=t,r))}),s}},80396:function(t,e,r){let n=r(26815),i=r(30345),s=r(94235);t.exports=(t,e)=>{t=new i(t,e);let r=new n("0.0.0");if(t.test(r)||(r=new n("0.0.0-0"),t.test(r)))return r;r=null;for(let e=0;e<t.set.length;++e){let i=t.set[e],o=null;i.forEach(t=>{let e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":(!o||s(e,o))&&(o=e);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${t.operator}`)}}),o&&(!r||s(r,o))&&(r=o)}return r&&t.test(r)?r:null}},95789:function(t,e,r){let n=r(26815),i=r(24208),{ANY:s}=i,o=r(30345),c=r(3505),u=r(94235),a=r(81844),l=r(7619),h=r(57055);t.exports=(t,e,r,d)=>{let f,p,b,g,y;switch(t=new n(t,d),e=new o(e,d),r){case">":f=u,p=l,b=a,g=">",y=">=";break;case"<":f=a,p=h,b=u,g="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(c(t,e,d))return!1;for(let r=0;r<e.set.length;++r){let n=e.set[r],o=null,c=null;if(n.forEach(t=>{t.semver===s&&(t=new i(">=0.0.0")),o=o||t,c=c||t,f(t.semver,o.semver,d)?o=t:b(t.semver,c.semver,d)&&(c=t)}),o.operator===g||o.operator===y||(!c.operator||c.operator===g)&&p(t,c.semver)||c.operator===y&&b(t,c.semver))return!1}return!0}},62285:function(t,e,r){let n=r(3505),i=r(2559);t.exports=(t,e,r)=>{let s=[],o=null,c=null,u=t.sort((t,e)=>i(t,e,r));for(let t of u)n(t,e,r)?(c=t,o||(o=t)):(c&&s.push([o,c]),c=null,o=null);o&&s.push([o,null]);let a=[];for(let[t,e]of s)t===e?a.push(t):e||t!==u[0]?e?t===u[0]?a.push(`<=${e}`):a.push(`${t} - ${e}`):a.push(`>=${t}`):a.push("*");let l=a.join(" || "),h="string"==typeof e.raw?e.raw:String(e);return l.length<h.length?l:e}},36181:function(t,e,r){let n=r(30345),i=r(24208),{ANY:s}=i,o=r(3505),c=r(2559),u=[new i(">=0.0.0-0")],a=[new i(">=0.0.0")],l=(t,e,r)=>{let n,i,l,f,p,b,g;if(t===e)return!0;if(1===t.length&&t[0].semver===s){if(1===e.length&&e[0].semver===s)return!0;t=r.includePrerelease?u:a}if(1===e.length&&e[0].semver===s){if(r.includePrerelease)return!0;e=a}let y=new Set;for(let e of t)">"===e.operator||">="===e.operator?n=h(n,e,r):"<"===e.operator||"<="===e.operator?i=d(i,e,r):y.add(e.semver);if(y.size>1||n&&i&&((l=c(n.semver,i.semver,r))>0||0===l&&(">="!==n.operator||"<="!==i.operator)))return null;for(let t of y){if(n&&!o(t,String(n),r)||i&&!o(t,String(i),r))return null;for(let n of e)if(!o(t,String(n),r))return!1;return!0}let m=!!i&&!r.includePrerelease&&!!i.semver.prerelease.length&&i.semver,v=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let t of(m&&1===m.prerelease.length&&"<"===i.operator&&0===m.prerelease[0]&&(m=!1),e)){if(g=g||">"===t.operator||">="===t.operator,b=b||"<"===t.operator||"<="===t.operator,n){if(v&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===v.major&&t.semver.minor===v.minor&&t.semver.patch===v.patch&&(v=!1),">"===t.operator||">="===t.operator){if((f=h(n,t,r))===t&&f!==n)return!1}else if(">="===n.operator&&!o(n.semver,String(t),r))return!1}if(i){if(m&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===m.major&&t.semver.minor===m.minor&&t.semver.patch===m.patch&&(m=!1),"<"===t.operator||"<="===t.operator){if((p=d(i,t,r))===t&&p!==i)return!1}else if("<="===i.operator&&!o(i.semver,String(t),r))return!1}if(!t.operator&&(i||n)&&0!==l)return!1}return(!n||!b||!!i||0===l)&&(!i||!g||!!n||0===l)&&!v&&!m},h=(t,e,r)=>{if(!t)return e;let n=c(t.semver,e.semver,r);return n>0?t:n<0?e:">"===e.operator&&">="===t.operator?e:t},d=(t,e,r)=>{if(!t)return e;let n=c(t.semver,e.semver,r);return n<0?t:n>0?e:"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>
14{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let i=!1;t:for(let n of t.set){for(let t of e.set){let e=l(n,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},77019:function(t,e,r){let n=r(30345);t.exports=(t,e)=>new n(t,e).set.map(t=>t.map(t=>t.value).join(" ").trim().split(" "))},71575:function(t,e,r){let n=r(30345);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},74021:function(t,e){"use strict";var r,n;function i(t,e,n){if(!n||typeof n.value!==r.typeOfFunction)throw TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:r.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:r.boolTrue,writable:r.boolTrue}),t}}}Object.defineProperty(e,"__esModule",{value:!0}),(n=r||(r={})).typeOfFunction="function",n.boolTrue=!0,e.bind=i,e.default=i},93286:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseBlockTracker=void 0;let i=n(r(96817)),s=(t,e)=>t+e,o=["sync","latest"];class c extends i.default{constructor(t){super(),this._blockResetDuration=t.blockResetDuration||2e4,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(t){return t?super.removeAllListeners(t):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(t){o.includes(t)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return o.map(t=>this.listenerCount(t)).reduce(s)}_newPotentialLatest(t){let e=this._currentBlock;e&&u(t)<=u(e)||this._setCurrentBlock(t)}_setCurrentBlock(t){let e=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:e,newBlock:t})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}function u(t){return Number.parseInt(t,16)}e.BaseBlockTracker=c},48739:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.PollingBlockTracker=void 0;let i=n(r(8728)),s=n(r(50167)),o=r(93286),c=r(75542),u=(0,c.createModuleLogger)(c.projectLogger,"polling-block-tracker"),a=(0,i.default)();class l extends o.BaseBlockTracker{constructor(t={}){var e;if(!t.provider)throw Error("PollingBlockTracker - no provider specified.");super({blockResetDuration:null!==(e=t.blockResetDuration)&&void 0!==e?e:t.pollingInterval}),this._provider=t.provider,this._pollingInterval=t.pollingInterval||2e4,this._retryTimeout=t.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===t.keepEventLoopActive||t.keepEventLoopActive,this._setSkipCacheFlag=t.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var t;this._isRunning;)try{await this._updateLatestBlock();let t=h(this._pollingInterval,!this._keepEventLoopActive);
14this.emit("_waitingForNextIteration"),await t}catch(n){let e=Error(`PollingBlockTracker - encountered an error while attempting to update latest block: 15${null!==(t=n.stack)&&void 0!==t?t:n}`);try{this.emit("error",e)}catch(t){console.error(e)}let r=h(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await r}}async _updateLatestBlock(){let t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){let t={jsonrpc:"2.0",id:a(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0),u("Making request",t);let e=await (0,s.default)(e=>this._provider.sendAsync(t,e))();if(u("Got response",e),e.error)throw Error(`PollingBlockTracker - encountered error fetching block: 16${e.error.message}`);return e.result}}function h(t,e){return new Promise(r=>{let n=setTimeout(r,t);n.unref&&e&&n.unref()})}e.PollingBlockTracker=l},70652:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SubscribeBlockTracker=void 0;let i=n(r(8728)),s=r(93286),o=(0,i.default)();class c extends s.BaseBlockTracker{constructor(t={}){if(!t.provider)throw Error("SubscribeBlockTracker - no provider specified.");super(t),this._provider=t.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}
16async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{let t=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(t)}catch(t){this.emit("error",t)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(t){this.emit("error",t)}}_call(t,...e){return new Promise((r,n)=>{this._provider.sendAsync({id:o(),method:t,params:e,jsonrpc:"2.0"},(t,e)=>{t?n(t):r(e.result)})})}_handleSubData(t,e){var r;"eth_subscription"===e.method&&(null===(r=e.params)||void 0===r?void 0:r.subscription)===this._subscriptionId&&this._newPotentialLatest(e.params.result.number)}}e.SubscribeBlockTracker=c},15951:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(48739),e),i(r(70652),e),i(r(14260),e)},75542:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createModuleLogger=e.projectLogger=void 0;let n=r(99153);Object.defineProperty(e,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),e.projectLogger=(0,n.createProjectLogger)("eth-block-tracker")},14260:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},50167:function(t){"use strict";let e=(t,e)=>function(){let r=e.promiseModule,n=Array(arguments.length);for(let t=0;t<arguments.length;t++)n[t]=arguments[t];return new r((r,i)=>{e.errorFirst?n.push(function(t,n){if(e.multiArgs){let e=Array(arguments.length-1);for(let t=1;t<arguments.length;t++)e[t-1]=arguments[t];t?(e.unshift(t),i(e)):r(e)}else t?i(t):r(n)}):n.push(function(t){if(e.multiArgs){let t=Array(arguments.length-1);for(let e=0;e<arguments.length;e++)t[e]=arguments[e];r(t)}else r(t)}),t.apply(this,n)})};t.exports=(t,r)=>{let n;r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);let i=t=>{let e=e=>"string"==typeof e?t===e:e.test(t);return r.include?r.include.some(e):!r.exclude.some(e)};for(let s in n="function"==typeof t?function(){return r.excludeMain?t.apply(this,arguments):e(t,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t)),t){let o=t[s];n[s]="function"==typeof o&&i(s)?e(o,r):o}return n}},87530:function(t,e,r){let n=r(92224);class i extends n{constructor(){super(),this.allResults=[]}async update(){throw Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}}t.exports=i},92224:function(t,e,r){let n=r(96817).default;class i extends n{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach(t=>this.emit("update",t))}addInitialResults(t){}getChangesAndClear(){let t=this.updates;return this.updates=[],t}}t.exports=i},39907:function(t,e,r){let n=r(92224),i=r(57495),{incrementHexInt:s}=r(25789);class o extends n{constructor({provider:t,params:e}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:e}){let r=s(t),n=(await i({provider:this.provider,fromBlock:r,toBlock:e})).map(t=>t.hash);this.addResults(n)}}t.exports=o},57495:function(t){async function e({provider:t,fromBlock:e,toBlock:s}){e||(e=s);let o=r(e),c=Array(r(s)-o+1).fill().map((t,e)=>o+e).map(n);return await Promise.all(c.map(e=>i(t,"eth_getBlockByNumber",[e,!1])))}function r(t){return null==t?t:Number.parseInt(t,16)}function n(t){return null==t?t:"0x"+t.toString(16)}async function i(t,e,r){for(let n=0;n<3;n++)try{return await function(t,e){return new Promise((r,n)=>{t.sendAsync(e,(t,e)=>{t?n(t):e.error?n(e.error):e.result?r(e.result):n(Error("Result was empty"))})})}(t,{id:1,jsonrpc:"2.0",method:e,params:r})}catch(t){console.error(`provider.sendAsync failed: ${t.stack||t.message||t}`)}throw Error(`Block not found for params: ${JSON.stringify(r)}`)}t.exports=e},25789:function(t){function e(t){return t.sort((t,e)=>"latest"===t||"earliest"===e?1:"latest"===e||"earliest"===t?-1:r(t)-r(e))}function r(t){return null==t?t:Number.parseInt(t,16)}function n(t){if(null==t)return t;let 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(...t){return e(t)[0]},maxBlockRef:function(...t){let r=e(t);return r[r.length-1]},sortBlockRefs:e,bnToHex:function(t){return"0x"+t.toString(16)},blockRefIsNumber:function(t){return t&&!["earliest","latest","pending"].includes(t)},hexToInt:r,incrementHexInt:function(t){return null==t?t:n(r(t)+1)},intToHex:n,unsafeRandomBytes:function(t){let e="0x";for(let r=0;r<t;r++)e+=i()+i();return e}}},50755:function(t,e,r){let n=r(99317).WU,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=r(47845),o=r(81116),c=r(39907),u=r(6373),{intToHex:a,hexToInt:l}
16=r(25789);function h(t){return d(async(...e)=>a((await t(...e)).id))}function d(t){return i(async(e,r)=>{let n=await t.apply(null,e.params);r.result=n})}function f(t,e){let r=[];for(let e in t)r.push(t[e]);return r}t.exports=function({blockTracker:t,provider:e}){let r=0,i={},p=new n,b=function({mutex:t}){return e=>async(r,n,i,s)=>{(await t.acquire())(),e(r,n,i,s)}}({mutex:p}),g=s({eth_newFilter:b(h(m)),eth_newBlockFilter:b(h(v)),eth_newPendingTransactionFilter:b(h(_)),eth_uninstallFilter:b(d(S)),eth_getFilterChanges:b(d(w)),eth_getFilterLogs:b(d(E))}),y=async({oldBlock:t,newBlock:e})=>{if(0===i.length)return;let r=await p.acquire();try{await Promise.all(f(i).map(async r=>{try{await r.update({oldBlock:t,newBlock:e})}catch(t){console.error(t)}}))}catch(t){console.error(t)}r()};return g.newLogFilter=m,g.newBlockFilter=v,g.newPendingTransactionFilter=_,g.uninstallFilter=S,g.getFilterChanges=w,g.getFilterLogs=E,g.destroy=()=>{I()},g;async function m(t){let r=new o({provider:e,params:t});return await x(r),r}async function v(){let t=new c({provider:e});return await x(t),t}async function _(){let t=new u({provider:e});return await x(t),t}async function w(t){let e=l(t),r=i[e];if(!r)throw Error(`No filter for index "${e}"`);return r.getChangesAndClear()}async function E(t){let e=l(t),r=i[e];if(!r)throw Error(`No filter for index "${e}"`);let n=[];return"log"===r.type&&(n=r.getAllResults()),n}async function S(t){let e=l(t),r=!!i[e];return r&&await k(e),r}async function x(e){let n=f(i).length,s=await t.getLatestBlock();return await e.initialize({currentBlock:s}),i[++r]=e,e.id=r,e.idHex=a(r),C({prevFilterCount:n,newFilterCount:f(i).length}),r}async function k(t){let e=f(i).length;delete i[t],C({prevFilterCount:e,newFilterCount:f(i).length})}async function I(){let t=f(i).length;i={},C({prevFilterCount:t,newFilterCount:0})}function C({prevFilterCount:e,newFilterCount:r}){if(0===e&&r>0){t.on("sync",y);return}if(e>0&&0===r){t.removeListener("sync",y);return}}}},81116:function(t,e,r){let n=r(88614),i=r(82116),s=r(87530),{bnToHex:o,hexToInt:c,incrementHexInt:u,minBlockRef:a,blockRefIsNumber:l}=r(25789);class h extends s{constructor({provider:t,params:e}){super(),this.type="log",this.ethQuery=new n(t),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},e),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(t=>t.toLowerCase()))}async initialize({currentBlock:t}){let e=this.params.fromBlock;["latest","pending"].includes(e)&&(e=t),"earliest"===e&&(e="0x0"),this.params.fromBlock=e;let r=a(this.params.toBlock,t),n=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(n);this.addInitialResults(i)}async update({oldBlock:t,newBlock:e}){let r;r=t?u(t):e;let n=Object.assign({},this.params,{fromBlock:r,toBlock:e}),i=(await this._fetchLogs(n)).filter(t=>this.matchLog(t));this.addResults(i)}async _fetchLogs(t){return await i(e=>this.ethQuery.getLogs(t,e))()}matchLog(t){if(c(this.params.fromBlock)>=c(t.blockNumber)||l(this.params.toBlock)&&c(this.params.toBlock)<=c(t.blockNumber))return!1;let e=t.address&&t.address.toLowerCase();return(!this.params.address||!e||!!this.params.address.includes(e))&&this.params.topics.every((e,r)=>{let n=t.topics[r];if(!n)return!1;n=n.toLowerCase();let i=Array.isArray(e)?e:[e];return!!i.includes(null)||(i=i.map(t=>t.toLowerCase())).includes(n)})}}t.exports=h},35787:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(11735),i=r(66585),s=function(){function t(){this._semaphore=new i.default(1)}return t.prototype.acquire=function(){return n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,t.sent()[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=s},66585:function(t,e,r){"use strict";
16Object.defineProperty(e,"__esModule",{value:!0});var n=r(11735),i=function(){function t(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw Error("semaphore must be initialized to a positive value");this._value=t}return t.prototype.acquire=function(){var t=this,e=this.isLocked(),r=new Promise(function(e){return t._queue.push(e)});return e||this._dispatch(),r},t.prototype.runExclusive=function(t){return n.__awaiter(this,void 0,void 0,function(){var e,r,i;return n.__generator(this,function(n){switch(n.label){case 0:return[4,this.acquire()];case 1:r=(e=n.sent())[0],i=e[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,t(r)];case 3:return[2,n.sent()];case 4:return i(),[7];case 5:return[2]}})})},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw 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 r=!1;this._currentReleaser=function(){r||(r=!0,t._value++,t._dispatch())},e([this._value--,this._currentReleaser])}},t}();e.default=i},99317:function(t,e,r){"use strict";e.WU=void 0;var n=r(35787);Object.defineProperty(e,"WU",{enumerable:!0,get:function(){return n.default}}),r(66585),r(21359)},21359:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=void 0;var n=r(11735);e.withTimeout=function(t,e,r){var i=this;return void 0===r&&(r=Error("timeout")),{acquire:function(){return new Promise(function(s,o){return n.__awaiter(i,void 0,void 0,function(){var i,c;return n.__generator(this,function(n){switch(n.label){case 0:return i=!1,setTimeout(function(){i=!0,o(r)},e),[4,t.acquire()];case 1:return c=n.sent(),i?(Array.isArray(c)?c[1]:c)():s(c),[2]}})})})},runExclusive:function(t){return n.__awaiter(this,void 0,void 0,function(){var e,r;return n.__generator(this,function(n){switch(n.label){case 0:e=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:if(!Array.isArray(r=n.sent()))return[3,4];return e=r[1],[4,t(r[0])];case 3:case 5:return[2,n.sent()];case 4:return e=r,[4,t()];case 6:return[3,8];case 7:return e(),[7];case 8:return[2]}})})},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}},82116:function(t){"use strict";let e=(t,e,r,n)=>function(...i){return new e.promiseModule((s,o)=>{e.multiArgs?i.push((...t)=>{e.errorFirst?t[0]?o(t):(t.shift(),s(t)):s(t)}):e.errorFirst?i.push((t,e)=>{t?o(t):s(e)}):i.push(s),Reflect.apply(t,this===r?n:this,i)})},r=new WeakMap;t.exports=(t,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};let i=typeof t;if(!(null!==t&&("object"===i||"function"===i)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":i}\``);let s=(t,e)=>{let i=r.get(t);if(i||(i={},r.set(t,i)),e in i)return i[e];let s=t=>"string"==typeof t||"symbol"==typeof e?e===t:t.test(e),o=Reflect.getOwnPropertyDescriptor(t,e),c=void 0===o||o.writable||o.configurable,u=(n.include?n.include.some(s):!n.exclude.some(s))&&c;return i[e]=u,u},o=new WeakMap,c=new Proxy(t,{apply(t,r,i){let s=o.get(t);if(s)return Reflect.apply(s,r,i);let u=n.excludeMain?t:e(t,n,c,t);return o.set(t,u),Reflect.apply(u,r,i)},get(t,r){let i=t[r];if(!s(t,r)||i===Function.prototype[r])return i;let u=o.get(i);if(u)return u;if("function"==typeof i){let r=e(i,n,c,t);return o.set(i,r),r}return i}});return c}},23617:function(t,e,r){let n=r(96817).default,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=r(47845),o=r(50755),{unsafeRandomBytes:c,incrementHexInt:u}=r(25789),a=r(57495);function l(t){return null==t?null:{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,gasLimit:t.gasLimit,gasUsed:t.gasUsed,nonce:t.nonce,mixHash:t.mixHash,timestamp:t.timestamp,extraData:t.extraData}}t.exports=function({blockTracker:t,provider:e}){let r={},h=o({blockTracker:t,provider:e}),d=!1,f=new n,p=s({eth_subscribe:i(b),eth_unsubscribe:i(g)});return p.destroy=function(){for(let t in f.removeAllListeners(),r)r[t].destroy(),delete r[t];d=!0},{events:f,middleware:p};async function b(n,i){let s;if(d)throw Error("SubscriptionManager - attempting to use after destroying");let o=n.params[0],f=c(16);switch(o){case"newHeads":s=function({subId:r}){let n={type:o,destroy:async()=>{t.removeListener("sync",n.update)},update:async({oldBlock:t,newBlock:n})=>{let i=u(t);(await a({provider:e,fromBlock:i,toBlock:n})).map(l).filter(t=>null!==t).forEach(t=>{y(r,t)})}};return t.on("sync",n.update),n}({subId:f});break;case"logs":let p=n.params[1];s=function({subId:t,filter:e}){return e.on("update",e=>
16y(t,e)),{type:o,destroy:async()=>await h.uninstallFilter(e.idHex)}}({subId:f,filter:await h.newLogFilter(p)});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${o}"`)}r[f]=s,i.result=f}async function g(t,e){if(d)throw Error("SubscriptionManager - attempting to use after destroying");let n=t.params[0],i=r[n];if(!i){e.result=!1;return}delete r[n],await i.destroy(),e.result=!0}function y(t,e){f.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:t,result:e}})}}},6373:function(t,e,r){let n=r(92224),i=r(57495),{incrementHexInt:s}=r(25789);class o extends n{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){let e=s(t),r=await i({provider:this.provider,fromBlock:e,toBlock:t}),n=[];for(let t of r)n.push(...t.transactions);this.addResults(n)}}t.exports=o},88614:function(t,e,r){let n=r(44924),i=r(8728)();function s(t){this.currentProvider=t}function o(t){return function(){var e=[].slice.call(arguments),r=e.pop();this.sendAsync({method:t,params:e},r)}}function c(t,e){return function(){var r=[].slice.call(arguments),n=r.pop();r.length<t&&r.push("latest"),this.sendAsync({method:e,params:r},n)}}t.exports=s,s.prototype.getBalance=c(2,"eth_getBalance"),s.prototype.getCode=c(2,"eth_getCode"),s.prototype.getTransactionCount=c(2,"eth_getTransactionCount"),s.prototype.getStorageAt=c(3,"eth_getStorageAt"),s.prototype.call=c(2,"eth_call"),s.prototype.protocolVersion=o("eth_protocolVersion"),s.prototype.syncing=o("eth_syncing"),s.prototype.coinbase=o("eth_coinbase"),s.prototype.mining=o("eth_mining"),s.prototype.hashrate=o("eth_hashrate"),s.prototype.gasPrice=o("eth_gasPrice"),s.prototype.accounts=o("eth_accounts"),s.prototype.blockNumber=o("eth_blockNumber"),s.prototype.getBlockTransactionCountByHash=o("eth_getBlockTransactionCountByHash"),s.prototype.getBlockTransactionCountByNumber=o("eth_getBlockTransactionCountByNumber"),s.prototype.getUncleCountByBlockHash=o("eth_getUncleCountByBlockHash"),s.prototype.getUncleCountByBlockNumber=o("eth_getUncleCountByBlockNumber"),s.prototype.sign=o("eth_sign"),s.prototype.sendTransaction=o("eth_sendTransaction"),s.prototype.sendRawTransaction=o("eth_sendRawTransaction"),s.prototype.estimateGas=o("eth_estimateGas"),s.prototype.getBlockByHash=o("eth_getBlockByHash"),s.prototype.getBlockByNumber=o("eth_getBlockByNumber"),s.prototype.getTransactionByHash=o("eth_getTransactionByHash"),s.prototype.getTransactionByBlockHashAndIndex=o("eth_getTransactionByBlockHashAndIndex"),s.prototype.getTransactionByBlockNumberAndIndex=o("eth_getTransactionByBlockNumberAndIndex"),s.prototype.getTransactionReceipt=o("eth_getTransactionReceipt"),s.prototype.getUncleByBlockHashAndIndex=o("eth_getUncleByBlockHashAndIndex"),s.prototype.getUncleByBlockNumberAndIndex=o("eth_getUncleByBlockNumberAndIndex"),s.prototype.getCompilers=o("eth_getCompilers"),s.prototype.compileLLL=o("eth_compileLLL"),s.prototype.compileSolidity=o("eth_compileSolidity"),s.prototype.compileSerpent=o("eth_compileSerpent"),s.prototype.newFilter=o("eth_newFilter"),s.prototype.newBlockFilter=o("eth_newBlockFilter"),s.prototype.newPendingTransactionFilter=o("eth_newPendingTransactionFilter"),s.prototype.uninstallFilter=o("eth_uninstallFilter"),s.prototype.getFilterChanges=o("eth_getFilterChanges"),s.prototype.getFilterLogs=o("eth_getFilterLogs"),s.prototype.getLogs=o("eth_getLogs"),s.prototype.getWork=o("eth_getWork"),s.prototype.submitWork=o("eth_submitWork"),s.prototype.submitHashrate=o("eth_submitHashrate"),s.prototype.sendAsync=function(t,e){this.currentProvider.sendAsync(n({id:i(),jsonrpc:"2.0",params:[]},t),function(t,r){if(!t&&r.error&&(t=Error("EthQuery - RPC Error - "+r.error.message)),t)return e(t);e(null,r.result)})}},19930:function(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.JsonRpcEngine=void 0;let i=n(r(96817)),s=r(98215);class o extends i.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,e){if(e&&"function"!=typeof e)throw 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)}asMiddleware(){return async(t,e,r,n)=>{try{let[i,s,c]=await o._runAllMiddleware(t,e,this._middleware);
16if(s)return await o._runReturnHandlers(c),n(i);return r(async t=>{try{await o._runReturnHandlers(c)}catch(e){return t(e)}return t()})}catch(t){return n(t)}}}async _handleBatch(t,e){try{let r=await Promise.all(t.map(this._promiseHandle.bind(this)));if(e)return e(null,r);return r}catch(t){if(e)return e(t);throw t}}_promiseHandle(t){return new Promise(e=>{this._handle(t,(t,r)=>{e(r)})})}async _handle(t,e){if(!t||Array.isArray(t)||"object"!=typeof t){let r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return e(r,{id:void 0,jsonrpc:"2.0",error:r})}if("string"!=typeof t.method){let r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return e(r,{id:t.id,jsonrpc:"2.0",error:r})}let r=Object.assign({},t),n={id:r.id,jsonrpc:r.jsonrpc},i=null;try{await this._processRequest(r,n)}catch(t){i=t}return i&&(delete n.result,n.error||(n.error=s.serializeError(i))),e(i,n)}async _processRequest(t,e){let[r,n,i]=await o._runAllMiddleware(t,e,this._middleware);if(o._checkForCompletion(t,e,n),await o._runReturnHandlers(i),r)throw r}static async _runAllMiddleware(t,e,r){let n=[],i=null,s=!1;for(let c of r)if([i,s]=await o._runMiddleware(t,e,c,n),s)break;return[i,s,n.reverse()]}static _runMiddleware(t,e,r,n){return new Promise(i=>{let o=t=>{let r=t||e.error;r&&(e.error=s.serializeError(r)),i([r,!0])};try{r(t,e,r=>{e.error?o(e.error):(r&&("function"!=typeof r&&o(new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof r}" for request: 17${c(t)}`,{request:t})),n.push(r)),i([null,!1]))},o)}catch(t){o(t)}})}static async _runReturnHandlers(t){for(let e of t)await new Promise((t,r)=>{e(e=>e?r(e):t())})}static _checkForCompletion(t,e,r){if(!("result"in e)&&!("error"in e))throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: 18${c(t)}`,{request:t});if(!r)throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: 19${c(t)}`,{request:t})}}function c(t){return JSON.stringify(t,null,2)}e.JsonRpcEngine=o},77914:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createAsyncMiddleware=void 0,e.createAsyncMiddleware=function(t){return async(e,r,n,i)=>{let s;let o=new Promise(t=>{s=t}),c=null,u=!1,a=async()=>{u=!0,n(t=>{c=t,s()}),await o};try{await t(e,r,a),u?(await o,c(null)):i(null)}catch(t){c?c(t):i(t)}}}},65287:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createScaffoldMiddleware=void 0,e.createScaffoldMiddleware=function(t){return(e,r,n,i)=>{let s=t[e.method];return void 0===s?n():"function"==typeof s?s(e,r,n,i):(r.result=s,i())}}},20985:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getUniqueId=void 0;let r=Math.floor(4294967295*Math.random());e.getUniqueId=function(){return r=(r+1)%4294967295}},82644:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createIdRemapMiddleware=void 0;let n=r(20985);e.createIdRemapMiddleware=function(){return(t,e,r,i)=>{let s=t.id,o=n.getUniqueId();t.id=o,e.id=o,r(r=>{t.id=s,e.id=s,r()})}}},47845:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),i(r(82644),e),i(r(77914),e),i(r(65287),e),i(r(20985),e),i(r(19930),e),i(r(27140),e)},27140:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMiddleware=void 0;let n=r(19930);e.mergeMiddleware=function(t){let e=new n.JsonRpcEngine;return t.forEach(t=>e.push(t)),e.asMiddleware()}},56919:function(t,e,r){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&i&&"function"==typeof i.get?i.get:null,o=n&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=c&&u&&"function"==typeof u.get?u.get:null,l=c&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,m=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,x=Array.prototype.join,k=Array.prototype.slice,I=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===R?"object":"symbol")?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function O(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||E.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-I(-t):I(t);if(n!==t){var i=String(n),s=m.call(e,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var j=r(24654),P=j.custom,D=V(P)?P:null;function B(t,e,r){var n="double"===(r.quoteStyle||e)?'"':"'";return n+t+n}function F(t){return"[object Array]"===U(t)&&(!T||!("object"==typeof t&&T in t))}function $(t){return"[object RegExp]"===U(t)&&(!T||!("object"==typeof t&&T in t))}function V(t){if(R)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;
19if(!t||"object"!=typeof t||!N)return!1;try{return N.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,i,c){var u=n||{};if(z(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(z(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!z(u,"customInspect")||u.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(u,"indent")&&null!==u.indent&&" "!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=u.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength;return t(m.call(e,0,r.maxStringLength),r)+"... "+n+" more character"+(n>1?"s":"")}return B(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Z),"single",r)}(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var E=String(e);return _?O(e,E):E}if("bigint"==typeof e){var I=String(e)+"n";return _?O(e,I):I}var M=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=M&&M>0&&"object"==typeof e)return F(e)?"[Array]":"[Object]";var P=function(t,e){var r;if(" "===t.indent)r=" ";else{if("number"!=typeof t.indent||!(t.indent>0))return null;r=x.call(Array(t.indent+1)," ")}return{base:r,prev:x.call(Array(e+1),r)}}(u,i);if(void 0===c)c=[];else if(W(c,e)>=0)return"[Circular]";function H(e,r,n){if(r&&(c=k.call(c)).push(r),n){var s={depth:u.depth};return z(u,"quoteStyle")&&(s.quoteStyle=u.quoteStyle),t(e,s,i+1,c)}return t(e,u,i+1,c)}if("function"==typeof e&&!$(e)){var K=function(t){if(t.name)return t.name;var e=y.call(g.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),X=Y(e,H);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(X.length>0?" { "+x.call(X,", ")+" }":"")}if(V(e)){var tt=R?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(e);return"object"!=typeof e||R?tt:q(tt)}if(e&&"object"==typeof e&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)){for(var te,tr="<"+w.call(String(e.nodeName)),tn=e.attributes||[],ti=0;ti<tn.length;ti++)tr+=" "+tn[ti].name+"="+B((te=tn[ti].value,v.call(String(te),/"/g,""")),"double",u);return tr+=">",e.childNodes&&e.childNodes.length&&(tr+="..."),tr+="</"+w.call(String(e.nodeName))+">"}if(F(e)){if(0===e.length)return"[]";var ts=Y(e,H);return P&&!function(t){for(var e=0;e<t.length;e++)if(W(t[e],"\n")>=0)return!1;return!0}(ts)?"["+Q(ts,P)+"]":"[ "+x.call(ts,", ")+" ]"}if("[object Error]"===U(e)&&(!T||!("object"==typeof e&&T in e))){var to=Y(e,H);return"cause"in Error.prototype||!("cause"in e)||A.call(e,"cause")?0===to.length?"["+String(e)+"]":"{ ["+String(e)+"] "+x.call(to,", ")+" }":"{ ["+String(e)+"] "+x.call(S.call("[cause]: "+H(e.cause),to),", ")+" }"}if("object"==typeof e&&b){if(D&&"function"==typeof e[D]&&j)return j(e,{depth:M-i});if("symbol"!==b&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{a.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var tc=[];return o&&o.call(e,function(t,r){tc.push(H(r,e,!0)+" => "+H(t,e))}),G("Map",s.call(e),tc,P)}if(function(t){if(!a||!t||"object"!=typeof t)return!1;try{a.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var tu=[];return l&&l.call(e,function(t){tu.push(H(t,e))}),G("Set",a.call(e),tu,P)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return J("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return J("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return J("WeakRef");if("[object Number]"===U(e)&&(!T||!("object"==typeof e&&T in e)))return q(H(Number(e)));if(function(t){if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}(e))return q(H(C.call(e)));if("[object Boolean]"===U(e)&&(!T||!("object"==typeof e&&T in e)))return q(p.call(e));if("[object String]"===U(e)&&(!T||!("object"==typeof e&&T in e)))return q(H(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===r.g)return"{ [object globalThis] }";if(!("[object Date]"===U(e)&&(!T||!("object"==typeof e&&T in e)))&&!$(e)){var ta=Y(e,H),tl=L?L(e)===Object.prototype:e instanceof Object||e.constructor===Object,th=e instanceof Object?"":"null prototype",td=!tl&&T&&Object(e)===e&&T in e?m.call(U(e),8,-1):th?"Object":"",tf=(tl||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(td||th?"["+x.call(S.call([],td||[],th||[]),": ")+"] ":"");return 0===ta.length?tf+"{}":P?tf+"{"+Q(ta,P)+"}":tf+"{ "+x.call(ta,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function z(t,e){return H.call(t,e)}function U(t){return b.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return -1}function Z(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+_.call(e.toString(16))}function q(t){return"Object("+t+")"}function J(t){return t+" { ? }"}function G(t,e,r,n){return t+" ("+e+") {"+(n?Q(r,n):x.call(r,", "))+"}"}function Q(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+x.call(t,","+r)+"\n"+e.prev}function Y(t,e){var r,n=F(t),i=[];if(n){i.length=t.length;for(var s=0;s<t.length;s++)i[s]=z(t,s)?e(t[s],t):""}var o="function"==typeof M?M(t):[];if(R){r={};for(var c=0;c<o.length;c++)r["$"+o[c]]=o[c]}for(var u in t)z(t,u)&&(!n||String(Number(u))!==u||!(u<t.length))&&(R&&r["$"+u]instanceof Symbol||(E.call(/[^\w$]/,u)?
19i.push(e(u,t)+": "+e(t[u],t)):i.push(u+": "+e(t[u],t))));if("function"==typeof M)for(var a=0;a<o.length;a++)A.call(t,o[a])&&i.push("["+e(o[a])+"]: "+e(t[o[a]],t));return i}},57764:function(t,e,r){"use strict";r.r(e),r.d(e,{Component:function(){return k},Fragment:function(){return x},cloneElement:function(){return $},createContext:function(){return V},createElement:function(){return w},createRef:function(){return S},h:function(){return w},hydrate:function(){return F},isValidElement:function(){return o},options:function(){return i},render:function(){return B},toChildArray:function(){return function t(e,r){return r=r||[],null==e||"boolean"==typeof e||(m(e)?e.some(function(e){t(e,r)}):r.push(e)),r}}});var n,i,s,o,c,u,a,l,h,d,f,p,b={},g=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function v(t,e){for(var r in e)t[r]=e[r];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function w(t,e,r){var i,s,o,c={};for(o in e)"key"==o?i=e[o]:"ref"==o?s=e[o]:c[o]=e[o];if(arguments.length>2&&(c.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===c[o]&&(c[o]=t.defaultProps[o]);return E(t,c,i,s,null)}function E(t,e,r,n,o){var c={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=i.vnode&&i.vnode(c),c}function S(){return{current:null}}function x(t){return t.children}function k(t,e){this.props=t,this.context=e}function I(t,e){if(null==e)return t.__?I(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?I(t):null}function C(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!M.__r++||u!==i.debounceRendering)&&((u=i.debounceRendering)||a)(M)}function M(){var t,e,r,n,s,o,u,a;for(c.sort(l);t=c.shift();)t.__d&&(e=c.length,n=void 0,o=(s=(r=t).__v).__e,u=[],a=[],r.__P&&((n=v({},s)).__v=s.__v+1,i.vnode&&i.vnode(n),L(r.__P,n,s,r.__n,void 0!==r.__P.ownerSVGElement,32&s.__u?[o]:null,u,null==o?I(s):o,!!(32&s.__u),a),n.__v=s.__v,n.__.__k[n.__i]=n,O(u,n,a),n.__e!=o&&function t(e){var r,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,r=0;r<e.__k.length;r++)if(null!=(n=e.__k[r])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return t(e)}}(n)),c.length>e&&c.sort(l));M.__r=0}function N(t,e,r,n,i,s,o,c,u,a,l){var h,d,f,p,y,v=n&&n.__k||g,_=e.length;for(r.__d=u,function(t,e,r){var n,i,s,o,c,u=e.length,a=r.length,l=a,h=0;for(t.__k=[],n=0;n<u;n++)o=n+h,null!=(i=t.__k[n]=null==(i=e[n])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?E(null,i,null,null,null):m(i)?E(x,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?E(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=t,i.__b=t.__b+1,c=function(t,e,r,n){var i=t.key,s=t.type,o=r-1,c=r+1,u=e[r];if(null===u||u&&i==u.key&&s===u.type&&0==(131072&u.__u))return r;if(n>(null!=u&&0==(131072&u.__u)?1:0))for(;o>=0||c<e.length;){if(o>=0){if((u=e[o])&&0==(131072&u.__u)&&i==u.key&&s===u.type)return o;o--}if(c<e.length){if((u=e[c])&&0==(131072&u.__u)&&i==u.key&&s===u.type)return c;c++}}return -1}(i,r,o,l),i.__i=c,s=null,-1!==c&&(l--,(s=r[c])&&(s.__u|=131072)),null==s||null===s.__v?(-1==c&&h--,"function"!=typeof i.type&&(i.__u|=65536)):c!==o&&(c===o+1?h++:c>o?l>u-o?h+=c-o:h--:c<o?c==o-1&&(h=c-o):h=0,c!==n+h&&(i.__u|=65536))):(s=r[o])&&null==s.key&&s.__e&&0==(131072&s.__u)&&(s.__e==t.__d&&(t.__d=I(s)),P(s,s,!1),r[o]=null,l--);if(l)for(n=0;n<a;n++)null!=(s=r[n])&&0==(131072&s.__u)&&(s.__e==t.__d&&(t.__d=I(s)),P(s,s))}(r,e,v),u=r.__d,h=0;h<_;h++)null!=(f=r.__k[h])&&"boolean"!=typeof f&&"function"!=typeof f&&(d=-1===f.__i?b:v[f.__i]||b,f.__i=h,L(t,f,d,i,s,o,c,u,a,l),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&j(d.ref,null,f),l.push(f.ref,f.__c||p,f)),null==y&&null!=p&&(y=p),65536&f.__u||d.__k===f.__k?(u&&!u.isConnected&&(u=I(d)),u=function t(e,r,n){var i,s;if("function"==typeof e.type){for(i=e.__k,s=0;i&&s<i.length;s++)i[s]&&(i[s].__=e,r=t(i[s],r,n));return r}e.__e!=r&&(n.insertBefore(e.__e,r||null),r=e.__e);do r=r&&r.nextSibling;
vendor: 7,365 bytes, line 19
19while(null!=r&&8===r.nodeType);return r}(f,u,t)):"function"==typeof f.type&&void 0!==f.__d?u=f.__d:p&&(u=p.nextSibling),f.__d=void 0,f.__u&=-196609);r.__d=u,r.__e=y}function R(t,e,r){"-"===e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||y.test(e)?r:r+"px"}function T(t,e,r,n,i){var s;e:if("style"===e){if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||R(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||R(t.style,e,r[e])}}else if("o"===e[0]&&"n"===e[1])s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase() in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=r,r?n?r.u=n.u:(r.u=h,t.addEventListener(e,s?f:d,s)):t.removeEventListener(e,s?f:d,s);else{if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&e in t)try{t[e]=null==r?"":r;break e}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,r))}}function A(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e.t)e.t=h++;else if(e.t<r.u)return;return r(i.event?i.event(e):e)}}}function L(t,e,r,s,o,c,u,a,l,h){var d,f,p,g,y,w,E,S,C,M,R,A,L,O,j,P=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(l=!!(32&r.__u),c=[a=e.__e=r.__e]),(d=i.__b)&&d(e);e:if("function"==typeof P)try{if(S=e.props,C=(d=P.contextType)&&s[d.__c],M=d?C?C.props.value:d.__:s,r.__c?E=(f=e.__c=r.__c).__=f.__E:("prototype"in P&&P.prototype.render?e.__c=f=new P(S,M):(e.__c=f=new k(S,M),f.constructor=P,f.render=D),C&&C.sub(f),f.props=S,f.state||(f.state={}),f.context=M,f.__n=s,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=v({},f.__s)),v(f.__s,P.getDerivedStateFromProps(S,f.__s))),g=f.props,y=f.state,f.__v=e,p)null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==P.getDerivedStateFromProps&&S!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(S,M),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(S,f.__s,M)||e.__v===r.__v)){for(e.__v!==r.__v&&(f.props=S,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.forEach(function(t){t&&(t.__=e)}),R=0;R<f._sb.length;R++)f.__h.push(f._sb[R]);f._sb=[],f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(S,f.__s,M),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(g,y,w)})}if(f.context=M,f.props=S,f.__P=t,f.__e=!1,A=i.__r,L=0,"prototype"in P&&P.prototype.render){for(f.state=f.__s,f.__d=!1,A&&A(e),d=f.render(f.props,f.state,f.context),O=0;O<f._sb.length;O++)f.__h.push(f._sb[O]);f._sb=[]}else do f.__d=!1,A&&A(e),d=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++L<25);f.state=f.__s,null!=f.getChildContext&&(s=v(v({},s),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(w=f.getSnapshotBeforeUpdate(g,y)),N(t,m(j=null!=d&&d.type===x&&null==d.key?d.props.children:d)?j:[j],e,r,s,o,c,u,a,l,h),f.base=e.__e,e.__u&=-161,f.__h.length&&u.push(f),E&&(f.__E=f.__=null)}catch(t){e.__v=null,l||null!=c?(e.__e=a,e.__u|=l?160:32,c[c.indexOf(a)]=null):(e.__e=r.__e,e.__k=r.__k),i.__e(t,e,r)}else null==c&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=function(t,e,r,i,s,o,c,u,a){var l,h,d,f,p,g,y,v=r.props,w=e.props,E=e.type;if("svg"===E&&(s=!0),null!=o){for(l=0;l<o.length;l++)if((p=o[l])&&"setAttribute"in p==!!E&&(E?p.localName===E:3===p.nodeType)){t=p,o[l]=null;break}}if(null==t){if(null===E)return document.createTextNode(w);t=s?document.createElementNS("http://www.w3.org/2000/svg",E):document.createElement(E,w.is&&w),o=null,u=!1}if(null===E)v===w||u&&t.data===w||(t.data=w);else{if(o=o&&n.call(t.childNodes),v=r.props||b,!u&&null!=o)for(v={},l=0;l<t.attributes.length;l++)v[(p=t.attributes[l]).name]=p.value;for(l in v)if(p=v[l],"children"==l);else if("dangerouslySetInnerHTML"==l)d=p;else if("key"!==l&&!(l in w)){if("value"==l&&"defaultValue"in w||"checked"==l&&"defaultChecked"in w)continue;T(t,l,null,p,s)}for(l in w)p=w[l],"children"==l?f=p:"dangerouslySetInnerHTML"==l?h=p:"value"==l?g=p:"checked"==l?y=p:"key"===l||u&&"function"!=typeof p||v[l]===p||T(t,l,p,v[l],s);if(h)u||d&&(h.__html===d.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(d&&(t.innerHTML=""),N(t,m(f)?f:[f],e,r,i,s&&"foreignObject"!==E,o,c,o?o[0]:r.__k&&I(r,0),u,a),null!=o)for(l=o.length;l--;)null!=o[l]&&_(o[l]);u||(l="value",void 0===g||g===t[l]&&("progress"!==E||g)&&("option"!==E||g===v[l])||T(t,l,g,v[l],!1),l="checked",void 0!==y&&y!==t[l]&&T(t,l,y,v[l],!1))}return t}(r.__e,e,r,s,o,c,u,l,h);(d=i.diffed)&&d(e)}function O(t,e,r){e.__d=void 0;for(var n=0;n<r.length;n++)j(r[n],r[++n],r[++n]);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,r){try{"function"==typeof t?t(e):t.current=e}catch(t){i.__e(t,r)}}function P(t,e,r){var n,s;if(i.unmount&&i.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||j(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){i.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(s=0;s<n.length;s++)n[s]&&P(n[s],e,r||"function"!=typeof t.type);r||null==t.__e||_(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function D(t,e,r){return this.constructor(t,r)}function B(t,e,r){var s,o,c,u;i.__&&i.__(t,e),o=(s="function"==typeof r)?null:r&&r.__k||e.__k,c=[],u=[],L(e,t=(!s&&r||e).__k=w(x,null,[t]),o||b,b,void 0!==e.ownerSVGElement,!s&&r?[r]:o?null:e.firstChild?n.call(e.childNodes):null,c,!s&&r?r:o?o.__e:e.firstChild,s,u),O(c,t,u)}function F(t,e){B(t,e,F)}function $(t,e,r){var i,s,o,c,u=v({},t.props);for(o in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)"key"==o?i=e[o]:"ref"==o?s=e[o]:u[o]=void 0===e[o]&&void 0!==c?c[o]:e[o];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),E(t.type,u,i||t.key,s||t.ref,null)}function V(t,e){var r={__c:e="__cC"+p++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some(function(t){t.__e=!0,C(t)})},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}n=g.slice,i={__e:function(t,e,r,n){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,n||{}),o=i.__d),o)return i.__E=i}catch(e){t=e}throw t}},s=0,o=function(t){return null!=t&&null==t.constructor},k.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof t&&(t=t(v({},r),this.props)),t&&v(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),C(this))},k.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),C(this))},k.prototype.render=x,c=[],a="function"==typeof Promise?Promise.prototype.then.bind(Prom
19ise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},M.__r=0,h=0,d=A(!1),f=A(!0),p=0},83148:function(t,e,r){"use strict";r.r(e),r.d(e,{useCallback:function(){return I},useContext:function(){return C},useDebugValue:function(){return M},useEffect:function(){return w},useErrorBoundary:function(){return N},useId:function(){return R},useImperativeHandle:function(){return x},useLayoutEffect:function(){return E},useMemo:function(){return k},useReducer:function(){return _},useRef:function(){return S},useState:function(){return v}});var n,i,s,o,c=r(57764),u=0,a=[],l=[],h=c.options,d=h.__b,f=h.__r,p=h.diffed,b=h.__c,g=h.unmount,y=h.__;function m(t,e){h.__h&&h.__h(i,t,u||e),u=0;var r=i.__H||(i.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:l}),r.__[t]}function v(t){return u=1,_(P,t)}function _(t,e,r){var s=m(n++,2);if(s.t=t,!s.__c&&(s.__=[r?r(e):P(void 0,e),function(t){var e=s.__N?s.__N[0]:s.__[0],r=s.t(e,t);e!==r&&(s.__N=[r,s.__[1]],s.__c.setState({}))}],s.__c=i,!i.u)){var o=function(t,e,r){if(!s.__c.__H)return!0;var n=s.__c.__H.__.filter(function(t){return!!t.__c});if(n.every(function(t){return!t.__N}))return!c||c.call(this,t,e,r);var i=!1;return n.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}}),!(!i&&s.__c.props===t)&&(!c||c.call(this,t,e,r))};i.u=!0;var c=i.shouldComponentUpdate,u=i.componentWillUpdate;i.componentWillUpdate=function(t,e,r){if(this.__e){var n=c;c=void 0,o(t,e,r),c=n}u&&u.call(this,t,e,r)},i.shouldComponentUpdate=o}return s.__N||s.__}function w(t,e){var r=m(n++,3);!h.__s&&j(r.__H,e)&&(r.__=t,r.i=e,i.__H.__h.push(r))}function E(t,e){var r=m(n++,4);!h.__s&&j(r.__H,e)&&(r.__=t,r.i=e,i.__h.push(r))}function S(t){return u=5,k(function(){return{current:t}},[])}function x(t,e,r){u=6,E(function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0},null==r?r:r.concat(t))}function k(t,e){var r=m(n++,7);return j(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function I(t,e){return u=8,k(function(){return t},e)}function C(t){var e=i.context[t.__c],r=m(n++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(i)),e.props.value):t.__}function M(t,e){h.useDebugValue&&h.useDebugValue(e?e(t):t)}function N(t){var e=m(n++,10),r=v();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t,n){e.__&&e.__(t,n),r[1](t)}),[r[0],function(){r[1](void 0)}]}function R(){var t=m(n++,11);if(!t.__){for(var e=i.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__}function T(){for(var t;t=a.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(L),t.__H.__h.forEach(O),t.__H.__h=[]}catch(e){t.__H.__h=[],h.__e(e,t.__v)}}h.__b=function(t){i=null,d&&d(t)},h.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),y&&y(t,e)},h.__r=function(t){f&&f(t),n=0;var e=(i=t.__c).__H;e&&(s===i?(e.__h=[],i.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=l,t.__N=t.i=void 0})):(e.__h.forEach(L),e.__h.forEach(O),e.__h=[],n=0)),s=i},h.diffed=function(t){p&&p(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==a.push(e)&&o===h.requestAnimationFrame||((o=h.requestAnimationFrame)||function(t){var e,r=function(){clearTimeout(n),A&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);A&&(e=requestAnimationFrame(r))})(T)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==l&&(t.__=t.__V),t.i=void 0,t.__V=l})),s=i=null},h.__c=function(t,e){e.some(function(t){try{t.__h.forEach(L),t.__h=t.__h.filter(function(t){return!t.__||O(t)})}catch(r){e.some(function(t){t.__h&&(t.__h=[])}),e=[],h.__e(r,t.__v)}}),b&&b(t,e)},h.unmount=function(t){g&&g(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach(function(t){try{L(t)}catch(t){e=t}}),r.__H=void 0,e&&h.__e(e,r.__v))};var A="function"==typeof requestAnimationFrame;function L(t){var e=i,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),i=e}function O(t){var e=i;t.__c=t.__(),i=e}function j(t,e){return!t||t.length!==e.length||e.some(function(e,r){return e!==t[r]})}function P(t,e){return"function"==typeof e?e(t):e}},3462:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},97334:function(t,e,r){"use strict";var n=r(38489),i=r(69864),s=r(3462);t.exports={formats:s,parse:i,stringify:n}},69864:function(t,e,r){"use strict";var n=r(65600),i=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},c=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},u=function(t,e){var r={__proto__:null},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,l=u.split(e.delimiter,a),h=-1,d=e.charset;if(e.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?d="utf-8":"utf8=%26%2310003%3B"===l[f]&&(d="iso-8859-1"),h=f,f=l.length);for(f=0;f<l.length;++f)if(f!==h){var f,p,b,g=l[f],y=g.indexOf("]="),m=-1===y?g.indexOf("="):y+1;-1===m?(p=e.decoder(g,o.decoder,d,"key"),b=e.strictNullHandling?null:""):(p=e.decoder(g.slice(0,m),o.decoder,d,"key"),b=n.maybeMap(c(g.slice(m+1),e),function(t){return e.decoder(t,o.decoder,d,"value")})),b&&e.interpretNumericEntities&&"iso-8859-1"===d&&(b=b.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})),g.indexOf("[]=")>-1&&(b=s(b)?[b]:b);var v=i.call(r,p);
19v&&"combine"===e.duplicates?r[p]=n.combine(r[p],b):v&&"last"!==e.duplicates||(r[p]=b)}return r},a=function(t,e,r,n){for(var i=n?e:c(e,r),s=t.length-1;s>=0;--s){var o,u=t[s];if("[]"===u&&r.parseArrays)o=r.allowEmptyArrays&&""===i?[]:[].concat(i);else{o=r.plainObjects?Object.create(null):{};var a="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=r.decodeDotInKeys?a.replace(/%2E/g,"."):a,h=parseInt(l,10);r.parseArrays||""!==l?!isNaN(h)&&u!==l&&String(h)===l&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(o=[])[h]=i:"__proto__"!==l&&(o[l]=i):o={0:i}}i=o}return i},l=function(t,e,r,n){if(t){var s=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,c=r.depth>0&&/(\[[^[\]]*])/.exec(s),u=c?s.slice(0,c.index):s,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var h=0;r.depth>0&&null!==(c=o.exec(s))&&h<r.depth;){if(h+=1,!r.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(c[1])}return c&&l.push("["+s.slice(c.index)+"]"),a(l,e,r,n)}},h=function(t){if(!t)return o;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?o.charset:t.charset,r=void 0===t.duplicates?o.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||o.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:o.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}};t.exports=function(t,e){var r=h(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof t?u(t,r):t,s=r.plainObjects?Object.create(null):{},o=Object.keys(i),c=0;c<o.length;++c){var a=o[c],d=l(a,i[a],r,"string"==typeof t);s=n.merge(s,d,r)}return!0===r.allowSparse?s:n.compact(s)}},38489:function(t,e,r){"use strict";var n=r(16689),i=r(65600),s=r(3462),o=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,a=Array.prototype.push,l=function(t,e){a.apply(t,u(e)?e:[e])},h=Date.prototype.toISOString,d=s.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:s.formatters[d],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p={},b=function t(e,r,s,o,c,a,h,d,b,g,y,m,v,_,w,E,S,x){for(var k,I,C=e,M=x,N=0,R=!1;void 0!==(M=M.get(p))&&!R;){var T=M.get(e);if(N+=1,void 0!==T){if(T===N)throw RangeError("Cyclic object value");R=!0}void 0===M.get(p)&&(N=0)}if("function"==typeof g?C=g(r,C):C instanceof Date?C=v(C):"comma"===s&&u(C)&&(C=i.maybeMap(C,function(t){return t instanceof Date?v(t):t})),null===C){if(a)return b&&!E?b(r,f.encoder,S,"key",_):r;C=""}if("string"==typeof(k=C)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||i.isBuffer(C))return b?[w(E?r:b(r,f.encoder,S,"key",_))+"="+w(b(C,f.encoder,S,"value",_))]:[w(r)+"="+w(String(C))];var A=[];
19if(void 0===C)return A;if("comma"===s&&u(C))E&&b&&(C=i.maybeMap(C,b)),I=[{value:C.length>0?C.join(",")||null:void 0}];else if(u(g))I=g;else{var L=Object.keys(C);I=y?L.sort(y):L}var O=d?r.replace(/\./g,"%2E"):r,j=o&&u(C)&&1===C.length?O+"[]":O;if(c&&u(C)&&0===C.length)return j+"[]";for(var P=0;P<I.length;++P){var D=I[P],B="object"==typeof D&&void 0!==D.value?D.value:C[D];if(!h||null!==B){var F=m&&d?D.replace(/\./g,"%2E"):D,$=u(C)?"function"==typeof s?s(j,F):j:j+(m?"."+F:"["+F+"]");x.set(e,N);var V=n();V.set(p,x),l(A,t(B,$,s,o,c,a,h,d,"comma"===s&&E&&u(C)?null:b,g,y,m,v,_,w,E,S,V))}}return A},g=function(t){if(!t)return f;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw TypeError("Encoder has to be a function.");var e,r=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=s.default;if(void 0!==t.format){if(!o.call(s.formatters,t.format))throw TypeError("Unknown format option provided.");n=t.format}var i=s.formatters[n],a=f.filter;if(("function"==typeof t.filter||u(t.filter))&&(a=t.filter),e=t.arrayFormat in c?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===t.allowDots?!0===t.encodeDotInKeys||f.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:e,charset:r,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:a,format:n,formatter:i,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}};t.exports=function(t,e){var r,i=t,s=g(e);"function"==typeof s.filter?i=(0,s.filter)("",i):u(s.filter)&&(r=s.filter);var o=[];if("object"!=typeof i||null===i)return"";var a=c[s.arrayFormat],h="comma"===a&&s.commaRoundTrip;r||(r=Object.keys(i)),s.sort&&r.sort(s.sort);for(var d=n(),f=0;f<r.length;++f){var p=r[f];s.skipNulls&&null===i[p]||l(o,b(i[p],p,a,h,s.allowEmptyArrays,s.strictNullHandling,s.skipNulls,s.encodeDotInKeys,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,d))}var y=o.join(s.delimiter),m=!0===s.addQueryPrefix?"?":"";return s.charsetSentinel&&("iso-8859-1"===s.charset?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),y.length>0?m+y:""}},65600:function(t,e,r){"use strict";var n=r(3462),i=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(s(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);e.obj[e.prop]=n}}},u=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r};t.exports={arrayToObject:u,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return t[r]=e[r],t},t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var i=e[n],s=i.obj[i.prop],o=Object.keys(s),u=0;u<o.length;++u){var a=o[u],l=s[a];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:s,prop:a}),r.push(l))}return c(e),t},decode:function(t,e,r){var n=t.replace(/\+/g," ");
19if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(t){return n}},encode:function(t,e,r,i,s){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var u="",a=0;a<c.length;a+=1024){for(var l=c.length>=1024?c.slice(a,a+1024):c,h=[],d=0;d<l.length;++d){var f=l.charCodeAt(d);if(45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===n.RFC1738&&(40===f||41===f)){h[h.length]=l.charAt(d);continue}if(f<128){h[h.length]=o[f];continue}if(f<2048){h[h.length]=o[192|f>>6]+o[128|63&f];continue}if(f<55296||f>=57344){h[h.length]=o[224|f>>12]+o[128|f>>6&63]+o[128|63&f];continue}d+=1,f=65536+((1023&f)<<10|1023&l.charCodeAt(d)),h[h.length]=o[240|f>>18]+o[128|f>>12&63]+o[128|f>>6&63]+o[128|63&f]}u+=h.join("")}return u},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(s(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,n){if(!r)return e;if("object"!=typeof r){if(s(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var o=e;return(s(e)&&!s(r)&&(o=u(e,n)),s(e)&&s(r))?(r.forEach(function(r,s){if(i.call(e,s)){var o=e[s];o&&"object"==typeof o&&r&&"object"==typeof r?e[s]=t(o,r,n):e.push(r)}else e[s]=r}),e):Object.keys(r).reduce(function(e,s){var o=r[s];return i.call(e,s)?e[s]=t(e[s],o,n):e[s]=o,e},o)}}},40637:function(t,e,r){"use strict";r.r(e),r.d(e,{ArgumentOutOfRangeError:function(){return R.W},AsyncSubject:function(){return l.c},BehaviorSubject:function(){return u.X},ConnectableObservable:function(){return i.c},EMPTY:function(){return q.E},EmptyError:function(){return T.K},GroupedObservable:function(){return s.T},NEVER:function(){return to},Notification:function(){return k.P},NotificationKind:function(){return k.W},ObjectUnsubscribedError:function(){return A.N},Observable:function(){return n.y},ReplaySubject:function(){return a.t},Scheduler:function(){return E.b},Subject:function(){return c.xQ},Subscriber:function(){return x.L},Subscription:function(){return S.w},TimeoutError:function(){return O.W},UnsubscriptionError:function(){return L.B},VirtualAction:function(){return w},VirtualTimeScheduler:function(){return _},animationFrame:function(){return v},animationFrameScheduler:function(){return m},asap:function(){return h.e},asapScheduler:function(){return h.E},async:function(){return d.P},asyncScheduler:function(){return d.z},bindCallback:function(){return function t(e,r,i){if(r){if(!(0,B.K)(r))return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return t(e,i).apply(void 0,n).pipe((0,j.U)(function(t){return(0,D.k)(t)?r.apply(void 0,t):r(t)}))};i=r}return function(){for(var t,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var o=this,c={context:o,subject:t,callbackFunc:e,scheduler:i};return new n.y(function(n){if(i)return i.schedule(F,0,{args:r,subscriber:n,params:c});if(!t){t=new l.c;try{e.apply(o,r.concat([function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.next(e.length<=1?e[0]:e),t.complete()}]))}catch(e){(0,P._)(t)?t.error(e):console.warn(e)}}return t.subscribe(n)})}}},bindNodeCallback:function(){return function t(e,r,i){if(r){if(!(0,B.K)(r))return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return t(e,i).apply(void 0,n).pipe((0,j.U)(function(t){return(0,D.k)(t)?r.apply(void 0,t):r(t)}))};i=r}return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var s={subject:void 0,args:t,callbackFunc:e,scheduler:i,context:this};return new n.y(function(r){var n=s.context,o=s.subject;if(i)return i.schedule(V,0,{params:s,subscriber:r,context:n});
19if(!o){o=s.subject=new l.c;try{e.apply(n,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();if(r){o.error(r);return}o.next(t.length<=1?t[0]:t),o.complete()}]))}catch(t){(0,P._)(o)?o.error(t):console.warn(t)}}return o.subscribe(r)})}}},combineLatest:function(){return U.aj},concat:function(){return W.z},config:function(){return tx.v},defer:function(){return Z.P},empty:function(){return q.c},forkJoin:function(){return Q},from:function(){return G.D},fromEvent:function(){return function t(e,r,i,s){return((0,K.m)(i)&&(s=i,i=void 0),s)?t(e,r,i).pipe((0,j.U)(function(t){return(0,D.k)(t)?s.apply(void 0,t):s(t)})):new n.y(function(t){(function t(e,r,n,i,s){if(e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener)e.addEventListener(r,n,s),o=function(){return e.removeEventListener(r,n,s)};else if(e&&"function"==typeof e.on&&"function"==typeof e.off)e.on(r,n),o=function(){return e.off(r,n)};else if(e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener)e.addListener(r,n),o=function(){return e.removeListener(r,n)};else if(e&&e.length)for(var o,c=0,u=e.length;c<u;c++)t(e[c],r,n,i,s);else throw TypeError("Invalid event target");i.add(o)})(e,r,function(e){arguments.length>1?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,i)})}},fromEventPattern:function(){return function t(e,r,i){return i?t(e,r).pipe((0,j.U)(function(t){return(0,D.k)(t)?i.apply(void 0,t):i(t)})):new n.y(function(t){var n,i=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.next(1===e.length?e[0]:e)};try{n=e(i)}catch(e){t.error(e);return}if((0,K.m)(r))return function(){return r(i,n)}})}},generate:function(){return X},identity:function(){return M.y},iif:function(){return te},interval:function(){return tn},isObservable:function(){return N},merge:function(){return ts.T},never:function(){return tc},noop:function(){return C.Z},observable:function(){return o.L},of:function(){return tu.of},onErrorResumeNext:function(){return ta},pairs:function(){return tl},partition:function(){return tb},pipe:function(){return I.z},queue:function(){return f.c},queueScheduler:function(){return f.N},race:function(){return tg.S3},range:function(){return ty},scheduled:function(){return tS.x},throwError:function(){return tv._},timer:function(){return t_.H},using:function(){return tw},zip:function(){return tE.$R}});var n=r(44675),i=r(43135),s=r(96419),o=r(85695),c=r(13203),u=r(7477),a=r(551),l=r(64354),h=r(75483),d=r(62121),f=r(76916),p=r(40223),b=r(45780),g=function(t){function e(e,r){var n=t.call(this,e,r)||this;
19return n.scheduler=e,n.work=r,n}return p.ZT(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(b.o),y=r(4340),m=new(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,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(y.v))(g),v=m,_=function(t){function e(e,r){void 0===e&&(e=w),void 0===r&&(r=Number.POSITIVE_INFINITY);var n=t.call(this,e,function(){return n.frame})||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return p.ZT(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(y.v),w=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;
19return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return p.ZT(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},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}(b.o),E=r(79194),S=r(47194),x=r(43141),k=r(38632),I=r(69124),C=r(6883),M=r(95624);function N(t){return!!t&&(t instanceof n.y||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var R=r(75131),T=r(18009),A=r(6772),L=r(97681),O=r(97995),j=r(63079),P=r(37038),D=r(6074),B=r(49801);function F(t){var e=this,r=t.args,n=t.subscriber,i=t.params,s=i.callbackFunc,o=i.context,c=i.scheduler,u=i.subject;if(!u){u=i.subject=new l.c;try{s.apply(o,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(c.schedule($,0,{value:n,subject:u}))}]))}catch(t){u.error(t)}}this.add(u.subscribe(n))}function $(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function V(t){var e=this,r=t.params,n=t.subscriber,i=t.context,s=r.callbackFunc,o=r.args,c=r.scheduler,u=r.subject;if(!u){u=r.subject=new l.c;try{s.apply(i,o.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(c.schedule(z,0,{err:n,subject:u}));else{var i=t.length<=1?t[0]:t;e.add(c.schedule(H,0,{value:i,subject:u}))}}]))}catch(t){this.add(c.schedule(z,0,{err:t,subject:u}))}}this.add(u.subscribe(n))}function H(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function z(t){var e=t.err;t.subject.error(e)}var U=r(86606),W=r(96353),Z=r(81307),q=r(92363),J=r(39972),G=r(92811);function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if((0,D.k)(r))return Y(r,null);if((0,J.K)(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return Y(n.map(function(t){return r[t]}),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return Y(t=1===t.length&&(0,D.k)(t[0])?t[0]:t,null).pipe((0,j.U)(function(t){return i.apply(void 0,t)}))}return Y(t,null)}function Y(t,e){return new n.y(function(r){var n=t.length;if(0===n){r.complete();return}for(var i=Array(n),s=0,o=0,c=function(c){var u=(0,G.D)(t[c]),a=!1;r.add(u.subscribe({next:function(t){!a&&(a=!0,o++),i[c]=t},error:function(t){return r.error(t)},complete:function(){++s!==n&&a||(o===n&&r.next(e?e.reduce(function(t,e,r){return t[e]=i[r],t},{}):i),r.complete())}}))},u=0;u<n;u++)c(u)})}var K=r(1062);function X(t,e,r,i,s){if(1==arguments.length){var o,c;c=t.initialState,e=t.condition,r=t.iterate,o=t.resultSelector||M.y,s=t.scheduler}else void 0===i||(0,B.K)(i)?(c=t,o=M.y,s=i):(c=t,o=i);return new n.y(function(t){var n=c;if(s)return s.schedule(tt,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var i=void 0;try{i=e(n)}catch(e){t.error(e);return}if(!i){t.complete();break}}var u=void 0;try{u=o(n)}catch(e){t.error(e);break}if(t.next(u),t.closed)break;try{n=r(n)}catch(e){t.error(e);break}}})}function tt(t){var e,r=t.subscriber,n=t.condition;if(!r.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){r.error(t);return}else t.needIterate=!0;if(n){var i=void 0;try{i=n(t.state)}catch(t){r.error(t);return}if(!i){r.complete();return}if(r.closed)return}try{e=t.resultSelector(t.state)}catch(t){r.error(t);return}if(!r.closed&&(r.next(e),!r.closed))return this.schedule(t)}}function te(t,e,r){return void 0===e&&(e=q.E),void 0===r&&(r=q.E),(0,Z.P)(function(){return t()?e:r})}var tr=r(41951);function tn(t,e){return void 0===t&&(t=0),void 0===e&&(e=d.P),(!(0,tr.k)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=d.P),new n.y(function(r){return r.add(e.schedule(ti,t,{subscriber:r,counter:0,peri
19od:t})),r})}function ti(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}var ts=r(51363),to=new n.y(C.Z);function tc(){return to}var tu=r(5456);function ta(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return q.E;var r=t[0],i=t.slice(1);return 1===t.length&&(0,D.k)(r)?ta.apply(void 0,r):new n.y(function(t){var e=function(){return t.add(ta.apply(void 0,i).subscribe(t))};return(0,G.D)(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function tl(t,e){return new n.y(e?function(r){var n=Object.keys(t),i=new S.w;return i.add(e.schedule(th,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function th(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,s=t.obj;if(!n.closed){if(r<e.length){var o=e[r];n.next([o,s[o]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:s}))}else n.complete()}}var td=r(85006),tf=r(17910),tp=r(2450);function tb(t,e,r){return[(0,tp.h)(e,r)(new n.y((0,tf.s)(t))),(0,tp.h)((0,td.f)(e,r))(new n.y((0,tf.s)(t)))]}var tg=r(82981);function ty(t,e,r){return void 0===t&&(t=0),new n.y(function(n){void 0===e&&(e=t,t=0);var i=0,s=t;if(r)return r.schedule(tm,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(s++),n.closed)break}})}function tm(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;if(r>=n){i.complete();return}i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t))}var tv=r(43985),t_=r(60153);function tw(t,e){return new n.y(function(r){try{n=t()}catch(t){r.error(t);return}try{i=e(n)}catch(t){r.error(t);return}var n,i,s=(i?(0,G.D)(i):q.E).subscribe(r);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}var tE=r(85165),tS=r(77533),tx=r(54056)},64354:function(t,e,r){"use strict";r.d(e,{c:function(){return o}});var n=r(40223),i=r(13203),s=r(47194),o=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 n.ZT(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),s.w.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),s.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)},7477:function(t,e,r){"use strict";r.d(e,{X:function(){return o}});var n=r(40223),i=r(13203),s=r(6772),o=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return n.ZT(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new s.N},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.xQ)},38632:function(t,e,r){"use strict";r.d(e,{P:function(){return c},W:function(){return n}});var n,i=r(92363),s=r(5456),o=r(43985);n||(n={});var c=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,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,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,i.c)()}throw Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==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}()},44675:function(t,e,r){"use strict";r.d(e,{y:function(){return l}});var n=r(37038),i=r(43141),s=r(67800),o=r(44797),c=r(85695),u=r(69124),a=r(54056),l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,c=function(t,e,r){if(t){if(t instanceof i.L)return t;if(t[s.b])return t[s.b]()}return t||e||r?new i.L(t,e,r):new i.L(o.c)}(t,e,r);
19if(n?c.add(n.call(c,this.source)):c.add(this.source||a.v.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),a.v.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.v.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),(0,n._)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=h(e))(function(e,n){var i;i=r.subscribe(function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[c.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,u.U)(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=h(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function h(t){if(t||(t=a.v.Promise||Promise),!t)throw Error("no Promise impl found");return t}},44797:function(t,e,r){"use strict";r.d(e,{c:function(){return s}});var n=r(54056),i=r(63001),s={closed:!0,next:function(t){},error:function(t){if(n.v.useDeprecatedSynchronousErrorHandling)throw t;(0,i.z)(t)},complete:function(){}}},86923:function(t,e,r){"use strict";r.d(e,{L:function(){return i}});var n=r(40223),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.ZT(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(r(43141).L)},551:function(t,e,r){"use strict";r.d(e,{t:function(){return l}});var n=r(40223),i=r(13203),s=r(76916),o=r(47194),c=r(54373),u=r(6772),a=r(88303),l=function(t){function e(e,r,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this)||this;
vendor: 7,663 bytes, line 19
19return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return n.ZT(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;if(this.closed)throw new u.N;if(this.isStopped||this.hasError?e=o.w.EMPTY:(this.observers.push(t),e=new a.W(this,t)),i&&t.add(t=new c.ht(t,i)),r)for(var l=0;l<s&&!t.closed;l++)t.next(n[l]);else for(var l=0;l<s&&!t.closed;l++)t.next(n[l].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||s.c).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,s=0;s<i&&!(t-n[s].time<r);)s++;return i>e&&(s=Math.max(s,i-e)),s>0&&n.splice(0,s),n},e}(i.xQ),h=function(t,e){this.time=t,this.value=e}},79194:function(t,e,r){"use strict";r.d(e,{b:function(){return n}});var n=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}()},13203:function(t,e,r){"use strict";r.d(e,{Yc:function(){return l},xQ:function(){return h}});var n=r(40223),i=r(44675),s=r(43141),o=r(47194),c=r(6772),u=r(88303),a=r(67800),l=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return n.ZT(e,t),e}(s.L),h=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 n.ZT(e,t),e.prototype[a.b]=function(){return new l(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new c.N;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new c.N;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new c.N;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].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)return t.prototype._trySubscribe.call(this,e);throw new c.N},e.prototype._subscribe=function(t){if(this.closed)throw new c.N;return this.hasError?(t.error(this.thrownError),o.w.EMPTY):this.isStopped?(t.complete(),o.w.EMPTY):(this.observers.push(t),new u.W(this,t))},e.prototype.asObservable=function(){var t=new i.y;return t.source=this,t},e.create=function(t,e){return new d(t,e)},e}(i.y),d=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return n.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):o.w.EMPTY},e}(h)},88303:function(t,e,r){"use strict";r.d(e,{W:function(){return i}});var n=r(40223),i=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return n.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 r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(r(47194).w)},43141:function(t,e,r){"use strict";r.d(e,{L:function(){return l}});var n=r(40223),i=r(1062),s=r(44797),o=r(47194),c=r(67800),u=r(54056),a=r(63001),l=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.c;break;case 1:if(!r){o.destination=s.c;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new h(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new h(o,r,n,i)}return o}return n.ZT(e,t),e.prototype[c.b]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);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}(o.w),h=function(t){function e(e,r,n,o){var c,u=t.call(this)||this;u._parentSubscriber=e;var a=u;return(0,i.m)(r)?c=r:r&&(c=r.next,n=r.error,o=r.complete,r!==s.c&&(a=Object.create(r),(0,i.m)(a.unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=c,u._error=n,u._complete=o,u}return n.ZT(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.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,r=u.v.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):(0,a.z)(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;(0,a.z)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};u.v.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.v.useDeprecatedSynchronousErrorHandling)throw t;(0,a.z)(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!u.v.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(e){if(u.v.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=e,t.syncErrorThrown=!0,!0;return(0,a.z)(e),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},47194:function(t,e,r){"use strict";r.d(e,{w:function(){return c}});
19var n=r(6074),i=r(39972),s=r(1062),o=r(97681),c=function(){var t;function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return e.prototype.unsubscribe=function(){if(!this.closed){var t,r=this._parentOrParents,c=this._ctorUnsubscribe,a=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var h=0;h<r.length;++h)r[h].remove(this);if((0,s.m)(a)){c&&(this._unsubscribe=void 0);try{a.call(this)}catch(e){t=e instanceof o.B?u(e.errors):[e]}}if((0,n.k)(l))for(var h=-1,d=l.length;++h<d;){var f=l[h];if((0,i.K)(f))try{f.unsubscribe()}catch(e){t=t||[],e instanceof o.B?t=t.concat(u(e.errors)):t.push(e)}}if(t)throw new o.B(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+t+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[r]:s.push(r),r},e.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},e.EMPTY=((t=new e).closed=!0,t),e}();function u(t){return t.reduce(function(t,e){return t.concat(e instanceof o.B?e.errors:e)},[])}},54056:function(t,e,r){"use strict";r.d(e,{v:function(){return i}});var n=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,n=value},get useDeprecatedSynchronousErrorHandling(){return n}}},72391:function(t,e,r){"use strict";r.d(e,{Ds:function(){return u},IY:function(){return c},ft:function(){return a}});var n=r(40223),i=r(43141),s=r(44675),o=r(17910),c=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return n.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),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.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);function a(t,e){var r;if(!e.closed){if(t instanceof s.y)return t.subscribe(e);try{r=(0,o.s)(t)(e)}catch(t){e.error(t)}return r}}},43135:function(t,e,r){"use strict";r.d(e,{N:function(){return l},c:function(){return a}});var n,i=r(40223),s=r(13203),o=r(44675),c=r(47194),u=r(79144),a=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return i.ZT(e,t),e.prototype._subscribe=function(t){return this.getSubject().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 c.w).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=c.w.EMPTY)),t},e.prototype.refCount=function(){return(0,u.x)()(this)},e}(o.y),l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(n=a.prototype)._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}},h=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return i.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}(s.Yc)},86606:function(t,e,r){"use strict";r.d(e,{Ms:function(){return h},aj:function(){return l}});
19var n=r(40223),i=r(49801),s=r(6074),o=r(86923),c=r(93402),u=r(13642),a={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return(0,i.K)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&(0,s.k)(t[0])&&(t=t[0]),(0,u.n)(t,n).lift(new h(r))}var h=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new d(t,this.resultSelector))},t}(),d=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return n.ZT(e,t),e.prototype._next=function(t){this.values.push(a),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 r=0;r<e;r++){var n=t[r];this.add((0,c.D)(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],s=this.toRespond?i===a?--this.toRespond:this.toRespond:0;n[r]=e,0===s&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(o.L)},96353:function(t,e,r){"use strict";r.d(e,{z:function(){return s}});var n=r(5456),i=r(65810);function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,i.u)()(n.of.apply(void 0,t))}},81307:function(t,e,r){"use strict";r.d(e,{P:function(){return o}});var n=r(44675),i=r(92811),s=r(92363);function o(t){return new n.y(function(e){var r;try{r=t()}catch(t){e.error(t);return}return(r?(0,i.D)(r):(0,s.c)()).subscribe(e)})}},92363:function(t,e,r){"use strict";r.d(e,{E:function(){return i},c:function(){return s}});var n=r(44675),i=new n.y(function(t){return t.complete()});function s(t){return t?new n.y(function(e){return t.schedule(function(){return e.complete()})}):i}},92811:function(t,e,r){"use strict";r.d(e,{D:function(){return o}});var n=r(44675),i=r(17910),s=r(77533);function o(t,e){return e?(0,s.x)(t,e):t instanceof n.y?t:new n.y((0,i.s)(t))}},13642:function(t,e,r){"use strict";r.d(e,{n:function(){return o}});var n=r(44675),i=r(11939),s=r(6896);function o(t,e){return e?(0,s.r)(t,e):new n.y((0,i.V)(t))}},51363:function(t,e,r){"use strict";r.d(e,{T:function(){return c}});var n=r(44675),i=r(49801),s=r(96499),o=r(13642);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Number.POSITIVE_INFINITY,c=null,u=t[t.length-1];return((0,i.K)(u)?(c=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof u&&(r=t.pop()),null===c&&1===t.length&&t[0]instanceof n.y)?t[0]:(0,s.J)(r)((0,o.n)(t,c))}},5456:function(t,e,r){"use strict";r.d(e,{of:function(){return o}});var n=r(49801),i=r(13642),s=r(6896);function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return(0,n.K)(r)?(t.pop(),(0,s.r)(t,r)):(0,i.n)(t)}},82981:function(t,e,r){"use strict";r.d(e,{S3:function(){return u}});var n=r(40223),i=r(6074),s=r(13642),o=r(86923),c=r(93402);function u(){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,s.n)(t,void 0).lift(new a)}var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}(),l=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return n.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 r=0;r<e&&!this.hasFirst;r++){var n=t[r],i=(0,c.D)(this,n,void 0,r);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(o.L)},43985:function(t,e,r){"use strict";r.d(e,{_:function(){return i}});var n=r(44675);function i(t,e){return new n.y(e?function(r){return e.schedule(s,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function s(t){var e=t.error;t.subscriber.error(e)}},60153:function(t,e,r){"use strict";r.d(e,{H:function(){return c}});var n=r(44675),i=r(62121),s=r(41951),o=r(49801);function c(t,e,r){void 0===t&&(t=0);var c=-1;return(0,s.k)(e)?c=1>
19Number(e)&&1||Number(e):(0,o.K)(e)&&(r=e),(0,o.K)(r)||(r=i.P),new n.y(function(e){var n=(0,s.k)(t)?t:+t-r.now();return r.schedule(u,n,{index:0,period:c,subscriber:e})})}function u(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}},85165:function(t,e,r){"use strict";r.d(e,{$R:function(){return a},mx:function(){return l}});var n=r(40223),i=r(13642),s=r(6074),o=r(43141),c=r(68042),u=r(72391);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),(0,i.n)(t,void 0).lift(new l(r))}var l=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.resultSelector))},t}(),h=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return n.ZT(e,t),e.prototype._next=function(t){var e=this.iterators;(0,s.k)(t)?e.push(new f(t)):"function"==typeof t[c.hZ]?e.push(new d(t[c.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.destination.complete();return}this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++){var i=t[n];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var s=!1,o=[],n=0;n<e;n++){var i=t[n],c=i.next();if(i.hasCompleted()&&(s=!0),c.done){r.complete();return}o.push(c.value)}this.resultSelector?this._tryresultSelector(o):r.next(o),s&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(o.L),d=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!!(t&&t.done)},t}(),f=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[c.hZ]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[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,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return n.ZT(e,t),e.prototype[c.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,u.ft)(this.observable,new u.IY(this))},e}(u.Ds)},65810:function(t,e,r){"use strict";r.d(e,{u:function(){return i}});var n=r(96499);function i(){return(0,n.J)(1)}},2450:function(t,e,r){"use strict";r.d(e,{h:function(){return s}});var n=r(40223),i=r(43141);function s(t,e){return function(r){return r.lift(new o(t,e))}}var o=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.predicate,this.thisArg))},t}(),c=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return n.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}e&&this.destination.next(t)},e}(i.L)},96419:function(t,e,r){"use strict";r.d(e,{T:function(){return d},v:function(){return u}});var n=r(40223),i=r(43141),s=r(47194),o=r(44675),c=r(13203);function u(t,e,r,n){return function(i){return i.lift(new a(t,e,r,n))}}var a=function(){function t(t,e,r,n){this.keySelector=t,this.elementSelector=e,this.durationSelector=r,this.subjectSelector=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.keySelector=r,o.elementSelector=n,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return n.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){this.error(t);return}this._group(t,e)},e.prototype._group=function(t,e){var r,n=this.groups;n||(n=this.groups=new Map);var i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new c.xQ,n.set(e,i);var s=new d(e,i,this);if(this.destination.next(s),this.durationSelector){var o=void 0;try{o=this.durationSelector(new d(e,i))}catch(t){this.error(t);return}this.add(o.subscribe(new h(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,r){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),h=function(t){function e(e,r,n){var i=t.call(this,r)||this;return i.key=e,i.group=r,i.parent=n,i}return n.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),d=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return n.ZT(e,t),e.prototype._subscribe=function(t){var e=new s.w,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new f(r)),e.add(n.subscribe(t)),e},e}(o.y),f=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return n.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}(s.w)},63079:function(t,e,r){"use strict";r.d(e,{U:function(){return s}});var n=r(40223),i=r(43141);function s(t,e){return function(r){if("function"!=typeof t)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new o(t,e))}}var o=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.thisArg))},t}(),c=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return n.ZT(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(i.L)},96499:function(t,e,r){"use strict";r.d(e,{J:function(){return s}});var n=r(76554),i=r(95624);function s(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),(0,n.zg)(i.y,t)}},76554:function(t,e,r){"use strict";r.d(e,{VS:function(){return l},zg:function(){return c}});var n=r(40223),i=r(63079),s=r(92811),o=r(72391);function c(t,e,r){return(void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e)?function(n){return n.pipe(c(function(r,n){return(0,s.D)(t(r,n)).pipe((0,i.U)(function(t,i){return e(r,t,n,i)}))},r))}:("number"==typeof e&&(r=e),function(e){return e.lift(new u(t,r))})}var u=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 a(t,this.project,this.concurrent))},t}(),a=function(t){function e(e,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return n.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,r=this.index++;try{e=this.project(t,r)}catch(t){this.destination.error(t);return}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new o.IY(this),r=this.destination;r.add(e);var n=(0,o.ft)(t,e);n!==e&&r.add(n)},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}(o.Ds),l=c},54373:function(t,e,r){"use strict";r.d(e,{QV:function(){return o},ht:function(){return u}});var n=r(40223),i=r(43141),s=r(38632);function o(t,e){return void 0===e&&(e=0),function(r){return r.lift(new c(t,e))}}var c=function(){function t(t,e){void 0===e&&(e=0),this.scheduler
19=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}(),u=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return n.ZT(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new a(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.P.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.P.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()},e}(i.L),a=function(t,e){this.notification=t,this.destination=e}},79144:function(t,e,r){"use strict";r.d(e,{x:function(){return s}});var n=r(40223),i=r(43141);function s(){return function(t){return t.lift(new o(t))}}var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new c(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),c=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return n.ZT(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var e=t._refCount;if(e<=0||(t._refCount=e-1,e>1)){this.connection=null;return}var r=this.connection,n=t._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},e}(i.L)},6896:function(t,e,r){"use strict";r.d(e,{r:function(){return s}});var n=r(44675),i=r(47194);function s(t,e){return new n.y(function(r){var n=new i.w,s=0;return n.add(e.schedule(function(){if(s===t.length){r.complete();return}r.next(t[s++]),r.closed||n.add(this.schedule())})),n})}},77533:function(t,e,r){"use strict";r.d(e,{x:function(){return l}});var n=r(44675),i=r(47194),s=r(85695),o=r(6896),c=r(68042),u=r(96160),a=r(85186);function l(t,e){if(null!=t){if(t&&"function"==typeof t[s.L])return new n.y(function(r){var n=new i.w;return n.add(e.schedule(function(){var i=t[s.L]();n.add(i.subscribe({next:function(t){n.add(e.schedule(function(){return r.next(t)}))},error:function(t){n.add(e.schedule(function(){return r.error(t)}))},complete:function(){n.add(e.schedule(function(){return r.complete()}))}}))})),n});if((0,u.t)(t))return new n.y(function(r){var n=new i.w;return n.add(e.schedule(function(){return t.then(function(t){n.add(e.schedule(function(){r.next(t),n.add(e.schedule(function(){return r.complete()}))}))},function(t){n.add(e.schedule(function(){return r.error(t)}))})})),n});if((0,a.z)(t))return(0,o.r)(t,e);if(t&&"function"==typeof t[c.hZ]||"string"==typeof t)return function(t,e){if(!t)throw Error("Iterable cannot be null");return new n.y(function(r){var n,s=new i.w;return s.add(function(){n&&"function"==typeof n.return&&n.return()}),s.add(e.schedule(function(){n=t[c.hZ](),s.add(e.schedule(function(){if(!r.closed){try{var t,e,i=n.next();t=i.value,e=i.done}catch(t){r.error(t);return}e?r.complete():(r.next(t),this.schedule())}}))})),s})}(t,e)}throw TypeError((null!==t&&typeof t||t)+" is not observable")}},45780:function(t,e,r){"use strict";r.d(e,{o:function(){return i}});var n=r(40223),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;
19return n.scheduler=e,n.work=r,n.pending=!1,n}return n.ZT(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return n.ZT(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(r(47194).w))},4340:function(t,e,r){"use strict";r.d(e,{v:function(){return s}});var n=r(40223),i=r(79194),s=function(t){function e(r,n){void 0===n&&(n=i.b.now);var s=t.call(this,r,function(){return e.delegate&&e.delegate!==s?e.delegate.now():n()})||this;return s.actions=[],s.active=!1,s.scheduled=void 0,s}return n.ZT(e,t),e.prototype.schedule=function(r,n,i){return(void 0===n&&(n=0),e.delegate&&e.delegate!==this)?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e,r=this.actions;if(this.active){r.push(t);return}this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(i.b)},75483:function(t,e,r){"use strict";r.d(e,{e:function(){return h},E:function(){return l}});var n=r(40223),i=1,s=Promise.resolve(),o={};function c(t){return t in o&&(delete o[t],!0)}var u={setImmediate:function(t){var e=i++;return o[e]=!0,s.then(function(){return c(e)&&t()}),e},clearImmediate:function(t){c(t)}},a=function(t){function e(e,r){var n=t.call(this,e,r)||this;
19return n.scheduler=e,n.work=r,n}return n.ZT(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=u.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(u.clearImmediate(r),e.scheduled=void 0)},e}(r(45780).o),l=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.ZT(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(r(4340).v))(a),h=l},62121:function(t,e,r){"use strict";r.d(e,{P:function(){return s},z:function(){return i}});var n=r(45780),i=new(r(4340)).v(n.o),s=i},76916:function(t,e,r){"use strict";r.d(e,{c:function(){return o},N:function(){return s}});var n=r(40223),i=function(t){function e(e,r){var n=t.call(this,e,r)||this;
19return n.scheduler=e,n.work=r,n}return n.ZT(e,t),e.prototype.schedule=function(e,r){return(void 0===r&&(r=0),r>0)?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(r(45780).o),s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.ZT(e,t),e}(r(4340).v))(i),o=s},68042:function(t,e,r){"use strict";r.d(e,{hZ:function(){return n}});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},85695:function(t,e,r){"use strict";r.d(e,{L:function(){return n}});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},67800:function(t,e,r){"use strict";r.d(e,{b:function(){return n}});var n="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},75131:function(t,e,r){"use strict";r.d(e,{W:function(){return n}});var n=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}()},18009:function(t,e,r){"use strict";r.d(e,{K:function(){return n}});var n=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}()},6772:function(t,e,r){"use strict";r.d(e,{N:function(){return n}});var n=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},97995:function(t,e,r){"use strict";r.d(e,{W:function(){return n}});var n=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},97681:function(t,e,r){"use strict";r.d(e,{B:function(){return n}});var n=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}()},37038:function(t,e,r){"use strict";r.d(e,{_:function(){return i}});var n=r(43141);function i(t){for(;t;){var e=t,r=e.closed,i=e.destination,s=e.isStopped;if(r||s)return!1;t=i&&i instanceof n.L?i:null}return!0}},63001:function(t,e,r){"use strict";function n(t){setTimeout(function(){throw t},0)}r.d(e,{z:function(){return n}})},95624:function(t,e,r){"use strict";function n(t){return t}r.d(e,{y:function(){return n}})},6074:function(t,e,r){"use strict";r.d(e,{k:function(){return n}});var n=Array.isArray||function(t){return t&&"number"==typeof t.length}},85186:function(t,e,r){"use strict";r.d(e,{z:function(){return n}});var n=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},1062:function(t,e,r){"use strict";function n(t){return"function"==typeof t}r.d(e,{m:function(){return n}})},41951:function(t,e,r){"use strict";r.d(e,{k:function(){return i}});var n=r(6074);function i(t){return!(0,n.k)(t)&&t-parseFloat(t)+1>=0}},39972:function(t,e,r){"use strict";function n(t){return null!==t&&"object"==typeof t}r.d(e,{K:function(){return n}})},96160:function(t,e,r){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}r.d(e,{t:function(){return n}})},49801:function(t,e,r){"use strict";function n(t){return t&&"function"==typeof t.schedule}r.d(e,{K:function(){return n}})},6883:function(t,e,r){"use strict";function n(){}r.d(e,{Z:function(){return n}})},85006:function(t,e,r){"use strict";function n(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}r.d(e,{f:function(){return n}})},69124:function(t,e,r){"use strict";r.d(e,{U:function(){return s},z:function(){return i}});var n=r(95624);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return s(t)}function s(t){return 0===t.length?n.y:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}},17910:function(t,e,r){"use strict";r.d(e,{s:function(){return l}});var n=r(11939),i=r(63001),s=r(68042),o=r(85695),c=r(85186),u=r(96160),a=r(39972),l=function(t){if(t&&"function"==typeof t[o.L])return function(e){var r=t[o.L]();if("function"==typeof r.subscribe)return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")};if((0,c.z)(t))return(0,n.V)(t);if((0,u.t)(t))return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,i.z),e};if(t&&"function"==typeof t[s.hZ])return function(e){for(var r=t[s.hZ]();;){var n=void 0;try{n=r.next()}catch(t){return e.error(t),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof r.return&&e.add(function(){r.return&&r.return()}),e};
19throw TypeError("You provided "+((0,a.K)(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},11939:function(t,e,r){"use strict";r.d(e,{V:function(){return n}});var n=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}}},93402:function(t,e,r){"use strict";r.d(e,{D:function(){return c}});var n=r(40223),i=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return n.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}(r(43141).L),s=r(17910),o=r(44675);function c(t,e,r,n,c){return(void 0===c&&(c=new i(t,r,n)),c.closed)?void 0:e instanceof o.y?e.subscribe(c):(0,s.s)(e)(c)}},66793:function(t,e,r){"use strict";r.r(e),r.d(e,{audit:function(){return s},auditTime:function(){return l},buffer:function(){return h},bufferCount:function(){return b},bufferTime:function(){return _},bufferToggle:function(){return R},bufferWhen:function(){return L},catchError:function(){return P},combineAll:function(){return $},combineLatest:function(){return z},concat:function(){return W},concatAll:function(){return Z.u},concatMap:function(){return J},concatMapTo:function(){return G},count:function(){return Q},debounce:function(){return X},debounceTime:function(){return tr},defaultIfEmpty:function(){return to},delay:function(){return th},delayWhen:function(){return tg},dematerialize:function(){return tw},distinct:function(){return tx},distinctUntilChanged:function(){return tC},distinctUntilKeyChanged:function(){return tR},elementAt:function(){return tH},endWith:function(){return tU},every:function(){return tW},exhaust:function(){return tJ},exhaustMap:function(){return function t(e,r){return r?function(n){return n.pipe(t(function(t,n){return(0,H.D)(e(t,n)).pipe((0,tY.U)(function(e,i){return r(t,e,n,i)}))}))}:function(t){return t.lift(new tK(e))}}},expand:function(){return t0},filter:function(){return tA.h},finalize:function(){return t4},find:function(){return t6},findIndex:function(){return t7},first:function(){return ee},flatMap:function(){return q.VS},groupBy:function(){return er.v},ignoreElements:function(){return en},isEmpty:function(){return eo},last:function(){return ed},map:function(){return tY.U},mapTo:function(){return ef},materialize:function(){return eg},max:function(){return ex},merge:function(){return eI},mergeAll:function(){return eC.J},mergeMap:function(){return q.zg},mergeMapTo:function(){return eM},mergeScan:function(){return eN},min:function(){return eA},multicast:function(){return eO},observeOn:function(){return eP.QV},onErrorResumeNext:function(){return eD},pairwise:function(){return e$},partition:function(){return eU},pluck:function(){return eW},publish:function(){return eq},publishBehavior:function(){return eG},publishLast:function(){return eY},publishReplay:function(){return eX},race:function(){return e1},reduce:function(){return eS},refCount:function(){return ri.x},repeat:function(){return e2},repeatWhen:function(){return e5},retry:function(){return e8},retryWhen:function(){return re},sample:function(){return rs},sampleTime:function(){return ru},scan:function(){return ev},sequenceEqual:function(){return rd},share:function(){return ry},shareReplay:function(){return rm},single:function(){return rv},skip:function(){return rE},skipLast:function(){return rk},skipUntil:function(){return rM},skipWhile:function(){return rT},startWith:function(){return rO},subscribeOn:function(){return rB},switchAll:function(){return rz},switchMap:function(){return r$},switchMapTo:function(){return rU},take:function(){return tF},takeLast:function(){return ea},takeUntil:function(){return rW},takeWhile:function(){return rJ},tap:function(){return rX},throttle:function(){return r4},throttleTime:function(){return r6},throwIfEmpty:function(){return tO},timeInterval:function(){return ne},timeout:function(){return nu},timeoutWith:function(){return ni},timestamp:function(){return na},toArray:function(){return nd},window:function(){return nf},windowCount:function(){return ng},windowTime:function(){return nv},windowToggle:function(){return nI},windowWhen:function(){return nN},withLatestFrom:function(){return nA},zip:function(){return nP},zipAll:function(){return nD}});var n=r(40223),i=r(72391);function s(t){return function(e){return e.lift(new o(t))}}var o=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.durationSelector))},t}(),c=function(t){function e(e,r){var n=t.call(this,e)||this;return n.durationSelector=r,n.hasValue=!1,n}return n.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(t){return this.destination.error(t)}var r=(0,i.ft)(e,new i.IY(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,r=this.throttled;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.Ds),u=r(62121),a=r(60153);function l(t,e){return void 0===e&&(e=u.P),s(function(){return(0,a.H)(t,e)})}function h(t){return function(e){return e.lift(new d(t))}}var d=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.closingNotifier))},t}(),f=function(t){function e(e,r){var n=t.call(this,e)||this;return n.buffer=[],n.add((0,i.ft)(r,new i.IY(n))),n}return n.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=r(43141);function b(t,e){return void 0===e&&(e=null),function(r){return r.lift(new g(t,e))}}var g=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,e&&t!==e?this.subscriberClass=m:this.subscriberClass=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,r){var n=t.call(this,e)||this;return n.bufferSize=r,n.buffer=[],n}return n.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),m=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.bufferSize=r,i.startBufferEvery=n,i.buffers=[],i.count=0,i}return n.ZT(e,t),e.prototype._next=function(t){var e=this.bufferSize,r=this.startBufferEvery,n=this.buffers,i=this.count;this.count++,i%r==0&&n.push([]);for(var s=n.length;s--;){var o=n[s];o.push(t),o.length===e&&(n.splice(s,1),this.destination.next(o))}},e.prototype._complete=function(){for(var e=this.buffers,r=this.destination;e.length>0;){var n=e.shift();n.length>0&&r.next(n)}t.prototype._complete.call(this)},e}(p.L),v=r(49801);function _(t){var e=arguments.length,r=u.P;(0,v.K)(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new w(t,n,i,r))}}var w=function(){function t(t,e,r,n){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler
19=n}return t.prototype.call=function(t,e){return e.subscribe(new S(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),E=function(){this.buffer=[]},S=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;o.bufferTimeSpan=r,o.bufferCreationInterval=n,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var c=o.openContext();return o.timespanOnly=null==n||n<0,o.timespanOnly?o.add(c.closeAction=s.schedule(x,r,{subscriber:o,context:c,bufferTimeSpan:r})):(o.add(c.closeAction=s.schedule(I,r,{subscriber:o,context:c})),o.add(s.schedule(k,n,{bufferTimeSpan:r,bufferCreationInterval:n,subscriber:o,scheduler:s}))),o}return n.ZT(e,t),e.prototype._next=function(t){for(var e,r=this.contexts,n=r.length,i=0;i<n;i++){var s=r[i],o=s.buffer;o.push(t),o.length==this.maxBufferSize&&(e=s)}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,r=this.destination;e.length>0;){var n=e.shift();r.next(n.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 r=this.bufferTimeSpan,n={subscriber:this,context:t,bufferTimeSpan:r};this.add(t.closeAction=this.scheduler.schedule(x,r,n))}},e.prototype.openContext=function(){var t=new E;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,r=t.context;r&&e.closeContext(r),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function k(t){var e=t.bufferCreationInterval,r=t.bufferTimeSpan,n=t.subscriber,i=t.scheduler,s=n.openContext();n.closed||(n.add(s.closeAction=i.schedule(I,r,{subscriber:n,context:s})),this.schedule(t,e))}function I(t){var e=t.subscriber,r=t.context;e.closeContext(r)}var C=r(47194),M=r(93402),N=r(86923);function R(t,e){return function(r){return r.lift(new T(t,e))}}var T=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new A(t,this.openings,this.closingSelector))},t}(),A=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.closingSelector=n,i.contexts=[],i.add((0,M.D)(i,r)),i}return n.ZT(e,t),e.prototype._next=function(t){for(var e=this.contexts,r=e.length,n=0;n<r;n++)e[n].buffer.push(t)},e.prototype._error=function(e){for(var r=this.contexts;r.length>0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var r=e.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.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(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var r=t.buffer,n=t.subscription;this.destination.next(r),e.splice(e.indexOf(t),1),this.remove(n),n.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,r=new C.w,n={buffer:[],subscription:r};e.push(n);var i=(0,M.D)(this,t,n);!i||i.closed?this.closeBuffer(n):(i.context=n,this.add(i),r.add(i))},e}(N.L);function L(t){return function(e){return e.lift(new O(t))}}var O=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new j(t,this.closingSelector))},t}(),j=function(t){function e(e,r){var n=t.call(this,e)||this;return n.closingSelector=r,n.subscribing=!1,n.openBuffer(),n}return n.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,e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];try{t=(0,this.closingSelector)()}catch(t){return this.error(t)}e=new C.w,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add((0,i.ft)(t,new i.IY(this))),this.subscribing=!1},e}(i.Ds);function P(t){return function(e){var r=new D(t),n=e.lift(r);return r.caught=n}}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,r,n){var i=t.call(this,e)||this;return i.selector=r,i.caught=n,i}return n.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=void 0;try{r=this.selector(e,this.caught)}catch(e){t.prototype.error.call(this,e);return}this._unsubscribeAndRecycle();var n=new i.IY(this);this.add(n);var s=(0,i.ft)(r,n);s!==n&&this.add(s)}},e}(i.Ds),F=r(86606);function $(t){return function(e){return e.lift(new F.Ms(t))}}var V=r(6074),H=r(92811);function z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&(0,V.k)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call((0,H.D)([e].concat(t)),new F.Ms(r))}}var U=r(96353);function W(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(U.z.apply(void 0,[e].concat(t)))}}var Z=r(65810),q=r(76554);function J(t,e){return(0,q.zg)(t,e,1)}function G(t,e){return J(function(){return t},e)}function Q(t){return function(e){return e.lift(new Y(t,e))}}var Y=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new K(t,this.predicate,this.source))},t}(),K=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.source=n,i.count=0,i.index=0,i}return n.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(t){this.destination.error(t);return}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 te(t,this.durationSelector))},t}(),te=function(t){function e(e,r){var n=t.call(this,e)||this;return n.durationSelector=r,n.hasValue=!1,n}return n.ZT(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var r=this.durationSubscription;this.value=t,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),(r=(0,i.ft)(e,new i.IY(this)))&&!r.closed&&this.add(this.durationSubscription=r)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,r=this.durationSubscription;r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(i.Ds);function tr(t,e){return void 0===e&&(e=u.P),function(r){return r.lift(new tn(t,e))}}
19var tn=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new ti(t,this.dueTime,this.scheduler))},t}(),ti=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.dueTime=r,i.scheduler=n,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return n.ZT(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ts,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 ts(t){t.debouncedNext()}function to(t){return void 0===t&&(t=null),function(e){return e.lift(new tc(t))}}var tc=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new tu(t,this.defaultValue))},t}(),tu=function(t){function e(e,r){var n=t.call(this,e)||this;return n.defaultValue=r,n.isEmpty=!0,n}return n.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 ta(t){return t instanceof Date&&!isNaN(+t)}var tl=r(38632);function th(t,e){void 0===e&&(e=u.P);var r=ta(t)?+t-e.now():Math.abs(t);return function(t){return t.lift(new td(r,e))}}var td=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new tf(t,this.delay,this.scheduler))},t}(),tf=function(t){function e(e,r,n){var i=t.call(this,e)||this;
19return i.delay=r,i.scheduler=n,i.queue=[],i.active=!1,i.errored=!1,i}return n.ZT(e,t),e.dispatch=function(t){for(var e=t.source,r=e.queue,n=t.scheduler,i=t.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var s=Math.max(0,r[0].time-n.now());this.schedule(t,s)}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,r=new tp(e.now()+this.delay,t);this.queue.push(r),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(tl.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(tl.P.createComplete()),this.unsubscribe()},e}(p.L),tp=function(t,e){this.time=t,this.notification=e},tb=r(44675);function tg(t,e){return e?function(r){return new tv(r,e).lift(new ty(t))}:function(e){return e.lift(new ty(t))}}var ty=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tm(t,this.delayDurationSelector))},t}(),tm=function(t){function e(e,r){var n=t.call(this,e)||this;return n.delayDurationSelector=r,n.completed=!1,n.delayNotifierSubscriptions=[],n.index=0,n}return n.ZT(e,t),e.prototype.notifyNext=function(t,e,r,n,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 r=this.delayDurationSelector(t,e);r&&this.tryDelay(r,t)}catch(t){this.destination.error(t)}},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 r=(0,M.D)(this,t,e);r&&!r.closed&&(this.destination.add(r),this.delayNotifierSubscriptions.push(r))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(N.L),tv=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subscriptionDelay=r,n}return n.ZT(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new t_(t,this.source))},e}(tb.y),t_=function(t){function e(e,r){var n=t.call(this)||this;return n.parent=e,n.source=r,n.sourceSubscribed=!1,n}return n.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 tw(){return function(t){return t.lift(new tE)}}var tE=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new tS(t))},t}(),tS=function(t){function e(e){return t.call(this,e)||this}return n.ZT(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(p.L);function tx(t,e){return function(r){return r.lift(new tk(t,e))}}var tk=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new tI(t,this.keySelector,this.flushes))},t}(),tI=function(t){function e(e,r,n){var s=t.call(this,e)||this;return s.keySelector=r,s.values=new Set,n&&s.add((0,i.ft)(n,new i.IY(s))),s}return n.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,r=this.destination;try{e=this.keySelector(t)}catch(t){r.error(t);return}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var r=this.values;r.has(t)||(r.add(t),this.destination.next(e))},e}(i.Ds);function tC(t,e){return function(r){return r.lift(new tM(t,e))}}var tM=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new tN(t,this.compare,this.keySelector))},t}(),tN=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return n.ZT(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){try{var e,r=this.keySelector;e=r?r(t):t}catch(t){return this.destination.error(t)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))},e}(p.L);function tR(t,e){return tC(function(r,n){return e?e(r[t],n[t]):r[t]===n[t]})}var tT=r(75131),tA=r(2450),tL=r(18009);function tO(t){return void 0===t&&(t=tD),function(e){return e.lift(new tj(t))}}var tj=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new tP(t,this.errorFactory)
19)},t}(),tP=function(t){function e(e,r){var n=t.call(this,e)||this;return n.errorFactory=r,n.hasValue=!1,n}return n.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 tD(){return new tL.K}var tB=r(92363);function tF(t){return function(e){return 0===t?(0,tB.c)():e.lift(new t$(t))}}var t$=function(){function t(t){if(this.total=t,this.total<0)throw new tT.W}return t.prototype.call=function(t,e){return e.subscribe(new tV(t,this.total))},t}(),tV=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.ZT(e,t),e.prototype._next=function(t){var e=this.total,r=++this.count;r<=e&&(this.destination.next(t),r===e&&(this.destination.complete(),this.unsubscribe()))},e}(p.L);function tH(t,e){if(t<0)throw new tT.W;var r=arguments.length>=2;return function(n){return n.pipe((0,tA.h)(function(e,r){return r===t}),tF(1),r?to(e):tO(function(){return new tT.W}))}}var tz=r(5456);function tU(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return(0,U.z)(e,tz.of.apply(void 0,t))}}function tW(t,e){return function(r){return r.lift(new tZ(t,e,r))}}var tZ=function(){function t(t,e,r){this.predicate=t,this.thisArg=e,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new tq(t,this.predicate,this.thisArg,this.source))},t}(),tq=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s.predicate=r,s.thisArg=n,s.source=i,s.index=0,s.thisArg=n||s,s}return n.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(t){this.destination.error(t);return}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.L);function tJ(){return function(t){return t.lift(new tG)}}var tG=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new tQ(t))},t}(),tQ=function(t){function e(e){var r=t.call(this,e)||this;return r.hasCompleted=!1,r.hasSubscription=!1,r}return n.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),tY=r(63079),tK=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new tX(t,this.project))},t}(),tX=function(t){function e(e,r){var n=t.call(this,e)||this;return n.project=r,n.hasSubscription=!1,n.hasCompleted=!1,n.index=0,n}return n.ZT(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){this.destination.error(t);return}this.hasSubscription=!0,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new i.IY(this),r=this.destination;r.add(e);var n=(0,i.ft)(t,e);n!==e&&r.add(n)},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 t0(t,e,r){return void 0===e&&(e=Number.POSITIVE_INFINITY),e=1>(e||0)?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new t1(t,e,r))}}var t1=function(){function t(t,e,r){this.project=t,this.concurrent=e,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new t2(t,this.project,this.concurrent,this.scheduler))},t}(),t2=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s.project=r,s.concurrent=n,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(s.buffer=[]),s}return n.ZT(e,t),e.dispatch=function(t){var e=t.subscriber,r=t.result,n=t.value,i=t.index;e.subscribeToProjection(r,n,i)},e.prototype._next=function(t){var r=this.destination;if(r.closed){this._complete();return}var n=this.index++;if(this.active<this.concurrent){r.next(t);try{var i=(0,this.project)(t,n);this.scheduler?this.destination.add(this.scheduler.schedule(e.dis
19patch,0,{subscriber:this,result:i,value:t,index:n})):this.subscribeToProjection(i,t,n)}catch(t){r.error(t)}}else this.buffer.push(t)},e.prototype.subscribeToProjection=function(t,e,r){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 t4(t){return function(e){return e.lift(new t3(t))}}var t3=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new t5(t,this.callback))},t}(),t5=function(t){function e(e,r){var n=t.call(this,e)||this;return n.add(new C.w(r)),n}return n.ZT(e,t),e}(p.L);function t6(t,e){if("function"!=typeof t)throw TypeError("predicate is not a function");return function(r){return r.lift(new t9(t,r,!1,e))}}var t9=function(){function t(t,e,r,n){this.predicate=t,this.source=e,this.yieldIndex=r,this.thisArg=n}return t.prototype.call=function(t,e){return e.subscribe(new t8(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),t8=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.predicate=r,o.source=n,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return n.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,r=this.thisArg,n=this.index++;try{e.call(r||this,t,n,this.source)&&this.notifyComplete(this.yieldIndex?n:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(p.L);function t7(t,e){return function(r){return r.lift(new t9(t,r,!0,e))}}var et=r(95624);function ee(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?(0,tA.h)(function(e,r){return t(e,r,n)}):et.y,tF(1),r?to(e):tO(function(){return new tL.K}))}}var er=r(96419);function en(){return function(t){return t.lift(new ei)}}var ei=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new es(t))},t}(),es=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n.ZT(e,t),e.prototype._next=function(t){},e}(p.L);function eo(){return function(t){return t.lift(new ec)}}var ec=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new eu(t))},t}(),eu=function(t){function e(e){return t.call(this,e)||this}return n.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 ea(t){return function(e){return 0===t?(0,tB.c)():e.lift(new el(t))}}var el=function(){function t(t){if(this.total=t,this.total<0)throw new tT.W}return t.prototype.call=function(t,e){return e.subscribe(new eh(t,this.total))},t}(),eh=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=[],n.count=0,n}return n.ZT(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i<r;i++){var s=e++%r;t.next(n[s])}t.complete()},e}(p.L);function ed(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?(0,tA.h)(function(e,r){return t(e,r,n)}):et.y,ea(1),r?to(e):tO(function(){return new tL.K}))}}function ef(t){return function(e){return e.lift(new ep(t))}}var ep=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new eb(t,this.value))},t}(),eb=function(t){function e(e,r){var n=t.call(this,e)||this;return n.value=r,n}return n.ZT(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(p.L);function eg(){return function(t){return t.lift(new ey)}}var ey=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new em(t))},t}(),em=function(t){function e(e){return t.call(this,e)||this}return n.ZT(e,t),e.prototype._next=function(t){this.destination.next(tl.P.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(tl.P.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(tl.P.createComplete()),t.complete()},e}(p.L);function ev(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new e_(t,e,r))}}var e_=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new ew(t,this.accumulator,this.seed,this.hasSeed))},t}(),ew=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s.accumulator=r,s._seed=n,s.hasSeed=i,s.index=0,s}return n.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,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(p.L),eE=r(69124);function eS(t,e){return arguments.length>=2?function(r){return(0,eE.z)(ev(t,e),ea(1),to(e))(r)}:function(e){return(0,eE.z)(ev(function(e,r,n){return t(e,r,n+1)}),ea(1))(e)}}function ex(t){return eS("function"==typeof t?function(e,r){return t(e,r)>0?e:r}:function(t,e){return t>e?t:e})}var ek=r(51363);function eI(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(ek.T.apply(void 0,[e].concat(t)))}}var eC=r(96499);function eM(t,e,r){return(void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof e)?(0,q.zg)(function(){return t},e,r):("number"==typeof e&&(r=e),(0,q.zg)(function(){return t},r))}function eN(t,e,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return n.lift(new eR(t,e,r))}}var eR=function(){function t(t,e,r){this.accumulator=t,this.seed=e,this.concurrent=r}return t.prototype.call=function(t,e){return e.subscribe(new eT(t,this.accumulator,this.seed,this.concurrent))},t}(),eT=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s.accumulator=r,s.acc=n,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return n.ZT(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,r=this.destination,n=void 0;try{n=(0,this.accumulator)(this.acc,t,e)}catch(t){return r.error(t)}this.active++,this._innerSub(n)}else this.buffer.push(t)},e.prototype._innerSub=function(t){var e=new i.IY(this),r=this.destination;r.add(e);var n=(0,i.ft)(t,e);n!==e&&r.add(n)},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 eA(t){return eS("function"==typeof t?function(e,r){return 0>t(e,r)?e:r}:function(t,e){return t<e?t:e})}var eL=r(43135);function eO(t,e){return function(r){if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new ej(n,e));var n,i=Object.create(r,eL.N);return i.source=r,i.subjectFactory=n,i}}var ej=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(t);return i.add(e.subscribe(n)),i},t}(),eP=r(54373);function eD(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 1===t.length&&(0,V.k)(t[0])&&(t=t[0]),function(e){return e.lift(new eB(t))}}var eB=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new eF(t,this.nextSources))},t}(),eF=function(t){function e(e,r){var n=t.call(this,e)||this;return n.destination=e,n.nextSources=r,n}return n.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),r=this.destination;r.add(e);var n=(0,i.ft)(t,e);n!==e&&r.add(n)}else this.destination.complete()},e}(i.Ds);function e$(){return function(t){return t.lift(new eV)}}var eV=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new eH(t))},t}(),eH=function(t){function e(e){var r=t.call(this,e)||this;return r.hasPrev=!1,r}return n.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),ez=r(85006);function eU(t,e){return function(r){return[(0,tA.h)(t,e)(r),(0,tA.h)((0,ez.f)(t,e))(r)]}}function eW(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.length;if(0===r)throw Error("list of properties cannot be empty.");return function(e){return(0,tY.U)(function(e){for(var n=e,i=0;i<r;i++){var s=null!=n?n[t[i]]:void 0;if(void 0===s)return;n=s}return n})(e)}}var eZ=r(13203);function eq(t){return t?eO(function(){return new eZ.xQ},t):eO(new eZ.xQ)}var eJ=r(7477);function eG(t){return function(e){return eO(new eJ.X(t))(e)}}var eQ=r(64354);function eY(){return function(t){return eO(new eQ.c)(t)}}var eK=r(551);function eX(t,e,r,n){r&&"function"!=typeof r&&(n=r);var i="function"==typeof r?r:void 0,s=new eK.t(t,e,n);return function(t){return eO(function(){return s},i)(t)}}var e0=r(82981);function e1(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return 1===t.length&&(0,V.k)(t[0])&&(t=t[0]),e.lift.call(e0.S3.apply(void 0,[e].concat(t)))}}function e2(t){return void 0===t&&(t=-1),function(e){return 0===t?(0,tB.c)():t<0?e.lift(new e4(-1,e)):e.lift(new e4(t-1,e))}}var e4=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new e3(t,this.count,this.source))},t}(),e3=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.count=r,i.source=n,i}return n.ZT(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this.source,r=this.count;if(0===r)return t.prototype.complete.call(this);r>-1&&(this.count=r-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function e5(t){return function(e){return e.lift(new e6(t))}}var e6=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new e9(t,this.notifier,e))},t}(),e9=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i.sourceIsBeingSubscribedTo=!0,i}return n.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(){this.notifications=new eZ.xQ;try{var e;e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=(0,i.ft)(e,new i.IY(this))},e}(i.Ds);function e8(t){return void 0===t&&(t=-1),function(e){return e.lift(new e7(t,e))}}var e7=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new rt(t,this.count,this.source))},t}(),rt=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.count=r,i.source=n,i}return n.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return t.prototype.error.call(this,e);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(p.L);function re(t){return function(e){return e.lift(new rr(t,e))}}var rr=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new rn(t,this.notifier,this.source))},t}(),rn=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.notifier=r,i.source=n,i}return n.ZT(e,t),e.prototype.error=function(e){if(!this.isStopped){var r=this.errors,n=this.retries,s=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{r=new eZ.xQ;try{n=(0,this.notifier)(r)}catch(e){return t.prototype.error.call(this,e)}s=(0,i.ft)(n,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=s,r.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),ri=r(79144);function rs(t){return function(e){return e.lift(new ro(t))}}var ro=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new rc(t),n=e.subscribe(r);return n.add((0,i.ft)(this.notifier,new i.IY(r))),n},t}(),rc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return n.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 ru(t,e){return void 0===e&&(e=u.P),function(r){return r.lift(new ra(t,e))}}
19var ra=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new rl(t,this.period,this.scheduler))},t}(),rl=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.period=r,i.scheduler=n,i.hasValue=!1,i.add(n.schedule(rh,r,{subscriber:i,period:r})),i}return n.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 rh(t){var e=t.subscriber,r=t.period;e.notifyNext(),this.schedule(t,r)}function rd(t,e){return function(r){return r.lift(new rf(t,e))}}var rf=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new rp(t,this.compareTo,this.comparator))},t}(),rp=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.compareTo=r,i.comparator=n,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(r.subscribe(new rb(e,i))),i}return n.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._a,e=this._b,r=this.comparator;t.length>0&&e.length>0;){var n=t.shift(),i=e.shift(),s=!1;try{s=r?r(n,i):n===i}catch(t){this.destination.error(t)}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),rb=function(t){function e(e,r){var n=t.call(this,e)||this;return n.parent=r,n}return n.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 rg(){return new eZ.xQ}function ry(){return function(t){return(0,ri.x)()(eO(rg)(t))}}function rm(t,e,r){var n;return n=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:r},function(t){var e,r,i,s,o,c,u,a,l,h,d;return t.lift((s=void 0===(i=n.bufferSize)?Number.POSITIVE_INFINITY:i,c=void 0===(o=n.windowTime)?Number.POSITIVE_INFINITY:o,u=n.refCount,a=n.scheduler,l=0,h=!1,d=!1,function(t){var n;l++,!e||h?(h=!1,n=(e=new eK.t(s,c,a)).subscribe(this),r=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){d=!0,r=void 0,e.complete()}}),d&&(r=void 0)):n=e.subscribe(this),this.add(function(){l--,n.unsubscribe(),n=void 0,r&&!d&&u&&0===l&&(r.unsubscribe(),r=void 0,e=void 0)})}))}}function rv(t){return function(e){return e.lift(new r_(t,e))}}var r_=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new rw(t,this.predicate,this.source))},t}(),rw=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.source=n,i.seenValue=!1,i.index=0,i}return n.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(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new tL.K)},e}(p.L);function rE(t){return function(e){return e.lift(new rS(t))}}var rS=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new rx(t,this.total))},t}(),rx=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.count=0,n}return n.ZT(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(p.L);function rk(t){return function(e){return e.lift(new rI(t))}}var rI=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new tT.W}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new p.L(t)):e.subscribe(new rC(t,this._skipCount))},t}(),rC=function(t){function e(e,r){var n=t.call(this,e)||this;return n._skipCount=r,n._count=0,n._ring=Array(r),n}return n.ZT(e,t),e.prototype._next=function(t){var e=this._skipCount,r=this._count++;
19if(r<e)this._ring[r]=t;else{var n=r%e,i=this._ring,s=i[n];i[n]=t,this.destination.next(s)}},e}(p.L);function rM(t){return function(e){return e.lift(new rN(t))}}var rN=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new rR(t,this.notifier))},t}(),rR=function(t){function e(e,r){var n=t.call(this,e)||this;n.hasValue=!1;var s=new i.IY(n);n.add(s),n.innerSubscription=s;var o=(0,i.ft)(r,s);return o!==s&&(n.add(o),n.innerSubscription=o),n}return n.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 rT(t){return function(e){return e.lift(new rA(t))}}var rA=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new rL(t,this.predicate))},t}(),rL=function(t){function e(e,r){var n=t.call(this,e)||this;return n.predicate=r,n.skipping=!0,n.index=0,n}return n.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=!!e}catch(t){this.destination.error(t)}},e}(p.L);function rO(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return(0,v.K)(r)?(t.pop(),function(e){return(0,U.z)(t,e,r)}):function(e){return(0,U.z)(t,e)}}var rj=r(75483),rP=r(41951),rD=function(t){function e(e,r,n){void 0===r&&(r=0),void 0===n&&(n=rj.e);var i=t.call(this)||this;
19return i.source=e,i.delayTime=r,i.scheduler=n,(!(0,rP.k)(r)||r<0)&&(i.delayTime=0),n&&"function"==typeof n.schedule||(i.scheduler=rj.e),i}return n.ZT(e,t),e.create=function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=rj.e),new e(t,r,n)},e.dispatch=function(t){var e=t.source,r=t.subscriber;return this.add(e.subscribe(r))},e.prototype._subscribe=function(t){var r=this.delayTime,n=this.source;return this.scheduler.schedule(e.dispatch,r,{source:n,subscriber:t})},e}(tb.y);function rB(t,e){return void 0===e&&(e=0),function(r){return r.lift(new rF(t,e))}}var rF=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new rD(e,this.delay,this.scheduler).subscribe(t)},t}();function r$(t,e){return"function"==typeof e?function(r){return r.pipe(r$(function(r,n){return(0,H.D)(t(r,n)).pipe((0,tY.U)(function(t,i){return e(r,t,n,i)}))}))}:function(e){return e.lift(new rV(t))}}var rV=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new rH(t,this.project))},t}(),rH=function(t){function e(e,r){var n=t.call(this,e)||this;return n.project=r,n.index=0,n}return n.ZT(e,t),e.prototype._next=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){this.destination.error(t);return}this._innerSub(e)},e.prototype._innerSub=function(t){var e=this.innerSubscription;e&&e.unsubscribe();var r=new i.IY(this),n=this.destination;n.add(r),this.innerSubscription=(0,i.ft)(t,r),this.innerSubscription!==r&&n.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 rz(){return r$(et.y)}function rU(t,e){return e?r$(function(){return t},e):r$(function(){return t})}function rW(t){return function(e){return e.lift(new rZ(t))}}var rZ=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var r=new rq(t),n=(0,i.ft)(this.notifier,new i.IY(r));return n&&!r.seenValue?(r.add(n),e.subscribe(r)):r},t}(),rq=function(t){function e(e){var r=t.call(this,e)||this;return r.seenValue=!1,r}return n.ZT(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(i.Ds);function rJ(t,e){return void 0===e&&(e=!1),function(r){return r.lift(new rG(t,e))}}var rG=function(){function t(t,e){this.predicate=t,this.inclusive=e}return t.prototype.call=function(t,e){return e.subscribe(new rQ(t,this.predicate,this.inclusive))},t}(),rQ=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.inclusive=n,i.index=0,i}return n.ZT(e,t),e.prototype._next=function(t){var e,r=this.destination;try{e=this.predicate(t,this.index++)}catch(t){r.error(t);return}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var r=this.destination;e?r.next(t):(this.inclusive&&r.next(t),r.complete())},e}(p.L),rY=r(6883),rK=r(1062);function rX(t,e,r){return function(n){return n.lift(new r0(t,e,r))}}var r0=function(){function t(t,e,r){this.nextOrObserver=t,this.error=e,this.complete=r}return t.prototype.call=function(t,e){return e.subscribe(new r1(t,this.nextOrObserver,this.error,this.complete))},t}(),r1=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s._tapNext=rY.Z,s._tapError=rY.Z,s._tapComplete=rY.Z,s._tapError=n||rY.Z,s._tapComplete=i||rY.Z,(0,rK.m)(r)?(s._context=s,s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||rY.Z,s._tapError=r.error||rY.Z,s._tapComplete=r.complete||rY.Z),s}return n.ZT(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(t){this.destination.error(t);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){this.destination.error(t);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(p.L),r2={leading:!0,trailing:!1};function r4(t,e){return void 0===e&&(e=r2),function(r){return r.lift(new r3(t,!!e.leading,!!e.trailing))}}var r3=function(){function t(t,e,r){this.durationSelector=t,this.leading=e,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new r5(t,this.durationSelector,this.leading,this.trailing))},t}(),r5=function(t){function e(e,r,n,i){var s=t.call(this,e)||this;return s.destination=e,s.durationSelector=r,s._leading=n,s._trailing=i,s._hasValue=!1,s}return n.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(t){return this.destination.error(t),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 r6(t,e,r){return void 0===e&&(e=u.P),void 0===r&&(r=r2),function(n){return n.lift(new r9(t,e,r.leading,r.trailing))}}var r9=function(){function t(t,e,r,n){this.duration=t,this.scheduler
19=e,this.leading=r,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new r8(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),r8=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.duration=r,o.scheduler=n,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return n.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(r7,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()},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 r7(t){t.subscriber.clearThrottle()}var nt=r(81307);function ne(t){return void 0===t&&(t=u.P),function(e){return(0,nt.P)(function(){return e.pipe(ev(function(e,r){var n=e.current;return{value:r,current:t.now(),last:n}},{current:t.now(),value:void 0,last:void 0}),(0,tY.U)(function(t){var e=t.current,r=t.last;return new nr(t.value,e-r)}))})}}var nr=function(t,e){this.value=t,this.interval=e},nn=r(97995);function ni(t,e,r){return void 0===r&&(r=u.P),function(n){var i=ta(t),s=i?+t-r.now():Math.abs(t);return n.lift(new ns(s,i,e,r))}}var ns=function(){function t(t,e,r,n){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=r,this.scheduler=n}return t.prototype.call=function(t,e){return e.subscribe(new no(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),no=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;return o.absoluteTimeout=r,o.waitFor=n,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return n.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),nc=r(43985);function nu(t,e){return void 0===e&&(e=u.P),ni(t,(0,nc._)(new nn.W),e)}function na(t){return void 0===t&&(t=u.P),(0,tY.U)(function(e){return new nl(e,t.now())})}var nl=function(t,e){this.value=t,this.timestamp=e};function nh(t,e,r){return 0===r?[e]:(t.push(e),t)}function nd(){return eS(nh,[])}function nf(t){return function(e){return e.lift(new np(t))}}var np=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var r=new nb(t),n=e.subscribe(r);return n.closed||r.add((0,i.ft)(this.windowBoundaries,new i.IY(r))),n},t}(),nb=function(t){function e(e){var r=t.call(this,e)||this;return r.window=new eZ.xQ,e.next(r.window),r}return n.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,r=this.window=new eZ.xQ;e.next(r)},e}(i.Ds);function ng(t,e){return void 0===e&&(e=0),function(r){return r.lift(new ny(t,e))}}var ny=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new nm(t,this.windowSize,this.startWindowEvery))},t}(),nm=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.destination=e,i.windowSize=r,i.startWindowEvery=n,i.windows=[new eZ.xQ],i.count=0,e.next(i.windows[0]),i}return n.ZT(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,s=i.length,o=0;o<s&&!this.closed;o++)i[o].next(t);var c=this.count-n+1;if(c>=0&&c%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new eZ.xQ;i.push(u),r.next(u)}},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 nv(t){var e=u.P,r=null,n=Number.POSITIVE_INFINITY;return(0,v.K)(arguments[3])&&(e=arguments[3]),(0,v.K)(arguments[2])?e=arguments[2]:(0,rP.k)(arguments[2])&&(n=Number(arguments[2])),(0,v.K)(arguments[1])?e=arguments[1]:(0,rP.k)(arguments[1])&&(r=Number(arguments[1])),function(i){return i.lift(new n_(t,r,n,e))}}var n_=function(){function t(t,e,r,n){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=r,this.scheduler
19=n}return t.prototype.call=function(t,e){return e.subscribe(new nE(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),nw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return n.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}(eZ.xQ),nE=function(t){function e(e,r,n,i,s){var o=t.call(this,e)||this;o.destination=e,o.windowTimeSpan=r,o.windowCreationInterval=n,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var c=o.openWindow();return null!==n&&n>=0?(o.add(s.schedule(nk,r,{subscriber:o,window:c,context:null})),o.add(s.schedule(nx,n,{windowTimeSpan:r,windowCreationInterval:n,subscriber:o,scheduler:s}))):o.add(s.schedule(nS,r,{subscriber:o,window:c,windowTimeSpan:r})),o}return n.ZT(e,t),e.prototype._next=function(t){for(var e=this.windows,r=e.length,n=0;n<r;n++){var i=e[n];!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 nw;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 nS(t){var e=t.subscriber,r=t.windowTimeSpan,n=t.window;n&&e.closeWindow(n),t.window=e.openWindow(),this.schedule(t,r)}function nx(t){var e=t.windowTimeSpan,r=t.subscriber,n=t.scheduler,i=t.windowCreationInterval,s=r.openWindow(),o={action:this,subscription:null};o.subscription=n.schedule(nk,e,{subscriber:r,window:s,context:o}),this.add(o.subscription),this.schedule(t,i)}function nk(t){var e=t.subscriber,r=t.window,n=t.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(r)}function nI(t,e){return function(r){return r.lift(new nC(t,e))}}var nC=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new nM(t,this.openings,this.closingSelector))},t}(),nM=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.openings=r,i.closingSelector=n,i.contexts=[],i.add(i.openSubscription=(0,M.D)(i,r,r)),i}return n.ZT(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var r=e.length,n=0;n<r;n++)e[n].window.next(t)},e.prototype._error=function(e){var r=this.contexts;if(this.contexts=null,r)for(var n=r.length,i=-1;++i<n;){var s=r[i];s.window.error(e),s.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var r=e.length,n=-1;++n<r;){var i=e[n];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,r=-1;++r<e;){var n=t[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,r,n,i){if(t===this.openings){var s=void 0;try{s=(0,this.closingSelector)(e)}catch(t){return this.error(t)}var o=new eZ.xQ,c=new C.w,u={window:o,subscription:c};this.contexts.push(u);var a=(0,M.D)(this,s,u);a.closed?this.closeWindow(this.contexts.length-1):(a.context=u,c.add(a)),this.destination.next(o)}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,r=e[t],n=r.window,i=r.subscription;e.splice(t,1),n.complete(),i.unsubscribe()}},e}(N.L);function nN(t){return function(e){return e.lift(new nR(t))}}var nR=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new nT(t,this.closingSelector))},t}(),nT=function(t){function e(e,r){var n=t.call(this,e)||this;return n.destination=e,n.closingSelector=r,n.openWindow(),n}return n.ZT(e,t),e.prototype.notifyNext=function(t,e,r,n,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,r=this.window;r&&r.complete();var n=this.window=new eZ.xQ;this.destination.next(n);try{e=(0,this.closingSelector)()}catch(t){this.destination.error(t),this.window.error(t);return}this.add(this.closingNotification=(0,M.D)(this,e))},e}(N.L);function nA(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){var r;return"function"==typeof t[t.length-1]&&(r=t.pop()),e.lift(new nL(t,r))}}var nL=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new nO(t,this.observables,this.project))},t}(),nO=function(t){function e(e,r,n){var i=t.call(this,e)||this;i.observables=r,i.project=n,i.toRespond=[];var s=r.length;i.values=Array(s);for(var o=0;o<s;o++)i.toRespond.push(o);for(var o=0;o<s;o++){var c=r[o];i.add((0,M.D)(i,c,void 0,o))}return i}return n.ZT(e,t),e.prototype.notifyNext=function(t,e,r){this.values[r]=e;var n=this.toRespond;if(n.length>0){var i=n.indexOf(r);-1!==i&&n.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(t){this.destination.error(t);return}this.destination.next(e)},e}(N.L),nj=r(85165);function nP(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return e.lift.call(nj.$R.apply(void 0,[e].concat(t)))}}function nD(t){return function(e){return e.lift(new nj.mx(t))}}},40223:function(t,e,r){"use strict";r.d(e,{ZT:function(){return i}});/*! ***************************************************************************** 20Copyright (c) Microsoft Corporation. 21 22Permission to use, copy, modify, and/or distribute this software for any 23purpose with or without fee is hereby granted. 24 25THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 26REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 27AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 28INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 29LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 30OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 31PERFORMANCE OF THIS SOFTWARE. 32***************************************************************************** */var n=function(t,e){return(n=Object.
32setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}},40333:function(t,e,r){var n=r(10632).Buffer;function i(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=n.from(t,e));for(var r=this._block,i=this._blockSize,s=t.length,o=this._len,c=0;c<s;){for(var u=o%i,a=Math.min(s-c,i-u),l=0;l<a;l++)r[u+l]=t[c+l];o+=a,c+=a,o%i==0&&this._update(r)}return this._len+=s,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 r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0;this._block.writeUInt32BE((r-n)/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return t?i.toString(t):i},i.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=i},42724:function(t,e,r){var n=t.exports=function(t){var e=n[t=t.toLowerCase()];if(!e)throw Error(t+" is not supported (we accept pull requests)");return new e};n.sha=r(53799),n.sha1=r(4836),n.sha224=r(44455),n.sha256=r(51250),n.sha384=r(43836),n.sha512=r(58103)},53799:function(t,e,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],c=Array(80);function u(){this.init(),this._w=c,i.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=e[u-3]^e[u-8]^e[u-14]^e[u-16];for(var a=0;a<80;++a){var l,h,d,f,p,b=~~(a/20),g=((l=r)<<5|l>>>27)+(h=n,d=i,f=s,0===b?h&d|~h&f:2===b?h&d|h&f|d&f:h^d^f)+c+e[a]+o[b]|0;c=s,s=i,i=(p=n)<<30|p>>>2,n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},u.prototype._hash=function(){var t=s.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=u},4836:function(t,e,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],c=Array(80);function u(){this.init(),this._w=c,i.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=(l=e[u-3]^e[u-8]^e[u-14]^e[u-16])<<1|l>>>31;for(var a=0;a<80;++a){var l,h,d,f,p,b,g=~~(a/20),y=((h=r)<<5|h>>>27)+(d=n,f=i,p=s,0===g?d&f|~d&p:2===g?d&f|d&p|f&p:d^f^p)+c+e[a]+o[g]|0;c=s,s=i,i=(b=n)<<30|b>>>2,n=r,r=y}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},u.prototype._hash=function(){var t=s.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=u},44455:function(t,e,r){var n=r(87398),i=r(51250),s=r(40333),o=r(10632).Buffer,c=Array(64);function u(){this.init(),this._w=c,s.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var t=o.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}
32,t.exports=u},51250:function(t,e,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[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],c=Array(64);function u(){this.init(),this._w=c,i.call(this,64,56)}n(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,r=0|this._a,n=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,u=0|this._f,a=0|this._g,l=0|this._h,h=0;h<16;++h)e[h]=t.readInt32BE(4*h);for(;h<64;++h)e[h]=(((f=e[h-2])>>>17|f<<15)^(f>>>19|f<<13)^f>>>10)+e[h-7]+(((p=e[h-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+e[h-16]|0;for(var d=0;d<64;++d){var f,p,b,g,y,m,v,_,w,E=l+(((b=c)>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(g=c,y=u,(m=a)^g&(y^m))+o[d]+e[d]|0,S=(((v=r)>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+((_=r)&(w=n)|i&(_|w))|0;l=a,a=u,u=c,c=s+E|0,s=i,i=n,n=r,r=E+S|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=u+this._f|0,this._g=a+this._g|0,this._h=l+this._h|0},u.prototype._hash=function(){var t=s.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=u},43836:function(t,e,r){var n=r(87398),i=r(58103),s=r(40333),o=r(10632).Buffer,c=Array(160);function u(){this.init(),this._w=c,s.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var t=o.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+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=u},58103:function(t,e,r){var n=r(87398),i=r(40333),s=r(10632).Buffer,o=[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,
321126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],c=Array(160);function u(){this.init(),this._w=c,i.call(this,128,112)}function a(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function h(t,e){return t>>>0<e>>>0?1:0}n(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,c=0|this._eh,u=0|this._fh,d=0|this._gh,f=0|this._hh,p=0|this._al,b=0|this._bl,g=0|this._cl,y=0|this._dl,m=0|this._el,v=0|this._fl,_=0|this._gl,w=0|this._hl,E=0;E<32;E+=2)e[E]=t.readInt32BE(4*E),e[E+1]=t.readInt32BE(4*E+4);for(;E<160;E+=2){var S,x,k,I,C,M,N,R,T=e[E-30],A=e[E-30+1],L=((S=T)>>>1|(x=A)<<31)^(S>>>8|x<<24)^S>>>7,O=((k=A)>>>1|(I=T)<<31)^(k>>>8|I<<24)^(k>>>7|I<<25);T=e[E-4],A=e[E-4+1];var j=((C=T)>>>19|(M=A)<<13)^(M>>>29|C<<3)^C>>>6,P=((N=A)>>>19|(R=T)<<13)^(R>>>29|N<<3)^(N>>>6|R<<26),D=e[E-14],B=e[E-14+1],F=e[E-32],$=e[E-32+1],V=O+B|0,H=L+D+h(V,O)|0;H=(H=H+j+h(V=V+P|0,P)|0)+F+h(V=V+$|0,$)|0,e[E]=H,e[E+1]=V}for(var z=0;z<160;z+=2){H=e[z],V=e[z+1];var U,W,Z,q,J,G,Q,Y,K,X,tt=(U=r)&(W=n)|i&(U|W),te=(Z=p)&(q=b)|g&(Z|q),tr=a(r,p),tn=a(p,r),ti=l(c,m),ts=l(m,c),to=o[z],tc=o[z+1],tu=(J=c,G=u,(Q=d)^J&(G^Q)),ta=(Y=m,K=v,(X=_)^Y&(K^X)),tl=w+ts|0,th=f+ti+h(tl,w)|0;th=(th=(th=th+tu+h(tl=tl+ta|0,ta)|0)+to+h(tl=tl+tc|0,tc)|0)+H+h(tl=tl+V|0,V)|0;var td=tn+te|0,tf=tr+tt+h(td,tn)|0;f=d,w=_,d=u,_=v,u=c,v=m,c=s+th+h(m=y+tl|0,y)|0,s=i,y=g,i=n,g=b,n=r,b=p,r=th+tf+h(p=tl+td|0,tl)|0}this._al=this._al+p|0,this._bl=this._bl+b|0,this._cl=this._cl+g|0,this._dl=this._dl+y|0,this._el=this._el+m|0,this._fl=this._fl+v|0,this._gl=this._gl+_|0,this._hl=this._hl+w|0,this._ah=this._ah+r+h(this._al,p)|0,this._bh=this._bh+n+h(this._bl,b)|0,this._ch=this._ch+i+h(this._cl,g)|0,this._dh=this._dh+s+h(this._dl,y)|0,this._eh=this._eh+c+h(this._el,m)|0,this._fh=this._fh+u+h(this._fl,v)|0,this._gh=this._gh+d+h(this._gl,_)|0,this._hh=this._hh+f+h(this._hl,w)|0},u.prototype._hash=function(){var t=s.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+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=u},16689:function(t,e,r){"use strict";var n=r(77323),i=r(50084),s=r(56919),o=r(31354),c=n("%WeakMap%",!0),u=n("%Map%",!0),a=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),b=function(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},g=function(t,e){var r=b(t,e);return r&&r.value},y=function(t,e,r){var n=b(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}};t.exports=function(){var t,e,r,n={assert:function(t){if(!n.has(t))throw new o("Side channel does not contain "+s(t))},get:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(t)return a(t,n)}else if(u){if(e)return d(e,n)}else if(r)return g(r,n)},has:function(n){if(c&&n&&("object"==typeof n||"function"==typeof n)){if(t)return h(t,n)}else if(u){if(e)return p(e,n)}else if(r)return!!b(r,n);return!1},set:function(n,i){c&&n&&("object"==typeof n||"function"==typeof n)?(t||(t=new c),l(t,n,i)):u?(e||(e=new u),f(e,n,i)):(r||(r={key:{},next:null}),y(r,n,i))}};return n}},44924:function(t){t.exports=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(t[i]=n[i])}return t};var e=Object.prototype.hasOwnProperty}}]);
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.