@stakekit/widget 0.0.275 → 0.0.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/Codec-DJMwdgB9.js +1 -0
- package/dist/bundle/{MaybeAsync-Ckzmgrqr.js → MaybeAsync-DQF5lNPa.js} +1 -1
- package/dist/bundle/{build-BMMgmQqw.js → build-CcaOMxqz.js} +1 -1
- package/dist/bundle/{build-BNPMa-vT.js → build-Dzd_3NK0.js} +1 -1
- package/dist/bundle/{cardano-connector-DKXfujiC.js → cardano-connector-Vvgvc_SR.js} +2 -2
- package/dist/bundle/cosmos-connector-meta-Ck8JH12i.js +1 -0
- package/dist/bundle/{createConnector-BrxGIkT7.js → createConnector-pbKKdb_k.js} +2 -2
- package/dist/bundle/{images-BMN9-6Cl.js → images-qNtx67Rl.js} +1 -1
- package/dist/bundle/index.bundle.css +1 -1
- package/dist/bundle/index.bundle.js +52 -52
- package/dist/bundle/{ledger-connector-DmvRDcyN.js → ledger-connector-C4GRsXg2.js} +2 -2
- package/dist/bundle/{ledger-live-connector-meta-DDQWxYWw.js → ledger-live-connector-meta-DbuxO2yY.js} +1 -1
- package/dist/bundle/{misc-BLlpZ6ih.js → misc-BtIN6y6p.js} +1 -1
- package/dist/bundle/safe-connector-Bwgtw9lc.js +1 -0
- package/dist/bundle/solana-connector-CaIkxhTb.js +1 -0
- package/dist/bundle/{substrate-connector-BKHfZY_J.js → substrate-connector-BDRBscm1.js} +1 -1
- package/dist/bundle/{ton-connector-BRAeK9Od.js → ton-connector-CnNKzHtr.js} +2 -2
- package/dist/bundle/{transaction-ixhTmhET.js → transaction-DB7k-q8u.js} +1 -1
- package/dist/bundle/{tron-connector-Cr2j2DtV.js → tron-connector-C5KUqegL.js} +2 -2
- package/dist/bundle/tx-DygTArs0.js +1 -0
- package/dist/bundle/{wallet-manager-B2J-l9Hd.js → wallet-manager-C9fisl4Y.js} +2 -2
- package/dist/package/{Codec-Byh8iois.js → Codec-Bae2iyFH.js} +1 -1
- package/dist/package/{MaybeAsync-BZLAl2bE.js → MaybeAsync-DXWsPM9n.js} +1 -1
- package/dist/package/{build-jVm_Imk7.js → build-CYy6v80s.js} +1 -1
- package/dist/package/{build-BxgetfN5.js → build-GgZW6uL5.js} +2 -2
- package/dist/package/{cardano-connector-DPlMH8wa.js → cardano-connector-CchOT0g5.js} +3 -3
- package/dist/package/{cosmos-connector-meta-MR5we2DB.js → cosmos-connector-meta-Dtfahon-.js} +2 -2
- package/dist/package/{createConnector-c-2Ie22W.js → createConnector-D-p8-Ebj.js} +1 -10
- package/dist/package/{images-0ZMBvxwm.js → images-B0-tGuTw.js} +1 -1
- package/dist/package/index.package.css +1335 -1265
- package/dist/package/index.package.js +5253 -5246
- package/dist/package/{ledger-connector-Cf6yV8eL.js → ledger-connector-BhbNzz5z.js} +5 -5
- package/dist/package/{ledger-live-connector-meta-CIDYYFrg.js → ledger-live-connector-meta-C4-iTYoS.js} +3 -3
- package/dist/package/{misc-Erb32S3W.js → misc-DFHb1ynZ.js} +1 -1
- package/dist/package/{safe-connector-B8DuxkSp.js → safe-connector-CAgz56zm.js} +2 -2
- package/dist/package/{solana-connector-BgSU_Au0.js → solana-connector-C4-3zQ0W.js} +2 -2
- package/dist/package/{substrate-connector-CfrmkJYW.js → substrate-connector-WYvMgtq6.js} +2 -2
- package/dist/package/{ton-connector-tEtLRW28.js → ton-connector-DGVU07fk.js} +4 -4
- package/dist/package/{transaction-BaxD0vuC.js → transaction-BhfOz9qC.js} +2 -2
- package/dist/package/{tron-connector-DGBu9r65.js → tron-connector-Bx8ow-to.js} +4 -4
- package/dist/package/tx-DQaheDj7.js +3 -0
- package/dist/package/{wallet-manager-D5jYaNnr.js → wallet-manager-Bf0VaUFt.js} +10 -10
- package/dist/types/components/atoms/box/index.d.ts +3 -3
- package/dist/types/components/atoms/button/styles.css.d.ts +3 -0
- package/dist/types/components/atoms/divider/styles.css.d.ts +1 -3
- package/dist/types/components/atoms/max-button/styles.css.d.ts +2 -8
- package/dist/types/components/atoms/select-modal/styles.css.d.ts +1 -9
- package/dist/types/components/atoms/token-icon/network-icon-image/index.d.ts +2 -1
- package/dist/types/components/molecules/estimated-reward-amounts/index.d.ts +6 -0
- package/dist/types/components/molecules/summary-item/index.css.d.ts +21 -15
- package/dist/types/domain/types/yields.d.ts +1 -2
- package/dist/types/hooks/api/use-dashboard-yield-catalog.d.ts +1 -2
- package/dist/types/hooks/api/use-multi-yields.d.ts +4 -2
- package/dist/types/hooks/api/use-yield-summaries.d.ts +0 -5
- package/dist/types/pages/complete/hooks/use-complete.hook.d.ts +2 -0
- package/dist/types/pages/complete/state/index.d.ts +2 -0
- package/dist/types/pages/components/page-cta.d.ts +11 -0
- package/dist/types/pages/details/activity-page/components/activity-filters/styles.css.d.ts +1 -1
- package/dist/types/pages/details/earn-page/components/select-token-section/styles.css.d.ts +6 -2
- package/dist/types/pages/details/earn-page/components/select-yield-section/styles.css.d.ts +1 -0
- package/dist/types/pages/details/earn-page/state/types.d.ts +7 -6
- package/dist/types/pages/details/earn-page/state/use-get-init-yield.d.ts +3 -1
- package/dist/types/pages/details/earn-page/state/use-init-yield.d.ts +3 -1
- package/dist/types/pages/review/hooks/use-action-review.hook.d.ts +2 -0
- package/dist/types/pages/review/hooks/use-pending-review.hook.d.ts +2 -0
- package/dist/types/pages/review/hooks/use-stake-review.hook.d.ts +6 -0
- package/dist/types/pages/review/hooks/use-unstake-review.hook.d.ts +2 -0
- package/dist/types/pages/review/pages/common-page/common.page.d.ts +7 -1
- package/dist/types/pages/review/pages/common-page/components/review-top-section.d.ts +5 -1
- package/dist/types/pages/steps/hooks/use-steps.hook.d.ts +2 -0
- package/dist/types/pages-dashboard/common/components/styles.css.d.ts +2 -4
- package/dist/types/pages-dashboard/common/components/tabs/styles.css.d.ts +8 -7
- package/dist/types/pages-dashboard/overview/earn-details/earn-details-formatters.d.ts +2 -0
- package/dist/types/pages-dashboard/overview/earn-page/styles.css.d.ts +4 -8
- package/dist/types/pages-dashboard/overview/positions/styles.css.d.ts +3 -1
- package/dist/types/pages-dashboard/position-details/components/position-details-stake-actions.d.ts +0 -4
- package/dist/types/providers/theme-wrapper.d.ts +7 -0
- package/dist/types/styles/theme/atoms.css.d.ts +3 -3
- package/dist/types/styles/theme/contract.css.d.ts +7 -0
- package/dist/types/styles/theme/properties.d.ts +21 -0
- package/dist/types/styles/theme/themes.d.ts +14 -0
- package/dist/types/styles/tokens/colors/contract.d.ts +7 -0
- package/dist/types/translation/resources.d.ts +4 -0
- package/dist/types/utils/formatters.d.ts +1 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/website/assets/Codec-C8kGgbSv.js +1 -0
- package/dist/website/assets/{basic-AvmmQyRT.js → basic-CjEpjfzf.js} +1 -1
- package/dist/website/assets/{basic-B4L21H7R.js → basic-pwmIJ5Ws.js} +1 -1
- package/dist/website/assets/{browser-CD2gtnKg.js → browser-CCqMUd7Y.js} +1 -1
- package/dist/website/assets/{build-CEL1SZmV.js → build-B7EKreOf.js} +1 -1
- package/dist/website/assets/{build-DWB27dsZ.js → build-BJXYN5Yd.js} +1 -1
- package/dist/website/assets/{cardano-connector-BNJvqm1_.js → cardano-connector-Cpx-YJd6.js} +2 -2
- package/dist/website/assets/{core-NRhVeH3P.js → core-CJ6UoY0G.js} +2 -2
- package/dist/website/assets/{createConnector-BcHSC56W.js → createConnector-mvBxgXDZ.js} +2 -2
- package/dist/website/assets/{dist-CH4nKZqs.js → dist-BTQzphBJ.js} +1 -1
- package/dist/website/assets/{dist-DRLRXyTA.js → dist-DUXhuB4w.js} +1 -1
- package/dist/website/assets/en_US-IFPOGBSL-DiQE412U.js +1 -0
- package/dist/website/assets/{esm-CX7v7VH6.js → esm-CU6m2Mgh.js} +1 -1
- package/dist/website/assets/{exports-CZja-uIB.js → exports-C-Rr_VQ2.js} +1 -1
- package/dist/website/assets/index-DOaPAEx0.css +1 -0
- package/dist/website/assets/index-STnzu3ZH.js +2044 -0
- package/dist/website/assets/{index.es-C4PtkNtC.js → index.es-DfIWVmF0.js} +2 -2
- package/dist/website/assets/{ledger-connector-CQI9gS0Q.js → ledger-connector-BL2CqkDZ.js} +2 -2
- package/dist/website/assets/{receive-D87X5CO9.js → receive-DbQB8Kb0.js} +1 -1
- package/dist/website/assets/{registry-DFrHgvrU.js → registry-DQZCfZdW.js} +1 -1
- package/dist/website/assets/safe-connector-DpMirNdU.js +1 -0
- package/dist/website/assets/{socials-DlOk7Wls.js → socials-CVEdW2YA.js} +1 -1
- package/dist/website/assets/solana-connector-D8iHz3KE.js +1 -0
- package/dist/website/assets/{substrate-connector-DfJfljNz.js → substrate-connector-DzMk8xI3.js} +1 -1
- package/dist/website/assets/{ton-connector-DA1-w57X.js → ton-connector-DkGy3-Cc.js} +2 -2
- package/dist/website/assets/{tron-connector-BTe1GdWY.js → tron-connector-CK8wKQTX.js} +3 -3
- package/dist/website/assets/tx-4iZZqojA.js +1 -0
- package/dist/website/assets/{wallet-manager-pYzGZQVw.js → wallet-manager-_pvCvRVJ.js} +4 -4
- package/dist/website/assets/{wui-qr-code-BgRoILGj.js → wui-qr-code-DvTvu_mf.js} +1 -1
- package/dist/website/index.html +4 -4
- package/package.json +1 -1
- package/dist/bundle/Codec-FOvoaP2K.js +0 -1
- package/dist/bundle/cosmos-connector-meta-DO5i3lCd.js +0 -1
- package/dist/bundle/safe-connector-BgDwaGsX.js +0 -1
- package/dist/bundle/solana-connector-h5iUra8H.js +0 -1
- package/dist/bundle/tx-C-_PyHR9.js +0 -1
- package/dist/package/tx-DpCUKNN4.js +0 -3
- package/dist/types/hooks/api/use-token-list-yields.d.ts +0 -16
- package/dist/types/pages/components/footer-outlet/context.d.ts +0 -20
- package/dist/types/pages/components/footer-outlet/index.d.ts +0 -1
- package/dist/types/pages/components/footer-outlet/styles.css.d.ts +0 -1
- package/dist/types/pages-dashboard/common/components/footer-outlet/index.d.ts +0 -1
- package/dist/website/assets/Codec-D4K5RIsS.js +0 -1
- package/dist/website/assets/en_US-IFPOGBSL-DcKUUZBp.js +0 -1
- package/dist/website/assets/index-BEIkkHR9.js +0 -2044
- package/dist/website/assets/index-BmH6Rgkr.css +0 -1
- package/dist/website/assets/safe-connector-D5A7hhAW.js +0 -1
- package/dist/website/assets/solana-connector-C1qGbaG8.js +0 -1
- package/dist/website/assets/tx-zX2fdmDi.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e,H as t,V as n,W as r}from"./createConnector-pbKKdb_k.js";import{c as i,r as a,s as o}from"./Codec-DJMwdgB9.js";var s=e=>`${n.appPrefix}@1//${e}`,c={[s(`skPubKeys`)]:o(i,i),[s(`tosAccepted`)]:a},l=n=>{let i=e.extractNullable();if(!i)return r(null);let a=i.localStorage.getItem(n);return a?t.encase(()=>JSON.parse(a)).chainLeft(()=>r(a)).chain(e=>c[n].decode(e).map(e=>e).mapLeft(e=>Error(e))):r(null)},u=(n,r)=>{let i=e.extractNullable();return t.encase(()=>i?.localStorage.setItem(n,JSON.stringify(r))).ifRight(()=>p(n))},d={[s(`skPubKeys`)]:new Map,[s(`tosAccepted`)]:new Map},f=(e,t)=>(d[e].set(t,t),()=>d[e].delete(t)),p=e=>{l(e).ifRight(t=>d[e].forEach(e=>{e(t)}))},m={type:`cosmosProvider`},h=e=>e.type===m.type;export{u as a,l as i,h as n,f as r,m as t};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DskFaGUe.js";var t={of(e){return i(e)},empty(){return a},zero(){return a},fromNullable(e){return e==null?a:i(e)},fromFalsy(e){return e?i(e):a},fromPredicate(e,n){switch(arguments.length){case 1:return n=>t.fromPredicate(e,n);default:return e(n)?i(n):a}},mapMaybe(e,n){switch(arguments.length){case 1:return n=>t.mapMaybe(e,n);default:return t.catMaybes(n.map(e))}},catMaybes(e){let t=[];for(let n of e)n.isJust()&&t.push(n.extract());return t},encase(e){try{return i(e())}catch{return a}},isMaybe(e){return e instanceof n||e instanceof r},sequence(e){let t=[];for(let n of e)if(n.isJust())t.push(n.extract());else return a;return i(t)},"fantasy-land/of"(e){return this.of(e)},"fantasy-land/empty"(){return this.empty()},"fantasy-land/zero"(){return this.zero()}},n=class{constructor(e){this.__value=e}isJust(){return!0}isNothing(){return!1}inspect(){return`Just(${this.__value})`}[Symbol.for(`nodejs.util.inspect.custom`)](e,t,n){return`Just(${n(this.__value,t)})`}toString(){return this.inspect()}toJSON(){let e=this.__value;return e instanceof Date?e.toJSON():e}equals(e){return this.extract()===e.extract()}map(e){return i(e(this.__value))}ap(e){return e.isJust()?this.map(e.extract()):a}alt(e){return this}altLazy(e){return this}chain(e){return e(this.__value)}chainNullable(e){return t.fromNullable(e(this.__value))}join(){return this.__value}reduce(e,t){return e(t,this.__value)}extend(e){return i(e(this))}unsafeCoerce(){return this.__value}caseOf(e){return`_`in e?e._():e.Just(this.__value)}orDefault(e){return this.__value}orDefaultLazy(e){return this.__value}toList(){return[this.__value]}mapOrDefault(e,t){return e(this.__value)}extract(){return this.__value}extractNullable(){return this.__value}toEither(e){return u(this.__value)}ifJust(e){return e(this.__value),this}ifNothing(e){return this}filter(e){return e(this.__value)?i(this.__value):a}};n.prototype[`fantasy-land/equals`]=n.prototype.equals,n.prototype[`fantasy-land/map`]=n.prototype.map,n.prototype[`fantasy-land/ap`]=n.prototype.ap,n.prototype[`fantasy-land/alt`]=n.prototype.alt,n.prototype[`fantasy-land/chain`]=n.prototype.chain,n.prototype[`fantasy-land/reduce`]=n.prototype.reduce,n.prototype[`fantasy-land/extend`]=n.prototype.extend,n.prototype[`fantasy-land/filter`]=n.prototype.filter,n.prototype.constructor=t;var r=class{isJust(){return!1}isNothing(){return!0}inspect(){return`Nothing`}[Symbol.for(`nodejs.util.inspect.custom`)](){return`Nothing`}toString(){return this.inspect()}toJSON(){return this.__value}equals(e){return this.extract()===e.extract()}map(e){return a}ap(e){return a}alt(e){return e}altLazy(e){return e()}chain(e){return a}chainNullable(e){return a}join(){return a}reduce(e,t){return t}extend(e){return a}unsafeCoerce(){throw Error(`Maybe#unsafeCoerce was ran on a Nothing`)}caseOf(e){return`_`in e?e._():e.Nothing()}orDefault(e){return e}orDefaultLazy(e){return e()}toList(){return[]}mapOrDefault(e,t){return t}extract(){}extractNullable(){return null}toEither(e){return l(e)}ifJust(e){return this}ifNothing(e){return e(),this}filter(e){return a}};r.prototype[`fantasy-land/equals`]=r.prototype.equals,r.prototype[`fantasy-land/map`]=r.prototype.map,r.prototype[`fantasy-land/ap`]=r.prototype.ap,r.prototype[`fantasy-land/alt`]=r.prototype.alt,r.prototype[`fantasy-land/chain`]=r.prototype.chain,r.prototype[`fantasy-land/reduce`]=r.prototype.reduce,r.prototype[`fantasy-land/extend`]=r.prototype.extend,r.prototype[`fantasy-land/filter`]=r.prototype.filter,r.prototype.constructor=t;var i=e=>new n(e),a=new r,o={of(e){return u(e)},lefts(e){let t=[];for(let n of e)n.isLeft()&&t.push(n.extract());return t},rights(e){let t=[];for(let n of e)n.isRight()&&t.push(n.extract());return t},encase(e){try{return u(e())}catch(e){return l(e)}},sequence(e){let t=[];for(let n of e){if(n.isLeft())return n;t.push(n.extract())}return u(t)},isEither(e){return e instanceof c||e instanceof s},"fantasy-land/of"(e){return o.of(e)}},s=class{constructor(e){this.__value=e,this._=`R`}isLeft(){return!1}isRight(){return!0}toJSON(){return this.__value}inspect(){return`Right(${this.__value})`}[Symbol.for(`nodejs.util.inspect.custom`)](e,t,n){return`Right(${n(this.__value,t)})`}toString(){return this.inspect()}bimap(e,t){return u(t(this.__value))}map(e){return u(e(this.__value))}mapLeft(e){return this}ap(e){return e.isRight()?this.map(e.extract()):e}equals(e){return e.isRight()?this.__value===e.extract():!1}chain(e){return e(this.__value)}chainLeft(e){return this}join(){return this.__value}alt(e){return this}altLazy(e){return this}reduce(e,t){return e(t,this.__value)}extend(e){return u(e(this))}unsafeCoerce(){return this.__value}caseOf(e){return`_`in e?e._():e.Right(this.__value)}leftOrDefault(e){return e}orDefault(e){return this.__value}orDefaultLazy(e){return this.__value}leftOrDefaultLazy(e){return e()}ifLeft(e){return this}ifRight(e){return e(this.__value),this}toMaybe(){return i(this.__value)}leftToMaybe(){return a}extract(){return this.__value}swap(){return l(this.__value)}};s.prototype[`fantasy-land/bimap`]=s.prototype.bimap,s.prototype[`fantasy-land/map`]=s.prototype.map,s.prototype[`fantasy-land/ap`]=s.prototype.ap,s.prototype[`fantasy-land/equals`]=s.prototype.equals,s.prototype[`fantasy-land/chain`]=s.prototype.chain,s.prototype[`fantasy-land/alt`]=s.prototype.alt,s.prototype[`fantasy-land/reduce`]=s.prototype.reduce,s.prototype[`fantasy-land/extend`]=s.prototype.extend,s.prototype.constructor=o;var c=class{constructor(e){this.__value=e,this._=`L`}isLeft(){return!0}isRight(){return!1}toJSON(){return this.__value}inspect(){return`Left(${JSON.stringify(this.__value)})`}[Symbol.for(`nodejs.util.inspect.custom`)](e,t,n){return`Left(${n(this.__value,t)})`}toString(){return this.inspect()}bimap(e,t){return l(e(this.__value))}map(e){return this}mapLeft(e){return l(e(this.__value))}ap(e){return e.isLeft()?e:this}equals(e){return e.isLeft()?e.extract()===this.__value:!1}chain(e){return this}chainLeft(e){return e(this.__value)}join(){return this}alt(e){return e}altLazy(e){return e()}reduce(e,t){return t}extend(e){return this}unsafeCoerce(){throw this.__value instanceof Error?this.__value:Error(`Either#unsafeCoerce was ran on a Left`)}caseOf(e){return`_`in e?e._():e.Left(this.__value)}leftOrDefault(e){return this.__value}orDefault(e){return e}orDefaultLazy(e){return e()}leftOrDefaultLazy(e){return this.__value}ifLeft(e){return e(this.__value),this}ifRight(e){return this}toMaybe(){return a}leftToMaybe(){return i(this.__value)}extract(){return this.__value}swap(){return u(this.__value)}};c.prototype[`fantasy-land/bimap`]=c.prototype.bimap,c.prototype[`fantasy-land/map`]=c.prototype.map,c.prototype[`fantasy-land/ap`]=c.prototype.ap,c.prototype[`fantasy-land/equals`]=c.prototype.equals,c.prototype[`fantasy-land/chain`]=c.prototype.chain,c.prototype[`fantasy-land/alt`]=c.prototype.alt,c.prototype[`fantasy-land/reduce`]=c.prototype.reduce,c.prototype[`fantasy-land/extend`]=c.prototype.extend,c.prototype.constructor=o;var l=e=>new c(e),u=e=>new s(e),d=`https://assets.stakek.it`,f={appName:`Yield.xyz`,appIcon:`${d}/stakekit/sk-icon_320x320.png`,appUrl:`https://yield.xyz`,currency:`USD`,queryClient:{staleTime:1e3*5,cacheTime:1e3*60*5},walletConnectV2:{projectId:`10a5257c04d1d3097ff768a139c95f50`},appPrefix:`sk-widget`,env:{apiUrl:`https://api.stakek.it/`,yieldsApiUrl:`https://api.yield.xyz`,isTestMode:!1,isDevMode:!1,forceAddress:void 0},assetsUrl:d,zerion:{tracking:`2cbed59baa70c46f7cadef7b05eb1bc3`,iconsByAddress:`https://token-icons.s3.amazonaws.com/`,iconsByNetwork:`https://chain-icons.s3.amazonaws.com/`}},p=t.fromNullable(typeof window>`u`?null:window);function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);w(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function h(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function g(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function _(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function v(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function y(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function b(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function S(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof x?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function C(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof v==`function`?v(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var w,T,E=e((()=>{w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},w(e,t)},T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T.apply(this,arguments)}})),D=re(),O=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ee=Math.ceil,k=Math.floor,A=`[BigNumber Error] `,j=0x5af3107a4000,M=14,te=9007199254740991,ne=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000],N=1e7,P=1e9;function re(e){var t,n,r=/^(-?)0([xbo])(?=[^.])/i,i=/^-?(Infinity|NaN)$/,a=/^\s*\+(?!-)|^\s+|\s+$/g,o=b.prototype={constructor:b,toString:null,valueOf:null},s=new b(1),c=20,l=4,u=-7,d=21,f=-1e7,p=1e7,m=!1,h=!0,g=1,_=0,v={prefix:``,negativeSign:`-`,positiveSign:``,groupSeparator:`,`,groupSize:3,secondaryGroupSize:0,decimalSeparator:`.`,fractionGroupSeparator:``,fractionGroupSize:0,suffix:``},y=`0123456789abcdefghijklmnopqrstuvwxyz`;function b(e,t){var n,o,s,c,l=this;if(!(l instanceof b))return new b(e,t);if(c=typeof e,t==null){if(w(e)){l.s=e.s,!e.c||e.e>p?l.c=l.e=null:e.e<f?l.c=[l.e=0]:(l.e=e.e,l.c=e.c.slice());return}if(c==`number`){if(e*0!=0){l.s=isNaN(e)?null:e<0?-1:1,l.c=l.e=null;return}if(l.s=1/e<0?(e=-e,-1):1,e===~~e){for(n=0,o=e;o>=10;o/=10,n++);n>p?l.c=l.e=null:(l.e=n,l.c=[e]);return}return x(l,String(e))}if(c==`bigint`)return l.s=e<0?(e=-e,-1):1,x(l,String(e));if(c==`string`)s=e;else{if(h)throw Error(A+`BigNumber, string, number, or BigInt expected: `+e);s=String(e)}if(O.test(s))return l.s=s.charCodeAt(0)==45?(s=s.slice(1),-1):1,x(l,s);if(s=s.replace(a,``),i.test(s)){l.s=isNaN(s)?null:s<0?-1:1,l.c=l.e=null;return}if(s=s.replace(r,function(e,n,r){return t=(r=r.toLowerCase())==`x`?16:r==`b`?2:8,n}),t)return S(l,s,t,e);if(s=s.replace(/(\d)_(?=\d)/g,`$1`),O.test(s))return l.s=s.charCodeAt(0)==45?(s=s.slice(1),-1):1,x(l,s);if(h)throw Error(A+`Not a number: `+e);l.s=l.c=l.e=null}else{if(c!=`string`){if(h)throw Error(A+`String expected: `+e);e=String(e)}R(t,2,y.length,`Base`),S(l,e.replace(a,``),t,e)}}b.clone=re,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(e){var t,n;if(e!=null)if(typeof e==`object`){if(e.hasOwnProperty(t=`DECIMAL_PLACES`)&&(c=R(e[t],0,P,t)),e.hasOwnProperty(t=`ROUNDING_MODE`)&&(l=R(e[t],0,8,t)),e.hasOwnProperty(t=`EXPONENTIAL_AT`)&&(n=e[t],z(n)?(R(n[0],-P,0,t),R(n[1],0,P,t),u=n[0],d=n[1]):u=-(d=R(n,-P,P,t)<0?-n:n)),e.hasOwnProperty(t=`RANGE`))if(n=e[t],n)z(n)?(R(n[0],-P,-1,t),R(n[1],1,P,t),f=n[0],p=n[1]):f=-(p=R(n,-P,P,t)<0?-n:n);else throw Error(A+t+` cannot be zero: `+n);if(e.hasOwnProperty(t=`CRYPTO`))if(n=e[t],n===!!n)if(n)if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))m=n;else throw m=!n,Error(A+`crypto unavailable`);else m=n;else throw Error(A+t+` not true or false: `+n);if(e.hasOwnProperty(t=`STRICT`))if(n=e[t],n===!!n)h=n;else throw Error(A+t+` not true or false: `+n);if(e.hasOwnProperty(t=`MODULO_MODE`)&&(g=R(e[t],0,9,t)),e.hasOwnProperty(t=`POW_PRECISION`)&&(_=R(e[t],0,P,t)),e.hasOwnProperty(t=`FORMAT`))if(n=e[t],typeof n==`object`)for(t in n)n.hasOwnProperty(t)&&v.hasOwnProperty(t)&&(v[t]=n[t]);else throw Error(A+t+` not an object: `+n);if(e.hasOwnProperty(t=`ALPHABET`))if(n=e[t],typeof n==`string`&&!/^.?$|[+\-.\s]|(.).*\1/.test(n))y=n;else throw Error(A+t+` invalid: `+n)}else throw Error(A+`Object expected: `+e);return{DECIMAL_PLACES:c,ROUNDING_MODE:l,EXPONENTIAL_AT:[u,d],RANGE:[f,p],CRYPTO:m,STRICT:h,MODULO_MODE:g,POW_PRECISION:_,FORMAT:v,ALPHABET:y}},b.fromFormat=function(e,t){if(typeof e!=`string`)throw Error(A+`Not a string: `+e);if(t==null)t=v;else if(typeof t!=`object`)throw Error(A+`Argument not an object: `+t);else t=D(t);var n,r,i,a,o=t.negativeSign||`-`,s=t.positiveSign||``,c=t.prefix||``,l=t.suffix||``,u=t.groupSeparator||``,d=t.decimalSeparator||`.`,f=t.fractionGroupSeparator||``;if(c&&e.indexOf(c)===0&&(e=e.slice(c.length)),l&&e.lastIndexOf(l)===e.length-l.length&&(e=e.slice(0,-l.length)),o&&e.indexOf(o)===0?(e=e.slice(o.length),r=!0):s&&e.indexOf(s)===0&&(e=e.slice(s.length)),n=e.indexOf(d),n<0){if(u)for(;e.indexOf(u)>-1;)e=e.replace(u,``)}else{if(i=e.slice(0,n),a=e.slice(n+d.length),u)for(;i.indexOf(u)>-1;)i=i.replace(u,``);if(f)for(;a.indexOf(f)>-1;)a=a.replace(f,``);e=i+`.`+a}return new b(r?`-`+e:e)},b.isBigNumber=function(e){if(!w(e))return!1;var t,n,r=e.c,i=e.e,a=e.s;if(!z(r))return r===null&&i===null&&(a===null||a===1||a===-1);if(a!==1&&a!==-1||i<-P||i>P||i!==k(i))return!1;if(r[0]===0)return i===0&&r.length===1;if(t=(i+1)%M,t<1&&(t+=M),String(r[0]).length!==t)return!1;for(t=0;t<r.length;t++)if(n=r[t],n<0||n>=j||n!==k(n))return!1;return n!==0},b.maximum=b.max=function(){return T(arguments,-1)},b.minimum=b.min=function(){return T(arguments,1)},b.random=(function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return k(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var n,r,i,a,o,l=0,u=[],d=new b(s);if(e=e==null?c:R(e,0,P),a=ee(e/M),m)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(a*=2));l<a;)o=n[l]*131072+(n[l+1]>>>11),o>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(u.push(o%0x5af3107a4000),l+=2);l=a/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(a*=7);l<a;)o=(n[l]&31)*281474976710656+n[l+1]*1099511627776+n[l+2]*4294967296+n[l+3]*16777216+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6],o>=9e15?crypto.randomBytes(7).copy(n,l):(u.push(o%0x5af3107a4000),l+=7);l=a/7}else throw m=!1,Error(A+`crypto unavailable`);if(!m)for(;l<a;)o=t(),o<9e15&&(u[l++]=o%0x5af3107a4000);for(a=u[--l],e%=M,a&&e&&(o=ne[M-e],u[l]=k(a/o)*o);u[l]===0;u.pop(),l--);if(l<0)u=[i=0];else{for(i=-1;u[0]===0;u.splice(0,1),i-=M);for(l=1,o=u[0];o>=10;o/=10,l++);l<M&&(i-=M-l)}return d.e=i,d.c=u,d}})(),b.sum=function(){for(var e=0,t=new b(0);e<arguments.length;)t=t.plus(arguments[e++]);return t};function x(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(i=t.length;t.charCodeAt(--i)===48;);if(t=t.slice(r,++i))if(i-=r,n=n-r-1,n>p)e.c=e.e=null;else if(n<f)e.c=[e.e=0];else{if(e.e=n,e.c=[],r=(n+1)%M,n<0&&(r+=M),r<i){for(r&&e.c.push(+t.slice(0,r)),i-=M;r<i;)e.c.push(+t.slice(r,r+=M));r=M-(t=t.slice(r)).length}else r-=i;for(;r--;t+=`0`);e.c.push(+t)}else e.c=[e.e=0]}function S(e,t,r,i){var a,o,s=y.slice(0,r),c=0,l=``,u=!1,d=!1,f=!1;for(e.s=t.charCodeAt(0)===45?(t=t.slice(1),-1):1,o=t.length;c<o;c++){if(a=t.charAt(c),s.indexOf(a)>=0){l+=a,d=!0;continue}if(a==`_`){if(d&&c+1<o){d=!1;continue}}else if(a==`.`){if(c==0||!u&&d){if(c+1==o)break;c==0&&(l=`0`),l+=a,u=!0,d=!1;continue}}else if(!f&&(t==t.toUpperCase()&&s==s.toLowerCase()&&(t=t.toLowerCase())||t==t.toLowerCase()&&s==s.toUpperCase()&&(t=t.toUpperCase()))){c=-1,l=``,f=!0,u=d=!1;continue}if(h)throw Error(A+`Not a base `+r+` number: `+i);e.s=e.c=e.e=null;return}x(e,n(l,r,10,e.s))}n=(function(){var e=`0123456789`;function n(e,t,n,r){for(var i,a=[0],o,s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(a[i+1]??(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,a,o,s){var u,d,f,p,m,h,g,v,x=r.indexOf(`.`),S=c,C=l;for(x>=0&&(p=_,_=0,r=r.replace(`.`,``),v=new b(i),h=v.pow(r.length-x),_=p,v.c=n(H(I(h.c),h.e,`0`),10,a,e),v.e=v.c.length),g=n(r,i,a,s?(u=y,e):(u=e,y)),f=p=g.length;g[--p]==0;g.pop());if(!g[0])return u.charAt(0);if(x<0?--f:(h.c=g,h.e=f,h.s=o,h=t(h,v,S,C,a),g=h.c,m=h.r,f=h.e),d=f+S+1,x=g[d],p=a/2,m=m||d<0||g[d+1]!=null,m=C<4?(x!=null||m)&&(C==0||C==(h.s<0?3:2)):x>p||x==p&&(C==4||m||C==6&&g[d-1]&1||C==(h.s<0?8:7)),d<1||!g[0])r=m?H(u.charAt(1),-S,u.charAt(0)):u.charAt(0);else{if(d<g.length&&(g.length=d),m)for(--a;++g[--d]>a;)g[d]=0,d||(++f,g=[1].concat(g));for(p=g.length;!g[--p];);for(x=0,r=``;x<=p;r+=u.charAt(g[x++]));r=H(r,f,u.charAt(0))}return r}})(),t=(function(){function e(e,t,n){var r,i,a,o,s=0,c=e.length,l=t%N,u=t/N|0;for(e=e.slice();c--;)a=e[c]%N,o=e[c]/N|0,r=u*a+o*l,i=l*a+r%N*N+s,s=(i/n|0)+(r/N|0)+u*o,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var c,l,u,d,f,p,m,h,g,_,v,y,x,S,C,w,T,E=r.s==i.s?1:-1,D=r.c,O=i.c;if(!D||!D[0]||!O||!O[0])return new b(!r.s||!i.s||(D?O&&D[0]==O[0]:!O)?NaN:D&&D[0]==0||!O?E*0:E/0);for(h=new b(E),g=h.c=[],l=r.e-i.e,E=a+l+1,s||(s=j,l=F(r.e/M)-F(i.e/M),E=E/M|0),u=0;O[u]==(D[u]||0);u++);if(O[u]>(D[u]||0)&&l--,E<0)g.push(1),d=!0;else{for(S=D.length,w=O.length,u=0,E+=2,f=k(s/(O[0]+1)),f>1&&(O=e(O,f,s),D=e(D,f,s),w=O.length,S=D.length),x=w,_=D.slice(0,w),v=_.length;v<w;_[v++]=0);T=O.slice(),T=[0].concat(T),C=O[0],O[1]>=s/2&&C++;do{if(f=0,c=t(O,_,w,v),c<0){if(y=_[0],w!=v&&(y=y*s+(_[1]||0)),f=k(y/C),f>1)for(f>=s&&(f=s-1),p=e(O,f,s),m=p.length,v=_.length;t(p,_,m,v)==1;)f--,n(p,w<m?T:O,m,s),m=p.length,c=1;else f==0&&(c=f=1),p=O.slice(),m=p.length;if(m<v&&(p=[0].concat(p)),n(_,p,v,s),v=_.length,c==-1)for(;t(O,_,w,v)<1;)f++,n(_,w<v?T:O,v,s),v=_.length}else c===0&&(f++,_=[0]);g[u++]=f,_[0]?_[v++]=D[x]||0:(_=[D[x]],v=1)}while((x++<S||_[0]!=null)&&E--);d=_[0]!=null,g[0]||g.splice(0,1)}if(s==j){for(u=1,E=g[0];E>=10;E/=10,u++);U(h,a+(h.e=u+l*M-1)+1,o,d)}else h.e=l,h.r=+d;return h}})();function C(e,t,n,r){var i,a,o,s,c;if(n=n==null?l:R(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,t==null)c=I(e.c),c=r==1||r==2&&(o<=u||o>=d)?V(c,o):H(c,o,`0`);else if(e=U(new b(e),t,n),a=e.e,c=I(e.c),s=c.length,r==1||r==2&&(t<=a||a<=u)){for(;s<t;c+=`0`,s++);c=V(c,a)}else if(t-=o+(r===2&&a>o),c=H(c,a,`0`),a+1>s){if(--t>0)for(c+=`.`;t--;c+=`0`);}else if(t+=a-s,t>0)for(a+1==s&&(c+=`.`);t--;c+=`0`);return e.s<0&&i?`-`+c:c}function w(e){return e instanceof b||!!e&&e._isBigNumber===!0}function T(e,t){for(var n,r,i=1,a=new b(e[0]);i<e.length;i++)r=new b(e[i]),(!r.s||(n=L(a,r))===t||n===0&&a.s===t)&&(a=r);return a}function E(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*M-1)>p?e.c=e.e=null:n<f?e.c=[e.e=0]:(e.e=n,e.c=t),e}function D(e){var t,n={};for(t in v)v.hasOwnProperty(t)&&(n[t]=e.hasOwnProperty(t)?e[t]:v[t]);return n}function U(e,t,n,r){var i,a,o,s,c,l,u,d=e.c,m=ne;if(d){out:{for(i=1,s=d[0];s>=10;s/=10,i++);if(a=t-i,a<0)a+=M,o=t,c=d[l=0],u=k(c/m[i-o-1]%10);else if(l=ee((a+1)/M),l>=d.length)if(r){for(;d.length<=l;d.push(0));c=u=0,i=1,a%=M,o=a-M+1}else break out;else{for(c=s=d[l],i=1;s>=10;s/=10,i++);a%=M,o=a-M+i,u=o<0?0:k(c/m[i-o-1]%10)}if(r=r||t<0||d[l+1]!=null||(o<0?c:c%m[i-o-1]),r=n<4?(u||r)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||r||n==6&&(a>0?o>0?c/m[i-o]:0:d[l-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,r?(t-=e.e+1,d[0]=m[(M-t%M)%M],e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=l,s=1,l--):(d.length=l+1,s=m[M-a],d[l]=o>0?k(c/m[i-o]%m[o])*s:0),r)for(;;)if(l==0){for(a=1,o=d[0];o>=10;o/=10,a++);for(o=d[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,d[0]==j&&(d[0]=1));break}else{if(d[l]+=s,d[l]!=j)break;d[l--]=0,s=1}for(a=d.length;d[--a]===0;d.pop());}e.e>p?e.c=e.e=null:e.e<f&&(e.c=[e.e=0])}return e}function W(e){var t,n=e.e;return n===null?e.toString():(t=I(e.c),t=n<=u||n>=d?V(t,n):H(t,n,`0`),e.s<0?`-`+t:t)}return o.absoluteValue=o.abs=function(){var e=new b(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return L(this,new b(e,t))},o.decimalPlaces=o.dp=function(e,t){var n,r,i,a=this;if(e!=null)return U(new b(a),R(e,-P,P)+a.e+1,t==null?l:R(t,0,8));if(!(n=a.c))return null;if(r=((i=n.length-1)-F(this.e/M))*M,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(e,n){return t(this,new b(e,n),c,l)},o.dividedToIntegerBy=o.idiv=function(e,n){return t(this,new b(e,n),0,1)},o.exponentiatedBy=o.pow=function(e,t){var n,r,i,a,o,c,u,d,f,p=this;if(e=new b(e),e.c&&!e.isInteger())throw Error(A+`Exponent not an integer: `+W(e));if(t!=null&&(t=new b(t)),c=e.e>14,!p.c||!p.c[0]||p.c[0]==1&&!p.e&&p.c.length==1||!e.c||!e.c[0])return f=new b(W(p)**(c?e.s*(2-B(e)):+W(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new b(NaN);r=!u&&p.isInteger()&&t.isInteger(),r&&(p=p.mod(t))}else if(e.e>9&&(p.e>0||p.e<-1||(p.e==0?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return a=p.s<0&&B(e)?-0:0,p.e>-1&&(a=1/a),new b(u?1/a:a);else _&&(a=ee(_/M+2));for(c?(n=new b(.5),u&&(e.s=1),d=B(e)):(i=Math.abs(+W(e)),d=i%2),f=new b(s);;){if(d){if(f=f.times(p),!f.c)break;a?f.c.length>a&&(f.c.length=a):r&&(f=f.mod(t))}if(i){if(i=k(i/2),i===0)break;d=i%2}else if(e=e.times(n),U(e,e.e+1,1),e.e>14)d=B(e);else{if(i=+W(e),i===0)break;d=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):r&&(p=p.mod(t))}return r?f:(u&&(f=s.div(f)),t?f.mod(t):a?U(f,_,l,o):f)},o.integerValue=function(e){var t=new b(this);return U(t,t.e+1,e==null?l:R(e,0,8))},o.isEqualTo=o.eq=function(e,t){return L(this,new b(e,t))===0},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return L(this,new b(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return(t=L(this,new b(e,t)))===1||t===0},o.isInteger=function(){return!!this.c&&F(this.e/M)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return L(this,new b(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return(t=L(this,new b(e,t)))===-1||t===0},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&this.c[0]==0},o.minus=function(e,t){var n,r,i,a,o=this,s=o.s;if(e=new b(e,t),t=e.s,!s||!t)return new b(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/M,u=e.e/M,d=o.c,f=e.c;if(!c||!u){if(!d||!f)return d?(e.s=-t,e):new b(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new b(d[0]?o:l==3?-0:0)}if(c=F(c),u=F(u),d=d.slice(),s=c-u){for((a=s<0)?(s=-s,i=d):(u=c,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(a=(s=d.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(d[t]!=f[t]){a=d[t]<f[t];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),t=(r=f.length)-(n=d.length),t>0)for(;t--;d[n++]=0);for(t=j-1;r>s;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=j}d[r]-=f[r]}for(;d[0]==0;d.splice(0,1),--u);return d[0]?E(e,d,u):(e.s=l==3?-1:1,e.c=[e.e=0],e)},o.modulo=o.mod=function(e,n){var r,i,a=this;return e=new b(e,n),!a.c||!e.s||e.c&&!e.c[0]?new b(NaN):!e.c||a.c&&!a.c[0]?new b(a):(g==9?(i=e.s,e.s=1,r=t(a,e,0,3),e.s=i,r.s*=i):r=t(a,e,0,g),e=a.minus(r.times(e)),!e.c[0]&&g==1&&(e.s=a.s),e)},o.multipliedBy=o.times=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=this,v=_.c,y=(e=new b(e,t)).c;if(!v||!y||!v[0]||!y[0])return!_.s||!e.s||v&&!v[0]&&!y||y&&!y[0]&&!v?e.c=e.e=e.s=null:(e.s*=_.s,!v||!y?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(r=F(_.e/M)+F(e.e/M),e.s*=_.s,c=v.length,d=y.length,c<d&&(m=v,v=y,y=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(h=j,g=N,i=d;--i>=0;){for(n=0,f=y[i]%g,p=y[i]/g|0,o=c,a=i+o;a>i;)l=v[--o]%g,u=v[o]/g|0,s=p*l+u*f,l=f*l+s%g*g+m[a]+n,n=(l/h|0)+(s/g|0)+p*u,m[a--]=l%h;m[a]=n}return n?++r:m.splice(0,1),E(e,m,r)},o.negated=function(){var e=new b(this);return e.s=-e.s||null,e},o.plus=function(e,t){var n,r=this,i=r.s;if(e=new b(e,t),t=e.s,!i||!t)return new b(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/M,o=e.e/M,s=r.c,c=e.c;if(!a||!o){if(!s||!c)return new b(i/0);if(!s[0]||!c[0])return c[0]?e:new b(s[0]?r:i*0)}if(a=F(a),o=F(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=c):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,t=c.length,i-t<0&&(n=c,c=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/j|0,s[t]=j===s[t]?0:s[t]%j;return i&&(s=[i].concat(s),++o),E(e,s,o)},o.precision=o.sd=function(e,t){var n,r,i,a=this;if(e!=null&&e!==!!e)return U(new b(a),R(e,1,P),t==null?l:R(t,0,8));if(!(n=a.c))return null;if(i=n.length-1,r=i*M+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},o.shiftedBy=function(e){return this.times(`1e`+R(e,-te,te))},o.squareRoot=o.sqrt=function(){var e,n,r,i,a,o=this,s=o.c,u=o.s,d=o.e,f=c+4,p=new b(`0.5`);if(u!==1||!s||!s[0])return new b(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(u=Math.sqrt(+W(o)),u==0||u==1/0?(n=I(s),(n.length+d)%2==0&&(n+=`0`),u=Math.sqrt(+n),d=F((d+1)/2)-(d<0||d%2),u==1/0?n=`5e`+d:(n=u.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+d),r=new b(n)):r=new b(u+``),r.c[0]){for(d=r.e,u=d+f,u<3&&(u=0);;)if(a=r,r=p.times(a.plus(t(o,a,f,1))),I(a.c).slice(0,u)===(n=I(r.c)).slice(0,u))if(r.e<d&&--u,n=n.slice(u-3,u+1),n==`9999`||!i&&n==`4999`){if(!i&&(U(a,a.e+c+2,0),a.times(a).eq(o))){r=a;break}f+=4,u+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(U(r,r.e+c+2,1),e=!r.times(r).eq(o));break}}return U(r,r.e+c+1,l,e)},typeof BigInt==`function`&&(o.toBigInt=function(e){var t=this;return t.c?BigInt(C(t,t.e+1,e)):null}),o.toExponential=function(e,t){return C(this,e==null?e:R(e,0,P)+1,t,1)},o.toFixed=function(e,t){return C(this,e==null?e:R(e,-P,P)+this.e+1,t)},o.toFormat=function(e,t,n){var r,i,a,o=this;if(n==null)n=v,e!=null&&(t==null?typeof e==`object`&&!z(e)&&(n=D(e),e=t=null):typeof t==`object`&&(n=D(t),t=null));else if(typeof n!=`object`)throw Error(A+`Argument not an object: `+n);else n=D(n);if(e!=null)if(z(e)&&e.length<=2){if(r=e[0],i=e[1],e=o.dp(),i!=null&&e>R(i,0,P)&&(e=i),r!=null&&R(r,0,P)!==0){if(i!=null&&r>i)throw Error(A+`Minimum must not exceed maximum`);e<r&&(e=r)}}else R(e,-P,P);if(a=o.toFixed(e,t),o.s<0&&(a=a.slice(1)),o.c){var s,c=a.split(`.`),l=+n.groupSize,u=+n.secondaryGroupSize,d=n.groupSeparator||``,f=c[0],p=c[1],m=f.length;if(u&&(s=l,l=u,u=s,m-=s),l>0&&m>0){for(s=m%l||l,a=f.substr(0,s);s<m;s+=l)a+=d+f.substr(s,l);u>0&&(a+=d+f.slice(s))}p&&(s=+n.fractionGroupSize,s&&(p=p.replace(RegExp(`\\d{`+s+`}\\B`,`g`),`$&`+(n.fractionGroupSeparator||``))),a+=(n.decimalSeparator||``)+p)}return(n.prefix||``)+(o.s<0?n.negativeSign||``:o.s>0&&n.positiveSign||``)+a+(n.suffix||``)},o.toFraction=function(e){var n,r,i,a,o,c,u,d,f,m,h,g,_=this,v=_.c;if(e!=null&&(u=new b(e),!u.isInteger()&&(u.c||u.s!==1)||u.lt(s)))throw Error(A+`Argument `+(u.isInteger()?`out of range: `:`not an integer: `)+W(u));if(!v)return[new b(_.s||0),new b(0)];for(n=new b(s),f=r=new b(s),i=d=new b(s),g=I(v),o=n.e=g.length-_.e-1,n.c[0]=ne[(c=o%M)<0?M+c:c],e=!e||u.comparedTo(n)>0?o>0?n:f:u,c=p,p=1/0,u=new b(g),d.c[0]=0;m=t(u,n,0,1),a=r.plus(m.times(i)),a.comparedTo(e)!=1;)r=i,i=a,f=d.plus(m.times(a=f)),d=a,n=u.minus(m.times(a=n)),u=a;return a=t(e.minus(r),i,0,1),d=d.plus(a.times(f)),r=r.plus(a.times(i)),d.s=f.s=_.s,o*=2,h=t(f,i,o,l).minus(_).abs().comparedTo(t(d,r,o,l).minus(_).abs())<1?[f,i]:[d,r],p=c,h},o.toNumber=function(){return+W(this)},o.toObject=function(){var e=this;return{c:e.c?e.c.slice():null,e:e.e,s:e.s}},o.toPrecision=function(e,t){return C(this,e==null?e:R(e,1,P),t,2)},o.toString=function(e){var t,r=this,i=r.s,a=r.e;return a===null?i?(t=`Infinity`,i<0&&(t=`-`+t)):t=`NaN`:(e==null?t=a<=u||a>=d?V(I(r.c),a):H(I(r.c),a,`0`):(R(e,2,y.length,`Base`),t=n(H(I(r.c),a,`0`),10,e,i,!0)),i<0&&r.c[0]&&(t=`-`+t)),t},o.valueOf=o.toJSON=function(){return W(this)},o._isBigNumber=!0,e!=null&&b.set(e),b}function F(e){var t=e|0;return e>0||e===t?t:t-1}function I(e){for(var t,n,r=1,i=e.length,a=e[0]+``;r<i;){for(t=e[r++]+``,n=M-t.length;n--;t=`0`+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function L(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,c=e.e,l=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=c==l,!i||!a)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(s=(c=i.length)<(l=a.length)?c:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function R(e,t,n,r){if(e<t||e>n||e!==k(e))throw Error(A+(r||`Argument`)+(typeof e==`number`?e<t||e>n?` out of range: `:` not an integer: `:` not a primitive number: `)+String(e));return e}function z(e){return{}.toString.call(e)==`[object Array]`}function B(e){var t=e.c.length-1;return F(e.e/M)==t&&e.c[t]%2!=0}function V(e,t){return(e.length>1?e.charAt(0)+`.`+e.slice(1):e)+(t<0?`e`:`e+`)+t}function H(e,t,n){var r,i;if(t<0){for(i=n+`.`;++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+`.`+e.slice(t));return e}D.config({FORMAT:{prefix:``,decimalSeparator:`.`,groupSeparator:`,`,groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:` `,fractionGroupSize:0,suffix:``}});var U=(e,t)=>i(D(e)).map(e=>{if(typeof t!=`number`)return e;let n=e.decimalPlaces(t,D.ROUND_DOWN);return t>0&&!e.isZero()&&n.isZero()?e.precision(t,D.ROUND_DOWN):n}).map(e=>e.toFormat()).unsafeCoerce(),W=e=>U(e,6),ie=e=>U((e*100).toFixed(2)),ae=[`#6B69D6`,`#F1C40F`,`#1ABC9C`,`#E74C3C`],oe=e=>ae[e.charCodeAt(0)%ae.length]??ae[0],se=()=>p.map(e=>e.parent!==e).orDefault(!1),ce=(()=>{let e=null;return()=>typeof e==`boolean`?e:p.map(t=>{try{e=!!new URLSearchParams(t.self.location.search).get(`embed`)}catch{e=!1}return!!e}).orDefault(!1)})(),le=e=>`${f.assetsUrl}/networks/${e}.svg`,ue=e=>`${f.assetsUrl}/tokens/${e}.svg`,de=e=>new Promise(t=>setTimeout(t,e)),fe=e=>Object.fromEntries(e),pe=e=>Object.entries(e);function me(e,t){let n=t?.leadingChars??4,r=t?.trailingChars??4;return e.length<n+r?e:`${e.substring(0,n)}\u2026${e.substring(e.length-r)}`}var he=()=>{let e=!1;return e=typeof window>`u`?!1:!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substring(0,4))||(()=>{try{return typeof window>`u`?!1:(document.createEvent(`TouchEvent`),!0)}catch{return!1}})()),e},ge=(e,t)=>t.multipliedBy(e).dividedBy(1e4),_e=e=>D(e).dividedBy(100).toNumber();E();function G(e){return typeof e==`function`}function ve(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var ye=ve(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
1
|
+
import{n as e}from"./chunk-DskFaGUe.js";var t={of(e){return i(e)},empty(){return a},zero(){return a},fromNullable(e){return e==null?a:i(e)},fromFalsy(e){return e?i(e):a},fromPredicate(e,n){switch(arguments.length){case 1:return n=>t.fromPredicate(e,n);default:return e(n)?i(n):a}},mapMaybe(e,n){switch(arguments.length){case 1:return n=>t.mapMaybe(e,n);default:return t.catMaybes(n.map(e))}},catMaybes(e){let t=[];for(let n of e)n.isJust()&&t.push(n.extract());return t},encase(e){try{return i(e())}catch{return a}},isMaybe(e){return e instanceof n||e instanceof r},sequence(e){let t=[];for(let n of e)if(n.isJust())t.push(n.extract());else return a;return i(t)},"fantasy-land/of"(e){return this.of(e)},"fantasy-land/empty"(){return this.empty()},"fantasy-land/zero"(){return this.zero()}},n=class{constructor(e){this.__value=e}isJust(){return!0}isNothing(){return!1}inspect(){return`Just(${this.__value})`}[Symbol.for(`nodejs.util.inspect.custom`)](e,t,n){return`Just(${n(this.__value,t)})`}toString(){return this.inspect()}toJSON(){let e=this.__value;return e instanceof Date?e.toJSON():e}equals(e){return this.extract()===e.extract()}map(e){return i(e(this.__value))}ap(e){return e.isJust()?this.map(e.extract()):a}alt(e){return this}altLazy(e){return this}chain(e){return e(this.__value)}chainNullable(e){return t.fromNullable(e(this.__value))}join(){return this.__value}reduce(e,t){return e(t,this.__value)}extend(e){return i(e(this))}unsafeCoerce(){return this.__value}caseOf(e){return`_`in e?e._():e.Just(this.__value)}orDefault(e){return this.__value}orDefaultLazy(e){return this.__value}toList(){return[this.__value]}mapOrDefault(e,t){return e(this.__value)}extract(){return this.__value}extractNullable(){return this.__value}toEither(e){return u(this.__value)}ifJust(e){return e(this.__value),this}ifNothing(e){return this}filter(e){return e(this.__value)?i(this.__value):a}};n.prototype[`fantasy-land/equals`]=n.prototype.equals,n.prototype[`fantasy-land/map`]=n.prototype.map,n.prototype[`fantasy-land/ap`]=n.prototype.ap,n.prototype[`fantasy-land/alt`]=n.prototype.alt,n.prototype[`fantasy-land/chain`]=n.prototype.chain,n.prototype[`fantasy-land/reduce`]=n.prototype.reduce,n.prototype[`fantasy-land/extend`]=n.prototype.extend,n.prototype[`fantasy-land/filter`]=n.prototype.filter,n.prototype.constructor=t;var r=class{isJust(){return!1}isNothing(){return!0}inspect(){return`Nothing`}[Symbol.for(`nodejs.util.inspect.custom`)](){return`Nothing`}toString(){return this.inspect()}toJSON(){return this.__value}equals(e){return this.extract()===e.extract()}map(e){return a}ap(e){return a}alt(e){return e}altLazy(e){return e()}chain(e){return a}chainNullable(e){return a}join(){return a}reduce(e,t){return t}extend(e){return a}unsafeCoerce(){throw Error(`Maybe#unsafeCoerce was ran on a Nothing`)}caseOf(e){return`_`in e?e._():e.Nothing()}orDefault(e){return e}orDefaultLazy(e){return e()}toList(){return[]}mapOrDefault(e,t){return t}extract(){}extractNullable(){return null}toEither(e){return l(e)}ifJust(e){return this}ifNothing(e){return e(),this}filter(e){return a}};r.prototype[`fantasy-land/equals`]=r.prototype.equals,r.prototype[`fantasy-land/map`]=r.prototype.map,r.prototype[`fantasy-land/ap`]=r.prototype.ap,r.prototype[`fantasy-land/alt`]=r.prototype.alt,r.prototype[`fantasy-land/chain`]=r.prototype.chain,r.prototype[`fantasy-land/reduce`]=r.prototype.reduce,r.prototype[`fantasy-land/extend`]=r.prototype.extend,r.prototype[`fantasy-land/filter`]=r.prototype.filter,r.prototype.constructor=t;var i=e=>new n(e),a=new r,o={of(e){return u(e)},lefts(e){let t=[];for(let n of e)n.isLeft()&&t.push(n.extract());return t},rights(e){let t=[];for(let n of e)n.isRight()&&t.push(n.extract());return t},encase(e){try{return u(e())}catch(e){return l(e)}},sequence(e){let t=[];for(let n of e){if(n.isLeft())return n;t.push(n.extract())}return u(t)},isEither(e){return e instanceof c||e instanceof s},"fantasy-land/of"(e){return o.of(e)}},s=class{constructor(e){this.__value=e,this._=`R`}isLeft(){return!1}isRight(){return!0}toJSON(){return this.__value}inspect(){return`Right(${this.__value})`}[Symbol.for(`nodejs.util.inspect.custom`)](e,t,n){return`Right(${n(this.__value,t)})`}toString(){return this.inspect()}bimap(e,t){return u(t(this.__value))}map(e){return u(e(this.__value))}mapLeft(e){return this}ap(e){return e.isRight()?this.map(e.extract()):e}equals(e){return e.isRight()?this.__value===e.extract():!1}chain(e){return e(this.__value)}chainLeft(e){return this}join(){return this.__value}alt(e){return this}altLazy(e){return this}reduce(e,t){return e(t,this.__value)}extend(e){return u(e(this))}unsafeCoerce(){return this.__value}caseOf(e){return`_`in e?e._():e.Right(this.__value)}leftOrDefault(e){return e}orDefault(e){return this.__value}orDefaultLazy(e){return this.__value}leftOrDefaultLazy(e){return e()}ifLeft(e){return this}ifRight(e){return e(this.__value),this}toMaybe(){return i(this.__value)}leftToMaybe(){return a}extract(){return this.__value}swap(){return l(this.__value)}};s.prototype[`fantasy-land/bimap`]=s.prototype.bimap,s.prototype[`fantasy-land/map`]=s.prototype.map,s.prototype[`fantasy-land/ap`]=s.prototype.ap,s.prototype[`fantasy-land/equals`]=s.prototype.equals,s.prototype[`fantasy-land/chain`]=s.prototype.chain,s.prototype[`fantasy-land/alt`]=s.prototype.alt,s.prototype[`fantasy-land/reduce`]=s.prototype.reduce,s.prototype[`fantasy-land/extend`]=s.prototype.extend,s.prototype.constructor=o;var c=class{constructor(e){this.__value=e,this._=`L`}isLeft(){return!0}isRight(){return!1}toJSON(){return this.__value}inspect(){return`Left(${JSON.stringify(this.__value)})`}[Symbol.for(`nodejs.util.inspect.custom`)](e,t,n){return`Left(${n(this.__value,t)})`}toString(){return this.inspect()}bimap(e,t){return l(e(this.__value))}map(e){return this}mapLeft(e){return l(e(this.__value))}ap(e){return e.isLeft()?e:this}equals(e){return e.isLeft()?e.extract()===this.__value:!1}chain(e){return this}chainLeft(e){return e(this.__value)}join(){return this}alt(e){return e}altLazy(e){return e()}reduce(e,t){return t}extend(e){return this}unsafeCoerce(){throw this.__value instanceof Error?this.__value:Error(`Either#unsafeCoerce was ran on a Left`)}caseOf(e){return`_`in e?e._():e.Left(this.__value)}leftOrDefault(e){return this.__value}orDefault(e){return e}orDefaultLazy(e){return e()}leftOrDefaultLazy(e){return this.__value}ifLeft(e){return e(this.__value),this}ifRight(e){return this}toMaybe(){return a}leftToMaybe(){return i(this.__value)}extract(){return this.__value}swap(){return u(this.__value)}};c.prototype[`fantasy-land/bimap`]=c.prototype.bimap,c.prototype[`fantasy-land/map`]=c.prototype.map,c.prototype[`fantasy-land/ap`]=c.prototype.ap,c.prototype[`fantasy-land/equals`]=c.prototype.equals,c.prototype[`fantasy-land/chain`]=c.prototype.chain,c.prototype[`fantasy-land/alt`]=c.prototype.alt,c.prototype[`fantasy-land/reduce`]=c.prototype.reduce,c.prototype[`fantasy-land/extend`]=c.prototype.extend,c.prototype.constructor=o;var l=e=>new c(e),u=e=>new s(e),d=`https://assets.stakek.it`,f={appName:`Yield.xyz`,appIcon:`${d}/stakekit/sk-icon_320x320.png`,appUrl:`https://yield.xyz`,currency:`USD`,queryClient:{staleTime:1e3*5,cacheTime:1e3*60*5},walletConnectV2:{projectId:`10a5257c04d1d3097ff768a139c95f50`},appPrefix:`sk-widget`,env:{apiUrl:`https://api.stakek.it/`,yieldsApiUrl:`https://api.yield.xyz`,isTestMode:!1,isDevMode:!1,forceAddress:void 0},assetsUrl:d,zerion:{tracking:`2cbed59baa70c46f7cadef7b05eb1bc3`,iconsByAddress:`https://token-icons.s3.amazonaws.com/`,iconsByNetwork:`https://chain-icons.s3.amazonaws.com/`}},p=t.fromNullable(typeof window>`u`?null:window);function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);w(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function h(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function g(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function _(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function v(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function y(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function b(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function S(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof x?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function C(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof v==`function`?v(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var w,T,E=e((()=>{w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},w(e,t)},T=function(){return T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},T.apply(this,arguments)}})),D=re(),O=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ee=Math.ceil,k=Math.floor,A=`[BigNumber Error] `,j=0x5af3107a4000,M=14,te=9007199254740991,ne=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,0xe8d4a51000,0x9184e72a000],N=1e7,P=1e9;function re(e){var t,n,r=/^(-?)0([xbo])(?=[^.])/i,i=/^-?(Infinity|NaN)$/,a=/^\s*\+(?!-)|^\s+|\s+$/g,o=b.prototype={constructor:b,toString:null,valueOf:null},s=new b(1),c=20,l=4,u=-7,d=21,f=-1e7,p=1e7,m=!1,h=!0,g=1,_=0,v={prefix:``,negativeSign:`-`,positiveSign:``,groupSeparator:`,`,groupSize:3,secondaryGroupSize:0,decimalSeparator:`.`,fractionGroupSeparator:``,fractionGroupSize:0,suffix:``},y=`0123456789abcdefghijklmnopqrstuvwxyz`;function b(e,t){var n,o,s,c,l=this;if(!(l instanceof b))return new b(e,t);if(c=typeof e,t==null){if(w(e)){l.s=e.s,!e.c||e.e>p?l.c=l.e=null:e.e<f?l.c=[l.e=0]:(l.e=e.e,l.c=e.c.slice());return}if(c==`number`){if(e*0!=0){l.s=isNaN(e)?null:e<0?-1:1,l.c=l.e=null;return}if(l.s=1/e<0?(e=-e,-1):1,e===~~e){for(n=0,o=e;o>=10;o/=10,n++);n>p?l.c=l.e=null:(l.e=n,l.c=[e]);return}return x(l,String(e))}if(c==`bigint`)return l.s=e<0?(e=-e,-1):1,x(l,String(e));if(c==`string`)s=e;else{if(h)throw Error(A+`BigNumber, string, number, or BigInt expected: `+e);s=String(e)}if(O.test(s))return l.s=s.charCodeAt(0)==45?(s=s.slice(1),-1):1,x(l,s);if(s=s.replace(a,``),i.test(s)){l.s=isNaN(s)?null:s<0?-1:1,l.c=l.e=null;return}if(s=s.replace(r,function(e,n,r){return t=(r=r.toLowerCase())==`x`?16:r==`b`?2:8,n}),t)return S(l,s,t,e);if(s=s.replace(/(\d)_(?=\d)/g,`$1`),O.test(s))return l.s=s.charCodeAt(0)==45?(s=s.slice(1),-1):1,x(l,s);if(h)throw Error(A+`Not a number: `+e);l.s=l.c=l.e=null}else{if(c!=`string`){if(h)throw Error(A+`String expected: `+e);e=String(e)}R(t,2,y.length,`Base`),S(l,e.replace(a,``),t,e)}}b.clone=re,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(e){var t,n;if(e!=null)if(typeof e==`object`){if(e.hasOwnProperty(t=`DECIMAL_PLACES`)&&(c=R(e[t],0,P,t)),e.hasOwnProperty(t=`ROUNDING_MODE`)&&(l=R(e[t],0,8,t)),e.hasOwnProperty(t=`EXPONENTIAL_AT`)&&(n=e[t],z(n)?(R(n[0],-P,0,t),R(n[1],0,P,t),u=n[0],d=n[1]):u=-(d=R(n,-P,P,t)<0?-n:n)),e.hasOwnProperty(t=`RANGE`))if(n=e[t],n)z(n)?(R(n[0],-P,-1,t),R(n[1],1,P,t),f=n[0],p=n[1]):f=-(p=R(n,-P,P,t)<0?-n:n);else throw Error(A+t+` cannot be zero: `+n);if(e.hasOwnProperty(t=`CRYPTO`))if(n=e[t],n===!!n)if(n)if(typeof crypto<`u`&&crypto&&(crypto.getRandomValues||crypto.randomBytes))m=n;else throw m=!n,Error(A+`crypto unavailable`);else m=n;else throw Error(A+t+` not true or false: `+n);if(e.hasOwnProperty(t=`STRICT`))if(n=e[t],n===!!n)h=n;else throw Error(A+t+` not true or false: `+n);if(e.hasOwnProperty(t=`MODULO_MODE`)&&(g=R(e[t],0,9,t)),e.hasOwnProperty(t=`POW_PRECISION`)&&(_=R(e[t],0,P,t)),e.hasOwnProperty(t=`FORMAT`))if(n=e[t],typeof n==`object`)for(t in n)n.hasOwnProperty(t)&&v.hasOwnProperty(t)&&(v[t]=n[t]);else throw Error(A+t+` not an object: `+n);if(e.hasOwnProperty(t=`ALPHABET`))if(n=e[t],typeof n==`string`&&!/^.?$|[+\-.\s]|(.).*\1/.test(n))y=n;else throw Error(A+t+` invalid: `+n)}else throw Error(A+`Object expected: `+e);return{DECIMAL_PLACES:c,ROUNDING_MODE:l,EXPONENTIAL_AT:[u,d],RANGE:[f,p],CRYPTO:m,STRICT:h,MODULO_MODE:g,POW_PRECISION:_,FORMAT:v,ALPHABET:y}},b.fromFormat=function(e,t){if(typeof e!=`string`)throw Error(A+`Not a string: `+e);if(t==null)t=v;else if(typeof t!=`object`)throw Error(A+`Argument not an object: `+t);else t=D(t);var n,r,i,a,o=t.negativeSign||`-`,s=t.positiveSign||``,c=t.prefix||``,l=t.suffix||``,u=t.groupSeparator||``,d=t.decimalSeparator||`.`,f=t.fractionGroupSeparator||``;if(c&&e.indexOf(c)===0&&(e=e.slice(c.length)),l&&e.lastIndexOf(l)===e.length-l.length&&(e=e.slice(0,-l.length)),o&&e.indexOf(o)===0?(e=e.slice(o.length),r=!0):s&&e.indexOf(s)===0&&(e=e.slice(s.length)),n=e.indexOf(d),n<0){if(u)for(;e.indexOf(u)>-1;)e=e.replace(u,``)}else{if(i=e.slice(0,n),a=e.slice(n+d.length),u)for(;i.indexOf(u)>-1;)i=i.replace(u,``);if(f)for(;a.indexOf(f)>-1;)a=a.replace(f,``);e=i+`.`+a}return new b(r?`-`+e:e)},b.isBigNumber=function(e){if(!w(e))return!1;var t,n,r=e.c,i=e.e,a=e.s;if(!z(r))return r===null&&i===null&&(a===null||a===1||a===-1);if(a!==1&&a!==-1||i<-P||i>P||i!==k(i))return!1;if(r[0]===0)return i===0&&r.length===1;if(t=(i+1)%M,t<1&&(t+=M),String(r[0]).length!==t)return!1;for(t=0;t<r.length;t++)if(n=r[t],n<0||n>=j||n!==k(n))return!1;return n!==0},b.maximum=b.max=function(){return T(arguments,-1)},b.minimum=b.min=function(){return T(arguments,1)},b.random=(function(){var e=9007199254740992,t=Math.random()*e&2097151?function(){return k(Math.random()*e)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(e){var n,r,i,a,o,l=0,u=[],d=new b(s);if(e=e==null?c:R(e,0,P),a=ee(e/M),m)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(a*=2));l<a;)o=n[l]*131072+(n[l+1]>>>11),o>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[l]=r[0],n[l+1]=r[1]):(u.push(o%0x5af3107a4000),l+=2);l=a/2}else if(crypto.randomBytes){for(n=crypto.randomBytes(a*=7);l<a;)o=(n[l]&31)*281474976710656+n[l+1]*1099511627776+n[l+2]*4294967296+n[l+3]*16777216+(n[l+4]<<16)+(n[l+5]<<8)+n[l+6],o>=9e15?crypto.randomBytes(7).copy(n,l):(u.push(o%0x5af3107a4000),l+=7);l=a/7}else throw m=!1,Error(A+`crypto unavailable`);if(!m)for(;l<a;)o=t(),o<9e15&&(u[l++]=o%0x5af3107a4000);for(a=u[--l],e%=M,a&&e&&(o=ne[M-e],u[l]=k(a/o)*o);u[l]===0;u.pop(),l--);if(l<0)u=[i=0];else{for(i=-1;u[0]===0;u.splice(0,1),i-=M);for(l=1,o=u[0];o>=10;o/=10,l++);l<M&&(i-=M-l)}return d.e=i,d.c=u,d}})(),b.sum=function(){for(var e=0,t=new b(0);e<arguments.length;)t=t.plus(arguments[e++]);return t};function x(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(i=t.length;t.charCodeAt(--i)===48;);if(t=t.slice(r,++i))if(i-=r,n=n-r-1,n>p)e.c=e.e=null;else if(n<f)e.c=[e.e=0];else{if(e.e=n,e.c=[],r=(n+1)%M,n<0&&(r+=M),r<i){for(r&&e.c.push(+t.slice(0,r)),i-=M;r<i;)e.c.push(+t.slice(r,r+=M));r=M-(t=t.slice(r)).length}else r-=i;for(;r--;t+=`0`);e.c.push(+t)}else e.c=[e.e=0]}function S(e,t,r,i){var a,o,s=y.slice(0,r),c=0,l=``,u=!1,d=!1,f=!1;for(e.s=t.charCodeAt(0)===45?(t=t.slice(1),-1):1,o=t.length;c<o;c++){if(a=t.charAt(c),s.indexOf(a)>=0){l+=a,d=!0;continue}if(a==`_`){if(d&&c+1<o){d=!1;continue}}else if(a==`.`){if(c==0||!u&&d){if(c+1==o)break;c==0&&(l=`0`),l+=a,u=!0,d=!1;continue}}else if(!f&&(t==t.toUpperCase()&&s==s.toLowerCase()&&(t=t.toLowerCase())||t==t.toLowerCase()&&s==s.toUpperCase()&&(t=t.toUpperCase()))){c=-1,l=``,f=!0,u=d=!1;continue}if(h)throw Error(A+`Not a base `+r+` number: `+i);e.s=e.c=e.e=null;return}x(e,n(l,r,10,e.s))}n=(function(){var e=`0123456789`;function n(e,t,n,r){for(var i,a=[0],o,s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(a[i+1]??(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,a,o,s){var u,d,f,p,m,h,g,v,x=r.indexOf(`.`),S=c,C=l;for(x>=0&&(p=_,_=0,r=r.replace(`.`,``),v=new b(i),h=v.pow(r.length-x),_=p,v.c=n(H(I(h.c),h.e,`0`),10,a,e),v.e=v.c.length),g=n(r,i,a,s?(u=y,e):(u=e,y)),f=p=g.length;g[--p]==0;g.pop());if(!g[0])return u.charAt(0);if(x<0?--f:(h.c=g,h.e=f,h.s=o,h=t(h,v,S,C,a),g=h.c,m=h.r,f=h.e),d=f+S+1,x=g[d],p=a/2,m=m||d<0||g[d+1]!=null,m=C<4?(x!=null||m)&&(C==0||C==(h.s<0?3:2)):x>p||x==p&&(C==4||m||C==6&&g[d-1]&1||C==(h.s<0?8:7)),d<1||!g[0])r=m?H(u.charAt(1),-S,u.charAt(0)):u.charAt(0);else{if(d<g.length&&(g.length=d),m)for(--a;++g[--d]>a;)g[d]=0,d||(++f,g=[1].concat(g));for(p=g.length;!g[--p];);for(x=0,r=``;x<=p;r+=u.charAt(g[x++]));r=H(r,f,u.charAt(0))}return r}})(),t=(function(){function e(e,t,n){var r,i,a,o,s=0,c=e.length,l=t%N,u=t/N|0;for(e=e.slice();c--;)a=e[c]%N,o=e[c]/N|0,r=u*a+o*l,i=l*a+r%N*N+s,s=(i/n|0)+(r/N|0)+u*o,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=+(e[n]<t[n]),e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,o,s){var c,l,u,d,f,p,m,h,g,_,v,y,x,S,C,w,T,E=r.s==i.s?1:-1,D=r.c,O=i.c;if(!D||!D[0]||!O||!O[0])return new b(!r.s||!i.s||(D?O&&D[0]==O[0]:!O)?NaN:D&&D[0]==0||!O?E*0:E/0);for(h=new b(E),g=h.c=[],l=r.e-i.e,E=a+l+1,s||(s=j,l=F(r.e/M)-F(i.e/M),E=E/M|0),u=0;O[u]==(D[u]||0);u++);if(O[u]>(D[u]||0)&&l--,E<0)g.push(1),d=!0;else{for(S=D.length,w=O.length,u=0,E+=2,f=k(s/(O[0]+1)),f>1&&(O=e(O,f,s),D=e(D,f,s),w=O.length,S=D.length),x=w,_=D.slice(0,w),v=_.length;v<w;_[v++]=0);T=O.slice(),T=[0].concat(T),C=O[0],O[1]>=s/2&&C++;do{if(f=0,c=t(O,_,w,v),c<0){if(y=_[0],w!=v&&(y=y*s+(_[1]||0)),f=k(y/C),f>1)for(f>=s&&(f=s-1),p=e(O,f,s),m=p.length,v=_.length;t(p,_,m,v)==1;)f--,n(p,w<m?T:O,m,s),m=p.length,c=1;else f==0&&(c=f=1),p=O.slice(),m=p.length;if(m<v&&(p=[0].concat(p)),n(_,p,v,s),v=_.length,c==-1)for(;t(O,_,w,v)<1;)f++,n(_,w<v?T:O,v,s),v=_.length}else c===0&&(f++,_=[0]);g[u++]=f,_[0]?_[v++]=D[x]||0:(_=[D[x]],v=1)}while((x++<S||_[0]!=null)&&E--);d=_[0]!=null,g[0]||g.splice(0,1)}if(s==j){for(u=1,E=g[0];E>=10;E/=10,u++);U(h,a+(h.e=u+l*M-1)+1,o,d)}else h.e=l,h.r=+d;return h}})();function C(e,t,n,r){var i,a,o,s,c;if(n=n==null?l:R(n,0,8),!e.c)return e.toString();if(i=e.c[0],o=e.e,t==null)c=I(e.c),c=r==1||r==2&&(o<=u||o>=d)?V(c,o):H(c,o,`0`);else if(e=U(new b(e),t,n),a=e.e,c=I(e.c),s=c.length,r==1||r==2&&(t<=a||a<=u)){for(;s<t;c+=`0`,s++);c=V(c,a)}else if(t-=o+(r===2&&a>o),c=H(c,a,`0`),a+1>s){if(--t>0)for(c+=`.`;t--;c+=`0`);}else if(t+=a-s,t>0)for(a+1==s&&(c+=`.`);t--;c+=`0`);return e.s<0&&i?`-`+c:c}function w(e){return e instanceof b||!!e&&e._isBigNumber===!0}function T(e,t){for(var n,r,i=1,a=new b(e[0]);i<e.length;i++)r=new b(e[i]),(!r.s||(n=L(a,r))===t||n===0&&a.s===t)&&(a=r);return a}function E(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*M-1)>p?e.c=e.e=null:n<f?e.c=[e.e=0]:(e.e=n,e.c=t),e}function D(e){var t,n={};for(t in v)v.hasOwnProperty(t)&&(n[t]=e.hasOwnProperty(t)?e[t]:v[t]);return n}function U(e,t,n,r){var i,a,o,s,c,l,u,d=e.c,m=ne;if(d){out:{for(i=1,s=d[0];s>=10;s/=10,i++);if(a=t-i,a<0)a+=M,o=t,c=d[l=0],u=k(c/m[i-o-1]%10);else if(l=ee((a+1)/M),l>=d.length)if(r){for(;d.length<=l;d.push(0));c=u=0,i=1,a%=M,o=a-M+1}else break out;else{for(c=s=d[l],i=1;s>=10;s/=10,i++);a%=M,o=a-M+i,u=o<0?0:k(c/m[i-o-1]%10)}if(r=r||t<0||d[l+1]!=null||(o<0?c:c%m[i-o-1]),r=n<4?(u||r)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||r||n==6&&(a>0?o>0?c/m[i-o]:0:d[l-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,r?(t-=e.e+1,d[0]=m[(M-t%M)%M],e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=l,s=1,l--):(d.length=l+1,s=m[M-a],d[l]=o>0?k(c/m[i-o]%m[o])*s:0),r)for(;;)if(l==0){for(a=1,o=d[0];o>=10;o/=10,a++);for(o=d[0]+=s,s=1;o>=10;o/=10,s++);a!=s&&(e.e++,d[0]==j&&(d[0]=1));break}else{if(d[l]+=s,d[l]!=j)break;d[l--]=0,s=1}for(a=d.length;d[--a]===0;d.pop());}e.e>p?e.c=e.e=null:e.e<f&&(e.c=[e.e=0])}return e}function W(e){var t,n=e.e;return n===null?e.toString():(t=I(e.c),t=n<=u||n>=d?V(t,n):H(t,n,`0`),e.s<0?`-`+t:t)}return o.absoluteValue=o.abs=function(){var e=new b(this);return e.s<0&&(e.s=1),e},o.comparedTo=function(e,t){return L(this,new b(e,t))},o.decimalPlaces=o.dp=function(e,t){var n,r,i,a=this;if(e!=null)return U(new b(a),R(e,-P,P)+a.e+1,t==null?l:R(t,0,8));if(!(n=a.c))return null;if(r=((i=n.length-1)-F(this.e/M))*M,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},o.dividedBy=o.div=function(e,n){return t(this,new b(e,n),c,l)},o.dividedToIntegerBy=o.idiv=function(e,n){return t(this,new b(e,n),0,1)},o.exponentiatedBy=o.pow=function(e,t){var n,r,i,a,o,c,u,d,f,p=this;if(e=new b(e),e.c&&!e.isInteger())throw Error(A+`Exponent not an integer: `+W(e));if(t!=null&&(t=new b(t)),c=e.e>14,!p.c||!p.c[0]||p.c[0]==1&&!p.e&&p.c.length==1||!e.c||!e.c[0])return f=new b(W(p)**(c?e.s*(2-B(e)):+W(e))),t?f.mod(t):f;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new b(NaN);r=!u&&p.isInteger()&&t.isInteger(),r&&(p=p.mod(t))}else if(e.e>9&&(p.e>0||p.e<-1||(p.e==0?p.c[0]>1||c&&p.c[1]>=24e7:p.c[0]<8e13||c&&p.c[0]<=9999975e7)))return a=p.s<0&&B(e)?-0:0,p.e>-1&&(a=1/a),new b(u?1/a:a);else _&&(a=ee(_/M+2));for(c?(n=new b(.5),u&&(e.s=1),d=B(e)):(i=Math.abs(+W(e)),d=i%2),f=new b(s);;){if(d){if(f=f.times(p),!f.c)break;a?f.c.length>a&&(f.c.length=a):r&&(f=f.mod(t))}if(i){if(i=k(i/2),i===0)break;d=i%2}else if(e=e.times(n),U(e,e.e+1,1),e.e>14)d=B(e);else{if(i=+W(e),i===0)break;d=i%2}p=p.times(p),a?p.c&&p.c.length>a&&(p.c.length=a):r&&(p=p.mod(t))}return r?f:(u&&(f=s.div(f)),t?f.mod(t):a?U(f,_,l,o):f)},o.integerValue=function(e){var t=new b(this);return U(t,t.e+1,e==null?l:R(e,0,8))},o.isEqualTo=o.eq=function(e,t){return L(this,new b(e,t))===0},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(e,t){return L(this,new b(e,t))>0},o.isGreaterThanOrEqualTo=o.gte=function(e,t){return(t=L(this,new b(e,t)))===1||t===0},o.isInteger=function(){return!!this.c&&F(this.e/M)>this.c.length-2},o.isLessThan=o.lt=function(e,t){return L(this,new b(e,t))<0},o.isLessThanOrEqualTo=o.lte=function(e,t){return(t=L(this,new b(e,t)))===-1||t===0},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&this.c[0]==0},o.minus=function(e,t){var n,r,i,a,o=this,s=o.s;if(e=new b(e,t),t=e.s,!s||!t)return new b(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/M,u=e.e/M,d=o.c,f=e.c;if(!c||!u){if(!d||!f)return d?(e.s=-t,e):new b(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new b(d[0]?o:l==3?-0:0)}if(c=F(c),u=F(u),d=d.slice(),s=c-u){for((a=s<0)?(s=-s,i=d):(u=c,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(a=(s=d.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(d[t]!=f[t]){a=d[t]<f[t];break}if(a&&(i=d,d=f,f=i,e.s=-e.s),t=(r=f.length)-(n=d.length),t>0)for(;t--;d[n++]=0);for(t=j-1;r>s;){if(d[--r]<f[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=j}d[r]-=f[r]}for(;d[0]==0;d.splice(0,1),--u);return d[0]?E(e,d,u):(e.s=l==3?-1:1,e.c=[e.e=0],e)},o.modulo=o.mod=function(e,n){var r,i,a=this;return e=new b(e,n),!a.c||!e.s||e.c&&!e.c[0]?new b(NaN):!e.c||a.c&&!a.c[0]?new b(a):(g==9?(i=e.s,e.s=1,r=t(a,e,0,3),e.s=i,r.s*=i):r=t(a,e,0,g),e=a.minus(r.times(e)),!e.c[0]&&g==1&&(e.s=a.s),e)},o.multipliedBy=o.times=function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_=this,v=_.c,y=(e=new b(e,t)).c;if(!v||!y||!v[0]||!y[0])return!_.s||!e.s||v&&!v[0]&&!y||y&&!y[0]&&!v?e.c=e.e=e.s=null:(e.s*=_.s,!v||!y?e.c=e.e=null:(e.c=[0],e.e=0)),e;for(r=F(_.e/M)+F(e.e/M),e.s*=_.s,c=v.length,d=y.length,c<d&&(m=v,v=y,y=m,i=c,c=d,d=i),i=c+d,m=[];i--;m.push(0));for(h=j,g=N,i=d;--i>=0;){for(n=0,f=y[i]%g,p=y[i]/g|0,o=c,a=i+o;a>i;)l=v[--o]%g,u=v[o]/g|0,s=p*l+u*f,l=f*l+s%g*g+m[a]+n,n=(l/h|0)+(s/g|0)+p*u,m[a--]=l%h;m[a]=n}return n?++r:m.splice(0,1),E(e,m,r)},o.negated=function(){var e=new b(this);return e.s=-e.s||null,e},o.plus=function(e,t){var n,r=this,i=r.s;if(e=new b(e,t),t=e.s,!i||!t)return new b(NaN);if(i!=t)return e.s=-t,r.minus(e);var a=r.e/M,o=e.e/M,s=r.c,c=e.c;if(!a||!o){if(!s||!c)return new b(i/0);if(!s[0]||!c[0])return c[0]?e:new b(s[0]?r:i*0)}if(a=F(a),o=F(o),s=s.slice(),i=a-o){for(i>0?(o=a,n=c):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,t=c.length,i-t<0&&(n=c,c=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+c[t]+i)/j|0,s[t]=j===s[t]?0:s[t]%j;return i&&(s=[i].concat(s),++o),E(e,s,o)},o.precision=o.sd=function(e,t){var n,r,i,a=this;if(e!=null&&e!==!!e)return U(new b(a),R(e,1,P),t==null?l:R(t,0,8));if(!(n=a.c))return null;if(i=n.length-1,r=i*M+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&a.e+1>r&&(r=a.e+1),r},o.shiftedBy=function(e){return this.times(`1e`+R(e,-te,te))},o.squareRoot=o.sqrt=function(){var e,n,r,i,a,o=this,s=o.c,u=o.s,d=o.e,f=c+4,p=new b(`0.5`);if(u!==1||!s||!s[0])return new b(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);if(u=Math.sqrt(+W(o)),u==0||u==1/0?(n=I(s),(n.length+d)%2==0&&(n+=`0`),u=Math.sqrt(+n),d=F((d+1)/2)-(d<0||d%2),u==1/0?n=`5e`+d:(n=u.toExponential(),n=n.slice(0,n.indexOf(`e`)+1)+d),r=new b(n)):r=new b(u+``),r.c[0]){for(d=r.e,u=d+f,u<3&&(u=0);;)if(a=r,r=p.times(a.plus(t(o,a,f,1))),I(a.c).slice(0,u)===(n=I(r.c)).slice(0,u))if(r.e<d&&--u,n=n.slice(u-3,u+1),n==`9999`||!i&&n==`4999`){if(!i&&(U(a,a.e+c+2,0),a.times(a).eq(o))){r=a;break}f+=4,u+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)==`5`)&&(U(r,r.e+c+2,1),e=!r.times(r).eq(o));break}}return U(r,r.e+c+1,l,e)},typeof BigInt==`function`&&(o.toBigInt=function(e){var t=this;return t.c?BigInt(C(t,t.e+1,e)):null}),o.toExponential=function(e,t){return C(this,e==null?e:R(e,0,P)+1,t,1)},o.toFixed=function(e,t){return C(this,e==null?e:R(e,-P,P)+this.e+1,t)},o.toFormat=function(e,t,n){var r,i,a,o=this;if(n==null)n=v,e!=null&&(t==null?typeof e==`object`&&!z(e)&&(n=D(e),e=t=null):typeof t==`object`&&(n=D(t),t=null));else if(typeof n!=`object`)throw Error(A+`Argument not an object: `+n);else n=D(n);if(e!=null)if(z(e)&&e.length<=2){if(r=e[0],i=e[1],e=o.dp(),i!=null&&e>R(i,0,P)&&(e=i),r!=null&&R(r,0,P)!==0){if(i!=null&&r>i)throw Error(A+`Minimum must not exceed maximum`);e<r&&(e=r)}}else R(e,-P,P);if(a=o.toFixed(e,t),o.s<0&&(a=a.slice(1)),o.c){var s,c=a.split(`.`),l=+n.groupSize,u=+n.secondaryGroupSize,d=n.groupSeparator||``,f=c[0],p=c[1],m=f.length;if(u&&(s=l,l=u,u=s,m-=s),l>0&&m>0){for(s=m%l||l,a=f.substr(0,s);s<m;s+=l)a+=d+f.substr(s,l);u>0&&(a+=d+f.slice(s))}p&&(s=+n.fractionGroupSize,s&&(p=p.replace(RegExp(`\\d{`+s+`}\\B`,`g`),`$&`+(n.fractionGroupSeparator||``))),a+=(n.decimalSeparator||``)+p)}return(n.prefix||``)+(o.s<0?n.negativeSign||``:o.s>0&&n.positiveSign||``)+a+(n.suffix||``)},o.toFraction=function(e){var n,r,i,a,o,c,u,d,f,m,h,g,_=this,v=_.c;if(e!=null&&(u=new b(e),!u.isInteger()&&(u.c||u.s!==1)||u.lt(s)))throw Error(A+`Argument `+(u.isInteger()?`out of range: `:`not an integer: `)+W(u));if(!v)return[new b(_.s||0),new b(0)];for(n=new b(s),f=r=new b(s),i=d=new b(s),g=I(v),o=n.e=g.length-_.e-1,n.c[0]=ne[(c=o%M)<0?M+c:c],e=!e||u.comparedTo(n)>0?o>0?n:f:u,c=p,p=1/0,u=new b(g),d.c[0]=0;m=t(u,n,0,1),a=r.plus(m.times(i)),a.comparedTo(e)!=1;)r=i,i=a,f=d.plus(m.times(a=f)),d=a,n=u.minus(m.times(a=n)),u=a;return a=t(e.minus(r),i,0,1),d=d.plus(a.times(f)),r=r.plus(a.times(i)),d.s=f.s=_.s,o*=2,h=t(f,i,o,l).minus(_).abs().comparedTo(t(d,r,o,l).minus(_).abs())<1?[f,i]:[d,r],p=c,h},o.toNumber=function(){return+W(this)},o.toObject=function(){var e=this;return{c:e.c?e.c.slice():null,e:e.e,s:e.s}},o.toPrecision=function(e,t){return C(this,e==null?e:R(e,1,P),t,2)},o.toString=function(e){var t,r=this,i=r.s,a=r.e;return a===null?i?(t=`Infinity`,i<0&&(t=`-`+t)):t=`NaN`:(e==null?t=a<=u||a>=d?V(I(r.c),a):H(I(r.c),a,`0`):(R(e,2,y.length,`Base`),t=n(H(I(r.c),a,`0`),10,e,i,!0)),i<0&&r.c[0]&&(t=`-`+t)),t},o.valueOf=o.toJSON=function(){return W(this)},o._isBigNumber=!0,e!=null&&b.set(e),b}function F(e){var t=e|0;return e>0||e===t?t:t-1}function I(e){for(var t,n,r=1,i=e.length,a=e[0]+``;r<i;){for(t=e[r++]+``,n=M-t.length;n--;t=`0`+t);a+=t}for(i=a.length;a.charCodeAt(--i)===48;);return a.slice(0,i+1||1)}function L(e,t){var n,r,i=e.c,a=t.c,o=e.s,s=t.s,c=e.e,l=t.e;if(!o||!s)return null;if(n=i&&!i[0],r=a&&!a[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=c==l,!i||!a)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(s=(c=i.length)<(l=a.length)?c:l,o=0;o<s;o++)if(i[o]!=a[o])return i[o]>a[o]^n?1:-1;return c==l?0:c>l^n?1:-1}function R(e,t,n,r){if(e<t||e>n||e!==k(e))throw Error(A+(r||`Argument`)+(typeof e==`number`?e<t||e>n?` out of range: `:` not an integer: `:` not a primitive number: `)+String(e));return e}function z(e){return{}.toString.call(e)==`[object Array]`}function B(e){var t=e.c.length-1;return F(e.e/M)==t&&e.c[t]%2!=0}function V(e,t){return(e.length>1?e.charAt(0)+`.`+e.slice(1):e)+(t<0?`e`:`e+`)+t}function H(e,t,n){var r,i;if(t<0){for(i=n+`.`;++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+`.`+e.slice(t));return e}D.config({FORMAT:{prefix:``,decimalSeparator:`.`,groupSeparator:`,`,groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:` `,fractionGroupSize:0,suffix:``}});var U=(e,t)=>i(D(e)).map(e=>{if(typeof t!=`number`)return e;let n=e.decimalPlaces(t,D.ROUND_DOWN);return t>0&&!e.isZero()&&n.isZero()?e.precision(t,D.ROUND_DOWN):n}).map(e=>e.toFormat()).unsafeCoerce(),W=e=>U(e,6),ie=e=>U((e*100).toFixed(2)),ae=()=>p.map(e=>e.parent!==e).orDefault(!1),oe=(()=>{let e=null;return()=>typeof e==`boolean`?e:p.map(t=>{try{e=!!new URLSearchParams(t.self.location.search).get(`embed`)}catch{e=!1}return!!e}).orDefault(!1)})(),se=e=>`${f.assetsUrl}/networks/${e}.svg`,ce=e=>`${f.assetsUrl}/tokens/${e}.svg`,le=e=>new Promise(t=>setTimeout(t,e)),ue=e=>Object.fromEntries(e),de=e=>Object.entries(e);function fe(e,t){let n=t?.leadingChars??4,r=t?.trailingChars??4;return e.length<n+r?e:`${e.substring(0,n)}\u2026${e.substring(e.length-r)}`}var pe=()=>{let e=!1;return e=typeof window>`u`?!1:!!(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(navigator.userAgent.substring(0,4))||(()=>{try{return typeof window>`u`?!1:(document.createEvent(`TouchEvent`),!0)}catch{return!1}})()),e},me=(e,t)=>t.multipliedBy(e).dividedBy(1e4),he=e=>D(e).dividedBy(100).toNumber();E();function G(e){return typeof e==`function`}function ge(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var _e=ge(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
2
2
|
`+t.map(function(e,t){return t+1+`) `+e.toString()}).join(`
|
|
3
|
-
`):``,this.name=`UnsubscriptionError`,this.errors=t}});function K(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var q=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=v(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var c=this.initialTeardown;if(G(c))try{c()}catch(e){i=e instanceof
|
|
3
|
+
`):``,this.name=`UnsubscriptionError`,this.errors=t}});function K(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var q=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=v(a),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else a.remove(this);var c=this.initialTeardown;if(G(c))try{c()}catch(e){i=e instanceof _e?e.errors:[e]}var l=this._finalizers;if(l){this._finalizers=null;try{for(var u=v(l),d=u.next();!d.done;d=u.next()){var f=d.value;try{be(f)}catch(e){i??=[],e instanceof _e?i=b(b([],y(i)),y(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}if(i)throw new _e(i)}},e.prototype.add=function(t){if(t&&t!==this)if(this.closed)be(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=this._finalizers??[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&K(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&K(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e}(),ve=q.EMPTY;function ye(e){return e instanceof q||e&&`closed`in e&&G(e.remove)&&G(e.add)&&G(e.unsubscribe)}function be(e){G(e)?e():e.unsubscribe()}var J={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};E();var Y={setTimeout:function(e,t){var n=[...arguments].slice(2),r=Y.delegate;return r?.setTimeout?r.setTimeout.apply(r,b([e,t],y(n))):setTimeout.apply(void 0,b([e,t],y(n)))},clearTimeout:function(e){return(Y.delegate?.clearTimeout||clearTimeout)(e)},delegate:void 0};function xe(e){Y.setTimeout(function(){var t=J.onUnhandledError;if(t)t(e);else throw e})}function Se(){}var Ce=(function(){return Ee(`C`,void 0,void 0)})();function we(e){return Ee(`E`,void 0,e)}function Te(e){return Ee(`N`,e,void 0)}function Ee(e,t,n){return{kind:e,value:t,error:n}}var X=null;function Z(e){if(J.useDeprecatedSynchronousErrorHandling){var t=!X;if(t&&(X={errorThrown:!1,error:null}),e(),t){var n=X,r=n.errorThrown,i=n.error;if(X=null,r)throw i}}else e()}function De(e){J.useDeprecatedSynchronousErrorHandling&&X&&(X.errorThrown=!0,X.error=e)}E();var Oe=function(e){m(t,e);function t(t){var n=e.call(this)||this;return n.isStopped=!1,t?(n.destination=t,ye(t)&&t.add(n)):n.destination=Pe,n}return t.create=function(e,t,n){return new Q(e,t,n)},t.prototype.next=function(e){this.isStopped?Ne(Te(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?Ne(we(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?Ne(Ce,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(q),ke=Function.prototype.bind;function Ae(e,t){return ke.call(e,t)}var je=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){$(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){$(e)}else $(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){$(e)}},e}(),Q=function(e){m(t,e);function t(t,n,r){var i=e.call(this)||this,a;if(G(t)||!t)a={next:t??void 0,error:n??void 0,complete:r??void 0};else{var o;i&&J.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&Ae(t.next,o),error:t.error&&Ae(t.error,o),complete:t.complete&&Ae(t.complete,o)}):a=t}return i.destination=new je(a),i}return t}(Oe);function $(e){J.useDeprecatedSynchronousErrorHandling?De(e):xe(e)}function Me(e){throw e}function Ne(e,t){var n=J.onStoppedNotification;n&&Y.setTimeout(function(){return n(e,t)})}var Pe={closed:!0,next:Se,error:Me,complete:Se},Fe=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})();function Ie(e){return e}function Le(e){return e.length===0?Ie:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var Re=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this,i=Ve(e)?e:new Q(e,t,n);return Z(function(){var e=r,t=e.operator,n=e.source;i.add(t?t.call(i,n):n?r._subscribe(i):r._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return t=ze(t),new t(function(t,r){var i=new Q({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)})},e.prototype._subscribe=function(e){return this.source?.subscribe(e)},e.prototype[Fe]=function(){return this},e.prototype.pipe=function(){return Le([...arguments])(this)},e.prototype.toPromise=function(e){var t=this;return e=ze(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function ze(e){return e??J.Promise??Promise}function Be(e){return e&&G(e.next)&&G(e.error)&&G(e.complete)}function Ve(e){return e&&e instanceof Oe||Be(e)&&ye(e)}var He=ge(function(e){return function(){e(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`}});E();var Ue=function(e){m(t,e);function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return t.prototype.lift=function(e){var t=new We(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new He},t.prototype.next=function(e){var t=this;Z(function(){var n,r;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||=Array.from(t.observers);try{for(var i=v(t.currentObservers),a=i.next();!a.done;a=i.next())a.value.next(e)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var t=this;Z(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;Z(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,`observed`,{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?ve:(this.currentObservers=null,a.push(e),new q(function(){t.currentObservers=null,K(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new Re;return e.source=this,e},t.create=function(e,t){return new We(e,t)},t}(Re),We=function(e){m(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??ve},t}(Ue);E();var Ge=function(e){m(t,e);function t(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(t.prototype,`value`,{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,r=e._value;if(t)throw n;return this._throwIfClosed(),r},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Ue);function Ke(e){return e}export{C as A,p as B,pe as C,D,le as E,y as F,t as G,o as H,h as I,i as K,b as L,g as M,m as N,T as O,_ as P,v as R,oe as S,ue as T,l as U,f as V,u as W,fe as _,Fe as a,ce as b,xe as c,ge as d,G as f,W as g,he as h,Ie as i,x as j,S as k,q as l,me as m,Ge as n,Q as o,ie as p,a as q,Re as r,Oe as s,Ke as t,K as u,U as v,de as w,ae as x,se as y,E as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{B as e,V as t}from"./createConnector-pbKKdb_k.js";var n=e.chainNullable(e=>e.document),r=e=>`${t.assetsUrl}/widget/${e}`,i={bitget:r(`bitget.png`),fees:r(`fees.png`),ledgerLogo:r(`ledger-logo.svg`),poweredBy:r(`powered-by.png`),wcLogo:r(`wc-logo.svg`),whatIsLiquidStaking:r(`what-is-liquid-staking.png`)},a=()=>n.map(()=>Object.values(i).forEach(e=>{let t=new Image;t.src=e}));export{a as n,n as r,i as t};
|