1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5811],{39016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;let i=n(52719),s=n(82704),o=n(49682),a=n(83143),u=n(31405),c=n(16570),l=n(27472),R=n(94643),I=n(43604);let CoinbaseWalletSDK=class CoinbaseWalletSDK{constructor(e){var t,n,i;let a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let R=e.linkAPIUrl||s.LINK_API_URL;if(a=e.uiConstructor?e.uiConstructor:e=>new u.WalletSDKUI(e),void 0===e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this._overrideIsCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,e.diagnosticLogger&&e.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(i=e.reloadOnDisconnect)||void 0===i||i;let M=new URL(R),W=`${M.protocol}//${M.host}`;if(this._storage=new o.ScopedLocalStorage(`-walletlink:${W}`),this._storage.setItem("version",CoinbaseWalletSDK.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new l.WalletSDKRelayEventManager,this._relay=new c.WalletSDKRelay({linkAPIUrl:R,version:I.LIB_VERSION,darkMode:!!e.darkMode,uiConstructor:a,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode))return;this._relay.attachUI()}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;let i=this.coinbaseBrowser;if(i)return i;let s=this._relay;if(!s||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return e||s.setConnectDisabled(!0),new a.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(s),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,R.getFavicon)();let i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,t;return null!==(t=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==t?t:null}getCoinbaseWalletLogo(e,t=240){return(0,i.walletLogo)(e,t)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=null!==(e=window.ethereum)&&void 0!==e?e:null===(t=window.top)||void 0===t?void 0:t.ethereum;if(!n)return;if("isCoinbaseBrowser"in n&&n.isCoinbaseBrowser)return n;return}catch(e){return}}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}};t.CoinbaseWalletSDK=CoinbaseWalletSDK,CoinbaseWalletSDK.VERSION=I.LIB_VERSION},52719:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>
vendor: 9,478 bytes, line 1
1{let n;switch(e){case"standard":default:return n=t,`data:image/svg+xml,%3Csvg width='${t}' height='${n}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return n=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${n}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.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"textWithLogo":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return n=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${n}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}
1},57816:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}"},95558:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseAppSteps=t.CoinbaseWalletSteps=t.ConnectItem=t.ConnectContent=void 0;let s=i(n(60801)),o=n(6400),a=n(30396),u=n(94643),c=n(43604),l=n(37598),R=i(n(417)),I=i(n(12348)),M=n(18646),W=i(n(35666)),U=i(n(30019)),Z=n(67494),J=n(70381),Q=n(88727),G=i(n(57816)),Y={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:I.default,steps:CoinbaseWalletSteps},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:R.default,steps:CoinbaseAppSteps}},makeQrCodeImage=e=>"coinbase-app"===e?W.default:U.default,makeIconColor=e=>"light"===e?"#FFFFFF":"#0A0B0D";function ConnectItem({title:e,description:t,icon:n,selected:i,theme:a,onClick:u}){return(0,o.h)("div",{onClick:u,class:(0,s.default)("-cbwsdk-connect-item",a,{selected:i})},(0,o.h)("div",null,(0,o.h)("img",{src:n,alt:e})),(0,o.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,o.h)("h3",{class:"-cbwsdk-connect-item-title"},e),(0,o.h)("p",{class:"-cbwsdk-connect-item-description"},t)))}function CoinbaseWalletSteps({theme:e}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,o.h)("li",{class:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"Scan")," "),(0,o.h)("span",{class:(0,s.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(M.QRCodeIcon,{fill:makeIconColor(e)})))))}function CoinbaseAppSteps({theme:e}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,o.h)("li",{class:(0,s.default)("-cbwsdk-wallet-steps-item",e)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"More")),(0,o.h)("span",{class:(0,s.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(Z.StatusDotIcon,{fill:makeIconColor(e)})),(0,o.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,o.h)("strong",null,"Scan")),(0,o.h)("span",{class:(0,s.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,o.h)(M.QRCodeIcon,{fill:makeIconColor(e)})))))}t.ConnectContent=function(e){let{theme:t}=e,[n,i]=(0,a.useState)("coinbase-wallet-app"),R=(0,a.useCallback)(e=>{i(e)},[]),I=(0,u.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),M=Y[n];if(!n)return null;let W=M.steps,U="coinbase-app"===n;return(0,o.h)("div",{"data-testid":"connect-content",class:(0,s.default)("-cbwsdk-connect-content",t)},(0,o.h)("style",null,G.default),(0,o.h)("div",{class:"-cbwsdk-connect-content-header"},(0,o.h)("h2",{class:(0,s.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with one of our mobile apps"),e.onCancel&&(0,o.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,o.h)(l.CloseIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,o.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,o.h)("div",null,Object.entries(Y).map(([e,i])=>(0,o.h)(ConnectItem,{key:e,title:i.title,description:i.description,icon:i.icon,selected:n===e,onClick:()=>R(e),theme:t}))),U&&(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-content-update-app",t)},"Donât see a ",(0,o.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,o.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,o.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,o.h)(J.QRCode,{content:I,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:makeQrCodeImage(n),width:25,height:25}}),(0,o.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:c.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:I})),(0,o.h)(W,{theme:t}),!e.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",class:(0,s.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,o.h)(Q.Spinner,{size:36,color:"dark"===t?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting...")))))},t.ConnectItem=ConnectItem,t.CoinbaseWalletSteps=CoinbaseWalletSteps,t.CoinbaseAppSteps=CoinbaseAppSteps},96956:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.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}"},98845:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectDialog=void 0;let s=i(n(60801)),o=n(6400),a=n(30396),u=n(95558),c=n(26868),l=i(n(96956));t.ConnectDialog=e=>{let{isOpen:t,darkMode:n}=e,[i,R]=(0,a.useState)(!t),[I,M]=(0,a.useState)(!t);(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{M(!t)},10)];return t?R(!1):e.push(window.setTimeout(()=>{R(!0)},360)),()=>{e.forEach(window.clearTimeout)}},[e.isOpen]);let W=n?"dark":"light";return(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-container",i&&"-cbwsdk-connect-dialog-container-hidden")},(0,o.h)("style",null,l.default),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-backdrop",W,I&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-connect-dialog"},(0,o.h)("div",{class:(0,s.default)("-cbwsdk-connect-dialog-box",I&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,o.h)(u.ConnectContent,{theme:W,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,o.h)(c.TryExtensionContent,{theme:W}))))}},27759:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;let i=n(6400),s=n(67734),o=n(98845);t.LinkFlow=class{constructor(e){this.extensionUI$=new s.BehaviorSubject({}),this.subscriptions=new s.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(e=>{this.isConnected!==e&&(this.isConnected=e,this.render())})),this.subscriptions.add(this.chainId$.subscribe(e=>{this.chainId!==e&&(this.chainId=e,this.render())}))}detach(){var e;this.root&&(this.subscriptions.unsubscribe(),(0,i.render)(null,this.root),null===(e=this.root.parentElement)||void 0===e||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{this.root&&(0,i.render)((0,i.h)(o.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(e)}}},70381:function(e,t,n){"use strict";var i=n(48764).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;let o=n(6400),a=n(30396),u=s(n(7713));t.QRCode=e=>{let[t,n]=(0,a.useState)("");return(0,a.useEffect)(()=>{var t,s;let o=new u.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(t=e.width)&&void 0!==t?t:256,height:null!==(s=e.height)&&void 0!==s?s:256,padding:0,image:e.image}),a=i.from(o.svg(),"utf8").toString("base64");n(`data:image/svg+xml;base64,${a}`)}),t?(0,o.h)("img",{src:t,alt:"QR Code"}):null}},24325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}"},19199:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let s=i(n(60801)),o=n(6400),a=n(30396),u=i(n(24325));t.Snackbar=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>(0,o.h)(t.SnackbarInstance,Object.assign({},n,{key:e}))))),this.root)}},t.SnackbarContainer=e=>(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,u.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n,appSrc:i})=>{let[u,c]=(0,a.useState)(!0),[l,R]=(0,a.useState)(null!=e&&e);return(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{c(!1)},1),window.setTimeout(()=>{R(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-instance",u&&"-cbwsdk-snackbar-instance-hidden",l&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{R(!l)}},(0,o.h)("img",{src:"coinbase-app"===i?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyA
1wLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,o.h)("div",{class:"-gear-container"},!l&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((e,t)=>(0,o.h)("div",{class:(0,s.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,o.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,s.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))}},22061:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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)}}"},88727:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;let s=n(6400),o=i(n(22061));t.Spinner=e=>{var t;let n=null!==(t=e.size)&&void 0!==t?t:64,i=e.color||"#000";return(0,s.h)("div",{class:"-cbwsdk-spinner"},(0,s.h)("style",null,o.default),(0,s.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,s.h)("circle",{style:{cx:50,cy:50,r:45,stroke:i}})))}},5157:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}"},26868:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TryExtensionContent=void 0;let s=i(n(60801)),o=n(6400),a=n(30396),u=n(79414),c=n(52467),l=n(73031),R=i(n(5157));t.TryExtensionContent=function({theme:e}){let[t,n]=(0,a.useState)(!1),i=(0,a.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),I=(0,a.useCallback)(()=>{t?window.location.reload():(i(),n(!0))},[i,t]);return(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension",e)},(0,o.h)("style",null,R.default),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("h3",{class:(0,s.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,o.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,o.h)("button",{class:(0,s.default)("-cbwsdk-try-extension-cta",e),onClick:I},t?"Refresh":"Install"),(0,o.h)("div",null,!t&&(0,o.h)(u.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===e?"#0052FF":"#588AF5"})))),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,s.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(c.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,s.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,o.h)(l.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,s.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},79414:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftIcon=void 0;let i=n(6400);t.ArrowLeftIcon=function(e){return(0,i.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}},37598:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;let i=n(6400);t.CloseIcon=function(e){return(0,i.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}},52467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaptopIcon=void 0;let i=n(6400);t.LaptopIcon=function(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,i.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"}))}},18646:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeIcon=void 0;let i=n(6400);t.QRCodeIcon=function(e){return(0,i.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,i.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,i.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,i.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,i.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,i.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,i.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,i.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,i.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},35666:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=` 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`;t.default=n},30019:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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`},73031:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.SafeIcon=void 0;let i=n(6400);t.SafeIcon=function(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}},67494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusDotIcon=void 0;let i=n(6400);t.StatusDotIcon=function(e){return(0,i.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}},417:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},12348:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},85755:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientMessagePublishEvent=t.ClientMessageSetSessionConfig=t.ClientMessageGetSessionConfig=t.ClientMessageIsLinked=t.ClientMessageHostSession=void 0,t.ClientMessageHostSession=function(e){return Object.assign({type:"HostSession"},e)},t.ClientMessageIsLinked=function(e){return Object.assign({type:"IsLinked"},e)},t.ClientMessageGetSessionConfig=function(e){return Object.assign({type:"GetSessionConfig"},e)},t.ClientMessageSetSessionConfig=function(e){return Object.assign({type:"SetSessionConfig"},e)},t.ClientMessagePublishEvent=function(e){return Object.assign({type:"PublishEvent"},e)}},32191:function(e,t){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.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"}},80179:function(e,t,n){"use strict";var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.RxWebSocket=t.ConnectionState=void 0;let o=n(67734),a=n(16473);(s=i=t.ConnectionState||(t.ConnectionState={}))[s.DISCONNECTED=0]="DISCONNECTED",s[s.CONNECTING=1]="CONNECTING",s[s.CONNECTED=2]="CONNECTED",t.RxWebSocket=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new o.BehaviorSubject(i.DISCONNECTED),this.incomingDataSubject=ne
14w o.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,o.throwError)(Error("webSocket object is not null")):new o.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(t){e.error(t);return}this.connectionStateSubject.next(i.CONNECTING),t.onclose=t=>{this.clearWebSocket(),e.error(Error(`websocket error ${t.code}: ${t.reason}`)),this.connectionStateSubject.next(i.DISCONNECTED)},t.onopen=t=>{e.next(),e.complete(),this.connectionStateSubject.next(i.CONNECTED)},t.onmessage=e=>{this.incomingDataSubject.next(e.data)}}).pipe((0,a.take)(1))}disconnect(){let{webSocket:e}=this;if(e){this.clearWebSocket(),this.connectionStateSubject.next(i.DISCONNECTED);try{e.close()}catch(e){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,a.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch(e){return(0,o.empty)()}return(0,o.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}},76156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isServerMessageFail=void 0,t.isServerMessageFail=function(e){return e&&"Fail"===e.type&&"number"==typeof e.id&&"string"==typeof e.sessionId&&"string"==typeof e.error}},18876:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKConnection=void 0;let i=n(67734),s=n(16473),o=n(73526),a=n(91295),u=n(85755),c=n(32191),l=n(80179),R=n(76156);t.WalletSDKConnection=class{constructor(e,t,n,u,R=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=u,this.subscriptions=new i.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this.connectedSubject=ne
14w i.BehaviorSubject(!1),this.linkedSubject=new i.BehaviorSubject(!1),this.sessionConfigSubject=new i.ReplaySubject(1);let I=new l.RxWebSocket(n+"/rpc",R);this.ws=I,this.subscriptions.add(I.connectionState$.pipe((0,s.tap)(t=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(c.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:o.Session.hash(e)})}),(0,s.skip)(1),(0,s.filter)(e=>e===l.ConnectionState.DISCONNECTED&&!this.destroyed),(0,s.delay)(5e3),(0,s.filter)(e=>!this.destroyed),(0,s.flatMap)(e=>I.connect()),(0,s.retry)()).subscribe()),this.subscriptions.add(I.connectionState$.pipe((0,s.skip)(2),(0,s.switchMap)(e=>(0,i.iif)(()=>e===l.ConnectionState.CONNECTED,this.authenticate().pipe((0,s.tap)(e=>this.sendIsLinked()),(0,s.tap)(e=>this.sendGetSessionConfig()),(0,s.map)(e=>!0)),(0,i.of)(!1))),(0,s.distinctUntilChanged)(),(0,s.catchError)(e=>(0,i.of)(!1))).subscribe(e=>this.connectedSubject.next(e))),this.subscriptions.add(I.connectionState$.pipe((0,s.skip)(1),(0,s.switchMap)(e=>(0,i.iif)(()=>e===l.ConnectionState.CONNECTED,(0,i.timer)(0,1e4)))).subscribe(e=>0===e?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(I.incomingData$.pipe((0,s.filter)(e=>"h"===e)).subscribe(e=>this.updateLastHeartbeat())),this.subscriptions.add(I.incomingJSONData$.pipe((0,s.filter)(e=>["IsLinkedOK","Linked"].includes(e.type))).subscribe(t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(c.EVENTS.LINKED,{sessionIdHash:o.Session.hash(e),linked:t.linked,type:t.type,onlineGuests:t.onlineGuests}),this.linkedSubject.next(t.linked||t.onlineGuests>0)})),this.subscriptions.add(I.incomingJSONData$.pipe((0,s.filter)(e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type))).subscribe(t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(c.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:o.Session.hash(e),metadata_keys:t&&t.metadata?Object.keys(t.metadata):void 0}),this.sessionConfigSubject.next({webhookId:t.webhookId,webhookUrl:t.webhookUrl,metadata:t.metadata})}))}connect(){var e;if(this.destroyed)throw Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.STARTED_CONNECTING,{sessionIdHash:o.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.DISCONNECTED,{sessionIdHash:o.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,s.filter)(e=>e),(0,s.take)(1),(0,s.map)(()=>void 0))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,s.filter)(e=>e),(0,s.take)(1),(0,s.map)(()=>void 0))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,s.filter)(e=>"Event"===e.type&&"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data),(0,s.map)(e=>e))}setSessionMetadata(e,t){let n=(0,u.ClientMessageSetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,s.flatMap)(e=>this.makeRequest(n)),(0,s.map)(e=>{if((0,R.isServerMessageFail)(e))throw Error(e.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let i=(0,u.ClientMessagePublishEvent)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,s.flatMap)(e=>this.makeRequest(i)),(0,s.map)(e=>{if((0,R.isServerMessageFail)(e))throw Error(e.error||"failed to publish event");return e.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(e){}}makeRequest(e,t=6e4){let n=e.id;try{this.sendData(e)}catch(e){return(0,i.throwError)(e)}return this.ws.incomingJSONData$.pipe((0,s.timeoutWith)(t,(0,i.throwError)(Error(`request ${n} timed out`))),(0,s.filter)(e=>e.id===n),(0,s.take)(1))}authenticate(){let e=(0,u.ClientMessageHostSession)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});
14return this.makeRequest(e).pipe((0,s.map)(e=>{if((0,R.isServerMessageFail)(e))throw Error(e.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,u.ClientMessageIsLinked)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,u.ClientMessageGetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},82704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINK_API_URL=void 0,t.LINK_API_URL="https://www.walletlink.org"},69621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;let i=n(79826),s=n(67386),o=n(43604);t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},i.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},i.errorCodes.provider),{unsupportedChain:4902}))})),t.standardErrorMessage=function(e){return void 0!==e?(0,i.getMessageFromCode)(e):"Unknown error"},t.standardErrors=Object.freeze(Object.assign(Object.assign({},i.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},i.ethErrors.provider),{unsupportedChain:(e="")=>i.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${e}. Try adding the chain using wallet_addEthereumChain first.`})}))})),t.serializeError=function(e,n){let a=(0,i.serializeError)("string"==typeof e?{message:e,code:t.standardErrorCodes.rpc.internal}:(0,s.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method,result:e.result}}):e,{shouldIncludeStack:!0}),u=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");u.searchParams.set("version",o.LIB_VERSION),u.searchParams.set("code",a.code.toString());let c=function(e,t){let n=null==e?void 0:e.method;return n?n:void 0!==t?"string"==typeof t?t:Array.isArray(t)?t.length>0?t[0].method:void 0:t.method:void 0}(a.data,n);return c&&u.searchParams.set("method",c),u.searchParams.set("message",a.message),Object.assign(Object.assign({},a),{docUrl:u.href})},t.getErrorCode=function(e){var t;return"number"==typeof e?e:"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}},45811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=t.CoinbaseWalletSDK=void 0;let i=n(39016),s=n(83143);var o=n(39016);Object.defineProperty(t,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return o.CoinbaseWalletSDK}});var a=n(83143);Object.defineProperty(t,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return a.CoinbaseWalletProvider}}),t.default=i.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=i.CoinbaseWalletSDK,window.CoinbaseWalletProvider=s.CoinbaseWalletProvider,window.WalletLink=i.CoinbaseWalletSDK,window.WalletLinkProvider=s.CoinbaseWalletProvider)},49682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0,t.ScopedLocalStorage=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;n<localStorage.length;n++){let i=localStorage.key(n);"string"==typeof i&&i.startsWith(e)&&t.push(i)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`${this.scope}:${e}`}}},1119:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.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}'},27162:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
14dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;let s=i(n(1119));t.injectCssReset=function(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(s.default)),document.documentElement.appendChild(e)}},83143:function(e,t,n){"use strict";var i=n(48764).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;let o=s(n(19394)),a=s(n(13550)),u=n(32191),c=n(69621),l=n(73526),R=n(15633),I=n(93083),M=n(67386),W=n(94643),U=s(n(14497)),Z=n(19826),J=n(28565),Q=n(5313),G="DefaultChainId",Y="DefaultJsonRpcUrl";let CoinbaseWalletProvider=class CoinbaseWalletProvider extends o.default{constructor(e){var t,n;super(),this._filterPolyfill=new Z.FilterPolyfill(this),this._subscriptionManager=new Q.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=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this.isCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,this.qrUrl=e.qrUrl;let i=this.getChainId(),s=(0,W.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:s});let o=this._storage.getItem(R.LOCAL_STORAGE_ADDRESSES_KEY);if(o){let e=o.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,W.ensureAddressString)(e)),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",e=>{this.emit("message",{type:e.method,data:e.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",e=>{var t;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type){if("dappChainSwitched"===e.data.data.action){let n=e.data.data.chainId,i=null!==(t=e.data.data.jsonRpcUrl)&&void 0!==t?t:this.jsonRpcUrl;this.updateProviderInfo(i,Number(n))}"addressChanged"===e.data.data.action&&this._setAddresses([e.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,W.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 e;return null!==(e=this._storage.getItem(Y))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(Y,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(G,t.toString(10));let i=(0,W.ensureIntNumber)(t)!==n;(i||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,i,s,o){let a=await this.initializeRelay(),u=await a.watchAsset(e,t,n,i,s,null==o?void 0:o.toString()).promise;return!!u.result}async addEthereumChain(e,t,n,i,s,o){var a,u;if((0,W.ensureIntNumber)(e)===this.getChainId())return!1;let c=await this.initializeRelay(),l=c.inlineAddEthereumChain(e.toString());this._isAuthorized()||l||await c.requestEthereumAccounts().promise;let R=await c.addEthereumChain(e.toString(),t,s,n,i,o).promise;return(null===(a=R.result)||void 0===a?void 0:a.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(u=R.result)||void 0===u?void 0:u.isApproved)===!0}async switchEthereumChain(e){let t=await this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,M.isErrorResponse)(n)&&n.errorCode){if(n.errorCode===c.standardErrorCodes.provider.unsupportedChain)throw c.standardErrors.provider.unsupportedChain(e);throw c.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}let i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?l.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())?[...this._addresses]:await this.send(J.JSONRPCMethod.eth_requestAccounts)}async close(){let e=await this.initializeRelay();e.resetAndReload()}send(e,t){try{let n=this._send(e,t);if(n instanceof Promise)return n.catch(t=>{throw(0,c.serializeError)(t,e)})}catch(t){throw(0,c.serializeError)(t,e)}}_send(e,t){if("string"==typeof e){let n=Array.isArray(t)?t:void 0!==t?[t]:[];return this._sendRequestAsync({jsonrpc:"2.0",id:0,method:e,params:n}).then(e=>e.result)}return"function"==typeof t?this._sendAsync(e,t):Array.isArray(e)?e.map(e=>this._sendRequest(e)):this._sendRequest(e)}async sendAsync(e,t){try{return this._sendAsync(e,t).catch(t=>{throw(0,c.serializeError)(t,e)})}catch(t){return Promise.reject((0,c.serializeError)(t,e))}}async _sendAsync(e,t){if("function"!=typeof t)throw Error("callback is required");if(Array.isArray(e)){this._sendMultipleRequestsAsync(e).then(e=>t(null,e)).catch(e=>t(e,null));return}return this._sendRequestAsync(e).then(e=>t(null,e)).catch(e=>t(e,null))}async request(e){try{return this._request(e).catch(t=>{throw(0,c.serializeError)(t,e.method)})}catch(t){return Promise.reject((0,c.serializeError)(t,e.method))}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw c.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw c.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw c.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let i=void 0===n?[]:n,s=this._relayEventManager.makeRequestId(),o=await this._sendRequestAsync({method:t,params:i,jsonrpc:"2.0",id:s});return o.result}
14async scanQRCode(e){var t;let n=await this.initializeRelay(),i=await n.scanQRCode((0,W.ensureRegExpString)(e)).promise;if("string"!=typeof i.result)throw(0,c.serializeError)(null!==(t=i.errorMessage)&&void 0!==t?t:"result was not a string",I.Web3Method.scanQRCode);return i.result}async genericRequest(e,t){var n;let i=await this.initializeRelay(),s=await i.genericRequest(e,t).promise;if("string"!=typeof s.result)throw(0,c.serializeError)(null!==(n=s.errorMessage)&&void 0!==n?n:"result was not a string",I.Web3Method.generic);return s.result}async selectProvider(e){var t;let n=await this.initializeRelay(),i=await n.selectProvider(e).promise;if("string"!=typeof i.result)throw(0,c.serializeError)(null!==(t=i.errorMessage)&&void 0!==t?t:"result was not a string",I.Web3Method.selectProvider);return i.result}supportsSubscriptions(){return!1}subscribe(){throw Error("Subscriptions are not supported")}unsubscribe(){throw Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw Error("addresses is not an array");let n=e.map(e=>(0,W.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(R.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" ")))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let i=this._handleSynchronousMethods(e);if(void 0!==i)return t({jsonrpc:"2.0",id:e.id,result:i});let s=this._handleAsynchronousFilterMethods(e);if(void 0!==s){s.then(n=>t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e));return}let o=this._handleSubscriptionMethods(e);if(void 0!==o){o.then(n=>t({jsonrpc:"2.0",id:e.id,result:n.result})).catch(e=>n(e));return}}catch(e){return n(e)}this._handleAsynchronousMethods(e).then(n=>n&&t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(e=>this._sendRequestAsync(e)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case J.JSONRPCMethod.eth_accounts:return this._eth_accounts();case J.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case J.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case J.JSONRPCMethod.net_version:return this._net_version();case J.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case J.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case J.JSONRPCMethod.eth_sign:return this._eth_sign(n);case J.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case J.JSONRPCMethod.personal_sign:return this._personal_sign(n);case J.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case J.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case J.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case J.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case J.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case J.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case J.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case J.JSONRPCMethod.eth_signTypedData_v4:case J.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case J.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case J.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case J.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case J.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}let i=await this.initializeRelay();return i.makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case J.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case J.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case J.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case J.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case J.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case J.JSONRPCMethod.eth_subscribe:case J.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,W.ensureAddressString)(e),n=this._addresses.map(e=>(0,W.ensureAddressString)(e));return n.includes(t)}catch(e){}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,W.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,W.ensureAddressString)(e.to):null,s=null!=e.value?(0,W.ensureBN)(e.value):new a.default(0),o=e.data?(0,W.ensureBuffer)(e.data):i.alloc(0),u=null!=e.nonce?(0,W.ensureIntNumber)(e.nonce):null,c=null!=e.gasPrice?(0,W.ensureBN)(e.gasPrice):null,l=null!=e.maxFeePerGas?(0,W.ensureBN)(e.maxFeePerGas):null,R=null!=e.maxPriorityFeePerGas?(0,W.ensureBN)(e.maxPriorityFeePerGas):null,I=null!=e.gas?(0,W.ensureBN)(e.gas):null,M=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:s,data:o,nonce:u,gasPriceInWei:c,maxFeePerGas:l,maxPriorityFeePerGas:R,gasLimit:I,chainId:M}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw c.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw c.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,i){this._ensureKnownAddress(t);try{let s=await this.initializeRelay(),o=await s.signEthereumMessage(e,t,n,i).promise;return{jsonrpc:"2.0",id:0,result:o.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){let i=await this.initializeRelay(),s=await i.ethereumAddressFromSignedMessage(e,t,n).promise;return{jsonrpc:"2.0",id:0,result:s.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,W.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(G);if(!e)return(0,W.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,W.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;let t;if(null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?l.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let e=await this.initializeRelay();t=await e.requestEthereumAccounts().promise}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!t.result)throw Error("accounts received is empty");return this._setAddresses(t.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,W.ensureAddressString)(e[0]),n=(0,W.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,W.ensureBuffer)(e[0]),n=(0,W.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,W.ensureBuffer)(e[0]),n=(0,W.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,W.ensureBuffer)(e[0]),n=(0,W.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signEthereumTransaction(t).promise;return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let t=(0,W.ensureBuffer)(e[0]),n=await this.initializeRelay(),i=await n.submitEthereumTransaction(t,this.getChainId()).promise;return{jsonrpc:"2.0",id:0,result:i.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signAndSubmitEthereumTransaction(t).promise;return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,W.ensureParsedJSONObject)(e[0]),n=(0,W.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let i=U.default.hashForSignTypedDataLegacy({data:t}),s=JSON.stringify(t,null,2);return this._signEthereumMessage(i,n,!1,s)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,W.ensureAddressString)(e[0]),n=(0,W.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=U.default.hashForSignTypedData_v3({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,s)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,W.ensureAddressString)(e[0]),n=(0,W.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let i=U.default.hashForSignTypedData_v4({data:n}),s=JSON.stringify(n,null,2);return this._signEthereumMessage(i,t,!1,s)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if("string"!=typeof n)throw Error("parameter must be a string");if("object"!=typeof t||null===t)throw Error("parameter must be an object");let i=await this.genericRequest(t,n);return{jsonrpc:"2.0",id:0,result:i}}async _wallet_addEthereumChain(e){var t,n,i,s;let o=e[0];if((null===(t=o.rpcUrls)||void 0===t?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw c.standardErrors.rpc.invalidParams("chainName is a required field");if(!o.nativeCurrency)throw c.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let a=parseInt(o.chainId,16),u=await this.addEthereumChain(a,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(i=o.blockExplorerUrls)&&void 0!==i?i:[],o.chainName,null!==(s=o.iconUrls)&&void 0!==s?s:[],o.nativeCurrency);return u?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw c.standardErrors.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw c.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw c.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw c.standardErrors.rpc.invalidParams("Address is required");let n=this.getChainId(),{address:i,symbol:s,image:o,decimals:a}=t.options,u=await this.watchAsset(t.type,i,s,a,o,n);return{jsonrpc:"2.0",id:0,result:u}}_eth_uninstallFilter(e){let t=(0,W.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0],n=await this._filterPolyfill.newFilter(t);return{jsonrpc:"2.0",id:0,result:n}}async _eth_newBlockFilter(){let e=await this._filterPolyfill.newBlockFilter();return{jsonrpc:"2.0",id:0,result:e}}async _eth_newPendingTransactionFilter(){let e=await this._filterPolyfill.newPendingTransactionFilter();return{jsonrpc:"2.0",id:0,result:e}}_eth_getFilterChanges(e){let t=(0,W.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,W.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};t.CoinbaseWalletProvider=CoinbaseWalletProvider},19826:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;let i=n(91295),s=n(94643),o={jsonrpc:"2.0",id:0};function filterFromParam(e){return{fromBlock:intBlockHeightFromHexBlockHeight(e.fromBlock),toBlock:intBlockHeightFromHexBlockHeight(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function paramFromFilter(e){let t={fromBlock:hexBlockHeightFromIntBlockHeight(e.fromBlock),toBlock:hexBlockHeightFromIntBlockHeight(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function intBlockHeightFromHexBlockHeight(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,i.IntNumber)(0);if((0,s.isHexString)(e))return(0,s.intNumberFromHexString)(e);throw Error(`Invalid block option: ${String(e)}`)}function hexBlockHeightFromIntBlockHeight(e){return"latest"===e?e:(0,s.hexStringFromIntNumber)(e)}function filterNotFoundError(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function emptyResult(){return Object.assign(Object.assign({},o),{result:[]})}t.FilterPolyfill=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,i.IntNumber)(1),this.provider=e}async newFilter(e){let t=filterFromParam(e),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",i),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,s.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,s.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,s.intNumberFromHexString)(e);return(this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t))?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(filterNotFoundError())}async getFilterLogs(e){let t=(0,s.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[paramFromFilter(n)]})):filterNotFoundError()}makeFilterId(){return(0,i.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(e,i)=>e?n(e):Array.isArray(i)||null==i?n(Error(`unexpected response received: ${JSON.stringify(i)}`)):void t(i))})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return filterNotFoundError();let a=await this.getCurrentBlockHeight(),u="latest"===t.toBlock?a:t.toBlock;if(n>a||n>t.toBlock)return emptyResult();console.log(`Fetching logs from ${n} to ${u} for filter ${e}`);let c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[paramFromFilter(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:u}))]}));if(Array.isArray(c.result)){let t=c.result.map(e=>(0,s.intNumberFromHexString)(e.blockNumber||"0x0")),o=Math.max(...t);if(o&&o>n){let t=(0,i.IntNumber)(o+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return c}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return filterNotFoundError();let n=await this.getCurrentBlockHeight();if(t>n)return emptyResult();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,s.range)(t,n+1).map(e=>this.getBlockHashByNumber((0,i.IntNumber)(e))))).filter(e=>!!e),u=(0,i.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${u}`),this.cursors.set(e,u),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(emptyResult())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),i="number"==typeof t&&t>n?t:n;return this.cursors.set(e,i),i}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},3e5);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,s.intNumberFromHexString)((0,s.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,s.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,s.ensureHexString)(t.result.hash):null}},t.filterFromParam=filterFromParam},28565:function(e,t){"use strict";var n;
14Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCMethod=void 0,(n=t.JSONRPCMethod||(t.JSONRPCMethod={})).eth_accounts="eth_accounts",n.eth_coinbase="eth_coinbase",n.net_version="net_version",n.eth_chainId="eth_chainId",n.eth_uninstallFilter="eth_uninstallFilter",n.eth_requestAccounts="eth_requestAccounts",n.eth_sign="eth_sign",n.eth_ecRecover="eth_ecRecover",n.personal_sign="personal_sign",n.personal_ecRecover="personal_ecRecover",n.eth_signTransaction="eth_signTransaction",n.eth_sendRawTransaction="eth_sendRawTransaction",n.eth_sendTransaction="eth_sendTransaction",n.eth_signTypedData_v1="eth_signTypedData_v1",n.eth_signTypedData_v2="eth_signTypedData_v2",n.eth_signTypedData_v3="eth_signTypedData_v3",n.eth_signTypedData_v4="eth_signTypedData_v4",n.eth_signTypedData="eth_signTypedData",n.cbWallet_arbitrary="walletlink_arbitrary",n.wallet_addEthereumChain="wallet_addEthereumChain",n.wallet_switchEthereumChain="wallet_switchEthereumChain",n.wallet_watchAsset="wallet_watchAsset",n.eth_subscribe="eth_subscribe",n.eth_unsubscribe="eth_unsubscribe",n.eth_newFilter="eth_newFilter",n.eth_newBlockFilter="eth_newBlockFilter",n.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",n.eth_getFilterChanges="eth_getFilterChanges",n.eth_getFilterLogs="eth_getFilterLogs"},5313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;let i=n(6842),s=n(62876),noop=()=>{};t.SubscriptionManager=class{constructor(e){let t=new i.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=s({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=o}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,noop,noop),t}destroy(){this.subscriptionMiddleware.destroy()}}},31405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKUI=void 0;let i=n(27759),s=n(19199),o=n(27162);t.WalletSDKUI=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new s.Snackbar({darkMode:e.darkMode}),this.linkFlow=new i.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,o.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return t=e.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:e.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:e.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:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return null!==(e=this.standalone)&&void 0!==e&&e}}},85813:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,(n=t.RelayMessageType||(t.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",n.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",n.LINKED="LINKED",n.UNLINKED="UNLINKED",n.WEB3_REQUEST="WEB3_REQUEST",n.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",n.WEB3_RESPONSE="WEB3_RESPONSE"},73526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;let i=n(89072),s=n(94643),o="session:id",a="session:secret",u="session:linked";let Session=class Session{constructor(e,t,n,o){this._storage=e,this._id=t||(0,s.randomBytesHex)(16),this._secret=n||(0,s.randomBytesHex)(32),this._key=new i.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(e){let t=e.getItem(o),n=e.getItem(u),i=e.getItem(a);return t&&i?new Session(e,t,i,"1"===n):null}static hash(e){return new i.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(o,this._id),this._storage.setItem(a,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(u,this._linked?"1":"0")}};t.Session=Session},16570:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__decorate||function(e,t,n,i){var s,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var u=e.length-1;u>=0;u--)(s=e[u])&&(a=(o<3?s(a):o>3?s(t,n,a):s(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelay=void 0;let c=u(n(47056)),l=n(67734),R=n(16473),I=n(32191),M=n(18876),W=n(69621),U=n(91295),Z=n(94643),J=a(n(20235)),Q=n(73526),G=n(15633),Y=n(93083),K=n(85186),X=n(3770),ee=n(67386),et=n(50287);let WalletSDKRelay=class WalletSDKRelay extends G.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new l.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:i,connection:s}=this.subscribe();if(this._session=n,this.connection=s,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=i}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(e=>{this.dappDefaultChain!==e&&(this.dappDefaultChain=e)}));let e=Q.Session.load(this.storage)||new Q.Session(this.storage).save(),t=new M.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:e=>{this.onSessionConfigChanged(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.GENERAL_ER
14ROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,R.filter)(e=>"Web3Response"===e.event)).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,R.skip)(1),(0,R.tap)(e=>{var t;this.isLinked=e;let n=this.storage.getItem(G.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){let i=n.split(" "),s="true"===this.storage.getItem("IsStandaloneSigning");if(""!==i[0]&&!e&&this.session.linked&&!s){this.isUnlinkedErrorState=!0;let e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(I.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,R.filter)(e=>!!e.metadata&&"1"===e.metadata.__destroyed)).subscribe(()=>{var e;let n=t.isDestroyed;return null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,R.filter)(e=>e.metadata&&void 0!==e.metadata.WalletUsername)).pipe((0,R.mergeMap)(t=>J.decrypt(t.metadata.WalletUsername,e.secret))).subscribe({next:e=>{this.storage.setItem(G.WALLET_USER_NAME_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,R.filter)(e=>e.metadata&&void 0!==e.metadata.AppVersion)).pipe((0,R.mergeMap)(t=>J.decrypt(t.metadata.AppVersion,e.secret))).subscribe({next:e=>{this.storage.setItem(G.APP_VERSION_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,R.filter)(e=>e.metadata&&void 0!==e.metadata.ChainId&&void 0!==e.metadata.JsonRpcUrl)).pipe((0,R.mergeMap)(t=>(0,l.zip)(J.decrypt(t.metadata.ChainId,e.secret),J.decrypt(t.metadata.JsonRpcUrl,e.secret)))).pipe((0,R.distinctUntilChanged)()).subscribe({next:([e,t])=>{this.chainCallback&&this.chainCallback(e,t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,R.filter)(e=>e.metadata&&void 0!==e.metadata.EthereumAddress)).pipe((0,R.mergeMap)(t=>J.decrypt(t.metadata.EthereumAddress,e.secret))).subscribe({next:e=>{this.accountsCallback&&this.accountsCallback([e]),WalletSDKRelay.accountRequestCallbackIds.size>0&&(Array.from(WalletSDKRelay.accountRequestCallbackIds.values()).forEach(t=>{let n=(0,et.Web3ResponseMessage)({id:t,response:(0,ee.RequestEthereumAccountsResponse)([e])});this.invokeCallback(Object.assign(Object.assign({},n),{id:t}))}),WalletSDKRelay.accountRequestCallbackIds.clear())},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,R.filter)(e=>e.metadata&&void 0!==e.metadata.AppSrc)).pipe((0,R.mergeMap)(t=>J.decrypt(t.metadata.AppSrc,e.secret))).subscribe({next:e=>{this.ui.setAppSrc(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,R.timeout)(1e3),(0,R.catchError)(e=>(0,l.of)(null))).subscribe(e=>{var t,n,i;let s=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(e){null===(t=this.diagnostic)||void 0===t||t.log(I.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(I.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let o=Q.Session.load(this.storage);if((null==o?void 0:o.id)===this._session.id?this.storage.clear():o&&(null===(i=this.diagnostic)||void 0===i||i.log(I.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Q.Session.hash(o.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new l.Subscription;let{session:a,ui:u,connection:c}=this.subscribe();this._session=a,this.connection=c,this.ui=u,s&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(I.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,i){return this.sendRequest({method:Y.Web3Method.signEthereumMessage,params:{message:(0,Z.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:Y.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,Z.hexStringFromBuffer)(e,!0),signature:(0,Z.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:Y.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Z.bigIntStringFromBN)(e.weiValue),data:(0,Z.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Z.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Z.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Z.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLim
14it?(0,Z.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:Y.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Z.bigIntStringFromBN)(e.weiValue),data:(0,Z.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Z.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Z.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Z.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Z.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:Y.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,Z.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:Y.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,Z.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:Y.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,Z.randomBytesHex)(8),cancel=i=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,i),null==t||t()},i=new Promise((i,s)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,e=>{if(null==t||t(),e.errorMessage)return s(Error(e.errorMessage));i(e)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)});return{promise:i,cancel}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let i=(0,X.Web3RequestMessage)({id:e,request:t}),s=Q.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(I.EVENTS.WEB3_REQUEST,{eventId:i.id,method:`relay::${i.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Q.Session.hash(s.id):"",isSessionMismatched:((null==s?void 0:s.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",i,!0).subscribe({next:e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(I.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:`relay::${i.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:s?Q.Session.hash(s.id):"",isSessionMismatched:((null==s?void 0:s.id)!==this._session.id).toString()})},error:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:i.id,response:{method:i.request.method,errorMessage:e.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,K.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let i=this.session.secret;return new l.Observable(e=>{J.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),i).then(t=>{e.next(t),e.complete()})}).pipe((0,R.mergeMap)(t=>this.connection.publishEvent(e,t,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,l.from)(J.decrypt(e.data,this.session.secret)).pipe((0,R.map)(e=>JSON.parse(e))).subscribe({next:e=>{let t=(0,et.isWeb3ResponseMessage)(e)?e:null;t&&this.handleWeb3ResponseMessage(t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(I.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(e){return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(I.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,ee.isRequestEthereumAccountsResponse)(n)){WalletSDKRelay.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),WalletSDKRelay.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,i){var s;let o=null!==(s=null==n?void 0:n.message)&&void 0!==s?s:(0,W.standardErrorMessage)(i);this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:e,response:{method:t,errorMessage:o,errorCode:i}
14}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:Y.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,Z.randomBytesHex)(8),cancel=n=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,n)},n=new Promise((n,i)=>{var s;this.relayEventManager.callbacks.set(t,e=>{if(this.ui.hideRequestEthereumAccounts(),e.errorMessage)return i(Error(e.errorMessage));n(e)});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 e;try{e=(0,Z.isInIFrame)()&&window.top?window.top.location:window.location}catch(t){e=window.location}e.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(e.href)}`;return}if(this.ui.inlineAccountsResponse())this.ui.requestEthereumAccounts({onCancel:cancel,onAccounts:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:t,response:(0,ee.RequestEthereumAccountsResponse)(e)}))}});else{let e=W.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>cancel(e)})}WalletSDKRelay.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)});return{promise:n,cancel}}selectProvider(e){let t={method:Y.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,Z.randomBytesHex)(8),i=new Promise((t,i)=>{this.relayEventManager.callbacks.set(n,e=>{if(e.errorMessage)return i(Error(e.errorMessage));t(e)}),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:n,response:(0,ee.SelectProviderResponse)(e)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:n,response:(0,ee.SelectProviderResponse)(U.ProviderType.Unselected)}))},providerOptions:e})});return{cancel:e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,e)},promise:i}}watchAsset(e,t,n,i,s,o){let a={method:Y.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:i,image:s},chainId:o}},u=null,c=(0,Z.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==u||u()};this.ui.inlineWatchAsset()||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let l=new Promise((l,R)=>{this.relayEventManager.callbacks.set(c,e=>{if(null==u||u(),e.errorMessage)return R(Error(e.errorMessage));l(e)}),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:c,response:(0,ee.WatchAssetReponse)(!0)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:c,response:(0,ee.WatchAssetReponse)(!1)}))},type:e,address:t,symbol:n,decimals:i,image:s,chainId:o}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,a)});return{cancel,promise:l}}addEthereumChain(e,t,n,i,s,o){let a={method:Y.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:i,chainName:s,iconUrls:n,nativeCurrency:o}},u=null,c=(0,Z.randomBytesHex)(8),cancel=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==u||u()};this.ui.inlineAddEthereumChain(e)||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:cancel,onResetConnection:this.resetAndReload}));let l=new Promise((t,n)=>{this.relayEventManager.callbacks.set(c,e=>{if(null==u||u(),e.errorMessage)return n(Error(e.errorMessage));t(e)}),this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:c,response:(0,ee.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:c,response:(0,ee.AddEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,a)});return{promise:l,cancel}}switchEthereumChain(e,t){let n={method:Y.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},i=(0,Z.randomBytesHex)(8),s=new Promise((t,s)=>{this.relayEventManager.callbacks.set(i,e=>(0,ee.isErrorResponse)(e)&&e.errorCode?s(W.standardErrors.provider.custom({code:e.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):e.errorMessage?s(Error(e.errorMessage)):void t(e)),this.ui.switchEthereumChain({onCancel:t=>{var n;if(t){let s=null!==(n=(0,W.getErrorCode)(t))&&void 0!==n?n:W.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(i,Y.Web3Method.switchEthereumChain,t instanceof Error?t:W.standardErrors.provider.unsupportedChain(e),s)}else this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:i,response:(0,ee.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:i,response:(0,ee.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(i,n)});return{promise:s,cancel:e=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,n.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return Q.Session.hash(this._session.id)}sendRequestStandalone(e,t){let _cancel=n=>{this.handleErrorResponse(e,t.method,n)},onSuccess=t=>{this.handleWeb3ResponseMessage((0,et.Web3ResponseMessage)({id:e,response:t}))};switch(t.method){case Y.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess,onCancel:_cancel});break;case Y.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case Y.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess,onCancel:_cancel});break;case Y.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess});break;default:_cancel()}}onSessionConfigChanged(e){}};WalletSDKRelay.accountRequestCallbackIds=new Set,o([c.default],WalletSDKRelay.prototype,"resetAndReload",null),o([c.default],WalletSDKRelay.prototype,"handleIncomingEvent",null),t.WalletSDKRelay=WalletSDKRelay},15633:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayAbstract=t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0;let i=n(69621);t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion",t.WalletSDKRelayAbstract=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(t=>{if(!t)throw i.standardErrors.rpc.parse({});let{error:n}=t;if(n)throw(0,i.serializeError)(n,e.method);return t})}}},27472:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayEventManager=void 0;let i=n(94643);t.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,i.prepend0x)(e.toString(16)),n=this.callbacks.get(t);return n&&this.callbacks.delete(t),e}}},93083:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,(n=t.Web3Method||(t.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",n.signEthereumMessage="signEthereumMessage",n.signEthereumTransaction="signEthereumTransaction",n.submitEthereumTransaction="submitEthereumTransaction",n.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",n.scanQRCode="scanQRCode",n.generic="generic",n.childRequestEthereumAccounts="childRequestEthereumAccounts",n.addEthereumChain="addEthereumChain",n.switchEthereumChain="switchEthereumChain",n.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",n.watchAsset="watchAsset",n.selectProvider="selectProvider"},85186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestCanceledMessage=void 0;let i=n(85813);t.Web3RequestCanceledMessage=function(e){return{type:i.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},3770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestMessage=void 0;let i=n(85813);t.Web3RequestMessage=function(e){return Object.assign({type:i.RelayMessageType.WEB3_REQUEST},e)}},67386:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumAddressFromSignedMessageResponse=t.SubmitEthereumTransactionResponse=t.SignEthereumTransactionResponse=t.SignEthereumMessageResponse=t.isRequestEthereumAccountsResponse=t.SelectProviderResponse=t.WatchAssetReponse=t.RequestEthereumAccountsResponse=t.SwitchEthereumChainResponse=t.AddEthereumChainResponse=t.isErrorResponse=void 0;let i=n(93083);t.isErrorResponse=function(e){return(null==e?void 0:e.method)!==void 0&&(null==e?void 0:e.errorMessage)!==void 0},t.AddEthereumChainResponse=function(e){return{method:i.Web3Method.addEthereumChain,result:e}},t.SwitchEthereumChainResponse=function(e){return{method:i.Web3Method.switchEthereumChain,result:e}},t.RequestEthereumAccountsResponse=function(e){return{method:i.Web3Method.requestEthereumAccounts,result:e}},t.WatchAssetReponse=function(e){return{method:i.Web3Method.watchAsset,result:e}},t.SelectProviderResponse=function(e){return{method:i.Web3Method.selectProvider,result:e}},t.isRequestEthereumAccountsResponse=function(e){return e&&e.method===i.Web3Method.requestEthereumAccounts},t.SignEthereumMessageResponse=function(e){return{method:i.Web3Method.signEthereumMessage,result:e}},t.SignEthereumTransactionResponse=function(e){return{method:i.Web3Method.signEthereumTransaction,result:e}},t.SubmitEthereumTransactionResponse=function(e){return{method:i.Web3Method.submitEthereumTransaction,result:e}},t.EthereumAddressFromSignedMessageResponse=function(e){return{method:i.Web3Method.ethereumAddressFromSignedMessage,result:e}}},50287:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWeb3ResponseMessage=t.Web3ResponseMessage=void 0;let i=n(85813);t.Web3ResponseMessage=function(e){return Object.assign({type:i.RelayMessageType.WEB3_RESPONSE},e)},t.isWeb3ResponseMessage=function(e){return e&&e.type===i.RelayMessageType.WEB3_RESPONSE}},20235:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;let i=n(94643);async function encrypt(e,t){if(64!==t.length)throw Error("secret must be 256 bits");let n=crypto.getRandomValues(new Uint8Array(12)),s=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},s,o.encode(e)),u=a.slice(a.byteLength-16),c=a.slice(0,a.byteLength-16),l=new Uint8Array(u),R=new Uint8Array(c),I=new Uint8Array([...n,...l,...R]);return(0,i.uint8ArrayToHex)(I)}t.encrypt=encrypt,t.decrypt=function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((n,s)=>{!async function(){let o=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,i.hexStringToUint8Array)(e),u=a.slice(0,12),c=a.slice(12,28),l=a.slice(28),R=new Uint8Array([...l,...c]),I={name:"AES-GCM",iv:new Uint8Array(u)};try{let e=await window.crypto.subtle.decrypt(I,o,R),t=new TextDecoder;n(t.decode(e))}catch(e){s(e)}}()})}},91295:function(e,t){"use strict";var n;function OpaqueType(){return e=>e}Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=OpaqueType,t.HexString=OpaqueType(),t.AddressString=OpaqueType(),t.BigIntString=OpaqueType(),t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=OpaqueType(),(n=t.ProviderType||(t.ProviderType={})).CoinbaseWallet="CoinbaseWallet",n.MetaMask="MetaMask",n.Unselected=""},94643:function(e,t,n){"use strict";var i=n(48764).Buffer,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isInIFrame=t.createQrUrl=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBN=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBN=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let o=s(n(13550)),a=n(80129),u=n(69621),c=n(91295),l=/^[0-9]*$/,R=/^[a-f0-9]*$/;function uint8ArrayToHex(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function has0xPrefix(e){return e.startsWith("0x")||e.startsWith("0X")}function strip0x(e){return has0xPrefix(e)?e.slice(2):e}function prepend0x(e){return has0xPrefix(e)?"0x"+e.slice(2):"0x"+e}function isHexString(e){if("string"!=typeof e)return!1;let t=strip0x(e).toLowerCase();return R.test(t)}function ensureHexString(e,t=!1){if("string"==typeof e){let n=strip0x(e).toLowerCase();if(R.test(n))return(0,c.HexString)(t?"0x"+n:n)}throw u.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function ensureEvenLengthHexString(e,t=!1){let n=ensureHexString(e,!1);return n.length%2==1&&(n=(0,c.HexString)("0"+n)),t?(0,c.HexString)("0x"+n):n}function ensureIntNumber(e){if("number"==typeof e&&Number.isInteger(e))return(0,c.IntNumber)(e);if("string"==typeof e){if(l.test(e))return(0,c.IntNumber)(Number(e));if(isHexString(e))return(0,c.IntNumber)(new o.default(ensureEvenLengthHexString(e,!1),16).toNumber())}throw u.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function isBigNumber(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}t.randomBytesHex=function(e){return uint8ArrayToHex(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=uint8ArrayToHex,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},t.hexStringFromBuffer=function(e,t=!1){let n=e.toString("hex");return(0,c.HexString)(t?"0x"+n:n)},t.bigIntStringFromBN=function(e){return(0,c.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,c.IntNumber)(new o.default(ensureEvenLengthHexString(e,!1),16).toNumber())},t.hexStringFromIntNumber=function(e){return(0,c.HexString)("0x"+new o.default(e).toString(16))},t.has0xPrefix=has0xPrefix,t.strip0x=strip0x,t.prepend0x=prepend0x,t.isHexString=isHexString,t.ensureHexString=ensureHexString,t.ensureEvenLengthHexString=ensureEvenLengthHexString,t.ensureAddressString=function(e){if("string"==typeof e){let t=strip0x(e).toLowerCase();if(isHexString(t)&&40===t.length)return(0,c.AddressString)(prepend0x(t))}throw u.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)},t.ensureBuffer=function(e){if(i.isBuffer(e))return e;if("string"==typeof e){if(!isHexString(e))return i.from(e,"utf8");{let t=ensureEvenLengthHexString(e,!1);return i.from(t,"hex")}}throw u.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)},t.ensureIntNumber=ensureIntNumber,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,c.RegExpString)(e.toString());throw u.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)},t.ensureBN=function(e){if(null!==e&&(o.default.isBN(e)||isBigNumber(e)))return new o.default(e.toString(10),10);if("number"==typeof e)return new o.default(ensureIntNumber(e));if("string"==typeof e){if(l.test(e))return new o.default(e,10);if(isHexString(e))return new o.default(ensureEvenLengthHexString(e,!1),16)}throw u.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)},t.ensureParsedJSONObject=function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw u.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)},t.isBigNumber=isBigNumber,t.range=function(e,t){return Array.from({length:t-e},(t,n)=>e+n)},t.getFavicon=function(){let e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:n}=document.location,i=e?e.getAttribute("href"):null;return!i||i.startsWith("javascript:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?t+i:`${t}//${n}${i}`},t.createQrUrl=function(e,t,n,i,s,o){let u=(0,a.stringify)({[i?"parent-id":"id"]:e,secret:t,server:n,v:s,chainId:o}),c=`${n}/#/link?${u}`;return c},t.isInIFrame=function(){try{return null!==window.frameElement}catch(e){return!1}}},36089:function(e,t,n){var i=n(48764).Buffer;let s=n(32518),o=n(13550);function elementaryName(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);if("fixed"===e)return"fixed128x128";if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function parseTypeN(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function parseTypeNxM(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function parseTypeArray(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function parseNumber(e){var t=typeof e;if("string"===t)return s.isHexString(e)?new o(s.stripHexPrefix(e),16):new o(e,10);if("number"===t)return new o(e);if(e.toArray)return e;throw Error("Argument is not a number")}function encodeSingle(e,t){if("address"===e)return encodeSingle("uint160",parseNumber(t));if("bool"===e)return encodeSingle("uint8",t?1:0);if("string"===e)return encodeSingle("bytes",new i(t,"utf8"));if((l=e).lastIndexOf("]")===l.length-1){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(n=parseTypeArray(e))&&0!==n&&t.length>n)throw Error("Elements exceed array size: "+n);for(c in u=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)u.push(encodeSingle(e,t[c]));if("dynamic"===n){var n,a,u,c,l,R=encodeSingle("uint256",t.length);u.unshift(R)}return i.concat(u)}if("bytes"===e)return t=new i(t),u=i.concat([encodeSingle("uint256",t.length),t]),t.length%32!=0&&(u=i.concat([u,s.zeros(32-t.length%32)])),u;if(e.startsWith("bytes")){if((n=parseTypeN(e))<1||n>32)throw Error("Invalid bytes<N> width: "+n);return s.setLengthRight(t,32)}else if(e.startsWith("uint")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((a=parseNumber(t)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+a.bitLength());if(a<0)throw Error("Supplied uint is negative");return a.toArrayLike(i,"be",32)}else if(e.startsWith("int")){if((n=parseTypeN(e))%8||n<8||n>256)throw Error("Invalid int<N> width: "+n);if((a=parseNumber(t)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+a.bitLength());return a.toTwos(256).toArrayLike(i,"be",32)}else if(e.startsWith("ufixed")){if(n=parseTypeNxM(e),(a=parseNumber(t))<0)throw Error("Supplied ufixed is negative");return encodeSingle("uint256",a.mul(new o(2).pow(new o(n[1]))))}else if(e.startsWith("fixed"))return n=parseTypeNxM(e),encodeSingle("int256",parseNumber(t).mul(new o(2).pow(new o(n[1]))));throw Error("Unsupported or invalid type: "+e)}function solidityPack(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var n,o,a=[],u=0;u<e.length;u++){var c=elementaryName(e[u]),l=t[u];if("bytes"===c)a.push(l);else if("string"===c)a.push(new i(l,"utf8"));else if("bool"===c)a.push(new i(l?"01":"00","hex"));else if("address"===c)a.push(s.setLength(l,20));else if(c.startsWith("bytes")){if((n=parseTypeN(c))<1||n>32)throw Error("Invalid bytes<N> width: "+n);a.push(s.setLengthRight(l,n))}else if(c.startsWith("uint")){if((n=parseTypeN(c))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((o=parseNumber(l)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());a.push(o.toArrayLike(i,"be",n/8))}else if(c.startsWith("int")){if((n=parseTypeN(c))%8||n<8||n>256)throw Error("Invalid int<N> width: "+n);if((o=parseNumber(l)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());a.push(o.toTwos(n).toArrayLike(i,"be",n/8))}else throw Error("Unsupported or invalid type: "+c)}return i.concat(a)}
14e.exports={rawEncode:function(e,t){var n=[],s=[],o=32*e.length;for(var a in e){var u=elementaryName(e[a]),c=encodeSingle(u,t[a]);"string"===u||"bytes"===u||"dynamic"===parseTypeArray(u)?(n.push(encodeSingle("uint256",o)),s.push(c),o+=c.length):n.push(c)}return i.concat(n.concat(s))},solidityPack,soliditySHA3:function(e,t){return s.keccak(solidityPack(e,t))}}},14497:function(e,t,n){var i=n(48764).Buffer;let s=n(32518),o=n(36089),a={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},u={encodeData(e,t,n,a=!0){let u=["bytes32"],c=[this.hashType(e,n)];if(a){let encodeField=(e,t,u)=>{if(void 0!==n[t])return["bytes32",null==u?"0x0000000000000000000000000000000000000000000000000000000000000000":s.keccak(this.encodeData(t,u,n,a))];if(void 0===u)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",s.keccak(u)];if("string"===t)return"string"==typeof u&&(u=i.from(u,"utf8")),["bytes32",s.keccak(u)];if(t.lastIndexOf("]")===t.length-1){let n=t.slice(0,t.lastIndexOf("[")),i=u.map(t=>encodeField(e,n,t));return["bytes32",s.keccak(o.rawEncode(i.map(([e])=>e),i.map(([,e])=>e)))]}return[t,u]};for(let i of n[e]){let[e,n]=encodeField(i.name,i.type,t[i.name]);u.push(e),c.push(n)}}else for(let o of n[e]){let e=t[o.name];if(void 0!==e){if("bytes"===o.type)u.push("bytes32"),e=s.keccak(e),c.push(e);else if("string"===o.type)u.push("bytes32"),"string"==typeof e&&(e=i.from(e,"utf8")),e=s.keccak(e),c.push(e);else if(void 0!==n[o.type])u.push("bytes32"),e=s.keccak(this.encodeData(o.type,e,n,a)),c.push(e);else if(o.type.lastIndexOf("]")===o.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else u.push(o.type),c.push(e)}}return o.rawEncode(u,c)},encodeType(e,t){let n="",i=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let s of i=[e].concat(i.sort())){let e=t[s];if(!e)throw Error("No type definition specified: "+s);n+=s+"("+t[s].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===t[e])return n;for(let i of(n.push(e),t[e]))for(let e of this.findTypeDependencies(i.type,t,n))n.includes(e)||n.push(e);return n},hashStruct(e,t,n,i=!0){return s.keccak(this.encodeData(e,t,n,i))},hashType(e,t){return s.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in a.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),o=[i.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&o.push(this.hashStruct(n.primaryType,n.message,n.types,t)),s.keccak(i.concat(o))}};e.exports={TYPED_MESSAGE_SCHEMA:a,TypedDataUtils:u,hashForSignTypedDataLegacy:function(e){return function(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let n=e.map(function(e){return"bytes"===e.type?s.toBuffer(e.value):e.value}),i=e.map(function(e){return e.type}),a=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(e.length).fill("string"),a),o.soliditySHA3(i,n)])}(e.data)},hashForSignTypedData_v3:function(e){return u.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return u.hash(e.data)}}},32518:function(e,t,n){var i=n(48764).Buffer;let s=n(95811),o=n(13550);function zeros(e){return i.allocUnsafe(e).fill(0)}function setLength(e,t,n){let i=zeros(t);return(e=toBuffer(e),n)?e.length<t?(e.copy(i),i):e.slice(0,t):e.length<t?(e.copy(i,t-e.length),i):e.slice(-t)}function toBuffer(e){if(!i.isBuffer(e)){if(Array.isArray(e))e=i.from(e);else if("string"==typeof e){var t;e=isHexString(e)?i.from((t=stripHexPrefix(e)).length%2?"0"+t:t,"hex"):i.from(e)}else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=i.allocUnsafe(0);else if(o.isBN(e))e=e.toArrayLike(i);else if(e.toArray)e=i.from(e.toArray());else throw Error("invalid type")}return e}function isHexString(e){return"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function stripHexPrefix(e){return"string"==typeof e&&e.startsWith("0x")?e.slice(2):e}e.exports={zeros,setLength,setLengthRight:function(e,t){return setLength(e,t,!0)},isHexString,stripHexPrefix,toBuffer,bufferToHex:function(e){return"0x"+(e=toBuffer(e)).toString("hex")},keccak:function(e,t){return e=toBuffer(e),t||(t=256),s("keccak"+t).update(e).digest()}}},7713:function(e){function QR8bitByte(e){this.mode=t.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var n=0,i=this.data.length;n<i;n++){var s=[],o=this.data.charCodeAt(n);o>65536?(s[0]=240|(1835008&o)>>>18,s[1]=128|(258048&o)>>>12,s[2]=128|(4032&o)>>>6,s[3]=128|63&o):o>2048?(s[0]=224|(61440&o)>>>12,s[1]=128|(4032&o)>>>6,s[2]=128|63&o):o>128?(s[0]=192|(1984&o)>>>6,s[1]=128|63&o):s[0]=o,this.parsedData.push(s)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function QRCodeModel(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}QR8bitByte.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}},QRCodeModel.prototype={addData:function(e){var t=new QR8bitByte(e);this.dataList.push(t),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){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(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=QRCodeModel.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var i=-1;i<=7;i++)t+i<=-1||this.moduleCount<=t+i||(0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4?this.modules[e+n][t+i]=!0:this.modules[e+n][t+i]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=s.getLostPoint(this);(0==n||e>i)&&(e=i,t=n)}return t},createMovieClip:function(e,t,n){var i=e.createEmptyMovieClip(t,n);this.make();for(var s=0;s<this.modules.length;s++)for(var o=1*s,a=0;a<this.modules[s].length;a++){var u=1*a;this.modules[s][a]&&(i.beginFill(0,100),i.moveTo(u,o),i.lineTo(u+1,o),i.lineTo(u+1,o+1),i.lineTo(u,o+1),i.endFill())}return i},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=s.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var i=e[t],o=e[n];if(null==this.modules[i][o])for(var a=-2;a<=2;a++)for(var u=-2;u<=2;u++)-2==a||2==a||-2==u||2==u||0==a&&0==u?this.modules[i+a][o+u]=!0:this.modules[i+a][o+u]=!1}},setupTypeNumber:function(e){for(var t=s.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(var n=0;n<18;n++){var i=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,i=s.getBCHTypeInfo(n),o=0;o<15;o++){var a=!e&&(i>>o&1)==1;o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(var o=0;o<15;o++){var a=!e&&(i>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,i=this.moduleCount-1,o=7,a=0,u=this.moduleCount-1;u>0;u-=2)for(6==u&&u--;;){for(var c=0;c<2;c++)if(null==this.modules[i][u-c]){var l=!1;a<e.length&&(l=(e[a]>>>o&1)==1),s.getMask(t,i,u-c)&&(l=!l),this.modules[i][u-c]=l,-1==--o&&(a++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},QRCodeModel.PAD0=236,QRCodeModel.PAD1=17,QRCodeModel.createData=function(e,t,n){for(var i=QRRSBlock.getRSBlocks(e,t),o=new QRBitBuffer,a=0;a<n.length;a++){var u=n[a];o.put(u.mode,4),o.put(u.getLength(),s.getLengthInBits(u.mode,e)),u.write(o)}for(var c=0,a=0;a<i.length;a++)c+=i[a].dataCount;if(o.getLengthInBits()>8*c)throw Error("code length overflow. ("+o.getLengthInBits()+">"+8*c+")");for(o.getLengthInBits()+4<=8*c&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*c)&&(o.put(QRCodeModel.PAD0,8),!(o.getLengthInBits()>=8*c));)o.put(QRCodeModel.PAD1,8);return QRCodeModel.createBytes(o,i)},QRCodeModel.createBytes=function(e,t){for(var n=0,i=0,o=0,a=Array(t.length),u=Array(t.length),c=0;c<t.length;c++){var l=t[c].dataCount,R=t[c].totalCount-l;i=Math.max(i,l),o=Math.max(o,R),a[c]=Array(l);for(var I=0;I<a[c].length;I++)a[c][I]=255&e.buffer[I+n];n+=l;var M=s.getErrorCorrectPolynomial(R),W=new QRPolynomial(a[c],M.getLength()-1).mod(M);u[c]=Array(M.getLength()-1);for(var I=0;I<u[c].length;I++){var U=I+W.getLength()-u[c].length;u[c][I]=U>=0?W.get(U):0}}for(var Z=0,I=0;I<t.length;I++)Z+=t[I].totalCount;for(var J=Array(Z),Q=0,I=0;I<i;I++)for(var c=0;c<t.length;c++)I<a[c].length&&(J[Q++]=a[c][I]);for(var I=0;I<o;I++)for(var c=0;c<t.length;c++)I<u[c].length&&(J[Q++]=u[c][I]);return J};for(var t={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},n={L:1,M:0,Q:3,H:2},i={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s={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(e){for(var t=e<<10;
14s.getBCHDigit(t)-s.getBCHDigit(s.G15)>=0;)t^=s.G15<<s.getBCHDigit(t)-s.getBCHDigit(s.G15);return(e<<10|t)^s.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;s.getBCHDigit(t)-s.getBCHDigit(s.G18)>=0;)t^=s.G18<<s.getBCHDigit(t)-s.getBCHDigit(s.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case i.PATTERN000:return(t+n)%2==0;case i.PATTERN001:return t%2==0;case i.PATTERN010:return n%3==0;case i.PATTERN011:return(t+n)%3==0;case i.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case i.PATTERN101:return t*n%2+t*n%3==0;case i.PATTERN110:return(t*n%2+t*n%3)%2==0;case i.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new QRPolynomial([1],0),n=0;n<e;n++)t=t.multiply(new QRPolynomial([1,o.gexp(n)],0));return t},getLengthInBits:function(e,n){if(1<=n&&n<10)switch(e){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:case t.MODE_KANJI:return 8;default:throw Error("mode:"+e)}else if(n<27)switch(e){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw Error("mode:"+e)}else if(n<41)switch(e){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw Error("mode:"+e)}else throw Error("type:"+n)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,i=0;i<t;i++)for(var s=0;s<t;s++){for(var o=0,a=e.isDark(i,s),u=-1;u<=1;u++)if(!(i+u<0)&&!(t<=i+u))for(var c=-1;c<=1;c++)!(s+c<0)&&!(t<=s+c)&&(0!=u||0!=c)&&a==e.isDark(i+u,s+c)&&o++;o>5&&(n+=3+o-5)}for(var i=0;i<t-1;i++)for(var s=0;s<t-1;s++){var l=0;e.isDark(i,s)&&l++,e.isDark(i+1,s)&&l++,e.isDark(i,s+1)&&l++,e.isDark(i+1,s+1)&&l++,(0==l||4==l)&&(n+=3)}for(var i=0;i<t;i++)for(var s=0;s<t-6;s++)e.isDark(i,s)&&!e.isDark(i,s+1)&&e.isDark(i,s+2)&&e.isDark(i,s+3)&&e.isDark(i,s+4)&&!e.isDark(i,s+5)&&e.isDark(i,s+6)&&(n+=40);for(var s=0;s<t;s++)for(var i=0;i<t-6;i++)e.isDark(i,s)&&!e.isDark(i+1,s)&&e.isDark(i+2,s)&&e.isDark(i+3,s)&&e.isDark(i+4,s)&&!e.isDark(i+5,s)&&e.isDark(i+6,s)&&(n+=40);for(var R=0,s=0;s<t;s++)for(var i=0;i<t;i++)e.isDark(i,s)&&R++;return n+10*(Math.abs(100*R/t/t-50)/5)}},o={glog:function(e){if(e<1)throw Error("glog("+e+")");return o.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return o.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},a=0;a<8;a++)o.EXP_TABLE[a]=1<<a;for(var a=8;a<256;a++)o.EXP_TABLE[a]=o.EXP_TABLE[a-4]^o.EXP_TABLE[a-5]^o.EXP_TABLE[a-6]^o.EXP_TABLE[a-8];for(var a=0;a<255;a++)o.LOG_TABLE[o.EXP_TABLE[a]]=a;function QRPolynomial(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=Array(e.length-n+t);for(var i=0;i<e.length-n;i++)this.num[i]=e[i+n]}function QRRSBlock(e,t){this.totalCount=e,this.dataCount=t}function QRBitBuffer(){this.buffer=[],this.length=0}QRPolynomial.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)t[n+i]^=o.gexp(o.glog(this.get(n))+o.glog(e.get(i)));return new QRPolynomial(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=o.glog(this.get(0))-o.glog(e.get(0)),n=Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(var i=0;i<e.getLength();i++)n[i]^=o.gexp(o.glog(e.get(i))+t);return new QRPolynomial(n,0).mod(e)}},QRRSBlock.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37
14],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],QRRSBlock.getRSBlocks=function(e,t){var n=QRRSBlock.getRsBlockTable(e,t);if(void 0==n)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var i=n.length/3,s=[],o=0;o<i;o++)for(var a=n[3*o+0],u=n[3*o+1],c=n[3*o+2],l=0;l<a;l++)s.push(new QRRSBlock(u,c));return s},QRRSBlock.getRsBlockTable=function(e,t){switch(t){case n.L:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+0];case n.M:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+1];case n.Q:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+2];case n.H:return QRRSBlock.RS_BLOCK_TABLE[(e-1)*4+3];default:return}},QRBitBuffer.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var u=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function QRCode(e){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 e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];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 i=this.options.content,s=function(e,t){for(var n,i=(n=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(n.length!=e?3:0),s=1,o=0,a=0,c=u.length;a<=c;a++){var l=u[a];if(!l)throw Error("Content too long: expected "+o+" but got "+i);switch(t){case"L":o=l[0];break;case"M":o=l[1];break;case"Q":o=l[2];break;case"H":o=l[3];break;default:throw Error("Unknwon error correction level: "+t)}if(i<=o)break;s++}if(s>u.length)throw Error("Content too long");return s}(i,this.options.ecl),o=function(e){switch(e){case"L":return n.L;case"M":return n.M;case"Q":return n.Q;case"H":return n.H;default:throw Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new QRCodeModel(s,o),this.qrcode.addData(i),this.qrcode.make()}QRCode.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var i=void 0===t.pretty||!!t.pretty,s=i?" ":"",o=i?"\r\n":"",a=t.width,u=t.height,c=n.length,l=a/(c+2*t.padding),R=u/(c+2*t.padding),I=void 0!==t.join&&!!t.join,M=void 0!==t.swap&&!!t.swap,W=void 0===t.xmlDeclaration||!!t.xmlDeclaration,U=void 0!==t.predefined&&!!t.predefined,Z=U?s+'<defs><path id="qrmodule" d="M0 0 h'+R+" v"+l+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+o:"",J=s+'<rect x="0" y="0" width="'+a+'" height="'+u+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+o,Q="",G="",Y=0;Y<c;Y++)for(var K=0;K<c;K++)if(n[K][Y]){var X=K*l+t.padding*l,ee=Y*R+t.padding*R;if(M){var et=X;X=ee,ee=et}if(I){var er=l+X,en=R+ee;X=Number.isInteger(X)?Number(X):X.toFixed(2),ee=Number.isInteger(ee)?Number(ee):ee.toFixed(2),er=Number.isInteger(er)?Number(er):er.toFixed(2),G+="M"+X+","+ee+" V"+(en=Number.isInteger(en)?Number(en):en.toFixed(2))+" H"
14+er+" V"+ee+" H"+X+" Z "}else U?Q+=s+'<use x="'+X.toString()+'" y="'+ee.toString()+'" href="#qrmodule" />'+o:Q+=s+'<rect x="'+X.toString()+'" y="'+ee.toString()+'" width="'+l+'" height="'+R+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+o}I&&(Q=s+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+G+'" />');let ei="";if(void 0!==this.options.image&&this.options.image.svg){let e=a*this.options.image.width/100,t=u*this.options.image.height/100;ei+=`<svg x="${a/2-e/2}" y="${u/2-t/2}" width="${e}" height="${t}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`+(this.options.image.svg+o)+"</svg>"}var es="";switch(e.container){case"svg":W&&(es+='<?xml version="1.0" standalone="yes"?>'+o),es+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+a+'" height="'+u+'">'+o+(Z+J+Q)+ei+"</svg>";break;case"svg-viewbox":W&&(es+='<?xml version="1.0" standalone="yes"?>'+o),es+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+a+" "+u+'">'+o+(Z+J+Q)+ei+"</svg>";break;case"g":es+='<g width="'+a+'" height="'+u+'">'+o+(Z+J+Q)+ei+"</g>";break;default:es+=(Z+J+Q+ei).replace(/^\s+/,"")}return es},e.exports=QRCode},43604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.7.2"},60801:function(e,t,n){"use strict";function clsx(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t)}return i}(e))&&(i&&(i+=" "),i+=t);return i}n.r(t),n.d(t,{clsx:function(){return clsx}}),t.default=clsx},19394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let i=n(17187);function safeApply(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout(()=>{throw e})}}let SafeEventEmitter=class SafeEventEmitter extends i.EventEmitter{emit(e,...t){let n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;let n=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw n.context=e,n}let s=i[e];if(void 0===s)return!1;if("function"==typeof s)safeApply(s,this,t);else{let e=s.length,n=function(e){let t=e.length,n=Array(t);for(let i=0;i<t;i+=1)n[i]=e[i];return n}(s);for(let i=0;i<e;i+=1)safeApply(n[i],this,t)}return!0}};t.default=SafeEventEmitter},31422:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertExhaustive=t.assertStruct=t.assert=t.AssertionError=void 0;let i=n(11821);function getError(e,t){var n,i;return"string"==typeof(null===(i=null===(n=null==e?void 0:e.prototype)||void 0===n?void 0:n.constructor)||void 0===i?void 0:i.name)?new e({message:t}):e({message:t})}let AssertionError=class AssertionError extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}};t.AssertionError=AssertionError,t.assert=function(e,t="Assertion failed.",n=AssertionError){if(!e){if(t instanceof Error)throw t;throw getError(n,t)}},t.assertStruct=function(e,t,n="Assertion failed",s=AssertionError){try{(0,i.assert)(e,t)}catch(e){throw getError(s,`${n}: ${function(e){let t="object"==typeof e&&null!==e&&"message"in e?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}(e)}.`)}},t.assertExhaustive=function(e){throw Error("Invalid branch reached. Should be detected during compilation.")}},47207:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;let i=n(11821),s=n(31422);t.base64=(e,t={})=>{var n,o;let a,u;let c=null!==(n=t.paddingRequired)&&void 0!==n&&n,l=null!==(o=t.characterSet)&&void 0!==o?o:"base64";return"base64"===l?a=String.raw`[A-Za-z0-9+\/]`:((0,s.assert)("base64url"===l),a=String.raw`[-_A-Za-z0-9]`),u=c?RegExp(`^(?:${a}{4})*(?:${a}{3}=|${a}{2}==)?$`,"u"):RegExp(`^(?:${a}{4})*(?:${a}{2,3}|${a}{3}=|${a}{2}==)?$`,"u"),(0,i.pattern)(e,u)}},8476:function(e,t,n){"use strict";var i=n(48764).Buffer;
14Object.defineProperty(t,"__esModule",{value:!0}),t.createDataView=t.concatBytes=t.valueToBytes=t.stringToBytes=t.numberToBytes=t.signedBigIntToBytes=t.bigIntToBytes=t.hexToBytes=t.bytesToString=t.bytesToNumber=t.bytesToSignedBigInt=t.bytesToBigInt=t.bytesToHex=t.assertIsBytes=t.isBytes=void 0;let s=n(31422),o=n(62009),a=function(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function isBytes(e){return e instanceof Uint8Array}function assertIsBytes(e){(0,s.assert)(isBytes(e),"Value must be a Uint8Array.")}function bytesToHex(e){if(assertIsBytes(e),0===e.length)return"0x";let t=a(),n=Array(e.length);for(let i=0;i<e.length;i++)n[i]=t[e[i]];return(0,o.add0x)(n.join(""))}function bytesToBigInt(e){assertIsBytes(e);let t=bytesToHex(e);return BigInt(t)}function hexToBytes(e){var t;if((null===(t=null==e?void 0:e.toLowerCase)||void 0===t?void 0:t.call(e))==="0x")return new Uint8Array;(0,o.assertIsHexString)(e);let n=(0,o.remove0x)(e).toLowerCase(),i=n.length%2==0?n:`0${n}`,s=new Uint8Array(i.length/2);for(let e=0;e<s.length;e++){let t=i.charCodeAt(2*e),n=i.charCodeAt(2*e+1),o=t-(t<58?48:87),a=n-(n<58?48:87);s[e]=16*o+a}return s}function bigIntToBytes(e){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");let t=e.toString(16);return hexToBytes(t)}function numberToBytes(e){(0,s.assert)("number"==typeof e,"Value must be a number."),(0,s.assert)(e>=0,"Value must be a non-negative number."),(0,s.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");let t=e.toString(16);return hexToBytes(t)}function stringToBytes(e){return(0,s.assert)("string"==typeof e,"Value must be a string."),new TextEncoder().encode(e)}function valueToBytes(e){if("bigint"==typeof e)return bigIntToBytes(e);if("number"==typeof e)return numberToBytes(e);if("string"==typeof e)return e.startsWith("0x")?hexToBytes(e):stringToBytes(e);if(isBytes(e))return e;throw TypeError(`Unsupported value type: "${typeof e}".`)}t.isBytes=isBytes,t.assertIsBytes=assertIsBytes,t.bytesToHex=bytesToHex,t.bytesToBigInt=bytesToBigInt,t.bytesToSignedBigInt=function(e){assertIsBytes(e);let t=BigInt(0);for(let n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(8*e.length,t)},t.bytesToNumber=function(e){assertIsBytes(e);let t=bytesToBigInt(e);return(0,s.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},t.bytesToString=function(e){return assertIsBytes(e),new TextDecoder().decode(e)},t.hexToBytes=hexToBytes,t.bigIntToBytes=bigIntToBytes,t.signedBigIntToBytes=function(e,t){(0,s.assert)("bigint"==typeof e,"Value must be a bigint."),(0,s.assert)("number"==typeof t,"Byte length must be a number."),(0,s.assert)(t>0,"Byte length must be greater than 0."),(0,s.assert)(function(e,t){(0,s.assert)(t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t+-1))}(e,t),"Byte length is too small to represent the given value.");let n=e,i=new Uint8Array(t);for(let e=0;e<i.length;e++)i[e]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return i.reverse()},t.numberToBytes=numberToBytes,t.stringToBytes=stringToBytes,t.valueToBytes=valueToBytes,t.concatBytes=function(e){let t=Array(e.length),n=0;for(let i=0;i<e.length;i++){let s=valueToBytes(e[i]);t[i]=s,n+=s.length}let i=new Uint8Array(n);for(let e=0,n=0;e<t.length;e++)i.set(t[e],n),n+=t[e].length;return i},t.createDataView=function(e){if(void 0!==i&&e instanceof i){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}},85013:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChecksumStruct=void 0;let i=n(11821),s=n(47207);t.ChecksumStruct=(0,i.size)((0,s.base64)((0,i.string)(),{paddingRequired:!0}),44,44)},73557:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHex=t.createBytes=t.createBigInt=t.createNumber=void 0;let i=n(11821),s=n(31422),o=n(8476),a=n(62009),u=(0,i.union)([(0,i.number)(),(0,i.bigint)(),(0,i.string)(),a.StrictHexStruct]),c=(0,i.coerce)((0,i.number)(),u,Number),l=(0,i.coerce)((0,i.bigint)(),u,BigInt);(0,i.union)([a.StrictHexStruct,(0,i.instance)(Uint8Array)]);let R=(0,i.coerce)((0,i.instance)(Uint8Array),(0,i.union)([a.StrictHexStruct]),o.hexToBytes),I=(0,i.coerce)(a.StrictHexStruct,(0,i.instance)(Uint8Array),o.bytesToHex);t.createNumber=function(e){try{let t=(0,i.create)(e,c);return(0,s.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof i.StructError)throw Error(`Expected a number-like value, got "${e}".`);throw t}},t.createBigInt=function(e){try{return(0,i.create)(e,l)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},t.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,i.create)(e,R)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},t.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,i.create)(e,I)}catch(e){if(e instanceof i.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}},94283:function(e,t){"use strict";var n,i,s=this&&this.__classPrivateFieldSet||function(e,t,n,i,s){if("m"===i)throw TypeError("Private method is not writable");if("a"===i&&!s)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?s.call(e,n):s?s.value=n:t.set(e,n),n},o=this&&this.__classPrivateFieldGet||function(e,t,n,i){if("a"===n&&!i)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};
14Object.defineProperty(t,"__esModule",{value:!0}),t.FrozenSet=t.FrozenMap=void 0;let FrozenMap=class FrozenMap{constructor(e){n.set(this,void 0),s(this,n,new Map(e),"f"),Object.freeze(this)}get size(){return o(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return o(this,n,"f")[Symbol.iterator]()}entries(){return o(this,n,"f").entries()}forEach(e,t){return o(this,n,"f").forEach((n,i,s)=>e.call(t,n,i,this))}get(e){return o(this,n,"f").get(e)}has(e){return o(this,n,"f").has(e)}keys(){return o(this,n,"f").keys()}values(){return o(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,t])=>`${String(e)} => ${String(t)}`).join(", ")} `:""}}`}};t.FrozenMap=FrozenMap;let FrozenSet=class FrozenSet{constructor(e){i.set(this,void 0),s(this,i,new Set(e),"f"),Object.freeze(this)}get size(){return o(this,i,"f").size}[(i=new WeakMap,Symbol.iterator)](){return o(this,i,"f")[Symbol.iterator]()}entries(){return o(this,i,"f").entries()}forEach(e,t){return o(this,i,"f").forEach((n,i,s)=>e.call(t,n,i,this))}has(e){return o(this,i,"f").has(e)}keys(){return o(this,i,"f").keys()}values(){return o(this,i,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}};t.FrozenSet=FrozenSet,Object.freeze(FrozenMap),Object.freeze(FrozenMap.prototype),Object.freeze(FrozenSet),Object.freeze(FrozenSet.prototype)},62009:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.StrictHexStruct=t.HexStruct=void 0;let i=n(11821),s=n(31422);function isHexString(e){return(0,i.is)(e,t.HexStruct)}function isStrictHexString(e){return(0,i.is)(e,t.StrictHexStruct)}t.HexStruct=(0,i.pattern)((0,i.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,i.pattern)((0,i.string)(),/^0x[0-9a-f]+$/iu),t.isHexString=isHexString,t.isStrictHexString=isStrictHexString,t.assertIsHexString=function(e){(0,s.assert)(isHexString(e),"Value must be a hexadecimal string.")},t.assertIsStrictHexString=function(e){(0,s.assert)(isStrictHexString(e),'Value must be a hexadecimal string, starting with "0x".')},t.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},t.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}},42451:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var s=Object.getOwnPropertyDescriptor(t,n);(!s||("get"in s?!t.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,s)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(31422),t),s(n(47207),t),s(n(8476),t),s(n(85013),t),s(n(73557),t),s(n(94283),t),s(n(62009),t),s(n(22497),t),s(n(20160),t),s(n(66215),t),s(n(89679),t),s(n(99108),t),s(n(97772),t),s(n(26815),t)},22497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonAndGetSize=t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.isValidJson=t.JsonStruct=void 0;let i=n(11821),s=n(31422),o=n(66215);function validateJsonAndGetSize(e,t=!1){let n=new Set;return function getJsonSerializableInfo(e,t){if(void 0===e)return[!1,0];if(null===e)return[!0,t?0:o.JsonSize.Null];let i=typeof e;
14try{if("function"===i)return[!1,0];if("string"===i||e instanceof String)return[!0,t?0:(0,o.calculateStringSize)(e)+2*o.JsonSize.Quote];if("boolean"===i||e instanceof Boolean){if(t)return[!0,0];return[!0,!0==e?o.JsonSize.True:o.JsonSize.False]}if("number"===i||e instanceof Number){if(t)return[!0,0];return[!0,(0,o.calculateNumberSize)(e)]}else if(e instanceof Date){if(t)return[!0,0];return[!0,isNaN(e.getDate())?o.JsonSize.Null:o.JsonSize.Date+2*o.JsonSize.Quote]}}catch(e){return[!1,0]}if(!(0,o.isPlainObject)(e)&&!Array.isArray(e)||n.has(e))return[!1,0];n.add(e);try{return[!0,Object.entries(e).reduce((i,[s,a],u,c)=>{let[l,R]=getJsonSerializableInfo(a,t);if(!l)throw Error("JSON validation did not pass. Validation process stopped.");if(n.delete(e),t)return 0;let I=Array.isArray(e)?0:s.length+o.JsonSize.Comma+2*o.JsonSize.Colon,M=u<c.length-1?o.JsonSize.Comma:0;return i+I+R+M},t?0:2*o.JsonSize.Wrapper)]}catch(e){return[!1,0]}}(e,t)}t.JsonStruct=(0,i.define)("Json",e=>{let[t]=validateJsonAndGetSize(e,!0);return!!t||"Expected a valid JSON-serializable value"}),t.isValidJson=function(e){return(0,i.is)(e,t.JsonStruct)},t.jsonrpc2="2.0",t.JsonRpcVersionStruct=(0,i.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,i.nullable)((0,i.union)([(0,i.number)(),(0,i.string)()])),t.JsonRpcErrorStruct=(0,i.object)({code:(0,i.integer)(),message:(0,i.string)(),data:(0,i.optional)(t.JsonStruct),stack:(0,i.optional)((0,i.string)())}),t.JsonRpcParamsStruct=(0,i.optional)((0,i.union)([(0,i.record)((0,i.string)(),t.JsonStruct),(0,i.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,i.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,i.omit)(t.JsonRpcRequestStruct,["id"]),t.isJsonRpcNotification=function(e){return(0,i.is)(e,t.JsonRpcNotificationStruct)},t.assertIsJsonRpcNotification=function(e,n){(0,s.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",n)},t.isJsonRpcRequest=function(e){return(0,i.is)(e,t.JsonRpcRequestStruct)},t.assertIsJsonRpcRequest=function(e,n){(0,s.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",n)},t.PendingJsonRpcResponseStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,i.optional)((0,i.unknown)()),error:(0,i.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,i.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,i.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]),t.isPendingJsonRpcResponse=function(e){return(0,i.is)(e,t.PendingJsonRpcResponseStruct)},t.assertIsPendingJsonRpcResponse=function(e,n){(0,s.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",n)},t.isJsonRpcResponse=function(e){return(0,i.is)(e,t.JsonRpcResponseStruct)},t.assertIsJsonRpcResponse=function(e,n){(0,s.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",n)},t.isJsonRpcSuccess=function(e){return(0,i.is)(e,t.JsonRpcSuccessStruct)},t.assertIsJsonRpcSuccess=function(e,n){(0,s.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",n)},t.isJsonRpcFailure=function(e){return(0,i.is)(e,t.JsonRpcFailureStruct)},t.assertIsJsonRpcFailure=function(e,n){(0,s.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",n)},t.isJsonRpcError=function(e){return(0,i.is)(e,t.JsonRpcErrorStruct)},t.assertIsJsonRpcError=function(e,n){(0,s.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",n)},t.getJsonRpcIdValidator=function(e){let{permitEmptyString:t,permitFractions:n,permitNull:i}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>!!("number"==typeof e&&(n||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||i&&null===e)},t.validateJsonAndGetSize=validateJsonAndGetSize},20160:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
14Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;let s=i(n(11227)),o=(0,s.default)("metamask");t.createProjectLogger=function(e){return o.extend(e)},t.createModuleLogger=function(e,t){return e.extend(t)}},66215:function(e,t){"use strict";var n;function isASCII(e){return 127>=e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0,t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isNullOrUndefined=function(e){return null==e},t.isObject=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)},t.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),(n=t.JsonSize||(t.JsonSize={}))[n.Null=4]="Null",n[n.Comma=1]="Comma",n[n.Wrapper=1]="Wrapper",n[n.True=4]="True",n[n.False=5]="False",n[n.Quote=1]="Quote",n[n.Colon=1]="Colon",n[n.Date=24]="Date",t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,t.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},t.isASCII=isASCII,t.calculateStringSize=function(e){var n;let i=e.split("").reduce((e,t)=>isASCII(t)?e+1:e+2,0);return i+(null!==(n=e.match(t.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length},t.calculateNumberSize=function(e){return e.toString().length}},89679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=t.hexToNumber=t.bigIntToHex=t.numberToHex=void 0;let i=n(31422),s=n(62009);t.numberToHex=e=>((0,i.assert)("number"==typeof e,"Value must be a number."),(0,i.assert)(e>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,s.add0x)(e.toString(16))),t.bigIntToHex=e=>((0,i.assert)("bigint"==typeof e,"Value must be a bigint."),(0,i.assert)(e>=0,"Value must be a non-negative bigint."),(0,s.add0x)(e.toString(16))),t.hexToNumber=e=>{(0,s.assertIsHexString)(e);let t=parseInt(e,16);return(0,i.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},t.hexToBigInt=e=>((0,s.assertIsHexString)(e),BigInt((0,s.add0x)(e)))},99108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97772:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,(n=t.Duration||(t.Duration={}))[n.Millisecond=1]="Millisecond",n[n.Second=1e3]="Second",n[n.Minute=6e4]="Minute",n[n.Hour=36e5]="Hour",n[n.Day=864e5]="Day",n[n.Week=6048e5]="Week",n[n.Year=31536e6]="Year";let isNonNegativeInteger=e=>Number.isInteger(e)&&e>=0,assertIsNonNegativeInteger=(e,t)=>{if(!isNonNegativeInteger(e))throw Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};t.inMilliseconds=function(e,t){return assertIsNonNegativeInteger(e,"count"),e*t},t.timeSince=function(e){return assertIsNonNegativeInteger(e,"timestamp"),Date.now()-e}},26815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;let i=n(81249),s=n(11821),o=n(31422);t.VersionStruct=(0,s.refine)((0,s.string)(),"Version",e=>null!==(0,i.valid)(e)||`Expected SemVer version, got "${e}"`),t.VersionRangeStruct=(0,s.refine)((0,s.string)(),"Version range",e=>null!==(0,i.validRange)(e)||`Expected SemVer range, got "${e}"`),t.isValidSemVerVersion=function(e){return(0,s.is)(e,t.VersionStruct)},t.isValidSemVerRange=function(e){return(0,s.is)(e,t.VersionRangeStruct)},t.assertIsSemVerVersion=function(e){(0,o.assertStruct)(e,t.VersionStruct)},t.assertIsSemVerRange=function(e){(0,o.assertStruct)(e,t.VersionRangeStruct)},t.gtVersion=function(e,t){return(0,i.gt)(e,t)},t.gtRange=function(e,t){return(0,i.gtr)(e,t)},t.satisfiesVersionRange=function(e,t){return(0,i.satisfies)(e,t,{includePrerelease:!0})}},85078:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0});var i=n(97582),s=n(2403),o=function(){function Mutex(){this._semaphore=new s.default(1)}return Mutex.prototype.acquire=function(){return i.__awaiter(this,void 0,void 0,function(){return i.__generator(this,function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}})})},Mutex.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},Mutex.prototype.isLocked=function(){return this._semaphore.isLocked()},Mutex.prototype.release=function(){this._semaphore.release()},Mutex}();t.default=o},2403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(97582),s=function(){function Semaphore(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw Error("semaphore must be initialized to a positive value");this._value=e}return Semaphore.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(t){return e._queue.push(t)});return t||this._dispatch(),n},Semaphore.prototype.runExclusive=function(e){return i.__awaiter(this,void 0,void 0,function(){var t,n,s;return i.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:n=(t=i.sent())[0],s=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return s(),[7];case 5:return[2]}})})},Semaphore.prototype.isLocked=function(){return this._value<=0},Semaphore.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 e=this._currentReleaser;this._currentReleaser=void 0,e()}},Semaphore.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},Semaphore}();t.default=s},48125:function(e,t,n){"use strict";t.WU=void 0;var i=n(85078);Object.defineProperty(t,"WU",{enumerable:!0,get:function(){return i.default}}),n(2403),n(41960)},41960:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0;var i=n(97582);t.withTimeout=function(e,t,n){var s=this;return void 0===n&&(n=Error("timeout")),{acquire:function(){return new Promise(function(o,a){return i.__awaiter(s,void 0,void 0,function(){var s,u;return i.__generator(this,function(i){switch(i.label){case 0:return s=!1,setTimeout(function(){s=!0,a(n)},t),[4,e.acquire()];case 1:return u=i.sent(),s?(Array.isArray(u)?u[1]:u)():o(u),[2]}})})})},runExclusive:function(e){return i.__awaiter(this,void 0,void 0,function(){var t,n;return i.__generator(this,function(i){switch(i.label){case 0:t=function(){},i.label=1;case 1:return i.trys.push([1,,7,8]),[4,this.acquire()];case 2:if(!Array.isArray(n=i.sent()))return[3,4];return t=n[1],[4,e(n[0])];case 3:case 5:return[2,i.sent()];case 4:return t=n,[4,e()];case 6:return[3,8];case 7:return t(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}},47056:function(e,t){"use strict";var n,i;function bind(e,t,i){if(!i||typeof i.value!==n.typeOfFunction)throw TypeError("Only methods can be decorated with @bind. <"+t+"> is not a method!");return{configurable:n.boolTrue,get:function(){var e=i.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:n.boolTrue,writable:n.boolTrue}),e}}}Object.defineProperty(t,"__esModule",{value:!0}),(i=n||(n={})).typeOfFunction="function",i.boolTrue=!0,t.bind=bind,t.default=bind},60190:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseBlockTracker=void 0;let s=i(n(19394)),calculateSum=(e,t)=>e+t,o=["sync","latest"];let BaseBlockTracker=class BaseBlockTracker extends s.default{constructor(e){super(),this._blockResetDuration=e.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(){if(this._currentBlock)return this._currentBlock;let e=await new Promise(e=>this.once("latest",e));return e}removeAllListeners(e){return e?super.removeAllListeners(e):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(e){o.includes(e)&&this._maybeStart()}
14_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(e=>this.listenerCount(e)).reduce(calculateSum)}_newPotentialLatest(e){let t=this._currentBlock;t&&hexToInt(e)<=hexToInt(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};function hexToInt(e){return Number.parseInt(e,16)}t.BaseBlockTracker=BaseBlockTracker},30790:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PollingBlockTracker=void 0;let s=i(n(23420)),o=i(n(53786)),a=n(60190),u=n(59579),c=(0,u.createModuleLogger)(u.projectLogger,"polling-block-tracker"),l=(0,s.default)();let PollingBlockTracker=class PollingBlockTracker extends a.BaseBlockTracker{constructor(e={}){var t;if(!e.provider)throw Error("PollingBlockTracker - no provider specified.");super({blockResetDuration:null!==(t=e.blockResetDuration)&&void 0!==t?t:e.pollingInterval}),this._provider=e.provider,this._pollingInterval=e.pollingInterval||2e4,this._retryTimeout=e.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===e.keepEventLoopActive||e.keepEventLoopActive,this._setSkipCacheFlag=e.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var e;this._isRunning;)try{await this._updateLatestBlock();let e=timeout(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await e}catch(i){let t=Error(`PollingBlockTracker - encountered an error while attempting to update latest block: 15${null!==(e=i.stack)&&void 0!==e?e:i}`);try{this.emit("error",t)}catch(e){console.error(t)}let n=timeout(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await n}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:l(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),c("Making request",e);let t=await (0,o.default)(t=>this._provider.sendAsync(e,t))();if(c("Got response",t),t.error)throw Error(`PollingBlockTracker - encountered error fetching block: 16${t.error.message}`);return t.result}};function timeout(e,t){return new Promise(n=>{let i=setTimeout(n,e);i.unref&&t&&i.unref()})}t.PollingBlockTracker=PollingBlockTracker},66767:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscribeBlockTracker=void 0;let s=i(n(23420)),o=n(60190),a=(0,s.default)();let SubscribeBlockTracker=class SubscribeBlockTracker extends o.BaseBlockTracker{constructor(e={}){if(!e.provider)throw Error("SubscribeBlockTracker - no provider specified.");super(e),this._provider=e.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}
16async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{let e=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(e)}catch(e){this.emit("error",e)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(e){this.emit("error",e)}}_call(e,...t){return new Promise((n,i)=>{this._provider.sendAsync({id:a(),method:e,params:t,jsonrpc:"2.0"},(e,t)=>{e?i(e):n(t.result)})})}_handleSubData(e,t){var n;"eth_subscription"===t.method&&(null===(n=t.params)||void 0===n?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(t.params.result.number)}};t.SubscribeBlockTracker=SubscribeBlockTracker},6842:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),s(n(30790),t),s(n(66767),t),s(n(77627),t)},59579:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let i=n(42451);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return i.createModuleLogger}}),t.projectLogger=(0,i.createProjectLogger)("eth-block-tracker")},77627:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53786:function(e){"use strict";let processFn=(e,t)=>function(){let n=t.promiseModule,i=Array(arguments.length);for(let e=0;e<arguments.length;e++)i[e]=arguments[e];return new n((n,s)=>{t.errorFirst?i.push(function(e,i){if(t.multiArgs){let t=Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),s(t)):n(t)}else e?s(e):n(i)}):i.push(function(e){if(t.multiArgs){let e=Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];n(e)}else n(e)}),e.apply(this,i)})};e.exports=(e,t)=>{let n;t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let filter=e=>{let match=t=>"string"==typeof t?e===t:t.test(e);return t.include?t.include.some(match):!t.exclude.some(match)};for(let i in n="function"==typeof e?function(){return t.excludeMain?e.apply(this,arguments):processFn(e,t).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e)),e){let s=e[i];n[i]="function"==typeof s&&filter(i)?processFn(s,t):s}return n}},23256:function(e,t,n){let i=n(76622);e.exports=class extends i{constructor(){super(),this.allResults=[]}async update(){throw Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}}},76622:function(e,t,n){let i=n(19394).default;e.exports=class extends i{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(e=>this.emit("update",e))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}}},72785:function(e,t,n){let i=n(76622),s=n(40207),{incrementHexInt:o}=n(98112);e.exports=class extends i{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=o(e),i=await s({provider:this.provider,fromBlock:n,toBlock:t}),a=i.map(e=>e.hash);this.addResults(a)}}},40207:function(e){async function getBlocksForRange({provider:e,fromBlock:t,toBlock:n}){t||(t=n);let i=hexToInt(t),s=hexToInt(n),o=s-i+1,a=Array(o).fill().map((e,t)=>i+t).map(intToHex),u=await Promise.all(a.map(t=>query(e,"eth_getBlockByNumber",[t,!1])));return u}function hexToInt(e){return null==e?e:Number.parseInt(e,16)}function intToHex(e){if(null==e)return e;let t=e.toString(16);return"0x"+t}async function query(e,t,n){for(let i=0;i<3;i++)try{return await function(e,t){return new Promise((n,i)=>{e.sendAsync(t,(e,t)=>{e?i(e):t.error?i(t.error):t.result?n(t.result):i(Error("Result was empty"))})})}(e,{id:1,jsonrpc:"2.0",method:t,params:n})}catch(e){console.error(`provider.sendAsync failed: ${e.stack||e.message||e}`)}throw Error(`Block not found for params: ${JSON.stringify(n)}`)}e.exports=getBlocksForRange},98112:function(e){function sortBlockRefs(e){return e.sort((e,t)=>
16"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:hexToInt(e)-hexToInt(t))}function hexToInt(e){return null==e?e:Number.parseInt(e,16)}function intToHex(e){if(null==e)return e;let t=e.toString(16),n=t.length%2;return n&&(t="0"+t),"0x"+t}function unsafeRandomNibble(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(...e){let t=sortBlockRefs(e);return t[0]},maxBlockRef:function(...e){let t=sortBlockRefs(e);return t[t.length-1]},sortBlockRefs,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt,incrementHexInt:function(e){if(null==e)return e;let t=hexToInt(e);return intToHex(t+1)},intToHex,unsafeRandomBytes:function(e){let t="0x";for(let n=0;n<e;n++)t+=unsafeRandomNibble()+unsafeRandomNibble();return t}}},98406:function(e,t,n){let i=n(48125).WU,{createAsyncMiddleware:s,createScaffoldMiddleware:o}=n(88625),a=n(81663),u=n(72785),c=n(25792),{intToHex:l,hexToInt:R}=n(98112);function toFilterCreationMiddleware(e){return toAsyncRpcMiddleware(async(...t)=>{let n=await e(...t),i=l(n.id);return i})}function toAsyncRpcMiddleware(e){return s(async(t,n)=>{let i=await e.apply(null,t.params);n.result=i})}function objValues(e,t){let n=[];for(let t in e)n.push(e[t]);return n}e.exports=function({blockTracker:e,provider:t}){let n=0,s={},I=new i,M=function({mutex:e}){return t=>async(n,i,s,o)=>{let a=await e.acquire();a(),t(n,i,s,o)}}({mutex:I}),W=o({eth_newFilter:M(toFilterCreationMiddleware(newLogFilter)),eth_newBlockFilter:M(toFilterCreationMiddleware(newBlockFilter)),eth_newPendingTransactionFilter:M(toFilterCreationMiddleware(newPendingTransactionFilter)),eth_uninstallFilter:M(toAsyncRpcMiddleware(uninstallFilterHandler)),eth_getFilterChanges:M(toAsyncRpcMiddleware(getFilterChanges)),eth_getFilterLogs:M(toAsyncRpcMiddleware(getFilterLogs))}),filterUpdater=async({oldBlock:e,newBlock:t})=>{if(0===s.length)return;let n=await I.acquire();try{await Promise.all(objValues(s).map(async n=>{try{await n.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}}))}catch(e){console.error(e)}n()};return W.newLogFilter=newLogFilter,W.newBlockFilter=newBlockFilter,W.newPendingTransactionFilter=newPendingTransactionFilter,W.uninstallFilter=uninstallFilterHandler,W.getFilterChanges=getFilterChanges,W.getFilterLogs=getFilterLogs,W.destroy=()=>{uninstallAllFilters()},W;async function newLogFilter(e){let n=new a({provider:t,params:e});return await installFilter(n),n}async function newBlockFilter(){let e=new u({provider:t});return await installFilter(e),e}async function newPendingTransactionFilter(){let e=new c({provider:t});return await installFilter(e),e}async function getFilterChanges(e){let t=R(e),n=s[t];if(!n)throw Error(`No filter for index "${t}"`);let i=n.getChangesAndClear();return i}async function getFilterLogs(e){let t=R(e),n=s[t];if(!n)throw Error(`No filter for index "${t}"`);let i=[];return"log"===n.type&&(i=n.getAllResults()),i}async function uninstallFilterHandler(e){let t=R(e),n=s[t],i=!!n;return i&&await uninstallFilter(t),i}async function installFilter(t){let i=objValues(s).length,o=await e.getLatestBlock();await t.initialize({currentBlock:o}),s[++n]=t,t.id=n,t.idHex=l(n);let a=objValues(s).length;return updateBlockTrackerSubs({prevFilterCount:i,newFilterCount:a}),n}async function uninstallFilter(e){let t=objValues(s).length;delete s[e];let n=objValues(s).length;updateBlockTrackerSubs({prevFilterCount:t,newFilterCount:n})}async function uninstallAllFilters(){let e=objValues(s).length;s={},updateBlockTrackerSubs({prevFilterCount:e,newFilterCount:0})}function updateBlockTrackerSubs({prevFilterCount:t,newFilterCount:n}){if(0===t&&n>0){e.on("sync",filterUpdater);return}if(t>0&&0===n){e.removeListener("sync",filterUpdater);return}}}},81663:function(e,t,n){let i=n(75682),s=n(6417),o=n(23256),{bnToHex:a,hexToInt:u,incrementHexInt:c,minBlockRef:l,blockRefIsNumber:R}=n(98112);e.exports=class extends o{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new i(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(e=>e.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;let n=l(this.params.toBlock,e),i=Object.assign({},this.params,{toBlock:n}),s=await this._fetchLogs(i);this.addInitialResults(s)}async update({oldBlock:e,newBlock:t}){let n;n=e?c(e):t;let i=Object.assign({},this.params,{fromBlock:n,toBlock:t}),s=await this._fetchLogs(i),o=s.filter(e=>this.matchLog(e));this.addResults(o)}async _fetchLogs(e){let t=await s(t=>this.ethQuery.getLogs(e,t))();return t}matchLog(e){if(u(this.params.fromBlock)>=u(e.blockNumber)||R(this.params.toBlock)&&u(this.params.toBlock)<=u(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();if(this.params.address&&t&&!this.params.address.includes(t))return!1;let n=this.params.topics.every((t,n)=>{let i=e.topics[n];if(!i)return!1;i=i.toLowerCase();let s=Array.isArray(t)?t:[t],o=s.includes(null);if(o)return!0;s=s.map(e=>e.toLowerCase());let a=s.includes(i);return a});return n}}},6417:function(e){"use strict";let processFn=(e,t,n,i)=>function(...s){let o=t.promiseModule;return new o((o,a)=>{t.multiArgs?s.push((...e)=>{t.errorFirst?e[0]?a(e):(e.shift(),o(e)):o(e)}):t.errorFirst?s.push((e,t)=>{e?a(e):o(t)}):s.push(o);let u=this===n?i:this;Reflect.apply(e,u,s)})},t=new WeakMap;e.exports=(e,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};let i=typeof e;if(!(null!==e&&("object"===i||"function"===i)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":i}\``);let filter=(e,i)=>{let s=t.get(e);if(s||(s={},t.set(e,s)),i in s)return s[i];let match=e=>"string"==typeof e||"symbol"==typeof i?i===e:e.test(i),o=Reflect.getOwnPropertyDescriptor(e,i),a=void 0===o||o.writable||o.configurable,u=n.include?n.include.some(match):!n.exclude.some(match),c=u&&a;return s[i]=c,c},s=new WeakMap,o=new Proxy(e,{apply(e,t,i){let a=s.get(e);if(a)return Reflect.apply(a,t,i);let u=n.excludeMain?e:processFn(e,n,o,e);return s.set(e,u),Reflect.apply(u,t,i)},get(e,t){let i=e[t];if(!filter(e,t)||i===Function.prototype[t])return i;let a=s.get(i);if(a)return a;
16if("function"==typeof i){let t=processFn(i,n,o,e);return s.set(i,t),t}return i}});return o}},62876:function(e,t,n){let i=n(19394).default,{createAsyncMiddleware:s,createScaffoldMiddleware:o}=n(88625),a=n(98406),{unsafeRandomBytes:u,incrementHexInt:c}=n(98112),l=n(40207);function normalizeBlock(e){return null==e?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=function({blockTracker:e,provider:t}){let n={},R=a({blockTracker:e,provider:t}),I=!1,M=new i,W=o({eth_subscribe:s(subscribe),eth_unsubscribe:s(unsubscribe)});return W.destroy=function(){for(let e in M.removeAllListeners(),n)n[e].destroy(),delete n[e];I=!0},{events:M,middleware:W};async function subscribe(i,s){let o;if(I)throw Error("SubscriptionManager - attempting to use after destroying");let a=i.params[0],M=u(16);switch(a){case"newHeads":o=function({subId:n}){let i={type:a,destroy:async()=>{e.removeListener("sync",i.update)},update:async({oldBlock:e,newBlock:i})=>{let s=c(e),o=await l({provider:t,fromBlock:s,toBlock:i}),a=o.map(normalizeBlock).filter(e=>null!==e);a.forEach(e=>{_emitSubscriptionResult(n,e)})}};return e.on("sync",i.update),i}({subId:M});break;case"logs":let W=i.params[1],U=await R.newLogFilter(W);o=function({subId:e,filter:t}){return t.on("update",t=>_emitSubscriptionResult(e,t)),{type:a,destroy:async()=>await R.uninstallFilter(t.idHex)}}({subId:M,filter:U});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${a}"`)}n[M]=o,s.result=M}async function unsubscribe(e,t){if(I)throw Error("SubscriptionManager - attempting to use after destroying");let i=e.params[0],s=n[i];if(!s){t.result=!1;return}delete n[i],await s.destroy(),t.result=!0}function _emitSubscriptionResult(e,t){M.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}}},25792:function(e,t,n){let i=n(76622),s=n(40207),{incrementHexInt:o}=n(98112);e.exports=class extends i{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=o(e),n=await s({provider:this.provider,fromBlock:t,toBlock:e}),i=[];for(let e of n)i.push(...e.transactions);this.addResults(i)}}},75682:function(e,t,n){let i=n(47529),s=n(23420)();function EthQuery(e){this.currentProvider=e}function generateFnFor(e){return function(){var t=[].slice.call(arguments),n=t.pop();this.sendAsync({method:e,params:t},n)}}function generateFnWithDefaultBlockFor(e,t){return function(){var n=[].slice.call(arguments),i=n.pop();n.length<e&&n.push("latest"),this.sendAsync({method:t,params:n},i)}}e.exports=EthQuery,EthQuery.prototype.getBalance=generateFnWithDefaultBlockFor(2,"eth_getBalance"),EthQuery.prototype.getCode=generateFnWithDefaultBlockFor(2,"eth_getCode"),EthQuery.prototype.getTransactionCount=generateFnWithDefaultBlockFor(2,"eth_getTransactionCount"),EthQuery.prototype.getStorageAt=generateFnWithDefaultBlockFor(3,"eth_getStorageAt"),EthQuery.prototype.call=generateFnWithDefaultBlockFor(2,"eth_call"),EthQuery.prototype.protocolVersion=generateFnFor("eth_protocolVersion"),EthQuery.prototype.syncing=generateFnFor("eth_syncing"),EthQuery.prototype.coinbase=generateFnFor("eth_coinbase"),EthQuery.prototype.mining=generateFnFor("eth_mining"),EthQuery.prototype.hashrate=generateFnFor("eth_hashrate"),EthQuery.prototype.gasPrice=generateFnFor("eth_gasPrice"),EthQuery.prototype.accounts=generateFnFor("eth_accounts"),EthQuery.prototype.blockNumber=generateFnFor("eth_blockNumber"),EthQuery.prototype.getBlockTransactionCountByHash=generateFnFor("eth_getBlockTransactionCountByHash"),EthQuery.prototype.getBlockTransactionCountByNumber=generateFnFor("eth_getBlockTransactionCountByNumber"),EthQuery.prototype.getUncleCountByBlockHash=generateFnFor("eth_getUncleCountByBlockHash"),EthQuery.prototype.getUncleCountByBlockNumber=generateFnFor("eth_getUncleCountByBlockNumber"),EthQuery.prototype.sign=generateFnFor("eth_sign"),EthQuery.prototype.sendTransaction=generateFnFor("eth_sendTransaction"),EthQuery.prototype.sendRawTransaction=generateFnFor("eth_sendRawTransaction"),EthQuery.prototype.estimateGas=generateFnFor("eth_estimateGas"),EthQuery.prototype.getBlockByHash=generateFnFor("eth_getBlockByHash"),EthQuery.prototype.getBlockByNumber=generateFnFor("eth_getBlockByNumber"),EthQuery.prototype.getTransactionByHash=generateFnFor("eth_getTransactionByHash"),EthQuery.prototype.getTransactionByBlockHashAndIndex=generateFnFor("eth_getTransactionByBlockHashAndIndex"),EthQuery.prototype.getTransactionByBlockNumberAndIndex=generateFnFor("eth_getTransactionByBlockNumberAndIndex"),EthQuery.prototype.getTransactionReceipt=generateFnFor("eth_getTransactionReceipt"),EthQuery.prototype.getUncleByBlockHashAndIndex=generateFnFor("eth_getUncleByBlockHashAndIndex"),EthQuery.prototype.getUncleByBlockNumberAndIndex=generateFnFor("eth_getUncleByBlockNumberAndIndex"),EthQuery.prototype.getCompilers=generateFnFor("eth_getCompilers"),EthQuery.prototype.compileLLL=generateFnFor("eth_compileLLL"),EthQuery.prototype.compileSolidity=generateFnFor("eth_compileSolidity"),EthQuery.prototype.compileSerpent=generateFnFor("eth_compileSerpent"),EthQuery.prototype.newFilter=generateFnFor("eth_newFilter"),EthQuery.prototype.newBlockFilter=generateFnFor("eth_newBlockFilter"),EthQuery.prototype.newPendingTransactionFilter=generateFnFor("eth_newPendingTransactionFilter"),EthQuery.prototype.uninstallFilter=generateFnFor("eth_uninstallFilter"),EthQuery.prototype.getFilterChanges=generateFnFor("eth_getFilterChanges"),EthQuery.prototype.getFilterLogs=generateFnFor("eth_getFilterLogs"),EthQuery.prototype.getLogs=generateFnFor("eth_getLogs"),EthQuery.prototype.getWork=generateFnFor("eth_getWork"),EthQuery.prototype.submitWork=generateFnFor("eth_submitWork"),EthQuery.prototype.submitHashrate=generateFnFor("eth_submitHashrate"),EthQuery.prototype.sendAsync=function(e,t){this.currentProvider.sendAsync(i({id:s(),jsonrpc:"2.0",params:[]},e),function(e,n){if(!e&&n.error&&(e=Error("EthQuery - RPC Error - "+n.error.message)),e)return t(e);t(null,n.result)})}},12294:function(e,t,n){"use strict";
16Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;let i=n(4445);let EthereumRpcError=class EthereumRpcError extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return i.default(this.serialize(),stringifyReplacer,2)}};function stringifyReplacer(e,t){if("[Circular]"!==t)return t}t.EthereumRpcError=EthereumRpcError,t.EthereumProviderError=class extends EthereumRpcError{constructor(e,t,n){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}},92662:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.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}},t.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."}}},68797:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;let i=n(12294),s=n(68753),o=n(92662);function getEthJsonRpcError(e,t){let[n,o]=parseOpts(t);return new i.EthereumRpcError(e,n||s.getMessageFromCode(e),o)}function getEthProviderError(e,t){let[n,o]=parseOpts(t);return new i.EthereumProviderError(e,n||s.getMessageFromCode(e),o)}function parseOpts(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>getEthJsonRpcError(o.errorCodes.rpc.parse,e),invalidRequest:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidRequest,e),invalidParams:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidParams,e),methodNotFound:e=>getEthJsonRpcError(o.errorCodes.rpc.methodNotFound,e),internal:e=>getEthJsonRpcError(o.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code
16<= -32005');return getEthJsonRpcError(t,e)},invalidInput:e=>getEthJsonRpcError(o.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>getEthJsonRpcError(o.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>getEthJsonRpcError(o.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>getEthJsonRpcError(o.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>getEthJsonRpcError(o.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>getEthJsonRpcError(o.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>getEthProviderError(o.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>getEthProviderError(o.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>getEthProviderError(o.errorCodes.provider.unsupportedMethod,e),disconnected:e=>getEthProviderError(o.errorCodes.provider.disconnected,e),chainDisconnected:e=>getEthProviderError(o.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:s}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new i.EthereumProviderError(t,n,s)}}}},79826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;let i=n(12294);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return i.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return i.EthereumProviderError}});let s=n(68753);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return s.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return s.getMessageFromCode}});let o=n(68797);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});let a=n(92662);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},68753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(92662),s=n(12294),o=i.errorCodes.rpc.internal,a={code:o,message:getMessageFromCode(o)};function getMessageFromCode(e,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){let n=e.toString();if(hasKey(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function isValidCode(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(i.errorValues[t]||e>=-32099&&e<=-32e3)}function assignOriginalError(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function hasKey(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=getMessageFromCode,t.isValidCode=isValidCode,t.serializeError=function(e,{fallbackError:t=a,shouldIncludeStack:n=!1}={}){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw Error("Must provide fallback error with integer number code and string message.");if(e instanceof s.EthereumRpcError)return e.serialize();let i={};if(e&&"object"==typeof e&&!Array.isArray(e)&&hasKey(e,"code")&&isValidCode(e.code))i.code=e.code,e.message&&"string"==typeof e.message?(i.message=e.message,hasKey(e,"data")&&(i.data=e.data)):(i.message=getMessageFromCode(i.code),i.data={originalError:assignOriginalError(e)});else{i.code=t.code;let n=null==e?void 0:e.message;i.message=n&&"string"==typeof n?n:t.message,i.data={originalError:assignOriginalError(e)}}let o=null==e?void 0:e.stack;return n&&e&&o&&"string"==typeof o&&(i.stack=o),i}},4445:function(e){e.exports=stringify,stringify.default=stringify,stringify.stable=deterministicStringify,stringify.stableStringify=deterministicStringify;var t="[...]",n="[Circular]",i=[],s=[];function defaultOptions(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function stringify(e,o,a,u){void 0===u&&(u=defaultOptions()),function decirc(e,i,s,o,a,u,c){if(u+=1,"object"==typeof e&&null!==e){for(l=0;l<o.length;l++)if(o[l]===e){setReplace(n,e,i,a);return}if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&s+1>c.edgesLimit){setReplace(t,e,i,a);return}if(o.push(e),Array.isArray(e))for(l=0;l<e.length;l++)decirc(e[l],l,l,o,e,u,c);else{var l,R=Object.keys(e);for(l=0;l<R.length;l++){var I=R[l];decirc(e[I],I,l,o,e,u,c)}}o.pop()}}(e,"",0,[],void 0,0,u);try{c=0===s.length?JSON.stringify(e,o,a):JSON.stringify(e,replaceGetterValues(o),a)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var c,l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return c}function setReplace(e,t,n,o){var a=Object.getOwnPropertyDescriptor(o,n);void 0!==a.get?a.configurable?(Object.defineProperty(o,n,{value:e}),i.push([o,n,t,a])):s.push([t,n,e]):(o[n]=e,i.push([o,n,t]))}function compareFunction(e,t){return e<t?-1:e>t?1:0}function deterministicStringify(e,o,a,u){void 0===u&&(u=defaultOptions());var c,l=function deterministicDecirc(e,s,o,a,u,c,l){if(c+=1,"object"==typeof e&&null!==e){for(R=0;R<a.length;R++)if(a[R]===e){setReplace(n,e,s,u);return}try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==l.depthLimit&&c>l.depthLimit||void 0!==l.edgesLimit&&o+1>l.edgesLimit){setReplace(t,e,s,u);return}if(a.push(e),Array.isArray(e))for(R=0;R<e.length;R++)deterministicDecirc(e[R],R,R,a,e,c,l);else{var R,I={},M=Object.keys(e).sort(compareFunction);for(R=0;R<M.length;R++){var W=M[R];deterministicDecirc(e[W],W,R,a,e,c,l),I[W]=e[W]}if(void 0===u)return I;i.push([u,s,e]),u[s]=I}a.pop()}}(e,"",0,[],void 0,0,u)||e;try{c=0===s.length?JSON.stringify(l,o,a):JSON.stringify(l,replaceGetterValues(o),a)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var R=i.pop();4===R.length?Object.defineProperty(R[0],R[1],R[3]):R[0][R[1]]=R[2]}}return c}function replaceGetterValues(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var i=0;i<s.length;i++){var o=s[i];if(o[1]===t&&o[0]===n){n=o[2],s.splice(i,1);break}}return e.call(this,t,n)}}},17398:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
16dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcEngine=void 0;let s=i(n(19394)),o=n(79826);let JsonRpcEngine=class JsonRpcEngine extends s.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,i)=>{try{let[s,o,a]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(o)return await JsonRpcEngine._runReturnHandlers(a),i(s);return n(async e=>{try{await JsonRpcEngine._runReturnHandlers(a)}catch(t){return e(t)}return e()})}catch(e){return i(e)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));if(t)return t(null,n);return n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(e,n)=>{t(n)})})}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){let n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}let n=Object.assign({},e),i={id:n.id,jsonrpc:n.jsonrpc},s=null;try{await this._processRequest(n,i)}catch(e){s=e}return s&&(delete i.result,i.error||(i.error=o.serializeError(s))),t(s,i)}async _processRequest(e,t){let[n,i,s]=await JsonRpcEngine._runAllMiddleware(e,t,this._middleware);if(JsonRpcEngine._checkForCompletion(e,t,i),await JsonRpcEngine._runReturnHandlers(s),n)throw n}static async _runAllMiddleware(e,t,n){let i=[],s=null,o=!1;for(let a of n)if([s,o]=await JsonRpcEngine._runMiddleware(e,t,a,i),o)break;return[s,o,i.reverse()]}static _runMiddleware(e,t,n,i){return new Promise(s=>{let end=e=>{let n=e||t.error;n&&(t.error=o.serializeError(n)),s([n,!0])};try{n(e,t,n=>{t.error?end(t.error):(n&&("function"!=typeof n&&end(new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request: 17${jsonify(e)}`,{request:e})),i.push(n)),s([null,!1]))},end)}catch(e){end(e)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((e,n)=>{t(t=>t?n(t):e())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: 18${jsonify(e)}`,{request:e});if(!n)throw new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: 19${jsonify(e)}`,{request:e})}};function jsonify(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=JsonRpcEngine},31841:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=function(e){return async(t,n,i,s)=>{let o;let a=new Promise(e=>{o=e}),u=null,c=!1,asyncNext=async()=>{c=!0,i(e=>{u=e,o()}),await a};try{await e(t,n,asyncNext),c?(await a,u(null)):s(null)}catch(e){u?u(e):s(e)}}}},48508:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=function(e){return(t,n,i,s)=>{let o=e[t.method];return void 0===o?i():"function"==typeof o?o(t,n,i,s):(n.result=o,s())}}},33107:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;let n=Math.floor(4294967295*Math.random());t.getUniqueId=function(){return n=(n+1)%4294967295}},85086:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;let i=n(33107);t.createIdRemapMiddleware=function(){return(e,t,n,s)=>{let o=e.id,a=i.getUniqueId();e.id=a,t.id=a,n(n=>{e.id=o,t.id=o,n()})}}},88625:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};
19Object.defineProperty(t,"__esModule",{value:!0}),s(n(85086),t),s(n(31841),t),s(n(48508),t),s(n(33107),t),s(n(17398),t),s(n(79962),t)},79962:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;let i=n(17398);t.mergeMiddleware=function(e){let t=new i.JsonRpcEngine;return e.forEach(e=>t.push(e)),t.asMiddleware()}},23420:function(e){e.exports=function(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,n=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return n%=t,n++}}},95811:function(e,t,n){e.exports=n(26066)(n(79653))},26066:function(e,t,n){let i=n(37016),s=n(5675);e.exports=function(e){let t=i(e),n=s(e);return function(e,i){let s="string"==typeof e?e.toLowerCase():e;switch(s){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new n(1344,256,31,i);case"shake256":return new n(1088,512,31,i);default:throw Error("Invald algorithm: "+e)}}}},37016:function(e,t,n){var i=n(48764).Buffer;let{Transform:s}=n(88473);e.exports=e=>class Keccak extends s{constructor(t,n,i,s,o){super(o),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=s,this._options=o,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let i=null;try{this.update(e,t)}catch(e){i=e}n(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new Keccak(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},5675:function(e,t,n){var i=n(48764).Buffer;let{Transform:s}=n(88473);e.exports=e=>class Shake extends s{constructor(t,n,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=i,this._options=s,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let i=null;try{this.update(e,t)}catch(e){i=e}n(i)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==t&&(n=n.toString(t)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new Shake(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},34040:function(e,t){let n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){let i=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],R=e[7]^e[17]^e[27]^e[37]^e[47],I=e[8]^e[18]^e[28]^e[38]^e[48],M=e[9]^e[19]^e[29]^e[39]^e[49],W=I^(o<<1|a>>>31),U=M^(a<<1|o>>>31),Z=e[0]^W,J=e[1]^U,Q=e[10]^W,G=e[11]^U,Y=e[20]^W,K=e[21]^U,X=e[30]^W,ee=e[31]^U,et=e[40]^W,er=e[41]^U;W=i^(u<<1|c>>>31),U=s^(c<<1|u>>>31);let en=e[2]^W,ei=e[3]^U,es=e[12]^W,eo=e[13]^U,ea=e[22]^W,eu=e[23]^U,ec=e[32]^W,el=e[33]^U,eh=e[42]^W,ed=e[43]^U;W=o^(l<<1|R>>>31),U=a^(R<<1|l>>>31);let ef=e[4]^W,ep=e[5]^U,eb=e[14]^W,ey=e[15]^U,eg=e[24]^W,em=e[25]^U,ev=e[34]^W,e_=e[35]^U,eS=e[44]^W,ew=e[45]^U;W=u^(I<<1|M>>>31),U=c^(M<<1|I>>>31);let eE=e[6]^W,ex=e[7]^U,ek=e[16]^W,eT=e[17]^U,eC=e[26]^W,eR=e[27]^U,eI=e[36]^W,eO=e[37]^U,eM=e[46]^W,eA=e[47]^U;W=l^(i<<1|s>>>31),U=R^(s<<1|i>>>31);let eN=e[8]^W,eL=e[9]^U,ej=e[18]^W,eD=e[19]^U,eP=e[28]^W,eB=e[29]^U,eF=e[38]^W,eW=e[39]^U,ez=e[48]^W,eH=e[49]^U,eV=G<<4|Q>>>28,e$=Q<<4|G>>>28,eU=Y<<3|K>>>29,eq=K<<3|Y>>>29,eZ=ee<<9|X>>>23,eJ=X<<9|ee>>>23,eQ=et<<18|er>>>14,eG=er<<18|et>>>14,eY=en<<1|ei>>>31,eK=ei<<1|en>>>31,eX=eo<<12|es>>>20,e0=es<<12|eo>>>20,e1=ea<<10|eu>>>22,e2=eu<<10|ea>>>22,e4=el<<13|ec>>>19,e3=ec<<13|el>>>19,e5=eh<<2|ed>>>30,e6=ed<<2|eh>>>30,e8=ep<<30|ef>>>2,e9=ef<<30|ep>>>2,e7=eb<<6|ey>>>26,te=ey<<6|eb>>>26,tt=em<<11|eg>>>21,tr=eg<<11|em>>>21,tn=ev<<15|e_>>>17,ti=e_<<15|ev>>>17,ts=ew<<29|eS>>>3,to=eS<<29|ew>>>3,ta=eE<<28|ex>>>4,tu=ex<<28|eE>>>4,tc=eT<<23|ek>>>9,tl=ek<<23|eT>>>9,th=eC<<25|eR>>>7,td=eR<<25|eC>>>7,tf=eI<<21|eO>>>11,tp=eO<<21|eI>>>11,tb=eA<<24|eM>>>8,ty=eM<<24|eA>>>8,tg=eN<<27|eL>>>5,tm=eL<<27|eN>>>5,tv=ej<<20|eD>>>12,t_=eD<<20|ej>>>12,tS=eB<<7|eP>>>25,tw=eP<<7|eB>>>25,tE=eF<<8|eW>>>24,tx=eW<<8|eF>>>24,tk=ez<<14|eH>>>18,tT=eH<<14|ez>>>18;e[0]=Z^~eX&tt,e[1]=J^~e0&tr,e[10]=ta^~tv&eU,e[11]=tu^~t_&eq,e[20]=eY^~e7&th,e[21]=eK^~te&td,e[30]=tg^~eV&e1,e[31]=tm^~e$&e2,e[40]=e8^~tc&tS,e[41]=e9^~tl&tw,e[2]=eX^~tt&tf,e[3]=e0^~tr&tp,e[12]=tv^~eU&e4,e[13]=t_^~eq&e3,e[22]=e7^~th&tE,e[23]=te^~td&tx,e[32]=eV^~e1&tn,e[33]=e$^~e2&ti,e[42]=tc^~tS&eZ,e[43]=tl^~tw&eJ,e[4]=tt^~tf&tk,e[5]=tr^~tp&tT,e[14]=eU^~e4&ts,e[15]=eq^~e3&to,e[24]=th^~tE&eQ,e[25]=td^~tx&eG,e[34]=e1^~tn&tb,e[35]=e2^~ti&ty,e[44]=tS^~eZ&e5,e[45]=tw^~eJ&e6,e[6]=tf^~tk&Z,e[7]=tp^~tT&J,e[16]=e4^~ts&ta,e[17]=e3^~to&tu,e[26]=tE^~eQ&eY,e[27]=tx^~eG&eK,e[36]=tn^~tb&tg,e[37]=ti^~ty&tm,e[46]=eZ^~e5&e8,e[47]=eJ^~e6&e9,e[8]=tk^~Z&eX,e[9]=tT^~J&e0,e[18]=ts^~ta&tv,e[19]=to^~tu&t_,e[28]=eQ^~eY&e7,e[29]=eG^~eK&te,e[38]=tb^~tg&eV,e[39]=ty^~tm&e$,e[48]=e5^~e8&tc,e[49]=e6^~e9&tl,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},79653:function(e,t,n){var i=n(48764).Buffer;let s=n(34040);function Keccak(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Keccak.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},Keccak.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(s.p1600(this.state),this.count=0)},Keccak.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),(128&e)!=0&&this.count===this.blockSize-1&&s.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),s.p1600(this.state),this.count=0,this.squeezing=!0},Keccak.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let t=i.alloc(e);for(let n=0;n<e;++n)t[n]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(s.p1600(this.state),this.count=0);return t},Keccak.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=Keccak},39593:function(e,t,n){"use strict";let i=n(34411),s=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),u=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),R=Symbol("noDisposeOnSet"),I=Symbol("lruList"),M=Symbol("cache"),W=Symbol("updateAgeOnGet"),naiveLength=()=>1,get=(e,t,n)=>{let i=e[M].get(t);if(i){let t=i.value;if(isStale(e,t)){if(del(e,i),!e[u])return}else n&&(e[W]&&(i.value.now=Date.now()),e[I].unshiftNode(i));return t.value}},isStale=(e,t)=>
19{if(!t||!t.maxAge&&!e[c])return!1;let n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},trim=e=>{if(e[o]>e[s])for(let t=e[I].tail;e[o]>e[s]&&null!==t;){let n=t.prev;del(e,t),t=n}},del=(e,t)=>{if(t){let n=t.value;e[l]&&e[l](n.key,n.value),e[o]-=n.length,e[M].delete(n.key),e[I].removeNode(t)}};let Entry=class Entry{constructor(e,t,n,i,s){this.key=e,this.value=t,this.length=n,this.now=i,this.maxAge=s||0}};let forEachStep=(e,t,n,i)=>{let s=n.value;isStale(e,s)&&(del(e,n),e[u]||(s=void 0)),s&&t.call(i,s.value,s.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[s]=e.max||1/0;let t=e.length||naiveLength;if(this[a]="function"!=typeof t?naiveLength:t,this[u]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[R]=e.noDisposeOnSet||!1,this[W]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[s]=e||1/0,trim(this)}get max(){return this[s]}set allowStale(e){this[u]=!!e}get allowStale(){return this[u]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[c]=e,trim(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=naiveLength),e!==this[a]&&(this[a]=e,this[o]=0,this[I].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),trim(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[I].length}rforEach(e,t){t=t||this;for(let n=this[I].tail;null!==n;){let i=n.prev;forEachStep(this,e,n,t),n=i}}forEach(e,t){t=t||this;for(let n=this[I].head;null!==n;){let i=n.next;forEachStep(this,e,n,t),n=i}}keys(){return this[I].toArray().map(e=>e.key)}values(){return this[I].toArray().map(e=>e.value)}reset(){this[l]&&this[I]&&this[I].length&&this[I].forEach(e=>this[l](e.key,e.value)),this[M]=new Map,this[I]=new i,this[o]=0}dump(){return this[I].map(e=>!isStale(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[I]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw TypeError("maxAge must be a number");let i=n?Date.now():0,u=this[a](t,e);if(this[M].has(e)){if(u>this[s])return del(this,this[M].get(e)),!1;let a=this[M].get(e),c=a.value;return this[l]&&!this[R]&&this[l](e,c.value),c.now=i,c.maxAge=n,c.value=t,this[o]+=u-c.length,c.length=u,this.get(e),trim(this),!0}let W=new Entry(e,t,u,i,n);return W.length>this[s]?(this[l]&&this[l](e,t),!1):(this[o]+=W.length,this[I].unshift(W),this[M].set(e,this[I].head),trim(this),!0)}has(e){if(!this[M].has(e))return!1;let t=this[M].get(e).value;return!isStale(this,t)}get(e){return get(this,e,!0)}peek(e){return get(this,e,!1)}pop(){let e=this[I].tail;return e?(del(this,e),e.value):null}del(e){del(this,this[M].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let i=e[n],s=i.e||0;if(0===s)this.set(i.k,i.v);else{let e=s-t;e>0&&this.set(i.k,i.v,e)}}}prune(){this[M].forEach((e,t)=>get(this,t,!1))}}},70631:function(e,t,n){var i="function"==typeof Map&&Map.prototype,s=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=i&&s&&"function"==typeof s.get?s.get:null,a=i&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&c&&"function"==typeof c.get?c.get:null,R=u&&Set.prototype.forEach,I="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,M="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,W="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,U=Boolean.prototype.valueOf,Z=Object.prototype.toString,J=Function.prototype.toString,Q=String.prototype.match,G=String.prototype.slice,Y=String.prototype.replace,K=String.prototype.toUpperCase,X=String.prototype.toLowerCase,ee=RegExp.prototype.test,et=Array.prototype.concat,er=Array.prototype.join,en=Array.prototype.slice,ei=Math.floor,es="function"==typeof BigInt?BigInt.prototype.valueOf:null,eo=Object.getOwnPropertySymbols,ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,eu="function"==typeof Symbol&&"object"==typeof Symbol.iterator,ec="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===eu?"object":"symbol")?Symbol.toStringTag:null,el=Object.prototype.propertyIsEnumerable,eh=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function addNumericSeparator(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||ee.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-ei(-e):ei(e);if(i!==e){var s=String(i),o=G.call(t,s.length+1);return Y.call(s,n,"$&_")+"."+Y.call(Y.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Y.call(t,n,"$&_")}var ed=n(24654),ef=ed.custom,ep=isSymbol(ef)?ef:null;
19function wrapQuotes(e,t,n){var i="double"===(n.quoteStyle||t)?'"':"'";return i+e+i}function isArray(e){return"[object Array]"===toStr(e)&&(!ec||!("object"==typeof e&&ec in e))}function isRegExp(e){return"[object RegExp]"===toStr(e)&&(!ec||!("object"==typeof e&&ec in e))}function isSymbol(e){if(eu)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!ea)return!1;try{return ea.call(e),!0}catch(e){}return!1}e.exports=function inspect_(e,t,i,s){var u=t||{};if(has(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(has(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 c=!has(u,"customInspect")||u.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has(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(has(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Z=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 inspectString(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength;return inspectString(G.call(e,0,t.maxStringLength),t)+"... "+n+" more character"+(n>1?"s":"")}return wrapQuotes(Y.call(Y.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte),"single",t)}(e,u);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var K=String(e);return Z?addNumericSeparator(e,K):K}if("bigint"==typeof e){var ee=String(e)+"n";return Z?addNumericSeparator(e,ee):ee}var ei=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=ei&&ei>0&&"object"==typeof e)return isArray(e)?"[Array]":"[Object]";var eo=function(e,t){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=er.call(Array(e.indent+1)," ")}return{base:n,prev:er.call(Array(t+1),n)}}(u,i);if(void 0===s)s=[];else if(indexOf(s,e)>=0)return"[Circular]";function inspect(e,t,n){if(t&&(s=en.call(s)).push(t),n){var o={depth:u.depth};return has(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),inspect_(e,o,i+1,s)}return inspect_(e,u,i+1,s)}if("function"==typeof e&&!isRegExp(e)){var ef=function(e){if(e.name)return e.name;var t=Q.call(J.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(e),eb=arrObjKeys(e,inspect);return"[Function"+(ef?": "+ef:" (anonymous)")+"]"+(eb.length>0?" { "+er.call(eb,", ")+" }":"")}if(isSymbol(e)){var ey=eu?Y.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ea.call(e);return"object"!=typeof e||eu?ey:markBoxed(ey)}if(e&&"object"==typeof e&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)){for(var eg,em="<"+X.call(String(e.nodeName)),ev=e.attributes||[],e_=0;e_<ev.length;e_++)em+=" "+ev[e_].name+"="+wrapQuotes((eg=ev[e_].value,Y.call(String(eg),/"/g,""")),"double",u);return em+=">",e.childNodes&&e.childNodes.length&&(em+="..."),em+="</"+X.call(String(e.nodeName))+">"}if(isArray(e)){if(0===e.length)return"[]";var eS=arrObjKeys(e,inspect);return eo&&!function(e){for(var t=0;t<e.length;t++)if(indexOf(e[t],"\n")>=0)return!1;return!0}(eS)?"["+indentedJoin(eS,eo)+"]":"[ "+er.call(eS,", ")+" ]"}if("[object Error]"===toStr(e)&&(!ec||!("object"==typeof e&&ec in e))){var ew=arrObjKeys(e,inspect);return"cause"in Error.prototype||!("cause"in e)||el.call(e,"cause")?0===ew.length?"["+String(e)+"]":"{ ["+String(e)+"] "+er.call(ew,", ")+" }":"{ ["+String(e)+"] "+er.call(et.call("[cause]: "+inspect(e.cause),ew),", ")+" }"}if("object"==typeof e&&c){if(ep&&"function"==typeof e[ep]&&ed)return ed(e,{depth:ei-i});if("symbol"!==c&&"function"==typeof e.inspect)return e.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(e)){var eE=[];return a&&a.call(e,function(t,n){eE.push(inspect(n,e,!0)+" => "+inspect(t,e))}),collectionOf("Map",o.call(e),eE,eo)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(e)){var ex=[];return R&&R.call(e,function(t){ex.push(inspect(t,e))}),collectionOf("Set",l.call(e),ex,eo)}if(function(e){if(!I||!e||"object"!=typeof e)return!1;try{I.call(e,I);try{M.call(e,M)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(e))return weakCollectionOf("WeakMap");if(function(e){if(!M||!e||"object"!=typeof e)return!1;try{M.call(e,M);try{I.call(e,I)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(e))return weakCollectionOf("WeakSet");if(function(e){if(!W||!e||"object"!=typeof e)return!1;try{return W.call(e),!0}catch(e){}return!1}(e))return weakCollectionOf("WeakRef");if("[object Number]"===toStr(e)&&(!ec||!("object"==typeof e&&ec in e)))return markBoxed(inspect(Number(e)));if(function(e){if(!e||"object"!=typeof e||!es)return!1;try{return es.call(e),!0}catch(e){}return!1}(e))return markBoxed(inspect(es.call(e)));if("[object Boolean]"===toStr(e)&&(!ec||!("object"==typeof e&&ec in e)))return markBoxed(U.call(e));if("[object String]"===toStr(e)&&(!ec||!("object"==typeof e&&ec in e)))return markBoxed(inspect(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===n.g)return"{ [object globalThis] }";if(!("[object Date]"===toStr(e)&&(!ec||!("object"==typeof e&&ec in e)))&&!isRegExp(e)){var ek=arrObjKeys(e,inspect),eT=eh?eh(e)===Object.prototype:e instanceof Object||e.constructor===Object,eC=e instanceof Object?"":"null prototype",eR=!eT&&ec&&Object(e)===e&&ec in e?G.call(toStr(e),8,-1):eC?"Object":"",eI=(eT||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(eR||eC?"["+er.call(et.call([],eR||[],e
19C||[]),": ")+"] ":"");return 0===ek.length?eI+"{}":eo?eI+"{"+indentedJoin(ek,eo)+"}":eI+"{ "+er.call(ek,", ")+" }"}return String(e)};var eb=Object.prototype.hasOwnProperty||function(e){return e in this};function has(e,t){return eb.call(e,t)}function toStr(e){return Z.call(e)}function indexOf(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return -1}function lowbyte(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+K.call(t.toString(16))}function markBoxed(e){return"Object("+e+")"}function weakCollectionOf(e){return e+" { ? }"}function collectionOf(e,t,n,i){return e+" ("+t+") {"+(i?indentedJoin(n,i):er.call(n,", "))+"}"}function indentedJoin(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+er.call(e,","+n)+"\n"+t.prev}function arrObjKeys(e,t){var n,i=isArray(e),s=[];if(i){s.length=e.length;for(var o=0;o<e.length;o++)s[o]=has(e,o)?t(e[o],e):""}var a="function"==typeof eo?eo(e):[];if(eu){n={};for(var u=0;u<a.length;u++)n["$"+a[u]]=a[u]}for(var c in e)has(e,c)&&(!i||String(Number(c))!==c||!(c<e.length))&&(eu&&n["$"+c]instanceof Symbol||(ee.call(/[^\w$]/,c)?s.push(t(c,e)+": "+t(e[c],e)):s.push(c+": "+t(e[c],e))));if("function"==typeof eo)for(var l=0;l<a.length;l++)el.call(e,a[l])&&s.push("["+t(a[l])+"]: "+t(e[a[l]],e));return s}},6400:function(e,t,n){"use strict";n.r(t),n.d(t,{Component:function(){return b},Fragment:function(){return g},cloneElement:function(){return B},createContext:function(){return E},createElement:function(){return y},createRef:function(){return _},h:function(){return y},hydrate:function(){return q},isValidElement:function(){return a},options:function(){return s},render:function(){return N},toChildArray:function(){return function $(e,t){return t=t||[],null==e||"boolean"==typeof e||(Z(e)?e.some(function(e){$(e,t)}):t.push(e)),t}}});var i,s,o,a,u,c,l,R,I,M={},W=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Z=Array.isArray;function v(e,t){for(var n in t)e[n]=t[n];return e}function p(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var s,o,a,u={};
vendor: 5,707 bytes, line 19
19for(a in t)"key"==a?s=t[a]:"ref"==a?o=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return d(e,u,s,o,null)}function d(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=s.vnode&&s.vnode(u),u}function _(){return{current:null}}function g(e){return e.children}function b(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?m(e):null}function k(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!x.__r++||c!==s.debounceRendering)&&((c=s.debounceRendering)||l)(x)}function x(){var e,t,n,i,o,a,c,l,I;for(u.sort(R);e=u.shift();)e.__d&&(t=u.length,i=void 0,a=(o=(n=e).__v).__e,l=[],I=[],(c=n.__P)&&((i=v({},o)).__v=o.__v+1,s.vnode&&s.vnode(i),F(c,i,o,n.__n,void 0!==c.ownerSVGElement,32&o.__u?[a]:null,l,null==a?m(o):a,!!(32&o.__u),I),i.__v=o.__v,i.__.__k[i.__i]=i,L(l,i,I),i.__e!=a&&function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}(i)),u.length>t&&u.sort(R));x.__r=0}function C(e,t,n,i,s,o,a,u,c,l,R){var I,U,J,Q,G,Y=i&&i.__k||W,K=t.length;for(n.__d=c,function(e,t,n){var i,s,o,a,u,c=t.length,l=n.length,R=l,I=0;for(e.__k=[],i=0;i<c;i++)a=i+I,null!=(s=e.__k[i]=null==(s=t[i])||"boolean"==typeof s||"function"==typeof s?null:"string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?d(null,s,null,null,null):Z(s)?d(g,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?d(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)?(s.__=e,s.__b=e.__b+1,u=function(e,t,n,i){var s=e.key,o=e.type,a=n-1,u=n+1,c=t[n];if(null===c||c&&s==c.key&&o===c.type&&0==(131072&c.__u))return n;if(i>(null!=c&&0==(131072&c.__u)?1:0))for(;a>=0||u<t.length;){if(a>=0){if((c=t[a])&&0==(131072&c.__u)&&s==c.key&&o===c.type)return a;a--}if(u<t.length){if((c=t[u])&&0==(131072&c.__u)&&s==c.key&&o===c.type)return u;u++}}return -1}(s,n,a,R),s.__i=u,o=null,-1!==u&&(R--,(o=n[u])&&(o.__u|=131072)),null==o||null===o.__v?(-1==u&&I--,"function"!=typeof s.type&&(s.__u|=65536)):u!==a&&(u===a+1?I++:u>a?R>c-a?I+=u-a:I--:u<a?u==a-1&&(I=u-a):I=0,u!==i+I&&(s.__u|=65536))):(o=n[a])&&null==o.key&&o.__e&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=m(o)),j(o,o,!1),n[a]=null,R--);if(R)for(i=0;i<l;i++)null!=(o=n[i])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=m(o)),j(o,o))}(n,t,Y),c=n.__d,I=0;I<K;I++)null!=(J=n.__k[I])&&"boolean"!=typeof J&&"function"!=typeof J&&(U=-1===J.__i?M:Y[J.__i]||M,J.__i=I,F(e,J,U,s,o,a,u,c,l,R),Q=J.__e,J.ref&&U.ref!=J.ref&&(U.ref&&O(U.ref,null,J),R.push(J.ref,J.__c||Q,J)),null==G&&null!=Q&&(G=Q),65536&J.__u||U.__k===J.__k?(Q||U.__e!=c||(c=m(U)),c=function S(e,t,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,t=S(i[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8===t.nodeType);return t}(J,c,e)):"function"==typeof J.type&&void 0!==J.__d?c=J.__d:Q&&(c=Q.nextSibling),J.__d=void 0,J.__u&=-196609);n.__d=c,n.__e=G}function H(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||U.test(t)?n:n+"px"}function T(e,t,n,i,s){var o;e:if("style"===t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||H(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||H(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase() in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?i?n.u=i.u:(n.u=Date.now(),e.addEventListener(t,o?D:A,o)):e.removeEventListener(t,o?D:A,o);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function A(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(s.event?s.event(e):e)}}function D(e){if(this.l)return this.l[e.type+!0](s.event?s.event(e):e)}function F(e,t,n,o,a,u,c,l,R,I){var W,U,J,Q,G,Y,K,X,ee,et,er,en,ei,es,eo,ea=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(R=!!(32&n.__u),u=[l=t.__e=n.__e]),(W=s.__b)&&W(t);e:if("function"==typeof ea)try{if(X=t.props,ee=(W=ea.contextType)&&o[W.__c],et=W?ee?ee.props.value:W.__:o,n.__c?K=(U=t.__c=n.__c).__=U.__E:("prototype"in ea&&ea.prototype.render?t.__c=U=new ea(X,et):(t.__c=U=new b(X,et),U.constructor=ea,U.render=z),ee&&ee.sub(U),U.props=X,U.state||(U.state={}),U.context=et,U.__n=o,J=U.__d=!0,U.__h=[],U._sb=[]),null==U.__s&&(U.__s=U.state),null!=ea.getDerivedStateFromProps&&(U.__s==U.state&&(U.__s=v({},U.__s)),v(U.__s,ea.getDerivedStateFromProps(X,U.__s))),Q=U.props,G=U.state,U.__v=t,J)null==ea.getDerivedStateFromProps&&null!=U.componentWillMount&&U.componentWillMount(),null!=U.componentDidMount&&U.__h.push(U.componentDidMount);else{if(null==ea.getDerivedStateFromProps&&X!==Q&&null!=U.componentWillReceiveProps&&U.componentWillReceiveProps(X,et),!U.__e&&(null!=U.shouldComponentUpdate&&!1===U.shouldComponentUpdate(X,U.__s,et)||t.__v===n.__v)){for(t.__v!==n.__v&&(U.props=X,U.state=U.__s,U.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEac
vendor: 3,469 bytes, line 19
19h(function(e){e&&(e.__=t)}),er=0;er<U._sb.length;er++)U.__h.push(U._sb[er]);U._sb=[],U.__h.length&&c.push(U);break e}null!=U.componentWillUpdate&&U.componentWillUpdate(X,U.__s,et),null!=U.componentDidUpdate&&U.__h.push(function(){U.componentDidUpdate(Q,G,Y)})}if(U.context=et,U.props=X,U.__P=e,U.__e=!1,en=s.__r,ei=0,"prototype"in ea&&ea.prototype.render){for(U.state=U.__s,U.__d=!1,en&&en(t),W=U.render(U.props,U.state,U.context),es=0;es<U._sb.length;es++)U.__h.push(U._sb[es]);U._sb=[]}else do U.__d=!1,en&&en(t),W=U.render(U.props,U.state,U.context),U.state=U.__s;while(U.__d&&++ei<25);U.state=U.__s,null!=U.getChildContext&&(o=v(v({},o),U.getChildContext())),J||null==U.getSnapshotBeforeUpdate||(Y=U.getSnapshotBeforeUpdate(Q,G)),C(e,Z(eo=null!=W&&W.type===g&&null==W.key?W.props.children:W)?eo:[eo],t,n,o,a,u,c,l,R,I),U.base=t.__e,t.__u&=-161,U.__h.length&&c.push(U),K&&(U.__E=U.__=null)}catch(e){t.__v=null,R||null!=u?(t.__e=l,t.__u|=R?160:32,u[u.indexOf(l)]=null):(t.__e=n.__e,t.__k=n.__k),s.__e(e,t,n)}else null==u&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,s,o,a,u,c,l){var R,I,W,U,J,Q,G,Y=n.props,K=t.props,X=t.type;if("svg"===X&&(o=!0),null!=a){for(R=0;R<a.length;R++)if((J=a[R])&&"setAttribute"in J==!!X&&(X?J.localName===X:3===J.nodeType)){e=J,a[R]=null;break}}if(null==e){if(null===X)return document.createTextNode(K);e=o?document.createElementNS("http://www.w3.org/2000/svg",X):document.createElement(X,K.is&&K),a=null,c=!1}if(null===X)Y===K||c&&e.data===K||(e.data=K);else{if(a=a&&i.call(e.childNodes),Y=n.props||M,!c&&null!=a)for(Y={},R=0;R<e.attributes.length;R++)Y[(J=e.attributes[R]).name]=J.value;for(R in Y)J=Y[R],"children"==R||("dangerouslySetInnerHTML"==R?W=J:"key"===R||R in K||T(e,R,null,J,o));for(R in K)J=K[R],"children"==R?U=J:"dangerouslySetInnerHTML"==R?I=J:"value"==R?Q=J:"checked"==R?G=J:"key"===R||c&&"function"!=typeof J||Y[R]===J||T(e,R,J,Y[R],o);if(I)c||W&&(I.__html===W.__html||I.__html===e.innerHTML)||(e.innerHTML=I.__html),t.__k=[];else if(W&&(e.innerHTML=""),C(e,Z(U)?U:[U],t,n,s,o&&"foreignObject"!==X,a,u,a?a[0]:n.__k&&m(n,0),c,l),null!=a)for(R=a.length;R--;)null!=a[R]&&p(a[R]);c||(R="value",void 0===Q||Q===e[R]&&("progress"!==X||Q)&&("option"!==X||Q===Y[R])||T(e,R,Q,Y[R],!1),R="checked",void 0!==G&&G!==e[R]&&T(e,R,G,Y[R],!1))}return e}(n.__e,t,n,o,a,u,c,R,I);(W=s.diffed)&&W(t)}function L(e,t,n){t.__d=void 0;for(var i=0;i<n.length;i++)O(n[i],n[++i],n[++i]);s.__c&&s.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){s.__e(e,t.__v)}})}function O(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){s.__e(e,n)}}function j(e,t,n){var i,o;if(s.unmount&&s.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||O(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){s.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&j(i[o],t,n||"function"!=typeof e.type);n||null==e.__e||p(e.__e),e.__=e.__e=e.__d=void 0}function z(e,t,n){return this.constructor(e,n)}function N(e,t,n){var o,a,u,c;s.__&&s.__(e,t),a=(o="function"==typeof n)?null:n&&n.__k||t.__k,u=[],c=[],F(t,e=(!o&&n||t).__k=y(g,null,[e]),a||M,M,void 0!==t.ownerSVGElement,!o&&n?[n]:a?null:t.firstChild?i.call(t.childNodes):null,u,!o&&n?n:a?a.__e:t.firstChild,o,c),L(u,e,c)}function q(e,t){N(e,t,q)}function B(e,t,n){var s,o,a,u,c=v({},e.props);for(a in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==a?s=t[a]:"ref"==a?o=t[a
vendor: 1,417 bytes, line 19
19]:c[a]=void 0===t[a]&&void 0!==u?u[a]:t[a];return arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),d(e.type,c,s||e.key,o||e.ref,null)}function E(e,t){var n={__c:t="__cC"+I++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,k(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=W.slice,s={__e:function(e,t,n,i){for(var s,o,a;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&null!=o.getDerivedStateFromError&&(s.setState(o.getDerivedStateFromError(e)),a=s.__d),null!=s.componentDidCatch&&(s.componentDidCatch(e,i||{}),a=s.__d),a)return s.__E=s}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&null==e.constructor},b.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=v({},this.state),"function"==typeof e&&(e=e(v({},n),this.props)),e&&v(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},b.prototype.render=g,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Prom
19ise.resolve()):setTimeout,R=function(e,t){return e.__v.__b-t.__v.__b},x.__r=0,I=0},30396:function(e,t,n){"use strict";n.r(t),n.d(t,{useCallback:function(){return x},useContext:function(){return P},useDebugValue:function(){return V},useEffect:function(){return _},useErrorBoundary:function(){return b},useId:function(){return g},useImperativeHandle:function(){return T},useLayoutEffect:function(){return A},useMemo:function(){return q},useReducer:function(){return y},useRef:function(){return F},useState:function(){return p}});var i,s,o,a,u=n(6400),c=0,l=[],R=[],I=u.options,M=I.__b,W=I.__r,U=I.diffed,Z=I.__c,J=I.unmount,Q=I.__;function h(e,t){I.__h&&I.__h(s,e,c||t),c=0;var n=s.__H||(s.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:R}),n.__[e]}function p(e){return c=1,y(D,e)}function y(e,t,n){var o=h(i++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):D(void 0,t),function(e){var t=o.__N?o.__N[0]:o.__[0],n=o.t(t,e);t!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=s,!s.u)){var f=function(e,t,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var s=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),!(!s&&o.__c.props===e)&&(!a||a.call(this,e,t,n))};s.u=!0;var a=s.shouldComponentUpdate,u=s.componentWillUpdate;s.componentWillUpdate=function(e,t,n){if(this.__e){var i=a;a=void 0,f(e,t,n),a=i}u&&u.call(this,e,t,n)},s.shouldComponentUpdate=f}return o.__N||o.__}function _(e,t){var n=h(i++,3);!I.__s&&C(n.__H,t)&&(n.__=e,n.i=t,s.__H.__h.push(n))}function A(e,t){var n=h(i++,4);!I.__s&&C(n.__H,t)&&(n.__=e,n.i=t,s.__h.push(n))}function F(e){return c=5,q(function(){return{current:e}},[])}function T(e,t,n){c=6,A(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}function q(e,t){var n=h(i++,7);return C(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function x(e,t){return c=8,q(function(){return e},t)}function P(e){var t=s.context[e.__c],n=h(i++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(s)),t.props.value):e.__}function V(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function b(e){var t=h(i++,10),n=p();return t.__=e,s.componentDidCatch||(s.componentDidCatch=function(e,i){t.__&&t.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function g(){var e=h(i++,11);if(!e.__){for(var t=s.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function j(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(z),e.__H.__h.forEach(B),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}I.__b=function(e){s=null,M&&M(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Q&&Q(e,t)},I.__r=function(e){W&&W(e),i=0;var t=(s=e.__c).__H;t&&(o===s?(t.__h=[],s.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=R,e.__N=e.i=void 0})):(t.__h.forEach(z),t.__h.forEach(B),t.__h=[],i=0)),o=s},I.diffed=function(e){U&&U(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&a===I.requestAnimationFrame||((a=I.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),G&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);G&&(t=requestAnimationFrame(r))})(j)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==R&&(e.__=e.__V),e.i=void 0,e.__V=R})),o=s=null},I.__c=function(e,t){t.some(function(e){try{e.__h.forEach(z),e.__h=e.__h.filter(function(e){return!e.__||B(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],I.__e(n,e.__v)}}),Z&&Z(e,t)},I.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{z(e)}catch(e){t=e}}),n.__H=void 0,t&&I.__e(t,n.__v))};var G="function"==typeof requestAnimationFrame;function z(e){var t=s,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),s=t}function B(e){var t=s;e.__c=e.__(),s=t}function C(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function D(e,t){return"function"==typeof t?t(e):t}},55798:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}},80129:function(e,t,n){"use strict";var i=n(58261),s=n(55235),o=n(55798);e.exports={formats:o,parse:s,stringify:i}},55235:function(e,t,n){"use strict";var i=n(12769),s=Object.prototype.hasOwnProperty,o=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},parseArrayValue=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},parseValues=function(e,t){var n={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,l=u.split(t.delimiter,c),R=-1,I=t.charset;if(t.charsetSentinel)for(M=0;M<l.length;++M)0===l[M].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[M]?I="utf-8":"utf8=%26%2310003%3B"===l[M]&&(I="iso-8859-1"),R=M,M=l.length);for(M=0;M<l.length;++M)if(M!==R){var M,W,U,Z=l[M],J=Z.indexOf("]="),Q=-1===J?Z.indexOf("="):J+1;-1===Q?(W=t.decoder(Z,a.decoder,I,"key"),U=t.strictNullHandling?null:""):(W=t.decoder(Z.slice(0,Q),a.decoder,I,"key"),U=i.maybeMap(parseArrayValue(Z.slice(Q+1),t),function(e){return t.decoder(e,a.decoder,I,"value")})),U&&t.interpretNumericEntities&&"iso-8859-1"===I&&(U=U.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),Z.indexOf("[]=")>-1&&(U=o(U)?[U]:U);var G=s.call(n,W);G&&"combine"===t.duplicates?n[W]=i.combine(n[W],U):G&&"last"!==t.duplicates||(n[W]=U)}return n},parseObject=function(e,t,n,i){for(var s=i?t:parseArrayValue(t,n),o=e.length-1;o>=0;--o){var a,u=e[o];if("[]"===u&&n.parseArrays)a=n.allowEmptyArrays&&""===s?[]:[].concat(s);else{a=n.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,l=n.decodeDotInKeys?c.replace(/%2E/g,"."):c,R=parseInt(l,10);n.parseArrays||""!==l?!isNaN(R)&&u!==l&&String(R)===l&&R>
19=0&&n.parseArrays&&R<=n.arrayLimit?(a=[])[R]=s:"__proto__"!==l&&(a[l]=s):a={0:s}}s=a}return s},parseKeys=function(e,t,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=u?o.slice(0,u.index):o,l=[];if(c){if(!n.plainObjects&&s.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var R=0;n.depth>0&&null!==(u=a.exec(o))&&R<n.depth;){if(R+=1,!n.plainObjects&&s.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+o.slice(u.index)+"]"),parseObject(l,t,n,i)}},normalizeParseOptions=function(e){if(!e)return a;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset,n=void 0===e.duplicates?a.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||a.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=normalizeParseOptions(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof e?parseValues(e,n):e,o=n.plainObjects?Object.create(null):{},a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=parseKeys(c,s[c],n,"string"==typeof e);
19o=i.merge(o,l,n)}return!0===n.allowSparse?o:i.compact(o)}},58261:function(e,t,n){"use strict";var i=n(37478),s=n(12769),o=n(55798),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,pushToArray=function(e,t){l.apply(e,c(t)?t:[t])},R=Date.prototype.toISOString,I=o.default,M={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:s.encode,encodeValuesOnly:!1,format:I,formatter:o.formatters[I],indices:!1,serializeDate:function(e){return R.call(e)},skipNulls:!1,strictNullHandling:!1},W={},stringify=function stringify(e,t,n,o,a,u,l,R,I,U,Z,J,Q,G,Y,K,X,ee){for(var et,er,en=e,ei=ee,es=0,eo=!1;void 0!==(ei=ei.get(W))&&!eo;){var ea=ei.get(e);if(es+=1,void 0!==ea){if(ea===es)throw RangeError("Cyclic object value");eo=!0}void 0===ei.get(W)&&(es=0)}if("function"==typeof U?en=U(t,en):en instanceof Date?en=Q(en):"comma"===n&&c(en)&&(en=s.maybeMap(en,function(e){return e instanceof Date?Q(e):e})),null===en){if(u)return I&&!K?I(t,M.encoder,X,"key",G):t;en=""}if("string"==typeof(et=en)||"number"==typeof et||"boolean"==typeof et||"symbol"==typeof et||"bigint"==typeof et||s.isBuffer(en))return I?[Y(K?t:I(t,M.encoder,X,"key",G))+"="+Y(I(en,M.encoder,X,"value",G))]:[Y(t)+"="+Y(String(en))];var eu=[];if(void 0===en)return eu;if("comma"===n&&c(en))K&&I&&(en=s.maybeMap(en,I)),er=[{value:en.length>0?en.join(",")||null:void 0}];else if(c(U))er=U;else{var ec=Object.keys(en);er=Z?ec.sort(Z):ec}var el=R?t.replace(/\./g,"%2E"):t,eh=o&&c(en)&&1===en.length?el+"[]":el;if(a&&c(en)&&0===en.length)return eh+"[]";for(var ed=0;ed<er.length;++ed){var ef=er[ed],ep="object"==typeof ef&&void 0!==ef.value?ef.value:en[ef];if(!l||null!==ep){var eb=J&&R?ef.replace(/\./g,"%2E"):ef,ey=c(en)?"function"==typeof n?n(eh,eb):eh:eh+(J?"."+eb:"["+eb+"]");ee.set(e,es);var eg=i();eg.set(W,ee),pushToArray(eu,stringify(ep,ey,n,o,a,u,l,R,"comma"===n&&K&&c(en)?null:I,U,Z,J,Q,G,Y,K,X,eg))}}return eu},normalizeStringifyOptions=function(e){if(!e)return M;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,n=e.charset||M.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=o.default;if(void 0!==e.format){if(!a.call(o.formatters,e.format))throw TypeError("Unknown format option provided.");i=e.format}var s=o.formatters[i],l=M.filter;if(("function"==typeof e.filter||c(e.filter))&&(l=e.filter),t=e.arrayFormat in u?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":M.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var R=void 0===e.allowDots?!0===e.encodeDotInKeys||M.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:M.addQueryPrefix,allowDots:R,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:M.allowEmptyArrays,arrayFormat:t,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:M.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?M.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:M.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:M.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:M.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:M.encodeValuesOnly,filter:l,format:i,formatter:s,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:M.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:M.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:
19M.strictNullHandling}};e.exports=function(e,t){var n,s=e,o=normalizeStringifyOptions(t);"function"==typeof o.filter?s=(0,o.filter)("",s):c(o.filter)&&(n=o.filter);var a=[];if("object"!=typeof s||null===s)return"";var l=u[o.arrayFormat],R="comma"===l&&o.commaRoundTrip;n||(n=Object.keys(s)),o.sort&&n.sort(o.sort);for(var I=i(),M=0;M<n.length;++M){var W=n[M];o.skipNulls&&null===s[W]||pushToArray(a,stringify(s[W],W,l,R,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,I))}var U=a.join(o.delimiter),Z=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?Z+="utf8=%26%2310003%3B&":Z+="utf8=%E2%9C%93&"),U.length>0?Z+U:""}},12769:function(e,t,n){"use strict";var i=n(55798),s=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),compactQueue=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var i=[],s=0;s<n.length;++s)void 0!==n[s]&&i.push(n[s]);t.obj[t.prop]=i}}},arrayToObject=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n};e.exports={arrayToObject:arrayToObject,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],i=0;i<t.length;++i)for(var s=t[i],o=s.obj[s.prop],a=Object.keys(o),u=0;u<a.length;++u){var c=a[u],l=o[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:o,prop:c}),n.push(l))}return compactQueue(t),e},decode:function(e,t,n){var i=e.replace(/\+/g," ");if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,t,n,s,o){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",l=0;l<u.length;++l){var R=u.charCodeAt(l);if(45===R||46===R||95===R||126===R||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||o===i.RFC1738&&(40===R||41===R)){c+=u.charAt(l);continue}if(R<128){c+=a[R];continue}if(R<2048){c+=a[192|R>>6]+a[128|63&R];continue}if(R<55296||R>=57344){c+=a[224|R>>12]+a[128|R>>6&63]+a[128|63&R];continue}l+=1,c+=a[240|(R=65536+((1023&R)<<10|1023&u.charCodeAt(l)))>>18]+a[128|R>>12&63]+a[128|R>>6&63]+a[128|63&R]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(t(e[i]));return n}return t(e)},merge:function merge(e,t,n){if(!t)return e;if("object"!=typeof t){if(o(e))e.push(t);else{if(!e||"object"!=typeof e)return[e,t];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,t))&&(e[t]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(t);var i=e;return(o(e)&&!o(t)&&(i=arrayToObject(e,n)),o(e)&&o(t))?(t.forEach(function(t,i){if(s.call(e,i)){var o=e[i];o&&"object"==typeof o&&t&&"object"==typeof t?e[i]=merge(o,t,n):e.push(t)}else e[i]=t}),e):Object.keys(t).reduce(function(e,i){var o=t[i];return s.call(e,i)?e[i]=merge(e[i],o,n):e[i]=o,e},i)}}},94281:function(e){"use strict";var t={};function createErrorType(e,n,i){i||(i=Error);var s=function(e){function NodeError(t,i,s){return e.call(this,"string"==typeof n?n:n(t,i,s))||this}return NodeError.prototype=Object.create(e.prototype),NodeError.prototype.constructor=NodeError,NodeError.__proto__=e,NodeError}(i);s.prototype.name=i.name,s.prototype.code=e,t[e]=s}function oneOf(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var n=e.length;return(e=e.map(function(e){return String(e)}),n>2)?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}createErrorType("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invali
19d for option "'+e+'"'},TypeError),createErrorType("ERR_INVALID_ARG_TYPE",function(e,t,n){if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(c="must not be",t=t.replace(/^not /,"")):c="must be",o=" argument",(void 0===a||a>e.length)&&(a=e.length),e.substring(a-o.length,a)===o)l="The ".concat(e," ").concat(c," ").concat(oneOf(t,"type"));else{var i,s,o,a,u,c,l,R=("number"!=typeof u&&(u=0),u+1>e.length||-1===e.indexOf(".",u))?"argument":"property";l='The "'.concat(e,'" ').concat(R," ").concat(c," ").concat(oneOf(t,"type"))}return l+". Received type ".concat(typeof n)},TypeError),createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close"),createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end"),createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},56753:function(e,t,n){"use strict";var i=n(83454),s=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=Duplex;var o=n(79481),a=n(64229);n(35717)(Duplex,o);for(var u=s(a.prototype),c=0;c<u.length;c++){var l=u[c];Duplex.prototype[l]||(Duplex.prototype[l]=a.prototype[l])}function Duplex(e){if(!(this instanceof Duplex))return new Duplex(e);o.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",onend)))}function onend(){this._writableState.ended||i.nextTick(onEndNT,this)}function onEndNT(e){e.end()}Object.defineProperty(Duplex.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Duplex.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Duplex.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Duplex.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},82725:function(e,t,n){"use strict";e.exports=PassThrough;var i=n(74605);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);i.call(this,e)}n(35717)(PassThrough,i),PassThrough.prototype._transform=function(e,t,n){n(null,e)}},79481:function(e,t,n){"use strict";var i,s,o,a,u,c=n(83454);e.exports=Readable,Readable.ReadableState=ReadableState,n(17187).EventEmitter;var EElistenerCount=function(e,t){return e.listeners(t).length},l=n(22503),R=n(48764).Buffer,I=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},M=n(94616);s=M&&M.debuglog?M.debuglog("stream"):function(){};var W=n(57327),U=n(61195),Z=n(82457).getHighWaterMark,J=n(94281).q,Q=J.ERR_INVALID_ARG_TYPE,G=J.ERR_STREAM_PUSH_AFTER_EOF,Y=J.ERR_METHOD_NOT_IMPLEMENTED,K=J.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(35717)(Readable,l);var X=U.errorOrDestroy,ee=["error","close","destroy","pause","resume"];function ReadableState(e,t,s){i=i||n(56753),e=e||{},"boolean"!=typeof s&&(s=t instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Z(this,e,"readableHighWaterMark",s),this.buffer=new W,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=n(32553).StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function Readable(e){if(i=i||n(56753),!(this instanceof Readable))return new Readable(e);var t=this instanceof i;this._readableState=new ReadableState(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function readableAddChunk(e,t,n,i,o){s("readableAddChunk",t);var a,u,c,l,M,W=e._readableState;if(null===t)W.reading=!1,function(e,t){if(s("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?emitReadable(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,emitReadable_(e)))}}(e,W);else{if(o||(a=W,u=t,R.isBuffer(u)||u instanceof I||"string"==typeof u||void 0===u||a.objectMode||(c=new Q("chunk",["string","Buffer","Uint8Array"],u)),M=c),M)X(e,M);else if(W.objectMode||t&&t.length>0){if("string"==typeof t||W.objectMode||Object.getPrototypeOf(t)===R.prototype||(l=t,t=R.from(l)),i)W.endEmitted?X(e,new K):addChunk(e,W,t,!0);else if(W.ended)X(e,new G);else{if(W.destroyed)return!1;W.reading=!1,W.decoder&&!n?(t=W.decoder.write(t),W.objectMode||0!==t.length?addChunk(e,W,t,!1):maybeReadMore(e,W)):addChunk(e,W,t,!1)}}else i||(W.reading=!1,maybeReadMore(e,W))}return!W.ended&&(W.length<W.highWaterMark||0===W.length)}function addChunk(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&emitReadable(e)),maybeReadMore(e,t)}function howMuchToRead(e,t){if(e<=0||0===t.length&&t.ended)return 0;if(t.objectMode)return 1;if(e!=e)return t.flowing&&t.length?t.buffer.head.data.length:t.length;if(e>t.highWaterMark){var n;t.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function emitReadable(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,c.nextTick(emitReadable_,e))}function emitReadable_(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,flow(e)}function maybeReadMore(e,t){t.readingMore||(t.readingMore=!0,c.nextTick(maybeReadMore_,e,t))}function maybeReadMore_(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(s("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function nReadingNextTick(e){s("readable nexttick read 0"),e.read(0)}function resume_(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),flow(e),t.flowing&&!t.reading&&e.read(0)}function flow(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function fromList(e,t){var n;return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n)}function endReadable(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,c.nextTick(endReadableNT,t,e))}function endReadableNT(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function indexOf(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return -1}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),Readable.prototype.destroy=U.destroy,Readable.prototype._undestroy=U.undestroy,Readable.prototype._destroy=function(e,t){t(e)},Readable.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=R.from(e,t),t=""),n=!0),readableAddChunk(this,e,t,!1,n)},Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,!0,!1)},Readable.prototype.isPaused=function(){return!1===this._readableState.flowing},Readable.prototype.setEncoding=function(e){o||(o=n(32553).StringDecoder);var t=new o(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
19for(var i=this._readableState.buffer.head,s="";null!==i;)s+=t.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==s&&this._readableState.buffer.push(s),this._readableState.length=s.length,this},Readable.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t,n=this._readableState,i=e;if(0!==e&&(n.emittedReadable=!1),0===e&&n.needReadable&&((0!==n.highWaterMark?n.length>=n.highWaterMark:n.length>0)||n.ended))return s("read: emitReadable",n.length,n.ended),0===n.length&&n.ended?endReadable(this):emitReadable(this),null;if(0===(e=howMuchToRead(e,n))&&n.ended)return 0===n.length&&endReadable(this),null;var o=n.needReadable;return s("need readable",o),(0===n.length||n.length-e<n.highWaterMark)&&s("length less than watermark",o=!0),n.ended||n.reading?s("reading or ended",o=!1):o&&(s("do read"),n.reading=!0,n.sync=!0,0===n.length&&(n.needReadable=!0),this._read(n.highWaterMark),n.sync=!1,n.reading||(e=howMuchToRead(i,n))),null===(t=e>0?fromList(e,n):null)?(n.needReadable=n.length<=n.highWaterMark,e=0):(n.length-=e,n.awaitDrain=0),0===n.length&&(n.ended||(n.needReadable=!0),i!==e&&n.ended&&endReadable(this)),null!==t&&this.emit("data",t),t},Readable.prototype._read=function(e){X(this,new Y("_read()"))},Readable.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,s("pipe count=%d opts=%j",i.pipesCount,t);var o=t&&!1===t.end||e===c.stdout||e===c.stderr?unpipe:onend;function onend(){s("onend"),e.end()}i.endEmitted?c.nextTick(o):n.once("end",o),e.on("unpipe",function onunpipe(t,o){s("onunpipe"),t===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,s("cleanup"),e.removeListener("close",onclose),e.removeListener("finish",onfinish),e.removeListener("drain",ondrain),e.removeListener("error",onerror),e.removeListener("unpipe",onunpipe),n.removeListener("end",onend),n.removeListener("end",unpipe),n.removeListener("data",ondata),a=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&ondrain())});var ondrain=function(){var e=n._readableState;s("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&EElistenerCount(n,"data")&&(e.flowing=!0,flow(n))};e.on("drain",ondrain);var a=!1;function ondata(t){s("ondata");var o=e.write(t);s("dest.write",o),!1===o&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>
vendor: 9,361 bytes, line 19
191&&-1!==indexOf(i.pipes,e))&&!a&&(s("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function onerror(t){s("onerror",t),unpipe(),e.removeListener("error",onerror),0===EElistenerCount(e,"error")&&X(e,t)}function onclose(){e.removeListener("finish",onfinish),unpipe()}function onfinish(){s("onfinish"),e.removeListener("close",onclose),unpipe()}function unpipe(){s("unpipe"),n.unpipe(e)}return n.on("data",ondata),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",onerror),e.once("close",onclose),e.once("finish",onfinish),e.emit("pipe",n),i.flowing||(s("pipe resume"),n.resume()),e},Readable.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<s;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=indexOf(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},Readable.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,s("on readable",i.length,i.reading),i.length?emitReadable(this):i.reading||c.nextTick(nReadingNextTick,this)),n},Readable.prototype.addListener=Readable.prototype.on,Readable.prototype.removeListener=function(e,t){var n=l.prototype.removeListener.call(this,e,t);return"readable"===e&&c.nextTick(updateReadableListening,this),n},Readable.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&c.nextTick(updateReadableListening,this),t},Readable.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,c.nextTick(resume_,this,e))),e.paused=!1,this},Readable.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Readable.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var o in e.on("end",function(){if(s("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){s("wrapped data"),n.decoder&&(o=n.decoder.write(o)),(!n.objectMode||null!=o)&&(n.objectMode||o&&o.length)&&(t.push(o)||(i=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var a=0;a<ee.length;a++)e.on(ee[a],this.emit.bind(this,ee[a]));return this._read=function(t){s("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(Readable.prototype[Symbol.asyncIterator]=function(){return void 0===a&&(a=n(21086)),a(this)}),Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Readable.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Readable.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),Readable._fromList=fromList,Object.defineProperty(Readable.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(Readable.from=function(e,t){return void 0===u&&(u=n(15167)),u(Readable,e,t)})},74605:function(e,t,n){"use strict";e.exports=Transform;var i=n(94281).q,s=i.ERR_METHOD_NOT_IMPLEMENTED,o=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n(56753);function afterTransform(e,t){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),i(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function Transform(e){if(!(this instanceof Transform))return new Transform(e);c.call(this,e),this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",prefinish)}function prefinish(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?done(this,null,null):this._flush(function(t,n){done(e,t,n)})}function done(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new u;if(e._transformState.transforming)throw new a;return e.push(null)}n(35717)(Transform,c),Transform.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},Transform.prototype._transform=function(e,t,n){n(new s("_transform()"))},Transform.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}},Transform.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},Transform.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},64229:function(e,t,n){"use strict";var i,s,o=n(83454);function CorkedRequest(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var i=e.entry;for(e.entry=null;i;){var s=i.callback;t.pendingcb--,s(void 0),i=i.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=Writable,Writable.WritableState=WritableState;var a={deprecate:n(94927)},u=n(22503),c=n(48764).Buffer,l=(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},R=n(61195),I=n(82457).getHighWaterMark,M=n(94281).q,W=M.ERR_INVALID_ARG_TYPE,U=M.ERR_METHOD_NOT_IMPLEMENTED,Z=M.ERR_MULTIPLE_CALLBACK,J=M.ERR_STREAM_CANNOT_PIPE,Q=M.ERR_STREAM_DESTROYED,G=M.ERR_STREAM_NULL_VALUES,Y=M.ERR_STREAM_WRITE_AFTER_END,K=M.ERR_UNKNOWN_ENCODING,X=R.errorOrDestroy;function nop(){}function WritableState(e,t,s){i=i||n(56753),e=e||{},"boolean"!=typeof s&&(s=t instanceof i),this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=I(this,e,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,i=n.sync,s=n.writecb;if("function"!=typeof s)throw new Z;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,t)--n.pendingcb,i?(o.nextTick(s,t),o.nextTick(finishMaybe,e,n),e._writableState.errorEmitted=!0,X(e,t)):(s(t),e._writableState.errorEmitted=!0,X(e,t),finishMaybe(e,n));else{var a=needFinish(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||clearBuffer(e,n),i?o.nextTick(afterWrite,e,n,a,s):afterWrite(e,n,a,s)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new CorkedRequest(this)}function Writable(e){var t=this instanceof(i=i||n(56753));if(!t&&!s.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function doWrite(e,t,n,i,s,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Q("write")):n?e._writev(s,t.onwrite):e._write(s,o,t.onwrite),t.sync=!1}function afterWrite(e,t,n,i){n||0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain")),t.pendingcb--,i(),finishMaybe(e,t)}function clearBuffer(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var i=Array(t.bufferedRequestCount),s=t.corkedRequestsFree;s.entry=n;for(var o=0,a=!0;n;)i[o]=n,n.isBuf||(a=!1),n=n.next,o+=1;i.allBuffers=a,doWrite(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,
19s.next=null):t.corkedRequestsFree=new CorkedRequest(t),t.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,l=n.callback,R=t.objectMode?1:u.length;if(doWrite(e,t,!1,R,u,c,l),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function needFinish(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function callFinal(e,t){e._final(function(n){t.pendingcb--,n&&X(e,n),t.prefinished=!0,e.emit("prefinish"),finishMaybe(e,t)})}function finishMaybe(e,t){var n=needFinish(t);if(n&&(t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(callFinal,e,t))),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}n(35717)(Writable,u),WritableState.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===Writable&&e&&e._writableState instanceof WritableState}})):s=function(e){return e instanceof this},Writable.prototype.pipe=function(){X(this,new J)},Writable.prototype.write=function(e,t,n){var i,s,a,u,R,I,M,U=this._writableState,Z=!1,J=!U.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return J&&!c.isBuffer(e)&&(s=e,e=c.from(s)),("function"==typeof t&&(n=t,t=null),J?t="buffer":t||(t=U.defaultEncoding),"function"!=typeof n&&(n=nop),U.ending)?(a=n,X(this,u=new Y),o.nextTick(a,u)):(J||(R=e,I=n,null===R?M=new G:"string"==typeof R||U.objectMode||(M=new W("chunk",["string","Buffer"],R)),!M||(X(this,M),o.nextTick(I,M),0)))&&(U.pendingcb++,Z=function(e,t,n,i,s,o){if(!n){var a,u,l=(a=i,u=s,t.objectMode||!1===t.decodeStrings||"string"!=typeof a||(a=c.from(a,u)),a);i!==l&&(n=!0,s="buffer",i=l)}var R=t.objectMode?1:i.length;t.length+=R;var I=t.length<t.highWaterMark;if(I||(t.needDrain=!0),t.writing||t.corked){var M=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:s,isBuf:n,callback:o,next:null},M?M.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else doWrite(e,t,!1,R,i,s,o);return I}(this,U,J,e,t,n)),Z},Writable.prototype.cork=function(){this._writableState.corked++},Writable.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||clearBuffer(this,e))},Writable.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new K(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Writable.prototype._write=function(e,t,n){n(new U("_write()"))},Writable.prototype._writev=null,Writable.prototype.end=function(e,t,n){var i,s=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),s.corked&&(s.corked=1,this.uncork()),s.ending||(i=n,s.ending=!0,finishMaybe(this,s),i&&(s.finished?o.nextTick(i):this.once("finish",i)),s.ended=!0,this.writable=!1),this},Object.defineProperty(Writable.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Writable.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),Writable.prototype.destroy=R.destroy,Writable.prototype._undestroy=R.undestroy,Writable.prototype._destroy=function(e,t){t(e)}},21086:function(e,t,n){"use strict";var i,s=n(83454);function _defineProperty(e,t,n){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(8610),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),R=Symbol("lastPromise"),I=Symbol("handlePromise"),M=Symbol("stream");function createIterResult(e,t){return{value:e,done:t}}function readAndResolve(e){var t=e[a];
19if(null!==t){var n=e[M].read();null!==n&&(e[R]=null,e[a]=null,e[u]=null,t(createIterResult(n,!1)))}}function onReadable(e){s.nextTick(readAndResolve,e)}var W=Object.getPrototypeOf(function(){}),U=Object.setPrototypeOf((_defineProperty(i={get stream(){return this[M]},next:function(){var e,t,n=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(createIterResult(void 0,!0));if(this[M].destroyed)return new Promise(function(e,t){s.nextTick(function(){n[c]?t(n[c]):e(createIterResult(void 0,!0))})});var o=this[R];if(o)t=new Promise((e=this,function(t,n){o.then(function(){if(e[l]){t(createIterResult(void 0,!0));return}e[I](t,n)},n)}));else{var a=this[M].read();if(null!==a)return Promise.resolve(createIterResult(a,!1));t=new Promise(this[I])}return this[R]=t,t}},Symbol.asyncIterator,function(){return this}),_defineProperty(i,"return",function(){var e=this;return new Promise(function(t,n){e[M].destroy(null,function(e){if(e){n(e);return}t(createIterResult(void 0,!0))})})}),i),W);e.exports=function(e){var t,n=Object.create(U,(_defineProperty(t={},M,{value:e,writable:!0}),_defineProperty(t,a,{value:null,writable:!0}),_defineProperty(t,u,{value:null,writable:!0}),_defineProperty(t,c,{value:null,writable:!0}),_defineProperty(t,l,{value:e._readableState.endEmitted,writable:!0}),_defineProperty(t,I,{value:function(e,t){var i=n[M].read();i?(n[R]=null,n[a]=null,n[u]=null,e(createIterResult(i,!1))):(n[a]=e,n[u]=t)},writable:!0}),t));return n[R]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];null!==t&&(n[R]=null,n[a]=null,n[u]=null,t(e)),n[c]=e;return}var i=n[a];null!==i&&(n[R]=null,n[a]=null,n[u]=null,i(createIterResult(void 0,!0))),n[l]=!0}),e.on("readable",onReadable.bind(null,n)),n}},57327:function(e,t,n){"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){var i,s;i=t,s=n[t],(i=_toPropertyKey(i))in e?Object.defineProperty(e,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[i]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _toPropertyKey(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var i=n(48764).Buffer,s=n(52361).inspect,o=s&&s.custom||"inspect";e.exports=function(){var e,t;function BufferList(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,BufferList),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return i.alloc(0);for(var t,n,s=i.allocUnsafe(e>>>0),o=this.head,a=0;o;)t=o.data,n=a,i.prototype.copy.call(t,s,n),a+=o.data.length,o=o.next;return s}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var s=t.data,o=e>s.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),0==(e-=o)){o===s.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=s.slice(o));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=i.allocUnsafe(e),n=this.head,s=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,a),0==(e-=a)){a===o.length?(++s,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++s}return this.length-=s,t}},{key:o,value:function(e,t){return s(this,_objectSpread(_objectSpread({},t),{},{depth:0,customInspect:!1}))}}],_defineProperties(BufferList.prototype,e),t&&_defineProperties(BufferList,t),Object.defineProperty(BufferList,"prototype",{writable:!1}),BufferList}()},61195:function(e,t,n){"use strict";var i=n(83454);function emitErrorAndCloseNT(e,t){emitErrorNT(e,t),emitCloseNT(e)}function emitCloseNT(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return s||o?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(emitErrorNT,this,e)):i.nextTick(emitErrorNT,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?i.nextTick(emitCloseNT,n):(n._writableState.errorEmitted=!0,i.nextTick(emitErrorAndCloseNT,n,e)):i.nextTick(emitErrorAndCloseNT,n,e):t?(i.nextTick(emitCloseNT,n),t(e)):i.nextTick(emitCloseNT,n)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},8610:function(e,t,n){"use strict";
19var i=n(94281).q.ERR_STREAM_PREMATURE_CLOSE;function noop(){}e.exports=function eos(e,t,n){if("function"==typeof t)return eos(e,null,t);t||(t={}),s=n||noop,o=!1,n=function(){if(!o){o=!0;for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];s.apply(this,t)}};var s,o,a=t.readable||!1!==t.readable&&e.readable,u=t.writable||!1!==t.writable&&e.writable,onlegacyfinish=function(){e.writable||onfinish()},c=e._writableState&&e._writableState.finished,onfinish=function(){u=!1,c=!0,a||n.call(e)},l=e._readableState&&e._readableState.endEmitted,onend=function(){a=!1,l=!0,u||n.call(e)},onerror=function(t){n.call(e,t)},onclose=function(){var t;return a&&!l?(e._readableState&&e._readableState.ended||(t=new i),n.call(e,t)):u&&!c?(e._writableState&&e._writableState.ended||(t=new i),n.call(e,t)):void 0},onrequest=function(){e.req.on("finish",onfinish)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",onfinish),e.on("abort",onclose),e.req?onrequest():e.on("request",onrequest)):u&&!e._writableState&&(e.on("end",onlegacyfinish),e.on("close",onlegacyfinish)),e.on("end",onend),e.on("finish",onfinish),!1!==t.error&&e.on("error",onerror),e.on("close",onclose),function(){e.removeListener("complete",onfinish),e.removeListener("abort",onclose),e.removeListener("request",onrequest),e.req&&e.req.removeListener("finish",onfinish),e.removeListener("end",onlegacyfinish),e.removeListener("close",onlegacyfinish),e.removeListener("finish",onfinish),e.removeListener("end",onend),e.removeListener("error",onerror),e.removeListener("close",onclose)}}},15167:function(e){e.exports=function(){throw Error("Readable.from is not available in the browser")}},59946:function(e,t,n){"use strict";var i,s=n(94281).q,o=s.ERR_MISSING_ARGS,a=s.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function call(e){e()}function pipe(e,t){return e.pipe(t)}e.exports=function(){for(var e,t,s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];var l=(e=u).length&&"function"==typeof e[e.length-1]?e.pop():noop;if(Array.isArray(u[0])&&(u=u[0]),u.length<2)throw new o("streams");var R=u.map(function(e,s){var o,c,I,M,W,U=s<u.length-1;return c=o=function(e){t||(t=e),e&&R.forEach(call),U||(R.forEach(call),l(t))},I=!1,o=function(){I||(I=!0,c.apply(void 0,arguments))},M=!1,e.on("close",function(){M=!0}),void 0===i&&(i=n(8610)),i(e,{readable:U,writable:s>0},function(e){if(e)return o(e);M=!0,o()}),W=!1,function(t){if(!M&&!W){if(W=!0,e.setHeader&&"function"==typeof e.abort)return e.abort();if("function"==typeof e.destroy)return e.destroy();o(t||new a("pipe"))}}});return u.reduce(pipe)}},82457:function(e,t,n){"use strict";var i=n(94281).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,s){var o=null!=t.highWaterMark?t.highWaterMark:s?t[n]:null;if(null!=o){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var a=s?n:"highWaterMark";throw new i(a,o)}return Math.floor(o)}return e.objectMode?16:16384}}},22503:function(e,t,n){e.exports=n(17187).EventEmitter},88473:function(e,t,n){(t=e.exports=n(79481)).Stream=t,t.Readable=t,t.Writable=n(64229),t.Duplex=n(56753),t.Transform=n(74605),t.PassThrough=n(82725),t.finished=n(8610),t.pipeline=n(59946)},67734:function(e,t,n){"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:function(){return ea.W},AsyncSubject:function(){return R.c},BehaviorSubject:function(){return c.X},ConnectableObservable:function(){return s.c},EMPTY:function(){return ev.E},EmptyError:function(){return eu.K},GroupedObservable:function(){return o.T},NEVER:function(){return ek},Notification:function(){return en.P},NotificationKind:function(){return en.W},ObjectUnsubscribedError:function(){return ec.N},Observable:function(){return i.y},ReplaySubject:function(){return l.t},Scheduler:function(){return ee.b},Subject:function(){return u.xQ},Subscriber:function(){return er.L},Subscription:function(){return et.w},TimeoutError:function(){return eh.W},UnsubscriptionError:function(){return el.B},VirtualAction:function(){return X},VirtualTimeScheduler:function(){return K},animationFrame:function(){return Y},animationFrameScheduler:function(){return G},asap:function(){return I.e},asapScheduler:function(){return I.E},async:function(){return M.P},asyncScheduler:function(){return M.z},bindCallback:function(){return function bindCallback(e,t,n){if(t){if(!(0,eb.K)(t))return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return bindCallback(e,n).apply(void 0,i).pipe((0,ed.U)(function(e){return(0,ep.k)(e)?t.apply(void 0,e):t(e)}))};n=t}return function(){for(var t,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=this,u={context:a,subject:t,callbackFunc:e,scheduler:n};
19return new i.y(function(i){if(n)return n.schedule(dispatch,0,{args:s,subscriber:i,params:u});if(!t){t=new R.c;try{e.apply(a,s.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.next(e.length<=1?e[0]:e),t.complete()}]))}catch(e){(0,ef._)(t)?t.error(e):console.warn(e)}}return t.subscribe(i)})}}},bindNodeCallback:function(){return function bindNodeCallback(e,t,n){if(t){if(!(0,eb.K)(t))return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return bindNodeCallback(e,n).apply(void 0,i).pipe((0,ed.U)(function(e){return(0,ep.k)(e)?t.apply(void 0,e):t(e)}))};n=t}return function(){for(var t=[],s=0;s<arguments.length;s++)t[s]=arguments[s];var o={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new i.y(function(i){var s=o.context,a=o.subject;if(n)return n.schedule(bindNodeCallback_dispatch,0,{params:o,subscriber:i,context:s});if(!a){a=o.subject=new R.c;try{e.apply(s,t.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();if(n){a.error(n);return}a.next(e.length<=1?e[0]:e),a.complete()}]))}catch(e){(0,ef._)(a)?a.error(e):console.warn(e)}}return a.subscribe(i)})}}},combineLatest:function(){return ey.aj},concat:function(){return eg.z},config:function(){return ej.v},defer:function(){return em.P},empty:function(){return ev.c},forkJoin:function(){return forkJoin},from:function(){return eS.D},fromEvent:function(){return function fromEvent(e,t,n,s){return((0,ew.m)(n)&&(s=n,n=void 0),s)?fromEvent(e,t,n).pipe((0,ed.U)(function(e){return(0,ep.k)(e)?s.apply(void 0,e):s(e)})):new i.y(function(i){(function setupSubscription(e,t,n,i,s){if(e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener)e.addEventListener(t,n,s),o=function(){return e.removeEventListener(t,n,s)};else if(e&&"function"==typeof e.on&&"function"==typeof e.off)e.on(t,n),o=function(){return e.off(t,n)};else if(e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener)e.addListener(t,n),o=function(){return e.removeListener(t,n)};else if(e&&e.length)for(var o,a=0,u=e.length;a<u;a++)setupSubscription(e[a],t,n,i,s);else throw TypeError("Invalid event target");i.add(o)})(e,t,function(e){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(e)},i,n)})}},fromEventPattern:function(){return function fromEventPattern(e,t,n){return n?fromEventPattern(e,t).pipe((0,ed.U)(function(e){return(0,ep.k)(e)?n.apply(void 0,e):n(e)})):new i.y(function(n){var i,handler=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.next(1===e.length?e[0]:e)};try{i=e(handler)}catch(e){n.error(e);return}if((0,ew.m)(t))return function(){return t(handler,i)}})}},generate:function(){return generate},identity:function(){return eo.y},iif:function(){return iif},interval:function(){return interval},isObservable:function(){return isObservable},merge:function(){return ex.T},never:function(){return never},noop:function(){return es.Z},observable:function(){return a.L},of:function(){return eT.of},onErrorResumeNext:function(){return onErrorResumeNext},pairs:function(){return pairs},partition:function(){return partition},pipe:function(){return ei.z},queue:function(){return W.c},queueScheduler:function(){return W.N},race:function(){return eO.S3},range:function(){return range},scheduled:function(){return eL.x},throwError:function(){return eM._},timer:function(){return eA.H},using:function(){return using},zip:function(){return eN.$R}});var i=n(61514),s=n(33140),o=n(11120),a=n(15050),u=n(70211),c=n(89233),l=n(12630),R=n(60364),I=n(81789),M=n(90964),W=n(76084),U=n(35987),Z=n(48),J=function(e){function AnimationFrameAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i}return U.ZT(AnimationFrameAction,e),AnimationFrameAction.prototype.requestAsyncId=function(t,n,i){return(void 0===i&&(i=0),null!==i&&i>0)?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},AnimationFrameAction.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},AnimationFrameAction}(Z.o),Q=n(78399),G=new(function(e){function AnimationFrameScheduler(){return null!==e&&e.apply(this,arguments)||this}return U.ZT(AnimationFrameScheduler,e),AnimationFrameScheduler.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,s=n.length;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while(++i<s&&(e=n.shift()));if(this.active=!1,t){for(;++i<s&&(e=n.shift());)e.unsubscribe();throw t}},AnimationFrameScheduler}(Q.v))(J),Y=G,K=function(e){function VirtualTimeScheduler(t,n){void 0===t&&(t=X),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,t,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return U.ZT(VirtualTimeScheduler,e),VirtualTimeScheduler.prototype.flush=function(){for(var e,t,n=this.actions,i=this.maxFrames;(t=n[0])&&t.delay<=i&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},VirtualTimeScheduler.frameTimeFactor=10,VirtualTimeScheduler}(Q.v),X=function(e){function VirtualAction(t,n,i){void 0===i&&(i=t.index+=1);var s=e.call(this,t,n)||this;
19return s.scheduler=t,s.work=n,s.index=i,s.active=!0,s.index=t.index=i,s}return U.ZT(VirtualAction,e),VirtualAction.prototype.schedule=function(t,n){if(void 0===n&&(n=0),!this.id)return e.prototype.schedule.call(this,t,n);this.active=!1;var i=new VirtualAction(this.scheduler,this.work);return this.add(i),i.schedule(t,n)},VirtualAction.prototype.requestAsyncId=function(e,t,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(VirtualAction.sortActions),!0},VirtualAction.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},VirtualAction.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},VirtualAction.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},VirtualAction}(Z.o),ee=n(38725),et=n(98760),er=n(10979),en=n(42632),ei=n(62561),es=n(33306),eo=n(43608);function isObservable(e){return!!e&&(e instanceof i.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var ea=n(76565),eu=n(26929),ec=n(41016),el=n(28782),eh=n(81462),ed=n(55709),ef=n(93642),ep=n(59026),eb=n(17507);function dispatch(e){var t=this,n=e.args,i=e.subscriber,s=e.params,o=s.callbackFunc,a=s.context,u=s.scheduler,c=s.subject;if(!c){c=s.subject=new R.c;try{o.apply(a,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length<=1?e[0]:e;t.add(u.schedule(dispatchNext,0,{value:i,subject:c}))}]))}catch(e){c.error(e)}}this.add(c.subscribe(i))}function dispatchNext(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function bindNodeCallback_dispatch(e){var t=this,n=e.params,i=e.subscriber,s=e.context,o=n.callbackFunc,a=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new R.c;try{o.apply(s,a.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.shift();if(i)t.add(u.schedule(bindNodeCallback_dispatchError,0,{err:i,subject:c}));else{var s=e.length<=1?e[0]:e;t.add(u.schedule(bindNodeCallback_dispatchNext,0,{value:s,subject:c}))}}]))}catch(e){this.add(u.schedule(bindNodeCallback_dispatchError,0,{err:e,subject:c}))}}this.add(c.subscribe(i))}function bindNodeCallback_dispatchNext(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function bindNodeCallback_dispatchError(e){var t=e.err;e.subject.error(t)}var ey=n(75142),eg=n(49795),em=n(51410),ev=n(5631),e_=n(92009),eS=n(55760);function forkJoin(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if((0,ep.k)(n))return forkJoinInternal(n,null);if((0,e_.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){var i=Object.keys(n);return forkJoinInternal(i.map(function(e){return n[e]}),i)}}if("function"==typeof e[e.length-1]){var s=e.pop();return forkJoinInternal(e=1===e.length&&(0,ep.k)(e[0])?e[0]:e,null).pipe((0,ed.U)(function(e){return s.apply(void 0,e)}))}return forkJoinInternal(e,null)}function forkJoinInternal(e,t){return new i.y(function(n){var i=e.length;if(0===i){n.complete();return}for(var s=Array(i),o=0,a=0,_loop_1=function(u){var c=(0,eS.D)(e[u]),l=!1;n.add(c.subscribe({next:function(e){!l&&(l=!0,a++),s[u]=e},error:function(e){return n.error(e)},complete:function(){++o!==i&&l||(a===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=s[n],e},{}):s),n.complete())}}))},u=0;u<i;u++)_loop_1(u)})}var ew=n(14156);function generate(e,t,n,s,o){if(1==arguments.length){var a,u;u=e.initialState,t=e.condition,n=e.iterate,a=e.resultSelector||eo.y,o=e.scheduler}else void 0===s||(0,eb.K)(s)?(u=e,a=eo.y,o=s):(u=e,a=s);return new i.y(function(e){var i=u;if(o)return o.schedule(generate_dispatch,0,{subscriber:e,iterate:n,condition:t,resultSelector:a,state:i});for(;;){if(t){var s=void 0;try{s=t(i)}catch(t){e.error(t);return}if(!s){e.complete();break}}var c=void 0;try{c=a(i)}catch(t){e.error(t);break}if(e.next(c),e.closed)break;try{i=n(i)}catch(t){e.error(t);break}}})}function generate_dispatch(e){var t,n=e.subscriber,i=e.condition;if(!n.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){n.error(e);return}else e.needIterate=!0;if(i){var s=void 0;try{s=i(e.state)}catch(e){n.error(e);return}if(!s){n.complete();return}if(n.closed)return}try{t=e.resultSelector(e.state)}catch(e){n.error(e);return}if(!n.closed&&(n.next(t),!n.closed))return this.schedule(e)}}function iif(e,t,n){return void 0===t&&(t=ev.E),void 0===n&&(n=ev.E),(0,em.P)(function(){return e()?t:n})}var eE=n(35812);function interval(e,t){return void 0===e&&(e=0),void 0===t&&(t=M.P),(!(0,eE.k)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=M.P),new i.y(function(n){return n.add(t.schedule(interval_dispatch,e,{subscriber:n,counter:0,peri
19od:e})),n})}function interval_dispatch(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}var ex=n(14370),ek=new i.y(es.Z);function never(){return ek}var eT=n(18170);function onErrorResumeNext(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return ev.E;var n=e[0],s=e.slice(1);return 1===e.length&&(0,ep.k)(n)?onErrorResumeNext.apply(void 0,n):new i.y(function(e){var subNext=function(){return e.add(onErrorResumeNext.apply(void 0,s).subscribe(e))};return(0,eS.D)(n).subscribe({next:function(t){e.next(t)},error:subNext,complete:subNext})})}function pairs(e,t){return new i.y(t?function(n){var i=Object.keys(e),s=new et.w;return s.add(t.schedule(pairs_dispatch,0,{keys:i,index:0,subscriber:n,subscription:s,obj:e})),s}:function(t){for(var n=Object.keys(e),i=0;i<n.length&&!t.closed;i++){var s=n[i];e.hasOwnProperty(s)&&t.next([s,e[s]])}t.complete()})}function pairs_dispatch(e){var t=e.keys,n=e.index,i=e.subscriber,s=e.subscription,o=e.obj;if(!i.closed){if(n<t.length){var a=t[n];i.next([a,o[a]]),s.add(this.schedule({keys:t,index:n+1,subscriber:i,subscription:s,obj:o}))}else i.complete()}}var eC=n(18463),eR=n(26730),eI=n(66008);function partition(e,t,n){return[(0,eI.h)(t,n)(new i.y((0,eR.s)(e))),(0,eI.h)((0,eC.f)(t,n))(new i.y((0,eR.s)(e)))]}var eO=n(38821);function range(e,t,n){return void 0===e&&(e=0),new i.y(function(i){void 0===t&&(t=e,e=0);var s=0,o=e;if(n)return n.schedule(range_dispatch,0,{index:s,count:t,start:e,subscriber:i});for(;;){if(s++>=t){i.complete();break}if(i.next(o++),i.closed)break}})}function range_dispatch(e){var t=e.start,n=e.index,i=e.count,s=e.subscriber;if(n>=i){s.complete();return}s.next(t),s.closed||(e.index=n+1,e.start=t+1,this.schedule(e))}var eM=n(64944),eA=n(69604);function using(e,t){return new i.y(function(n){try{i=e()}catch(e){n.error(e);return}try{s=t(i)}catch(e){n.error(e);return}var i,s,o=(s?(0,eS.D)(s):ev.E).subscribe(n);return function(){o.unsubscribe(),i&&i.unsubscribe()}})}var eN=n(25080),eL=n(68503),ej=n(30150)},60364:function(e,t,n){"use strict";n.d(t,{c:function(){return a}});var i=n(35987),s=n(70211),o=n(98760),a=function(e){function AsyncSubject(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i.ZT(AsyncSubject,e),AsyncSubject.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),o.w.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.w.EMPTY):e.prototype._subscribe.call(this,t)},AsyncSubject.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},AsyncSubject.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},AsyncSubject}(s.xQ)},89233:function(e,t,n){"use strict";n.d(t,{X:function(){return a}});var i=n(35987),s=n(70211),o=n(41016),a=function(e){function BehaviorSubject(t){var n=e.call(this)||this;return n._value=t,n}return i.ZT(BehaviorSubject,e),Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),BehaviorSubject.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},BehaviorSubject.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new o.N},BehaviorSubject.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},BehaviorSubject}(s.xQ)},42632:function(e,t,n){"use strict";n.d(t,{P:function(){return u},W:function(){return i}});var i,s=n(5631),o=n(18170),a=n(64944);i||(i={});var u=function(){function Notification(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return Notification.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},Notification.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},Notification.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n
19)},Notification.prototype.toObservable=function(){switch(this.kind){case"N":return(0,o.of)(this.value);case"E":return(0,a._)(this.error);case"C":return(0,s.c)()}throw Error("unexpected notification kind value")},Notification.createNext=function(e){return void 0!==e?new Notification("N",e):Notification.undefinedValueNotification},Notification.createError=function(e){return new Notification("E",void 0,e)},Notification.createComplete=function(){return Notification.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",void 0),Notification}()},61514:function(e,t,n){"use strict";n.d(t,{y:function(){return R}});var i=n(93642),s=n(10979),o=n(23142),a=n(32174),u=n(15050),c=n(62561),l=n(30150),R=function(){function Observable(e){this._isScalar=!1,e&&(this._subscribe=e)}return Observable.prototype.lift=function(e){var t=new Observable;return t.source=this,t.operator=e,t},Observable.prototype.subscribe=function(e,t,n){var i=this.operator,u=function(e,t,n){if(e){if(e instanceof s.L)return e;if(e[o.b])return e[o.b]()}return e||t||n?new s.L(e,t,n):new s.L(a.c)}(e,t,n);if(i?u.add(i.call(u,this.source)):u.add(this.source||l.v.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),l.v.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},Observable.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){l.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,i._)(e)?e.error(t):console.warn(t)}},Observable.prototype.forEach=function(e,t){var n=this;return new(t=getPromiseCtor(t))(function(t,i){var s;s=n.subscribe(function(t){try{e(t)}catch(e){i(e),s&&s.unsubscribe()}},i,t)})},Observable.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},Observable.prototype[u.L]=function(){return this},Observable.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:(0,c.U)(e)(this)},Observable.prototype.toPromise=function(e){var t=this;return new(e=getPromiseCtor(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})},Observable.create=function(e){return new Observable(e)},Observable}();function getPromiseCtor(e){if(e||(e=l.v.Promise||Promise),!e)throw Error("no Promise impl found");return e}},32174:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var i=n(30150),s=n(71644),o={closed:!0,next:function(e){},error:function(e){if(i.v.useDeprecatedSynchronousErrorHandling)throw e;(0,s.z)(e)},complete:function(){}}},62039:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var i=n(35987),s=function(e){function OuterSubscriber(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(OuterSubscriber,e),OuterSubscriber.prototype.notifyNext=function(e,t,n,i,s){this.destination.next(t)},OuterSubscriber.prototype.notifyError=function(e,t){this.destination.error(e)},OuterSubscriber.prototype.notifyComplete=function(e){this.destination.complete()},OuterSubscriber}(n(10979).L)},12630:function(e,t,n){"use strict";n.d(t,{t:function(){return R}});var i=n(35987),s=n(70211),o=n(76084),a=n(98760),u=n(89276),c=n(41016),l=n(18253),R=function(e){function ReplaySubject(t,n,i){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var s=e.call(this)||this;
vendor: 5,303 bytes, line 19
19return s.scheduler=i,s._events=[],s._infiniteTimeWindow=!1,s._bufferSize=t<1?1:t,s._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(s._infiniteTimeWindow=!0,s.next=s.nextInfiniteTimeWindow):s.next=s.nextTimeWindow,s}return i.ZT(ReplaySubject,e),ReplaySubject.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},ReplaySubject.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new ReplayEvent(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},ReplaySubject.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,o=i.length;if(this.closed)throw new c.N;if(this.isStopped||this.hasError?t=a.w.EMPTY:(this.observers.push(e),t=new l.W(this,e)),s&&e.add(e=new u.ht(e,s)),n)for(var R=0;R<o&&!e.closed;R++)e.next(i[R]);else for(var R=0;R<o&&!e.closed;R++)e.next(i[R].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},ReplaySubject.prototype._getNow=function(){return(this.scheduler||o.c).now()},ReplaySubject.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,s=i.length,o=0;o<s&&!(e-i[o].time<n);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&i.splice(0,o),i},ReplaySubject}(s.xQ),ReplayEvent=function(e,t){this.time=e,this.value=t}},38725:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i=function(){function Scheduler(e,t){void 0===t&&(t=Scheduler.now),this.SchedulerAction=e,this.now=t}return Scheduler.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},Scheduler.now=function(){return Date.now()},Scheduler}()},70211:function(e,t,n){"use strict";n.d(t,{Yc:function(){return R},xQ:function(){return I}});var i=n(35987),s=n(61514),o=n(10979),a=n(98760),u=n(41016),c=n(18253),l=n(23142),R=function(e){function SubjectSubscriber(t){var n=e.call(this,t)||this;return n.destination=t,n}return i.ZT(SubjectSubscriber,e),SubjectSubscriber}(o.L),I=function(e){function Subject(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.ZT(Subject,e),Subject.prototype[l.b]=function(){return new R(this)},Subject.prototype.lift=function(e){var t=new M(this,this);return t.operator=e,t},Subject.prototype.next=function(e){if(this.closed)throw new u.N;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),s=0;s<n;s++)i[s].next(e)},Subject.prototype.error=function(e){if(this.closed)throw new u.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),s=0;s<n;s++)i[s].error(e);this.observers.length=0},Subject.prototype.complete=function(){if(this.closed)throw new u.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0},Subject.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},Subject.prototype._trySubscribe=function(t){if(!this.closed)return e.prototype._trySubscribe.call(this,t);throw new u.N},Subject.prototype._subscribe=function(e){if(this.closed)throw new u.N;return this.hasError?(e.error(this.thrownError),a.w.EMPTY):this.isStopped?(e.complete(),a.w.EMPTY):(this.observers.push(e),new c.W(this,e))},Subject.prototype.asObservable=function(){var e=new s.y;return e.source=this,e},Subject.create=function(e,t){return new M(e,t)},Subject}(s.y),M=function(e){function AnonymousSubject(t,n){var i=e.call(this)||this;return i.destination=t,i.source=n,i}return i.ZT(AnonymousSubject,e),AnonymousSubject.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},AnonymousSubject.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},AnonymousSubject.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},AnonymousSubject.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.w.EMPTY},AnonymousSubject}(I)},18253:function(e,t,n){"use strict";n.d(t,{W:function(){return s}});var i=n(35987),s=function(e){function SubjectSubscription(t,n){var i=e.call(this)||this;return i.subject=t,i.subscriber=n,i.closed=!1,i}return i.ZT(SubjectSubscription,e),SubjectSubscription.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},SubjectSubscription}(n(98760).w)},10979:function(e,t,n){"use strict";n.d(t,{L:function(){return R}});var i=n(35987),s=n(14156),o=n(32174),a=n(98760),u=n(23142),c=n(30150),l=n(71644),R=function(e){function Subscriber(t,n,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=o.c;break;case 1:if(!t){s.destination=o.c;break}if("object"==typeof t){t instanceof Subscriber?(s.syncErrorThrowable=t.syncErrorThrowable,s.destination=t,t.add(s)):(s.syncErrorThrowable=!0,s.destination=new I(s,t));break}default:s.syncErrorThrowable=!0,s.destination=new I(s,t,n,i)}return s}
19return i.ZT(Subscriber,e),Subscriber.prototype[u.b]=function(){return this},Subscriber.create=function(e,t,n){var i=new Subscriber(e,t,n);return i.syncErrorThrowable=!1,i},Subscriber.prototype.next=function(e){this.isStopped||this._next(e)},Subscriber.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(e){this.destination.next(e)},Subscriber.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},Subscriber}(a.w),I=function(e){function SafeSubscriber(t,n,i,a){var u,c=e.call(this)||this;c._parentSubscriber=t;var l=c;return(0,s.m)(n)?u=n:n&&(u=n.next,i=n.error,a=n.complete,n!==o.c&&(l=Object.create(n),(0,s.m)(l.unsubscribe)&&c.add(l.unsubscribe.bind(l)),l.unsubscribe=c.unsubscribe.bind(c))),c._context=l,c._next=u,c._error=i,c._complete=a,c}return i.ZT(SafeSubscriber,e),SafeSubscriber.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},SafeSubscriber.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,l.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,l.z)(e)}}},SafeSubscriber.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var wrappedComplete=function(){return e._complete.call(e._context)};c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,wrappedComplete):this.__tryOrUnsub(wrappedComplete),this.unsubscribe()}else this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw e;(0,l.z)(e)}},SafeSubscriber.prototype.__tryOrSetError=function(e,t,n){if(!c.v.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{t.call(this._context,n)}catch(t){if(c.v.useDeprecatedSynchronousErrorHandling)return e.syncErrorValue=t,e.syncErrorThrown=!0,!0;return(0,l.z)(t),!0}return!1},SafeSubscriber.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},SafeSubscriber}(R)},98760:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var i=n(59026),s=n(92009),o=n(14156),a=n(28782),u=function(){var e;function Subscription(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return Subscription.prototype.unsubscribe=function(){if(!this.closed){var e,t=this._parentOrParents,n=this._ctorUnsubscribe,u=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof Subscription)t.remove(this);else if(null!==t)for(var l=0;l<t.length;++l)t[l].remove(this);if((0,o.m)(u)){n&&(this._unsubscribe=void 0);try{u.call(this)}catch(t){e=t instanceof a.B?flattenUnsubscriptionErrors(t.errors):[t]}}if((0,i.k)(c))for(var l=-1,R=c.length;++l<R;){var I=c[l];if((0,s.K)(I))try{I.unsubscribe()}catch(t){e=e||[],t instanceof a.B?e=e.concat(flattenUnsubscriptionErrors(t.errors)):e.push(t)}}if(e)throw new a.B(e)}},Subscription.prototype.add=function(e){var t=e;if(!e)return Subscription.EMPTY;switch(typeof e){case"function":t=new Subscription(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof Subscription)){var n=t;(t=new Subscription)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var i=t._parentOrParents;if(null===i)t._parentOrParents=this;else if(i instanceof Subscription){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[t]:s.push(t),t},Subscription.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},Subscription.EMPTY=((e=new Subscription).closed=!0,e),Subscription}();function flattenUnsubscriptionErrors(e){return e.reduce(function(e,t){return e.concat(t instanceof a.B?t.errors:t)},[])}},30150:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var i=!1,s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,i=value},get useDeprecatedSynchronousErrorHandling(){return i}}},17604:function(e,t,n){"use strict";n.d(t,{Ds:function(){return c},IY:function(){return u},ft:function(){return innerSubscribe}});var i=n(35987),s=n(10979),o=n(61514),a=n(26730),u=function(e){function SimpleInnerSubscriber(t){var n=e.call(this)||this;return n.parent=t,n}return i.ZT(SimpleInnerSubscriber,e),SimpleInnerSubscriber.prototype._next=function(e){this.parent.notifyNext(e)},SimpleInnerSubscriber.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},SimpleInnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},SimpleInnerSubscriber}(s.L),c=function(e){function SimpleOuterSubscriber(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(SimpleOuterSubscriber,e),SimpleOuterSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},SimpleOuterSubscriber.prototype.notifyError=function(e){this.destination.error(e)},SimpleOuterSubscriber.prototype.notifyComplete=function(){this.destination.complete()},SimpleOuterSubscriber}(s.L);function innerSubscribe(e,t){var n;if(!t.closed){if(e instanceof o.y)return e.subscribe(t);try{n=(0,a.s)(e)(t)}catch(e){t.error(e)}return n}}},33140:function(e,t,n){"use strict";n.d(t,{N:function(){return R},c:function(){return l}});var i,s=n(35987),o=n(70211),a=n(61514),u=n(98760),c=n(3018),l=function(e){function ConnectableObservable(t,n){var i=e.call(this)||this;return i.source=t,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return s.ZT(ConnectableObservable,e),ConnectableObservable.prototype._subscribe=function(e){return this.get
19Subject().subscribe(e)},ConnectableObservable.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},ConnectableObservable.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new u.w).add(this.source.subscribe(new I(this.getSubject(),this))),e.closed&&(this._connection=null,e=u.w.EMPTY)),e},ConnectableObservable.prototype.refCount=function(){return(0,c.x)()(this)},ConnectableObservable}(a.y),R={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(i=l.prototype)._subscribe},_isComplete:{value:i._isComplete,writable:!0},getSubject:{value:i.getSubject},connect:{value:i.connect},refCount:{value:i.refCount}},I=function(e){function ConnectableSubscriber(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return s.ZT(ConnectableSubscriber,e),ConnectableSubscriber.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},ConnectableSubscriber.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},ConnectableSubscriber.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},ConnectableSubscriber}(o.Yc)},75142:function(e,t,n){"use strict";n.d(t,{Ms:function(){return R},aj:function(){return combineLatest}});var i=n(35987),s=n(17507),o=n(59026),a=n(62039),u=n(61714),c=n(43375),l={};function combineLatest(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=void 0,i=void 0;return(0,s.K)(e[e.length-1])&&(i=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,o.k)(e[0])&&(e=e[0]),(0,c.n)(e,i).lift(new R(n))}var R=function(){function CombineLatestOperator(e){this.resultSelector=e}return CombineLatestOperator.prototype.call=function(e,t){return t.subscribe(new I(e,this.resultSelector))},CombineLatestOperator}(),I=function(e){function CombineLatestSubscriber(t,n){var i=e.call(this,t)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.ZT(CombineLatestSubscriber,e),CombineLatestSubscriber.prototype._next=function(e){this.values.push(l),this.observables.push(e)},CombineLatestSubscriber.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add((0,u.D)(this,i,void 0,n))}}},CombineLatestSubscriber.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},CombineLatestSubscriber.prototype.notifyNext=function(e,t,n){var i=this.values,s=i[n],o=this.toRespond?s===l?--this.toRespond:this.toRespond:0;i[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},CombineLatestSubscriber.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},CombineLatestSubscriber}(a.L)},49795:function(e,t,n){"use strict";n.d(t,{z:function(){return concat}});var i=n(18170),s=n(52257);function concat(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,s.u)()(i.of.apply(void 0,e))}},51410:function(e,t,n){"use strict";n.d(t,{P:function(){return defer}});var i=n(61514),s=n(55760),o=n(5631);function defer(e){return new i.y(function(t){var n;try{n=e()}catch(e){t.error(e);return}return(n?(0,s.D)(n):(0,o.c)()).subscribe(t)})}},5631:function(e,t,n){"use strict";n.d(t,{E:function(){return s},c:function(){return empty}});var i=n(61514),s=new i.y(function(e){return e.complete()});function empty(e){return e?new i.y(function(t){return e.schedule(function(){return t.complete()})}):s}},55760:function(e,t,n){"use strict";n.d(t,{D:function(){return from}});var i=n(61514),s=n(26730),o=n(68503);function from(e,t){return t?(0,o.x)(e,t):e instanceof i.y?e:new i.y((0,s.s)(e))}},43375:function(e,t,n){"use strict";n.d(t,{n:function(){return fromArray}});var i=n(61514),s=n(56900),o=n(53109);function fromArray(e,t){return t?(0,o.r)(e,t):new i.y((0,s.V)(e))}},14370:function(e,t,n){"use strict";n.d(t,{T:function(){return merge}});var i=n(61514),s=n(17507),o=n(22556),a=n(43375);function merge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,u=null,c=e[e.length-1];return((0,s.K)(c)?(u=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof c&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof i.y)?e[0]:(0,o.J)(n)((0,a.n)(e,u))}},18170:function(e,t,n){"use strict";n.d(t,{of:function(){return of}});var i=n(17507),s=n(43375),o=n(53109);function of(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return(0,i.K)(n)?(e.pop(),(0,o.r)(e,n)):(0,s.n)(e)}},38821:function(e,t,n){"use strict";n.d(t,{S3:function(){return race}});var i=n(35987),s=n(59026),o=n(43375),a=n(62039),u=n(61714);function race(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!(0,s.k)(e[0]))return e[0];e=e[0]}return(0,o.n)(e,void 0).lift(new c)}var c=function(){function RaceOperator(){}return RaceOperator.prototype.call=function(e,t){return t.subscribe(new l(e))},RaceOperator}(),l=function(e){function RaceSubscriber(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.ZT(RaceSubscriber,e),RaceSubscriber.prototype._next=function(e){this.observables.push(e)},RaceSubscriber.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],s=(0,u.D)(this,i,void 0,n);this.subscriptions&&this.subscriptions.push(s),this.add(s)}this.observables=null}},RaceSubscriber.prototype.notifyNext=function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==n){var s=this.subscriptions[i];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(t)},RaceSubscriber}(a.L)},64944:function(e,t,n){"use strict";n.d(t,{_:function(){return throwError}});var i=n(61514);function throwError(e,t){return new i.y(t?function(n){return t.schedule(dispat
19ch,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function dispatch(e){var t=e.error;e.subscriber.error(t)}},69604:function(e,t,n){"use strict";n.d(t,{H:function(){return timer}});var i=n(61514),s=n(90964),o=n(35812),a=n(17507);function timer(e,t,n){void 0===e&&(e=0);var u=-1;return(0,o.k)(t)?u=1>Number(t)&&1||Number(t):(0,a.K)(t)&&(n=t),(0,a.K)(n)||(n=s.P),new i.y(function(t){var i=(0,o.k)(e)?e:+e-n.now();return n.schedule(dispatch,i,{index:0,period:u,subscriber:t})})}function dispatch(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}},25080:function(e,t,n){"use strict";n.d(t,{$R:function(){return zip},mx:function(){return l}});var i=n(35987),s=n(43375),o=n(59026),a=n(10979),u=n(999),c=n(17604);function zip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),(0,s.n)(e,void 0).lift(new l(n))}var l=function(){function ZipOperator(e){this.resultSelector=e}return ZipOperator.prototype.call=function(e,t){return t.subscribe(new R(e,this.resultSelector))},ZipOperator}(),R=function(e){function ZipSubscriber(t,n,i){void 0===i&&(i=Object.create(null));var s=e.call(this,t)||this;return s.resultSelector=n,s.iterators=[],s.active=0,s.resultSelector="function"==typeof n?n:void 0,s}return i.ZT(ZipSubscriber,e),ZipSubscriber.prototype._next=function(e){var t=this.iterators;(0,o.k)(e)?t.push(new M(e)):"function"==typeof e[u.hZ]?t.push(new I(e[u.hZ]())):t.push(new W(this.destination,this,e))},ZipSubscriber.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0===t){this.destination.complete();return}this.active=t;for(var n=0;n<t;n++){var i=e[n];i.stillUnsubscribed?this.destination.add(i.subscribe()):this.active--}},ZipSubscriber.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},ZipSubscriber.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){var s=e[i];if("function"==typeof s.hasValue&&!s.hasValue())return}for(var o=!1,a=[],i=0;i<t;i++){var s=e[i],u=s.next();if(s.hasCompleted()&&(o=!0),u.done){n.complete();return}a.push(u.value)}this.resultSelector?this._tryresultSelector(a):n.next(a),o&&n.complete()},ZipSubscriber.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},ZipSubscriber}(a.L),I=function(){function StaticIterator(e){this.iterator=e,this.nextResult=e.next()}return StaticIterator.prototype.hasValue=function(){return!0},StaticIterator.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},StaticIterator.prototype.hasCompleted=function(){var e=this.nextResult;return!!(e&&e.done)},StaticIterator}(),M=function(){function StaticArrayIterator(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return StaticArrayIterator.prototype[u.hZ]=function(){return this},StaticArrayIterator.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},StaticArrayIterator.prototype.hasValue=function(){return this.array.length>this.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),W=function(e){function ZipBufferIterator(t,n,i){var s=e.call(this,t)||this;return s.parent=n,s.observable=i,s.stillUnsubscribed=!0,s.buffer=[],s.isComplete=!1,s}return i.ZT(ZipBufferIterator,e),ZipBufferIterator.prototype[u.hZ]=function(){return this},ZipBufferIterator.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(){return(0,c.ft)(this.observable,new c.IY(this))},ZipBufferIterator}(c.Ds)},52257:function(e,t,n){"use strict";n.d(t,{u:function(){return concatAll}});var i=n(22556);function concatAll(){return(0,i.J)(1)}},66008:function(e,t,n){"use strict";n.d(t,{h:function(){return filter}});var i=n(35987),s=n(10979);function filter(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function FilterOperator(e,t){this.predicate=e,this.thisArg=t}return FilterOperator.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},FilterOperator}(),a=function(e){function FilterSubscriber(t,n,i){var s=e.call(this,t)||this;return s.predicate=n,s.thisArg=i,s.count=0,s}return i.ZT(FilterSubscriber,e),FilterSubscriber.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},FilterSubscriber}(s.L)},11120:function(e,t,n){"use strict";n.d(t,{T:function(){return I},v:function(){return groupBy}
19});var i=n(35987),s=n(10979),o=n(98760),a=n(61514),u=n(70211);function groupBy(e,t,n,i){return function(s){return s.lift(new c(e,t,n,i))}}var c=function(){function GroupByOperator(e,t,n,i){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=i}return GroupByOperator.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},GroupByOperator}(),l=function(e){function GroupBySubscriber(t,n,i,s,o){var a=e.call(this,t)||this;return a.keySelector=n,a.elementSelector=i,a.durationSelector=s,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return i.ZT(GroupBySubscriber,e),GroupBySubscriber.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){this.error(e);return}this._group(e,t)},GroupBySubscriber.prototype._group=function(e,t){var n,i=this.groups;i||(i=this.groups=new Map);var s=i.get(t);if(this.elementSelector)try{n=this.elementSelector(e)}catch(e){this.error(e)}else n=e;if(!s){s=this.subjectSelector?this.subjectSelector():new u.xQ,i.set(t,s);var o=new I(t,s,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new I(t,s))}catch(e){this.error(e);return}this.add(a.subscribe(new R(t,s,this)))}}s.closed||s.next(n)},GroupBySubscriber.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},GroupBySubscriber.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},GroupBySubscriber.prototype.removeGroup=function(e){this.groups.delete(e)},GroupBySubscriber.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},GroupBySubscriber}(s.L),R=function(e){function GroupDurationSubscriber(t,n,i){var s=e.call(this,n)||this;return s.key=t,s.group=n,s.parent=i,s}return i.ZT(GroupDurationSubscriber,e),GroupDurationSubscriber.prototype._next=function(e){this.complete()},GroupDurationSubscriber.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},GroupDurationSubscriber}(s.L),I=function(e){function GroupedObservable(t,n,i){var s=e.call(this)||this;return s.key=t,s.groupSubject=n,s.refCountSubscription=i,s}return i.ZT(GroupedObservable,e),GroupedObservable.prototype._subscribe=function(e){var t=new o.w,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&t.add(new M(n)),t.add(i.subscribe(e)),t},GroupedObservable}(a.y),M=function(e){function InnerRefCountSubscription(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return i.ZT(InnerRefCountSubscription,e),InnerRefCountSubscription.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},InnerRefCountSubscription}(o.w)},55709:function(e,t,n){"use strict";n.d(t,{U:function(){return map}});var i=n(35987),s=n(10979);function map(e,t){return function(n){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function MapOperator(e,t){this.project=e,this.thisArg=t}return MapOperator.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},MapOperator}(),a=function(e){function MapSubscriber(t,n,i){var s=e.call(this,t)||this;return s.project=n,s.count=0,s.thisArg=i||s,s}return i.ZT(MapSubscriber,e),MapSubscriber.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},MapSubscriber}(s.L)},22556:function(e,t,n){"use strict";n.d(t,{J:function(){return mergeAll}});var i=n(47746),s=n(43608);function mergeAll(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),(0,i.zg)(s.y,e)}},47746:function(e,t,n){"use strict";n.d(t,{VS:function(){return l},zg:function(){return mergeMap}});var i=n(35987),s=n(55709),o=n(55760),a=n(17604);
19function mergeMap(e,t,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t)?function(i){return i.pipe(mergeMap(function(n,i){return(0,o.D)(e(n,i)).pipe((0,s.U)(function(e,s){return t(n,e,i,s)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new u(e,n))})}var u=function(){function MergeMapOperator(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return MergeMapOperator.prototype.call=function(e,t){return t.subscribe(new c(e,this.project,this.concurrent))},MergeMapOperator}(),c=function(e){function MergeMapSubscriber(t,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var s=e.call(this,t)||this;return s.project=n,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return i.ZT(MergeMapSubscriber,e),MergeMapSubscriber.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},MergeMapSubscriber.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++,this._innerSub(t)},MergeMapSubscriber.prototype._innerSub=function(e){var t=new a.IY(this),n=this.destination;n.add(t);var i=(0,a.ft)(e,t);i!==t&&n.add(i)},MergeMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},MergeMapSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},MergeMapSubscriber.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(a.Ds),l=mergeMap},89276:function(e,t,n){"use strict";n.d(t,{QV:function(){return observeOn},ht:function(){return u}});var i=n(35987),s=n(10979),o=n(42632);function observeOn(e,t){return void 0===t&&(t=0),function(n){return n.lift(new a(e,t))}}var a=function(){function ObserveOnOperator(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return ObserveOnOperator.prototype.call=function(e,t){return t.subscribe(new u(e,this.scheduler,this.delay))},ObserveOnOperator}(),u=function(e){function ObserveOnSubscriber(t,n,i){void 0===i&&(i=0);var s=e.call(this,t)||this;
19return s.scheduler=n,s.delay=i,s}return i.ZT(ObserveOnSubscriber,e),ObserveOnSubscriber.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},ObserveOnSubscriber.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch,this.delay,new ObserveOnMessage(e,this.destination)))},ObserveOnSubscriber.prototype._next=function(e){this.scheduleMessage(o.P.createNext(e))},ObserveOnSubscriber.prototype._error=function(e){this.scheduleMessage(o.P.createError(e)),this.unsubscribe()},ObserveOnSubscriber.prototype._complete=function(){this.scheduleMessage(o.P.createComplete()),this.unsubscribe()},ObserveOnSubscriber}(s.L),ObserveOnMessage=function(e,t){this.notification=e,this.destination=t}},3018:function(e,t,n){"use strict";n.d(t,{x:function(){return refCount}});var i=n(35987),s=n(10979);function refCount(){return function(e){return e.lift(new o(e))}}var o=function(){function RefCountOperator(e){this.connectable=e}return RefCountOperator.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new a(e,n),s=t.subscribe(i);return i.closed||(i.connection=n.connect()),s},RefCountOperator}(),a=function(e){function RefCountSubscriber(t,n){var i=e.call(this,t)||this;return i.connectable=n,i}return i.ZT(RefCountSubscriber,e),RefCountSubscriber.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0||(e._refCount=t-1,t>1)){this.connection=null;return}var n=this.connection,i=e._connection;this.connection=null,i&&(!n||i===n)&&i.unsubscribe()},RefCountSubscriber}(s.L)},53109:function(e,t,n){"use strict";n.d(t,{r:function(){return scheduleArray}});var i=n(61514),s=n(98760);function scheduleArray(e,t){return new i.y(function(n){var i=new s.w,o=0;return i.add(t.schedule(function(){if(o===e.length){n.complete();return}n.next(e[o++]),n.closed||i.add(this.schedule())})),i})}},68503:function(e,t,n){"use strict";n.d(t,{x:function(){return scheduled}});var i=n(61514),s=n(98760),o=n(15050),a=n(53109),u=n(999),c=n(70336),l=n(39217);function scheduled(e,t){if(null!=e){if(e&&"function"==typeof e[o.L])return new i.y(function(n){var i=new s.w;return i.add(t.schedule(function(){var s=e[o.L]();i.add(s.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}))}}))})),i});if((0,c.t)(e))return new i.y(function(n){var i=new s.w;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i});if((0,l.z)(e))return(0,a.r)(e,t);if(e&&"function"==typeof e[u.hZ]||"string"==typeof e)return function(e,t){if(!e)throw Error("Iterable cannot be null");return new i.y(function(n){var i,o=new s.w;return o.add(function(){i&&"function"==typeof i.return&&i.return()}),o.add(t.schedule(function(){i=e[u.hZ](),o.add(t.schedule(function(){if(!n.closed){try{var e,t,s=i.next();e=s.value,t=s.done}catch(e){n.error(e);return}t?n.complete():(n.next(e),this.schedule())}}))})),o})}(e,t)}throw TypeError((null!==e&&typeof e||e)+" is not observable")}},48:function(e,t,n){"use strict";n.d(t,{o:function(){return s}});var i=n(35987),s=function(e){function AsyncAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i.pending=!1,i}return i.ZT(AsyncAction,e),AsyncAction.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},AsyncAction.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},AsyncAction.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},AsyncAction.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},AsyncAction.prototype._execute=function(e,t){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||Error(e)}if(n)return this.unsubscribe(),i},AsyncAction.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},AsyncAction}(function(e){function Action(t,n){return e.call(this)||this}return i.ZT(Action,e),Action.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},Action}
19(n(98760).w))},78399:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var i=n(35987),s=n(38725),o=function(e){function AsyncScheduler(t,n){void 0===n&&(n=s.b.now);var i=e.call(this,t,function(){return AsyncScheduler.delegate&&AsyncScheduler.delegate!==i?AsyncScheduler.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return i.ZT(AsyncScheduler,e),AsyncScheduler.prototype.schedule=function(t,n,i){return(void 0===n&&(n=0),AsyncScheduler.delegate&&AsyncScheduler.delegate!==this)?AsyncScheduler.delegate.schedule(t,n,i):e.prototype.schedule.call(this,t,n,i)},AsyncScheduler.prototype.flush=function(e){var t,n=this.actions;if(this.active){n.push(e);return}this.active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this.active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},AsyncScheduler}(s.b)},81789:function(e,t,n){"use strict";n.d(t,{e:function(){return R},E:function(){return l}});var i=n(35987),s=1,o=Promise.resolve(),a={};function findAndClearHandle(e){return e in a&&(delete a[e],!0)}var u={setImmediate:function(e){var t=s++;return a[t]=!0,o.then(function(){return findAndClearHandle(t)&&e()}),t},clearImmediate:function(e){findAndClearHandle(e)}},c=function(e){function AsapAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i}return i.ZT(AsapAction,e),AsapAction.prototype.requestAsyncId=function(t,n,i){return(void 0===i&&(i=0),null!==i&&i>0)?e.prototype.requestAsyncId.call(this,t,n,i):(t.actions.push(this),t.scheduled||(t.scheduled=u.setImmediate(t.flush.bind(t,null))))},AsapAction.prototype.recycleAsyncId=function(t,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,i);0===t.actions.length&&(u.clearImmediate(n),t.scheduled=void 0)},AsapAction}(n(48).o),l=new(function(e){function AsapScheduler(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(AsapScheduler,e),AsapScheduler.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,s=n.length;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while(++i<s&&(e=n.shift()));if(this.active=!1,t){for(;++i<s&&(e=n.shift());)e.unsubscribe();throw t}},AsapScheduler}(n(78399).v))(c),R=l},90964:function(e,t,n){"use strict";n.d(t,{P:function(){return o},z:function(){return s}});var i=n(48),s=new(n(78399)).v(i.o),o=s},76084:function(e,t,n){"use strict";n.d(t,{c:function(){return a},N:function(){return o}});var i=n(35987),s=function(e){function QueueAction(t,n){var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i}return i.ZT(QueueAction,e),QueueAction.prototype.schedule=function(t,n){return(void 0===n&&(n=0),n>0)?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},QueueAction.prototype.requestAsyncId=function(t,n,i){return(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)?e.prototype.requestAsyncId.call(this,t,n,i):t.flush(this)},QueueAction}(n(48).o),o=new(function(e){function QueueScheduler(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(QueueScheduler,e),QueueScheduler}(n(78399).v))(s),a=o},999:function(e,t,n){"use strict";n.d(t,{hZ:function(){return i}});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},15050:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},23142:function(e,t,n){"use strict";n.d(t,{b:function(){return i}});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},76565:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function ArgumentOutOfRangeErrorImpl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return ArgumentOutOfRangeErrorImpl.prototype=Object.create(Error.prototype),ArgumentOutOfRangeErrorImpl}()},26929:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var i=function(){function EmptyErrorImpl(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return EmptyErrorImpl.prototype=Object.create(Error.prototype),EmptyErrorImpl}()},41016:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var i=function(){function ObjectUnsubscribedErrorImpl(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return ObjectUnsubscribedErrorImpl.prototype=Object.create(Error.prototype),ObjectUnsubscribedErrorImpl}()},81462:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var i=function(){function TimeoutErrorImpl(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return TimeoutErrorImpl.prototype=Object.create(Error.prototype),TimeoutErrorImpl}()},28782:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var i=function(){function UnsubscriptionErrorImpl(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return UnsubscriptionErrorImpl.prototype=Object.create(Error.prototype),UnsubscriptionErrorImpl}()},93642:function(e,t,n){"use strict";n.d(t,{_:function(){return canReportError}});var i=n(10979);function canReportError(e){for(;e;){var t=e,n=t.closed,s=t.destination,o=t.isStopped;if(n||o)return!1;e=s&&s instanceof i.L?s:null}return!0}},71644:function(e,t,n){"use strict";function hostReportError(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return hostReportError}})},43608:function(e,t,n){"use strict";function identity(e){return e}n.d(t,{y:function(){return identity}})},59026:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},39217:function(e,t,n){"use strict";n.d(t,{z:function(){return isArrayLike}});var isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},14156:function(e,t,n){"use strict";function isFunction(e){return"function"==typeof e}n.d(t,{m:function(){return isFunction}})},35812:function(e,t,n){"use strict";n.d(t,{k:function(){return isNumeric}});var i=n(59026);function isNumeric(e){return!(0,i.k)(e)&&e-parseFloat(e)+1>=0}},92009:function(e,t,n){"use strict";function isObject(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return isObject}})},70336:function(e,t,n){"use strict";function isPromise(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return isPromise}})},17507:function(e,t,n){"use strict";function isScheduler(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return isScheduler}})},33306:function(e,t,n){"use strict";function noop(){}n.d(t,{Z:function(){return noop}})},18463:function(e,t,n){"use strict";function not(e,t){function notPred(){return!notPred.pred.apply(notPred.thisArg,arguments)}return notPred.pred=e,notPred.thisArg=t,notPred}n.d(t,{f:function(){return not}})},62561:function(e,t,n){"use strict";n.d(t,{U:function(){return pipeFromArray},z:function(){return pipe}});var i=n(43608);function pipe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pipeFromArray(e)}
19function pipeFromArray(e){return 0===e.length?i.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},26730:function(e,t,n){"use strict";n.d(t,{s:function(){return subscribeTo}});var i=n(56900),s=n(71644),o=n(999),a=n(15050),u=n(39217),c=n(70336),l=n(92009),subscribeTo=function(e){if(e&&"function"==typeof e[a.L])return function(t){var n=e[a.L]();if("function"==typeof n.subscribe)return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")};if((0,u.z)(e))return(0,i.V)(e);if((0,c.t)(e))return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,s.z),t};if(e&&"function"==typeof e[o.hZ])return function(t){for(var n=e[o.hZ]();;){var i=void 0;try{i=n.next()}catch(e){return t.error(e),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};throw TypeError("You provided "+((0,l.K)(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},56900:function(e,t,n){"use strict";n.d(t,{V:function(){return subscribeToArray}});var subscribeToArray=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},61714:function(e,t,n){"use strict";n.d(t,{D:function(){return subscribeToResult}});var i=n(35987),s=function(e){function InnerSubscriber(t,n,i){var s=e.call(this)||this;return s.parent=t,s.outerValue=n,s.outerIndex=i,s.index=0,s}return i.ZT(InnerSubscriber,e),InnerSubscriber.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(n(10979).L),o=n(26730),a=n(61514);function subscribeToResult(e,t,n,i,u){return(void 0===u&&(u=new s(e,n,i)),u.closed)?void 0:t instanceof a.y?t.subscribe(u):(0,o.s)(t)(u)}},16473:function(e,t,n){"use strict";n.r(t),n.d(t,{audit:function(){return audit},auditTime:function(){return auditTime},buffer:function(){return buffer},bufferCount:function(){return bufferCount},bufferTime:function(){return bufferTime},bufferToggle:function(){return bufferToggle},bufferWhen:function(){return bufferWhen},catchError:function(){return catchError},combineAll:function(){return combineAll},combineLatest:function(){return combineLatest_combineLatest},concat:function(){return concat_concat},concatAll:function(){return ec.u},concatMap:function(){return concatMap},concatMapTo:function(){return concatMapTo},count:function(){return count},debounce:function(){return debounce},debounceTime:function(){return debounceTime},defaultIfEmpty:function(){return defaultIfEmpty},delay:function(){return delay},delayWhen:function(){return delayWhen},dematerialize:function(){return dematerialize},distinct:function(){return distinct},distinctUntilChanged:function(){return distinctUntilChanged},distinctUntilKeyChanged:function(){return distinctUntilKeyChanged},elementAt:function(){return elementAt},endWith:function(){return endWith},every:function(){return every},exhaust:function(){return exhaust},exhaustMap:function(){return function exhaustMap(e,t){return t?function(n){return n.pipe(exhaustMap(function(n,i){return(0,ea.D)(e(n,i)).pipe((0,eq.U)(function(e,s){return t(n,e,i,s)}))}))}:function(t){return t.lift(new eZ(e))}}},expand:function(){return expand},filter:function(){return eL.h},finalize:function(){return finalize},find:function(){return find},findIndex:function(){return findIndex},first:function(){return first},flatMap:function(){return el.VS},groupBy:function(){return e2.v},ignoreElements:function(){return ignoreElements},isEmpty:function(){return isEmpty},last:function(){return last},map:function(){return eq.U},mapTo:function(){return mapTo},materialize:function(){return materialize},max:function(){return max},merge:function(){return merge_merge},mergeAll:function(){return ta.J},mergeMap:function(){return el.zg},mergeMapTo:function(){return mergeMapTo},mergeScan:function(){return mergeScan},min:function(){return min},multicast:function(){return multicast},observeOn:function(){return td.QV},onErrorResumeNext:function(){return onErrorResumeNext},pairwise:function(){return pairwise},partition:function(){return partition},pluck:function(){return pluck},publish:function(){return publish},publishBehavior:function(){return publishBehavior},publishLast:function(){return publishLast},publishReplay:function(){return publishReplay},race:function(){return race_race},reduce:function(){return reduce},refCount:function(){return tM.x},repeat:function(){return repeat},repeatWhen:function(){return repeatWhen},retry:function(){return retry},retryWhen:function(){return retryWhen},sample:function(){return sample},sampleTime:function(){return sampleTime},scan:function(){return scan},sequenceEqual:function(){return sequenceEqual},share:function(){return share},shareReplay:function(){return shareReplay},single:function(){return single},skip:function(){return skip},skipLast:function(){return skipLast},skipUntil:function(){return skipUntil},skipWhile:function(){return skipWhile},startWith:function(){return startWith},subscribeOn:function(){return subscribeOn},switchAll:function(){return switchAll},switchMap:function(){return switchMap},switchMapTo:function(){return switchMapTo},take:function(){return take},takeLast:function(){return takeLast},takeUntil:function(){return takeUntil},takeWhile:function(){return takeWhile},tap:function(){return tap},throttle:function(){return throttle},throttleTime:function(){return throttleTime},throwIfEmpty:function(){return throwIfEmpty},timeInterval:function(){return timeInterval},timeout:function(){return timeout},timeoutWith:function(){return timeoutWith},timestamp:function(){return timestamp},toArray:function(){return toArray},window:function(){return window_window},windowCount:function(){return windowCount},windowTime:function(){return windowTime},windowToggle:function(){return windowToggle},windowWhen:function(){return windowWhen},withLatestFrom:function(){return withLatestFrom},zip:function(){return zip_zip},zipAll:function(){return zipAll}});var i=n(35987),s=n(17604);function audit(e){return function(t){return t.lift(new o(e))}}var o=function(){function AuditOperator(e){this.durationSelector=e}return AuditOperator.prototype.call=function(e,t){return t.subscribe(new a(e,this.durationSelector))},AuditOperator}(),a=function(e){function AuditSubscriber(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.ZT(AuditSubscriber,e),AuditSubscriber.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=(0,s.ft)(t,new s.IY(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},AuditSubscriber.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;
19n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},AuditSubscriber.prototype.notifyNext=function(){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(s.Ds),u=n(90964),c=n(69604);function auditTime(e,t){return void 0===t&&(t=u.P),audit(function(){return(0,c.H)(e,t)})}function buffer(e){return function(t){return t.lift(new l(e))}}var l=function(){function BufferOperator(e){this.closingNotifier=e}return BufferOperator.prototype.call=function(e,t){return t.subscribe(new R(e,this.closingNotifier))},BufferOperator}(),R=function(e){function BufferSubscriber(t,n){var i=e.call(this,t)||this;return i.buffer=[],i.add((0,s.ft)(n,new s.IY(i))),i}return i.ZT(BufferSubscriber,e),BufferSubscriber.prototype._next=function(e){this.buffer.push(e)},BufferSubscriber.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},BufferSubscriber}(s.Ds),I=n(10979);function bufferCount(e,t){return void 0===t&&(t=null),function(n){return n.lift(new M(e,t))}}var M=function(){function BufferCountOperator(e,t){this.bufferSize=e,this.startBufferEvery=t,t&&e!==t?this.subscriberClass=U:this.subscriberClass=W}return BufferCountOperator.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),W=function(e){function BufferCountSubscriber(t,n){var i=e.call(this,t)||this;return i.bufferSize=n,i.buffer=[],i}return i.ZT(BufferCountSubscriber,e),BufferCountSubscriber.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},BufferCountSubscriber.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},BufferCountSubscriber}(I.L),U=function(e){function BufferSkipCountSubscriber(t,n,i){var s=e.call(this,t)||this;return s.bufferSize=n,s.startBufferEvery=i,s.buffers=[],s.count=0,s}return i.ZT(BufferSkipCountSubscriber,e),BufferSkipCountSubscriber.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,i=this.buffers,s=this.count;this.count++,s%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(e),a.length===t&&(i.splice(o,1),this.destination.next(a))}},BufferSkipCountSubscriber.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var i=t.shift();i.length>0&&n.next(i)}e.prototype._complete.call(this)},BufferSkipCountSubscriber}(I.L),Z=n(17507);function bufferTime(e){var t=arguments.length,n=u.P;(0,Z.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var i=null;t>=2&&(i=arguments[1]);var s=Number.POSITIVE_INFINITY;return t>=3&&(s=arguments[2]),function(t){return t.lift(new J(e,i,s,n))}}var J=function(){function BufferTimeOperator(e,t,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=i}return BufferTimeOperator.prototype.call=function(e,t){return t.subscribe(new Q(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),Context=function(){this.buffer=[]},Q=function(e){function BufferTimeSubscriber(t,n,i,s,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=i,a.maxBufferSize=s,a.scheduler=o,a.contexts=[];var u=a.openContext();return a.timespanOnly=null==i||i<0,a.timespanOnly?a.add(u.closeAction=o.schedule(dispatchBufferTimeSpanOnly,n,{subscriber:a,context:u,bufferTimeSpan:n})):(a.add(u.closeAction=o.schedule(dispatchBufferClose,n,{subscriber:a,context:u})),a.add(o.schedule(dispatchBufferCreation,i,{bufferTimeSpan:n,bufferCreationInterval:i,subscriber:a,scheduler:o}))),a}return i.ZT(BufferTimeSubscriber,e),BufferTimeSubscriber.prototype._next=function(e){for(var t,n=this.contexts,i=n.length,s=0;s<i;s++){var o=n[s],a=o.buffer;a.push(e),a.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},BufferTimeSubscriber.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},BufferTimeSubscriber.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var i=t.shift();n.next(i.buffer)}e.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:e,bufferTimeSpan:n};
19this.add(e.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,n,i))}},BufferTimeSubscriber.prototype.openContext=function(){var e=new Context;return this.contexts.push(e),e},BufferTimeSubscriber.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},BufferTimeSubscriber}(I.L);function dispatchBufferTimeSpanOnly(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function dispatchBufferCreation(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,s=e.scheduler,o=i.openContext();i.closed||(i.add(o.closeAction=s.schedule(dispatchBufferClose,n,{subscriber:i,context:o})),this.schedule(e,t))}function dispatchBufferClose(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var G=n(98760),Y=n(61714),K=n(62039);function bufferToggle(e,t){return function(n){return n.lift(new X(e,t))}}var X=function(){function BufferToggleOperator(e,t){this.openings=e,this.closingSelector=t}return BufferToggleOperator.prototype.call=function(e,t){return t.subscribe(new ee(e,this.openings,this.closingSelector))},BufferToggleOperator}(),ee=function(e){function BufferToggleSubscriber(t,n,i){var s=e.call(this,t)||this;return s.closingSelector=i,s.contexts=[],s.add((0,Y.D)(s,n)),s}return i.ZT(BufferToggleSubscriber,e),BufferToggleSubscriber.prototype._next=function(e){for(var t=this.contexts,n=t.length,i=0;i<n;i++)t[i].buffer.push(e)},BufferToggleSubscriber.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},BufferToggleSubscriber.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},BufferToggleSubscriber.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},BufferToggleSubscriber.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},BufferToggleSubscriber.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,i=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(i),i.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(e){var t=this.contexts,n=new G.w,i={buffer:[],subscription:n};t.push(i);var s=(0,Y.D)(this,e,i);!s||s.closed?this.closeBuffer(i):(s.context=i,this.add(s),n.add(s))},BufferToggleSubscriber}(K.L);function bufferWhen(e){return function(t){return t.lift(new et(e))}}var et=function(){function BufferWhenOperator(e){this.closingSelector=e}return BufferWhenOperator.prototype.call=function(e,t){return t.subscribe(new er(e,this.closingSelector))},BufferWhenOperator}(),er=function(e){function BufferWhenSubscriber(t,n){var i=e.call(this,t)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.ZT(BufferWhenSubscriber,e),BufferWhenSubscriber.prototype._next=function(e){this.buffer.push(e)},BufferWhenSubscriber.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(e){return this.error(e)}t=new G.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,s.ft)(e,new s.IY(this))),this.subscribing=!1},BufferWhenSubscriber}(s.Ds);function catchError(e){return function(t){var n=new en(e),i=t.lift(n);return n.caught=i}}var en=function(){function CatchOperator(e){this.selector=e}return CatchOperator.prototype.call=function(e,t){return t.subscribe(new ei(e,this.selector,this.caught))}
19,CatchOperator}(),ei=function(e){function CatchSubscriber(t,n,i){var s=e.call(this,t)||this;return s.selector=n,s.caught=i,s}return i.ZT(CatchSubscriber,e),CatchSubscriber.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){e.prototype.error.call(this,t);return}this._unsubscribeAndRecycle();var i=new s.IY(this);this.add(i);var o=(0,s.ft)(n,i);o!==i&&this.add(o)}},CatchSubscriber}(s.Ds),es=n(75142);function combineAll(e){return function(t){return t.lift(new es.Ms(e))}}var eo=n(59026),ea=n(55760);function combineLatest_combineLatest(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,eo.k)(e[0])&&(e=e[0].slice()),function(t){return t.lift.call((0,ea.D)([t].concat(e)),new es.Ms(n))}}var eu=n(49795);function concat_concat(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(eu.z.apply(void 0,[t].concat(e)))}}var ec=n(52257),el=n(47746);function concatMap(e,t){return(0,el.zg)(e,t,1)}function concatMapTo(e,t){return concatMap(function(){return e},t)}function count(e){return function(t){return t.lift(new eh(e,t))}}var eh=function(){function CountOperator(e,t){this.predicate=e,this.source=t}return CountOperator.prototype.call=function(e,t){return t.subscribe(new ed(e,this.predicate,this.source))},CountOperator}(),ed=function(e){function CountSubscriber(t,n,i){var s=e.call(this,t)||this;return s.predicate=n,s.source=i,s.count=0,s.index=0,s}return i.ZT(CountSubscriber,e),CountSubscriber.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},CountSubscriber.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){this.destination.error(e);return}t&&this.count++},CountSubscriber.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},CountSubscriber}(I.L);function debounce(e){return function(t){return t.lift(new ef(e))}}var ef=function(){function DebounceOperator(e){this.durationSelector=e}return DebounceOperator.prototype.call=function(e,t){return t.subscribe(new ep(e,this.durationSelector))},DebounceOperator}(),ep=function(e){function DebounceSubscriber(t,n){var i=e.call(this,t)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.ZT(DebounceSubscriber,e),DebounceSubscriber.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},DebounceSubscriber.prototype._complete=function(){this.emitValue(),this.destination.complete()},DebounceSubscriber.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=(0,s.ft)(t,new s.IY(this)))&&!n.closed&&this.add(this.durationSubscription=n)},DebounceSubscriber.prototype.notifyNext=function(){this.emitValue()},DebounceSubscriber.prototype.notifyComplete=function(){this.emitValue()},DebounceSubscriber.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,t)}},DebounceSubscriber}(s.Ds);function debounceTime(e,t){return void 0===t&&(t=u.P),function(n){return n.lift(new eb(e,t))}}var eb=function(){function DebounceTimeOperator(e,t){this.dueTime=e,this.scheduler=t}return DebounceTimeOperator.prototype.call=function(e,t){return t.subscribe(new ey(e,this.dueTime,this.scheduler))},DebounceTimeOperator}(),ey=function(e){function DebounceTimeSubscriber(t,n,i){var s=e.call(this,t)||this;return s.dueTime=n,s.scheduler=i,s.debouncedSubscription=null,s.lastValue=null,s.hasValue=!1,s}return i.ZT(DebounceTimeSubscriber,e),DebounceTimeSubscriber.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},DebounceTimeSubscriber.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},DebounceTimeSubscriber.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},DebounceTimeSubscriber.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},DebounceTimeSubscriber}(I.L);function dispatchNext(e){e.debouncedNext()}function defaultIfEmpty(e){return void 0===e&&(e=null),function(t){return t.lift(new eg(e))}}var eg=function(){function DefaultIfEmptyOperator(e){this.defaultValue=e}return DefaultIfEmptyOperator.prototype.call=function(e,t){return t.subscribe(new em(e,this.defaultValue))},DefaultIfEmptyOperator}(),em=function(e){function DefaultIfEmptySubscriber(t,n){var i=e.call(this,t)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.ZT(DefaultIfEmptySubscriber,e),DefaultIfEmptySubscriber.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},DefaultIfEmptySubscriber.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},DefaultIfEmptySubscriber}(I.L);function isDate(e){return e instanceof Date&&!isNaN(+e)}var ev=n(42632);function delay(e,t){void 0===t&&(t=u.P);var n=isDate(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new e_(n,t))}}var e_=function(){function DelayOperator(e,t){this.delay=e,this.scheduler
19=t}return DelayOperator.prototype.call=function(e,t){return t.subscribe(new eS(e,this.delay,this.scheduler))},DelayOperator}(),eS=function(e){function DelaySubscriber(t,n,i){var s=e.call(this,t)||this;return s.delay=n,s.scheduler=i,s.queue=[],s.active=!1,s.errored=!1,s}return i.ZT(DelaySubscriber,e),DelaySubscriber.dispatch=function(e){for(var t=e.source,n=t.queue,i=e.scheduler,s=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1},DelaySubscriber.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},DelaySubscriber.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new DelayMessage(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},DelaySubscriber.prototype._next=function(e){this.scheduleNotification(ev.P.createNext(e))},DelaySubscriber.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(ev.P.createComplete()),this.unsubscribe()},DelaySubscriber}(I.L),DelayMessage=function(e,t){this.time=e,this.notification=t},ew=n(61514);function delayWhen(e,t){return t?function(n){return new ek(n,t).lift(new eE(e))}:function(t){return t.lift(new eE(e))}}var eE=function(){function DelayWhenOperator(e){this.delayDurationSelector=e}return DelayWhenOperator.prototype.call=function(e,t){return t.subscribe(new ex(e,this.delayDurationSelector))},DelayWhenOperator}(),ex=function(e){function DelayWhenSubscriber(t,n){var i=e.call(this,t)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.ZT(DelayWhenSubscriber,e),DelayWhenSubscriber.prototype.notifyNext=function(e,t,n,i,s){this.destination.next(e),this.removeSubscription(s),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(e,t){this._error(e)},DelayWhenSubscriber.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},DelayWhenSubscriber.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return -1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},DelayWhenSubscriber.prototype.tryDelay=function(e,t){var n=(0,Y.D)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(K.L),ek=function(e){function SubscriptionDelayObservable(t,n){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=n,i}return i.ZT(SubscriptionDelayObservable,e),SubscriptionDelayObservable.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new eT(e,this.source))},SubscriptionDelayObservable}(ew.y),eT=function(e){function SubscriptionDelaySubscriber(t,n){var i=e.call(this)||this;return i.parent=t,i.source=n,i.sourceSubscribed=!1,i}return i.ZT(SubscriptionDelaySubscriber,e),SubscriptionDelaySubscriber.prototype._next=function(e){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},SubscriptionDelaySubscriber.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(I.L);function dematerialize(){return function(e){return e.lift(new eC)}}var eC=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(e,t){return t.subscribe(new eR(e))},DeMaterializeOperator}(),eR=function(e){function DeMaterializeSubscriber(t){return e.call(this,t)||this}return i.ZT(DeMaterializeSubscriber,e),DeMaterializeSubscriber.prototype._next=function(e){e.observe(this.destination)},DeMaterializeSubscriber}(I.L);function distinct(e,t){return function(n){return n.lift(new eI(e,t))}}var eI=function(){function DistinctOperator(e,t){this.keySelector=e,this.flushes=t}return DistinctOperator.prototype.call=function(e,t){return t.subscribe(new eO(e,this.keySelector,this.flushes))},DistinctOperator}(),eO=function(e){function DistinctSubscriber(t,n,i){var o=e.call(this,t)||this;return o.keySelector=n,o.values=new Set,i&&o.add((0,s.ft)(i,new s.IY(o))),o}return i.ZT(DistinctSubscriber,e),DistinctSubscriber.prototype.notifyNext=function(){this.values.clear()},DistinctSubscriber.prototype.notifyError=function(e){this._error(e)},DistinctSubscriber.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}
19,DistinctSubscriber.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){n.error(e);return}this._finalizeNext(t,e)},DistinctSubscriber.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},DistinctSubscriber}(s.Ds);function distinctUntilChanged(e,t){return function(n){return n.lift(new eM(e,t))}}var eM=function(){function DistinctUntilChangedOperator(e,t){this.compare=e,this.keySelector=t}return DistinctUntilChangedOperator.prototype.call=function(e,t){return t.subscribe(new eA(e,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),eA=function(e){function DistinctUntilChangedSubscriber(t,n,i){var s=e.call(this,t)||this;return s.keySelector=i,s.hasKey=!1,"function"==typeof n&&(s.compare=n),s}return i.ZT(DistinctUntilChangedSubscriber,e),DistinctUntilChangedSubscriber.prototype.compare=function(e,t){return e===t},DistinctUntilChangedSubscriber.prototype._next=function(e){try{var t,n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))},DistinctUntilChangedSubscriber}(I.L);function distinctUntilKeyChanged(e,t){return distinctUntilChanged(function(n,i){return t?t(n[e],i[e]):n[e]===i[e]})}var eN=n(76565),eL=n(66008),ej=n(26929);function throwIfEmpty(e){return void 0===e&&(e=defaultErrorFactory),function(t){return t.lift(new eD(e))}}var eD=function(){function ThrowIfEmptyOperator(e){this.errorFactory=e}return ThrowIfEmptyOperator.prototype.call=function(e,t){return t.subscribe(new eP(e,this.errorFactory))},ThrowIfEmptyOperator}(),eP=function(e){function ThrowIfEmptySubscriber(t,n){var i=e.call(this,t)||this;return i.errorFactory=n,i.hasValue=!1,i}return i.ZT(ThrowIfEmptySubscriber,e),ThrowIfEmptySubscriber.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},ThrowIfEmptySubscriber.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},ThrowIfEmptySubscriber}(I.L);function defaultErrorFactory(){return new ej.K}var eB=n(5631);function take(e){return function(t){return 0===e?(0,eB.c)():t.lift(new eF(e))}}var eF=function(){function TakeOperator(e){if(this.total=e,this.total<0)throw new eN.W}return TakeOperator.prototype.call=function(e,t){return t.subscribe(new eW(e,this.total))},TakeOperator}(),eW=function(e){function TakeSubscriber(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.ZT(TakeSubscriber,e),TakeSubscriber.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(I.L);function elementAt(e,t){if(e<0)throw new eN.W;var n=arguments.length>=2;return function(i){return i.pipe((0,eL.h)(function(t,n){return n===e}),take(1),n?defaultIfEmpty(t):throwIfEmpty(function(){return new eN.W}))}}var ez=n(18170);function endWith(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return(0,eu.z)(t,ez.of.apply(void 0,e))}}function every(e,t){return function(n){return n.lift(new eH(e,t,n))}}var eH=function(){function EveryOperator(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return EveryOperator.prototype.call=function(e,t){return t.subscribe(new eV(e,this.predicate,this.thisArg,this.source))},EveryOperator}(),eV=function(e){function EverySubscriber(t,n,i,s){var o=e.call(this,t)||this;return o.predicate=n,o.thisArg=i,o.source=s,o.index=0,o.thisArg=i||o,o}return i.ZT(EverySubscriber,e),EverySubscriber.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},EverySubscriber.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){this.destination.error(e);return}t||this.notifyComplete(!1)},EverySubscriber.prototype._complete=function(){this.notifyComplete(!0)},EverySubscriber}(I.L);function exhaust(){return function(e){return e.lift(new e$)}}var e$=function(){function SwitchFirstOperator(){}return SwitchFirstOperator.prototype.call=function(e,t){return t.subscribe(new eU(e))},SwitchFirstOperator}(),eU=function(e){function SwitchFirstSubscriber(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.ZT(SwitchFirstSubscriber,e),SwitchFirstSubscriber.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add((0,s.ft)(e,new s.IY(this))))},SwitchFirstSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},SwitchFirstSubscriber.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},SwitchFirstSubscriber}(s.Ds),eq=n(55709),eZ=function(){function ExhaustMapOperator(e){this.project=e}return ExhaustMapOperator.prototype.call=function(e,t){return t.subscribe(new eJ(e,this.project))},ExhaustMapOperator}
19(),eJ=function(e){function ExhaustMapSubscriber(t,n){var i=e.call(this,t)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.ZT(ExhaustMapSubscriber,e),ExhaustMapSubscriber.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},ExhaustMapSubscriber.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.hasSubscription=!0,this._innerSub(t)},ExhaustMapSubscriber.prototype._innerSub=function(e){var t=new s.IY(this),n=this.destination;n.add(t);var i=(0,s.ft)(e,t);i!==t&&n.add(i)},ExhaustMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},ExhaustMapSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},ExhaustMapSubscriber.prototype.notifyError=function(e){this.destination.error(e)},ExhaustMapSubscriber.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},ExhaustMapSubscriber}(s.Ds);function expand(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),t=1>(t||0)?Number.POSITIVE_INFINITY:t,function(i){return i.lift(new eQ(e,t,n))}}var eQ=function(){function ExpandOperator(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return ExpandOperator.prototype.call=function(e,t){return t.subscribe(new eG(e,this.project,this.concurrent,this.scheduler))},ExpandOperator}(),eG=function(e){function ExpandSubscriber(t,n,i,s){var o=e.call(this,t)||this;return o.project=n,o.concurrent=i,o.scheduler=s,o.index=0,o.active=0,o.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(o.buffer=[]),o}return i.ZT(ExpandSubscriber,e),ExpandSubscriber.dispatch=function(e){var t=e.subscriber,n=e.result,i=e.value,s=e.index;t.subscribeToProjection(n,i,s)},ExpandSubscriber.prototype._next=function(e){var t=this.destination;if(t.closed){this._complete();return}var n=this.index++;if(this.active<this.concurrent){t.next(e);try{var i=(0,this.project)(e,n);this.scheduler?this.destination.add(this.scheduler.schedule(ExpandSubscriber.dispatch,0,{subscriber:this,result:i,value:e,index:n})):this.subscribeToProjection(i,e,n)}catch(e){t.error(e)}}else this.buffer.push(e)},ExpandSubscriber.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add((0,s.ft)(e,new s.IY(this)))},ExpandSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},ExpandSubscriber.prototype.notifyNext=function(e){this._next(e)},ExpandSubscriber.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(s.Ds);function finalize(e){return function(t){return t.lift(new eY(e))}}var eY=function(){function FinallyOperator(e){this.callback=e}return FinallyOperator.prototype.call=function(e,t){return t.subscribe(new eK(e,this.callback))},FinallyOperator}(),eK=function(e){function FinallySubscriber(t,n){var i=e.call(this,t)||this;return i.add(new G.w(n)),i}return i.ZT(FinallySubscriber,e),FinallySubscriber}(I.L);function find(e,t){if("function"!=typeof e)throw TypeError("predicate is not a function");return function(n){return n.lift(new eX(e,n,!1,t))}}var eX=function(){function FindValueOperator(e,t,n,i){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=i}return FindValueOperator.prototype.call=function(e,t){return t.subscribe(new e0(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}(),e0=function(e){function FindValueSubscriber(t,n,i,s,o){var a=e.call(this,t)||this;return a.predicate=n,a.source=i,a.yieldIndex=s,a.thisArg=o,a.index=0,a}return i.ZT(FindValueSubscriber,e),FindValueSubscriber.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},FindValueSubscriber.prototype._next=function(e){var t=this.predicate,n=this.thisArg,i=this.index++;try{t.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(I.L);function findIndex(e,t){return function(n){return n.lift(new eX(e,n,!0,t))}}var e1=n(43608);function first(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,eL.h)(function(t,n){return e(t,n,i)}):e1.y,take(1),n?defaultIfEmpty(t):throwIfEmpty(function(){return new ej.K}))}}var e2=n(11120);function ignoreElements(){return function(e){return e.lift(new e4)}}var e4=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(e,t){return t.subscribe(new e3(e))},IgnoreElementsOperator}(),e3=function(e){function IgnoreElementsSubscriber(){return null!==e&&e.apply(this,arguments)||this}return i.ZT(IgnoreElementsSubscriber,e),IgnoreElementsSubscriber.prototype._next=function(e){},IgnoreElementsSubscriber}(I.L);function isEmpty(){return function(e){return e.lift(new e5)}}var e5=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(e,t){return t.subscribe(new e6(e))},IsEmptyOperator}(),e6=function(e){function IsEmptySubscriber(t){return e.call(this,t)||this}return i.ZT(IsEmptySubscriber,e),IsEmptySubscriber.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},IsEmptySubscriber.prototype._next=function(e){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(I.L);function takeLast(e){return function(t){return 0===e?(0,eB.c)():t.lift(new e8(e))}}var e8=function(){function TakeLastOperator(e){if(this.total=e,this.total<0)throw new eN.W}return TakeLastOperator.prototype.call=function(e,t){return t.subscribe(new e9(e,this.total))},TakeLastOperator}(),e9=function(e){function TakeLastSubscriber(t,n){var i=e.call(this,t)||this;
19return i.total=n,i.ring=[],i.count=0,i}return i.ZT(TakeLastSubscriber,e),TakeLastSubscriber.prototype._next=function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e},TakeLastSubscriber.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s<n;s++){var o=t++%n;e.next(i[o])}e.complete()},TakeLastSubscriber}(I.L);function last(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?(0,eL.h)(function(t,n){return e(t,n,i)}):e1.y,takeLast(1),n?defaultIfEmpty(t):throwIfEmpty(function(){return new ej.K}))}}function mapTo(e){return function(t){return t.lift(new e7(e))}}var e7=function(){function MapToOperator(e){this.value=e}return MapToOperator.prototype.call=function(e,t){return t.subscribe(new te(e,this.value))},MapToOperator}(),te=function(e){function MapToSubscriber(t,n){var i=e.call(this,t)||this;return i.value=n,i}return i.ZT(MapToSubscriber,e),MapToSubscriber.prototype._next=function(e){this.destination.next(this.value)},MapToSubscriber}(I.L);function materialize(){return function(e){return e.lift(new tt)}}var tt=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(e,t){return t.subscribe(new tr(e))},MaterializeOperator}(),tr=function(e){function MaterializeSubscriber(t){return e.call(this,t)||this}return i.ZT(MaterializeSubscriber,e),MaterializeSubscriber.prototype._next=function(e){this.destination.next(ev.P.createNext(e))},MaterializeSubscriber.prototype._error=function(e){var t=this.destination;t.next(ev.P.createError(e)),t.complete()},MaterializeSubscriber.prototype._complete=function(){var e=this.destination;e.next(ev.P.createComplete()),e.complete()},MaterializeSubscriber}(I.L);function scan(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new tn(e,t,n))}}var tn=function(){function ScanOperator(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return ScanOperator.prototype.call=function(e,t){return t.subscribe(new ti(e,this.accumulator,this.seed,this.hasSeed))},ScanOperator}(),ti=function(e){function ScanSubscriber(t,n,i,s){var o=e.call(this,t)||this;return o.accumulator=n,o._seed=i,o.hasSeed=s,o.index=0,o}return i.ZT(ScanSubscriber,e),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},ScanSubscriber.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},ScanSubscriber}(I.L),ts=n(62561);function reduce(e,t){return arguments.length>=2?function(n){return(0,ts.z)(scan(e,t),takeLast(1),defaultIfEmpty(t))(n)}:function(t){return(0,ts.z)(scan(function(t,n,i){return e(t,n,i+1)}),takeLast(1))(t)}}function max(e){return reduce("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var to=n(14370);function merge_merge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(to.T.apply(void 0,[t].concat(e)))}}var ta=n(22556);function mergeMapTo(e,t,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t)?(0,el.zg)(function(){return e},t,n):("number"==typeof t&&(n=t),(0,el.zg)(function(){return e},n))}function mergeScan(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new tu(e,t,n))}}var tu=function(){function MergeScanOperator(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return MergeScanOperator.prototype.call=function(e,t){return t.subscribe(new tc(e,this.accumulator,this.seed,this.concurrent))},MergeScanOperator}(),tc=function(e){function MergeScanSubscriber(t,n,i,s){var o=e.call(this,t)||this;return o.accumulator=n,o.acc=i,o.concurrent=s,o.hasValue=!1,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.ZT(MergeScanSubscriber,e),MergeScanSubscriber.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(i)}else this.buffer.push(e)},MergeScanSubscriber.prototype._innerSub=function(e){var t=new s.IY(this),n=this.destination;n.add(t);var i=(0,s.ft)(e,t);i!==t&&n.add(i)},MergeScanSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},MergeScanSubscriber.prototype.notifyNext=function(e){var t=this.destination;this.acc=e,this.hasValue=!0,t.next(e)},MergeScanSubscriber.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(s.Ds);function min(e){return reduce("function"==typeof e?function(t,n){return 0>e(t,n)?t:n}:function(e,t){return e<t?e:t})}
19var tl=n(33140);function multicast(e,t){return function(n){if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new th(i,t));var i,s=Object.create(n,tl.N);return s.source=n,s.subjectFactory=i,s}}var th=function(){function MulticastOperator(e,t){this.subjectFactory=e,this.selector=t}return MulticastOperator.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),s=n(i).subscribe(e);return s.add(t.subscribe(i)),s},MulticastOperator}(),td=n(89276);function onErrorResumeNext(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&(0,eo.k)(e[0])&&(e=e[0]),function(t){return t.lift(new tf(e))}}var tf=function(){function OnErrorResumeNextOperator(e){this.nextSources=e}return OnErrorResumeNextOperator.prototype.call=function(e,t){return t.subscribe(new tp(e,this.nextSources))},OnErrorResumeNextOperator}(),tp=function(e){function OnErrorResumeNextSubscriber(t,n){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=n,i}return i.ZT(OnErrorResumeNextSubscriber,e),OnErrorResumeNextSubscriber.prototype.notifyError=function(){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype.notifyComplete=function(){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},OnErrorResumeNextSubscriber.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},OnErrorResumeNextSubscriber.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new s.IY(this),n=this.destination;n.add(t);var i=(0,s.ft)(e,t);i!==t&&n.add(i)}else this.destination.complete()},OnErrorResumeNextSubscriber}(s.Ds);function pairwise(){return function(e){return e.lift(new tb)}}var tb=function(){function PairwiseOperator(){}return PairwiseOperator.prototype.call=function(e,t){return t.subscribe(new ty(e))},PairwiseOperator}(),ty=function(e){function PairwiseSubscriber(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return i.ZT(PairwiseSubscriber,e),PairwiseSubscriber.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},PairwiseSubscriber}(I.L),tg=n(18463);function partition(e,t){return function(n){return[(0,eL.h)(e,t)(n),(0,eL.h)((0,tg.f)(e,t))(n)]}}function pluck(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw Error("list of properties cannot be empty.");return function(t){return(0,eq.U)(function(t){for(var i=t,s=0;s<n;s++){var o=null!=i?i[e[s]]:void 0;if(void 0===o)return;i=o}return i})(t)}}var tm=n(70211);function publish(e){return e?multicast(function(){return new tm.xQ},e):multicast(new tm.xQ)}var tv=n(89233);function publishBehavior(e){return function(t){return multicast(new tv.X(e))(t)}}var t_=n(60364);function publishLast(){return function(e){return multicast(new t_.c)(e)}}var tS=n(12630);function publishReplay(e,t,n,i){n&&"function"!=typeof n&&(i=n);var s="function"==typeof n?n:void 0,o=new tS.t(e,t,i);return function(e){return multicast(function(){return o},s)(e)}}var tw=n(38821);function race_race(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&(0,eo.k)(e[0])&&(e=e[0]),t.lift.call(tw.S3.apply(void 0,[t].concat(e)))}}function repeat(e){return void 0===e&&(e=-1),function(t){return 0===e?(0,eB.c)():e<0?t.lift(new tE(-1,t)):t.lift(new tE(e-1,t))}}var tE=function(){function RepeatOperator(e,t){this.count=e,this.source=t}return RepeatOperator.prototype.call=function(e,t){return t.subscribe(new tx(e,this.count,this.source))},RepeatOperator}(),tx=function(e){function RepeatSubscriber(t,n,i){var s=e.call(this,t)||this;return s.count=n,s.source=i,s}return i.ZT(RepeatSubscriber,e),RepeatSubscriber.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},RepeatSubscriber}(I.L);function repeatWhen(e){return function(t){return t.lift(new tk(e))}}var tk=function(){function RepeatWhenOperator(e){this.notifier=e}return RepeatWhenOperator.prototype.call=function(e,t){return t.subscribe(new tT(e,this.notifier,t))},RepeatWhenOperator}(),tT=function(e){function RepeatWhenSubscriber(t,n,i){var s=e.call(this,t)||this;return s.notifier=n,s.source=i,s.sourceIsBeingSubscribedTo=!0,s}return i.ZT(RepeatWhenSubscriber,e),RepeatWhenSubscriber.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},RepeatWhenSubscriber.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},RepeatWhenSubscriber.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RepeatWhenSubscriber.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},RepeatWhenSubscriber.prototype.subscribeToRetries=function(){this.notifications=new tm.xQ;try{var t;t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=(0,s.ft)(t,new s.IY(this))},RepeatWhenSubscriber}(s.Ds);function retry(e){return void 0===e&&(e=-1),function(t){return t.lift(new tC(e,t))}}var tC=function(){function RetryOperator(e,t){this.count=e,this.source=t}return RetryOperator.prototype.call=function(e,t){return t.subscribe(new tR(e,this.count,this.source))},RetryOperator}(),tR=function(e){function RetrySubscriber(t,n,i){var s=e.call(this,t)||this;return s.count=n,s.source=i,s}return i.ZT(RetrySubscriber,e),RetrySubscriber.prototype.error=function(t){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},RetrySubscriber}(I.L);function retryWhen(e){return function(t){return t.lift(new tI(e,t))}}var tI=function(){function RetryWhenOperator(e,t){this.notifier=e,this.source=t}return RetryWhenOperator.prototype.call=function(e,t){return t.subscribe(new tO(e,this.notifier,this.source))},RetryWhenOperator}(),tO=function(e){function RetryWhenSubscriber(t,n,i){var s=e.call(this,t)||this;return s.notifier=n,s.source=i,s}return i.ZT(RetryWhenSubscriber,e),RetryWhenSubscriber.prototype.error=function(t){if(!this.isStopped){var n=this.errors,i=this.retries,o=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new tm.xQ;try{i=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}o=(0,s.ft)(i,new s.IY(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=o,n.next(t)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},RetryWhenSubscriber.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},RetryWhenSubscriber}(s.Ds),tM=n(3018);function sample(e){return function(t){return t.lift(new tA(e))}}var tA=function(){function SampleOperator(e){this.notifier=e}return SampleOperator.prototype.call=function(e,t){var n=new tN(e),i=t.subscribe(n);return i.add((0,s.ft)(this.notifier,new s.IY(n))),i},SampleOperator}(),tN=function(e){function SampleSubscriber(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return i.ZT(SampleSubscriber,e),SampleSubscriber.prototype._next=function(e){this.value=e,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(s.Ds);function sampleTime(e,t){return void 0===t&&(t=u.P),function(n){return n.lift(new tL(e,t))}}var tL=function(){function SampleTimeOperator(e,t){this.period=e,this.scheduler
19=t}return SampleTimeOperator.prototype.call=function(e,t){return t.subscribe(new tj(e,this.period,this.scheduler))},SampleTimeOperator}(),tj=function(e){function SampleTimeSubscriber(t,n,i){var s=e.call(this,t)||this;return s.period=n,s.scheduler=i,s.hasValue=!1,s.add(i.schedule(dispatchNotification,n,{subscriber:s,period:n})),s}return i.ZT(SampleTimeSubscriber,e),SampleTimeSubscriber.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(I.L);function dispatchNotification(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function sequenceEqual(e,t){return function(n){return n.lift(new tD(e,t))}}var tD=function(){function SequenceEqualOperator(e,t){this.compareTo=e,this.comparator=t}return SequenceEqualOperator.prototype.call=function(e,t){return t.subscribe(new tP(e,this.compareTo,this.comparator))},SequenceEqualOperator}(),tP=function(e){function SequenceEqualSubscriber(t,n,i){var s=e.call(this,t)||this;return s.compareTo=n,s.comparator=i,s._a=[],s._b=[],s._oneComplete=!1,s.destination.add(n.subscribe(new tB(t,s))),s}return i.ZT(SequenceEqualSubscriber,e),SequenceEqualSubscriber.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},SequenceEqualSubscriber.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var i=e.shift(),s=t.shift(),o=!1;try{o=n?n(i,s):i===s}catch(e){this.destination.error(e)}o||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},SequenceEqualSubscriber.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},SequenceEqualSubscriber.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber}(I.L),tB=function(e){function SequenceEqualCompareToSubscriber(t,n){var i=e.call(this,t)||this;return i.parent=n,i}return i.ZT(SequenceEqualCompareToSubscriber,e),SequenceEqualCompareToSubscriber.prototype._next=function(e){this.parent.nextB(e)},SequenceEqualCompareToSubscriber.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},SequenceEqualCompareToSubscriber}(I.L);function shareSubjectFactory(){return new tm.xQ}function share(){return function(e){return(0,tM.x)()(multicast(shareSubjectFactory)(e))}}function shareReplay(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){var t,n,s,o,a,u,c,l,R,I,M;return e.lift((o=void 0===(s=i.bufferSize)?Number.POSITIVE_INFINITY:s,u=void 0===(a=i.windowTime)?Number.POSITIVE_INFINITY:a,c=i.refCount,l=i.scheduler,R=0,I=!1,M=!1,function(e){var i;R++,!t||I?(I=!1,i=(t=new tS.t(o,u,l)).subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){I=!0,t.error(e)},complete:function(){M=!0,n=void 0,t.complete()}}),M&&(n=void 0)):i=t.subscribe(this),this.add(function(){R--,i.unsubscribe(),i=void 0,n&&!M&&c&&0===R&&(n.unsubscribe(),n=void 0,t=void 0)})}))}}function single(e){return function(t){return t.lift(new tF(e,t))}}var tF=function(){function SingleOperator(e,t){this.predicate=e,this.source=t}return SingleOperator.prototype.call=function(e,t){return t.subscribe(new tW(e,this.predicate,this.source))},SingleOperator}(),tW=function(e){function SingleSubscriber(t,n,i){var s=e.call(this,t)||this;return s.predicate=n,s.source=i,s.seenValue=!1,s.index=0,s}return i.ZT(SingleSubscriber,e),SingleSubscriber.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},SingleSubscriber.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},SingleSubscriber.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},SingleSubscriber.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new ej.K)},SingleSubscriber}(I.L);function skip(e){return function(t){return t.lift(new tz(e))}}
19var tz=function(){function SkipOperator(e){this.total=e}return SkipOperator.prototype.call=function(e,t){return t.subscribe(new tH(e,this.total))},SkipOperator}(),tH=function(e){function SkipSubscriber(t,n){var i=e.call(this,t)||this;return i.total=n,i.count=0,i}return i.ZT(SkipSubscriber,e),SkipSubscriber.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},SkipSubscriber}(I.L);function skipLast(e){return function(t){return t.lift(new tV(e))}}var tV=function(){function SkipLastOperator(e){if(this._skipCount=e,this._skipCount<0)throw new eN.W}return SkipLastOperator.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new I.L(e)):t.subscribe(new t$(e,this._skipCount))},SkipLastOperator}(),t$=function(e){function SkipLastSubscriber(t,n){var i=e.call(this,t)||this;return i._skipCount=n,i._count=0,i._ring=Array(n),i}return i.ZT(SkipLastSubscriber,e),SkipLastSubscriber.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var i=n%t,s=this._ring,o=s[i];s[i]=e,this.destination.next(o)}},SkipLastSubscriber}(I.L);function skipUntil(e){return function(t){return t.lift(new tU(e))}}var tU=function(){function SkipUntilOperator(e){this.notifier=e}return SkipUntilOperator.prototype.call=function(e,t){return t.subscribe(new tq(e,this.notifier))},SkipUntilOperator}(),tq=function(e){function SkipUntilSubscriber(t,n){var i=e.call(this,t)||this;i.hasValue=!1;var o=new s.IY(i);i.add(o),i.innerSubscription=o;var a=(0,s.ft)(n,o);return a!==o&&(i.add(a),i.innerSubscription=a),i}return i.ZT(SkipUntilSubscriber,e),SkipUntilSubscriber.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},SkipUntilSubscriber.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},SkipUntilSubscriber.prototype.notifyComplete=function(){},SkipUntilSubscriber}(s.Ds);function skipWhile(e){return function(t){return t.lift(new tZ(e))}}var tZ=function(){function SkipWhileOperator(e){this.predicate=e}return SkipWhileOperator.prototype.call=function(e,t){return t.subscribe(new tJ(e,this.predicate))},SkipWhileOperator}(),tJ=function(e){function SkipWhileSubscriber(t,n){var i=e.call(this,t)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.ZT(SkipWhileSubscriber,e),SkipWhileSubscriber.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},SkipWhileSubscriber.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=!!t}catch(e){this.destination.error(e)}},SkipWhileSubscriber}(I.L);function startWith(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return(0,Z.K)(n)?(e.pop(),function(t){return(0,eu.z)(e,t,n)}):function(t){return(0,eu.z)(e,t)}}var tQ=n(81789),tG=n(35812),tY=function(e){function SubscribeOnObservable(t,n,i){void 0===n&&(n=0),void 0===i&&(i=tQ.e);var s=e.call(this)||this;return s.source=t,s.delayTime=n,s.scheduler=i,(!(0,tG.k)(n)||n<0)&&(s.delayTime=0),i&&"function"==typeof i.schedule||(s.scheduler=tQ.e),s}return i.ZT(SubscribeOnObservable,e),SubscribeOnObservable.create=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=tQ.e),new SubscribeOnObservable(e,t,n)},SubscribeOnObservable.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},SubscribeOnObservable.prototype._subscribe=function(e){var t=this.delayTime,n=this.source;return this.scheduler.schedule(SubscribeOnObservable.dispatch,t,{source:n,subscriber:e})},SubscribeOnObservable}(ew.y);function subscribeOn(e,t){return void 0===t&&(t=0),function(n){return n.lift(new tK(e,t))}}var tK=function(){function SubscribeOnOperator(e,t){this.scheduler=e,this.delay=t}return SubscribeOnOperator.prototype.call=function(e,t){return new tY(t,this.delay,this.scheduler).subscribe(e)},SubscribeOnOperator}();function switchMap(e,t){return"function"==typeof t?function(n){return n.pipe(switchMap(function(n,i){return(0,ea.D)(e(n,i)).pipe((0,eq.U)(function(e,s){return t(n,e,i,s)}))}))}:function(t){return t.lift(new tX(e))}}var tX=function(){function SwitchMapOperator(e){this.project=e}return SwitchMapOperator.prototype.call=function(e,t){return t.subscribe(new t0(e,this.project))},SwitchMapOperator}(),t0=function(e){function SwitchMapSubscriber(t,n){var i=e.call(this,t)||this;return i.project=n,i.index=0,i}return i.ZT(SwitchMapSubscriber,e),SwitchMapSubscriber.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this._innerSub(t)},SwitchMapSubscriber.prototype._innerSub=function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new s.IY(this),i=this.destination;i.add(n),this.innerSubscription=(0,s.ft)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)},SwitchMapSubscriber.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&e.prototype._complete.call(this),this.unsubscribe()},SwitchMapSubscriber.prototype._unsubscribe=function(){this.innerSubscription=void 0},SwitchMapSubscriber.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},SwitchMapSubscriber.prototype.notifyNext=function(e){this.destination.next(e)},SwitchMapSubscriber}(s.Ds);function switchAll(){return switchMap(e1.y)}function switchMapTo(e,t){return t?switchMap(function(){return e},t):switchMap(function(){return e})}function takeUntil(e){return function(t){return t.lift(new t1(e))}}var t1=function(){function TakeUntilOperator(e){this.notifier=e}return TakeUntilOperator.prototype.call=function(e,t){var n=new t2(e),i=(0,s.ft)(this.notifier,new s.IY(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n},TakeUntilOperator}(),t2=function(e){function TakeUntilSubscriber(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return i.ZT(TakeUntilSubscriber,e),TakeUntilSubscriber.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},TakeUntilSubscriber.prototype.notifyComplete=function(){},TakeUntilSubscriber}(s.Ds);function takeWhile(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new t4(e,t))}}var t4=function(){function TakeWhileOperator(e,t){this.predicate=e,this.inclusive=t}return TakeWhileOperator.prototype.call=function(e,t){return t.subscribe(new t3(e,this.predicate,this.inclusive))},TakeWhileOperator}(),t3=function(e){function TakeWhileSubscriber(t,n,i){var s=e.call(this,t)||this;return s.predicate=n,s.inclusive=i,s.index=0,s}return i.ZT(TakeWhileSubscriber,e),TakeWhileSubscriber.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){n.error(e);return}this.nextOrComplete(e,t)},TakeWhileSubscriber.prototype.nextOrComplete=function(e,t){var n=this.destination;t?n.next(e):(this.inclusive&&n.next(e),n.complete())},TakeWhileSubscriber}(I.L),t5=n(33306),t6=n(14156);function tap(e,t,n){return function(i){return i.lift(new t8(e,t,n))}}var t8=function(){function DoOperator(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return DoOperator.prototype.call=function(e,t){return t.subscribe(new t9(e,this.nextOrObserver,this.error,this.complete))},DoOperator}(),t9=function(e){function TapSubscriber(t,n,i,s){var o=e.call(this,t)||this;return o._tapNext=t5.Z,o._tapError=t5.Z,o._tapComplete=t5.Z,o._tapError=i||t5.Z,o._tapComplete=s||t5.Z,(0,t6.m)(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||t5.Z,o._tapError=n.error||t5.Z,o._tapComplete=n.complete||t5.Z),o}return i.ZT(TapSubscriber,e),TapSubscriber.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},TapSubscriber.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},TapSubscriber.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},TapSubscriber}(I.L),t7={leading:!0,trailing:!1};function throttle(e,t){return void 0===t&&(t=t7),function(n){return n.lift(new re(e,!!t.leading,!!t.trailing))}}var re=function(){function ThrottleOperator(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return ThrottleOperator.prototype.call=function(e,t){return t.subscribe(new rt(e,this.durationSelector,this.leading,this.trailing))},ThrottleOperator}(),rt=function(e){function ThrottleSubscriber(t,n,i,s){var o=e.call(this,t)||this;return o.destination=t,o.durationSelector=n,o._leading=i,o._trailing=s,o._hasValue=!1,o}return i.ZT(ThrottleSubscriber,e),ThrottleSubscriber.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},ThrottleSubscriber.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0},ThrottleSubscriber.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=(0,s.ft)(t,new s.IY(this)))},ThrottleSubscriber.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},ThrottleSubscriber.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()},ThrottleSubscriber.prototype.notifyNext=function(){this.throttlingDone()},ThrottleSubscriber.prototype.notifyComplete=function(){this.throttlingDone()},ThrottleSubscriber}(s.Ds);function throttleTime(e,t,n){return void 0===t&&(t=u.P),void 0===n&&(n=t7),function(i){return i.lift(new rr(e,t,n.leading,n.trailing))}}var rr=function(){function ThrottleTimeOperator(e,t,n,i){this.duration=e,this.scheduler
19=t,this.leading=n,this.trailing=i}return ThrottleTimeOperator.prototype.call=function(e,t){return t.subscribe(new rn(e,this.duration,this.scheduler,this.leading,this.trailing))},ThrottleTimeOperator}(),rn=function(e){function ThrottleTimeSubscriber(t,n,i,s,o){var a=e.call(this,t)||this;return a.duration=n,a.scheduler=i,a.leading=s,a.trailing=o,a._hasTrailingValue=!1,a._trailingValue=null,a}return i.ZT(ThrottleTimeSubscriber,e),ThrottleTimeSubscriber.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(throttleTime_dispatchNext,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},ThrottleTimeSubscriber.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},ThrottleTimeSubscriber.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},ThrottleTimeSubscriber}(I.L);function throttleTime_dispatchNext(e){e.subscriber.clearThrottle()}var ri=n(51410);function timeInterval(e){return void 0===e&&(e=u.P),function(t){return(0,ri.P)(function(){return t.pipe(scan(function(t,n){var i=t.current;return{value:n,current:e.now(),last:i}},{current:e.now(),value:void 0,last:void 0}),(0,eq.U)(function(e){var t=e.current,n=e.last,i=e.value;return new TimeInterval(i,t-n)}))})}}var TimeInterval=function(e,t){this.value=e,this.interval=t},rs=n(81462);function timeoutWith(e,t,n){return void 0===n&&(n=u.P),function(i){var s=isDate(e),o=s?+e-n.now():Math.abs(e);return i.lift(new ro(o,s,t,n))}}var ro=function(){function TimeoutWithOperator(e,t,n,i){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=i}return TimeoutWithOperator.prototype.call=function(e,t){return t.subscribe(new ra(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},TimeoutWithOperator}(),ra=function(e){function TimeoutWithSubscriber(t,n,i,s,o){var a=e.call(this,t)||this;return a.absoluteTimeout=n,a.waitFor=i,a.withObservable=s,a.scheduler=o,a.scheduleTimeout(),a}return i.ZT(TimeoutWithSubscriber,e),TimeoutWithSubscriber.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add((0,s.ft)(t,new s.IY(e)))},TimeoutWithSubscriber.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout,this.waitFor,this))},TimeoutWithSubscriber.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},TimeoutWithSubscriber.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},TimeoutWithSubscriber}(s.Ds),ru=n(64944);function timeout(e,t){return void 0===t&&(t=u.P),timeoutWith(e,(0,ru._)(new rs.W),t)}function timestamp(e){return void 0===e&&(e=u.P),(0,eq.U)(function(t){return new Timestamp(t,e.now())})}var Timestamp=function(e,t){this.value=e,this.timestamp=t};function toArrayReducer(e,t,n){return 0===n?[t]:(e.push(t),e)}function toArray(){return reduce(toArrayReducer,[])}function window_window(e){return function(t){return t.lift(new rc(e))}}var rc=function(){function WindowOperator(e){this.windowBoundaries=e}return WindowOperator.prototype.call=function(e,t){var n=new rl(e),i=t.subscribe(n);return i.closed||n.add((0,s.ft)(this.windowBoundaries,new s.IY(n))),i},WindowOperator}(),rl=function(e){function WindowSubscriber(t){var n=e.call(this,t)||this;return n.window=new tm.xQ,t.next(n.window),n}return i.ZT(WindowSubscriber,e),WindowSubscriber.prototype.notifyNext=function(){this.openWindow()},WindowSubscriber.prototype.notifyError=function(e){this._error(e)},WindowSubscriber.prototype.notifyComplete=function(){this._complete()},WindowSubscriber.prototype._next=function(e){this.window.next(e)},WindowSubscriber.prototype._error=function(e){this.window.error(e),this.destination.error(e)},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete()},WindowSubscriber.prototype._unsubscribe=function(){this.window=null},WindowSubscriber.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new tm.xQ;t.next(n)},WindowSubscriber}(s.Ds);function windowCount(e,t){return void 0===t&&(t=0),function(n){return n.lift(new rh(e,t))}}var rh=function(){function WindowCountOperator(e,t){this.windowSize=e,this.startWindowEvery=t}return WindowCountOperator.prototype.call=function(e,t){return t.subscribe(new rd(e,this.windowSize,this.startWindowEvery))},WindowCountOperator}(),rd=function(e){function WindowCountSubscriber(t,n,i){var s=e.call(this,t)||this;return s.destination=t,s.windowSize=n,s.startWindowEvery=i,s.windows=[new tm.xQ],s.count=0,t.next(s.windows[0]),s}return i.ZT(WindowCountSubscriber,e),WindowCountSubscriber.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,s=this.windows,o=s.length,a=0;a<o&&!this.closed;a++)s[a].next(e);var u=this.count-i+1;if(u>=0&&u%t==0&&!this.closed&&s.shift().complete(),++this.count%t==0&&!this.closed){var c=new tm.xQ;s.push(c),n.next(c)}},WindowCountSubscriber.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},WindowCountSubscriber.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(I.L);function windowTime(e){var t=u.P,n=null,i=Number.POSITIVE_INFINITY;return(0,Z.K)(arguments[3])&&(t=arguments[3]),(0,Z.K)(arguments[2])?t=arguments[2]:(0,tG.k)(arguments[2])&&(i=Number(arguments[2])),(0,Z.K)(arguments[1])?t=arguments[1]:(0,tG.k)(arguments[1])&&(n=Number(arguments[1])),function(s){return s.lift(new rf(e,n,i,t))}}var rf=function(){function WindowTimeOperator(e,t,n,i){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler
19=i}return WindowTimeOperator.prototype.call=function(e,t){return t.subscribe(new rb(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},WindowTimeOperator}(),rp=function(e){function CountedSubject(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return i.ZT(CountedSubject,e),CountedSubject.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(CountedSubject.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),CountedSubject}(tm.xQ),rb=function(e){function WindowTimeSubscriber(t,n,i,s,o){var a=e.call(this,t)||this;a.destination=t,a.windowTimeSpan=n,a.windowCreationInterval=i,a.maxWindowSize=s,a.scheduler=o,a.windows=[];var u=a.openWindow();return null!==i&&i>=0?(a.add(o.schedule(dispatchWindowClose,n,{subscriber:a,window:u,context:null})),a.add(o.schedule(dispatchWindowCreation,i,{windowTimeSpan:n,windowCreationInterval:i,subscriber:a,scheduler:o}))):a.add(o.schedule(dispatchWindowTimeSpanOnly,n,{subscriber:a,window:u,windowTimeSpan:n})),a}return i.ZT(WindowTimeSubscriber,e),WindowTimeSubscriber.prototype._next=function(e){for(var t=this.windows,n=t.length,i=0;i<n;i++){var s=t[i];!s.closed&&(s.next(e),s.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(s))}},WindowTimeSubscriber.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},WindowTimeSubscriber.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var e=new rp;return this.windows.push(e),this.destination.next(e),e},WindowTimeSubscriber.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},WindowTimeSubscriber}(I.L);function dispatchWindowTimeSpanOnly(e){var t=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&t.closeWindow(i),e.window=t.openWindow(),this.schedule(e,n)}function dispatchWindowCreation(e){var t=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,s=e.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null};a.subscription=i.schedule(dispatchWindowClose,t,{subscriber:n,window:o,context:a}),this.add(a.subscription),this.schedule(e,s)}function dispatchWindowClose(e){var t=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),t.closeWindow(n)}function windowToggle(e,t){return function(n){return n.lift(new ry(e,t))}}var ry=function(){function WindowToggleOperator(e,t){this.openings=e,this.closingSelector=t}return WindowToggleOperator.prototype.call=function(e,t){return t.subscribe(new rg(e,this.openings,this.closingSelector))},WindowToggleOperator}(),rg=function(e){function WindowToggleSubscriber(t,n,i){var s=e.call(this,t)||this;return s.openings=n,s.closingSelector=i,s.contexts=[],s.add(s.openSubscription=(0,Y.D)(s,n,n)),s}return i.ZT(WindowToggleSubscriber,e),WindowToggleSubscriber.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,i=0;i<n;i++)t[i].window.next(e)},WindowToggleSubscriber.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,s=-1;++s<i;){var o=n[s];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},WindowToggleSubscriber.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,i=-1;++i<n;){var s=t[i];s.window.complete(),s.subscription.unsubscribe()}e.prototype._complete.call(this)},WindowToggleSubscriber.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},WindowToggleSubscriber.prototype.notifyNext=function(e,t,n,i,s){if(e===this.openings){var o=void 0;try{o=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var a=new tm.xQ,u=new G.w,c={window:a,subscription:u};this.contexts.push(c);var l=(0,Y.D)(this,o,c);l.closed?this.closeWindow(this.contexts.length-1):(l.context=c,u.add(l)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))},WindowToggleSubscriber.prototype.notifyError=function(e){this.error(e)},WindowToggleSubscriber.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},WindowToggleSubscriber.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],i=n.window,s=n.subscription;t.splice(e,1),i.complete(),s.unsubscribe()}},WindowToggleSubscriber}(K.L);function windowWhen(e){return function(t){return t.lift(new rm(e))}}var rm=function(){function WindowOperator(e){this.closingSelector=e}return WindowOperator.prototype.call=function(e,t){return t.subscribe(new rv(e,this.closingSelector))},WindowOperator}(),rv=function(e){function WindowSubscriber(t,n){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=n,i.openWindow(),i}return i.ZT(WindowSubscriber,e),WindowSubscriber.prototype.notifyNext=function(e,t,n,i,s){this.openWindow(s)},WindowSubscriber.prototype.notifyError=function(e){this._error(e)},WindowSubscriber.prototype.notifyComplete=function(e){this.openWindow(e)},WindowSubscriber.prototype._next=function(e){this.window.next(e)},WindowSubscriber.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},WindowSubscriber.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},WindowSubscriber.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t,n=this.window;n&&n.complete();var i=this.window=new tm.xQ;this.destination.next(i);try{t=(0,this.closingSelector)()}catch(e){this.destination.error(e),this.window.error(e);return}this.add(this.closingNotification=(0,Y.D)(this,t))},WindowSubscriber}(K.L);function withLatestFrom(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new r_(e,n))}}var r_=function(){function WithLatestFromOperator(e,t){this.observables=e,this.project=t}return WithLatestFromOperator.prototype.call=function(e,t){return t.subscribe(new rS(e,this.observables,this.project))},WithLatestFromOperator}(),rS=function(e){function WithLatestFromSubscriber(t,n,i){var s=e.call(this,t)||this;s.observables=n,s.project=i,s.toRespond=[];var o=n.length;s.values=Array(o);for(var a=0;a<o;a++)s.toRespond.push(a);for(var a=0;a<o;a++){var u=n[a];s.add((0,Y.D)(s,u,void 0,a))}return s}return i.ZT(WithLatestFromSubscriber,e),WithLatestFromSubscriber.prototype.notifyNext=function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var s=i.indexOf(n);-1!==s&&i.splice(s,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},WithLatestFromSubscriber.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},WithLatestFromSubscriber}(K.L),rw=n(25080);function zip_zip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(rw.$R.apply(void 0,[t].concat(e)))}}function zipAll(e){return function(t){return t.lift(new rw.mx(e))}}},35987:function(e,t,n){"use strict";n.d(t,{ZT:function(){return __extends}});/*! ***************************************************************************** 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 extendStatics=function(e,t){return(extendStatics=Object.
32setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){function __(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}},22257:function(e,t,n){let i=Symbol("SemVer ANY");let Comparator=class Comparator{static get ANY(){return i}constructor(e,t){if(t=s(t),e instanceof Comparator){if(!!t.loose===e.loose)return e;e=e.value}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===i?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=i}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===i||e===i)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new R(e.value,t).test(this.value):""===e.operator?""===e.value||new R(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}};e.exports=Comparator;let s=n(12893),{safeRe:o,t:a}=n(55765),u=n(7539),c=n(74225),l=n(26376),R=n(66902)},66902:function(e,t,n){let Range=class Range{constructor(e,t){if(t=o(t),e instanceof Range){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new Range(e.raw,t)}if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!isNullSet(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&isAny(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let t=(this.options.includePrerelease&&U)|(this.options.loose&&Z),n=t+":"+e,i=s.get(n);if(i)return i;let o=this.options.loose,c=o?l[R.HYPHENRANGELOOSE]:l[R.HYPHENRANGE];u("hyphen replace",e=e.replace(c,hyphenReplace(this.options.includePrerelease))),u("comparator trim",e=e.replace(l[R.COMPARATORTRIM],I)),u("tilde trim",e=e.replace(l[R.TILDETRIM],M)),u("caret trim",e=e.replace(l[R.CARETTRIM],W));let J=e.split(" ").map(e=>parseComparator(e,this.options)).join(" ").split(/\s+/).map(e=>replaceGTE0(e,this.options));o&&(J=J.filter(e=>(u("loose invalid filter",e,this.options),!!e.match(l[R.COMPARATORLOOSE])))),u("range list",J);let Q=new Map,G=J.map(e=>new a(e,this.options));for(let e of G){if(isNullSet(e))return[e];Q.set(e.value,e)}Q.size>1&&Q.has("")&&Q.delete("");let Y=[...Q.values()];return s.set(n,Y),Y}intersects(e,t){if(!(e instanceof Range))throw TypeError("a Range is required");return this.set.some(n=>isSatisfiable(n,t)&&e.set.some(e=>isSatisfiable(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(testSet(this.set[t],e,this.options))return!0;return!1}};e.exports=Range;let i=n(39593),s=new i({max:1e3}),o=n(12893),a=n(22257),u=n(74225),c=n(26376),{safeRe:l,t:R,comparatorTrimReplace:I,tildeTrimReplace:M,caretTrimReplace:W}
32=n(55765),{FLAG_INCLUDE_PRERELEASE:U,FLAG_LOOSE:Z}=n(83295),isNullSet=e=>"<0.0.0-0"===e.value,isAny=e=>""===e.value,isSatisfiable=(e,t)=>{let n=!0,i=e.slice(),s=i.pop();for(;n&&i.length;)n=i.every(e=>s.intersects(e,t)),s=i.pop();return n},parseComparator=(e,t)=>(u("comp",e,t),u("caret",e=replaceCarets(e,t)),u("tildes",e=replaceTildes(e,t)),u("xrange",e=replaceXRanges(e,t)),u("stars",e=replaceStars(e,t)),e),isX=e=>!e||"x"===e.toLowerCase()||"*"===e,replaceTildes=(e,t)=>e.trim().split(/\s+/).map(e=>replaceTilde(e,t)).join(" "),replaceTilde=(e,t)=>{let n=t.loose?l[R.TILDELOOSE]:l[R.TILDE];return e.replace(n,(t,n,i,s,o)=>{let a;return u("tilde",e,t,n,i,s,o),isX(n)?a="":isX(i)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:isX(s)?a=`>=${n}.${i}.0 <${n}.${+i+1}.0-0`:o?(u("replaceTilde pr",o),a=`>=${n}.${i}.${s}-${o} <${n}.${+i+1}.0-0`):a=`>=${n}.${i}.${s} <${n}.${+i+1}.0-0`,u("tilde return",a),a})},replaceCarets=(e,t)=>e.trim().split(/\s+/).map(e=>replaceCaret(e,t)).join(" "),replaceCaret=(e,t)=>{u("caret",e,t);let n=t.loose?l[R.CARETLOOSE]:l[R.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(t,n,s,o,a)=>{let c;return u("caret",e,t,n,s,o,a),isX(n)?c="":isX(s)?c=`>=${n}.0.0${i} <${+n+1}.0.0-0`:isX(o)?c="0"===n?`>=${n}.${s}.0${i} <${n}.${+s+1}.0-0`:`>=${n}.${s}.0${i} <${+n+1}.0.0-0`:a?(u("replaceCaret pr",a),c="0"===n?"0"===s?`>=${n}.${s}.${o}-${a} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}-${a} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o}-${a} <${+n+1}.0.0-0`):(u("no pr"),c="0"===n?"0"===s?`>=${n}.${s}.${o}${i} <${n}.${s}.${+o+1}-0`:`>=${n}.${s}.${o}${i} <${n}.${+s+1}.0-0`:`>=${n}.${s}.${o} <${+n+1}.0.0-0`),u("caret return",c),c})},replaceXRanges=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map(e=>replaceXRange(e,t)).join(" ")),replaceXRange=(e,t)=>
32{e=e.trim();let n=t.loose?l[R.XRANGELOOSE]:l[R.XRANGE];return e.replace(n,(n,i,s,o,a,c)=>{u("xRange",e,n,i,s,o,a,c);let l=isX(s),R=l||isX(o),I=R||isX(a);return"="===i&&I&&(i=""),c=t.includePrerelease?"-0":"",l?n=">"===i||"<"===i?"<0.0.0-0":"*":i&&I?(R&&(o=0),a=0,">"===i?(i=">=",R?(s=+s+1,o=0):o=+o+1,a=0):"<="===i&&(i="<",R?s=+s+1:o=+o+1),"<"===i&&(c="-0"),n=`${i+s}.${o}.${a}${c}`):R?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:I&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),u("xRange return",n),n})},replaceStars=(e,t)=>(u("replaceStars",e,t),e.trim().replace(l[R.STAR],"")),replaceGTE0=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?R.GTE0PRE:R.GTE0],"")),hyphenReplace=e=>(t,n,i,s,o,a,u,c,l,R,I,M,W)=>(n=isX(i)?"":isX(s)?`>=${i}.0.0${e?"-0":""}`:isX(o)?`>=${i}.${s}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`,c=isX(l)?"":isX(R)?`<${+l+1}.0.0-0`:isX(I)?`<${l}.${+R+1}.0-0`:M?`<=${l}.${R}.${I}-${M}`:e?`<${l}.${R}.${+I+1}-0`:`<=${c}`,`${n} ${c}`.trim()),testSet=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(u(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}},26376:function(e,t,n){let i=n(74225),{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=n(83295),{safeRe:a,t:u}=n(55765),c=n(12893),{compareIdentifiers:l}=n(86742);let SemVer=class SemVer{constructor(e,t){if(t=c(t),e instanceof SemVer){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>s)throw TypeError(`version is longer than ${s} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[u.LOOSE]:a[u.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[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(e){if(i("SemVer.compare",this.version,this.options,e),!(e instanceof SemVer)){if("string"==typeof e&&e===this.version)return 0;e=new SemVer(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof SemVer||(e=new SemVer(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof SemVer||(e=new SemVer(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(i("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return -1;if(n===s)continue;else return l(n,s)}while(++t)}compareBuild(e){e instanceof SemVer||(e=new SemVer(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(i("prerelease compare",t,n,s),void 0===n&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===n)return -1;if(n===s)continue;else return l(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);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 e=Number(n)?1:0;if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let i=[t,e];!1===n&&(i=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};e.exports=SemVer},13507:function(e,t,n){let i=n(33959);e.exports=(e,t)=>{let n=i(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},7539:function(e,t,n){let i=n(58718),s=n(81194),o=n(71312),a=n(25903),u=n(21544),c=n(12056);e.exports=(e,t,n,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return i(e,n,l);case"!=":return s(e,n,l);case">":return o(e,n,l);case">=":return a(e,n,l);case"<":return u(e,n,l);case"<=":return c(e,n,l);default:throw TypeError(`Invalid operator: ${t}`)}}},99038:function(e,t,n){let i=n(26376),s=n(33959),{safeRe:o,t:a}=n(55765);e.exports=(e,t)=>{if(e instanceof i)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let i;let s=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(i=s.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&i.index+i[0].length===n.index+n[0].length||(n=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else n=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===n)return null;let u=n[2],c=n[3]||"0",l=n[4]||"0",R=t.includePrerelease&&n[5]?`-${n[5]}`:"",I=t.includePrerelease&&n[6]?`+${n[6]}`:"";return s(`${u}.${c}.${l}${R}${I}`,t)}},88880:function(e,t,n){let i=n(26376);e.exports=(e,t,n)=>{let s=new i(e,n),o=new i(t,n);return s.compare(o)||s.compareBuild(o)}},27880:function(e,t,n){let i=n(46269);e.exports=(e,t)=>i(e,t,!0)},46269:function(e,t,n){let i=n(26376);e.exports=(e,t,n)=>new i(e,n).compare(new i(t,n))},38419:function(e,t,n){let i=n(33959);e.exports=(e,t)=>{let n=i(e,null,!0),s=i(t,null,!0),o=n.compare(s);if(0===o)return null;let a=o>0,u=a?n:s,c=a?s:n,l=!!u.prerelease.length,R=!!c.prerelease.length;if(R&&!l)return c.patch||c.minor?u.patch?"patch":u.minor?"minor":"major":"major";let I=l?"pre":"";return n.major!==s.major?I+"major":n.minor!==s.minor?I+"minor":n.patch!==s.patch?I+"patch":"prerelease"}},58718:function(e,t,n){let i=n(46269);e.exports=(e,t,n)=>0===i(e,t,n)},71312:function(e,t,n){let i=n(46269);e.exports=(e,t,n)=>i(e,t,n)>0},25903:function(e,t,n){let i=n(46269);e.exports=(e,t,n)=>i(e,t,n)>=0},20253:function(e,t,n){let i=n(26376);e.exports=(e,t,n,s,o)=>{"string"==typeof n&&(o=s,s=n,n=void 0);
32try{return new i(e instanceof i?e.version:e,n).inc(t,s,o).version}catch(e){return null}}},21544:function(e,t,n){let i=n(46269);e.exports=(e,t,n)=>0>i(e,t,n)},12056:function(e,t,n){let i=n(46269);e.exports=(e,t,n)=>0>=i(e,t,n)},38679:function(e,t,n){let i=n(26376);e.exports=(e,t)=>new i(e,t).major},87789:function(e,t,n){let i=n(26376);e.exports=(e,t)=>new i(e,t).minor},81194:function(e,t,n){let i=n(46269);e.exports=(e,t,n)=>0!==i(e,t,n)},33959:function(e,t,n){let i=n(26376);e.exports=(e,t,n=!1)=>{if(e instanceof i)return e;try{return new i(e,t)}catch(e){if(!n)return null;throw e}}},52358:function(e,t,n){let i=n(26376);e.exports=(e,t)=>new i(e,t).patch},57559:function(e,t,n){let i=n(33959);e.exports=(e,t)=>{let n=i(e,t);return n&&n.prerelease.length?n.prerelease:null}},79795:function(e,t,n){let i=n(46269);e.exports=(e,t,n)=>i(t,e,n)},63657:function(e,t,n){let i=n(88880);e.exports=(e,t)=>e.sort((e,n)=>i(n,e,t))},45712:function(e,t,n){let i=n(66902);e.exports=(e,t,n)=>{try{t=new i(t,n)}catch(e){return!1}return t.test(e)}},21100:function(e,t,n){let i=n(88880);e.exports=(e,t)=>e.sort((e,n)=>i(e,n,t))},76397:function(e,t,n){let i=n(33959);e.exports=(e,t)=>{let n=i(e,t);return n?n.version:null}},81249:function(e,t,n){let i=n(55765),s=n(83295),o=n(26376),a=n(86742),u=n(33959),c=n(76397),l=n(13507),R=n(20253),I=n(38419),M=n(38679),W=n(87789),U=n(52358),Z=n(57559),J=n(46269),Q=n(79795),G=n(27880),Y=n(88880),K=n(21100),X=n(63657),ee=n(71312),et=n(21544),er=n(58718),en=n(81194),ei=n(25903),es=n(12056),eo=n(7539),ea=n(99038),eu=n(22257),ec=n(66902),el=n(45712),eh=n(51042),ed=n(85775),ef=n(71657),ep=n(95316),eb=n(89042),ey=n(6826),eg=n(97606),em=n(50032),ev=n(82937),e_=n(17908),eS=n(50799);e.exports={parse:u,valid:c,clean:l,inc:R,diff:I,major:M,minor:W,patch:U,prerelease:Z,compare:J,rcompare:Q,compareLoose:G,compareBuild:Y,sort:K,rsort:X,gt:ee,lt:et,eq:er,neq:en,gte:ei,lte:es,cmp:eo,coerce:ea,Comparator:eu,Range:ec,satisfies:el,toComparators:eh,maxSatisfying:ed,minSatisfying:ef,minVersion:ep,validRange:eb,outside:ey,gtr:eg,ltr:em,intersects:ev,simplifyRange:e_,subset:eS,SemVer:o,re:i.re,src:i.src,tokens:i.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},83295:function(e){let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},74225:function(e,t,n){var i=n(83454);let s="object"==typeof i&&i.env&&i.env.NODE_DEBUG&&/\bsemver\b/i.test(i.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=s},86742:function(e){let t=/^[0-9]+$/,compareIdentifiers=(e,n)=>{let i=t.test(e),s=t.test(n);return i&&s&&(e=+e,n=+n),e===n?0:i&&!s?-1:s&&!i?1:e<n?-1:1};e.exports={compareIdentifiers,rcompareIdentifiers:(e,t)=>compareIdentifiers(t,e)}},12893:function(e){let t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},55765:function(e,t,n){let{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=n(83295),a=n(74225);t=e.exports={};let u=t.re=[],c=t.safeRe=[],l=t.src=[],R=t.t={},I=0,M="[a-zA-Z0-9-]",W=[["\\s",1],["\\d",o],[M,s]],makeSafeRegex=e=>{for(let[t,n]of W)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},createToken=(e,t,n)=>{let i=makeSafeRegex(t),s=I++;a(e,s,t),R[e]=s,l[s]=t,u[s]=new RegExp(t,n?"g":void 0),c[s]=new RegExp(i,n?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${M}*`),createToken("MAINVERSION",`(${l[R.NUMERICIDENTIFIER]})\\.(${l[R.NUMERICIDENTIFIER]})\\.(${l[R.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${l[R.NUMERICIDENTIFIERLOOSE]})\\.(${l[R.NUMERICIDENTIFIERLOOSE]})\\.(${l[R.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${l[R.NUMERICIDENTIFIER]}|${l[R.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${l[R.NUMERICIDENTIFIERLOOSE]}|${l[R.NONNUMERICIDENTIFIER]})`),createToken("PRERELEASE",`(?:-(${l[R.PRERELEASEIDENTIFIER]}(?:\\.${l[R.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${l[R.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[R.PRERELEASEIDENTIFIERLOOSE]}
32)*))`),createToken("BUILDIDENTIFIER",`${M}+`),createToken("BUILD",`(?:\\+(${l[R.BUILDIDENTIFIER]}(?:\\.${l[R.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${l[R.MAINVERSION]}${l[R.PRERELEASE]}?${l[R.BUILD]}?`),createToken("FULL",`^${l[R.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${l[R.MAINVERSIONLOOSE]}${l[R.PRERELEASELOOSE]}?${l[R.BUILD]}?`),createToken("LOOSE",`^${l[R.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${l[R.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${l[R.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${l[R.XRANGEIDENTIFIER]})(?:\\.(${l[R.XRANGEIDENTIFIER]})(?:\\.(${l[R.XRANGEIDENTIFIER]})(?:${l[R.PRERELEASE]})?${l[R.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${l[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[R.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[R.XRANGEIDENTIFIERLOOSE]})(?:${l[R.PRERELEASELOOSE]})?${l[R.BUILD]}?)?)?`),createToken("XRANGE",`^${l[R.GTLT]}\\s*${l[R.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${l[R.GTLT]}\\s*${l[R.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),createToken("COERCE",`${l[R.COERCEPLAIN]}(?:$|[^\\d])`),createToken("COERCEFULL",l[R.COERCEPLAIN]+`(?:${l[R.PRERELEASE]})?`+`(?:${l[R.BUILD]})?`+"(?:$|[^\\d])"),createToken("COERCERTL",l[R.COERCE],!0),createToken("COERCERTLFULL",l[R.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${l[R.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",createToken("TILDE",`^${l[R.LONETILDE]}${l[R.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${l[R.LONETILDE]}${l[R.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${l[R.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",createToken("CARET",`^${l[R.LONECARET]}${l[R.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${l[R.LONECARET]}${l[R.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${l[R.GTLT]}\\s*(${l[R.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${l[R.GTLT]}\\s*(${l[R.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${l[R.GTLT]}\\s*(${l[R.LOOSEPLAIN]}|${l[R.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${l[R.XRANGEPLAIN]})\\s+-\\s+(${l[R.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${l[R.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[R.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},97606:function(e,t,n){let i=n(6826);e.exports=(e,t,n)=>i(e,t,">",n)},82937:function(e,t,n){let i=n(66902);e.exports=(e,t,n)=>(e=new i(e,n),t=new i(t,n),e.intersects(t,n))},50032:function(e,t,n){let i=n(6826);e.exports=(e,t,n)=>i(e,t,"<",n)},85775:function(e,t,n){let i=n(26376),s=n(66902);e.exports=(e,t,n)=>{let o=null,a=null,u=null;try{u=new s(t,n)}catch(e){return null}return e.forEach(e=>{u.test(e)&&(!o||-1===a.compare(e))&&(o=e,a=new i(o,n))}),o}},71657:function(e,t,n){let i=n(26376),s=n(66902);e.exports=(e,t,n)=>{let o=null,a=null,u=null;try{u=new s(t,n)}catch(e){return null}return e.forEach(e=>{u.test(e)&&(!o||1===a.compare(e))&&(o=e,a=new i(o,n))}),o}},95316:function(e,t,n){let i=n(26376),s=n(66902),o=n(71312);e.exports=(e,t)=>{e=new s(e,t);let n=new i("0.0.0");if(e.test(n)||(n=new i("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t<e.set.length;++t){let s=e.set[t],a=null;
32s.forEach(e=>{let t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!n||o(n,a))&&(n=a)}return n&&e.test(n)?n:null}},6826:function(e,t,n){let i=n(26376),s=n(22257),{ANY:o}=s,a=n(66902),u=n(45712),c=n(71312),l=n(21544),R=n(12056),I=n(25903);e.exports=(e,t,n,M)=>{let W,U,Z,J,Q;switch(e=new i(e,M),t=new a(t,M),n){case">":W=c,U=R,Z=l,J=">",Q=">=";break;case"<":W=l,U=I,Z=c,J="<",Q="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(u(e,t,M))return!1;for(let n=0;n<t.set.length;++n){let i=t.set[n],a=null,u=null;if(i.forEach(e=>{e.semver===o&&(e=new s(">=0.0.0")),a=a||e,u=u||e,W(e.semver,a.semver,M)?a=e:Z(e.semver,u.semver,M)&&(u=e)}),a.operator===J||a.operator===Q||(!u.operator||u.operator===J)&&U(e,u.semver)||u.operator===Q&&Z(e,u.semver))return!1}return!0}},17908:function(e,t,n){let i=n(45712),s=n(46269);e.exports=(e,t,n)=>{let o=[],a=null,u=null,c=e.sort((e,t)=>s(e,t,n));for(let e of c){let s=i(e,t,n);s?(u=e,a||(a=e)):(u&&o.push([a,u]),u=null,a=null)}a&&o.push([a,null]);let l=[];for(let[e,t]of o)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");let R=l.join(" || "),I="string"==typeof t.raw?t.raw:String(t);return R.length<I.length?R:t}},50799:function(e,t,n){let i=n(66902),s=n(22257),{ANY:o}=s,a=n(45712),u=n(46269),c=[new s(">=0.0.0-0")],l=[new s(">=0.0.0")],simpleSubset=(e,t,n)=>{let i,s,R,I,M,W,U;if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:l}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=l}let Z=new Set;for(let t of e)">"===t.operator||">="===t.operator?i=higherGT(i,t,n):"<"===t.operator||"<="===t.operator?s=lowerLT(s,t,n):Z.add(t.semver);if(Z.size>1||i&&s&&((R=u(i.semver,s.semver,n))>0||0===R&&(">="!==i.operator||"<="!==s.operator)))return null;for(let e of Z){if(i&&!a(e,String(i),n)||s&&!a(e,String(s),n))return null;for(let i of t)if(!a(e,String(i),n))return!1;return!0}let J=!!s&&!n.includePrerelease&&!!s.semver.prerelease.length&&s.semver,Q=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver;for(let e of(J&&1===J.prerelease.length&&"<"===s.operator&&0===J.prerelease[0]&&(J=!1),t)){if(U=U||">"===e.operator||">="===e.operator,W=W||"<"===e.operator||"<="===e.operator,i){if(Q&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===Q.major&&e.semver.minor===Q.minor&&e.semver.patch===Q.patch&&(Q=!1),">"===e.operator||">="===e.operator){if((I=higherGT(i,e,n))===e&&I!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(e),n))return!1}if(s){if(J&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===J.major&&e.semver.minor===J.minor&&e.semver.patch===J.patch&&(J=!1),"<"===e.operator||"<="===e.operator){if((M=lowerLT(s,e,n))===e&&M!==s)return!1}else if("<="===s.operator&&!a(s.semver,String(e),n))return!1}if(!e.operator&&(s||i)&&0!==R)return!1}return(!i||!W||!!s||0===R)&&(!s||!U||!!i||0===R)&&!Q&&!J},higherGT=(e,t,n)=>{if(!e)return t;let i=u(e.semver,t.semver,n);return i>0?e:i<0?t:">"===t.operator&&">="===e.operator?t:e},lowerLT=(e,t,n)=>{if(!e)return t;let i=u(e.semver,t.semver,n);return i<0?e:i>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new i(e,n),t=new i(t,n);let s=!1;t:for(let i of e.set){for(let e of t.set){let t=simpleSubset(i,e,n);if(s=s||null!==t,t)continue t}if(s)return!1}return!0}},51042:function(e,t,n){let i=n(66902);e.exports=(e,t)=>new i(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},89042:function(e,t,n){let i=n(66902);e.exports=(e,t)=>{try{return new i(e,t).range||"*"}catch(e){return null}}},24189:function(e,t,n){var i=n(89509).Buffer;function Hash(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Hash.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var n=this._block,s=this._blockSize,o=e.length,a=this._len,u=0;u<o;){for(var c=a%s,l=Math.min(o-u,s-c),R=0;R<l;R++)n[c+R]=e[u+R];a+=l,u+=l,a%s==0&&this._update(n)}return this._len+=o,this},Hash.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0,s=(n-i)/4294967296;this._block.writeUInt32BE(s,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},Hash.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=Hash},89072:function(e,t,n){var i=e.exports=function(e){var t=i[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};i.sha=n(74448),i.sha1=n(18336),i.sha224=n(48432),i.sha256=n(67499),i.sha384=n(51686),i.sha512=n(87816)},74448:function(e,t,n){var i=n(35717),s=n(24189),o=n(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=Array(80);function Sha(){this.init(),this._w=u,s.call(this,64,56)}i(Sha,s),Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var l=0;l<80;++l){var R,I,M,W,U,Z=~~(l/20),J=((R=n)<<5|R>>>27)+(I=i,M=s,W=o,0===Z?I&M|~I&W:2===Z?I&M|I&W|M&W:I^M^W)+u+t[l]+a[Z]|0;u=o,o=s,s=(U=i)<<30|U>>>2,i=n,n=J}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},Sha.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=Sha},18336:function(e,t,n){var i=n(35717),s=n(24189),o=n(89509).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=Array(80);function Sha1(){this.init(),this._w=u,s.call(this,64,56)}i(Sha1,s),Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},Sha1.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=(R=t[c-3]^t[c-8]^t[c-14]^t[c-16])<<1|R>>>31;for(var l=0;l<80;
32++l){var R,I,M,W,U,Z,J=~~(l/20),Q=((I=n)<<5|I>>>27)+(M=i,W=s,U=o,0===J?M&W|~M&U:2===J?M&W|M&U|W&U:M^W^U)+u+t[l]+a[J]|0;u=o,o=s,s=(Z=i)<<30|Z>>>2,i=n,n=Q}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0},Sha1.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=Sha1},48432:function(e,t,n){var i=n(35717),s=n(67499),o=n(24189),a=n(89509).Buffer,u=Array(64);function Sha224(){this.init(),this._w=u,o.call(this,64,56)}i(Sha224,s),Sha224.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},Sha224.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=Sha224},67499:function(e,t,n){var i=n(35717),s=n(24189),o=n(89509).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],u=Array(64);function Sha256(){this.init(),this._w=u,s.call(this,64,56)}i(Sha256,s),Sha256.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},Sha256.prototype._update=function(e){for(var t=this._w,n=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,u=0|this._e,c=0|this._f,l=0|this._g,R=0|this._h,I=0;I<16;++I)t[I]=e.readInt32BE(4*I);for(;I<64;++I)t[I]=(((W=t[I-2])>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+t[I-7]+(((U=t[I-15])>>>7|U<<25)^(U>>>18|U<<14)^U>>>3)+t[I-16]|0;for(var M=0;M<64;++M){var W,U,Z,J,Q,G,Y,K,X,ee=R+(((Z=u)>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(J=u,Q=c,(G=l)^J&(Q^G))+a[M]+t[M]|0,et=(((Y=n)>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+((K=n)&(X=i)|s&(K|X))|0;R=l,l=c,c=u,u=o+ee|0,o=s,s=i,i=n,n=ee+et|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=u+this._e|0,this._f=c+this._f|0,this._g=l+this._g|0,this._h=R+this._h|0},Sha256.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=Sha256},51686:function(e,t,n){var i=n(35717),s=n(87816),o=n(24189),a=n(89509).Buffer,u=Array(160);function Sha384(){this.init(),this._w=u,o.call(this,128,112)}i(Sha384,s),Sha384.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},Sha384.prototype._hash=function(){var e=a.allocUnsafe(48);function writeInt64BE(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),e},e.exports=Sha384},87816:function(e,t,n){var i=n(35717),s=n(24189),o=n(89509).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
321322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=Array(160);function Sha512(){this.init(),this._w=u,s.call(this,128,112)}function sigma0(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function sigma1(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function getCarry(e,t){return e>>>0<t>>>0?1:0}i(Sha512,s),Sha512.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},Sha512.prototype._update=function(e){for(var t=this._w,n=0|this._ah,i=0|this._bh,s=0|this._ch,o=0|this._dh,u=0|this._eh,c=0|this._fh,l=0|this._gh,R=0|this._hh,I=0|this._al,M=0|this._bl,W=0|this._cl,U=0|this._dl,Z=0|this._el,J=0|this._fl,Q=0|this._gl,G=0|this._hl,Y=0;Y<32;Y+=2)t[Y]=e.readInt32BE(4*Y),t[Y+1]=e.readInt32BE(4*Y+4);for(;Y<160;Y+=2){var K,X,ee,et,er,en,ei,es,eo=t[Y-30],ea=t[Y-30+1],eu=((K=eo)>>>1|(X=ea)<<31)^(K>>>8|X<<24)^K>>>7,ec=((ee=ea)>>>1|(et=eo)<<31)^(ee>>>8|et<<24)^(ee>>>7|et<<25);eo=t[Y-4],ea=t[Y-4+1];var el=((er=eo)>>>19|(en=ea)<<13)^(en>>>29|er<<3)^er>>>6,eh=((ei=ea)>>>19|(es=eo)<<13)^(es>>>29|ei<<3)^(ei>>>6|es<<26),ed=t[Y-14],ef=t[Y-14+1],ep=t[Y-32],eb=t[Y-32+1],ey=ec+ef|0,eg=eu+ed+getCarry(ey,ec)|0;eg=(eg=eg+el+getCarry(ey=ey+eh|0,eh)|0)+ep+getCarry(ey=ey+eb|0,eb)|0,t[Y]=eg,t[Y+1]=ey}for(var em=0;em<160;em+=2){eg=t[em],ey=t[em+1];var ev,e_,eS,ew,eE,ex,ek,eT,eC,eR,eI=(ev=n)&(e_=i)|s&(ev|e_),eO=(eS=I)&(ew=M)|W&(eS|ew),eM=sigma0(n,I),eA=sigma0(I,n),eN=sigma1(u,Z),eL=sigma1(Z,u),ej=a[em],eD=a[em+1],eP=(eE=u,ex=c,(ek=l)^eE&(ex^ek)),eB=(eT=Z,eC=J,(eR=Q)^eT&(eC^eR)),eF=G+eL|0,eW=R+eN+getCarry(eF,G)|0;eW=(eW=(eW=eW+eP+getCarry(eF=eF+eB|0,eB)|0)+ej+getCarry(eF=eF+eD|0,eD)|0)+eg+getCarry(eF=eF+ey|0,ey)|0;var ez=eA+eO|0,eH=eM+eI+getCarry(ez,eA)|0;R=l,G=Q,l=c,Q=J,c=u,J=Z,u=o+eW+getCarry(Z=U+eF|0,U)|0,o=s,U=W,s=i,W=M,i=n,M=I,n=eW+eH+getCarry(I=eF+ez|0,eF)|0}this._al=this._al+I|0,this._bl=this._bl+M|0,this._cl=this._cl+W|0,this._dl=this._dl+U|0,this._el=this._el+Z|0,this._fl=this._fl+J|0,this._gl=this._gl+Q|0,this._hl=this._hl+G|0,this._ah=this._ah+n+getCarry(this._al,I)|0,this._bh=this._bh+i+getCarry(this._bl,M)|0,this._ch=this._ch+s+getCarry(this._cl,W)|0,this._dh=this._dh+o+getCarry(this._dl,U)|0,this._eh=this._eh+u+getCarry(this._el,Z)|0,this._fh=this._fh+c+getCarry(this._fl,J)|0,this._gh=this._gh+l+getCarry(this._gl,Q)|0,this._hh=this._hh+R+getCarry(this._hl,G)|0},Sha512.prototype._hash=function(){var e=o.allocUnsafe(64);function writeInt64BE(t,n,i){e.writeInt32BE(t,i),e.writeInt32BE(n,i+4)}return writeInt64BE(this._ah,this._al,0),writeInt64BE(this._bh,this._bl,8),writeInt64BE(this._ch,this._cl,16),writeInt64BE(this._dh,this._dl,24),writeInt64BE(this._eh,this._el,32),writeInt64BE(this._fh,this._fl,40),writeInt64BE(this._gh,this._gl,48),writeInt64BE(this._hh,this._hl,56),e},e.exports=Sha512},37478:function(e,t,n){"use strict";var i=n(40210),s=n(21924),o=n(70631),a=n(14453),u=i("%WeakMap%",!0),c=i("%Map%",!0),l=s("WeakMap.prototype.get",!0),R=s("WeakMap.prototype.set",!0),I=s("WeakMap.prototype.has",!0),M=s("Map.prototype.get",!0),W=s("Map.prototype.set",!0),U=s("Map.prototype.has",!0),listGetNode=function(e,t){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===t)return i.next=n.next,n.next=e.next,e.next=n,n},listGet=function(e,t){var n=listGetNode(e,t);return n&&n.value},listSet=function(e,t,n){var i=listGetNode(e,t);i?i.value=n:e.next={key:t,next:e.next,value:n}};e.exports=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new a("Side channel does not contain "+o(e))},get:function(i){if(u&&i&&("object"==typeof i||"function"==typeof i)){if(e)return l(e,i)}else if(c){if(t)return M(t,i)}else if(n)return listGet(n,i)},has:function(i){if(u&&i&&("object"==typeof i||"function"==typeof i)){if(e)return I(e,i)}else if(c){if(t)return U(t,i)}else if(n)return!!listGetNode(n,i);return!1},set:function(i,s){u&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new u),R(e,i,s)):c?(t||(t=new c),W(t,i,s)):(n||(n={key:{},next:null}),listSet(n,i,s))}};return i}},94927:function(e,t,n){e.exports=function(e,t){if(config("noDeprecation"))return e;var n=!1;
32return function(){if(!n){if(config("throwDeprecation"))throw Error(t);config("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}};function config(e){try{if(!n.g.localStorage)return!1}catch(e){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}},47529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var i=arguments[n];for(var s in i)t.call(i,s)&&(e[s]=i[s])}return e};var t=Object.prototype.hasOwnProperty},49602:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},34411:function(e,t,n){"use strict";function Yallist(e){var t=this;if(t instanceof Yallist||(t=new Yallist),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function Node(e,t,n,i){if(!(this instanceof Node))return new Node(e,t,n,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=Yallist,Yallist.Node=Node,Yallist.create=Yallist,Yallist.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},Yallist.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},Yallist.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},Yallist.prototype.push=function(){for(var e,t=0,n=arguments.length;t<n;t++)e=arguments[t],this.tail=new Node(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length},Yallist.prototype.unshift=function(){for(var e,t=0,n=arguments.length;t<n;t++)e=arguments[t],this.head=new Node(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},Yallist.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},Yallist.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},Yallist.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,i=0;null!==n;i++)e.call(t,n.value,i,this),n=n.next},Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,i=this.length-1;null!==n;i--)e.call(t,n.value,i,this),n=n.prev},Yallist.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},Yallist.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},Yallist.prototype.map=function(e,t){t=t||this;for(var n=new Yallist,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},Yallist.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Yallist,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},Yallist.prototype.reduce=function(e,t){var n,i=this.head;if(arguments.length>1)n=t;else if(this.head)i=this.head.next,n=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var s=0;null!==i;s++)n=e(n,i.value,s),i=i.next;return n},Yallist.prototype.reduceReverse=function(e,t){var n,i=this.tail;if(arguments.length>1)n=t;else if(this.tail)i=this.tail.prev,n=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;null!==i;s--)n=e(n,i.value,s),i=i.prev;return n},Yallist.prototype.toArray=function(){for(var e=Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},Yallist.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,n=this.tail;null!==n;
32t++)e[t]=n.value,n=n.prev;return e},Yallist.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Yallist;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,s=this.head;null!==s&&i<e;i++)s=s.next;for(;null!==s&&i<t;i++,s=s.next)n.push(s.value);return n},Yallist.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Yallist;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,s=this.tail;null!==s&&i>t;i--)s=s.prev;for(;null!==s&&i>e;i--,s=s.prev)n.push(s.value);return n},Yallist.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,s=this.head;null!==s&&i<e;i++)s=s.next;for(var o=[],i=0;s&&i<t;i++)o.push(s.value),s=this.removeNode(s);null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<n.length;i++)s=function(e,t,n){var i=t===e.head?new Node(n,null,t,e):new Node(n,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i}(this,s,n[i]);return o},Yallist.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var i=n.prev;n.prev=n.next,n.next=i}return this.head=t,this.tail=e,this};try{n(49602)(Yallist)}catch(e){}},11821:function(e,t,n){"use strict";n.r(t),n.d(t,{Struct:function(){return Struct},StructError:function(){return StructError},any:function(){return any},array:function(){return array},assert:function(){return assert},assign:function(){return assign},bigint:function(){return bigint},boolean:function(){return boolean},coerce:function(){return coerce},create:function(){return create},date:function(){return date},defaulted:function(){return defaulted},define:function(){return define},deprecated:function(){return deprecated},dynamic:function(){return dynamic},empty:function(){return empty},enums:function(){return enums},func:function(){return func},instance:function(){return instance},integer:function(){return integer},intersection:function(){return intersection},is:function(){return is},lazy:function(){return lazy},literal:function(){return literal},map:function(){return map},mask:function(){return mask},max:function(){return max},min:function(){return min},never:function(){return never},nonempty:function(){return nonempty},nullable:function(){return nullable},number:function(){return number},object:function(){return object},omit:function(){return omit},optional:function(){return optional},partial:function(){return partial},pattern:function(){return pattern},pick:function(){return pick},record:function(){return record},refine:function(){return refine},regexp:function(){return regexp},set:function(){return set},size:function(){return size},string:function(){return string},struct:function(){return struct},trimmed:function(){return trimmed},tuple:function(){return tuple},type:function(){return type},union:function(){return union},unknown:function(){return unknown},validate:function(){return validate}});let StructError=class StructError extends TypeError{constructor(e,t){let n;let{message:i,explanation:s,...o}=e,{path:a}=e,u=0===a.length?i:`At path: ${a.join(".")} -- ${i}`;super(s??u),null!=s&&(this.cause=u),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}};function isObject(e){return"object"==typeof e&&null!=e}function isPlainObject(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function print(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function*toFailures(e,t,n,i){var s;for(let o of(isObject(s=e)&&"function"==typeof s[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,n,i){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:s,branch:o}=t,{type:a}=n,{refinement:u,message:c=`Expected a value of type \`${a}\`${u?` with refinement \`${u}\``:""}, but received: \`${print(i)}\``}=e;return{value:i,type:a,refinement:u,key:s[s.length-1],path:s,branch:o,...e,message:c}}(o,t,n,i);e&&(yield e)}}function*run(e,t,n={}){let{path:i=[],branch:s=[e],coerce:o=!1,mask:a=!1}=n,u={path:i,branch:s};if(o&&(e=t.coercer(e,u),a&&"type"!==t.type&&isObject(t.schema)&&isObject(e)&&!Array.isArray(e)))for(let n in e)void 0===t.schema[n]&&delete e[n];let c="valid";for(let i of t.validator(e,u))i.explanation=n.message,c="not_val
32id",yield[i,void 0];for(let[l,R,I]of t.entries(e,u)){let t=run(R,I,{path:void 0===l?i:[...i,l],branch:void 0===l?s:[...s,R],coerce:o,mask:a,message:n.message});for(let n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):o&&(R=n[1],void 0===l?e=R:e instanceof Map?e.set(l,R):e instanceof Set?e.add(R):isObject(e)&&(void 0!==R||l in e)&&(e[l]=R))}if("not_valid"!==c)for(let i of t.refiner(e,u))i.explanation=n.message,c="not_refined",yield[i,void 0];"valid"===c&&(yield[void 0,e])}let Struct=class Struct{constructor(e){let{type:t,schema:n,validator:i,refiner:s,coercer:o=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=o,i?this.validator=(e,t)=>{let n=i(e,t);return toFailures(n,t,this,e)}:this.validator=()=>[],s?this.refiner=(e,t)=>{let n=s(e,t);return toFailures(n,t,this,e)}:this.refiner=()=>[]}assert(e,t){return assert(e,this,t)}create(e,t){return create(e,this,t)}is(e){return is(e,this)}mask(e,t){return mask(e,this,t)}validate(e,t={}){return validate(e,this,t)}};function assert(e,t,n){let i=validate(e,t,{message:n});if(i[0])throw i[0]}function create(e,t,n){let i=validate(e,t,{coerce:!0,message:n});if(!i[0])return i[1];throw i[0]}function mask(e,t,n){let i=validate(e,t,{coerce:!0,mask:!0,message:n});if(!i[0])return i[1];throw i[0]}function is(e,t){let n=validate(e,t);return!n[0]}function validate(e,t,n={}){let i=run(e,t,n),s=function(e){let{done:t,value:n}=e.next();return t?void 0:n}(i);if(s[0]){let e=new StructError(s[0],function*(){for(let e of i)e[0]&&(yield e[0])});return[e,void 0]}{let e=s[1];return[void 0,e]}}function assign(...e){let t="type"===e[0].type,n=e.map(e=>e.schema),i=Object.assign({},...n);return t?type(i):object(i)}function define(e,t){return new Struct({type:e,schema:null,validator:t})}function deprecated(e,t){return new Struct({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,i)=>void 0===n||(t(n,i),e.validator(n,i))})}function dynamic(e){return new Struct({type:"dynamic",schema:null,*entries(t,n){let i=e(t,n);yield*i.entries(t,n)},validator(t,n){let i=e(t,n);return i.validator(t,n)},coercer(t,n){let i=e(t,n);return i.coercer(t,n)},refiner(t,n){let i=e(t,n);return i.refiner(t,n)}})}function lazy(e){let t;return new Struct({type:"lazy",schema:null,*entries(n,i){t??(t=e()),yield*t.entries(n,i)},validator:(n,i)=>(t??(t=e()),t.validator(n,i)),coercer:(n,i)=>(t??(t=e()),t.coercer(n,i)),refiner:(n,i)=>(t??(t=e()),t.refiner(n,i))})}function omit(e,t){let{schema:n}=e,i={...n};for(let e of t)delete i[e];return"type"===e.type?type(i):object(i)}function partial(e){let t=e instanceof Struct,n=t?{...e.schema}:{...e};for(let e in n)n[e]=optional(n[e]);return t&&"type"===e.type?type(n):object(n)}function pick(e,t){let{schema:n}=e,i={};for(let e of t)i[e]=n[e];return"type"===e.type?type(i):object(i)}function struct(e,t){return console.warn("[email protected] - The `struct` helper has been renamed to `define`."),define(e,t)}function any(){return define("any",()=>!0)}function array(e){return new Struct({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,i]of t.entries())yield[n,i,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${print(e)}`})}function bigint(){return define("bigint",e=>"bigint"==typeof e)}function boolean(){return define("boolean",e=>"boolean"==typeof e)}function date(){return define("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${print(e)}`)}function enums(e){let t={},n=e.map(e=>print(e)).join();for(let n of e)t[n]=n;return new Struct({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${print(t)}`})}function func(){return define("func",e=>"function"==typeof e||`Expected a function, but received: ${print(e)}`)}function instance(e){return define("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${print(t)}`)}function integer(){return define("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${print(e)}`)}function intersection(e){return new Struct({type:"intersection",schema:null,*entries(t,n){for(let i of e)yield*i.entries(t,n)},*validator(t,n){for(let i of e)yield*i.validator(t,n)},*refiner(t,n){for(let i of e)yield*i.refiner(t,n)}})}function literal(e){let t=print(e),n=typeof e;return new Struct({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${print(n)}`})}function map(e,t){return new Struct({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[i,s]of n.entries())yield[i,i,e],yield[i,s,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${print(e)}`})}function never(){return define("never",()=>!1)}function nullable(e){return new Struct({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function number(){return define("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${print(e)}`)}function object(e){let t=e?Object.keys(e):[],n=never();return new Struct({type:"object",schema:e||null,*entries(i){if(e&&isObject(i)){let s=new Set(Object.keys(i));for(let n of t)s.delete(n),yield[n,i[n],e[n]];for(let e of s)yield[e,i[e],n]}},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`,coercer:e=>isObject(e)?{...e}:e})}function optional(e){return new Struct({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function record(e,t){return new Struct({type:"record",schema:null,*entries(n){if(isObject(n))for(let i in n){let s=n[i];yield[i,i,e],yield[i,s,t]}},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`})}function regexp(){return define("regexp",e=>e instanceof RegExp)}function set(e){return new Struct({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${print(e)}`})}function string(){return define("string",e=>"string"==typeof e||`Expected a string, but received: ${print(e)}`)}function tuple(e){let t=never();return new Struct({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){let i=Math.max(e.length,n.length);for(let s=0;s<i;s++)yield[s,n[s],e[s]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${print(e)}`})}function type(e){let t=Object.keys(e);return new Struct({type:"type",schema:e,*entries(n){if(isObject(n))for(let i of t)yield[i,n[i],e[i]]},validator:e=>isObject(e)||`Expected an object, but received: ${print(e)}`,coercer:e=>isObject(e)?{...e}:e})}function union(e){let t=e.map(e=>e.type).join(" | ");return new Struct({type:"union",schema:null,coercer(t){for(let n of e){let[e,i]=n.validate(t,{coerce:!0});if(!e)return i}return t},validator(n,i){let s=[];for(let t of e){let[...e]=run(n,t,i),[o]=e;if(!o[0])return[];for(let[t]of e)t&&s.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${print(n)}`,...s]}})}function unknown(){return define("unknown",()=>!0)}function coerce(e,t,n){return new Struct({...e,coercer:(i,s)=>is(i,t)?e.coercer(n(i,s),s):e.coercer(i,s)})}function defaulted(e,t,n={}){return coerce(e,unknown(),e=>{let i="function"==typeof t?t():t;if(void 0===e)return i;if(!n.strict&&isPlainObject(e)&&isPlainObject(i)){let t={...e},n=!1;for(let e in i)void 0===t[e]&&(t[e]=i[e],n=!0);if(n)return t}return e})}function trimmed(e){return coerce(e,string(),e=>e.trim())}function empty(e){return refine(e,"empty",t=>{let n=getSize(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``})}function getSize(e){return e instanceof Map||e instanceof Set?e.size:e.length}function max(e,t,n={}){let{exclusive:i}=n;return refine(e,"max",n=>i?n<t:n<=t||`Expected a ${e.type} less than ${i?"":"or equal to "}${t} but received \`${n}\``)}function min(e,t,n={}){let{exclusive:i}=n;return refine(e,"min",n=>i?n>t:n>=t||`Expected a ${e.type} greater than ${i?"":"or equal to "}${t} but received \`${n}\``)}function nonempty(e){return refine(e,"nonempty",t=>{let n=getSize(t);return n>0||`Expected a nonempty ${e.type} but received an empty one`})}function pattern(e,t){return refine(e,"pattern",n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`)}function size(e,t,n=t){let i=`Expected a ${e.type}`,s=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return refine(e,"size",e=>
32{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${i} ${s} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:o}=e;return t<=o&&o<=n||`${i} with a size ${s} but received one with a size of \`${o}\``}{let{length:o}=e;return t<=o&&o<=n||`${i} with a length ${s} but received one with a length of \`${o}\``}})}function refine(e,t,n){return new Struct({...e,*refiner(i,s){yield*e.refiner(i,s);let o=n(i,s),a=toFailures(o,s,e,i);for(let e of a)yield{...e,refinement:t}}})}}}]);
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.