PageSourceSearch

https://alpinegold.exchange/scripts/5552.719cec5e58747c7ca191.js

js alpinegold.exchange collected 2026-09-30 11:22:46 UTC 31,696 bytes, 2 lines download raw bytes

1/*! For license information please see 5552.719cec5e58747c7ca191.js.LICENSE.txt */
2(self.webpackChunkdigital_world_trader=self.webpackChunkdigital_world_trader||[]).push([[5552],{5552:function(e,t,n){"use strict";n.d(t,{TransactionStellarUri:function(){return U}});var r={};n.r(r);var i=n(99571),s=(n(20899),n(14403),n(79236),n(22278),n(48287),n(57689),n(97788));class o{static parse(e){if(!e)return[];const[t,n]=e.split(o.TXN_HINT_SEPARATOR),r=n.split(o.LIST_SEPARATOR),i=new Map;return r.map(e=>e.split(o.ID_SEPARATOR)).forEach(([e,t])=>i.set(e,t)),t.split(o.LIST_SEPARATOR).map(e=>e.split(o.ID_SEPARATOR)).map(([e,t])=>({id:t,path:e,hint:i.get(t)}))}static toString(e){if(!e||0===e.length)return"";const t=e.map(e=>`${e.path}${o.ID_SEPARATOR}${e.id}`).join(o.LIST_SEPARATOR),n=new Map;for(const t of e)n.set(t.id,t.hint);const r=Array.from(n.entries()).map(([e,t])=>`${e}${o.ID_SEPARATOR}${t}`).join(o.LIST_SEPARATOR);return`${t}${o.TXN_HINT_SEPARATOR}${r}`}}o.TXN_HINT_SEPARATOR=";",o.ID_SEPARATOR=":",o.LIST_SEPARATOR=",";var a,u=n(48287).Buffer;!function(e){e.Transaction="tx",e.Pay="pay"}(a||(a={}));class c{constructor(e){this.uri="string"==typeof e?new URL(e):new URL(e.toString())}get operation(){return this.uri.pathname}get callback(){const e=this.getParam("callback");return e&&e.startsWith("url:")?e.replace("url:",""):e}set callback(e){void 0!==e?e.startsWith("url:")?this.setParam("callback",e):this.setParam("callback",`url:${e}`):this.setParam("callback",void 0)}get networkPassphrase(){return this.getParam("network_passphrase")}set networkPassphrase(e){this.setParam("network_passphrase",e)}get isPublicNetwork(){return!this.networkPassphrase||this.networkPassphrase===i.a.PUBLIC}usePublicNetwork(){this.networkPassphrase=i.a.PUBLIC}get isTestNetwork(){return this.networkPassphrase===i.a.TESTNET}useTestNetwork(){this.networkPassphrase=i.a.TESTNET}get pubkey(){return this.getParam("pubkey")}set pubkey(e){this.setParam("pubkey",e)}get msg(){return this.getParam("msg")}set msg(e){if(e&&e.length>300)throw new Error("'msg' should be no longer than 300 characters.");this.setParam("msg",e)}get originDomain(){return this.getParam("origin_domain")}set originDomain(e){this.setParam("origin_domain",e)}get signature(){return this.getParam("signature")}addSignature(e){const t=this.createSignaturePayload(),n=e.sign(t).toString("base64");return this.setParam("signature",n),n}async verifySignature(){const e=this.originDomain,t=this.signature;if(!e&&!t)return!0;if(!e||!t)return!1;try{const n=(await r.StellarTomlResolver.resolve(e)).URI_REQUEST_SIGNING_KEY;if(!n)return!1;const i=s.A.fromPublicKey(n),o=this.createSignaturePayload();return i.verify(o,u.from(t,"base64"))}catch(e){return!1}}setReplacements(e){0===e.length?this.setParam("replace"):this.setParam("replace",o.toString(e))}getReplacements(){return o.parse(this.getParam("replace"))}addReplacement(e){const t=this.getReplacements();t.push(e),this.setReplacements(t)}removeReplacement(e){const t=this.getReplacements().filter(t=>t.id!==e);this.setReplacements(t)}toString(){return this.uri.toString()}getParam(e){return this.uri.searchParams.get(e)||void 0}setParam(e,t){void 0===t?this.uri.searchParams.delete(e):this.uri.searchParams.set(e,t)}createSignaturePayload(){let e=this.uri.toString();const t=this.signature;return t&&(e=e.replace(`&signature=${encodeURIComponent(t)}`,"")),u.concat([u.alloc(35),u.alloc(1,4),u.from("stellar.sep.7 - URI Scheme"+e)])}}var l=n(3153),f=n(81386),h=n.n(f);const g=2147483647;function m(e,t,n){void 0!==t&&n.push(`${e}: ${t}`)}function p(e,t){const[n,r]=function(e){let t,n,r=new(h())(e);const i=[[new(h())(0),new(h())(1)],[new(h())(1),new(h())(0)]];let s=2;for(;!r.gt(g);){t=r.floor(),n=r.sub(t);const e=t.mul(i[s-1][0]).add(i[s-2][0]),o=t.mul(i[s-1][1]).add(i[s-2][1]);if(e.gt(g)||o.gt(g))break;if(i.push([e,o]),n.eq(0))break;r=new(h())(1).div(n),s+=1}const[o,a]=i[i.length-1];if(o.isZero()||a.isZero())throw new Error("Couldn't find approximation");return[o.toNumber(),a.toNumber()]}(e);t("price.n",n),t("price.d",r)}function d(e){return e.isNative()?"XLM":`${e.code}:${e.issuer}`}function w(e){return new(h())(e).times(1e7)}function v(e){return JSON.stringify(e)}function A(e){return e.toString("hex")}var T=n(96002),b=n(50687),y=n(18612),S=n(2353),O=n(23941),E=n(70163),P=n(48287).Buffer;function N(e){const[t,n]=function(e){const t=e.indexOf(":");return[e.slice(0,t).trim(),e.slice(t+1).trim()]}(e),[r,i]=function(e){return'"'===e[0]?function(e){let t='"',n=!1,r=1;for(;r<e.length;++r){const i=e[r];if(n)t+="n"===i?"\n":i,n=!1;else if("\\"===i)n=!0;else{if('"'===i){t+=i;break}t+=i}}return[t.trim(),e.slice(r+1).trim()]}(e):function(e){const t=e.indexOf(" ");if(-1===t)return[e.trim(),""];{const n=e.slice(0,t),r=e.slice(t);return[n.trim(),r.trim()]}}(e)}(n);return{path:t,value:R(r),comment:i}}function R(e){return e.startsWith('"')&&e.endsWith('"')?e.slice(1,-1):"true"===e||"false"!==e&&e}function _({sourceAccount:e,body:t}){switch(t.type){case"CREATE_ACCOUNT":return function(e,t){const{destination:n,startingBalance:r}=e;return y.I.createAccount({destination:n,startingBalance:D(r),source:t})}(t.createAccountOp,e);case"PAYMENT":return function(e,t){const{asset:n,destination:r,amount:i}=e;return y.I.payment({destination:r,asset:I(n),amount:D(i),source:t})}(t.paymentOp,e);case"PATH_PAYMENT_STRICT_RECEIVE":return function(e,t){const{sendAsset:n,destAsset:r,sendMax:i,destination:s,destAmount:o,path:a}=e;
2return y.I.pathPaymentStrictReceive({sendAsset:I(n),sendMax:D(i),destination:s,destAsset:I(r),destAmount:D(o),path:a&&a.map(I),source:t})}(t.pathPaymentStrictReceiveOp,e);case"PATH_PAYMENT_STRICT_SEND":return function(e,t){const{sendAsset:n,sendAmount:r,destAsset:i,destination:s,destMin:o,path:a}=e;return y.I.pathPaymentStrictSend({sendAsset:I(n),sendAmount:D(r),destination:s,destAsset:I(i),destMin:D(o),path:a&&a.map(I),source:t})}(t.pathPaymentStrictSendOp,e);case"MANAGE_SELL_OFFER":return function(e,t){const{selling:n,buying:r,amount:i,price:s,offerID:o}=e;return y.I.manageSellOffer({selling:I(n),buying:I(r),amount:D(i),price:L(s),offerId:o,source:t})}(t.manageSellOfferOp,e);case"CREATE_PASSIVE_SELL_OFFER":return function(e,t){const{selling:n,buying:r,amount:i,price:s}=e;return y.I.createPassiveSellOffer({selling:I(n),buying:I(r),amount:D(i),price:L(s),source:t})}(t.createPassiveSellOfferOp,e);case"SET_OPTIONS":return function(e={},t){const{inflationDest:n,clearFlags:r,setFlags:i,masterWeight:s,lowThreshold:o,medThreshold:a,highThreshold:u,homeDomain:c,signer:f}=e;let h;if(f)switch(f.key.charAt(0)){case"G":h={ed25519PublicKey:f.key,weight:f.weight};break;case"X":h={sha256Hash:l.L8.decodeSha256Hash(f.key),weight:f.weight};break;case"T":h={preAuthTx:l.L8.decodePreAuthTx(f.key),weight:f.weight}}return y.I.setOptions({inflationDest:n,clearFlags:r,setFlags:i,masterWeight:s,lowThreshold:o,medThreshold:a,highThreshold:u,homeDomain:c,signer:h,source:t})}(t.setOptionsOp,e);case"CHANGE_TRUST":return function(e,t){const{line:n,limit:r}=e;return y.I.changeTrust({asset:I(n),limit:r&&D(r),source:t})}(t.changeTrustOp,e);case"ALLOW_TRUST":return function(e,t){const{trustor:n,asset:r,authorize:i}=e;return y.I.allowTrust({trustor:n,authorize:i,assetCode:r,source:t})}(t.allowTrustOp,e);case"ACCOUNT_MERGE":return function(e,t){const{destination:n}=e;return y.I.accountMerge({destination:n,source:t})}(t,e);case"MANAGE_DATA":return function(e,t){const{dataName:n,dataValue:r}=e,i=P.from(r,"hex");return y.I.manageData({name:n,value:i,source:t})}(t.manageDataOp,e);case"BUMP_SEQUENCE":return function(e,t){const{bumpTo:n}=e;return y.I.bumpSequence({bumpTo:n,source:t})}(t.bumpSequenceOp,e);case"MANAGE_BUY_OFFER":return function(e,t){const{selling:n,buying:r,buyAmount:i,price:s,offerID:o}=e;return y.I.manageBuyOffer({selling:I(n),buying:I(r),buyAmount:D(i),price:L(s),offerId:o,source:t})}(t.manageBuyOfferOp,e);default:throw new Error("Not implemented")}}function x(e){const t=P.from(e.hint,"hex"),n=P.from(e.signature,"hex");return new S.A.DecoratedSignature({hint:t,signature:n})}function I(e){if(!e)return;if("XLM"===e)return O.V.native();if("native"===e)return O.V.native();const[t,n]=e.split(":");return new O.V(t,n)}function k(e){switch(e.type){case"MEMO_TEXT":return E.lD.text(e.text);case"MEMO_ID":return E.lD.id(e.id);case"MEMO_HASH":return E.lD.hash(e.hash);case"MEMO_RETURN":return E.lD.return(e.retHash);default:return E.lD.none()}}function M(e){if(!e)return;const{minTime:t,maxTime:n}=e;return{minTime:t,maxTime:n}}function D(e){return new(h())(e).div(1e7).toFixed(7)}function L({n:e,d:t}){return{n:Number(e),d:Number(t)}}var $=n(18365);class U extends c{static forTransaction(e){const t=new U;return t.xdr=e.toEnvelope().toXDR().toString("base64"),t.networkPassphrase=e.networkPassphrase,t}constructor(e){super(e||new URL("web+stellar:tx"))}clone(){return new U(this.uri)}getTransaction(){return new $.Z(this.xdr,this.networkPassphrase||i.a.PUBLIC)}get xdr(){return this.getParam("xdr")}set xdr(e){this.setParam("xdr",e)}replace(e){const t=this.isPublicNetwork?i.a.PUBLIC:this.networkPassphrase;let n=function(e){const t=[];return m("tx.sourceAccount",e.source,t),m("tx.fee",e.fee,t),m("tx.seqNum",e.sequence,t),function(e,t){e?(m("tx.timeBounds._present",!0,t),m("tx.timeBounds.minTime",e.minTime,t),m("tx.timeBounds.maxTime",e.maxTime,t)):m("tx.timeBounds._present",!1,t)}(e.timeBounds,t),function(e,t){switch(e.type){case"none":return void m("tx.memo.type","MEMO_NONE",t);case"text":return m("tx.memo.type","MEMO_TEXT",t),void m("tx.memo.text",JSON.stringify(e.value.toString("utf-8")),t);case"id":return m("tx.memo.type","MEMO_ID",t),void m("tx.memo.id",e.value,t);case"hash":return m("tx.memo.type","MEMO_HASH",t),void m("tx.memo.hash",A(e.value),t);case"return":m("tx.memo.type","MEMO_RETURN",t),m("tx.memo.retHash",A(e.value),t)}}(e.memo,t),function(e,t){m("tx.operations.len",e.length,t),e.forEach((e,n)=>{!function(e,t,n){const r=`tx.operations[${t}]`,i=(e,t)=>m(`${r}.${e}`,t,n);e.source?(i("sourceAccount._present",!0),i("sourceAccount",e.source)):i("sourceAccount._present",!1);const s=(o=e.type)?String(o).replace(/^[^A-Za-z0-9]*|[^A-Za-z0-9]*$/g,"").replace(/([a-z])([A-Z])/g,(e,t,n)=>t+"_"+n.toLowerCase()).replace(/[^A-Za-z0-9]+|_+/g,"_").toUpperCase():"";var o;i("body.type",s);const a=(t,n,r=!1)=>{const s=`body.${e.type}Op.${t}`;if(r){const e=null!=n;i(`${s}._present`,e),e&&i(s,n)}else i(s,n)};switch(e.type){case"createAccount":return void function(e,t){t("destination",e.destination),t("startingBalance",w(e.startingBalance))}(e,a);case"payment":return void function(e,t){t("destination",e.destination),t("asset",d(e.asset)),t("amount",w(e.amount))}(e,a);case"pathPaymentStrictReceive":return void function(e,t){t("sendAsset",d(e.sendAsset)),t("sendMax",w(e.sendMax)),t("destination",e.destination),t("destAsset",d(e.destAsset)),t("destAmount",w(e.destAmount)),t("path.len",e.path.length),e.path.forEach((e,n)=>{t(`path[${n}]`,d(e))})}(e,a);case"pathPaymentStrictSend":return void function(e,t){t("sendAsset",d(e.sendAsset)),t("sendAmount",w(e.sendAmount)),t("destination",e.destination),t("destAsset",d(e.destAsset)),t("destMin",w(e.destMin)),t("path.len",e.path.length),e.path.forEach((e,n)=>{t(`path[${n}]`,d(e))})}(e,a);case"manageSellOffer":return void function(e,t){t("selling",d(e.selling)),t("buying",d(e.buying)),t("amount",w(e.amount)),p(e.price,t),t("offerID",e.offerId)}(e,a);case"createPassiveSellOffer":return void function(e,t){t("selling",d(e.selling)),t("buying",d(e.buying)),t("amount",w(e.amount)),p(e.price,t)}(e,a);case"setOptions":return void function(e,t){t("inflationDest",e.inflationDest,!0),t("clearFlags",e.clearFlags,!0),t("setFlags",e.setFlags,!0),t("masterWeight",e.masterWeight,!0),t("lowThreshold",e.lowThreshold,!0),t("medThreshold",e.medThreshold,!0),t("highThreshold",e.highThreshold,!0),t("homeDomain",v(e.homeDomain),!0),function(e,t){t("signer._present",!!e),e&&(e.ed25519PublicKey?t("signer.key",e.ed25519PublicKey):e.preAuthTx?t("signer.key",l.L8.encodePreAuthTx(e.preAuthTx)):e.sha256Hash&&t("signer.key",l.L8.encodeSha256Hash(e.sha256Hash)),t("signer.weight",e.weight))}(e.signer,t)}(e,a);case"changeTrust":return void function(e,t){t("line",d(e.line)),e.limit&&t("limit",w(e.limit))}(e,a);case"allowTrust":return void function(e,t){t("trustor",e.trustor),t("asset",e.assetCode),t("authorize",e.authorize)}(e,a);case"accountMerge":return void function(e,t){t("body.destination",e.destination)}(e,i);case"manageData":return void function(e,t){t("dataName",v(e.name)),t("dataValue._present",!!e.value),e.value&&t("dataValue",A(e.value))}(e,a);case"bumpSequence":return void function(e,t){t("bumpTo",e.bumpTo)}(e,a);case"manageBuyOffer":return void function(e,t){t("selling",d(e.selling)),t("buying",d(e.buying)),t("buyAmount",w(e.buyAmount)),p(e.price,t),t("offerID",e.offerId)}(e,a);default:throw Error(`${e.type} is not implemented`)}}(e,n,t)})}(e.operations,t),m("tx.ext.v",0,t),function(e,t){m("signatures.len",e.length,t),e.forEach((e,n)=>{!function(e,t,n){const r=`signatures[${t}]`;m(`${r}.hint`,A(e.hint()),n),m(`${r}.signature`,A(e.signature()),n)}(e,n,t)})}(e.signatures,t),t.join("\n")}(this.getTransaction());const r=this.clone(),s=this.getReplacements();for(const[t,i]of Object.entries(e))s.filter(e=>e.id===t).forEach(({path:e})=>{n+=`\ntx.${e}: ${i}`}),r.removeReplacement(t);const o=function(e,t){const n=function(e){const t={};return e.split("\n").map(e=>e.trim()).filter(e=>
2!!e).map(N).forEach(({path:e,value:n})=>{e&&function(e){const t=e.split("."),n=t[t.length-1];return"len"===n||n.startsWith("_")}(e)||function(e,t,n){Object(e)!==e||(Array.isArray(t)||(t=t.toString().match(/[^.[\]]+/g)||[]),t.slice(0,-1).reduce((e,n,r)=>Object(e[n])===e[n]?e[n]:e[n]=(0|Math.abs(t[r+1]))===+t[r+1]?[]:{},e)[t[t.length-1]]=n)}(t,e,n)}),t}(e),r=new T.g(n.tx.sourceAccount,n.tx.seqNum);r.sequence=r.sequence.add(-1);const i={memo:k(n.tx.memo),fee:(s=n.tx.fee,Number(s)),timebounds:M(n.tx.timeBounds),networkPassphrase:t};var s;const o=new b.Q(r,i);i.timebounds||o.setTimeout(0);for(const e of n.tx.operations)o.addOperation(_(e));const a=o.build();if(n.signatures)for(const e of n.signatures)a.signatures.push(x(e));return a}(n,t);return r.xdr=o.toEnvelope().toXDR().toString("base64"),r}}},81386:function(e,t,n){var r;!function(){"use strict";var i,s=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,o=Math.ceil,a=Math.floor,u=" not a boolean or binary digit",c="rounding mode",l="number type has more than 15 significant digits",f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",h=1e14,g=14,m=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],d=1e7,w=1e9;function v(e){var t=0|e;return e>0||e===t?t:t-1}function A(e){for(var t,n,r=1,i=e.length,s=e[0]+"";r<i;){for(t=e[r++]+"",n=g-t.length;n--;t="0"+t);s+=t}for(i=s.length;48===s.charCodeAt(--i););return s.slice(0,i+1||1)}function T(e,t){var n,r,i=e.c,s=t.c,o=e.s,a=t.s,u=e.e,c=t.e;if(!o||!a)return null;if(n=i&&!i[0],r=s&&!s[0],n||r)return n?r?0:-a:o;if(o!=a)return o;if(n=o<0,r=u==c,!i||!s)return r?0:!i^n?1:-1;if(!r)return u>c^n?1:-1;for(a=(u=i.length)<(c=s.length)?u:c,o=0;o<a;o++)if(i[o]!=s[o])return i[o]>s[o]^n?1:-1;return u==c?0:u>c^n?1:-1}function b(e,t,n){return(e=P(e))>=t&&e<=n}function y(e){return"[object Array]"==Object.prototype.toString.call(e)}function S(e,t,n){for(var r,i,s=[0],o=0,a=e.length;o<a;){for(i=s.length;i--;s[i]*=t);for(s[r=0]+=f.indexOf(e.charAt(o++));r<s.length;r++)s[r]>n-1&&(null==s[r+1]&&(s[r+1]=0),s[r+1]+=s[r]/n|0,s[r]%=n)}return s.reverse()}function O(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function E(e,t){var n,r;if(t<0){for(r="0.";++t;r+="0");e=r+e}else if(++t>(n=e.length)){for(r="0",t-=n;--t;r+="0");e+=r}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}function P(e){return(e=parseFloat(e))<0?o(e):a(e)}i=function e(t){var n,r,i,N,R,_,x,I,k,M=0,D=X.prototype,L=new X(1),$=20,U=4,C=-7,B=21,F=-1e7,H=1e7,q=!0,G=J,z=!1,V=1,W=0,j={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0};function X(e,t){var n,i,o,u,c,h,p=this;if(!(p instanceof X))return q&&ee(26,"constructor call without new",e),new X(e,t);if(null!=t&&G(t,2,64,M,"base")){if(h=e+"",10==(t|=0))return te(p=new X(e instanceof X?e:h),$+p.e+1,U);if((u="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(n="["+f.slice(0,t)+"]+")+"(?:\\."+n+")?$",t<37?"i":"").test(h))return r(p,h,u,t);u?(p.s=1/e<0?(h=h.slice(1),-1):1,q&&h.replace(/^0\.0*|\./,"").length>15&&ee(M,l,e),u=!1):p.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1,h=Z(h,10,t,p.s)}else{if(e instanceof X)return p.s=e.s,p.e=e.e,p.c=(e=e.c)?e.slice():e,void(M=0);if((u="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,o=e;o>=10;o/=10,i++);return p.e=i,p.c=[e],void(M=0)}h=e+""}else{if(!s.test(h=e+""))return r(p,h,u);p.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1}}for((i=h.indexOf("."))>-1&&(h=h.replace(".","")),(o=h.search(/e/i))>0?(i<0&&(i=o),i+=+h.slice(o+1),h=h.substring(0,o)):i<0&&(i=h.length),o=0;48===h.charCodeAt(o);o++);for(c=h.length;48===h.charCodeAt(--c););if(h=h.slice(o,c+1))if(c=h.length,u&&q&&c>15&&(e>m||e!==a(e))&&ee(M,l,p.s*e),(i=i-o-1)>H)p.c=p.e=null;else if(i<F)p.c=[p.e=0];else{if(p.e=i,p.c=[],o=(i+1)%g,i<0&&(o+=g),o<c){for(o&&p.c.push(+h.slice(0,o)),c-=g;o<c;)p.c.push(+h.slice(o,o+=g));h=h.slice(o),o=g-h.length}else o-=c;for(;o--;h+="0");
vendor: 14,336 bytes, line 2
2p.c.push(+h)}else p.c=[p.e=0];M=0}function Z(e,t,r,i){var s,o,a,u,c,l,h,g=e.indexOf("."),m=$,p=U;for(r<37&&(e=e.toLowerCase()),g>=0&&(a=W,W=0,e=e.replace(".",""),c=(h=new X(r)).pow(e.length-g),W=a,h.c=S(E(A(c.c),c.e),10,t),h.e=h.c.length),o=a=(l=S(e,r,t)).length;0==l[--a];l.pop());if(!l[0])return"0";if(g<0?--o:(c.c=l,c.e=o,c.s=i,l=(c=n(c,h,m,p,t)).c,u=c.r,o=c.e),g=l[s=o+m+1],a=t/2,u=u||s<0||null!=l[s+1],u=p<4?(null!=g||u)&&(0==p||p==(c.s<0?3:2)):g>a||g==a&&(4==p||u||6==p&&1&l[s-1]||p==(c.s<0?8:7)),s<1||!l[0])e=u?E("1",-m):"0";else{if(l.length=s,u)for(--t;++l[--s]>t;)l[s]=0,s||(++o,l=[1].concat(l));for(a=l.length;!l[--a];);for(g=0,e="";g<=a;e+=f.charAt(l[g++]));e=E(e,o)}return e}function Y(e,t,n,r){var i,s,o,a,u;if(n=null!=n&&G(n,0,8,r,c)?0|n:U,!e.c)return e.toString();if(i=e.c[0],o=e.e,null==t)u=A(e.c),u=19==r||24==r&&o<=C?O(u,o):E(u,o);else if(s=(e=te(new X(e),t,n)).e,a=(u=A(e.c)).length,19==r||24==r&&(t<=s||s<=C)){for(;a<t;u+="0",a++);u=O(u,s)}else if(t-=o,u=E(u,s),s+1>a){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=s-a)>0)for(s+1==a&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function K(e,t){var n,r,i=0;for(y(e[0])&&(e=e[0]),n=new X(e[0]);++i<e.length;){if(!(r=new X(e[i])).s){n=r;break}t.call(n,r)&&(n=r)}return n}function J(e,t,n,r,i){return(e<t||e>n||e!=P(e))&&ee(r,(i||"decimal places")+(e<t||e>n?" out of range":" not an integer"),e),!0}function Q(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*g-1)>H?e.c=e.e=null:n<F?e.c=[e.e=0]:(e.e=n,e.c=t),e}function ee(e,t,n){var r=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][e]+"() "+t+": "+n);throw r.name="BigNumber Error",M=0,r}function te(e,t,n,r){var i,s,u,c,l,f,m,d=e.c,w=p;if(d){e:{for(i=1,c=d[0];c>=10;c/=10,i++);if((s=t-i)<0)s+=g,u=t,m=(l=d[f=0])/w[i-u-1]%10|0;else if((f=o((s+1)/g))>=d.length){if(!r)break e;for(;d.length<=f;d.push(0));l=m=0,i=1,u=(s%=g)-g+1}else{for(l=c=d[f],i=1;c>=10;c/=10,i++);m=(u=(s%=g)-g+i)<0?0:l/w[i-u-1]%10|0}if(r=r||t<0||null!=d[f+1]||(u<0?l:l%w[i-u-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(s>0?u>0?l/w[i-u]:0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,r?(t-=e.e+1,d[0]=w[(g-t%g)%g],e.e=-t||0):d[0]=e.e=0,e;if(0==s?(d.length=f,c=1,f--):(d.length=f+1,c=w[g-s],d[f]=u>0?a(l/w[i-u]%w[u])*c:0),r)for(;;){if(0==f){for(s=1,u=d[0];u>=10;u/=10,s++);for(u=d[0]+=c,c=1;u>=10;u/=10,c++);s!=c&&(e.e++,d[0]==h&&(d[0]=1));break}if(d[f]+=c,d[f]!=h)break;d[f--]=0,c=1}for(s=d.length;0===d[--s];d.pop());}e.e>H?e.c=e.e=null:e.e<F&&(e.c=[e.e=0])}return e}return X.another=e,X.ROUND_UP=0,X.ROUND_DOWN=1,X.ROUND_CEIL=2,X.ROUND_FLOOR=3,X.ROUND_HALF_UP=4,X.ROUND_HALF_DOWN=5,X.ROUND_HALF_EVEN=6,X.ROUND_HALF_CEIL=7,X.ROUND_HALF_FLOOR=8,X.EUCLID=9,X.config=X.set=function(){var e,t,n=0,r={},i=arguments,s=i[0],o=s&&"object"==typeof s?function(){if(s.hasOwnProperty(t))return null!=(e=s[t])}:function(){if(i.length>n)return null!=(e=i[n++])};return o(t="DECIMAL_PLACES")&&G(e,0,w,2,t)&&($=0|e),r[t]=$,o(t="ROUNDING_MODE")&&G(e,0,8,2,t)&&(U=0|e),r[t]=U,o(t="EXPONENTIAL_AT")&&(y(e)?G(e[0],-w,0,2,t)&&G(e[1],0,w,2,t)&&(C=0|e[0],B=0|e[1]):G(e,-w,w,2,t)&&(C=-(B=0|(e<0?-e:e)))),r[t]=[C,B],o(t="RANGE")&&(y(e)?G(e[0],-w,-1,2,t)&&G(e[1],1,w,2,t)&&(F=0|e[0],H=0|e[1]):G(e,-w,w,2,t)&&(0|e?F=-(H=0|(e<0?-e:e)):q&&ee(2,t+" cannot be zero",e))),r[t]=[F,H],o(t="ERRORS")&&(e===!!e||1===e||0===e?(M=0,G=(q=!!e)?J:b):q&&ee(2,t+u,e)),r[t]=q,o(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?!(e="undefined"==typeof crypto)&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?z=!0:q?ee(2,"crypto unavailable",e?void 0:crypto):z=!1:z=!1:q&&ee(2,t+u,e)),r[t]=z,o(t="MODULO_MODE")&&G(e,0,9,2,t)&&(V=0|e),r[t]=V,o(t="POW_PRECISION")&&G(e,0,w,2,t)&&(W=0|e),r[t]=W,o(t="FORMAT")&&("object"==typeof e?j=e:q&&ee(2,t+" not an object",e)),r[t]=j,r},X.max=function(){return K(arguments,D.lt)},X.min=function(){return K(arguments,D.gt)},X.random=(i=9007199254740992,N=Math.random()*i&2097151?function(){return a(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,s,u=0,c=[],l=new X(L);if(e=null!=e&&G(e,0,w,14)?0|e:$,i=o(e/g),z)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));u<i;)(s=131072*t[u]+(t[u+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[u]=n[0],t[u+1]=n[1]):(c.push(s%1e14),u+=2);u=i/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(i*=7);u<i;)(s=281474976710656*(31&t[u])+1099511627776*t[u+1]+4294967296*t[u+2]+16777216*t[u+3]+(t[u+4]<<16)+(t[u+5]<<8)+t[u+6])>=9e15?crypto.randomBytes(7).copy(t,u):(c.push(s%1e14),u+=7);u=i/7}else z=!1,q&&ee(14,"crypto unavailable",crypto);if(!z)for(;u<i;)(s=N())<9e15&&(c[u++]=s%1e14);for(i=c[--u],e%=g,i&&e&&(s=p[g-e],c[u]=a(i/s)*s);0===c[u];c.pop(),u--);if(u<0)c=[r=0];else{for(r=-1;0===c[0];c.splice(0,1),r-=g);for(u=1,s=c[0];s>=10;s/=10,u++);u<g&&(r-=g-u)}return l.e=r,l.c=c,l}),n=function(){function e(e,t,n){var r,i,s,o,a=0,u=e.length,c=t%d,l=t/d|0;for(e=e.slice();u--;)a=((i=c*(s=e[u]%d)+(r=l*s+(o=e[u]/d|0)*c)%d*d+a)/n|0)+(r/d|0)+l*o,e[u]=i%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var i,s;if(n!=r)s=n>r?1:-1;else for(i=s=0;i<n;i++)if(e[i]!=t[i]){s=e[i]>t[i]?1:-1;break}return s}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,s,o,u){var c,l,f,m,p,d,w,A,T,b,y,S,O,E,P,N,R,_=r.s==i.s?1:-1,x=r.c,I=i.c;if(!(x&&x[0]&&I&&I[0]))return new X(r.s&&i.s&&(x?!I||x[0]!=I[0]:I)?x&&0==x[0]||!I?0*_:_/0:NaN);for(T=(A=new X(_)).c=[],_=s+(l=r.e-i.e)+1,u||(u=h,l=v(r.e/g)-v(i.e/g),_=_/g|0),f=0;I[f]==(x[f]||0);f++);if(I[f]>(x[f]||0)&&l--,_<0)T.push(1),m=!0;else{for(E=x.length,N=I.length,f=0,_+=2,(p=a(u/(I[0]+1)))>1&&(I=e(I,p,u),x=e(x,p,u),N=I.length,E=x.length),O=N,y=(b=x.slice(0,N)).length;y<N;b[y++]=0);R=I.slice(),R=[0].concat(R),P=I[0],I[1]>=u/2&&P++;do{if(p=0,(c=t(I,b,N,y))<0){if(S=b[0],N!=y&&(S=S*u+(b[1]||0)),(p=a(S/P))>1)for(p>=u&&(p=u-1),w=(d=e(I,p,u)).length,y=b.length;1==t(d,b,w,y);)p--,n(d,N<w?R:I,w,u),w=d.length,c=1;else 0==p&&(c=p=1),w=(d=I.slice()).length;if(w<y&&(d=[0].concat(d)),n(b,d,y,u),y=b.length,-1==c)for(;t(I,b,N,y)<1;)p++,n(b,N<y?R:I,y,u),y=b.length}else 0===c&&(p++,b=[0]);T[f++]=p,b[0]?b[y++]=x[O]||0:(b=[x[O]],y=1)}while((O++<E||null!=b[0])&&_--);m=null!=b[0],T[0]||T.splice(0,1)}if(u==h){for(f=1,_=T[0];_>=10;_/=10,f++);te(A,s+(A.e=f+l*g-1)+1,o,m)}else A.e=l,A.r=+m;return A}}(),R=/^(-?)0([xbo])(?=\w[\w.]*$)/i,_=/^([^.]+)\.$/,x=/^\.([^.]+)$/,I=/^-?(Infinity|NaN)$/,k=/^\s*\+(?=[\w.])|^\s+|\s+$/g,r=function(e,t,n,r){var i,s=n?t:t.replace(k,"");if(I.test(s))e.s=isNaN(s)?null:s<0?-1:1;else{if(!n&&(s=s.replace(R,function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t}),r&&(i=r,s=s.replace(_,"$1").replace(x,"0.$1")),t!=s))return new X(s,i);q&&ee(M,"not a"+(r?" base "+r:"")+" number",t),e.s=null}e.c=e.e=null,M=0},D.absoluteValue=D.abs=function(){var e=new X(this);return e.s<0&&(e.s=1),e},D.ceil=function(){return te(new X(this),this.e+1,2)},D.comparedTo=D.cmp=function(e,t){return M=1,T(this,new X(e,t))},D.decimalPlaces=D.dp=function(){var e,t,n=this.c;if(!n)return null;if(e=((t=n.length-1)-v(this.e/g))*g,t=n[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},D.dividedBy=D.div=function(e,t){return M=3,n(this,new X(e,t),$,U)},D.dividedToIntegerBy=D.divToInt=function(e,t){return M=4,n(this,new X(e,t),0,1)},D.equals=D.eq=function(e,t){return M=5,0===T(this,new X(e,t))},D.floor=function(){return te(new X(this),this.e+1,3)},D.greaterThan=D.gt=function(e,t){return M=6,T(this,new X(e,t))>0},D.greaterThanOrEqualTo=D.gte=function(e,t){return M=7,1===(t=T(this,new X(e,t)))||0===t},D.isFinite=function(){return!!this.c},D.isInteger=D.isInt=function(){return!!this.c&&v(this.e/g)>this.c.length-2},D.isNaN=function(){return!this.s},D.isNegative=D.isNeg=function(){return this.s<0},D.isZero=function(){return!!this.c&&0==this.c[0]},D.lessThan=D.lt=function(e,t){return M=8,T(this,new X(e,t))<0},D.lessThanOrEqualTo=D.lte=function(e,t){return M=9,-1===(t=T(this,new X(e,t)))||0===t},D.minus=D.sub=function(e,t){var n,r,i,s,o=this,a=o.s;if(M=10,t=(e=new X(e,t)).s,!a||!t)return new X(NaN);if(a!=t)return e.s=-t,o.plus(e);var u=o.e/g,c=e.e/g,l=o.c,f=e.c;if(!u||!c){if(!l||!f)return l?(e.s=-t,e):new X(f?o:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new X(l[0]?o:3==U?-0:0)}if(u=v(u),c=v(c),l=l.slice(),a=u-c){for((s=a<0)?(a=-a,i=l):(c=u,i=f),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(s=(a=l.length)<(t=f.length))?a:t,a=t=0;t<r;t++)if(l[t]!=f[t]){s=l[t]<f[t];break}if(s&&(i=l,l=f,f=i,e.s=-e.s),(t=(r=f.length)-(n=l.length))>0)for(;t--;l[n++]=0);for(t=h-1;r>a;){if(l[--r]<f[r]){for(n=r;n&&!l[--n];l[n]=t);--l[n],l[r]+=h}l[r]-=f[r]}for(;0==l[0];l.splice(0,1),--c);return l[0]?Q(e,l,c):(e.s=3==U?-1:1,e.c=[e.e=0],e)},D.modulo=D.mod=function(e,t){var r,i,s=this;return M=11,e=new X(e,t),!s.c||!e.s||e.c&&!e.c[0]?new X(NaN):!e.c||s.c&&!s.c[0]?new X(s):(9==V?(i=e.s,e.s=1,r=n(s,e,0,3),e.s=i,r.s*=i):r=n(s,e,0,V),s.minus(r.times(e)))},D.negated=D.neg=function(){var e=new X(this);return e.s=-e.s||null,e},D.plus=D.add=function(e,t){var n,r=this,i=r.s;if(M=12,t=(e=new X(e,t)).s,!i||!t)return new X(NaN);if(i!=t)return e.s=-t,r.minus(e);var s=r.e/g,o=e.e/g,a=r.c,u=e.c;if(!s||!o){if(!a||!u)return new X(i/0);if(!a[0]||!u[0])return u[0]?e:new X(a[0]?r:0*i)}if(s=v(s),o=v(o),a=a.slice(),i=s-o){for(i>0?(o=s,n=u):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(t=u.length)<0&&(n=u,u=a,a=n,t=i),i=0;t;)i=(a[--t]=a[t]+u[t]+i)/h|0,a[t]=h===a[t]?0:a[t]%h;return i&&(a=[i].concat(a),++o),Q(e,a,o)},D.precision=D.sd=function(e){var t,n,r=this,i=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(q&&ee(13,"argument"+u,e),e!=!!e&&(e=null)),!i)return null;if(t=(n=i.length-1)*g+1,n=i[n]){for(;n%10==0;n/=10,t--);for(n=i[0];n>=10;n/=10,t++);}return e&&r.e+1>t&&(t=r.e+1),t},D.round=function(e,t){var n=new X(this);return(null==e||G(e,0,w,15))&&te(n,~~e+this.e+1,null!=t&&G(t,0,8,15,c)?0|t:U),n},D.shift=function(e){var t=this;return G(e,-9007199254740991,m,16,"argument")?t.times("1e"+P(e)):new X(t.c&&t.c[0]&&(e<-9007199254740991||e>m)?t.s*(e<0?0:1/0):t)},D.squareRoot=D.sqrt=function(){var e,t,r,i,s,o=this,a=o.c,u=o.s,c=o.e,l=$+4,f=new X("0.5");if(1!==u||!a||!a[0])return new X(!u||u<0&&(!a||a[0])?NaN:a?o:1/0);if(0==(u=Math.sqrt(+o))||u==1/0?(((t=A(a)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=v((c+1)/2)-(c<0||c%2),r=new X(t=u==1/0?"1e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new X(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(s=r,r=f.times(s.plus(n(o,s,l,1))),A(s.c).slice(0,u)===(t=A(r.c)).slice(0,u)){if(r.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(te(r,r.e+$+2,1),e=!r.times(r).eq(o));break}if(!i&&(te(s,s.e+$+2,0),s.times(s).eq(o))){r=s;break}l+=4,u+=4,i=1}return te(r,r.e+$+1,U,e)},D.times=D.mul=function(e,t){var n,r,i,s,o,a,u,c,l,f,m,p,w,A,T,b=this,y=b.c,S=(M=17,e=new X(e,t)).c;if(!(y&&S&&y[0]&&S[0]))return!b.s||!e.s||y&&!y[0]&&!S||S&&!S[0]&&!y?e.c=e.e=e.s=null:(e.s*=b.s,y&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=v(b.e/g)+v(e.e/g),e.s*=b.s,(u=y.length)<(f=S.length)&&(w=y,y=S,S=w,i=u,u=f,f=i),i=u+f,w=[];i--;w.push(0));for(A=h,T=d,i=f;--i>=0;){for(n=0,m=S[i]%T,p=S[i]/T|0,s=i+(o=u);s>i;)n=((c=m*(c=y[--o]%T)+(a=p*c+(l=y[o]/T|0)*m)%T*T+w[s]+n)/A|0)+(a/T|0)+p*l,w[s--]=c%A;w[s]=n}return n?++r:w.splice(0,1),Q(e,w,r)},D.toDigits=function(e,t){var n=new X(this);return e=null!=e&&G(e,1,w,18,"precision")?0|e:null,t=null!=t&&G(t,0,8,18,c)?0|t:U,e?te(n,e,t):n},D.toExponential=function(e,t){return Y(this,null!=e&&G(e,0,w,19)?1+~~e:null,t,19)},D.toFixed=function(e,t){return Y(this,null!=e&&G(e,0,w,20)?~~e+this.e+1:null,t,20)},D.toFormat=function(e,t){var n=Y(this,null!=e&&G(e,0,w,21)?~~e+this.e+1:null,t,21);if(this.c){var r,i=n.split("."),s=+j.groupSize,o=+j.secondaryGroupSize,a=j.groupSeparator,u=i[0],c=i[1],l=this.s<0,f=l?u.slice(1):u,h=f.length;if(o&&(r=s,s=o,o=r,h-=r),s>0&&h>0){for(r=h%s||s,u=f.substr(0,r);r<h;r+=s)u+=a+f.substr(r,s);o>0&&(u+=a+f.slice(r)),l&&(u="-"+u)}n=c?u+j.decimalSeparator+((o=+j.fractionGroupSize)?c.replace(new RegExp("\\d{"+o+"}\\B","g"),"$&"+j.fractionGroupSeparator):c):u}return n},D.toFraction=function(e){var t,r,i,s,o,a,u,c,l,f=q,h=this,m=h.c,d=new X(L),w=r=new X(L),v=u=new X(L);if(null!=e&&(q=!1,a=new X(e),q=f,(f=a.isInt())&&!a.lt(L)||(q&&ee(22,"max denominator "+(f?"out of range":"not an integer"),e),e=!f&&a.c&&te(a,a.e+1,1).gte(L)?a:null)),!m)return h.toString();for(l=A(m),s=d.e=l.length-h.e-1,d.c[0]=p[(o=s%g)<0?g+o:o],e=!e||a.cmp(d)>0?s>0?d:w:a,o=H,H=1/0,a=new X(l),u.c[0]=0;c=n(a,d,0,1),1!=(i=r.plus(c.times(v))).cmp(e);)r=v,v=i,w=u.plus(c.times(i=w)),u=i,d=a.minus(c.times(i=d)),a=i;return i=n(e.minus(r),v,0,1),u=u.plus(i.times(w)),r=r.plus(i.times(v)),u.s=w.s=h.s,t=n(w,v,s*=2,U).minus(h).abs().cmp(n(u,r,s,U).minus(h).abs())<1?[w.toString(),v.toString()]:[u.toString(),r.toString()],H=o,t},D.toNumber=function(){return+this},D.toPower=D.pow=function(e,t){var n,r,i,s=a(e<0?-e:+e),u=this;if(null!=t&&(M=23,t=new X(t)),!G(e,-9007199254740991,m,23,"exponent")&&(!isFinite(e)||s>m&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return n=Math.pow(+u,e),new X(t?n%t:n);for(t?e>1&&u.gt(L)&&u.isInt()&&t.gt(L)&&t.isInt()?u=u.mod(t):(i=t,t=null):W&&(n=o(W/g+2)),r=new X(L);;){if(s%2){if(!(r=r.times(u)).c)break;n?r.c.length>n&&(r.c.length=n):t&&(r=r.mod(t))}if(!(s=a(s/2)))break;u=u.times(u),n?u.c&&u.c.length>n&&(u.c.length=n):t&&(u=u.mod(t))}return t?r:(e<0&&(r=L.div(r)),i?r.mod(i):n?te(r,W,U):r)},D.toPrecision=function(e,t){return Y(this,null!=e&&G(e,1,w,24,"precision")?0|e:null,t,24)},D.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=A(n.c),t=null!=e&&G(e,2,64,25,"base")?Z(E(t,i),0|e,10,r):i<=C||i>=B?O(t,i):E(t,i),r<0&&n.c[0]&&(t="-"+t)),t},D.truncated=D.trunc=function(){return te(new X(this),this.e+1,1)},D.valueOf=D.toJSON=function(){var e,t=this,n=t.e;return null===n?t.toString():(e=A(t.c),e=n<=C||n>=B?O(e,n):E(e,n),t.s<0?"-"+e:e)},D.isBigNumber=!0,null!=t&&X.config(t),X}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.