@raydium-io/raydium-sdk-v2
Version:
An SDK for building applications on top of Raydium.
1 lines • 218 kB
JavaScript
var Is=Object.create;var fn=Object.defineProperty,Ks=Object.defineProperties,Ls=Object.getOwnPropertyDescriptor,Ns=Object.getOwnPropertyDescriptors,Cs=Object.getOwnPropertyNames,Mn=Object.getOwnPropertySymbols,Rs=Object.getPrototypeOf,gr=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable;var xi=(r,e,t)=>e in r?fn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,U=(r,e)=>{for(var t in e||(e={}))gr.call(e,t)&&xi(r,t,e[t]);if(Mn)for(var t of Mn(e))Si.call(e,t)&&xi(r,t,e[t]);return r},ne=(r,e)=>Ks(r,Ns(e));var $e=(r,e)=>{var t={};for(var n in r)gr.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&Mn)for(var n of Mn(r))e.indexOf(n)<0&&Si.call(r,n)&&(t[n]=r[n]);return t};var Ms=(r,e)=>{for(var t in e)fn(r,t,{get:e[t],enumerable:!0})},Bi=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Cs(e))!gr.call(r,i)&&i!==t&&fn(r,i,{get:()=>e[i],enumerable:!(n=Ls(e,i))||n.enumerable});return r};var pe=(r,e,t)=>(t=r!=null?Is(Rs(r)):{},Bi(e||!r||!r.__esModule?fn(t,"default",{value:r,enumerable:!0}):t,r)),vs=r=>Bi(fn({},"__esModule",{value:!0}),r);var uc={};Ms(uc,{default:()=>br});module.exports=vs(uc);var Te=require("@solana/web3.js"),Fe=require("@solana/spl-token");var wo=require("@solana/web3.js");var dt=pe(require("bn.js"));var Yt=9e15,It=1e9,wr="0123456789abcdef",En="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",_n="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",kr={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Yt,maxE:Yt,crypto:!1},Ni,gt,J=!0,On="[DecimalError] ",Bt=On+"Invalid argument: ",Ci=On+"Precision limit exceeded",Ri=On+"crypto unavailable",Mi="[object Decimal]",Ee=Math.floor,Ke=Math.pow,Es=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,_s=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Vs=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,vi=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ot=1e7,H=7,Os=9007199254740991,Ws=En.length-1,hr=_n.length-1,L={toStringTag:Mi};L.absoluteValue=L.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),q(r)};L.ceil=function(){return q(new this.constructor(this),this.e+1,2)};L.clampedTo=L.clamp=function(r,e){var t,n=this,i=n.constructor;if(r=new i(r),e=new i(e),!r.s||!e.s)return new i(NaN);if(r.gt(e))throw Error(Bt+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new i(n)};L.comparedTo=L.cmp=function(r){var e,t,n,i,o=this,a=o.d,s=(r=new o.constructor(r)).d,u=o.s,c=r.s;if(!a||!s)return!u||!c?NaN:u!==c?u:a===s?0:!a^u<0?1:-1;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==r.e)return o.e>r.e^u<0?1:-1;for(n=a.length,i=s.length,e=0,t=n<i?n:i;e<t;++e)if(a[e]!==s[e])return a[e]>s[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1};L.cosine=L.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+H,n.rounding=1,t=Fs(n,Wi(n,t)),n.precision=r,n.rounding=e,q(gt==2||gt==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)};L.cubeRoot=L.cbrt=function(){var r,e,t,n,i,o,a,s,u,c,l=this,m=l.constructor;if(!l.isFinite()||l.isZero())return new m(l);for(J=!1,o=l.s*Ke(l.s*l,1/3),!o||Math.abs(o)==1/0?(t=Re(l.d),r=l.e,(o=(r-t.length+1)%3)&&(t+=o==1||o==-2?"0":"00"),o=Ke(t,1/3),r=Ee((r+1)/3)-(r%3==(r<0?-1:2)),o==1/0?t="5e"+r:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new m(t),n.s=l.s):n=new m(o.toString()),a=(r=m.precision)+3;;)if(s=n,u=s.times(s).times(s),c=u.plus(l),n=fe(c.plus(l).times(s),c.plus(u),a+2,1),Re(s.d).slice(0,a)===(t=Re(n.d)).slice(0,a))if(t=t.slice(a-3,a+1),t=="9999"||!i&&t=="4999"){if(!i&&(q(s,r+1,0),s.times(s).times(s).eq(l))){n=s;break}a+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(q(n,r+1,1),e=!n.times(n).times(n).eq(l));break}return J=!0,q(n,r,m.rounding,e)};L.decimalPlaces=L.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-Ee(this.e/H))*H,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t};L.dividedBy=L.div=function(r){return fe(this,new this.constructor(r))};L.dividedToIntegerBy=L.divToInt=function(r){var e=this,t=e.constructor;return q(fe(e,new t(r),0,1,1),t.precision,t.rounding)};L.equals=L.eq=function(r){return this.cmp(r)===0};L.floor=function(){return q(new this.constructor(this),this.e+1,3)};L.greaterThan=L.gt=function(r){return this.cmp(r)>0};L.greaterThanOrEqualTo=L.gte=function(r){var e=this.cmp(r);return e==1||e===0};L.hyperbolicCosine=L.cosh=function(){var r,e,t,n,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;t=a.precision,n=a.rounding,a.precision=t+Math.max(o.e,o.sd())+4,a.rounding=1,i=o.d.length,i<32?(r=Math.ceil(i/3),e=(1/Fn(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),o=Jt(a,1,o.times(e),new a(1),!0);for(var u,c=r,l=new a(8);c--;)u=o.times(o),o=s.minus(u.times(l.minus(u.times(l))));return q(o,a.precision=t,a.rounding=n,!0)};L.hyperbolicSine=L.sinh=function(){var r,e,t,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,t=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=Jt(o,2,i,i,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,i=i.times(1/Fn(5,r)),i=Jt(o,2,i,i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);r--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=e,o.rounding=t,q(i,e,t,!0)};L.hyperbolicTangent=L.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,fe(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)};L.inverseCosine=L.acos=function(){var r,e=this,t=e.constructor,n=e.abs().cmp(1),i=t.precision,o=t.rounding;return n!==-1?n===0?e.isNeg()?it(t,i,o):new t(0):new t(NaN):e.isZero()?it(t,i+4,o).times(.5):(t.precision=i+6,t.rounding=1,e=e.asin(),r=it(t,i+4,o).times(.5),t.precision=i,t.rounding=o,r.minus(e))};L.inverseHyperbolicCosine=L.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,J=!1,t=t.times(t).minus(1).sqrt().plus(t),J=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)};L.inverseHyperbolicSine=L.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,J=!1,t=t.times(t).plus(1).sqrt().plus(t),J=!0,n.precision=r,n.rounding=e,t.ln())};L.inverseHyperbolicTangent=L.atanh=function(){var r,e,t,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(r=o.precision,e=o.rounding,n=i.sd(),Math.max(n,r)<2*-i.e-1?q(new o(i),r,e,!0):(o.precision=t=n-i.e,i=fe(i.plus(1),new o(1).minus(i),t+r,1),o.precision=r+4,o.rounding=1,i=i.ln(),o.precision=r,o.rounding=e,i.times(.5))):new o(NaN)};L.inverseSine=L.asin=function(){var r,e,t,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),t=o.precision,n=o.rounding,e!==-1?e===0?(r=it(o,t+4,n).times(.5),r.s=i.s,r):new o(NaN):(o.precision=t+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=t,o.rounding=n,i.times(2)))};L.inverseTangent=L.atan=function(){var r,e,t,n,i,o,a,s,u,c=this,l=c.constructor,m=l.precision,d=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&m+4<=hr)return a=it(l,m+4,d).times(.25),a.s=c.s,a}else{if(!c.s)return new l(NaN);if(m+4<=hr)return a=it(l,m+4,d).times(.5),a.s=c.s,a}for(l.precision=s=m+10,l.rounding=1,t=Math.min(28,s/H+2|0),r=t;r;--r)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(J=!1,e=Math.ceil(s/H),n=1,u=c.times(c),a=new l(c),i=c;r!==-1;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),a=o.plus(i.div(n+=2)),a.d[e]!==void 0)for(r=e;a.d[r]===o.d[r]&&r--;);return t&&(a=a.times(2<<t-1)),J=!0,q(a,l.precision=m,l.rounding=d,!0)};L.isFinite=function(){return!!this.d};L.isInteger=L.isInt=function(){return!!this.d&&Ee(this.e/H)>this.d.length-2};L.isNaN=function(){return!this.s};L.isNegative=L.isNeg=function(){return this.s<0};L.isPositive=L.isPos=function(){return this.s>0};L.isZero=function(){return!!this.d&&this.d[0]===0};L.lessThan=L.lt=function(r){return this.cmp(r)<0};L.lessThanOrEqualTo=L.lte=function(r){return this.cmp(r)<1};L.logarithm=L.log=function(r){var e,t,n,i,o,a,s,u,c=this,l=c.constructor,m=l.precision,d=l.rounding,p=5;if(r==null)r=new l(10),e=!0;else{if(r=new l(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new l(NaN);e=r.eq(10)}if(t=c.d,c.s<0||!t||!t[0]||c.eq(1))return new l(t&&!t[0]?-1/0:c.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)o=!0;else{for(i=t[0];i%10===0;)i/=10;o=i!==1}if(J=!1,s=m+p,a=St(c,s),n=e?Vn(l,s+10):St(r,s),u=fe(a,n,s,1),bn(u.d,i=m,d))do if(s+=10,a=St(c,s),n=e?Vn(l,s+10):St(r,s),u=fe(a,n,s,1),!o){+Re(u.d).slice(i+1,i+15)+1==1e14&&(u=q(u,m+1,0));break}while(bn(u.d,i+=10,d));return J=!0,q(u,m,d)};L.minus=L.sub=function(r){var e,t,n,i,o,a,s,u,c,l,m,d,p=this,f=p.constructor;if(r=new f(r),!p.d||!r.d)return!p.s||!r.s?r=new f(NaN):p.d?r.s=-r.s:r=new f(r.d||p.s!==r.s?p:NaN),r;if(p.s!=r.s)return r.s=-r.s,p.plus(r);if(c=p.d,d=r.d,s=f.precision,u=f.rounding,!c[0]||!d[0]){if(d[0])r.s=-r.s;else if(c[0])r=new f(p);else return new f(u===3?-0:0);return J?q(r,s,u):r}if(t=Ee(r.e/H),l=Ee(p.e/H),c=c.slice(),o=l-t,o){for(m=o<0,m?(e=c,o=-o,a=d.length):(e=d,t=l,a=c.length),n=Math.max(Math.ceil(s/H),a)+2,o>n&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for(n=c.length,a=d.length,m=n<a,m&&(a=n),n=0;n<a;n++)if(c[n]!=d[n]){m=c[n]<d[n];break}o=0}for(m&&(e=c,c=d,d=e,r.s=-r.s),a=c.length,n=d.length-a;n>0;--n)c[a++]=0;for(n=d.length;n>o;){if(c[--n]<d[n]){for(i=n;i&&c[--i]===0;)c[i]=ot-1;--c[i],c[n]+=ot}c[n]-=d[n]}for(;c[--a]===0;)c.pop();for(;c[0]===0;c.shift())--t;return c[0]?(r.d=c,r.e=Wn(c,t),J?q(r,s,u):r):new f(u===3?-0:0)};L.modulo=L.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?q(new n(t),n.precision,n.rounding):(J=!1,n.modulo==9?(e=fe(t,r.abs(),0,3,1),e.s*=r.s):e=fe(t,r,0,n.modulo,1),e=e.times(r),J=!0,t.minus(e))};L.naturalExponential=L.exp=function(){return Ar(this)};L.naturalLogarithm=L.ln=function(){return St(this)};L.negated=L.neg=function(){var r=new this.constructor(this);return r.s=-r.s,q(r)};L.plus=L.add=function(r){var e,t,n,i,o,a,s,u,c,l,m=this,d=m.constructor;if(r=new d(r),!m.d||!r.d)return!m.s||!r.s?r=new d(NaN):m.d||(r=new d(r.d||m.s===r.s?m:NaN)),r;if(m.s!=r.s)return r.s=-r.s,m.minus(r);if(c=m.d,l=r.d,s=d.precision,u=d.rounding,!c[0]||!l[0])return l[0]||(r=new d(m)),J?q(r,s,u):r;if(o=Ee(m.e/H),n=Ee(r.e/H),c=c.slice(),i=o-n,i){for(i<0?(t=c,i=-i,a=l.length):(t=l,n=o,a=c.length),o=Math.ceil(s/H),a=o>a?o+1:a+1,i>a&&(i=a,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(a=c.length,i=l.length,a-i<0&&(i=a,t=l,l=c,c=t),e=0;i;)e=(c[--i]=c[i]+l[i]+e)/ot|0,c[i]%=ot;for(e&&(c.unshift(e),++n),a=c.length;c[--a]==0;)c.pop();return r.d=c,r.e=Wn(c,n),J?q(r,s,u):r};L.precision=L.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(Bt+r);return t.d?(e=Ei(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e};L.round=function(){var r=this,e=r.constructor;return q(new e(r),r.e+1,e.rounding)};L.sine=L.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+H,n.rounding=1,t=qs(n,Wi(n,t)),n.precision=r,n.rounding=e,q(gt>2?t.neg():t,r,e,!0)):new n(NaN)};L.squareRoot=L.sqrt=function(){var r,e,t,n,i,o,a=this,s=a.d,u=a.e,c=a.s,l=a.constructor;if(c!==1||!s||!s[0])return new l(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(J=!1,c=Math.sqrt(+a),c==0||c==1/0?(e=Re(s),(e.length+u)%2==0&&(e+="0"),c=Math.sqrt(e),u=Ee((u+1)/2)-(u<0||u%2),c==1/0?e="5e"+u:(e=c.toExponential(),e=e.slice(0,e.indexOf("e")+1)+u),n=new l(e)):n=new l(c.toString()),t=(u=l.precision)+3;;)if(o=n,n=o.plus(fe(a,o,t+2,1)).times(.5),Re(o.d).slice(0,t)===(e=Re(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!i&&e=="4999"){if(!i&&(q(o,u+1,0),o.times(o).eq(a))){n=o;break}t+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(q(n,u+1,1),r=!n.times(n).eq(a));break}return J=!0,q(n,u,l.rounding,r)};L.tangent=L.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=fe(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,q(gt==2||gt==4?t.neg():t,r,e,!0)):new n(NaN)};L.times=L.mul=function(r){var e,t,n,i,o,a,s,u,c,l=this,m=l.constructor,d=l.d,p=(r=new m(r)).d;if(r.s*=l.s,!d||!d[0]||!p||!p[0])return new m(!r.s||d&&!d[0]&&!p||p&&!p[0]&&!d?NaN:!d||!p?r.s/0:r.s*0);for(t=Ee(l.e/H)+Ee(r.e/H),u=d.length,c=p.length,u<c&&(o=d,d=p,p=o,a=u,u=c,c=a),o=[],a=u+c,n=a;n--;)o.push(0);for(n=c;--n>=0;){for(e=0,i=u+n;i>n;)s=o[i]+p[n]*d[i-n-1]+e,o[i--]=s%ot|0,e=s/ot|0;o[i]=(o[i]+e)%ot|0}for(;!o[--a];)o.pop();return e?++t:o.shift(),r.d=o,r.e=Wn(o,t),J?q(r,m.precision,m.rounding):r};L.toBinary=function(r,e){return Tr(this,2,r,e)};L.toDecimalPlaces=L.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(Qe(r,0,It),e===void 0?e=n.rounding:Qe(e,0,8),q(t,r+t.e+1,e))};L.toExponential=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=mt(n,!0):(Qe(r,0,It),e===void 0?e=i.rounding:Qe(e,0,8),n=q(new i(n),r+1,e),t=mt(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t};L.toFixed=function(r,e){var t,n,i=this,o=i.constructor;return r===void 0?t=mt(i):(Qe(r,0,It),e===void 0?e=o.rounding:Qe(e,0,8),n=q(new o(i),r+i.e+1,e),t=mt(n,!1,r+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t};L.toFraction=function(r){var e,t,n,i,o,a,s,u,c,l,m,d,p=this,f=p.d,b=p.constructor;if(!f)return new b(p);if(c=t=new b(1),n=u=new b(0),e=new b(n),o=e.e=Ei(f)-p.e-1,a=o%H,e.d[0]=Ke(10,a<0?H+a:a),r==null)r=o>0?e:c;else{if(s=new b(r),!s.isInt()||s.lt(c))throw Error(Bt+s);r=s.gt(e)?o>0?e:c:s}for(J=!1,s=new b(Re(f)),l=b.precision,b.precision=o=f.length*H*2;m=fe(s,e,0,1,1),i=t.plus(m.times(n)),i.cmp(r)!=1;)t=n,n=i,i=c,c=u.plus(m.times(i)),u=i,i=e,e=s.minus(m.times(i)),s=i;return i=fe(r.minus(t),n,0,1,1),u=u.plus(i.times(c)),t=t.plus(i.times(n)),u.s=c.s=p.s,d=fe(c,n,o,1).minus(p).abs().cmp(fe(u,t,o,1).minus(p).abs())<1?[c,n]:[u,t],b.precision=l,J=!0,d};L.toHexadecimal=L.toHex=function(r,e){return Tr(this,16,r,e)};L.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:Qe(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(J=!1,t=fe(t,r,0,e,1).times(r),J=!0,q(t)):(r.s=t.s,t=r),t};L.toNumber=function(){return+this};L.toOctal=function(r,e){return Tr(this,8,r,e)};L.toPower=L.pow=function(r){var e,t,n,i,o,a,s=this,u=s.constructor,c=+(r=new u(r));if(!s.d||!r.d||!s.d[0]||!r.d[0])return new u(Ke(+s,c));if(s=new u(s),s.eq(1))return s;if(n=u.precision,o=u.rounding,r.eq(1))return q(s,n,o);if(e=Ee(r.e/H),e>=r.d.length-1&&(t=c<0?-c:c)<=Os)return i=_i(u,s,t,n),r.s<0?new u(1).div(i):q(i,n,o);if(a=s.s,a<0){if(e<r.d.length-1)return new u(NaN);if((r.d[e]&1)==0&&(a=1),s.e==0&&s.d[0]==1&&s.d.length==1)return s.s=a,s}return t=Ke(+s,c),e=t==0||!isFinite(t)?Ee(c*(Math.log("0."+Re(s.d))/Math.LN10+s.e+1)):new u(t+"").e,e>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(J=!1,u.rounding=s.s=1,t=Math.min(12,(e+"").length),i=Ar(r.times(St(s,n+t)),n),i.d&&(i=q(i,n+5,1),bn(i.d,n,o)&&(e=n+10,i=q(Ar(r.times(St(s,e+t)),e),e+5,1),+Re(i.d).slice(n+1,n+15)+1==1e14&&(i=q(i,n+1,0)))),i.s=a,J=!0,u.rounding=o,q(i,n,o))};L.toPrecision=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=mt(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(Qe(r,1,It),e===void 0?e=i.rounding:Qe(e,0,8),n=q(new i(n),r,e),t=mt(n,r<=n.e||n.e<=i.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t};L.toSignificantDigits=L.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(Qe(r,1,It),e===void 0?e=n.rounding:Qe(e,0,8)),q(new n(t),r,e)};L.toString=function(){var r=this,e=r.constructor,t=mt(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t};L.truncated=L.trunc=function(){return q(new this.constructor(this),this.e+1,1)};L.valueOf=L.toJSON=function(){var r=this,e=r.constructor,t=mt(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function Re(r){var e,t,n,i=r.length-1,o="",a=r[0];if(i>0){for(o+=a,e=1;e<i;e++)n=r[e]+"",t=H-n.length,t&&(o+=xt(t)),o+=n;a=r[e],n=a+"",t=H-n.length,t&&(o+=xt(t))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}function Qe(r,e,t){if(r!==~~r||r<e||r>t)throw Error(Bt+r)}function bn(r,e,t,n){var i,o,a,s;for(o=r[0];o>=10;o/=10)--e;return--e<0?(e+=H,i=0):(i=Math.ceil((e+1)/H),e%=H),o=Ke(10,H-e),s=r[i]%o|0,n==null?e<3?(e==0?s=s/100|0:e==1&&(s=s/10|0),a=t<4&&s==99999||t>3&&s==49999||s==5e4||s==0):a=(t<4&&s+1==o||t>3&&s+1==o/2)&&(r[i+1]/o/100|0)==Ke(10,e-2)-1||(s==o/2||s==0)&&(r[i+1]/o/100|0)==0:e<4?(e==0?s=s/1e3|0:e==1?s=s/100|0:e==2&&(s=s/10|0),a=(n||t<4)&&s==9999||!n&&t>3&&s==4999):a=((n||t<4)&&s+1==o||!n&&t>3&&s+1==o/2)&&(r[i+1]/o/1e3|0)==Ke(10,e-3)-1,a}function vn(r,e,t){for(var n,i=[0],o,a=0,s=r.length;a<s;){for(o=i.length;o--;)i[o]*=e;for(i[0]+=wr.indexOf(r.charAt(a++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}function Fs(r,e){var t,n,i;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),i=(1/Fn(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),r.precision+=t,e=Jt(r,1,e.times(i),new r(1));for(var o=t;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return r.precision-=t,e}var fe=function(){function r(n,i,o){var a,s=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+s,n[u]=a%o|0,s=a/o|0;return s&&n.unshift(s),n}function e(n,i,o,a){var s,u;if(o!=a)u=o>a?1:-1;else for(s=u=0;s<o;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function t(n,i,o,a){for(var s=0;o--;)n[o]-=s,s=n[o]<i[o]?1:0,n[o]=s*a+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,a,s,u){var c,l,m,d,p,f,b,w,g,h,A,P,T,k,B,I,N,S,M,V,v=n.constructor,X=n.s==i.s?1:-1,Z=n.d,D=i.d;if(!Z||!Z[0]||!D||!D[0])return new v(!n.s||!i.s||(Z?D&&Z[0]==D[0]:!D)?NaN:Z&&Z[0]==0||!D?X*0:X/0);for(u?(p=1,l=n.e-i.e):(u=ot,p=H,l=Ee(n.e/p)-Ee(i.e/p)),M=D.length,N=Z.length,g=new v(X),h=g.d=[],m=0;D[m]==(Z[m]||0);m++);if(D[m]>(Z[m]||0)&&l--,o==null?(k=o=v.precision,a=v.rounding):s?k=o+(n.e-i.e)+1:k=o,k<0)h.push(1),f=!0;else{if(k=k/p+2|0,m=0,M==1){for(d=0,D=D[0],k++;(m<N||d)&&k--;m++)B=d*u+(Z[m]||0),h[m]=B/D|0,d=B%D|0;f=d||m<N}else{for(d=u/(D[0]+1)|0,d>1&&(D=r(D,d,u),Z=r(Z,d,u),M=D.length,N=Z.length),I=M,A=Z.slice(0,M),P=A.length;P<M;)A[P++]=0;V=D.slice(),V.unshift(0),S=D[0],D[1]>=u/2&&++S;do d=0,c=e(D,A,M,P),c<0?(T=A[0],M!=P&&(T=T*u+(A[1]||0)),d=T/S|0,d>1?(d>=u&&(d=u-1),b=r(D,d,u),w=b.length,P=A.length,c=e(b,A,w,P),c==1&&(d--,t(b,M<w?V:D,w,u))):(d==0&&(c=d=1),b=D.slice()),w=b.length,w<P&&b.unshift(0),t(A,b,P,u),c==-1&&(P=A.length,c=e(D,A,M,P),c<1&&(d++,t(A,M<P?V:D,P,u))),P=A.length):c===0&&(d++,A=[0]),h[m++]=d,c&&A[0]?A[P++]=Z[I]||0:(A=[Z[I]],P=1);while((I++<N||A[0]!==void 0)&&k--);f=A[0]!==void 0}h[0]||h.shift()}if(p==1)g.e=l,Ni=f;else{for(m=1,d=h[0];d>=10;d/=10)m++;g.e=m+l*p-1,q(g,s?o+g.e+1:o,a,f)}return g}}();function q(r,e,t,n){var i,o,a,s,u,c,l,m,d,p=r.constructor;e:if(e!=null){if(m=r.d,!m)return r;for(i=1,s=m[0];s>=10;s/=10)i++;if(o=e-i,o<0)o+=H,a=e,l=m[d=0],u=l/Ke(10,i-a-1)%10|0;else if(d=Math.ceil((o+1)/H),s=m.length,d>=s)if(n){for(;s++<=d;)m.push(0);l=u=0,i=1,o%=H,a=o-H+1}else break e;else{for(l=s=m[d],i=1;s>=10;s/=10)i++;o%=H,a=o-H+i,u=a<0?0:l/Ke(10,i-a-1)%10|0}if(n=n||e<0||m[d+1]!==void 0||(a<0?l:l%Ke(10,i-a-1)),c=t<4?(u||n)&&(t==0||t==(r.s<0?3:2)):u>5||u==5&&(t==4||n||t==6&&(o>0?a>0?l/Ke(10,i-a):0:m[d-1])%10&1||t==(r.s<0?8:7)),e<1||!m[0])return m.length=0,c?(e-=r.e+1,m[0]=Ke(10,(H-e%H)%H),r.e=-e||0):m[0]=r.e=0,r;if(o==0?(m.length=d,s=1,d--):(m.length=d+1,s=Ke(10,H-o),m[d]=a>0?(l/Ke(10,i-a)%Ke(10,a)|0)*s:0),c)for(;;)if(d==0){for(o=1,a=m[0];a>=10;a/=10)o++;for(a=m[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(r.e++,m[0]==ot&&(m[0]=1));break}else{if(m[d]+=s,m[d]!=ot)break;m[d--]=0,s=1}for(o=m.length;m[--o]===0;)m.pop()}return J&&(r.e>p.maxE?(r.d=null,r.e=NaN):r.e<p.minE&&(r.e=0,r.d=[0])),r}function mt(r,e,t){if(!r.isFinite())return Oi(r);var n,i=r.e,o=Re(r.d),a=o.length;return e?(t&&(n=t-a)>0?o=o.charAt(0)+"."+o.slice(1)+xt(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(r.e<0?"e":"e+")+r.e):i<0?(o="0."+xt(-i-1)+o,t&&(n=t-a)>0&&(o+=xt(n))):i>=a?(o+=xt(i+1-a),t&&(n=t-i-1)>0&&(o=o+"."+xt(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-a)>0&&(i+1===a&&(o+="."),o+=xt(n))),o}function Wn(r,e){var t=r[0];for(e*=H;t>=10;t/=10)e++;return e}function Vn(r,e,t){if(e>Ws)throw J=!0,t&&(r.precision=t),Error(Ci);return q(new r(En),e,1,!0)}function it(r,e,t){if(e>hr)throw Error(Ci);return q(new r(_n),e,t,!0)}function Ei(r){var e=r.length-1,t=e*H+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}function xt(r){for(var e="";r--;)e+="0";return e}function _i(r,e,t,n){var i,o=new r(1),a=Math.ceil(n/H+4);for(J=!1;;){if(t%2&&(o=o.times(e),Ki(o.d,a)&&(i=!0)),t=Ee(t/2),t===0){t=o.d.length-1,i&&o.d[t]===0&&++o.d[t];break}e=e.times(e),Ki(e.d,a)}return J=!0,o}function Ii(r){return r.d[r.d.length-1]&1}function Vi(r,e,t){for(var n,i=new r(e[0]),o=0;++o<e.length;)if(n=new r(e[o]),n.s)i[t](n)&&(i=n);else{i=n;break}return i}function Ar(r,e){var t,n,i,o,a,s,u,c=0,l=0,m=0,d=r.constructor,p=d.rounding,f=d.precision;if(!r.d||!r.d[0]||r.e>17)return new d(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:0/0);for(e==null?(J=!1,u=f):u=e,s=new d(.03125);r.e>-2;)r=r.times(s),m+=5;for(n=Math.log(Ke(2,m))/Math.LN10*2+5|0,u+=n,t=o=a=new d(1),d.precision=u;;){if(o=q(o.times(r),u,1),t=t.times(++l),s=a.plus(fe(o,t,u,1)),Re(s.d).slice(0,u)===Re(a.d).slice(0,u)){for(i=m;i--;)a=q(a.times(a),u,1);if(e==null)if(c<3&&bn(a.d,u-n,p,c))d.precision=u+=10,t=o=s=new d(1),l=0,c++;else return q(a,d.precision=f,p,J=!0);else return d.precision=f,a}a=s}}function St(r,e){var t,n,i,o,a,s,u,c,l,m,d,p=1,f=10,b=r,w=b.d,g=b.constructor,h=g.rounding,A=g.precision;if(b.s<0||!w||!w[0]||!b.e&&w[0]==1&&w.length==1)return new g(w&&!w[0]?-1/0:b.s!=1?NaN:w?0:b);if(e==null?(J=!1,l=A):l=e,g.precision=l+=f,t=Re(w),n=t.charAt(0),Math.abs(o=b.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)b=b.times(r),t=Re(b.d),n=t.charAt(0),p++;o=b.e,n>1?(b=new g("0."+t),o++):b=new g(n+"."+t.slice(1))}else return c=Vn(g,l+2,A).times(o+""),b=St(new g(n+"."+t.slice(1)),l-f).plus(c),g.precision=A,e==null?q(b,A,h,J=!0):b;for(m=b,u=a=b=fe(b.minus(1),b.plus(1),l,1),d=q(b.times(b),l,1),i=3;;){if(a=q(a.times(d),l,1),c=u.plus(fe(a,new g(i),l,1)),Re(c.d).slice(0,l)===Re(u.d).slice(0,l))if(u=u.times(2),o!==0&&(u=u.plus(Vn(g,l+2,A).times(o+""))),u=fe(u,new g(p),l,1),e==null)if(bn(u.d,l-f,h,s))g.precision=l+=f,c=a=b=fe(m.minus(1),m.plus(1),l,1),d=q(b.times(b),l,1),i=s=1;else return q(u,g.precision=A,h,J=!0);else return g.precision=A,u;u=c,i+=2}}function Oi(r){return String(r.s*r.s/0)}function Pr(r,e){var t,n,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(n,i),e){if(i-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%H,t<0&&(n+=H),n<i){for(n&&r.d.push(+e.slice(0,n)),i-=H;n<i;)r.d.push(+e.slice(n,n+=H));e=e.slice(n),n=H-e.length}else n-=i;for(;n--;)e+="0";r.d.push(+e),J&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}function Ds(r,e){var t,n,i,o,a,s,u,c,l;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),vi.test(e))return Pr(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(_s.test(e))t=16,e=e.toLowerCase();else if(Es.test(e))t=2;else if(Vs.test(e))t=8;else throw Error(Bt+e);for(o=e.search(/p/i),o>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),o=e.indexOf("."),a=o>=0,n=r.constructor,a&&(e=e.replace(".",""),s=e.length,o=s-o,i=_i(n,new n(t),o,o*2)),c=vn(e,t,ot),l=c.length-1,o=l;c[o]===0;--o)c.pop();return o<0?new n(r.s*0):(r.e=Wn(c,l),r.d=c,J=!1,a&&(r=fe(r,i,s*4)),u&&(r=r.times(Math.abs(u)<54?Ke(2,u):yn.pow(2,u))),J=!0,r)}function qs(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Jt(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/Fn(5,t)),e=Jt(r,2,e,e);for(var i,o=new r(5),a=new r(16),s=new r(20);t--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}function Jt(r,e,t,n,i){var o,a,s,u,c=1,l=r.precision,m=Math.ceil(l/H);for(J=!1,u=t.times(t),s=new r(n);;){if(a=fe(s.times(u),new r(e++*e++),l,1),s=i?n.plus(a):n.minus(a),n=fe(a.times(u),new r(e++*e++),l,1),a=s.plus(n),a.d[m]!==void 0){for(o=m;a.d[o]===s.d[o]&&o--;);if(o==-1)break}o=s,s=n,n=a,a=o,c++}return J=!0,a.d.length=m+1,a}function Fn(r,e){for(var t=r;--e;)t*=r;return t}function Wi(r,e){var t,n=e.s<0,i=it(r,r.precision,1),o=i.times(.5);if(e=e.abs(),e.lte(o))return gt=n?4:1,e;if(t=e.divToInt(i),t.isZero())gt=n?3:2;else{if(e=e.minus(t.times(i)),e.lte(o))return gt=Ii(t)?n?2:3:n?4:1,e;gt=Ii(t)?n?1:4:n?3:2}return e.minus(i).abs()}function Tr(r,e,t,n){var i,o,a,s,u,c,l,m,d,p=r.constructor,f=t!==void 0;if(f?(Qe(t,1,It),n===void 0?n=p.rounding:Qe(n,0,8)):(t=p.precision,n=p.rounding),!r.isFinite())l=Oi(r);else{for(l=mt(r),a=l.indexOf("."),f?(i=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):i=e,a>=0&&(l=l.replace(".",""),d=new p(1),d.e=l.length-a,d.d=vn(mt(d),10,i),d.e=d.d.length),m=vn(l,10,i),o=u=m.length;m[--u]==0;)m.pop();if(!m[0])l=f?"0p+0":"0";else{if(a<0?o--:(r=new p(r),r.d=m,r.e=o,r=fe(r,d,t,n,0,i),m=r.d,o=r.e,c=Ni),a=m[t],s=i/2,c=c||m[t+1]!==void 0,c=n<4?(a!==void 0||c)&&(n===0||n===(r.s<0?3:2)):a>s||a===s&&(n===4||c||n===6&&m[t-1]&1||n===(r.s<0?8:7)),m.length=t,c)for(;++m[--t]>i-1;)m[t]=0,t||(++o,m.unshift(1));for(u=m.length;!m[u-1];--u);for(a=0,l="";a<u;a++)l+=wr.charAt(m[a]);if(f){if(u>1)if(e==16||e==8){for(a=e==16?4:3,--u;u%a;u++)l+="0";for(m=vn(l,i,e),u=m.length;!m[u-1];--u);for(a=1,l="1.";a<u;a++)l+=wr.charAt(m[a])}else l=l.charAt(0)+"."+l.slice(1);l=l+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)l="0"+l;l="0."+l}else if(++o>u)for(o-=u;o--;)l+="0";else o<u&&(l=l.slice(0,o)+"."+l.slice(o))}l=(e==16?"0x":e==2?"0b":e==8?"0o":"")+l}return r.s<0?"-"+l:l}function Ki(r,e){if(r.length>e)return r.length=e,!0}function Gs(r){return new this(r).abs()}function Us(r){return new this(r).acos()}function Xs(r){return new this(r).acosh()}function Qs(r,e){return new this(r).plus(e)}function zs(r){return new this(r).asin()}function Hs(r){return new this(r).asinh()}function js(r){return new this(r).atan()}function Zs(r){return new this(r).atanh()}function Ys(r,e){r=new this(r),e=new this(e);var t,n=this.precision,i=this.rounding,o=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=it(this,o,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?it(this,n,i):new this(0),t.s=r.s):!r.d||e.isZero()?(t=it(this,o,1).times(.5),t.s=r.s):e.s<0?(this.precision=o,this.rounding=1,t=this.atan(fe(r,e,o,1)),e=it(this,o,1),this.precision=n,this.rounding=i,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(fe(r,e,o,1)),t}function Js(r){return new this(r).cbrt()}function $s(r){return q(r=new this(r),r.e+1,2)}function ea(r,e,t){return new this(r).clamp(e,t)}function ta(r){if(!r||typeof r!="object")throw Error(On+"Object expected");var e,t,n,i=r.defaults===!0,o=["precision",1,It,"rounding",0,8,"toExpNeg",-Yt,0,"toExpPos",0,Yt,"maxE",0,Yt,"minE",-Yt,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(t=o[e],i&&(this[t]=kr[t]),(n=r[t])!==void 0)if(Ee(n)===n&&n>=o[e+1]&&n<=o[e+2])this[t]=n;else throw Error(Bt+t+": "+n);if(t="crypto",i&&(this[t]=kr[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Ri);else this[t]=!1;else throw Error(Bt+t+": "+n);return this}function na(r){return new this(r).cos()}function ra(r){return new this(r).cosh()}function Fi(r){var e,t,n;function i(o){var a,s,u,c=this;if(!(c instanceof i))return new i(o);if(c.constructor=i,Li(o)){c.s=o.s,J?!o.d||o.e>i.maxE?(c.e=NaN,c.d=null):o.e<i.minE?(c.e=0,c.d=[0]):(c.e=o.e,c.d=o.d.slice()):(c.e=o.e,c.d=o.d?o.d.slice():o.d);return}if(u=typeof o,u==="number"){if(o===0){c.s=1/o<0?-1:1,c.e=0,c.d=[0];return}if(o<0?(o=-o,c.s=-1):c.s=1,o===~~o&&o<1e7){for(a=0,s=o;s>=10;s/=10)a++;J?a>i.maxE?(c.e=NaN,c.d=null):a<i.minE?(c.e=0,c.d=[0]):(c.e=a,c.d=[o]):(c.e=a,c.d=[o]);return}else if(o*0!==0){o||(c.s=NaN),c.e=NaN,c.d=null;return}return Pr(c,o.toString())}else if(u!=="string")throw Error(Bt+o);return(s=o.charCodeAt(0))===45?(o=o.slice(1),c.s=-1):(s===43&&(o=o.slice(1)),c.s=1),vi.test(o)?Pr(c,o):Ds(c,o)}if(i.prototype=L,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=ta,i.clone=Fi,i.isDecimal=Li,i.abs=Gs,i.acos=Us,i.acosh=Xs,i.add=Qs,i.asin=zs,i.asinh=Hs,i.atan=js,i.atanh=Zs,i.atan2=Ys,i.cbrt=Js,i.ceil=$s,i.clamp=ea,i.cos=na,i.cosh=ra,i.div=ia,i.exp=oa,i.floor=sa,i.hypot=aa,i.ln=ua,i.log=ca,i.log10=ma,i.log2=la,i.max=da,i.min=pa,i.mod=fa,i.mul=ba,i.pow=ya,i.random=ga,i.round=wa,i.sign=ka,i.sin=ha,i.sinh=Aa,i.sqrt=Pa,i.sub=Ta,i.sum=xa,i.tan=Sa,i.tanh=Ba,i.trunc=Ia,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return i.config(r),i}function ia(r,e){return new this(r).div(e)}function oa(r){return new this(r).exp()}function sa(r){return q(r=new this(r),r.e+1,3)}function aa(){var r,e,t=new this(0);for(J=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return J=!0,new this(1/0);t=e}return J=!0,t.sqrt()}function Li(r){return r instanceof yn||r&&r.toStringTag===Mi||!1}function ua(r){return new this(r).ln()}function ca(r,e){return new this(r).log(e)}function la(r){return new this(r).log(2)}function ma(r){return new this(r).log(10)}function da(){return Vi(this,arguments,"lt")}function pa(){return Vi(this,arguments,"gt")}function fa(r,e){return new this(r).mod(e)}function ba(r,e){return new this(r).mul(e)}function ya(r,e){return new this(r).pow(e)}function ga(r){var e,t,n,i,o=0,a=new this(1),s=[];if(r===void 0?r=this.precision:Qe(r,1,It),n=Math.ceil(r/H),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)i=e[o],i>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);o<n;)i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((e[o+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=n/4}else throw Error(Ri);else for(;o<n;)s[o++]=Math.random()*1e7|0;for(n=s[--o],r%=H,n&&r&&(i=Ke(10,H-r),s[o]=(n/i|0)*i);s[o]===0;o--)s.pop();if(o<0)t=0,s=[0];else{for(t=-1;s[0]===0;t-=H)s.shift();for(n=1,i=s[0];i>=10;i/=10)n++;n<H&&(t-=H-n)}return a.e=t,a.d=s,a}function wa(r){return q(r=new this(r),r.e+1,this.rounding)}function ka(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}function ha(r){return new this(r).sin()}function Aa(r){return new this(r).sinh()}function Pa(r){return new this(r).sqrt()}function Ta(r,e){return new this(r).sub(e)}function xa(){var r=0,e=arguments,t=new this(e[r]);for(J=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return J=!0,q(t,this.precision,this.rounding)}function Sa(r){return new this(r).tan()}function Ba(r){return new this(r).tanh()}function Ia(r){return q(r=new this(r),r.e+1,1)}L[Symbol.for("nodejs.util.inspect.custom")]=L.toString;L[Symbol.toStringTag]="Decimal";var yn=L.constructor=Fi(kr);En=new yn(En);_n=new yn(_n);var R=yn;var zi=pe(require("big.js")),An=pe(require("bn.js"));var gn=require("lodash");var xr=class{constructor(e){this.logLevel=e.logLevel!==void 0?e.logLevel:0,this.name=e.name}set level(e){this.logLevel=e}get time(){return Date.now().toString()}get moduleName(){return this.name}isLogLevel(e){return e<=this.logLevel}error(...e){return this.isLogLevel(0)?(console.error(this.time,this.name,"sdk logger error",...e),this):this}logWithError(...e){let t=e.map(n=>typeof n=="object"?JSON.stringify(n):n).join(", ");throw new Error(t)}warning(...e){return this.isLogLevel(1)?(console.warn(this.time,this.name,"sdk logger warning",...e),this):this}info(...e){return this.isLogLevel(2)?(console.info(this.time,this.name,"sdk logger info",...e),this):this}debug(...e){return this.isLogLevel(3)?(console.debug(this.time,this.name,"sdk logger debug",...e),this):this}},Di={},Ka={};function me(r){let e=(0,gn.get)(Di,r);if(!e){let t=(0,gn.get)(Ka,r);e=new xr({name:r,logLevel:t}),(0,gn.set)(Di,r,e)}return e}var qi=pe(require("toformat")),La=qi.default,wn=La;var kn=pe(require("big.js")),Ui=pe(require("bn.js")),Xi=pe(require("decimal.js-light"));var $t=pe(require("bn.js"));var Gi=9007199254740991;function re(r){let e=me("Raydium_parseBigNumberish");if(r instanceof $t.default)return r;if(typeof r=="string"){if(r.match(/^-?[0-9]+$/))return new $t.default(r);e.logWithError(`invalid BigNumberish string: ${r}`)}return typeof r=="number"?(r%1&&e.logWithError(`BigNumberish number underflow: ${r}`),(r>=Gi||r<=-Gi)&&e.logWithError(`BigNumberish number overflow: ${r}`),new $t.default(String(r))):typeof r=="bigint"?new $t.default(r.toString()):(e.error(`invalid BigNumberish value: ${r}`),new $t.default(0))}var Dn=me("module/fraction"),Sr=wn(kn.default),hn=wn(Xi.default),Ca={[0]:hn.ROUND_DOWN,[1]:hn.ROUND_HALF_UP,[2]:hn.ROUND_UP},Ra={[0]:kn.default.roundDown,[1]:kn.default.roundHalfUp,[2]:kn.default.roundUp},se=class{constructor(e,t=new Ui.default(1)){this.numerator=re(e),this.denominator=re(t)}get quotient(){return this.numerator.div(this.denominator)}invert(){return new se(this.denominator,this.numerator)}add(e){let t=e instanceof se?e:new se(re(e));return this.denominator.eq(t.denominator)?new se(this.numerator.add(t.numerator),this.denominator):new se(this.numerator.mul(t.denominator).add(t.numerator.mul(this.denominator)),this.denominator.mul(t.denominator))}sub(e){let t=e instanceof se?e:new se(re(e));return this.denominator.eq(t.denominator)?new se(this.numerator.sub(t.numerator),this.denominator):new se(this.numerator.mul(t.denominator).sub(t.numerator.mul(this.denominator)),this.denominator.mul(t.denominator))}mul(e){let t=e instanceof se?e:new se(re(e));return new se(this.numerator.mul(t.numerator),this.denominator.mul(t.denominator))}div(e){let t=e instanceof se?e:new se(re(e));return new se(this.numerator.mul(t.denominator),this.denominator.mul(t.numerator))}toSignificant(e,t={groupSeparator:""},n=1){Number.isInteger(e)||Dn.logWithError(`${e} is not an integer.`),e<=0&&Dn.logWithError(`${e} is not positive.`),hn.set({precision:e+1,rounding:Ca[n]});let i=new hn(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return i.toFormat(i.decimalPlaces(),t)}toFixed(e,t={groupSeparator:""},n=1){return Number.isInteger(e)||Dn.logWithError(`${e} is not an integer.`),e<0&&Dn.logWithError(`${e} is negative.`),Sr.DP=e,Sr.RM=Ra[n]||1,new Sr(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)}isZero(){return this.numerator.isZero()}};var Ma=me("Raydium_amount"),Qi=wn(zi.default);function va(r,e){let t="0",n="0";if(r.includes(".")){let i=r.split(".");i.length===2?([t,n]=i,n=n.padEnd(e,"0")):Ma.logWithError(`invalid number string, num: ${r}`)}else t=r;return[t,n.slice(0,e)||n]}var Ae=class extends se{constructor(t,n,i=!0,o){let a=new An.default(0),s=Br.pow(new An.default(t.decimals));if(i)a=re(n);else{let u=new An.default(0),c=new An.default(0);if(typeof n=="string"||typeof n=="number"||typeof n=="bigint"){let[l,m]=va(n.toString(),t.decimals);u=re(l),c=re(m)}u=u.mul(s),a=u.add(c)}super(a,s);this.logger=me(o||"TokenAmount"),this.token=t}get raw(){return this.numerator}isZero(){return this.raw.isZero()}gt(t){return this.token.equals(t.token)||this.logger.logWithError("gt token not equals"),this.raw.gt(t.raw)}lt(t){return this.token.equals(t.token)||this.logger.logWithError("lt token not equals"),this.raw.lt(t.raw)}add(t){return this.token.equals(t.token)||this.logger.logWithError("add token not equals"),new Ae(this.token,this.raw.add(t.raw))}subtract(t){return this.token.equals(t.token)||this.logger.logWithError("sub token not equals"),new Ae(this.token,this.raw.sub(t.raw))}toSignificant(t=this.token.decimals,n,i=0){return super.toSignificant(t,n,i)}toFixed(t=this.token.decimals,n,i=0){return t>this.token.decimals&&this.logger.logWithError("decimals overflow"),super.toFixed(t,n,i)}toExact(t={groupSeparator:""}){return Qi.DP=this.token.decimals,new Qi(this.numerator.toString()).div(this.denominator.toString()).toFormat(t)}};var Hi=require("@solana/web3.js"),Ir=require("@solana/spl-token"),Kr={chainId:101,address:Hi.PublicKey.default.toBase58(),programId:Ir.TOKEN_PROGRAM_ID.toBase58(),decimals:9,symbol:"SOL",name:"solana",logoURI:"https://img-v1.raydium.io/icon/So11111111111111111111111111111111111111112.png",tags:[],priority:2,type:"raydium",extensions:{coingeckoId:"solana"}},wt={chainId:101,address:"So11111111111111111111111111111111111111112",programId:Ir.TOKEN_PROGRAM_ID.toBase58(),decimals:9,symbol:"WSOL",name:"Wrapped SOL",logoURI:"https://img-v1.raydium.io/icon/So11111111111111111111111111111111111111112.png",tags:[],priority:2,type:"raydium",extensions:{coingeckoId:"solana"}};var Gn=require("@solana/web3.js");var ue=require("@solana/web3.js"),ji=require("@solana/spl-token");function K({pubkey:r,isSigner:e=!1,isWritable:t=!0}){return{pubkey:r,isWritable:t,isSigner:e}}var Ea=[K({pubkey:ji.TOKEN_PROGRAM_ID,isWritable:!1}),K({pubkey:ue.SystemProgram.programId,isWritable:!1}),K({pubkey:ue.SYSVAR_RENT_PUBKEY,isWritable:!1})];function Lr({publicKey:r,transformSol:e}){let t=Nr(r.toString());if(t instanceof ue.PublicKey)return e&&t.equals(tn)?en:t;if(e&&t.toString()===tn.toBase58())return en;if(typeof t=="string"){if(t===ue.PublicKey.default.toBase58())return ue.PublicKey.default;try{return new ue.PublicKey(t)}catch{throw new Error("invalid public key")}}throw new Error("invalid public key")}function Nr(r){try{return new ue.PublicKey(r)}catch{return r}}var qn=new ue.PublicKey("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"),Cr=new ue.PublicKey("MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"),st=new ue.PublicKey("SysvarRent111111111111111111111111111111111"),Cc=new ue.PublicKey("SysvarC1ock11111111111111111111111111111111"),_t=new ue.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"),_a=new ue.PublicKey("Sysvar1nstructions1111111111111111111111111"),Rc=ue.SystemProgram.programId,Mc=new ue.PublicKey("4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R"),vc=new ue.PublicKey("Ea5SjE2Y6yvCeW5dYTn7PYMuW5ikXkvbGdcmSnXeaLjS"),Ec=new ue.PublicKey("SRMuApVNdxXokk5GT7XD5cUUgXMBCoAz2LHeuAoKWRt"),_c=new ue.PublicKey("EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"),Vc=new ue.PublicKey("Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"),Oc=new ue.PublicKey("mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So"),Wc=new ue.PublicKey("7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj"),Fc=new ue.PublicKey("USDH1SM1ojwWUga67PGrgFWUHibbjqMvuMaDkRJTgkX"),Dc=new ue.PublicKey("NRVwhjBQiUPYtfDT5zRBVJajzFQHaBUNtC7SNVvqRFa"),qc=new ue.PublicKey("ANAxByE6G2WjFp7A4NqtWYXb3mgruyzZYg3spfxe6Lbo"),Gc=new ue.PublicKey("7vfCXTUXx5WJV5JADk17DUJ4ksgau7utNKj4b963voxs"),en=new ue.PublicKey("So11111111111111111111111111111111111111112"),tn=ue.PublicKey.default;function nn(r){return Lr({publicKey:r,transformSol:!0})}var Rr=class{constructor({mint:e,decimals:t,symbol:n,name:i,skipMint:o=!1,isToken2022:a=!1}){if(e===tn.toBase58()||e instanceof Gn.PublicKey&&tn.equals(e)){this.decimals=wt.decimals,this.symbol=wt.symbol,this.name=wt.name,this.mint=new Gn.PublicKey(wt.address),this.isToken2022=!1;return}this.decimals=t,this.symbol=n||e.toString().substring(0,6),this.name=i||e.toString().substring(0,6),this.mint=o?Gn.PublicKey.default:Lr({publicKey:e}),this.isToken2022=a}equals(e){return this===e?!0:this.mint.equals(e.mint)}},_e=Rr;_e.WSOL=new Rr(ne(U({},wt),{mint:wt.address}));var Mr=class{constructor({decimals:e,symbol:t="UNKNOWN",name:n="UNKNOWN"}){this.decimals=e,this.symbol=t,this.name=n}equals(e){return this===e}},Un=Mr;Un.SOL=new Mr(Kr);var Yi=pe(require("bn.js"));var Zi=new se(new Yi.default(100)),et=class extends se{toSignificant(e=5,t,n){return this.mul(Zi).toSignificant(e,t,n)}toFixed(e=2,t,n){return this.mul(Zi).toFixed(e,t,n)}};var Va=me("Raydium_price"),tt=class extends se{constructor(t){let{baseToken:n,quoteToken:i,numerator:o,denominator:a}=t;super(o,a);this.baseToken=n,this.quoteToken=i,this.scalar=new se(vr(n.decimals),vr(i.decimals))}get raw(){return new se(this.numerator,this.denominator)}get adjusted(){return super.mul(this.scalar)}invert(){return new tt({baseToken:this.quoteToken,quoteToken:this.baseToken,denominator:this.numerator,numerator:this.denominator})}mul(t){this.quoteToken!==t.baseToken&&Va.logWithError("mul token not equals");let n=super.mul(t);return new tt({baseToken:this.baseToken,quoteToken:t.quoteToken,denominator:n.denominator,numerator:n.numerator})}toSignificant(t=this.quoteToken.decimals,n,i){return this.adjusted.toSignificant(t,n,i)}toFixed(t=this.quoteToken.decimals,n,i){return this.adjusted.toFixed(t,n,i)}};var Ji=require("@solana/web3.js"),$i=pe(require("bn.js"));function eo(r){return typeof r=="object"&&r!==null&&![_e,Ae,Ji.PublicKey,se,$i.default,tt,et].some(e=>typeof e=="object"&&r instanceof e)}function Vt(r){return typeof r=="string"?Nr(r):Array.isArray(r)?r.map(e=>Vt(e)):eo(r)?Object.fromEntries(Object.entries(r).map(([e,t])=>[e,Vt(t)])):r}var Kt=new dt.default(0),to=new dt.default(1),Ml=new dt.default(2),vl=new dt.default(3),El=new dt.default(5),Br=new dt.default(10),_l=new dt.default(100),Vl=new dt.default(1e3),Ol=new dt.default(1e4);function vr(r){return Br.pow(re(r))}function Xn(r,e){let t=r.divmod(e);return t.mod.isZero()?t.div:t.div.isNeg()?t.div.isubn(1):t.div.iaddn(1)}function Er(r,e=1,t=[]){let n=[...r];if(e<=0)return t;for(;n.length;)t.push(n.splice(0,e));return t}var oo=require("@solana/web3.js"),so=require("@solana/spl-token");var Ve=require("@solana/web3.js");var j={CreateAccount:"CreateAccount",InitAccount:"InitAccount",CreateATA:"CreateATA",CloseAccount:"CloseAccount",TransferAmount:"TransferAmount",InitMint:"InitMint",MintTo:"MintTo",InitMarket:"InitMarket",Util1216OwnerClaim:"Util1216OwnerClaim",SetComputeUnitPrice:"SetComputeUnitPrice",SetComputeUnitLimit:"SetComputeUnitLimit",ClmmCreatePool:"ClmmCreatePool",ClmmOpenPosition:"ClmmOpenPosition",ClmmIncreasePosition:"ClmmIncreasePosition",ClmmDecreasePosition:"ClmmDecreasePosition",ClmmClosePosition:"ClmmClosePosition",ClmmSwapBaseIn:"ClmmSwapBaseIn",ClmmSwapBaseOut:"ClmmSwapBaseOut",ClmmInitReward:"ClmmInitReward",ClmmSetReward:"ClmmSetReward",ClmmCollectReward:"ClmmCollectReward",ClmmLockPosition:"ClmmLockPosition",ClmmHarvestLockPosition:"ClmmHarvestLockPosition",AmmV4Swap:"AmmV4Swap",AmmV4AddLiquidity:"AmmV4AddLiquidity",AmmV4RemoveLiquidity:"AmmV4RemoveLiquidity",AmmV4SimulatePoolInfo:"AmmV4SimulatePoolInfo",AmmV4SwapBaseIn:"AmmV4SwapBaseIn",AmmV4SwapBaseOut:"AmmV4SwapBaseOut",AmmV4CreatePool:"AmmV4CreatePool",AmmV4InitPool:"AmmV4InitPool",AmmV5AddLiquidity:"AmmV5AddLiquidity",AmmV5RemoveLiquidity:"AmmV5RemoveLiquidity",AmmV5SimulatePoolInfo:"AmmV5SimulatePoolInfo",AmmV5SwapBaseIn:"AmmV5SwapBaseIn",AmmV5SwapBaseOut:"AmmV5SwapBaseOut",RouteSwap:"RouteSwap",RouteSwap1:"RouteSwap1",RouteSwap2:"RouteSwap2",FarmV3Deposit:"FarmV3Deposit",FarmV3Withdraw:"FarmV3Withdraw",FarmV3CreateLedger:"FarmV3CreateLedger",FarmV4Withdraw:"FarmV4Withdraw",FarmV5Deposit:"FarmV5Deposit",FarmV5Withdraw:"FarmV5Withdraw",FarmV5CreateLedger:"FarmV5CreateLedger",FarmV6Deposit:"FarmV6Deposit",FarmV6Withdraw:"FarmV6Withdraw",FarmV6Create:"FarmV6Create",FarmV6Restart:"FarmV6Restart",FarmV6CreatorAddReward:"FarmV6CreatorAddReward",FarmV6CreatorWithdraw:"FarmV6CreatorWithdraw",CpmmCreatePool:"CpmmCreatePool",CpmmAddLiquidity:"CpmmAddLiquidity",CpmmWithdrawLiquidity:"CpmmWithdrawLiquidity",CpmmSwapBaseIn:"CpmmSwapBaseIn",CpmmSwapBaseOut:"CpmmSwapBaseOut",CpmmLockLp:"CpmmLockLp",CpmmCollectLockFee:"CpmmCollectLockFee",TransferTip:"TransferTip"};var ro=require("@solana/spl-token"),no=me("Raydium_txUtil"),io=1644;function Qn(r){let e=[],t=[];return r.microLamports&&(e.push(Ve.ComputeBudgetProgram.setComputeUnitPrice({microLamports:r.microLamports})),t.push(j.SetComputeUnitPrice)),r.units&&(e.push(Ve.ComputeBudgetProgram.setComputeUnitLimit({units:r.units})),t.push(j.SetComputeUnitLimit)),{instructions:e,instructionTypes:t}}async function rn(r,e){var n,i;let t=e!=null?e:"confirmed";return(i=await((n=r.getLatestBlockhash)==null?void 0:n.call(r,{commitment:t})))==null?void 0:i.blockhash}async function zn(r,e){return r.getSignatureStatuses([e]),new Promise((t,n)=>{let i=setTimeout(n,6e4);r.onSignature(e,o=>{if(clearTimeout(i),!o.err){t("");return}n(Object.assign(o.err,{txId:e}))},"confirmed")})}function Oa(r,e){r.length<1&&no.logWithError(`no instructions provided: ${r.toString()}`),e.length<1&&no.logWithError(`no signers provided:, ${e.toString()}`);let t=new Ve.Transaction;t.recentBlockhash="11111111111111111111111111111111",t.feePayer=e[0],t.add(...r);try{return Buffer.from(t.serialize({verifySignatures:!1})).toString("base64").length<io}catch{return!1}}function he(r,e){let[t,n]=Ve.PublicKey.findProgramAddressSync(r,e);return{publicKey:t,nonce:n}}function Pn({instructions:r,payer:e,signers:t}){return Oa(r,[e,...t])}function Tn({instructions:r,payer:e,lookupTableAddressAccount:t,recentBlockhash:n=Ve.Keypair.generate().publicKey.toString()}){let o=new Ve.TransactionMessage({payerKey:e,recentBlockhash:n,instructions:r}).compileToV0Message(Object.values(t!=null?t:{}));try{return Buffer.from(new Ve.VersionedTransaction(o).serialize()).toString("base64").length<io}catch{return!1}}var Wa=r=>Buffer.isBuffer(r)?r:r instanceof Uint8Array?Buffer.from(r.buffer,r.byteOffset,r.byteLength):Buffer.from(r),Fa=r=>{let e=r.serialize({requireAllSignatures:!1,verifySignatures:!1});r instanceof Ve.VersionedTransaction&&(e=Wa(e));try{return e instanceof Buffer?e.toString("base64"):Buffer.from(e).toString("base64")}catch{return e.toString("base64")}};function Ot(r){let e=[];return r.forEach(t=>{t instanceof Ve.Transaction&&(t.recentBlockhash||(t.recentBlockhash=ro.TOKEN_PROGRAM_ID.toBase58()),t.feePayer||(t.feePayer=Ve.Keypair.generate().publicKey)),e.push(Fa(t))}),console.log("simulate tx string:",e),e}function be(r,e,t){return he([r.toBuffer(),(t!=null?t:so.TOKEN_PROGRAM_ID).toBuffer(),e.toBuffer()],new oo.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"))}var Y=require("@solana/web3.js"),ao=new Y.PublicKey("EhhTKczWMGQt46ynNeRX1WfeagwwJd7ufHvCDjRxjo5Q"),uo=new Y.PublicKey("CBuCnLe26faBpcBP2fktp4rp8abpcAnTWft6ZrP5Q4T"),co=new Y.PublicKey("9KEPoZmtHUrBbhWN1v1KWLMkkvwY6WLtAVUCPRtRjP4z"),lo=new Y.PublicKey("FarmqiPv5eAj3j1GMdMCMUGXqPUvmquZtMy86QH6rzhG"),em=new Y.PublicKey("CLaimxFqjHzgTJtAGHU47NPhg6qrc5sCnpC4tBLyABQS"),mo=new Y.PublicKey("srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX"),tm=new Y.PublicKey("9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin"),po=new Y.PublicKey("675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8"),nm=new Y.PublicKey("5quBtoiQqxF9Jv6KYKctB59NT3gtJD2Y65kdnB1Uev3h"),rm=new Y.PublicKey("CDSr3ssLcRB6XYPJwAfFt18MZvEZp4LjHcvzBVZ45duo"),im=new Y.PublicKey("CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK"),om=new Y.PublicKey("LockrWmn6K5twhz3y9w1dQERbmgSaRkfnTeTKbpofwE"),sm=new Y.PublicKey("kN1kEznaF5Xbd8LYuqtEFcxzWSBk5Fv6ygX6SqEGJVy"),am=new Y.PublicKey("routeUGWgWzqBWFcrCfv8tritsqukccJPu3q5GPP3xS"),fo=new Y.PublicKey("7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5"),um=new Y.PublicKey("6FJon3QE27qgPVggARueB22hLvoh22VzJpXv4rBEoSLF"),cm=new Y.PublicKey("CC12se5To1CdEuw7fDS27B7Geo5jJyL7t5UK2B44NgiH"),lm=new Y.PublicKey("9HzJyW1qZsEiSfMUf6L2jo3CcTKAyBmSyKdwQeYisHrC"),mm=new Y.PublicKey("DropEU8AvevN3UrXWXTMuz3rqnMczQVNjq3kcSdW2SQi"),dm=new Y.PublicKey("CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C"),pm=new Y.PublicKey("GpMZbSM2GgvTKHJirzeGfMFoaZ8UR2X7F4v8vHTvxFbL"),fm=new Y.PublicKey("DNXgeM9EiiaAbaWvwjHj9fQQLAX5ZsfHyvmYUNRAdNC8"),Da=new Y.PublicKey("CPMDWBwJDtYax9qW7AyRuVC19Cc4L4Vcy4n2BHAbHkCW"),qa=new Y.PublicKey("7rQ1QFNosMkUCuh7Z7fPbTHvh73b68sQYdirycEzJVuw"),Ga=new Y.Pu