alchemylab-opencode 2.0.3 → 2.0.4
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/{anthropic-ND6UHXWL.js → anthropic-FVULF7C3.js} +1 -1
- package/dist/{app-runtime-ZWWQ4JTM.js → app-runtime-LDQWNGWP.js} +1 -1
- package/dist/{chunk-IQSFXWDQ.js → chunk-2JE3QYG6.js} +1 -1
- package/dist/{chunk-6MAPFAXY.js → chunk-4GJE6OMN.js} +1 -1
- package/dist/{chunk-AUB2TEYJ.js → chunk-5BLZCAU6.js} +1 -1
- package/dist/{chunk-XSKT4AXR.js → chunk-B74WSFN4.js} +3 -3
- package/dist/{chunk-2XWBNI3L.js → chunk-DADVNQTM.js} +80 -80
- package/dist/{chunk-RIA6SDOY.js → chunk-DWEYXIQI.js} +3 -3
- package/dist/{chunk-L3CE2Y3L.js → chunk-FOHYZ7MJ.js} +1 -1
- package/dist/{chunk-WL33KE3H.js → chunk-G7PFO5HG.js} +3 -3
- package/dist/{chunk-DGJQZN2Q.js → chunk-NGT6LCW6.js} +1 -1
- package/dist/{chunk-DZ6G4VSD.js → chunk-OT2YNR56.js} +1 -1
- package/dist/{chunk-WZ4237YY.js → chunk-OUVSKG2H.js} +1 -1
- package/dist/{chunk-F5PY52BY.js → chunk-UPEPL4I2.js} +1 -1
- package/dist/{code-mode-H3HRSD24.js → code-mode-YYOGD36U.js} +1 -1
- package/dist/{dist-KGNO5AP7.js → dist-KM5HCPZX.js} +1 -1
- package/dist/{dist-WZJ3LNRG.js → dist-YUH4RKR5.js} +1 -1
- package/dist/{dist-es-RZ25XEH6.js → dist-es-6PLFRCS4.js} +1 -1
- package/dist/{dist-es-EVVG3KDV.js → dist-es-G5UIJOU7.js} +2 -2
- package/dist/{dist-es-DHCTZZ2E.js → dist-es-HYIIGUNX.js} +1 -1
- package/dist/{dist-es-CH2YKBKX.js → dist-es-LSR2QCFZ.js} +1 -1
- package/dist/{dist-es-HRCONNGK.js → dist-es-W5GYOX6F.js} +1 -1
- package/dist/run.js +1 -1
- package/dist/serve.js +1 -1
- package/dist/{server-XRUYBM7W.js → server-LVIHYOCY.js} +3 -3
- package/dist/{session-4BXV4JJH.js → session-6OPJNJMK.js} +1 -1
- package/dist/{src-QJHT5SCV.js → src-3NCXEROI.js} +1 -1
- package/dist/{worktree-B2LROS2B.js → worktree-32M5MTFE.js} +1 -1
- package/package.json +1 -1
- /package/dist/{dist-LOXU6IEM.js → dist-CYBRID2F.js} +0 -0
- /package/dist/{lib-7VH6D2QJ.js → lib-ZP7Q6A3E.js} +0 -0
- /package/dist/{mime-types-GSWEOYZ5.js → mime-types-46EO4HOZ.js} +0 -0
- /package/dist/{signin-DKBWDEYP.js → signin-OCIW23YM.js} +0 -0
- /package/dist/{src-JODD73WX.js → src-LXWGIUZH.js} +0 -0
- /package/dist/{src-SMM4U63G.js → src-YAAFIGTW.js} +0 -0
- /package/dist/{sso-oidc-S3P64MCY.js → sso-oidc-OMMKINFE.js} +0 -0
- /package/dist/{sts-RG44NMOQ.js → sts-MWK22JIX.js} +0 -0
- /package/dist/{token-2V62AM3G.js → token-QPO3OAGS.js} +0 -0
- /package/dist/{token-util-VXONHEUD.js → token-util-YGPCEEPO.js} +0 -0
|
@@ -15,4 +15,4 @@ import { dirname as __alchemyDirname } from 'node:path';
|
|
|
15
15
|
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
16
|
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
17
|
|
|
18
|
-
import{k as h,t as p,x as m}from"./chunk-4MBUHJHY.js";import{a as w}from"./chunk-
|
|
18
|
+
import{k as h,t as p,x as m}from"./chunk-4MBUHJHY.js";import{a as w}from"./chunk-5BLZCAU6.js";import{c as d,e as n}from"./chunk-KS4WLVK5.js";import"./chunk-VXAPFOIL.js";import{k as u}from"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import{a as t,g as f}from"./chunk-2MRHL4B2.js";var g=f(w(),1);function v(r){let l=new g.GoogleAuth({scopes:["https://www.googleapis.com/auth/cloud-platform"],...r});return t(async function(){var e;let a=await(await l.getClient()).getAccessToken();return(e=a?.token)!=null?e:null},"generateAuthToken")}t(v,"createAuthTokenGenerator");var x={bash_20241022:n.bash_20241022,bash_20250124:n.bash_20250124,textEditor_20241022:n.textEditor_20241022,textEditor_20250124:n.textEditor_20250124,textEditor_20250429:n.textEditor_20250429,textEditor_20250728:n.textEditor_20250728,computer_20241022:n.computer_20241022,webSearch_20250305:n.webSearch_20250305,toolSearchRegex_20251119:n.toolSearchRegex_20251119,toolSearchBm25_20251119:n.toolSearchBm25_20251119};function b(r={}){let l=t(()=>{var o;let a=h({settingValue:r.location,environmentVariableName:"GOOGLE_VERTEX_LOCATION"}),c=h({settingValue:r.project,environmentVariableName:"GOOGLE_VERTEX_PROJECT"}),s=t(()=>a==="global"?"aiplatform.googleapis.com":a==="eu"||a==="us"?`aiplatform.${a}.rep.googleapis.com`:`${a}-aiplatform.googleapis.com`,"getHost");return(o=m(r.baseURL))!=null?o:`https://${s()}/v1/projects/${c}/locations/${a}/publishers/anthropic/models`},"getBaseURL"),i=t(o=>{var a;return new d(o,{provider:"vertex.anthropic.messages",baseURL:l(),headers:(a=r.headers)!=null?a:{},fetch:r.fetch,buildRequestUrl:t((c,s)=>`${c}/${o}:${s?"streamRawPredict":"rawPredict"}`,"buildRequestUrl"),transformRequestBody:t(c=>{let{model:s,..._}=c;return{..._,anthropic_version:"vertex-2023-10-16"}},"transformRequestBody"),supportedUrls:t(()=>({}),"supportedUrls"),supportsNativeStructuredOutput:!1,supportsStrictTools:!1})},"createChatModel"),e=t(function(o){if(new.target)throw new Error("The Anthropic model function cannot be called with the new keyword.");return i(o)},"provider");return e.specificationVersion="v3",e.languageModel=i,e.chat=i,e.messages=i,e.embeddingModel=o=>{throw new u({modelId:o,modelType:"embeddingModel"})},e.textEmbeddingModel=e.embeddingModel,e.imageModel=o=>{throw new u({modelId:o,modelType:"imageModel"})},e.tools=x,e}t(b,"createVertexAnthropic");function E(r={}){var l;let i=(l=r.generateAuthToken)!=null?l:v(r.googleAuthOptions);return b({...r,headers:t(async()=>({Authorization:`Bearer ${await i()}`,...await p(r.headers)}),"headers")})}t(E,"createVertexAnthropic2");var S=E();export{E as createVertexAnthropic,S as vertexAnthropic};
|
|
@@ -15,4 +15,4 @@ import { dirname as __alchemyDirname } from 'node:path';
|
|
|
15
15
|
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
16
|
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
17
|
|
|
18
|
-
import{B as $,C as i,D as oo,F as eo,G as mo,b as F,e as B,f as D,h as I,i as T,j as O,k as W,l as w,n as G,o as J,p as Q,r as q,s as z,v as H,x as X,z as _}from"./chunk-
|
|
18
|
+
import{B as $,C as i,D as oo,F as eo,G as mo,b as F,e as B,f as D,h as I,i as T,j as O,k as W,l as w,n as G,o as J,p as Q,r as q,s as z,v as H,x as X,z as _}from"./chunk-DADVNQTM.js";import{F as to,G as no,H as io,z as U}from"./chunk-G7PFO5HG.js";import{b as K,f as Y,g as Z,w as ro}from"./chunk-4GJE6OMN.js";import{K as C,N as L,O as E,P as N,S as V,X as j,n as y}from"./chunk-B74WSFN4.js";import"./chunk-GW3ZRKAI.js";import{R as x,g as k,i as M,q as A}from"./chunk-FOHYZ7MJ.js";import{B as u,_a as v,da as c,ea as S,ha as l,kb as b,la as P,lb as R,mb as h,va as g}from"./chunk-DWEYXIQI.js";import"./chunk-QD24DLUD.js";import"./chunk-OUVSKG2H.js";import"./chunk-V6FDDNGV.js";import"./chunk-QCRIXKIC.js";import"./chunk-P5RLCJUV.js";import"./chunk-LIXP4TPL.js";import"./chunk-M6E6KNLV.js";import"./chunk-NDI67DRG.js";import"./chunk-WKZYINC7.js";import"./chunk-Q3WIUQXB.js";import"./chunk-WPMP2ZFE.js";import"./chunk-K5LKDIVU.js";import"./chunk-TK5R7QUN.js";import{d as a}from"./chunk-R2GWBJEP.js";import{ha as d,pc as f,qb as s}from"./chunk-7XX6TY62.js";import"./chunk-LSC4RT5V.js";import"./chunk-V7XKKJ7X.js";import"./chunk-FV7U6PVP.js";import"./chunk-UCLPBO4I.js";import"./chunk-V6HERYFV.js";import"./chunk-DO2UZ6NY.js";import"./chunk-AZUMH3TO.js";import{r as p}from"./chunk-VWLJXTZ5.js";import{Tc as n}from"./chunk-ELPXQ32J.js";import{a as t}from"./chunk-2MRHL4B2.js";var po=i.build(d.group([l.node,f.node,s.node,g.node,P.node,v.node,R.node,M.node,A.node,to.node,y.node,no.node,F.node,io.node,N.node,E.node,B.node,L.node,D.node,x.node,u.node,I.node,k.node,h.node,b.node,T.node,w.node,G.node,J.node,W.node,X.node,Q.node,O.node,q.node,j.node,V.node,K.node,U.node,H.node,z.node,Z.node,Y.node,_.node,oo.node,ro.node,eo.node,$.node,mo.node])).pipe(n.provideMerge(i.build(a.node)),n.provideMerge(S)),r=p.make(po,{memoMap:c}),e=t(o=>C(o),"wrap"),fr={runSync(o){return r.runSync(e(o))},runPromise(o,m){return r.runPromise(e(o),m)},runPromiseExit(o,m){return r.runPromiseExit(e(o),m)},runFork(o){return r.runFork(e(o))},runCallback(o){return r.runCallback(e(o))},dispose:t(()=>r.dispose(),"dispose")};export{po as AppLayer,fr as AppRuntime};
|
|
@@ -15,4 +15,4 @@ import { dirname as __alchemyDirname } from 'node:path';
|
|
|
15
15
|
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
16
|
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
17
|
|
|
18
|
-
import{c as T}from"./chunk-OCWGUTZJ.js";import{f as S}from"./chunk-CYRZU5QM.js";import{a as t,g as a}from"./chunk-2MRHL4B2.js";var f=a(T()),s=a(S());import{readFileSync as N}from"node:fs";var d=t(e=>async i=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:l,providerId:n,policyArns:g,policy:E,durationSeconds:p}=e,{roleAssumerWithWebIdentity:c}=e;if(!c){let{getDefaultRoleAssumerWithWebIdentity:_}=await import("./sts-
|
|
18
|
+
import{c as T}from"./chunk-OCWGUTZJ.js";import{f as S}from"./chunk-CYRZU5QM.js";import{a as t,g as a}from"./chunk-2MRHL4B2.js";var f=a(T()),s=a(S());import{readFileSync as N}from"node:fs";var d=t(e=>async i=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:l,providerId:n,policyArns:g,policy:E,durationSeconds:p}=e,{roleAssumerWithWebIdentity:c}=e;if(!c){let{getDefaultRoleAssumerWithWebIdentity:_}=await import("./sts-MWK22JIX.js");c=_({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...i?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return c({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:l,ProviderId:n,PolicyArns:g,Policy:E,DurationSeconds:p})},"fromWebToken");var m="AWS_WEB_IDENTITY_TOKEN_FILE",I="AWS_ROLE_ARN",y="AWS_ROLE_SESSION_NAME",A=t((e={})=>async i=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[m],r=e?.roleArn??process.env[I],l=e?.roleSessionName??process.env[y];if(!o||!r)throw new s.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await d({...e,webIdentityToken:s.externalDataInterceptor?.getTokenRecord?.()[o]??N(o,{encoding:"ascii"}),roleArn:r,roleSessionName:l})(i);return o===process.env[m]&&(0,f.setCredentialFeature)(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),n},"fromTokenFile");export{d as a,A as b};
|
|
@@ -15,7 +15,7 @@ import { dirname as __alchemyDirname } from 'node:path';
|
|
|
15
15
|
const __alchemy_filename = __alchemyFileURLToPath(import.meta.url);
|
|
16
16
|
const __alchemy_dirname = __alchemyDirname(__alchemy_filename);
|
|
17
17
|
|
|
18
|
-
import{L as wt,P as Be,X as ze}from"./chunk-
|
|
18
|
+
import{L as wt,P as Be,X as ze}from"./chunk-B74WSFN4.js";import{Aa as ht,C as Ne,Da as T,Ma as Ve,_a as $e,jb as J,kb as Me,lb as Oe,mb as qe,s as Ae,v as se,wa as Ge,za as Le}from"./chunk-DWEYXIQI.js";import{c as gt}from"./chunk-R2GWBJEP.js";import{$c as We,Aa as Se,Fa as at,Oa as dt,Pa as D,Ra as lt,Wc as X,_c as m,ad as _e,b as rt,bd as U,c as xe,de as yt,ha as Z,ia as ot,ka as nt,lb as ft,lc as ut,mb as pt,oa as H,pa as it,pc as L,qb as de,rc as mt,uc as be,vb as je,ya as st,za as ct}from"./chunk-7XX6TY62.js";import{Bc as ae,Bf as e,Tc as Q,bb as z,bi as ve,dc as O,lc as we,nb as et,ni as tt,pj as n}from"./chunk-ELPXQ32J.js";import{a as u,e as ie}from"./chunk-2MRHL4B2.js";var Ze={};ie(Ze,{CreateFailedError:()=>Te,CreateInput:()=>$t,Event:()=>Ce,Info:()=>Vt,ListFailedError:()=>Fe,NameGenerationFailedError:()=>Re,NotGitError:()=>me,RemoveFailedError:()=>re,RemoveInput:()=>Mt,ResetFailedError:()=>W,ResetInput:()=>Ot,Service:()=>ye,StartCommandFailedError:()=>Qe,Worktree:()=>Ze,node:()=>Yt});var ue={};ie(ue,{InstanceStore:()=>ue,Service:()=>ce,bootstrapNode:()=>bt,node:()=>Gt,use:()=>At});var le={};ie(le,{InstanceBootstrap:()=>le,Service:()=>Ye});var Ye=class extends z.Service()("@opencode/InstanceBootstrap"){static{u(this,"Service")}};var te={};ie(te,{Event:()=>xt,Info:()=>Tt,NotFoundError:()=>Pe,Project:()=>te,Service:()=>K,UpdateInput:()=>Ft,UpdatePayload:()=>Ut,fromRow:()=>ee,node:()=>Ke,use:()=>_t});var pe={};ie(pe,{Command:()=>pe,Default:()=>ke,Event:()=>Dt,Info:()=>Pt,Service:()=>fe,hints:()=>De,node:()=>Rt});import jt from"path";var He=`Create or update \`AGENTS.md\` for this repository.
|
|
19
19
|
|
|
20
20
|
The goal is a compact instruction file that helps future OpenCode sessions avoid mistakes and ramp up quickly. Every line should answer: "Would an agent likely miss this without help?" If not, leave it out.
|
|
21
21
|
|
|
@@ -20,7 +20,7 @@ import{a as s,b as L,d as k}from"./chunk-2MRHL4B2.js";var Xr=k((Zf,is)=>{"use st
|
|
|
20
20
|
Content-Type: ${o}\r
|
|
21
21
|
\r
|
|
22
22
|
`,typeof i.content=="string"?yield i.content:yield*i.content,yield`\r
|
|
23
|
-
`}yield r}static#s;static#o;static async#a(){return this.#s||=(await import("./dist-LOXU6IEM.js")).HttpsProxyAgent,this.#s}static async#c(){let e=typeof window<"u"&&!!window;return this.#o||=e?window.fetch:(await import("./src-WDYKISPD.js")).default,this.#o}static mergeHeaders(e,...t){e=e instanceof Headers?e:new Headers(e);for(let r of t)(r instanceof Headers?r:new Headers(r)).forEach((o,u)=>{u==="set-cookie"?e.append(u,o):e.set(u,o)});return e}};at.Gaxios=zt;ot=zt});var ce=k(he=>{"use strict";var Xa=he&&he.__createBinding||(Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return e[t]},"get")}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]})),Qa=he&&he.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Xa(e,n,t)};Object.defineProperty(he,"__esModule",{value:!0});he.instance=he.Gaxios=he.GaxiosError=void 0;he.request=ec;var ys=gs();Object.defineProperty(he,"Gaxios",{enumerable:!0,get:s(function(){return ys.Gaxios},"get")});var Za=en();Object.defineProperty(he,"GaxiosError",{enumerable:!0,get:s(function(){return Za.GaxiosError},"get")});Qa(nn(),he);he.instance=new ys.Gaxios;async function ec(n){return he.instance.request(n)}s(ec,"request")});var sn=k((ms,Xt)=>{(function(n){"use strict";var e,t=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,i=Math.floor,o="[BigNumber Error] ",u=o+"Number primitive has more than 15 significant digits: ",l=1e14,d=14,T=9007199254740991,v=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,b=1e9;function F(M){var N,D,G,O=C.prototype={constructor:C,toString:null,valueOf:null},Q=new C(1),J=20,H=4,oe=-7,z=21,ne=-1e7,Z=1e7,ie=!1,$e=1,de=0,Kr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},Ze="0123456789abcdefghijklmnopqrstuvwxyz",Jr=!0;function C(a,c){var f,_,p,y,E,h,g,w,m=this;if(!(m instanceof C))return new C(a,c);if(c==null){if(a&&a._isBigNumber===!0){m.s=a.s,!a.c||a.e>Z?m.c=m.e=null:a.e<ne?m.c=[m.e=0]:(m.e=a.e,m.c=a.c.slice());return}if((h=typeof a=="number")&&a*0==0){if(m.s=1/a<0?(a=-a,-1):1,a===~~a){for(y=0,E=a;E>=10;E/=10,y++);y>Z?m.c=m.e=null:(m.e=y,m.c=[a]);return}w=String(a)}else{if(!t.test(w=String(a)))return G(m,w,h);m.s=w.charCodeAt(0)==45?(w=w.slice(1),-1):1}(y=w.indexOf("."))>-1&&(w=w.replace(".","")),(E=w.search(/e/i))>0?(y<0&&(y=E),y+=+w.slice(E+1),w=w.substring(0,E)):y<0&&(y=w.length)}else{if(R(c,2,Ze.length,"Base"),c==10&&Jr)return m=new C(a),Ae(m,J+m.e+1,H);if(w=String(a),h=typeof a=="number"){if(a*0!=0)return G(m,w,h,c);if(m.s=1/a<0?(w=w.slice(1),-1):1,C.DEBUG&&w.replace(/^0\.0*|\./,"").length>15)throw Error(u+a)}else m.s=w.charCodeAt(0)===45?(w=w.slice(1),-1):1;for(f=Ze.slice(0,c),y=E=0,g=w.length;E<g;E++)if(f.indexOf(_=w.charAt(E))<0){if(_=="."){if(E>y){y=g;continue}}else if(!p&&(w==w.toUpperCase()&&(w=w.toLowerCase())||w==w.toLowerCase()&&(w=w.toUpperCase()))){p=!0,E=-1,y=0;continue}return G(m,String(a),h,c)}h=!1,w=D(w,c,10,m.s),(y=w.indexOf("."))>-1?w=w.replace(".",""):y=w.length}for(E=0;w.charCodeAt(E)===48;E++);for(g=w.length;w.charCodeAt(--g)===48;);if(w=w.slice(E,++g)){if(g-=E,h&&C.DEBUG&&g>15&&(a>T||a!==i(a)))throw Error(u+m.s*a);if((y=y-E-1)>Z)m.c=m.e=null;else if(y<ne)m.c=[m.e=0];else{if(m.e=y,m.c=[],E=(y+1)%d,y<0&&(E+=d),E<g){for(E&&m.c.push(+w.slice(0,E)),g-=d;E<g;)m.c.push(+w.slice(E,E+=d));E=d-(w=w.slice(E)).length}else E-=g;for(;E--;w+="0");m.c.push(+w)}}else m.c=[m.e=0]}s(C,"BigNumber"),C.clone=F,C.ROUND_UP=0,C.ROUND_DOWN=1,C.ROUND_CEIL=2,C.ROUND_FLOOR=3,C.ROUND_HALF_UP=4,C.ROUND_HALF_DOWN=5,C.ROUND_HALF_EVEN=6,C.ROUND_HALF_CEIL=7,C.ROUND_HALF_FLOOR=8,C.EUCLID=9,C.config=C.set=function(a){var c,f;if(a!=null)if(typeof a=="object"){if(a.hasOwnProperty(c="DECIMAL_PLACES")&&(f=a[c],R(f,0,b,c),J=f),a.hasOwnProperty(c="ROUNDING_MODE")&&(f=a[c],R(f,0,8,c),H=f),a.hasOwnProperty(c="EXPONENTIAL_AT")&&(f=a[c],f&&f.pop?(R(f[0],-b,0,c),R(f[1],0,b,c),oe=f[0],z=f[1]):(R(f,-b,b,c),oe=-(z=f<0?-f:f))),a.hasOwnProperty(c="RANGE"))if(f=a[c],f&&f.pop)R(f[0],-b,-1,c),R(f[1],1,b,c),ne=f[0],Z=f[1];else if(R(f,-b,b,c),f)ne=-(Z=f<0?-f:f);else throw Error(o+c+" cannot be zero: "+f);if(a.hasOwnProperty(c="CRYPTO"))if(f=a[c],f===!!f)if(f)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))ie=f;else throw ie=!f,Error(o+"crypto unavailable");else ie=f;else throw Error(o+c+" not true or false: "+f);if(a.hasOwnProperty(c="MODULO_MODE")&&(f=a[c],R(f,0,9,c),$e=f),a.hasOwnProperty(c="POW_PRECISION")&&(f=a[c],R(f,0,b,c),de=f),a.hasOwnProperty(c="FORMAT"))if(f=a[c],typeof f=="object")Kr=f;else throw Error(o+c+" not an object: "+f);if(a.hasOwnProperty(c="ALPHABET"))if(f=a[c],typeof f=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(f))Jr=f.slice(0,10)=="0123456789",Ze=f;else throw Error(o+c+" invalid: "+f)}else throw Error(o+"Object expected: "+a);return{DECIMAL_PLACES:J,ROUNDING_MODE:H,EXPONENTIAL_AT:[oe,z],RANGE:[ne,Z],CRYPTO:ie,MODULO_MODE:$e,POW_PRECISION:de,FORMAT:Kr,ALPHABET:Ze}},C.isBigNumber=function(a){if(!a||a._isBigNumber!==!0)return!1;if(!C.DEBUG)return!0;var c,f,_=a.c,p=a.e,y=a.s;e:if({}.toString.call(_)=="[object Array]"){if((y===1||y===-1)&&p>=-b&&p<=b&&p===i(p)){if(_[0]===0){if(p===0&&_.length===1)return!0;break e}if(c=(p+1)%d,c<1&&(c+=d),String(_[0]).length==c){for(c=0;c<_.length;c++)if(f=_[c],f<0||f>=l||f!==i(f))break e;if(f!==0)return!0}}}else if(_===null&&p===null&&(y===null||y===1||y===-1))return!0;throw Error(o+"Invalid BigNumber: "+a)},C.maximum=C.max=function(){return zi(arguments,-1)},C.minimum=C.min=function(){return zi(arguments,1)},C.random=(function(){var a=9007199254740992,c=Math.random()*a&2097151?function(){return i(Math.random()*a)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(f){var _,p,y,E,h,g=0,w=[],m=new C(Q);if(f==null?f=J:R(f,0,b),E=r(f/d),ie)if(crypto.getRandomValues){for(_=crypto.getRandomValues(new Uint32Array(E*=2));g<E;)h=_[g]*131072+(_[g+1]>>>11),h>=9e15?(p=crypto.getRandomValues(new Uint32Array(2)),_[g]=p[0],_[g+1]=p[1]):(w.push(h%1e14),g+=2);g=E/2}else if(crypto.randomBytes){for(_=crypto.randomBytes(E*=7);g<E;)h=(_[g]&31)*281474976710656+_[g+1]*1099511627776+_[g+2]*4294967296+_[g+3]*16777216+(_[g+4]<<16)+(_[g+5]<<8)+_[g+6],h>=9e15?crypto.randomBytes(7).copy(_,g):(w.push(h%1e14),g+=7);g=E/7}else throw ie=!1,Error(o+"crypto unavailable");if(!ie)for(;g<E;)h=c(),h<9e15&&(w[g++]=h%1e14);for(E=w[--g],f%=d,E&&f&&(h=v[d-f],w[g]=i(E/h)*h);w[g]===0;w.pop(),g--);if(g<0)w=[y=0];else{for(y=-1;w[0]===0;w.splice(0,1),y-=d);for(g=1,h=w[0];h>=10;h/=10,g++);g<d&&(y-=d-g)}return m.e=y,m.c=w,m}})(),C.sum=function(){for(var a=1,c=arguments,f=new C(c[0]);a<c.length;)f=f.plus(c[a++]);return f},D=(function(){var a="0123456789";function c(f,_,p,y){for(var E,h=[0],g,w=0,m=f.length;w<m;){for(g=h.length;g--;h[g]*=_);for(h[0]+=y.indexOf(f.charAt(w++)),E=0;E<h.length;E++)h[E]>p-1&&(h[E+1]==null&&(h[E+1]=0),h[E+1]+=h[E]/p|0,h[E]%=p)}return h.reverse()}return s(c,"toBaseOut"),function(f,_,p,y,E){var h,g,w,m,S,U,j,K,ee=f.indexOf("."),ae=J,$=H;for(ee>=0&&(m=de,de=0,f=f.replace(".",""),K=new C(_),U=K.pow(f.length-ee),de=m,K.c=c(re(I(U.c),U.e,"0"),10,p,a),K.e=K.c.length),j=c(f,_,p,E?(h=Ze,a):(h=a,Ze)),w=m=j.length;j[--m]==0;j.pop());if(!j[0])return h.charAt(0);if(ee<0?--w:(U.c=j,U.e=w,U.s=y,U=N(U,K,ae,$,p),j=U.c,S=U.r,w=U.e),g=w+ae+1,ee=j[g],m=p/2,S=S||g<0||j[g+1]!=null,S=$<4?(ee!=null||S)&&($==0||$==(U.s<0?3:2)):ee>m||ee==m&&($==4||S||$==6&&j[g-1]&1||$==(U.s<0?8:7)),g<1||!j[0])f=S?re(h.charAt(1),-ae,h.charAt(0)):h.charAt(0);else{if(j.length=g,S)for(--p;++j[--g]>p;)j[g]=0,g||(++w,j=[1].concat(j));for(m=j.length;!j[--m];);for(ee=0,f="";ee<=m;f+=h.charAt(j[ee++]));f=re(f,w,h.charAt(0))}return f}})(),N=(function(){function a(_,p,y){var E,h,g,w,m=0,S=_.length,U=p%A,j=p/A|0;for(_=_.slice();S--;)g=_[S]%A,w=_[S]/A|0,E=j*g+w*U,h=U*g+E%A*A+m,m=(h/y|0)+(E/A|0)+j*w,_[S]=h%y;return m&&(_=[m].concat(_)),_}s(a,"multiply");function c(_,p,y,E){var h,g;if(y!=E)g=y>E?1:-1;else for(h=g=0;h<y;h++)if(_[h]!=p[h]){g=_[h]>p[h]?1:-1;break}return g}s(c,"compare");function f(_,p,y,E){for(var h=0;y--;)_[y]-=h,h=_[y]<p[y]?1:0,_[y]=h*E+_[y]-p[y];for(;!_[0]&&_.length>1;_.splice(0,1));}return s(f,"subtract"),function(_,p,y,E,h){var g,w,m,S,U,j,K,ee,ae,$,W,ue,Vt,Yr,zr,je,Ot,Te=_.s==p.s?1:-1,fe=_.c,te=p.c;if(!fe||!fe[0]||!te||!te[0])return new C(!_.s||!p.s||(fe?te&&fe[0]==te[0]:!te)?NaN:fe&&fe[0]==0||!te?Te*0:Te/0);for(ee=new C(Te),ae=ee.c=[],w=_.e-p.e,Te=y+w+1,h||(h=l,w=B(_.e/d)-B(p.e/d),Te=Te/d|0),m=0;te[m]==(fe[m]||0);m++);if(te[m]>(fe[m]||0)&&w--,Te<0)ae.push(1),S=!0;else{for(Yr=fe.length,je=te.length,m=0,Te+=2,U=i(h/(te[0]+1)),U>1&&(te=a(te,U,h),fe=a(fe,U,h),je=te.length,Yr=fe.length),Vt=je,$=fe.slice(0,je),W=$.length;W<je;$[W++]=0);Ot=te.slice(),Ot=[0].concat(Ot),zr=te[0],te[1]>=h/2&&zr++;do{if(U=0,g=c(te,$,je,W),g<0){if(ue=$[0],je!=W&&(ue=ue*h+($[1]||0)),U=i(ue/zr),U>1)for(U>=h&&(U=h-1),j=a(te,U,h),K=j.length,W=$.length;c(j,$,K,W)==1;)U--,f(j,je<K?Ot:te,K,h),K=j.length,g=1;else U==0&&(g=U=1),j=te.slice(),K=j.length;if(K<W&&(j=[0].concat(j)),f($,j,W,h),W=$.length,g==-1)for(;c(te,$,je,W)<1;)U++,f($,je<W?Ot:te,W,h),W=$.length}else g===0&&(U++,$=[0]);ae[m++]=U,$[0]?$[W++]=fe[Vt]||0:($=[fe[Vt]],W=1)}while((Vt++<Yr||$[0]!=null)&&Te--);S=$[0]!=null,ae[0]||ae.splice(0,1)}if(h==l){for(m=1,Te=ae[0];Te>=10;Te/=10,m++);Ae(ee,y+(ee.e=m+w*d-1)+1,E,S)}else ee.e=w,ee.r=+S;return ee}})();function Vr(a,c,f,_){var p,y,E,h,g;if(f==null?f=H:R(f,0,8),!a.c)return a.toString();if(p=a.c[0],E=a.e,c==null)g=I(a.c),g=_==1||_==2&&(E<=oe||E>=z)?V(g,E):re(g,E,"0");else if(a=Ae(new C(a),c,f),y=a.e,g=I(a.c),h=g.length,_==1||_==2&&(c<=y||y<=oe)){for(;h<c;g+="0",h++);g=V(g,y)}else if(c-=E+(_===2&&y>E),g=re(g,y,"0"),y+1>h){if(--c>0)for(g+=".";c--;g+="0");}else if(c+=y-h,c>0)for(y+1==h&&(g+=".");c--;g+="0");return a.s<0&&p?"-"+g:g}s(Vr,"format");function zi(a,c){for(var f,_,p=1,y=new C(a[0]);p<a.length;p++)_=new C(a[p]),(!_.s||(f=x(y,_))===c||f===0&&y.s===c)&&(y=_);return y}s(zi,"maxOrMin");function Wr(a,c,f){for(var _=1,p=c.length;!c[--p];c.pop());for(p=c[0];p>=10;p/=10,_++);return(f=_+f*d-1)>Z?a.c=a.e=null:f<ne?a.c=[a.e=0]:(a.e=f,a.c=c),a}s(Wr,"normalise"),G=(function(){var a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,f=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,p=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(y,E,h,g){var w,m=h?E:E.replace(p,"");if(_.test(m))y.s=isNaN(m)?null:m<0?-1:1;else{if(!h&&(m=m.replace(a,function(S,U,j){return w=(j=j.toLowerCase())=="x"?16:j=="b"?2:8,!g||g==w?U:S}),g&&(w=g,m=m.replace(c,"$1").replace(f,"0.$1")),E!=m))return new C(m,w);if(C.DEBUG)throw Error(o+"Not a"+(g?" base "+g:"")+" number: "+E);y.s=null}y.c=y.e=null}})();function Ae(a,c,f,_){var p,y,E,h,g,w,m,S=a.c,U=v;if(S){e:{for(p=1,h=S[0];h>=10;h/=10,p++);if(y=c-p,y<0)y+=d,E=c,g=S[w=0],m=i(g/U[p-E-1]%10);else if(w=r((y+1)/d),w>=S.length)if(_){for(;S.length<=w;S.push(0));g=m=0,p=1,y%=d,E=y-d+1}else break e;else{for(g=h=S[w],p=1;h>=10;h/=10,p++);y%=d,E=y-d+p,m=E<0?0:i(g/U[p-E-1]%10)}if(_=_||c<0||S[w+1]!=null||(E<0?g:g%U[p-E-1]),_=f<4?(m||_)&&(f==0||f==(a.s<0?3:2)):m>5||m==5&&(f==4||_||f==6&&(y>0?E>0?g/U[p-E]:0:S[w-1])%10&1||f==(a.s<0?8:7)),c<1||!S[0])return S.length=0,_?(c-=a.e+1,S[0]=U[(d-c%d)%d],a.e=-c||0):S[0]=a.e=0,a;if(y==0?(S.length=w,h=1,w--):(S.length=w+1,h=U[d-y],S[w]=E>0?i(g/U[p-E]%U[E])*h:0),_)for(;;)if(w==0){for(y=1,E=S[0];E>=10;E/=10,y++);for(E=S[0]+=h,h=1;E>=10;E/=10,h++);y!=h&&(a.e++,S[0]==l&&(S[0]=1));break}else{if(S[w]+=h,S[w]!=l)break;S[w--]=0,h=1}for(y=S.length;S[--y]===0;S.pop());}a.e>Z?a.c=a.e=null:a.e<ne&&(a.c=[a.e=0])}return a}s(Ae,"round");function Ke(a){var c,f=a.e;return f===null?a.toString():(c=I(a.c),c=f<=oe||f>=z?V(c,f):re(c,f,"0"),a.s<0?"-"+c:c)}return s(Ke,"valueOf"),O.absoluteValue=O.abs=function(){var a=new C(this);return a.s<0&&(a.s=1),a},O.comparedTo=function(a,c){return x(this,new C(a,c))},O.decimalPlaces=O.dp=function(a,c){var f,_,p,y=this;if(a!=null)return R(a,0,b),c==null?c=H:R(c,0,8),Ae(new C(y),a+y.e+1,c);if(!(f=y.c))return null;if(_=((p=f.length-1)-B(this.e/d))*d,p=f[p])for(;p%10==0;p/=10,_--);return _<0&&(_=0),_},O.dividedBy=O.div=function(a,c){return N(this,new C(a,c),J,H)},O.dividedToIntegerBy=O.idiv=function(a,c){return N(this,new C(a,c),0,1)},O.exponentiatedBy=O.pow=function(a,c){var f,_,p,y,E,h,g,w,m,S=this;if(a=new C(a),a.c&&!a.isInteger())throw Error(o+"Exponent not an integer: "+Ke(a));if(c!=null&&(c=new C(c)),h=a.e>14,!S.c||!S.c[0]||S.c[0]==1&&!S.e&&S.c.length==1||!a.c||!a.c[0])return m=new C(Math.pow(+Ke(S),h?a.s*(2-X(a)):+Ke(a))),c?m.mod(c):m;if(g=a.s<0,c){if(c.c?!c.c[0]:!c.s)return new C(NaN);_=!g&&S.isInteger()&&c.isInteger(),_&&(S=S.mod(c))}else{if(a.e>9&&(S.e>0||S.e<-1||(S.e==0?S.c[0]>1||h&&S.c[1]>=24e7:S.c[0]<8e13||h&&S.c[0]<=9999975e7)))return y=S.s<0&&X(a)?-0:0,S.e>-1&&(y=1/y),new C(g?1/y:y);de&&(y=r(de/d+2))}for(h?(f=new C(.5),g&&(a.s=1),w=X(a)):(p=Math.abs(+Ke(a)),w=p%2),m=new C(Q);;){if(w){if(m=m.times(S),!m.c)break;y?m.c.length>y&&(m.c.length=y):_&&(m=m.mod(c))}if(p){if(p=i(p/2),p===0)break;w=p%2}else if(a=a.times(f),Ae(a,a.e+1,1),a.e>14)w=X(a);else{if(p=+Ke(a),p===0)break;w=p%2}S=S.times(S),y?S.c&&S.c.length>y&&(S.c.length=y):_&&(S=S.mod(c))}return _?m:(g&&(m=Q.div(m)),c?m.mod(c):y?Ae(m,de,H,E):m)},O.integerValue=function(a){var c=new C(this);return a==null?a=H:R(a,0,8),Ae(c,c.e+1,a)},O.isEqualTo=O.eq=function(a,c){return x(this,new C(a,c))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(a,c){return x(this,new C(a,c))>0},O.isGreaterThanOrEqualTo=O.gte=function(a,c){return(c=x(this,new C(a,c)))===1||c===0},O.isInteger=function(){return!!this.c&&B(this.e/d)>this.c.length-2},O.isLessThan=O.lt=function(a,c){return x(this,new C(a,c))<0},O.isLessThanOrEqualTo=O.lte=function(a,c){return(c=x(this,new C(a,c)))===-1||c===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(a,c){var f,_,p,y,E=this,h=E.s;if(a=new C(a,c),c=a.s,!h||!c)return new C(NaN);if(h!=c)return a.s=-c,E.plus(a);var g=E.e/d,w=a.e/d,m=E.c,S=a.c;if(!g||!w){if(!m||!S)return m?(a.s=-c,a):new C(S?E:NaN);if(!m[0]||!S[0])return S[0]?(a.s=-c,a):new C(m[0]?E:H==3?-0:0)}if(g=B(g),w=B(w),m=m.slice(),h=g-w){for((y=h<0)?(h=-h,p=m):(w=g,p=S),p.reverse(),c=h;c--;p.push(0));p.reverse()}else for(_=(y=(h=m.length)<(c=S.length))?h:c,h=c=0;c<_;c++)if(m[c]!=S[c]){y=m[c]<S[c];break}if(y&&(p=m,m=S,S=p,a.s=-a.s),c=(_=S.length)-(f=m.length),c>0)for(;c--;m[f++]=0);for(c=l-1;_>h;){if(m[--_]<S[_]){for(f=_;f&&!m[--f];m[f]=c);--m[f],m[_]+=l}m[_]-=S[_]}for(;m[0]==0;m.splice(0,1),--w);return m[0]?Wr(a,m,w):(a.s=H==3?-1:1,a.c=[a.e=0],a)},O.modulo=O.mod=function(a,c){var f,_,p=this;return a=new C(a,c),!p.c||!a.s||a.c&&!a.c[0]?new C(NaN):!a.c||p.c&&!p.c[0]?new C(p):($e==9?(_=a.s,a.s=1,f=N(p,a,0,3),a.s=_,f.s*=_):f=N(p,a,0,$e),a=p.minus(f.times(a)),!a.c[0]&&$e==1&&(a.s=p.s),a)},O.multipliedBy=O.times=function(a,c){var f,_,p,y,E,h,g,w,m,S,U,j,K,ee,ae,$=this,W=$.c,ue=(a=new C(a,c)).c;if(!W||!ue||!W[0]||!ue[0])return!$.s||!a.s||W&&!W[0]&&!ue||ue&&!ue[0]&&!W?a.c=a.e=a.s=null:(a.s*=$.s,!W||!ue?a.c=a.e=null:(a.c=[0],a.e=0)),a;for(_=B($.e/d)+B(a.e/d),a.s*=$.s,g=W.length,S=ue.length,g<S&&(K=W,W=ue,ue=K,p=g,g=S,S=p),p=g+S,K=[];p--;K.push(0));for(ee=l,ae=A,p=S;--p>=0;){for(f=0,U=ue[p]%ae,j=ue[p]/ae|0,E=g,y=p+E;y>p;)w=W[--E]%ae,m=W[E]/ae|0,h=j*w+m*U,w=U*w+h%ae*ae+K[y]+f,f=(w/ee|0)+(h/ae|0)+j*m,K[y--]=w%ee;K[y]=f}return f?++_:K.splice(0,1),Wr(a,K,_)},O.negated=function(){var a=new C(this);return a.s=-a.s||null,a},O.plus=function(a,c){var f,_=this,p=_.s;if(a=new C(a,c),c=a.s,!p||!c)return new C(NaN);if(p!=c)return a.s=-c,_.minus(a);var y=_.e/d,E=a.e/d,h=_.c,g=a.c;if(!y||!E){if(!h||!g)return new C(p/0);if(!h[0]||!g[0])return g[0]?a:new C(h[0]?_:p*0)}if(y=B(y),E=B(E),h=h.slice(),p=y-E){for(p>0?(E=y,f=g):(p=-p,f=h),f.reverse();p--;f.push(0));f.reverse()}for(p=h.length,c=g.length,p-c<0&&(f=g,g=h,h=f,c=p),p=0;c;)p=(h[--c]=h[c]+g[c]+p)/l|0,h[c]=l===h[c]?0:h[c]%l;return p&&(h=[p].concat(h),++E),Wr(a,h,E)},O.precision=O.sd=function(a,c){var f,_,p,y=this;if(a!=null&&a!==!!a)return R(a,1,b),c==null?c=H:R(c,0,8),Ae(new C(y),a,c);if(!(f=y.c))return null;if(p=f.length-1,_=p*d+1,p=f[p]){for(;p%10==0;p/=10,_--);for(p=f[0];p>=10;p/=10,_++);}return a&&y.e+1>_&&(_=y.e+1),_},O.shiftedBy=function(a){return R(a,-T,T),this.times("1e"+a)},O.squareRoot=O.sqrt=function(){var a,c,f,_,p,y=this,E=y.c,h=y.s,g=y.e,w=J+4,m=new C("0.5");if(h!==1||!E||!E[0])return new C(!h||h<0&&(!E||E[0])?NaN:E?y:1/0);if(h=Math.sqrt(+Ke(y)),h==0||h==1/0?(c=I(E),(c.length+g)%2==0&&(c+="0"),h=Math.sqrt(+c),g=B((g+1)/2)-(g<0||g%2),h==1/0?c="5e"+g:(c=h.toExponential(),c=c.slice(0,c.indexOf("e")+1)+g),f=new C(c)):f=new C(h+""),f.c[0]){for(g=f.e,h=g+w,h<3&&(h=0);;)if(p=f,f=m.times(p.plus(N(y,p,w,1))),I(p.c).slice(0,h)===(c=I(f.c)).slice(0,h))if(f.e<g&&--h,c=c.slice(h-3,h+1),c=="9999"||!_&&c=="4999"){if(!_&&(Ae(p,p.e+J+2,0),p.times(p).eq(y))){f=p;break}w+=4,h+=4,_=1}else{(!+c||!+c.slice(1)&&c.charAt(0)=="5")&&(Ae(f,f.e+J+2,1),a=!f.times(f).eq(y));break}}return Ae(f,f.e+J+1,H,a)},O.toExponential=function(a,c){return a!=null&&(R(a,0,b),a++),Vr(this,a,c,1)},O.toFixed=function(a,c){return a!=null&&(R(a,0,b),a=a+this.e+1),Vr(this,a,c)},O.toFormat=function(a,c,f){var _,p=this;if(f==null)a!=null&&c&&typeof c=="object"?(f=c,c=null):a&&typeof a=="object"?(f=a,a=c=null):f=Kr;else if(typeof f!="object")throw Error(o+"Argument not an object: "+f);if(_=p.toFixed(a,c),p.c){var y,E=_.split("."),h=+f.groupSize,g=+f.secondaryGroupSize,w=f.groupSeparator||"",m=E[0],S=E[1],U=p.s<0,j=U?m.slice(1):m,K=j.length;if(g&&(y=h,h=g,g=y,K-=y),h>0&&K>0){for(y=K%h||h,m=j.substr(0,y);y<K;y+=h)m+=w+j.substr(y,h);g>0&&(m+=w+j.slice(y)),U&&(m="-"+m)}_=S?m+(f.decimalSeparator||"")+((g=+f.fractionGroupSize)?S.replace(new RegExp("\\d{"+g+"}\\B","g"),"$&"+(f.fractionGroupSeparator||"")):S):m}return(f.prefix||"")+_+(f.suffix||"")},O.toFraction=function(a){var c,f,_,p,y,E,h,g,w,m,S,U,j=this,K=j.c;if(a!=null&&(h=new C(a),!h.isInteger()&&(h.c||h.s!==1)||h.lt(Q)))throw Error(o+"Argument "+(h.isInteger()?"out of range: ":"not an integer: ")+Ke(h));if(!K)return new C(j);for(c=new C(Q),w=f=new C(Q),_=g=new C(Q),U=I(K),y=c.e=U.length-j.e-1,c.c[0]=v[(E=y%d)<0?d+E:E],a=!a||h.comparedTo(c)>0?y>0?c:w:h,E=Z,Z=1/0,h=new C(U),g.c[0]=0;m=N(h,c,0,1),p=f.plus(m.times(_)),p.comparedTo(a)!=1;)f=_,_=p,w=g.plus(m.times(p=w)),g=p,c=h.minus(m.times(p=c)),h=p;return p=N(a.minus(f),_,0,1),g=g.plus(p.times(w)),f=f.plus(p.times(_)),g.s=w.s=j.s,y=y*2,S=N(w,_,y,H).minus(j).abs().comparedTo(N(g,f,y,H).minus(j).abs())<1?[w,_]:[g,f],Z=E,S},O.toNumber=function(){return+Ke(this)},O.toPrecision=function(a,c){return a!=null&&R(a,1,b),Vr(this,a,c,2)},O.toString=function(a){var c,f=this,_=f.s,p=f.e;return p===null?_?(c="Infinity",_<0&&(c="-"+c)):c="NaN":(a==null?c=p<=oe||p>=z?V(I(f.c),p):re(I(f.c),p,"0"):a===10&&Jr?(f=Ae(new C(f),J+p+1,H),c=re(I(f.c),f.e,"0")):(R(a,2,Ze.length,"Base"),c=D(re(I(f.c),p,"0"),10,a,_,!0)),_<0&&f.c[0]&&(c="-"+c)),c},O.valueOf=O.toJSON=function(){return Ke(this)},O._isBigNumber=!0,M!=null&&C.set(M),C}s(F,"clone");function B(M){var N=M|0;return M>0||M===N?N:N-1}s(B,"bitFloor");function I(M){for(var N,D,G=1,O=M.length,Q=M[0]+"";G<O;){for(N=M[G++]+"",D=d-N.length;D--;N="0"+N);Q+=N}for(O=Q.length;Q.charCodeAt(--O)===48;);return Q.slice(0,O+1||1)}s(I,"coeffToString");function x(M,N){var D,G,O=M.c,Q=N.c,J=M.s,H=N.s,oe=M.e,z=N.e;if(!J||!H)return null;if(D=O&&!O[0],G=Q&&!Q[0],D||G)return D?G?0:-H:J;if(J!=H)return J;if(D=J<0,G=oe==z,!O||!Q)return G?0:!O^D?1:-1;if(!G)return oe>z^D?1:-1;for(H=(oe=O.length)<(z=Q.length)?oe:z,J=0;J<H;J++)if(O[J]!=Q[J])return O[J]>Q[J]^D?1:-1;return oe==z?0:oe>z^D?1:-1}s(x,"compare");function R(M,N,D,G){if(M<N||M>D||M!==i(M))throw Error(o+(G||"Argument")+(typeof M=="number"?M<N||M>D?" out of range: ":" not an integer: ":" not a primitive number: ")+String(M))}s(R,"intCheck");function X(M){var N=M.c.length-1;return B(M.e/d)==N&&M.c[N]%2!=0}s(X,"isOdd");function V(M,N){return(M.length>1?M.charAt(0)+"."+M.slice(1):M)+(N<0?"e":"e+")+N}s(V,"toExponential");function re(M,N,D){var G,O;if(N<0){for(O=D+".";++N;O+=D);M=O+M}else if(G=M.length,++N>G){for(O=D,N-=G;--N;O+=D);M+=O}else N<G&&(M=M.slice(0,N)+"."+M.slice(N));return M}s(re,"toFixedPoint"),e=F(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Xt<"u"&&Xt.exports?Xt.exports=e:(n||(n=typeof self<"u"&&self?self:window),n.BigNumber=e)})(ms)});var As=k((ph,Es)=>{var _s=sn(),ws=Es.exports;(function(){"use strict";function n(T){return T<10?"0"+T:T}s(n,"f");var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,t=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,i,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},u;function l(T){return t.lastIndex=0,t.test(T)?'"'+T.replace(t,function(v){var A=o[v];return typeof A=="string"?A:"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+T+'"'}s(l,"quote");function d(T,v){var A,b,F,B,I=r,x,R=v[T],X=R!=null&&(R instanceof _s||_s.isBigNumber(R));switch(R&&typeof R=="object"&&typeof R.toJSON=="function"&&(R=R.toJSON(T)),typeof u=="function"&&(R=u.call(v,T,R)),typeof R){case"string":return X?R:l(R);case"number":return isFinite(R)?String(R):"null";case"boolean":case"null":case"bigint":return String(R);case"object":if(!R)return"null";if(r+=i,x=[],Object.prototype.toString.apply(R)==="[object Array]"){for(B=R.length,A=0;A<B;A+=1)x[A]=d(A,R)||"null";return F=x.length===0?"[]":r?`[
|
|
23
|
+
`}yield r}static#s;static#o;static async#a(){return this.#s||=(await import("./dist-CYBRID2F.js")).HttpsProxyAgent,this.#s}static async#c(){let e=typeof window<"u"&&!!window;return this.#o||=e?window.fetch:(await import("./src-WDYKISPD.js")).default,this.#o}static mergeHeaders(e,...t){e=e instanceof Headers?e:new Headers(e);for(let r of t)(r instanceof Headers?r:new Headers(r)).forEach((o,u)=>{u==="set-cookie"?e.append(u,o):e.set(u,o)});return e}};at.Gaxios=zt;ot=zt});var ce=k(he=>{"use strict";var Xa=he&&he.__createBinding||(Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:s(function(){return e[t]},"get")}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]})),Qa=he&&he.__exportStar||function(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Xa(e,n,t)};Object.defineProperty(he,"__esModule",{value:!0});he.instance=he.Gaxios=he.GaxiosError=void 0;he.request=ec;var ys=gs();Object.defineProperty(he,"Gaxios",{enumerable:!0,get:s(function(){return ys.Gaxios},"get")});var Za=en();Object.defineProperty(he,"GaxiosError",{enumerable:!0,get:s(function(){return Za.GaxiosError},"get")});Qa(nn(),he);he.instance=new ys.Gaxios;async function ec(n){return he.instance.request(n)}s(ec,"request")});var sn=k((ms,Xt)=>{(function(n){"use strict";var e,t=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,i=Math.floor,o="[BigNumber Error] ",u=o+"Number primitive has more than 15 significant digits: ",l=1e14,d=14,T=9007199254740991,v=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],A=1e7,b=1e9;function F(M){var N,D,G,O=C.prototype={constructor:C,toString:null,valueOf:null},Q=new C(1),J=20,H=4,oe=-7,z=21,ne=-1e7,Z=1e7,ie=!1,$e=1,de=0,Kr={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},Ze="0123456789abcdefghijklmnopqrstuvwxyz",Jr=!0;function C(a,c){var f,_,p,y,E,h,g,w,m=this;if(!(m instanceof C))return new C(a,c);if(c==null){if(a&&a._isBigNumber===!0){m.s=a.s,!a.c||a.e>Z?m.c=m.e=null:a.e<ne?m.c=[m.e=0]:(m.e=a.e,m.c=a.c.slice());return}if((h=typeof a=="number")&&a*0==0){if(m.s=1/a<0?(a=-a,-1):1,a===~~a){for(y=0,E=a;E>=10;E/=10,y++);y>Z?m.c=m.e=null:(m.e=y,m.c=[a]);return}w=String(a)}else{if(!t.test(w=String(a)))return G(m,w,h);m.s=w.charCodeAt(0)==45?(w=w.slice(1),-1):1}(y=w.indexOf("."))>-1&&(w=w.replace(".","")),(E=w.search(/e/i))>0?(y<0&&(y=E),y+=+w.slice(E+1),w=w.substring(0,E)):y<0&&(y=w.length)}else{if(R(c,2,Ze.length,"Base"),c==10&&Jr)return m=new C(a),Ae(m,J+m.e+1,H);if(w=String(a),h=typeof a=="number"){if(a*0!=0)return G(m,w,h,c);if(m.s=1/a<0?(w=w.slice(1),-1):1,C.DEBUG&&w.replace(/^0\.0*|\./,"").length>15)throw Error(u+a)}else m.s=w.charCodeAt(0)===45?(w=w.slice(1),-1):1;for(f=Ze.slice(0,c),y=E=0,g=w.length;E<g;E++)if(f.indexOf(_=w.charAt(E))<0){if(_=="."){if(E>y){y=g;continue}}else if(!p&&(w==w.toUpperCase()&&(w=w.toLowerCase())||w==w.toLowerCase()&&(w=w.toUpperCase()))){p=!0,E=-1,y=0;continue}return G(m,String(a),h,c)}h=!1,w=D(w,c,10,m.s),(y=w.indexOf("."))>-1?w=w.replace(".",""):y=w.length}for(E=0;w.charCodeAt(E)===48;E++);for(g=w.length;w.charCodeAt(--g)===48;);if(w=w.slice(E,++g)){if(g-=E,h&&C.DEBUG&&g>15&&(a>T||a!==i(a)))throw Error(u+m.s*a);if((y=y-E-1)>Z)m.c=m.e=null;else if(y<ne)m.c=[m.e=0];else{if(m.e=y,m.c=[],E=(y+1)%d,y<0&&(E+=d),E<g){for(E&&m.c.push(+w.slice(0,E)),g-=d;E<g;)m.c.push(+w.slice(E,E+=d));E=d-(w=w.slice(E)).length}else E-=g;for(;E--;w+="0");m.c.push(+w)}}else m.c=[m.e=0]}s(C,"BigNumber"),C.clone=F,C.ROUND_UP=0,C.ROUND_DOWN=1,C.ROUND_CEIL=2,C.ROUND_FLOOR=3,C.ROUND_HALF_UP=4,C.ROUND_HALF_DOWN=5,C.ROUND_HALF_EVEN=6,C.ROUND_HALF_CEIL=7,C.ROUND_HALF_FLOOR=8,C.EUCLID=9,C.config=C.set=function(a){var c,f;if(a!=null)if(typeof a=="object"){if(a.hasOwnProperty(c="DECIMAL_PLACES")&&(f=a[c],R(f,0,b,c),J=f),a.hasOwnProperty(c="ROUNDING_MODE")&&(f=a[c],R(f,0,8,c),H=f),a.hasOwnProperty(c="EXPONENTIAL_AT")&&(f=a[c],f&&f.pop?(R(f[0],-b,0,c),R(f[1],0,b,c),oe=f[0],z=f[1]):(R(f,-b,b,c),oe=-(z=f<0?-f:f))),a.hasOwnProperty(c="RANGE"))if(f=a[c],f&&f.pop)R(f[0],-b,-1,c),R(f[1],1,b,c),ne=f[0],Z=f[1];else if(R(f,-b,b,c),f)ne=-(Z=f<0?-f:f);else throw Error(o+c+" cannot be zero: "+f);if(a.hasOwnProperty(c="CRYPTO"))if(f=a[c],f===!!f)if(f)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))ie=f;else throw ie=!f,Error(o+"crypto unavailable");else ie=f;else throw Error(o+c+" not true or false: "+f);if(a.hasOwnProperty(c="MODULO_MODE")&&(f=a[c],R(f,0,9,c),$e=f),a.hasOwnProperty(c="POW_PRECISION")&&(f=a[c],R(f,0,b,c),de=f),a.hasOwnProperty(c="FORMAT"))if(f=a[c],typeof f=="object")Kr=f;else throw Error(o+c+" not an object: "+f);if(a.hasOwnProperty(c="ALPHABET"))if(f=a[c],typeof f=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(f))Jr=f.slice(0,10)=="0123456789",Ze=f;else throw Error(o+c+" invalid: "+f)}else throw Error(o+"Object expected: "+a);return{DECIMAL_PLACES:J,ROUNDING_MODE:H,EXPONENTIAL_AT:[oe,z],RANGE:[ne,Z],CRYPTO:ie,MODULO_MODE:$e,POW_PRECISION:de,FORMAT:Kr,ALPHABET:Ze}},C.isBigNumber=function(a){if(!a||a._isBigNumber!==!0)return!1;if(!C.DEBUG)return!0;var c,f,_=a.c,p=a.e,y=a.s;e:if({}.toString.call(_)=="[object Array]"){if((y===1||y===-1)&&p>=-b&&p<=b&&p===i(p)){if(_[0]===0){if(p===0&&_.length===1)return!0;break e}if(c=(p+1)%d,c<1&&(c+=d),String(_[0]).length==c){for(c=0;c<_.length;c++)if(f=_[c],f<0||f>=l||f!==i(f))break e;if(f!==0)return!0}}}else if(_===null&&p===null&&(y===null||y===1||y===-1))return!0;throw Error(o+"Invalid BigNumber: "+a)},C.maximum=C.max=function(){return zi(arguments,-1)},C.minimum=C.min=function(){return zi(arguments,1)},C.random=(function(){var a=9007199254740992,c=Math.random()*a&2097151?function(){return i(Math.random()*a)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(f){var _,p,y,E,h,g=0,w=[],m=new C(Q);if(f==null?f=J:R(f,0,b),E=r(f/d),ie)if(crypto.getRandomValues){for(_=crypto.getRandomValues(new Uint32Array(E*=2));g<E;)h=_[g]*131072+(_[g+1]>>>11),h>=9e15?(p=crypto.getRandomValues(new Uint32Array(2)),_[g]=p[0],_[g+1]=p[1]):(w.push(h%1e14),g+=2);g=E/2}else if(crypto.randomBytes){for(_=crypto.randomBytes(E*=7);g<E;)h=(_[g]&31)*281474976710656+_[g+1]*1099511627776+_[g+2]*4294967296+_[g+3]*16777216+(_[g+4]<<16)+(_[g+5]<<8)+_[g+6],h>=9e15?crypto.randomBytes(7).copy(_,g):(w.push(h%1e14),g+=7);g=E/7}else throw ie=!1,Error(o+"crypto unavailable");if(!ie)for(;g<E;)h=c(),h<9e15&&(w[g++]=h%1e14);for(E=w[--g],f%=d,E&&f&&(h=v[d-f],w[g]=i(E/h)*h);w[g]===0;w.pop(),g--);if(g<0)w=[y=0];else{for(y=-1;w[0]===0;w.splice(0,1),y-=d);for(g=1,h=w[0];h>=10;h/=10,g++);g<d&&(y-=d-g)}return m.e=y,m.c=w,m}})(),C.sum=function(){for(var a=1,c=arguments,f=new C(c[0]);a<c.length;)f=f.plus(c[a++]);return f},D=(function(){var a="0123456789";function c(f,_,p,y){for(var E,h=[0],g,w=0,m=f.length;w<m;){for(g=h.length;g--;h[g]*=_);for(h[0]+=y.indexOf(f.charAt(w++)),E=0;E<h.length;E++)h[E]>p-1&&(h[E+1]==null&&(h[E+1]=0),h[E+1]+=h[E]/p|0,h[E]%=p)}return h.reverse()}return s(c,"toBaseOut"),function(f,_,p,y,E){var h,g,w,m,S,U,j,K,ee=f.indexOf("."),ae=J,$=H;for(ee>=0&&(m=de,de=0,f=f.replace(".",""),K=new C(_),U=K.pow(f.length-ee),de=m,K.c=c(re(I(U.c),U.e,"0"),10,p,a),K.e=K.c.length),j=c(f,_,p,E?(h=Ze,a):(h=a,Ze)),w=m=j.length;j[--m]==0;j.pop());if(!j[0])return h.charAt(0);if(ee<0?--w:(U.c=j,U.e=w,U.s=y,U=N(U,K,ae,$,p),j=U.c,S=U.r,w=U.e),g=w+ae+1,ee=j[g],m=p/2,S=S||g<0||j[g+1]!=null,S=$<4?(ee!=null||S)&&($==0||$==(U.s<0?3:2)):ee>m||ee==m&&($==4||S||$==6&&j[g-1]&1||$==(U.s<0?8:7)),g<1||!j[0])f=S?re(h.charAt(1),-ae,h.charAt(0)):h.charAt(0);else{if(j.length=g,S)for(--p;++j[--g]>p;)j[g]=0,g||(++w,j=[1].concat(j));for(m=j.length;!j[--m];);for(ee=0,f="";ee<=m;f+=h.charAt(j[ee++]));f=re(f,w,h.charAt(0))}return f}})(),N=(function(){function a(_,p,y){var E,h,g,w,m=0,S=_.length,U=p%A,j=p/A|0;for(_=_.slice();S--;)g=_[S]%A,w=_[S]/A|0,E=j*g+w*U,h=U*g+E%A*A+m,m=(h/y|0)+(E/A|0)+j*w,_[S]=h%y;return m&&(_=[m].concat(_)),_}s(a,"multiply");function c(_,p,y,E){var h,g;if(y!=E)g=y>E?1:-1;else for(h=g=0;h<y;h++)if(_[h]!=p[h]){g=_[h]>p[h]?1:-1;break}return g}s(c,"compare");function f(_,p,y,E){for(var h=0;y--;)_[y]-=h,h=_[y]<p[y]?1:0,_[y]=h*E+_[y]-p[y];for(;!_[0]&&_.length>1;_.splice(0,1));}return s(f,"subtract"),function(_,p,y,E,h){var g,w,m,S,U,j,K,ee,ae,$,W,ue,Vt,Yr,zr,je,Ot,Te=_.s==p.s?1:-1,fe=_.c,te=p.c;if(!fe||!fe[0]||!te||!te[0])return new C(!_.s||!p.s||(fe?te&&fe[0]==te[0]:!te)?NaN:fe&&fe[0]==0||!te?Te*0:Te/0);for(ee=new C(Te),ae=ee.c=[],w=_.e-p.e,Te=y+w+1,h||(h=l,w=B(_.e/d)-B(p.e/d),Te=Te/d|0),m=0;te[m]==(fe[m]||0);m++);if(te[m]>(fe[m]||0)&&w--,Te<0)ae.push(1),S=!0;else{for(Yr=fe.length,je=te.length,m=0,Te+=2,U=i(h/(te[0]+1)),U>1&&(te=a(te,U,h),fe=a(fe,U,h),je=te.length,Yr=fe.length),Vt=je,$=fe.slice(0,je),W=$.length;W<je;$[W++]=0);Ot=te.slice(),Ot=[0].concat(Ot),zr=te[0],te[1]>=h/2&&zr++;do{if(U=0,g=c(te,$,je,W),g<0){if(ue=$[0],je!=W&&(ue=ue*h+($[1]||0)),U=i(ue/zr),U>1)for(U>=h&&(U=h-1),j=a(te,U,h),K=j.length,W=$.length;c(j,$,K,W)==1;)U--,f(j,je<K?Ot:te,K,h),K=j.length,g=1;else U==0&&(g=U=1),j=te.slice(),K=j.length;if(K<W&&(j=[0].concat(j)),f($,j,W,h),W=$.length,g==-1)for(;c(te,$,je,W)<1;)U++,f($,je<W?Ot:te,W,h),W=$.length}else g===0&&(U++,$=[0]);ae[m++]=U,$[0]?$[W++]=fe[Vt]||0:($=[fe[Vt]],W=1)}while((Vt++<Yr||$[0]!=null)&&Te--);S=$[0]!=null,ae[0]||ae.splice(0,1)}if(h==l){for(m=1,Te=ae[0];Te>=10;Te/=10,m++);Ae(ee,y+(ee.e=m+w*d-1)+1,E,S)}else ee.e=w,ee.r=+S;return ee}})();function Vr(a,c,f,_){var p,y,E,h,g;if(f==null?f=H:R(f,0,8),!a.c)return a.toString();if(p=a.c[0],E=a.e,c==null)g=I(a.c),g=_==1||_==2&&(E<=oe||E>=z)?V(g,E):re(g,E,"0");else if(a=Ae(new C(a),c,f),y=a.e,g=I(a.c),h=g.length,_==1||_==2&&(c<=y||y<=oe)){for(;h<c;g+="0",h++);g=V(g,y)}else if(c-=E+(_===2&&y>E),g=re(g,y,"0"),y+1>h){if(--c>0)for(g+=".";c--;g+="0");}else if(c+=y-h,c>0)for(y+1==h&&(g+=".");c--;g+="0");return a.s<0&&p?"-"+g:g}s(Vr,"format");function zi(a,c){for(var f,_,p=1,y=new C(a[0]);p<a.length;p++)_=new C(a[p]),(!_.s||(f=x(y,_))===c||f===0&&y.s===c)&&(y=_);return y}s(zi,"maxOrMin");function Wr(a,c,f){for(var _=1,p=c.length;!c[--p];c.pop());for(p=c[0];p>=10;p/=10,_++);return(f=_+f*d-1)>Z?a.c=a.e=null:f<ne?a.c=[a.e=0]:(a.e=f,a.c=c),a}s(Wr,"normalise"),G=(function(){var a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,f=/^\.([^.]+)$/,_=/^-?(Infinity|NaN)$/,p=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(y,E,h,g){var w,m=h?E:E.replace(p,"");if(_.test(m))y.s=isNaN(m)?null:m<0?-1:1;else{if(!h&&(m=m.replace(a,function(S,U,j){return w=(j=j.toLowerCase())=="x"?16:j=="b"?2:8,!g||g==w?U:S}),g&&(w=g,m=m.replace(c,"$1").replace(f,"0.$1")),E!=m))return new C(m,w);if(C.DEBUG)throw Error(o+"Not a"+(g?" base "+g:"")+" number: "+E);y.s=null}y.c=y.e=null}})();function Ae(a,c,f,_){var p,y,E,h,g,w,m,S=a.c,U=v;if(S){e:{for(p=1,h=S[0];h>=10;h/=10,p++);if(y=c-p,y<0)y+=d,E=c,g=S[w=0],m=i(g/U[p-E-1]%10);else if(w=r((y+1)/d),w>=S.length)if(_){for(;S.length<=w;S.push(0));g=m=0,p=1,y%=d,E=y-d+1}else break e;else{for(g=h=S[w],p=1;h>=10;h/=10,p++);y%=d,E=y-d+p,m=E<0?0:i(g/U[p-E-1]%10)}if(_=_||c<0||S[w+1]!=null||(E<0?g:g%U[p-E-1]),_=f<4?(m||_)&&(f==0||f==(a.s<0?3:2)):m>5||m==5&&(f==4||_||f==6&&(y>0?E>0?g/U[p-E]:0:S[w-1])%10&1||f==(a.s<0?8:7)),c<1||!S[0])return S.length=0,_?(c-=a.e+1,S[0]=U[(d-c%d)%d],a.e=-c||0):S[0]=a.e=0,a;if(y==0?(S.length=w,h=1,w--):(S.length=w+1,h=U[d-y],S[w]=E>0?i(g/U[p-E]%U[E])*h:0),_)for(;;)if(w==0){for(y=1,E=S[0];E>=10;E/=10,y++);for(E=S[0]+=h,h=1;E>=10;E/=10,h++);y!=h&&(a.e++,S[0]==l&&(S[0]=1));break}else{if(S[w]+=h,S[w]!=l)break;S[w--]=0,h=1}for(y=S.length;S[--y]===0;S.pop());}a.e>Z?a.c=a.e=null:a.e<ne&&(a.c=[a.e=0])}return a}s(Ae,"round");function Ke(a){var c,f=a.e;return f===null?a.toString():(c=I(a.c),c=f<=oe||f>=z?V(c,f):re(c,f,"0"),a.s<0?"-"+c:c)}return s(Ke,"valueOf"),O.absoluteValue=O.abs=function(){var a=new C(this);return a.s<0&&(a.s=1),a},O.comparedTo=function(a,c){return x(this,new C(a,c))},O.decimalPlaces=O.dp=function(a,c){var f,_,p,y=this;if(a!=null)return R(a,0,b),c==null?c=H:R(c,0,8),Ae(new C(y),a+y.e+1,c);if(!(f=y.c))return null;if(_=((p=f.length-1)-B(this.e/d))*d,p=f[p])for(;p%10==0;p/=10,_--);return _<0&&(_=0),_},O.dividedBy=O.div=function(a,c){return N(this,new C(a,c),J,H)},O.dividedToIntegerBy=O.idiv=function(a,c){return N(this,new C(a,c),0,1)},O.exponentiatedBy=O.pow=function(a,c){var f,_,p,y,E,h,g,w,m,S=this;if(a=new C(a),a.c&&!a.isInteger())throw Error(o+"Exponent not an integer: "+Ke(a));if(c!=null&&(c=new C(c)),h=a.e>14,!S.c||!S.c[0]||S.c[0]==1&&!S.e&&S.c.length==1||!a.c||!a.c[0])return m=new C(Math.pow(+Ke(S),h?a.s*(2-X(a)):+Ke(a))),c?m.mod(c):m;if(g=a.s<0,c){if(c.c?!c.c[0]:!c.s)return new C(NaN);_=!g&&S.isInteger()&&c.isInteger(),_&&(S=S.mod(c))}else{if(a.e>9&&(S.e>0||S.e<-1||(S.e==0?S.c[0]>1||h&&S.c[1]>=24e7:S.c[0]<8e13||h&&S.c[0]<=9999975e7)))return y=S.s<0&&X(a)?-0:0,S.e>-1&&(y=1/y),new C(g?1/y:y);de&&(y=r(de/d+2))}for(h?(f=new C(.5),g&&(a.s=1),w=X(a)):(p=Math.abs(+Ke(a)),w=p%2),m=new C(Q);;){if(w){if(m=m.times(S),!m.c)break;y?m.c.length>y&&(m.c.length=y):_&&(m=m.mod(c))}if(p){if(p=i(p/2),p===0)break;w=p%2}else if(a=a.times(f),Ae(a,a.e+1,1),a.e>14)w=X(a);else{if(p=+Ke(a),p===0)break;w=p%2}S=S.times(S),y?S.c&&S.c.length>y&&(S.c.length=y):_&&(S=S.mod(c))}return _?m:(g&&(m=Q.div(m)),c?m.mod(c):y?Ae(m,de,H,E):m)},O.integerValue=function(a){var c=new C(this);return a==null?a=H:R(a,0,8),Ae(c,c.e+1,a)},O.isEqualTo=O.eq=function(a,c){return x(this,new C(a,c))===0},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(a,c){return x(this,new C(a,c))>0},O.isGreaterThanOrEqualTo=O.gte=function(a,c){return(c=x(this,new C(a,c)))===1||c===0},O.isInteger=function(){return!!this.c&&B(this.e/d)>this.c.length-2},O.isLessThan=O.lt=function(a,c){return x(this,new C(a,c))<0},O.isLessThanOrEqualTo=O.lte=function(a,c){return(c=x(this,new C(a,c)))===-1||c===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(a,c){var f,_,p,y,E=this,h=E.s;if(a=new C(a,c),c=a.s,!h||!c)return new C(NaN);if(h!=c)return a.s=-c,E.plus(a);var g=E.e/d,w=a.e/d,m=E.c,S=a.c;if(!g||!w){if(!m||!S)return m?(a.s=-c,a):new C(S?E:NaN);if(!m[0]||!S[0])return S[0]?(a.s=-c,a):new C(m[0]?E:H==3?-0:0)}if(g=B(g),w=B(w),m=m.slice(),h=g-w){for((y=h<0)?(h=-h,p=m):(w=g,p=S),p.reverse(),c=h;c--;p.push(0));p.reverse()}else for(_=(y=(h=m.length)<(c=S.length))?h:c,h=c=0;c<_;c++)if(m[c]!=S[c]){y=m[c]<S[c];break}if(y&&(p=m,m=S,S=p,a.s=-a.s),c=(_=S.length)-(f=m.length),c>0)for(;c--;m[f++]=0);for(c=l-1;_>h;){if(m[--_]<S[_]){for(f=_;f&&!m[--f];m[f]=c);--m[f],m[_]+=l}m[_]-=S[_]}for(;m[0]==0;m.splice(0,1),--w);return m[0]?Wr(a,m,w):(a.s=H==3?-1:1,a.c=[a.e=0],a)},O.modulo=O.mod=function(a,c){var f,_,p=this;return a=new C(a,c),!p.c||!a.s||a.c&&!a.c[0]?new C(NaN):!a.c||p.c&&!p.c[0]?new C(p):($e==9?(_=a.s,a.s=1,f=N(p,a,0,3),a.s=_,f.s*=_):f=N(p,a,0,$e),a=p.minus(f.times(a)),!a.c[0]&&$e==1&&(a.s=p.s),a)},O.multipliedBy=O.times=function(a,c){var f,_,p,y,E,h,g,w,m,S,U,j,K,ee,ae,$=this,W=$.c,ue=(a=new C(a,c)).c;if(!W||!ue||!W[0]||!ue[0])return!$.s||!a.s||W&&!W[0]&&!ue||ue&&!ue[0]&&!W?a.c=a.e=a.s=null:(a.s*=$.s,!W||!ue?a.c=a.e=null:(a.c=[0],a.e=0)),a;for(_=B($.e/d)+B(a.e/d),a.s*=$.s,g=W.length,S=ue.length,g<S&&(K=W,W=ue,ue=K,p=g,g=S,S=p),p=g+S,K=[];p--;K.push(0));for(ee=l,ae=A,p=S;--p>=0;){for(f=0,U=ue[p]%ae,j=ue[p]/ae|0,E=g,y=p+E;y>p;)w=W[--E]%ae,m=W[E]/ae|0,h=j*w+m*U,w=U*w+h%ae*ae+K[y]+f,f=(w/ee|0)+(h/ae|0)+j*m,K[y--]=w%ee;K[y]=f}return f?++_:K.splice(0,1),Wr(a,K,_)},O.negated=function(){var a=new C(this);return a.s=-a.s||null,a},O.plus=function(a,c){var f,_=this,p=_.s;if(a=new C(a,c),c=a.s,!p||!c)return new C(NaN);if(p!=c)return a.s=-c,_.minus(a);var y=_.e/d,E=a.e/d,h=_.c,g=a.c;if(!y||!E){if(!h||!g)return new C(p/0);if(!h[0]||!g[0])return g[0]?a:new C(h[0]?_:p*0)}if(y=B(y),E=B(E),h=h.slice(),p=y-E){for(p>0?(E=y,f=g):(p=-p,f=h),f.reverse();p--;f.push(0));f.reverse()}for(p=h.length,c=g.length,p-c<0&&(f=g,g=h,h=f,c=p),p=0;c;)p=(h[--c]=h[c]+g[c]+p)/l|0,h[c]=l===h[c]?0:h[c]%l;return p&&(h=[p].concat(h),++E),Wr(a,h,E)},O.precision=O.sd=function(a,c){var f,_,p,y=this;if(a!=null&&a!==!!a)return R(a,1,b),c==null?c=H:R(c,0,8),Ae(new C(y),a,c);if(!(f=y.c))return null;if(p=f.length-1,_=p*d+1,p=f[p]){for(;p%10==0;p/=10,_--);for(p=f[0];p>=10;p/=10,_++);}return a&&y.e+1>_&&(_=y.e+1),_},O.shiftedBy=function(a){return R(a,-T,T),this.times("1e"+a)},O.squareRoot=O.sqrt=function(){var a,c,f,_,p,y=this,E=y.c,h=y.s,g=y.e,w=J+4,m=new C("0.5");if(h!==1||!E||!E[0])return new C(!h||h<0&&(!E||E[0])?NaN:E?y:1/0);if(h=Math.sqrt(+Ke(y)),h==0||h==1/0?(c=I(E),(c.length+g)%2==0&&(c+="0"),h=Math.sqrt(+c),g=B((g+1)/2)-(g<0||g%2),h==1/0?c="5e"+g:(c=h.toExponential(),c=c.slice(0,c.indexOf("e")+1)+g),f=new C(c)):f=new C(h+""),f.c[0]){for(g=f.e,h=g+w,h<3&&(h=0);;)if(p=f,f=m.times(p.plus(N(y,p,w,1))),I(p.c).slice(0,h)===(c=I(f.c)).slice(0,h))if(f.e<g&&--h,c=c.slice(h-3,h+1),c=="9999"||!_&&c=="4999"){if(!_&&(Ae(p,p.e+J+2,0),p.times(p).eq(y))){f=p;break}w+=4,h+=4,_=1}else{(!+c||!+c.slice(1)&&c.charAt(0)=="5")&&(Ae(f,f.e+J+2,1),a=!f.times(f).eq(y));break}}return Ae(f,f.e+J+1,H,a)},O.toExponential=function(a,c){return a!=null&&(R(a,0,b),a++),Vr(this,a,c,1)},O.toFixed=function(a,c){return a!=null&&(R(a,0,b),a=a+this.e+1),Vr(this,a,c)},O.toFormat=function(a,c,f){var _,p=this;if(f==null)a!=null&&c&&typeof c=="object"?(f=c,c=null):a&&typeof a=="object"?(f=a,a=c=null):f=Kr;else if(typeof f!="object")throw Error(o+"Argument not an object: "+f);if(_=p.toFixed(a,c),p.c){var y,E=_.split("."),h=+f.groupSize,g=+f.secondaryGroupSize,w=f.groupSeparator||"",m=E[0],S=E[1],U=p.s<0,j=U?m.slice(1):m,K=j.length;if(g&&(y=h,h=g,g=y,K-=y),h>0&&K>0){for(y=K%h||h,m=j.substr(0,y);y<K;y+=h)m+=w+j.substr(y,h);g>0&&(m+=w+j.slice(y)),U&&(m="-"+m)}_=S?m+(f.decimalSeparator||"")+((g=+f.fractionGroupSize)?S.replace(new RegExp("\\d{"+g+"}\\B","g"),"$&"+(f.fractionGroupSeparator||"")):S):m}return(f.prefix||"")+_+(f.suffix||"")},O.toFraction=function(a){var c,f,_,p,y,E,h,g,w,m,S,U,j=this,K=j.c;if(a!=null&&(h=new C(a),!h.isInteger()&&(h.c||h.s!==1)||h.lt(Q)))throw Error(o+"Argument "+(h.isInteger()?"out of range: ":"not an integer: ")+Ke(h));if(!K)return new C(j);for(c=new C(Q),w=f=new C(Q),_=g=new C(Q),U=I(K),y=c.e=U.length-j.e-1,c.c[0]=v[(E=y%d)<0?d+E:E],a=!a||h.comparedTo(c)>0?y>0?c:w:h,E=Z,Z=1/0,h=new C(U),g.c[0]=0;m=N(h,c,0,1),p=f.plus(m.times(_)),p.comparedTo(a)!=1;)f=_,_=p,w=g.plus(m.times(p=w)),g=p,c=h.minus(m.times(p=c)),h=p;return p=N(a.minus(f),_,0,1),g=g.plus(p.times(w)),f=f.plus(p.times(_)),g.s=w.s=j.s,y=y*2,S=N(w,_,y,H).minus(j).abs().comparedTo(N(g,f,y,H).minus(j).abs())<1?[w,_]:[g,f],Z=E,S},O.toNumber=function(){return+Ke(this)},O.toPrecision=function(a,c){return a!=null&&R(a,1,b),Vr(this,a,c,2)},O.toString=function(a){var c,f=this,_=f.s,p=f.e;return p===null?_?(c="Infinity",_<0&&(c="-"+c)):c="NaN":(a==null?c=p<=oe||p>=z?V(I(f.c),p):re(I(f.c),p,"0"):a===10&&Jr?(f=Ae(new C(f),J+p+1,H),c=re(I(f.c),f.e,"0")):(R(a,2,Ze.length,"Base"),c=D(re(I(f.c),p,"0"),10,a,_,!0)),_<0&&f.c[0]&&(c="-"+c)),c},O.valueOf=O.toJSON=function(){return Ke(this)},O._isBigNumber=!0,M!=null&&C.set(M),C}s(F,"clone");function B(M){var N=M|0;return M>0||M===N?N:N-1}s(B,"bitFloor");function I(M){for(var N,D,G=1,O=M.length,Q=M[0]+"";G<O;){for(N=M[G++]+"",D=d-N.length;D--;N="0"+N);Q+=N}for(O=Q.length;Q.charCodeAt(--O)===48;);return Q.slice(0,O+1||1)}s(I,"coeffToString");function x(M,N){var D,G,O=M.c,Q=N.c,J=M.s,H=N.s,oe=M.e,z=N.e;if(!J||!H)return null;if(D=O&&!O[0],G=Q&&!Q[0],D||G)return D?G?0:-H:J;if(J!=H)return J;if(D=J<0,G=oe==z,!O||!Q)return G?0:!O^D?1:-1;if(!G)return oe>z^D?1:-1;for(H=(oe=O.length)<(z=Q.length)?oe:z,J=0;J<H;J++)if(O[J]!=Q[J])return O[J]>Q[J]^D?1:-1;return oe==z?0:oe>z^D?1:-1}s(x,"compare");function R(M,N,D,G){if(M<N||M>D||M!==i(M))throw Error(o+(G||"Argument")+(typeof M=="number"?M<N||M>D?" out of range: ":" not an integer: ":" not a primitive number: ")+String(M))}s(R,"intCheck");function X(M){var N=M.c.length-1;return B(M.e/d)==N&&M.c[N]%2!=0}s(X,"isOdd");function V(M,N){return(M.length>1?M.charAt(0)+"."+M.slice(1):M)+(N<0?"e":"e+")+N}s(V,"toExponential");function re(M,N,D){var G,O;if(N<0){for(O=D+".";++N;O+=D);M=O+M}else if(G=M.length,++N>G){for(O=D,N-=G;--N;O+=D);M+=O}else N<G&&(M=M.slice(0,N)+"."+M.slice(N));return M}s(re,"toFixedPoint"),e=F(),e.default=e.BigNumber=e,typeof define=="function"&&define.amd?define(function(){return e}):typeof Xt<"u"&&Xt.exports?Xt.exports=e:(n||(n=typeof self<"u"&&self?self:window),n.BigNumber=e)})(ms)});var As=k((ph,Es)=>{var _s=sn(),ws=Es.exports;(function(){"use strict";function n(T){return T<10?"0"+T:T}s(n,"f");var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,t=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,i,o={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},u;function l(T){return t.lastIndex=0,t.test(T)?'"'+T.replace(t,function(v){var A=o[v];return typeof A=="string"?A:"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+T+'"'}s(l,"quote");function d(T,v){var A,b,F,B,I=r,x,R=v[T],X=R!=null&&(R instanceof _s||_s.isBigNumber(R));switch(R&&typeof R=="object"&&typeof R.toJSON=="function"&&(R=R.toJSON(T)),typeof u=="function"&&(R=u.call(v,T,R)),typeof R){case"string":return X?R:l(R);case"number":return isFinite(R)?String(R):"null";case"boolean":case"null":case"bigint":return String(R);case"object":if(!R)return"null";if(r+=i,x=[],Object.prototype.toString.apply(R)==="[object Array]"){for(B=R.length,A=0;A<B;A+=1)x[A]=d(A,R)||"null";return F=x.length===0?"[]":r?`[
|
|
24
24
|
`+r+x.join(`,
|
|
25
25
|
`+r)+`
|
|
26
26
|
`+I+"]":"["+x.join(",")+"]",r=I,F}if(u&&typeof u=="object")for(B=u.length,A=0;A<B;A+=1)typeof u[A]=="string"&&(b=u[A],F=d(b,R),F&&x.push(l(b)+(r?": ":":")+F));else Object.keys(R).forEach(function(V){var re=d(V,R);re&&x.push(l(V)+(r?": ":":")+re)});return F=x.length===0?"{}":r?`{
|